PageSourceSearch

https://kalkulacka.macaly.app/_next/static/chunks/46785ab8f25844da.js?dpl=dpl_4t1qtnkvH1iH5oNJyBzXgadL8B3h

js kalkulacka.macaly.app collected 2026-10-03 04:59:10 UTC 1,068,866 bytes, 228 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29873,(t,e,r)=>{e.exports=function(t){return null==t}},236,(t,e,r)=>{e.exports=t.g&&t.g.Object===Object&&t.g},39088,(t,e,r)=>{var n=t.r(236),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},30353,(t,e,r)=>{e.exports=t.r(39088).Symbol},43436,(t,e,r)=>{var n=t.r(30353),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;e.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[s]=r:delete t[s]),i}},23243,(t,e,r)=>{var n=Object.prototype.toString;e.exports=function(t){return n.call(t)}},77684,(t,e,r)=>{var n=t.r(30353),i=t.r(43436),a=t.r(23243),o=n?n.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},12447,(t,e,r)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},71223,(t,e,r)=>{var n=t.r(77684),i=t.r(12447);e.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},93440,(t,e,r)=>{var n=Math.ceil,i=Math.max;e.exports=function(t,e,r,a){for(var o=-1,s=i(n((e-t)/(r||1)),0),l=Array(s);s--;)l[a?s:++o]=t,t+=r;return l}},25172,(t,e,r)=>{e.exports=function(t,e){return t===e||t!=t&&e!=e}},98376,(t,e,r)=>{e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},51095,(t,e,r)=>{var n=t.r(71223),i=t.r(98376);e.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},66397,(t,e,r)=>{var n=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},70237,(t,e,r)=>{var n=t.r(25172),i=t.r(51095),a=t.r(66397),o=t.r(12447);e.exports=function(t,e,r){if(!o(r))return!1;var s=typeof e;return("number"==s?!!(i(r)&&a(e,r.length)):"string"==s&&e in r)&&n(r[e],t)}},48891,(t,e,r)=>{var n=/\s/;e.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},30364,(t,e,r)=>{var n=t.r(48891),i=/^\s+/;e.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},77289,(t,e,r)=>{e.exports=function(t){return null!=t&&"object"==typeof t}},61884,(t,e,r)=>{var n=t.r(77684),i=t.r(77289);e.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},73759,(t,e,r)=>{var n=t.r(30364),i=t.r(12447),a=t.r(61884),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(a(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=l.test(t);return r||c.test(t)?u(t.slice(2),r?2:8):s.test(t)?o:+t}},82560,(t,e,r)=>{var n=t.r(73759),i=1/0;e.exports=function(t){return t?(t=n(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},69523,(t,e,r)=>{var n=t.r(93440),i=t.r(70237),a=t.r(82560);e.exports=function(t){return function(e,r,o){return o&&"number"!=typeof o&&i(e,r,o)&&(r=o=void 0),e=a(e),void 0===r?(r=e,e=0):r=a(r),o=void 0===o?e<r?1:-1:a(o),n(e,r,o,t)}}},44950,(t,e,r)=>{e.exports=t.r(69523)()},45350,(t,e,r)=>{e.exports=Array.isArray},9903,(t,e,r)=>{var n=t.r(45350),i=t.r(61884),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||i(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},88412,(t,e,r)=>{e.exports=t.r(39088)["__core-js_shared__"]},69553,(t,e,r)=>{var n,i=t.r(88412),a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(t){return!!a&&a in t}},76366,(t,e,r)=>{var n=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},54368,(t,e,r)=>{var n=t.r(71223),i=t.r(69553),a=t.r(12447),o=t.r(76366),s=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,f=RegExp("^"+c.
1call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!a(t)||i(t))&&(n(t)?f:s).test(o(t))}},63958,(t,e,r)=>{e.exports=function(t,e){return null==t?void 0:t[e]}},41920,(t,e,r)=>{var n=t.r(54368),i=t.r(63958);e.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},32760,(t,e,r)=>{e.exports=t.r(41920)(Object,"create")},50514,(t,e,r)=>{var n=t.r(32760);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},97617,(t,e,r)=>{e.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},57412,(t,e,r)=>{var n=t.r(32760),i=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},23592,(t,e,r)=>{var n=t.r(32760),i=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},39004,(t,e,r)=>{var n=t.r(32760);e.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},34421,(t,e,r)=>{var n=t.r(50514),i=t.r(97617),a=t.r(57412),o=t.r(23592),s=t.r(39004);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},65742,(t,e,r)=>{e.exports=function(){this.__data__=[],this.size=0}},34314,(t,e,r)=>{var n=t.r(25172);e.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},19206,(t,e,r)=>{var n=t.r(34314),i=Array.prototype.splice;e.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},67763,(t,e,r)=>{var n=t.r(34314);e.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},23407,(t,e,r)=>{var n=t.r(34314);e.exports=function(t){return n(this.__data__,t)>-1}},53833,(t,e,r)=>{var n=t.r(34314);e.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},29039,(t,e,r)=>{var n=t.r(65742),i=t.r(19206),a=t.r(67763),o=t.r(23407),s=t.r(53833);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},87362,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Map")},48994,(t,e,r)=>{var n=t.r(34421),i=t.r(29039),a=t.r(87362);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},24053,(t,e,r)=>{e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},87994,(t,e,r)=>{var n=t.r(24053);e.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},96768,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},29932,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){return n(this,t).get(t)}},92647,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){return n(this,t).has(t)}},46644,(t,e,r)=>{var n=t.r(87994);e.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=+(r.size!=i),this}},87547,(t,e,r)=>{var n=t.r(48994),i=t.r(96768),a=t.r(29932),o=t.r(92647),s=t.r(46644);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},57588,(t,e,r)=>{var n=t.r(87547);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},88832,(t,e,r)=>{var n=t.r(57588);e.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},2677,(t,e,r)=>{var n=t.r(88832),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;e.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(a,"$1"):r||t)}),e})},92708,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},72537,(t,e,r)=>{var n=t.r(30353),i=t.r(92708),a=t.r(45350),o=t.r(61884),s=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r}},2922,(t,e,r)=>{var n=t.r(72537);e.exports=function(t){return null==t?"":n(t)}},86287,(t,e,r)=>{var n=t.r(45350),i=t.r(9903),a=t.r(2677),o=t.r(2922);e.exports=function(t,e){return n(t)?t:i(t,e)?[t]:a(o(t))}},2054,(t,e,r)=>{var n=t.r(61884),i=1/0;e.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},33141,(t,e,r)=>{var n=t.r(86287),i=t.r(2054);e.exports=function(t,e){e=n(e,t);for(var r=0,a=e.length;null!=t&&r<a;)t=t[i(e[r++])];return r&&r==a?t:void 0}},82820,(t,e,r)=>{var n=t.r(33141);e.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},69102,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},66645,(t,e,r)=>{var n=t.r(77684),i=t.r(77289);e.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},73250,(t,e,r)=>{var n=t.r(66645),i=t.r(77289),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")}},33803,(t,e,r)=>{var n=t.r(30353),i=t.r(73250),a=t.r(45350),o=n?n.isConcatSpreadable:void 0;e.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},41891,(t,e,r)=>{var n=t.r(69102),i=t.r(33803);e.exports=function t(e,r,a,o,s){var l=-1,c=e.length;for(a||(a=i),s||(s=[]);++l<c;){var u=e[l];r>0&&a(u)?r>1?t(u,r-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}},5400,(t,e,r)=>{var n=t.r(29039);e.exports=function(){this.__data__=new n,this.size=0}},86238,(t,e,r)=>{e.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},57831,(t,e,r)=>{e.exports=function(t){return this.__data__.get(t)}},77802,(t,e,r)=>{e.exports=function(t){return this.__data__.has(t)}},20517,(t,e,r)=>{var n=t.r(29039),i=t.r(87362),a=t.r(87547);e.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(t,e),this.size=r.size,this}},1551,(t,e,r)=>{var n=t.r(29039),i=t.r(5400),a=t.r(86238),o=t.r(57831),s=t.r(77802),l=t.r(20517);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},21274,(t,e,r)=>{e.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},39805,(t,e,r)=>{e.exports=function(t){return this.__data__.has(t)}},27493,(t,e,r)=>{var n=t.r(87547),i=t.r(21274),a=t.r(39805);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},51477,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},15262,(t,e,r)=>{e.exports=function(t,e){return t.has(e)}},6856,(t,e,r)=>{var n=t.r(27493),i=t.r(51477),a=t.r(15262);e.exports=function(t,e,r,o,s,l){var c=1&r,u=t.length,f=e.length;if(u!=f&&!(c&&f>u))return!1;var d=l.get(t),h=l.get(e);if(d&&h)return d==e&&h==t;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(t,e),l.set(e,t);++p<u;){var y=t[p],g=e[p];if(o)var b=c?o(g,y,p,e,t,l):o(y,g,p,t,e,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(e,function(t,e){if(!a(v,e)&&(y===t||s(y,t,r,o,l)))return v.push(e)})){m=!1;break}}else if(!(y===g||s(y,g,r,o,l))){m=!1;break}}return l.delete(t),l.delete(e),m}},63750,(t,e,r)=>{e.exports=t.r(39088).Uint8Array},75331,(t,e,r)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},99850,(t,e,r)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},78012,(t,e,r)=>{var n=t.r(30353),i=t.r(63750),a=t.r(25172),o=t.r(6856),s=t.r(75331),l=t.r(99850),c=n?n.prototype:void 0,u=c?c.valueOf
1:void 0;e.exports=function(t,e,r,n,c,f,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new i(t),new i(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=s;case"[object Set]":var p=1&n;if(h||(h=l),t.size!=e.size&&!p)break;var m=d.get(t);if(m)return m==e;n|=2,d.set(t,e);var v=o(h(t),h(e),n,c,f,d);return d.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},23403,(t,e,r)=>{var n=t.r(69102),i=t.r(45350);e.exports=function(t,e,r){var a=e(t);return i(t)?a:n(a,r(t))}},36100,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[i++]=o)}return a}},45159,(t,e,r)=>{e.exports=function(){return[]}},17332,(t,e,r)=>{var n=t.r(36100),i=t.r(45159),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;e.exports=o?function(t){return null==t?[]:n(o(t=Object(t)),function(e){return a.call(t,e)})}:i},55803,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},24013,(t,e,r)=>{e.exports=function(){return!1}},56956,(t,e,r)=>{var n=t.r(39088),i=t.r(24013),a=r&&!r.nodeType&&r,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0;e.exports=(s?s.isBuffer:void 0)||i},76602,(t,e,r)=>{var n=t.r(77684),i=t.r(98376),a=t.r(77289),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(t){return a(t)&&i(t.length)&&!!o[n(t)]}},33999,(t,e,r)=>{e.exports=function(t){return function(e){return t(e)}}},80156,(t,e,r)=>{var n=t.r(236),i=r&&!r.nodeType&&r,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process;e.exports=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}()},3023,(t,e,r)=>{var n=t.r(76602),i=t.r(33999),a=t.r(80156),o=a&&a.isTypedArray;e.exports=o?i(o):n},58877,(t,e,r)=>{var n=t.r(55803),i=t.r(73250),a=t.r(45350),o=t.r(56956),s=t.r(66397),l=t.r(3023),c=Object.prototype.hasOwnProperty;e.exports=function(t,e){var r=a(t),u=!r&&i(t),f=!r&&!u&&o(t),d=!r&&!u&&!f&&l(t),h=r||u||f||d,p=h?n(t.length,String):[],m=p.length;for(var v in t)(e||c.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m)))&&p.push(v);return p}},63996,(t,e,r)=>{var n=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},25717,(t,e,r)=>{e.exports=function(t,e){return function(r){return t(e(r))}}},42369,(t,e,r)=>{e.exports=t.r(25717)(Object.keys,Object)},48477,(t,e,r)=>{var n=t.r(63996),i=t.r(42369),a=Object.prototype.hasOwnProperty;e.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},33679,(t,e,r)=>{var n=t.r(58877),i=t.r(48477),a=t.r(51095);e.exports=function(t){return a(t)?n(t):i(t)}},13370,(t,e,r)=>{var n=t.r(23403),i=t.r(17332),a=t.r(33679);e.exports=function(t){return n(t,a,i)}},30698,(t,e,r)=>{var n=t.r(13370),i=Object.prototype.hasOwnProperty;e.exports=function(t,e,r,a,o,s){var l=1&r,c=n(t),u=c.length;if(u!=n(e).length&&!l)return!1;for(var f=u;f--;){var d=c[f];if(!(l?d in e:i.call(e,d)))return!1}var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var m=!0;s.set(t,e),s.set(e,t);for(var v=l;++f<u;){var y=t[d=c[f]],g=e[d];if(a)var b=l?a(g,y,d,e,t,s):a(y,g,d,t,e,s);if(!(void 0===b?y===g||o(y,g,r,a,s):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(t),s.delete(e),m}},1419,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"DataView")},17074,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Promise")},6966,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Set")},73895,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"WeakMap")},67426,(t,e,r)=>{var n=t.r(1419),i=t.r(87362),a=t.r(17074),o=t.r(6966),s=t.r(73895),l=t.r(77684),c=t.r(76366),u="[object Map]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",m=c(n),v=c(i),y=c(a),g=c(o),b=c(s),x=l;
1(n&&x(new n(new ArrayBuffer(1)))!=p||i&&x(new i)!=u||a&&x(a.resolve())!=f||o&&x(new o)!=d||s&&x(new s)!=h)&&(x=function(t){var e=l(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return p;case v:return u;case y:return f;case g:return d;case b:return h}return e}),e.exports=x},78353,(t,e,r)=>{var n=t.r(1551),i=t.r(6856),a=t.r(78012),o=t.r(30698),s=t.r(67426),l=t.r(45350),c=t.r(56956),u=t.r(3023),f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(t,e,r,m,v,y){var g=l(t),b=l(e),x=g?d:s(t),w=b?d:s(e);x=x==f?h:x,w=w==f?h:w;var j=x==h,N=w==h,k=x==w;if(k&&c(t)){if(!c(e))return!1;g=!0,j=!1}if(k&&!j)return y||(y=new n),g||u(t)?i(t,e,r,m,v,y):a(t,e,x,r,m,v,y);if(!(1&r)){var _=j&&p.call(t,"__wrapped__"),S=N&&p.call(e,"__wrapped__");if(_||S){var A=_?t.value():t,O=S?e.value():e;return y||(y=new n),v(A,O,r,m,y)}}return!!k&&(y||(y=new n),o(t,e,r,m,v,y))}},21885,(t,e,r)=>{var n=t.r(78353),i=t.r(77289);e.exports=function t(e,r,a,o,s){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,a,o,t,s):e!=e&&r!=r)}},48299,(t,e,r)=>{var n=t.r(1551),i=t.r(21885);e.exports=function(t,e,r,a){var o=r.length,s=o,l=!a;if(null==t)return!s;for(t=Object(t);o--;){var c=r[o];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<s;){var u=(c=r[o])[0],f=t[u],d=c[1];if(l&&c[2]){if(void 0===f&&!(u in t))return!1}else{var h=new n;if(a)var p=a(f,d,u,t,e,h);if(!(void 0===p?i(d,f,3,a,h):p))return!1}}return!0}},15782,(t,e,r)=>{var n=t.r(12447);e.exports=function(t){return t==t&&!n(t)}},41903,(t,e,r)=>{var n=t.r(15782),i=t.r(33679);e.exports=function(t){for(var e=i(t),r=e.length;r--;){var a=e[r],o=t[a];e[r]=[a,o,n(o)]}return e}},65570,(t,e,r)=>{e.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},23426,(t,e,r)=>{var n=t.r(48299),i=t.r(41903),a=t.r(65570);e.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},40688,(t,e,r)=>{e.exports=function(t,e){return null!=t&&e in Object(t)}},15359,(t,e,r)=>{var n=t.r(86287),i=t.r(73250),a=t.r(45350),o=t.r(66397),s=t.r(98376),l=t.r(2054);e.exports=function(t,e,r){e=n(e,t);for(var c=-1,u=e.length,f=!1;++c<u;){var d=l(e[c]);if(!(f=null!=t&&r(t,d)))break;t=t[d]}return f||++c!=u?f:!!(u=null==t?0:t.length)&&s(u)&&o(d,u)&&(a(t)||i(t))}},76590,(t,e,r)=>{var n=t.r(40688),i=t.r(15359);e.exports=function(t,e){return null!=t&&i(t,e,n)}},72298,(t,e,r)=>{var n=t.r(21885),i=t.r(82820),a=t.r(76590),o=t.r(9903),s=t.r(15782),l=t.r(65570),c=t.r(2054);e.exports=function(t,e){return o(t)&&s(e)?l(c(t),e):function(r){var o=i(r,t);return void 0===o&&o===e?a(r,t):n(e,o,3)}}},53336,(t,e,r)=>{e.exports=function(t){return t}},1079,(t,e,r)=>{e.exports=function(t){return function(e){return null==e?void 0:e[t]}}},30970,(t,e,r)=>{var n=t.r(33141);e.exports=function(t){return function(e){return n(e,t)}}},33906,(t,e,r)=>{var n=t.r(1079),i=t.r(30970),a=t.r(9903),o=t.r(2054);e.exports=function(t){return a(t)?n(o(t)):i(t)}},66305,(t,e,r)=>{var n=t.r(23426),i=t.r(72298),a=t.r(53336),o=t.r(45350),s=t.r(33906);e.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):n(t):s(t)}},36755,(t,e,r)=>{e.exports=function(t){return function(e,r,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[t?s:++i];if(!1===r(a[l],l,a))break}return e}}},98728,(t,e,r)=>{e.exports=t.r(36755)()},63799,(t,e,r)=>{var n=t.r(98728),i=t.r(33679);e.exports=function(t,e){return t&&n(t,e,i)}},73554,(t,e,r)=>{var n=t.r(51095);e.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var a=r.length,o=e?a:-1,s=Object(r);(e?o--:++o<a)&&!1!==i(s[o],o,s););return r}}},53587,(t,e,r)=>{var n=t.r(63799);e.exports=t.r(73554)(n)},7073,(t,e,r)=>{var n=t.r(53587),i=t.r(51095);e.exports=function(t,e){var r=-1,a=i(t)?Array(t.length):[];return n(t,function(t,n,i){a[++r]=e(t,n,i)}),a}},83629,(t,e,r)=>{e.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},4886,(t,e,r)=>{var n=t.r(61884);e.exports=function(t,e){if(t!==e){var r=void 0!==t,i=null===t,a=t==t,o=n(t),s=void 0!==e,l=null===e,c=e==e,u=n(e);
1if(!l&&!u&&!o&&t>e||o&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!a)return 1;if(!i&&!o&&!u&&t<e||u&&r&&a&&!i&&!o||l&&r&&a||!s&&a||!c)return -1}return 0}},58322,(t,e,r)=>{var n=t.r(4886);e.exports=function(t,e,r){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,l=r.length;++i<s;){var c=n(a[i],o[i]);if(c){if(i>=l)return c;return c*("desc"==r[i]?-1:1)}}return t.index-e.index}},28138,(t,e,r)=>{var n=t.r(92708),i=t.r(33141),a=t.r(66305),o=t.r(7073),s=t.r(83629),l=t.r(33999),c=t.r(58322),u=t.r(53336),f=t.r(45350);e.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[u];var d=-1;return e=n(e,l(a)),s(o(t,function(t,r,i){return{criteria:n(e,function(e){return e(t)}),index:++d,value:t}}),function(t,e){return c(t,e,r)})}},87160,(t,e,r)=>{e.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},72953,(t,e,r)=>{var n=t.r(87160),i=Math.max;e.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),l=Array(s);++o<s;)l[o]=a[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=a[o];return c[e]=r(l),n(t,this,c)}}},56751,(t,e,r)=>{e.exports=function(t){return function(){return t}}},24251,(t,e,r)=>{var n=t.r(41920);e.exports=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},1647,(t,e,r)=>{var n=t.r(56751),i=t.r(24251),a=t.r(53336);e.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:a},51994,(t,e,r)=>{var n=Date.now;e.exports=function(t){var e=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},84665,(t,e,r)=>{var n=t.r(1647);e.exports=t.r(51994)(n)},95059,(t,e,r)=>{var n=t.r(53336),i=t.r(72953),a=t.r(84665);e.exports=function(t,e){return a(i(t,e,n),t+"")}},31195,(t,e,r)=>{var n=t.r(41891),i=t.r(28138),a=t.r(95059),o=t.r(70237);e.exports=a(function(t,e){if(null==t)return[];var r=e.length;return r>1&&o(t,e[0],e[1])?e=[]:r>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,n(e,1),[])})},31926,(t,e,r)=>{var n=t.r(39088);e.exports=function(){return n.Date.now()}},74009,(t,e,r)=>{var n=t.r(12447),i=t.r(31926),a=t.r(73759),o=Math.max,s=Math.min;e.exports=function(t,e,r){var l,c,u,f,d,h,p=0,m=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function g(e){var r=l,n=c;return l=c=void 0,p=e,f=t.apply(n,r)}function b(t){var r=t-h,n=t-p;return void 0===h||r>=e||r<0||v&&n>=u}function x(){var t,r,n,a=i();if(b(a))return w(a);d=setTimeout(x,(t=a-h,r=a-p,n=e-t,v?s(n,u-r):n))}function w(t){return(d=void 0,y&&l)?g(t):(l=c=void 0,f)}function j(){var t,r=i(),n=b(r);if(l=arguments,c=this,h=r,n){if(void 0===d)return p=t=h,d=setTimeout(x,e),m?g(t):f;if(v)return clearTimeout(d),d=setTimeout(x,e),g(h)}return void 0===d&&(d=setTimeout(x,e)),f}return e=a(e)||0,n(r)&&(m=!!r.leading,u=(v="maxWait"in r)?o(a(r.maxWait)||0,e):u,y="trailing"in r?!!r.trailing:y),j.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=h=c=d=void 0},j.flush=function(){return void 0===d?f:w(i())},j}},24283,(t,e,r)=>{var n=t.r(74009),i=t.r(12447);e.exports=function(t,e,r){var a=!0,o=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),n(t,e,{leading:a,maxWait:e,trailing:o})}},85845,(t,e,r)=>{var n=t.r(77684),i=t.r(45350),a=t.r(77289);e.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==n(t)}},15888,(t,e,r)=>{"use strict";var n,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function g(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case o:case l:case s:case h:case p:return t;default:switch(t=t&&t.$$typeof){case f:case u:case d:case v:case m:case c:return t;default:return e}}case a:return e}}}n=Symbol.for("react.module.reference"),r.ContextConsumer=u,r.ContextProvider=c,r.Element=i,r.ForwardRef=d,r.Fragment=o,r.Lazy=v,r.Memo=m,r.Portal=a,r.Profiler=l,r.StrictMode=s,r.Suspense=h,r.SuspenseList=p,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(t){return g(t)===u},r.isContextProvider=function(t){return g(t)===c},r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},r.isForwardRef=function(t){return g(t)===d},r.isFragment=function(t){return g(t)===o},r.isLazy=function(t){return g(t)===v},r.isMemo=function(t){return g(t)===m},r.isPortal=function(t){return g(t)===a},r.isProfiler=function(t){return g(t)===l},r.isStrictMode=function(t){return g(t)===s},r.isSuspense=function(t){return g(t)===h},r.isSuspenseList=function(t){return g(t)===p},r.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===l||t===s||t===h||t===p||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===m||t.$$typeof===c||t.$$typeof===u||t.$$typeof===d||t.$$typeof===n||void 0!==t.getModuleId)||!1},r.typeOf=g},79367,(t,e,r)=>{"use strict";e.exports=t.r(15888)},94241,(t,e,r)=>{var n=t.r(77684),i=t.r(77289);e.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},78948,(t,e,r)=>{var n=t.r(94241);e.exports=function(t){return n(t)&&t!=+t}},56445,(t,e,r)=>{e.exports=function(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return -1}},4078,(t,e,r)=>{e.exports=function(t){return t!=t}},1987,(t,e,r)=>{e.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1}},49719,(t,e,r)=>{var n=t.r(56445),i=t.r(4078),a=t.r(1987);e.exports=function(t,e,r){return e==e?a(t,e,r):n(t,i,r)}},46515,(t,e,r)=>{var n=t.r(49719);e.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},29584,(t,e,r)=>{e.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},91692,(t,e,r)=>{e.exports=function(){}},8484,(t,e,r)=>{var n=t.r(6966),i=t.r(91692),a=t.r(99850);e.exports=n&&1/a(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i},10339,(t,e,r)=>{var n=t.r(27493),i=t.r(46515),a=t.r(29584),o=t.r(15262),s=t.r(8484),l=t.r(99850);e.exports=function(t,e,r){var c=-1,u=i,f=t.length,d=!0,h=[],p=h;if(r)d=!1,u=a;else if(f>=200){var m=e?null:s(t);if(m)return l(m);d=!1,u=o,p=new n}else p=e?[]:h;t:for(;++c<f;){var v=t[c],y=e?e(v):v;if(v=r||0!==v?v:0,d&&y==y){for(var g=p.length;g--;)if(p[g]===y)continue t;e&&p.push(y),h.push(v)}else u(p,y,r)||(p!==h&&p.push(y),h.push(v))}return h}},74010,(t,e,r)=>{var n=t.r(66305),i=t.r(10339);
1e.exports=function(t,e){return t&&t.length?i(t,n(e,2)):[]}},95014,(t,e,r)=>{e.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++n<i;)a[n]=t[n+e];return a}},84357,(t,e,r)=>{var n=t.r(95014);e.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},79589,(t,e,r)=>{var n=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return n.test(t)}},58672,(t,e,r)=>{e.exports=function(t){return t.split("")}},95365,(t,e,r)=>{var n="\ud800-\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\ud83c[\udffb-\udfff]",o="[^"+n+"]",s="(?:\ud83c[\udde6-\uddff]){2}",l="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+i+"|"+a+")?",u="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[o,s,l].join("|")+")"+u+c+")*",d=RegExp(a+"(?="+a+")|"+("(?:"+[o+i+"?",i,s,l,"["+n+"]"].join("|"))+")"+(u+c+f),"g");e.exports=function(t){return t.match(d)||[]}},34170,(t,e,r)=>{var n=t.r(58672),i=t.r(79589),a=t.r(95365);e.exports=function(t){return i(t)?a(t):n(t)}},29821,(t,e,r)=>{var n=t.r(84357),i=t.r(79589),a=t.r(34170),o=t.r(2922);e.exports=function(t){return function(e){var r=i(e=o(e))?a(e):void 0,s=r?r[0]:e.charAt(0),l=r?n(r,1).join(""):e.slice(1);return s[t]()+l}}},32241,(t,e,r)=>{e.exports=t.r(29821)("toUpperCase")},32189,(t,e,r)=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},65156,(t,e,r)=>{"use strict";var n=t.r(32189);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function t(t,e,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:i}
1;return r.PropTypes=r,r}},45009,(t,e,r)=>{e.exports=t.r(65156)()},41015,(t,e,r)=>{var n=t.r(61884);e.exports=function(t,e,r){for(var i=-1,a=t.length;++i<a;){var o=t[i],s=e(o);if(null!=s&&(void 0===l?s==s&&!n(s):r(s,l)))var l=s,c=o}return c}},80957,(t,e,r)=>{e.exports=function(t,e){return t>e}},86966,(t,e,r)=>{var n=t.r(41015),i=t.r(80957),a=t.r(53336);e.exports=function(t){return t&&t.length?n(t,a,i):void 0}},98128,(t,e,r)=>{e.exports=function(t,e){return t<e}},37544,(t,e,r)=>{var n=t.r(41015),i=t.r(98128),a=t.r(53336);e.exports=function(t){return t&&t.length?n(t,a,i):void 0}},10632,(t,e,r)=>{var n=t.r(92708),i=t.r(66305),a=t.r(7073),o=t.r(45350);e.exports=function(t,e){return(o(t)?n:a)(t,i(e,3))}},33303,(t,e,r)=>{var n=t.r(41891),i=t.r(10632);e.exports=function(t,e){return n(i(t,e),1)}},98892,(t,e,r)=>{var n=t.r(21885);e.exports=function(t,e){return n(t,e)}},51655,(t,e,r)=>{!function(r){"use strict";var n,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",s=o+"Invalid argument: ",l=o+"Exponent out of range: ",c=Math.floor,u=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=c(1286742750677284.5),h={};function p(t,e){var r,n,i,o,s,l,c,u,f=t.constructor,d=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),a?k(e,d):e;if(c=t.d,u=e.d,s=t.e,i=e.e,c=c.slice(),o=s-i){for(o<0?(n=c,o=-o,l=u.length):(n=u,i=s,l=c.length),o>(l=(s=Math.ceil(d/7))>l?s+1:l+1)&&(o=l,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,n=u,u=c,c=n),r=0;o;)r=(c[--o]=c[o]+u[o]+r)/1e7|0,c[o]%=1e7;for(r&&(c.unshift(r),++i),l=c.length;0==c[--l];)c.pop();return e.d=c,e.e=i,a?k(e,d):e}function m(t,e,r){if(t!==~~t||t<e||t>r)throw Error(s+t)}function v(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)(r=7-(n=t[e]+"").length)&&(a+=w(r)),a+=n;(r=7-(n=(o=t[e])+"").length)&&(a+=w(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}h.absoluteValue=h.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},h.comparedTo=h.cmp=function(t){var e,r,n,i;if(t=new this.constructor(t),this.s!==t.s)return this.s||-t.s;if(this.e!==t.e)return this.e>t.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(i=t.d.length)?n:i;e<r;++e)if(this.d[e]!==t.d[e])return this.d[e]>t.d[e]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},h.decimalPlaces=h.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},h.dividedBy=h.div=function(t){return y(this,new this.constructor(t))},h.dividedToIntegerBy=h.idiv=function(t){var e=this.constructor;return k(y(this,new e(t),0,1),e.precision)},h.equals=h.eq=function(t){return!this.cmp(t)},h.exponent=function(){return b(this)},h.greaterThan=h.gt=function(t){return this.cmp(t)>0},h.greaterThanOrEqualTo=h.gte=function(t){return this.cmp(t)>=0},h.isInteger=h.isint=function(){return this.e>this.d.length-2},h.isNegative=h.isneg=function(){return this.s<0},h.isPositive=h.ispos=function(){return this.s>0},h.isZero=function(){return 0===this.s},h.lessThan=h.lt=function(t){return 0>this.cmp(t)},h.lessThanOrEqualTo=h.lte=function(t){return 1>this.cmp(t)},h.logarithm=h.log=function(t){var e,r=this.constructor,i=r.precision,s=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(n))throw Error(o+"NaN");if(this.s<1)throw Error(o+(this.s?"NaN":"-Infinity"));return this.eq(n)?new r(0):(a=!1,e=y(j(this,s),j(t,s),s),a=!0,k(e,i))},h.minus=h.sub=function(t){return t=new this.constructor(t),this.s==t.s?_(this,t):p(this,(t.s=-t.s,t))},h.modulo=h.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(o+"NaN");return this.s?(a=!1,e=y(this,t,0,1).times(t),a=!0,this.minus(e)):k(new r(this),n)},h.naturalExponential=h.exp=function(){return g(this)},h.naturalLogarithm=h.ln=function(){return j(this)},h.negated=h.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},h.plus=h.add=function(t){return t=new this.constructor(t),this.s==t.s?p(this,t):_(this,(t.s=-t.s,t))},h.precision=h.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(s+t);if(e=b(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;
1n/=10)r++}return t&&e>r?e:r},h.squareRoot=h.sqrt=function(){var t,e,r,n,i,s,l,u=this.constructor;if(this.s<1){if(!this.s)return new u(0);throw Error(o+"NaN")}for(t=b(this),a=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=v(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=c((t+1)/2)-(t<0||t%2),n=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(i.toString()),i=l=(r=u.precision)+3;;)if(n=(s=n).plus(y(this,s,l+2)).times(.5),v(s.d).slice(0,l)===(e=v(n.d)).slice(0,l)){if(e=e.slice(l-3,l+1),i==l&&"4999"==e){if(k(s,r+1,0),s.times(s).eq(this)){n=s;break}}else if("9999"!=e)break;l+=4}return a=!0,k(n,r)},h.times=h.mul=function(t){var e,r,n,i,o,s,l,c,u,f=this.constructor,d=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(c=d.length)<(u=h.length)&&(o=d,d=h,h=o,s=c,c=u,u=s),o=[],n=s=c+u;n--;)o.push(0);for(n=u;--n>=0;){for(e=0,i=c+n;i>n;)l=o[i]+h[n]*d[i-n-1]+e,o[i--]=l%1e7|0,e=l/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--s];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,a?k(t,f.precision):t},h.toDecimalPlaces=h.todp=function(t,e){var r=this,n=r.constructor;
1return(r=new n(r),void 0===t)?r:(m(t,0,1e9),void 0===e?e=n.rounding:m(e,0,8),k(r,t+b(r)+1,e))},h.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=S(n,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),r=S(n=k(new i(n),t+1,e),!0,t+1)),r},h.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?S(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),r=S((n=k(new i(this),t+b(this)+1,e)).abs(),!1,t+b(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},h.toInteger=h.toint=function(){var t=this.constructor;return k(new t(this),b(this)+1,t.rounding)},h.toNumber=function(){return+this},h.toPower=h.pow=function(t){var e,r,i,s,l,u,f=this,d=f.constructor,h=+(t=new d(t));if(!t.s)return new d(n);if(!(f=new d(f)).s){if(t.s<1)throw Error(o+"Infinity");return f}if(f.eq(n))return f;if(i=d.precision,t.eq(n))return k(f,i);if(u=(e=t.e)>=(r=t.d.length-1),l=f.s,u){if((r=h<0?-h:h)<=0x1fffffffffffff){for(s=new d(n),e=Math.ceil(i/7+4),a=!1;r%2&&A((s=s.times(f)).d,e),0!==(r=c(r/2));)A((f=f.times(f)).d,e);return a=!0,t.s<0?new d(n).div(s):k(s,i)}}else if(l<0)throw Error(o+"NaN");return l=l<0&&1&t.d[Math.max(e,r)]?-1:1,f.s=1,a=!1,s=t.times(j(f,i+12)),a=!0,(s=g(s)).s=l,s},h.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return void 0===t?(r=b(i),n=S(i,r<=a.toExpNeg||r>=a.toExpPos)):(m(t,1,1e9),void 0===e?e=a.rounding:m(e,0,8),r=b(i=k(new a(i),t,e)),n=S(i,t<=r||r<=a.toExpNeg,t)),n},h.toSignificantDigits=h.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(m(t,1,1e9),void 0===e?e=r.rounding:m(e,0,8)),k(new r(this),t,e)},h.toString=h.valueOf=h.val=h.toJSON=function(){var t=b(this),e=this.constructor;return S(this,t<=e.toExpNeg||t>=e.toExpPos)};var y=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=+(t[r]<e[r]),t[r]=1e7*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,a,s){var l,c,u,f,d,h,p,m,v,y,g,x,w,j,N,_,S,A,O=n.constructor,P=n.s==i.s?1:-1,E=n.d,C=i.d;if(!n.s)return new O(n);if(!i.s)throw Error(o+"Division by zero");for(u=0,c=n.e-i.e,S=C.length,N=E.length,m=(p=new O(P)).d=[];C[u]==(E[u]||0);)++u;if(C[u]>(E[u]||0)&&--c,(x=null==a?a=O.precision:s?a+(b(n)-b(i))+1:a)<0)return new O(0);if(x=x/7+2|0,u=0,1==S)for(f=0,C=C[0],x++;(u<N||f)&&x--;u++)w=1e7*f+(E[u]||0),m[u]=w/C|0,f=w%C|0;else{for((f=1e7/(C[0]+1)|0)>1&&(C=t(C,f),E=t(E,f),S=C.length,N=E.length),j=S,y=(v=E.slice(0,S)).length;y<S;)v[y++]=0;(A=C.slice()).unshift(0),_=C[0],C[1]>=1e7/2&&++_;do f=0,(l=e(C,v,S,y))<0?(g=v[0],S!=y&&(g=1e7*g+(v[1]||0)),(f=g/_|0)>1?(f>=1e7&&(f=1e7-1),h=(d=t(C,f)).length,y=v.length,1==(l=e(d,v,h,y))&&(f--,r(d,S<h?A:C,h))):(0==f&&(l=f=1),d=C.slice()),(h=d.length)<y&&d.unshift(0),r(v,d,y),-1==l&&(y=v.length,(l=e(C,v,S,y))<1&&(f++,r(v,S<y?A:C,y))),y=v.length):0===l&&(f++,v=[0]),m[u++]=f,l&&v[0]?v[y++]=E[j]||0:(v=[E[j]],y=1);while((j++<N||void 0!==v[0])&&x--)}return m[0]||m.shift(),p.e=c,k(p,s?a+b(p)+1:a)}}();function g(t,e){var r,i,o,s,c,f=0,d=0,h=t.constructor,p=h.precision;if(b(t)>16)throw Error(l+b(t));if(!t.s)return new h(n);for(null==e?(a=!1,c=p):c=e,s=new h(.03125);t.abs().gte(.1);)t=t.times(s),d+=5;for(c+=Math.log(u(2,d))/Math.LN10*2+5|0,r=i=o=new h(n),h.precision=c;;){if(i=k(i.times(t),c),r=r.times(++f),v((s=o.plus(y(i,r,c))).d).slice(0,c)===v(o.d).slice(0,c)){for(;d--;)o=k(o.times(o),c);return h.precision=p,null==e?(a=!0,k(o,p)):o}o=s}}function b(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function x(t,e,r){if(e>t.LN10.sd())throw a=!0,r&&(t.precision=r),Error(o+"LN10 precision limit exceeded");return k(new t(t.LN10),e)}function w(t){for(var e="";t--;)e+="0";return e}function j(t,e){var r,i,s,l,c,u,f,d,h,p=1,m=t,g=m.d,w=m.constructor,N=w.precision;if(m.s<1)throw Error(o+(m.s?"NaN":"-Infinity"));if(m.eq(n))return new w(0);if(null==e?(a=!1,d=N):d=e,m.eq(10))return null==e&&(a=!0),x(w,d);if(w.precision=d+=10,i=(r=v(g)).charAt(0),!(15e14>Math.abs(l=b(m))))return f=x(w,d+2,N).times(l+""),m=j(new w(i+"."+r.slice(1)),d-10).plus(f),w.precision=N,null==e?(a=!0,k(m,N)):m;for(;i<7&&1!=i||1==i&&r.charAt(1)>3;)i=(r=v((m=m.times(t)).d)).charAt(0),p++;for(l=b(m),i>1?(m=new w("0."+r),l++):m=new w(i+"."+r.slice(1)),u=c=m=y(m.minus(n),m.plus(n),d),h=k(m.times(m),d),s=3;;){if(c=k(c.times(h),d),v((f=u.plus(y(c,new w(s),d))).d).slice(0,d)===v(u.d).slice(0,d))return u=u.times(2),0!==l&&(u=u.plus(x(w,d+2,N).times(l+""))),u=y(u,new w(p),d),w.precision=N,null==e?(a=!0,k(u,N)):u;u=f,s+=2}}function N(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,t.e=c((r=r-n-1)/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=7;n<i;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),a&&(t.e>d||t.e<-d))throw Error(l+r)}else t.s=0,t.e=0,t.d=[0];return t}function k(t,e,r){var n,i,o,s,f,h,p,m,v=t.d;for(s=1,o=v[0];o>=10;o/=10)s++;if((n=e-s)<0)n+=7,i=e,p=v[m=0];else{if((m=Math.ceil((n+1)/7))>=(o=v.length))return t;for(s=1,p=o=v[m];o>=10;o/=10)s++;n%=7,i=n-7+s}if(void 0!==r&&(f=p/(o=u(10,s-i-1))%10|0,h=e<0||void 0!==v[m+1]||p%o,h=r<4?(f||h)&&(0==r||r==(t.s<0?3:2)):f>5||5==f&&(4==r||h||6==r&&(n>0?i>0?p/u(10,s-i):0:v[m-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return h?(o=b(t),v.length=1,e=e-o-1,v[0]=u(10,(7-e%7)%7),t.e=c(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=m,o=1,m--):(v.length=m+1,o=u(10,7-n),v[m]=i>0?(p/u(10,s-i)%u(10,i)|0)*o:0),h)for(;;)if(0==m){1e7==(v[0]+=o)&&(v[0]=1,++t.e);break}else{if(v[m]+=o,1e7!=v[m])break;v[m--]=0,o=1}for(n=v.length;0===v[--n];)v.pop();if(a&&(t.e>d||t.e<-d))throw Error(l+b(t));return t}function _(t,e){var r,n,i,o,s,l,c,u,f,d,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),a?k(e,p):e;if(c=t.d,d=e.d,n=e.e,u=t.e,c=c.slice(),s=u-n){for((f=s<0)?(r=c,s=-s,l=d.length):(r=d,n=u,l=c.length),s>(i=Math.max(Math.ceil(p/7),l)+2)&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for((f=(i=c.length)<(l=d.length))&&(l=i),i=0;i<l;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}s=0}for(f&&(r=c,c=d,d=r,e.s=-e.s),l=c.length,i=d.length-l;i>0;--i)c[l++]=0;for(i=d.length;i>s;){if(c[--i]<d[i]){for(o=i;o&&0===c[--o];)c[o]=1e7-1;--c[o],c[i]+=1e7}c[i]-=d[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=n,a?k(e,p):e):new h(0)}function S(t,e,r){var n,i=b(t),a=v(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+w(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+w(-i-1)+a,r&&(n=r-o)>0&&(a+=w(n))):i>=o?(a+=w(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+w(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=w(n))),t.s<0?"-"+a:a}function A(t,e){if(t.length>e)return t.length=e,!0}
1function O(t){if(!t||"object"!=typeof t)throw Error(o+"Object expected");var e,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]]))if(c(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(s+r+": "+n);if(void 0!==(n=t[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(s+r+": "+n);return this}if((i=function t(e){var r,n,i;function a(t){if(!(this instanceof a))return new a(t);if(this.constructor=a,t instanceof a){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(s+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return N(this,t.toString())}if("string"!=typeof t)throw Error(s+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,f.test(t))N(this,t);else throw Error(s+t)}if(a.prototype=h,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=t,a.config=a.set=O,void 0===e&&(e={}),e)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return a.config(e),a}(i)).default=i.Decimal=i,n=new i(1),"function"==typeof define&&define.amd){let e;t.r,void 0!==(e=i)&&t.v(e)}else e.exports?e.exports=i:(r||(r="undefined"!=typeof self&&self&&self.self==self?self:Function("return this")()),r.Decimal=i)}(t.e)},74548,(t,e,r)=>{var n=t.r(24251);e.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},60793,(t,e,r)=>{var n=t.r(74548),i=t.r(63799),a=t.r(66305);e.exports=function(t,e){var r={};return e=a(e,3),i(t,function(t,i,a){n(r,i,e(t,i,a))}),r}},38199,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},8088,(t,e,r)=>{var n=t.r(53587);e.exports=function(t,e){var r=!0;return n(t,function(t,n,i){return r=!!e(t,n,i)}),r}},26063,(t,e,r)=>{var n=t.r(38199),i=t.r(8088),a=t.r(66305),o=t.r(45350),s=t.r(70237);e.exports=function(t,e,r){var l=o(t)?n:i;return r&&s(t,e,r)&&(e=void 0),l(t,a(e,3))}},4879,(t,e,r)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},62413,(t,e,r)=>{e.exports=t.r(25717)(Object.getPrototypeOf,Object)},1320,(t,e,r)=>{var n=t.r(77684),i=t.r(62413),a=t.r(77289),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,c=s.call(Object);e.exports=function(t){if(!a(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},20164,(t,e,r)=>{var n=t.r(77684),i=t.r(77289);e.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==n(t)}},49379,(t,e,r)=>{var n=t.r(53587);e.exports=function(t,e){var r;return n(t,function(t,n,i){return!(r=e(t,n,i))}),!!r}},88099,(t,e,r)=>{var n=t.r(51477),i=t.r(66305),a=t.r(49379),o=t.r(45350),s=t.r(70237);e.exports=function(t,e,r){var l=o(t)?n:a;return r&&s(t,e,r)&&(e=void 0),l(t,i(e,3))}},95200,(t,e,r)=>{var n=t.r(66305),i=t.r(51095),a=t.r(33679);e.exports=function(t){return function(e,r,o){var s=Object(e);if(!i(e)){var l=n(r,3);e=a(e),r=function(t){return l(s[t],t,s)}}var c=t(e,r,o);return c>-1?s[l?e[c]:c]:void 0}}},4653,(t,e,r)=>{var n=t.r(82560);e.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},26965,(t,e,r)=>{var n=t.r(56445),i=t.r(66305),a=t.r(4653),o=Math.max;e.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return -1;var l=null==r?0:a(r);return l<0&&(l=o(s+l,0)),n(t,i(e,3),l)}},60191,(t,e,r)=>{e.exports=t.r(95200)(t.r(26965))},78492,(t,e,r)=>{"use strict";var n=Object.prototype.hasOwnProperty,i="~";function a(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new o(r,n||t,a),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new a:delete t._events[e]}function c(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1)),c.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},c.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,o=Array(a);n<a;n++)o[n]=r[n].fn;return o},c.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,n,a,o){var s=i?i+t:t;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,n),!0;case 5:return u.fn.call(u.context,e,r,n,a),!0;case 6:return u.fn.call(u.context,e,r,n,a,o),!0}for(c=1,l=Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,r);break;case 4:u[c].fn.call(u[c].context,e,r,n);break;default:if(!l)for(d=1,l=Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,r,n){var a=i?i+t:t;if(!this._events[a])return this;if(!e)return l(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||n&&!o.once||r&&o.context!==r||l(this,a);else{for(var s=0,c=[],u=o.length;s<u;s++)(o[s].fn!==e||n&&!o[s].once||r&&o[s].context!==r)&&c.push(o[s]);c.length?this._events[a]=1===c.length?c[0]:c:l(this,a)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&l(this,e)):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},65266,t=>{"use strict";let e,r,n,i,a,o,s,l,c,u,f,d,h,p,m,v;var y=t.i(43476),g=t.i(71645);function b(t){return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:"CZK",minimumFractionDigits:0,maximumFractionDigits:0}).format(t).replace(/\s/g," ")}function x(t,e=1){return`${t.toFixed(e)}%`}
1function w(t){return Math.round(t).toLocaleString("cs-CZ")}function j(t){let e=parseFloat(t.replace(/\s/g,""));return isNaN(e)?0:e}function N(t){return t.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g," ")}var k=t.i(74080);function _(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function S(...t){return e=>{let r=!1,n=t.map(t=>{let n=_(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<n.length;e++){let r=n[e];"function"==typeof r?r():_(t[e],null)}}}}function A(...t){return g.useCallback(S(...t),t)}var O=Symbol("radix.slottable");function P(t){return g.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===O}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{var r,n;let i,a,o,s=(n=r=`Primitive.${e}`,(i=g.forwardRef((t,e)=>{let{children:r,...n}=t;if(g.isValidElement(r)){var i;let t,a,o=(i=r,(a=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.ref:(a=(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(t,e){let r={...e};for(let n in e){let i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...t)=>{let e=a(...t);return i(...t),e}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r.props);return r.type!==g.Fragment&&(s.ref=e?S(e,o):o),g.cloneElement(r,s)}return g.Children.count(r)>1?g.Children.only(null):null})).displayName=`${n}.SlotClone`,a=i,(o=g.forwardRef((t,e)=>{let{children:r,...n}=t,i=g.Children.toArray(r),o=i.find(P);if(o){let t=o.props.children,r=i.map(e=>e!==o?e:g.Children.count(t)>1?g.Children.only(null):g.isValidElement(t)?t.props.children:null);return(0,y.jsx)(a,{...n,ref:e,children:g.isValidElement(t)?g.cloneElement(t,void 0,r):null})}return(0,y.jsx)(a,{...n,ref:e,children:r})})).displayName=`${r}.Slot`,o),l=g.forwardRef((t,r)=>{let{asChild:n,...i}=t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,y.jsx)(n?s:e,{...i,ref:r})});return l.displayName=`Primitive.${e}`,{...t,[e]:l}},{}),C=g.forwardRef((t,e)=>(0,y.jsx)(E.label,{...t,ref:e,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));function L(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}(t))&&(n&&(n+=" "),n+=e);return n}C.displayName="Label";let M=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,T=(t,e)=>r=>{var n;if((null==e?void 0:e.variants)==null)return L(t,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:a}=e,o=Object.keys(i).map(t=>{let e=null==r?void 0:r[t],n=null==a?void 0:a[t];if(null===e)return null;let o=M(e)||M(n);return i[t][o]}),s=r&&Object.entries(r).reduce((t,e)=>{let[r,n]=e;return void 0===n||(t[r]=n),t},{});return L(t,o,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:r,className:n,...i}=e;return Object.entries(i).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...a,...s}[e]):({...a,...s})[e]===r})?[...t,r,n]:t},[]),null==r?void 0:r.class,null==r?void 0:r.className)},I=(t,e)=>{if(0===t.length)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),i=n?I(t.slice(1),n):void 0;if(i)return i;if(0===e.validators.length)return;let a=t.join("-");return e.validators.find(({validator:t})=>t(a))?.classGroupId},D=/^\[(.+)\]$/,R=(t,e,r,n)=>{t.forEach(t=>{if("string"==typeof t){(""===t?e:z(e,t)).classGroupId=r;return}"function"==typeof t?F(t)?R(t(n),e,r,n):e.validators.push({validator:t,classGroupId:r}):Object.entries(t).forEach(([t,i])=>{R(i,z(e,t),r,n)})})},z=(t,e)=>{let r=t;return e.split("-").forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},F=t=>t.isThemeGetter,B=/\s+/;function q(){let t,e,r=0,n="";for(;r<arguments.length;)(t=arguments[r++])&&(e=U(t))&&(n&&(n+=" "),n+=e);return n}let U=t=>{let e;if("string"==typeof t)return t;let r="";for(let n=0;n<t.length;n++)t[n]&&(e=U(t[n]))&&(r&&(r+=" "),r+=e);return r},V=t=>{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},H=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$=/^\d+\/\d+$/,G=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,X=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=t=>$.test(t),Q=t=>!!t&&!Number.isNaN(Number(t)),tt=t=>!!t&&Number.isInteger(Number(t)),te=t=>t.endsWith("%")&&Q(t.slice(0,-1)),tr=t=>G.test(t),tn=()=>!0,ti=t=>K.test(t)&&!Y.test(t),ta=()=>!1,to=t=>X.test(t),ts=t=>Z.test(t),tl=t=>!tu(t)&&!tv(t),tc=t=>tN(t,tA,ta),tu=t=>H.test(t),tf=t=>tN(t,tO,ti),td=t=>tN(t,tP,Q),th=t=>tN(t,t_,ta),tp=t=>tN(t,tS,ts),tm=t=>tN(t,tC,to),tv=t=>W.test(t),ty=t=>tk(t,tO),tg=t=>tk(t,tE),tb=t=>tk(t,t_),tx=t=>tk(t,tA),tw=t=>tk(t,tS),tj=t=>tk(t,tC,!0),tN=(t,e,r)=>{let n=H.exec(t);return!!n&&(n[1]?e(n[1]):r(n[2]))},tk=(t,e,r=!1)=>{let n=W.exec(t);return!!n&&(n[1]?e(n[1]):r)},t_=t=>"position"===t||"percentage"===t,tS=t=>"image"===t||"url"===t,tA=t=>"length"===t||"size"===t||"bg-size"===t,tO=t=>"length"===t,tP=t=>"number"===t,tE=t=>"family-name"===t,tC=t=>"shadow"===t,tL=function(t,...e){let r,n,i,a=function(s){var l;let c;return n=(r={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++e>t&&(e=0,n=r,r=new Map)};return{get(t){let e=r.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(i(t,e),e):void 0},set(t,e){r.has(t)?r.set(t,e):i(t,e)}}})((l=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:r}=t,n=t=>{let e,r,n=[],i=0,a=0,o=0;for(let e=0;e<t.length;e++){let s=t[e];if(0===i&&0===a){if(":"===s){n.push(t.slice(o,e)),o=e+1;continue}if("/"===s){r=e;continue}}"["===s?i++:"]"===s?i--:"("===s?a++:")"===s&&a--}let s=0===n.length?t:t.substring(o),l=(e=s).endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e;return{modifiers:n,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:r&&r>o?r-o:void 0}};if(e){let t=e+":",r=n;n=e=>e.startsWith(t)?r(e.substring(t.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:e,maybePostfixModifierPosition:void 0}}if(r){let t=n;n=e=>r({className:e,parseClassName:t})}return n})(l),sortModifiers:(c=Object.fromEntries(l.orderSensitiveModifiers.map(t=>[t,!0])),t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(t=>{"["===t[0]||c[t]?(e.push(...r.sort(),t),r=[]):r.push(t)}),e.push(...r.sort()),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(let t in r)R(r[t],n,t,e);return n})(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:t=>{let r=t.split("-");return""===r[0]&&1!==r.length&&r.shift(),I(r,e)||(t=>{if(D.test(t)){let e=D.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}})(t)},getConflictingClassGroupIds:(t,e)=>{let i=r[t]||[];return e&&n[t]?[...i,...n[t]]:i}}})(l)}).cache.get,i=r.cache.set,a=o,o(s)};function o(t){let e=n(t);if(e)return e;let a=((t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=e,o=[],s=t.trim().split(B),l="";for(let t=s.length-1;t>=0;t-=1){let e=s[t],{isExternal:c,modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(e);
vendor: 4,521 bytes, line 1
1if(c){l=e+(l.length>0?" "+l:l);continue}let p=!!h,m=n(p?d.substring(0,h):d);if(!m){if(!p||!(m=n(d))){l=e+(l.length>0?" "+l:l);continue}p=!1}let v=a(u).join(":"),y=f?v+"!":v,g=y+m;if(o.includes(g))continue;o.push(g);let b=i(m,p);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,r);return i(t,a),a}return function(){return a(q.apply(null,arguments))}}(()=>{let t=V("color"),e=V("font"),r=V("text"),n=V("font-weight"),i=V("tracking"),a=V("leading"),o=V("breakpoint"),s=V("container"),l=V("spacing"),c=V("radius"),u=V("shadow"),f=V("inset-shadow"),d=V("text-shadow"),h=V("drop-shadow"),p=V("blur"),m=V("perspective"),v=V("aspect"),y=V("ease"),g=V("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),tv,tu],j=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],k=()=>[tv,tu,l],_=()=>[J,"full","auto",...k()],S=()=>[tt,"none","subgrid",tv,tu],A=()=>["auto",{span:["full",tt,tv,tu]},tt,tv,tu],O=()=>[tt,"auto",tv,tu],P=()=>["auto","min","max","fr",tv,tu],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],C=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...k()],M=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],T=()=>[t,tv,tu],I=()=>[...x(),tb,th,{position:[tv,tu]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",tx,tc,{size:[tv,tu]}],z=()=>[te,ty,tf],F=()=>["","none","full",c,tv,tu],B=()=>["",Q,ty,tf],q=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[Q,te,tb,th],W=()=>["","none",p,tv,tu],$=()=>["none",Q,tv,tu],G=()=>["none",Q,tv,tu],K=()=>[Q,tv,tu],Y=()=>[J,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[tr],breakpoint:[tr],color:[tn],container:[tr],"drop-shadow":[tr],ease:["in","out","in-out"],font:[tl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[tr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[tr],shadow:[tr],spacing:["px",Q],text:[tr],"text-shadow":[tr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,tu,tv,v]}],container:["container"],columns:[{columns:[Q,tu,tv,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[tt,"auto",tv,tu]}],basis:[{basis:[J,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,J,"auto","initial","none",tu]}],grow:[{grow:["",Q,tv,tu]}],shrink:[{shrink:["",Q,tv,tu]}],order:[{order:[tt,"first","last","none",tv,tu]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":O()}
vendor: 10,968 bytes, line 1
1],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...C(),"normal"]}],"justify-self":[{"justify-self":["auto",...C()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...C(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...C(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...C(),"baseline"]}],"place-self":[{"place-self":["auto",...C()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[s,"screen",...M()]}],"min-w":[{"min-w":[s,"screen","none",...M()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",r,ty,tf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,tv,td]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,tu]}],"font-family":[{font:[tg,tu,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,tv,tu]}],"line-clamp":[{"line-clamp":[Q,"none",tv,td]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",tv,tu]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tv,tu]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",tv,tf]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Q,"auto",tv,tu]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tv,tu]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tv,tu]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tt,tv,tu],radial:["",tv,tu],conic:[tt,tv,tu]},tw,tp]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,tv,tu]}],"outline-w":[{outline:["",Q,ty,tf]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,tj,tm]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",f,tj,tm]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Q,tf]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,tj,tm]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Q,tv,tu]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[tv,tu]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tv,tu]}],filter:[{filter:["","none",tv,tu]}],blur:[{blur:W()}],brightness:[{brightness:[Q,tv,tu]}],contrast:[{contrast:[Q,tv,tu]}],"drop-shadow":[{"drop-shadow":["","none",h,tj,tm]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Q,tv,tu]}],"hue-rotate":[{"hue-rotate":[Q,tv,tu]}],invert:[{invert:["",Q,tv,tu]}],saturate:[{saturate:[Q,tv,tu]}],sepia:[{sepia:["",Q,tv,tu]}],"backdrop-filter":[{"backdrop-filter":["","none",tv,tu]}],"backdrop-blur":[{"backdrop-blur":W()}],"backdrop-brightness":[{"backdrop-brightness":[Q,tv,tu]}],"backdrop-contrast":[{"backdrop-contrast":[Q,tv,tu]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,tv,tu]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,tv,tu]}],"backdrop-invert":[{"backdrop-invert":["",Q,tv,tu]}],"backdrop-opacity":[{"backdrop-opacity":[Q,tv,tu]}],"backdrop-saturate":[{"backdrop-saturate":[Q,tv,tu]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,tv,tu]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tv,tu]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",tv,tu]}],ease:[{ease:["linear","initial",y,tv,tu]}],delay:[{delay:[Q,tv,tu]}],animate:[{animate:["none",g,tv,tu]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,tv,tu]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[tv,tu,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tv,tu]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tv,tu]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Q,ty,tf,td]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function tM(...t){return tL(L(t))}let tT=T("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tI=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(C,{ref:r,className:tM(tT(),t),...e}));tI.displayName=C.displayName;let tD=g.forwardRef(({className:t,type:e,...r},n)=>(0,y.jsx)("input",{type:e,className:tM("flex h-10 w-full rounded-sm border border-stone-200 bg-background px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...r}));function tR(t,[e,r]){return Math.min(r,Math.max(e,t))}function tz(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),!1===r||!n.defaultPrevented)return e?.(n)}}function tF(t,e=[]){let r=[],n=()=>{let e=r.map(t=>g.createContext(t));return function(r){let n=r?.[t]||e;return g.useMemo(()=>({[`__scope${t}`]:{...r,[t]:n}}),[r,n])}};return n.scopeName=t,[function(e,n){let i=g.createContext(n),a=r.length;r=[...r,n];let o=e=>{let{scope:r,children:n,...o}=e,s=r?.[t]?.[a]||i,l=g.useMemo(()=>o,Object.values(o));return(0,y.jsx)(s.Provider,{value:l,children:n})};return o.displayName=e+"Provider",[o,function(r,o){let s=o?.[t]?.[a]||i,l=g.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let r=()=>{let r=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let n=r.reduce((e,{useScope:r,scopeName:n})=>{let i=r(t)[`__scope${n}`];return{...e,...i}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:n}),[n])}};return r.scopeName=e.scopeName,r}(n,...e)]}tD.displayName="Input","undefined"!=typeof window&&window.document&&window.document.createElement;var tB=globalThis?.document?g.useLayoutEffect:()=>{};g[" useEffectEvent ".trim().toString()],g[" useInsertionEffect ".trim().toString()];var tq=g[" useInsertionEffect ".trim().toString()]||tB;function tU({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){let[i,a,o]=function({defaultProp:t,onChange:e}){let[r,n]=g.useState(t),i=g.useRef(r),a=g.useRef(e);return tq(()=>{a.current=e},[e]),g.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}({defaultProp:e,onChange:r}),s=void 0!==t,l=s?t:i;{let e=g.useRef(void 0!==t);g.useEffect(()=>{let t=e.current;if(t!==s){let e=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=s},[s,n])}return[l,g.useCallback(e=>{if(s){let r="function"==typeof e?e(t):e;r!==t&&o.current?.(r)}else a(e)},[s,t,a,o])]}Symbol("RADIX:SYNC_STATE");var tV=g.createContext(void 0);function tH(t){let e=g.useContext(tV);return t||e||"ltr"}function tW(t){let e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function t$(t){let[e,r]=g.useState(void 0);return tB(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let n,i;if(!Array.isArray(e)||!e.length)return;let a=e[0];if("borderBoxSize"in a){let t=a.borderBoxSize,e=Array.isArray(t)?t[0]:t;n=e.inlineSize,i=e.blockSize}else n=t.offsetWidth,i=t.offsetHeight;r({width:n,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),e}function tG(t){var e;let r,n=(e=t,(r=g.forwardRef((t,e)=>{let{children:r,...n}=t;if(g.isValidElement(r)){var i;let t,a,o=(i=r,(a=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.ref:(a=(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(t,e){let r={...e};for(let n in e){let i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...t)=>{let e=a(...t);return i(...t),e}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r.props);return r.type!==g.Fragment&&(s.ref=e?S(e,o):o),g.cloneElement(r,s)}return g.Children.count(r)>1?g.Children.only(null):null})).displayName=`${e}.SlotClone`,r),i=g.forwardRef((t,e)=>{let{children:r,...i}=t,a=g.Children.toArray(r),o=a.find(tY);
1if(o){let t=o.props.children,r=a.map(e=>e!==o?e:g.Children.count(t)>1?g.Children.only(null):g.isValidElement(t)?t.props.children:null);return(0,y.jsx)(n,{...i,ref:e,children:g.isValidElement(t)?g.cloneElement(t,void 0,r):null})}return(0,y.jsx)(n,{...i,ref:e,children:r})});return i.displayName=`${t}.Slot`,i}var tK=Symbol("radix.slottable");function tY(t){return g.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===tK}function tX(t){let e=t+"CollectionProvider",[r,n]=tF(e),[i,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=t=>{let{scope:e,children:r}=t,n=g.default.useRef(null),a=g.default.useRef(new Map).current;return(0,y.jsx)(i,{scope:e,itemMap:a,collectionRef:n,children:r})};o.displayName=e;let s=t+"CollectionSlot",l=tG(s),c=g.default.forwardRef((t,e)=>{let{scope:r,children:n}=t,i=A(e,a(s,r).collectionRef);return(0,y.jsx)(l,{ref:i,children:n})});c.displayName=s;let u=t+"CollectionItemSlot",f="data-radix-collection-item",d=tG(u),h=g.default.forwardRef((t,e)=>{let{scope:r,children:n,...i}=t,o=g.default.useRef(null),s=A(e,o),l=a(u,r);return g.default.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,y.jsx)(d,{...{[f]:""},ref:s,children:n})});return h.displayName=u,[{Provider:o,Slot:c,ItemSlot:h},function(e){let r=a(t+"CollectionConsumer",e);return g.default.useCallback(()=>{let t=r.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort((t,r)=>e.indexOf(t.ref.current)-e.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var tZ=new WeakMap;function tJ(t,e){var r,n;let i,a,o;if("at"in Array.prototype)return Array.prototype.at.call(t,e);let s=(r=t,n=e,i=r.length,(o=(a=tQ(n))>=0?a:i+a)<0||o>=i?-1:o);return -1===s?void 0:t[s]}function tQ(t){return t!=t||0===t?0:Math.trunc(t)}(class t extends Map{#t;constructor(t){super(t),this.#t=[...super.keys()],tZ.set(this,!0)}set(t,e){return tZ.get(this)&&(this.has(t)?this.#t[this.#t.indexOf(t)]=t:this.#t.push(t)),super.set(t,e),this}insert(t,e,r){let n,i=this.has(e),a=this.#t.length,o=tQ(t),s=o>=0?o:a+o,l=s<0||s>=a?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(e,r),this;let c=this.size+ +!i;o<0&&s++;let u=[...this.#t],f=!1;for(let t=s;t<c;t++)if(s===t){let a=u[t];u[t]===e&&(a=u[t+1]),i&&this.delete(e),n=this.get(a),this.set(e,r)}else{f||u[t-1]!==e||(f=!0);let r=u[f?t:t-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(e,r,n){let i=new t(this);return i.insert(e,r,n),i}before(t){let e=this.#t.indexOf(t)-1;if(!(e<0))return this.entryAt(e)}setBefore(t,e,r){let n=this.#t.indexOf(t);return -1===n?this:this.insert(n,e,r)}after(t){let e=this.#t.indexOf(t);if(-1!==(e=-1===e||e===this.size-1?-1:e+1))return this.entryAt(e)}setAfter(t,e,r){let n=this.#t.indexOf(t);return -1===n?this:this.insert(n+1,e,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#t=[],super.clear()}delete(t){let e=super.delete(t);return e&&this.#t.splice(this.#t.indexOf(t),1),e}deleteAt(t){let e=this.keyAt(t);return void 0!==e&&this.delete(e)}at(t){let e=tJ(this.#t,t);if(void 0!==e)return this.get(e)}entryAt(t){let e=tJ(this.#t,t);if(void 0!==e)return[e,this.get(e)]}indexOf(t){return this.#t.indexOf(t)}keyAt(t){return tJ(this.#t,t)}from(t,e){let r=this.indexOf(t);if(-1===r)return;let n=r+e;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(t,e){let r=this.indexOf(t);if(-1===r)return;let n=r+e;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(t,e){let r=0;for(let n of this){if(Reflect.apply(t,e,[n,r,this]))return n;r++}}findIndex(t,e){let r=0;for(let n of this){if(Reflect.apply(t,e,[n,r,this]))return r;r++}return -1}filter(e,r){let n=[],i=0;for(let t of this)Reflect.apply(e,r,[t,i,this])&&n.push(t),i++;return new t(n)}map(e,r){let n=[],i=0;for(let t of this)n.push([t[0],Reflect.apply(e,r,[t,i,this])]),i++;return new t(n)}reduce(...t){let[e,r]=t,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===t.length?r:Reflect.apply(e,this,[i,r,n,this]),n++;return i}reduceRight(...t){let[e,r]=t,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===t.length?i:Reflect.apply(e,this,[n,i,r,this])}return n}toSorted(e){return new t([...this.entries()].sort(e))}toReversed(){let e=new t;for(let t=this.size-1;t>=0;t--){let r=this.keyAt(t),n=this.get(r);e.set(r,n)}return e}toSpliced(...e){let r=[...this.entries()];return r.splice(...e),new t(r)}slice(e,r){let n=new t,i=this.size-1;if(void 0===e)return n;e<0&&(e+=this.size),void 0!==r&&r>0&&(i=r-1);for(let t=e;t<=i;t++){let e=this.keyAt(t),r=this.get(e);n.set(e,r)}return n}every(t,e){let r=0;for(let n of this){if(!Reflect.apply(t,e,[n,r,this]))return!1;r++}return!0}some(t,e){let r=0;for(let n of this){if(Reflect.apply(t,e,[n,r,this]))return!0;r++}return!1}});var t0=["PageUp","PageDown"],t1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],t2={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},t5="Slider",[t3,t4,t6]=tX(t5),[t8,t7]=tF(t5,[t6]),[t9,et]=t8(t5),ee=g.forwardRef((t,e)=>{let{name:r,min:n=0,max:i=100,step:a=1,orientation:o="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:h=!1,form:p,...m}=t,v=g.useRef(new Set),b=g.useRef(0),x="horizontal"===o,[w=[],j]=tU({prop:u,defaultProp:c,onChange:t=>{let e=[...v.current];e[b.current]?.focus(),f(t)}}),N=g.useRef(w);function k(t,e,{commit:r}={commit:!1}){let o,s=(String(a).split(".")[1]||"").length,c=tR(Math.round((Math.round((t-n)/a)*a+n)*(o=Math.pow(10,s)))/o,[n,i]);j((t=[])=>{let n=function(t=[],e,r){let n=[...t];return n[r]=e,n.sort((t,e)=>t-e)}(t,c,e);if(!function(t,e){if(e>0)return Math.min(...t.slice(0,-1).map((e,r)=>t[r+1]-e))>=e;return!0}(n,l*a))return t;{b.current=n.indexOf(c);let e=String(n)!==String(t);return e&&r&&d(n),e?n:t}})}return(0,y.jsx)(t9,{scope:t.__scopeSlider,name:r,disabled:s,min:n,max:i,valueIndexToChangeRef:b,thumbs:v.current,values:w,orientation:o,form:p,children:(0,y.jsx)(t3.Provider,{scope:t.__scopeSlider,children:(0,y.jsx)(t3.Slot,{scope:t.__scopeSlider,children:(0,y.jsx)(x?ei:ea,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:e,onPointerDown:tz(m.onPointerDown,()=>{s||(N.current=w)}),min:n,max:i,inverted:h,onSlideStart:s?void 0:function(t){let e=function(t,e){if(1===t.length)return 0;let r=t.map(t=>Math.abs(t-e)),n=Math.min(...r);return r.indexOf(n)}(w,t);k(t,e)},onSlideMove:s?void 0:function(t){k(t,b.current)},onSlideEnd:s?void 0:function(){let t=N.current[b.current];w[b.current]!==t&&d(w)},onHomeKeyDown:()=>!s&&k(n,0,{commit:!0}),onEndKeyDown:()=>!s&&k(i,w.length-1,{commit:!0}),onStepKeyDown:({event:t,direction:e})=>{if(!s){let r=t0.includes(t.key)||t.shiftKey&&t1.includes(t.key),n=b.current;k(w[n]+a*(r?10:1)*e,n,{commit:!0})}}})})})})});ee.displayName=t5;var[er,en]=t8(t5,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ei=g.forwardRef((t,e)=>{let{min:r,max:n,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=t,[f,d]=g.useState(null),h=A(e,t=>d(t)),p=g.useRef(void 0),m=tH(i),v="ltr"===m,b=v&&!a||!v&&a;function x(t){let e=p.current||f.getBoundingClientRect(),i=ev([0,e.width],b?[r,n]:[n,r]);return p.current=e,i(t-e.left)}return(0,y.jsx)(er,{scope:t.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,y.jsx)(eo,{dir:m,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:t=>{let e=x(t.clientX);o?.(e)},onSlideMove:t=>{let e=x(t.clientX);s?.(e)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:t=>{let e=t2[b?"from-left":"from-right"].includes(t.key);c?.({event:t,direction:e?-1:1})}})})}),ea=g.forwardRef((t,e)=>{let{min:r,max:n,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:l,...c}=t,u=g.useRef(null),f=A(e,u),d=g.useRef(void 0),h=!i;function p(t){let e=d.current||u.current.getBoundingClientRect(),i=ev([0,e.height],h?[n,r]:[r,n]);return d.current=e,i(t-e.top)}return(0,y.jsx)(er,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,y.jsx)(eo,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:t=>{let e=p(t.clientY);a?.(e)},onSlideMove:t=>{let e=p(t.clientY);o?.(e)},onSlideEnd:()=>{d.current=void 0,s?.()},onStepKeyDown:t=>{let e=t2[h?"from-bottom":"from-top"].includes(t.key);l?.({event:t,direction:e?-1:1})}})})}),eo=g.forwardRef((t,e)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:l,...c}=t,u=et(t5,r);return(0,y.jsx)(E.span,{...c,ref:e,onKeyDown:tz(t.onKeyDown,t=>{"Home"===t.key?(o(t),t.preventDefault()):"End"===t.key?(s(t),t.preventDefault()):t0.concat(t1).includes(t.key)&&(l(t),t.preventDefault())}),onPointerDown:tz(t.onPointerDown,t=>{let e=t.target;e.setPointerCapture(t.pointerId),t.preventDefault(),u.thumbs.has(e)?e.focus():n(t)}),onPointerMove:tz(t.onPointerMove,t=>{t.target.hasPointerCapture(t.pointerId)&&i(t)}),onPointerUp:tz(t.onPointerUp,t=>{let e=t.target;e.hasPointerCapture(t.pointerId)&&(e.releasePointerCapture(t.pointerId),a(t))})})}),es="SliderTrack",el=g.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,i=et(es,r);return(0,y.jsx)(E.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:e})});el.displayName=es;var ec="SliderRange",eu=g.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,i=et(ec,r),a=en(ec,r),o=A(e,g.useRef(null)),s=i.values.length,l=i.values.map(t=>em(t,i.min,i.max)),c=s>1?Math.min(...l):0,u=100-Math.max(...l);return(0,y.jsx)(E.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...n,ref:o,style:{...t.style,[a.startEdge]:c+"%",[a.endEdge]:u+"%"}})});eu.displayName=ec;var ef="SliderThumb",ed=g.forwardRef((t,e)=>{let r=t4(t.__scopeSlider),[n,i]=g.useState(null),a=A(e,t=>i(t)),o=g.useMemo(()=>n?r().findIndex(t=>t.ref.current===n):-1,[r,n]);
1return(0,y.jsx)(eh,{...t,ref:a,index:o})}),eh=g.forwardRef((t,e)=>{var r,n,i,a,o;let s,l,{__scopeSlider:c,index:u,name:f,...d}=t,h=et(ef,c),p=en(ef,c),[m,v]=g.useState(null),b=A(e,t=>v(t)),x=!m||h.form||!!m.closest("form"),w=t$(m),j=h.values[u],N=void 0===j?0:em(j,h.min,h.max),k=(r=u,(n=h.values.length)>2?`Value ${r+1} of ${n}`:2===n?["Minimum","Maximum"][r]:void 0),_=w?.[p.size],S=_?(i=_,a=N,o=p.direction,l=ev([0,50],[0,s=i/2]),(s-l(a)*o)*o):0;return g.useEffect(()=>{if(m)return h.thumbs.add(m),()=>{h.thumbs.delete(m)}},[m,h.thumbs]),(0,y.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:`calc(${N}% + ${S}px)`},children:[(0,y.jsx)(t3.ItemSlot,{scope:t.__scopeSlider,children:(0,y.jsx)(E.span,{role:"slider","aria-label":t["aria-label"]||k,"aria-valuemin":h.min,"aria-valuenow":j,"aria-valuemax":h.max,"aria-orientation":h.orientation,"data-orientation":h.orientation,"data-disabled":h.disabled?"":void 0,tabIndex:h.disabled?void 0:0,...d,ref:b,style:void 0===j?{display:"none"}:t.style,onFocus:tz(t.onFocus,()=>{h.valueIndexToChangeRef.current=u})})}),x&&(0,y.jsx)(ep,{name:f??(h.name?h.name+(h.values.length>1?"[]":""):void 0),form:h.form,value:j},u)]})});ed.displayName=ef;var ep=g.forwardRef(({__scopeSlider:t,value:e,...r},n)=>{let i=g.useRef(null),a=A(i,n),o=tW(e);return g.useEffect(()=>{let t=i.current;if(!t)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==e&&r){let n=new Event("input",{bubbles:!0});r.call(t,e),t.dispatchEvent(n)}},[o,e]),(0,y.jsx)(E.input,{style:{display:"none"},...r,ref:a,defaultValue:e})});function em(t,e,r){return tR(100/(r-e)*(t-e),[0,100])}function ev(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];let n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}ep.displayName="RadioBubbleInput";let ey=g.forwardRef(({className:t,...e},r)=>(0,y.jsxs)(ee,{ref:r,className:tM("relative flex w-full touch-none select-none items-center",t),...e,children:[(0,y.jsx)(el,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-muted",children:(0,y.jsx)(eu,{className:"absolute h-full bg-primary"})}),(0,y.jsx)(ed,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));ey.displayName=ee.displayName;let eg=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("div",{ref:r,className:tM("rounded-sm border bg-card text-card-foreground shadow-sm",t),...e}));eg.displayName="Card";let eb=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("div",{ref:r,className:tM("flex flex-col space-y-1.5 p-6",t),...e}));eb.displayName="CardHeader";let ex=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("h3",{ref:r,className:tM("text-2xl font-semibold leading-none tracking-tight",t),...e}));ex.displayName="CardTitle",g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("p",{ref:r,className:tM("text-sm text-muted-foreground",t),...e})).displayName="CardDescription";let ew=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("div",{ref:r,className:tM("p-6 pt-0",t),...e}));ew.displayName="CardContent",g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("div",{ref:r,className:tM("flex items-center p-6 pt-0",t),...e})).displayName="CardFooter";var ej=Symbol.for("react.lazy"),eN=g[" use ".trim().toString()];function ek(t){var e;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===ej&&"_payload"in t&&"object"==typeof(e=t._payload)&&null!==e&&"then"in e}var e_=((p=g.forwardRef((t,e)=>{let{children:r,...n}=t;if(ek(r)&&"function"==typeof eN&&(r=eN(r._payload)),g.isValidElement(r)){var i;let t,a,o=(i=r,(a=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.ref:(a=(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(t,e){let r={...e};for(let n in e){let i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...t)=>{let e=a(...t);return i(...t),e}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}
1:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r.props);return r.type!==g.Fragment&&(s.ref=e?S(e,o):o),g.cloneElement(r,s)}return g.Children.count(r)>1?g.Children.only(null):null})).displayName="Slot.SlotClone",o=p,(s=g.forwardRef((t,e)=>{let{children:r,...n}=t;ek(r)&&"function"==typeof eN&&(r=eN(r._payload));let i=g.Children.toArray(r),a=i.find(eA);if(a){let t=a.props.children,r=i.map(e=>e!==a?e:g.Children.count(t)>1?g.Children.only(null):g.isValidElement(t)?t.props.children:null);return(0,y.jsx)(o,{...n,ref:e,children:g.isValidElement(t)?g.cloneElement(t,void 0,r):null})}return(0,y.jsx)(o,{...n,ref:e,children:r})})).displayName="Slot.Slot",s),eS=Symbol("radix.slottable");function eA(t){return g.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===eS}let eO=T("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 rounded-sm",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground bg-card",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),eP=g.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},a)=>(0,y.jsx)(n?e_:"button",{className:tM(eO({variant:e,size:r,className:t})),ref:a,...i}));eP.displayName="Button";var eE=g[" useId ".trim().toString()]||(()=>void 0),eC=0;function eL(t){let[e,r]=g.useState(eE());return tB(()=>{t||r(t=>t??String(eC++))},[t]),t||(e?`radix-${e}`:"")}function eM(t){let e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...t)=>e.current?.(...t),[])}var eT="dismissableLayer.update",eI=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eD=g.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=t,c=g.useContext(eI),[u,f]=g.useState(null),d=u?.ownerDocument??globalThis?.document,[,h]=g.useState({}),p=A(e,t=>f(t)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(v),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,N=function(t,e=globalThis?.document){let r=eM(t),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{let t=t=>{if(t.target&&!n.current){let n=function(){ez("dismissableLayer.pointerDownOutside",r,a,{discrete:!0})},a={originalEvent:t};"touch"===t.pointerType?(e.removeEventListener("click",i.current),i.current=n,e.addEventListener("click",i.current,{once:!0})):n()}else e.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",t),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}(t=>{let e=t.target,r=[...c.branches].some(t=>t.contains(e));j&&!r&&(i?.(t),o?.(t),t.defaultPrevented||s?.())},d),k=function(t,e=globalThis?.document){let r=eM(t),n=g.useRef(!1);return g.useEffect(()=>{let t=t=>{t.target&&!n.current&&ez("dismissableLayer.focusOutside",r,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(t=>{let e=t.target;![...c.branches].some(t=>t.contains(e))&&(a?.(t),o?.(t),t.defaultPrevented||s?.())},d);return!function(t,e=globalThis?.document){let r=eM(t);g.useEffect(()=>{let t=t=>{"Escape"===t.key&&r(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})},[r,e])}(t=>{x===c.layers.size-1&&(n?.(t),!t.defaultPrevented&&s&&(t.preventDefault(),s()))},d),g.useEffect(()=>{if(u)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Og=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),eR(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(d.body.style.pointerEvents=Og)}},[u,d,r,c]),g.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),eR())},[u,c]),g.useEffect(()=>{let t=()=>h({});return document.addEventListener(eT,t),()=>document.removeEventListener(eT,t)},[]),(0,y.jsx)(E.div,{...l,ref:p,style:{pointerEvents:w?j?"auto":"none":void 0,...t.style},onFocusCapture:tz(t.onFocusCapture,k.onFocusCapture),onBlurCapture:tz(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:tz(t.onPointerDownCapture,N.onPointerDownCapture)})});function eR(){let t=new CustomEvent(eT);document.dispatchEvent(t)}function ez(t,e,r,{discrete:n}){let i=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});if(e&&i.addEventListener(t,e,{once:!0}),n)i&&k.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}eD.displayName="DismissableLayer",g.forwardRef((t,e)=>{let r=g.useContext(eI),n=g.useRef(null),i=A(e,n);return g.useEffect(()=>{let t=n.current;if(t)return r.branches.add(t),()=>{r.branches.delete(t)}},[r.branches]),(0,y.jsx)(E.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var eF="focusScope.autoFocusOnMount",eB="focusScope.autoFocusOnUnmount",eq={bubbles:!1,cancelable:!0},eU=g.forwardRef((t,e)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=t,[s,l]=g.useState(null),c=eM(i),u=eM(a),f=g.useRef(null),d=A(e,t=>l(t)),h=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let t=function(t){if(h.paused||!s)return;let e=t.target;s.contains(e)?f.current=e:eW(f.current,{select:!0})},e=function(t){if(h.paused||!s)return;let e=t.relatedTarget;null!==e&&(s.contains(e)||eW(f.current,{select:!0}))};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let r=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&eW(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),r.disconnect()}}},[n,s,h.paused]),g.useEffect(()=>{if(s){e$.add(h);let t=document.activeElement;if(!s.contains(t)){let e=new CustomEvent(eF,eq);s.addEventListener(eF,c),s.dispatchEvent(e),e.defaultPrevented||(function(t,{select:e=!1}={}){let r=document.activeElement;for(let n of t)if(eW(n,{select:e}),document.activeElement!==r)return}(eV(s).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&eW(s))}return()=>{s.removeEventListener(eF,c),setTimeout(()=>{let e=new CustomEvent(eB,eq);s.addEventListener(eB,u),s.dispatchEvent(e),e.defaultPrevented||eW(t??document.body,{select:!0}),s.removeEventListener(eB,u),e$.remove(h)}
1,0)}}},[s,c,u,h]);let p=g.useCallback(t=>{if(!r&&!n||h.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,i=document.activeElement;if(e&&i){var a;let e,n=t.currentTarget,[o,s]=[eH(e=eV(a=n),a),eH(e.reverse(),a)];o&&s?t.shiftKey||i!==s?t.shiftKey&&i===o&&(t.preventDefault(),r&&eW(s,{select:!0})):(t.preventDefault(),r&&eW(o,{select:!0})):i===n&&t.preventDefault()}},[r,n,h.paused]);return(0,y.jsx)(E.div,{tabIndex:-1,...o,ref:d,onKeyDown:p})});function eV(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function eH(t,e){for(let r of t)if(!function(t,{upTo:e}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===e||t!==e);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(r,{upTo:e}))return r}function eW(t,{select:e=!1}={}){if(t&&t.focus){var r;let n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&(r=t)instanceof HTMLInputElement&&"select"in r&&e&&t.select()}}eU.displayName="FocusScope";var e$=(m=[],{add(t){let e=m[0];t!==e&&e?.pause(),(m=eG(m,t)).unshift(t)},remove(t){m=eG(m,t),m[0]?.resume()}});function eG(t,e){let r=[...t],n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}var eK=g.forwardRef((t,e)=>{let{container:r,...n}=t,[i,a]=g.useState(!1);tB(()=>a(!0),[]);let o=r||i&&globalThis?.document?.body;return o?k.default.createPortal((0,y.jsx)(E.div,{...n,ref:e}),o):null});eK.displayName="Portal";var eY=t=>{var e;let r,n,{present:i,children:a}=t,o=function(t){var e,r;let[n,i]=g.useState(),a=g.useRef(null),o=g.useRef(t),s=g.useRef("none"),[l,c]=(e=t?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},g.useReducer((t,e)=>r[t][e]??t,e));return g.useEffect(()=>{let t=eX(a.current);s.current="mounted"===l?t:"none"},[l]),tB(()=>{let e=a.current,r=o.current;if(r!==t){let n=s.current,i=eX(e);t?c("MOUNT"):"none"===i||e?.display==="none"?c("UNMOUNT"):r&&n!==i?c("ANIMATION_OUT"):c("UNMOUNT"),o.current=t}},[t,c]),tB(()=>{if(n){let t,e=n.ownerDocument.defaultView??window,r=r=>{let i=eX(a.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(c("ANIMATION_END"),!o.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",t=e.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},i=t=>{t.target===n&&(s.current=eX(a.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{e.clearTimeout(t),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(t=>{a.current=t?getComputedStyle(t):null,i(t)},[])}}(i),s="function"==typeof a?a({present:o.isPresent}):g.Children.only(a),l=A(o.ref,(e=s,(n=(r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref));return"function"==typeof a||o.isPresent?g.cloneElement(s,{ref:l}):null};function eX(t){return t?.animationName||"none"}eY.displayName="Presence";var eZ=0;function eJ(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var eQ=function(){return(eQ=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function e0(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}var e1=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),e2="width-before-scroll-bar";function e5(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var e3="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,e4=new WeakMap,e6=(void 0===An&&(An={}),(void 0===Ai&&(Ai=function(t){return t}),Aa=[],Ao=!1,As={read:function(){if(Ao)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Aa.length?Aa[Aa.length-1]:null},useMedium:function(t){var e=Ai(t,Ao);return Aa.push(e),function(){Aa=Aa.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(Ao=!0;Aa.length;){var e=Aa;Aa=[],e.forEach(t)}Aa={push:function(e){return t(e)},filter:function(){return Aa}}},assignMedium:function(t){Ao=!0;var e=[];
1if(Aa.length){var r=Aa;Aa=[],r.forEach(t),e=Aa}var n=function(){var r=e;e=[],r.forEach(t)},i=function(){return Promise.resolve().then(n)};i(),Aa={push:function(t){e.push(t),i()},filter:function(t){return e=e.filter(t),Aa}}}}).options=eQ({async:!0,ssr:!1},An),As),e8=function(){},e7=g.forwardRef(function(t,e){var r,n,i,a,o=g.useRef(null),s=g.useState({onScrollCapture:e8,onWheelCapture:e8,onTouchMoveCapture:e8}),l=s[0],c=s[1],u=t.forwardProps,f=t.children,d=t.className,h=t.removeScrollBar,p=t.enabled,m=t.shards,v=t.sideCar,y=t.noRelative,b=t.noIsolation,x=t.inert,w=t.allowPinchZoom,j=t.as,N=t.gapMode,k=e0(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=(r=[o,e],n=function(t){return r.forEach(function(e){return e5(e,t)})},(i=(0,g.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var t=i.value;t!==value&&(i.value=value,i.callback(value,t))}}}})[0]).callback=n,a=i.facade,e3(function(){var t=e4.get(a);if(t){var e=new Set(t),n=new Set(r),i=a.current;e.forEach(function(t){n.has(t)||e5(t,null)}),n.forEach(function(t){e.has(t)||e5(t,i)})}e4.set(a,r)},[r]),a),S=eQ(eQ({},k),l);return g.createElement(g.Fragment,null,p&&g.createElement(v,{sideCar:e6,removeScrollBar:h,shards:m,noRelative:y,noIsolation:b,inert:x,setCallbacks:c,allowPinchZoom:!!w,lockRef:o,gapMode:N}),u?g.cloneElement(g.Children.only(f),eQ(eQ({},S),{ref:_})):g.createElement(void 0===j?"div":j,eQ({},S,{className:d,ref:_}),f))});e7.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e7.classNames={fullWidth:e2,zeroRight:e1};var e9=function(t){var e=t.sideCar,r=e0(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw Error("Sidecar medium not found");return g.createElement(n,eQ({},r))};e9.isSideCarExport=!0;var rt=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Ob||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return e&&t.setAttribute("nonce",e),t}())){var n,i;(n=e).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),i=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},re=function(){var t=rt();return function(e,r){g.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},rr=function(){var t=re();return function(e){return t(e.styles,e.dynamic),null}},rn={left:0,top:0,right:0,gap:0},ri=function(t){return parseInt(t||"",10)||0},ra=function(t){var e=window.getComputedStyle(document.body),r=e["padding"===t?"paddingLeft":"marginLeft"],n=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[ri(r),ri(n),ri(i)]},ro=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return rn;var e=ra(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},rs=rr(),rl="data-scroll-locked",rc=function(t,e,r,n){var i=t.left,a=t.top,o=t.right,s=t.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(rl,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([e&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(e1," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(e2," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(e1," .").concat(e1," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(e2," .").concat(e2," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(rl,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},ru=function(){var t=parseInt(document.body.getAttribute(rl)||"0",10);return isFinite(t)?t:0},rf=function(){g.useEffect(function(){return document.body.setAttribute(rl,(ru()+1).toString()),function(){var t=ru(
1)-1;t<=0?document.body.removeAttribute(rl):document.body.setAttribute(rl,t.toString())}},[])},rd=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=void 0===n?"margin":n;rf();var a=g.useMemo(function(){return ro(i)},[i]);return g.createElement(rs,{styles:rc(a,!e,i,r?"":"!important")})},rh=!1;if("undefined"!=typeof window)try{var rp=Object.defineProperty({},"passive",{get:function(){return rh=!0,!0}});window.addEventListener("test",rp,rp),window.removeEventListener("test",rp,rp)}catch(t){rh=!1}var rm=!!rh&&{passive:!1},rv=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return"hidden"!==r[e]&&(r.overflowY!==r.overflowX||"TEXTAREA"===t.tagName||"visible"!==r[e])},ry=function(t,e){var r=e.ownerDocument,n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),rg(t,n)){var i=rb(t,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},rg=function(t,e){return"v"===t?rv(e,"overflowY"):rv(e,"overflowX")},rb=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},rx=function(t,e,r,n,i){var a,o=(a=window.getComputedStyle(e).direction,"h"===t&&"rtl"===a?-1:1),s=o*n,l=r.target,c=e.contains(l),u=!1,f=s>0,d=0,h=0;do{if(!l)break;var p=rb(t,l),m=p[0],v=p[1]-p[2]-o*m;(m||v)&&rg(t,l)&&(d+=v,h+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(e.contains(l)||e===l))return f&&(i&&1>Math.abs(d)||!i&&s>d)?u=!0:!f&&(i&&1>Math.abs(h)||!i&&-s>h)&&(u=!0),u},rw=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},rj=function(t){return[t.deltaX,t.deltaY]},rN=function(t){return t&&"current"in t?t.current:t},rk=0,r_=[];let rS=(Al=function(t){var e=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(rk++)[0],a=g.useState(rr)[0],o=g.useRef(t);g.useEffect(function(){o.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=(function(t,e,r){if(r||2==arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))})([t.lockRef.current],(t.shards||[]).map(rN),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var s=g.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!o.current.allowPinchZoom;var i,a=rw(t),s=r.current,l="deltaX"in t?t.deltaX:s[0]-a[0],c="deltaY"in t?t.deltaY:s[1]-a[1],u=t.target,f=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in t&&"h"===f&&"range"===u.type)return!1;var d=ry(f,u);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=ry(f,u)),!d)return!1;if(!n.current&&"changedTouches"in t&&(l||c)&&(n.current=i),!i)return!0;var h=n.current||i;return rx(h,e,t,"h"===h?l:c,!0)},[]),l=g.useCallback(function(t){if(r_.length&&r_[r_.length-1]===a){var r="deltaY"in t?rj(t):rw(t),n=e.current.filter(function(e){var n;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){t.cancelable&&t.preventDefault();return}if(!n){var i=(o.current.shards||[]).map(rN).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?s(t,i[0]):!o.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),c=g.useCallback(function(t,r,n,i){var a={name:t,delta:r,target:n,should:i,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(n)};e.current.push(a),setTimeout(function(){e.current=e.current.filter(function(t){return t!==a})},1)},[]),u=g.useCallback(function(t){r.current=rw(t),n.current=void 0},[]),f=g.useCallback(function(e){c(e.type,rj(e),e.target,s(e,t.lockRef.current))},[]),d=g.useCallback(function(e){c(e.type,rw(e),e.target,s(e,t.lockRef.current))},[]);g.useEffect(function(){return r_.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,rm),document.addEventListener("touchmove",l,rm),document.addEventListener("touchstart",u,rm),function(){r_=r_.filter(function(t){return t!==a}),document.removeEventListener("wheel",l,rm),document.removeEventListener("touchmove",l,rm),document.removeEventListener("touchstart",u,rm)}},[]);var h=t.removeScrollBar,p=t.inert;return g.createElement(g.Fragment,null,p?g.createElement(a,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?g.createElement(rd,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},e6.useMedium(Al),e9);var rA=g.forwardRef(function(t,e){return g.createElement(e7,eQ({},t,{ref:e,sideCar:rS}))});rA.classNames=e7.classNames;var rO=new WeakMap,rP=new WeakMap,rE={},rC=0,rL=function(t){return t&&(t.host||rL(t.parentNode))},rM=function(t,e,r,n){var i=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var r=rL(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});rE[r]||(rE[r]=new WeakMap);var a=rE[r],o=[],s=new Set,l=new Set(i),c=function(t){!t||s.has(t)||(s.add(t),c(t.parentNode))};
1i.forEach(c);var u=function(t){!t||l.has(t)||Array.prototype.forEach.call(t.children,function(t){if(s.has(t))u(t);else try{var e=t.getAttribute(n),i=null!==e&&"false"!==e,l=(rO.get(t)||0)+1,c=(a.get(t)||0)+1;rO.set(t,l),a.set(t,c),o.push(t),1===l&&i&&rP.set(t,!0),1===c&&t.setAttribute(r,"true"),i||t.setAttribute(n,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return u(e),s.clear(),rC++,function(){o.forEach(function(t){var e=rO.get(t)-1,i=a.get(t)-1;rO.set(t,e),a.set(t,i),e||(rP.has(t)||t.removeAttribute(n),rP.delete(t)),i||t.removeAttribute(r)}),--rC||(rO=new WeakMap,rO=new WeakMap,rP=new WeakMap,rE={})}},rT=function(t,e,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),rM(n,i,r,"aria-hidden")):function(){return null}},rI=Symbol("radix.slottable");function rD(t){return g.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===rI}var rR="Dialog",[rz,rF]=tF(rR),[rB,rq]=rz(rR),rU=t=>{let{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=t,s=g.useRef(null),l=g.useRef(null),[c,u]=tU({prop:n,defaultProp:i??!1,onChange:a,caller:rR});return(0,y.jsx)(rB,{scope:e,triggerRef:s,contentRef:l,contentId:eL(),titleId:eL(),descriptionId:eL(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(t=>!t),[u]),modal:o,children:r})};rU.displayName=rR;var rV="DialogTrigger",rH=g.forwardRef((t,e)=>{let{__scopeDialog:r,...n}=t,i=rq(rV,r),a=A(e,i.triggerRef);return(0,y.jsx)(E.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nt(i.open),...n,ref:a,onClick:tz(t.onClick,i.onOpenToggle)})});rH.displayName=rV;var rW="DialogPortal",[r$,rG]=rz(rW,{forceMount:void 0}),rK=t=>{let{__scopeDialog:e,forceMount:r,children:n,container:i}=t,a=rq(rW,e);return(0,y.jsx)(r$,{scope:e,forceMount:r,children:g.Children.map(n,t=>(0,y.jsx)(eY,{present:r||a.open,children:(0,y.jsx)(eK,{asChild:!0,container:i,children:t})}))})};rK.displayName=rW;var rY="DialogOverlay",rX=g.forwardRef((t,e)=>{let r=rG(rY,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,a=rq(rY,t.__scopeDialog);return a.modal?(0,y.jsx)(eY,{present:n||a.open,children:(0,y.jsx)(rJ,{...i,ref:e})}):null});rX.displayName=rY;var rZ=((v=g.forwardRef((t,e)=>{let{children:r,...n}=t;if(g.isValidElement(r)){var i;let t,a,o=(i=r,(a=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.ref:(a=(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(t,e){let r={...e};for(let n in e){let i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...t)=>{let e=a(...t);return i(...t),e}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r.props);return r.type!==g.Fragment&&(s.ref=e?S(e,o):o),g.cloneElement(r,s)}return g.Children.count(r)>1?g.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",l=v,(c=g.forwardRef((t,e)=>{let{children:r,...n}=t,i=g.Children.toArray(r),a=i.find(rD);if(a){let t=a.props.children,r=i.map(e=>e!==a?e:g.Children.count(t)>1?g.Children.only(null):g.isValidElement(t)?t.props.children:null);return(0,y.jsx)(l,{...n,ref:e,children:g.isValidElement(t)?g.cloneElement(t,void 0,r):null})}return(0,y.jsx)(l,{...n,ref:e,children:r})})).displayName="DialogOverlay.RemoveScroll.Slot",c),rJ=g.forwardRef((t,e)=>{let{__scopeDialog:r,...n}=t,i=rq(rY,r);return(0,y.jsx)(rA,{as:rZ,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(E.div,{"data-state":nt(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),rQ="DialogContent",r0=g.forwardRef((t,e)=>{let r=rG(rQ,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,a=rq(rQ,t.__scopeDialog);return(0,y.jsx)(eY,{present:n||a.open,children:a.modal?(0,y.jsx)(r1,{...i,ref:e}):(0,y.jsx)(r2,{...i,ref:e})})});r0.displayName=rQ;var r1=g.forwardRef((t,e)=>{let r=rq(rQ,t.__scopeDialog),n=g.useRef(null),i=A(e,r.contentRef,n);return g.useEffect(()=>{let t=n.current;if(t)return rT(t)},[]),(0,y.jsx)(r5,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tz(t.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:tz(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,r=0===e.button&&!0===e.ctrlKey;(2===e.button||r)&&t.preventDefault()}),onFocusOutside:tz(t.onFocusOutside,t=>t.preventDefault())})}),r2=g.forwardRef((t,e)=>{let r=rq(rQ,t.__scopeDialog),n=g.useRef(!1),i=g.useRef(!1);return(0,y.jsx)(r5,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||r.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));let a=e.target;r.triggerRef.current?.contains(a)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),r5=g.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=t,s=rq(rQ,r),l=g.useRef(null),c=A(e,l);return g.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??eJ()),document.body.insertAdjacentElement("beforeend",t[1]??eJ()),eZ++,()=>{1===eZ&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eZ--}},[]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(eU,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(eD,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":nt(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ni,{titleId:s.titleId}),(0,y.jsx)(na,{contentRef:l,descriptionId:s.descriptionId})]})]})}),r3="DialogTitle",r4=g.forwardRef((t,e)=>{let{__scopeDialog:r,...n}=t,i=rq(r3,r);return(0,y.jsx)(E.h2,{id:i.titleId,...n,ref:e})});r4.displayName=r3;var r6="DialogDescription",r8=g.forwardRef((t,e)=>{let{__scopeDialog:r,...n}=t,i=rq(r6,r);return(0,y.jsx)(E.p,{id:i.descriptionId,...n,ref:e})});r8.displayName=r6;var r7="DialogClose",r9=g.forwardRef((t,e)=>{let{__scopeDialog:r,...n}=t,i=rq(r7,r);return(0,y.jsx)(E.button,{type:"button",...n,ref:e,onClick:tz(t.onClick,()=>i.onOpenChange(!1))})});function nt(t){return t?"open":"closed"}r9.displayName=r7;var ne="DialogTitleWarning",[nr,nn]=(Ac={contentName:rQ,titleName:r3,docsSlug:"dialog"},u=g.createContext(Ac),(f=t=>{let{children:e,...r}=t,n=g.useMemo(()=>r,Object.values(r));return(0,y.jsx)(u.Provider,{value:n,children:e})}).displayName=ne+"Provider",[f,function(t){let e=g.useContext(u);if(e)return e;if(void 0!==Ac)return Ac;throw Error(`\`${t}\` must be used within \`${ne}\``)}]),ni=({titleId:t})=>{let e=nn(ne),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},na=({contentRef:t,descriptionId:e})=>{let r=nn("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return g.useEffect(()=>{let r=t.current?.getAttribute("aria-describedby");e&&r&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null};let no=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,r)=>r?r.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)},ns=(...t)=>t.filter((t,e,r)=>!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim();var nl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let nc=(0,g.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>(0,g.createElement)("svg",{ref:l,...nl,width:e,height:e,stroke:t,strokeWidth:n?24*Number(r)/Number(e):r,className:ns("lucide",i),...!a&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0})(s)&&{"aria-hidden":"true"},...s},[...o.map(([t,e])=>(0,g.createElement)(t,e)),...Array.isArray(a)?a:[a]])),nu=(t,e)=>{let r=(0,g.forwardRef)(({className:r,...n},i)=>(0,g.createElement)(nc,{ref:i,iconNode:e,className:ns(`lucide-${no(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,r),...n}));return r.displayName=no(t),r},nf=nu("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
5],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nd=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(rX,{ref:r,className:tM("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));nd.displayName=rX.displayName;let nh=g.forwardRef(({className:t,children:e,...r},n)=>(0,y.jsxs)(rK,{children:[(0,y.jsx)(nd,{}),(0,y.jsxs)(r0,{ref:n,className:tM("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[e,(0,y.jsxs)(r9,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,y.jsx)(nf,{className:"h-4 w-4"}),(0,y.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));nh.displayName=r0.displayName;let np=({className:t,...e})=>(0,y.jsx)("div",{className:tM("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});np.displayName="DialogHeader";let nm=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(r4,{ref:r,className:tM("text-lg font-semibold leading-none tracking-tight",t),...e}));nm.displayName=r4.displayName,g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(r8,{ref:r,className:tM("text-sm text-muted-foreground",t),...e})).displayName=r8.displayName;let nv=["top","right","bottom","left"],ny=Math.min,ng=Math.max,nb=Math.round,nx=Math.floor,nw=t=>({x:t,y:t}),nj={left:"right",right:"left",bottom:"top",top:"bottom"},nN={start:"end",end:"start"};function nk(t,e){return"function"==typeof t?t(e):t}function n_(t){return t.split("-")[0]}function nS(t){return t.split("-")[1]}function nA(t){return"x"===t?"y":"x"}function nO(t){return"y"===t?"height":"width"}let nP=new Set(["top","bottom"]);function nE(t){return nP.has(n_(t))?"y":"x"}function nC(t){return t.replace(/start|end/g,t=>nN[t])}let nL=["left","right"],nM=["right","left"],nT=["top","bottom"],nI=["bottom","top"];function nD(t){return t.replace(/left|right|bottom|top/g,t=>nj[t])}function nR(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function nz(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function nF(t,e,r){let n,{reference:i,floating:a}=t,o=nE(e),s=nA(nE(e)),l=nO(s),c=n_(e),u="y"===o,f=i.x+i.width/2-a.width/2,d=i.y+i.height/2-a.height/2,h=i[l]/2-a[l]/2;switch(c){case"top":n={x:f,y:i.y-a.height};break;case"bottom":n={x:f,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-a.width,y:d};break;default:n={x:i.x,y:i.y}}switch(nS(e)){case"start":n[s]-=h*(r&&u?-1:1);break;case"end":n[s]+=h*(r&&u?-1:1)}return n}let nB=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=nF(c,n,l),d=n,h={},p=0;for(let r=0;r<s.length;r++){let{name:a,fn:m}=s[r],{x:v,y:y,data:g,reset:b}=await m({x:u,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});u=null!=v?v:u,f=null!=y?y:f,h={...h,[a]:{...h[a],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:u,y:f}=nF(c,d,l)),r=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}};async function nq(t,e){var r;void 0===e&&(e={});let{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=nk(e,t),p=nR(h),m=s[d?"floating"===f?"reference":"floating":f],v=nz(await a.getClippingRect
5({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===f?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,g=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await (null==a.isElement?void 0:a.isElement(g))&&await (null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},x=nz(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-x.top+p.top)/b.y,bottom:(x.bottom-v.bottom+p.bottom)/b.y,left:(v.left-x.left+p.left)/b.x,right:(x.right-v.right+p.right)/b.x}}function nU(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function nV(t){return nv.some(e=>t[e]>=0)}let nH=new Set(["left","top"]);async function nW(t,e){let{placement:r,platform:n,elements:i}=t,a=await (null==n.isRTL?void 0:n.isRTL(i.floating)),o=n_(r),s=nS(r),l="y"===nE(r),c=nH.has(o)?-1:1,u=a&&l?-1:1,f=nk(e,t),{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}function n$(){return"undefined"!=typeof window}function nG(t){return nX(t)?(t.nodeName||"").toLowerCase():"#document"}function nK(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function nY(t){var e;return null==(e=(nX(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function nX(t){return!!n$()&&(t instanceof Node||t instanceof nK(t).Node)}function nZ(t){return!!n$()&&(t instanceof Element||t instanceof nK(t).Element)}function nJ(t){return!!n$()&&(t instanceof HTMLElement||t instanceof nK(t).HTMLElement)}function nQ(t){return!!n$()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof nK(t).ShadowRoot)}let n0=new Set(["inline","contents"]);function n1(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ir(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!n0.has(i)}let n2=new Set(["table","td","th"]),n5=[":popover-open",":modal"];function n3(t){return n5.some(e=>{try{return t.matches(e)}catch(t){return!1}})}let n4=["transform","translate","scale","rotate","perspective"],n6=["transform","translate","scale","rotate","perspective","filter"],n8=["paint","layout","strict","content"];function n7(t){let e=n9(),r=nZ(t)?ir(t):t;return n4.some(t=>!!r[t]&&"none"!==r[t])||!!r.containerType&&"normal"!==r.containerType||!e&&!!r.backdropFilter&&"none"!==r.backdropFilter||!e&&!!r.filter&&"none"!==r.filter||n6.some(t=>(r.willChange||"").includes(t))||n8.some(t=>(r.contain||"").includes(t))}function n9(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let it=new Set(["html","body","#document"]);function ie(t){return it.has(nG(t))}function ir(t){return nK(t).getComputedStyle(t)}function ii(t){return nZ(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ia(t){if("html"===nG(t))return t;let e=t.assignedSlot||t.parentNode||nQ(t)&&t.host||nY(t);return nQ(e)?e.host:e}function io(t,e,r){var n;void 0===e&&(e=[]),void 0===r&&(r=!0);let i=function t(e){let r=ia(e);return ie(r)?e.ownerDocument?e.ownerDocument.body:e.body:nJ(r)&&n1(r)?r:t(r)}(t),a=i===(null==(n=t.ownerDocument)?void 0:n.body),o=nK(i);if(a){let t=is(o);return e.concat(o,o.visualViewport||[],n1(i)?i:[],t&&r?io(t):[])}return e.concat(i,io(i,[],r))}function is(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function il(t){let e=ir(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=nJ(t),a=i?t.offsetWidth:r,o=i?t.offsetHeight:n,s=nb(r)!==a||nb(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function ic(t){return nZ(t)?t:t.contextElement}function iu(t){let e=ic(t);if(!nJ(e))return nw(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=il(e),o=(a?nb(r.width):r.width)/n,s=(a?nb(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let id=nw(0);function ih(t){let e=nK(t);
5return n9()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:id}function ip(t,e,r,n){var i;void 0===e&&(e=!1),void 0===r&&(r=!1);let a=t.getBoundingClientRect(),o=ic(t),s=nw(1);e&&(n?nZ(n)&&(s=iu(n)):s=iu(t));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===nK(o))&&i)?ih(o):nw(0),c=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,f=a.width/s.x,d=a.height/s.y;if(o){let t=nK(o),e=n&&nZ(n)?nK(n):n,r=t,i=is(r);for(;i&&n&&e!==r;){let t=iu(i),e=i.getBoundingClientRect(),n=ir(i),a=e.left+(i.clientLeft+parseFloat(n.paddingLeft))*t.x,o=e.top+(i.clientTop+parseFloat(n.paddingTop))*t.y;c*=t.x,u*=t.y,f*=t.x,d*=t.y,c+=a,u+=o,i=is(r=nK(i))}}return nz({width:f,height:d,x:c,y:u})}function im(t,e){let r=ii(t).scrollLeft;return e?e.left+r:ip(nY(t)).left+r}function iv(t,e){let r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-im(t,r),y:r.top+e.scrollTop}}let iy=new Set(["absolute","fixed"]);function ig(t,e,r){var n;let i;if("viewport"===e)i=function(t,e){let r=nK(t),n=nY(t),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let t=n9();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}let c=im(n);if(c<=0){let t=n.ownerDocument,e=t.body,r=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-e.clientWidth-i);o<=25&&(a-=o)}else c<=25&&(a+=c);return{width:a,height:o,x:s,y:l}}(t,r);else if("document"===e){let e,r,a,o,s,l,c;n=nY(t),e=nY(n),r=ii(n),a=n.ownerDocument.body,o=ng(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),s=ng(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+im(n),c=-r.scrollTop,"rtl"===ir(a).direction&&(l+=ng(e.clientWidth,a.clientWidth)-o),i={width:o,height:s,x:l,y:c}}else if(nZ(e)){let t,n,a,o,s,l;n=(t=ip(e,!0,"fixed"===r)).top+e.clientTop,a=t.left+e.clientLeft,o=nJ(e)?iu(e):nw(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,i={width:s,height:l,x:a*o.x,y:n*o.y}}else{let r=ih(t);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return nz(i)}function ib(t){return"static"===ir(t).position}function ix(t,e){if(!nJ(t)||"fixed"===ir(t).position)return null;if(e)return e(t);let r=t.offsetParent;return nY(t)===r&&(r=r.ownerDocument.body),r}function iw(t,e){var r;let n=nK(t);if(n3(t))return n;if(!nJ(t)){let e=ia(t);for(;e&&!ie(e);){if(nZ(e)&&!ib(e))return e;e=ia(e)}return n}let i=ix(t,e);for(;i&&(r=i,n2.has(nG(r)))&&ib(i);)i=ix(i,e);return i&&ie(i)&&ib(i)&&!n7(i)?n:i||function(t){let e=ia(t);for(;nJ(e)&&!ie(e);){if(n7(e))return e;if(n3(e))break;e=ia(e)}return null}(t)||n}let ij=async function(t){let e=this.getOffsetParent||iw,r=this.getDimensions,n=await r(t.floating);return{reference:function(t,e,r){let n=nJ(e),i=nY(e),a="fixed"===r,o=ip(t,!0,a,e),s={scrollLeft:0,scrollTop:0},l=nw(0);if(n||!n&&!a)if(("body"!==nG(e)||n1(i))&&(s=ii(e)),n){let t=ip(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=im(i));a&&!n&&i&&(l.x=im(i));let c=!i||n||a?nw(0):iv(i,s);return{x:o.left+s.scrollLeft-l.x-c.x,y:o.top+s.scrollTop-l.y-c.y,width:o.width,height:o.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},iN={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,a="fixed"===i,o=nY(n),s=!!e&&n3(e.floating);if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=nw(1),u=nw(0),f=nJ(n);if((f||!f&&!a)&&(("body"!==nG(n)||n1(o))&&(l=ii(n)),nJ(n))){let t=ip(n);c=iu(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}let d=!o||f||a?nw(0):iv(o,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:nY,getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,a=[..."clippingAncestors"===r?n3(e)?[]:function(t,e){let r=e.get(t);if(r)return r;let n=io(t,[],!1).filter(t=>nZ(t)&&"body"!==nG(t)),i=null,a="fixed"===ir(t).position,o=a?ia(t):t;for(;nZ(o)&&!ie(o);){let e=ir(o),r=n7(o);r||"fixed"!==e.position||(i=null),(a?!r&&!i:!r&&"static"===e.position&&!!i&&iy.has(i.position)||n1(o)&&!r&&function t(e,r){let n=ia(e);return!(n===r||!nZ(n)||ie(n))&&("fixed"===ir(n).position||t(n,r))}(t,o))?n=n.filter(t=>t!==o):i=e,o=ia(o)}return e.set(t,n),n}(e,this._c):[].concat(r),n],o=a[0],s=a.reduce((t,r)=>{let n=ig(e,r,i);return t.top=ng(n.top,t.top),t.right=ny(n.right,t.right),t.bottom=ny(n.bottom,t.bottom),t.left=ng(n.left,t.left),t},ig(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:iw,getElementRects:ij,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:r}=il(t);return{width:e,height:r}},getScale:iu,isElement:nZ,isRTL:function(t){return"rtl"===ir(t).direction}};function ik(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let i_=t=>({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=nk(t,e)||{};if(null==c)return{};let f=nR(u),d={x:r,y:n},h=nA(nE(i)),p=nO(h),m=await o.getDimensions(c),v="y"===h,y=v?"clientHeight":"clientWidth",g=a.reference[p]+a.reference[h]-d[h]-a.floating[p],b=d[h]-a.reference[h],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),w=x?x[y]:0;w&&await (null==o.isElement?void 0:o.isElement(x))||(w=s.floating[y]||a.floating[p]);let j=w/2-m[p]/2-1,N=ny(f[v?"top":"left"],j),k=ny(f[v?"bottom":"right"],j),_=w-m[p]-k,S=w/2-m[p]/2+(g/2-b/2),A=ng(N,ny(S,_)),O=!l.arrow&&null!=nS(i)&&S!==A&&a.reference[p]/2-(S<N?N:k)-m[p]/2<0,P=O?S<N?S-N:S-_:0;return{[h]:d[h]+P,data:{[h]:A,centerOffset:S-A-P,...O&&{alignmentOffset:P}},reset:O}}});var iS="undefined"!=typeof document?g.useLayoutEffect:function(){};function iA(t,e){let r,n,i;if(t===e)return!0;
5if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!==e.length)return!1;for(n=r;0!=n--;)if(!iA(t[n],e[n]))return!1;return!0}if((r=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(e,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!t.$$typeof)&&!iA(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}function iO(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function iP(t,e){let r=iO(t);return Math.round(e*r)/r}function iE(t){let e=g.useRef(t);return iS(()=>{e.current=t}),e}var iC=g.forwardRef((t,e)=>{let{children:r,width:n=10,height:i=5,...a}=t;return(0,y.jsx)(E.svg,{...a,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,y.jsx)("polygon",{points:"0,0 30,0 15,10"})})});iC.displayName="Arrow";var iL="Popper",[iM,iT]=tF(iL),[iI,iD]=iM(iL),iR=t=>{let{__scopePopper:e,children:r}=t,[n,i]=g.useState(null);return(0,y.jsx)(iI,{scope:e,anchor:n,onAnchorChange:i,children:r})};iR.displayName=iL;var iz="PopperAnchor",iF=g.forwardRef((t,e)=>{let{__scopePopper:r,virtualRef:n,...i}=t,a=iD(iz,r),o=g.useRef(null),s=A(e,o),l=g.useRef(null);return g.useEffect(()=>{let t=l.current;l.current=n?.current||o.current,t!==l.current&&a.onAnchorChange(l.current)}),n?null:(0,y.jsx)(E.div,{...i,ref:s})});iF.displayName=iz;var iB="PopperContent",[iq,iU]=iM(iB),iV=g.forwardRef((t,e)=>{var r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,b,x,w,j,N,_;let{__scopePopper:S,side:O="bottom",sideOffset:P=0,align:C="center",alignOffset:L=0,arrowPadding:M=0,avoidCollisions:T=!0,collisionBoundary:I=[],collisionPadding:D=0,sticky:R="partial",hideWhenDetached:z=!1,updatePositionStrategy:F="optimized",onPlaced:B,...q}=t,U=iD(iB,S),[V,H]=g.useState(null),W=A(e,t=>H(t)),[$,G]=g.useState(null),K=t$($),Y=K?.width??0,X=K?.height??0,Z="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},J=Array.isArray(I)?I:[I],Q=J.length>0,tt={padding:Z,boundary:J.filter(iG),altBoundary:Q},{refs:te,floatingStyles:tr,placement:tn,isPositioned:ti,middlewareData:ta}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,f]=g.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=g.useState(n);iA(d,n)||h(n);let[p,m]=g.useState(null),[v,y]=g.useState(null),b=g.useCallback(t=>{t!==N.current&&(N.current=t,m(t))},[]),x=g.useCallback(t=>{t!==_.current&&(_.current=t,y(t))},[]),w=a||p,j=o||v,N=g.useRef(null),_=g.useRef(null),S=g.useRef(u),A=null!=l,O=iE(l),P=iE(i),E=iE(c),C=g.useCallback(()=>{var t,n;let i,a,o;if(!N.current||!_.current)return;let s={placement:e,strategy:r,middleware:d};P.current&&(s.platform=P.current),(t=N.current,n=_.current,i=new Map,o={...(a={platform:iN,...s}).platform,_c:i},nB(t,n,{...a,platform:o})).then(t=>{let e={...t,isPositioned:!1!==E.current};L.current&&!iA(S.current,e)&&(S.current=e,k.flushSync(()=>{f(e)}))})},[d,e,r,P,E]);iS(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(t=>({...t,isPositioned:!1})))},[c]);let L=g.useRef(!1);iS(()=>(L.current=!0,()=>{L.current=!1}),[]),iS(()=>{if(w&&(N.current=w),j&&(_.current=j),w&&j){if(O.current)return O.current(w,j,C);C()}},[w,j,C,O,A]);let M=g.useMemo(()=>({reference:N,floating:_,setReference:b,setFloating:x}),[b,x]),T=g.useMemo(()=>({reference:w,floating:j}),[w,j]),I=g.useMemo(()=>{let t={position:r,left:0,top:0};if(!T.floating)return t;let e=iP(T.floating,u.x),n=iP(T.floating,u.y);return s?{...t,transform:"translate("+e+"px, "+n+"px)",...iO(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,s,T.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:C,refs:M,elements:T,floatingStyles:I}),[u,C,M,T,I])}({strategy:"fixed",placement:O+("center"!==C?"-"+C:""),whileElementsMounted:(...t)=>(function(t,e,r,n){let i;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=ic(t),f=a||o?[...u?io(u):[],...io(e)]:[];f.forEach(t=>{a&&t.addEventListener("scroll",r,{passive:!0}),o&&t.addEventListener("resize",r)});let d=u&&l?function(t,e){let r,n=null,i=nY(t);function a(){var t;clearTimeout(r),null==(t=n)||t.disconnect(),n=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let c=t.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(s||e(),!d||!h)return;
5let p={rootMargin:-nx(f)+"px "+-nx(i.clientWidth-(u+d))+"px "+-nx(i.clientHeight-(f+h))+"px "+-nx(u)+"px",threshold:ng(0,ny(1,l))||1},m=!0;function v(e){let n=e[0].intersectionRatio;if(n!==l){if(!m)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==n||ik(c,t.getBoundingClientRect())||o(),m=!1}try{n=new IntersectionObserver(v,{...p,root:i.ownerDocument})}catch(t){n=new IntersectionObserver(v,p)}n.observe(t)}(!0),a}(u,r):null,h=-1,p=null;s&&(p=new ResizeObserver(t=>{let[n]=t;n&&n.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var t;null==(t=p)||t.observe(e)})),r()}),u&&!c&&p.observe(u),p.observe(e));let m=c?ip(t):null;return c&&function e(){let n=ip(t);m&&!ik(m,n)&&r(),m=n,i=requestAnimationFrame(e)}(),r(),()=>{var t;f.forEach(t=>{a&&t.removeEventListener("scroll",r),o&&t.removeEventListener("resize",r)}),null==d||d(),null==(t=p)||t.disconnect(),p=null,c&&cancelAnimationFrame(i)}})(...t,{animationFrame:"always"===F}),elements:{reference:U.anchor},middleware:[{...{name:"offset",options:i=r={mainAxis:P+X,alignmentAxis:L},async fn(t){var e,r;let{x:n,y:a,placement:o,middlewareData:s}=t,l=await nW(t,i);return o===(null==(e=s.offset)?void 0:e.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:o}}}},options:[r,n]},T&&{...{name:"shift",options:u=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===R?{...(void 0===(s=a)&&(s={}),{options:s,fn(t){let{x:e,y:r,placement:n,rects:i,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=nk(s,t),u={x:e,y:r},f=nE(n),d=nA(f),h=u[d],p=u[f],m=nk(o,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+v.mainAxis,r=i.reference[d]+i.reference[t]-v.mainAxis;h<e?h=e:h>r&&(h=r)}if(c){var y,g;let t="y"===d?"width":"height",e=nH.has(n_(n)),r=i.reference[f]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[f])||0)+(e?0:v.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(g=a.offset)?void 0:g[f])||0)-(e?v.crossAxis:0);p<r?p=r:p>o&&(p=o)}return{[d]:h,[f]:p}}}),options:[a,o]}:void 0,...tt},async fn(t){let{x:e,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:t=>{let{x:e,y:r}=t;return{x:e,y:r}}},...s}=nk(u,t),l={x:e,y:r},c=await nq(t,s),f=nE(n_(n)),d=nA(f),h=l[d],p=l[f];if(i){let t="y"===d?"top":"left",e="y"===d?"bottom":"right",r=h+c[t],n=h-c[e];h=ng(r,ny(h,n))}if(a){let t="y"===f?"top":"left",e="y"===f?"bottom":"right",r=p+c[t],n=p-c[e];p=ng(r,ny(p,n))}let m=o.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-e,y:m.y-r,enabled:{[d]:i,[f]:a}}}}},options:[l,c]},T&&{...{name:"flip",options:h=f={...tt},async fn(t){var e,r,n,i,a,o,s,l;let c,u,f,{placement:d,middlewareData:p,rects:m,initialPlacement:v,platform:y,elements:g}=t,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:k=!0,..._}=nk(h,t);if(null!=(e=p.arrow)&&e.alignmentOffset)return{};let S=n_(d),A=nE(v),O=n_(v)===v,P=await (null==y.isRTL?void 0:y.isRTL(g.floating)),E=w||(O||!k?[nD(v)]:(c=nD(v),[nC(v),c,nC(c)])),C="none"!==N;!w&&C&&E.push(...(u=nS(v),f=function(t,e,r){switch(t){case"top":case"bottom":if(r)return e?nM:nL;return e?nL:nM;case"left":case"right":return e?nT:nI;default:return[]}}(n_(v),"start"===N,P),u&&(f=f.map(t=>t+"-"+u),k&&(f=f.concat(f.map(nC)))),f));let L=[v,...E],M=await nq(t,_),T=[],I=(null==(r=p.flip)?void 0:r.overflows)||[];if(b&&T.push(M[S]),x){let t,e,r,n,i=(o=d,s=m,void 0===(l=P)&&(l=!1),t=nS(o),r=nO(e=nA(nE(o))),n="x"===e?t===(l?"end":"start")?"right":"left":"start"===t?"bottom":"top",s.reference[r]>s.floating[r]&&(n=nD(n)),[n,nD(n)]);T.push(M[i[0]],M[i[1]])}if(I=[...I,{placement:d,overflows:T}],!T.every(t=>t<=0)){let t=((null==(n=p.flip)?void 0:n.index)||0)+1,e=L[t];if(e&&("alignment"!==x||A===nE(e)||I.every(t=>nE(t.placement)!==A||t.overflows[0]>0)))return{data:{index:t,overflows:I},reset:{placement:e}};let r=null==(i=I.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:i.placement;if(!r)switch(j){case"bestFit":{let t=null==(a=I.filter(t=>{if(C){let e=nE(t.placement);return e===A||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:a[0];t&&(r=t);break}case"initialPlacement":r=v}if(d!==r)return{reset:{placement:r}}}return{}}},options:[f,d]},{...{name:"size",options:v=p={...tt,apply:({elements:t,rects:e,availableWidth:r,availableHeight:n})=>{let{width:i,height:a}=e.reference,o=t.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(t){var e,r;let n,i,{placement:a,rects:o,platform:s,elements:l}=t,{apply:c=()=>{},...u}=nk(v,t),f=await nq(t,u),d=n_(a),h=nS(a),p="y"===nE(a),{width:m,height:y}=o.floating;"top"===d||"bottom"===d?(n=d,i=h===(await (null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(i=d,n="end"===h?"to
5p":"bottom");let g=y-f.top-f.bottom,b=m-f.left-f.right,x=ny(y-f[n],g),w=ny(m-f[i],b),j=!t.middlewareData.shift,N=x,k=w;if(null!=(e=t.middlewareData.shift)&&e.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=g),j&&!h){let t=ng(f.left,0),e=ng(f.right,0),r=ng(f.top,0),n=ng(f.bottom,0);p?k=m-2*(0!==t||0!==e?t+e:ng(f.left,f.right)):N=y-2*(0!==r||0!==n?r+n:ng(f.top,f.bottom))}await c({...t,availableWidth:k,availableHeight:N});let _=await s.getDimensions(l.floating);return m!==_.width||y!==_.height?{reset:{rects:!0}}:{}}},options:[p,m]},$&&{...{name:"arrow",options:w=b={element:$,padding:M},fn(t){let{element:e,padding:r}="function"==typeof w?w(t):w;return e&&({}).hasOwnProperty.call(e,"current")?null!=e.current?i_({element:e.current,padding:r}).fn(t):{}:e?i_({element:e,padding:r}).fn(t):{}}},options:[b,x]},iK({arrowWidth:Y,arrowHeight:X}),z&&{...{name:"hide",options:_=j={strategy:"referenceHidden",...tt},async fn(t){let{rects:e}=t,{strategy:r="referenceHidden",...n}=nk(_,t);switch(r){case"referenceHidden":{let r=nU(await nq(t,{...n,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:nV(r)}}}case"escaped":{let r=nU(await nq(t,{...n,altBoundary:!0}),e.floating);return{data:{escapedOffsets:r,escaped:nV(r)}}}default:return{}}}},options:[j,N]}]}),[to,ts]=iY(tn),tl=eM(B);tB(()=>{ti&&tl?.()},[ti,tl]);let tc=ta.arrow?.x,tu=ta.arrow?.y,tf=ta.arrow?.centerOffset!==0,[td,th]=g.useState();return tB(()=>{V&&th(window.getComputedStyle(V).zIndex)},[V]),(0,y.jsx)("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...tr,transform:ti?tr.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:td,"--radix-popper-transform-origin":[ta.transformOrigin?.x,ta.transformOrigin?.y].join(" "),...ta.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,y.jsx)(iq,{scope:S,placedSide:to,onArrowChange:G,arrowX:tc,arrowY:tu,shouldHideArrow:tf,children:(0,y.jsx)(E.div,{"data-side":to,"data-align":ts,...q,ref:W,style:{...q.style,animation:ti?void 0:"none"}})})})});iV.displayName=iB;var iH="PopperArrow",iW={top:"bottom",right:"left",bottom:"top",left:"right"},i$=g.forwardRef(function(t,e){let{__scopePopper:r,...n}=t,i=iU(iH,r),a=iW[i.placedSide];return(0,y.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,y.jsx)(iC,{...n,ref:e,style:{...n.style,display:"block"}})})});function iG(t){return null!==t}i$.displayName=iH;var iK=t=>({name:"transformOrigin",options:t,fn(e){let{placement:r,rects:n,middlewareData:i}=e,a=i.arrow?.centerOffset!==0,o=a?0:t.arrowWidth,s=a?0:t.arrowHeight,[l,c]=iY(r),u={start:"0%",center:"50%",end:"100%"}[c],f=(i.arrow?.x??0)+o/2,d=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===l?(h=a?u:`${f}px`,p=`${-s}px`):"top"===l?(h=a?u:`${f}px`,p=`${n.floating.height+s}px`):"right"===l?(h=`${-s}px`,p=a?u:`${d}px`):"left"===l&&(h=`${n.floating.width+s}px`,p=a?u:`${d}px`),{data:{x:h,y:p}}}});function iY(t){let[e,r="center"]=t.split("-");return[e,r]}var iX=Symbol("radix.slottable"),iZ=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),iJ=g.forwardRef((t,e)=>(0,y.jsx)(E.span,{...t,ref:e,style:{...iZ,...t.style}}));iJ.displayName="VisuallyHidden";var[iQ,i0]=tF("Tooltip",[iT]),i1=iT(),i2="TooltipProvider",i5="tooltip.open",[i3,i4]=iQ(i2),i6=t=>{let{__scopeTooltip:e,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=t,o=g.useRef(!0),s=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{let t=l.current;return()=>window.clearTimeout(t)},[]),(0,y.jsx)(i3,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
5o.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(t=>{s.current=t},[]),disableHoverableContent:i,children:a})};i6.displayName=i2;var i8="Tooltip",[i7,i9]=iQ(i8),at=t=>{let{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=t,l=i4(i8,t.__scopeTooltip),c=i1(e),[u,f]=g.useState(null),d=eL(),h=g.useRef(0),p=o??l.disableHoverableContent,m=s??l.delayDuration,v=g.useRef(!1),[b,x]=tU({prop:n,defaultProp:i??!1,onChange:t=>{t?(l.onOpen(),document.dispatchEvent(new CustomEvent(i5))):l.onClose(),a?.(t)},caller:i8}),w=g.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),j=g.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,x(!0)},[x]),N=g.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),k=g.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,x(!0),h.current=0},m)},[m,x]);return g.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,y.jsx)(iR,{...c,children:(0,y.jsx)(i7,{scope:e,contentId:d,open:b,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?k():j()},[l.isOpenDelayedRef,k,j]),onTriggerLeave:g.useCallback(()=>{p?N():(window.clearTimeout(h.current),h.current=0)},[N,p]),onOpen:j,onClose:N,disableHoverableContent:p,children:r})})};at.displayName=i8;var ae="TooltipTrigger",ar=g.forwardRef((t,e)=>{let{__scopeTooltip:r,...n}=t,i=i9(ae,r),a=i4(ae,r),o=i1(r),s=A(e,g.useRef(null),i.onTriggerChange),l=g.useRef(!1),c=g.useRef(!1),u=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),(0,y.jsx)(iF,{asChild:!0,...o,children:(0,y.jsx)(E.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:tz(t.onPointerMove,t=>{"touch"!==t.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))}),onPointerLeave:tz(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:tz(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:tz(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:tz(t.onBlur,i.onClose),onClick:tz(t.onClick,i.onClose)})})});ar.displayName=ae;var an="TooltipPortal",[ai,aa]=iQ(an,{forceMount:void 0}),ao=t=>{let{__scopeTooltip:e,forceMount:r,children:n,container:i}=t,a=i9(an,e);return(0,y.jsx)(ai,{scope:e,forceMount:r,children:(0,y.jsx)(eY,{present:r||a.open,children:(0,y.jsx)(eK,{asChild:!0,container:i,children:n})})})};ao.displayName=an;var as="TooltipContent",al=g.forwardRef((t,e)=>{let r=aa(as,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=t,o=i9(as,t.__scopeTooltip);return(0,y.jsx)(eY,{present:n||o.open,children:o.disableHoverableContent?(0,y.jsx)(ah,{side:i,...a,ref:e}):(0,y.jsx)(ac,{side:i,...a,ref:e})})}),ac=g.forwardRef((t,e)=>{let r=i9(as,t.__scopeTooltip),n=i4(as,t.__scopeTooltip),i=g.useRef(null),a=A(e,i),[o,s]=g.useState(null),{trigger:l,onClose:c}=r,u=i.current,{onPointerInTransitChange:f}=n,d=g.useCallback(()=>{s(null),f(!1)},[f]),h=g.useCallback((t,e)=>{let r,n=t.currentTarget,i={x:t.clientX,y:t.clientY},a=function(t,e){let r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());s(((r=[...function(t,e,r=5){let n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r})}return n}(i,a),...function(t){let{top:e,right:r,bottom:n,left:i}=t;return[{x:i,y:e},{x:r,y:e},{x:r,y:n},{x:i,y:n}]}(e.getBoundingClientRect())].slice()).sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:1*!!(t.y>e.y)),function(t){if(t.length<=1)return t.slice();let e=[];for(let r=0;r<t.length;r++){let n=t[r];for(;e.length>=2;){let t=e[e.length-1],r=e[e.length-2];if((t.x-r.x)*(n.y-r.y)>
5=(t.y-r.y)*(n.x-r.x))e.pop();else break}e.push(n)}e.pop();let r=[];for(let e=t.length-1;e>=0;e--){let n=t[e];for(;r.length>=2;){let t=r[r.length-1],e=r[r.length-2];if((t.x-e.x)*(n.y-e.y)>=(t.y-e.y)*(n.x-e.x))r.pop();else break}r.push(n)}return(r.pop(),1===e.length&&1===r.length&&e[0].x===r[0].x&&e[0].y===r[0].y)?e:e.concat(r)}(r))),f(!0)},[f]);return g.useEffect(()=>()=>d(),[d]),g.useEffect(()=>{if(l&&u){let t=t=>h(t,u),e=t=>h(t,l);return l.addEventListener("pointerleave",t),u.addEventListener("pointerleave",e),()=>{l.removeEventListener("pointerleave",t),u.removeEventListener("pointerleave",e)}}},[l,u,h,d]),g.useEffect(()=>{if(o){let t=t=>{let e=t.target,r={x:t.clientX,y:t.clientY},n=l?.contains(e)||u?.contains(e),i=!function(t,e){let{x:r,y:n}=t,i=!1;for(let t=0,a=e.length-1;t<e.length;a=t++){let o=e[t],s=e[a],l=o.x,c=o.y,u=s.x,f=s.y;c>n!=f>n&&r<(u-l)*(n-c)/(f-c)+l&&(i=!i)}return i}(r,o);n?d():i&&(d(),c())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}},[l,u,o,c,d]),(0,y.jsx)(ah,{...t,ref:a})}),[au,af]=iQ(i8,{isInside:!1}),ad=((d=({children:t})=>(0,y.jsx)(y.Fragment,{children:t})).displayName="TooltipContent.Slottable",d.__radixId=iX,d),ah=g.forwardRef((t,e)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=t,l=i9(as,r),c=i1(r),{onClose:u}=l;return g.useEffect(()=>(document.addEventListener(i5,u),()=>document.removeEventListener(i5,u)),[u]),g.useEffect(()=>{if(l.trigger){let t=t=>{let e=t.target;e?.contains(l.trigger)&&u()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}},[l.trigger,u]),(0,y.jsx)(eD,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:t=>t.preventDefault(),onDismiss:u,children:(0,y.jsxs)(iV,{"data-state":l.stateAttribute,...c,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,y.jsx)(ad,{children:n}),(0,y.jsx)(au,{scope:r,isInside:!0,children:(0,y.jsx)(iJ,{id:l.contentId,role:"tooltip",children:i||n})})]})})});al.displayName=as;var ap="TooltipArrow";g.forwardRef((t,e)=>{let{__scopeTooltip:r,...n}=t,i=i1(r);return af(ap,r).isInside?null:(0,y.jsx)(i$,{...i,...n,ref:e})}).displayName=ap;let am=g.forwardRef(({className:t,sideOffset:e=4,...r},n)=>(0,y.jsx)(al,{ref:n,sideOffset:e,className:tM("z-[9999] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));am.displayName=al.displayName;var av="rovingFocusGroup.onEntryFocus",ay={bubbles:!1,cancelable:!0},ag="RovingFocusGroup",[ab,ax,aw]=tX(ag),[aj,aN]=tF(ag,[aw]),[ak,a_]=aj(ag),aS=g.forwardRef((t,e)=>(0,y.jsx)(ab.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,y.jsx)(ab.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,y.jsx)(aA,{...t,ref:e})})}));aS.displayName=ag;var aA=g.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=t,d=g.useRef(null),h=A(e,d),p=tH(a),[m,v]=tU({prop:o,defaultProp:s??null,onChange:l,caller:ag}),[b,x]=g.useState(!1),w=eM(c),j=ax(r),N=g.useRef(!1),[k,_]=g.useState(0);return g.useEffect(()=>{let t=d.current;if(t)return t.addEventListener(av,w),()=>t.removeEventListener(av,w)},[w]),(0,y.jsx)(ak,{scope:r,orientation:n,dir:p,loop:i,currentTabStopId:m,onItemFocus:g.useCallback(t=>v(t),[v]),onItemShiftTab:g.useCallback(()=>x(!0),[]),onFocusableItemAdd:g.useCallback(()=>_(t=>t+1),[]),onFocusableItemRemove:g.useCallback(()=>_(t=>t-1),[]),children:(0,y.jsx)(E.div,{tabIndex:b||0===k?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:tz(t.onMouseDown,()=>{N.current=!0}),onFocus:tz(t.onFocus,t=>{let e=!N.current;if(t.target===t.currentTarget&&e&&!b){let e=new CustomEvent(av,ay);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){let t=j().filter(t=>t.focusable);aC([t.find(t=>t.active),t.find(t=>
5t.id===m),...t].filter(Boolean).map(t=>t.ref.current),u)}}N.current=!1}),onBlur:tz(t.onBlur,()=>x(!1))})})}),aO="RovingFocusGroupItem",aP=g.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=t,l=eL(),c=a||l,u=a_(aO,r),f=u.currentTabStopId===c,d=ax(r),{onFocusableItemAdd:h,onFocusableItemRemove:p,currentTabStopId:m}=u;return g.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),(0,y.jsx)(ab.ItemSlot,{scope:r,id:c,focusable:n,active:i,children:(0,y.jsx)(E.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...s,ref:e,onMouseDown:tz(t.onMouseDown,t=>{n?u.onItemFocus(c):t.preventDefault()}),onFocus:tz(t.onFocus,()=>u.onItemFocus(c)),onKeyDown:tz(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey)return void u.onItemShiftTab();if(t.target!==t.currentTarget)return;let e=function(t,e,r){var n;let i=(n=t.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===e&&["ArrowUp","ArrowDown"].includes(i)))return aE[i]}(t,u.orientation,u.dir);if(void 0!==e){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;t.preventDefault();let i=d().filter(t=>t.focusable).map(t=>t.ref.current);if("last"===e)i.reverse();else if("prev"===e||"next"===e){var r,n;"prev"===e&&i.reverse();let a=i.indexOf(t.currentTarget);i=u.loop?(r=i,n=a+1,r.map((t,e)=>r[(n+e)%r.length])):i.slice(a+1)}setTimeout(()=>aC(i))}}),children:"function"==typeof o?o({isCurrentTabStop:f,hasTabStop:null!=m}):o})})});aP.displayName=aO;var aE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aC(t,e=!1){let r=document.activeElement;for(let n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}var aL="Toggle",aM=g.forwardRef((t,e)=>
5{let{pressed:r,defaultPressed:n,onPressedChange:i,...a}=t,[o,s]=tU({prop:r,onChange:i,defaultProp:n??!1,caller:aL});return(0,y.jsx)(E.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:tz(t.onClick,()=>{t.disabled||s(!o)})})});aM.displayName=aL;var aT="ToggleGroup",[aI,aD]=tF(aT,[aN]),aR=aN(),az=g.default.forwardRef((t,e)=>{let{type:r,...n}=t;if("single"===r)return(0,y.jsx)(aq,{...n,ref:e});if("multiple"===r)return(0,y.jsx)(aU,{...n,ref:e});throw Error(`Missing prop \`type\` expected on \`${aT}\``)});az.displayName=aT;var[aF,aB]=aI(aT),aq=g.default.forwardRef((t,e)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=t,[o,s]=tU({prop:r,defaultProp:n??"",onChange:i,caller:aT});return(0,y.jsx)(aF,{scope:t.__scopeToggleGroup,type:"single",value:g.default.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:g.default.useCallback(()=>s(""),[s]),children:(0,y.jsx)(aW,{...a,ref:e})})}),aU=g.default.forwardRef((t,e)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=t,[o,s]=tU({prop:r,defaultProp:n??[],onChange:i,caller:aT}),l=g.default.useCallback(t=>s((e=[])=>[...e,t]),[s]),c=g.default.useCallback(t=>s((e=[])=>e.filter(e=>e!==t)),[s]);return(0,y.jsx)(aF,{scope:t.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:(0,y.jsx)(aW,{...a,ref:e})})});az.displayName=aT;var[aV,aH]=aI(aT),aW=g.default.forwardRef((t,e)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...l}=t,c=aR(r),u=tH(o),f={role:"group",dir:u,...l};return(0,y.jsx)(aV,{scope:r,rovingFocus:i,disabled:n,children:i?(0,y.jsx)(aS,{asChild:!0,...c,orientation:a,dir:u,loop:s,children:(0,y.jsx)(E.div,{...f,ref:e})}):(0,y.jsx)(E.div,{...f,ref:e})})}),a$="ToggleGroupItem",aG=g.default.forwardRef((t,e)=>{let r=aB(a$,t.__scopeToggleGroup),n=aH(a$,t.__scopeToggleGroup),i=aR(t.__scopeToggleGroup),a=r.value.includes(t.value),o=n.disabled||t.disabled,s={...t,pressed:a,disabled:o},l=g.default.useRef(null);return n.rovingFocus?(0,y.jsx)(aP,{asChild:!0,...i,focusable:!o,active:a,ref:l,children:(0,y.jsx)(aK,{...s,ref:e})}):(0,y.jsx)(aK,{...s,ref:e})});aG.displayName=a$;var aK=g.default.forwardRef((t,e)=>{let{__scopeToggleGroup:r,value:n,...i}=t,a=aB(a$,r),o={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s="single"===a.type?o:void 0;return(0,y.jsx)(aM,{...s,...i,ref:e,onPressedChange:t=>{t?a.onItemActivate(n):a.onItemDeactivate(n)}})});let aY=T("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});g.forwardRef(({className:t,variant:e,size:r,...n},i)=>(0,y.jsx)(aM,{ref:i,className:tM(aY({variant:e,size:r,className:t})),...n})).displayName=aM.displayName;let aX=g.createContext({size:"default",variant:"default"}),aZ=g.forwardRef(({className:t,variant:e,size:r,children:n,...i},a)=>(0,y.jsx)(az,{ref:a,className:tM("flex items-center justify-center gap-1",t),...i,children:(0,y.jsx)(aX.Provider,{value:{variant:e,size:r},children:n})}));aZ.displayName=az.displayName;let aJ=g.forwardRef(({className:t,children:e,variant:r,size:n,...i},a)=>{let o=g.useContext(aX);return(0,y.jsx)(aG,{ref:a,className:tM(aY({variant:o.variant||r,size:o.size||n}),t),...i,children:e})});aJ.displayName=aG.displayName;var aQ="Checkbox",[a0,a1]=tF(aQ),[a2,a5]=a0(aQ);function a3(t){let{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:f}=t,[d,h]=tU({prop:r,defaultProp:i??!1,onChange:l,caller:aQ}),[p,m]=g.useState(null),[v,b]=g.useState(null),x=g.useRef(!1),w=!p||!!o||!!p.closest("form"),j={checked:d,disabled:a,setChecked:h,control:p,setControl:m,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:!or(i)&&i,isFormControl:w,bubbleInput:v,setBubbleInput:b};return(0,y.jsx)(a2,{scope:e,...j,children:"function"==typeof f?f(j):n})}var a4="CheckboxTrigger",a6=g.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{let{control:a,value:o,disabled:s,checked:l,required:c,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:p}=a5(a4,t),m=A(i,u),v=g.useRef(l);return g.useEffect(()=>{let t=a?.form;if(t){let e=()=>f(v.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}},[a,f]),(0,y.jsx)(E.button,{type:"button",role:"checkbox","aria-checked":or(l)?"mixed":l,"aria-required":c,"data-state":on(l),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:m,onKeyDown:tz(e,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:tz(r,t=>{f(t=>!!or(t)||!t),p&&h&&(d.current=t.isPropagationStopped(),d.current||t.stopPropagation())})})});a6.displayName=a4;var a8=g.forwardRef((t,e)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:c,form:u,...f}=t;return(0,y.jsx)(a3,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:t})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a6,{...f,ref:e,__scopeCheckbox:r}),t&&(0,y.jsx)(oe,{__scopeCheckbox:r})]})})});a8.displayName=aQ;var a7="CheckboxIndicator",a9=g.forwardRef((t,e)=>{let{__scopeCheckbox:r,forceMount:n,...i}=t,a=a5(a7,r);return(0,y.jsx)(eY,{present:n||or(a.checked)||!0===a.checked,children:(0,y.jsx)(E.span,{"data-state":on(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});
5a9.displayName=a7;var ot="CheckboxBubbleInput",oe=g.forwardRef(({__scopeCheckbox:t,...e},r)=>{let{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:l,name:c,value:u,form:f,bubbleInput:d,setBubbleInput:h}=a5(ot,t),p=A(r,h),m=tW(a),v=t$(n);g.useEffect(()=>{if(!d)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,e=!i.current;if(m!==a&&t){let r=new Event("click",{bubbles:e});d.indeterminate=or(a),t.call(d,!or(a)&&a),d.dispatchEvent(r)}},[d,m,a,i]);let b=g.useRef(!or(a)&&a);return(0,y.jsx)(E.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??b.current,required:s,disabled:l,name:c,value:u,form:f,...e,tabIndex:-1,ref:p,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function or(t){return"indeterminate"===t}function on(t){return or(t)?"indeterminate":t?"checked":"unchecked"}oe.displayName=ot;let oi=nu("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),oa=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(a8,{ref:r,className:tM("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e,children:(0,y.jsx)(a9,{className:tM("flex items-center justify-center text-current"),children:(0,y.jsx)(oi,{className:"h-4 w-4"})})}));oa.displayName=a8.displayName;let oo=nu("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function os({params:t,onParamsChange:e,expenseBreakdown:r,onExpenseBreakdownChange:n,rentalParams:i,onRentalParamsChange:a,calculatedMonthlyRent:o,buyerType:s}){let l,[c,u]=(0,g.useState)({grossPrice:w("corporate"===s?t.propertyPrice*(1+(t.vatRateForCorporate??.21)):t.propertyPrice),landValue:w(t.landValue),downPayment:w(t.downPayment),monthlyRent:w(o),monthlyExpenses:w((l=t.propertyPrice*(r.fondOprav/100)/12,r.pojisteni+r.revizeUdrzba+l+r.rezerva)),pricePerNight:w(i.pricePerNight),cleaningCost:w(i.cleaningCost),consumablesCost:w(i.consumablesCost),energyHeating:w(i.energyHeating),internetTV:w(i.internetTV),waterWaste:w(i.waterWaste),security:w(i.security),areaServices:w(i.areaServices),pojisteni:w(r.pojisteni),revizeUdrzba:w(r.revizeUdrzba),fondOprav:w(r.fondOprav),rezerva:w(r.rezerva)});(0,g.useEffect)(()=>{let e=t.propertyPrice*(r.fondOprav/100)/12,n=r.pojisteni+r.revizeUdrzba+e+r.rezerva;u({grossPrice:w("corporate"===s?t.propertyPrice*(1+(t.vatRateForCorporate??.21)):t.propertyPrice),landValue:w(t.landValue),downPayment:w(t.downPayment),monthlyRent:w(o),monthlyExpenses:w(n),pricePerNight:w(i.pricePerNight),cleaningCost:w(i.cleaningCost),consumablesCost:w(i.consumablesCost),energyHeating:w(i.energyHeating),internetTV:w(i.internetTV),waterWaste:w(i.waterWaste),security:w(i.security),areaServices:w(i.areaServices),pojisteni:w(r.pojisteni),revizeUdrzba:w(r.revizeUdrzba),fondOprav:w(r.fondOprav),rezerva:w(r.rezerva)})},[t.propertyPrice,t.landValue,t.downPayment,t.vatRateForCorporate,s,o,i,r]);let f=(r,n)=>{e({...t,[r]:n})},d=(t,e)=>{n({...r,[t]:e})},h=(t,e)=>{a({...i,[t]:e})},p=t.propertyPrice*(r.fondOprav/100)/12,m=r.pojisteni+r.revizeUdrzba+p+r.rezerva,v=365*(i.occupancyRate/100);i.pricePerNight;let b=v*i.pricePerNight,x=b/(1+i.vatRate/100),k=v/i.avgStayLength,_=k*i.cleaningCost,S=k*i.consumablesCost,A=b*(i.otaCommission/100),O=(i.energyHeating+i.internetTV+i.waterWaste+i.security+i.areaServices)*12,P=x*(i.managerMargin/100),E=x-_-S-A-O-P,C=x/12,L=(A+_+S+O)/12,M=P/12,T=E/12,I=x>0?E/x*100:0,D=t.vatRateForCorporate??.21,R="corporate"===s?t.propertyPrice:t.propertyPrice/(1+D),z="corporate"===s?t.propertyPrice*(1+D):t.propertyPrice,F="corporate"===s?R:t.propertyPrice,B=F>0?(F-t.downPayment)/F*100:80,q=t=>{f("downPayment",Math.round(F*(1-t/100)))},U=r=>{let n=Math.round(r*(1-B/100));e({...t,propertyPrice:r,downPayment:n})},V=r=>{let n=r/(1+D),i=Math.round(n*(1-B/100));e({...t,propertyPrice:n,downPayment:i})};return(0,y.jsx)(i6,{children:(0,y.jsxs)("div",{className:"text-card-foreground bg-card space-y-6 border rounded-lg shadow-sm py-6 px-8 w-7xl",children:[(0,y.jsxs)("div",{className:"text-left p-0",children:[(0,y.jsx)("h2",{className:"leading-none tracking-tight text-2xl font-semibold text-foreground mb-0",children:"Parametry investice"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5",children:"Nastavte vstupní data"})]}),(0,y.jsx)(eg,{className:"text-card-foreground bg-white border border-accent/20 rounded-sm shadow-sm mx-auto p-4 w-7xl lg:max-w-7xl max-w-3xl",children:"corporate"===s?(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 ga
5p-4 md:gap-3 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"propertyPrice",className:"text-foreground font-sans",children:"Kupní cena vč. DPH"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-muted-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Zadejte tržní cenu včetně DPH. Jako plátce si DPH nárokujete zpět při nákupu, ale nemovitost poroste od této plné tržní hodnoty."})})]})]}),(0,y.jsx)(tD,{id:"propertyPrice",type:"text",value:c.grossPrice,onChange:t=>{let e=N(t.target.value);u(t=>({...t,grossPrice:e}));let r=j(e);r>0&&V(r)},className:"font-mono"}),(0,y.jsx)(ey,{value:[z],onValueChange:([t])=>V(t),min:5e6,max:3e7,step:1e5,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{className:"text-foreground font-sans",children:"DPH"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Sazba DPH pro výpočet čisté ceny."})})]})]}),(0,y.jsxs)(aZ,{type:"single",value:(t.vatRateForCorporate??.21).toString(),onValueChange:r=>{if(r){let n=parseFloat(r),i=z/(1+n),a=Math.round(i*(1-B/100));e({...t,vatRateForCorporate:n,propertyPrice:i,downPayment:a})}},className:"justify-start gap-1 w-full",children:[(0,y.jsx)(aJ,{value:"0.12",className:"px-3 flex-1",children:"12%"}),(0,y.jsx)(aJ,{value:"0.21",className:"px-3 flex-1",children:"21%"})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"netPrice",className:"text-foreground font-sans",children:"Kupní cena bez DPH"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Čistá cena bez DPH. Toto je skutečná investice po vrácení DPH."})})]})]}),(0,y.jsx)(tD,{id:"netPrice",type:"text",value:w(Math.round(R)),readOnly:!0,className:"font-mono bg-muted text-muted-foreground cursor-not-allowed"}),(0,y.jsxs)("p",{className:"text-xs text-muted-foreground italic",children:["Vratka DPH: ",w(Math.round(z-R))," Kč"]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"landValue",className:"text-foreground font-sans",children:"Z toho cena pozemku"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Hodnota pozemku se daňově neodepisuje."})})]})]}),(0,y.jsx)(tD,{id:"landValue",type:"text",value:c.landValue,onChange:t=>{let e=N(t.target.value);u(t=>({...t,landValue:e})),f("landValue",j(e))},className:"font-mono"}),(0,y.jsx)(ey,{value:[t.landValue],onValueChange:([t])=>f("landValue",t),min:0,max:5e6,step:5e4,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{className:"text-foreground font-sans",children:"Odpisová skupina"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsxs)("p",{className:"text-sm whitespace-pre-wrap",children:["Určuje rychlost odpisování budovy (bez pozemku).","\n","• Skupina 4: 20 let (Dřevostavby/Chaty)","\n","• Skupina 5: 30 let (Standardní budovy)","\n","• Skupina 6: 50 let (Hotely/Administrativa)"]})})]})]}),(0,y.jsxs)(aZ,{type:"single",value:(t.depreciationGroup||4).toString(),onValueChange:t=>{t&&f("depreciationGroup",parseInt(t))},className:"justify-start gap-1 w-full",children:[(0,y.jsx)(aJ,{value:"4",className:"px-2 flex-1 text-xs",children:"4"}),(0,y.jsx)(aJ,{value:"5",className:"px-2 flex-1 text-xs",children:"5"}),(0,y.jsx)(aJ,{value:"6",className:"px-2 flex-1 text-xs",children:"6"})]}),(0,y.jsxs)("p",{className:"text-xs text-muted-foreground italic mt-1",children:[4===t.depreciationGroup&&"20 let",(5===t.depreciationGroup||!t.depreciationGroup)&&"30 let",6===t.depreciationGroup&&"50 let"]})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"ltvSlider",className:"text-foreground font-sans",children:"Výše úvěru (LTV %)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Loan-to-Value poměr. Určuje, jakou část tržní hodnoty nemovitosti pokryje banka."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"ltvSlider",type:"number",value:Math.round(B),onChange:t=>q(Number(t.target.value)),className:"font-mono pr-12",min:0,max:100}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[B],onValueChange:([t])=>q(t),min:0,max:100,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"downPayment",className:"text-foreground font-sans",children:"Vlastní zdroje (Kč)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Vaše počáteční investice (akontace). Automaticky vypočteno na základě LTV."})})]})]}),(0,y.jsx)(tD,{id:"downPayment",type:"text",value:w(Math.round(t.downPayment)),readOnly:!0,className:"font-mono bg-muted text-muted-foreground cursor-not-allowed"}),(0,y.jsxs)("p",{className:"text-xs text-muted-foreground italic mt-2",children:["Vypočteno z LTV ",Math.round(B)," %"]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"interestRate",className:"text-foreground font-sans",children:"Úroková sazba (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Roční úroková sazba vašeho úvěru."})})]})]}),(0,y.jsx)(tD,{id:"interestRate",type:"number",value:t.interestRate,onChange:t=>f("interestRate",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.interestRate],onValueChange:([t])=>f("interestRate",t),min:0,max:10,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"loanDuration",className:"text-foreground font-sans",children:"Délka úvěru (let)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Doba, po kterou budete úvěr splácet."})})]})]}),(0,y.jsx)(tD,{id:"loanDuration",type:"number",value:t.loanDuration,onChange:t=>f("loanDuration",Number(t.target.value)),className:"font-mono"}),(0,y.jsx)(ey,{value:[t.loanDuration],onValueChange:([t])=>f("loanDuration",t),min:5,max:40,step:1,className:"mt-2"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"annualInflation",className:"text-foreground font-sans",children:"Roční Inflace (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Předpokládané roční zdražování."})})]})]}),(0,y.jsx)(tD,{id:"annualInflation",type:"number",value:t.annualInflation,onChange:t=>f("annualInflation",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.annualInflation],onValueChange:([t])=>f("annualInflation",t),min:0,max:10,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"annualAppreciation",className:"text-foreground font-sans",children:"Růst hodnoty nemovitosti (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Předpokládaný roční růst tržní ceny."})})]})]}),(0,y.jsx)(tD,{id:"annualAppreciation",type:"number",value:t.annualAppreciation,onChange:t=>f("annualAppreciation",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.annualAppreciation],onValueChange:([t])=>f("annualAppreciation",t),min:0,max:15,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"incomeTaxRate",className:"text-foreground font-sans",children:"Daň z příjmu (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsxs)("p",{className:"text-sm whitespace-pre-wrap",children:["Nastavte sazbu podle vašeho očekávaného daňového základu. • ",(0,y.jsx)("strong",{children:"15 %"}),": Základní sazba pro většinu příjmů. • ",(0,y.jsx)("strong",{children:"23 %"}
5),": Sazba pro roční příjmy nad cca 1,7 mil. Kč. • ",(0,y.jsx)("strong",{children:"Vlastní"}),": Můžete zadat svou 'efektivní' sazbu (např. 18 %), pokud se pohybujete na hranici pásem."]})})]})]}),(0,y.jsx)(tD,{id:"incomeTaxRate",type:"number",value:t.incomeTaxRate,onChange:t=>f("incomeTaxRate",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.incomeTaxRate],onValueChange:([t])=>f("incomeTaxRate",t),min:0,max:50,step:.5,className:"mt-2"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"monthlyRentYear1",className:"text-foreground font-sans",children:"Nájemné od provozovatele"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Váš pasivní příjem. Jde o fixní částku, kterou vám platí provozovatel resortu bez ohledu na obsazenost."})})]})]}),(0,y.jsx)(tD,{id:"monthlyRentYear1",type:"text",value:w(Math.round(o)),readOnly:!0,className:"font-mono bg-stone-50 text-foreground [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsxs)(rU,{children:[(0,y.jsx)(rH,{asChild:!0,children:(0,y.jsx)(eP,{variant:"outline",size:"sm",className:"w-full mt-2",children:"Kalkulace"})}),(0,y.jsxs)(nh,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[(0,y.jsx)(np,{children:(0,y.jsx)(nm,{className:"font-sans text-base font-semibold text-foreground",children:"Jak se počítá váš nájem? (Vztah Short-term vs. Long-term)"})}),(0,y.jsxs)("div",{className:"bg-stone-50 p-4 rounded-md border border-stone-200 space-y-3",children:[(0,y.jsx)("h4",{className:"font-sans text-base font-semibold text-foreground",children:"Jak se počítá váš nájem? (Vztah Short-term vs. Long-term)"}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:["Výše nájemného, které vám provozovatel resortu platí, vychází z reálné ekonomiky krátkodobého pronájmu (Airbnb). Funguje to jako ",(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"spojené nádoby"}),":"]}),(0,y.jsxs)("ol",{className:"text-sm text-muted-foreground leading-relaxed space-y-1.5 list-decimal list-inside",children:[(0,y.jsxs)("li",{children:["Nejdříve spočítáme, kolik nemovitost utrží na turistech (",(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Short-term"}),")."]}),(0,y.jsx)("li",{children:"Odečteme náklady na provoz a zisk provozovatele."}),(0,y.jsxs)("li",{children:[(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Zbytek je maximální částka, kterou si provozovatel může dovolit platit vám jako fixní nájem (Long-term)"}),"."]})]}),(0,y.jsx)("div",{className:"flex justify-center pt-2",children:(0,y.jsx)("div",{className:"text-muted-foreground/60 animate-bounce",children:(0,y.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})})})]}),(0,y.jsxs)("div",{className:"space-y-4 py-4",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Parametry tržeb"}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"pricePerNight",className:"text-foreground text-sm font-sans",children:"Cena za noc bez DPH (12%)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"pricePerNight",type:"text",value:c.pricePerNight,onChange:t=>{let e=N(t.target.value);u(t=>({...t,pricePerNight:e})),h("pricePerNight",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.pricePerNight],onValueChange:([t])=>h("pricePerNight",t),min:1e3,max:2e4,step:100,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"occupancyRate",className:"text-foreground text-sm",children:"Obsazenost v %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"occupancyRate",type:"number",value:i.occupancyRate,onChange:t=>h("occupancyRate",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.occupancyRate],onValueChange:([t])=>h("occupancyRate",t),min:0,max:100,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"avgStayLength",className:"text-foreground text-sm",children:"Průměrná délka pobytu (nocí)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"avgStayLength",type:"number",value:i.avgStayLength,onChange:t=>h("avgStayLength",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"nocí"})]}),(0,y.jsx)(ey,{value:[i.avgStayLength],onValueChange:([t])=>h("avgStayLength",t),min:1,max:14,step:1,className:"mt-2"})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Variabilní náklady"}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"otaCommission",className:"text-foreground text-sm",children:"Provize Booking/Airbnb %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"otaCommission",type:"number",value:i.otaCommission,onChange:t=>h("otaCommission",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.otaCommission],onValueChange:([t])=>h("otaCommission",t),min:0,max:30,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"cleaningCost",className:"text-foreground text-sm font-sans",children:"Cena úklidu a prádla (za pobyt)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"cleaningCost",type:"text",value:c.cleaningCost,onChange:t=>{let e=N(t.target.value);u(t=>({...t,cleaningCost:e})),h("cleaningCost",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.cleaningCost],onValueChange:([t])=>h("cleaningCost",t),min:0,max:5e3,step:100,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"consumablesCost",className:"text-foreground text-sm font-sans",children:"Spotřební materiál a obměna (na pobyt)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Náklady na toaletní potřeby, kávu, a amortizaci ručníků, povlečení či nádobí. Počítáno na jeden pobyt."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"consumablesCost",type:"text",value:c.consumablesCost,onChange:t=>{let e=N(t.target.value);u(t=>({...t,consumablesCost:e})),h("consumablesCost",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.consumablesCost],onValueChange:([t])=>h("consumablesCost",t),min:0,max:1e3,step:50,className:"mt-2"})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider font-sans",children:"Fixní náklady provozovatele"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsxs)("p",{className:"text-sm whitespace-pre-wrap",children:["Zadávejte částky ",(0,y.jsx)("strong",{children:"bez DPH"}),". Provozovatel (plátce DPH) si DPH z nákladů (většinou 21 %) nároku
5je zpět, takže pro něj není nákladem.","\n\n","Např. pokud je záloha na elektřinu 3 000 Kč vč. DPH, skutečný náklad pro firmu je cca 2 480 Kč."]})})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"energyHeating",className:"text-xs text-foreground",children:"Energie a Topení"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"energyHeating",type:"text",value:i.energyHeating,onChange:t=>h("energyHeating",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"waterWaste",className:"text-xs text-foreground",children:"Voda a Odpad"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"waterWaste",type:"text",value:i.waterWaste,onChange:t=>h("waterWaste",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"internetTV",className:"text-xs text-foreground",children:"Internet & TV (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"internetTV",type:"text",value:i.internetTV,onChange:t=>h("internetTV",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"security",className:"text-xs text-foreground",children:"Zabezpečení (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"security",type:"text",value:i.security,onChange:t=>h("security",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"areaServices",className:"text-xs text-foreground",children:"Služby areálu (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"areaServices",type:"text",value:i.areaServices,onChange:t=>h("areaServices",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Zisk provozovatele"}),(0,y.jsx)("div",{className:"space-y-2",children:(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"managerMargin",className:"text-foreground text-sm",children:"Marže provozovatele %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"managerMargin",type:"number",value:i.managerMargin,onChange:t=>h("managerMargin",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.managerMargin],onValueChange:([t])=>h("managerMargin",t),min:0,max:50,step:1,className:"mt-2"})]})})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{className:"pt-4 space-y-3",children:[(0,y.jsx)("h3",{className:"font-serif text-sm text-[#3C3633] mb-4",children:"Měsíční rozpis"}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Čistý obrat provozovatele (bez DPH)"}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:[Math.round(C).toLocaleStr
5ing("cs-CZ")," Kč"]})]}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Náklady provozu celkem"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-3 h-3 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Součet provizí portálům, nákladů na úklid, spotřebního materiálu a fixních nákladů (energie, voda...)."})})]})]}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:["- ",Math.round(L).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Zisk provozovatele (jeho marže)"}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:["- ",Math.round(M).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsx)("div",{className:"border-t border-[#3C3633]/20 my-2"}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-3",children:[(0,y.jsx)("span",{className:"text-base font-bold text-[#3C3633] font-sans",children:"Nájemné, které může provozovatel platit"}),(0,y.jsxs)("span",{className:"tabular-nums text-base font-bold text-[#7D8559] font-sans",children:[Math.round(T).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsx)("div",{className:"flex justify-end mt-1",children:(0,y.jsxs)("span",{className:"text-xs text-[#8B9165] italic font-sans",children:["(Váš podíl z tržeb: ",Math.round(I)," %)"]})})]})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"monthlyExpensesCorporate",className:"text-foreground font-sans",children:"Náklady vlastníka (Kč)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Vaše náklady spojené s vlastnictvím (pojištění stavby, revize, tvorba fondu oprav)."})})]})]}),(0,y.jsx)(tD,{id:"monthlyExpensesCorporate",type:"text",value:c.monthlyExpenses,readOnly:!0,className:"font-mono bg-stone-50 text-foreground [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsxs)(rU,{children:[(0,y.jsx)(rH,{asChild:!0,children:(0,y.jsx)(eP,{variant:"outline",size:"sm",className:"w-full mt-2",children:"Upravit"})}),(0,y.jsxs)(nh,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[(0,y.jsx)(np,{children:(0,y.jsx)(nm,{children:"Detailní rozpis nákladů"})}),(0,y.jsxs)("div",{className:"bg-stone-50 p-4 rounded-md border border-stone-200 space-y-3",children:[(0,y.jsx)("h4",{className:"font-sans text-base font-semibold text-foreground",children:"Co platíte vy a co nájemce?"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:"Jako majitel nemovitosti hradíte pouze fixní náklady spojené s vlastnictvím (pojištění stavby, revize, tvorba fondu oprav)."}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:[(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Běžné provozní náklady (elektřina, voda, internet, odpad, ostraha) hradí přímo provozovatel (nájemce)"})," ze svých tržeb. Proto nejsou v tomto seznamu zahrnuty."]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{className:"space-y-4 py-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"pojisteni",className:"text-foreground text-sm",children:"Pojištění nemovitosti"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"pojisteni",type:"text",value:c.pojisteni,onChange:t=>{let e=N(t.target.value);u(t=>({...t,pojisteni:e})),d("pojisteni",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"revizeUdrzba",className:"text-foreground text-sm",children:"Revize a zákonná údržba"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"revizeUdrzba",type:"text",value:c.revizeUdrzba,onChange:t=>{let e=N(t.target.value);u(t=>({...t,revizeUdrzba:e})),d("revizeUdrzba",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"fondOprav",className:"text-foreground text-sm",children:"Fond oprav (% z ceny nemovitosti)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"fondOprav",type:"number",value:r.fondOprav,onChange:t=>d("fondOprav",Number(t.target.value)),step:"0.1",className:"font-mono pr-12",min:0,max:2}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[r.fondOprav],onValueChange:([t])=>d("fondOprav",t),min:0,max:2,step:.1,className:"mt-2"}),(0,y.jsxs)("p",{className:"text-sm text-stone-500",children:["≈ ",w(Math.round(t.propertyPrice*(r.fondOprav/100)/12))," Kč / měs"]}),(0,y.jsxs)("div",{className:"flex items-start gap-2 mt-3 p-3 bg-amber-50 rounded-lg border border-amber-200",children:[(0,y.jsx)(oa,{id:"warrantyModeCorporate",checked:r.warrantyMode??!0,onCheckedChange:t=>{n({...r,warrantyMode:!0===t})},className:"mt-0.5"}),(0,y.jsxs)("div",{className:"flex-1",children:[(0,y.jsx)(tI,{htmlFor:"warrantyModeCorporate",className:"text-sm font-medium text-amber-900 cursor-pointer leading-tight",children:"Snížený fond oprav po dobu záruky (prvních 5 let)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)("p",{className:"text-xs text-amber-700 mt-1 cursor-help",children:"Novostavba vyžaduje v prvních letech nižší investice. Pokud je aktivní, kalkulace počítá v letech 1–5 pouze s 30 % cílové částky, což zlepšuje počáteční cashflow."})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm",children:"Novostavba vyžaduje v prvních letech nižší investice. Pokud je aktivní, kalkulace počítá v letech 1–5 pouze s 30 % cílové částky, což zlepšuje počáteční cashflow."})})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"rezerva",className:"text-foreground text-sm",children:"Rezerva"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"rezerva",type:"text",value:c.rezerva,onChange:t=>{let e=N(t.target.value);u(t=>({...t,rezerva:e})),d("rezerva",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsx)("div",{className:"pt-4 border-t",children:(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)("span",{className:"text-sm font-semibold text-foreground font-sans",children:"Celkem:"}),(0,y.jsxs)("span",{className:"text-sm font-bold text-primary font-sans",children:[w(m)," Kč"]})]})})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"revenueShareCorporate",className:"text-foreground font-sans",children:"Váš podíl z tržeb"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Procentuální podíl z čistého obratu provozovatele, který vám zůstává jako nájem."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"revenueShareCorporate",type:"number",value:Math.round(I),readOnly:!0,className:"font-mono bg-[#8B9165]/10 text-foreground font-semibold [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm font-semibold",children:"%"})]}),(0,y.jsx)("p",{className:"text-xs text-[#8B9165] italic mt-2 font-sans",children:"Efektivita pronájmu"})]})]})]}):(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"propertyPrice",className:"text-foreground font-sans",children:"Kupní cena vč. DPH"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Celková pořizovací cena nemovitosti včetně DPH. Od této částky se odvíjí výše úvěru i budoucí zhodnocení."})})]})]}),(0,y.jsx)(tD,{id:"propertyPrice",type:"text",value:c.grossPrice,onChange:t=>{let e=N(t.target.value);u(t=>({...t,grossPrice:e}));let r=j(e);r>0&&U(r)},className:"font-mono"}),(0,y.jsx)(ey,{value:[t.propertyPrice],onValueChange:([t])=>U(t),min:5e6,max:3e7,step:1e5,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"landValue",className:"text-foreground font-sans",children:"Z toho cena pozemku"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Hodnota pozemku se daňově neodepisuje."})})]})]}),(0,y.jsx)(tD,{id:"landValue",type:"text",value:c.landValue,onChange:t=>{let e=N(t.target.value);u(t=>({...t,landValue:e})),f("landValue",j(e))},className:"font-mono"}),(0,y.jsx)(ey,{value:[t.landValue],onValueChange:([t])=>f("landValue",t),min:0,max:5e6,step:5e4,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{className:"text-foreground font-sans",children:"Od
5pisová skupina"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Určuje rychlost odpisování. Skupina 4 (dřevostavby) = 20 let. Skupina 5 (domy/byty) = 30 let. Skupina 6 (hotely/admin) = 50 let."})})]})]}),(0,y.jsxs)(aZ,{type:"single",value:(t.depreciationGroup||4).toString(),onValueChange:t=>{t&&f("depreciationGroup",parseInt(t))},className:"justify-start gap-2",children:[(0,y.jsx)(aJ,{value:"4",className:"px-4",children:"4 (20 let)"}),(0,y.jsx)(aJ,{value:"5",className:"px-4",children:"5 (30 let)"}),(0,y.jsx)(aJ,{value:"6",className:"px-4",children:"6 (50 let)"})]}),(0,y.jsxs)("p",{className:"text-xs text-muted-foreground italic mt-2",children:[4===t.depreciationGroup&&"Dřevostavby, chaty",5===t.depreciationGroup&&"Standardní budovy",6===t.depreciationGroup&&"Hotely, administrativa"]})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"ltvSlider",className:"text-foreground font-sans",children:"Výše úvěru (LTV %)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Loan-to-Value poměr. Určuje, jakou část tržní hodnoty nemovitosti pokryje banka."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"ltvSlider",type:"number",value:Math.round(B),onChange:t=>q(Number(t.target.value)),className:"font-mono pr-12",min:0,max:100}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[B],onValueChange:([t])=>q(t),min:0,max:100,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"downPayment",className:"text-foreground font-sans",children:"Vlastní zdroje (Kč)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Vaše počáteční investice (akontace). Automaticky vypočteno na základě LTV."})})]})]}),(0,y.jsx)(tD,{id:"downPayment",type:"number",value:Math.round(t.downPayment),readOnly:!0,className:"font-mono bg-muted text-muted-foreground cursor-not-allowed"}),(0,y.jsxs)("p",{className:"text-xs text-muted-foreground italic mt-2",children:["Vypočteno z LTV ",Math.round(B)," %"]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"interestRate",className:"text-foreground font-sans",children:"Úroková sazba (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Roční úroková sazba vašeho úvěru."})})]})]}),(0,y.jsx)(tD,{id:"interestRate",type:"number",value:t.interestRate,onChange:t=>f("interestRate",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.interestRate],onValueChange:([t])=>f("interestRate",t),min:0,max:10,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"loanDuration",className:"text-foreground font-sans",children:"Délka úvěru (let)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Doba, po kterou budete úvěr splácet."})})]})]}),(0,y.jsx)(tD,{id:"loanDuration",type:"number",value:t.loanDuration,onChange:t=>f("loanDuration",Number(t.target.value)),className:"font-mono"}),(0,y.jsx)(ey,{value:[t.loanDuration],onValueChange:([t])=>f("loanDuration",t),min:5,max:40,step:1,className:"mt-2"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"annualInflation",className:"text-foreground font-sans",children:"Roční Inflace (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Předpokládané roční zdražování."})})]})]}),(0,y.jsx)(tD,{id:"annualInflation",type:"number",value:t.annualInflation,onChange:t=>f("annualInflation",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.annualInflation],onValueChange:([t])=>f("annualInflation",t),min:0,max:10,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"annualAppreciation",className:"text-foreground font-sans",children:"Růst hodnoty nemovitosti (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Předpokládaný roční růst tržní ceny."})})]})]}),(0,y.jsx)(tD,{id:"annualAppreciation",type:"number",value:t.annualAppreciation,onChange:t=>f("annualAppreciation",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.annualAppreciation],onValueChange:([t])=>f("annualAppreciation",t),min:0,max:15,step:.1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"incomeTaxRate",className:"text-foreground font-sans",children:"Daň z příjmu (%)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsxs)("p",{className:"text-sm whitespace-pre-wrap",children:["Nastavte sazbu podle vašeho očekávaného daňového základu. • ",(0,y.jsx)("strong",{children:"15 %"}),": Základní sazba pro většinu příjmů. • ",(0,y.jsx)("strong",{children:"23 %"}
5),": Sazba pro roční příjmy nad cca 1,7 mil. Kč. • ",(0,y.jsx)("strong",{children:"Vlastní"}),": Můžete zadat svou 'efektivní' sazbu (např. 18 %), pokud se pohybujete na hranici pásem."]})})]})]}),(0,y.jsx)(tD,{id:"incomeTaxRate",type:"number",value:t.incomeTaxRate,onChange:t=>f("incomeTaxRate",Number(t.target.value)),step:"0.1",className:"font-mono"}),(0,y.jsx)(ey,{value:[t.incomeTaxRate],onValueChange:([t])=>f("incomeTaxRate",t),min:0,max:50,step:.5,className:"mt-2"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-4 gap-y-6 md:gap-y-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"monthlyRentYear1",className:"text-foreground font-sans",children:"Nájemné od provozovatele"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Váš pasivní příjem. Jde o fixní částku, kterou vám platí provozovatel resortu bez ohledu na obsazenost."})})]})]}),(0,y.jsx)(tD,{id:"monthlyRentYear1",type:"text",value:w(Math.round(o)),readOnly:!0,className:"font-mono bg-stone-50 text-foreground [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsxs)(rU,{children:[(0,y.jsx)(rH,{asChild:!0,children:(0,y.jsx)(eP,{variant:"outline",size:"sm",className:"w-full mt-2",children:"Kalkulace výnosnosti"})}),(0,y.jsxs)(nh,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[(0,y.jsx)(np,{children:(0,y.jsx)(nm,{children:"Ekonomika provozovatele (Airbnb)"})}),(0,y.jsxs)("div",{className:"bg-stone-50 p-4 rounded-md border border-stone-200 space-y-3",children:[(0,y.jsx)("h4",{className:"font-sans text-base font-semibold text-foreground",children:"Jak se počítá váš nájem? (Vztah Short-term vs. Long-term)"}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:["Výše nájemného, které vám provozovatel platí, vychází z reálné ekonomiky krátkodobého pronájmu (Airbnb). Funguje to jako ",(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"spojené nádoby"}),":"]}),(0,y.jsxs)("ol",{className:"text-sm text-muted-foreground leading-relaxed space-y-1.5 list-decimal list-inside",children:[(0,y.jsxs)("li",{children:["Nejdříve spočítáme, kolik nemovitost utrží na turistech (",(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Short-term"}),")."]}),(0,y.jsx)("li",{children:"Odečteme náklady na provoz a zisk provozovatele."}),(0,y.jsxs)("li",{children:[(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Zbytek je maximální částka, kterou si provozovatel může dovolit platit vám jako fixní nájem (Long-term)"}),"."]})]}),(0,y.jsx)("div",{className:"flex justify-center pt-2",children:(0,y.jsx)("div",{className:"text-muted-foreground/60 animate-bounce",children:(0,y.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})})})]}),(0,y.jsxs)("div",{className:"space-y-4 py-4",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Parametry tržeb"}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"pricePerNight",className:"text-foreground text-sm font-sans",children:"Cena za noc bez DPH (12%)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"pricePerNight",type:"text",value:c.pricePerNight,onChange:t=>{let e=N(t.target.value);u(t=>({...t,pricePerNight:e})),h("pricePerNight",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.pricePerNight],onValueChange:([t])=>h("pricePerNight",t),min:1e3,max:2e4,step:100,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"occupancyRate",className:"text-foreground text-sm",children:"Obsazenost v %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"occupancyRate",type:"number",value:i.occupancyRate,onChange:t=>h("occupancyRate",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.occupancyRate],onValueChange:([t])=>h("occupancyRate",t),min:0,max:100,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"avgStayLength",className:"text-foreground text-sm",children:"Průměrná délka pobytu (nocí)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"avgStayLength",type:"number",value:i.avgStayLength,onChange:t=>h("avgStayLength",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"nocí"})]}),(0,y.jsx)(ey,{value:[i.avgStayLength],onValueChange:([t])=>h("avgStayLength",t),min:1,max:14,step:1,className:"mt-2"})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Variabilní náklady"}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"otaCommission",className:"text-foreground text-sm",children:"Provize Booking/Airbnb %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"otaCommission",type:"number",value:i.otaCommission,onChange:t=>h("otaCommission",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.otaCommission],onValueChange:([t])=>h("otaCommission",t),min:0,max:30,step:1,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"cleaningCost",className:"text-foreground text-sm font-sans",children:"Cena úklidu a prádla (za pobyt)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"cleaningCost",type:"text",value:c.cleaningCost,onChange:t=>{let e=N(t.target.value);u(t=>({...t,cleaningCost:e})),h("cleaningCost",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.cleaningCost],onValueChange:([t])=>h("cleaningCost",t),min:0,max:5e3,step:100,className:"mt-2"})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"consumablesCost",className:"text-foreground text-sm font-sans",children:"Spotřební materiál a obměna (na pobyt)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Náklady na toaletní potřeby, kávu, a amortizaci ručníků, povlečení či nádobí. Počítáno na jeden pobyt."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"consumablesCost",type:"text",value:c.consumablesCost,onChange:t=>{let e=N(t.target.value);u(t=>({...t,consumablesCost:e})),h("consumablesCost",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]}),(0,y.jsx)(ey,{value:[i.consumablesCost],onValueChange:([t])=>h("consumablesCost",t),min:0,max:1e3,step:50,className:"mt-2"})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider font-sans",children:"Fixní náklady provozovatele"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsxs)("p",{className:"text-sm whitespace-pre-wrap",children:["Zadávejte částky ",(0,y.jsx)("strong",{children:"bez DPH"}),". Provozovatel (plátce DPH) si DPH z nákladů (většinou 21 %) nároku
5je zpět, takže pro něj není nákladem.","\n\n","Např. pokud je záloha na elektřinu 3 000 Kč vč. DPH, skutečný náklad pro firmu je cca 2 480 Kč."]})})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"energyHeating",className:"text-xs text-foreground",children:"Energie a Topení"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"energyHeating",type:"text",value:i.energyHeating,onChange:t=>h("energyHeating",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"waterWaste",className:"text-xs text-foreground",children:"Voda a Odpad"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"waterWaste",type:"text",value:i.waterWaste,onChange:t=>h("waterWaste",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"internetTV",className:"text-xs text-foreground",children:"Internet & TV (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"internetTV",type:"text",value:i.internetTV,onChange:t=>h("internetTV",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"security",className:"text-xs text-foreground",children:"Zabezpečení (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"security",type:"text",value:i.security,onChange:t=>h("security",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-2 items-center",children:[(0,y.jsx)(tI,{htmlFor:"areaServices",className:"text-xs text-foreground",children:"Služby areálu (měsíčně)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"areaServices",type:"text",value:i.areaServices,onChange:t=>h("areaServices",Number(t.target.value)),className:"font-mono pr-8 h-8 text-sm"}),(0,y.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs",children:"Kč"})]})]})]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3 font-sans",children:"Zisk provozovatele"}),(0,y.jsx)("div",{className:"space-y-2",children:(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"managerMargin",className:"text-foreground text-sm",children:"Marže provozovatele %"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"managerMargin",type:"number",value:i.managerMargin,onChange:t=>h("managerMargin",Number(t.target.value)),className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[i.managerMargin],onValueChange:([t])=>h("managerMargin",t),min:0,max:50,step:1,className:"mt-2"})]})})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{className:"pt-4 space-y-3",children:[(0,y.jsx)("h3",{className:"font-serif text-sm text-[#3C3633] mb-4",children:"Měsíční rozpis"}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Čistý obrat provozovatele (bez DPH)"}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:[Math.round(C).toLocaleStr
5ing("cs-CZ")," Kč"]})]}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Náklady provozu celkem"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-3 h-3 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Součet provizí portálům, nákladů na úklid, spotřebního materiálu a fixních nákladů (energie, voda...)."})})]})]}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:["- ",Math.round(L).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-2",children:[(0,y.jsx)("span",{className:"text-sm text-[#3C3633]",children:"Zisk provozovatele (jeho marže)"}),(0,y.jsxs)("span",{className:"text-sm text-[#3C3633] tabular-nums font-sans",children:["- ",Math.round(M).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsx)("div",{className:"border-t border-[#3C3633]/20 my-2"}),(0,y.jsxs)("div",{className:"flex justify-between items-center py-3",children:[(0,y.jsx)("span",{className:"text-base font-bold text-[#3C3633] font-sans",children:"Nájemné, které může provozovatel platit"}),(0,y.jsxs)("span",{className:"tabular-nums text-base font-bold text-[#7D8559] font-sans",children:[Math.round(T).toLocaleString("cs-CZ")," Kč"]})]}),(0,y.jsx)("div",{className:"flex justify-end mt-1",children:(0,y.jsxs)("span",{className:"text-xs text-[#8B9165] italic font-sans",children:["(Váš podíl z tržeb: ",Math.round(I)," %)"]})})]})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{htmlFor:"monthlyExpenses",className:"text-foreground font-sans",children:"Náklady vlastníka"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Vaše náklady spojené s vlastnictvím (pojištění, fond oprav)."})})]})]}),(0,y.jsx)(tD,{id:"monthlyExpenses",type:"text",value:c.monthlyExpenses,readOnly:!0,className:"font-mono bg-stone-50 text-foreground [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsxs)(rU,{children:[(0,y.jsx)(rH,{asChild:!0,children:(0,y.jsx)(eP,{variant:"outline",size:"sm",className:"w-full mt-2",children:"Upravit"})}),(0,y.jsxs)(nh,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[(0,y.jsx)(np,{children:(0,y.jsx)(nm,{children:"Detailní rozpis nákladů"})}),(0,y.jsxs)("div",{className:"bg-stone-50 p-4 rounded-md border border-stone-200 space-y-3",children:[(0,y.jsx)("h4",{className:"font-sans text-base font-semibold text-foreground",children:"Co platíte vy a co nájemce?"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:"Jako majitel nemovitosti hradíte pouze fixní náklady spojené s vlastnictvím (pojištění stavby, revize, tvorba fondu oprav)."}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed font-sans",children:[(0,y.jsx)("span",{className:"font-semibold text-foreground",children:"Běžné provozní náklady (elektřina, voda, internet, odpad, ostraha) hradí přímo provozovatel (nájemce)"})," ze svých tržeb. Proto nejsou v tomto seznamu zahrnuty."]})]}),(0,y.jsx)("div",{className:"border-t"}),(0,y.jsxs)("div",{className:"space-y-4 py-4",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"pojisteni",className:"text-foreground text-sm",children:"Pojištění nemovitosti"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"pojisteni",type:"text",value:c.pojisteni,onChange:t=>{let e=N(t.target.value);u(t=>({...t,pojisteni:e})),d("pojisteni",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"revizeUdrzba",className:"text-foreground text-sm",children:"Revize a zákonná údržba"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"revizeUdrzba",type:"text",value:c.revizeUdrzba,onChange:t=>{let e=N(t.target.value);u(t=>({...t,revizeUdrzba:e})),d("revizeUdrzba",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"fondOprav",className:"text-foreground text-sm",children:"Fond oprav (% z ceny nemovitosti)"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"fondOpravIndividual",type:"number",value:r.fondOprav,onChange:t=>d("fondOprav",Number(t.target.value)),step:"0.1",className:"font-mono pr-12",min:0,max:2}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,y.jsx)(ey,{value:[r.fondOprav],onValueChange:([t])=>d("fondOprav",t),min:0,max:2,step:.1,className:"mt-2"}),(0,y.jsxs)("p",{className:"text-sm text-stone-500",children:["≈ ",w(Math.round(t.propertyPrice*(r.fondOprav/100)/12))," Kč / měs"]}),(0,y.jsxs)("div",{className:"flex items-start gap-2 mt-3 p-3 bg-amber-50 rounded-lg border border-amber-200",children:[(0,y.jsx)(oa,{id:"warrantyModeIndividualPersona",checked:r.warrantyMode??!0,onCheckedChange:t=>{n({...r,warrantyMode:!0===t})},className:"mt-0.5"}),(0,y.jsxs)("div",{className:"flex-1",children:[(0,y.jsx)(tI,{htmlFor:"warrantyModeIndividualPersona",className:"text-sm font-medium text-amber-900 cursor-pointer leading-tight",children:"Snížený fond oprav po dobu záruky (prvních 5 let)"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)("p",{className:"text-xs text-amber-700 mt-1 cursor-help",children:"Novostavba vyžaduje v prvních letech nižší investice. Pokud je aktivní, kalkulace počítá v letech 1–5 pouze s 30 % cílové částky, což zlepšuje počáteční cashflow."})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm",children:"Novostavba vyžaduje v prvních letech nižší investice. Pokud je aktivní, kalkulace počítá v letech 1–5 pouze s 30 % cílové částky, což zlepšuje počáteční cashflow."})})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)(tI,{htmlFor:"rezerva",className:"text-foreground text-sm",children:"Rezerva"}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"rezerva",type:"text",value:c.rezerva,onChange:t=>{let e=N(t.target.value);u(t=>({...t,rezerva:e})),d("rezerva",j(e))},className:"font-mono pr-12"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"Kč"})]})]}),(0,y.jsx)("div",{className:"pt-4 border-t",children:(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)("span",{className:"text-sm font-semibold text-foreground font-sans",children:"Celkem:"}),(0,y.jsxs)("span",{className:"text-sm font-bold text-primary font-sans",children:[w(m)," Kč"]})]})})]})]})]})]}),(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)(tI,{className:"text-foreground font-sans",children:"Váš podíl z tržeb"}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(oo,{className:"w-4 h-4 text-muted-foreground hover:text-foreground cursor-help"})}),(0,y.jsx)(am,{side:"right",className:"max-w-sm",children:(0,y.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:"Procentuální podíl z čistého obratu provozovatele, který vám zůstává jako nájem."})})]})]}),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(tD,{id:"revenueShareIndividual",type:"number",value:Math.round(I),readOnly:!0,className:"font-mono bg-[#8B9165]/10 text-foreground font-semibold [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,y.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm font-semibold",children:"%"})]}),(0,y.jsx)("p",{className:"text-xs text-[#8B9165] italic mt-2 font-sans",children:"Klíčová metrika"})]})]})]})})]})})}t.i(47167);
5var ol=t.i(29873),oc=t.i(71223),ou=t.i(44950),of=t.i(82820),od=t.i(31195),oh=t.i(24283);function op(t,e){if(!t)throw Error("Invariant failed")}var om=t.i(85845),ov=t.i(12447),oy=t.i(79367),og=t.i(78948),ob=t.i(94241),ox=function(t){return 0===t?0:t>0?1:-1},ow=function(t){return(0,om.default)(t)&&t.indexOf("%")===t.length-1},oj=function(t){return(0,ob.default)(t)&&!(0,og.default)(t)},oN=function(t){return oj(t)||(0,om.default)(t)},ok=0,o_=function(t){var e=++ok;return"".concat(t||"").concat(e)},oS=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!oj(t)&&!(0,om.default)(t))return n;if(ow(t)){var a=t.indexOf("%");r=e*parseFloat(t.slice(0,a))/100}else r=+t;return(0,og.default)(r)&&(r=n),i&&r>e&&(r=e),r},oA=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},oO=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++)if(r[t[n]])return!0;else r[t[n]]=!0;return!1},oP=function(t,e){return oj(t)&&oj(e)?function(r){return t+r*(e-t)}:function(){return e}};function oE(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):(0,of.default)(t,e))===r}):null}var oC=function(t,e){return oj(t)&&oj(e)?t-e:(0,om.default)(t)&&(0,om.default)(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))};function oL(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}function oM(t){return(oM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var oT=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],oI=["points","pathLength"],oD={svg:["viewBox","children"],polygon:oI,polyline:oI},oR=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
5ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],oz=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,g.isValidElement)(t)&&(r=t.props),!(0,ov.default)(r))return null;var n={};return Object.keys(r).forEach(function(t){oR.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})}),n},oF=function(t,e,r){if(!(0,ov.default)(t)||"object"!==oM(t))return null;var n=null;return Object.keys(t).forEach(function(i){var a=t[i];oR.includes(i)&&"function"==typeof a&&(n||(n={}),n[i]=function(t){return a(e,r,t),null})}),n},oB=["children"],oq=["children"];function oU(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function oV(t){return(oV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var oH={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},oW=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},o$=null,oG=null,oK=function t(e){if(e===o$&&Array.isArray(oG))return oG;var r=[];
5return g.Children.forEach(e,function(e){(0,ol.default)(e)||((0,oy.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))}),oG=r,o$=e,r};function oY(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return oW(t)}):[oW(e)],oK(t).forEach(function(t){var e=(0,of.default)(t,"type.displayName")||(0,of.default)(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function oX(t,e){var r=oY(t,e);return r&&r[0]}var oZ=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!oj(r)&&!(r<=0)&&!!oj(n)&&!(n<=0)},oJ=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],oQ=function(t,e,r,n){var i,a=null!=(i=null==oD?void 0:oD[n])?i:[];return e.startsWith("data-")||!(0,oc.default)(t)&&(n&&a.includes(e)||oT.includes(e))||r&&oR.includes(e)},o0=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,g.isValidElement)(t)&&(n=t.props),!(0,ov.default)(n))return null;var i={};return Object.keys(n).forEach(function(t){var a;oQ(null==(a=n)?void 0:a[t],t,e,r)&&(i[t]=n[t])}),i},o1=function t(e,r){if(e===r)return!0;var n=g.Children.count(e);if(n!==g.Children.count(r))return!1;if(0===n)return!0;if(1===n)return o2(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!o2(a,o))return!1}return!0},o2=function(t,e){if((0,ol.default)(t)&&(0,ol.default)(e))return!0;if(!(0,ol.default)(t)&&!(0,ol.default)(e)){var r=t.props||{},n=r.children,i=oU(r,oB),a=e.props||{},o=a.children,s=oU(a,oq);if(n&&o)return oL(i,s)&&o1(n,o);if(!n&&!o)return oL(i,s)}return!1},o5=function(t,e){var r=[],n={};return oK(t).forEach(function(t,i){if(t&&t.type&&(0,om.default)(t.type)&&oJ.indexOf(t.type)>=0)r.push(t);else if(t){var a=oW(t.type),o=e[a]||{},s=o.handler,l=o.once;if(s&&(!l||!n[a])){var c=s(t,a,i);r.push(c),n[a]=!0}}}),r},o3=function(t){var e=t&&t.type;return e&&oH[e]?oH[e]:null},o4=["children","width","height","viewBox","className","style","title","desc"];function o6(){return(o6=Object.assign.bind()).apply(this,arguments)}function o8(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,s=t.title,l=t.desc,c=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,o4),u=i||{width:r,height:n,x:0,y:0},f=L("recharts-surface",a);return g.default.createElement("svg",o6({},o0(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),g.default.createElement("title",null,s),g.default.createElement("desc",null,l),e)}var o7=["children","className"];function o9(){return(o9=Object.assign.bind()).apply(this,arguments)}var st=g.default.forwardRef(function(t,e){var r=t.children,n=t.className,i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,o7),a=L("recharts-layer",n);return g.default.createElement("g",o9({className:a},o0(i,!0),{ref:e}),r)});function se(t){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sr(){return(sr=Object.assign.bind()).apply(this,arguments)}function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function si(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function sa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?si(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=se(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=se(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==se(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function so(t){return Array.isArray(t)&&oN(t[0])&&oN(t[1])?t.join(" ~ "):t}var ss=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=t.itemStyle,a=void 0===i?{}:i,o=t.labelStyle,s=t.payload,l=t.formatter,c=t.itemSorter,u=t.wrapperClassName,f=t.labelClassName,d=t.label,h=t.labelFormatter,p=t.accessibilityLayer,m=sa({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===n?{}:n),v=sa({margin:0},void 0===o?{}:o),y=!(0,ol.default)(d),b=y?d:"",x=L("recharts-default-tooltip",u),w=L("recharts-tooltip-label",f);return y&&h&&null!=s&&(b=h(d,s)),g.default.createElement("div",sr({className:x,style:m},void 0!==p&&p?{role:"status","aria-live":"assertive"}:{}),g.default.createElement("p",{className:w,style:v},g.default.isValidElement(b)?b:"".concat(b)),function(){if(s&&s.length){var t=(c?(0,od.default)(s,c):s).map(function(t,e){if("none"===t.type)return null;var n=sa({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||l||so,o=t.value,c=t.name,u=o,f=c;if(i&&null!=u&&null!=f){var d=i(o,c,t,e,s);if(Array.isArray(d)){var h=function(t){if(Array.isArray(t))return t}(d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(d,2)||function(t,e){if(t){if("string"==typeof t)return sn(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sn(t,2)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=h[0],f=h[1]}else u=d}return g.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},oN(f)?g.default.createElement("span",{className:"recharts-tooltip-item-name"},f):null,oN(f)?g.default.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,g.default.createElement("span",{className:"recharts-tooltip-item-value"},u),g.default.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return g.default.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function sl(t){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sc(t,e,r){var n;return(n=function(t,e){if("object"!=sl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sl(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==sl(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var su="recharts-tooltip-wrapper",sf={visibility:"hidden"};function sd(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,s=t.tooltipDimension,l=t.viewBox,c=t.viewBoxDimension;if(a&&oj(a[n]))return a[n];var u=r[n]-s-i,f=r[n]+i;return e[n]?o[n]?u:f:o[n]?u<l[n]?Math.max(f,l[n]):Math.max(u,l[n]):f+s>l[n]+c?Math.max(u,l[n]):Math.max(f,l[n])}function sh(t){return(sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function sm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?sp(Object(r),!0).forEach(function(e){sb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function sv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sv=function(){return!!t})()}function sy(t){return(sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sg(t,e){return(sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sb(t,e,r){return(e=sx(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sx(t){var e=function(t,e){if("object"!=sh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sh(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sh(e)?e:e+""}var sw=function(t){var e;function r(){var t,e,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=r,n=[].concat(a),e=sy(e),sb(t=function(t,e){if(e&&("object"===sh(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,sv()?Reflect.construct(e,n||[],sy(this).constructor):e.apply(this,n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),sb(t,"handleKeyDown",function(e){if("Escape"===e.key){var r,n,i,a;t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=t.props.coordinate)?void 0:n.x)?r:0,y:null!=(i=null==(a=t.props.coordinate)?void 0:a.y)?i:0}})}}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&sg(r,t),e=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(t=this.props.coordinate)?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null==(e=this.props.coordinate)?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,y,b,x=this,w=this.props,j=w.active,N=w.allowEscapeViewBox,k=w.animationDuration,_=w.animationEasing,S=w.children,A=w.coordinate,O=w.hasPayload,P=w.isAnimationActive,E=w.offset,C=w.position,M=w.reverseDirection,T=w.useTranslate3d,I=w.viewBox,D=w.wrapperStyle,R=(f=(t={allowEscapeViewBox:N,coordinate:A,offsetTopLeft:E,position:C,reverseDirection:M,tooltipBox:this.state.lastBoundingBox,useTranslate3d:T,viewBox:I}).allowEscapeViewBox,d=t.coordinate,h=t.offsetTopLeft,p=t.position,m=t.reverseDirection,v=t.tooltipBox,y=t.useTranslate3d,b=t.viewBox,v.height>0&&v.width>0&&d?(r=(e={translateX:c=sd({allowEscapeViewBox:f,coordinate:d,key:"x",offsetTopLeft:h,position:p,reverseDirection:m,tooltipDimension:v.width,viewBox:b,viewBoxDimension:b.width}),translateY:u=sd({allowEscapeViewBox:f,coordinate:d,key:"y",offsetTopLeft:h,position:p,reverseDirection:m,tooltipDimension:v.height,viewBox:b,viewBoxDimension:b.height}),useTranslate3d:y}).translateX,n=e.translateY,l={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(n,"px, 0)"):"translate(".concat(r,"px, ").concat(n,"px)")}
5):l=sf,{cssProperties:l,cssClasses:(a=(i={translateX:c,translateY:u,coordinate:d}).coordinate,o=i.translateX,s=i.translateY,L(su,sc(sc(sc(sc({},"".concat(su,"-right"),oj(o)&&a&&oj(a.x)&&o>=a.x),"".concat(su,"-left"),oj(o)&&a&&oj(a.x)&&o<a.x),"".concat(su,"-bottom"),oj(s)&&a&&oj(a.y)&&s>=a.y),"".concat(su,"-top"),oj(s)&&a&&oj(a.y)&&s<a.y)))}),z=R.cssClasses,F=R.cssProperties,B=sm(sm({transition:P&&j?"transform ".concat(k,"ms ").concat(_):void 0},F),{},{pointerEvents:"none",visibility:!this.state.dismissed&&j&&O?"visible":"hidden",position:"absolute",top:0,left:0},D);return g.default.createElement("div",{tabIndex:-1,className:z,style:B,ref:function(t){x.wrapperNode=t}},S)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sx(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.PureComponent),sj={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return sj[t]},set:function(t,e){if("string"==typeof t)sj[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){sj[e]=t[e]})}}},sN=t.i(74010);function sk(t,e,r){return!0===e?(0,sN.default)(t,r):(0,oc.default)(e)?(0,sN.default)(t,e):t}function s_(t){return(s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function sA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sS(Object(r),!0).forEach(function(e){sC(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function sO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sO=function(){return!!t})()}function sP(t){return(sP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sE(t,e){return(sE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sC(t,e,r){return(e=sL(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sL(t){var e=function(t,e){if("object"!=s_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s_(e)?e:e+""}function sM(t){return t.dataKey}var sT=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=sP(t),function(t,e){if(e&&("object"===s_(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,sO()?Reflect.construct(t,e||[],sP(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&sE(r,t),e=[{key:"render",value:function(){var t,e=this,r=this.props,n=r.active,i=r.allowEscapeViewBox,a=r.animationDuration,o=r.animationEasing,s=r.content,l=r.coordinate,c=r.filterNull,u=r.isAnimationActive,f=r.offset,d=r.payload,h=r.payloadUniqBy,p=r.position,m=r.reverseDirection,v=r.useTranslate3d,y=r.viewBox,b=r.wrapperStyle,x=null!=d?d:[];c&&x.length&&(x=sk(d.filter(function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)}),h,sM));var w=x.length>0;return g.default.createElement(sw,{allowEscapeViewBox:i,animationDuration:a,animationEasing:o,isAnimationActive:u,active:n,coordinate:l,hasPayload:w,offset:f,position:p,reverseDirection:m,useTranslate3d:v,viewBox:y,wrapperStyle:b},(t=sA(sA({},this.props),{},{payload:x}),g.default.isValidElement(s)?g.default.cloneElement(s,t):"function"==typeof s?g.default.createElement(s,t):g.default.createElement(ss,t)))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sL(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.PureComponent);sC(sT,"displayName","Tooltip"),sC(sT,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!sj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var sI=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]},sD=t.i(32241);function sR(t){return function(){return t}}let sz=Math.PI,sF=2*sz,sB=sF-1e-6;function sq(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class sU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?sq:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return sq;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,a){this._append`C${+t},${+e},${+r},${+n}
5,${this._x1=+i},${this._y1=+a}`}arcTo(t,e,r,n,i){if(t*=1,e*=1,r*=1,n*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=r-t,l=n-e,c=a-t,u=o-e,f=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>1e-6)if(Math.abs(u*s-l*c)>1e-6&&i){let d=r-a,h=n-o,p=s*s+l*l,m=Math.sqrt(p),v=Math.sqrt(f),y=i*Math.tan((sz-Math.acos((p+f-(d*d+h*h))/(2*m*v)))/2),g=y/v,b=y/m;Math.abs(g-1)>1e-6&&this._append`L${t+g*c},${e+g*u}`,this._append`A${i},${i},0,0,${+(u*d>c*h)},${this._x1=t+b*s},${this._y1=e+b*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,a){if(t*=1,e*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=t+o,c=e+s,u=1^a,f=a?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,r&&(f<0&&(f=f%sF+sF),f>sB?this._append`A${r},${r},0,1,${u},${t-o},${e-s}A${r},${r},0,1,${u},${this._x1=l},${this._y1=c}`:f>1e-6&&this._append`A${r},${r},0,${+(f>=sz)},${u},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function sV(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new sU(e)}sU.prototype;let sH=Math.cos,sW=Math.sin,s$=Math.sqrt,sG=Math.PI,sK=2*sG;s$(3);let sY={draw(t,e){let r=s$(e/sG);t.moveTo(r,0),t.arc(0,0,r,0,sK)}},sX=s$(1/3),sZ=2*sX,sJ=sW(sG/10)/sW(7*sG/10),sQ=sW(sK/10)*sJ,s0=-sH(sK/10)*sJ,s1=s$(3);s$(3);let s2=s$(3)/2,s5=1/s$(12),s3=(s5/2+1)*3;function s4(t){return(s4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s6=["type","size","sizeType"];function s8(){return(s8=Object.assign.bind()).apply(this,arguments)}function s7(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s9(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s7(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=s4(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s4(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s4(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s7(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var lt={symbolCircle:sY,symbolCross:{draw(t,e){let r=s$(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},symbolDiamond:{draw(t,e){let r=s$(e/sZ),n=r*sX;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},symbolSquare:{draw(t,e){let r=s$(e),n=-r/2;t.rect(n,n,r,r)}},symbolStar:{draw(t,e){let r=s$(.8908130915292852*e),n=sQ*r,i=s0*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){let a=sK*e/5,o=sH(a),s=sW(a);t.lineTo(s*r,-o*r),t.lineTo(o*n-s*i,s*n+o*i)}t.closePath()}},symbolTriangle:{draw(t,e){let r=-s$(e/(3*s1));t.moveTo(0,2*r),t.lineTo(-s1*r,-r),t.lineTo(s1*r,-r),t.closePath()}},symbolWye:{draw(t,e){let r=s$(e/s3),n=r/2,i=r*s5,a=r*s5+r,o=-n;t.moveTo(n,i),t.lineTo(n,a),t.lineTo(o,a),t.lineTo(-.5*n-s2*i,s2*n+-.5*i),t.lineTo(-.5*n-s2*a,s2*n+-.5*a),t.lineTo(-.5*o-s2*a,s2*o+-.5*a),t.lineTo(-.5*n+s2*i,-.5*i-s2*n),t.lineTo(-.5*n+s2*a,-.5*a-s2*n),t.lineTo(-.5*o+s2*a,-.5*a-s2*o),t.closePath()}}},le=Math.PI/180,lr=function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*le;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},ln=function(t){var e,r=t.type,n=void 0===r?"circle":r,i=t.size,a=void 0===i?64:i,o=t.sizeType,s=void 0===o?"area":o,l=s9(s9({},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,s6)),{},{type:n,size:a,sizeType:s}),c=l.className,u=l.cx,f=l.cy,d=o0(l,!0);return u===+u&&f===+f&&a===+a?g.default.createElement("path",s8({}
5,d,{className:L("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(f,")"),d:(e=lt["symbol".concat((0,sD.default)(n))]||sY,(function(t,e){let r=null,n=sV(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:sR(t||sY),e="function"==typeof e?e:sR(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:sR(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:sR(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i})().type(e).size(lr(a,s,n))())})):null};function li(t){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function la(){return(la=Object.assign.bind()).apply(this,arguments)}function lo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}ln.registerSymbol=function(t,e){lt["symbol".concat((0,sD.default)(t))]=e};function ls(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ls=function(){return!!t})()}function ll(t){return(ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lc(t,e){return(lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function lu(t,e,r){return(e=lf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lf(t){var e=function(t,e){if("object"!=li(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=li(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==li(e)?e:e+""}var ld=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=ll(t),function(t,e){if(e&&("object"===li(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,ls()?Reflect.construct(t,e||[],ll(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&lc(r,t),e=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=32/6,n=32/3,i=t.inactive?e:t.color;if("plainline"===t.type)return g.default.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===t.type)return g.default.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(16,"h").concat(n,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(2*n,",").concat(16,"\n            H").concat(32,"M").concat(2*n,",").concat(16,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(n,",").concat(16),className:"recharts-legend-icon"});if("rect"===t.type)return g.default.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(g.default.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(r),!0).forEach(function(e){lu(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete a.legendIcon,g.default.cloneElement(t.legendIcon,a)}return g.default.createElement(ln,{fill:i,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,a=e.formatter,o=e.inactiveColor,s={x:0,y:0,width:32,height:32},l={display:"horizontal"===i?"inline-block":"block",marginRight:10}
5,c={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map(function(e,r){var i=e.formatter||a,u=L(lu(lu({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=(0,oc.default)(e.value)?null:e.value;sI(!(0,oc.default)(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var d=e.inactive?o:e.color;return g.default.createElement("li",la({className:u,style:l,key:"legend-item-".concat(r)},oF(t.props,e,r)),g.default.createElement(o8,{width:n,height:n,viewBox:s,style:c},t.renderIcon(e)),g.default.createElement("span",{className:"recharts-legend-item-text",style:{color:d}},i?i(f,e,r):f))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;return e&&e.length?g.default.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?n:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lf(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.PureComponent);function lh(t){return(lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}lu(ld,"displayName","Legend"),lu(ld,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var lp=["ref"];function lm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lm(Object(r),!0).forEach(function(e){lw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ly(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lj(n.key),n)}}function lg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(lg=function(){return!!t})()}function lb(t){return(lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lx(t,e){return(lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function lw(t,e,r){return(e=lj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lj(t){var e=function(t,e){if("object"!=lh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lh(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lh(e)?e:e+""}function lN(t){return t.value}var lk=function(t){var e,r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n,r=[].concat(a),e=lb(e),lw(t=function(t,e){if(e&&("object"===lh(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,lg()?Reflect.construct(e,r||[],lb(this).constructor):e.apply(this,r)),"lastBoundingBox",{width:-1,height:-1}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&lx(n,t),e=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}}
5,{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?lv({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,a=n.align,o=n.verticalAlign,s=n.margin,l=n.chartWidth,c=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===a&&"vertical"===i?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===o?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===o?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),lv(lv({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,a=e.wrapperStyle,o=e.payloadUniqBy,s=e.payload,l=lv(lv({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return g.default.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(g.default.isValidElement(t))return g.default.cloneElement(t,e);if("function"==typeof t)return g.default.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,lp);return g.default.createElement(ld,r)}(r,lv(lv({},this.props),{},{payload:sk(s,o,lN)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=lv(lv({},this.defaultProps),t.props).layout;return"vertical"===r&&oj(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&ly(n.prototype,e),r&&ly(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.PureComponent);function l_(){return(l_=Object.assign.bind()).apply(this,arguments)}lw(lk,"displayName","Legend"),lw(lk,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var lS=function(t){var e=t.cx,r=t.cy,n=t.r,i=L("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?g.createElement("circle",l_({},o0(t,!1),oz(t),{className:i,cx:e,cy:r,r:n})):null},lA=t.i(45009),lO=Object.getOwnPropertyNames,lP=Object.getOwnPropertySymbols,lE=Object.prototype.hasOwnProperty;function lC(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function lL(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,a=i.get(e),o=i.get(r);if(a&&o)return a===r&&o===e;i.set(e,r),i.set(r,e);var s=t(e,r,n);return i.delete(e),i.delete(r),s}}function lM(t){return lO(t).concat(lP(t))}var lT=Object.hasOwn||function(t,e){return lE.call(t,e)};function lI(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var lD=Object.getOwnPropertyDescriptor,lR=Object.keys;function lz(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function lF(t,e){return lI(t.getTime(),e.getTime())}function lB(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function lq(t,e){return t===e}function lU(t,e,r){var n,i,a=t.size;if(a!==e.size)return!1;if(!a)return!0;for(var o=Array(a),s=t.entries(),l=0;(n=s.next())&&!n.done;){for(var c=e.entries(),u=!1,f=0;(i=c.next())&&!i.done;){if(o[f]){f++;continue}var d=n.value,h=i.value;if(r.equals(d[0],h[0],l,f,t,e,r)&&r.equals(d[1],h[1],d[0],h[0],t,e,r)){u=o[f]=!0;break}f++}if(!u)return!1;l++}return!0}function lV(t,e,r){var n=lR(t),i=n.length;if(lR(e).length!==i)return!1;for(;i-- >0;)if(!lX(t,e,r,n[i]))return!1;return!0}function lH(t,e,r){var n,i,a,o=lM(t),s=o.length;if(lM(e).length!==s)return!1;for(;s-- >0;)if(!lX(t,e,r,n=o[s])||(i=lD(t,n),a=lD(e,n),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable)))return!1;return!0}function lW(t,e){return lI(t.valueOf(),e.valueOf())}function l$(t,e){return t.source===e.source&&t.flags===e.flags}function lG(t,e,r){var n,i,a=t.size;if(a!==e.size)return!1;if(!a)return!0;for(var o=Array(a),s=t.values();(n=s.next())&&!n.done;){for(var l=e.values(),c=!1,u=0;(i=l.next())&&!i.done;){if(!o[u]&&r.equals(n.value,i.value,n.value,i.value,t,e,r)){c=o[u]=!0;break}u++}if(!c)return!1}return!0}function lK(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function lY(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function lX(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||lT(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var lZ=Array.isArray,lJ="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,lQ=Object.assign,l0=Object.prototype.toString.call.bind(Object.prototype.toString),l1=l2();function l2(t){void 0===t&&(t={});var e,r,n,i,a,o,s,l,c,u,f,d,h,p,m=t.circular,v=t.createInternalComparator,y=t.createState,g=t.strict,b=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?lH:lz,areDatesEqual:lF,areErrorsEqual:lB,areFunctionsEqual:lq,areMapsEqual:n?lC(lU,lH):lU,areNumbersEqual:lI,areObjectsEqual:n?lH:lV,arePrimitiveWrappersEqual:lW,areRegExpsEqual:l$,areSetsEqual:n?lC(lG,lH):lG,areTypedArraysEqual:n?lH:lK,areUrlsEqual:lY,unknownTagComparators:void 0};if(r&&(i=lQ({},i,r(i))),e){var a=lL(i.areArraysEqual),o=lL(i.areMapsEqual),s=lL(i.areObjectsEqual),l=lL(i.areSetsEqual);i=lQ({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}(t)).areArraysEqual,n=e.areDatesEqual,i=e.areErrorsEqual,a=e.areFunctionsEqual,o=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,f=e.areSetsEqual,d=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators,function(t,e,m){if(t===e)return!0;
5if(null==t||null==e)return!1;var v=typeof t;if(v!==typeof e)return!1;if("object"!==v)return"number"===v?s(t,e,m):"function"===v&&a(t,e,m);var y=t.constructor;if(y!==e.constructor)return!1;if(y===Object)return l(t,e,m);if(lZ(t))return r(t,e,m);if(null!=lJ&&lJ(t))return d(t,e,m);if(y===Date)return n(t,e,m);if(y===RegExp)return u(t,e,m);if(y===Map)return o(t,e,m);if(y===Set)return f(t,e,m);var g=l0(t);if("[object Date]"===g)return n(t,e,m);if("[object RegExp]"===g)return u(t,e,m);if("[object Map]"===g)return o(t,e,m);if("[object Set]"===g)return f(t,e,m);if("[object Object]"===g)return"function"!=typeof t.then&&"function"!=typeof e.then&&l(t,e,m);if("[object URL]"===g)return h(t,e,m);if("[object Error]"===g)return i(t,e,m);if("[object Arguments]"===g)return l(t,e,m);if("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)return c(t,e,m);if(p){var b=p[g];if(!b){var x=null!=t?t[Symbol.toStringTag]:void 0;x&&(b=p[x])}if(b)return b(t,e,m)}return!1}),x=v?v(b):function(t,e,r,n,i,a,o){return b(t,e,o)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,a=t.strict;if(n)return function(t,o){var s=n(),l=s.cache;return r(t,o,{cache:void 0===l?e?new WeakMap:void 0:l,equals:i,meta:s.meta,strict:a})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(t,e){return r(t,e,o)}}({circular:void 0!==m&&m,comparator:b,createState:y,equals:x,strict:void 0!==g&&g})}function l5(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(i){if(r<0&&(r=i),i-r>e)t(i),r=-1;else{var a;a=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function l3(t){return(l3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l4(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l6(t){return(l6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l7(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l8(Object(r),!0).forEach(function(e){l9(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l8(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l9(t,e,r){var n;return(n=function(t,e){if("object"!==l6(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l6(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===l6(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}l2({strict:!0}),l2({circular:!0}),l2({circular:!0,strict:!0}),l2({createInternalComparator:function(){return lI}}),l2({strict:!0,createInternalComparator:function(){return lI}}),l2({circular:!0,createInternalComparator:function(){return lI}}),l2({circular:!0,createInternalComparator:function(){return lI},strict:!0});var ct=function(t){return t},ce=function(t,e){return Object.keys(e).reduce(function(r,n){return l7(l7({},r),{},l9({},n,t(n,e[n])))},{})},cr=function(t,e,r){return t.map(function(t){return"".concat(t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})," ").concat(e,"ms ").concat(r)}).join(",")},cn=function(t,e,r,n,i,a,o,s){};function ci(t,e){if(t){if("string"==typeof t)return ca(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ca(t,e)}}function ca(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var co=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},cs=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},cl=function(t,e){return function(r){return cs(co(t,e),r)}},cc=function(){for(var t,e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n[0],o=n[1],s=n[2],l=n[3];if(1===n.length)switch(n[0]){case"linear":a=0,o=0,s=1,l=1;break;case"ease":a=.25,o=.1,s=.25,l=1;break;case"ease-in":a=.42,o=0,s=1,l=1;break;case"ease-out":a=.42,o=0,s=.58,l=1;break;case"ease-in-out":a=0,o=0,s=.58,l=1;break;default:var c=n[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u,f=function(t){if(Array.isArray(t))return t}(u=c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),4!==s.length);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(u,4)||ci(u,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=f[0],o=f[1],s=f[2],l=f[3]}else cn(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}cn([a,s,o,l].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var d=cl(a,s),h=cl(o,l),p=(t=a,e=s,function(r){var n;return cs([].concat(function(t){if(Array.isArray(t))return ca(t)}(n=co(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||ci(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),m=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var i,a=d(r)-e,o=p(r);if(1e-4>Math.abs(a-e)||o<1e-4)break;r=(i=r-a/o)>1?1:i<0?0:i}return h(r)};return m.isStepper=!1,m},cu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,a=t.dt,o=void 0===a?17:a,s=function(t,e,n){var a=n+(-(t-e)*r-n*i)*o/1e3,s=n*o/1e3+t;return 1e-4>Math.abs(s-e)&&1e-4>Math.abs(a)?[e,0]:[s,a]};return s.isStepper=!0,s.dt=o,s},cf=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return cc(n);case"spring":return cu();default:if("cubic-bezier"===n.split("(")[0])return cc(n);cn(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead  received %s",e)}return"function"==typeof n?n:(cn(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function cd(t){return(cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ch(t){return function(t){if(Array.isArray(t))return cg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||cy(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cp(Object(r),!0).forEach(function(e){cv(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cp(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cv(t,e,r){var n;return(n=function(t,e){if("object"!==cd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cd(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===cd(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cy(t,e){if(t){if("string"==typeof t)return cg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(t,e)}}function cg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var cb=function(t,e,r){return t+(e-t)*r},cx=function(t){return t.from!==t.to},cw=function t(e,r,n){var i=ce(function(t,r){if(cx(r)){var n,i=function(t){if(Array.isArray(t))return t}(n=e(r.from,r.to,r.velocity))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(n,2)||cy(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1];return cm(cm({},r),{},{from:a,velocity:o})}return r},r);return n<1?ce(function(t,e){return cx(e)?cm(cm({},e),{},{velocity:cb(e.velocity,i[t].velocity,n),from:cb(e.from,i[t].from,n)}):e},r):t(e,i,n-1)};let cj=function(t,e,r,n,i){var a,o,s=[Object.keys(t),Object.keys(e)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})}),l=s.reduce(function(r,n){return cm(cm({},r),{},cv({},n,[t[n],e[n]]))},{}),c=s.reduce(function(r,n){return cm(cm({},r),{},cv({},n,{from:t[n],velocity:0,to:e[n]}))},{}),u=-1,f=function(){return null};return f=r.isStepper?function(n){a||(a=n);var o=(n-a)/r.dt;c=cw(r,c,o),i(cm(cm(cm({},t),e),ce(function(t,e){return e.from},c))),a=n,Object.values(c).filter(cx).length&&(u=requestAnimationFrame(f))}:function(a){o||(o=a);var s=(a-o)/n,c=ce(function(t,e){return cb.apply(void 0,ch(e).concat([r(s)]))},l);if(i(cm(cm(cm({},t),e),c)),s<1)u=requestAnimationFrame(f);else{var d=ce(function(t,e){return cb.apply(void 0,ch(e).concat([r(1)]))},l);i(cm(cm(cm({},t),e),d))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}};function cN(t){return(cN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ck=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function c_(t){return function(t){if(Array.isArray(t))return cS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return cS(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cS(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function cA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cA(Object(r),!0).forEach(function(e){cP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cP(t,e,r){return(e=cE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cE(t){var e=function(t,e){if("object"!==cN(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cN(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cN(e)?e:String(e)}function cC(t,e){return(cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function cL(t,e){if(e&&("object"===cN(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return cM(t)}function cM(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cT(t){return(cT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cI=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&cC(i,t);var e,r,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=cT(i);return t=e?Reflect.construct(r,arguments,cT(this).constructor):r.apply(this,arguments),cL(this,t)});function i(t,e){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");var r=n.call(this,t,e),a=r.props,o=a.isActive,s=a.attributeName,l=a.from,c=a.to,u=a.steps,f=a.children,d=a.duration;if(r.handleStyleChange=r.handleStyleChange.bind(cM(r)),r.changeStyle=r.changeStyle.bind(cM(r)),!o||d<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}
5),cL(r);if(u&&u.length)r.state={style:u[0].style};else if(l){if("function"==typeof f)return r.state={style:l},cL(r);r.state={style:s?cP({},s,l):l}}else r.state={style:{}};return r}return r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,a=e.shouldReAnimate,o=e.to,s=e.from,l=this.state.style;if(n){if(!r){var c={style:i?cP({},i,o):o};this.state&&l&&(i&&l[i]!==o||!i&&l!==o)&&this.setState(c);return}if(!l1(t.to,o)||!t.canBegin||!t.isActive){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=u||a?s:t.to;if(this.state&&l){var d={style:i?cP({},i,f):f};(i&&l[i]!==f||!i&&l!==f)&&this.setState(d)}this.runAnimation(cO(cO({},this.props),{},{from:f,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,a=t.easing,o=t.begin,s=t.onAnimationEnd,l=t.onAnimationStart,c=cj(r,n,cf(a),i,this.changeStyle);this.manager.start([l,o,function(){e.stopJSAnimation=c()},i,s])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,a=r[0],o=a.style,s=a.duration;return this.manager.start([i].concat(c_(r.reduce(function(t,n,i){if(0===i)return t;var a=n.duration,o=n.easing,s=void 0===o?"ease":o,l=n.style,c=n.properties,u=n.onAnimationEnd,f=i>0?r[i-1]:n,d=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(c_(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:a,easing:s}),a]);var h=cr(d,a,s),p=cO(cO(cO({},f.style),l),{},{transition:h});return[].concat(c_(t),[p,a,u]).filter(ct)},[o,Math.max(void 0===s?0:s,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var i=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return l4(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l4(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i.slice(1);return"number"==typeof a?void l5(t.bind(null,o),a):(t(a),void l5(t.bind(null,o)))}"object"===l3(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}));var e,r,n,i=t.begin,a=t.duration,o=t.attributeName,s=t.to,l=t.easing,c=t.onAnimationStart,u=t.onAnimationEnd,f=t.steps,d=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof l||"function"==typeof d||"spring"===l)return void this.runJSAnimation(t);if(f.length>1)return void this.runStepAnimation(t);var p=o?cP({},o,s):s,m=cr(Object.keys(p),a,l);h.start([c,i,cO(cO({},p),{},{transition:m}),a,u])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,ck)),a=g.Children.count(e),o=this.state.style;if("function"==typeof e)return e(o);
5if(!n||0===a||r<=0)return e;var s=function(t){var e=t.props,r=e.style,n=e.className;return(0,g.cloneElement)(t,cO(cO({},i),{},{style:cO(cO({},void 0===r?{}:r),o),className:n}))};return 1===a?s(g.Children.only(e)):g.default.createElement("div",null,g.Children.map(e,function(t){return s(t)}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cE(n.key),n)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(g.PureComponent);function cD(t,e){if(null==t)return{};var r={};for(var n in t)if(({}).hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}function cR(){return(cR=Object.assign.bind()).apply(null,arguments)}function cz(t,e){return(cz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function cF(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,cz(t,e)}cI.displayName="Animate",cI.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},cI.propTypes={from:lA.default.oneOfType([lA.default.object,lA.default.string]),to:lA.default.oneOfType([lA.default.object,lA.default.string]),attributeName:lA.default.string,duration:lA.default.number,begin:lA.default.number,easing:lA.default.oneOfType([lA.default.string,lA.default.func]),steps:lA.default.arrayOf(lA.default.shape({duration:lA.default.number.isRequired,style:lA.default.object.isRequired,easing:lA.default.oneOfType([lA.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),lA.default.func]),properties:lA.default.arrayOf("string"),onAnimationEnd:lA.default.func})),children:lA.default.oneOfType([lA.default.node,lA.default.func]),isActive:lA.default.bool,canBegin:lA.default.bool,onAnimationEnd:lA.default.func,shouldReAnimate:lA.default.bool,onAnimationStart:lA.default.func,onAnimationReStart:lA.default.func};let cB=g.default.createContext(null);function cq(t,e){var r=Object.create(null);return t&&g.Children.map(t,function(t){return t}).forEach(function(t){r[t.key]=e&&(0,g.isValidElement)(t)?e(t):t}),r}function cU(t,e,r){return null!=r[e]?r[e]:t.props[e]}var cV=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},cH=function(t){function e(e,r){var n=t.call(this,e,r)||this,i=n.handleExited.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}cF(e,t);var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var r,n,i=e.children,a=e.handleExited;return{children:e.firstRender?cq(t.children,function(e){return(0,g.cloneElement)(e,{onExited:a.bind(null,e),in:!0,appear:cU(e,"appear",t),enter:cU(e,"enter",t),exit:cU(e,"exit",t)})}):(Object.keys(n=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,i=Object.create(null),a=[];for(var o in t)o in e?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in e){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];s[i[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(i,r=cq(t.children))).forEach(function(e){var o=n[e];if((0,g.isValidElement)(o)){var s=e in i,l=e in r,c=i[e],u=(0,g.isValidElement)(c)&&!c.props.in;l&&(!s||u)?n[e]=(0,g.cloneElement)(o,{onExited:a.bind(null,o),in:!0,exit:cU(o,"exit",t),enter:cU(o,"enter",t)}):l||!s||u?l&&s&&(0,g.isValidElement)(c)&&(n[e]=(0,g.cloneElement)(o,{onExited:a.bind(null,o),in:c.props.in,exit:cU(o,"exit",t),enter:cU(o,"enter",t)})):n[e]=(0,g.cloneElement)(o,{in:!1})}}),n),firstRender:!1}},r.handleExited=function(t,e){var r=cq(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(e){var r=cR({},e.children);return delete r[t.key],{children:r}}))},r.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=cD(t,["component","childFactory"]),i=this.state.contextValue,a=cV(this.state.children).map(r);
5return(delete n.appear,delete n.enter,delete n.exit,null===e)?g.default.createElement(cB.Provider,{value:i},a):g.default.createElement(cB.Provider,{value:i},g.default.createElement(e,n,a))},e}(g.default.Component);cH.propTypes={},cH.defaultProps={component:"div",childFactory:function(t){return t}};var cW="unmounted",c$="exited",cG="entering",cK="entered",cY="exiting",cX=function(t){function e(e,r){var n,i=t.call(this,e,r)||this,a=r&&!r.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?a?(n=c$,i.appearStatus=cG):n=cK:n=e.unmountOnExit||e.mountOnEnter?cW:c$,i.state={status:n},i.nextCallback=null,i}cF(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===cW?{status:c$}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==cG&&r!==cK&&(e=cG):(r===cG||r===cK)&&(e=cY)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},r.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===cG){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:k.default.findDOMNode(this);r&&r.scrollTop}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c$&&this.setState({status:cW})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,i=this.props.nodeRef?[n]:[k.default.findDOMNode(this),n],a=i[0],o=i[1],s=this.getTimeouts(),l=n?s.appear:s.enter;(t||r)&&1?(this.props.onEnter(a,o),this.safeSetState({status:cG},function(){e.props.onEntering(a,o),e.onTransitionEnd(l,function(){e.safeSetState({status:cK},function(){e.props.onEntered(a,o)})})})):this.safeSetState({status:cK},function(){e.props.onEntered(a)})},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:k.default.findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:cY},function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:c$},function(){t.props.onExited(n)})})})):this.safeSetState({status:c$},function(){t.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:k.default.findDOMNode(this),n=null==t&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=t&&setTimeout(this.nextCallback,t)},r.render=function(){var t=this.state.status;if(t===cW)return null;var e=this.props,r=e.children,n=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,cD(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return g.default.createElement(cB.Provider,{value:null},"function"==typeof r?r(t,n):g.default.cloneElement(g.default.Children.only(r),n))},e}(g.default.Component);function cZ(){}cX.contextType=cB,cX.propTypes={},cX.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cZ,onEntering:cZ,onEntered:cZ,onExit:cZ,onExiting:cZ,onExited:cZ},cX.UNMOUNTED=cW,cX.EXITED=c$,cX.ENTERING=cG,cX.ENTERED=cK,cX.EXITING=cY;var cJ=["children","appearOptions","enterOptions","leaveOptions"];function cQ(t){return(cQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c0(){return(c0=Object.assign.bind()).apply(this,arguments)}function c1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c2(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?c1(Object(r),!0).forEach(function(e){c6(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c1(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c5(t,e){return(c5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c3(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c4(t){return(c4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c6(t,e,r){return(e=c8(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c8(t){var e=function(t,e){if("object"!==cQ(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cQ(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cQ(e)?e:String(e)}var c7=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},c9=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&c5(i,t);var e,r,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=c4(i);return t=e?Reflect.construct(r,arguments,c4(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===cQ(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return c3(t)}(this,t)});function i(){var t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return c6(c3(t=n.call(this)),"handleEnter",function(e,r){var n=t.props,i=n.appearOptions,a=n.enterOptions;t.handleStyleActive(r?i:a)}),c6(c3(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(c2(c2({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return c7(e)+c7(r)+c7(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,cJ));return g.default.createElement(cX,c0({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return g.default.createElement(cI,t.state,g.Children.only(r))})}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c8(n.key),n)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(g.Component);function ut(t){var e=t.component,r=t.children,n=t.appear,i=t.enter,a=t.leave;return g.default.createElement(cH,{component:e},g.Children.map(r,function(t,e){return g.default.createElement(c9,{appearOptions:n,enterOptions:i,leaveOptions:a,key:"child-".concat(e)},t)}))}function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ur(){return(ur=Object.assign.bind()).apply(this,arguments)}function un(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ui(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?ui(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ue(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ue(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}c9.propTypes={appearOptions:lA.default.object,enterOptions:lA.default.object,leaveOptions:lA.default.object,children:lA.default.element},ut.propTypes={appear:lA.default.object,enter:lA.default.object,leave:lA.default.object,children:lA.default.oneOfType([lA.default.array,lA.default.element]),component:lA.default.any},ut.defaultProps={component:"span"};var uo=function(t,e,r,n,i){var a,o=Math.min(Math.abs(r)/2,Math.abs(n)/2),s=n>=0?1:-1,l=r>=0?1:-1,c=+(n>=0&&r>=0||n<0&&r<0);if(o>0&&i instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=i[f]>o?o:i[f];a="M".concat(t,",").concat(e+s*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(t+l*u[0],",").concat(e)),a+="L ".concat(t+r-l*u[1],",").concat(e),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(t+r,",").concat(e+s*u[1])),a+="L ".concat(t+r,",").concat(e+n-s*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(t+r-l*u[2],",").concat(e+n)),a+="L ".concat(t+l*u[3],",").concat(e+n),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(t,",").concat(e+n-s*u[3])),a+="Z"}else if(o>0&&i===+i&&i>0){var d=Math.min(o,i);a="M ".concat(t,",").concat(e+s*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(t+l*d,",").concat(e,"\n            L ").concat(t+r-l*d,",").concat(e,"\n            A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(t+r,",").concat(e+s*d,"\n            L ").concat(t+r,",").concat(e+n-s*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(t+r-l*d,",").concat(e+n,"\n            L ").concat(t+l*d,",").concat(e+n,"\n            A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(t,",").concat(e+n-s*d," Z")}else a="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return a},us=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,a=e.y,o=e.width,s=e.height;if(Math.abs(o)>0&&Math.abs(s)>0){var l=Math.min(i,i+o),c=Math.max(i,i+o),u=Math.min(a,a+s),f=Math.max(a,a+s);return r>=l&&r<=c&&n>=u&&n<=f}return!1},ul={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uc=function(t){var e,r=ua(ua({},ul),t),n=(0,g.useRef)(),i=function(t){if(Array.isArray(t))return t}(e=(0,g.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,2)||function(t,e){if(t){if("string"==typeof t)return un(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return un(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1];(0,g.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}},[]);var s=r.x,l=r.y,c=r.width,u=r.height,f=r.radius,d=r.className,h=r.animationEasing,p=r.animationDuration,m=r.animationBegin,v=r.isAnimationActive,y=r.isUpdateAnimationActive;if(s!==+s||l!==+l||c!==+c||u!==+u||0===c||0===u)return null;var b=L("recharts-rectangle",d);return y?g.default.createElement(cI,{canBegin:a>0,from:{width:c,height:u,x:s,y:l},to:{width:c,height:u,x:s,y:l},duration:p,animationEasing:h,isActive:y},function(t){var e=t.width,i=t.height,o=t.x,s=t.y;return g.default.createElement(cI,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:v,easing:h},g.default.createElement("path",ur({},o0(r,!0),{className:b,d:uo(o,s,e,i,f),ref:n})))}):g.default.createElement("path",ur({},o0(r,!0),{className:b,d:uo(s,l,c,u,f)}))};function uu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function uf(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}t.s([],25212);class ud extends Map{constructor(t,e=up){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(uh(this,t))}has(t){return super.has(uh(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function uh({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function up(t){return null!==t&&"object"==typeof t?t.valueOf():t}
5let um=Symbol("implicit");function uv(){var t=new ud,e=[],r=[],n=um;function i(i){let a=t.get(i);if(void 0===a){if(n!==um)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();for(let n of(e=[],t=new ud,r))t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return uv(e,r).unknown(n)},uu.apply(i,arguments),i}function uy(){var t,e,r=uv().unknown(void 0),n=r.domain,i=r.range,a=0,o=1,s=!1,l=0,c=0,u=.5;function f(){var r=n().length,f=o<a,d=f?o:a,h=f?a:o;t=(h-d)/Math.max(1,r-l+2*c),s&&(t=Math.floor(t)),d+=(h-d-t*(r-l))*u,e=t*(1-l),s&&(d=Math.round(d),e=Math.round(e));var p=(function(t,e,r){t*=1,e*=1,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=Array(i);++n<i;)a[n]=t+n*r;return a})(r).map(function(e){return d+t*e});return i(f?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([a,o]=t,a*=1,o*=1,f()):[a,o]},r.rangeRound=function(t){return[a,o]=t,a*=1,o*=1,s=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(s=!!t,f()):s},r.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),f()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),f()):l},r.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},r.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),f()):u},r.copy=function(){return uy(n(),[a,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},uu.apply(f(),arguments)}function ug(){return function t(e){var r=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(r())},e}(uy.apply(null,arguments).paddingInner(1))}function ub(t){return(ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ux(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function uw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ux(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=ub(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ub(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ub(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ux(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var uj={widthCache:{},cacheCount:0},uN={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},uk="recharts_measurement_span",u_=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||sj.isSsr)return{width:0,height:0};var n=(Object.keys(e=uw({},r)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:n});if(uj.widthCache[i])return uj.widthCache[i];try{var a=document.getElementById(uk);a||((a=document.createElement("span")).setAttribute("id",uk),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=uw(uw({},uN),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return uj.widthCache[i]=l,++uj.cacheCount>2e3&&(uj.cacheCount=0,uj.widthCache={}),l}catch(t){return{width:0,height:0}}};function uS(t){return(uS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return uO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uO(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function uP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=uS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uS(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uS(e)?e:e+""}(n.key),n)}}var uE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uC=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uL=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,uM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},uI=Object.keys(uT),uD=function(){var t,e;function r(t,e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.num=t,this.unit=e,this.num=t,this.unit=e,Number.isNaN(t)&&(this.unit=""),""===e||uL.test(e)||(this.num=NaN,this.unit=""),uI.includes(e)&&(this.num=t*uT[e],this.unit="px")}return t=[{key:"add",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],e=[{key:"parse",value:function(t){var e,n=uA(null!=(e=uM.exec(t))?e:[],3),i=n[1],a=n[2];return new r(parseFloat(i),null!=a?a:"")}}],t&&uP(r.prototype,t),e&&uP(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();function uR(t){if(t.includes("NaN"))return"NaN";for(var e=t;e.includes("*")||e.includes("/");){var r,n=uA(null!=(r=uE.exec(e))?r:[],4),i=n[1],a=n[2],o=n[3],s=uD.parse(null!=i?i:""),l=uD.parse(null!=o?o:""),c="*"===a?s.multiply(l):s.divide(l);if(c.isNaN())return"NaN";e=e.replace(uE,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var u,f=uA(null!=(u=uC.exec(e))?u:[],4),d=f[1],h=f[2],p=f[3],m=uD.parse(null!=d?d:""),v=uD.parse(null!=p?p:""),y="+"===h?m.add(v):m.subtract(v);if(y.isNaN())return"NaN";e=e.replace(uC,y.toString())}return e}var uz=/\(([^()]*)\)/;function uF(t){var e=function(t){try{var e;return e=t.replace(/\s+/g,""),e=function(t){for(var e=t;e.includes("(");){var r=uA(uz.exec(e),2)[1];e=e.replace(uz,uR(r))}return e}(e),e=uR(e)}catch(t){return"NaN"}}(t.slice(5,-1));return"NaN"===e?"":e}var uB=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],uq=["dx","dy","angle","className","breakAll"];function uU(){return(uU=Object.assign.bind()).apply(this,arguments)}function uV(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function uH(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return uW(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uW(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uW(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u$=/[ \f\n\r\t\v\u2028\u2029]+/,uG=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];(0,ol.default)(e)||(i=r?e.toString().split(""):e.toString().split(u$));var a=i.map(function(t){return{word:t,width:u_(t,n).width}}),o=r?0:u_(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch(t){return null}},uK=function(t,e,r,n,i){var a,o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=oj(o),f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var a=e.word,o=e.width,s=t[t.length-1];return s&&(null==n||i||s.width+o+r<Number(n))?(s.words.push(a),s.width+=o+r):t.push({words:[a],width:o}),t},[])},d=f(e);if(!u)return d;for(var h=function(t){var e=f(uG({breakAll:c,style:l,children:s.slice(0,t)+"…"}).wordsWithComputedWidth);return[e.length>o||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},p=0,m=s.length-1,v=0;p<=m&&v<=s.length-1;){var y=Math.floor((p+m)/2),g=uH(h(y-1),2),b=g[0],x=g[1],w=uH(h(y),1)[0];if(b||w||(p=y+1),b&&w&&(m=y-1),!b&&w){a=x;break}v++}return a||d},uY=function(t){return[{words:(0,ol.default)(t)?[]:t.toString().split(u$)}]},uX=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,a=t.breakAll,o=t.maxLines;if((e||r)&&!sj.isSsr){var s=uG({breakAll:a,children:n,style:i});if(!s)return uY(n);var l=s.wordsWithComputedWidth,c=s.spaceWidth;return uK({breakAll:a,children:n,maxLines:o,style:i},l,c,e,r)}return uY(n)},uZ="#808080",uJ=function(t){var e,r=t.x,n=void 0===r?0:r,i=t.y,a=void 0===i?0:i,o=t.lineHeight,s=void 0===o?"1em":o,l=t.capHeight,c=void 0===l?"0.71em":l,u=t.scaleToFit,f=void 0!==u&&u,d=t.textAnchor,h=t.verticalAnchor,p=t.fill,m=void 0===p?uZ:p,v=uV(t,uB),y=(0,g.useMemo)(function(){return uX({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),b=v.dx,x=v.dy,w=v.angle,j=v.className,N=v.breakAll,k=uV(v,uq);if(!oN(n)||!oN(a))return null;var _=n+(oj(b)?b:0),S=a+(oj(x)?x:0);switch(void 0===h?"end":h){case"start":e=uF("calc(".concat(c,")"));break;case"middle":e=uF("calc(".concat((y.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:e=uF("calc(".concat(y.length-1," * -").concat(s,")"))}var A=[];if(f){var O=y[0].width,P=v.width;A.push("scale(".concat((oj(P)?P/O:1)/O,")"))}return w&&A.push("rotate(".concat(w,", ").concat(_,", ").concat(S,")")),A.length&&(k.transform=A.join(" ")),g.default.createElement("text",uU({},o0(k,!0),{x:_,y:S,className:L("recharts-text",j),textAnchor:void 0===d?"start":d,fill:m.includes("url")?uZ:m}),y.map(function(t,r){var n=t.words.join(N?"":" ");return g.default.createElement("tspan",{x:_,dy:0===r?e:s,key:"".concat(n,"-").concat(r)},n)}))};t.i(25212),t.s([],67155),t.i(67155);let uQ=Math.sqrt(50),u0=Math.sqrt(10),u1=Math.sqrt(2);function u2(t,e,r){let n,i,a,o=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),c=l>=uQ?10:l>=u0?5:l>=u1?2:1;return(s<0?(n=Math.round(t*(a=Math.pow(10,-s)/c)),i=Math.round(e*a),n/a<t&&++n,i/a>e&&--i,a=-a):(n=Math.round(t/(a=Math.pow(10,s)*c)),i=Math.round(e/a),n*a<t&&++n,i*a>e&&--i),i<n&&.5<=r&&r<2)?u2(t,e,2*r):[n,i,a]}function u5(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[i,a,o]=n?u2(e,t,r):u2(t,e,r);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(n)if(o<0)for(let t=0;t<s;++t)l[t]=-((a-t)/o);else for(let t=0;t<s;++t)l[t]=(a-t)*o;else if(o<0)for(let t=0;t<s;++t)l[t]=-((i+t)/o);else for(let t=0;t<s;++t)l[t]=(i+t)*o;return l}function u3(t,e,r){return u2(t*=1,e*=1,r*=1)[2]}function u4(t,e,r){e*=1,t*=1,r*=1;let n=e<t,i=n?u3(e,t,r):u3(t,e,r);return(n?-1:1)*(i<0?-(1/i):i)}function u6(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function u8(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function u7(t){let e,r,n;function i(t,n,a=0,o=t.length){if(a<o){if(0!==e(n,n))return o;do{let e=a+o>>>1;0>r(t[e],n)?a=e+1:o=e}while(a<o)}return a}return 2!==t.length?(e=u6,r=(e,r)=>u6(t(e),r),n=(e,r)=>t(e)-r):(e=t===u6||t===u8?t:u9,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){let o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o}
5,right:function(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{let e=i+a>>>1;0>=r(t[e],n)?i=e+1:a=e}while(i<a)}return i}}}function u9(){return 0}function ft(t){return null===t?NaN:+t}let fe=u7(u6),fr=fe.right;function fn(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function fi(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function fa(){}fe.left,u7(ft).center;var fo="\\s*([+-]?\\d+)\\s*",fs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fc=/^#([0-9a-f]{3,8})$/,fu=RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),ff=RegExp(`^rgb\\(${fl},${fl},${fl}\\)$`),fd=RegExp(`^rgba\\(${fo},${fo},${fo},${fs}\\)$`),fh=RegExp(`^rgba\\(${fl},${fl},${fl},${fs}\\)$`),fp=RegExp(`^hsl\\(${fs},${fl},${fl}\\)$`),fm=RegExp(`^hsla\\(${fs},${fl},${fl},${fs}\\)$`),fv={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function fy(){return this.rgb().formatHex()}function fg(){return this.rgb().formatRgb()}function fb(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=fc.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?fx(e):3===r?new fN(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?fw(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?fw(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=fu.exec(t))?new fN(e[1],e[2],e[3],1):(e=ff.exec(t))?new fN(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fd.exec(t))?fw(e[1],e[2],e[3],e[4]):(e=fh.exec(t))?fw(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fp.exec(t))?fP(e[1],e[2]/100,e[3]/100,1):(e=fm.exec(t))?fP(e[1],e[2]/100,e[3]/100,e[4]):fv.hasOwnProperty(t)?fx(fv[t]):"transparent"===t?new fN(NaN,NaN,NaN,0):null}function fx(t){return new fN(t>>16&255,t>>8&255,255&t,1)}function fw(t,e,r,n){return n<=0&&(t=e=r=NaN),new fN(t,e,r,n)}function fj(t,e,r,n){var i;return 1==arguments.length?((i=t)instanceof fa||(i=fb(i)),i)?new fN((i=i.rgb()).r,i.g,i.b,i.opacity):new fN:new fN(t,e,r,null==n?1:n)}function fN(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function fk(){return`#${fO(this.r)}${fO(this.g)}${fO(this.b)}`}function f_(){let t=fS(this.opacity);return`${1===t?"rgb(":"rgba("}${fA(this.r)}, ${fA(this.g)}, ${fA(this.b)}${1===t?")":`, ${t})`}`}function fS(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fA(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function fO(t){return((t=fA(t))<16?"0":"")+t.toString(16)}function fP(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new fC(t,e,r,n)}function fE(t){if(t instanceof fC)return new fC(t.h,t.s,t.l,t.opacity);if(t instanceof fa||(t=fb(t)),!t)return new fC;if(t instanceof fC)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+(r<n)*6:r===a?(n-e)/s+2:(e-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new fC(o,s,l,t.opacity)}function fC(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function fL(t){return(t=(t||0)%360)<0?t+360:t}
5function fM(t){return Math.max(0,Math.min(1,t||0))}function fT(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function fI(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}fn(fa,fb,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fy,formatHex:fy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fE(this).formatHsl()},formatRgb:fg,toString:fg}),fn(fN,fj,fi(fa,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new fN(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new fN(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fN(fA(this.r),fA(this.g),fA(this.b),fS(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fk,formatHex:fk,formatHex8:function(){return`#${fO(this.r)}${fO(this.g)}${fO(this.b)}${fO((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:f_,toString:f_})),fn(fC,function(t,e,r,n){return 1==arguments.length?fE(t):new fC(t,e,r,null==n?1:n)},fi(fa,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new fC(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new fC(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new fN(fT(t>=240?t-240:t+120,i,n),fT(t,i,n),fT(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new fC(fL(this.h),fM(this.s),fM(this.l),fS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=fS(this.opacity);return`${1===t?"hsl(":"hsla("}${fL(this.h)}, ${100*fM(this.s)}%, ${100*fM(this.l)}%${1===t?")":`, ${t})`}`}}));let fD=t=>()=>t;function fR(t,e){var r=e-t;return r?function(e){return t+e*r}:fD(isNaN(t)?e:t)}let fz=function t(e){var r,n=1==(r=+e)?fR:function(t,e){var n,i,a;return e-t?(n=t,i=e,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):fD(isNaN(t)?e:t)};function i(t,e){var r=n((t=fj(t)).r,(e=fj(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=fR(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function fF(t){return function(e){var r,n,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r<i;++r)n=fj(e[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=t(a),o=t(o),s=t(s),n.opacity=1,function(t){return n.r=a(t),n.g=o(t),n.b=s(t),n+""}}}function fB(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}fF(function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n<e-1?t[n+2]:2*a-i;return fI((r-n/e)*e,o,i,a,s)}}),fF(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return fI((r-n/e)*e,i,a,o,s)}});var fq=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fU=RegExp(fq.source,"g");function fV(t,e){var r,n,i=typeof e;
5return null==e||"boolean"===i?fD(e):("number"===i?fB:"string"===i?(n=fb(e))?(e=n,fz):function(t,e){var r,n,i,a,o,s=fq.lastIndex=fU.lastIndex=0,l=-1,c=[],u=[];for(t+="",e+="";(i=fq.exec(t))&&(a=fU.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:fB(i,a)})),s=fU.lastIndex;return s<e.length&&(o=e.slice(s),c[l]?c[l]+=o:c[++l]=o),c.length<2?u[0]?(r=u[0].x,function(t){return r(t)+""}):(n=e,function(){return n}):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}:e instanceof fb?fz:e instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(r=e)||r instanceof DataView?Array.isArray(e)?function(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=Array(i),o=Array(n);for(r=0;r<i;++r)a[r]=fV(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var r,n={},i={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)r in t?n[r]=fV(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}:fB:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}})(t,e)}function fH(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function fW(t){return+t}var f$=[0,1];function fG(t){return t}function fK(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function fY(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=fK(i,n),a=r(o,a)):(n=fK(n,i),a=r(a,o)),function(t){return a(n(t))}}function fX(t,e,r){var n=Math.min(t.length,e.length)-1,i=Array(n),a=Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=fK(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(e){var r=fr(t,e,1,n)-1;return a[r](i[r](e))}}function fZ(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fJ(){var t,e,r,n,i,a,o=f$,s=f$,l=fV,c=fG;function u(){var t,e,r,l=Math.min(o.length,s.length);return c!==fG&&(t=o[0],e=o[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?fX:fY,i=a=null,f}function f(e){return null==e||isNaN(e*=1)?r:(i||(i=n(o.map(t),s,l)))(t(c(e)))}return f.invert=function(r){return c(e((a||(a=n(s,o.map(t),fB)))(r)))},f.domain=function(t){return arguments.length?(o=Array.from(t,fW),u()):o.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),l=fH,u()},f.clamp=function(t){return arguments.length?(c=!!t||fG,u()):c!==fG},f.interpolate=function(t){return arguments.length?(l=t,u()):l},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,u()}}function fQ(){return fJ()(fG,fG)}function f0(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function f1(t){return(t=f0(Math.abs(t)))?t[1]:NaN}var f2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f5(t){var e;if(!(e=f2.exec(t)))throw Error("invalid format: "+t);return new f3({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function f3(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function f4(t,e){var r=f0(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}f5.prototype=f3.prototype,f3.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
5:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let f6={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>f4(100*t,e),r:f4,s:function(t,e){var r=f0(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(Ox=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+Array(1-a).join("0")+f0(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function f8(t){return t}var f7=Array.prototype.map,f9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dt(t,e,r,n){var i,a,o=u4(t,e,r);switch((n=f5(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(f1(s)/3)))-f1(Math.abs(o))))||(n.precision=a),ON(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=Math.max(0,f1(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=o)))-f1(i))+1)||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=Math.max(0,-f1(Math.abs(o))))||(n.precision=a-("%"===n.type)*2)}return Oj(n)}function de(t){var e=t.domain;return t.ticks=function(t){var r=e();return u5(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return dt(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,a=e(),o=0,s=a.length-1,l=a[o],c=a[s],u=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);u-- >0;){if((i=u3(l,c,r))===n)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;n=i}return t},t}function dr(){var t=fQ();return t.copy=function(){return fZ(t,dr())},uu.apply(t,arguments),de(t)}function dn(t){var e;function r(t){return null==t||isNaN(t*=1)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,fW),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return dn(t).unknown(e)},t=arguments.length?Array.from(t,fW):[0,1],de(r)}function di(t,e){t=t.slice();var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function da(t){return Math.log(t)}function ds(t){return Math.exp(t)}function dl(t){return-Math.log(-t)}function dc(t){return-Math.exp(-t)}function du(t){return isFinite(t)?+("1e"+t):t<0?0:t}function df(t){return(e,r)=>-t(-e,r)}function dd(t){let e,r,n=t(da,ds),i=n.domain,a=10;function o(){var o,s;return e=(o=a)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),t=>Math.log(t)/o),r=10===(s=a)?du:s===Math.E?Math.exp:t=>Math.pow(s,t),i()[0]<0?(e=df(e),r=df(r),t(dl,dc)):t(da,ds),n}return n.base=function(t){return arguments.length?(a=+t,o()):a},n.domain=function(t){return arguments.length?(i(t),o()):i()},n.ticks=t=>{let n,o,s=i(),l=s[0],c=s[s.length-1],u=c<l;u&&([l,c]=[c,l]);let f=e(l),d=e(c),h=null==t?10:+t,p=[];if(!(a%1)&&d-f<h){if(f=Math.floor(f),d=Math.ceil(d),l>0){for(;f<=d;++f)for(n=1;n<a;++n)if(!((o=f<0?n/r(-f):n*r(f))<l)){if(o>c)break;p.push(o)}}else for(;f<=d;++f)for(n=a-1;n>=1;--n)if(!((o=f>0?n/r(-f):n*r(f))<l)){if(o>c)break;p.push(o)}2*p.length<h&&(p=u5(l,c,h))}else p=u5(f,d,Math.min(d-f,h)).map(r);return u?p.reverse():p},n.tickFormat=(t,i)=>{if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=f5(i)).precision||(i.trim=!0),i=Oj(i)),t===1/0)return i;let o=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*a<a-.5&&(n*=a),n<=o?i(t):""}},n.nice=()=>i(di(i(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function dh(){let t=dd(fJ()).domain([1,10]);return t.copy=()=>fZ(t,dh()).base(t.base()),uu.apply(t,arguments),t}function dp(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function dm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function dv(t){var e=1,r=t(dp(1),dm(e));return r.constant=function(r){return arguments.length?t(dp(e=+r),dm(e)):e},de(r)}function dy(){var t=dv(fJ());return t.copy=function(){return fZ(t,dy()).constant(t.constant())},uu.apply(t,arguments)}function dg(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function db(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function dx(t){return t<0?-t*t:t*t}function dw(t){var e=t(fG,fG),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(fG,fG):.5===r?t(db,dx):t(dg(r),dg(1/r)):r},de(e)}function dj(){var t=dw(fJ());return t.copy=function(){return fZ(t,dj()).exponent(t.exponent())},uu.apply(t,arguments),t}function dN(){return dj.apply(null,arguments).exponent(.5)}function dk(t){return Math.sign(t)*t*t}function d_(){var t,e=fQ(),r=[0,1],n=!1;function i(r){var i,a=Math.sign(i=e(r))*Math.sqrt(Math.abs(i));return isNaN(a)?t:n?Math.round(a):a}return i.invert=function(t){return e.invert(dk(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((r=Array.from(t,fW)).map(dk)),i):r.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(n=!!t,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t}
5,i.copy=function(){return d_(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},uu.apply(i,arguments),de(i)}function dS(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function dA(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function dO(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:+(t>e))}function dP(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function dE(){var t,e=[],r=[],n=[];function i(){var t=0,i=Math.max(1,r.length);for(n=Array(i-1);++t<i;)n[t-1]=function(t,e,r=ft){if(!(!(n=t.length)||isNaN(e*=1))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(r(t[a+1],a+1,t)-o)*(i-a)}}(e,t/i);return a}function a(e){return null==e||isNaN(e*=1)?t:r[fr(n,e)]}return a.invertExtent=function(t){var i=r.indexOf(t);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(u6),i()},a.range=function(t){return arguments.length?(r=Array.from(t),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return n.slice()},a.copy=function(){return dE().domain(e).range(r).unknown(t)},uu.apply(a,arguments)}function dC(){var t,e=0,r=1,n=1,i=[.5],a=[0,1];function o(e){return null!=e&&e<=e?a[fr(i,e,0,n)]:t}function s(){var t=-1;for(i=Array(n);++t<n;)i[t]=((t+1)*r-(t-n)*e)/(n+1);return o}return o.domain=function(t){return arguments.length?([e,r]=t,e*=1,r*=1,s()):[e,r]},o.range=function(t){return arguments.length?(n=(a=Array.from(t)).length-1,s()):a.slice()},o.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=n?[i[n-1],r]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length&&(t=e),o},o.thresholds=function(){return i.slice()},o.copy=function(){return dC().domain([e,r]).range(a).unknown(t)},uu.apply(de(o),arguments)}function dL(){var t,e=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[fr(e,i,0,n)]:t}return i.domain=function(t){return arguments.length?(n=Math.min((e=Array.from(t)).length,r.length-1),i):e.slice()},i.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return dL().domain(e).range(r).unknown(t)},uu.apply(i,arguments)}Oj=(Ow=function(t){var e,r,n,i=void 0===t.grouping||void 0===t.thousands?f8:(e=f7.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?f8:(n=f7.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=f5(t)).fill,r=t.align,n=t.sign,d=t.symbol,h=t.zero,p=t.width,m=t.comma,v=t.precision,y=t.trim,g=t.type;"n"===g?(m=!0,g="g"):f6[g]||(void 0===v&&(v=12),y=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===d?a:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===d?o:/[%p]/.test(g)?c:"",w=f6[g],j=/[defgprs%]/.test(g);function N(t){var a,o,c,d=b,N=x;if("c"===g)N=w(t)+N,t="";else{var k=(t*=1)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),v),y&&(t=function(t){e:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),k&&0==+t&&"+"!==n&&(k=!1),d=(k?"("===n?n:u:"-"===n||"("===n?"":n)+d,N=("s"===g?f9[8+Ox/3]:"")+N+(k&&"("===n?")":""),j){for(a=-1,o=t.length;++a<o;)if(48>(c=t.charCodeAt(a))||c>57){N=(46===c?s+t.slice(a+1):t.slice(a))+N,t=t.slice(0,a);break}}}m&&!h&&(t=i(t,1/0));var _=d.length+t.length+N.length,S=_<p?Array(p-_+1).join(e):"";switch(m&&h&&(t=i(S+t,S.length?p-N.length:1/0),S=""),r){case"<":t=d+t+N+S;break;case"=":t=d+S+t+N;break;case"^":t=S.slice(0,_=S.length>>1)+d+t+N+S.slice(_);break;default:t=S+d+t+N}return l(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),N.toString=function(){return t+""},N}return{format:d,formatPrefix:function(t,e){var r=d(((t=f5(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(f1(e)/3))),i=Math.pow(10,-n),a=f9[8+n/3];return function(t){return r(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ON=Ow.formatPrefix;let dM=new Date,dT=new Date;function dI(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>
5(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{let o,s=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return s;do s.push(o=new Date(+r)),e(r,a),t(r);while(o<r&&r<n)return s},i.filter=r=>dI(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(dM.setTime(+e),dT.setTime(+n),t(dM),t(dT),Math.floor(r(dM,dT))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let dD=dI(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());dD.every=t=>isFinite(t=Math.floor(t))&&t>0?dI(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,dD.range;let dR=dI(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());dR.every=t=>isFinite(t=Math.floor(t))&&t>0?dI(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,dR.range;let dz=dI(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());dz.range;let dF=dI(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());dF.range;function dB(t){return dI(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}let dq=dB(0),dU=dB(1),dV=dB(2),dH=dB(3),dW=dB(4),d$=dB(5),dG=dB(6);function dK(t){return dI(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}dq.range,dU.range,dV.range,dH.range,dW.range,d$.range,dG.range;let dY=dK(0),dX=dK(1),dZ=dK(2),dJ=dK(3),dQ=dK(4),d0=dK(5),d1=dK(6);dY.range,dX.range,dZ.range,dJ.range,dQ.range,d0.range,d1.range;let d2=dI(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);d2.range;let d5=dI(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);d5.range;let d3=dI(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));d3.range;let d4=dI(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());d4.range;let d6=dI(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());d6.range;let d8=dI(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());d8.range;let d7=dI(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());d7.range;let d9=dI(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());d9.range;let ht=dI(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);function he(t,e,r,n,i,a){let o=[[d9,1,1e3],[d9,5,5e3],[d9,15,15e3],[d9,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,a=u7(([,,t])=>t).right(o,i);if(a===o.length)return t.every(u4(e/31536e6,r/31536e6,n));if(0===a)return ht.every(Math.max(u4(e,r,n),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let i=r&&"function"==typeof r.range?r:s(t,e,r),a=i?i.range(t,+e+1):[];return n?a.reverse():a},s]}ht.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?dI(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ht:null,ht.range;let[hr,hn]=he(dR,dF,dY,d3,d6,d7),[hi,ha]=he(dD,dz,dq,d2,d4,d8);function ho(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function hs(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function hl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var hc={"-":"",_:" ",0:"0"},hu=/^\s*\d+/,hf=/^%/,hd=/[\\^$*+?|[\]().{}]/g;function hh(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?Array(r-a+1).join(e)+i:i)}function hp(t){return t.replace(hd,"\\$&")}function hm(t){return RegExp("^(?:"+t.map(hp).join("|")+")","i")}function hv(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function hy(t,e,r){var n=hu.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function hg(t,e,r){var n=hu.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function hb(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function hx(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function hw(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function hj(t,e,r){var n=hu.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function hN(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hk(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function h_(t,e,r){var n=hu.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function hS(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function hA(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function hO(t,e,r){var n=hu.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function hP(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function hE(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function hC(t,e,r){var n=hu.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function hL(t,e,r){var n=hu.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function hM(t,e,r){var n=hu.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function hT(t,e,r){var n=hf.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function hI(t,e,r){var n=hu.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function hD(t,e,r){var n=hu.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function hR(t,e){return hh(t.getDate(),e,2)}function hz(t,e){return hh(t.getHours(),e,2)}function hF(t,e){return hh(t.getHours()%12||12,e,2)}function hB(t,e){return hh(1+d2.count(dD(t),t),e,3)}function hq(t,e){return hh(t.getMilliseconds(),e,3)}function hU(t,e){return hq(t,e)+"000"}function hV(t,e){return hh(t.getMonth()+1,e,2)}function hH(t,e){return hh(t.getMinutes(),e,2)}function hW(t,e){return hh(t.getSeconds(),e,2)}function h$(t){var e=t.getDay();return 0===e?7:e}function hG(t,e){return hh(dq.count(dD(t)-1,t),e,2)}function hK(t){var e=t.getDay();return e>=4||0===e?dW(t):dW.ceil(t)}function hY(t,e){return t=hK(t),hh(dW.count(dD(t),t)+(4===dD(t).getDay()),e,2)}function hX(t){return t.getDay()}function hZ(t,e){return hh(dU.count(dD(t)-1,t),e,2)}function hJ(t,e){return hh(t.getFullYear()%100,e,2)}function hQ(t,e){return hh((t=hK(t)).getFullYear()%100,e,2)}function h0(t,e){return hh(t.getFullYear()%1e4,e,4)}function h1(t,e){var r=t.getDay();return hh((t=r>=4||0===r?dW(t):dW.ceil(t)).getFullYear()%1e4,e,4)}function h2(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hh(e/60|0,"0",2)+hh(e%60,"0",2)}function h5(t,e){return hh(t.getUTCDate(),e,2)}function h3(t,e){return hh(t.getUTCHours(),e,2)}function h4(t,e){return hh(t.getUTCHours()%12||12,e,2)}function h6(t,e){return hh(1+d5.count(dR(t),t),e,3)}function h8(t,e){return hh(t.getUTCMilliseconds(),e,3)}function h7(t,e){return h8(t,e)+"000"}function h9(t,e){return hh(t.getUTCMonth()+1,e,2)}function pt(t,e){return hh(t.getUTCMinutes(),e,2)}function pe(t,e){return hh(t.getUTCSeconds(),e,2)}function pr(t){var e=t.getUTCDay();return 0===e?7:e}function pn(t,e){return hh(dY.count(dR(t)-1,t),e,2)}function pi(t){var e=t.getUTCDay();return e>=4||0===e?dQ(t):dQ.ceil(t)}function pa(t,e){return t=pi(t),hh(dQ.count(dR(t),t)+(4===dR(t).getUTCDay()),e,2)}function po(t){return t.getUTCDay()}function ps(t,e){return hh(dX.count(dR(t)-1,t),e,2)}function pl(t,e){return hh(t.getUTCFullYear()%100,e,2)}function pc(t,e){return hh((t=pi(t)).getUTCFullYear()%100,e,2)}function pu(t,e){return hh(t.getUTCFullYear()%1e4,e,4)}function pf(t,e){var r=t.getUTCDay();return hh((t=r>=4||0===r?dQ(t):dQ.ceil(t)).getUTCFullYear()%1e4,e,4)}function pd(){return"+0000"}function ph(){return"%"}function pp(t){return+t}function pm(t){return Math.floor(t/1e3)}function pv(t){return new Date(t)}function py(t){return t instanceof Date?+t:+new Date(+t)}function pg(t,e,r,n,i,a,o,s,l,c){var u=fQ(),f=u.invert,d=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function w(t){return(l(t)<t?h:s(t)<t?p:o(t)<t?m:a(t)<t?v:n(t)<t?i(t)<t?y:g:r(t)<t?b:x)(t)}return u.invert=function(t){return new Date(f(t))},u.domain=function(t){return arguments.length?d(Array.from(t,py)):d().map(pv)},u.ticks=function(e){var r=d();return t(r[0],r[r.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?w:c(e)},u.nice=function(t){var r=d();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?d(di(r,t)):u},u.copy=function(){return fZ(u,pg(t,e,r,n,i,a,o,s,l,c))},u}function pb(){return uu.apply(pg(hi,ha,dD,dz,dq,d2,d4,d8,d9,O_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function px(){return uu.apply(pg(hr,hn,dR,dF,dY,d5,d6,d7,d9,OS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pw(){var t,e,r,n,i,a=0,o=1,s=fG,l=!1;function c(e){return null==e||isNaN(e*=1)?i:s(0===r?.5:(e=(n(e)-t)*r,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var r,n;return arguments.length?([r,n]=e,s=t(r,n),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([a,o]=i,t=n(a*=1),e=n(o*=1),r=t===e?0:1/(e-t),c):[a,o]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(fV),c.rangeRound=u(fH),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return n=i,t=i(a),e=i(o),r=t===e?0:1/(e-t),c}}function pj(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function pN(){var t=de(pw()(fG));return t.copy=function(){return pj(t,pN())},uf.apply(t,arguments)}function pk(){var t=dd(pw()).domain([1,10]);return t.copy=function(){return pj(t,pk()).base(t.base())},uf.apply(t,arguments)}function p_(){var t=dv(pw());return t.copy=function(){return pj(t,p_()).constant(t.constant())},uf.apply(t,arguments)}function pS(){var t=dw(pw());return t.copy=function(){return pj(t,pS()).exponent(t.exponent())},uf.apply(t,arguments)}function pA(){return pS.apply(null,arguments).exponent(.5)}function pO(){var t=[],e=fG;function r(r){if(null!=r&&!isNaN(r*=1))return e((fr(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(u6),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map((r,n)=>e(n/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n*=1)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e*=1))){if(e<=0||n<2)return dA(t);if(e>=1)return dS(t);var n,i=(n-1)*e,a=Math.floor(i),o=dS((function t(e,r,n=0,i=1/0,a){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=r&&r<=i))return e;for(a=void 0===a?dO:function(t=u6){if(t===u6)return dO;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(a);i>n;){if(i-n>600){let o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(r-s*c/o+u)),d=Math.min(i,Math.floor(r+(o-s)*c/o+u));t(e,r,f,d,a)}let o=e[r],s=n,l=i;for(dP(e,n,r),a(e[i],o)>0&&dP(e,n,i);s<l;){for(dP(e,s,l),++s,--l;0>a(e[s],o);)++s;for(;a(e[l],o)>0;)--l}0===a(e[n],o)?dP(e,n,l):dP(e,++l,i),l<=r&&(n=l+1),r<=l&&(i=l-1)}return e})(t,a).subarray(0,a+1));return o+(dA(t.subarray(a+1))-o)*(i-a)}}
vendor: 3,184 bytes, line 5
5)(t,n/e))},r.copy=function(){return pO(e).domain(t)},uf.apply(r,arguments)}function pP(){var t,e,r,n,i,a,o,s=0,l=.5,c=1,u=1,f=fG,d=!1;function h(t){return isNaN(t*=1)?o:(t=.5+((t=+a(t))-e)*(u*t<u*e?n:i),f(d?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=function(t,e){void 0===e&&(e=t,t=fV);for(var r=0,n=e.length-1,i=e[0],a=Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}}(t,[r,n,i]),h):[f(0),f(.5),f(1)]}}return h.domain=function(o){return arguments.length?([s,l,c]=o,t=a(s*=1),e=a(l*=1),r=a(c*=1),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),u=e<t?-1:1,h):[s,l,c]},h.clamp=function(t){return arguments.length?(d=!!t,h):d},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=p(fV),h.rangeRound=p(fH),h.unknown=function(t){return arguments.length?(o=t,h):o},function(o){return a=o,t=o(s),e=o(l),r=o(c),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),u=e<t?-1:1,h}}function pE(){var t=de(pP()(fG));return t.copy=function(){return pj(t,pE())},uf.apply(t,arguments)}function pC(){var t=dd(pP()).domain([.1,1,10]);return t.copy=function(){return pj(t,pC()).base(t.base())},uf.apply(t,arguments)}function pL(){var t=dv(pP());return t.copy=function(){return pj(t,pL()).constant(t.constant())},uf.apply(t,arguments)}function pM(){var t=dw(pP());return t.copy=function(){return pj(t,pM()).exponent(t.exponent())},uf.apply(t,arguments)}function pT(){return pM.apply(null,arguments).exponent(.5)}O_=(Ok=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=hm(i),u=hv(i),f=hm(a),d=hv(a),h=hm(o),p=hv(o),m=hm(s),v=hv(s),y=hm(l),g=hv(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:hR,e:hR,f:hU,g:hQ,G:h1,H:hz,I:hF,j:hB,L:hq,m:hV,M:hH,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:pp,s:pm,S:hW,u:h$,U:hG,V:hY,w:hX,W:hZ,x:null,X:null,y:hJ,Y:h0,Z:h2,"%":ph},x={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:h5,e:h5,f:h7,g:pc,G:pf,H:h3,I:h4,j:h6,L:h8,m:h9,M:pt,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:pp,s:pm,S:pe,u:pr,U:pn,V:pa,w:po,W:ps,x:null,X:null,y:pl,Y:pu,Z:pd,"%":ph},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return k(t,e,r,n)},d:hA,e:hA,f:hM,g:hN,G:hj,H:hP,I:hP,j:hO,L:hL,m:hS,M:hE,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:h_,Q:hI,s:hD,S:hC,u:hg,U:hb,V:hx,w:hy,W:hw,x:function(t,e,n){return k(t,r,e,n)}
5,X:function(t,e,r){return k(t,n,e,r)},y:hN,Y:hj,Z:hk,"%":hT};function j(t,e){return function(r){var n,i,a,o=[],s=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=hc[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function N(t,e){return function(r){var n,i,a=hl(1900,void 0,1);if(k(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(n=(i=(n=hs(hl(a.y,0,1))).getUTCDay())>4||0===i?dX.ceil(n):dX(n),n=d5.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(i=(n=ho(hl(a.y,0,1))).getDay())>4||0===i?dU.ceil(n):dU(n),n=d2.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?hs(hl(a.y,0,1)).getUTCDay():ho(hl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,hs(a)):ho(a)}}function k(t,e,r,n){for(var i,a,o=0,s=e.length,l=r.length;o<s;){if(n>=l)return -1;if(37===(i=e.charCodeAt(o++))){if(!(a=w[(i=e.charAt(o++))in hc?e.charAt(o++):i])||(n=a(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=j(r,b),b.X=j(n,b),b.c=j(e,b),x.x=j(r,x),x.X=j(n,x),x.c=j(e,x),{format:function(t){var e=j(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=N(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=j(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=N(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,Ok.parse,OS=Ok.utcFormat,Ok.utcParse,t.s(["scaleBand",()=>uy,"scaleDiverging",()=>pE,"scaleDivergingLog",()=>pC,"scaleDivergingPow",()=>pM,"scaleDivergingSqrt",()=>pT,"scaleDivergingSymlog",()=>pL,"scaleIdentity",()=>dn,"scaleImplicit",0,um,"scaleLinear",()=>dr,"scaleLog",()=>dh,"scaleOrdinal",()=>uv,"scalePoint",()=>ug,"scalePow",()=>dj,"scaleQuantile",()=>dE,"scaleQuantize",()=>dC,"scaleRadial",()=>d_,"scaleSequential",()=>pN,"scaleSequentialLog",()=>pk,"scaleSequentialPow",()=>pS,"scaleSequentialQuantile",()=>pO,"scaleSequentialSqrt",()=>pA,"scaleSequentialSymlog",()=>p_,"scaleSqrt",()=>dN,"scaleSymlog",()=>dy,"scaleThreshold",()=>dL,"scaleTime",()=>pb,"scaleUtc",()=>px,"tickFormat",()=>dt],29061),t.i(29061),t.s(["scaleBand",()=>uy,"scaleDiverging",()=>pE,"scaleDivergingLog",()=>pC,"scaleDivergingPow",()=>pM,"scaleDivergingSqrt",()=>pT,"scaleDivergingSymlog",()=>pL,"scaleIdentity",()=>dn,"scaleImplicit",0,um,"scaleLinear",()=>dr,"scaleLog",()=>dh,"scaleOrdinal",()=>uv,"scalePoint",()=>ug,"scalePow",()=>dj,"scaleQuantile",()=>dE,"scaleQuantize",()=>dC,"scaleRadial",()=>d_,"scaleSequential",()=>pN,"scaleSequentialLog",()=>pk,"scaleSequentialPow",()=>pS,"scaleSequentialQuantile",()=>pO,"scaleSequentialSqrt",()=>pA,"scaleSequentialSymlog",()=>p_,"scaleSqrt",()=>dN,"scaleSymlog",()=>dy,"scaleThreshold",()=>dL,"scaleTime",()=>pb,"scaleUtc",()=>px,"tickFormat",()=>dt],79357);var pI=t.i(79357);function pD(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function pR(t,e){if((i=t.length)>1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(n=o,o=t[e[a]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function pz(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function pF(t,e){return t[e]}function pB(t){let e=[];return e.key=t,e}Array.prototype.slice;var pq=t.i(86966),pU=t.i(37544),pV=t.i(33303),pH=t.i(98892),pW=t.i(51655);function p$(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var pG=function(t){return t},pK={},pY=function(t){return t===pK},pX=function(t){return function e(){return 0==arguments.length||1==arguments.length&&pY(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},pZ=function(t){return function t(e,r){return 1===e?r:pX(function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(t){return t!==pK}).length;return o>=e?r.apply(void 0,i):t(e-o,pX(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=i.map(function(t){return pY(t)?e.shift():t});return r.apply(void 0,((function(t){if(Array.isArray(t))return p$(t)})(a)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return p$(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p$(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))}))})}(t.length,t)},pJ=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},pQ=pZ(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),p0=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return pG;var n=e.reverse(),i=n[0],a=n.slice(1);return function(){return a.reduce(function(t,e){return e(t)},i.apply(void 0,arguments))}},p1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},p2=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return e&&i.every(function(t,r){return t===e[r]})?r:(e=i,r=t.apply(void 0,i))}};pZ(function(t,e,r){var n=+t;return n+r*(e-n)}),pZ(function(t,e,r){var n=e-t;return(r-t)/(n=n||1/0)}),pZ(function(t,e,r){var n=e-t;return Math.max(0,Math.min(1,(r-t)/(n=n||1/0)))});let p5=function(t,e,r){for(var n=new pW.default(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a},p3=function(t){return 0===t?1:Math.floor(new pW.default(t).abs().log(10).toNumber())+1};function p4(t){return function(t){if(Array.isArray(t))return p7(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||p8(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p6(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(t,e)||p8(t,e)||function(){throw TypeError("Invalid attempt to de
5structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p8(t,e){if(t){if("string"==typeof t)return p7(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p7(t,e)}}function p7(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p9(t){var e=p6(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function mt(t,e,r){if(t.lte(0))return new pW.default(0);var n=p3(t.toNumber()),i=new pW.default(10).pow(n),a=t.div(i),o=1!==n?.05:.1,s=new pW.default(Math.ceil(a.div(o).toNumber())).add(r).mul(o).mul(i);return e?s:new pW.default(Math.ceil(s))}function me(t,e,r){var n=1,i=new pW.default(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new pW.default(10).pow(p3(t)-1),i=new pW.default(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new pW.default(Math.floor(t)))}else 0===t?i=new pW.default(Math.floor((e-1)/2)):r||(i=new pW.default(Math.floor(t)));var o=Math.floor((e-1)/2);return p0(pQ(function(t){return i.add(new pW.default(t-o).mul(n)).toNumber()}),pJ)(0,e)}var mr=p2(function(t){var e=p6(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=Math.max(i,2),s=p6(p9([r,n]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(p4(pJ(0,i-1).map(function(){return 1/0}))):[].concat(p4(pJ(0,i-1).map(function(){return-1/0})),[c]);return r>n?p1(u):u}if(l===c)return me(l,i,a);var f=function t(e,r,n,i){var a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new pW.default(0),tickMin:new pW.default(0),tickMax:new pW.default(0)};var s=mt(new pW.default(r).sub(e).div(n-1),i,o),l=Math.ceil((a=e<=0&&r>=0?new pW.default(0):(a=new pW.default(e).add(r).div(2)).sub(new pW.default(a).mod(s))).sub(e).div(s).toNumber()),c=Math.ceil(new pW.default(r).sub(a).div(s).toNumber()),u=l+c+1;return u>n?t(e,r,n,i,o+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:s,tickMin:a.sub(new pW.default(l).mul(s)),tickMax:a.add(new pW.default(c).mul(s))})}(l,c,o,a),d=f.step,h=p5(f.tickMin,f.tickMax.add(new pW.default(.1).mul(d)),d);return r>n?p1(h):h});p2(function(t){var e=p6(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=Math.max(i,2),s=p6(p9([r,n]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,n];if(l===c)return me(l,i,a);var u=mt(new pW.default(c).sub(l).div(o-1),a,0),f=p0(pQ(function(t){return new pW.default(l).add(new pW.default(t).mul(u)).toNumber()}),pJ)(0,o).filter(function(t){return t>=l&&t<=c});return r>n?p1(f):f});var mn=p2(function(t,e){var r=p6(t,2),n=r[0],i=r[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=p6(p9([n,i]),2),s=o[0],l=o[1];if(s===-1/0||l===1/0)return[n,i];if(s===l)return[s];var c=Math.max(e,2),u=mt(new pW.default(l).sub(s).div(c-1),a,0),f=[].concat(p4(p5(new pW.default(s),new pW.default(l).sub(new pW.default(.99).mul(u)),u)),[l]);return n>i?p1(f):f}),mi=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ma(t){return(ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mo(){return(mo=Object.assign.bind()).apply(this,arguments)}function ms(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ml(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ml=function(){return!!t})()}function mc(t){return(mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mu(t,e){return(mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function mf(t,e,r){return(e=md(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function md(t){var e=function(t,e){if("object"!=ma(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ma(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
5(t,"string");return"symbol"==ma(e)?e:e+""}var mh=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=mc(t),function(t,e){if(e&&("object"===ma(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,ml()?Reflect.construct(t,e||[],mc(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&mu(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,i=t.dataKey,a=t.data,o=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,c=o0(function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,mi),!1);"x"===this.props.direction&&"number"!==s.type&&op(!1);var u=a.map(function(t){var a,u,f=o(t,i),d=f.x,h=f.y,p=f.value,m=f.errorVal;if(!m)return null;var v=[];if(Array.isArray(m)){var y=function(t){if(Array.isArray(t))return t}(m)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(m,2)||function(t,e){if(t){if("string"==typeof t)return ms(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ms(t,2)}}(m,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=y[0],u=y[1]}else a=u=m;if("vertical"===r){var b=s.scale,x=h+e,w=x+n,j=x-n,N=b(p-a),k=b(p+u);v.push({x1:k,y1:w,x2:k,y2:j}),v.push({x1:N,y1:x,x2:k,y2:x}),v.push({x1:N,y1:w,x2:N,y2:j})}else if("horizontal"===r){var _=l.scale,S=d+e,A=S-n,O=S+n,P=_(p-a),E=_(p+u);v.push({x1:A,y1:E,x2:O,y2:E}),v.push({x1:S,y1:P,x2:S,y2:E}),v.push({x1:A,y1:P,x2:O,y2:P})}return g.default.createElement(st,mo({className:"recharts-errorBar",key:"bar-".concat(v.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},c),v.map(function(t){return g.default.createElement("line",mo({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return g.default.createElement(st,{className:"recharts-errorBars"},u)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,md(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.default.Component);function mp(t){return(mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function mv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mm(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=mp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
5(t,"string");return"symbol"==mp(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}mf(mh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),mf(mh,"displayName","ErrorBar");var my=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=oX(r,lk);if(!o)return null;var s=lk.defaultProps,l=void 0!==s?mv(mv({},s),o.props):{};return e=o.props&&o.props.payload?o.props&&o.props.payload:"children"===a?(n||[]).reduce(function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map(function(t){return{type:o.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(n||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?mv(mv({},r),e.props):{},i=n.dataKey,a=n.name,o=n.legendType;return{inactive:n.hide,dataKey:i,type:l.iconType||o||"square",color:mA(e),value:a||i,payload:n}}),mv(mv(mv({},l),lk.getWithHeight(o,i)),{},{payload:e,item:o})};function mg(t){return(mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mb(t){return function(t){if(Array.isArray(t))return mx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mx(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mx(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function mw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function mj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mw(Object(r),!0).forEach(function(e){mN(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function mN(t,e,r){var n;return(n=function(t,e){if("object"!=mg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mg(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mg(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mk(t,e,r){return(0,ol.default)(t)||(0,ol.default)(e)?r:oN(e)?(0,of.default)(t,e,r):(0,oc.default)(e)?e(t):r}function m_(t,e,r,n){var i=(0,pV.default)(t,function(t){return mk(t,e)});if("number"===r){var a=i.filter(function(t){return oj(t)||parseFloat(t)});return a.length?[(0,pU.default)(a),(0,pq.default)(a)]:[1/0,-1/0]}return(n?i.filter(function(t){return!(0,ol.default)(t)}):i).map(function(t){return oN(t)||t instanceof Date?t:""})}var mS=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,o=null!=(e=null==r?void 0:r.length)?e:0;if(o<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var s=i.range,l=0;l<o;l++){var c=l>0?n[l-1].coordinate:n[o-1].coordinate,u=n[l].coordinate,f=l>=o-1?n[0].coordinate:n[l+1].coordinate,d=void 0;if(ox(u-c)!==ox(f-u)){var h=[];if(ox(f-u)===ox(s[1]-s[0])){d=f;var p=u+s[1]-s[0];h[0]=Math.min(p,(p+c)/2),h[1]=Math.max(p,(p+c)/2)}else{d=c;var m=f+s[1]-s[0];h[0]=Math.min(u,(m+u)/2),h[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){a=n[l].index;break}}else{var y=Math.min(c,f),g=Math.max(c,f);if(t>(y+u)/2&&t<=(g+u)/2){a=n[l].index;break}}}else for(var b=0;b<o;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<o-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===o-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){a=r[b].index;break}return a},mA=function(t){var e,r,n=t.type.displayName,i=null!=(e=t.type)&&e.defaultProps?mj(mj({},t.type.defaultProps),t.props):t.props,a=i.stroke,o=i.fill;switch(n){case"Line":r=a;break;case"Area":case"Radar":r=a&&"none"!==a?a:o;break;default:r=o}return r},mO=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),s=0,l=o.length;s<l;s++)for(var c=i[o[s]].stackGroups,u=Object.keys(c),f=0,d=u.length;f<d;f++){var h=c[u[f]],p=h.items,m=h.cateAxisId,v=p.filter(function(t){return oW(t.type).indexOf("Bar")>=0});if(v&&v.length){var y=v[0].type.defaultProps,g=void 0!==y?mj(mj({},y),v[0].props):v[0].props,b=g.barSize,x=g[m];a[x]||(a[x]=[]);var w=(0,ol.default)(b)?e:b;a[x].push({item:v[0],stackList:v.slice(1),barSize:(0,ol.default)(w)?void 0:oS(w,r,0)})}}return a},mP=function(t){var e,r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=void 0===a?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=oS(r,i,0,!0),u=[];
5if(o[0].barSize===+o[0].barSize){var f=!1,d=i/l,h=o.reduce(function(t,e){return t+e.barSize||0},0);(h+=(l-1)*c)>=i&&(h-=(l-1)*c,c=0),h>=i&&d>0&&(f=!0,d*=.9,h=l*d);var p={offset:((i-h)/2|0)-c,size:0};e=o.reduce(function(t,e){var r={item:e.item,position:{offset:p.offset+p.size+c,size:f?d:e.barSize}},n=[].concat(mb(t),[r]);return p=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:p})}),n},u)}else{var m=oS(n,i,0,!0);i-2*m-(l-1)*c<=0&&(c=0);var v=(i-2*m-(l-1)*c)/l;v>1&&(v>>=0);var y=s===+s?Math.min(v,s):v;e=o.reduce(function(t,e,r){var n=[].concat(mb(t),[{item:e.item,position:{offset:m+(v+c)*r+(v-y)/2,size:y}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},u)}return e},mE=function(t,e,r,n){var i=r.children,a=r.width,o=r.margin,s=my({children:i,legendWidth:a-(o.left||0)-(o.right||0)});if(s){var l=n||{},c=l.width,u=l.height,f=s.align,d=s.verticalAlign,h=s.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==f&&oj(t[f]))return mj(mj({},t),{},mN({},f,t[f]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==d&&oj(t[d]))return mj(mj({},t),{},mN({},d,t[d]+(u||0)))}return t},mC=function(t,e,r,n,i){var a=oY(e.props.children,mh).filter(function(t){var e;return e=t.props.direction,!!(0,ol.default)(i)||("horizontal"===n?"yAxis"===i:"vertical"===n||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var o=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=mk(e,r);if((0,ol.default)(n))return t;var i=Array.isArray(n)?[(0,pU.default)(n),(0,pq.default)(n)]:[n,n],a=o.reduce(function(t,r){var n=mk(e,r,0),a=i[0]-Math.abs(Array.isArray(n)?n[0]:n),o=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(a,t[0]),Math.max(o,t[1])]},[1/0,-1/0]);return[Math.min(a[0],t[0]),Math.max(a[1],t[1])]},[1/0,-1/0])}return null},mL=function(t,e,r,n,i){var a=e.map(function(e){return mC(t,e,r,i,n)}).filter(function(t){return!(0,ol.default)(t)});return a&&a.length?a.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},mM=function(t,e,r,n,i){var a=e.map(function(e){var a=e.props.dataKey;return"number"===r&&a&&mC(t,e,a,n)||m_(t,a,r,i)});if("number"===r)return a.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var o={};return a.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)o[e[r]]||(o[e[r]]=!0,t.push(e[r]));return t},[])},mT=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},mI=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var i,a,o=t.map(function(t){return t.coordinate===e&&(i=!0),t.coordinate===r&&(a=!0),t.coordinate});return i||o.push(e),a||o.push(r),o},mD=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,a=t.type,o=t.range,s="scaleBand"===t.realScaleType?n.bandwidth()/2:2,l=(e||r)&&"category"===a&&n.bandwidth?n.bandwidth()/s:0;return(l="angleAxis"===t.axisType&&(null==o?void 0:o.length)>=2?2*ox(o[0]-o[1])*l:l,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(i?i.indexOf(t):t)+l,value:t,offset:l}}).filter(function(t){return!(0,og.default)(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+l,value:t,index:e,offset:l}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+l,value:t,offset:l}}):n.domain().map(function(t,e){return{coordinate:n(t)+l,value:i?i[t]:t,index:e,offset:l}})},mR=new WeakMap,mz=function(t,e){if("function"!=typeof e)return t;mR.has(t)||mR.set(t,new WeakMap);var r=mR.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},mF=function(t,e,r){var n=t.scale,i=t.type,a=t.layout,o=t.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===o?{scale:pI.scaleBand(),realScaleType:"band"}:"radial"===a&&"angleAxis"===o?{scale:pI.scaleLinear(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>
5=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:pI.scalePoint(),realScaleType:"point"}:"category"===i?{scale:pI.scaleBand(),realScaleType:"band"}:{scale:pI.scaleLinear(),realScaleType:"linear"};if((0,om.default)(n)){var s="scale".concat((0,sD.default)(n));return{scale:(pI[s]||pI.scalePoint)(),realScaleType:pI[s]?s:"point"}}return(0,oc.default)(n)?{scale:n}:{scale:pI.scalePoint(),realScaleType:"point"}},mB=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-1e-4,a=Math.max(n[0],n[1])+1e-4,o=t(e[0]),s=t(e[r-1]);(o<i||o>a||s<i||s>a)&&t.domain([e[0],e[r-1]])}},mq=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null},mU=function(t,e){if(!e||2!==e.length||!oj(e[0])||!oj(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!oj(t[0])||t[0]<r)&&(i[0]=r),(!oj(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},mV={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,a=0,o=0;o<e;++o){var s=(0,og.default)(t[o][r][1])?t[o][r][0]:t[o][r][1];s>=0?(t[o][r][0]=i,t[o][r][1]=i+s,i=t[o][r][1]):(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,a=0,o=t[0].length;a<o;++a){for(i=r=0;r<n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r<n;++r)t[r][a][1]/=i}pR(t,e)}},none:pR,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],a=i.length;n<a;++n){for(var o=0,s=0;o<r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}pR(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,a=0,o=1;o<n;++o){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[e[s]],f=u[o][1]||0,d=(f-(u[o-1][1]||0))/2,h=0;h<s;++h){var p=t[e[h]];
5d+=(p[o][1]||0)-(p[o-1][1]||0)}l+=f,c+=d*f}r[o-1][1]+=r[o-1][0]=a,l&&(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,pR(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,a=0;a<e;++a){var o=(0,og.default)(t[a][r][1])?t[a][r][0]:t[a][r][1];o>=0?(t[a][r][0]=i,t[a][r][1]=i+o,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}}},mH=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),i=mV[r];return(function(){var t=sR([]),e=pz,r=pR,n=pF;function i(i){var a,o,s=Array.from(t.apply(this,arguments),pB),l=s.length,c=-1;for(let t of i)for(a=0,++c;a<l;++a)(s[a][c]=[0,+n(t,s[a].key,c,i)]).data=t;for(a=0,o=pD(e(s));a<l;++a)s[o[a]].index=a;return r(s,o),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:sR(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:sR(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?pz:"function"==typeof t?t:sR(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?pR:t,i):r},i})().keys(n).value(function(t,e){return+mk(t,e,0)}).order(pz).offset(i)(t)},mW=function(t,e,r,n,i,a){if(!t)return null;var o=(a?e.reverse():e).reduce(function(t,e){var i,a=null!=(i=e.type)&&i.defaultProps?mj(mj({},e.type.defaultProps),e.props):e.props,o=a.stackId;if(a.hide)return t;var s=a[r],l=t[s]||{hasStack:!1,stackGroups:{}};if(oN(o)){var c=l.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),l.hasStack=!0,l.stackGroups[o]=c}else l.stackGroups[o_("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return mj(mj({},t),{},mN({},s,l))},{});return Object.keys(o).reduce(function(e,a){var s=o[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(e,a){var o=s.stackGroups[a];return mj(mj({},e),{},mN({},a,{numericAxisId:r,cateAxisId:n,items:o.items,stackedData:mH(t,o.items,i)}))},{})),mj(mj({},e),{},mN({},a,s))},{})},m$=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,a=e.originalDomain,o=e.allowDecimals,s=r||e.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===n&&a&&("auto"===a[0]||"auto"===a[1])){var l=t.domain();if(!l.length)return null;var c=mr(l,i,o);return t.domain([(0,pU.default)(c),(0,pq.default)(c)]),{niceTicks:c}}return i&&"number"===n?{niceTicks:mn(t.domain(),i,o)}:null};function mG(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!(0,ol.default)(i[e.dataKey])){var s=oE(r,"value",i[e.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=mk(i,(0,ol.default)(o)?e.dataKey:o);return(0,ol.default)(l)?null:e.scale(l)}var mK=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,a=t.entry,o=t.index;if("category"===e.type)return r[o]?r[o].coordinate+n:null;var s=mk(a,e.dataKey,e.domain[o]);return(0,ol.default)(s)?null:e.scale(s)-i/2+n},mY=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},mX=function(t,e){var r,n=(null!=(r=t.type)&&r.defaultProps?mj(mj({},t.type.defaultProps),t.props):t.props).stackId;if(oN(n)){var i=e[n];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},mZ=function(t,e,r){return Object.keys(t).reduce(function(n,i){var a=t[i].stackedData.reduce(function(t,n){var i=n.slice(e,r+1).reduce(function(t,e){return[(0,pU.default)(e.concat([t[0]]).filter(oj)),(0,pq.default)(e.concat([t[1]]).filter(oj))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(a[0],n[0]),Math.max(a[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},mJ=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mQ=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,m0=function(t,e,r){if((0,oc.default)(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(oj(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(mJ.test(t[0])){var i=+mJ.exec(t[0])[1];n[0]=e[0]-i}else(0,oc.default)(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(oj(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(mQ.test(t[1])){var a=+mQ.exec(t[1])[1];n[1]=e[1]+a}else(0,oc.default)(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},m1=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=(0,od.default)(e,function(t){return t.coordinate}),a=1/0,o=1,s=i.length;o<s;o++){var l=i[o],c=i[o-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},m2=function(t,e,r){return!t||!t.length||(0,pH.default)(t,(0,of.default)(r,"type.defaultProps.domain"))?e:t},m5=function(t,e){var r=t.type.defaultProps?mj(mj({},t.type.defaultProps),t.props):t.props,n=r.dataKey,i=r.name,a=r.unit,o=r.formatter,s=r.tooltipType,l=r.chartType,c=r.hide;return mj(mj({},o0(t,!1)),{},{dataKey:n,unit:a,formatter:o,name:i||n,color:mA(t),value:mk(e,n
5),type:s,payload:e,chartType:l,hide:c})};function m3(t){return(m3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m4(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m6(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m4(Object(r),!0).forEach(function(e){m8(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m4(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m8(t,e,r){var n;return(n=function(t,e){if("object"!=m3(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=m3(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m3(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m7=["Webkit","Moz","O","ms"],m9=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),n=m7.reduce(function(t,n){return m6(m6({},t),{},m8({},n+r,e))},{});return n[t]=e,n};function vt(t){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(){return(ve=Object.assign.bind()).apply(this,arguments)}function vr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(r),!0).forEach(function(e){vl(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function vi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vc(n.key),n)}}function va(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(va=function(){return!!t})()}function vo(t){return(vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vs(t,e){return(vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vl(t,e,r){return(e=vc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t){var e=function(t,e){if("object"!=vt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vt(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vt(e)?e:e+""}var vu=function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,a=t.width,o=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,l=ug().domain((0,ou.default)(0,s)).range([i,i+a-o]),c=l.domain().map(function(t){return l(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:c}},vf=function(t){return t.changedTouches&&!!t.changedTouches.length},vd=function(t){var e,r;function n(t){var e,r,i;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,i=[t],r=vo(r),vl(e=function(t,e){if(e&&("object"===vt(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,va()?Reflect.construct(r,i||[],vo(this).constructor):r.apply(this,i)),"handleDrag",function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)}),vl(e,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])}),vl(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:r,startIndex:i})}),e.detachDragEndListener()}),vl(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),vl(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),vl(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),vl(e,"handleSlideDragStart",function(t){var r=vf(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&vs(n,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,i=this.state.scaleValues,a=this.props,o=a.gap,s=a.data.length-1,l=Math.min(e,r),c=Math.max(e,r),u=n.getIndexInRange(i,l),f=n.getIndexInRange(i,c);return{startIndex:u-u%o,endIndex:f===s?s:f-f%o}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,a=mk(r[t],i,t);return(0,oc.default)(n)?n(a,t):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,a=this.props,o=a.x,s=a.width,l=a.travellerWidth,c=a.startIndex,u=a.endIndex,f=a.onChange,d=t.pageX-r;d>0?d=Math.min(d,o+s-l-i,o+s-l-n):d<0&&(d=Math.max(d,o-n,o-i));var h=this.getIndex({startX:n+d,endX:i+d});(h.startIndex!==c||h.endIndex!==u)&&f&&f(h),this.setState({startX:n+d,endX:i+d,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=vf(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,a=e.startX,o=this.state[n],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,h=s.data,p={startX:this.state.startX,endX:this.state.endX},m=t.pageX-r;m>
50?m=Math.min(m,l+c-u-o):m<0&&(m=Math.max(m,l-o)),p[n]=o+m;var v=this.getIndex(p),y=v.startIndex,g=v.endIndex,b=function(){var t=h.length-1;return"startX"===n&&(i>a?y%d==0:g%d==0)||!!(i<a)&&g===t||"endX"===n&&(i>a?g%d==0:y%d==0)||!!(i>a)&&g===t};this.setState(vl(vl({},n,o+m),"brushMoveStartX",t.pageX),function(){f&&b()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,a=n.startX,o=n.endX,s=this.state[e],l=i.indexOf(s);if(-1!==l){var c=l+t;if(-1!==c&&!(c>=i.length)){var u=i[c];"startX"===e&&u>=o||"endX"===e&&u<=a||this.setState(vl({},e,u),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,a=t.fill,o=t.stroke;return g.default.createElement("rect",{stroke:o,fill:a,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,a=t.data,o=t.children,s=t.padding,l=g.Children.only(o);return l?g.default.cloneElement(l,{x:e,y:r,width:n,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,o=this.props,s=o.y,l=o.travellerWidth,c=o.height,u=o.traveller,f=o.ariaLabel,d=o.data,h=o.startIndex,p=o.endIndex,m=Math.max(t,this.props.x),v=vn(vn({},o0(this.props,!1)),{},{x:m,y:s,width:l,height:c}),y=f||"Min value: ".concat(null==(r=d[h])?void 0:r.name,", Max value: ").concat(null==(i=d[p])?void 0:i.name);return g.default.createElement(st,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(u,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,a=r.stroke,o=r.travellerWidth,s=Math.min(t,e)+o,l=Math.max(Math.abs(e-t)-o,0);return g.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,a=t.travellerWidth,o=t.stroke,s=this.state,l=s.startX,c=s.endX,u={pointerEvents:"none",fill:o};return g.default.createElement(st,{className:"recharts-brush-texts"},g.default.createElement(uJ,ve({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:n+i/2},u),this.getTextOfTick(e)),g.default.createElement(uJ,ve({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+a+5,y:n+i/2},u),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,a=t.y,o=t.width,s=t.height,l=t.alwaysShowText,c=this.state,u=c.startX,f=c.endX,d=c.isTextActive,h=c.isSlideMoving,p=c.isTravellerMoving,m=c.isTravellerFocused;if(!e||!e.length||!oj(i)||!oj(a)||!oj(o)||!oj(s)||o<=0||s<=0)return null;var v=L("recharts-brush",r),y=1===g.default.Children.count(n),b=m9("userSelect","none");return g.default.createElement(st,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(u,f),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(f,"endX"),(d||h||p||m||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=t.stroke,o=Math.floor(r+i/2)-1;return g.default.createElement(g.default.Fragment,null,g.default.createElement("rect",{x:e,y:r,width:n,height:i,fill:a,stroke:"none"}),g.default.createElement("line",{x1:e+1,y1:o,x2:e+n-1,y2:o,fill:"none",stroke:"#fff"}),g.default.createElement("line",{x1:e+1,y1:o+2,x2:e+n-1,y2:o+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return g.default.isValidElement(t)?g.default.cloneElement(t,e):(0,oc.default)(t)?t(e):n.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,a=t.travellerWidth,o=t.updateId,s=t.startIndex,l=t.endIndex;if(r!==e.prevData||o!==e.prevUpdateId)return vn({prevData:r,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:n},r&&r.length?vu({data:r,width:n,x:i,travellerWidth:a,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||a!==e.prevTravellerWidth)){e.scale.range([i,i+n-a]);var c=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,i=r-1;i-n>1;){var a=Math.floor((n+i)/2);t[a]>e?i=a:n=a}return e>=t[i]?i:n}}],e&&vi(n.prototype,e),r&&vi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.PureComponent);function vh(t){return(vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?vp(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=vh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vh(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vh(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}vl(vd,"displayName","Brush"),vl(vd,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var vv=Math.PI/180,vy=function(t,e,r,n){return{x:t+Math.cos(-vv*n)*r,y:e+Math.sin(-vv*n)*r}},vg=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.
5y,2))},vb=function(t,e){var r=t.x,n=t.y,i=e.cx,a=e.cy,o=vg({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o};var s=Math.acos((r-i)/o);return n>a&&(s=2*Math.PI-s),{radius:o,angle:180*s/Math.PI,angleInRadian:s}},vx=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},vw=function(t,e){var r,n=vb({x:t.x,y:t.y},e),i=n.radius,a=n.angle,o=e.innerRadius,s=e.outerRadius;if(i<o||i>s)return!1;if(0===i)return!0;var l=vx(e),c=l.startAngle,u=l.endAngle,f=a;if(c<=u){for(;f>u;)f-=360;for(;f<c;)f+=360;r=f>=c&&f<=u}else{for(;f>c;)f-=360;for(;f<u;)f+=360;r=f>=u&&f<=c}return r?vm(vm({},e),{},{radius:i,angle:f+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null};function vj(t){return(vj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var vN=["offset"];function vk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v_(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=vj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vj(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vj(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function vA(){return(vA=Object.assign.bind()).apply(this,arguments)}var vO=function(t){var e=t.value,r=t.formatter,n=(0,ol.default)(t.children)?e:t.children;return(0,oc.default)(r)?r(n):n},vP=function(t,e,r){var n,i,a=t.position,o=t.viewBox,s=t.offset,l=t.className,c=o.cx,u=o.cy,f=o.innerRadius,d=o.outerRadius,h=o.startAngle,p=o.endAngle,m=o.clockWise,v=(f+d)/2,y=ox(p-h)*Math.min(Math.abs(p-h),360),b=y>=0?1:-1;"insideStart"===a?(n=h+b*s,i=m):"insideEnd"===a?(n=p-b*s,i=!m):"end"===a&&(n=p+b*s,i=m),i=y<=0?i:!i;var x=vy(c,u,v,n),w=vy(c,u,v,n+(i?1:-1)*359),j="M".concat(x.x,",").concat(x.y,"\n    A").concat(v,",").concat(v,",0,1,").concat(+!i,",\n    ").concat(w.x,",").concat(w.y),N=(0,ol.default)(t.id)?o_("recharts-radial-line-"):t.id;return g.default.createElement("text",vA({},r,{dominantBaseline:"central",className:L("recharts-radial-bar-label",l)}),g.default.createElement("defs",null,g.default.createElement("path",{id:N,d:j})),g.default.createElement("textPath",{xlinkHref:"#".concat(N)},e))},vE=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e.cx,a=e.cy,o=e.innerRadius,s=e.outerRadius,l=(e.startAngle+e.endAngle)/2;if("outside"===n){var c=vy(i,a,s+r,l),u=c.x;return{x:u,y:c.y,textAnchor:u>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=vy(i,a,(o+s)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},vC=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,a=e.x,o=e.y,s=e.width,l=e.height,c=l>=0?1:-1,u=c*n,f=c>0?"end":"start",d=c>0?"start":"end",h=s>=0?1:-1,p=h*n,m=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return vS(vS({},{x:a+s/2,y:o-c*n,textAnchor:"middle",verticalAnchor:f}),r?{height:Math.max(o-r.y,0),width:s}:{});if("bottom"===i)return vS(vS({},{x:a+s/2,y:o+l+u,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(o+l),0),width:s}:{});if("left"===i){var y={x:a-p,y:o+l/2,textAnchor:m,verticalAnchor:"middle"};return vS(vS({},y),r?{width:Math.max(y.x-r.x,0),height:l}:{})}if("right"===i){var g={x:a+s+p,y:o+l/2,textAnchor:v,verticalAnchor:"middle"};return vS(vS({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var b=r?{width:s,height:l}:{};return"insideLeft"===i?vS({x:a+p,y:o+l/2,textAnchor:v,verticalAnchor:"middle"},b):"insideRight"===i?vS({x:a+s-p,y:o+l/2,textAnchor:m,verticalAnchor:"middle"},b):"insideTop"===i?vS({x:a+s/2,y:o+u,textAnchor:"middle",verticalAnchor:d},b):"insideBottom"===i?vS({x:a+s/2,y:o+l-u,textAnchor:"middle",verticalAnchor:f},b):"insideTopLeft"===i?vS({x:a+p,y:o+u,textAnchor:v,verticalAnchor:d},b):"insideTopRight"===i?vS({x:a+s-p,y:o+u,textAnchor:m,verticalAnchor:d},b):"insideBottomLeft"===i?vS({x:a+p,y:o+l-u,textAnchor:v,verticalAnchor:f},b):"insideBottomRight"===i?vS({x:a+s-p,y:o+l-u,textAnchor:m,verticalAnchor:f},b):(0,ov.default)(i)&&(oj(i.x)||ow(i.x))&&(oj(i.y)||ow(i.y))?vS({x:a+oS(i.x,s),y:o+oS(i.y,l),textAnchor:"end",verticalAnchor:"end"},b):vS({x:a+s/2,y:o+l/2,textAnchor:"middle",verticalAnchor:"middle"},b)};function vL(t){var e,r=t.offset,n=vS({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,vN)),i=n.viewBox,a=n.position,o=n.value,s=n.children,l=n.content,c=n.className,u=n.textBreakAll;if(!i||(0,ol.default)(o)&&(0,ol.default)(s)&&!(0,g.isValidElement)(l)&&!(0,oc.default)(l))return null;if((0,g.isValidElement)(l))return(0,g.cloneElement)(l,n);if((0,oc.default)(l)){if(e=(0,g.createElement)(l,n),(0,g.isValidElement)(e))return e}else e=vO(n);var f="cx"in i&&oj(i.cx),d=o0(n,!0);
5if(f&&("insideStart"===a||"insideEnd"===a||"end"===a))return vP(n,e,d);var h=f?vE(n):vC(n);return g.default.createElement(uJ,vA({className:L("recharts-label",void 0===c?"":c)},d,h,{breakAll:u}),e)}vL.displayName="Label";var vM=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,a=t.endAngle,o=t.r,s=t.radius,l=t.innerRadius,c=t.outerRadius,u=t.x,f=t.y,d=t.top,h=t.left,p=t.width,m=t.height,v=t.clockWise,y=t.labelViewBox;if(y)return y;if(oj(p)&&oj(m)){if(oj(u)&&oj(f))return{x:u,y:f,width:p,height:m};if(oj(d)&&oj(h))return{x:d,y:h,width:p,height:m}}return oj(u)&&oj(f)?{x:u,y:f,width:0,height:0}:oj(e)&&oj(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:a||n||0,innerRadius:l||0,outerRadius:c||s||o||0,clockWise:v}:t.viewBox?t.viewBox:{}};vL.parseViewBox=vM,vL.renderCallByParent=function(t,e){var r,n,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var a=t.children,o=vM(t),s=oY(a,vL).map(function(t,r){return(0,g.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})});if(!i)return s;return[(r=t.label,n=e||o,!r?null:!0===r?g.default.createElement(vL,{key:"label-implicit",viewBox:n}):oN(r)?g.default.createElement(vL,{key:"label-implicit",viewBox:n,value:r}):(0,g.isValidElement)(r)?r.type===vL?(0,g.cloneElement)(r,{key:"label-implicit",viewBox:n}):g.default.createElement(vL,{key:"label-implicit",content:r,viewBox:n}):(0,oc.default)(r)?g.default.createElement(vL,{key:"label-implicit",content:r,viewBox:n}):(0,ov.default)(r)?g.default.createElement(vL,vA({viewBox:n},r,{key:"label-implicit"})):null)].concat(function(t){if(Array.isArray(t))return vk(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return vk(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vk(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var vT=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},vI=t.i(60793),vD=t.i(26063),vR=function(t){return null};vR.displayName="Cell";var vz=t.i(4879);function vF(t){return(vF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var vB=["valueAccessor"],vq=["data","dataKey","clockWise","id","textBreakAll"];function vU(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function vV(){return(vV=Object.assign.bind()).apply(this,arguments)}function vH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vW(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vH(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=vF(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vF(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vF(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vH(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v$(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var vG=function(t){return Array.isArray(t.value)?(0,vz.default)(t.value):t.value};function vK(t){var e=t.valueAccessor,r=void 0===e?vG:e,n=v$(t,vB),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=v$(n,vq);return i&&i.length?g.default.createElement(st,{className:"recharts-label-list"},i.map(function(t,e){var n=(0,ol.default)(a)?r(t,e):mk(t&&t.payload,a),i=(0,ol.default)(s)?{}:{id:"".concat(s,"-").concat(e)};return g.default.createElement(vL,vV({},o0(t,!0),c,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:vL.parseViewBox((0,ol.default)(o)?t:vW(vW({},t),{},{clockWise:o})),key:"label-".concat(e),index:e}))})):null}vK.displayName="LabelList",vK.renderCallByParent=function(t,e){var r,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i=oY(t.children,vK).map(function(t,r){return(0,g.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return n?[(r=t.label,!r?null:!0===r?g.default.createElement(vK,{key:"labelList-implicit",data:e}):g.default.isValidElement(r)||(0,oc.default)(r)?g.default.createElement(vK,{key:"labelList-implicit",data:e,content:r}):(0,ov.default)(r)?g.default.createElement(vK,vV({data:e},r,{key:"labelList-implicit"})):null)].concat(function(t){if(Array.isArray(t))return vU(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return vU(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vU(t,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i};var vY=t.i(1320),vX=t.i(20164);function vZ(t){return(vZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vJ(){return(vJ=Object.assign.bind()).apply(this,arguments)}function vQ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v1(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?v0(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=vZ(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vZ(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vZ(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v0(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var v2=function(t,e,r,n,i){var a=r-n;return"M ".concat(t,",").concat(e)+"L ".concat(t+r,",").concat(e)+"L ".concat(t+r-a/2,",").concat(e+i)+"L ".concat(t+r-a/2-n,",").concat(e+i)+"L ".concat(t,",").concat(e," Z")},v5={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},v3=function(t){var e,r=v1(v1({},v5),t),n=(0,g.useRef)(),i=function(t){if(Array.isArray(t))return t}(e=(0,g.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,2)||function(t,e){if(t){if("string"==typeof t)return vQ(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vQ(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i[1];(0,g.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}},[]);var s=r.x,l=r.y,c=r.upperWidth,u=r.lowerWidth,f=r.height,d=r.className,h=r.animationEasing,p=r.animationDuration,m=r.animationBegin,v=r.isUpdateAnimationActive;if(s!==+s||l!==+l||c!==+c||u!==+u||f!==+f||0===c&&0===u||0===f)return null;var y=L("recharts-trapezoid",d);return v?g.default.createElement(cI,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:f,x:s,y:l},to:{upperWidth:c,lowerWidth:u,height:f,x:s,y:l},duration:p,animationEasing:h,isActive:v},function(t){var e=t.upperWidth,i=t.lowerWidth,o=t.height,s=t.x,l=t.y;return g.default.createElement(cI,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:h},g.default.createElement("path",vJ({},o0(r,!0),{className:y,d:v2(s,l,e,i,o),ref:n})))}):g.default.createElement("g",null,g.default.createElement("path",vJ({},o0(r,!0),{className:y,d:v2(s,l,c,u,f)})))};function v4(t){return(v4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v6(){return(v6=Object.assign.bind()).apply(this,arguments)}function v8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v7(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v8(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=v4(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=v4(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==v4(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v8(Object(r)).forEac
5h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var v9=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,a=t.sign,o=t.isExternal,s=t.cornerRadius,l=t.cornerIsExternal,c=s*(o?1:-1)+n,u=Math.asin(s/c)/vv,f=l?i:i+a*u;return{center:vy(e,r,c,f),circleTangency:vy(e,r,n,f),lineTangency:vy(e,r,c*Math.cos(u*vv),l?i-a*u:i),theta:u}},yt=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,a=t.startAngle,o=t.endAngle,s=ox(o-a)*Math.min(Math.abs(o-a),359.999),l=a+s,c=vy(e,r,i,a),u=vy(e,r,i,l),f="M ".concat(c.x,",").concat(c.y,"\n    A ").concat(i,",").concat(i,",0,\n    ").concat(+(Math.abs(s)>180),",").concat(+(a>l),",\n    ").concat(u.x,",").concat(u.y,"\n  ");if(n>0){var d=vy(e,r,n,a),h=vy(e,r,n,l);f+="L ".concat(h.x,",").concat(h.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(s)>180),",").concat(+(a<=l),",\n            ").concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(e,",").concat(r," Z");return f},ye=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,o=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,u=ox(c-l),f=v9({cx:e,cy:r,radius:i,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),d=f.circleTangency,h=f.lineTangency,p=f.theta,m=v9({cx:e,cy:r,radius:i,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=s?Math.abs(l-c):Math.abs(l-c)-p-g;if(b<0)return o?"M ".concat(h.x,",").concat(h.y,"\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n        a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n      "):yt({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var x="M ".concat(h.x,",").concat(h.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n  ");if(n>0){var w=v9({cx:e,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),j=w.circleTangency,N=w.lineTangency,k=w.theta,_=v9({cx:e,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=_.circleTangency,A=_.lineTangency,O=_.theta,P=s?Math.abs(l-c):Math.abs(l-c)-k-O;if(P<0&&0===a)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(A.x,",").concat(A.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(P>180),",").concat(+(u>0),",").concat(j.x,",").concat(j.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(N.x,",").concat(N.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x},yr={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yn=function(t){var e,r=v7(v7({},yr),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,f=r.endAngle,d=r.className;if(o<a||u===f)return null;var h=L("recharts-sector",d),p=o-a,m=oS(s,p,0,!0);return e=m>0&&360>Math.abs(u-f)?ye({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,p/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):yt({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),g.default.createElement("path",v6({},o0(r,!0),{className:h,d:e,role:"img"}))},yi=["option","shapeType","propTransformer","activeClassName","isActive"];function ya(t){return(ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ys(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?yo(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=ya(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ya(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ya(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yl(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return g.default.createElement(uc,r);case"trapezoid":return g.default.createElement(v3,r);case"sector":return g.default.createElement(yn,r);case"symbols":if("symbols"===e)return g.default.createElement(ln,r);break;default:return null}}function yc(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,a=t.activeClassName,o=t.isActive,s=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,yi);if((0,g.isValidElement)(r))e=(0,g.cloneElement)(r,ys(ys({},s),(0,g.isValidElement)(r)?r.props:r));else if((0,oc.default)(r))e=r(s);else if((0,vY.default)(r)&&!(0,vX.default)(r)){var l=(void 0===i?function(t,e){return ys(ys({},e),t)}:i)(r,s);e=g.default.createElement(yl,{shapeType:n,elementProps:l})}else e=g.default.createElement(yl,{shapeType:n,elementProps:s});return o?g.default.createElement(st,{className:void 0===a?"recharts-active-shape":a},e):e}function yu(t,e){return null!=e&&"trapezoids"in t.props}function yf(t,e){return null!=e&&"sectors"in t.props}function yd(t,e){return null!=e&&"points"in t.props}function yh(t,e){var r,n,i=t.x===(null==e||null==(r=e.labelViewBox)?void 0:r.x)||t.x===e.x,a=t.y===(null==e||null==(n=e.labelViewBox)?void 0:n.y)||t.y===e.y;return i&&a}function yp(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function ym(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}var yv=["x","y"];function yy(t){return(yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yg(){return(yg=Object.assign.bind()).apply(this,arguments)}function yb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function yx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yb(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=yy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yy(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yy(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yw(t,e){var r=t.x,n=t.y,i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,yv),a=parseInt("".concat(r),10),o=parseInt("".concat(n),10),s=parseInt("".concat(e.height||i.height),10),l=parseInt("".concat(e.width||i.width),10);return yx(yx(yx(yx(yx({},e),i),a?{x:a}:{}),o?{y:o}:{}),{}
5,{height:s,width:l,name:e.name,radius:e.radius})}function yj(t){return g.default.createElement(yc,yg({shapeType:"rectangle",propTransformer:yw,activeClassName:"recharts-active-bar"},t))}var yN=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i=oj(r)||(0,ol.default)(r);return i?t(r,n):(i||op(!1),e)}},yk=["value","background"];function y_(t){return(y_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yS(){return(yS=Object.assign.bind()).apply(this,arguments)}function yA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function yO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yA(Object(r),!0).forEach(function(e){yM(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yT(n.key),n)}}function yE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(yE=function(){return!!t})()}function yC(t){return(yC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yL(t,e){return(yL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yM(t,e,r){return(e=yT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yT(t){var e=function(t,e){if("object"!=y_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y_(e)?e:e+""}var yI=function(t){var e,r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n,r=[].concat(a),e=yC(e),yM(t=function(t,e){if(e&&("object"===y_(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,yE()?Reflect.construct(e,r||[],yC(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!1}),yM(t,"id",o_("recharts-bar-")),yM(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),yM(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&yL(n,t),e=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,a=r.activeIndex,o=r.activeBar,s=o0(this.props,!1);return t&&t.map(function(t,r){var l=r===a,c=yO(yO(yO({},s),t),{},{isActive:l,option:l?o:n,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return g.default.createElement(st,yS({className:"recharts-bar-rectangle"},oF(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),g.default.createElement(yj,c))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,a=e.animationBegin,o=e.animationDuration,s=e.animationEasing,l=e.animationId,c=this.state.prevData;return g.default.createElement(cI,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var i=e.t,a=r.map(function(t,e){var r=c&&c[e];if(r){var a=oP(r.x,t.x),o=oP(r.y,t.y),s=oP(r.width,t.width),l=oP(r.height,t.height);return yO(yO({},t),{},{x:a(i),y:o(i),width:s(i),height:l(i)})}if("horizontal"===n){var u=oP(0,t.height)(i);return yO(yO({},t),{},{y:t.y+t.height-u,height:u})}var f=oP(0,t.width)(i);return yO(yO({},t),{},{width:f})});return g.default.createElement(st,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return r&&e&&e.length&&(!n||!(0,pH.default)(n,e))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(e)}}
5,{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,a=o0(this.props.background,!1);return r.map(function(e,r){e.value;var o=e.background,s=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,yk);if(!o)return null;var l=yO(yO(yO(yO(yO({},s),{},{fill:"#eee"},o),a),oF(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return g.default.createElement(yj,yS({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,a=r.yAxis,o=r.layout,s=oY(r.children,mh);if(!s)return null;var l="vertical"===o?n[0].height/2:n[0].width/2,c=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:mk(t,e)}};return g.default.createElement(st,{clipPath:t?"url(#clipPath-".concat(e,")"):null},s.map(function(t){return g.default.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:a,layout:o,offset:l,dataPointFormatter:c})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,a=t.yAxis,o=t.left,s=t.top,l=t.width,c=t.height,u=t.isAnimationActive,f=t.background,d=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,p=L("recharts-bar",n),m=i&&i.allowDataOverflow,v=a&&a.allowDataOverflow,y=m||v,b=(0,ol.default)(d)?this.id:d;return g.default.createElement(st,{className:p},m||v?g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"clipPath-".concat(b)},g.default.createElement("rect",{x:m?o:o-l/2,y:v?s:s-c/2,width:m?l:2*l,height:v?c:2*c}))):null,g.default.createElement(st,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,b),(!u||h)&&vK.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&yP(n.prototype,e),r&&yP(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.PureComponent);function yD(t){return(yD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yq(n.key),n)}}function yz(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function yF(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yz(Object(r),!0).forEach(function(e){yB(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yz(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yB(t,e,r){return(e=yq(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yq(t){var e=function(t,e){if("object"!=yD(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yD(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
5(t,"string");return"symbol"==yD(e)?e:e+""}yM(yI,"displayName","Bar"),yM(yI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!sj.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),yM(yI,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,s=t.xAxisTicks,l=t.yAxisTicks,c=t.stackedData,u=t.dataStartIndex,f=t.displayedData,d=t.offset,h=mq(n,r);if(!h)return null;var p=e.layout,m=r.type.defaultProps,v=void 0!==m?yO(yO({},m),r.props):r.props,y=v.dataKey,g=v.children,b=v.minPointSize,x="horizontal"===p?o:a,w=c?x.scale.domain():null,j=mY({numericAxis:x}),N=oY(g,vR),k=f.map(function(t,e){c?f=mU(c[u+e],w):Array.isArray(f=mk(t,y))||(f=[j,f]);var n=yN(b,yI.defaultProps.minPointSize)(f[1],e);if("horizontal"===p){var f,d,m,v,g,x,k,_=[o.scale(f[0]),o.scale(f[1])],S=_[0],A=_[1];d=mK({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:t,index:e}),m=null!=(k=null!=A?A:S)?k:void 0,v=h.size;var O=S-A;if(g=Number.isNaN(O)?0:O,x={x:d,y:o.y,width:v,height:o.height},Math.abs(n)>0&&Math.abs(g)<Math.abs(n)){var P=ox(g||n)*(Math.abs(n)-Math.abs(g));m-=P,g+=P}}else{var E=[a.scale(f[0]),a.scale(f[1])],C=E[0],L=E[1];if(d=C,m=mK({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:t,index:e}),v=L-C,g=h.size,x={x:a.x,y:m,width:a.width,height:g},Math.abs(n)>0&&Math.abs(v)<Math.abs(n)){var M=ox(v||n)*(Math.abs(n)-Math.abs(v));v+=M}}return yO(yO(yO({},t),{},{x:d,y:m,width:v,height:g,value:c?f:f[1],payload:t,background:x},N&&N[e]&&N[e].props),{},{tooltipPayload:[m5(r,t)],tooltipPosition:{x:d+v/2,y:m+g/2}})});return yO({data:k,layout:p},d)});var yU=function(t,e){var r=t.x,n=t.y,i=e.x,a=e.y;return{x:Math.min(r,i),y:Math.min(n,a),width:Math.abs(i-r),height:Math.abs(a-n)}},yV=function(){var t,e;function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&yR(r.prototype,t),e&&yR(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();yB(yV,"EPS",1e-4);var yH=function(t){var e=Object.keys(t).reduce(function(e,r){return yF(yF({},e),{},yB({},r,yV.create(t[r])))},{});return yF(yF({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return(0,vI.default)(t,function(t,r){return e[r].apply(t,{bandAware:n,position:i})})},isInRange:function(t){return(0,vD.default)(t,function(t,r){return e[r].isInRange(t)})}})},yW=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n%180+180)%180*Math.PI/180,a=Math.atan(r/e);return Math.abs(i>a&&i<Math.PI-a?r/Math.sin(i):e/Math.cos(i))};function y$(){return(y$=Object.assign.bind()).apply(this,arguments)}function yG(t){return(yG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yK(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function yY(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?yK(Object(r),!0).forEach(function(e){yQ(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yK(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(yX=function(){return!!t})()}function yZ(t){return(yZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yJ(t,e){return(yJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yQ(t,e,r){return(e=y0(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y0(t){var e=function(t,e){if("object"!=yG(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yG(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yG(e)?e:e+""}var y1=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,a=yH({x:n.scale,y:i.scale}),o=a.apply({x:e,y:r},{bandAware:!0});return vT(t,"discard")&&!a.isInRange(o)?null:o},y2=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=yZ(t),function(t,e){if(e&&("object"===yG(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,yX()?Reflect.construct(t,e||[],yZ(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&yJ(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,i=t.r,a=t.alwaysShow,o=t.clipPathId,s=oN(e),l=oN(n);if(sI(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!l)return null;var c=y1(this.props);if(!c)return null;var u=c.x,f=c.y,d=this.props,h=d.shape,p=d.className,m=yY(yY({clipPath:vT(this.props,"hidden")?"url(#".concat(o,")"):void 0},o0(this.props,!0)),{},{cx:u,cy:f});return g.default.createElement(st,{className:L("recharts-reference-dot",p)},r.renderDot(h,m),vL.renderCallByParent(this.props,{x:u-i,y:f-i,width:2*i,height:2*i}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y0(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.default.Component);yQ(y2,"displayName","ReferenceDot"),yQ(y2,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),yQ(y2,"renderDot",function(t,e){return g.default.isValidElement(t)?g.default.cloneElement(t,e):(0,oc.default)(t)?t(e):g.default.createElement(lS,y$({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});var y5=t.i(88099),y3=t.i(60191),y4=(0,t.i(57588).default)(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return"l"+t.left+"t"+t.top+"w"+t.width+"h"+t.height}),y6=(0,g.createContext)(void 0),y8=(0,g.createContext)(void 0),y7=(0,g.createContext)(void 0),y9=(0,g.createContext)({}),gt=(0,g.createContext)(void 0),ge=(0,g.createContext)(0),gr=(0,g.createContext)(0),gn=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,a=t.clipPathId,o=t.children,s=t.width,l=t.height,c=y4(i);return g.default.createElement(y6.Provider,{value:r},g.default.createElement(y8.Provider,{value:n},g.default.createElement(y9.Provider,{value:i},g.default.createElement(y7.Provider,{value:c},g.default.createElement(gt.Provider,{value:a},g.default.createElement(ge.Provider,{value:l},g.default.createElement(gr.Provider,{value:s},o)))))))},gi=function(t){var e=(0,g.useContext)(y6);null==e&&op(!1);var r=e[t];return null==r&&op(!1),r},ga=function(){var t=(0,g.useContext)(y8);return(0,y3.default)(t,function(t){return(0,vD.default)(t.domain,Number.isFinite)})||oA(t)},go=function(t){var e=(0,g.useContext)(y8);null==e&&op(!1);var r=e[t];return null==r&&op(!1),r},gs=function(){return(0,g.useContext)(gr)},gl=function(){return(0,g.useContext)(ge)};function gc(t){return(gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gu=function(){return!!t})()}function gf(t){return(gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
5function gd(t,e){return(gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gh(Object(r),!0).forEach(function(e){gm(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function gm(t,e,r){return(e=gv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gv(t){var e=function(t,e){if("object"!=gc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gc(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gc(e)?e:e+""}function gy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function gg(){return(gg=Object.assign.bind()).apply(this,arguments)}var gb=function(t,e){return g.default.isValidElement(t)?g.default.cloneElement(t,e):(0,oc.default)(t)?t(e):g.default.createElement("line",gg({},e,{className:"recharts-reference-line-line"}))},gx=function(t,e,r,n,i,a,o,s,l){var c=i.x,u=i.y,f=i.width,d=i.height;if(r){var h=l.y,p=t.y.apply(h,{position:a});if(vT(l,"discard")&&!t.y.isInRange(p))return null;var m=[{x:c+f,y:p},{x:c,y:p}];return"left"===s?m.reverse():m}if(e){var v=l.x,y=t.x.apply(v,{position:a});if(vT(l,"discard")&&!t.x.isInRange(y))return null;var g=[{x:y,y:u+d},{x:y,y:u}];return"top"===o?g.reverse():g}if(n){var b=l.segment.map(function(e){return t.apply(e,{position:a})});return vT(l,"discard")&&(0,y5.default)(b,function(e){return!t.isInRange(e)})?null:b}return null};function gw(t){var e,r=t.x,n=t.y,i=t.segment,a=t.xAxisId,o=t.yAxisId,s=t.shape,l=t.className,c=t.alwaysShow,u=(0,g.useContext)(gt),f=gi(a),d=go(o),h=(0,g.useContext)(y7);if(!u||!h)return null;sI(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=gx(yH({x:f.scale,y:d.scale}),oN(r),oN(n),i&&2===i.length,h,t.position,f.orientation,d.orientation,t);if(!p)return null;var m=function(t){if(Array.isArray(t))return t}(p)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(p,2)||function(t,e){if(t){if("string"==typeof t)return gy(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gy(t,2)}}(p,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=m[0],y=v.x,b=v.y,x=m[1],w=x.x,j=x.y,N=gp(gp({clipPath:vT(t,"hidden")?"url(#".concat(u,")"):void 0},o0(t,!0)),{},{x1:y,y1:b,x2:w,y2:j});return g.default.createElement(st,{className:L("recharts-reference-line",l)},gb(s,N),vL.renderCallByParent(t,yU({x:(e={x1:y,y1:b,x2:w,y2:j}).x1,y:e.y1},{x:e.x2,y:e.y2})))}var gj=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=gf(t),function(t,e){if(e&&("object"===gc(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,gu()?Reflect.construct(t,e||[],gf(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&gd(r,t),e=[{key:"render",value:function(){return g.default.createElement(gw,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gv(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.default.Component);function gN(){return(gN=Object.assign.bind()).apply(this,arguments)}function gk(t){return(gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?g_(Object(r),!0).forEach(function(e){gE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}gm(gj,"displayName","ReferenceLine"),gm(gj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function gA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gA=function(){return!!t})()}function gO(t){return(gO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gP(t,e){return(gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gE(t,e,r){return(e=gC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gC(t){var e=function(t,e){if("object"!=gk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gk(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gk(e)?e:e+""}var gL=function(t,e,r,n,i){var a=i.x1,o=i.x2,s=i.y1,l=i.y2,c=i.xAxis,u=i.yAxis;if(!c||!u)return null;var f=yH({x:c.scale,y:u.scale}),d={x:t?f.x.apply(a,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(s,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(o,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!vT(i,"discard")||f.isInRange(d)&&f.isInRange(h)?yU(d,h):null},gM=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=gO(t),function(t,e){if(e&&("object"===gk(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,gA()?Reflect.construct(t,e||[],gO(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&gP(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,i=t.y1,a=t.y2,o=t.className,s=t.alwaysShow,l=t.clipPathId;sI(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=oN(e),u=oN(n),f=oN(i),d=oN(a),h=this.props.shape;if(!c&&!u&&!f&&!d&&!h)return null;var p=gL(c,u,f,d,this.props);if(!p&&!h)return null;var m=vT(this.props,"hidden")?"url(#".concat(l,")"):void 0;return g.default.createElement(st,{className:L("recharts-reference-area",o)},r.renderRect(h,gS(gS({clipPath:m},o0(this.props,!0)),p)),vL.renderCallByParent(this.props,p))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gC(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.default.Component);function gT(t){return function(t){if(Array.isArray(t))return gI(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return gI(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gI(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gI(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}gE(gM,"displayName","ReferenceArea"),gE(gM,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),gE(gM,"renderRect",function(t,e){return g.default.isValidElement(t)?g.default.cloneElement(t,e):(0,oc.default)(t)?t(e):g.default.createElement(uc,gN({},e,{className:"recharts-reference-area-rect"}))});var gD=function(t,e,r,n,i){var a=oY(t,gj),o=oY(t,y2),s=[].concat(gT(a),gT(o)),l=oY(t,gM),c="".concat(n,"Id"),u=n[0],f=e;if(s.length&&(f=s.reduce(function(t,e){if(e.props[c]===r&&vT(e.props,"extendDomain")&&oj(e.props[u])){var n=e.props[u];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),l.length){var d="".concat(u,"1"),h="".concat(u,"2");f=l.reduce(function(t,e){if(e.props[c]===r&&vT(e.props,"extendDomain")&&oj(e.props[d])&&oj(e.props[h])){var n=e.props[d],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t},f)}return i&&i.length&&(f=i.reduce(function(t,e){return oj(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},gR=new(t.i(78492)).default,gz="recharts.syncMouseEvents";function gF(t){return(gF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gB(t,e,r){return(e=gq(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gq(t){var e=function(t,e){if("object"!=gF(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gF(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
5(t,"string");return"symbol"==gF(e)?e:e+""}var gU=(Au=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");gB(this,"activeIndex",0),gB(this,"coordinateList",[]),gB(this,"layout","horizontal")},Af=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,a=void 0===i?null:i,o=t.layout,s=void 0===o?null:o,l=t.offset,c=void 0===l?null:l,u=t.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!=(e=null!=n?n:this.coordinateList)?e:[],this.container=null!=a?a:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t,e,r=this.container.getBoundingClientRect(),n=r.x,i=r.y,a=r.height,o=this.coordinateList[this.activeIndex].coordinate,s=(null==(t=window)?void 0:t.scrollX)||0,l=(null==(e=window)?void 0:e.scrollY)||0,c=i+this.offset.top+a/2+l;this.mouseHandlerCallback({pageX:n+o+s,pageY:c})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gq(n.key),n)}}(Au.prototype,Af),Object.defineProperty(Au,"prototype",{writable:!1}),Au);function gV(t){this._context=t}function gH(t){return new gV(t)}function gW(t){return t[0]}function g$(t){return t[1]}function gG(t,e){var r=sR(!0),n=null,i=gH,a=null,o=sV(s);function s(s){var l,c,u,f=(s=pD(s)).length,d=!1;for(null==n&&(a=i(u=o())),l=0;l<=f;++l)!(l<f&&r(c=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(c,l,s),+e(c,l,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?gW:sR(t),e="function"==typeof e?e:void 0===e?g$:sR(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:sR(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:sR(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:sR(!!t),s):r},s.curve=function(t){return arguments.length?(i=t,null!=n&&(a=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=a=null:a=i(n=t),s):n},s}function gK(t,e,r){var n=null,i=sR(!0),a=null,o=gH,s=null,l=sV(c);function c(c){var u,f,d,h,p,m=(c=pD(c)).length,v=!1,y=Array(m),g=Array(m);for(null==a&&(s=o(p=l())),u=0;u<=m;++u){if(!(u<m&&i(h=c[u],u,c))===v)if(v=!v)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(y[d],g[d]);s.lineEnd(),s.areaEnd()}v&&(y[u]=+t(h,u,c),g[u]=+e(h,u,c),s.point(n?+n(h,u,c):y[u],r?+r(h,u,c):g[u]))}if(p)return s=null,p+""||null}function u(){return gG().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?gW:sR(+t),e="function"==typeof e?e:void 0===e?sR(0):sR(+e),r="function"==typeof r?r:void 0===r?g$:sR(+r),c.x=function(e){return arguments.length?(t="function"==typeof e?e:sR(+e),n=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:sR(+e),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:sR(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:sR(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:sR(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:sR(+t),c):r},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(r)},c.lineX1=function(){return u().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:sR(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function gY(){}function gX(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function gZ(t){this._context=t}function gJ(t){this._context=t}function gQ(t){this._context=t}gV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},gZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gX(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gX(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gJ.prototype={areaStart:gY,areaEnd:gY,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:gX(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:gX(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class g0{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function g1(t){this._context=t}g1.prototype={areaStart:gY,areaEnd:gY,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function g2(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*n)/(n+i)))||0}function g5(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function g3(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function g4(t){this._context=t}function g6(t){this._context=new g8(t)}function g8(t){this._context=t}function g7(t){this._context=t}function g9(t){var e,r,n=t.length-1,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(e=0,a[n-1]=(t[n]+i[n-1])/2;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function bt(t,e){this._context=t,this._t=e}function be(t){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function br(){return(br=Object.assign.bind()).apply(this,arguments)}function bn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function bi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?bn(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=be(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==be(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}g4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:g3(this,this._t0,g5(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,g3(this,g5(this,r=g2(this,t,e)),r);break;default:g3(this,this._t0,r=g2(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(g6.prototype=Object.create(g4.prototype)).point=function(t,e){g4.prototype.point.call(this,e,t)},g8.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},g7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=g9(t),i=g9(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var ba={curveBasisClosed:function(t){return new gJ(t)},curveBasisOpen:function(t){return new gQ(t)},curveBasis:function(t){return new gZ(t)},curveBumpX:function(t){return new g0(t,!0)},curveBumpY:function(t){return new g0(t,!1)},curveLinearClosed:function(t){return new g1(t)},curveLinear:gH,curveMonotoneX:function(t){return new g4(t)},curveMonotoneY:function(t){return new g6(t)},curveNatural:function(t){return new g7(t)},curveStep:function(t){return new bt(t,.5)},curveStepAfter:function(t){return new bt(t,1)},curveStepBefore:function(t){return new bt(t,0)}},bo=function(t){return t.x===+t.x&&t.y===+t.y},bs=function(t){return t.x},bl=function(t){return t.y},bc=function(t,e){if((0,oc.default)(t))return t;var r="curve".concat((0,sD.default)(t));return("curveMonotone"===r||"curveBump"===r)&&e?ba["".concat(r).concat("vertical"===e?"Y":"X")]:ba[r]||gH},bu=function(t){var e,r=t.type,n=t.points,i=void 0===n?[]:n,a=t.baseLine,o=t.layout,s=t.connectNulls,l=void 0!==s&&s,c=bc(void 0===r?"linear":r,o),u=l?i.filter(function(t){return bo(t)}):i;if(Array.isArray(a)){var f=l?a.filter(function(t){return bo(t)}):a,d=u.map(function(t,e){return bi(bi({},t),{},{base:f[e]})});return(e="vertical"===o?gK().y(bl).x1(bs).x0(function(t){return t.base.x}):gK().x(bs).y1(bl).y0(function(t){return t.base.y})).defined(bo).curve(c),e(d)}return(e="vertical"===o&&oj(a)?gK().y(bl).x1(bs).x0(a):oj(a)?gK().x(bs).y1(bl).y0(a):gG().x(bs).y(bl)).defined(bo).curve(c),e(u)},bf=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if((!r||!r.length)&&!n)return null;var a=r&&r.length?bu(t):n;return g.createElement("path",br({},o0(t,!1),oz(t),{className:L("recharts-curve",e),d:a,ref:i}))};function bd(t){return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var bh=["x","y","top","left","width","height","className"];function bp(){return(bp=Object.assign.bind()).apply(this,arguments)}function bm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var bv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,a=t.to
5p,o=void 0===a?0:a,s=t.left,l=void 0===s?0:s,c=t.width,u=void 0===c?0:c,f=t.height,d=void 0===f?0:f,h=t.className,p=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bm(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=bd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bd(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bd(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:r,y:i,top:o,left:l,width:u,height:d},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,bh));return oj(r)&&oj(i)&&oj(u)&&oj(d)&&oj(o)&&oj(l)?g.default.createElement("path",bp({},o0(p,!0),{className:L("recharts-cross",h),d:"M".concat(r,",").concat(o,"v").concat(d,"M").concat(l,",").concat(i,"h").concat(u)})):null};function by(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle;return{points:[vy(e,r,n,i),vy(e,r,n,a)],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function bg(t){return(bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function bx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bb(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=bg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bg(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bg(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function bw(t){var e,r,n,i,a=t.element,o=t.tooltipEventType,s=t.isActive,l=t.activeCoordinate,c=t.activePayload,u=t.offset,f=t.activeTooltipIndex,d=t.tooltipAxisBandSize,h=t.layout,p=t.chartName,m=null!=(r=a.props.cursor)?r:null==(n=a.type.defaultProps)?void 0:n.cursor;if(!a||!m||!s||!l||"ScatterChart"!==p&&"axis"!==o)return null;var v=bf;if("ScatterChart"===p)i=l,v=bv;else if("BarChart"===p)e=d/2,i={stroke:"none",fill:"#ccc",x:"horizontal"===h?l.x-e:u.left+.5,y:"horizontal"===h?u.top+.5:l.y-e,width:"horizontal"===h?d:u.width-1,height:"horizontal"===h?u.height-1:d},v=uc;else if("radial"===h){var y=by(l),b=y.cx,x=y.cy,w=y.radius;i={cx:b,cy:x,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:w,outerRadius:w},v=yn}else i={points:function(t,e,r){var n,i,a,o;if("horizontal"===t)a=n=e.x,i=r.top,o=r.top+r.height;else if("vertical"===t)o=i=e.y,n=r.left,a=r.left+r.width;else if(null!=e.cx&&null!=e.cy)if("centric"!==t)return by(e);else{var s=e.cx,l=e.cy,c=e.innerRadius,u=e.outerRadius,f=e.angle,d=vy(s,l,c,f),h=vy(s,l,u,f);n=d.x,i=d.y,a=h.x,o=h.y}return[{x:n,y:i},{x:a,y:o}]}(h,l,u)},v=bf;var j=bx(bx(bx(bx({stroke:"#ccc",pointerEvents:"none"},u),i),o0(m,!1)),{},{payload:c,payloadIndex:f,className:L("recharts-tooltip-cursor",m.className)});return(0,g.isValidElement)(m)?(0,g.cloneElement)(m,j):(0,g.createElement)(v,j)}var bj=["item"],bN=["children","className","width","height","style","compact","title","desc"];function bk(t){return(bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b_(){return(b_=Object.assign.bind()).apply(this,arguments)}function bS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||bL(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(bO=function(){return!!t})()}function bP(t){return(bP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bE(t,e){return(bE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function bC(t){return function(t){if(Array.isArray(t))return bM(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||bL(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bL(t,e){if(t){if("string"==typeof t)return bM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bM(t,e)}}function bM(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function bI(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bT(Object(r),!0).forEach(function(e){bD(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bT(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function bD(t,e,r){return(e=bR(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bR(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bk(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bk(e)?e:e+""}var bz={xAxis:["bottom","top"],yAxis:["left","right"]},bF={width:"100%",height:"100%"},bB={x:0,y:0};function bq(t){return t}var bU=function(t,e,r,n){var i=e.find(function(t){return t&&t.index===r});if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var a=i.coordinate,o=n.radius;return bI(bI(bI({},n),vy(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,l=n.angle;return bI(bI(bI({},n),vy(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return bB},bV=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,a=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(bC(t),bC(r)):t},[]);return a.length>0?a:t&&t.length&&oj(n)&&oj(i)?t.slice(n,i+1):[]};function bH(t){return"number"===t?[0,"auto"]:void 0}var bW=function(t,e,r,n){var i=t.graphicalItems,a=t.tooltipAxis,o=bV(e,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(i,s){var l,c,u=null!=(l=s.props.data)?l:e;return(u&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(u=u.slice(t.dataStartIndex,t.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?oE(void 0===u?o:u,a.dataKey,n):u&&u[r]||o[r])?[].concat(bC(i),[m5(s,c)]):i},[])},b$=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},a="horizontal"===r?i.x:"vertical"===r?i.y:"centric"===r?i.angle:i.radius,o=t.orderedTooltipTicks,s=t.tooltipAxis,l=t.tooltipTicks,c=mS(a,o,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,f=bW(t,e,c,u),d=bU(r,o,c,i);return{activeTooltipIndex:c,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},bG=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,a=e.axisIdKey,o=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,c=t.layout,u=t.children,f=t.stackOffset,d=mT(c,i);return r.reduce(function(e,r){var h=void 0!==r.type.defaultProps?bI(bI({},r.type.defaultProps),r.props):r.props,p=h.type,m=h.dataKey,v=h.allowDataOverflow,y=h.allowDuplicatedCategory,g=h.scale,b=h.ticks,x=h.includeHidden,w=h[a];if(e[w])return e;var j=bV(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a])===w}),dataStartIndex:s,dataEndIndex:l}),N=j.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&oj(n)&&oj(i))return!0}return!1})(h.domain,v,p)&&(S=m0(h.domain,null,v),d&&("number"===p||"auto"!==g)&&(O=m_(j,m,"category")));var k=bH(p);if(!S||0===S.length){var _,S,A,O,P,E=null!=(P=h.domain)?P:k;if(m){if(S=m_(j,m,p),"category"===p&&d){var C=oO(S);y&&C?(A=S,S=(0,ou.default)(0,N)):y||(S=m2(E,S,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(bC(t),[e])},[]))}else if("category"===p)S=y?S.filter(function(t){return""!==t&&!(0,ol.default)(t)}):m2(E,S,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||(0,ol.default)(e)?t:[].concat(bC(t),[e])},[]);else if("number"===p){var L=mL(j,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===w&&(x||!i)}),m,i,c);L&&(S=L)}d&&("number"===p||"auto"!==g)&&(O=m_(j,m,"category"))}else S=d?(0,ou.default)(0,N):o&&o[w]&&o[w].hasStack&&"number"===p?"expand"===f?[0,1]:mZ(o[w].stackGroups,s,l):mM(j,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===w&&(x||!r)}),p,c,!0);"number"===p?(S=gD(u,S,w,i,b),E&&(S=m0(E,S,v))):"category"===p&&E&&S.every(function(t){return E.indexOf(t)>=0})&&(S=E)}return bI(bI({},e),{},bD({},w,bI(bI({},h),{},{axisType:i,domain:S,categoricalDomain:O,duplicateDomain:A,originalDomain:null!=(_=h.domain)?_:k,isCategorical:d,layout:c})))},{})},bK=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,a=e.axisIdKey,o=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,c=t.layout,u=t.children,f=bV(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:l}),d=f.length,h=mT(c,i),p=-1;return r.reduce(function(t,e){var m,v=(void 0!==e.type.defaultProps?bI(bI({},e.type.defaultProps),e.props):e.props)[a],y=bH("number");return t[v]?t:(p++,m=h?(0,ou.default)(0,d):o&&o[v]&&o[v].hasStack?gD(u,m=mZ(o[v].stackGroups,s,l),v,i):gD(u,m=m0(y,mM(f,r.filter(function(t){var e,r,n=a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===v&&!i}),"number",c),n.defaultProps.allowDataOverflow),v,i),bI(bI({},t),{},bD({},v,bI(bI({axisType:i},n.defaultProps),{},{hide:!0,orientation:(0,of.default)(bz,"".concat(i,".").concat(p%2),null),domain:m,originalDomain:y,isCategorical:h,layout:c}))))},{})},bY=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,a=e.graphicalItems,o=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,c=t.children,u="".concat(n,"Id"),f=oY(c,i),d={};return f&&f.length?d=bG(t,{axes:f,graphicalItems:a,axisType:n,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l}):a&&a.length&&(d=bK(t,{Axis:i,graphicalItems:a,axisType:n,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l})),d},bX=function(t){var e=oA(t),r=mD(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:(0,od.default)(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:m1(e,r)}},bZ=function(t){var e=t.children,r=t.defaultShowTooltip,n=oX(e,vd),i=0,a=0;return t.data&&0!==t.data.length&&(a=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(a=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},bJ=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},bQ=function(t,e){var r=t.props,n=t.graphicalItems,i=t.xAxisMap,a=void 0===i?{}:i,o=t.yAxisMap,s=void 0===o?{}:o,l=r.width,c=r.height,u=r.children,f=r.margin||{},d=oX(u,vd),h=oX(u,lk),p=Object.keys(s).reduce(function(t,e){var r=s[e],n=r.orientation;return r.mirror||r.hide?t:bI(bI({},t),{},bD({},n,t[n]+r.width))},{left:f.left||0,right:f.right||0}),m=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:bI(bI({},t),{},bD({},n,(0,of.default)(t,"".concat(n))+r.height))},{top:f.top||0,bottom:f.bottom||0}),v=bI(bI({},m),p),y=v.bottom;d&&(v.bottom+=d.props.height||vd.defaultProps.height),h&&e&&(v=mE(v,n,r,e));var g=l-v.left-v.right,b=c-v.top-v.bottom;return bI(bI({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(b,0)})},b0=["layout","type","stroke","connectNulls","isRange","ref"],b1=["ke
5y"];function b2(t){return(b2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b5(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function b3(){return(b3=Object.assign.bind()).apply(this,arguments)}function b4(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function b6(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b4(Object(r),!0).forEach(function(e){xe(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b4(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xr(n.key),n)}}function b7(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b7=function(){return!!t})()}function b9(t){return(b9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xt(t,e){return(xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xe(t,e,r){return(e=xr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xr(t){var e=function(t,e){if("object"!=b2(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b2(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b2(e)?e:e+""}var xn=function(t){var e,r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n,r=[].concat(a),e=b9(e),xe(t=function(t,e){if(e&&("object"===b2(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,b7()?Reflect.construct(e,r||[],b9(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!0}),xe(t,"id",o_("recharts-area-")),xe(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),(0,oc.default)(e)&&e()}),xe(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),(0,oc.default)(e)&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&xt(n,t),e=[{key:"renderDots",value:function(t,e,r){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var o=this.props,s=o.dot,l=o.points,c=o.dataKey,u=o0(this.props,!1),f=o0(s,!0),d=l.map(function(t,e){var r=b6(b6(b6({key:"dot-".concat(e),r:3},u),f),{},{index:e,cx:t.x,cy:t.y,dataKey:c,value:t.value,payload:t.payload,points:l});return n.renderDotItem(s,r)}),h={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return g.default.createElement(st,b3({className:"recharts-area-dots"},h),d)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,a=n[0].x,o=n[n.length-1].x,s=t*Math.abs(a-o),l=(0,pq.default)(n.map(function(t){return t.y||0}
5));return(oj(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max((0,pq.default)(r.map(function(t){return t.y||0})),l)),oj(l))?g.default.createElement("rect",{x:a<o?a:a-s,y:0,width:s,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,a=n[0].y,o=n[n.length-1].y,s=t*Math.abs(a-o),l=(0,pq.default)(n.map(function(t){return t.x||0}));return(oj(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max((0,pq.default)(r.map(function(t){return t.x||0})),l)),oj(l))?g.default.createElement("rect",{x:0,y:a<o?a:a-s,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,a=i.layout,o=i.type,s=i.stroke,l=i.connectNulls,c=i.isRange,u=(i.ref,b5(i,b0));return g.default.createElement(st,{clipPath:r?"url(#clipPath-".concat(n,")"):null},g.default.createElement(bf,b3({},o0(u,!0),{points:t,connectNulls:l,type:o,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&g.default.createElement(bf,b3({},o0(this.props,!1),{className:"recharts-area-curve",layout:a,type:o,connectNulls:l,fill:"none",points:t})),"none"!==s&&c&&g.default.createElement(bf,b3({},o0(this.props,!1),{className:"recharts-area-curve",layout:a,type:o,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,a=n.baseLine,o=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,c=n.animationEasing,u=n.animationId,f=this.state,d=f.prevPoints,h=f.prevBaseLine;return g.default.createElement(cI,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"area-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var o=n.t;if(d){var s,l=d.length/i.length,c=i.map(function(t,e){var r=Math.floor(e*l);if(d[r]){var n=d[r],i=oP(n.x,t.x),a=oP(n.y,t.y);return b6(b6({},t),{},{x:i(o),y:a(o)})}return t});return s=oj(a)&&"number"==typeof a?oP(h,a)(o):(0,ol.default)(a)||(0,og.default)(a)?oP(h,0)(o):a.map(function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],i=oP(n.x,t.x),a=oP(n.y,t.y);return b6(b6({},t),{},{x:i(o),y:a(o)})}return t}),r.renderAreaStatically(c,s,t,e)}return g.default.createElement(st,null,g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(o))),g.default.createElement(st,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,a,t,e)))})}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,a=r.isAnimationActive,o=this.state,s=o.prevPoints,l=o.prevBaseLine,c=o.totalLength;return a&&n&&n.length&&(!s&&c>0||!(0,pH.default)(s,n)||!(0,pH.default)(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,a=e.className,o=e.top,s=e.left,l=e.xAxis,c=e.yAxis,u=e.width,f=e.height,d=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var p=this.state.isAnimationFinished,m=1===i.length,v=L("recharts-area",a),y=l&&l.allowDataOverflow,b=c&&c.allowDataOverflow,x=y||b,w=(0,ol.default)(h)?this.id:h,j=null!=(t=o0(n,!1))?t:{r:3,strokeWidth:2},N=j.r,k=j.strokeWidth,_=(n&&"object"===oV(n)&&"clipDot"in n?n:{}).clipDot,S=void 0===_||_,A=2*(void 0===N?3:N)+(void 0===k?2:k);return g.default.createElement(st,{className:v},y||b?g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"clipPath-".concat(w)},g.default.createElement("rect",{x:y?s:s-u/2,y:b?o:o-f/2,width:y?u:2*u,height:b?f:2*f})),!S&&g.default.createElement("clipPath",{id:"clipPath-dots-".concat(w)},g.default.createElement("rect",{x:s-A/2,y:o-A/2,width:u+A,height:f+A}))):null,m?null:this.renderArea(x,w),(n||m)&&this.renderDots(x,S,w),(!d||p)&&vK.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&b8(n.prototype,e),r&&b8(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.PureComponent);function xi(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)if(void 0!==r&&!0!==r(t[i]))return;else n.push(t[i]);return n}function xa(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function xo(t){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function xl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
5e%2?xs(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=xo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xo(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xo(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xc(t,e,r){var n,i,a,o,s,l=t.tick,c=t.ticks,u=t.viewBox,f=t.minTickGap,d=t.orientation,h=t.interval,p=t.tickFormatter,m=t.unit,v=t.angle;if(!c||!c.length||!l)return[];if(oj(h)||sj.isSsr)return xi(c,("number"==typeof h&&oj(h)?h:0)+1);var y="top"===d||"bottom"===d?"width":"height",g=m&&"width"===y?u_(m,{fontSize:e,letterSpacing:r}):{width:0,height:0},b=function(t,n){var i,a=(0,oc.default)(p)?p(t.value,n):t.value;return"width"===y?(i=u_(a,{fontSize:e,letterSpacing:r}),yW({width:i.width+g.width,height:i.height+g.height},v)):u_(a,{fontSize:e,letterSpacing:r})[y]},x=c.length>=2?ox(c[1].coordinate-c[0].coordinate):1,w=(n="width"===y,i=u.x,a=u.y,o=u.width,s=u.height,1===x?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a});return"equidistantPreserveStart"===h?function(t,e,r,n,i){for(var a,o=(n||[]).slice(),s=e.start,l=e.end,c=0,u=1,f=s;u<=o.length;)if(a=function(){var e,a=null==n?void 0:n[c];if(void 0===a)return{v:xi(n,u)};var o=c,d=function(){return void 0===e&&(e=r(a,o)),e},h=a.coordinate,p=0===c||xa(t,h,d,f,l);p||(c=0,f=s,u+=1),p&&(f=h+t*(d()/2+i),c+=u)}())return a.v;return[]}(x,w,b,c,f):("preserveStart"===h||"preserveStartEnd"===h?function(t,e,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=e.start,c=e.end;if(a){var u=n[s-1],f=r(u,s-1),d=t*(u.coordinate+t*f/2-c);o[s-1]=u=xl(xl({},u),{},{tickCoord:d>0?u.coordinate-d*t:u.coordinate}),xa(t,u.tickCoord,function(){return f},l,c)&&(c=u.tickCoord-t*(f/2+i),o[s-1]=xl(xl({},u),{},{isShow:!0}))}for(var h=a?s-1:s,p=function(e){var n,a=o[e],s=function(){return void 0===n&&(n=r(a,e)),n};if(0===e){var u=t*(a.coordinate-t*s()/2-l);o[e]=a=xl(xl({},a),{},{tickCoord:u<0?a.coordinate-u*t:a.coordinate})}else o[e]=a=xl(xl({},a),{},{tickCoord:a.coordinate});xa(t,a.tickCoord,s,l,c)&&(l=a.tickCoord+t*(s()/2+i),o[e]=xl(xl({},a),{},{isShow:!0}))},m=0;m<h;m++)p(m);return o}(x,w,b,c,f,"preserveStartEnd"===h):function(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=e.start,l=e.end,c=function(e){var n,c=a[e],u=function(){return void 0===n&&(n=r(c,e)),n};if(e===o-1){var f=t*(c.coordinate+t*u()/2-l);a[e]=c=xl(xl({},c),{},{tickCoord:f>0?c.coordinate-f*t:c.coordinate})}else a[e]=c=xl(xl({},c),{},{tickCoord:c.coordinate});xa(t,c.tickCoord,u,s,l)&&(l=c.tickCoord-t*(u()/2+i),a[e]=xl(xl({},c),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}(x,w,b,c,f)).filter(function(t){return t.isShow})}xe(xn,"displayName","Area"),xe(xn,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!sj.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),xe(xn,"getBaseValue",function(t,e,r,n){var i=t.layout,a=t.baseValue,o=e.props.baseValue,s=null!=o?o:a;if(oj(s)&&"number"==typeof s)return s;var l="horizontal"===i?n:r,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return"dataMin"===s?f:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]}),xe(xn,"getComposedData",function(t){var e,r=t.props,n=t.item,i=t.xAxis,a=t.yAxis,o=t.xAxisTicks,s=t.yAxisTicks,l=t.bandSize,c=t.dataKey,u=t.stackedData,f=t.dataStartIndex,d=t.displayedData,h=t.offset,p=r.layout,m=u&&u.length,v=xn.getBaseValue(r,n,i,a),y="horizontal"===p,g=!1,b=d.map(function(t,e){m?r=u[f+e]:Array.isArray(r=mk(t,c))?g=!0:r=[v,r];var r,n=null==r[1]||m&&null==mk(t,c);return y?{x:mG({axis:i,ticks:o,bandSize:l,entry:t,index:e}),y:n?null:a.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:mG({axis:a,ticks:s,bandSize:l,entry:t,index:e}),value:r,payload:t}}
5);return e=m||g?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return y?{x:t.x,y:null!=e&&null!=t.y?a.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):y?a.scale(v):i.scale(v),b6({points:b,baseLine:e,layout:p,isRange:g},h)}),xe(xn,"renderDotItem",function(t,e){var r;if(g.default.isValidElement(t))r=g.default.cloneElement(t,e);else if((0,oc.default)(t))r=t(e);else{var n=L("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,a=b5(e,b1);r=g.default.createElement(lS,b3({},a,{key:i,className:n}))}return r});var xu=["viewBox"],xf=["viewBox"],xd=["ticks"];function xh(t){return(xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xp(){return(xp=Object.assign.bind()).apply(this,arguments)}function xm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function xv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xm(Object(r),!0).forEach(function(e){xj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xy(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function xg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xN(n.key),n)}}function xb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xb=function(){return!!t})()}function xx(t){return(xx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xw(t,e){return(xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xj(t,e,r){return(e=xN(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xN(t){var e=function(t,e){if("object"!=xh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xh(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xh(e)?e:e+""}var xk=function(t){var e,r;function n(t){var e,r,i;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,i=[t],r=xx(r),(e=function(t,e){if(e&&("object"===xh(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,xb()?Reflect.construct(r,i||[],xx(this).constructor):r.apply(this,i))).state={fontSize:"",letterSpacing:""},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&xw(n,t),e=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=xy(t,xu),i=this.props,a=i.viewBox,o=xy(i,xf);return!oL(r,a)||!oL(n,o)||!oL(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}}
5,{key:"getTickLineCoord",value:function(t){var e,r,n,i,a,o,s=this.props,l=s.x,c=s.y,u=s.width,f=s.height,d=s.orientation,h=s.tickSize,p=s.mirror,m=s.tickMargin,v=p?-1:1,y=t.tickSize||h,g=oj(t.tickCoord)?t.tickCoord:t.coordinate;switch(d){case"top":e=r=t.coordinate,o=(n=(i=c+!p*f)-v*y)-v*m,a=g;break;case"left":n=i=t.coordinate,a=(e=(r=l+!p*u)-v*y)-v*m,o=g;break;case"right":n=i=t.coordinate,a=(e=(r=l+p*u)+v*y)+v*m,o=g;break;default:e=r=t.coordinate,o=(n=(i=c+p*f)+v*y)+v*m,a=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:a,y:o}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,a=t.orientation,o=t.mirror,s=t.axisLine,l=xv(xv(xv({},o0(this.props,!1)),o0(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!o||"bottom"===a&&o);l=xv(xv({},l),{},{x1:e,y1:r+c*i,x2:e+n,y2:r+c*i})}else{var u=+("left"===a&&!o||"right"===a&&o);l=xv(xv({},l),{},{x1:e+u*n,y1:r,x2:e+u*n,y2:r+i})}return g.default.createElement("line",xp({},l,{className:L("recharts-cartesian-axis-line",(0,of.default)(s,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var i=this,a=this.props,o=a.tickLine,s=a.stroke,l=a.tick,c=a.tickFormatter,u=a.unit,f=xc(xv(xv({},this.props),{},{ticks:t}),e,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),p=o0(this.props,!1),m=o0(l,!1),v=xv(xv({},p),{},{fill:"none"},o0(o,!1)),y=f.map(function(t,e){var r=i.getTickLineCoord(t),a=r.line,y=r.tick,b=xv(xv(xv(xv({textAnchor:d,verticalAnchor:h},p),{},{stroke:"none",fill:s},m),y),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:c});return g.default.createElement(st,xp({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},oF(i.props,t,e)),o&&g.default.createElement("line",xp({},v,a,{className:L("recharts-cartesian-axis-tick-line",(0,of.default)(o,"className"))})),l&&n.renderTickItem(l,b,"".concat((0,oc.default)(c)?c(t.value,e):t.value).concat(u||"")))});return g.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,a=e.ticksGenerator,o=e.className;if(e.hide)return null;var s=this.props,l=s.ticks,c=xy(s,xd),u=l;return((0,oc.default)(a)&&(u=a(l&&l.length>0?this.props:c)),n<=0||i<=0||!u||!u.length)?null:g.default.createElement(st,{className:L("recharts-cartesian-axis",o),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),vL.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){var n=L(e.className,"recharts-cartesian-axis-tick-value");return g.default.isValidElement(t)?g.default.cloneElement(t,xv(xv({},e),{},{className:n})):(0,oc.default)(t)?t(xv(xv({},e),{},{className:n})):g.default.createElement(uJ,xp({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&xg(n.prototype,e),r&&xg(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.Component);function x_(t){return(x_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}xj(xk,"displayName","CartesianAxis"),xj(xk,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});function xS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xS=function(){return!!t})()}function xA(t){return(xA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xO(t,e){return(xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xP(t,e,r){return(e=xE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xE(t){var e=function(t,e){if("object"!=x_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
5(t,"string");return"symbol"==x_(e)?e:e+""}function xC(){return(xC=Object.assign.bind()).apply(this,arguments)}function xL(t){var e=t.xAxisId,r=gs(),n=gl(),i=gi(e);return null==i?null:g.createElement(xk,xC({},i,{className:L("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return mD(t,!0)}}))}var xM=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=xA(t),function(t,e){if(e&&("object"===x_(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,xS()?Reflect.construct(t,e||[],xA(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&xO(r,t),e=[{key:"render",value:function(){return g.createElement(xL,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xE(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.Component);function xT(t){return(xT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}xP(xM,"displayName","XAxis"),xP(xM,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function xI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xI=function(){return!!t})()}function xD(t){return(xD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
5function xR(t,e){return(xR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xz(t,e,r){return(e=xF(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xF(t){var e=function(t,e){if("object"!=xT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xT(e)?e:e+""}function xB(){return(xB=Object.assign.bind()).apply(this,arguments)}var xq=function(t){var e=t.yAxisId,r=gs(),n=gl(),i=go(e);return null==i?null:g.createElement(xk,xB({},i,{className:L("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return mD(t,!0)}}))},xU=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=xD(t),function(t,e){if(e&&("object"===xT(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,xI()?Reflect.construct(t,e||[],xD(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&xR(r,t),e=[{key:"render",value:function(){return g.createElement(xq,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xF(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.Component);xz(xU,"displayName","YAxis"),xz(xU,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var xV=(Ah=(Ad={chartName:"AreaChart",GraphicalChild:xn,axisComponents:[{axisType:"xAxis",AxisComp:xM},{axisType:"yAxis",AxisComp:xU}],formatAxisMap:function(t,e,r,n,i){var a=t.width,o=t.height,s=t.layout,l=t.children,c=Object.keys(e),u={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},f=!!oX(l,yI);return c.reduce(function(a,o){var l,c,d,h,p,m=e[o],v=m.orientation,y=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,j="".concat(v).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var N=y[1]-y[0],k=1/0,_=m.categoricalDomain.sort(oC);if(_.forEach(function(t,e){e>0&&(k=Math.min((t||0)-(_[e-1]||0),k))}),Number.isFinite(k)){var S=k/N,A="vertical"===m.layout?r.height:r.width;if("gap"===m.padding&&(l=S*A/2),"no-gap"===m.padding){var O=oS(t.barCategoryGap,S*A),P=S*A/2;l=P-O-(P-O)/A*O}}}c="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===s?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:m.range,w&&(c=[c[1],c[0]]);var E=mF(m,i,f),C=E.scale,L=E.realScaleType;C.domain(y).range(c),mB(C);var M=m$(C,yF(yF({},m),{},{realScaleType:L}));"xAxis"===n?(p="top"===v&&!x||"bottom"===v&&x,d=r.left,h=u[j]-p*m.height):"yAxis"===n&&(p="left"===v&&!x||"right"===v&&x,d=u[j]-p*m.width,h=r.top);var T=yF(yF(yF({},m),M),{},{realScaleType:L,x:d,y:h,scale:C,width:"xAxis"===n?r.width:m.width,height:"yAxis"===n?r.height:m.height});return T.bandSize=m1(T,M),m.hide||"xAxis"!==n?m.hide||(u[j]+=(p?-1:1)*T.width):u[j]+=(p?-1:1)*T.height,yF(yF({},a),{},yB({},o,T))},{})}}).chartName,Ap=Ad.GraphicalChild,Av=void 0===(Am=Ad.defaultTooltipEventType)?"axis":Am,Ag=void 0===(Ay=Ad.validateTooltipEventTypes)?["axis"]:Ay,Ab=Ad.axisComponents,Ax=Ad.legendContent,Aw=Ad.formatAxisMap,Aj=Ad.defaultProps,AN=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,a=e.updateId,o=e.dataStartIndex,s=e.dataEndIndex,l=t.barSize,c=t.layout,u=t.barGap,f=t.barCategoryGap,d=t.maxBarSize,h=bJ(c),p=h.numericAxisName,m=h.cateAxisName,v=!!r&&!!r.length&&r.some(function(t){var e=oW(t&&t.type);return e&&e.indexOf("Bar")>=0}),y=[];return r.forEach(function(r,h){var g=bV(t.data,{graphicalItems:[r],dataStartIndex:o,dataEndIndex:s}),b=void 0!==r.type.defaultProps?bI(bI({},r.type.defaultProps),r.props):r.props,x=b.dataKey,w=b.maxBarSize,j=b["".concat(p,"Id")],N=b["".concat(m,"Id")],k=Ab.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],i=b["".concat(r.axisType,"Id")];n&&n[i]||"zAxis"===r.axisType||op(!1);var a=n[i];return bI(bI({},t),{},bD(bD({},r.axisType,a),"".concat(r.axisType,"Ticks"),mD(a)))},{}),_=k[m],S=k["".concat(m,"Ticks")],A=n&&n[j]&&n[j].hasStack&&mX(r,n[j].stackGroups),O=oW(r.type).indexOf("Bar")>=0,P=m1(_,S),E=[],C=v&&mO({barSize:l,stackGroups:n,totalSize:"xAxis"===m?k[m].width:"yAxis"===m?k[m].height:void 0});if(O){var L,M,T=(0,ol.default)(w)?d:w,I=null!=(L=null!=(M=m1(_,S,!0))?M:T)?L:0;E=mP({barGap:u,barCategoryGap:f,bandSize:I!==P?I:P,sizeList:C[N],maxBarSize:T}),I!==P&&(E=E.map(function(t){return bI(bI({},t),{},{position:bI(bI({},t.position),{},{offset:t.position.offset-I/2})})}))}var D=r&&r.type&&r.type.getComposedData;D&&y.push({props:bI(bI({},D(bI(bI({},k),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:P,barPosition:E,offset:i,stackedData:A,layout:c,dataStartIndex:o,dataEndIndex:s}))),{},bD(bD(bD({key:r.key||"item-".concat(h)},p,k[p]),m,k[m]),"animationId",a)),childIndex:oK(t.children).indexOf(r),item:r})}),y},Ak=function(t,e){var r=t.props,n=t.dataStartIndex,i=t.dataEndIndex,a=t.updateId;if(!oZ({props:r}))return null;var o=r.children,s=r.layout,l=r.stackOffset,c=r.data,u=r.reverseStackOrder,f=bJ(s),d=f.numericAxisName,h=f.cateAxisName,p=oY(o,Ap),m=mW(c,p,"".concat(d,"Id"),"".concat(h,"Id"),l,u),v=Ab.reduce(function(t,e){var a="".concat(e.axisType,"Map");return bI(bI({},t),{},bD({},a,bY(r,bI(bI({},e),{},{graphicalItems:p,stackGroups:e.axisType===d&&m,dataStartIndex:n,dataEndIndex:i}))))},{}),y=bQ(bI(bI({},v),{},{props:r,graphicalItems:p}),null==e?void 0:e.legendBBox);Object.keys(v).forEach(function(t){v[t]=Aw(r,v[t],y,t.replace("Map",""),Ah)});var g=bX(v["".concat(h,"Map")]),b=AN(r,bI(bI({},v),{},{dataStartIndex:n,dataEndIndex:i,updateId:a,graphicalItems:p,stackGroups:m,offset:y}));return bI(bI({formattedGraphicalItems:b,graphicalItems:p,offset:y,stackGroups:m},g),v)},A_=function(t){var e;function r(t){var e,n,i,a,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return a=r,o=[t],a=bP(a),bD(i=function(t,e){if(e&&("object"===bk(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,bO()?Reflect.construct(a,o||[],bP(this).constructor):a.apply(this,o)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),bD(i,"accessibilityManager",new gU),bD(i,"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,a=e.updateId;i.setState(bI({legendBBox:t},Ak({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:a},bI(bI({},i.state),{},{legendBBox:t}))))}}),bD(i,"handleReceiveSyncEvent",function(t,e,r){i.props.syncId===t&&(r!==i.eventEmitterSymbol||"function"==typeof i.props.syncMethod)&&i.applySyncEvent(e)}),bD(i,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState(function(){return bI({dataStartIndex:e,dataEndIndex:r},Ak({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),bD(i,"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var r=bI(bI({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;(0,oc.default)(n)&&n(r,t)}}),bD(i,"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),r=e?bI(bI({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;(0,oc.default)(n)&&n(r,t)}),bD(i,"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),bD(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),bD(i,"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),bD(i,"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;(0,oc.default)(r)&&r(e,t)}),bD(i,"handleOuterEvent",function(t){var e,r=o3(t),n=(0,of.default)(i.props,"".concat(r));r&&(0,oc.default)(n)&&n(null!=(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))?e:{},t)}),bD(i,"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var r=bI(bI({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;(0,oc.default)(n)&&n(r,t)}}),bD(i,"handleMouseDown",function(t){var e=i.props.onMouseDown;(0,oc.default)(e)&&e(i.getMouseInfo(t),t)}),bD(i,"handleMouseUp",function(t){var e=i.props.onMouseUp;(0,oc.default)(e)&&e(i.getMouseInfo(t),t)}),bD(i,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),bD(i,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),bD(i,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),bD(i,"handleDoubleClick",function(t){var e=i.props.onDoubleClick;(0,oc.default)(e)&&e(i.getMouseInfo(t),t)}),bD(i,"handleContextMenu",function(t){var e=i.props.onContextMenu;(0,oc.default)(e)&&e(i.getMouseInfo(t),t)}),bD(i,"triggerSyncEvent",function(t){void 0!==i.props.syncId&&gR.emit(gz,i.props.syncId,t,i.eventEmitterSymbol)}),bD(i,"applySyncEvent",function(t){var e=i.props,r=e.layout,n=e.syncMethod,a=i.state.updateId,o=t.dataStartIndex,s=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(bI({dataStartIndex:o,dataEndIndex:s},Ak({props:i.props,dataStartIndex:o,dataEndIndex:s,updateId:a},i.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,c=t.chartY,u=t.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)u=n(h,t);else if("value"===n){u=-1;for(var p=0;p<h.length;p++)if(h[p].value===t.activeLabel){u=p;break}}var m=bI(bI({},d),{},{x:d.left,y:d.top}),v=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),g=h[u]&&h[u].value,b=bW(i.state,i.props.data,u),x=h[u]?{x:"horizontal"===r?h[u].coordinate:v,y:"horizontal"===r?y:h[u].coordinate}:bB;i.setState(bI(bI({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else i.setState(t)}),bD(i,"renderCursor",function(t){var e,r=i.state,n=r.isTooltipActive,a=r.activeCoordinate,o=r.activePayload,s=r.offset,l=r.activeTooltipIndex,c=r.tooltipAxisBandSize,u=i.getTooltipEventType(),f=null!=(e=t.props.active)?e:n,d=i.props.layout,h=t.key||"_recharts-cursor";return g.default.createElement(bw,{key:h,activeCoordinate:a,activePayload:o,activeTooltipIndex:l,chartName:Ah,element:t,isActive:f,layout:d,offset:s,tooltipAxisBandSize:c,tooltipEventType:u})}),bD(i,"renderPolarAxis",function(t,e,r){var n=(0,of.default)(t,"type.axisType"),a=(0,of.default)(i.state,"".concat(n,"Map")),o=t.type.defaultProps,s=void 0!==o?bI(bI({},o),t.props):t.props,l=a&&a[s["".concat(n,"Id")]];return(0,g.cloneElement)(t,bI(bI({},l),{},{className:L(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:mD(l,!0)}))}),bD(i,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,a=e.polarRadius,o=i.state,s=o.radiusAxisMap,l=o.angleAxisMap,c=oA(s),u=oA(l),f=u.cx,d=u.cy,h=u.innerRadius,p=u.outerRadius;return(0,g.cloneElement)(t,{polarAngles:Array.isArray(n)?n:mD(u,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(a)?a:mD(c,!0).map(function(t){return t.coordinate}),cx:f,cy:d,innerRadius:h,outerRadius:p,key:t.key||"polar-grid",radialLines:r})}),bD(i,"renderLegend",function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,a=e.height,o=i.props.margin||{},s=my({children:r,formattedGraphicalItems:t,legendWidth:n-(o.left||0)-(o.right||0),legendContent:Ax});if(!s)return null;var l=s.item,c=bA(s,bj);return(0,g.cloneElement)(l,bI(bI({},c),{}
5,{chartWidth:n,chartHeight:a,margin:o,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),bD(i,"renderTooltip",function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,a=oX(r,sT);if(!a)return null;var o=i.state,s=o.isTooltipActive,l=o.activeCoordinate,c=o.activePayload,u=o.activeLabel,f=o.offset,d=null!=(t=a.props.active)?t:s;return(0,g.cloneElement)(a,{viewBox:bI(bI({},f),{},{x:f.left,y:f.top}),active:d,label:u,payload:d?c:[],coordinate:l,accessibilityLayer:n})}),bD(i,"renderBrush",function(t){var e=i.props,r=e.margin,n=e.data,a=i.state,o=a.offset,s=a.dataStartIndex,l=a.dataEndIndex,c=a.updateId;return(0,g.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:mz(i.handleBrushChange,t.props.onChange),data:n,x:oj(t.props.x)?t.props.x:o.left,y:oj(t.props.y)?t.props.y:o.top+o.height+o.brushBottom-(r.bottom||0),width:oj(t.props.width)?t.props.width:o.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),bD(i,"renderReferenceElement",function(t,e,r){if(!t)return null;var n=i.clipPathId,a=i.state,o=a.xAxisMap,s=a.yAxisMap,l=a.offset,c=t.type.defaultProps||{},u=t.props,f=u.xAxisId,d=void 0===f?c.xAxisId:f,h=u.yAxisId,p=void 0===h?c.yAxisId:h;return(0,g.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:o[d],yAxis:s[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})}),bD(i,"renderActivePoints",function(t){var e=t.item,n=t.activePoint,i=t.basePoint,a=t.childIndex,o=t.isRange,s=[],l=e.props.key,c=void 0!==e.item.type.defaultProps?bI(bI({},e.item.type.defaultProps),e.item.props):e.item.props,u=c.activeDot,f=bI(bI({index:a,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:mA(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},o0(u,!1)),oz(u));return s.push(r.renderActiveDot(u,f,"".concat(l,"-activePoint-").concat(a))),i?s.push(r.renderActiveDot(u,bI(bI({},f),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(a))):o&&s.push(null),s}),bD(i,"renderGraphicChild",function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var a=i.getTooltipEventType(),o=i.state,s=o.isTooltipActive,l=o.tooltipAxis,c=o.activeTooltipIndex,u=o.activeLabel,f=oX(i.props.children,sT),d=n.props,h=d.points,p=d.isRange,m=d.baseLine,v=void 0!==n.item.type.defaultProps?bI(bI({},n.item.type.defaultProps),n.item.props):n.item.props,y=v.activeDot,b=v.hide,x=v.activeBar,w=v.activeShape,j=!!(!b&&s&&f&&(y||x||w)),N={};"axis"!==a&&f&&"click"===f.props.trigger?N={onClick:mz(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==a&&(N={onMouseLeave:mz(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:mz(i.handleItemMouseEnter,t.props.onMouseEnter)});var k=(0,g.cloneElement)(t,bI(bI({},n.props),N));if(j)if(c>=0){if(l.dataKey&&!l.allowDuplicatedCategory){var _="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());A=oE(h,_,u),O=p&&m&&oE(m,_,u)}else A=null==h?void 0:h[c],O=p&&m&&m[c];if(w||x){var S=void 0!==t.props.activeIndex?t.props.activeIndex:c;return[(0,g.cloneElement)(t,bI(bI(bI({},n.props),N),{},{activeIndex:S})),null,null]}if(!(0,ol.default)(A))return[k].concat(bC(i.renderActivePoints({item:n,activePoint:A,basePoint:O,childIndex:c,isRange:p})))}else{var A,O,P,E=(null!=(P=i.getItemByXY(i.state.activeCoordinate))?P:{graphicalItem:k}).graphicalItem,C=E.item,L=void 0===C?t:C,M=E.childIndex,T=bI(bI(bI({},n.props),N),{},{activeIndex:M});return[(0,g.cloneElement)(L,T),null,null]}return p?[k,null,null]:[k,null]}),bD(i,"renderCustomized",function(t,e,r){return(0,g.cloneElement)(t,bI(bI({key:"recharts-customized-".concat(r)},i.props),i.state))}),bD(i,"renderMap",{CartesianGrid:{handler:bq,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:bq},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:bq},YAxis:{handler:bq},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!=(e=t.id)?e:o_("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=(0,oh.default)(i.triggeredAfterMouseMove,null!=(n=t.throttleDelay)?n:1e3/60),i.state={},i}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&bE(r,t),e=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(t=this.props.margin.left)?t:0,top:null!=(e=this.props.margin.top)?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,a=oX(e,sT);if(a){var o=a.props.defaultIndex;if("number"==typeof o&&!(o<0)&&!(o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,l=bW(this.state,r,o,s),c=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+n)/2,f="horizontal"===i?{x:c,y:u}:{y:c,x:u},d=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});d&&(f=bI(bI({},f),d.props.points[o].tooltipPosition),l=d.props.points[o].tooltipPayload);var h={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(a),this.accessibilityManager.setIndex(o)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){o1([oX(t.children,sT)],[oX(this.props.children,sT)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=oX(this.props.children,sT);
5if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return Ag.indexOf(e)>=0?e:Av}return Av}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n={top:r.top+window.scrollY-document.documentElement.clientTop,left:r.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},a=r.width/e.offsetWidth||1,o=this.inRange(i.chartX,i.chartY,a);if(!o)return null;var s=this.state,l=s.xAxisMap,c=s.yAxisMap,u=this.getTooltipEventType(),f=b$(this.state,this.props.data,this.props.layout,o);if("axis"!==u&&l&&c){var d=oA(l).scale,h=oA(c).scale,p=d&&d.invert?d.invert(i.chartX):null,m=h&&h.invert?h.invert(i.chartY):null;return bI(bI({},i),{},{xValue:p,yValue:m},f)}return f?bI(bI({},i),f):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,a=e/r;if("horizontal"===n||"vertical"===n){var o=this.state.offset;return i>=o.left&&i<=o.left+o.width&&a>=o.top&&a<=o.top+o.height?{x:i,y:a}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;return l&&c?vw({x:i,y:a},oA(l)):null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=oX(t,sT),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),bI(bI({},oz(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){gR.on(gz,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){gR.removeListener(gz,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,a=n.length;i<a;i++){var o=n[i];if(o.item===t||o.props.key===t.key||e===oW(o.item.type)&&r===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,a=e.width;return g.default.createElement("defs",null,g.default.createElement("clipPath",{id:t},g.default.createElement("rect",{x:r,y:n,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=bS(e,2),n=r[0],i=r[1];return bI(bI({},t),{},bD({},n,i.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=bS(e,2),n=r[0],i=r[1];return bI(bI({},t),{},bD({},n,i.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null==(e=this.state.xAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null==(e=this.state.yAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,a=r.length;i<a;i++){var o=r[i],s=o.props,l=o.item,c=void 0!==l.type.defaultProps?bI(bI({},l.type.defaultProps),l.props):l.props,u=oW(l.type);if("Bar"===u){var f=(s.data||[]).find(function(e){return us(t,e)});if(f)return{graphicalItem:o,payload:f}}else if("RadialBar"===u){var d=(s.data||[]).find(function(e){return vw(t,e)});if(d)return{graphicalItem:o,payload:d}}else if(yu(o,n)||yf(o,n)||yd(o,n)){var h=function(t){var e,r,n,i=t.activeTooltipItem,a=t.graphicalItem,o=t.itemData,s=(yu(a,i)?e="trapezoids":yf(a,i)?e="sectors":yd(a,i)&&(e="points"),e),l=yu(a,i)?null==(r=i.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:yf(a,i)?null==(n=i.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:yd(a,i)?i.payload:{},c=o.filter(function(t,e){var r=(0,pH.default)(l,t),n=a.props[s].filter(function(t){var e;return(yu(a,i)?e=yh:yf(a,i)?e=yp:yd(a,i)&&(e=ym),e)(t,i)}),o=a.props[s].indexOf(n[n.length-1]);return r&&e===o});return o.indexOf(c[c.length-1])}({graphicalItem:o,activeTooltipItem:n,itemData:c.data}),p=void 0===c.activeIndex?h:c.activeIndex;return{graphicalItem:bI(bI({},o),{},{childIndex:p}),payload:yd(o,n)?c.data[h]:o.props.data[h]}}}return null}},{key:"render",value:function(){var t,e,r=this;if(!oZ(this))return null;var n=this.props,i=n.children,a=n.className,o=n.width,s=n.height,l=n.style,c=n.compact,u=n.title,f=n.desc,d=o0(bA(n,bN),!1);if(c)return g.default.createElement(gn,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},g.default.createElement(o8,b_({},d,{width:o,height:s,title:u,desc:f}),this.renderClipPath(),o5(i,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!=(t=this.props.tabIndex)?t:0,d.role=null!=(e=this.props.role)?e:"application",d.onKeyDown=function(t){r.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){r.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return g.default.createElement(gn,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},g.default.createElement("div",b_({className:L("recharts-wrapper",a),style:bI({position:"relative",curs
5or:"default",width:o,height:s},l)},h,{ref:function(t){r.container=t}}),g.default.createElement(o8,b_({},d,{width:o,height:s,title:u,desc:f,style:bF}),this.renderClipPath(),o5(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bR(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(g.Component),bD(A_,"displayName",Ah),bD(A_,"defaultProps",bI({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},Aj)),bD(A_,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,i=t.children,a=t.width,o=t.height,s=t.layout,l=t.stackOffset,c=t.margin,u=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=bZ(t);return bI(bI(bI({},d),{},{updateId:0},Ak(bI(bI({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||a!==e.prevWidth||o!==e.prevHeight||s!==e.prevLayout||l!==e.prevStackOffset||!oL(c,e.prevMargin)){var h=bZ(t),p={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},m=bI(bI({},b$(e,n,s)),{},{updateId:e.updateId+1}),v=bI(bI(bI({},h),p),m);return bI(bI(bI({},v),Ak(bI({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:i})}if(!o1(i,e.prevChildren)){var y,g,b,x,w=oX(i,vd),j=w&&null!=(y=null==(g=w.props)?void 0:g.startIndex)?y:u,N=w&&null!=(b=null==(x=w.props)?void 0:x.endIndex)?b:f,k=(0,ol.default)(n)||j!==u||N!==f?e.updateId+1:e.updateId;return bI(bI({updateId:k},Ak(bI(bI({props:t},e),{},{updateId:k,dataStartIndex:j,dataEndIndex:N}),e)),{},{prevChildren:i,dataStartIndex:j,dataEndIndex:N})}return null}),bD(A_,"renderActiveDot",function(t,e,r){var n;return n=(0,g.isValidElement)(t)?(0,g.cloneElement)(t,e):(0,oc.default)(t)?t(e):g.default.createElement(lS,e),g.default.createElement(st,{className:"recharts-active-dot",key:r},n)}),(AS=(0,g.forwardRef)(function(t,e){return g.default.createElement(A_,b_({},t,{ref:e}))})).displayName=A_.displayName,AS),xH=["x1","y1","x2","y2","key"],xW=["offset"];function x$(t){return(x$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xG(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function xK(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xG(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=x$(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x$(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x$(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xG(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xY(){return(xY=Object.assign.bind()).apply(this,arguments)}function xX(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var xZ=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,s=t.ry;return g.default.createElement("rect",{x:n,y:i,ry:s,width:a,height:o,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xJ(t,e){var r;if(g.default.isValidElement(t))r=g.default.cloneElement(t,e);else if((0,oc.default)(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,s=e.key,l=o0(xX(e,xH),!1),c=(l.offset,xX(l,xW));r=g.default.createElement("line",xY({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function xQ(t){var e=t.x,r=t.width,n=t.horizontal,i=void 0===n||n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(n,a){return xJ(i,xK(xK({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(a),index:a}))});return g.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function x0(t){var e=t.y,r=t.height,n=t.vertical,i=void 0===n||n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(n,a){return xJ(i,xK(xK({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(a),index:a}))});return g.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function x1(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,s=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var c=s.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==c[0]&&c.unshift(0);var u=c.map(function(t,s){var l=c[s+1]?c[s+1]-t:i+o-t;if(l<=0)return null;var u=s%e.length;return g.default.createElement("rect",{key:"react-".concat(s),y:t,x:n,height:l,width:a,stroke:"none",fill:e[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return g.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function x2(t){var e=t.vertical,r=t.verticalFill,n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!r||!r.length)return null;var c=l.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==c[0]&&c.unshift(0);var u=c.map(function(t,e){var l=c[e+1]?c[e+1]-t:i+o-t;if(l<=0)return null;var u=e%r.length;return g.default.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:l,height:s,stroke:"none",fill:r[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return g.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var x5=function(t,e){var r=t.xAxis,n=t.width,i=t.height,a=t.offset;return mI(xc(xK(xK(xK({},xk.defaultProps),r),{}
5,{ticks:mD(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,e)},x3=function(t,e){var r=t.yAxis,n=t.width,i=t.height,a=t.offset;return mI(xc(xK(xK(xK({},xk.defaultProps),r),{},{ticks:mD(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,e)},x4=[],x6=[];function x8(t){var e,r,n,i,a,o,s=gs(),l=gl(),c=(0,g.useContext)(y9),u=xK(xK({},t),{},{stroke:null!=(e=t.stroke)?e:"#ccc",fill:null!=(r=t.fill)?r:"none",horizontal:null==(n=t.horizontal)||n,horizontalFill:null!=(i=t.horizontalFill)?i:x6,vertical:null==(a=t.vertical)||a,verticalFill:null!=(o=t.verticalFill)?o:x4,x:oj(t.x)?t.x:c.left,y:oj(t.y)?t.y:c.top,width:oj(t.width)?t.width:c.width,height:oj(t.height)?t.height:c.height}),f=u.x,d=u.y,h=u.width,p=u.height,m=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues,b=oA((0,g.useContext)(y6)),x=ga();if(!oj(h)||h<=0||!oj(p)||p<=0||!oj(f)||f!==+f||!oj(d)||d!==+d)return null;var w=u.verticalCoordinatesGenerator||x5,j=u.horizontalCoordinatesGenerator||x3,N=u.horizontalPoints,k=u.verticalPoints;if((!N||!N.length)&&(0,oc.default)(j)){var _=v&&v.length,S=j({yAxis:x?xK(xK({},x),{},{ticks:_?v:x.ticks}):void 0,width:s,height:l,offset:c},!!_||m);sI(Array.isArray(S),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(x$(S),"]")),Array.isArray(S)&&(N=S)}if((!k||!k.length)&&(0,oc.default)(w)){var A=y&&y.length,O=w({xAxis:b?xK(xK({},b),{},{ticks:A?y:b.ticks}):void 0,width:s,height:l,offset:c},!!A||m);sI(Array.isArray(O),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(x$(O),"]")),Array.isArray(O)&&(k=O)}return g.default.createElement("g",{className:"recharts-cartesian-grid"},g.default.createElement(xZ,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),g.default.createElement(xQ,xY({},u,{offset:c,horizontalPoints:N,xAxis:b,yAxis:x})),g.default.createElement(x0,xY({},u,{offset:c,verticalPoints:k,xAxis:b,yAxis:x})),g.default.createElement(x1,xY({},u,{horizontalPoints:N})),g.default.createElement(x2,xY({},u,{verticalPoints:k})))}function x7(t){return(x7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function wt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x9(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=x7(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x7(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x7(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x9(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}x8.displayName="CartesianGrid";var wr=(0,g.forwardRef)(function(t,e){var r,n=t.aspect,i=t.initialDimension,a=void 0===i?{width:-1,height:-1}:i,o=t.width,s=void 0===o?"100%":o,l=t.height,c=void 0===l?"100%":l,u=t.minWidth,f=void 0===u?0:u,d=t.minHeight,h=t.maxHeight,p=t.children,m=t.debounce,v=void 0===m?0:m,y=t.id,b=t.className,x=t.onResize,w=t.style,j=(0,g.useRef)(null),N=(0,g.useRef)();N.current=x,(0,g.useImperativeHandle)(e,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var k=function(t){if(Array.isArray(t))return t}(r=(0,g.useState)({containerWidth:a.width,containerHeight:a.height}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(r,2)||function(t,e){if(t){if("string"==typeof t)return we(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,2)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=k[0],S=k[1],A=(0,g.useCallback)(function(t,e){S(function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,g.useEffect)(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;A(n,i),null==(e=N.current)||e.call(N,n,i)};v>0&&(t=(0,oh.default)(t,v,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=j.current.getBoundingClientRect();return A(r.width,r.height),e.observe(j.current),function(){e.disconnect()}},[A,v]);var O=(0,g.useMemo)(function(){var t=_.containerWidth,e=_.containerHeight;if(t<0||e<0)return null;sI(ow(s)||ow(c),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",s,c),sI(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=ow(s)?t:s,i=ow(c)?e:c;n&&n>0&&(r?i=r/n:i&&(r=i*n),h&&i>h&&(i=h)),sI(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,i,s,c,f,d,n);var a=!Array.isArray(p)&&oW(p.type).endsWith("Chart");return g.default.Children.map(p,function(t){return g.default.isValidElement(t)?(0,g.cloneElement)(t,wt({width:r,height:i},a?{style:wt({height:"100%",width:"100%",maxHeight:i,maxWidth:r},t.props.style)}:{})):t})},[n,p,c,h,d,f,_,s]);return g.default.createElement("div",{id:y?"".concat(y):void 0,className:L("recharts-responsive-container",b),style:wt(wt({},void 0===w?{}:w),{},{width:s,height:c,minWidth:f,minHeight:d,maxHeight:h}),ref:j},O)});function wn({data:t}){if(0===t.length)return null;t.map(t=>({year:`Rok ${t.year}`,Nájomné:t.rent,"Výdaje + Hypotéka":-(t.mortgagePayment+t.expenses),"Daňové Zvý
5hodnění":t.taxRefund}));let e=t.map(t=>({year:`Rok ${t.year}`,"Zůstatek Půjčky":t.loanBalance,"Hodnota Nemovitosti":t.propertyValue,"Vlastní Kapitál":t.equity})),r=t.map(t=>({year:`Rok ${t.year}`,"Vlastní Kapitál":t.equity,Vloženo:t.totalInvested}));return t.map(e=>({year:`Rok ${e.year}`,"Daňový Štít":e.taxRefund,Kumulativně:t.slice(0,e.year).reduce((t,e)=>t+e.taxRefund,0)})),(0,y.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,y.jsxs)(eg,{className:"border-accent/20 shadow-md",children:[(0,y.jsx)(eb,{children:(0,y.jsx)(ex,{className:"font-serif text-foreground",children:"Hodnota vs. Zůstatek půjčky"})}),(0,y.jsx)(ew,{className:"h-[340px]",children:(0,y.jsx)(wr,{width:"100%",height:"100%",children:(0,y.jsxs)(xV,{data:e,children:[(0,y.jsxs)("defs",{children:[(0,y.jsxs)("linearGradient",{id:"colorValue",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,y.jsx)("stop",{offset:"5%",stopColor:"#7D8559",stopOpacity:.7}),(0,y.jsx)("stop",{offset:"95%",stopColor:"#7D8559",stopOpacity:.1})]}),(0,y.jsxs)("linearGradient",{id:"colorLoan",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,y.jsx)("stop",{offset:"5%",stopColor:"#A3AFA2",stopOpacity:.5}),(0,y.jsx)("stop",{offset:"95%",stopColor:"#A3AFA2",stopOpacity:.05})]})]}),(0,y.jsx)(x8,{strokeDasharray:"3 3",stroke:"#E5E7EB"}),(0,y.jsx)(xM,{dataKey:"year",tickLine:!1,axisLine:!1,style:{fontSize:"12px"}}),(0,y.jsx)(xU,{tickFormatter:t=>b(t),width:90,tickLine:!1,axisLine:!1,style:{fontSize:"12px"}}),(0,y.jsx)(sT,{formatter:t=>b(Number(t)),contentStyle:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px"}}),(0,y.jsx)(lk,{wrapperStyle:{fontSize:"13px"}}),(0,y.jsx)(xn,{type:"monotone",dataKey:"Hodnota Nemovitosti",stroke:"#7D8559",strokeWidth:2,fill:"url(#colorValue)"}),(0,y.jsx)(xn,{type:"monotone",dataKey:"Zůstatek Půjčky",stroke:"#A3AFA2",strokeWidth:2,fill:"url(#colorLoan)"})]})})})]}),(0,y.jsxs)(eg,{className:"border-accent/20 shadow-md",children:[(0,y.jsx)(eb,{children:(0,y.jsx)(ex,{className:"font-serif text-foreground",children:"Růst vlastního kapitálu"})}),(0,y.jsx)(ew,{className:"h-[340px]",children:(0,y.jsx)(wr,{width:"100%",height:"100%",children:(0,y.jsxs)(xV,{data:r,children:[(0,y.jsxs)("defs",{children:[(0,y.jsxs)("linearGradient",{id:"colorEquity",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,y.jsx)("stop",{offset:"5%",stopColor:"#8B9165",stopOpacity:.8}),(0,y.jsx)("stop",{offset:"95%",stopColor:"#8B9165",stopOpacity:.1})]}),(0,y.jsxs)("linearGradient",{id:"colorInvested",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,y.jsx)("stop",{offset:"5%",stopColor:"#D4A574",stopOpacity:.6}),(0,y.jsx)("stop",{offset:"95%",stopColor:"#D4A574",stopOpacity:.05})]})]}),(0,y.jsx)(x8,{strokeDasharray:"3 3",stroke:"#E5E7EB"}),(0,y.jsx)(xM,{dataKey:"year",tickLine:!1,axisLine:!1,style:{fontSize:"12px"}}),(0,y.jsx)(xU,{tickFormatter:t=>b(t),width:90,tickLine:!1,axisLine:!1,style:{fontSize:"12px"}}),(0,y.jsx)(sT,{formatter:t=>b(Number(t)),contentStyle:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px"}}),(0,y.jsx)(lk,{wrapperStyle:{fontSize:"13px"}}),(0,y.jsx)(xn,{type:"monotone",dataKey:"Vlastní Kapitál",stroke:"#8B9165",strokeWidth:2,fill:"url(#colorEquity)"}),(0,y.jsx)(xn,{type:"monotone",dataKey:"Vloženo",stroke:"#D4A574",strokeWidth:2,fill:"url(#colorInvested)"})]})})})]})]})}var wi="Tabs",[wa,wo]=tF(wi,[aN]),ws=aN(),[wl,wc]=wa(wi),wu=g.forwardRef((t,e)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=t,u=tH(s),[f,d]=tU({prop:n,onChange:i,defaultProp:a??"",caller:wi});return(0,y.jsx)(wl,{scope:r,baseId:eL(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:l,children:(0,y.jsx)(E.div,{dir:u,"data-orientation":o,...c,ref:e})})});wu.displayName=wi;var wf="TabsList",wd=g.forwardRef((t,e)=>{let{__scopeTabs:r,loop:n=!0,...i}=t,a=wc(wf,r),o=ws(r);return(0,y.jsx)(aS,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:(0,y.jsx)(E.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:e})})});wd.displayName=wf;var wh="TabsTrigger",wp=g.forwardRef((t,e)=>{let{__scopeTabs:r,value:n,disabled:i=!1,...a}=t,o=wc(wh,r),s=ws(r),l=wy(o.baseId,n),c=wg(o.baseId,n),u=n===o.value;return(0,y.jsx)(aP,{asChild:!0,...s,focusable:!i,active:u,children:(0,y.jsx)(E.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...a,ref:e,onMouseDown:tz(t.onMouseDown,t=>{i||0!==t.button||!1!==t.ctrlKey?t.preventDefault():o.onValueChange(n)}),onKeyDown:tz(t.onKeyDown,t=>{[" ","Enter"].includes(t.key)&&o.onValueChange(n)}),onFocus:tz(t.onFocus,()=>{let t="manual"!==o.activationMode;u||i||!t||o.onValueChange(n)})})})});wp.displayName=wh;var wm="TabsContent",wv=g.forwardRef((t,e)=>{let{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=t,s=wc(wm,r),l=wy(s.baseId,n),c=wg(s.baseId,n),u=n===s.value,f=g.useRef(u);return g.useEffect(()=>{let t=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,y.jsx)(eY,{present:i||u,children:({present:r})=>(0,y.jsx)(E.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!r,id:c,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:r&&a})})});function wy(t,e){return`${t}-trigger-${e}`}function wg(t,e){return`${t}-content-${e}`}wv.displayName=wm;let wb=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(wd,{ref:r,className:tM("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...e}));wb.displayName=wd.displayName;let wx=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(wp,{ref:r,className:tM("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...e}));wx.displayName=wp.displayName;let ww=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(wv,{ref:r,className:tM("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));ww.displayName=wv.displayName;let wj=nu("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);var wN=t.i(15833),wk=t.i(10160),w_={},wS=function(t,e,r,n,i){var a=new Worker(w_[e]||(w_[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,r=e.$e$;if(r){var n=Error(r[0]);n.code=r[1],n.stack=r[2],i(n,null)}else i(null,e)},a.postMessage(r,n),a},wA=Uint8Array,wO=Uint16Array,wP=Int32Array,wE=new wA([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]),wC=new wA([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]),wL=new wA([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wM=function(t,e){for(var r=new wO(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];for(var i=new wP(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},wT=wM(wE,2),wI=wT.b,wD=wT.r;wI[28]=258,wD[258]=28;for(var wR=wM(wC,0),wz=wR.b,wF=wR.r,wB=new wO(32768),wq=0;wq<32768;++wq){var wU=(43690&wq)>>1|(21845&wq)<<1;wU=(61680&(wU=(52428&wU)>>2|(13107&wU)<<2))>>4|(3855&wU)<<4,wB[wq]=((65280&wU)>>8|(255&wU)<<8)>>1}for(var wV=function(t,e,r){for(var n,i=t.length,a=0,o=new wO(e);a<i;++a)t[a]&&++o[t[a]-1];var s=new wO(e);for(a=1;a<e;++a)s[a]=s[a-1]+o[a-1]<<1;if(r){n=new wO(1<<e);var l=15-e;for(a=0;a<i;++a)if(t[a])for(var c=a<<4|t[a],u=e-t[a],f=s[t[a]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)n[wB[f]>>l]=c}else for(a=0,n=new wO(i);a<i;++a)t[a]&&(n[a]=wB[s[t[a]-1]++]>>15-t[a]);return n},wH=new wA(288),wq=0;wq<144;++wq)wH[wq]=8;for(var wq=144;wq<256;++wq)wH[wq]=9;for(var wq=256;wq<280;++wq)wH[wq]=7;for(var wq=280;wq<288;++wq)wH[wq]=8;for(var wW=new wA(32),wq=0;wq<32;++wq)wW[wq]=5;var w$=wV(wH,9,0),wG=wV(wH,9,1),wK=wV(wW,5,0),wY=wV(wW,5,1),wX=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},wZ=function(t,e,r){var n=e/8|0;return(t[n]|t[n+1]<<8)>>(7&e)&r},wJ=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},wQ=function(t){return(t+7)/8|0},w0=function(t,e,r){return(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length),new wA(t.subarray(e,r))}
5,w1=["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"],w2=function(t,e,r){var n=Error(e||w1[t]);if(n.code=t,Error.captureStackTrace&&Error.captureStackTrace(n,w2),!r)throw n;return n},w5=function(t,e,r,n){var i=t.length,a=n?n.length:0;if(!i||e.f&&!e.l)return r||new wA(0);var o=!r,s=o||2!=e.i,l=e.i;o&&(r=new wA(3*i));var c=function(t){var e=r.length;if(t>e){var n=new wA(Math.max(2*e,t));n.set(r),r=n}},u=e.f||0,f=e.p||0,d=e.b||0,h=e.l,p=e.d,m=e.m,v=e.n,y=8*i;do{if(!h){u=wZ(t,f,1);var g=wZ(t,f+1,3);if(f+=3,g)if(1==g)h=wG,p=wY,m=9,v=5;else if(2==g){var b=wZ(t,f,31)+257,x=wZ(t,f+10,15)+4,w=b+wZ(t,f+5,31)+1;f+=14;for(var j=new wA(w),N=new wA(19),k=0;k<x;++k)N[wL[k]]=wZ(t,f+3*k,7);f+=3*x;for(var _=wX(N),S=(1<<_)-1,A=wV(N,_,1),k=0;k<w;){var O=A[wZ(t,f,S)];f+=15&O;var P=O>>4;if(P<16)j[k++]=P;else{var E=0,C=0;for(16==P?(C=3+wZ(t,f,3),f+=2,E=j[k-1]):17==P?(C=3+wZ(t,f,7),f+=3):18==P&&(C=11+wZ(t,f,127),f+=7);C--;)j[k++]=E}}var L=j.subarray(0,b),M=j.subarray(b);m=wX(L),v=wX(M),h=wV(L,m,1),p=wV(M,v,1)}else w2(1);else{var P=wQ(f)+4,T=t[P-4]|t[P-3]<<8,I=P+T;if(I>i){l&&w2(0);break}s&&c(d+T),r.set(t.subarray(P,I),d),e.b=d+=T,e.p=f=8*I,e.f=u;continue}if(f>y){l&&w2(0);break}}s&&c(d+131072);for(var D=(1<<m)-1,R=(1<<v)-1,z=f;;z=f){var E=h[wJ(t,f)&D],F=E>>4;if((f+=15&E)>y){l&&w2(0);break}if(E||w2(2),F<256)r[d++]=F;else if(256==F){z=f,h=null;break}else{var B=F-254;if(F>264){var k=F-257,q=wE[k];B=wZ(t,f,(1<<q)-1)+wI[k],f+=q}var U=p[wJ(t,f)&R],V=U>>4;U||w2(3),f+=15&U;var M=wz[V];if(V>3){var q=wC[V];M+=wJ(t,f)&(1<<q)-1,f+=q}if(f>y){l&&w2(0);break}s&&c(d+131072);var H=d+B;if(d<M){var W=a-M,$=Math.min(M,H);for(W+d<0&&w2(3);d<$;++d)r[d]=n[W+d]}for(;d<H;++d)r[d]=r[d-M]}}e.l=h,e.p=z,e.b=d,e.f=u,h&&(u=1,e.m=m,e.d=p,e.n=v)}while(!u)return d!=r.length&&o?w0(r,0,d):r.subarray(0,d)},w3=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8},w4=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8,t[n+2]|=r>>16},w6=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var i=r.length,a=r.slice();if(!i)return{t:jn,l:0};if(1==i){var o=new wA(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(t,e){return t.f-e.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[f].f?c++:f++],l=r[c!=u&&r[c].f<r[f].f?c++:f++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var h=new wO(d+1),p=w8(r[u-1],h,0);if(p>e){var n=0,m=0,v=p-e,y=1<<v;for(a.sort(function(t,e){return h[e.s]-h[t.s]||t.f-e.f});n<i;++n){var g=a[n].s;if(h[g]>e)m+=y-(1<<p-h[g]),h[g]=e;else break}for(m>>=v;m>0;){var b=a[n].s;h[b]<e?m-=1<<e-h[b]++-1:++n}for(;n>=0&&m;--n){var x=a[n].s;h[x]==e&&(--h[x],++m)}p=e}return{t:new wA(h),l:p}},w8=function(t,e,r){return -1==t.s?Math.max(w8(t.l,e,r+1),w8(t.r,e,r+1)):e[t.s]=r},w7=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new wO(++e),n=0,i=t[0],a=1,o=function(t){r[n++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=t[s]}return{c:r.subarray(0,n),n:e}},w9=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},jt=function(t,e,r){var n=r.length,i=wQ(e+2);t[i]=255&n,t[i+1]=n>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<n;++a)t[i+a+4]=r[a];return(i+4+n)*8},je=function(t,e,r,n,i,a,o,s,l,c,u){w3(e,u++,r),++i[256];for(var f,d,h,p,m=w6(i,15),v=m.t,y=m.l,g=w6(a,15),b=g.t,x=g.l,w=w7(v),j=w.c,N=w.n,k=w7(b),_=k.c,S=k.n,A=new wO(19),O=0;O<j.length;++O)++A[31&j[O]];for(var O=0;O<_.length;++O)++A[31&_[O]];for(var P=w6(A,7),E=P.t,C=P.l,L=19;L>4&&!E[wL[L-1]];--L);var M=c+5<<3,T=w9(i,wH)+w9(a,wW)+o,I=w9(i,v)+w9(a,b)+o+14+3*L+w9(A,E)+2*A[16]+3*A[17]+7*A[18];if(l>=0&&M<=T&&M<=I)return jt(e,u,t.subarray(l,l+c));if(w3(e,u,1+(I<T)),u+=2,I<T){f=wV(v,y,0),d=v,h=wV(b,x,0),p=b;var D=wV(E,C,0);w3(e,u,N-257),w3(e,u+5,S-1),w3(e,u+10,L-4),u+=14;for(var O=0;O<L;++O)w3(e,u+3*O,E[wL[O]]);u+=3*L;for(var R=[j,_],z=0;z<2;++z)for(var F=R[z],O=0;O<F.length;++O){var B=31&F[O];w3(e,u,D[B]),u+=E[B],B>15&&(w3(e,u,F[O]>>5&127),u+=F[O]>>12)}}else f=w$,d=wH,h=wK,p=wW;for(var O=0;O<s;++O){var q=n[O];if(q>255){var B=q>>18&31;w4(e,u,f[B+257]),u+=d[B+257],B>7&&(w3(e,u,q>>23&31),u+=wE[B]);var U=31&q;w4(e,u,h[U]),u+=p[U],U>3&&(w4(e,u,q>>5&8191),u+=wC[U])}else w4(e,u,f[q]),u+=d[q]}return w4(e,u,f[256]),u+d[256]},jr=new wP([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jn=new wA(0),ji=function(t,e,r,n,i,a){var o=a.z||t.length,s=new wA(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),c=a.l,u=7&(a.r||0);if(e){u&&(l[0]=a.r>>3);for(var f=jr[e-1],d=f>>13,h=8191&f,p=(1<<r)-1,m=a.p||new wO(32768),v=a.h||new wO(p+1),y=Math.ceil(r/3),g=2*y,b=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<g)&p},x=new wP(25e3),w=new wO(288),j=new wO(32),N=0,k=0,_=a.i||0,S=0,A=a.w||0,O=0;
5_+2<o;++_){var P=b(_),E=32767&_,C=v[P];if(m[E]=C,v[P]=E,A<=_){var L=o-_;if((N>7e3||S>24576)&&(L>423||!c)){u=je(t,l,0,x,w,j,k,S,O,_-O,u),S=N=k=0,O=_;for(var M=0;M<286;++M)w[M]=0;for(var M=0;M<30;++M)j[M]=0}var T=2,I=0,D=h,R=E-C&32767;if(L>2&&P==b(_-R))for(var z=Math.min(d,L)-1,F=Math.min(32767,_),B=Math.min(258,L);R<=F&&--D&&E!=C;){if(t[_+T]==t[_+T-R]){for(var q=0;q<B&&t[_+q]==t[_+q-R];++q);if(q>T){if(T=q,I=R,q>z)break;for(var U=Math.min(R,q-2),V=0,M=0;M<U;++M){var H=_-R+M&32767,W=m[H],$=H-W&32767;$>V&&(V=$,C=H)}}}C=m[E=C],R+=E-C&32767}if(I){x[S++]=0x10000000|wD[T]<<18|wF[I];var G=31&wD[T],K=31&wF[I];k+=wE[G]+wC[K],++w[257+G],++j[K],A=_+T,++N}else x[S++]=t[_],++w[t[_]]}}for(_=Math.max(_,A);_<o;++_)x[S++]=t[_],++w[t[_]];u=je(t,l,c,x,w,j,k,S,O,_-O,u),c||(a.r=7&u|l[u/8|0]<<3,u-=7,a.h=v,a.p=m,a.i=_,a.w=A)}else{for(var _=a.w||0;_<o+c;_+=65535){var Y=_+65535;Y>=o&&(l[u/8|0]=c,Y=o),u=jt(l,u+1,t.subarray(_,Y))}a.i=o}return w0(s,0,n+wQ(u)+i)},ja=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,n=9;--n;)r=(1&r&&-0x12477ce0)^r>>>1;t[e]=r}return t}(),jo=function(){var t=-1;return{p:function(e){for(var r=t,n=0;n<e.length;++n)r=ja[255&r^e[n]]^r>>>8;t=r},d:function(){return~t}}},js=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=0|r.length,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=n+=r[o];n=(65535&n)+15*(n>>16),i=(65535&i)+15*(i>>16)}t=n,e=i},d:function(){return t%=65521,e%=65521,(255&t)<<24|(65280&t)<<8|(255&e)<<8|e>>8}}},jl=function(t,e,r,n,i){if(!i&&(i={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),o=new wA(a.length+t.length);o.set(a),o.set(t,a.length),t=o,i.w=a.length}return ji(t,null==e.level?6:e.level,null==e.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,r,n,i)},jc=function(t,e){var r={};for(var n in t)r[n]=t[n];for(var n in e)r[n]=e[n];return r},ju=function(t,e,r){for(var n=t(),i=t.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<n.length;++o){var s=n[o],l=a[o];if("function"==typeof s){e+=";"+l+"=";var c=s.toString();if(s.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;e+=c.slice(u,c.indexOf("(",u))}else for(var f in e+=c,s.prototype)e+=";"+l+".prototype."+f+"="+s.prototype[f].toString();else e+=c}else r[l]=s}return e},jf=[],jd=function(t){var e=[];for(var r in t)t[r].buffer&&e.push((t[r]=new t[r].constructor(t[r])).buffer);return e},jh=function(t,e,r,n){if(!jf[r]){for(var i="",a={},o=t.length-1,s=0;s<o;++s)i=ju(t[s],i,a);jf[r]={c:ju(t[o],i,a),e:a}}var l=jc({},jf[r].e);return wS(jf[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",r,l,jd(l),n)},jp=function(){return[wA,wO,wP,wE,wC,wL,wI,wz,wG,wY,wB,w1,wV,wX,wZ,wJ,wQ,w0,w2,w5,jz,jg,jb]},jm=function(){return[wA,wO,wP,wE,wC,wL,wD,wF,w$,wH,wK,wW,wB,jr,jn,wV,w3,w4,w6,w8,w7,w9,jt,je,wQ,w0,ji,jl,jI,jg]},jv=function(){return[jA,jO]},jy=function(){return[jC]},jg=function(t){return postMessage(t,[t.buffer])},jb=function(t){return t&&{out:t.size&&new wA(t.size),dictionary:t.dictionary}},jx=function(t){return t.ondata=function(t,e){return postMessage([t,e],[t.buffer])},function(e){e.data.length?(t.push(e.data[0],e.data[1]),postMessage([e.data[0].length])):t.flush()}},jw=function(t,e,r,n,i,a,o){var s,l=jh(t,n,i,function(t,r){t?(l.terminate(),e.ondata.call(e,t)):Array.isArray(r)?1==r.length?(e.queuedSize-=r[0],e.ondrain&&e.ondrain(r[0])):(r[1]&&l.terminate(),e.ondata.call(e,t,r[0],r[1])):o(r)});l.postMessage(r),e.queuedSize=0,e.push=function(t,r){e.ondata||w2(5),s&&e.ondata(w2(4,0,1),null,!!r),e.queuedSize+=t.length,l.postMessage([t,s=r],[t.buffer])},e.terminate=function(){l.terminate()},a&&(e.flush=function(){l.postMessage([])})},jj=function(t,e){return t[e]|t[e+1]<<8},jN=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},jk=function(t,e){return jN(t,e)+0x100000000*jN(t,e+4)},j_=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},jS=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:2*(9==e.level),t[9]=3,0!=e.mtime&&j_(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var n=0;n<=r.length;++n)t[n+10]=r.charCodeAt(n)}},jA=function(t){(31!=t[0]||139!=t[1]||8!=t[2])&&w2(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=(t[10]|t[11]<<8)+2);for(var n=(e>>3&1)+(e>>4&1);n>0;n-=!t[r++]);return r+(2&e)},jO=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},jP=function(t){return 10+(t.filename?t.filename.length+1:0)},jE=function(t,e){var r=e.level;if(t[0]=120,t[1]=(0==r?0:r<6?1:9==r?3:2)<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var n=js();n.p(e.dictionary),j_(t,2,n.d())}},jC=function(t,e){return((15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&w2(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&w2(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function jL(t,e){return"function"==typeof t&&(e=t,t={}),this.ondata=e,t}
vendor: 5,594 bytes, line 5
5var jM=function(){function t(t,e){if("function"==typeof t&&(e=t,t={}),this.ondata=e,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new wA(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(t,e){this.ondata(jl(t,this.o,0,0,this.s),e)},t.prototype.push=function(t,e){this.ondata||w2(5),this.s.l&&w2(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var n=new wA(-32768&r);n.set(this.b.subarray(0,this.s.z)),this.b=n}var i=this.b.length-this.s.z;this.b.set(t.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(i),32768),this.s.z=t.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&e,(this.s.z>this.s.w+8191||e)&&(this.p(this.b,e||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||w2(5),this.s.l&&w2(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t}(),jT=function(t,e){jw([jm,function(){return[jx,jM]}],this,jL.call(this,t,e),function(t){onmessage=jx(new jM(t.data))},6,1)};function jI(t,e){return jl(t,e||{},0,0)}var jD=function(){function t(t,e){"function"==typeof t&&(e=t,t={}),this.ondata=e;var r=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new wA(32768),this.p=new wA(0),r&&this.o.set(r)}return t.prototype.e=function(t){if(this.ondata||w2(5),this.d&&w2(4),this.p.length){if(t.length){var e=new wA(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length),this.p=e}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var e=this.s.b,r=w5(this.p,this.s,this.o);this.ondata(w0(r,e,this.s.b),this.d),this.o=w0(r,this.s.b-32768),this.s.b=this.o.length,this.p=w0(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}(),jR=function(t,e){jw([jp,function(){return[jx,jD]}],this,jL.call(this,t,e),function(t){onmessage=jx(new jD(t.data))},7,0)};function jz(t,e){return w5(t,{i:2},e&&e.out,e&&e.dictionary)}(function(){function t(t,e){this.c=jo(),this.l=0,this.v=1,jM.call(this,t,e)}t.prototype.push=function(t,e){this.c.p(t),this.l+=t.length,jM.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){var r=jl(t,this.o,this.v&&jP(this.o),e&&8,this.s);this.v&&(jS(r,this.o),this.v=0),e&&(j_(r,r.length-8,this.c.d()),j_(r,r.length-4,this.l)),this.ondata(r,e)},t.prototype.flush=function(){jM.prototype.flush.call(this)}})();var jF=function(){function t(t,e){this.v=1,this.r=0,jD.call(this,t,e)}return t.prototype.push=function(t,e){if(jD.prototype.e.call(this,t),this.r+=t.length,this.v){var r=this.p.subarray(this.v-1),n=r.length>3?jA(r):4;if(n>r.length){if(!e)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(n),this.v=0}jD.prototype.c.call(this,e),!this.s.f||this.s.l||e||(this.v=wQ(this.s.p)+9,this.s={i:0},this.o=new wA(0),this.push(new wA(0),e))},t}(),jB=function(t,e){var r=this;jw([jp,jv,function(){return[jx,jD,jF]}],this,jL.call(this,t,e),function(t){var e=new jF(t.data);e.onmember=function(t){return postMessage(t)},onmessage=jx(e)},9,0,function(t){return r.onmember&&r.onmember(t)})};function jq(t,e){e||(e={});var r=js();r.p(t);var n=jl(t,e,e.dictionary?6:2,4);return jE(n,e),j_(n,n.length-4,r.d()),n}(function(){function t(t,e){this.c=js(),this.v=1,jM.call(this,t,e)}t.prototype.push=function(t,e){this.c.p(t),jM.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){var r=jl(t,this.o,this.v&&(this.o.dictionary?6:2),e&&4,this.s);this.v&&(jE(r,this.o),this.v=0),e&&j_(r,r.length-4,this.c.d()),this.ondata(r,e)},t.prototype.flush=function(){jM.prototype.flush.call(this)}})();var jU=function(){function t(t,e){jD.call(this,t,e),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,e){if(jD.prototype.e.call(this,t),this.v){if(this.p.length<6&&!e)return;this.p=this.p.subarray(jC(this.p,this.v-1)),this.v=0}e&&(this.p.length<4&&w2(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),jD.prototype.c.call(this,e)},t}(),jV=function(t,e){jw([jp,jy,function(){return[jx,jD,jU]}],this,jL.call(this,t,e),function(t){onmessage=jx(new jU(t.data))},11,0)},jH=function(){function t(t,e){this.o=jL.call(this,t,e)||{},this.G=jF,this.I=jD,this.Z=jU}return t.prototype.i=function(){var t=this;this.s.ondata=function(e,r){t.ondata(e,r)}},t.prototype.push=function(t,e){if(this.ondata||w2(5),this.s)this.s.push(t,e);else{if(this.p&&this.p.length){var r=new wA(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,e),this.p=null)}},t}();function jW(t,e){jH.call(this,t,e),this.queuedSize=0,this.G=jB,this.I=jR,this.Z=jV}jW.prototype.i=function(){var t=this;this.s.ondata=function(e,r,n){t.ondata(e,r,n)},this.s.ondrain=function(e){t.queuedSize-=e,t.ondrain&&t.ondrain(e)}},jW.prototype.push=function(t,e){this.queuedSize+=t.length,jH.prototype.push.call(this,t,e)};var j$="undefined"!=typeof TextEncoder&&new TextEncoder,jG="undefined"!=typeof TextDecoder&&new TextDecoder,jK=0;try{jG.decode(jn,{stream:!0}),jK=1}catch(t){}var jY=function(t){for(var e="",r=0;;){var n=t[r++],i=(n>127)+(n>223)+(n>239);if(r+i>t.length)return{s:e,r:w0(t,r-1)};i?3==i?e+=String.fromCharCode(55296|(n=((15&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536)>>10,56320|1023&n):1&i?e+=String.fromCharCode((31&n)<<6|63&t[r++]):e+=String.fromCharCode((1
55&n)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(n)}};function jX(t,e){if(e){for(var r=new wA(t.length),n=0;n<t.length;++n)r[n]=t.charCodeAt(n);return r}if(j$)return j$.encode(t);for(var i=t.length,a=new wA(t.length+(t.length>>1)),o=0,s=function(t){a[o++]=t},n=0;n<i;++n){if(o+5>a.length){var l=new wA(o+8+(i-n<<1));l.set(a),a=l}var c=t.charCodeAt(n);c<128||e?s(c):(c<2048?s(192|c>>6):(c>55295&&c<57344?(s(240|(c=65536+(1047552&c)|1023&t.charCodeAt(++n))>>18),s(128|c>>12&63)):s(224|c>>12),s(128|c>>6&63)),s(128|63&c))}return w0(a,0,o)}(function(t){this.ondata=t,jK?this.t=new TextDecoder:this.p=jn}).prototype.push=function(t,e){if(this.ondata||w2(5),e=!!e,this.t){this.ondata(this.t.decode(t,{stream:!0}),e),e&&(this.t.decode().length&&w2(8),this.t=null);return}this.p||w2(4);var r=new wA(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length);var n=jY(r),i=n.s,a=n.r;e?(a.length&&w2(8),this.p=null):this.p=a,this.ondata(i,e)},(function(t){this.ondata=t}).prototype.push=function(t,e){this.ondata||w2(5),this.d&&w2(4),this.ondata(jX(t),this.d=e||!1)};var jZ=function(t){return 1==t?3:t<6?2:+(9==t)},jJ=function(t,e){for(;1!=jj(t,e);e+=4+jj(t,e+2));return[jk(t,e+12),jk(t,e+4),jk(t,e+20)]},jQ=function(t){var e=0;if(t)for(var r in t){var n=t[r].length;n>65535&&w2(9),e+=n+4}return e},j0=function(t,e,r,n,i,a,o,s){var l=n.length,c=r.extra,u=s&&s.length,f=jQ(c);j_(t,e,null!=o?0x2014b50:0x4034b50),e+=4,null!=o&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(a<0&&8),t[e++]=i&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var d=new Date(null==r.mtime?Date.now():r.mtime),h=d.getFullYear()-1980;if((h<0||h>119)&&w2(10),j_(t,e,h<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1),e+=4,-1!=a&&(j_(t,e,r.crc),j_(t,e+4,a<0?-a-2:a),j_(t,e+8,r.size)),j_(t,e+12,l),j_(t,e+14,f),e+=16,null!=o&&(j_(t,e,u),j_(t,e+6,r.attrs),j_(t,e+10,o),e+=14),t.set(n,e),e+=l,f)for(var p in c){var m=c[p],v=m.length;j_(t,e,+p),j_(t,e+2,v),t.set(m,e+4),e+=4+v}return u&&(t.set(s,e),e+=u),e},j1=function(t,e,r,n,i){j_(t,e,0x6054b50),j_(t,e+8,r),j_(t,e+10,r),j_(t,e+12,n),j_(t,e+16,i)},j2=function(){function t(t){this.filename=t,this.c=jo(),this.size=0,this.compression=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||w2(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}();function j5(t,e){var r=this;e||(e={}),j2.call(this,t),this.d=new jM(e,function(t,e){r.ondata(null,t,e)}),this.compression=8,this.flag=jZ(e.level)}function j3(t,e){var r=this;e||(e={}),j2.call(this,t),this.d=new jT(e,function(t,e,n){r.ondata(t,e,n)}),this.compression=8,this.flag=jZ(e.level),this.terminate=this.d.terminate}function j4(t){this.ondata=t,this.u=[],this.d=1}j5.prototype.process=function(t,e){try{this.d.push(t,e)}catch(t){this.ondata(t,null,e)}},j5.prototype.push=function(t,e){j2.prototype.push.call(this,t,e)},j3.prototype.process=function(t,e){this.d.push(t,e)},j3.prototype.push=function(t,e){j2.prototype.push.call(this,t,e)},j4.prototype.add=function(t){var e=this;if(this.ondata||w2(5),2&this.d)this.ondata(w2(4+(1&this.d)*8,0,1),null,!1);else{var r=jX(t.filename),n=r.length,i=t.comment,a=i&&jX(i),o=n!=t.filename.length||a&&i.length!=a.length,s=n+jQ(t.extra)+30;n>65535&&this.ondata(w2(11,0,1),null,!1);var l=new wA(s);j0(l,0,t,r,o,-1);var c=[l],u=function(){for(var t=0,r=c;t<r.length;t++){var n=r[t];e.ondata(null,n,!1)}c=[]},f=this.d;this.d=0;var d=this.u.length,h=jc(t,{f:r,u:o,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(u(),f){var t=e.u[d+1];t?t.r():e.d=1}f=1}}),p=0;t.ondata=function(r,n,i){if(r)e.ondata(r,n,i),e.terminate();else if(p+=n.length,c.push(n),i){var a=new wA(16);j_(a,0,0x8074b50),j_(a,4,t.crc),j_(a,8,p),j_(a,12,t.size),c.push(a),h.c=p,h.b=s+p+16,h.crc=t.crc,h.size=t.size,f&&h.r(),f=1}else f&&u()},this.u.push(h)}},j4.prototype.end=function(){var t=this;2&this.d?this.ondata(w2(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},j4.prototype.e=function(){for(var t=0,e=0,r=0,n=0,i=this.u;n<i.length;n++){var a=i[n];r+=46+a.f.length+jQ(a.extra)+(a.o?a.o.length:0)}for(var o=new wA(r+22),s=0,l=this.u;s<l.length;s++){var a=l[s];j0(o,t,a,a.f,a.u,-a.c-2,e,a.o),t+=46+a.f.length+jQ(a.extra)+(a.o?a.o.length:0),e+=a.b}j1(o,t,this.u.length,r,e),this.ondata(null,o,!0),this.d=2},j4.prototype.terminate=function(){for(var t=0,e=this.u;t<e.length;t++)e[t].t();this.d=2};var j6=function(){function t(){}return t.prototype.push=function(t,e){this.ondata(null,t,e)},t.compression=0,t}();function j8(){var t=this;this.i=new jD(function(e,r){t.ondata(null,e,r)})}function j7(t,e){var r=this;e<32e4?this.i=new jD(function(t,e){r.ondata(null,t,e)}):(this.i=new jR(function(t,e,n){r.ondata(t,e,n)}),this.terminate=this.i.terminate)}function j9(t){this.onfile=t,this.k=[],this.o={0:j6},this.p=jn}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
5finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Nt(t,e);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(t,e):void 0}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(t,e="utf8"){return new TextDecoder(e).decode(t)}j8.prototype.push=function(t,e){try{this.i.push(t,e)}catch(t){this.ondata(t,null,e)}},j8.compression=8,j7.prototype.push=function(t,e){this.i.terminate&&(t=w0(t,0)),this.i.push(t,e)},j7.compression=8,j9.prototype.push=function(t,e){var r=this;if(this.onfile||w2(5),this.p||w2(4),this.c>0){var n=Math.min(this.c,t.length),i=t.subarray(0,n);if(this.c-=n,this.d?this.d.push(i,!this.c):this.k[0].push(i),(t=t.subarray(n)).length)return this.push(t,e)}else{var a=0,o=0,s=void 0,l=void 0;this.p.length?t.length?((l=new wA(this.p.length+t.length)).set(this.p),l.set(t,this.p.length)):l=this.p:l=t;for(var c=l.length,u=this.c,f=u&&this.d,d=this;o<c-4&&"break"!==function(){var t=jN(l,o);if(0x4034b50==t){a=1,s=o,d.d=null,d.c=0;var e=jj(l,o+6),n=jj(l,o+8),i=8&e,f=jj(l,o+26),h=jj(l,o+28);if(c>o+30+f+h){var p,m,v=[];d.k.unshift(v),a=2;var y=jN(l,o+18),g=jN(l,o+22),b=function(t,e){if(e){for(var r="",n=0;n<t.length;n+=16384)r+=String.fromCharCode.apply(null,t.subarray(n,n+16384));return r}if(jG)return jG.decode(t);var i=jY(t),a=i.s,r=i.r;return r.length&&w2(8),a}(l.subarray(o+30,o+=30+f),!(2048&e));0xffffffff==y?(y=(p=i?[-2]:jJ(l,o))[0],g=p[1]):i&&(y=-1),o+=h,d.c=y;var x={name:b,compression:n,start:function(){if(x.ondata||w2(5),y){var t=r.o[n];t||x.ondata(w2(14,"unknown compression type "+n,1),null,!1),(m=y<0?new t(b):new t(b,y,g)).ondata=function(t,e,r){x.ondata(t,e,r)};for(var e=0;e<v.length;e++){var i=v[e];m.push(i,!1)}r.k[0]==v&&r.c?r.d=m:m.push(jn,!0)}else x.ondata(null,jn,!0)},terminate:function(){m&&m.terminate&&m.terminate()}};y>=0&&(x.size=y,x.originalSize=g),d.onfile(x)}return"break"}if(u){if(0x8074b50==t)return s=o+=12+(-2==u&&8),a=3,d.c=0,"break";else if(0x2014b50==t)return s=o-=4,a=3,d.c=0,"break"}}();++o);if(this.p=jn,u<0){var h=a?l.subarray(0,s-12-(-2==u&&8)-(0x8074b50==jN(l,s-16)&&4)):l.subarray(0,o);f?f.push(h,!!a):this.k[+(2==a)].push(h)}if(2&a)return this.push(l.subarray(o),e);this.p=l.subarray(o)}e&&(this.c&&w2(13),this.p=null)},j9.prototype.register=function(t){this.o[t.compression]=t},"function"==typeof queueMicrotask&&queueMicrotask;let Nn=new TextEncoder,Ni=!((new Uint32Array((h=new Uint8Array(4)).buffer)[0]=1)&h[0]),Na={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 No{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let r=!1;"number"==typeof t?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const n=e.offset?e.offset>>>0:0,i=t.byteLength-n;let a=n;(ArrayBuffer.isView(t)||t instanceof No)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+n),t=t.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let t=this._marks.pop();if(void 0===t)throw Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){let e=2*(this.offset+t),r=new Uint8Array(e);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=e,this.byteLength=e,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(t=1){return this.readArray(t,"uint8")}readArray(t,e){let r=Na[e].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===Ni&&"uint8"!==e&&"int8"!==e){let t=new Uint8Array(this.buffer.slice(n,n+r));t.reverse();let i=new Na[e](t.buffer);return this.offset+=r,i.reverse(),i}let a=new Na[e](i);return this.offset+=r,a}readInt16(){let t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){let t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){let t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){let t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){let t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){let t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){let t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){let t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return Nr(this.readBytes(t))}decodeText(t=1,e="utf8"){return Nr(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(255*!!t),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(Nn.encode(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Ns(t){let e=t.length;for(;--e>=0;)t[e]=0}let Nl=573,Nc=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]),Nu=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]),Nf=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Nd=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nh=Array(576);Ns(Nh);let Np=Array(60);Ns(Np);let Nm=Array(512);Ns(Nm);let Nv=Array(256);Ns(Nv);let Ny=Array(29);Ns(Ny);let Ng=Array(30);function Nb(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function Nx(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}Ns(Ng);let Nw=t=>t<256?Nm[t]:Nm[256+(t>>
5>7)],Nj=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},NN=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Nj(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},Nk=(t,e,r)=>{NN(t,r[2*e],r[2*e+1])},N_=(t,e)=>{let r=0;do r|=1&t,t>>>=1,r<<=1;while(--e>0)return r>>>1},NS=(t,e,r)=>{let n,i,a=Array(16),o=0;for(n=1;n<=15;n++)o=o+r[n-1]<<1,a[n]=o;for(i=0;i<=e;i++){let e=t[2*i+1];0!==e&&(t[2*i]=N_(a[e]++,e))}},NA=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},NO=t=>{t.bi_valid>8?Nj(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},NP=(t,e,r,n)=>{let i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]},NE=(t,e,r)=>{let n=t.heap[r],i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&NP(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!NP(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},NC=(t,e,r)=>{let n,i,a,o,s=0;if(0!==t.sym_next)do n=(255&t.pending_buf[t.sym_buf+s++])+((255&t.pending_buf[t.sym_buf+s++])<<8),i=t.pending_buf[t.sym_buf+s++],0===n?Nk(t,i,e):(Nk(t,(a=Nv[i])+256+1,e),0!==(o=Nc[a])&&NN(t,i-=Ny[a],o),Nk(t,a=Nw(--n),r),0!==(o=Nu[a])&&NN(t,n-=Ng[a],o));while(s<t.sym_next)Nk(t,256,e)},NL=(t,e)=>{let r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(r=0,t.heap_len=0,t.heap_max=Nl;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)NE(t,a,r);i=l;do r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],NE(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,NE(t,a,1);while(t.heap_len>=2)t.heap[--t.heap_max]=t.heap[1],((t,e)=>{let r,n,i,a,o,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(a=0;a<=15;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<Nl;r++)(a=l[2*l[2*(n=t.heap[r])+1]+1]+1)>p&&(a=p,m++),l[2*n+1]=a,!(n>c)&&(t.bl_count[a]++,o=0,n>=h&&(o=d[n-h]),s=l[2*n],t.opt_len+=s*(a+o),f&&(t.static_len+=s*(u[2*n+1]+o)));if(0!==m){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,m-=2}while(m>0)for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)!((i=t.heap[--r])>c)&&(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}})(t,e),NS(a,c,t.bl_count)},NM=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)i=o,o=e[(n+1)*2+1],++s<l&&i===o||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))},NT=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),n=0;n<=r;n++)if(i=o,o=e[(n+1)*2+1],!(++s<l)||i!==o){if(s<c)do Nk(t,i,t.bl_tree);while(0!=--s)else 0!==i?(i!==a&&(Nk(t,i,t.bl_tree),s--),Nk(t,16,t.bl_tree),NN(t,s-3,2)):s<=10?(Nk(t,17,t.bl_tree),NN(t,s-3,3)):(Nk(t,18,t.bl_tree),NN(t,s-11,7));s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4)}},NI=!1,ND=(t,e,r,n)=>{NN(t,0+ +!!n,3),NO(t),Nj(t,r),Nj(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var NR={_tr_init:t=>{NI||((()=>{let t,i,a,o,s,l=Array(16);for(o=0,a=0;o<28;o++)for(t=0,Ny[o]=a;t<1<<Nc[o];t++)Nv[a++]=o;for(Nv[a-1]=o,s=0,o=0;o<16;o++)for(t=0,Ng[o]=s;t<1<<Nu[o];t++)Nm[s++]=o;for(s>>=7;o<30;o++)for(t=0,Ng[o]=s<<7;t<1<<Nu[o]-7;t++)Nm[256+s++]=o;for(i=0;i<=15;i++)l[i]=0;for(t=0;t<=143;)Nh[2*t+1]=8,t++,l[8]++;for(;t<=255;)Nh[2*t+1]=9,t++,l[9]++;for(;t<=279;)Nh[2*t+1]=7,t++,l[7]++;for(;t<=287;)Nh[2*t+1]=8,t++,l[8]++;for(NS(Nh,287,l),t=0;t<30;t++)Np[2*t+1]=5,Np[2*t]=N_(t,5);e=new Nb(Nh,Nc,257,286,15),r=new Nb(Np,Nu,0,30,15),n=new Nb([],Nf,0,19,7)}
5)(),NI=!0),t.l_desc=new Nx(t.dyn_ltree,e),t.d_desc=new Nx(t.dyn_dtree,r),t.bl_desc=new Nx(t.bl_tree,n),t.bi_buf=0,t.bi_valid=0,NA(t)},_tr_stored_block:ND,_tr_flush_block:(t,e,r,n)=>{let i,a,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=0xf3ffc07f;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),NL(t,t.l_desc),NL(t,t.d_desc),o=(t=>{let e;for(NM(t,t.dyn_ltree,t.l_desc.max_code),NM(t,t.dyn_dtree,t.d_desc.max_code),NL(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Nd[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?ND(t,e,r,n):4===t.strategy||a===i?(NN(t,2+ +!!n,3),NC(t,Nh,Np)):(NN(t,4+ +!!n,3),((t,e,r,n)=>{let i;for(NN(t,e-257,5),NN(t,r-1,5),NN(t,n-4,4),i=0;i<n;i++)NN(t,t.bl_tree[2*Nd[i]+1],3);NT(t,t.dyn_ltree,e-1),NT(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),NC(t,t.dyn_ltree,t.dyn_dtree)),NA(t),n&&NO(t)},_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[(Nv[r]+256+1)*2]++,t.dyn_dtree[2*Nw(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{NN(t,2,3),Nk(t,256,Nh),16===t.bi_valid?(Nj(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},Nz=(t,e,r,n)=>{let i=65535&t,a=t>>>16&65535,o=0;for(;0!==r;){o=r>2e3?2e3:r,r-=o;do a=a+(i=i+e[n++]|0)|0;while(--o)i%=65521,a%=65521}return i|a<<16};let NF=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[r]=t}return e})());var NB=(t,e,r,n)=>{let i=n+r;t^=-1;for(let r=n;r<i;r++)t=t>>>8^NF[(t^e[r])&255];return -1^t},Nq={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"},NU={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};let{_tr_init:NV,_tr_stored_block:NH,_tr_flush_block:NW,_tr_tally:N$,_tr_align:NG}=NR,{Z_NO_FLUSH:NK,Z_PARTIAL_FLUSH:NY,Z_FULL_FLUSH:NX,Z_FINISH:NZ,Z_BLOCK:NJ,Z_OK:NQ,Z_STREAM_END:N0,Z_STREAM_ERROR:N1,Z_DATA_ERROR:N2,Z_BUF_ERROR:N5,Z_DEFAULT_COMPRESSION:N3,Z_FILTERED:N4,Z_HUFFMAN_ONLY:N6,Z_RLE:N8,Z_FIXED:N7,Z_DEFAULT_STRATEGY:N9,Z_UNKNOWN:kt,Z_DEFLATED:ke}=NU,kr=573,kn=(t,e)=>(t.msg=Nq[e],e),ki=t=>2*t-9*(t>4),ka=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ko=t=>{let e,r,n,i=t.w_size;n=e=t.hash_size;do r=t.head[--n],t.head[n]=r>=i?r-i:0;while(--e)n=e=i;do r=t.prev[--n],t.prev[n]=r>=i?r-i:0;while(--e)},ks=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask,kl=t=>{let e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},kc=(t,e)=>{NW(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kl(t.strm)},ku=(t,e)=>{t.pending_buf[t.pending++]=e},kf=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},kd=(t,e,r,n)=>{let i=t.avail_in;return(i>n&&(i=n),0===i)?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=Nz(t.adler,e,i,r):2===t.state.wrap&&(t.adler=NB(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},kh=(t,e)=>{let r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,u=t.w_mask,f=t.prev,d=t.strstart+258,h=c[a+o-1],p=c[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+o]!==p||c[r+o-1]!==h||c[r]!==c[a]||c[++r]!==c[a+1])continue;a+=2,r++;do;while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<d)if(n=258-(d-a),a=d-258,n>o){if(t.match_start=e,o=n,n>=s)break;h=c[a+o-1],p=c[a+o]}}while((e=f[e&u])>l&&0!=--i)return o<=t.lookahead?o:t.lookahead},kp=t=>{let e,r,n,i=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-262)&&(t.window.set(t.window.subarray(i,i+i-r),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),ko(t),r+=i),0===t.strm.avail_in)break;if(e=kd(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ks(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ks(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},km=(t,e)=>{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,i,a,o=0,s=t.strm.avail_in;
5do{if(n=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a||(a=t.strm.avail_out-a,n>(i=t.strstart-t.block_start)+t.strm.avail_in&&(n=i+t.strm.avail_in),n>a&&(n=a),n<r&&(0===n&&e!==NZ||e===NK||n!==i+t.strm.avail_in)))break;o=+(e===NZ&&n===i+t.strm.avail_in),NH(t,0,0,o),t.pending_buf[t.pending-4]=n,t.pending_buf[t.pending-3]=n>>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,kl(t.strm),i&&(i>n&&(i=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,n-=i),n&&(kd(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===o)return((s-=t.strm.avail_in)&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o)?4:e!==NK&&e!==NZ&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(kd(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,r=(a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a)>t.w_size?t.w_size:a,((i=t.strstart-t.block_start)>=r||(i||e===NZ)&&e!==NK&&0===t.strm.avail_in&&i<=a)&&(n=i>a?a:i,o=+(e===NZ&&0===t.strm.avail_in&&n===i),NH(t,t.block_start,n,o),t.block_start+=n,kl(t.strm)),o?3:1)},kv=(t,e)=>{let r,n;for(;;){if(t.lookahead<262){if(kp(t),t.lookahead<262&&e===NK)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=ks(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=kh(t,r)),t.match_length>=3)if(n=N$(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=ks(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length)t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ks(t,t.ins_h,t.window[t.strstart+1]);else n=N$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(kc(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===NZ)?(kc(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(kc(t,!1),0===t.strm.avail_out)?1:2},ky=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<262){if(kp(t),t.lookahead<262&&e===NK)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=ks(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=kh(t,r),t.match_length<=5&&(t.strategy===N4||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=N$(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=ks(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length)if(t.match_available=0,t.match_length=2,t.strstart++,n&&(kc(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=N$(t,0,t.window[t.strstart-1]))&&kc(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=N$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===NZ)?(kc(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(kc(t,!1),0===t.strm.avail_out)?1:2};function kg(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}let kb=[new kg(0,0,0,0,km),new kg(4,4,8,4,kv),new kg(4,5,16,8,kv),new kg(4,6,32,32,kv),new kg(4,4,16,16,ky),new kg(8,16,32,32,ky),new kg(8,16,128,128,ky),new kg(8,32,128,256,ky),new kg(32,128,258,1024,ky),new kg(32,258,258,4096,ky)];function kx(){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=ke,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(2*kr),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ka(this.dyn_ltree),ka(this.dyn_dtree),ka(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),ka(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ka(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}let kw=t=>{if(!t)return 1;let e=t.state;return e&&e.strm===t&&(42===e.status||57===e.status||69===e.status||73===e.status||91===e.status||103===e.status||113===e.status||666===e.status)?0:1};var kj=(t,e)=>{if(kw(t)||e>NJ||e<0)return t?kn(t,N1):N1;let r=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===r.status&&e!==NZ)return kn(t,0===t.avail_out?N5:N1);let n=r.last_flush;
5if(r.last_flush=e,0!==r.pending){if(kl(t),0===t.avail_out)return r.last_flush=-1,NQ}else if(0===t.avail_in&&ki(e)<=ki(n)&&e!==NZ)return kn(t,N5);if(666===r.status&&0!==t.avail_in)return kn(t,N5);if(42===r.status&&0===r.wrap&&(r.status=113),42===r.status){let e=ke+(r.w_bits-8<<4)<<8;if(e|=(r.strategy>=N6||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(e|=32),kf(r,e+=31-e%31),0!==r.strstart&&(kf(r,t.adler>>>16),kf(r,65535&t.adler)),t.adler=1,r.status=113,kl(t),0!==r.pending)return r.last_flush=-1,NQ}if(57===r.status){if(t.adler=0,ku(r,31),ku(r,139),ku(r,8),r.gzhead)ku(r,+!!r.gzhead.text+2*!!r.gzhead.hcrc+4*!!r.gzhead.extra+8*!!r.gzhead.name+16*!!r.gzhead.comment),ku(r,255&r.gzhead.time),ku(r,r.gzhead.time>>8&255),ku(r,r.gzhead.time>>16&255),ku(r,r.gzhead.time>>24&255),ku(r,9===r.level?2:4*(r.strategy>=N6||r.level<2)),ku(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(ku(r,255&r.gzhead.extra.length),ku(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=NB(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(ku(r,0),ku(r,0),ku(r,0),ku(r,0),ku(r,0),ku(r,9===r.level?2:4*(r.strategy>=N6||r.level<2)),ku(r,3),r.status=113,kl(t),0!==r.pending)return r.last_flush=-1,NQ}if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=NB(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,kl(t),0!==r.pending)return r.last_flush=-1,NQ;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=NB(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}
5if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=NB(t.adler,r.pending_buf,r.pending-n,n)),kl(t),0!==r.pending)return r.last_flush=-1,NQ;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,ku(r,e)}while(0!==e)r.gzhead.hcrc&&r.pending>n&&(t.adler=NB(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=NB(t.adler,r.pending_buf,r.pending-n,n)),kl(t),0!==r.pending)return r.last_flush=-1,NQ;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,ku(r,e)}while(0!==e)r.gzhead.hcrc&&r.pending>n&&(t.adler=NB(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(kl(t),0!==r.pending))return r.last_flush=-1,NQ;ku(r,255&t.adler),ku(r,t.adler>>8&255),t.adler=0}if(r.status=113,kl(t),0!==r.pending)return r.last_flush=-1,NQ}if(0!==t.avail_in||0!==r.lookahead||e!==NK&&666!==r.status){let n=0===r.level?km(r,e):r.strategy===N6?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(kp(t),0===t.lookahead)){if(e===NK)return 1;break}if(t.match_length=0,r=N$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(kc(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===NZ)?(kc(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(kc(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===N8?((t,e)=>{let r,n,i,a,o=t.window;for(;;){if(t.lookahead<=258){if(kp(t),t.lookahead<=258&&e===NK)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+258;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a)t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=N$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=N$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(kc(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===NZ)?(kc(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(kc(t,!1),0===t.strm.avail_out)?1:2})(r,e):kb[r.level].func(r,e);if((3===n||4===n)&&(r.status=666),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),NQ;if(2===n&&(e===NY?NG(r):e!==NJ&&(NH(r,0,0,!1),e===NX&&(ka(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kl(t),0===t.avail_out))return r.last_flush=-1,NQ}return e!==NZ?NQ:r.wrap<=0?N0:(2===r.wrap?(ku(r,255&t.adler),ku(r,t.adler>>8&255),ku(r,t.adler>>16&255),ku(r,t.adler>>24&255),ku(r,255&t.total_in),ku(r,t.total_in>>8&255),ku(r,t.total_in>>16&255),ku(r,t.total_in>>24&255)):(kf(r,t.adler>>>16),kf(r,65535&t.adler)),kl(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?NQ:N0)},kN=t=>{if(kw(t))return N1;let e=t.state.status;return t.state=null,113===e?kn(t,N2):NQ};let kk=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var k_=function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let r=e.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(let e in r)kk(r,e)&&(t[e]=r[e])}}return t},kS=t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;let r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r};let kA=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){kA=!1}let kO=new Uint8Array(256);for(let t=0;t<256;t++)kO[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;kO[254]=kO[254]=1;var kP=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)(64512&(r=t.charCodeAt(i)))==55296&&i+1<o&&(64512&(n=t.charCodeAt(i+1)))==56320&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(a=0,e=new Uint8Array(s),i=0;a<s;i++)(64512&(r=t.charCodeAt(i)))==55296&&i+1<o&&(64512&(n=t.charCodeAt(i+1)))==56320&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},kE=(t,e)=>{let r,n,i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let a=Array(2*i);for(n=0,r=0;r<i;){let e=t[r++];if(e<128){a[n++]=e;continue}let o=kO[e];if(o>4){a[n++]=65533,r+=o-1;continue}for(e&=2===o?31:3===o?15:7;o>1&&r<i;)e=e<<6|63&t[r++],o--;
5if(o>1){a[n++]=65533;continue}e<65536?a[n++]=e:(e-=65536,a[n++]=55296|e>>10&1023,a[n++]=56320|1023&e)}var o=n;if(o<65534&&a.subarray&&kA)return String.fromCharCode.apply(null,a.length===o?a:a.subarray(0,o));let s="";for(let t=0;t<o;t++)s+=String.fromCharCode(a[t]);return s},kC=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(192&t[r])==128;)r--;return r<0||0===r?e:r+kO[t[r]]>e?r:e},kL=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};let kM=Object.prototype.toString,{Z_NO_FLUSH:kT,Z_SYNC_FLUSH:kI,Z_FULL_FLUSH:kD,Z_FINISH:kR,Z_OK:kz,Z_STREAM_END:kF,Z_DEFAULT_COMPRESSION:kB,Z_DEFAULT_STRATEGY:kq,Z_DEFLATED:kU}=NU;function kV(t){let e,r;this.options=k_({level:kB,method:kU,chunkSize:16384,windowBits:15,memLevel:8,strategy:kq},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new kL,this.strm.avail_out=0;let i=((t,e,r,n,i,a)=>{var o,s;let l;if(!t)return N1;let c=1;if(e===N3&&(e=6),n<0?(c=0,n=-n):n>15&&(c=2,n-=16),i<1||i>9||r!==ke||n<8||n>15||e<0||e>9||a<0||a>N7||8===n&&1!==c)return kn(t,N1);8===n&&(n=9);let u=new kx;return t.state=u,u.strm=t,u.status=42,u.wrap=c,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.sym_buf=u.lit_bufsize,u.sym_end=(u.lit_bufsize-1)*3,u.level=e,u.strategy=a,u.method=r,(l=(t=>{if(kw(t))return kn(t,N1);t.total_in=t.total_out=0,t.data_type=kt;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=+(2!==e.wrap),e.last_flush=-2,NV(e),NQ})(o=t))===NQ&&((s=o.state).window_size=2*s.w_size,ka(s.head),s.max_lazy_match=kb[s.level].max_lazy,s.good_match=kb[s.level].good_length,s.nice_match=kb[s.level].nice_length,s.max_chain_length=kb[s.level].max_chain,s.strstart=0,s.block_start=0,s.lookahead=0,s.insert=0,s.match_length=s.prev_length=2,s.match_available=0,s.ins_h=0),l})(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(i!==kz)throw Error(Nq[i]);if(n.header&&(e=this.strm,r=n.header,kw(e)||2!==e.state.wrap||(e.state.gzhead=r)),n.dictionary){let t;if(t="string"==typeof n.dictionary?kP(n.dictionary):"[object ArrayBuffer]"===kM.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary,(i=((t,e)=>{let r=e.length;if(kw(t))return N1;let n=t.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return N1;if(1===i&&(t.adler=Nz(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(ka(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}let a=t.avail_in,o=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,kp(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do n.ins_h=ks(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++;while(--e)n.strstart=t,n.lookahead=2,kp(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=o,t.input=s,t.avail_in=a,n.wrap=i,NQ})(this.strm,t))!==kz)throw Error(Nq[i]);this._dict_set=!0}}function kH(t,e){let r=new kV(e);if(r.push(t,!0),r.err)throw r.msg||Nq[r.err];return r.result}kV.prototype.push=function(t,e){let r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?kR:kT,"string"==typeof t?i.input=kP(t):"[object ArrayBuffer]"===kM.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(n===kI||n===kD)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if((r=kj(i,n))===kF)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=kN(this.strm),this.onEnd(r),this.ended=!0,r===kz;if(0===i.avail_out){this.onData(i.output);continue}if(n>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(0===i.avail_in)break}return!0},kV.prototype.onData=function(t){this.chunks.push(t)},kV.prototype.onEnd=function(t){t===kz&&(this.result=kS(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var kW=function(t,e){let r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,y,g,b,x,w,j,N,k,_,S=t.state;r=t.next_in,k=t.input,n=r+(t.avail_in-5),i=t.next_out,_=t.output,a=i-(e-t.avail_out),o=i+(t.avail_out-257),s=S.dmax,l=S.wsize,c=S.whave,u=S.wnext,f=S.window,d=S.hold,h=S.bits,p=S.lencode,m=S.distcode,v=(1<<S.lenbits)-1,y=(1<<S.distbits)-1;r:do for(h<15&&(d+=k[r++]<<h,h+=8,d+=k[r++]<<h,h+=8),g=p[d&v];;){if(d>>>=b=g>>>24,h-=b,0==(b=g>>>16&255))_[i++]=65535&g;else if(16&b)for(x=65535&g,(b&=15)&&(h<b&&(d+=k[r++]<<h,h+=8),x+=d&(1<<b)-1,d>>>=b,h-=b),h<15&&(d+=k[r++]<<h,h+=8,d+=k[r++]<<h,h+=8),g=m[d&y];;){if(d>>>=b=g>>>24,h-=b,16&(b=g>>>16&255)){if(w=65535&g,h<(b&=15)&&(d+=k[r++]<<h,(h+=8)<b&&(d+=k[r++]<<h,h+=8)),(w+=d&(1<<b)-1)>s){t.msg="invalid distance too far back",S.mode=16209;break r}if(d>>>=b,h-=b,w>(b=i-a)){if((b=w-b)>c&&S.sane){t.msg="invalid distance too far back",S.mode=16209;break r}if(j=0,N=f,0===u){if(j+=l-b,b<x){x-=b;do _[i++]=f[j++];while(--b)j=i-w,N=_}}else if(u<b){if(j+=l+u-b,(b-=u)<x){x-=b;do _[i++]=f[j++];while(--b)if(j=0,u<x){x-=b=u;do _[i++]=f[j++];while(--b)j=i-w,N=_}}}else if(j+=u-b,b<x){x-=b;do _[i++]=f[j++];while(--b)j=i-w,N=_}for(;x>2;)_[i++]=N[j++],_[i++]=N[j++],_[i++]=N[j++],x-=3;x&&(_[i++]=N[j++],x>1&&(_[i++]=N[j++]))}else{j=i-w;do _[i++]=_[j++],_[i++]=_[j++],_[i++]=_[j++],x-=3;while(x>2)x&&(_[i++]=_[j++],x>1&&(_[i++]=_[j++]))}}else if((64&b)==0){g=m[(65535&g)+(d&(1<<b)-1)];continue}else{t.msg="invalid distance code",S.mode=16209;break r}break}
5else if((64&b)==0){g=p[(65535&g)+(d&(1<<b)-1)];continue}else if(32&b){S.mode=16191;break r}else{t.msg="invalid literal/length code",S.mode=16209;break r}break}while(r<n&&i<o)r-=x=h>>3,h-=x<<3,d&=(1<<h)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?5+(n-r):5-(r-n),t.avail_out=i<o?257+(o-i):257-(i-o),S.hold=d,S.bits=h};let k$=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),kG=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),kK=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),kY=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var kX=(t,e,r,n,i,a,o,s)=>{let l,c,u,f,d,h,p,m,v,y=s.bits,g=0,b=0,x=0,w=0,j=0,N=0,k=0,_=0,S=0,A=0,O=null,P=new Uint16Array(16),E=new Uint16Array(16),C=null;for(g=0;g<=15;g++)P[g]=0;for(b=0;b<n;b++)P[e[r+b]]++;for(w=15,j=y;w>=1&&0===P[w];w--);if(j>w&&(j=w),0===w)return i[a++]=0x1400000,i[a++]=0x1400000,s.bits=1,0;for(x=1;x<w&&0===P[x];x++);for(j<x&&(j=x),_=1,g=1;g<=15;g++)if(_<<=1,(_-=P[g])<0)return -1;if(_>0&&(0===t||1!==w))return -1;for(g=1,E[1]=0;g<15;g++)E[g+1]=E[g]+P[g];for(b=0;b<n;b++)0!==e[r+b]&&(o[E[e[r+b]]++]=b);if(0===t?(O=C=o,h=20):1===t?(O=k$,C=kG,h=257):(O=kK,C=kY,h=0),A=0,b=0,g=x,d=a,N=j,k=0,u=-1,f=(S=1<<j)-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){p=g-k,o[b]+1<h?(m=0,v=o[b]):o[b]>=h?(m=C[o[b]-h],v=O[o[b]-h]):(m=96,v=0),l=1<<g-k,x=c=1<<N;do i[d+(A>>k)+(c-=l)]=p<<24|m<<16|v;while(0!==c)for(l=1<<g-1;A&l;)l>>=1;if(0!==l?(A&=l-1,A+=l):A=0,b++,0==--P[g]){if(g===w)break;g=e[r+o[b]]}if(g>j&&(A&f)!==u){for(0===k&&(k=j),d+=x,_=1<<(N=g-k);N+k<w&&!((_-=P[N+k])<=0);)N++,_<<=1;if(S+=1<<N,1===t&&S>852||2===t&&S>592)return 1;i[u=A&f]=j<<24|N<<16|d-a}}return 0!==A&&(i[d+A]=g-k<<24|4194304),s.bits=j,0};let{Z_FINISH:kZ,Z_BLOCK:kJ,Z_TREES:kQ,Z_OK:k0,Z_STREAM_END:k1,Z_NEED_DICT:k2,Z_STREAM_ERROR:k5,Z_DATA_ERROR:k3,Z_MEM_ERROR:k4,Z_BUF_ERROR:k6,Z_DEFLATED:k8}=NU,k7=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function k9(){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}let _t=t=>{if(!t)return 1;let e=t.state;return+(!e||e.strm!==t||e.mode<16180||e.mode>16211)},_e=t=>{if(_t(t))return k5;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,(t=>{if(_t(t))return k5;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,k0})(t)},_r=!0,_n=t=>{if(_r){i=new Int32Array(512),a=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(kX(1,t.lens,0,288,i,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;kX(2,t.lens,0,32,a,0,t.work,{bits:5}),_r=!1}t.lencode=i,t.lenbits=9,t.distcode=a,t.distbits=5},_i=(t,e,r,n)=>{let i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(e.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),a.window.set(e.subarray(r-n,r-n+i),a.wnext),(n-=i)?(a.window.set(e.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var _a=(t,e)=>{let r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,y,g,b,x,w,j,N,k,_,S=0,A=new Uint8Array(4),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_t(t)||!t.output||!t.input&&0!==t.avail_in)return k5;
516191===(r=t.state).mode&&(r.mode=16192),o=t.next_out,i=t.output,l=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,f=s,d=l,N=k0;n:for(;;)switch(r.mode){case 16180:if(0===r.wrap){r.mode=16192;break}for(;u<16;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,A[0]=255&c,A[1]=c>>>8&255,r.check=NB(r.check,A,2,0),c=0,u=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=16209;break}if((15&c)!==k8){t.msg="unknown compression method",r.mode=16209;break}if(c>>>=4,u-=4,j=(15&c)+8,0===r.wbits&&(r.wbits=j),j>15||j>r.wbits){t.msg="invalid window size",r.mode=16209;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:16191,c=0,u=0;break;case 16181:for(;u<16;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(r.flags=c,(255&r.flags)!==k8){t.msg="unknown compression method",r.mode=16209;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=16209;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(A[0]=255&c,A[1]=c>>>8&255,r.check=NB(r.check,A,2,0)),c=0,u=0,r.mode=16182;case 16182:for(;u<32;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=NB(r.check,A,4,0)),c=0,u=0,r.mode=16183;case 16183:for(;u<16;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(A[0]=255&c,A[1]=c>>>8&255,r.check=NB(r.check,A,2,0)),c=0,u=0,r.mode=16184;case 16184:if(1024&r.flags){for(;u<16;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(A[0]=255&c,A[1]=c>>>8&255,r.check=NB(r.check,A,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&((h=r.length)>s&&(h=s),h&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+h),j)),512&r.flags&&4&r.wrap&&(r.check=NB(r.check,n,h,a)),s-=h,a+=h,r.length-=h),r.length))break n;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break n;h=0;do j=n[a+h++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j));while(j&&h<s)if(512&r.flags&&4&r.wrap&&(r.check=NB(r.check,n,h,a)),s-=h,a+=h,j)break n}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break n;h=0;do j=n[a+h++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j));while(j&&h<s)if(512&r.flags&&4&r.wrap&&(r.check=NB(r.check,n,h,a)),s-=h,a+=h,j)break n}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;u<16;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=16209;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=16191;break;case 16189:for(;u<32;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}t.adler=r.check=k7(c),c=0,u=0,r.mode=16190;case 16190:if(0===r.havedict)return t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=c,r.bits=u,k2;t.adler=r.check=1,r.mode=16191;case 16191:if(e===kJ||e===kQ)break n;case 16192:if(r.last){c>>>=7&u,u-=7&u,r.mode=16206;break}for(;u<3;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}switch(r.last=1&c,u-=1,3&(c>>>=1)){case 0:r.mode=16193;break;case 1:if(_n(r),r.mode=16199,e===kQ){c>>>=2,u-=2;break n}break;case 2:r.mode=16196;break;case 3:t.msg="invalid block type",r.mode=16209}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=16209;break}if(r.length=65535&c,c=0,u=0,r.mode=16194,e===kQ)break n;case 16194:r.mode=16195;case 16195:if(h=r.length){if(h>s&&(h=s),h>l&&(h=l),0===h)break n;i.set(n.subarray(a,a+h),o),s-=h,a+=h,l-=h,o+=h,r.length-=h;break}r.mode=16191;break;case 16196:for(;u<14;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(r.nlen=(31&c)+257,u-=5,r.ndist=(31&(c>>>=5))+1,u-=5,r.ncode=(15&(c>>>=5))+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=16209;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.lens[O[r.have++]]=7&c,c>>>=3,u-=3}for(;r.have<19;)r.lens[O[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},N=kX(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,N){t.msg="invalid code lengths set",r.mode=16209;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;v=(S=r.lencode[c&(1<<r.lenbits)-1])>>>24,y=S>>>16&255,g=65535&S,!(v<=u);){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(g<16)c>>>=v,u-=v,r.lens[r.have++]=g;else{if(16===g){for(_=v+2;u<_;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(c>>>=v,u-=v,0===r.have){t.msg="invalid bit length repeat",r.mode=16209;break}j=r.lens[r.have-1],h=3+(3&c),c>>>=2,u-=2}else if(17===g){for(_=v+3;u<_;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}c>>>=v,u-=v,j=0,h=3+(7&c),c>>>=3,u-=3}else{for(_=v+7;u<_;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}c>>>=v,u-=v,j=0,h=11+(127&c),c>>>=7,u-=7}if(r.have+h>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=16209;break}for(;h--;)r.lens[r.have++]=j}}if(16209===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=16209;break}if(r.lenbits=9,k={bits:r.lenbits},N=kX(1,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,N){t.msg="invalid literal/lengths set",r.mode=16209;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},N=kX(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,N){t.msg="invalid distances set",r.mode=16209;break}if(r.mode=16199,e===kQ)break n;case 16199:r.mode=16200;case 16200:if(s>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=c,r.bits=u,kW(t,d),o=t.next_out,i=t.output,l=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,16191===r.mode&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[c&(1<<r.lenbits)-1])>>>24,y=S>>>16&255,g=65535&S,!(v<=u);){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(y&&(240&y)==0){for(b=v,x=y,w=g;v=(S=r.lencode[w+((c&(1<<b+x)-1)>>b)])>>>24,y=S>>>16&255,g=65535&S,!(b+v<=u);){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}c>>>=b,u-=b,r.back+=b}if(c>
5>>=v,u-=v,r.back+=v,r.length=g,0===y){r.mode=16205;break}if(32&y){r.back=-1,r.mode=16191;break}if(64&y){t.msg="invalid literal/length code",r.mode=16209;break}r.extra=15&y,r.mode=16201;case 16201:if(r.extra){for(_=r.extra;u<_;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;v=(S=r.distcode[c&(1<<r.distbits)-1])>>>24,y=S>>>16&255,g=65535&S,!(v<=u);){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if((240&y)==0){for(b=v,x=y,w=g;v=(S=r.distcode[w+((c&(1<<b+x)-1)>>b)])>>>24,y=S>>>16&255,g=65535&S,!(b+v<=u);){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}c>>>=b,u-=b,r.back+=b}if(c>>>=v,u-=v,r.back+=v,64&y){t.msg="invalid distance code",r.mode=16209;break}r.offset=g,r.extra=15&y,r.mode=16203;case 16203:if(r.extra){for(_=r.extra;u<_;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=16209;break}r.mode=16204;case 16204:if(0===l)break n;if(h=d-l,r.offset>h){if((h=r.offset-h)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=16209;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),m=r.window}else m=i,p=o-r.offset,h=r.length;h>l&&(h=l),l-=h,r.length-=h;do i[o++]=m[p++];while(--h)0===r.length&&(r.mode=16200);break;case 16205:if(0===l)break n;i[o++]=r.length,l--,r.mode=16200;break;case 16206:if(r.wrap){for(;u<32;){if(0===s)break n;s--,c|=n[a++]<<u,u+=8}if(d-=l,t.total_out+=d,r.total+=d,4&r.wrap&&d&&(t.adler=r.check=r.flags?NB(r.check,i,d,o-d):Nz(r.check,i,d,o-d)),d=l,4&r.wrap&&(r.flags?c:k7(c))!==r.check){t.msg="incorrect data check",r.mode=16209;break}c=0,u=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break n;s--,c+=n[a++]<<u,u+=8}if(4&r.wrap&&c!==(0|r.total)){t.msg="incorrect length check",r.mode=16209;break}c=0,u=0}r.mode=16208;case 16208:N=k1;break n;case 16209:N=k3;break n;case 16210:return k4;default:return k5}return t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=c,r.bits=u,(r.wsize||d!==t.avail_out&&r.mode<16209&&(r.mode<16206||e!==kZ))&&_i(t,t.output,t.next_out,d-t.avail_out),f-=t.avail_in,d-=t.avail_out,t.total_in+=f,t.total_out+=d,r.total+=d,4&r.wrap&&d&&(t.adler=r.check=r.flags?NB(r.check,i,d,t.next_out-d):Nz(r.check,i,d,t.next_out-d)),t.data_type=r.bits+64*!!r.last+128*(16191===r.mode)+256*(16199===r.mode||16194===r.mode),(0===f&&0===d||e===kZ)&&N===k0&&(N=k6),N},_o=t=>{if(_t(t))return k5;let e=t.state;return e.window&&(e.window=null),t.state=null,k0},_s=(t,e)=>{let r,n=e.length;return _t(t)||0!==(r=t.state).wrap&&16190!==r.mode?k5:16190===r.mode&&Nz(1,e,n,0)!==r.check?k3:_i(t,e,n,n)?(r.mode=16210,k4):(r.havedict=1,k0)},_l=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};let _c=Object.prototype.toString,{Z_NO_FLUSH:_u,Z_FINISH:_f,Z_OK:_d,Z_STREAM_END:_h,Z_NEED_DICT:_p,Z_STREAM_ERROR:_m,Z_DATA_ERROR:_v,Z_MEM_ERROR:_y}=NU;function _g(t){this.options=k_({chunkSize:65536,windowBits:15,to:""},t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new kL,this.strm.avail_out=0;let r=((t,e)=>{if(!t)return k5;let r=new k9;t.state=r,r.strm=t,r.window=null,r.mode=16180;let n=((t,e)=>{let r;if(_t(t))return k5;let n=t.state;return(e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15))?k5:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,_e(t))})(t,e);return n!==k0&&(t.state=null),n})(this.strm,e.windowBits);if(r!==_d||(this.header=new _l,((t,e)=>{if(_t(t))return;let r=t.state;return(2&r.wrap)==0||(r.head=e,e.done=!1)})(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=kP(e.dictionary):"[object ArrayBuffer]"===_c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw)&&(r=_s(this.strm,e.dictionary))!==_d))throw Error(Nq[r])}function _b(t,e){let r=new _g(e);if(r.push(t),r.err)throw r.msg||Nq[r.err];return r.result}_g.prototype.push=function(t,e){let r,n,i,a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?_f:_u,"[object ArrayBuffer]"===_c.call(t)?a.input=new 
5Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(r=_a(a,n))===_p&&s&&((r=_s(a,s))===_d?r=_a(a,n):r===_v&&(r=_p));a.avail_in>0&&r===_h&&a.state.wrap>0&&0!==t[a.next_in];)_e(a),r=_a(a,n);switch(r){case _m:case _v:case _p:case _y:return this.onEnd(r),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||r===_h))if("string"===this.options.to){let t=kC(a.output,a.next_out),e=a.next_out-t,r=kE(a.output,t);a.next_out=e,a.avail_out=o-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(r)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==_d||0!==i){if(r===_h)return r=_o(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},_g.prototype.onData=function(t){this.chunks.push(t)},_g.prototype.onEnd=function(t){t===_d&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=kS(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};let{Deflate:_x,deflate:_w,deflateRaw:_j,gzip:_N}={Deflate:kV,deflate:kH,deflateRaw:function(t,e){return(e=e||{}).raw=!0,kH(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,kH(t,e)},constants:NU},{Inflate:_k,inflate:__,inflateRaw:_S,ungzip:_A}={Inflate:_g,inflate:_b,inflateRaw:function(t,e){return(e=e||{}).raw=!0,_b(t,e)},ungzip:_b,constants:NU},_O=[];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)1&e?e=0xedb88320^e>>>1:e>>>=1;_O[t]=e}function _P(t,e,r){let n=t.readUint32(),i=(0xffffffff^function(t,e,r){let n=0xffffffff;for(let t=0;t<r;t++)n=_O[(n^e[t])&255]^n>>>8;return n}(0,new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e))>>>0;if(i!==n)throw Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function _E(t,e,r){for(let n=0;n<r;n++)e[n]=t[n]}function _C(t,e,r,n){let i=0;for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+e[i-n]&255}function _L(t,e,r,n){let i=0;if(0===r.length)for(;i<n;i++)e[i]=t[i];else for(;i<n;i++)e[i]=t[i]+r[i]&255}function _M(t,e,r,n,i){let a=0;if(0===r.length){for(;a<i;a++)e[a]=t[a];for(;a<n;a++)e[a]=t[a]+(e[a-i]>>1)&255}else{for(;a<i;a++)e[a]=t[a]+(r[a]>>1)&255;for(;a<n;a++)e[a]=t[a]+(e[a-i]+r[a]>>1)&255}}function _T(t,e,r,n,i){let a=0;if(0===r.length){for(;a<i;a++)e[a]=t[a];for(;a<n;a++)e[a]=t[a]+e[a-i]&255}else{for(;a<i;a++)e[a]=t[a]+r[a]&255;for(;a<n;a++)e[a]=t[a]+function(t,e,r){let n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),o=Math.abs(n-r);return i<=a&&i<=o?t:a<=o?e:r}(e[a-i],r[a],r[a-i])&255}}let _I=255===new Uint8Array(new Uint16Array([255]).buffer)[0],_D=255===new Uint8Array(new Uint16Array([255]).buffer)[0],_R=new Uint8Array(0);function _z(t){let e,r,{data:n,width:i,height:a,channels:o,depth:s}=t,l=Math.ceil(s/8)*o,c=Math.ceil(s/8*o*i),u=new Uint8Array(a*c),f=_R,d=0;for(let t=0;t<a;t++){switch(e=n.subarray(d+1,d+1+c),r=u.subarray(t*c,(t+1)*c),n[d]){case 0:_E(e,r,c);break;case 1:_C(e,r,c,l);break;case 2:_L(e,r,f,c);break;case 3:_M(e,r,f,c,l);break;case 4:_T(e,r,f,c,l);break;default:throw Error(`Unsupported filter: ${n[d]}`)}f=r,d+=c+1}if(16!==s)return u;{let t=new Uint16Array(u.buffer);if(_D)for(let e=0;e<t.length;e++){var h;t[e]=(255&(h=t[e]))<<8|h>>8&255}return t}}let _F=Uint8Array.of(137,80,78,71,13,10,26,10);function _B(t){if(!function(t){if(t.length<_F.length)return!1;for(let e=0;e<_F.length;e++)if(t[e]!==_F[e])return!1;return!0}(t.readBytes(_F.length)))throw Error("wrong PNG signature")}let _q=new TextDecoder("latin1"),_U=/^[\u0000-\u00FF]*$/;function _V(t){for(t.mark();0!==t.readByte(););let e=t.offset;t.reset();let r=_q.decode(t.readBytes(e-t.offset-1));t.skip(1);if(function(t){if(!_U.test(t))throw Error("invalid latin1 text")}(r),0===r.length||r.length>79)throw Error("keyword length must be between 1 and 79");return r}class _H extends No{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new _k,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=-1,this._filterMethod=-1,this._interlaceMethod=-1,this._colorType=-1,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(_B(this);!this._end;){let t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(_B(this);!this._end;){let t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){let r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case"tEXt":var n,i,a;let o;n=this._png.text,n[o=_V(this)]=(i=this,a=t-o.length-1,_q.decode(i.readBytes(a)));break;case"pHYs":this.decodepHYs();break;default:this.skip(t)}if(this.offset-r!==t)throw Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?_P(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){let r=this.offset;switch("fdAT"!==e&&"IDAT"!==e&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=r+t}if(this.offset-r!==t)throw Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?_P(this,t+4,e):this.skip(4)}decodeIHDR(){let t,e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw Error(`invalid bit depth: ${t}`);return t}(this.readUint8());let r=this.readUint8();switch(this._colorType=r,r){case 0:case 3:t=1;break;case 2:t=3;break;case 4:t=2;break;case 6:t=4;break;default:throw Error(`Unknown color type: ${r}`)}if(this._png.channels=t,this._compressionMethod=this.readUint8(),0!==this._compressionMethod)throw 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(){let t={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(t)}
5decodePLTE(t){if(t%3!=0)throw RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);let e=t/3;this._hasPalette=!0;let r=[];this._palette=r;for(let t=0;t<e;t++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;let e=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,e,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case 0:case 2:if(t%2!=0)throw RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break;case 3:{if(t>
5this._palette.length)throw Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let e=0;for(;e<t;e++){let t=this.readByte();this._palette[e].push(t)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}default:throw Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){let e=_V(this),r=this.readUint8();if(0!==r)throw Error(`Unsupported iCCP compression method: ${r}`);let n=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:__(n)}}decodepHYs(){let t=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){let e={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(t);if(r){if(r.data=_z({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===r.xOffset&&0===r.yOffset&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{let n=this._apng.frames.at(t-1);this.disposeFrame(r,n,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,r){switch(t.disposeOp){case 0:break;case 1:for(let e=0;e<this._png.height;e++)for(let n=0;n<this._png.width;n++){let i=(e*t.width+n)*this._png.channels;for(let t=0;t<this._png.channels;t++)r.data[i+t]=0}break;case 2:r.data.set(e.data);break;default:throw Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){let r=1<<this._png.depth,n=(t,r)=>({index:((t+e.yOffset)*this._png.width+e.xOffset+r)*this._png.channels,frameIndex:(t*e.width+r)*this._png.channels});switch(e.blendOp){case 0:for(let r=0;r<e.height;r++)for(let i=0;i<e.width;i++){let{index:a,frameIndex:o}=n(r,i);for(let r=0;r<this._png.channels;r++)t.data[a+r]=e.data[o+r]}break;case 1:for(let i=0;i<e.height;i++)for(let a=0;a<e.width;a++){let{index:o,frameIndex:s}=n(i,a);for(let n=0;n<this._png.channels;n++){let i=e.data[s+this._png.channels-1]/r,a=Math.floor(i*(n%(this._png.channels-1)==0?1:e.data[s+n])+(1-i)*t.data[o+n]);t.data[o+n]+=a}}break;default:throw Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);let t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(0!==this._filterMethod)throw Error(`Filter method ${this._filterMethod} not supported`);if(0===this._interlaceMethod)this._png.data=_z({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(1===this._interlaceMethod)this._png.data=function(t){let{data:e,width:r,height:n,channels:i,depth:a}=t,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,l=new Uint8Array(n*r*s),c=0;for(let t=0;t<7;t++){let i=o[t],a=Math.ceil((r-i.x)/i.xStep),u=Math.ceil((n-i.y)/i.yStep);if(a<=0||u<=0)continue;let f=a*s,d=new Uint8Array(f);for(let t=0;t<u;t++){let o=e[c++],u=e.subarray(c,c+f);c+=f;let h=new Uint8Array(f);switch(o){case 0:_E(u,h,f);break;case 1:_C(u,h,f,s);break;case 2:_L(u,h,d,f);break;case 3:_M(u,h,d,f,s);break;case 4:_T(u,h,d,f,s);break;default:throw Error(`Unsupported filter: ${o}`)}d.set(h);for(let e=0;e<a;e++){let a=i.x+e*i.xStep,o=i.y+t*i.yStep;if(!(a>=r)&&!(o>=n))for(let t=0;t<s;t++)l[(o*r+a)*s+t]=h[e*s+t]}}}if(16!==a)return l;{let t=new Uint16Array(l.buffer);if(_I)for(let e=0;e<t.length;e++){var u;t[e]=(255&(u=t[e]))<<8|u>>8&255}return t}}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:0,blendOp:0,data:t}),this._inflator=new _k,this._writingDataChunks=!1}}(AA=OA||(OA={}))[AA.UNKNOWN=0]="UNKNOWN",AA[AA.METRE=1]="METRE";var _W="undefined"!=typeof window?window:t.g;function _$(){_W.console&&"function"==typeof _W.console.log&&_W.console.log.apply(_W.console,arguments)}var _G=function(t){_W.console&&("function"==typeof _W.console.warn?_W.console.warn.apply(_W.console,arguments):_$.call(null,arguments))},_K=function(t){_W.console&&("function"==typeof _W.console.error?_W.console.error.apply(_W.console,arguments):_$(t))};function _Y(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){_J(n.response,e,r)},n.onerror=function(){_K("could not download file")},n.send()}function _X(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function _Z(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");
5e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var _J=_W.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,wk.default)(window))||window!==_W?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=_W.URL||_W.webkitURL,i=document.createElement("a");i.download=e=e||t.name||"download",i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?_X(i.href)?_Y(t,e,r):_Z(i,i.target="_blank"):_Z(i)):(i.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){_Z(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(_X(t))_Y(t,e,r);else{var n,i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){_Z(i)})}else navigator.msSaveOrOpenBlob((void 0===(n=r)?n={autoBom:!1}:"object"!==(0,wk.default)(n)&&(_G("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof t)return _Y(t,e,r);var i="application/octet-stream"===t.type,a=/constructor/i.test(_W.HTMLElement)||_W.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&"object"===("undefined"==typeof FileReader?"undefined":(0,wk.default)(FileReader))){var s=new FileReader;s.onloadend=function(){var t=s.result;t=o?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=t:location=t,n=null},s.readAsDataURL(t)}else{var l=_W.URL||_W.webkitURL,c=l.createObjectURL(t);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});function _Q(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=({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:"90ee9
50",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"})[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}var _0=_W.atob.bind(_W),_1=_W.btoa.bind(_W);function _2(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=_3(r,n,i,a,e[0],7,-0x28955b88),a=_3(a,r,n,i,e[1],12,-0x173848aa),i=_3(i,a,r,n,e[2],17,0x242070db),n=_3(n,i,a,r,e[3],22,-0x3e423112),r=_3(r,n,i,a,e[4],7,-0xa83f051),a=_3(a,r,n,i,e[5],12,0x4787c62a),i=_3(i,a,r,n,e[6],17,-0x57cfb9ed),n=_3(n,i,a,r,e[7],22,-0x2b96aff),r=_3(r,n,i,a,e[8],7,0x698098d8),a=_3(a,r,n,i,e[9],12,-0x74bb0851),i=_3(i,a,r,n,e[10],17,-42063),n=_3(n,i,a,r,e[11],22,-0x76a32842),r=_3(r,n,i,a,e[12],7,0x6b901122),a=_3(a,r,n,i,e[13],12,-0x2678e6d),i=_3(i,a,r,n,e[14],17,-0x5986bc72),r=_4(r,n=_3(n,i,a,r,e[15],22,0x49b40821),i,a,e[1],5,-0x9e1da9e),a=_4(a,r,n,i,e[6],9,-0x3fbf4cc0),i=_4(i,a,r,n,e[11],14,0x265e5a51),n=_4(n,i,a,r,e[0],20,-0x16493856),r=_4(r,n,i,a,e[5],5,-0x29d0efa3),a=_4(a,r,n,i,e[10],9,0x2441453),i=_4(i,a,r,n,e[15],14,-0x275e197f),n=_4(n,i,a,r,e[4],20,-0x182c0438),r=_4(r,n,i,a,e[9],5,0x21e1cde6),a=_4(a,r,n,i,e[14],9,-0x3cc8f82a),i=_4(i,a,r,n,e[3],14,-0xb2af279),n=_4(n,i,a,r,e[8],20,0x455a14ed),r=_4(r,n,i,a,e[13],5,-0x561c16fb),a=_4(a,r,n,i,e[2],9,-0x3105c08),i=_4(i,a,r,n,e[7],14,0x676f02d9),r=_6(r,n=_4(n,i,a,r,e[12],20,-0x72d5b376),i,a,e[5],4,-378558),a=_6(a,r,n,i,e[8],11,-0x788e097f),i=_6(i,a,r,n,e[11],16,0x6d9d6122),n=_6(n,i,a,r,e[14],23,-0x21ac7f4),r=_6(r,n,i,a,e[1],4,-0x5b4115bc),a=_6(a,r,n,i,e[4],11,0x4bdecfa9),i=_6(i,a,r,n,e[7],16,-0x944b4a0),n=_6(n,i,a,r,e[10],23,-0x41404390),r=_6(r,n,i,a,e[13],4,0x289b7ec6),a=_6(a,r,n,i,e[0],11,-0x155ed806),i=_6(i,a,r,n,e[3],16,-0x2b10cf7b),n=_6(n,i,a,r,e[6],23,0x4881d05),r=_6(r,n,i,a,e[9],4,-0x262b2fc7),a=_6(a,r,n,i,e[12],11,-0x1924661b),i=_6(i,a,r,n,e[15],16,0x1fa27cf8),r=_8(r,
vendor: 5,183 bytes, line 5
5n=_6(n,i,a,r,e[2],23,-0x3b53a99b),i,a,e[0],6,-0xbd6ddbc),a=_8(a,r,n,i,e[7],10,0x432aff97),i=_8(i,a,r,n,e[14],15,-0x546bdc59),n=_8(n,i,a,r,e[5],21,-0x36c5fc7),r=_8(r,n,i,a,e[12],6,0x655b59c3),a=_8(a,r,n,i,e[3],10,-0x70f3336e),i=_8(i,a,r,n,e[10],15,-1051523),n=_8(n,i,a,r,e[1],21,-0x7a7ba22f),r=_8(r,n,i,a,e[8],6,0x6fa87e4f),a=_8(a,r,n,i,e[15],10,-0x1d31920),i=_8(i,a,r,n,e[6],15,-0x5cfebcec),n=_8(n,i,a,r,e[13],21,0x4e0811a1),r=_8(r,n,i,a,e[4],6,-0x8ac817e),a=_8(a,r,n,i,e[11],10,-0x42c50dcb),i=_8(i,a,r,n,e[2],15,0x2ad7d2bb),n=_8(n,i,a,r,e[9],21,-0x14792c6f),t[0]=Sn(r,t[0]),t[1]=Sn(n,t[1]),t[2]=Sn(i,t[2]),t[3]=Sn(a,t[3])}function _5(t,e,r,n,i,a){return e=Sn(Sn(e,t),Sn(n,a)),Sn(e<<i|e>>>32-i,r)}function _3(t,e,r,n,i,a,o){return _5(e&r|~e&n,t,e,i,a,o)}function _4(t,e,r,n,i,a,o){return _5(e&n|r&~n,t,e,i,a,o)}function _6(t,e,r,n,i,a,o){return _5(e^r^n,t,e,i,a,o)}function _8(t,e,r,n,i,a,o){return _5(r^(e|~n),t,e,i,a,o)}function _7(t){var e,r=t.length,n=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(e=64;e<=t.length;e+=64)_2(n,function(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(_2(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,_2(n,i),n}var _9="0123456789abcdef".split("");function St(t){return String.fromCharCode(255&t,(65280&t)>>8,(0xff0000&t)>>16,(0xff000000&t)>>24)}function Se(t){return _7(t).map(St).join("")}var Sr="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=function(t){for(var e="",r=0;r<4;r++)e+=_9[t>>8*r+4&15]+_9[t>>8*r&15];return e}(t[e]);return t.join("")}(_7("hello"));function Sn(t,e){if(Sr){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e|0}function Si(t,e){if(t!==r){for(var r,n,i=Array(1+(256/t.length|0)+1).join(t),a=[],o=0;o<256;o++)a[o]=o;var s=0;for(o=0;o<256;o++){var l=a[o];s=(s+l+i.charCodeAt(o))%256,a[o]=a[s],a[s]=l}r=t,n=a}else a=n;var c=e.length,u=0,f=0,d="";for(o=0;o<c;o++)f=(f+(l=a[u=(u+1)%256]))%256,a[u]=a[f],a[f]=l,i=a[(a[u]+a[f])%256],d+=String.fromCharCode(e.charCodeAt(o)^i);return d}var Sa={print:4,modify:8,copy:16,"annot-forms":32};function So(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==Sa.perm)throw Error("Invalid permission: "+t);i+=Sa[t]}),this.padding="(¿N^NuŠAd\0NVÿú\x01\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=Se(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Si(this.encryptionKey,this.padding)}function Ss(t){if(/[^\u0000-\u00ff]/.test(t))throw Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function Sl(t){if("object"!==(0,wk.default)(t))throw Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var o=e[r][a];try{o[0].apply(t,n)}catch(t){_W.console&&_K("jsPDF PubSub Error",t.message,t)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Sc(t){if(!(this instanceof Sc))return new Sc(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function Su(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Sf(t,e,r,n,i){if(!(this instanceof Sf))return new Sf(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,Su.call(this,n,i)}function Sd(t,e,r,n,i){if(!(this instanceof Sd))return new Sd(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,Su.call(this,n,i)}function Sh(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",u=null;"object"===(0,wk.default)(t=t||{})&&(r=t.orientation,n=t.unit||n,i=t.format||i,a=t.compress||t.compressPdf||a,null!==(u=t.encryption||null)&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),c=t.defaultPathOperation||"S"),o=t.filters||(!0===a?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();
5var f=t.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=Sl;var p="1.3",m=h.__private__.getPdfVersion=function(){return p};h.__private__.setPdfVersion=function(t){p=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var y=h.__private__.getPageFormat=function(t){return v[t]};i=i||"a4";var g="compat",b="advanced",x=g;function w(){this.saveGraphicsState(),Z(new tC(td,0,0,-td,0,e2()*td).toString()+" cm"),this.setFontSize(this.getFontSize()/td),c="n",x=b}function j(){this.restoreGraphicsState(),c="S",x=g}var N=h.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};h.advancedAPI=function(t){var e=x===g;return e&&w.call(this),"function"!=typeof t||(t(this),e&&j.call(this)),this},h.compatAPI=function(t){var e=x===b;return e&&j.call(this),"function"!=typeof t||(t(this),e&&w.call(this)),this},h.isAdvancedAPI=function(){return x===b};var k,_=function(t){if(x!==b)throw Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},S=h.roundToPrecision=h.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};k=h.hpf=h.__private__.hpf="number"==typeof l?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return S(t,l)}:"smart"===l?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return S(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return S(t,16)};var A=h.f2=h.__private__.f2=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f2");return S(t,2)},O=h.__private__.f3=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f3");return S(t,3)},P=h.scale=h.__private__.scale=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.scale");return x===g?t*td:x===b?t:void 0},E=function(t){return P(x===g?e2()-t:x===b?t:void 0)};h.__private__.setPrecision=h.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var C,L="00000000000000000000000000000000",M=h.__private__.getFileId=function(){return L},T=h.__private__.setFileId=function(t){return L=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():L.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==u&&(el=new So(u.userPermissions,u.userPassword,u.ownerPassword,L)),L};h.setFileId=function(t){return T(t),this},h.getFileId=function(){return M()};var I=h.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=(e<0?"+":"-")+B(r)+"'"+B(n)+"'";return"D:"+t.getFullYear()+B(t.getMonth()+1)+B(t.getDate())+B(t.getHours())+B(t.getMinutes())+B(t.getSeconds())+i},D=h.__private__.convertPDFDateToDate=function(t){return new Date(parseInt(t.substr(2,4),10),parseInt(t.substr(6,2),10)-1,parseInt(t.substr(8,2),10),parseInt(t.substr(10,2),10),parseInt(t.substr(12,2),10),parseInt(t.substr(14,2),10),0)},R=h.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=I(t);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(t))throw Error("Invalid argument passed to 
5jsPDF.setCreationDate");e=t}return C=e},z=h.__private__.getCreationDate=function(t){var e=C;return"jsDate"===t&&(e=D(C)),e};h.setCreationDate=function(t){return R(t),this},h.getCreationDate=function(t){return z(t)};var F,B=h.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},q=h.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},U=0,V=[],H=[],W=0,$=[],G=[],K=!1,Y=H;h.__private__.setCustomOutputDestination=function(t){K=!0,Y=t};var X=function(t){K||(Y=t)};h.__private__.resetCustomOutputDestination=function(){K=!1,Y=H};var Z=h.__private__.out=function(t){return t=t.toString(),W+=t.length+1,Y.push(t),Y},J=h.__private__.write=function(t){return Z(1==arguments.length?t.toString():Array.prototype.join.call(arguments," "))},Q=h.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},tt=[["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 tt};var te=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(t){return te=x===b?t/td:t,this};var tr,tn=h.__private__.getFontSize=h.getFontSize=function(){return x===g?te:te*td},ti=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(t){return ti=t,this},h.__private__.getR2L=h.getR2L=function(){return ti};var ta,to=h.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))tr=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');tr=t}else tr=parseInt(t,10)};h.__private__.getZoomMode=function(){return tr};var ts,tl=h.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ta=t};h.__private__.getPageMode=function(){return ta};var tc=h.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');ts=t};h.__private__.getLayoutMode=function(){return ts},h.__private__.setDisplayMode=h.setDisplayMode=function(t,e,r){return to(t),tc(e),tl(r),this};var tu={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(t){if(-1===Object.keys(tu).indexOf(t))throw Error("Invalid argument passed to jsPDF.getDocumentProperty");return tu[t]},h.__private__.getDocumentProperties=function(){return tu},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(t){for(var e in tu)tu.hasOwnProperty(e)&&t[e]&&(tu[e]=t[e]);return this},h.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(tu).indexOf(t))throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");return tu[t]=e};var tf,td,th,tp,tm,tv={},ty={},tg=[],tb={},tx={},tw={},tj={},tN=null,tk=0,t_=[],tS=new Sl(h),tA=t.hotfixes||[],tO={},tP={},tE=[],tC=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(tC.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tC.prototype,"shy",{get:function(){return this._matrix[
vendor: 4,682 bytes, line 5
51]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tC.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tC.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tC.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tC.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tC.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tC.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tC.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tC.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tC.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tC.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tC.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tC.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tC.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tC.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),tC.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(k).join(t)},tC.prototype.multiply=function(t){return new tC(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},tC.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n,l=Math.sqrt((r-=t*s)*r+(n-=e*s)*n);return s/=l,t*(n/=l)<e*(r/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new tC(o,0,0,l,0,0),translate:new tC(1,0,0,1,i,a),rotate:new tC(t,e,-e,t,0,0),skew:new tC(1,0,s,1,0,0)}},tC.prototype.toString=function(t){return this.join(" ")},tC.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=1/(t*n-e*r),s=n*o,l=-e*o,c=-r*o,u=t*o;return new tC(s,l,c,u,-s*i-c*a,-l*i-u*a)},tC.prototype.applyToPoint=function(t){return new eW(t.x*this.sx+t.y*this.shx+this.tx,t.x*this.shy+t.y*this.sy+this.ty)},tC.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new eW(t.x+t.w,t.y+t.h));return new e$(e.x,e.y,r.x-e.x,r.y-e.y)},tC.prototype.clone=function(){return new tC(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},h.Matrix=tC;var tL=h.matrixMult=function(t,e){return e.multiply(t)},tM=new tC(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=tM;var tT=function(t,e){if(!tx[t]){var r=(e instanceof Sf?"Sh":"P")+(Object.keys(tb).length+1).toString(10);e.id=r,tx[t]=r,tb[r]=e,tS.publish("addPattern",e)}};h.ShadingPattern=Sf,h.TilingPattern=Sd,h.addShadingPattern=function(t,e){return _("addShadingPattern()"),tT(t,e),this},h.beginTilingPattern=function(t){_("beginTilingPattern()"),eK(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},h.endTilingPattern=function(t,e){_("endTilingPattern()"),e.stream=G[F].join("\n"),tT(t,e),tS.publish("endTilingPattern",e),tE.pop().restore()};var tI,tD=h.__private__.newObject=function(){var t=tR();return tz(t,!0),t},tR=h.__private__.newObjectDeferred=function(){return V[++U]=function(){return W},U},tz=function(t,e){return e="boolean"==typeof e&&e,V[t]=W,e&&Z(t+" 0 obj"),t},tF=h.__private__.newAdditionalObject=function(){var t={objId:tR(),content:""};return $.push(t),t},tB=tR(),tq=tR(),tU=h.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},tV=h.__private__.encodeColorString=function(t){"string"==typeof t&&(t={ch1:t});var e,r=t.ch1,n=t.ch2,i=t.ch3,a=t.ch4,o="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var s=new _Q(r);if(s.ok)r=s.toHex();else if(!/^\d*\.?\d*$/.test(r))throw Error('Invalid color "'+r+'" passed to 
5jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var l=parseInt(r.substr(1),16);r=l>>16&255,n=l>>8&255,i=255&l}if(void 0===n||void 0===a&&r===n&&n===i)e="string"==typeof r?r+" "+o[0]:2===t.precision?A(r/255)+" "+o[0]:O(r/255)+" "+o[0];else if(void 0===a||"object"===(0,wk.default)(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1. 1. 1.",o[1]].join(" ");e="string"==typeof r?[r,n,i,o[1]].join(" "):2===t.precision?[A(r/255),A(n/255),A(i/255),o[1]].join(" "):[O(r/255),O(n/255),O(i/255),o[1]].join(" ")}else e="string"==typeof r?[r,n,i,a,o[2]].join(" "):2===t.precision?[A(r),A(n),A(i),A(a),o[2]].join(" "):[O(r),O(n),O(i),O(a),o[2]].join(" ");return e},tH=h.__private__.getFilters=function(){return o},tW=h.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||tH(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==u&&void 0===o)throw Error("ObjectId must be passed to putStream for file encryption");null!==u&&(s=el.encryptor(o,0));var l={};!0===r&&(r=["FlateEncode"]);var c=t.additionalKeyValues||[],f=(l=void 0!==Sh.API.processDataByFilters?Sh.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===i&&c.push({key:"Length1",value:a})),0!=f.length)if(f.split("/").length-1==1)c.push({key:"Filter",value:f});else{c.push({key:"Filter",value:"["+f+"]"});for(var d=0;d<c.length;d+=1)if("DecodeParms"===c[d].key){for(var h=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)h.push("null");h.push(c[d].value),c[d].value="["+h.join(" ")+"]"}}Z("<<");for(var m=0;m<c.length;m++)Z("/"+c[m].key+" "+c[m].value);Z(">>"),0!==l.data.length&&(Z("stream"),Z(s(l.data)),Z("endstream"))},t$=h.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;tz(n,!0),Z("<</Type /Page"),Z("/Parent "+t.rootDictionaryObjId+" 0 R"),Z("/Resources "+t.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(k(t.mediaBox.bottomLeftX))+" "+parseFloat(k(t.mediaBox.bottomLeftY))+" "+k(t.mediaBox.topRightX)+" "+k(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&Z("/CropBox ["+k(t.cropBox.bottomLeftX)+" "+k(t.cropBox.bottomLeftY)+" "+k(t.cropBox.topRightX)+" "+k(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&Z("/BleedBox ["+k(t.bleedBox.bottomLeftX)+" "+k(t.bleedBox.bottomLeftY)+" "+k(t.bleedBox.topRightX)+" "+k(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&Z("/TrimBox ["+k(t.trimBox.bottomLeftX)+" "+k(t.trimBox.bottomLeftY)+" "+k(t.trimBox.topRightX)+" "+k(t.trimBox.topRightY)+"]"),null!==t.artBox&&Z("/ArtBox ["+k(t.artBox.bottomLeftX)+" "+k(t.artBox.bottomLeftY)+" "+k(t.artBox.topRightX)+" "+k(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&Z("/UserUnit "+t.userUnit),tS.publish("putPage",{objId:n,pageContext:t_[e],pageNumber:e,page:r}),Z("/Contents "+i+" 0 R"),Z(">>"),Z("endobj");var a=r.join("\n");return x===b&&(a+="\nQ"),tz(i,!0),tW({data:a,filters:tH(),objectId:i}),Z("endobj"),n},tG=h.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=tk;t++)t_[t].objId=tR(),t_[t].contentsObjId=tR();for(t=1;t<=tk;t++)r.push(t$({number:t,data:G[t],objId:t_[t].objId,contentsObjId:t_[t].contentsObjId,mediaBox:t_[t].mediaBox,cropBox:t_[t].cropBox,bleedBox:t_[t].bleedBox,trimBox:t_[t].trimBox,artBox:t_[t].artBox,userUnit:t_[t].userUnit,rootDictionaryObjId:tB,resourceDictionaryObjId:tq}));tz(tB,!0),Z("<</Type /Pages");var n="/Kids [";for(e=0;e<tk;e++)n+=r[e]+" 0 R ";Z(n+"]"),Z("/Count "+tk),Z(">>"),Z("endobj"),tS.publish("postPutPages")},tK=function(t){tS.publish("putFont",{font:t,out:Z,newObject:tD,putStream:tW}),!0!==t.isAlreadyPutted&&(t.objectNumber=tD(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+Ss(t.postScriptName)),Z("/Subtype /Type1"),"string"==typeof t.encoding&&Z("/Encoding /"+t.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},tY=function(t){t.objectNumber=tD();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[k(t.x),k(t.y),k(t.x+t.width),k(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),tW({data:t.pages[1].join("\n"),additionalKeyValues:e,objectId:t.objectNumber}),Z("endobj")},tX=function(t,e){e||(e=21);var r=tD(),n=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",l=0,c=0;c<n.length;c++){for(r=n[c];r>t[l+1].offset;)l++;var u=t[l].offset,f=(r-u)/(t[l+1].offset-u),d=t[l].color,h=t[l+1].color;s+=q(Math.round((1-f)*d[0]+f*h[0]).toString(16))+q(Math.round((1-f)*d[1]+f*h[1]).toString(16))+q(Math.round((1-f)*d[2]+f*h[2]).toString(16))}return s.trim()}(t.colors,e),i=[];
vendor: 4,349 bytes, line 5
5i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tW({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),Z("endobj"),t.objectNumber=tD(),Z("<< /ShadingType "+t.type),Z("/ColorSpace /DeviceRGB");var a="/Coords ["+k(parseFloat(t.coords[0]))+" "+k(parseFloat(t.coords[1]))+" ";2===t.type?a+=k(parseFloat(t.coords[2]))+" "+k(parseFloat(t.coords[3])):a+=k(parseFloat(t.coords[2]))+" "+k(parseFloat(t.coords[3]))+" "+k(parseFloat(t.coords[4]))+" "+k(parseFloat(t.coords[5])),Z(a+="]"),t.matrix&&Z("/Matrix ["+t.matrix.toString()+"]"),Z("/Function "+r+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},tZ=function(t,e){var r=tR(),n=tD();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(k).join(" ")+"]"}),i.push({key:"XStep",value:k(t.xStep)}),i.push({key:"YStep",value:k(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),tW({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),Z("endobj")},tJ=function(t){for(var e in t.objectNumber=tD(),Z("<<"),t)switch(e){case"opacity":Z("/ca "+A(t[e]));break;case"stroke-opacity":Z("/CA "+A(t[e]))}Z(">>"),Z("endobj")},tQ=function(t){tz(t.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in Z("/Font <<"),tv)tv.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&Z("/"+t+" "+tv[t].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(tb).length>0){for(var t in Z("/Shading <<"),tb)tb.hasOwnProperty(t)&&tb[t]instanceof Sf&&tb[t].objectNumber>=0&&Z("/"+t+" "+tb[t].objectNumber+" 0 R");tS.publish("putShadingPatternDict"),Z(">>")}}(),function(t){if(Object.keys(tb).length>0){for(var e in Z("/Pattern <<"),tb)tb.hasOwnProperty(e)&&tb[e]instanceof h.TilingPattern&&tb[e].objectNumber>=0&&tb[e].objectNumber<t&&Z("/"+e+" "+tb[e].objectNumber+" 0 R");tS.publish("putTilingPatternDict"),Z(">>")}}(t.objectOid),function(){if(Object.keys(tw).length>0){var t;for(t in Z("/ExtGState <<"),tw)tw.hasOwnProperty(t)&&tw[t].objectNumber>=0&&Z("/"+t+" "+tw[t].objectNumber+" 0 R");tS.publish("putGStateDict"),Z(">>")}}(),function(){for(var t in Z("/XObject <<"),tO)tO.hasOwnProperty(t)&&tO[t].objectNumber>=0&&Z("/"+t+" "+tO[t].objectNumber+" 0 R");tS.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},t0=function(t){ty[t.fontName]=ty[t.fontName]||{},ty[t.fontName][t.fontStyle]=t.id},t1=function(t,e,r,n,i){var a={id:"F"+(Object.keys(tv).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return tS.publish("addFont",{font:a,instance:this}),tv[a.id]=a,t0(a),a.id},t2=h.__private__.pdfEscape=h.pdfEscape=function(t,e){return(function(t,e){var r,n,i,a,o,s,l,c,u;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&tv[tf].metadata&&tv[tf].metadata[i]&&tv[tf].metadata[i].encoding&&(a=tv[tf].metadata[i].encoding,!o&&tv[tf].encoding&&(o=tv[tf].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(l=!1,s=[],r=0,n=t.length;r<n;r++)(c=o[t.charCodeAt(r)])?s.push(String.fromCharCode(c)):s.push(t[r]),s[r].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(r=t.length;void 0===l&&0!==r;)t.charCodeAt(r-1)>>8&&(l=!0),r--;if(!l)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((u=(c=t.charCodeAt(r))>>8)>>8)throw Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)})(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},t5=h.__private__.beginPage=function(t){G[++tk]=[],t_[tk]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},t6(tk),X(G[F])},t3=function(t,e){var n,a,o;switch(r=e||r,"string"==typeof t&&Array.isArray(n=y(t.toLowerCase()))&&
5(a=n[0],o=n[1]),Array.isArray(t)&&(a=t[0]*td,o=t[1]*td),isNaN(a)&&(a=i[0],o=i[1]),(a>14400||o>14400)&&(_G("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),a=Math.min(14400,a),o=Math.min(14400,o)),i=[a,o],r.substr(0,1)){case"l":o>a&&(i=[o,a]);break;case"p":a>o&&(i=[o,a])}t5(i),eO(eS),Z(eD),0!==eU&&Z(eU+" J"),0!==eV&&Z(eV+" j"),tS.publish("addPage",{pageNumber:tk})},t4=function(t){t>0&&t<=tk&&(G.splice(t,1),t_.splice(t,1),tk--,F>tk&&(F=tk),this.setPage(F))},t6=function(t){t>0&&t<=tk&&(F=t)},t8=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return G.length-1},t7=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:tv[tf].fontName,e=void 0!==e?e:tv[tf].fontStyle,void 0!==ty[n=t.toLowerCase()]&&void 0!==ty[n][e]?i=ty[n][e]:void 0!==ty[t]&&void 0!==ty[t][e]?i=ty[t][e]:!1===r.disableWarning&&_G("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=ty.times[e])&&(i=ty.times.normal),i},t9=h.__private__.putInfo=function(){var t=tD(),e=function(t){return t};
vendor: 5,606 bytes, line 5
5for(var r in null!==u&&(e=el.encryptor(t,0)),Z("<<"),Z("/Producer ("+t2(e("jsPDF "+Sh.version))+")"),tu)tu.hasOwnProperty(r)&&tu[r]&&Z("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+t2(e(tu[r]))+")");Z("/CreationDate ("+t2(e(C))+")"),Z(">>"),Z("endobj")},et=h.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||tB;switch(tD(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+e+" 0 R"),tr||(tr="fullwidth"),tr){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+tr;"%"===r.substr(r.length-1)&&(tr=parseInt(tr)/100),"number"==typeof tr&&Z("/OpenAction [3 0 R /XYZ null null "+A(tr)+"]")}switch(ts||(ts="continuous"),ts){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}ta&&Z("/PageMode /"+ta),tS.publish("putCatalog"),Z(">>"),Z("endobj")},ee=h.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(U+1)),Z("/Root "+U+" 0 R"),Z("/Info "+(U-1)+" 0 R"),null!==u&&Z("/Encrypt "+el.oid+" 0 R"),Z("/ID [ <"+L+"> <"+L+"> ]"),Z(">>")},er=h.__private__.putHeader=function(){Z("%PDF-"+p),Z("%ºß¬à")},en=h.__private__.putXRef=function(){var t="0000000000";Z("xref"),Z("0 "+(U+1)),Z("0000000000 65535 f ");for(var e=1;e<=U;e++)"function"==typeof V[e]?Z((t+V[e]()).slice(-10)+" 00000 n "):void 0!==V[e]?Z((t+V[e]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},ei=h.__private__.buildDocument=function(){U=0,W=0,H=[],V=[],$=[],tB=tR(),tq=tR(),X(H),tS.publish("buildDocument"),er(),tG(),function(){tS.publish("putAdditionalObjects");for(var t=0;t<$.length;t++){var e=$[t];tz(e.objId,!0),Z(e.content),Z("endobj")}tS.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in tv)tv.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&tK(tv[t])}(),function(){var t;for(t in tw)tw.hasOwnProperty(t)&&tJ(tw[t])}(),function(){for(var t in tO)tO.hasOwnProperty(t)&&tY(tO[t])}(),function(t){var e;for(e in tb)tb.hasOwnProperty(e)&&(tb[e]instanceof Sf?tX(tb[e]):tb[e]instanceof Sd&&tZ(tb[e],t))}(t),tS.publish("putResources"),t.forEach(tQ),tQ({resourcesOid:tq,objectOid:Number.MAX_SAFE_INTEGER}),tS.publish("postPutResources"),null!==u&&(el.oid=tD(),Z("<<"),Z("/Filter /Standard"),Z("/V "+el.v),Z("/R "+el.r),Z("/U <"+el.toHexString(el.U)+">"),Z("/O <"+el.toHexString(el.O)+">"),Z("/P "+el.P),Z(">>"),Z("endobj")),t9(),et();var t,e=W;return en(),ee(),Z("startxref"),Z(""+e),Z("%%EOF"),X(G[F]),H.join("\n")},ea=h.__private__.getBlob=function(t){return new Blob([Q(t)],{type:"application/pdf"})},eo=h.output=h.__private__.output=((tI=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ei();case"save":h.save(e.filename);break;case"arraybuffer":return Q(ei());case"blob":return ea(ei());case"bloburi":case"bloburl":if(void 0!==_W.URL&&"function"==typeof _W.URL.createObjectURL)return _W.URL&&_W.URL.createObjectURL(ea(ei()))||void 0;_G("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=ei();try{r=_1(n)}catch(t){r=_1(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(_W)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+i+'"'+a+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");</script></body></html>",s=_W.open();return null!==s&&s.document.write(o),s}throw Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(_W)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',c=_W.open();if(null!==c){c.document.write(l);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(_W))throw Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',d=_W.open();if(null!==d&&(d.document.write(f),d.document.title=e.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return _W.document.location.href=this.output("datauristring",e);default:return null}}).foo=function(){try{return tI.apply(this,arguments)}catch(r){var t=r.stack||"";
vendor: 4,372 bytes, line 5
5~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+r.message;if(!_W.console)throw Error(e);_W.console.error(e,r),_W.alert&&alert(e)}},tI.foo.bar=tI,tI.foo),es=function(t){return!0===Array.isArray(tA)&&tA.indexOf(t)>-1};switch(n){case"pt":td=1;break;case"mm":td=72/25.4;break;case"cm":td=72/2.54;break;case"in":td=72;break;case"px":td=1==es("px_scaling")?.75:96/72;break;case"pc":case"em":td=12;break;case"ex":td=6;break;default:if("number"!=typeof n)throw Error("Invalid unit: "+n);td=n}var el=null;R(),T();var ec=h.__private__.getPageInfo=h.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:t_[t].objId,pageNumber:t,pageContext:t_[t]}},eu=h.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in t_)if(t_[e].objId===t)break;return ec(e)},ef=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:t_[F].objId,pageNumber:F,pageContext:t_[F]}};h.addPage=function(){return t3.apply(this,arguments),this},h.setPage=function(){return t6.apply(this,arguments),X.call(this,G[F]),this},h.insertPage=function(t){return this.addPage(),this.movePage(F,t),this},h.movePage=function(t,e){var r,n;if(t>e){r=G[t],n=t_[t];for(var i=t;i>e;i--)G[i]=G[i-1],t_[i]=t_[i-1];G[e]=r,t_[e]=n,this.setPage(e)}else if(t<e){r=G[t],n=t_[t];for(var a=t;a<e;a++)G[a]=G[a+1],t_[a]=t_[a+1];G[e]=r,t_[e]=n,this.setPage(e)}return this},h.deletePage=function(){return t4.apply(this,arguments),this},h.__private__.text=h.text=function(t,e,r,n,i){var a,o,s,l,c,u,f,h,p,m=(n=n||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof r||Array.isArray(r))){var v=r;r=e,e=t,t=v}if(arguments[3]instanceof tC==0?(s=arguments[4],l=arguments[5],"object"===(0,wk.default)(f=arguments[3])&&null!==f||("string"==typeof s&&(l=s,s=null),"string"==typeof f&&(l=f,f=null),"number"==typeof f&&(s=f,f=null),n={flags:f,angle:s,align:l})):(_("The transform parameter of text() with a Matrix value"),p=i),isNaN(e)||isNaN(r)||null==t)throw Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var y,g="",w="number"==typeof n.lineHeightFactor?n.lineHeightFactor:e_,j=m.internal.scaleFactor;function N(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function S(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(n=a.shift())?o.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&o.push([(i=e(n[0],n[1],n[2]))[0],i[1],i[2]]);r=o}return r}var A=!1,O=!0;if("string"==typeof t)A=!0;else if(Array.isArray(t)){var E=t.concat();o=[];for(var C,L=E.length;L--;)("string"!=typeof(C=E.shift())||Array.isArray(C)&&"string"!=typeof C[0])&&(O=!1);A=O}if(!1===A)throw Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var M=te/m.internal.scaleFactor,T=M*(w-1);switch(n.baseline){case"bottom":r-=T;break;case"top":r+=M-T;break;case"hanging":r+=M-2*T;break;case"middle":r+=M/2-T}if((u=n.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(m.splitTextToSize(e,u))},[]))),a={text:t,x:e,y:r,options:n,mutex:{pdfEscape:t2,activeFontKey:tf,fonts:tv,activeFontSize:te}},tS.publish("preProcessText",a),t=a.text,s=(n=a.options).angle,p instanceof tC==0&&s&&"number"==typeof s){s*=Math.PI/180,0===n.rotationDirection&&(s=-s),x===b&&(s=-s);var I=Math.cos(s),D=Math.sin(s);p=new tC(I,D,-D,I,0,0)}else s&&s instanceof tC&&(p=s);x!==b||p||(p=tM),void 0!==(c=n.charSpace||eB)&&(g+=k(P(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=n.horizontalScale)&&(g+=k(100*h)+" Tz\n"),n.lang;var R=-1,z=void 0!==n.renderingMode?n.renderingMode:n.stroke,F=m.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case"fill":R=0;break;case 1:case!0:case"stroke":R=1;break;case 2:case"fillThenStroke":R=2;break;case 3:case"invisible":R=3;break;case 4:case"fillAndAddForClipping":R=4;break;case 5:case"strokeAndAddPathForClipping":R=5;break;
vendor: 5,032 bytes, line 5
5case 6:case"fillThenStrokeAndAddToPathForClipping":R=6;break;case 7:case"addToPathForClipping":R=7}var B=void 0!==F.usedRenderingMode?F.usedRenderingMode:-1;-1!==R?g+=R+" Tr\n":-1!==B&&(g+="0 Tr\n"),-1!==R&&(F.usedRenderingMode=R),l=n.align||"left";var q,U=te*w,V=m.internal.pageSize.getWidth(),H=tv[tf];c=n.charSpace||eB,u=n.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},n.flags);var W=[],$=function(t){return m.getStringUnitWidth(t,{font:H,charSpace:c,fontSize:te,doKerning:!1})*te/j};if("[object Array]"===Object.prototype.toString.call(t)){o=N(t),"left"!==l&&(q=o.map($));var G,K,Y=0;if("right"===l){e-=q[0],t=[],L=o.length;for(var X=0;X<L;X++)0===X?(K=eL(e),G=eM(r)):(K=P(Y-q[X]),G=-U),t.push([o[X],K,G]),Y=q[X]}else if("center"===l){e-=q[0]/2,t=[],L=o.length;for(var J=0;J<L;J++)0===J?(K=eL(e),G=eM(r)):(K=P((Y-q[J])/2),G=-U),t.push([o[J],K,G]),Y=q[J]}else if("left"===l){t=[],L=o.length;for(var Q=0;Q<L;Q++)t.push(o[Q])}else if("justify"===l&&"Identity-H"===H.encoding){t=[],L=o.length,u=0!==u?u:V;for(var tt=0,tr=0;tr<L;tr++)if(G=0===tr?eM(r):-U,K=0===tr?eL(e):tt,tr<L-1){var tn=P((u-q[tr])/(o[tr].split(" ").length-1)),ta=o[tr].split(" ");t.push([ta[0]+" ",K,G]),tt=0;for(var to=1;to<ta.length;to++){var ts=($(ta[to-1]+" "+ta[to])-$(ta[to]))*j+tn;to==ta.length-1?t.push([ta[to],ts,0]):t.push([ta[to]+" ",ts,0]),tt-=ts}}else t.push([o[tr],K,G]);t.push(["",tt,0])}else{if("justify"!==l)throw Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],L=o.length,u=0!==u?u:V,tr=0;tr<L;tr++){G=0===tr?eM(r):-U,K=0===tr?eL(e):0;var tl=o[tr].split(" ").length-1,tc=tl>0?(u-q[tr])/tl:0;tr<L-1?W.push(k(P(tc))):W.push(0),t.push([o[tr],K,G])}}}!0===("boolean"==typeof n.R2L?n.R2L:ti)&&(t=S(t,function(t,e,r){return[t.split("").reverse().join(""),e,r]})),a={text:t,x:e,y:r,options:n,mutex:{pdfEscape:t2,activeFontKey:tf,fonts:tv,activeFontSize:te}},tS.publish("postProcessText",a),t=a.text,y=a.mutex.isHex||!1;var tu=tv[tf].encoding;"WinAnsiEncoding"!==tu&&"StandardEncoding"!==tu||(t=S(t,function(t,e,r){return[t2(t.split("	").join(Array(n.TabLen||9).join(" ")),f),e,r]})),o=N(t),t=[];for(var td,th,tp,tm=+!!Array.isArray(o[0]),ty="",tg=function(t,e,r){var i="";return r instanceof tC?(r="number"==typeof n.angle?tL(r,new tC(1,0,0,1,t,e)):tL(new tC(1,0,0,1,t,e),r),x===b&&(r=tL(new tC(1,0,0,-1,0,0),r)),i=r.join(" ")+" Tm\n"):i=k(t)+" "+k(e)+" Td\n",i},tb=0;tb<o.length;tb++){switch(ty="",tm){case 1:tp=(y?"<":"(")+o[tb][0]+(y?">":")"),td=parseFloat(o[tb][1]),th=parseFloat(o[tb][2]);break;case 0:tp=(y?"<":"(")+o[tb]+(y?">":")"),td=eL(e),th=eM(r)}void 0!==W&&void 0!==W[tb]&&(ty=W[tb]+" Tw\n"),0===tb?t.push(ty+tg(td,th,p)+tp):0===tm?t.push(ty+tp):1===tm&&t.push(ty+tg(td,th,p)+tp)}t=(0===tm?t.join(" Tj\nT* "):t.join(" Tj\n"))+" Tj\n";var tx="BT\n/";return tx+=tf+" "+te+" Tf\n",tx+=k(te*w)+" TL\n",tx+=ez+"\n",tx+=g,tx+=t,Z(tx+="ET"),d[tf]=!0,m};var ed=h.__private__.clip=h.clip=function(t){return Z("evenodd"===t?"W*":"W"),this};h.clipEvenOdd=function(){return ed("evenodd")},h.__private__.discardPath=h.discardPath=function(){return Z("n"),this};var eh=h.__private__.isValidStyle=function(t){var e=!1;return -1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(t){return eh(t)&&(c=t),this};var ep=h.__private__.getStyle=h.getStyle=function(t){var e=c;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},em=h.close=function(){return Z("h"),this};h.stroke=function(){return Z("S"),this},h.fill=function(t){return ev("f",t),this},h.fillEvenOdd=function(t){return ev("f*",t),this},h.fillStroke=function(t){return ev("B",t),this},h.fillStrokeEvenOdd=function(t){return ev("B*",t),this};var ev=function(t,e){"object"===(0,wk.default)(e)?eb(e,t):Z(t)},ey=function(t){null===t||x===b&&void 0===t||Z(t=ep(t))};function eg(t,e,r,n,i){var a=new Sd(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);return a.stream=this.stream,tT(t+"$$"+this.cloneIndex+++"$$",a),a}var eb=function(t,e){var r=tx[t.key],n=tb[r];if(n instanceof Sf)Z("q"),Z(ex(e)),n.gState&&h.setGState(n.gState),Z(t.matrix.toString()+" cm"),Z("/"+r+" sh"),Z("Q");else if(n instanceof Sd){var i=new tC(1,0,0,-1,0,e2());t.matrix&&(i=i.multiply(t.matrix||tM),r=eg.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),Z("q"),Z("/Pattern cs"),Z("/"+r+" scn"),n.gState&&h.setGState(n.gState),Z(e),Z("Q")}},ex=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ew=h.moveTo=function(t,e){return Z(k(P(t))+" "+k(E(e))+" m"),this},ej=h.lineTo=function(t,e){return Z(k(P(t))+" "+k(E(e))+" l"),this},eN=h.curveTo=function(t,e,r,n,i,a){return Z([k(P(t)),k(E(e)),k(P(r)),k(E(n)),k(P(i)),k(E(a)),"c"].join(" ")),this};h.__private__.line=h.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!eh(i))throw Error("Invalid arguments passed to 
5jsPDF.line");return x===g?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},h.__private__.lines=h.lines=function(t,e,r,n,i,a){var o,s,l,c,u,f,d,h,p,m,v,y;if("number"==typeof t&&(y=r,r=e,e=t,t=y),n=n||[1,1],a=a||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!eh(i)||"boolean"!=typeof a)throw Error("Invalid arguments passed to jsPDF.lines");for(ew(e,r),o=n[0],s=n[1],c=t.length,m=e,v=r,l=0;l<c;l++)2===(u=t[l]).length?ej(m=u[0]*o+m,v=u[1]*s+v):(f=u[0]*o+m,d=u[1]*s+v,h=u[2]*o+m,p=u[3]*s+v,eN(f,d,h,p,m=u[4]*o+m,v=u[5]*s+v));return a&&em(),ey(i),this},h.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":ew(n[0],n[1]);break;case"l":ej(n[0],n[1]);break;case"c":eN.apply(this,n);break;case"h":em()}}return this},h.__private__.rect=h.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!eh(i))throw Error("Invalid arguments passed to jsPDF.rect");return x===g&&(n=-n),Z([k(P(t)),k(E(e)),k(P(r)),k(P(n)),"re"].join(" ")),ey(i),this},h.__private__.triangle=h.triangle=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!eh(o))throw Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,a-n],[t-i,e-a]],t,e,[1,1],o,!0),this},h.__private__.roundedRect=h.roundedRect=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!eh(o))throw Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),a=Math.min(a,.5*n),this.lines([[r-2*i,0],[i*s,0,i,a-a*s,i,a],[0,n-2*a],[0,a*s,-i*s,a,-i,a],[2*i-r,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-n],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},h.__private__.ellipse=h.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!eh(i))throw Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return ew(t+r,e),eN(t+r,e-o,t+a,e-n,t,e-n),eN(t-a,e-n,t-r,e-o,t-r,e),eN(t-r,e+o,t-a,e+n,t,e+n),eN(t+a,e+n,t+r,e+o,t+r,e),ey(i),this},h.__private__.circle=h.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!eh(n))throw Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},h.setFont=function(t,e,r){return r&&(e=N(e,r)),tf=t7(t,e,{disableWarning:!1}),this};var ek=h.__private__.getFont=h.getFont=function(){return tv[t7.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var t,e,r={};for(t in ty)if(ty.hasOwnProperty(t))for(e in r[t]=[],ty[t])ty[t].hasOwnProperty(e)&&r[t].push(e);return r},h.addFont=function(t,e,r,n,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(r=N(r,n)),t1.call(this,t,e,r,i=i||"Identity-H")};var e_,eS=t.lineWidth||.200025,eA=h.__private__.getLineWidth=h.getLineWidth=function(){return eS},eO=h.__private__.setLineWidth=h.setLineWidth=function(t){return eS=t,Z(k(P(t))+" w"),this};h.__private__.setLineDash=Sh.API.setLineDash=Sh.API.setLineDashPattern=function(t,e){if(t=t||[],isNaN(e=e||0)||!Array.isArray(t))throw Error("Invalid arguments passed to jsPDF.setLineDash");return Z("["+(t=t.map(function(t){return k(P(t))}).join(" "))+"] "+(e=k(P(e)))+" d"),this};var eP=h.__private__.getLineHeight=h.getLineHeight=function(){return te*e_};h.__private__.getLineHeight=h.getLineHeight=function(){return te*e_};var eE=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(e_=t),this},eC=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return e_};eE(t.lineHeight);var eL=h.__private__.getHorizontalCoordinate=function(t){return P(t)},eM=h.__private__.getVerticalCoordinate=function(t){return x===b?t:t_[F].mediaBox.topRightY-t_[F].mediaBox.bottomLeftY-P(t)},eT=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(t){return k(eL(t))},eI=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(t){return k(eM(t))},eD=t.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return tU(eD)},h.__private__.setStrokeColor=h.setDrawColor=function(t,e,r,n){return Z(eD=tV({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2})),this};var eR=t.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return tU(eR)},h.__private__.setFillColor=h.setFillColor=function(t,e,r,n){return Z(eR=tV({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2})),this};var ez=t.textColor||"0 g",eF=h.__private__.getTextColor=h.getTextColor=function(){return tU(ez)};h.__private__.setTextColor=h.setTextColor=function(t,e,r,n){return ez=tV({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var eB=t.charSpace,eq=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(eB||0)};h.__private__.setCharSpace=h.setCharSpace=function(t){if(isNaN(t))throw Error("Invalid argument passed to 
5jsPDF.setCharSpace");return eB=t,this};var eU=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return eU=e,Z(e+" J"),this};var eV=0;h.__private__.setLineJoin=h.setLineJoin=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return eV=e,Z(e+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(t){if(isNaN(t=t||0))throw Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(k(P(t))+" M"),this},h.GState=Sc,h.setGState=function(t){(t="string"==typeof t?tw[tj[t]]:eH(null,t)).equals(tN)||(Z("/"+t.id+" gs"),tN=t)};var eH=function(t,e){if(!t||!tj[t]){var r=!1;for(var n in tw)if(tw.hasOwnProperty(n)&&tw[n].equals(e)){r=!0;break}if(r)e=tw[n];else{var i="GS"+(Object.keys(tw).length+1).toString(10);tw[i]=e,e.id=i}return t&&(tj[t]=e.id),tS.publish("addGState",e),e}};h.addGState=function(t,e){return eH(t,e),this},h.saveGraphicsState=function(){return Z("q"),tg.push({key:tf,size:te,color:ez}),this},h.restoreGraphicsState=function(){Z("Q");var t=tg.pop();return tf=t.key,te=t.size,ez=t.color,tN=null,this},h.setCurrentTransformationMatrix=function(t){return Z(t.toString()+" cm"),this},h.comment=function(t){return Z("#"+t),this};var eW=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},e$=function(t,e,r,n){eW.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a}
vendor: 4,410 bytes, line 5
5,set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},eG=function(){this.page=tk,this.currentPage=F,this.pages=G.slice(0),this.pagesContext=t_.slice(0),this.x=th,this.y=tp,this.matrix=tm,this.width=eX(F),this.height=eJ(F),this.outputDestination=Y,this.id="",this.objectNumber=-1};eG.prototype.restore=function(){tk=this.page,F=this.currentPage,t_=this.pagesContext,G=this.pages,th=this.x,tp=this.y,tm=this.matrix,eZ(F,this.width),eQ(F,this.height),Y=this.outputDestination};var eK=function(t,e,r,n,i){tE.push(new eG),tk=F=0,G=[],th=t,tp=e,tm=i,t5([r,n])};for(var eY in h.beginFormObject=function(t,e,r,n,i){return eK(t,e,r,n,i),this},h.endFormObject=function(t){return function(t){if(tP[t])tE.pop().restore();else{var e=new eG,r="Xo"+(Object.keys(tO).length+1).toString(10);e.id=r,tP[t]=r,tO[r]=e,tS.publish("addFormObject",e),tE.pop().restore()}}(t),this},h.doFormObject=function(t,e){var r=tO[tP[t]];return Z("q"),Z(e.toString()+" cm"),Z("/"+r.id+" Do"),Z("Q"),this},h.getFormObject=function(t){var e=tO[tP[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},h.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(_J(ea(ei()),t),"function"==typeof _J.unload&&_W.setTimeout&&setTimeout(_J.unload,911),this):new Promise(function(e,r){try{var n=_J(ea(ei()),t);"function"==typeof _J.unload&&_W.setTimeout&&setTimeout(_J.unload,911),e(n)}catch(t){r(t.message)}})},Sh.API)Sh.API.hasOwnProperty(eY)&&("events"===eY&&Sh.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(tS,Sh.API.events):h[eY]=Sh.API[eY]);function eX(t){return t_[t].mediaBox.topRightX-t_[t].mediaBox.bottomLeftX}function eZ(t,e){t_[t].mediaBox.topRightX=e+t_[t].mediaBox.bottomLeftX}function eJ(t){return t_[t].mediaBox.topRightY-t_[t].mediaBox.bottomLeftY}function eQ(t,e){t_[t].mediaBox.topRightY=e+t_[t].mediaBox.bottomLeftY}var e0=h.getPageWidth=function(t){return eX(t=t||F)/td},e1=h.setPageWidth=function(t,e){eZ(t,e*td)},e2=h.getPageHeight=function(t){return eJ(t=t||F)/td},e5=h.setPageHeight=function(t,e){eQ(t,e*td)};return h.internal={pdfEscape:t2,getStyle:ep,getFont:ek,getFontSize:tn,getCharSpace:eq,getTextColor:eF,getLineHeight:eP,getLineHeightFactor:eC,getLineWidth:eA,write:J,getHorizontalCoordinate:eL,getVerticalCoordinate:eM,getCoordinateString:eT,getVerticalCoordinateString:eI,collections:{},newObject:tD,newAdditionalObject:tF,newObjectDeferred:tR,newObjectDeferredBegin:tz,getFilters:tH,putStream:tW,events:tS,scaleFactor:td,pageSize:{getWidth:function(){return e0(F)},setWidth:function(t){e1(F,t)},getHeight:function(){return e2(F)},setHeight:function(t){e5(F,t)}},encryptionOptions:u,encryption:el,getEncryptor:function(t){return null!==u?el.encryptor(t,0):function(t){return t}},output:eo,getNumberOfPages:t8,get pages(){return G},out:Z,f2:A,f3:O,getPageInfo:ec,getPageInfoByObjId:eu,getCurrentPageInfo:ef,getPDFVersion:m,Point:eW,Rectangle:e$,Matrix:tC,hasHotfix:es},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return e0(F)},set:function(t){e1(F,t)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return e2(F)},set:function(t){e5(F,t)},enumerable:!0,configurable:!0}),(function(t){for(var e=0,r=tt.length;e<r;e++){var n=t1.call(this,t[e][0],t[e][1],t[e][2],tt[e][3],!0);!1===f&&(d[n]=!0);var i=t[e][0].split("-");t0({id:n,fontName:i[0],fontStyle:i[1]||""})}tS.publish("addFonts",{fonts:tv,dictionary:ty})}).call(h,tt),tf="F1",t3(i,r),tS.publish("initialized"),h}So.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},So.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},So.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},So.prototype.processOwnerPassword=function(t,e){return Si(Se(e).substr(0,5),t)},So.prototype.encryptor=function(t,e){var r=Se(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return Si(r,t)}},Sc.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||(0,wk.default)(t)!==(0,wk.default)(this))return!1;var n=0;for(e in this)if(!(r.indexOf(e)>
5=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;n++}for(e in t)t.hasOwnProperty(e)&&0>r.indexOf(e)&&n--;return 0===n},Sh.API={events:[]},Sh.version="3.0.4";var Sp=Sh.API,Sm=1,Sv=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Sy=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Sg=function(t){return t.toFixed(2)},Sb=function(t){return t.toFixed(5)};Sp.__acroform__={};var Sx=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},Sw=function(t){return t*Sm},Sj=function(t){var e=new SF,r=SQ.internal.getHeight(t)||0;return e.BBox=[0,0,Number(Sg(SQ.internal.getWidth(t)||0)),Number(Sg(r))],e},SN=Sp.__acroform__.setBit=function(t,e){if(e=e||0,isNaN(t=t||0)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},Sk=Sp.__acroform__.clearBit=function(t,e){if(e=e||0,isNaN(t=t||0)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},S_=Sp.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},SS=Sp.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return S_(t,e-1)},SA=Sp.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return SN(t,e-1)},SO=Sp.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Sk(t,e-1)},SP=Sp.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+s)||0,l.upperRight_X=r(i+o)||0,l.upperRight_Y=n(a)||0,[Number(Sg(l.lowerLeft_X)),Number(Sg(l.lowerLeft_Y)),Number(Sg(l.upperRight_X)),Number(Sg(l.upperRight_Y))]},SE=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=SC(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+Sg(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=Sj(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},SC=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map(function(t){return t.split("\n")}):i.map(function(t){return[t]});var a=r,o=SQ.internal.getHeight(t)||0;o=o<0?-o:o;var s=SQ.internal.getWidth(t)||0;s=s<0?-s:s,a++;i:for(;a>0;){e="";var l,c,u=SL("3",t,--a).height,f=t.multiline?o-a:(o-u)/2,d=f+=2,h=0,p=0,m=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+SL(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var v="",y=0,g=0;g<i.length;g++)if(i.hasOwnProperty(g)){var b=!1;if(1!==i[g].length&&m!==i[g].length-1){if((u+2)*(y+2)+2>o)continue i;v+=i[g][m],b=!0,p=g,g--}else{v=" "==(v+=i[g][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x,w,j=parseInt(g),N=(x=v,w=a,j+1<i.length&&SL(x+" "+i[j+1][0],t,w).width<=s-4),k=g>=i.length-1;if(N&&!k){v+=" ",m=0;continue}if(N||k){if(k)p=j;else if(t.multiline&&(u+2)*(y+2)+2>o)continue i}else{if(!t.multiline||(u+2)*(y+2)+2>o)continue i;p=j}}for(var _="",S=h;S<=p;S++){var A=i[S];if(t.multiline){if(S===p){_+=A[m]+" ",m=(m+1)%A.length;continue}if(S===h){_+=A[A.length-1]+" ";continue}}_+=A[0]+" "}switch(c=SL(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,t,a).width,t.textAlign){case"right":l=s-c-2;break;case"center":l=(s-c)/2;break;default:l=2}e+=Sg(l)+" "+Sg(d)+" Td\n",e+="("+Sv(_)+") Tj\n",e+=-Sg(l)+" 0 Td\n",d=-(a+2),c=0,h=b?p:p+1,y++,v=""}break}return n.text=e,n.fontSize=a,n},SL=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),
vendor: 5,235 bytes, line 5
5charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},SM={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ST=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===r.type&&t.object===r.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},SI=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(Sq.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(SM)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("Exception while creating AcroformDictionary");Sm=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new SB,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),t.internal.events.subscribe("buildDocument",function(){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&ST(n,t)}}),t.internal.events.subscribe("putCatalog",function(){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var r=!t;for(var n in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(n)){var i=t[n],a=[],o=i.Rect;if(i.Rect&&(i.Rect=SP(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=SQ.createDefaultAppearanceStream(i),"object"===(0,wk.default)(i)&&"function"==typeof i.getKeyValueListForStream&&(a=i.getKeyValueListForStream()),i.Rect=o,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=SE(i);a.push({key:"AP",value:"<</N "+s+">>"}),e.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var l="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var u=i.appearanceStreamContent[c];if(l+="/"+c+" <<",Object.keys(u).length>=1||Array.isArray(u)){for(var n in u)if(u.hasOwnProperty(n)){var f=u[n];"function"==typeof f&&(f=f.call(e,i)),l+="/"+n+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=u)&&(f=f.call(e,i)),l+="/"+n+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);l+=">>"}a.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:a,objectId:i.objId}),e.internal.out("endobj")}r&&function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];e.internal.newObjectDeferredBegin(n.objId,!0),"object"===(0,wk.default)(n)&&"function"==typeof n.putStream&&n.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},SD=Sp.__acroform__.arrayToPdfArray=function(t,e,r){var n=function(t){return t};if(Array.isArray(t)){for(var i="[",a=0;a<t.length;a++)switch(0!==a&&(i+=" "),(0,wk.default)(t[a])){case"boolean":case"number":case"object":i+=t[a].toString();break;case"string":"/"!==t[a].substr(0,1)?(void 0!==e&&r&&(n=r.internal.getEncryptor(e)),i+="("+Sv(n(t[a].toString()))+")"):i+=t[a].toString()}return i+"]"}throw Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},SR=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+Sv(n(t))+")"},Sz=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Sz.prototype.toString=function(){return this.objId+" 0 R"},Sz.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Sz.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)});for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:SD(i,this.objId,this.scope)}):i instanceof Sz?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};
5var SF=function(){Sz.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};Sx(SF,Sz);var SB=function(){Sz.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Sv(e(t))+")"}},set:function(e){t=e}})};Sx(SB,Sz);var Sq=function t(){Sz.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!SS(e,3)},set:function(t){!0==!!t?this.F=SA(e,3):this.F=SO(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof SY)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Sv(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a}
5,set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Sm:c},set:function(t){c=t}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof SY||this instanceof SZ))return SR(f,this.objId,this.scope)},set:function(t){f=t.toString()}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof S$==0?SR(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof S$==0?"("===t.substr(0,1)?Sy(t.substr(1,t.length-2)):Sy(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof S$==1?Sy(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof S$==1?"/"+t:t}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof S$==0?SR(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof S$==0?"("===t.substr(0,1)?Sy(t.substr(1,t.length-2)):Sy(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof S$==1?Sy(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof S$==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(t){m=!!t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,1)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,1):this.Ff=SO(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,2)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,2):this.Ff=SO(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,3)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,3):this.Ff=SO(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==v)return v},set:function(t){if(-1===[0,1,2].indexOf(t))throw Error('Invalid value "'+t+'" for attribute Q supplied.');v=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(v){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:v=2;break;case"center":case 1:v=1;break;default:v=0}}})};Sx(Sq,Sz);var SU=function(){Sq.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return SD(e,this.objId,this.scope)}
5,set:function(t){var r;r=[],"string"==typeof t&&(r=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(t,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,18)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,18):this.Ff=SO(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,19)},set:function(t){!0===this.combo&&(!0==!!t?this.Ff=SA(this.Ff,19):this.Ff=SO(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,20)},set:function(t){!0==!!t?(this.Ff=SA(this.Ff,20),e.sort()):this.Ff=SO(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,22)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,22):this.Ff=SO(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,23)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,23):this.Ff=SO(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,27)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,27):this.Ff=SO(this.Ff,27)}}),this.hasAppearanceStream=!1};Sx(SU,Sq);var SV=function(){SU.call(this),this.fontName="helvetica",this.combo=!1};Sx(SV,SU);var SH=function(){SV.call(this),this.combo=!0};Sx(SH,SV);var SW=function(){SH.call(this),this.edit=!0};Sx(SW,SH);var S$=function(){Sq.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,15)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,15):this.Ff=SO(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,16)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,16):this.Ff=SO(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,17)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,17):this.Ff=SO(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,26)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,26):this.Ff=SO(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+Sv(t(e[r]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===(0,wk.default)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};Sx(S$,Sq);var SG=function(){S$.call(this),this.pushButton=!0};Sx(SG,S$);var SK=function(){S$.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};Sx(SK,S$);var SY=function(){Sq.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var t,e,r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),n)r.push("/"+e+" ("+Sv(t(n[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===(0,wk.default)(t)&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}
vendor: 4,399 bytes, line 5
5),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=SQ.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Sx(SY,Sq),SK.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},SK.prototype.createOption=function(t){var e=new SY;return e.Parent=this,e.optionName=t,this.Kids.push(e),S0.call(this.scope,e),e};var SX=function(){S$.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=SQ.CheckBox.createAppearanceStream()};Sx(SX,S$);var SZ=function(){Sq.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,13)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,13):this.Ff=SO(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,21)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,21):this.Ff=SO(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,23)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,23):this.Ff=SO(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,24)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,24):this.Ff=SO(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,25)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,25):this.Ff=SO(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,26)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,26):this.Ff=SO(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Sx(SZ,Sq);var SJ=function(){SZ.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!SS(this.Ff,14)},set:function(t){!0==!!t?this.Ff=SA(this.Ff,14):this.Ff=SO(this.Ff,14)}}),this.password=!0};Sx(SJ,SZ);var SQ={CheckBox:{createAppearanceStream:function(){return{N:{On:SQ.CheckBox.YesNormal},D:{On:SQ.CheckBox.YesPushDown,Off:SQ.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=SC(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+Sg(SQ.internal.getWidth(t))+" "+Sg(SQ.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Sg(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=Sj(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=SQ.internal.getHeight(t),o=SQ.internal.getWidth(t),s=SC(t,t.caption);return i.push("1 g"),i.push("0 0 "+Sg(o)+" "+Sg(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Sg(o-1)+" "+Sg(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+Sg(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Sg(SQ.internal.getWidth(t))+" "+Sg(SQ.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:SQ.RadioButton.Circle.OffPushDown},N:{}}
5;return e.N[t]=SQ.RadioButton.Circle.YesNormal,e.D[t]=SQ.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Sj(t);e.scope=t.scope;var r=[],n=SQ.internal.getWidth(t)<=SQ.internal.getHeight(t)?SQ.internal.getWidth(t)/4:SQ.internal.getHeight(t)/4,i=Number(((n=Number((.9*n).toFixed(5)))*SQ.internal.Bezier_C).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Sb(SQ.internal.getWidth(t)/2)+" "+Sb(SQ.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=[],n=SQ.internal.getWidth(t)<=SQ.internal.getHeight(t)?SQ.internal.getWidth(t)/4:SQ.internal.getHeight(t)/4,i=Number((2*(n=Number((.9*n).toFixed(5)))).toFixed(5)),a=Number((i*SQ.internal.Bezier_C).toFixed(5)),o=Number((n*SQ.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Sb(SQ.internal.getWidth(t)/2)+" "+Sb(SQ.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Sb(SQ.internal.getWidth(t)/2)+" "+Sb(SQ.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=[],n=SQ.internal.getWidth(t)<=SQ.internal.getHeight(t)?SQ.internal.getWidth(t)/4:SQ.internal.getHeight(t)/4,i=Number((2*(n=Number((.9*n).toFixed(5)))).toFixed(5)),a=Number((i*SQ.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Sb(SQ.internal.getWidth(t)/2)+" "+Sb(SQ.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:SQ.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=SQ.RadioButton.Cross.YesNormal,e.D[t]=SQ.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Sj(t);e.scope=t.scope;var r=[],n=SQ.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+Sg(SQ.internal.getWidth(t)-2)+" "+Sg(SQ.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Sg(n.x1.x)+" "+Sg(n.x1.y)+" m"),r.push(Sg(n.x2.x)+" "+Sg(n.x2.y)+" l"),r.push(Sg(n.x4.x)+" "+Sg(n.x4.y)+" m"),r.push(Sg(n.x3.x)+" "+Sg(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=SQ.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+Sg(SQ.internal.getWidth(t))+" "+Sg(SQ.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Sg(SQ.internal.getWidth(t)-2)+" "+Sg(SQ.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Sg(r.x1.x)+" "+Sg(r.x1.y)+" m"),n.push(Sg(r.x2.x)+" "+Sg(r.x2.y)+" l"),n.push(Sg(r.x4.x)+" "+Sg(r.x4.y)+" m"),n.push(Sg(r.x3.x)+" "+Sg(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Sj(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Sg(SQ.internal.getWidth(t))+" "+Sg(SQ.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};SQ.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=SQ.internal.getWidth(t),r=SQ.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},SQ.internal.getWidth=function(t){var e=0;return"object"===(0,wk.default)(t)&&(e=Sw(t.Rect[2])),e},SQ.internal.getHeight=function(t){var e=0;return"object"===(0,wk.default)(t)&&(e=Sw(t.Rect[3])),e};var S0=Sp.addField=function(t){if(SI(this,t),!(t instanceof Sq))throw Error("Invalid argument passed to 
5jsPDF.addField.");return t.scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};function S1(t){return t.reduce(function(t,e,r){return t[e]=r,t},{})}Sp.AcroFormChoiceField=SU,Sp.AcroFormListBox=SV,Sp.AcroFormComboBox=SH,Sp.AcroFormEditBox=SW,Sp.AcroFormButton=S$,Sp.AcroFormPushButton=SG,Sp.AcroFormRadioButton=SK,Sp.AcroFormCheckBox=SX,Sp.AcroFormTextField=SZ,Sp.AcroFormPasswordField=SJ,Sp.AcroFormAppearance=SQ,Sp.AcroForm={ChoiceField:SU,ListBox:SV,ComboBox:SH,EditBox:SW,Button:S$,PushButton:SG,RadioButton:SK,CheckBox:SX,TextField:SZ,PasswordField:SJ,Appearance:SQ},Sh.AcroForm={ChoiceField:SU,ListBox:SV,ComboBox:SH,EditBox:SW,Button:S$,PushButton:SG,RadioButton:SK,CheckBox:SX,TextField:SZ,PasswordField:SJ,Appearance:SQ},Sh.AcroForm,AO=Sh.API,AP="addImage_",AO.__addimage__={},AE="UNKNOWN",AC={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},AL=AO.__addimage__.getImageFileTypeByImageData=function(t,e){var r,n,i,a,o,s=AE;if("RGBA"===(e=e||AE)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(AX(t))for(o in AC)for(i=AC[o],r=0;r<i.length;r+=1){for(a=!0,n=0;n<i[r].length;n+=1)if(void 0!==i[r][n]&&i[r][n]!==t[n]){a=!1;break}if(!0===a){s=o;break}}else for(o in AC)for(i=AC[o],r=0;r<i.length;r+=1){for(a=!0,n=0;n<i[r].length;n+=1)if(void 0!==i[r][n]&&i[r][n]!==t.charCodeAt(n)){a=!1;break}if(!0===a){s=o;break}}return s===AE&&e!==AE&&(s=e),s},AM=function t(e){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===AW.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===AW.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(n({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:c,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var u,f=null!=(u=e.sMaskBitsPerComponent)?u:e.bitsPerComponent,d={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:f,data:e.sMask};"filter"in e&&(d.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(f," /Columns ").concat(e.width),d.filter=e.filter),t.call(this,d)}if(e.colorSpace===AW.INDEXED){var h=this.internal.newObject();n({data:AJ(new Uint8Array(e.palette)),objectId:h}),r("endobj")}},AT=function(){var t=this.internal.collections[AP+"images"];for(var e in t)AM.call(this,t[e])},AI=function(){var t,e=this.internal.collections[AP+"images"],r=this.internal.write;for(var n in e)r("/I"+(t=e[n]).index,t.objectId,"0","R")},AD=function(){this.internal.collections[AP+"images"]||(this.internal.collections[AP+"images"]={},this.internal.events.subscribe("putResources",AT),this.internal.events.subscribe("putXobjectDict",AI))},AR=function(){var t=this.internal.collections[AP+"images"];return AD.call(this),t},Az=function(){return Object.keys(this.internal.collections[AP+"images"]).length},AF=function(t){return"function"==typeof AO["process"+t.toUpperCase()]},AB=function(t){return"object"===(0,wk.default)(t)&&1===t.nodeType},Aq=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r,n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return _0(unescape(n).split("base64,").pop());var i=AO.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);switch(e){case"PNG":r="image/png";break;case"WEBP":r="image/webp";break;default:r="image/jpeg"}return _0(t.toDataURL(r,1).split("base64,").pop())}},AU=function(t){var e=this.internal.collections[AP+"images"];if(e){for(var r in e)if(t===e[r].alias)return e[r]}},AV=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},AH=function(t,e,r,n,i,a){var o=AV.call(this,r,n,i),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=AR.call(this);if(r=o[0],n=o[1],c[i.index]=i,a)var u=Math.cos(a*=Math.PI/180),f=Math.sin(a),d=function(t){return t.toFixed(4)},h=[d(u),d(f),d(-1*f),d(u),0,0,"cm"];this.internal.write("q"),a?(this.internal.write(["1 0 0 1",s(t),l(e+n),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([s(r),"0 0",s(n),"0 0 cm"].join(" "))):this.internal.write([s(r),"0 0",s(n),s(t),l(e+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write("1 0 0 -1 0 0 cm"),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},AW=AO.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},AO.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},A$=AO.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},AG=AO.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e)|0;else if(AX(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e]|0;return n}
5,AK=AO.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},AY=AO.__addimage__.extractImageFromDataUrl=function(t){if(null==t||!(t=t.trim()).startsWith("data:"))return null;var e=t.indexOf(",");return e<0?null:t.substring(0,e).trim().endsWith("base64")?t.substring(e+1):null},AO.__addimage__.isArrayBuffer=function(t){return t instanceof ArrayBuffer},AX=AO.__addimage__.isArrayBufferView=function(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array},AZ=AO.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},AJ=AO.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=AX(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e},AO.addImage=function(){if("number"==typeof arguments[1]?(e=AE,r=arguments[1],n=arguments[2],i=arguments[3],a=arguments[4],o=arguments[5],s=arguments[6],l=arguments[7]):(e=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],a=arguments[5],o=arguments[6],s=arguments[7],l=arguments[8]),"object"===(0,wk.default)(t=arguments[0])&&!AB(t)&&"imageData"in t){var t,e,r,n,i,a,o,s,l,c=t;t=c.imageData,e=c.format||e||AE,r=c.x||r||0,n=c.y||n||0,i=c.w||c.width||i,a=c.h||c.height||a,o=c.alias||o,s=c.compression||s,l=c.rotation||c.angle||l}var u=this.internal.getFilters();if(void 0===s&&-1!==u.indexOf("FlateEncode")&&(s="SLOW"),isNaN(r)||isNaN(n))throw Error("Invalid coordinates passed to jsPDF.addImage");AD.call(this);var f=AQ.call(this,t,e,o,s);return AH.call(this,r,n,i,a,f,l),this},AQ=function(t,e,r,n){if("string"==typeof t&&AL(t)===AE){var i,a,o,s,l,c=A0(t=unescape(t),!1);(""!==c||void 0!==(c=AO.loadFile(t,!0)))&&(t=c)}if(AB(t)&&(t=Aq(t,e)),!AF(e=AL(t,e)))throw Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if((null==(o=r)||0===o.length)&&(r="string"==typeof(s=t)||AX(s)?AG(s):AX(s.data)?AG(s.data):null),(i=AU.call(this,r))||(t instanceof Uint8Array||"RGBA"===e||(a=t,t=AZ(t)),i=this["process"+e.toUpperCase()](t,Az.call(this),r,((l=n)&&"string"==typeof l&&(l=l.toUpperCase()),l in AO.image_compression?l:A$.NONE),a)),!i)throw Error("An unknown error occurred whilst processing the image.");return i},A0=AO.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var r,n,i="";if("string"==typeof t){n=null!=(r=AY(t))?r:t;try{i=_0(n)}catch(t){if(e)throw AK(n)?Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i},AO.getImageProperties=function(t){var e,r,n="";if(AB(t)&&(t=Aq(t)),"string"==typeof t&&AL(t)===AE&&(""===(n=A0(t,!1))&&(n=AO.loadFile(t)||""),t=n),!AF(r=AL(t)))throw Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(t instanceof Uint8Array||(t=AZ(t)),!(e=this["process"+r.toUpperCase()](t)))throw Error("An unknown error occurred whilst processing the image");return e.fileType=r,e},A1=Sh.API,A2=function(t){if(void 0!==t&&""!=t)return!0},Sh.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),A1.events.push(["putPage",function(t){for(var e,r,n,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,c=0;c<s.length&&!l;c++)switch((e=s[c]).type){case"link":(A2(e.options.url)||A2(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<s.length;u++){e=s[u];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(h.objId),v=e.title||"Note";h.content=n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y)+"] ")+"/Contents ("+f(m(e.contents))+")"+(" /Popup "+p.objId)+" 0 R"+(" /P "+o.objId)+" 0 R"+(" /T ("+f(m(v)))+") >>";var y=h.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(e.bounds.x+30)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+a(e.bounds.y)+"] ")+" /Parent "+y,e.open&&(n+=" /Open true"),p.content=n+=" >>
5",this.internal.write(h.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y+e.bounds.h)+"] ";var g=e.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+f(d(e.contents))+")"+(" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+g)+") /Border [0 0 0] >>",this.internal.write(n);break;case"link":if(e.options.name){var b=this.annotations._nameMap[e.options.name];e.options.pageNumber=b.page,e.options.top=b.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",n="",e.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(e.options.url))+") >>";else if(e.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,n+=" /FitV "+e.options.left+"]";break;default:var x=a(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),n+=" /XYZ "+e.options.left+" "+x+" "+e.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),A1.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},A1.link=function(t,e,r,n,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,
5s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+r),h:s(e+n)},options:i,type:"link"})},A1.textWithLink=function(t,e,r,n){var i,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;return void 0!==n.maxWidth?(a=n.maxWidth,i=Math.ceil(s*this.splitTextToSize(t,a).length)):(a=o,i=s),this.text(t,e,r,n),r+=.2*s,"center"===n.align&&(e-=o/2),"right"===n.align&&(e-=o),this.link(e,r-s,a,i,n),o},A1.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},A5=Sh.API,A3={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
vendor: 4,577 bytes, line 5
57],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},A4={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},A6={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A8=[1570,1571,1573,1575],A5.__arabicParser__={},A7=A5.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==A3[t.charCodeAt(0)]},A9=A5.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},Ot=A5.__arabicParser__.isArabicEndLetter=function(t){return A9(t)&&A7(t)&&A3[t.charCodeAt(0)].length<=2},Oe=A5.__arabicParser__.isArabicAlfLetter=function(t){return A9(t)&&A8.indexOf(t.charCodeAt(0))>=0},A5.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return A9(t)&&A7(t)&&A3[t.charCodeAt(0)].length>=1},Or=A5.__arabicParser__.arabicLetterHasFinalForm=function(t){return A9(t)&&A7(t)&&A3[t.charCodeAt(0)].length>=2},A5.__arabicParser__.arabicLetterHasInitialForm=function(t){return A9(t)&&A7(t)&&A3[t.charCodeAt(0)].length>=3},On=A5.__arabicParser__.arabicLetterHasMedialForm=function(t){return A9(t)&&A7(t)&&4==A3[t.charCodeAt(0)].length},Oi=A5.__arabicParser__.resolveLigatures=function(t){var e=0,r=A4,n="",i=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(i++,"number"==typeof(r=r[t.charCodeAt(e)])&&(n+=String.fromCharCode(r),r=A4,i=0),e===t.length-1&&(r=A4,n+=t.charAt(e-(i-1)),e-=i-1,i=0)):(r=A4,n+=t.charAt(e-i),e-=i,i=0);return n},A5.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==A6[t.charCodeAt(0)]},Oa=A5.__arabicParser__.getCorrectForm=function(t,e,r){return A9(t)?!1===A7(t)?-1:!Or(t)||!A9(e)&&!A9(r)||!A9(r)&&Ot(e)||Ot(t)&&!A9(e)||Ot(t)&&Oe(e)||Ot(t)&&Ot(e)?0:On(t)&&A9(e)&&!Ot(e)&&A9(r)&&Or(r)?3:Ot(t)||!A9(r)?1:2:-1},Oo=function(t){var e=0,r=0,n=0,i="",a="",o="",s=(t=t||"").split("\\s+"),l=[];for(e=0;e<s.length;e+=1){for(l.push(""),r=0;r<s[e].length;r+=1)i=s[e][r],a=s[e][r-1],o=s[e][r+1],A9(i)?(n=Oa(i,a,o),l[e]+=-1!==n?String.fromCharCode(A3[i.charCodeAt(0)][n]):i):l[e]+=i;l[e]=Oi(l[e])}return l.join(" ")},Os=A5.__arabicParser__.processArabic=A5.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([Oo(e[n][0]),e[n][1],e[n][2]]):r.push([Oo(e[n])]);t=r}else t=Oo(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])},A5.events.push(["preProcessText",Os]),Sh.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform","javascript"===t.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},Ol=Sh.API,(Oc=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}
5),Object.defineProperty(this,"parentNode",{})}).prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Oc.prototype.toDataURL=function(){throw Error("toDataURL is not implemented.")},Ol.events.push(["initialized",function(){this.canvas=new Oc,this.canvas.pdf=this}]),Ou=Sh.API,Of={left:0,top:0,bottom:0,right:0},Od=!1,Oh=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Of),this.internal.__cell__.margins.width=this.getPageWidth(),Op.call(this))},Op=function(){this.internal.__cell__.lastCell=new Om,this.internal.__cell__.pages=1},(Om=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a}
vendor: 4,450 bytes, line 5
5,set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this}).prototype.clone=function(){return new Om(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Om.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Ou.setHeaderFunction=function(t){return Oh.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},Ou.getTextDimensions=function(t,e){Oh.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,a=0,o=0,s=0,l=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var c=e.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(l.splitTextToSize(e,c))},[])):t=Array.isArray(t)?t:[t];for(var u=0;u<t.length;u++)a<(s=this.getStringUnitWidth(t[u],{font:n})*r)&&(a=s);return 0!==a&&(o=t.length),{w:a/=i,h:Math.max((o*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/i,0)}},Ou.cellAddPage=function(){Oh.call(this),this.addPage();var t=this.internal.__cell__.margins||Of;return this.internal.__cell__.lastCell=new Om(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this},Ov=Ou.cell=function(){t=arguments[0]instanceof Om?arguments[0]:new Om(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),Oh.call(this);var t,e=this.internal.__cell__.lastCell,r=this.internal.__cell__.padding,n=this.internal.__cell__.margins||Of,i=this.internal.__cell__.tableHeaderRow,a=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+n.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=n.top,a&&i&&(this.printHeaderRow(t.lineNumber,!0),t.y+=i[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===Od?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-r,t.y+r,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+r,{align:"center",baseline:"top",maxWidth:t.width-r-r}):this.text(t.text,t.x+r,t.y+r,{align:"left",baseline:"top",maxWidth:t.width-r-r})),this.internal.__cell__.lastCell=t,this},Ou.table=function(t,e,r,n,i){if(Oh.call(this),!r)throw Error("No data for PDF table.");var a,o,s,l,c=[],u=[],f=[],d={},h={},p=[],m=[],v=(i=i||{}).autoSize||!1,y=!1!==i.printHeaders,g=i.css&&void 0!==i.css["font-size"]?16*i.css["font-size"]:i.fontSize||12,b=i.margins||Object.assign({width:this.getPageWidth()},Of),x="number"==typeof i.padding?i.padding:3,w=i.headerBackgroundColor||"#c8c8c8",j=i.headerTextColor||"#000";if(Op.call(this),this.internal.__cell__.printHeaders=y,this.internal.__cell__.margins=b,this.internal.__cell__.table_font_size=g,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=w,this.internal.__cell__.headerTextColor=j,this.setFontSize(g),null==n)u=c=Object.keys(r[0]),f=c.map(function(){return"left"});else if(Array.isArray(n)&&"object"===(0,wk.default)(n[0]))for(c=n.map(function(t){return t.name}),u=n.map(function(t){return t.prompt||t.name||""}),f=n.map(function(t){return t.align||"left"}),a=0;a<n.length;a+=1)h[n[a].name]=.7499990551181103*n[a].width;else Array.isArray(n)&&"string"==typeof n[0]&&(u=c=n,f=c.map(function(){return"left"}));if(v||Array.isArray(n)&&"string"==typeof n[0])for(a=0;a<c.length;a+=1){for(d[l=c[a]]=r.map(function(t){return t[l]}),this.setFont(void 0,"bold"),p.push(this.getTextDimensions(u[a],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),o=d[l],this.setFont(void 0,"normal"),s=0;s<o.length;s+=1)p.push(this.getTextDimensions(o[s],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);h[l]=Math.max.apply(null,p)+x+x,p=[]}if(y){var N={};for(a=0;a<c.length;a+=1)N[c[a]]={},N[c[a]].text=u[a],N[c[a]].align=f[a];var k=Oy.call(this,N,h);m=c.map(function(r){return new Om(t,e,h[r],k,N[r].text,void 0,N[r].align)}),this.setTableHeaderRow(m),this.printHeaderRow(1,!1)}var _=n.reduce(function(t,e){return t[e.name]=e.align,t},{});for(a=0;a<r.length;
5a+=1){"rowStart"in i&&i.rowStart instanceof Function&&i.rowStart({row:a,data:r[a]},this);var S=Oy.call(this,r[a],h);for(s=0;s<c.length;s+=1){var A=r[a][c[s]];"cellStart"in i&&i.cellStart instanceof Function&&i.cellStart({row:a,col:s,data:A},this),Ov.call(this,new Om(t,e,h[c[s]],S,A,a+2,_[c[s]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=e,this},Oy=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map(function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)},this).map(function(t){return this.getLineHeightFactor()*t.length*n/i+r+r},this).reduce(function(t,e){return Math.max(t,e)},0)},Ou.setTableHeaderRow=function(t){Oh.call(this),this.internal.__cell__.tableHeaderRow=t},Ou.printHeaderRow=function(t,e){if(Oh.call(this),!this.internal.__cell__.tableHeaderRow)throw Error("Property tableHeaderRow does not exist.");if(Od=!0,"function"==typeof this.internal.__cell__.headerFunction){var r,n=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Om(n[0],n[1],n[2],n[3],void 0,-1)}this.setFont(void 0,"bold");for(var i=[],a=0;a<this.internal.__cell__.tableHeaderRow.length;a+=1){r=this.internal.__cell__.tableHeaderRow[a].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,i.push(r)),r.lineNumber=t;var o=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ov.call(this,r),this.setTextColor(o)}i.length>0&&this.setTableHeaderRow(i),this.setFont(void 0,"normal"),Od=!1};var S2={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},S5=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],S3=S1(S5),S4=[100,200,300,400,500,600,700,800,900],S6=S1(S4);function S8(t){var e,r,n,i=t.family.replace(/"|'/g,"").toLowerCase(),a=S2[e=(e=t.style)||"normal"]?e:"normal",o=(r=t.weight)?"number"==typeof r?r>=100&&r<=900&&r%100==0?r:400:/^\d00$/.test(r)?parseInt(r):"bold"===r?700:400:400,s="number"==typeof S3[n=(n=t.stretch)||"normal"]?n:"normal";return{family:i,style:a,weight:o,stretch:s,src:t.src||[],ref:t.ref||{name:i,style:[s,a,o].join(" ")}}}function S7(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var S9={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},At={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ae(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Ar(t){return t.trimLeft()}var An,Ai,Aa,Ao,As,Al,Ac,Au,Af,Ad,Ah,Ap,Am,Av,Ay,Ag,Ab,Ax,Aw,Aj,AN,Ak,A_,AS,AA,AO,AP,AE,AC,AL,AM,AT,AI,AD,AR,Az,AF,AB,Aq,AU,AV,AH,AW,A$,AG,AK,AY,AX,AZ,AJ,AQ,A0,A1,A2,A5,A3,A4,A6,A8,A7,A9,Ot,Oe,Or,On,Oi,Oa,Oo,Os,Ol,Oc,Ou,Of,Od,Oh,Op,Om,Ov,Oy,Og,Ob,Ox,Ow,Oj,ON,Ok,O_,OS,OA,OO,OP,OE,OC,O
5L,OM,OT,OI,OD=["times"];function OR(t,e,r,n,i){var a=4,o=OF;switch(i){case Sh.API.image_compression.FAST:a=1,o=Oz;break;case Sh.API.image_compression.MEDIUM:a=6,o=OB;break;case Sh.API.image_compression.SLOW:a=9,o=Oq}var s=jq(t=function(t,e,r,n){for(var i,a=t.length/e,o=new Uint8Array(t.length+a),s=0;s<a;s+=1){var l=s*e,c=t.subarray(l,l+e);o.set(n(c,r,i),l+s),i=c}return o}(t,e,Math.ceil(r*n/8),o),{level:a});return Sh.API.__addimage__.arrayBufferToBinaryString(s)}function Oz(t,e){var r=t.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var a=t[i-e]||0;n[i+1]=t[i]-a+256&255}return n}function OF(t,e,r){var n=t.length,i=[];i[0]=2;for(var a=0;a<n;a+=1){var o=r&&r[a]||0;i[a+1]=t[a]-o+256&255}return i}function OB(t,e,r){var n=t.length,i=[];i[0]=3;for(var a=0;a<n;a+=1){var o=t[a-e]||0,s=r&&r[a]||0;i[a+1]=t[a]+256-(o+s>>>1)&255}return i}function Oq(t,e,r){var n=t.length,i=[];i[0]=4;for(var a=0;a<n;a+=1){var o=function(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),a=Math.abs(t+e-r-r);return n<=i&&n<=a?t:i<=a?e:r}(t[a-e]||0,r&&r[a]||0,r&&r[a-e]||0);i[a+1]=t[a]-o+256&255}return i}function OU(t,e,r){var n=e*r,i=Math.floor(n/8),a=16-(n-8*i+r);return OH(t,i)>>a&(1<<r)-1}function OV(t,e,r,n){var i,a=r*n,o=Math.floor(a/8),s=16-(a-8*o+n),l=(1<<n)-1;i=OH(t,o)&~(l<<s)&65535|(e&l)<<s,o+1<t.byteLength?t.setUint16(o,i,!1):t.setUint8(o,i>>8&255)}function OH(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function OW(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],a=1<<1+(7&i);t[e++],t[e++];var o=null,s=null;i>>7&&(o=e,s=a,e+=3*a);var l=!0,c=[],u=0,f=null,d=0,h=null;for(this.width=r,this.height=n;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,h=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((m=t[e++])>=0))throw Error("Invalid block size");if(0===m)break;e+=m}break;case 249:if(4!==t[e++]||0!==t[e+4])throw Error("Invalid graphics extension block.");var p=t[e++];u=t[e++]|t[e++]<<8,f=t[e++],1&p||(f=null),d=p>>2&7,e++;break;case 254:for(;;){if(!((m=t[e++])>=0))throw Error("Invalid block size");if(0===m)break;e+=m}break;default:throw Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,x=t[e++],w=x>>6&1,j=1<<1+(7&x),N=o,k=s,_=!1;x>>7&&(_=!0,N=e,k=j,e+=3*j);var S=e;for(e++;;){if(!((m=t[e++])>=0))throw Error("Invalid block size");if(0===m)break;e+=m}c.push({x:v,y:y,width:g,height:b,has_local_palette:_,palette_offset:N,palette_size:k,data_offset:S,data_length:e-S,transparent_index:f,interlaced:!!w,delay:u,disposal:d});break;case 59:l=!1;break;default:throw Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(t){if(t<0||t>=c.length)throw Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);O$(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=r-c,f=c,d=4*(i.y*r+i.x),h=4*((i.y+i.height)*r+i.x),p=d,m=4*u;!0===i.interlaced&&(m+=4*r*7);for(var v=8,y=0,g=o.length;y<g;++y){var b=o[y];if(0===f&&(f=c,(p+=m)>=h&&(m=4*u+4*r*(v-1),p=d+(c+u)*(v<<1),v>>=1)),b===l)p+=4;else{var x=t[s+3*b],w=t[s+3*b+1],j=t[s+3*b+2];n[p++]=j,n[p++]=w,n[p++]=x,n[p++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);O$(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=r-c,f=c,d=4*(i.y*r+i.x),h=4*((i.y+i.height)*r+i.x),p=d,m=4*u;!0===i.interlaced&&(m+=4*r*7);for(var v=8,y=0,g=o.length;y<g;++y){var b=o[y];if(0===f&&(f=c,(p+=m)>=h&&(m=4*u+4*r*(v-1),p=d+(c+u)*(v<<1),v>>=1)),b===l)p+=4;else{var x=t[s+3*b],w=t[s+3*b+1],j=t[s+3*b+2];n[p++]=x,n[p++]=w,n[p++]=j,n[p++]=255}--f}}}function O$(t,e,r,n){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,f=0,d=0,h=t[e++],p=new Int32Array(4096),m=null;;){for(;u<16&&0!==h;)f|=t[e++]<<u,u+=8,1===h?h=t[e++]:--h;if(u<l)break;var v=f&c;if(f>>=l,u-=l,v!==a){if(v===o)break;for(var y=v<s?v:m,g=0,b=y;b>a;)b=p[b]>>8,++g;var x=b;if(d+g+ +(y!==v)>n)return void _$("Warning, gif stream longer than expected.");r[d++]=x;var w=d+=g;for(y!==v&&(r[d++]=x),b=y;g--;)b=p[b],r[--w]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|x,s>=c+1&&l<12&&(++l,c=c<<1|1)),m=v}else s=o+1,c=(1<<(l=i+1))-1,m=null}return d!==n&&_$("Warning, gif stream shorter than expected."),r}function OG(t){var e,r,n,i,a,o=Math.floor,s=Array(64),l=Array(64),c=Array(64),u=Array(64),f=Array(65535),d=Array(65535),h=Array(64),p=Array(64),m=[],v=0,y=7,g=Array(64),b=Array(64),x=Array(64),w=Array(256),j=Array(2048),N=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function L(t,e){for(var r=0,n=0,i=[],a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function M(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(v|=1<<y),r--,--y<0&&(255==v?(T(255),T(0)):T(v),y=7,v=0)}function T(t){m.push(t)}function I(t){T(t>>8&255),T(255&t)}function D(t,e,r,n,i){for(var a,o=i[0],s=i[240],l=function(t,e){var r,n,i,a,o,s,l,c,u,f,d=0;for(u=0;
vendor: 16,396 bytes, line 5
5u<8;++u){r=t[d],n=t[d+1],i=t[d+2],a=t[d+3],o=t[d+4],s=t[d+5],l=t[d+6];var p=r+(c=t[d+7]),m=r-c,v=n+l,y=n-l,g=i+s,b=i-s,x=a+o,w=a-o,j=p+x,N=p-x,k=v+g,_=v-g;t[d]=j+k,t[d+4]=j-k;var S=.707106781*(_+N);t[d+2]=N+S,t[d+6]=N-S;var A=.382683433*((j=w+b)-(_=y+m)),O=.5411961*j+A,P=1.306562965*_+A,E=.707106781*(k=b+y),C=m+E,L=m-E;t[d+5]=L+O,t[d+3]=L-O,t[d+1]=C+P,t[d+7]=C-P,d+=8}for(d=0,u=0;u<8;++u){r=t[d],n=t[d+8],i=t[d+16],a=t[d+24],o=t[d+32],s=t[d+40],l=t[d+48];var M=r+(c=t[d+56]),T=r-c,I=n+l,D=n-l,R=i+s,z=i-s,F=a+o,B=a-o,q=M+F,U=M-F,V=I+R,H=I-R;t[d]=q+V,t[d+32]=q-V;var W=.707106781*(H+U);t[d+16]=U+W,t[d+48]=U-W;var $=.382683433*((q=B+z)-(H=D+T)),G=.5411961*q+$,K=1.306562965*H+$,Y=.707106781*(V=z+D),X=T+Y,Z=T-Y;t[d+40]=Z+G,t[d+24]=Z-G,t[d+8]=X+K,t[d+56]=X-K,d++}for(u=0;u<64;++u)f=t[u]*e[u],h[u]=f>0?f+.5|0:f-.5|0;return h}(t,e),c=0;c<64;++c)p[N[c]]=l[c];var u=p[0]-r;r=p[0],0==u?M(n[0]):(M(n[d[a=32767+u]]),M(f[a]));for(var m=63;m>0&&0==p[m];)m--;if(0==m)return M(o),r;for(var v,y=1;y<=m;){for(var g=y;0==p[y]&&y<=m;)++y;var b=y-g;if(b>=16){v=b>>4;for(var x=1;x<=v;++x)M(s);b&=15}M(i[(b<<4)+d[a=32767+p[y]]]),M(f[a]),y++}return 63!=m&&M(o),r}function R(t){a!=(t=Math.min(Math.max(t,1),100))&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),s[N[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var f=o((i[a]*t+50)/100);f=Math.min(Math.max(f,1),255),l[N[a]]=f}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var m=0;m<8;m++)c[h]=1/(s[N[h]]*d[p]*d[m]*8),u[h]=1/(l[N[h]]*d[p]*d[m]*8),h++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&R(a),m=[],v=0,y=7,I(65496),I(65504),I(16),T(74),T(70),T(73),T(70),T(0),T(1),T(1),T(0),I(1),I(1),T(0),T(0),function(){I(65499),I(132),T(0);for(var t=0;t<64;t++)T(s[t]);T(1);for(var e=0;e<64;e++)T(l[e])}(),h=t.width,p=t.height,I(65472),I(17),T(8),I(p),I(h),T(3),T(1),T(17),T(0),T(2),T(17),T(1),T(3),T(17),T(1),function(){I(65476),I(418),T(0);for(var t=0;t<16;t++)T(k[t+1]);for(var e=0;e<=11;e++)T(_[e]);T(16);for(var r=0;r<16;r++)T(S[r+1]);for(var n=0;n<=161;n++)T(A[n]);T(1);for(var i=0;i<16;i++)T(O[i+1]);for(var a=0;a<=11;a++)T(P[a]);T(17);for(var o=0;o<16;o++)T(E[o+1]);for(var s=0;s<=161;s++)T(C[s])}(),I(65498),I(12),T(3),T(1),T(0),T(2),T(17),T(3),T(17),T(0),T(63),T(0);var o=0,f=0,d=0;v=0,y=7,this.encode.displayName="_encode_";for(var h,p,w,N,L,z,F,B,q,U,V,H=t.data,W=t.width,$=t.height,G=4*W,K=0;K<$;){for(w=0;w<G;){for(F=G*K+w,q=-1,U=0,V=0;V<64;V++)B=F+(U=V>>3)*G+(q=4*(7&V)),K+U>=$&&(B-=G*(K+1+U-$)),w+q>=G&&(B-=w+q-G+4),N=H[B++],L=H[B++],z=H[B++],g[V]=(j[N]+j[L+256|0]+j[z+512|0]>>16)-128,b[V]=(j[N+768|0]+j[L+1024|0]+j[z+1280|0]>>16)-128,x[V]=(j[N+1280|0]+j[L+1536|0]+j[z+1792|0]>>16)-128;o=D(g,c,o,e,n),f=D(b,u,f,r,i),d=D(x,u,d,r,i),w+=32}K+=8}if(y>=0){var Y=[];Y[1]=y+1,Y[0]=(1<<y+1)-1,M(Y)}return I(65497),new Uint8Array(m)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=L(k,_),r=L(O,P),n=L(S,A),i=L(E,C),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)d[32767+n]=r,f[32767+n]=[],f[32767+n][1]=r,f[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)d[32767+i]=r,f[32767+i]=[],f[32767+i][1]=r,f[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)j[t]=19595*t,j[t+256|0]=38470*t,j[t+512|0]=7471*t+32768,j[t+768|0]=-11059*t,j[t+1024|0]=-21709*t,j[t+1280|0]=32768*t+8421375,j[t+1536|0]=-27439*t,j[t+1792|0]=-5329*t}(),R(t)}function OK(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function OY(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var n=0;4>n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var a=0;a<i;a++)t[e+a]=r[n+a]}function i(t,e,r,n){for(var i=0;i<n;i++)t[e+i]=r}function a(t){return new Int32Array(t)}function o(t,e){for(var r=[],n=0;n<t;n++)r.push(new e);return r}function s(t,e){var r=[];return function t(r,n,i){for(var a=i[n],o=0;o<a&&(r.push(i.length>n+1?[]:new e),!(i.length<n+1));o++)t(r[o],n+1,i)}(r,0,t),r}var l=function(){var t=this;function l(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function c(t,r,n,i,a){e(!(i%n));do t[r+(i-=n)]=a;while(0<i)}function u(t,r,n,i,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,r,n,i,o,s){var u,d,h=r,p=1<<n,m=a(16),v=a(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<n),d=0;d<o;++d){if(15<i[d])return 0;++m[i[d]]}if(m[0]==o)return 0;for(v[1]=0,u=1;15>u;++u){if(m[u]>1<<u)return 0;v[u+1]=v[u]+m[u]}for(d=0;d<o;++d)u=i[d],0<i[d]&&(s[v[u]++]=d);if(1==v[15])return(i=new f).g=0,i.value=s[0],c(t,h,1,p,i),p;var y,g=-1,b=p-1,x=0,w=1,j=1,N=1<<n;for(d=0,u=1,o=2;u<=n;++u,o<<=1){if(w+=j<<=1,0>(j-=m[u]))return 0;for(;0<m[u];--m[u])(i=new f).g=u,i.value=s[d++],c(t,h+x,o,N,i),x=l(x,u)}for(u=n+1,o=2;15>=u;++u,o<<=1){if(w+=j<<=1,0>(j-=m[u]))return 0;for(;0<m[u];--m[u]){if(i=new f,(x&b)!=g){for(h+=N,y=1<<(g=u)-n;15>g&&!(0>=(y-=m[g]));)++g,y<<=1;p+=N=1<<(y=g-n),t[r+(g=x&b)].g=y+n,t[r+g].value=h-r-g}i.g=u-n,i.value=s[d++],c(t,h+(x>>n),o,N,i),x=l(x,u)}}return w!=2*v[15]-1?0:p}(t,r,n,i,o,s)}function f(){this.value=this.g=0}function d(){this.value=this.g=0}function h(){this.G=o(5,f),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(rv,d)}function p(t,r,n,i){e(null!=t),e(null!=r),e(0x80000000>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,S(t)}function m(t,e){for(var r=0;0<e--;)r|=O(t,128)<<e;return r}function v(t,e){var r=m(t,e);return A(t)?-r:r}function y(t,r,n,i){var a,o=0;for(e(null!=t),e(null!=r),e(0xfffffff8>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),a=0;a<i;++a)o+=r[n+a]<<8*a;t.Ra=o,t.bb=i,t.oa=r,t.pa=n}function g(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<rb-8>>>0,++t.bb,t.u-=8;N(t)&&(t.h=1,t.u=0)}function b(t,r){if(e(0<=r),!t.h&&r<=rg){var n=j(t)&ry[r];return t.u+=r,g(t),n}return t.h=1,t.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(t){return t.Ra>>>(t.u&rb-1)>>>0}function N(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>rb}function k(t,e){t.u=e,t.h=N(t)}function _(t){t.u>=rx&&(e(t.u>=rx),g(t))}function S(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function A(t){return m(t,1)}function O(t,e){var r=t.Ca;0>t.b&&S(t);var n=t.b,i=r*e>>>8,a=(t.I>>>n>i)+0;for(a?(r-=i,t.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+rw[n],t.b-=n,t.Ca=(r<<n)-1,a}function P(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function E(t,e){return t[e+0]|t[e+1]<<8}function C(t,e){return E(t,e)|t[e+2]<<16}function L(t,e){return E(t,e)|E(t,e+2)<<16}function M(t,r){return e(null!=t),e(0<r),t.X=a(1<<r),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function T(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),n(r.X,0,t.X,0,1<<r.Xa)}function I(){this.X=[],this.Xa=this.Mb=0}function D(t,r,n,i){e(null!=n),e(null!=i);var a=n[0],o=i[0];return 0==a&&(a=(t*o+r/2)/r),0==o&&(o=(r*a+t/2)/t),0>=a||0>=o?0:(n[0]=a,i[0]=o,1)}function R(t,e){return t+(1<<e)-1>>>e}function z(t,e){return((0xff00ff00&t)+(0xff00ff00&e)>>>0&0xff00ff00)+((0xff00ff&t)+(0xff00ff&e)>>>0&0xff00ff)>>>0}function F(e,r){t[r]=function(r,n,i,a,o,s,l){var c;for(c=0;c<o;++c){var u=t[e](s[l+c-1],i,a+c);s[l+c]=z(r[n+c],u)}}}function B(){this.ud=this.hd=this.jd=0}function q(t,e){return((0xfefefefe&(t^e))>>>1)+(t&e)>>>0}function U(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function V(t,e){return U(t+(t-e+.5>>1))}function H(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function W(t,e,r,n,i,a,o){for(n=a[o-1],r=0;r<i;++r)a[o+r]=n=z(t[e+r],n)}function $(t,e,r,n,i){var a;for(a=0;a<r;++a){var o=t[e+a],s=o>>8&255,l=0xff00ff&(l=(l=0xff00ff&o)+((s<<16)+s));n[i+a]=(0xff00ff00&o)+l>>>0}}function G(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function K(t,e,r,n,i,a){var o;for(o=0;o<n;++o){var s=e[r+o],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(u<<24>>24)>>>5)),i[a+o]=(0xff00ff00&s)+(u<<16)+c}}function Y(e,r,n,i,a){t[r]=function(t,e,r,n,o,s,l,c,u){for(n=l;n<c;++n)for(l=0;l<u;++l)o[s++]=a(r[i(t[e++])])},t[e]=function(e,r,o,s,l,c,u){var f=8>>e.b,d=e.Ea,h=e.K[0],p=e.w;if(8>f)for(e=(1<<e.b)-1,p=(1<<f)-1;r<o;++r){var m,v=0;for(m=0;m<d;++m)m&e||(v=i(s[l++])),c[u++]=a(h[v&p]),v>>=f}else t["VP8LMapColor"+n](s,l,h,p,c,u,r,o,d)}}function X(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=255&a}}function Z(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=255&a,n[i++]=a>>24&255}}function J(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;n[i++]=a,n[i++]=o}}function Q(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[i++]=a,n[i++]=o}}function tt(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=255&a,n[i++]=a>>8&255,n[i++]=a>>16&255}}function te(t,e,r,i,a,o){if(0==o)for(r=e+r;e<r;)P(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&0xff0000|o[3]<<24)>>>0),a+=32;else n(i,a,t,e,r)}function tr(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function tn(t){return t==nu||t==nf||t==nd||t==nh}function ti(){this.eb=[],this.size=this.A=this.fb=0}function ta(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function to(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ti,this.f.kb=new ta,this.sd=null}function ts(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function tl(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function tc(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function tu(t,e){var r=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=nz[e.ba.S],l=t.y,c=t.O,u=t.f,f=t.N,d=t.ea,h=t.W,p=e.cc,m=e.dc,v=e.Mc,y=e.Nc,g=t.ka,b=t.ka+t.T,x=t.U,w=x+1>>1;for(0==g?s(l,c,null,null,u,f,d,h,u,f,d,h,a,o,null,null,x):(s(e.ec,e.fc,l,c,p,m,v,y,u,f,d,h,a,o-i.A,a,o,x),++r);g+2<b;g+=2)p=u,m=f,v=d,y=h,f+=t.Rc,h+=t.Rc,o+=2*i.A,s(l,(c+=2*t.fa)-t.fa,l,c,p,m,v,y,u,f,d,h,a,o-i.A,a,o,x);return c+=t.fa,t.j+b<t.o?(n(e.ec,e.fc,l,c,x),n(e.cc,e.dc,u,f,w),n(e.Mc,e.Nc,d,h,w),r--):1&b||s(l,c,null,null,u,f,d,h,u,f,d,h,a,o+i.A,null,null,x),r}function tf(t,r,n){var i=t.F,a=[t.J];if(null!=i){var o=t.U,s=r.ba.S,l=s==ns||s==nd;r=r.ba.f.RGBA;var c=[0],u=t.ka;c[0]=t.T,t.Kb&&(0==u?--c[0]:(--u,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-u));var f=r.eb;u=r.fb+u*r.A,t=r2(i,a[0],t.width,o,c,f,u+3*!l,r.A),e(n==c),t&&tn(s)&&r0(f,u,l,o,c,r.A)}return 0}function td(t){var e=t.ma,r=e.ba.S,n=11>r,i=r==ni||r==no||r==ns||r==nl||12==r||tn(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!rh(e.Oa,t,i?11:12))return 0;if(i&&tn(r)&&e6(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=tc,t.Kb){if(r=t.U+1>>1,e.memory=a(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=tu,e6()}}else alert("todo:EmitYUV");i&&(e.Jb=tf,n&&e3())}if(n&&!nJ){for(t=0;256>t;++t)nQ[t]=89858*(t-128)+nG>>n$,n2[t]=-22014*(t-128)+nG,n1[t]=-45773*(t-128),n0[t]=113618*(t-128)+nG>>n$;for(t=nK;t<nY;++t)e=76283*(t-16)+nG>>n$,n5[t-nK]=tW(e,255),n3[t-nK]=tW(e+8>>4,15);nJ=1}return 1}function th(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function tp(t){t.ma.memory=null}function tm(t,e,r,n){return 47!=b(t,8)?0:(e[0]=b(t,14)+1,r[0]=b(t,14)+1,n[0]=b(t,1),0!=b(t,3)?0:!t.h)}function tv(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+b(e,r)+1}function ty(t,e){var r;return 120<e?e-120:1<=(r=((r=nb[e-1])>>4)*t+(8-(15&r)))?r:1}function tg(t,e,r){var n=j(r),i=t[e+=255&n].g-8;return 0<i&&(k(r,r.u+8),n=j(r),e+=t[e].value,e+=n&(1<<i)-1),k(r,r.u+t[e].g),t[e].value}function tb(t,r,n){return n.g+=t.g,n.value+=t.value<<r>>>0,e(8>=n.g),t.g}function tx(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])<t.Wb),t.Ya[r]}function tw(t,r,i,a){var o=t.ab,s=t.c*r,l=t.C;r=l+r;var c=i,u=a;for(a=t.Ta,i=t.Ua;0<o--;){var f=t.gc[o],d=l,h=r,p=c,m=u,v=(u=a,c=i,f.Ea);switch(e(d<h),e(h<=f.nc),f.hc){case 2:rk(p,m,(h-d)*v,u,c);break;case 0:var y=d,g=h,b=u,x=c,w=(S=f).Ea;0==y&&(rj(p,m,null,null,1,b,x),W(p,m+1,0,0,w-1,b,x+1),m+=w,x+=w,++y);for(var j=1<<S.b,N=j-1,k=R(w,S.b),_=S.K,S=S.w+(y>>S.b)*k;y<g;){var A=_,O=S,P=1;for(rN(p,m,b,x-w,1,b,x);P<w;){var E=(P&~N)+j;E>w&&(E=w),(0,rP[A[O++]>>8&15])(p,m+ +P,b,x+P-w,E-P,b,x+P),P=E}m+=w,x+=w,++y&N||(S+=k)}h!=f.nc&&n(u,c-v,u,c+(h-d-1)*v,v);break;case 1:for(v=p,g=m,w=(p=f.Ea)-(x=p&~(b=(m=1<<f.b)-1)),y=R(p,f.b),j=f.K,f=f.w+(d>>f.b)*y;d<h;){for(N=j,k=f,_=new B,S=g+x,A=g+p;g<S;)G(N[k++],_),rE(_,v,g,m,u,c),g+=m,c+=m;g<A&&(G(N[k++],_),rE(_,v,g,w,u,c),g+=w,c+=w),++d&b||(f+=y)}break;case 3:if(p==u&&m==c&&0<f.b){for(g=u,p=v=c+(h-d)*v-(x=(h-d)*R(f.Ea,f.b)),m=u,b=c,y=[],x=(w=x)-1;0<=x;--x)y[x]=m[b+x];for(x=w-1;0<=x;--x)g[p+x]=y[x];r_(f,d,h,u,v,u,c)}else r_(f,d,h,p,m,u,c)}c=a,u=i}u!=i&&n(a,i,c,u,s)}function tj(t,r){var n=t.V,i=t.Ba+t.c*t.C,a=r-t.C;if(e(r<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,l=t.Ua,c=o.width;if(tw(t,a,n,i),a=l=[l],e((n=t.C)<(i=r)),e(o.v<o.va),i>o.o&&(i=o.o),n<o.j){var u=o.j-n;n=o.j,a[0]+=u*c}if(n>=i?n=0:(a[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=i-n,n=1),n){if(l=l[0],11>(n=t.ca).S){var f=n.f.RGBA,d=(i=n.S,a=o.U,o=o.T,u=f.eb,f.A),h=o;for(f=f.fb+t.Ma*f.A;0<h--;){var p=l,m=a,v=u,y=f;switch(i){case nn:rC(s,p,m,v,y);break;case ni:rL(s,p,m,v,y);break;case nu:rL(s,p,m,v,y),r0(v,y,0,m,1,0);break;case na:rI(s,p,m,v,y);break;case no:te(s,p,m,v,y,1);break;case nf:te(s,p,m,v,y,1),r0(v,y,0,m,1,0);break;case ns:te(s,p,m,v,y,0);break;case nd:te(s,p,m,v,y,0),r0(v,y,1,m,1,0);break;case nl:rM(s,p,m,v,y);break;case nh:rM(s,p,m,v,y),r1(v,y,m,1,0);break;case nc:rT(s,p,m,v,y);break;default:e(0)}l+=c,f+=d}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=n.height)}}t.C=r,e(t.C<=t.i)}function tN(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,n=t.Ya[e].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function tk(t,r,n,i,a,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=nR[t.Z]);r<n;++r)nR[t.Z](s,l,i,a,i,a,o),s=i,l=a,a+=o;t.qd=s,t.rd=l}}function t_(t,r){var n=t.l.ma,i=0==n.Z||1==n.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(r<=t.l.o),r>i){var a=t.l.width,o=n.ca,s=n.tb+a*i,l=t.V,c=t.Ba+t.c*i,u=t.gc;e(1==t.ab),e(3==u[0].hc),rA(u[0],i,r,l,c,o,s),tk(n,i,r,o,s,a)}t.C=t.Ma=r}function tS(t,r,n,i,a,o,s){var l=t.$/i,c=t.$%i,u=t.m,f=t.s,d=n+t.$,h=d;a=n+i*a;var p=n+i*o,m=280+f.ua,v=t.Pb?l:0x1000000,y=0<f.ua?f.Wa:null,g=f.wc,b=d<p?tx(f,c,l):null;e(t.C<o),e(p<=a);var x=!1;i:for(;;){for(;x||d<p;){var w=0;if(l>=v){var S=d-n;e((v=t).Pb),v.wd=v.m,v.xd=S,0<v.s.ua&&T(v.s.Wa,v.s.vb),v=l+nw}if(c&g||(b=tx(f,c,l)),e(null!=b),b.Qb&&(r[d]=b.qb,x=!0),!x)if(_(u),b.jc){w=u,S=r;var A=d,O=b.pd[j(w)&rv-1];e(b.jc),256>O.g?(k(w,w.u+O.g),S[A]=O.value,w=0):(k(w,w.u+O.g-256),e(256<=O.value),w=O.value),0==w&&(x=!0)}else w=tg(b.G[0],b.H[0],u);if(u.h)break;if(x||256>w){if(!x)if(b.nd)r[d]=(b.qb|w<<8)>>>0;else{if(_(u),x=tg(b.G[1],b.H[1],u),_(u),S=tg(b.G[2],b.H[2],u),A=tg(b.G[3],b.H[3],u),u.h)break;r[d]=(A<<24|x<<16|w<<8|S)>>>0}if(x=!1,++d,++c>=i&&(c=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=y))for(;h<d;)w=r[h++],y.X[0x1e35a7bd*w>>>y.Mb]=w}else if(280>w){if(w=tv(w-256,u),S=tg(b.G[4],b.H[4],u),_(u),S=ty(i,S=tv(S,u)),u.h)break;if(d-n<S||a-d<w)break i;for(A=0;A<w;++A)r[d+A]=r[d+A-S];for(d+=w,c+=w;c>=i;
vendor: 9,023 bytes, line 5
5)c-=i,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(d<=a),c&g&&(b=tx(f,c,l)),null!=y)for(;h<d;)w=r[h++],y.X[0x1e35a7bd*w>>>y.Mb]=w}else{if(!(w<m))break i;for(x=w-280,e(null!=y);h<d;)w=r[h++],y.X[0x1e35a7bd*w>>>y.Mb]=w;w=d,e(!(x>>>(S=y).Xa)),r[w]=S.X[x],x=!0}x||e(u.h==N(u))}if(t.Pb&&u.h&&d<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&T(t.s.vb,t.s.Wa);else{if(u.h)break;null!=s&&s(t,l>o?o:l),t.a=0,t.$=d-n}return 1}return t.a=3,0}function tA(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function tO(){var e=new eY;return null==e?null:(e.a=0,e.xb=nD,tr("Predictor","VP8LPredictors"),tr("Predictor","VP8LPredictors_C"),tr("PredictorAdd","VP8LPredictorsAdd"),tr("PredictorAdd","VP8LPredictorsAdd_C"),rk=$,rE=K,rC=X,rL=Z,rM=J,rT=Q,rI=tt,t.VP8LMapColor32b=rS,t.VP8LMapColor8b=rO,e)}function tP(t,r,n,s,l){for(var c=1,d=[t],p=[r],m=s.m,v=s.s,y=null,g=0;;){if(n)for(;c&&b(m,1);){var x=d,w=p,N=1,S=s.m,A=s.gc[s.ab],O=b(S,2);if(s.Oc&1<<O)c=0;else{switch(s.Oc|=1<<O,A.hc=O,A.Ea=x[0],A.nc=w[0],A.K=[null],++s.ab,e(4>=s.ab),O){case 0:case 1:A.b=b(S,3)+2,N=tP(R(A.Ea,A.b),R(A.nc,A.b),0,s,A.K),A.K=A.K[0];break;case 3:var P,E=b(S,8)+1,C=16<E?0:4<E?1:2<E?2:3;if(x[0]=R(A.Ea,C),A.b=C,P=N=tP(E,1,0,s,A.K)){var L,T=1<<(8>>A.b),I=a(T);if(null==I)P=0;else{var D=A.K[0],F=A.w;for(I[0]=A.K[0][0],L=1;L<+E;++L)I[L]=z(D[F+L],I[L-1]);for(;L<4*T;++L)I[L]=0;A.K[0]=null,A.K[0]=I,P=1}}N=P;break;case 2:break;default:e(0)}c=N}}if(d=d[0],p=p[0],c&&b(m,1)&&!(c=1<=(g=b(m,4))&&11>=g)){s.a=3;break}if(B=c)a:{var B,q,U,V,H=d,W=p,$=g,G=s.m,K=s.s,Y=[null],X=1,Z=0,J=nx[$];o:for(;;){if(n&&b(G,1)){var Q=b(G,3)+2,tt=R(H,Q),te=R(W,Q),tr=tt*te;if(!tP(tt,te,0,s,Y))break;for(Y=Y[0],K.xc=Q,q=0;q<tr;++q){var tn=Y[q]>>8&65535;Y[q]=tn,tn>=X&&(X=tn+1)}}if(G.h)break;for(U=0;5>U;++U){var ti=nv[U];!U&&0<$&&(ti+=1<<$),Z<ti&&(Z=ti)}var ta=o(X*J,f),to=X,ts=o(to,h);if(null==ts)var tl=null;else e(65536>=to),tl=ts;var tc=a(Z);if(null==tl||null==tc||null==ta){s.a=1;break}for(q=V=0;q<X;++q){var tu,tf=tl[q],td=tf.G,th=tf.H,tp=0,tm=1,tv=0;for(U=0;5>U;++U){ti=nv[U],td[U]=ta,th[U]=V,!U&&0<$&&(ti+=1<<$);s:{var ty,tg=ti,tx=V,tw=0,tj=s.m,tN=b(tj,1);if(i(tc,0,0,tg),tN){var tk=b(tj,1)+1,t_=b(tj,1),tO=b(tj,0==t_?1:8);tc[tO]=1,2==tk&&(tc[tO=b(tj,8)]=1);var tE=1}else{var tC=a(19),tL=b(tj,4)+4;if(19<tL){s.a=3;var tM=0;break s}for(ty=0;ty<tL;++ty)tC[ng[ty]]=b(tj,3);var tT=void 0,tI=void 0,tD=0,tR=s.m,tz=8,tF=o(128,f);l:for(;u(tF,0,7,tC,19);){if(b(tR,1)){var tB=2+2*b(tR,3);if((tT=2+b(tR,tB))>tg)break}else tT=tg;for(tI=0;tI<tg&&tT--;){_(tR);var tq=tF[0+(127&j(tR))];k(tR,tR.u+tq.g);var tU=tq.value;if(16>tU)tc[tI++]=tU,0!=tU&&(tz=tU);else{var tV=16==tU,tH=tU-16,tW=nm[tH],t$=b(tR,np[tH])+tW;if(tI+t$>tg)break l;for(var tG=tV?tz:0;0<t$--;)tc[tI++]=tG}}tD=1;break}tD||(s.a=3),tE=tD}(tE=tE&&!tj.h)&&(tw=u(ta,tx,8,tc,tg)),tE&&0!=tw?tM=tw:(s.a=3,tM=0)}if(0==tM)break o;if(tm&&1==ny[U]&&(tm=0==ta[V].g),tp+=ta[V].g,V+=tM,3>=U){var tK,tY=tc[0];for(tK=1;tK<ti;++tK)tc[tK]>tY&&(tY=tc[tK]);tv+=tY}}if(tf.nd=tm,tf.Qb=0,tm&&(tf.qb=(td[3][th[3]+0].value<<24|td[1][th[1]+0].value<<16|td[2][th[2]+0].value)>>>0,0==tp&&256>td[0][th[0]+0].value&&(tf.Qb=1,tf.qb+=td[0][th[0]+0].value<<8)),tf.jc=!tf.Qb&&6>tv,tf.jc)for(tu=0;tu<rv;++tu){var tX=tu,tZ=tf.pd[tX],tJ=tf.G[0][tf.H[0]+tX];256<=tJ.value?(tZ.g=tJ.g+256,tZ.value=tJ.value):(tZ.g=0,tZ.value=0,tX>>=tb(tJ,8,tZ),tX>>=tb(tf.G[1][tf.H[1]+tX],16,tZ),tX>>=tb(tf.G[2][tf.H[2]+tX],0,tZ),tb(tf.G[3][tf.H[3]+tX],24,tZ))}}K.vc=Y,K.Wb=X,K.Ya=tl,K.yc=ta,B=1;break a}B=0}if(!(c=B)){s.a=3;break}if(0<g){if(v.ua=1<<g,!M(v.Wa,g)){s.a=1,c=0;break}}else v.ua=0;var tQ=d,t0=p,t1=s.s,t2=t1.xc;if(s.c=tQ,s.i=t0,t1.md=R(tQ,t2),t1.wc=0==t2?-1:(1<<t2)-1,n){s.xb=nI;break}if(null==(y=a(d*p))){s.a=1,c=0;break}c=(c=tS(s,y,0,d,p,p,null))&&!m.h;break}return c?(null!=l?l[0]=y:(e(null==y),e(n)),s.$=0,n||tA(v)):tA(v),c}function tE(t,r){var n=t.c*t.i;return e(t.c<=r),t.V=a(n+r+16*r),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+n+r,1)}function tC(t,r){var n=t.C,i=r-n,a=t.V,o=t.Ba+t.c*n;for(e(r<=t.l.o);0<i;){var s=16<i?16:i,l=t.l.ma,c=t.l.width,u=c*s,f=l.ca,d=l.tb+c*n,h=t.Ta,p=t.Ua;tw(t,s,a,o),r5(h,p,f,d,u),tk(l,n,n+s,f,d,c),i-=s,a+=s*t.c,n+=s}e(n==r),t.C=t.Ma=r}function tL(){this.ub=this.yd=this.td=this.Rb=0}function tM(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function tT(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function tI(){var t;this.Yb=(function t(e,r,n){for(var i=n[r],a=0;a<i&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));a++)t(e[a],r+1,n)}(t=[],0,[3,11]),t)}function tD(){this.jb=a(3),this.Wc=s([4,8],tI),this.Xc=s([4,17],tI)}function tR(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function tz(){this.ld=this.La=this.dd=this.tc=0}function tF(){this.Na=this.la=0}function tB(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function tq(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function tU(){this.uc=this.M=this.Nb=0,this.wa=Array(new tz),this.Y=0,this.ya=Array(new tq),this.aa=0,this.l=new t$}function tV(){this.y=a(16),this.f=a(8),this.ea=a(8)}function tH(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new tL,this.Kc=new tM,this.ed=new tR,this.Qa=new tT,this.Ic=this.$c=this.Aa=0,this.D=new tU,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,x),this.ia=0,this.pb=o(4,tB),this.Pa=new tD,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new tV),this.Hd=0,this.rb=Array(new tF),this.sb=0,this.wa=Array(new tz),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new tq),this.L=this.aa=0,this.gd=s([4,2],tz),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function tW(t,e){return 0>t?0:t>e?e:t}function t$(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function tG(){var t=new tH;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,nk||(nk=tZ)),t}function tK(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function tY(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function tX(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return tK(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,a=r.w,o=r.ha;if(4>o)return tK(t,7,"Truncated header.");var s=n[a+0]|n[a+1]<<8|n[a+2]<<16,l=t.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return tK(t,3,"Incorrect keyframe parameters.");if(!l.yd)return tK(t,4,"Frame not displayable.");a+=3,o-=3;var c=t.Kc;if(l.Rb){if(7>o)return tK(t,7,"cannot parse picture header");if(!tY(n,a,o))return tK(t,3,"Bad code word");c.c=16383&(n[a+4]<<8|n[a+3]),c.Td=n[a+4]>>6,c.i=16383&(n[a+6]<<8|n[a+5]),c.Ud=n[a+6]>>6,a+=7,o-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,r.width=c.c,r.height=c.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(l.ub>o)return tK(t,7,"bad partition length");p(s=t.m,n,a,l.ub),a+=l.ub,o-=l.ub,l.Rb&&(c.Ld=A(s),c.Kd=A(s)),c=t.Qa;var u,f=t.Pa;if(e(null!=s),e(null!=c),c.Cb=A(s),c.Cb){if(c.Bb=A(s),A(s)){for(c.Fb=A(s),u=0;4>u;++u)c.Zb[u]=A(s)?v(s,7):0;for(u=0;4>u;++u)c.Lb[u]=A(s)?v(s,6):0}if(c.Bb)for(u=0;3>u;++u)f.jb[u]=A(s)?m(s,8):255}else c.Bb=0;if(s.Ka)return tK(t,3,"cannot parse segment header");if((c=t.ed).zd=A(s),c.Tb=m(s,6),c.wb=m(s,3),c.Pc=A(s),c.Pc&&A(s)){for(f=0;4>f;++f)A(s)&&(c.vd[f]=v(s,6));for(f=0;4>f;++f)A(s)&&(c.od[f]=v(s,6))}if(t.L=0==c.Tb?0:c.zd?1:2,s.Ka)return tK(t,3,"cannot parse filter header");var d=o;if(o=u=a,a=u+d,c=d,t.Xb=(1<<m(t.m,2))-1,d<3*(f=t.Xb))n=7;else{for(u+=3*f,c-=3*f,d=0;d<f;++d){var h=n[o+0]|n[o+1]<<8|n[o+2]<<16;h>c&&(h=c),p(t.Jc[+d],n,u,h),u+=h,c-=h,o+=3}p(t.Jc[+f],n,u,c),n=u<a?0:5}if(0!=n)return tK(t,n,"cannot parse partitions");for(n=m(u=t.m,7),o=A(u)?v(u,4):0,a=A(u)?v(u,4):0,c=A(u)?v(u,4):0,f=A(u)?v(u,4):0,u=A(u)?v(u,4):0,d=t.Qa,h=0;4>h;++h){if(d.Cb){var y=d.Zb[h];d.Fb||(y+=n)}else{if(0<h){t.pb[h]=t.pb[0];continue}y=n}var g=t.pb[h];g.Sc[0]=nj[tW(y+o,127)],g.Sc[1]=nN[tW(y+0,127)],g.Eb[0]=2*nj[tW(y+a,127)],g.Eb[1]=101581*nN[tW(y+c,127)]>>16,8>g.Eb[1]&&(g.Eb[1]=8),g.Qc[0]=nj[tW(y+f,117)],g.Qc[1]=nN[tW(y+u,127)],g.lc=y+u}if(!l.Rb)return tK(t,4,"Not a key frame.");for(A(s),l=t.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(a=0;3>a;++a)for(c=0;11>c;++c)f=O(s,nE[n][o][a][c])?m(s,8):nO[n][o][a][c],l.Wc[n][o].Yb[a][c]=f;for(o=0;17>o;++o)l.Xc[n][o]=l.Wc[n][nC[o]]}return t.kc=A(s),t.kc&&(t.Bd=m(s,8)),t.cb=1}function tZ(t,e,r,n,i,a,o){var s=e[i].Yb[r];for(r=0;16>i;++i){if(!O(t,s[r+0]))return i;for(;!O(t,s[r+1]);)if(s=e[++i].Yb[0],r=0,16==i)return 16;var l=e[i+1].Yb;if(O(t,s[r+2])){var c=t,u=0;
vendor: 24,494 bytes, line 5
5if(O(c,(d=s)[(f=r)+3]))if(O(c,d[f+6])){for(s=0,f=2*(u=O(c,d[f+8]))+(d=O(c,d[f+9+u])),u=0,d=n_[f];d[s];++s)u+=u+O(c,d[s]);u+=3+(8<<f)}else u=O(c,d[f+7])?7+2*O(c,165)+O(c,145):5+O(c,159);else u=O(c,d[f+4])?3+O(c,d[f+5]):2;s=l[2]}else u=1,s=l[1];l=o+nS[i],0>(c=t).b&&S(c);var f,d=c.b,h=(f=c.Ca>>1)-(c.I>>d)>>31;--c.b,c.Ca+=h,c.Ca|=1,c.I-=(f+1&h)<<d,a[l]=((u^h)-h)*n[(0<i)+0]}return 16}function tJ(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function tQ(t,e,r,n,i){i=t[e+r+32*n]+(i>>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function t0(t,e,r,n,i,a){tQ(t,e,0,r,n+i),tQ(t,e,1,r,n+a),tQ(t,e,2,r,n-a),tQ(t,e,3,r,n-i)}function t1(t){return(20091*t>>16)+t}function t2(t,e,r,n){var i,o=0,s=a(16);for(i=0;4>i;++i){var l=t[e+0]+t[e+8],c=t[e+0]-t[e+8],u=(35468*t[e+4]>>16)-t1(t[e+12]),f=t1(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+f,s[o+1]=c+u,s[o+2]=c-u,s[o+3]=l-f,o+=4,e++}for(i=o=0;4>i;++i)l=(t=s[o+0]+4)+s[o+8],c=t-s[o+8],u=(35468*s[o+4]>>16)-t1(s[o+12]),tQ(r,n,0,0,l+(f=t1(s[o+4])+(35468*s[o+12]>>16))),tQ(r,n,1,0,c+u),tQ(r,n,2,0,c-u),tQ(r,n,3,0,l-f),o++,n+=32}function t5(t,e,r,n){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=t1(t[e+4]),s=35468*t[e+1]>>16;t0(r,n,0,i+o,t=t1(t[e+1]),s),t0(r,n,1,i+a,t,s),t0(r,n,2,i-a,t,s),t0(r,n,3,i-o,t,s)}function t3(t,e,r,n,i){t2(t,e,r,n),i&&t2(t,e+16,r,n+4)}function t4(t,e,r,n){rR(t,e+0,r,n,1),rR(t,e+32,r,n+128,1)}function t6(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)tQ(r,n,e,i,t)}function t8(t,e,r,n){t[e+0]&&rB(t,e+0,r,n),t[e+16]&&rB(t,e+16,r,n+4),t[e+32]&&rB(t,e+32,r,n+128),t[e+48]&&rB(t,e+48,r,n+128+4)}function t7(t,e,r,n){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],l=t[e+4+i]+t[e+8+i],c=t[e+4+i]-t[e+8+i],u=t[e+0+i]-t[e+12+i];o[0+i]=s+l,o[8+i]=s-l,o[4+i]=u+c,o[12+i]=u-c}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],l=o[1+4*i]+o[2+4*i],c=o[1+4*i]-o[2+4*i],u=t-o[3+4*i],r[n+0]=s+l>>3,r[n+16]=u+c>>3,r[n+32]=s-l>>3,r[n+48]=u-c>>3,n+=64}function t9(t,e,r){var n,i=e-32,a=255-t[i-1];for(n=0;n<r;++n){var o,s=a+t[e-1];for(o=0;o<r;++o)t[e+o]=ne[s+t[i+o]];e+=32}}function et(t,e){t9(t,e,4)}function ee(t,e){t9(t,e,8)}function er(t,e){t9(t,e,16)}function en(t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,t,e-32,16)}function ei(t,e){var r;for(r=16;0<r;--r)i(t,e,t[e-1],16),e+=32}function ea(t,e,r){var n;for(n=0;16>n;++n)i(e,r+32*n,t,16)}function eo(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];ea(n>>5,t,e)}function es(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];ea(n>>4,t,e)}function el(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];ea(n>>4,t,e)}function ec(t,e){ea(128,t,e)}function eu(t,e,r){return t+2*e+r+2>>2}function ef(t,e){var r,i=e-32;for(i=new Uint8Array([eu(t[i-1],t[i+0],t[i+1]),eu(t[i+0],t[i+1],t[i+2]),eu(t[i+1],t[i+2],t[i+3]),eu(t[i+2],t[i+3],t[i+4])]),r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function ed(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];P(t,e+0,0x1010101*eu(t[e-1-32],r,n)),P(t,e+32,0x1010101*eu(r,n,i)),P(t,e+64,0x1010101*eu(n,i,a)),P(t,e+96,0x1010101*eu(i,a,a))}function eh(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function ep(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+96]=eu(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=eu(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=eu(a,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=eu(o,a,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=eu(s,o,a),t[e+3+32]=t[e+2+0]=eu(l,s,o),t[e+3+0]=eu(c,l,s)}function em(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=eu(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=eu(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=eu(n,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=eu(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=eu(a,o,s),t[e+3+64]=t[e+2+96]=eu(o,s,l),t[e+3+96]=eu(s,l,l)}function ev(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=a+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+l+1>>1,t[e+3+0]=l+c+1>>1,t[e+0+96]=eu(i,n,r),t[e+0+64]=eu(n,r,a),t[e+0+32]=t[e+1+96]=eu(r,a,o),t[e+1+32]=t[e+2+96]=eu(a,o,s),t[e+2+32]=t[e+3+96]=eu(o,s,l),t[e+3+32]=eu(s,l,c)}function ey(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],c=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=eu(r,n,i),t[e+1+32]=t[e+0+96]=eu(n,i,a),t[e+2+32]=t[e+1+96]=eu(i,a,o),t[e+3+32]=t[e+2+96]=eu(a,o,s),t[e+3+64]=eu(o,s,l),t[e+3+96]=eu(s,l,c)}function eg(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=eu(r,n,i),t[e+3+0]=t[e+1+32]=eu(n,i,a),t[e+3+32]=t[e+1+64]=eu(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function eb(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=r+o+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=eu(s,l,c),t[e+2+0]=eu(o,s,l),t[e+1+0]=t[e+3+32]=eu(r,o,s),t[e+1+32]=t[e+3+64]=eu(n,r,o),t[e+1+64]=t[e+3+96]=eu(i,n,r),t[e+1+96]=eu(a,i,n)}function ex(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function ew(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function ej(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function eN(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];ej(n>>4,t,e)}function ek(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];ej(n>>3,t,e)}function e_(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];ej(n>>3,t,e)}function eS(t,e){ej(128,t,e)}function eA(t,e,r){var n=t[e-r],i=t[e+0],a=3*(i-n)+r9[1020+t[e-2*r]-t[e+r]],o=nt[112+(a+4>>3)];t[e-r]=ne[255+n+nt[112+(a+3>>3)]],t[e+0]=ne[255+i-o]}function eO(t,e,r,n){var i=t[e+0],a=t[e+r];return nr[255+t[e-2*r]-t[e-r]]>n||nr[255+a-i]>n}function eP(t,e,r,n){return 4*nr[255+t[e-r]-t[e+0]]+nr[255+t[e-2*r]-t[e+r]]<=n}function eE(t,e,r,n,i){var a=t[e-3*r],o=t[e-2*r],s=t[e-r],l=t[e+0],c=t[e+r],u=t[e+2*r],f=t[e+3*r];return 4*nr[255+s-l]+nr[255+o-c]>n?0:nr[255+t[e-4*r]-a]<=i&&nr[255+a-o]<=i&&nr[255+o-s]<=i&&nr[255+f-u]<=i&&nr[255+u-c]<=i&&nr[255+c-l]<=i}function eC(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)eP(t,e+n,r,i)&&eA(t,e+n,r)}function eL(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)eP(t,e+n*r,1,i)&&eA(t,e+n*r,1)}function eM(t,e,r,n){var i;for(i=3;0<i;--i)eC(t,e+=4*r,r,n)}function eT(t,e,r,n){var i;for(i=3;0<i;--i)eL(t,e+=4,r,n)}function eI(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(eE(t,e,r,a,o))if(eO(t,e,r,s))eA(t,e,r);else{var l=e,c=t[l-2*r],u=t[l-r],f=t[l+0],d=t[l+r],h=t[l+2*r],p=27*(v=r9[1020+3*(f-u)+r9[1020+c-d]])+63>>7,m=18*v+63>>7,v=9*v+63>>7;t[l-3*r]=ne[255+t[l-3*r]+v],t[l-2*r]=ne[255+c+m],t[l-r]=ne[255+u+p],t[l+0]=ne[255+f-p],t[l+r]=ne[255+d-m],t[l+2*r]=ne[255+h-v]}e+=n}}function eD(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(eE(t,e,r,a,o))if(eO(t,e,r,s))eA(t,e,r);else{var l=e,c=t[l-r],u=t[l+0],f=t[l+r],d=nt[112+(4+(h=3*(u-c))>>3)],h=nt[112+(h+3>>3)],p=d+1>>1;t[l-2*r]=ne[255+t[l-2*r]+p],t[l-r]=ne[255+c+h],t[l+0]=ne[255+u-d],t[l+r]=ne[255+f-p]}e+=n}}function eR(t,e,r,n,i,a){eI(t,e,r,1,16,n,i,a)}function ez(t,e,r,n,i,a){eI(t,e,1,r,16,n,i,a)}function eF(t,e,r,n,i,a){var o;for(o=3;0<o;--o)eD(t,e+=4*r,r,1,16,n,i,a)}function eB(t,e,r,n,i,a){var o;for(o=3;0<o;--o)eD(t,e+=4,1,r,16,n,i,a)}function eq(t,e,r,n,i,a,o,s){eI(t,e,i,1,8,a,o,s),eI(r,n,i,1,8,a,o,s)}function eU(t,e,r,n,i,a,o,s){eI(t,e,1,i,8,a,o,s),eI(r,n,1,i,8,a,o,s)}function eV(t,e,r,n,i,a,o,s){eD(t,e+4*i,i,1,8,a,o,s),eD(r,n+4*i,i,1,8,a,o,s)}function eH(t,e,r,n,i,a,o,s){eD(t,e+4,1,i,8,a,o,s),eD(r,n+4,1,i,8,a,o,s)}function eW(){this.ba=new to,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new tl,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function e$(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function eG(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function eK(){this.ua=0,this.Wa=new I,this.vb=new I,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new f}function eY(){this.xb=this.a=0,this.l=new t$,this.ca=new to,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new eK,this.ab=0,this.gc=o(4,eG),this.Oc=0}function eX(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new t$,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function eZ(t,e,r,n,i,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[a+e]=t+r[n+e]&255,t=i[a+e]}function eJ(t,e,r,n,i,a,o){var s;if(null==t)eZ(null,null,r,n,i,a,o);else for(s=0;s<o;++s)i[a+s]=t[e+s]+r[n+s]&255}function eQ(t,e,r,n,i,a,o){if(null==t)eZ(null,null,r,n,i,a,o);else{var s,l=t[e+0],c=l,u=l;for(s=0;s<o;++s)c=u+(l=t[e+s])-c,u=r[n+s]+(-256&c?0>c?0:255:c)&255,c=l,i[a+s]=u}}function e0(t,e,r,n,i,a){for(;0<i--;){var o,s=e+ +!!r,l=e+3*!r;for(o=0;o<n;++o){var c=t[l+4*o];255!=c&&(c*=32897,t[s+4*o+0]=t[s+4*o+0]*c>>23,t[s+4*o+1]=t[s+4*o+1]*c>>23,t[s+4*o+2]=t[s+4*o+2]*c>>23)}e+=a}}function e1(t,e,r,n,i){for(;0<n--;){var a;for(a=0;a<r;++a){var o=t[e+2*a+0],s=15&(c=t[e+2*a+1]),l=4369*s,c=(240&c|c>>4)*l>>16;t[e+2*a+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*a+1]=240&c|s}e+=i}}function e2(t,e,r,n,i,a,o,s){var l,c,u=255;for(c=0;c<i;++c){for(l=0;l<n;++l){var f=t[e+l];a[o+4*l]=f,u&=f}e+=r,o+=s}return 255!=u}function e5(t,e,r,n,i){var a;for(a=0;a<i;++a)r[n+a]=t[e+a]>>8}function e3(){r0=e0,r1=e1,r2=e2,r5=e5}function e4(r,n,i){t[r]=function(t,r,a,o,s,l,c,u,f,d,h,p,m,v,y,g,b){var x,w=b-1>>1,j=s[l+0]|c[u+0]<<16,N=f[d+0]|h[p+0]<<16;e(null!=t);var k=3*j+N+131074>>2;for(n(t[r+0],255&k,k>>16,m,v),null!=a&&(k=3*N+j+131074>>2,n(a[o+0],255&k,k>>16,y,g)),x=1;x<=w;++x){var _=s[l+x]|c[u+x]<<16,S=f[d+x]|h[p+x]<<16,A=j+_+N+S+524296,O=A+2*(_+N)>>3;k=O+j>>1,j=(A=A+2*(j+S)>>3)+_>>1,n(t[r+2*x-1],255&k,k>>16,m,v+(2*x-1)*i),n(t[r+2*x-0],255&j,j>>16,m,v+(2*x-0)*i),null!=a&&(k=A+N>>1,j=O+S>>1,n(a[o+2*x-1],255&k,k>>16,y,g+(2*x-1)*i),n(a[o+2*x+0],255&j,j>>16,y,g+(2*x+0)*i)),j=_,N=S}1&b||(k=3*j+N+131074>>2,n(t[r+b-1],255&k,k>>16,m,v+(b-1)*i),null!=a&&(k=3*N+j+131074>>2,n(a[o+b-1],255&k,k>>16,y,g+(b-1)*i)))}}function e6(){nz[nn]=nF,nz[ni]=nq,nz[na]=nB,nz[no]=nU,nz[ns]=nV,nz[nl]=nH,nz[nc]=nW,nz[nu]=nq,nz[nf]=nU,nz[nd]=nV,nz[nh]=nH}function e8(t){return t&~nZ?0>t?0:255:t>>nX}function e7(t,e){return e8((19077*t>>8)+(26149*e>>8)-14234)}function e9(t,e,r){return e8((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function rt(t,e){return e8((19077*t>>8)+(33050*e>>8)-17685)}function re(t,e,r,n,i){n[i+0]=e7(t,r),n[i+1]=e9(t,e,r),n[i+2]=rt(t,e)}function rr(t,e,r,n,i){n[i+0]=rt(t,e),n[i+1]=e9(t,e,r),n[i+2]=e7(t,r)}function rn(t,e,r,n,i){var a=e9(t,e,r);e=a<<3&224|rt(t,e)>>3,n[i+0]=248&e7(t,r)|a>>5,n[i+1]=e}function ri(t,e,r,n,i){var a=240&rt(t,e)|15;n[i+0]=240&e7(t,r)|e9(t,e,r)>>4,n[i+1]=a}function ra(t,e,r,n,i){n[i+0]=255,re(t,e,r,n,i+1)}function ro(t,e,r,n,i){rr(t,e,r,n,i),n[i+3]=255}function rs(t,e,r,n,i){re(t,e,r,n,i),n[i+3]=255}function rl(e,r,n){t[e]=function(t,e,i,a,o,s,l,c,u){for(var f=c+(-2&u)*n;c!=f;)r(t[e+0],i[a+0],o[s+0],l,c),r(t[e+1],i[a+0],o[s+0],l,c+n),e+=2,++a,++s,c+=2*n;1&u&&r(t[e+0],i[a+0],o[s+0],l,c)}}function rc(t,e,r){return 0==r?0==t?0==e?6:5:4*(0==e):r}function ru(t,e,r,n,i){switch(t>>>30){case 3:rR(e,r,n,i,0);break;case 2:rz(e,r,n,i);break;case 1:rB(e,r,n,i)}}function rf(t,e){var r,a,o=e.M,s=e.Nb,l=t.oc,c=t.pc+40,u=t.oc,f=t.pc+584,d=t.oc,h=t.pc+600;for(r=0;16>r;++r)l[c+32*r-1]=129;for(r=0;8>r;++r)u[f+32*r-1]=129,d[h+32*r-1]=129;for(0<o?l[c-1-32]=u[f-1-32]=d[h-1-32]=129:(i(l,c-32-1,127,21),i(u,f-32-1,127,9),i(d,h-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(r=-1;16>r;++r)n(l,c+32*r-4,l,c+32*r+12,4);for(r=-1;8>r;++r)n(u,f+32*r-4,u,f+32*r+4,4),n(d,h+32*r-4,d,h+32*r+4,4)}var m=t.Gd,v=t.Hd+a,y=p.ad,g=p.Hc;if(0<o&&(n(l,c-32,m[v].y,0,16),n(u,f-32,m[v].f,0,8),n(d,h-32,m[v].ea,0,8)),p.Za){var b=l,x=c-32+16;for(0<o&&(a>=t.za-1?i(b,x,m[v].y[15],4):n(b,x,m[v+1].y,0,4)),r=0;4>r;r++)b[x+128+r]=b[x+256+r]=b[x+384+r]=b[x+0+r];for(r=0;16>r;++r,g<<=2)b=l,x=c+n4[r],nM[p.Ob[r]](b,x),ru(g,y,16*r,b,x)}else if(nL[b=rc(a,o,p.Ob[0])](l,c),0!=g)for(r=0;16>r;++r,g<<=2)ru(g,y,16*r,l,c+n4[r]);for(r=p.Gc,nT[b=rc(a,o,p.Dd)](u,f),nT[b](d,h),g=y,b=u,x=f,255&(p=0|r)&&(170&p?rF(g,256,b,x):rq(g,256,b,x)),p=d,g=h,255&(r>>=8)&&(170&r?rF(y,320,p,g):rq(y,320,p,g)),o<t.Ub-1&&(n(m[v].y,0,l,c+480,16),n(m[v].f,0,u,f+224,8),n(m[v].ea,0,d,h+224,8)),r=8*s*t.B,m=t.sa,v=t.ta+16*a+16*s*t.R,y=t.qa,p=t.ra+8*a+r,g=t.Ha,b=t.Ia+8*a+r,r=0;16>r;++r)n(m,v+r*t.R,l,c+32*r,16);for(r=0;8>r;++r)n(y,p+r*t.B,u,f+32*r,8),n(g,b+r*t.B,d,h+32*r,8)}}function rd(t,n,i,a,o,s,l,c,u){var f=[0],d=[0],h=0,p=null!=u?u.kd:0,m=null!=u?u:new e$;if(null==t||12>i)return 7;m.data=t,m.w=n,m.ha=i,n=[n],i=[i],m.gb=[m.gb];i:{var v=n,g=i,b=m.gb;if(e(null!=t),e(null!=g),e(null!=b),b[0]=0,12<=g[0]&&!r(t,v[0],"RIFF")){if(r(t,v[0]+8,"WEBP")){b=3;break i}var x=L(t,v[0]+4);if(12>x||0xfffffff6<x){b=3;break i}if(p&&x>g[0]-8){b=7;break i}b[0]=x,v[0]+=12,g[0]-=12}b=0}if(0!=b)return b;for(x=0<m.gb[0],i=i[0];;){i:{var j=t;g=n,b=i;var N=f,k=d,_=v=[0];if((O=h=[h])[0]=0,8>b[0])b=7;else{if(!r(j,g[0],"VP8X")){if(10!=L(j,g[0]+4)){b=3;break i}if(18>b[0]){b=7;break i}var S=L(j,g[0]+8),A=1+C(j,g[0]+12);if(0x80000000<=A*(j=1+C(j,g[0]+15))){b=3;break i}null!=_&&(_[0]=S),null!=N&&(N[0]=A),null!=k&&(k[0]=j),g[0]+=18,b[0]-=18,O[0]=1}b=0}}if(h=h[0],v=v[0],0!=b)return b;if(g=!!(2&v),!x&&h)return 3;if(null!=s&&(s[0]=!!(16&v)),null!=l&&(l[0]=g),null!=c&&(c[0]=0),l=f[0],v=d[0],h&&g&&null==u){b=0;break}if(4>i){b=7;break}if(x&&h||!x&&!h&&!r(t,n[0],"ALPH")){i=[i],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];i:{S=t,b=n,x=i;var O=m.gb;N=m.na,k=m.P,_=m.Sa,A=22,e(null!=S),e(null!=x),j=b[0];var P=x[0];for(e(null!=N),e(null!=_),N[0]=null,k[0]=null,_[0]=0;;){if(b[0]=j,x[0]=P,8>P){b=7;break i}var E=L(S,j+4);if(0xfffffff6<E){b=3;break i}var M=8+E+1&-2;if(A+=M,0<O&&A>O){b=3;break i}if(!r(S,j,"VP8 ")||!r(S,j,"VP8L")){b=0;break i}if(P[0]<M){b=7;break i}r(S,j,"ALPH")||(N[0]=S,k[0]=j+8,_[0]=E),j+=M,P-=M}}if(i=i[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=b)break}i=[i],m.Ja=[m.Ja],m.xa=[m.xa];i:if(O=t,b=n,x=i,N=m.gb[0],k=m.Ja,_=m.xa,j=!r(O,S=b[0],"VP8 "),A=!r(O,S,"VP8L"),e(null!=O),e(null!=x),e(null!=k),e(null!=_),8>x[0])b=7;else{if(j||A){if(O=L(O,S+4),12<=N&&O>N-12){b=3;break i}if(p&&O>x[0]-8){b=7;break i}k[0]=O,b[0]+=8,x[0]-=8,_[0]=A}else _[0]=5<=x[0]&&47==O[S+0]&&!(O[S+4]>>5),k[0]=x[0];b=0}if(i=i[0],m.Ja=m.Ja[0],m.xa=m.xa[0],n=n[0],0!=b)break;if(0xfffffff6<m.Ja)return 3;if(null==c||g||(c[0]=m.xa?2:1),l=[l],v=[v],m.xa){if(5>i){b=7;break}c=l,p=v,g=s,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(x=[0],O=[0],N=[0],y(k=new w,t,n,i),tm(k,x,O,N)?(null!=c&&(c[0]=x[0]),null!=p&&(p[0]=O[0]),null!=g&&(g[0]=N[0]),t=1):t=0):t=0}else{if(10>i){b=7;break}c=v,null==t||10>i||!tY(t,n+3,i-3)?t=0:(p=t[n+0]|t[n+1]<<8|t[n+2]<<16,g=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=m.Ja||!g||!t?t=0:(l&&(l[0]=g),c&&(c[0]=t),t=1))}if(!t||(l=l[0],v=v[0],h&&(f[0]!=l||d[0]!=v)))return 3;null!=u&&(u[0]=m,u.offset=n-u.w,e(0xfffffff6>n-u.w),e(u.offset==u.ha-i));break}return 0==b||7==b&&h&&null==u?(null!=s&&(s[0]|=null!=m.na&&0<m.na.length),null!=a&&(a[0]=l),null!=o&&(o[0]=v),0):b}function rh(t,e,r){var n=e.width,i=e.height,a=0,o=0,s=n,l=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,a=t.v,o=t.j,11>r||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=l||a+s>n||o+l>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!D(s,l,r=[t.ib],a=[t.hb]))return 0;e.ib=r[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*n/4&&e.hb<3*i/4,e.Kb=0),1}function rp(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function rm(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,o=r.bd,s=-2&r.v,l=-2&r.j;if(0>s||0>l||0>=i||0>=o||s+i>t||l+o>e)return 2;t=i,e=o}if(r.da){if(!D(t,e,i=[r.ib],o=[r.hb]))return 2;t=i[0],e=o[0]}}n.width=t,n.height=e;i:{var c=n.width,u=n.height;if(t=n.S,0>=c||0>=u||!(t>=nn&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){s=o=i=e=0;var f=(l=c*n7[t])*u;if(11>t||(o=(u+1)/2*(e=(c+1)/2),12==t&&(s=(i=c)*u)),null==(u=a(f+2*o+s))){t=1;break i}n.sd=u,11>t?((c=n.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=f):((c=n.f.kb).y=u,c.O=0,c.fa=l,c.Fd=f,c.f=u,c.N=0+f,c.Ab=e,c.Cd=o,c.ea=u,c.W=0+f+o,c.Db=e,c.Ed=o,12==t&&(c.F=u,c.J=0+f+2*o),c.Tc=s,c.lb=i)}if(e=1,i=n.S,o=n.width,s=n.height,i>=nn&&13>i)if(11>i)e&=(l=Math.abs((t=n.f.RGBA).A))*(s-1)+o<=t.size,e&=l>=o*n7[i],e&=null!=t.eb;else{t=n.f.kb,l=(o+1)/2,f=(s+1)/2,c=Math.abs(t.fa),u=Math.abs(t.Ab);var d=Math.abs(t.Db),h=Math.abs(t.lb),p=h*(s-1)+o;e&=c*(s-1)+o<=t.Fd,e&=u*(f-1)+l<=t.Cd,e=(e&=d*(f-1)+l<=t.Ed)&c>=o&u>=l&d>=l&null!=t.y&null!=t.f&null!=t.ea,12==i&&(e&=h>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=2*!e}}return 0!=t||null!=r&&r.fd&&(t=rp(n)),t}var rv=64,ry=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,0xffffff],rg=24,rb=32,rx=8,rw=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];F("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 0xff000000},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return q(q(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return q(t,e[r-1])},t.Predictor7=function(t,e,r){return q(t,e[r+0])},t.Predictor8=function(t,e,r){return q(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return q(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return q(q(t,e[r-1]),q(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=H(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+H(n>>16&255,t>>16&255,e>>16&255)+H(n>>8&255,t>>8&255,e>>8&255)+H(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(U((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|U((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|U((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|U((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(V((t=q(t,e[r+0]))>>24&255,n>>24&255)<<24|V(t>>16&255,n>>16&255)<<16|V(t>>8&255,n>>8&255)<<8|V(255&t,255&n))>>>0};var rj=t.PredictorAdd0;t.PredictorAdd1=W,F("Predictor2","PredictorAdd2"),F("Predictor3","PredictorAdd3"),F("Predictor4","PredictorAdd4"),F("Predictor5","PredictorAdd5"),F("Predictor6","PredictorAdd6"),F("Predictor7","PredictorAdd7"),F("Predictor8","PredictorAdd8"),F("Predictor9","PredictorAdd9"),F("Predictor10","PredictorAdd10"),F("Predictor11","PredictorAdd11"),F("Predictor12","PredictorAdd12"),F("Predictor13","PredictorAdd13");var rN=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var rk,r_=t.ColorIndexInverseTransform,rS=t.MapARGB,rA=t.VP8LColorIndexInverseTransformAlpha,rO=t.MapAlpha,rP=t.VP8LPredictorsAdd=[];rP.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var rE,rC,rL,rM,rT,rI,rD,rR,rz,rF,rB,rq,rU,rV,rH,rW,r$,rG,rK,rY,rX,rZ,rJ,rQ,r0,r1,r2,r5,r3=a(511),r4=a(2041),r6=a(225),r8=a(767),r7=0,r9=r4,nt=r6,ne=r8,nr=r3,nn=0,ni=1,na=2,no=3,ns=4,nl=5,nc=6,nu=7,nf=8,nd=9,nh=10,np=[2,3,7],nm=[3,3,11],nv=[280,256,256,256,40],ny=[0,1,1,1,0],ng=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],nb=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],nx=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],nw=8,nj=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],nN=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nk=null,n_=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],nS=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nA=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],nO=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
55,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],nP=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
51,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],nE=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 9,494 bytes, line 5
55,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],nC=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],nL=[],nM=[],nT=[],nI=1,nD=2,nR=[],nz=[];e4("UpsampleRgbLinePair",re,3),e4("UpsampleBgrLinePair",rr,3),e4("UpsampleRgbaLinePair",rs,4),e4("UpsampleBgraLinePair",ro,4),e4("UpsampleArgbLinePair",ra,4),e4("UpsampleRgba4444LinePair",ri,2),e4("UpsampleRgb565LinePair",rn,2);var nF=t.UpsampleRgbLinePair,nB=t.UpsampleBgrLinePair,nq=t.UpsampleRgbaLinePair,nU=t.UpsampleBgraLinePair,nV=t.UpsampleArgbLinePair,nH=t.UpsampleRgba4444LinePair,nW=t.UpsampleRgb565LinePair,n$=16,nG=32768,nK=-227,nY=482,nX=6,nZ=16383,nJ=0,nQ=a(256),n0=a(256),n1=a(256),n2=a(256),n5=a(nY-nK),n3=a(nY-nK);rl("YuvToRgbRow",re,3),rl("YuvToBgrRow",rr,3),rl("YuvToRgbaRow",rs,4),rl("YuvToBgraRow",ro,4),rl("YuvToArgbRow",ra,4),rl("YuvToRgba4444Row",ri,2),rl("YuvToRgb565Row",rn,2);var n4=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],n6=[0,2,8],n8=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,r,s,l,c){var u=ni,f=new eW,d=new to;f.ba=d,d.S=u,d.width=[d.width],d.height=[d.height];var h=d.width,p=d.height,m=new ts;if(null==m||null==t)var v=2;else e(null!=m),v=rd(t,r,s,m.width,m.height,m.Pd,m.Qd,m.format,null);if(0!=v?h=0:(null!=h&&(h[0]=m.width[0]),null!=p&&(p[0]=m.height[0]),h=1),h){d.width=d.width[0],d.height=d.height[0],null!=l&&(l[0]=d.width),null!=c&&(c[0]=d.height);i:{if(l=new t$,(c=new e$).data=t,c.w=r,c.ha=s,c.kd=1,r=[0],e(null!=c),(0==(t=rd(c.data,c.w,c.ha,null,null,null,r,null,c))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=f),l.data=c.data,l.w=c.w+c.offset,l.ha=c.ha-c.offset,l.put=th,l.ac=td,l.bc=tp,l.ma=f,c.xa){if(null==(t=tO())){f=1;break i}if(function(t,r){for(var n=[0],i=[0],a=[0];;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,y(t.m,r.data,r.w,r.ha),!tm(t.m,n,i,a)){t.a=3;break}if(t.xb=nD,r.width=n[0],r.height=i[0],!tP(n[0],i[0],1,t,null))break;return 1}return e(0!=t.a),0}(t,l)){if(l=0==(r=rm(l.width,l.height,f.Oa,f.ba))){a:{for(l=t;;){if(null==l){l=0;break a}if(e(null!=l.s.yc),e(null!=l.s.Ya),e(0<l.s.Wb),e(null!=(s=l.l)),e(null!=(c=s.ma)),0!=l.xb){if(l.ca=c.ba,l.tb=c.tb,e(null!=l.ca),!rh(c.Oa,s,no)){l.a=2;break}if(!tE(l,s.width)||s.da)break;if((s.da||tn(l.ca.S))&&e3(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&e3()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!M(l.s.vb,l.s.Wa.Xa)){l.a=1;break}l.xb=0}if(!tS(l,l.V,l.Ba,l.c,l.i,s.o,tj))break;c.Dc=l.Ma,l=1;break a}e(0!=l.a),l=0}l=!l}l&&(r=t.a)}else r=t.a}else if((t=new tG).Fa=c.na,t.P=c.P,t.qc=c.Sa,tX(t,l)){if(0==(r=rm(l.width,l.height,f.Oa,f.ba))){if(t.Aa=0,s=f.Oa,e(null!=(c=t)),null!=s){if(0<(h=0>(h=s.Md)?0:100<h?255:255*h/100)){for(p=m=0;4>p;++p)12>(v=c.pb[p]).lc&&(v.ia=h*n8[0>v.lc?0:v.lc]>>3),m|=v.ia;m&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=s.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(t,r){if(null==t)return 0;if(null==r)return tK(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!tX(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var s=n6[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-s>>4,t.zb=r.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+s>>4,t.Hb=r.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l,c=t.ed;for(s=0;4>s;++s){if(t.Qa.Cb){var u=t.Qa.Lb[s];t.Qa.Fb||(u+=c.Tb)}else u=c.Tb;for(l=0;1>=l;++l){var f=t.gd[s][l],d=u;if(c.Pc&&(d+=c.vd[0],l&&(d+=c.od[0])),0<(d=0>d?0:63<d?63:d)){var h=d;0<c.wb&&(h=4<c.wb?h>>2:h>>1)>9-c.wb&&(h=9-c.wb),1>h&&(h=1),f.dd=h,f.tc=2*d+h,f.ld=40<=d?2:+(15<=d)}else f.tc=0;f.La=l}}}s=0}else tK(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=1);a:{s=t.Ic,c=4*(h=t.za);var p=32*h,m=h+1,v=0<t.L?h*(0<t.Aa?2:1):0,g=(2==t.Aa?2:1)*h;if((f=c+832+(l=3*(16*s+n6[t.L])/2*p)+(u=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=f)s=0;else{if(f>t.Vb){if(t.Vb=0,t.Ec=a(f),t.Fc=0,null==t.Ec){s=tK(t,1,"no memory during frame initialization.");break a}t.Vb=f}f=t.Ec,d=t.Fc,t.Ac=f,t.Bc=d,d+=c,t.Gd=o(p,tV),t.Hd=0,t.rb=o(m+1,tF),t.sb=1,t.wa=v?o(v,tz):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=h),e(!0),t.oc=f,t.pc=d,d+=832,t.ya=o(g,tq),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=h),t.R=16*h,t.B=8*h,h=(p=n6[t.L])*t.R,p=p/2*t.B,t.sa=f,t.ta=d+h,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,d+=l,t.mb=u?f:null,t.nb=u?d:null,e(d+u<=t.Fc+t.Vb),tJ(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!r7){for(s=-255;255>=s;++s)r3[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)r4[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)r6[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)r8[255+s]=0>s?0:255<s?255:s;r7=1}rD=t7,rR=t3,rF=t4,rB=t6,rq=t8,rz=t5,rU=eR,rV=ez,rH=eq,rW=eU,r$=eF,rG=eB,rK=eV,rY=eH,rX=eC,rZ=eL,rJ=eM,rQ=eT,nM[0]=eh,nM[1]=et,nM[2]=ef,nM[3]=ed,nM[4]=ep,nM[5]=ev,nM[6]=em,nM[7]=ey,nM[8]=eb,nM[9]=eg,nL[0]=eo,nL[1]=er,nL[2]=en,nL[3]=ei,nL[4]=es,nL[5]=el,nL[6]=ec,nT[0]=eN,nT[1]=ee,nT[2]=ex,nT[3]=ew,nT[4]=e_,nT[5]=ek,nT[6]=eS,s=1}else s=0}s&&(s=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],l=t.m,c=t;for(o=0;o<c.za;++o){var u=l,f=c,d=f.Ac,h=f.Bc+4*o,p=f.zc,m=f.ya[f.aa+o];if(f.Qa.Bb?m.$b=O(u,f.Pa.jb[0])?2+O(u,f.Pa.jb[2]):O(u,f.Pa.jb[1]):m.$b=0,f.kc&&(m.Ad=O(u,f.Bd)),m.Za=!O(u,145)+0,m.Za){var v=m.Ob,g=0;for(f=0;4>f;++f){var b,x=p[0+f];for(b=0;4>b;++b){x=nP[d[h+b]][x];for(var w=nA[O(u,x[0])];0<w;)w=nA[2*w+O(u,x[w])];x=-w,d[h+b]=x}n(v,g,d,h,4),g+=4,p[0+f]=x}}else x=O(u,156)?O(u,128)?1:3:2*!!O(u,163),m.Ob[0]=x,i(d,h,x,4),i(p,0,x,4);m.Dd=O(u,142)?O(u,114)?O(u,183)?1:3:2:0}if(c.m.Ka)return tK(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=s,u=(l=t).rb[l.sb-1],d=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],h=l.kc?o.Ad:0)u.la=d.la=0,o.Za||(u.Na=d.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{if(u=d,d=c,h=l.Pa.Xc,p=l.ya[l.aa+l.ja],m=l.pb[p.$b],f=p.ad,v=0,g=l.rb[l.sb-1],x=b=0,i(f,v,0,384),p.Za)var j,k,S=0,A=h[3];else{w=a(16);var P=u.Na+g.Na;if(P=nk(d,h[1],P,m.Eb,0,w,0),u.Na=g.Na=(0<P)+0,1<P)rD(w,0,f,v);else{var E=w[0]+3>>3;for(w=0;256>w;w+=16)f[v+w]=E}S=1,A=h[0]}var C=15&u.la,L=15&g.la;for(w=0;4>w;++w){var M=1&L;for(E=k=0;4>E;++E)C=C>>1|(M=(P=nk(d,A,P=M+(1&C),m.Sc,S,f,v))>S)<<7,k=k<<2|(3<P?3:1<P?2:0!=f[v+0]),v+=16;C>>=4,L=L>>1|M<<7,b=(b<<8|k)>>>0}for(A=C,S=L>>4,j=0;4>j;j+=2){for(k=0,C=u.la>>4+j,L=g.la>>4+j,w=0;2>w;++w){for(M=1&L,E=0;2>E;++E)P=M+(1&C),C=C>>1|(M=0<(P=nk(d,h[2],P,m.Qc,0,f,v)))<<3,k=k<<2|(3<P?3:1<P?2:0!=f[v+0]),v+=16;C>>=2,L=L>>1|M<<5}x|=k<<4*j,A|=C<<4<<j,S|=(240&L)<<j}u.la=A,g.la=S,p.Hc=b,p.Gc=x,p.ia=43690&x?0:m.ia,h=!(b|x)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!h),c.Ka)return tK(t,7,"Premature end-of-file encountered.")}if(tJ(t),l=r,c=1,o=(s=t).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)a:{if(o.M=s.M,o.uc=u,rf(s,o),c=1,o=(k=s.D).Nb,u=(x=n6[s.L])*s.R,d=x/2*s.B,w=16*o*s.R,E=8*o*s.B,h=s.sa,p=s.ta-u+w,m=s.qa,f=s.ra-d+E,v=s.Ha,g=s.Ia-d+E,L=0==(C=k.M),b=C>=s.Va-1,2==s.Aa&&rf(s,k),k.uc)for(M=(P=s).D.M,e(P.D.uc),k=P.yb;k<P.Hb;++k){S=k,A=M;var T=(I=(H=P).D).Nb;j=H.R;var I=I.wa[I.Y+S],D=H.sa,R=H.ta+16*T*j+16*S,z=I.dd,F=I.tc;if(0!=F)if(e(3<=F),1==H.L)0<S&&rZ(D,R,j,F+4),I.La&&rQ(D,R,j,F),0<A&&rX(D,R,j,F+4),I.La&&rJ(D,R,j,F);else{var B=H.B,q=H.qa,U=H.ra+8*T*B+8*S,V=H.Ha,H=H.Ia+8*T*B+8*S;T=I.ld,0<S&&(rV(D,R,j,F+4,z,T),rW(q,U,V,H,B,F+4,z,T)),I.La&&(rG(D,R,j,F,z,T),rY(q,U,V,H,B,F,z,T)),0<A&&(rU(D,R,j,F+4,z,T),rH(q,U,V,H,B,F+4,z,T)),I.La&&(r$(D,R,j,F,z,T),rK(q,U,V,H,B,F,z,T))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(k=16*C,C=16*(C+1),L?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+E,l.ea=s.Ha,l.W=s.Ia+E):(k-=x,l.y=h,l.O=p,l.f=m,l.N=f,l.ea=v,l.W=g),b||(C-=x),C>l.o&&(C=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&k<C&&(l.J=function(t,r,i,o){var s=r.width,l=r.o;if(e(null!=t&&null!=r),0>i||0>=o||i+o>l)return null;if(!t.Cc){if(null==t.ga){if(t.ga=new eX,(S=null==t.ga)||(S=r.width*r.o,e(0==t.Gb.length),t.Gb=a(S),t.Uc=0,null==t.Gb?S=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,S=1),S=!S),!S){S=t.ga;var c=t.Fa,u=t.P,f=t.qc,d=t.mb,h=t.nb,p=u+1,m=f-1,v=S.l;if(e(null!=c&&null!=d&&null!=r),nR[0]=null,nR[1]=eZ,nR[2]=eJ,nR[3]=eQ,S.ca=d,S.tb=h,S.c=r.width,S.i=r.height,e(0<S.c&&0<S.i),1>=f)r=0;else if(S.$a=3&c[u+0],S.Z=c[u+0]>>2&3,S.Lc=c[u+0]>>4&3,u=c[u+0]>>6&3,0>S.$a||1<S.$a||4<=S.Z||1<S.Lc||u)r=0;else if(v.put=th,v.ac=td,v.bc=tp,v.ma=S,v.width=r.width,v.height=r.height,v.Da=r.Da,v.v=r.v,v.va=r.va,v.j=r.j,v.o=r.o,S.$a)i:{for(e(1==S.$a),r=tO();;){if(null==r){r=0;break i}if(e(null!=S),S.mc=r,r.c=S.c,r.i=S.i,r.l=S.l,r.l.ma=S,r.l.width=S.c,r.l.height=S.i,r.a=0,y(r.m,c,p,m),!tP(S.c,S.i,1,r,null)||(1==r.ab&&3==r.gc[0].hc&&tN(r.s)?(S.ic=1,c=r.c*r.i,r.Ta=null,r.Ua=0,r.V=a(c),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(S.ic=0,r=tE(r,S.c)),!r))break;r=1;break i}S.mc=null,r=0}else r=m>=S.c*S.i;S=!r}if(S)return null;1!=t.ga.Lc?t.Ga=0:o=l-i}
vendor: 2,860 bytes, line 5
5e(null!=t.ga),e(i+o<=l);i:{if(r=(c=t.ga).c,l=c.l.o,0==c.$a){if(p=t.rc,m=t.Vc,v=t.Fa,u=t.P+1+i*r,f=t.mb,d=t.nb+i*r,e(u<=t.P+t.qc),0!=c.Z)for(e(null!=nR[c.Z]),S=0;S<o;++S)nR[c.Z](p,m,v,u,f,d,r),p=f,m=d,d+=r,u+=r;else for(S=0;S<o;++S)n(f,d,v,u,r),p=f,m=d,d+=r,u+=r;t.rc=p,t.Vc=m}else{if(e(null!=c.mc),r=i+o,e(null!=(S=c.mc)),e(r<=S.i),S.C>=r)r=1;else if(c.ic||e3(),c.ic){c=S.V,p=S.Ba,m=S.c;var g=S.i,b=(v=1,u=S.$/m,f=S.$%m,d=S.m,h=S.s,S.$),x=m*g,w=m*r,j=h.wc,k=b<w?tx(h,f,u):null;e(b<=x),e(r<=g),e(tN(h));a:for(;;){for(;!d.h&&b<w;){if(f&j||(k=tx(h,f,u)),e(null!=k),_(d),256>(g=tg(k.G[0],k.H[0],d)))c[p+b]=g,++b,++f>=m&&(f=0,++u<=r&&!(u%16)&&t_(S,u));else{if(!(280>g)){v=0;break a}g=tv(g-256,d);var S,A,O=tg(k.G[4],k.H[4],d);if(_(d),!(b>=(O=ty(m,O=tv(O,d)))&&x-b>=g)){v=0;break a}for(A=0;A<g;++A)c[p+b+A]=c[p+b+A-O];for(b+=g,f+=g;f>=m;)f-=m,++u<=r&&!(u%16)&&t_(S,u);b<w&&f&j&&(k=tx(h,f,u))}e(d.h==N(d))}t_(S,u>r?r:u);break}!v||d.h&&b<x?(v=0,S.a=d.h?5:3):S.$=b,r=v}else r=tS(S,S.V,S.Ba,S.c,S.i,r,tC);if(!r){o=0;break i}}i+o>=l&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}(s,l,k,C-k),l.F=s.mb,null==l.F&&0==l.F.length)){c=tK(s,3,"Could not decode alpha data.");break a}k<l.j&&(x=l.j-k,k=l.j,e(!(1&x)),l.O+=s.R*x,l.N+=s.B*(x>>1),l.W+=s.B*(x>>1),null!=l.F&&(l.J+=l.width*x)),k<C&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=k-l.j,l.U=l.va-l.v,l.T=C-k,c=l.put(l))}o+1!=s.Ic||b||(n(s.sa,s.ta-u,h,p+16*s.R,u),n(s.qa,s.ra-d,m,f+8*s.B,d),n(s.Ha,s.Ia-d,v,g+8*s.B,d))}if(!c)return tK(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),s&=1}return s?(t.cb=0,s):0})(t,l)||(r=t.a)}}else r=t.a;0==r&&null!=f.Oa&&f.Oa.fd&&(r=rp(f.ba))}f=r}u=0!=f?null:11>u?d.f.RGBA.eb:d.f.kb.y}else u=null;return u};var n7=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],d=[0],h=[],p=new l,m=function(t,e){var r={},n=0,i=!1,a=0,o=0;if(r.frames=[],!function(t,e){for(var r=0;r<4;r++)if(t[e+r]!="RIFF".charCodeAt(r))return!0;return!1}(t,e)){for(u(t,e+=4),e+=8;e<t.length;){var s,l,f,d=function(t,e){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(t[e++]);return r}(t,e),h=u(t,e+=4);e+=4;var p=h+(1&h);switch(d){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(f=r.frames[n]).src_off=i?o:e-8,f.src_size=a+h+8,n++,i&&(i=!1,a=0,o=0);break;case"VP8X":(f=r.header={}).feature_flags=t[e];var m=e+4;f.canvas_width=1+c(t,m),m+=3,f.canvas_height=1+c(t,m),m+=3;break;case"ALPH":i=!0,a=p+8,o=e-8;break;case"ANIM":(f=r.header).bgcolor=u(t,e),m=e+4,f.loop_count=t[(s=m)+0]|t[s+1]<<8,m+=2;break;case"ANMF":(f=r.frames[n]={}).offset_x=2*c(t,e),e+=3,f.offset_y=2*c(t,e),e+=3,f.width=1+c(t,e),e+=3,f.height=1+c(t,e),e+=3,f.duration=c(t,e),e+=3,l=t[e++
5],f.dispose=1&l,f.blend=l>>1&1}"ANMF"!=d&&(e+=p)}return r}}(t,0);m.response=t,m.rgbaoutput=!0,m.dataurl=!1;var v=m.header?m.header:null,y=m.frames?m.frames:null;if(v){v.loop_counter=v.loop_count,f=[v.canvas_height],d=[v.canvas_width];for(var g=0;g<y.length&&0!=y[g].blend;g++);}var b=y[0],x=p.WebPDecodeRGBA(t,b.src_off,b.src_size,d,f);b.rgba=x,b.imgwidth=d[0],b.imgheight=f[0];for(var w=0;w<d[0]*f[0]*4;w++)h[w]=x[w];return this.width=d,this.height=f,this.data=h,this}OX=Sh.API,O6=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new O3,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new O2,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new O2,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this},OX.events.push(["initialized",function(){this.context2d=new O8(this),OZ=this.internal.f2,OJ=this.internal.getCoordinateString,OQ=this.internal.getVerticalCoordinateString,O0=this.internal.getHorizontalCoordinate,O1=this.internal.getVerticalCoordinate,O2=this.internal.Point,O5=this.internal.Rectangle,O3=this.internal.Matrix,O4=new O6}]),(O8=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=!!t}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=!!t}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(t){isNaN(t)||(n=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}}),Object.defineProperty(this,"margin",{get:function(){return O4.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=[,,,,])[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),O4.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a}
5,set:function(t){a=t}});var o=0;Object.defineProperty(this,"lastBreak",{get:function(){return o},set:function(t){o=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}}),Object.defineProperty(this,"ctx",{get:function(){return O4},set:function(t){t instanceof O6&&(O4=t)}}),Object.defineProperty(this,"path",{get:function(){return O4.path},set:function(t){O4.path=t}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=O7(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=O7(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var c=null,u=null,f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(t){c=null,u=null,f=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(t))){var r=e[1];e[2];var n=e[3],i=e[4];e[5];var a=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return OD;if(i in At)return[At[i]];for(;""!==i;){switch(r=null,e=(i=Ar(i)).charAt(0)){case'"':case"'":r=function(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}(i.substring(1),e);break;default:r=function(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}(i)}if(null===r||(n.push(r[0]),""!==(i=Ar(r[1]))&&","!==i.charAt(0)))return OD;i=i.replace(/^,/,"")}return n}(a);if(this.fontFaces){var l=function(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},S9,r.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=S8(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[n]))throw Error("Could not find a font-family for the rule '"+Ae(a)+"' and default family '"+n+"'.");if(o=function(t,e){if(e[t])return e[t];var r=S3[t],n=r<=S3.normal?-1:1,i=S7(e,S5,r,n);if(!i)throw Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var r=S2[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw Error("Could not find a matching font-style for "+t)}(a.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=S7(e,S4,S6[t],t<400?-1:1);if(!r)throw Error("Could not find a matching font-weight for value "+t);return r}(a.weight,o)))throw Error("Failed to resolve a font for the rule '"+Ae(a)+"'.");return o}
5(function(t,e){var r,n=t.getFontList(),i=JSON.stringify(n);return(null===c||u!==i)&&(c=function(t){for(var e={},r=0;r<t.length;++r){var n=S8(t[r]),i=n.family,a=n.stretch,o=n.style,s=n.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=n}return e}((r=[],Object.keys(n).forEach(function(t){n[t].forEach(function(e){var n=null;switch(e){case"bold":n={family:t,weight:"bold"};break;case"italic":n={family:t,style:"italic"};break;case"bolditalic":n={family:t,weight:"bold",style:"italic"};break;case"":case"normal":n={family:t}}null!==n&&(n.ref={name:t,style:e},r.push(n))})}),r).concat(e)),u=i),c}(this.pdf,this.fontFaces),s.map(function(t){return{family:t,stretch:"normal",weight:n,style:r}}));this.pdf.setFont(l.ref.name,l.ref.style)}else{var f="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(f="bold"),"italic"===r&&(f+="italic"),0===f.length&&(f="normal");for(var d="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},p=0;p<s.length;p++){if(void 0!==this.pdf.internal.getFont(s[p],f,{noFallback:!0,disableWarning:!0})){d=s[p];break}if("bolditalic"===f&&void 0!==this.pdf.internal.getFont(s[p],"bold",{noFallback:!0,disableWarning:!0}))d=s[p],f="bold";else if(void 0!==this.pdf.internal.getFont(s[p],"normal",{noFallback:!0,disableWarning:!0})){d=s[p],f="normal";break}}if(""===d){for(var m=0;m<s.length;m++)if(h[s[m]]){d=h[s[m]];break}}d=""===d?"Times":d,this.pdf.setFont(d,f)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,PN.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,PN.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=!!t}})}).prototype.setLineDash=function(t){this.lineDash=t},O8.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},O8.prototype.fill=function(){Po.call(this,"fill",!1)},O8.prototype.stroke=function(){Po.call(this,"stroke",!1)},O8.prototype.beginPath=function(){this.path=[{type:"begin"}]},O8.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw _K("jsPDF.context2d.moveTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new O2(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new O2(t,e)},O8.prototype.closePath=function(){var t=new O2(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,wk.default)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new O2(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new O2(t.x,t.y)},O8.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw _K("jsPDF.context2d.lineTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new O2(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new O2(r.x,r.y)},O8.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Po.call(this,null,!0)},O8.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw _K("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new O2(r,n)),a=this.ctx.transform.applyToPoint(new O2(t,e));this.path.push({type:"qct",x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new O2(i.x,i.y)},O8.prototype.bezierCurveTo=function(t,e,r,n,i,a){if(isNaN(i)||isNaN(a)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw _K("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),Error("Invalid arguments passed to 
5jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new O2(i,a)),s=this.ctx.transform.applyToPoint(new O2(t,e)),l=this.ctx.transform.applyToPoint(new O2(r,n));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:l.x,y2:l.y,x:o.x,y:o.y}),this.ctx.lastPoint=new O2(o.x,o.y)},O8.prototype.arc=function(t,e,r,n,i,a){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw _K("jsPDF.context2d.arc: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=!!a,!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new O2(t,e));t=o.x,e=o.y;var s=this.ctx.transform.applyToPoint(new O2(0,r)),l=this.ctx.transform.applyToPoint(new O2(0,0));r=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))}Math.abs(i-n)>=2*Math.PI&&(n=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:i,counterclockwise:a})},O8.prototype.arcTo=function(t,e,r,n,i){throw Error("arcTo not implemented.")},O8.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw _K("jsPDF.context2d.rect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},O8.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw _K("jsPDF.context2d.fillRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!O9.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},O8.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw _K("jsPDF.context2d.strokeRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Pt.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},O8.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw _K("jsPDF.context2d.clearRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},O8.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new O6(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},O8.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},O8.prototype.toDataURL=function(){throw Error("toDataUrl not implemented.")},O7=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new _Q(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},O9=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},Pt=function(){return!!(this.ctx.isStrokeTransparent||0==this.globalAlpha)},O8.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw _K("jsPDF.context2d.fillText: Invalid arguments",arguments),Error("Invalid arguments passed to 
5jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!O9.call(this)){var i=Px(this.ctx.transform.rotation);Pp.call(this,{text:t,x:e,y:r,scale:this.ctx.transform.scaleX,angle:i,align:this.textAlign,maxWidth:n})}},O8.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw _K("jsPDF.context2d.strokeText: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Pt.call(this)){n=isNaN(n)?void 0:n;var i=Px(this.ctx.transform.rotation);Pp.call(this,{text:t,x:e,y:r,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:n})}},O8.prototype.measureText=function(t){if("string"!=typeof t)throw _K("jsPDF.context2d.measureText: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*n/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*r/72*1e4)/1e4})},O8.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw _K("jsPDF.context2d.scale: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new O3(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},O8.prototype.rotate=function(t){if(isNaN(t))throw _K("jsPDF.context2d.rotate: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new O3(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},O8.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw _K("jsPDF.context2d.translate: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new O3(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},O8.prototype.transform=function(t,e,r,n,i,a){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a))throw _K("jsPDF.context2d.transform: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new O3(t,e,r,n,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},O8.prototype.setTransform=function(t,e,r,n,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new O3(t,e,r,n,i,a)},Pe=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0},O8.prototype.drawImage=function(t,e,r,n,i,a,o,s,l){var c=this.pdf.getImageProperties(t),u=1,f=1,d=1,h=1;void 0!==n&&void 0!==s&&(d=s/n,h=l/i,u=c.width/n*s/n,f=c.height/i*l/i),void 0===a&&(a=e,o=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,l=i),void 0===n&&void 0===s&&(s=c.width,l=c.height);var p=this.ctx.transform.decompose(),m=Px(p.rotate.shx),v=new O3,y=(v=(v=(v=v.multiply(p.translate)).multiply(
vendor: 10,380 bytes, line 5
5p.skew)).multiply(p.scale)).applyToRectangle(new O5(a-e*d,o-r*h,n*u,i*f));if(this.autoPaging){for(var g,b=Pr.call(this,y),x=[],w=0;w<b.length;w+=1)-1===x.indexOf(b[w])&&x.push(b[w]);Pa(x);for(var j=x[0],N=x[x.length-1],k=j;k<N+1;k++){this.pdf.setPage(k);var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===k?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],O=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===k?0:A+(k-2)*O;if(0!==this.ctx.clip_path.length){var E=this.path;g=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pi(g,this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset),Ps.call(this,"fill",!0),this.path=E}var C=JSON.parse(JSON.stringify(y));C=Pi([C],this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset)[0];var L=(k>j||k<N)&&Pe.call(this);L&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,O,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",C.x,C.y,C.w,C.h,null,null,m),L&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",y.x,y.y,y.w,y.h,null,null,m)},Pr=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var a=Pw(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"bct":var o=Pj(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)Pn.call(this);return n},Pn=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=a},Pi=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;default:t[n].x+=e,t[n].y+=r}return t},Pa=function(t){return t.sort(function(t,e){return t-e})},Po=function(t,e){var r=this.fillStyle,n=this.strokeStyle,i=this.lineCap,a=this.lineWidth,o=Math.abs(a*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var l,c,u=JSON.parse(JSON.stringify(this.path)),f=JSON.parse(JSON.stringify(this.path)),d=[],h=0;h<f.length;h++)if(void 0!==f[h].x)for(var p=Pr.call(this,f[h]),m=0;m<p.length;m+=1)-1===d.indexOf(p[m])&&d.push(p[m]);for(var v=0;v<d.length;v++)for(;this.pdf.internal.getNumberOfPages()<d[v];)Pn.call(this);Pa(d);for(var y=d[0],g=d[d.length-1],b=y;b<g+1;b++){this.pdf.setPage(b),this.fillStyle=r,this.strokeStyle=n,this.lineCap=i,this.lineWidth=o,this.lineJoin=s;var x=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],w=1===b?this.posY+this.margin[0]:this.margin[0],j=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],N=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],k=1===b?0:j+(b-2)*N;if(0!==this.ctx.clip_path.length){var _=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pi(l,this.posX+this.margin[3],-k+w+this.ctx.prevPageLastElemOffset),Ps.call(this,t,!0),this.path=_}if(c=JSON.parse(JSON.stringify(u)),this.path=Pi(c,this.posX+this.margin[3],-k+w+this.ctx.prevPageLastElemOffset),!1===e||0===b){var S=(b>y||b<g)&&Pe.call(this);S&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],x,N,null).clip().discardPath()),Ps.call(this,t,e),S&&this.pdf.restoreGraphicsState()}this.lineWidth=a}this.path=u}else this.lineWidth=o,Ps.call(this,t,e),this.lineWidth=a},Ps=function(t,e){if(("stroke"!==t||e||!Pt.call(this))&&("stroke"===t||e||!O9.call(this))){for(var r,n,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var l=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(r=[s.x-a[o-1].x,s.y-a[o-1].y],l>0)){for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(r),i[l-1].abs.push(s);break}}break;case"bct":r=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(r);break;case"qct":var c=a[o-1].x+2/3*(s.x1-a[o-1].x),u=a[o-1].y+2/3*(s.y1-a[o-1].y),f=s.x+2/3*(s.x1-s.x),d=s.y+2/3*(s.y1-s.y),h=s.x,p=s.y;r=[c-a[o-1].x,u-a[o-1].y,f-a[o-1].x,d-a[o-1].y,h-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var m=!1,v=0;v<i.length;v++)if(i[v].arc)for(var y=i[v].abs,g=0;g<y.length;g++){var b=y[g];"arc"===b.type?Pu.call(this,b.x,b.y,b.radius,b.startAngle,b.endAngle,b.counterclockwise,void 0,e,!m):Pm.call(this,b.x,b.y),m=!0}else if(!0===i[v].close)this.pdf.internal.out("h"),m=!1;else if(!0!==i[v].begin){var x=i[v].start.x,w=i[v].start.y;Pv.call(this,i[v].deltas,x,w),m=!0}n&&Pf.call(this,n),e&&Pd.call(this)}},Pl=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;default:return t}},Pc=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)},O8.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},O8.prototype.createPattern=function(){return this.createLinearGradient()},O8.prototype.createRadialGradient=function(){return this.createLinearGradient()},Pu=function(t,e,r,n,i,a,o,s,l){for(var c=Pg.call(this,r,n,i,a),u=0;u<c.length;u++){var f=c[u];0===u&&(l?Ph.call(this,f.x1+t,f.y1+e):Pm.call(this,f.x1+t,f.y1+e)),Py.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?Pd.call(this):Pf.call(this,o)},Pf=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Pd=function(){this.pdf.clip(),this.pdf.discardPath()},Ph=function(t,e){this.pdf.internal.out(OJ(t)+" "+OQ(e)+" m")},Pp=function(t){switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var e,r,n,i,a=this.pdf.getTextDimensions(t.text),o=Pl.call(this,t.y),s=Pc.call(this,o)-a.h,l=this.ctx.transform.applyToPoint(new O2(t.x,o));if(this.autoPaging){var c=this.ctx.transform.decompose(),u=new O3;u=(u=(u=u.multiply(c.translate)).multiply(c.skew)).multiply(c.scale);for(var f=this.ctx.transform.applyToRectangle(new O5(t.x,o,a.w,a.h)),d=u.applyToRectangle(new O5(t.x,s,a.w,a.h)),h=Pr.call(this,d),p=[],m=0;m<h.length;m+=1)-1===p.indexOf(h[m])&&p.push(h[m]);Pa(p);for(var v=p[0],y=p[p.length-1],g=v;g<y+1;g++){this.pdf.setPage(g);var b=1===g?this.posY+this.margin[0]:this.margin[0],x=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],w=this.pdf.internal.pageSize.height-this.margin[2],j=w-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],k=N-this.margin[3],_=1===g?0:x+(g-2)*j;if(0!==this.ctx.clip_path.length){var S=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pi(r,this.posX+this.margin[3],-1*_+b),Ps.call(this,"fill",!0),this.path=S}var A=Pi([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-_+b+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale);var O="text"!==this.autoPaging;if(O||A.y+A.h<=w){if(O||A.y>=b&&A.x<=N){var P=O?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||N-A.x)[0],E=Pi([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-_+b+this.ctx.prevPageLastElemOffset)[0],C=O&&(g>v||g<y)&&Pe.call(this);C&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],k,j,null).clip().discardPath()),this.pdf.text(P,E.x,E.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),C&&this.pdf.restoreGraphicsState()}}else A.y<w&&(this.ctx.prevPageLastElemOffset+=w-A.y);t.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)}}else t.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale),this.pdf.text(t.text,l.x+this.posX,l.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)},Pm=function(t,e,r,n){r=r||0,n=n||0,this.pdf.internal.out(OJ(t+r)+" "+OQ(e+n)+" l")},Pv=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},Py=function(t,e,r,n,i,a,o,s){this.pdf.internal.out([OZ(O0(r+t)),OZ(O1(n+e)),OZ(O0(i+t)),OZ(O1(a+e)),OZ(O0(o+t)),OZ(O1(s+e)),"c"].join(" "))},Pg=function(t,e,r,n){for(var i=2*Math.PI,a=Math.PI/2;e>r;)e-=i;var o=Math.abs(r-e);o<i&&n&&(o=i-o);for(var s=[],l=n?-1:1,c=e;o>1e-5;){var u=c+l*Math.min(o,a);s.push(Pb.call(this,t,c,u)),o-=Math.abs(u-c),c=u}return s},Pb=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),a=t*Math.sin(n),o=-a,s=i*i+o*o,l=s+i*i+o*a,c=4/3*(Math.sqrt(2*s*l)-l)/(i*a-o*i),u=i-c*o,f=o+c*i,d=-f,h=n+e,p=Math.cos(h),m=Math.sin(h);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:u*p-f*m,y2:u*m+f*p,x3:u*p-d*m,y3:u*m+d*p,x4:t*Math.cos(r),y4:t*Math.sin(r)}},Px=function(t){return 180*t/Math.PI},Pw=function(t,e,r,n,i,a){var o=t+.5*(r-t),s=e+.5*(n-e),l=i+.5*(r-i),c=a+.5*(n-a),u=Math.min(t,i,o,l),f=Math.min(e,a,s,c);return new O5(u,f,Math.max(t,i,o,l)-u,Math.max(e,a,s,c)-f)},Pj=function(t,e,r,n,i,a,o,s){var l,c,u,f,d,h,p,m,v,y,g,b,x,w,j=r-t,N=n-e,k=i-r,_=a-n,S=o-i,A=s-a;for(c=0;c<41;c++)v=(p=(u=t+(l=c/40)*j)+l*((d=r+l*k)-u))+l*(d+l*(i+l*S-d)-p),y=(m=(f=e+l*N)+l*((h=n+l*_)-f))+l*(h+l*(a+l*A-h)-m),0==c?(g=v,b=y,x=v,w=y):(g=Math.min(g,v),b=Math.min(b,y),x=Math.max(x,v),w=Math.max(w,y));return new O5(Math.round(g),Math.round(b),Math.round(x-g),Math.round(w-b))}
5,PN=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}},Pk=Sh.API,P_=function(t){var e,r,n,i,a,o,s,l,c,u;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(a=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(o=(a=((a=((a=((a=(a-(u=a%85))/85)-(c=a%85))/85)-(l=a%85))/85)-(s=a%85))/85)%85,r.push(o+33,s+33,l+33,c+33,u+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},PS=function(t){var e,r,n,i,a,o=String,s="length",l="charCodeAt",c="slice",u="replace";for(t[c](-2),t=t[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),n=[],i=0,a=(t+=e="uuuuu"[c](t[s]%5||5))[s];a>i;i+=5)r=0x31c84b1*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),n.push(255&r>>24,255&r>>16,255&r>>8,255&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),o.fromCharCode.apply(o,n)},PA=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},PO=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return(e=jq(e)).reduce(function(t,e){return t+String.fromCharCode(e)},"")},Pk.processDataByFilters=function(t,e){var r=0,n=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),r=0;r<e.length;r+=1)switch(e[r]){case"ASCII85Decode":case"/ASCII85Decode":n=PS(n),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":n=P_(n),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":n=PA(n),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":n=n.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">",i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":n=PO(n),i.push("/FlateDecode");break;default:throw Error('The filter: "'+e[r]+'" is not implemented')}return{data:n,reverseChain:i.reverse().join(" ")}},(PP=Sh.API).loadFile=function(t,e,r){var n=e,i=r;n=!1!==n,i="function"==typeof i?i:function(){};var a=void 0;try{a=function(t,e,r){var n=new XMLHttpRequest,i=0,a=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(a(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return a(n.responseText)}(t,n,i)}catch(t){}return a},PP.loadImageFile=PP.loadFile,function(e){function r(){return(_W.html2canvas?Promise.resolve(_W.html2canvas):t.A(48503)).catch(function(t){return Promise.reject(Error("Could not load html2canvas: "+t))}).then(function(t){return t.default?t.default:t})}function n(){return(_W.DOMPurify?Promise.resolve(_W.DOMPurify):t.A(70653)).catch(function(t){return Promise.reject(Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var i=function(t){var e=(0,wk.default)(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},a=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},o=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.n
vendor: 4,464 bytes, line 5
5odeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft},!0)),n},s=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(Promise.resolve(),r);return(n=n.setProgress(1,t,1,[t])).set(e)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,e){return t.__proto__=e||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(i(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(n).then(function(e){return this.set({src:a("div",{innerHTML:t,dompurify:e})})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},s.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(r).then(function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(r).then(function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n=Object.assign({async:!0,allowTaint:!0,scale:"number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var i=0;i<r.length;++i){var a=r[i],o=a.src.find(function(t){return"truetype"===t.format});o&&e.addFont(o.url,a.ref.name,a.ref.style)}
vendor: 4,673 bytes, line 5
5return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,e.context2d.save(!0),t(this.prop.container,n)}).then(function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},s.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},s.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}})},s.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(t){if("object"!==i(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in s.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},s.prototype.get=function(t,e){return this.then(function(){var r=t in s.template.prop?this.prop[t]:this.opt[t];return e?e(r):r})},s.prototype.setMargin=function(t){return this.then(function(){switch(i(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},s.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||Sh.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},s.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},s.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return r.updateProgress(null,t),e}).then(t,e).then(function(t){return r.updateProgress(1),t})})},s.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),i=r.call(n,t,e);return s.convert(i,this.__proto__)},s.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},s.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},s.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return s.convert(e,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then(function(){throw Error(t)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.exp
5ort=s.prototype.output,s.prototype.run=s.prototype.then,Sh.getPageSize=function(t,e,r){if("object"===(0,wk.default)(t)){var n=t;t=n.orientation,e=n.unit||e,r=n.format||r}e=e||"mm",r=r||"a4",t=(""+(t||"P")).toLowerCase();var i,a=(""+r).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var s,l=0,c=0;if(o.hasOwnProperty(a))l=o[a][1]/i,c=o[a][0]/i;else try{l=r[1],c=r[0]}catch(t){throw Error("Invalid format: "+r)}if("p"===t||"portrait"===t)t="p",c>l&&(s=c,c=l,l=s);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>c&&(s=c,c=l,l=s)}return{width:c,height:l,unit:e,k:i,orientation:t}},e.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(S8):null;var r=new s(e);return e.worker?r:r.from(t).doCallback()}}(Sh.API),Sh.API.addJS=function(t){return OE=t,this.internal.events.subscribe("postPutResources",function(){OO=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(OO+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),OP=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+OE+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==OO&&void 0!==OP&&this.internal.out("/Names <</JavaScript "+OO+" 0 R>>")}),this},(PE=Sh.API).events.push(["postPutResources",function(){var t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var e=this.outline.render().split(/\r\n/),r=0;r<e.length;r++){var n=e[r],i=t.exec(n);if(null!=i){var a=i[1];this.internal.newObjectDeferredBegin(a,!1)}this.internal.write(n)}if(this.outline.createNamedDestinations){var o=this.internal.pages.length,s=[];for(r=0;r<o;r++){var l=this.internal.newObject();s.push(l);var c=this.internal.getPageInfo(r+1);this.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var u=this.internal.newObject();for(this.internal.write("<< /Names [ "),r=0;r<s.length;r++)this.internal.write("(page_"+(r+1)+")"+s[r]+" 0 R");this.internal.write(" ] >>","endobj"),PC=this.internal.newObject(),this.internal.write("<< /Dests "+u+" 0 R"),this.internal.write(">>","endobj")}}]),PE.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+PC+" 0 R"))}]),PE.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])}
5,t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}]),PL=Sh.API,PM=[192,193,194,195,196,197,198,199],PL.processJPEG=function(t,e,r,n,i,a){var o,s=this.decode.DCT_DECODE,l=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=i||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(o=function(t){for(var e,r=256*t.charCodeAt(4)+t.charCodeAt(5),n=t.length,i={width:0,height:0,numcomponents:1},a=4;a<n;a+=2){if(a+=r,-1!==PM.indexOf(t.charCodeAt(a+1))){e=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),i={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:e,numcomponents:t.charCodeAt(a+9)};break}r=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return i}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}l={data:t,width:o.width,height:o.height,colorSpace:a,bitsPerComponent:8,filter:s,index:e,alias:r}}return l},Sh.API.processPNG=function(t,e,r,n){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var i,a,o,s,l,c,u=new _H(t,{checkCrc:!0}).decode(),f=u.width,d=u.height,h=u.channels,p=u.palette,m=u.depth,v=(i=p&&1===h?function(t){for(var e=t.width,r=t.height,n=t.data,i=t.palette,a=t.depth,o=!1,s=[],l=[],c=void 0,u=!1,f=0,d=0;d<i.length;d++){var h=Ne(i[d],4),p=h[0],m=h[1],v=h[2],y=h[3];s.push(p,m,v),null!=y&&(0===y?(f++,l.length<1&&l.push(d)):y<255&&(u=!0))}if(u||f>1){o=!0,l=void 0;var g=e*r;c=new Uint8Array(g);for(var b=new DataView(n.buffer),x=0;x<g;x++){var w=Ne(i[OU(b,x,a)],4)[3];c[x]=w}}else 0===f&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:o?8:void 0,colorBytes:n,alphaBytes:c,needSMask:o,palette:s,mask:l}}(u):2===h||4===h?function(t){for(var e=t.data,r=t.width,n=t.height,i=t.channels,a=t.depth,o=i-1,s=r*n,l=Math.ceil(s*o*a/8),c=Math.ceil(s*a/8),u=new Uint8Array(l),f=new Uint8Array(c),d=new DataView(e.buffer),h=new DataView(u.buffer),p=new DataView(f.buffer),m=!1,v=0;v<s;v++){for(var y=v*i,g=0;g<o;g++)OV(h,OU(d,y+g,a),v*o+g,a);var b=OU(d,y+o,a);b<(1<<a)-1&&(m=!0),OV(p,b,+v,a)}return{colorSpace:2===i?"DeviceGray":"DeviceRGB",colorsPerPixel:o,sMaskBitsPerComponent:m?a:void 0,colorBytes:u,alphaBytes:f,needSMask:m}}(u):(a=u.data,{colorSpace:o=1===u.channels?"DeviceGray":"DeviceRGB",colorsPerPixel:"DeviceGray"===o?1:3,colorBytes:a instanceof Uint16Array?function(t){for(var e=t.length,r=new Uint8Array(2*e),n=new DataView(r.buffer,r.byteOffset,r.byteLength),i=0;i<e;i++)n.setUint16(2*i,t[i],!1);return r}(a):a,needSMask:!1})).colorSpace,y=i.colorsPerPixel,g=i.sMaskBitsPerComponent,b=i.colorBytes,x=i.alphaBytes,w=i.needSMask,j=i.palette,N=i.mask,k=null;return n!==Sh.API.image_compression.NONE?(k=function(t){var e;switch(t){case Sh.API.image_compression.FAST:e=11;break;case Sh.API.image_compression.MEDIUM:e=13;break;case Sh.API.image_compression.SLOW:e=14;break;default:e=12}return e}(n),s=this.decode.FLATE_DECODE,l="/Predictor ".concat(k," /Colors ").concat(y," /BitsPerComponent ").concat(m," /Columns ").concat(f),t=OR(b,Math.ceil(f*y*m/8),y,m,n),w&&(c=OR(x,Math.ceil(f*g/8),1,g,n))):(s=void 0,l=void 0,t=b,w&&(c=x)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(c&&this.__addimage__.isArrayBuffer(c)||this.__addimage__.isArrayBufferView(c))&&(c=this.__addimage__.arrayBufferToBinaryString(c)),{alias:r,data:t,index:e,filter:s,decodeParameters:l,transparency:N,palette:j,sMask:c,predictor:k,width:f,height:d,bitsPerComponent:m,sMaskBitsPerComponent:g,colorSpace:v}}},(PT=Sh.API).processGIF89A=function(t,e,r,n){var i=new OW(t),a=i.width,o=i.height,s=[];i.decodeAndBlitFrameRGBA(0,s);var l=new OG(100).encode({data:s,width:a,height:o},100);return PT.processJPEG.call(this,l,e,r,n)},PT.processGIF87A=PT.processGIF89A,OK.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},OK.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){_$("bit decode error:"+t)}},OK.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];
vendor: 4,657 bytes, line 5
5this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},OK.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},OK.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},OK.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,c=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},OK.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},OK.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},OK.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},OK.prototype.getData=function(){return this.data},(PI=Sh.API).processBMP=function(t,e,r,n){var i=new OK(t,!1),a=i.width,o=i.height,s={data:i.getData(),width:a,height:o},l=new OG(100).encode(s,100);return PI.processJPEG.call(this,l,e,r,n)},OY.prototype.getData=function(){return this.data},(PD=Sh.API).processWEBP=function(t,e,r,n){var i=new OY(t),a=i.width,o=i.height,s={data:i.getData(),width:a,height:o},l=new OG(100).encode(s,100);return PD.processJPEG.call(this,l,e,r,n)},Sh.API.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=n[c],f=n[c+1],d=n[c+2],h=n[c+3];a[s++]=u,a[s++]=f,a[s++]=d,o[l++]=h}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Sh.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!==({af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
5a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"})[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},OL=(OC=Sh.API).getCharWidthsArray=function(t,e){var r,n,i=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=!1!==e.doKerning,d=0,h=t.length,p=0,m=s[0]||l,v=[];for(r=0;r<h;r++)n=t.charCodeAt(r),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+1e3/a*o||0)/1e3):(d=f&&"object"===(0,wk.default)(c[n])&&!isNaN(parseInt(c[n][p],10))?c[n][p]/u:0,v.push((s[n]||m)/l+d)),p=n;return v},OM=OC.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return OC.processArabic&&(t=OC.processArabic(t)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,r,i)/r:OL.apply(this,arguments).reduce(function(t,e){return t+e},0)},OT=function(t,e,r,n){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<r;)s+=e[a],a++;i.push(t.slice(0,a));var l=a;for(s=0;a!==o;)s+e[a]>n&&(i.push(t.slice(l,a)),s=0,l=a),s+=e[a],a++;return l!==a&&i.push(t.slice(l,a)),i},OI=function(t,e,r){r||(r={});var n,i,a,o,s,l,c,u=[],f=[u],d=r.textIndent||0,h=0,p=0,m=t.split(" "),v=OL.apply(this,[" ",r])[0];if(l=-1===r.lineIndent?m[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),g=[];m.map(function(t){(t=t.split(/\s*\n/)).length>1?g=g.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):g.push(t[0])}),m=g,l=OM.apply(this,[y,r])}for(a=0,o=m.length;a<o;a++){var b=0;if(n=m[a],l&&"\n"==n[0]&&(n=n.substr(1),b=1),d+h+(p=(i=OL.apply(this,[n,r])).reduce(function(t,e){return t+e},0))>e||b){if(p>e){for(s=OT.apply(this,[n,i,e-(d+h),e]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(t,e){return t+e},0)}else u=[n];f.push(u),d=p+l,h=v}else u.push(n),d+=h+p,h=v}return c=l?function(t,e){return(e?y:"")+t.join(" ")}:function(t){return t.join(" ")},f.map(c)},OC.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),r="Unicode";return e.metadata[r]?{widths:e.metadata[r].widths||{0:1},kerning:e.metadata[r].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);
5n=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=this.internal.scaleFactor*e/i;a.textIndent=r.textIndent?r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(OI.apply(this,[n[s],o,a]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[r[a]]=e[a],i[e[a]]=r[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,r,n,a,l=["{"];for(var c in t){if(e=t[c],r=isNaN(parseInt(c,10))?"'"+c+"'":(r=o(c=parseInt(c,10)).slice(2)).slice(0,-1)+i[r.slice(-1)],"number"==typeof e)e<0?(n=o(e).slice(3),a="-"):(n=o(e).slice(2),a=""),n=a+n.slice(0,-1)+i[n.slice(-1)];else{if("object"!==(0,wk.default)(e))throw Error("Don't know what to do with value type "+(0,wk.default)(e)+".");n=s(e)}l.push(r+n)}return l.push("}"),l.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw Error("Invalid argument passed to uncompress.");for(var e,r,i,a,o={},s=1,l=o,c=[],u="",f="",d=t.length-1,h=1;h<d;h+=1)"'"==(a=t[h])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(c.push([l,i]),l={},i=void 0):"}"==a?((r=c.pop())[0][r[1]]=l,i=void 0,l=r[0]):"-"==a?s=-1:void 0===i?n.hasOwnProperty(a)?(u+=n[a],i=parseInt(u,16)*s,s=1,u=""):u+=a:n.hasOwnProperty(a)?(f+=n[a],l[i]=parseInt(f,16)*s,s=1,i=void 0,f=""):f+=a;return o},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c},f
vendor: 14,693 bytes, line 5
5={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};
5t.events.push(["addFont",function(t){var e=t.font,r=f.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var n=u[e.postScriptName];n&&(e.metadata.Unicode.encoding=n,e.encoding=n.codePages[0])}])}(Sh.API),PR=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},Sh.API.events.push(["addFont",function(t){var e,r=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(void 0===i)throw Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(n.postScriptName)?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName)))throw Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");e=r,e=/^\x00\x01\x00\x00/.test(e)?PR(e):PR(_0(e)),n.metadata=Sh.API.TTFFont.open(e),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}}]),Sh.API.addSvgAsImage=function(e,r,n,i,a,o,s,l){if(isNaN(r)||isNaN(n))throw _K("jsPDF.addSvgAsImage: Invalid coordinates",arguments),Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw _K("jsPDF.addSvgAsImage: Invalid measurements",arguments),Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=i,c.height=a;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(_W.canvg?Promise.resolve(_W.canvg):t.A(95111)).catch(function(t){return Promise.reject(Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t}).then(function(t){return t.fromString(u,e,f)},function(){return Promise.reject(Error("Could not load canvg."))}).then(function(t){return t.render(f)}).then(function(){d.addImage(c.toDataURL("image/jpeg",1),r,n,i,a,s,l)})},Sh.API.putTotalPages=function(t){var e,r=0;15>parseInt(this.internal.getFont().id.substr(1),10)?(e=RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},Sh.API.viewerPreferences=function(t,e){t=t||{},e=e||!1;var r,n,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var h=s.length;for(f=0;f<h;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if("object"===(0,wk.default)(t)){for(i in t)if(a=t[i],d(s,i)&&void 0!==a){if("boolean"===r[i].type&&"boolean"==typeof a)r[i].value=a;else if("name"===r[i].type&&d(r[i].valueSet,a))r[i].value=a;else if("integer"===r[i].type&&Number.isInteger(a))r[i].value=a;else if("array"===r[i].type){for(c=0;c<a.length;c+=1)if(n=!0,1===a[c].length&&"number"==typeof a[c][0])l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;
vendor: 6,031 bytes, line 5
5u<a[c].length;u+=1)"number"!=typeof a[c][u]&&(n=!1);!0===n&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Pz=Sh.API,PF=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=r.length+n.length+i.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+r+n+i+a),this.internal.write("endstream"),this.internal.write("endobj")},PB=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")},Pz.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:e||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",PB),this.internal.events.subscribe("postPutResources",PF)),this},PU=(Pq=Sh.API).pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],o=0,s=t.length;o<s&&(r=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(o),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"!=r);++o)r=r.toString(16),a.push(i[4-r.length],r);return a.join("")},PV=function(t){var e,r,n,i,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],o=0,s=(r=Object.keys(t).sort(function(t,e){return t-e})).length;o<s;o++)e=r[o],n.length>=100&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),a+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},Pq.events.push(["putFont",function(t){!function(t){var e=t.font,r=t.out,n=t.newObject,i=t.putStream;if(e.metadata instanceof Sh.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,o=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),s="",l=0;l<o.length;l++)s+=String.fromCharCode(o[l]);var c=n();i({data:s,addLength1:!0,objectId:c}),r("endobj");var u=n();i({data:PV(e.metadata.toUnicode),addLength1:!0,objectId:u}),r("endobj");var f=n();r("<<"),r("/Type /FontDescriptor"),r("/FontName /"+Ss(e.fontName)),r("/FontFile2 "+c+" 0 R"),r("/FontBBox "+Sh.API.PDFObject.convert(e.metadata.bbox)),r("/Flags "+e.metadata.flags),r("/StemV "+e.metadata.stemV),r("/ItalicAngle "+e.metadata.italicAngle),r("/Ascent "+e.metadata.ascender),r("/Descent "+e.metadata.decender),r("/CapHeight "+e.metadata.capHeight),r(">>"),r("endobj");var d=n();r("<<"),r("/Type /Font"),r("/BaseFont /"+Ss(e.fontName)),r("/FontDescriptor "+f+" 0 R"),r("/W "+Sh.API.PDFObject.convert(a)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+e.encoding+")"),r(">>"),r(">>"),r("endobj"),e.objectNumber=n(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+u+" 0 R"),r("/BaseFont /"+Ss(e.fontName)),r("/Encoding /"+e.encoding),r("/DescendantFonts ["+d+" 0 R]"),r(">>"),r("endobj"),e.isAlreadyPutted=!0}}(t)}]),Pq.events.push(["putFont",function(t){!function(t){var e=t.font,r=t.out,n=t.newObject,i=t.putStream;if(e.metadata instanceof Sh.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var a=e.metadata.rawData,o="",s=0;s<a.length;s++)o+=String.fromCharCode(a[s]);var l=n();i({data:o,addLength1:!0,objectId:l}),r("endobj");var c=n();i({data:PV(e.metadata.toUnicode),addLength1:!0,objectId:c}),r("endobj");var u=n();r("<<"),r("/Descent "+e.metadata.decender),r("/CapHeight "+e.metadata.capHeight),r("/StemV "+e.metadata.stemV),r("/Type /FontDescriptor"),r("/FontFile2 "+l+" 0 R"),r("/Flags 96"),r("/FontBBox "+Sh.API.PDFObject.convert(e.metadata.bbox)),r("/FontName /"+Ss(e.fontName)),r("/ItalicAngle "+e.metadata.italicAngle),r("/Ascent "+e.metadata.ascender),r(">>"),r("endobj"),e.objectNumber=n();for(var f=0;f<e.metadata.hmtx.widths.length;f++)e.metadata.hmtx.widths[f]=parseInt(e.metadata.hmtx.widths[f]*(1e3/e.metadata.head.unitsPerEm));r("<</Subtype/TrueType/Type/Font/ToUnicode "+c+" 0 R/BaseFont/"+Ss(e.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Sh.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),r("endobj"),e.isAlreadyPutted=!0}}(t)}]),PH=function(t){var e,r=t.text||"",n=t.x,i=t.y,a=t.options||{},o=t.mutex||{},s=o.pdfEscape,l=o.activeFontKey,c=o.fonts,u=l,f="",d=0,h="",p=c[u].encoding;if("Identity-H"!==c[u].encoding)return{text:r,x:n,y:i,options:a,mutex:o};for(h=r,u=l,Array.isArray(r)&&(h=r[0]),d=0;d<h.length;d+=1)c[u].metadata.hasOwnProperty("cmap")&&(e=c[u].metadata.cmap.unicode.codeMap[h[d].charCo
5deAt(0)]),e||256>h[d].charCodeAt(0)&&c[u].metadata.hasOwnProperty("Unicode")?f+=h[d]:f+="";var m="";return 14>parseInt(u.slice(1))||"WinAnsiEncoding"===p?m=s(f,u).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===p&&(m=PU(f,c[u])),o.isHex=!0,{text:m,x:n,y:i,options:a,mutex:o}},Pq.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?r.push([PH(Object.assign({},n,{text:e[i][0]})).text,e[i][1],e[i][2]]):r.push(PH(Object.assign({},n,{text:e[i]})).text);t.text=r}else t.text=PH(Object.assign({},n,{text:e})).text}]),PW=Sh.API,P$=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0},PW.existsFileInVFS=function(t){return P$.call(this),void 0!==this.internal.vFS[t]},PW.addFileToVFS=function(t,e){return P$.call(this),this.internal.vFS[t]=e,this},PW.getFileFromVFS=function(t){return P$.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},Sh.__bidiEngine__=Sh.prototype.__bidiEngine__=function(t){var e,r,n,i,a,o,s,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],h=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),p=!1,m=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),r=e>>8,n=f[r];return void 0!==n?PG[256*n+(255&e)]:252===r||253===r?"AL":h.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length&&"L"!==(e=v(t.charAt(r)));r++)if("R"===e)return!0;return!1},g=function(t,a,o,s){var l,c,u,f,d=a[s];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":p=!1;break;case"N":case"AN":break;case"EN":p&&(d="AN");break;case"AL":p=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":s<1||s+1>=a.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(c=a[s+1])&&"AN"!==c?d="N":p&&(c="AN"),d=c===l?c:"N";break;case"ES":d="EN"===(l=s>0?o[s-1]:"B")&&s+1<a.length&&"EN"===a[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){d="EN";break}if(p){d="N";break}for(u=s+1,f=a.length;u<f&&"ET"===a[u];)u++;d=u<f&&"EN"===a[u]?"EN":"N";break;case"NSM":if(n&&!i){for(f=a.length,u=s+1;u<f&&"NSM"===a[u];)u++;if(u<f){var h=t[s];if(l=a[u],(h>=1425&&h<=2303||64286===h)&&("R"===l||"AL"===l)){d="R";break}}}d=s<1||"B"===(l=a[s-1])?"N":o[s-1];break;case"B":p=!1,e=!0,d=m;break;case"S":r=!0,d="N"}return d},b=function(t,e,r){var n=t.split("");return r&&x(n,r,{hiLevel:m}),n.reverse(),e&&e.reverse(),n.join("")},x=function(t,n,i){var a,o,s,f,d,h=-1,y=t.length,b=0,x=[],w=m?c:l,j=[];for(p=!1,e=!1,r=!1,o=0;o<y;o++)j[o]=v(t[o]);for(s=0;s<y;s++){if(d=b,x[s]=g(t,j,x,s),a=240&(b=w[d][u[x[s]]]),b&=15,n[s]=f=w[b][5],a>0)if(16===a){for(o=h;o<s;o++)n[o]=1;h=-1}else h=-1;if(w[b][6])-1===h&&(h=s);else if(h>-1){for(o=h;o<s;o++)n[o]=f;h=-1}"B"===j[s]&&(n[s]=0),i.hiLevel|=f}r&&function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=m;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=m}}(j,n,y)},w=function(t,r,n,i,a){if(!(a.hiLevel<t)){if(1===t&&1===m&&!e)return r.reverse(),void(n&&n.reverse());for(var o,s,l,c,u=r.length,f=0;f<u;){if(i[f]>=t){for(l=f+1;l<u&&i[l]>=t;)l++;for(c=f,s=l-1;c<s;c++,s--)o=r[c],r[c]=r[s],r[s]=o,n&&(o=n[c],n[c]=n[s],n[s]=o);f=l}f++}}},j=function(t,e,r){var n=t.split(""),i={hiLevel:m};return r||(r=[]),x(n,r,i),function(t,e,r){if(0!==r.hiLevel&&s)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=d.indexOf(t[i]))>=0&&(t[i]=d[n+1])}(n,r,i),w(2,n,e,r,i),w(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===i&&(i=y(t)),void 0===o&&(o=y(t))}(t,e),n||!a||o)if(n&&a&&i^o)m=+!!i,t=b(t,e,r);else if(!n&&a&&o)m=+!!i,t=b(t=j(t,e,r),e);else if(!n||i||a||o){if(n&&!a&&i^o)t=b(t,e),i?(m=0,t=j(t,e,r)):(m=1,t=b(t=j(t,e,r),e));else if(n&&i&&!a&&o)m=1,t=b(t=j(t,e,r),e);else if(!n&&!a&&i^o){var l=s;i?(m=1,t=j(t,e,r),m=0,s=!1,t=j(t,e,r),s=l):(m=0,t=b(t=j(t,e,r),e),m=1,s=!1,t=j(t,e,r),s=l,t=b(t,e))}}else m=0,t=j(t,e,r);else m=+!!i,t=j(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(n=t.isInputVisual,a=t.isOutputVisual,i=t.isInputRtl,o=t.isOutputRtl,s=t.
vendor: 16,114 bytes, line 5
5isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__},PG=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],PK=new Sh.__bidiEngine__({isInputVisual:!0}),Sh.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var r=t.options||{};t.mutex,r.lang;var n=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,PK.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?n.push([PK.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):n.push([PK.doBidiReorder(e[i])]);t.text=n}else t.text=PK.doBidiReorder(e);PK.setOptions({isInputVisual:!0})}]),Sh.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new PX(t),this.contents.pos=4,"ttcf"===e.readString(4))throw Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Ea(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new PZ(this.contents),this.head=new P0(this),this.name=new P8(this),this.cmap=new P2(this),this.toUnicode={},this.hhea=new P5(this),this.maxp=new P7(this),this.hmtx=new P9(this),this.post=new P4(this),this.os2=new P3(this),this.loca=new Ei(this),this.glyf=new Ee(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+1e3/e*r||0;return e/1e3*a},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var OX,OZ,OJ,OQ,O0,O1,O2,O5,O3,O4,O6,O8,O7,O9,Pt,Pe,Pr,Pn,Pi,Pa,Po,Ps,Pl,Pc,Pu,Pf,Pd,Ph,Pp,Pm,Pv,Py,Pg,Pb,Px,Pw,Pj,PN,Pk,P_,PS,PA,PO,PP,PE,PC,PL,PM,PT,PI,PD,PR,Pz,PF,PB,Pq,PU,PV,PH,PW,P$,PG,PK,PY,PX=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 0x1000000*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=0x80000000?t-0x100000000:t},t.prototype.writeInt32=function(t){return t<0&&(t+=0x100000000),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(0x100000000000000*(255^t)+0x1000000000000*(255^e)+0x10000000000*(255^r)+0x100000000*(255^n)+0x1000000*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):0x100000000000000*t+0x1000000000000*e+0x10000000000*r+0x100000000*n+0x1000000*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/0x100000000),r=0|t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),PZ=function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,l,c,u,f,d,h,p;for(p in a=Math.floor((u=16*Math.floor(Math.log(d=Object.keys(e).length)/(s=Math.log(2))))/s),c=16*d-u,(n=new PX).writeInt(this.scalarType),n.writeShort(d),n.writeShort(u),n.writeShort(a),n.writeShort(c),i=16*d,l=n.pos+i,o=null,h=[],e)for(f=e[p],n.writeString(p),n.writeInt(t(f)),n.writeInt(l),n.writeInt(f.length),h=h.concat(f),"head"===p&&
vendor: 9,281 bytes, line 5
5(o=l),l+=f.length;l%4;)h.push(0),l++;return n.write(h),r=0xb1b0afba-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=Et.call(t);t.length%4;)t.push(0);for(n=new PX(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 0|r},e}(),PJ={}.hasOwnProperty,PQ=function(t,e){for(var r in e)PJ.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};PY=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var P0=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new PX).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t}(),P1=function(){function t(t,e){var r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,y;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16()/2,t.pos+=6,i=function(){var e,r;for(r=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,h=function(){var e,r;for(r=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)r.push(t.readUInt16());return r}(),l=function(){var e,r;for(r=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)r.push(t.readUInt16());return r}(),c=function(){var e,r;for(r=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,o=function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r}(),s=m=0,y=i.length;m<y;s=++m)for(p=i[s],r=v=d=h[s];d<=p?v<=p:v>=p;r=d<=p?++v:--v)0===c[s]?a=r+l[s]:0!==(a=o[c[s]/2+(r-d)-(f-s)]||0)&&(a+=l[s]),this.codeMap[r]=65535&a}t.pos=u}return t.encode=function(t,e){var r,n,i,a,o,s,l,c,u,f,d,h,p,m,v,y,g,b,x,w,j,N,k,_,S,A,O,P,E,C,L,M,T,I,D,R,z,F,B,q,U,V,H,W,$,G;switch(P=new PX,a=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,m=function(){var t=[];for(h=0;h<256;++h)t.push(0);return t}(),y={0:0},i={},E=0,T=a.length;E<T;E++)null==y[H=t[n=a[E]]]&&(y[H]=++p),i[n]={old:t[n],new:y[t[n]]},m[n]=y[t[n]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(m),{charMap:i,subtable:P.data,maxGlyphID:p+1};case"unicode":for(A=[],u=[],g=0,y={},r={},v=l=null,C=0,I=a.length;C<I;C++)null==y[x=t[n=a[C]]]&&(y[x]=++g),r[n]={old:x,new:y[x]},o=y[x]-n,null!=v&&o===l||(v&&u.push(v),A.push(n),l=o),v=n;for(v&&u.push(v),u.push(65535),A.push(65535),_=2*(k=A.length),f=Math.log((N=2*Math.pow(Math.log(k)/Math.LN2,2))/2)/Math.LN2,j=2*k-N,s=[],w=[],d=[],h=L=0,D=A.length;L<D;h=++L){if(S=A[h],c=u[h],65535===S){s.push(0),w.push(0);break}if(S-(O=r[S].new)>=32768)for(s.push(0),w.push(2*(d.length+k-h)),n=M=S;S<=c?M<=c:M>=c;n=S<=c?++M:--M)d.push(r[n].new);else s.push(O-S),w.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*k+2*d.length),P.writeUInt16(0),P.writeUInt16(_),P.writeUInt16(N),P.writeUInt16(f),P.writeUInt16(j),U=0,R=u.length;U<R;U++)n=u[U],P.writeUInt16(n);for(P.writeUInt16(0),V=0,z=A.length;V<z;V++)n=A[V],P.writeUInt16(n);for(W=0,F=s.length;W<F;W++)o=s[W],P.writeUInt16(o);for($=0,B=w.length;$<B;$++)b=w[$],P.writeUInt16(b);for(G=0,q=d.length;G<q;G++)p=d[G],P.writeUInt16(p);return{charMap:r,subtable:P.data,maxGlyphID:g+1}}},t}(),P2=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new P1(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=P1.encode(t,e),(n=new PX).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),P5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),P3=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),P4=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}).call(this)}},t}(),P6=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},P8=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,n,i,a,o,s,l,c,u;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=l=0,c=r.length;l<c;i=++l)t.pos=(n=r[i]).offset,a=new P6(t.readString(n.length),n),null==s[u=n.nameID]&&(s[u]=[]),s[n.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfam
5ily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),P7=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t}(),P9=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,r,n,i,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=(function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}).call(this),r=this.widths[this.widths.length-1],s=[],e=a=0;0<=n?a<n:a>n;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),Et=[].slice,Ee=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,l,c,u;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new PX(e.read(n))).readShort(),l=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===a?new En(o,l,u,s,c):new Er(o,a,l,u,s,c),this.cache[t]))},t.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)n=t[e[o]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},t}(),Er=function(){function t(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),En=function(){function t(t,e,r,n,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,r;for(e=new PX(Et.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ei=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return PQ(t,PY),t.prototype.tag="loca",t.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?(function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}).call(this):(function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}).call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
5,t.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<e.length&&e[i]==a){++i,r[a]=n;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(n+=s)}for(var l=Array(4*r.length),c=0;c<r.length;++c)l[4*c+3]=255&r[c],l[4*c+2]=(65280&r[c])>>8,l[4*c+1]=(0xff0000&r[c])>>16,l[4*c]=(0xff000000&r[c])>>24;return l},t}(),Ea=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a<o;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,l,c,u,f,d,h,p,m,v;for(n in r=P2.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),d={0:0},v=r.charMap)d[(s=v[n]).old]=s.new;for(h in f=r.maxGlyphID,a)h in d||(d[h]=f++);return u=Object.keys(c=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(d)).sort(function(t,e){return t-e}),p=function(){var t,e,r;for(r=[],t=0,e=u.length;t<e;t++)o=u[t],r.push(c[o]);return r}(),i=this.font.glyf.encode(a,p,d),l=this.font.loca.encode(i.offsets,p),m={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},t}();Sh.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+(function(){var t,i,a;for(a=[],t=0,i=r.length;t<i;t++)n=r[t],a.push(e.convert(n));return a})().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"===({}).toString.call(r)){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+r},e}();let Eo={entrepreneur:"Fyzická osoba - Podnikatel",employee:"Fyzická osoba - Nepodnikatel",corporate:"Právnická osoba (s.r.o.)"};async function Es({data:t,params:e,buyerType:r,calculatedMonthlyRent:n,totalExpenses:i,rentalParams:a,expenseBreakdown:o}){let s=document.createElement("div");s.style.position="fixed",s.style.left="-9999px",s.style.top="0",s.style.width="1400px",s.style.background="white",s.style.padding="40px",s.style.fontFamily="Arial, sans-serif",document.body.appendChild(s);let l=t[9],c=e.vatRateForCorporate??.21,u="corporate"===r?e.propertyPrice:e.propertyPrice/(1+c),f="corporate"===r?e.propertyPrice*(1+c):e.propertyPrice,d=("corporate"===r?u:e.propertyPrice)-e.downPayment,h=new Date().toLocaleDateString("cs-CZ",{year:"numeric",month:"long",day:"numeric"});s.innerHTML=`
6    <div style="width: 100%; background: white;">
7      
8      <!-- Section A: Header & Input Parameters -->
9      <div id="pdf-section-header" style="margin-bottom: 30px;">
10        <!-- Header & Meta Data -->
11        <div style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 3px solid #8B9165;">
12          <div>
13            <img src="https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/fknj40bvk94bef1rivp7xkx9/fb92f7u9ztzoamkhr0268ks1/T-8GZiExAwPbga229Aeti/logo-zakladni-cerna-6x.png" style="height: 50px; width: auto; object-fit: contain;" alt="Bricks Logo" />
14          </div>
15          <div style="text-align: right;">
16            <h1 style="font-size: 28px; font-weight: bold; color: #3C3633; margin: 0 0 8px 0;">Investičn\xed report: Rekreačn\xed nemovitost</h1>
17            <p style="font-size: 12px; color: #666; margin: 0;">Vygenerov\xe1no: ${h}</p>
18          </div>
19        </div>
20
21        <!-- Selected Strategy & Inputs Section -->
22        <div style="background: #F2F4E8; padding: 24px; border-radius: 8px; margin-bottom: 30px;">
23          <h2 style="font-size: 22px; font-weight: bold; color: #3C3633; margin: 0 0 20px 0;">Vybran\xe1 varianta: ${Eo[r]}</h2>
24          
25          <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;">
26            <!-- Column 1: Property -->
27            <div>
28              <h3 style="font-size: 14px; font-weight: bold; color: #7D8559; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px;">Nemovitost</h3>
29              <div style="font-size: 12px; color: #3C3633; line-height: 1.8;">
30                <div><strong>Kupn\xed cena:</strong> ${b("corporate"===r?f:e.propertyPrice)}</div>
31                ${"corporate"===r?`<div><strong>DPH sazba:</strong> ${((e.vatRateForCorporate??.21)*100).toFixed(0)}%</div>`:""}
32                ${"corporate"===r?`<div><strong>Čist\xe1 cena:</strong> ${b(u)}</div>`:""}
33                <div><strong>Hodnota pozemku:</strong> ${b(e.landValue)}</div>
34                <div><strong>Odpisov\xe1 skupina:</strong> ${e.depreciationGroup||4}</div>
35              </div>
36            </div>
37
38            <!-- Column 2: Financing -->
39            <div>
40              <h3 style="font-size: 14px; font-weight: bold; color: #7D8559; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px;">Financov\xe1n\xed</h3>
41              <div style="font-size: 12px; color: #3C3633; line-height: 1.8;">
42                <div><strong>Vlastn\xed zdroje:</strong> ${b(e.downPayment)}</div>
43                <div><strong>V\xfdše \xfavěru:</strong> ${b(d)}</div>
44                <div><strong>\xdarokov\xe1 sazba:</strong> ${e.interestRate.toFixed(2)}%</div>
45                <div><strong>
45D\xe9lka \xfavěru:</strong> ${e.loanDuration} let</div>
46              </div>
47            </div>
48
49            <!-- Column 3: Market & Operations -->
50            <div>
51              <h3 style="font-size: 14px; font-weight: bold; color: #7D8559; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px;">Trh a provoz</h3>
52              <div style="font-size: 12px; color: #3C3633; line-height: 1.8;">
53                <div><strong>Měs\xedčn\xed n\xe1jem:</strong> ${b(n)}</div>
54                <div><strong>Měs\xedčn\xed n\xe1klady:</strong> ${b(i)}</div>
55                <div><strong>Ročn\xed inflace:</strong> ${e.annualInflation.toFixed(1)}%</div>
56                <div><strong>Apreciace:</strong> ${e.annualAppreciation.toFixed(1)}%</div>
57                <div><strong>Daň z př\xedjmu:</strong> ${e.incomeTaxRate.toFixed(1)}%</div>
58              </div>
59            </div>
60          </div>
61        </div>
62
63        <!-- Detailn\xed parametry modelu -->
64        <div style="margin-bottom: 30px;">
65          <h2 style="font-size: 22px; font-weight: bold; color: #3C3633; margin: 0 0 20px 0;">Detailn\xed parametry modelu</h2>
66          <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 24px;">
67            
68            <!-- Column 1: Ekonomika provozovatele (Short-term) -->
69            <div style="background: #F2F4E8; padding: 20px; border-radius: 8px;">
70              <h3 style="font-size: 16px; font-weight: bold; color: #3C3633; margin: 0 0 16px 0;">Ekonomika provozovatele resortu (Short-term)</h3>
71              <div style="font-size: 11px; color: #3C3633; line-height: 2;">
72                <div><strong>Průměrn\xe1 cena za noc (ADR):</strong> ${b(a.pricePerNight)}</div>
73                <div><strong>Obsazenost:</strong> ${a.occupancyRate} %</div>
74                <div><strong>Průměrn\xe1 d\xe9lka pobytu:</strong> ${a.avgStayLength} noc\xed</div>
75                <div><strong>Sazba DPH ubytov\xe1n\xed:</strong> ${a.vatRate} %</div>
76                <div><strong>Provize port\xe1lům (OTA):</strong> ${a.otaCommission} %</div>
77                <div><strong>N\xe1klad na \xfaklid/pr\xe1dlo:</strong> ${b(a.cleaningCost)}</div>
78                <div><strong>Spotřebn\xed materi\xe1l:</strong> ${b(a.consumablesCost)}</div>
79                <div><strong>Fixn\xed n\xe1klady provozovatele:</strong> ${b(a.energyHeating+a.internetTV+a.waterWaste+a.security+a.areaServices)}</div>
80                <div style="padding-left: 12px; font-size: 10px; color: #666;">• Energie/Topen\xed: ${b(a.energyHeating)}</div>
81                <div style="padding-left: 12px; font-size: 10px; color: #666;">• Internet/TV: ${b(a.internetTV)}</div>
82                <div style="padding-left: 12px; font-size: 10px; color: #666;">• Voda/Odpad: ${b(a.waterWaste)}</div>
83                <div style="padding-left: 12px; font-size: 10px; color: #666;">• Ostraha: ${b(a.security)}</div>
84                <div style="padding-left: 12px; font-size: 10px; color: #666;">• Služby are\xe1lu: ${b(a.areaServices)}</div>
85                <div><strong>Marže provozovatele:</strong> ${a.managerMargin} %</div>
86                <div style="margin-top: 12px; padding-top: 12px; border-top: 2px solid #7D8559;"><strong style="font-size: 12px;">Vypoč\xedtan\xe9 měs\xedčn\xed n\xe1jemn\xe9:</strong> <strong style="font-size: 13px; color: #7D8559;">${b(n)}</strong></div>
87              </div>
88            </div>
89
90            <!-- Column 2: N\xe1klady vlastn\xedka nemovitosti -->
91            <div style="background: #F2F4E8; padding: 20px; border-radius: 8px;">
92              <h3 style="font-size: 16px; font-weight: bold; color: #3C3633; margin: 0 0 16px 0;">N\xe1klady vlastn\xedka nemovitosti</h3>
93              <div style="font-size: 11px; color: #3C3633; line-height: 2;">
94                <div><strong>Pojištěn\xed nemovitosti:</strong> ${b(o.pojisteni)}</div>
95                <div><strong>Revize a z\xe1konn\xe1 \xfadržba:</strong> ${b(o.revizeUdrzba)}</div>
96                <div><strong>Fond oprav:</strong> ${b(o.fondOprav)}</div>
97                <div><strong>Rezerva:</strong> ${b(o.rezerva)}</div>
98                <div style="margin-top: 12px; padding-top: 12px; border-top: 2px solid #7D8559;"><strong style="font-size: 12px;">Celkov\xe9 měs\xedčn\xed n\xe1klady:</strong> <strong style="font-size: 13px; color: #7D8559;">${b(i)}</strong></div>
99              </div>
100            </div>
101
102          </div>
103        </div>
104      </div>
105
106      <!-- Section B: Managerial Summary -->
107      <div id="pdf-section-summary" style="margin-bottom: 30px;">
108        <h2 style="font-size: 22px; font-weight: bold; color: #3C3633; margin: 0 0 20px 0;">Manažersk\xe9 shrnut\xed: Prvn\xedch 10 let</h2>
109        <div style="display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;">
110          
111          <!-- Card 1: Total Invested -->
112          <div style="background: white; border: 2px solid #E5E7EB; border-radius: 8px; padding: 16px;">
113            <h3 style="font-size: 13px; font-weight: 600; color: #7D8559; margin: 0 0 8px 0;">Vloženo z vlastn\xed kapsy</h3>
114            <p style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 6px 0;">${b(Math.round(l.totalInvested))}</p>
115            <p style="font-size: 10px; color: #999; margin: 0 0 8px 0; font-style: italic;">Za 10 let</p>
116            <p style="font-size: 11px; color: #666; line-height: 1.4; margin: 0;">Součet vaš\xed poč\xe1tečn\xed investice a všech doplatků. Celkov\xe1 hotovost ze sv\xe9ho.</p>
117          </div>
118
119          <!-- Card 2: Total Tax Shield -->
120          <div style="background: white; border: 2px solid #E5E7EB; border-radius: 8px; padding: 16px;">
121            <h3 style="font-size: 13px; font-weight: 600; color: #7D8559; margin: 0 0 8px 0;">
121Ušetřeno na dan\xedch</h3>
122            <p style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 6px 0;">${b(Math.round(t.reduce((t,e)=>t+e.taxRefund,0)))}</p>
123            <p style="font-size: 10px; color: #999; margin: 0 0 8px 0; font-style: italic;">Daňov\xfd št\xedt</p>
124            <p style="font-size: 11px; color: #666; line-height: 1.4; margin: 0;">Kolik peněz jste za 10 let ušetřili na dan\xedch d\xedky \xfačetn\xed ztr\xe1tě.</p>
125          </div>
126
127          <!-- Card 3: Equity Multiple -->
128          <div style="background: white; border: 2px solid #E5E7EB; border-radius: 8px; padding: 16px;">
129            <h3 style="font-size: 13px; font-weight: 600; color: #7D8559; margin: 0 0 8px 0;">Zhodnocen\xed vkladu</h3>
130            <p style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 6px 0;">${(l.equity/l.totalInvested).toFixed(1).replace(".",",")}x</p>
131            <p style="font-size: 10px; color: #999; margin: 0 0 8px 0; font-style: italic;">Equity Multiple</p>
132            <p style="font-size: 11px; color: #666; line-height: 1.4; margin: 0;">Za každou 1 Kč vloženou ze sv\xe9ho si odn\xe1š\xedte ${(l.equity/l.totalInvested).toFixed(1).replace(".",",")} Kč.</p>
133          </div>
134
135          <!-- Card 4: Total Wealth / Exit Cash -->
136          <div style="background: white; border: 2px solid #E5E7EB; border-radius: 8px; padding: 16px;">
137            <h3 style="font-size: 13px; font-weight: 600; color: #7D8559; margin: 0 0 8px 0;">${"corporate"===r?"Exit Cash (firma)":"Nárůst majetku"}</h3>
138            <p style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 6px 0;">${"corporate"===r?b(Math.round(l.propertyValue-l.loanBalance-(l.exitCorporateTax||0))):b(Math.round(l.equity))}</p>
139            <p style="font-size: 10px; color: #999; margin: 0 0 8px 0; font-style: italic;">${"corporate"===r?"Po prodeji a dani":"Equity za 10 let"}</p>
140            <p style="font-size: 11px; color: #666; line-height: 1.4; margin: 0;">${"corporate"===r?"Čistá hotovost na účtu firmy po prodeji a zaplacení daně z příjmu PO (21%).":"Celková čistá hodnota v nemovitosti po 10 letech. Tržní cena mínus dluh."}</p>
141          </div>
142
143          <!-- Card 5: Lifestyle -->
144          <div style="background: white; border: 2px solid #E5E7EB; border-radius: 8px; padding: 16px;">
145            <h3 style="font-size: 13px; font-weight: 600; color: #7D8559; margin: 0 0 8px 0;">Možnost jezdit do sv\xe9ho</h3>
146            <p style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 6px 0;">K nezaplacen\xed</p>
147            <p style="font-size: 10px; color: #999; margin: 0 0 8px 0; font-style: italic;">Lifestyle benefit</p>
148            <p style="font-size: 11px; color: #666; line-height: 1.4; margin: 0;">Nejde jen o č\xedsla. Z\xedsk\xe1v\xe1te vlastn\xed nemovitost pro rekreaci.<
148/p>
149          </div>
150
151        </div>
152      </div>
153
154      <!-- Section C: Table 1 - Provozn\xed realita -->
155      <div id="pdf-section-table1" style="margin-bottom: 30px;">
156        <h2 style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 16px 0;">Tabulka 1: Provozn\xed realita (Cash-flow)</h2>
157        <table style="width: 100%; border-collapse: collapse; font-size: 11px;">
158          <thead>
159            <tr style="background: #7D8559; color: white;">
160              <th style="padding: 10px 8px; text-align: center; border: 1px solid #ddd;">Rok</th>
161              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Celkov\xe1 spl\xe1tka</th>
162              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">\xdaroky</th>
163              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Splaceno</th>
164              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Odpisy</th>
165              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Provozn\xed n\xe1klady</th>
166              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Př\xedjem z n\xe1jmu</th>
167              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Daňov\xe1 \xfaspora</th>
168              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd; font-weight: bold;">Re\xe1ln\xfd doplatek</th>
169            </tr>
170          </thead>
171          <tbody>
172            ${t.map(t=>`
173              <tr style="background: ${t.year%2==0?"#f9f9f9":"white"};">
174                <td style="padding: 8px; text-align: center; border: 1px solid #ddd; font-weight: 600;">${t.year}</td>
175                <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(t.mortgagePayment)}</td>
176                <td style="padding: 8px; text-align: right; border: 1px solid #ddd; color: #ef4444;">${b(t.interestPayment)}</td>
177                <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(t.principalPayment)}</td>
178                <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(t.depreciation)}</td>
179                <td style="padding: 8px; text-align: right; border: 1px solid #ddd; color: #ef4444;">${b(t.expenses)}</td>
180                <td style="padding: 8px; text-align: right; border: 1px solid #ddd; color: #10b981;">${b(t.rent)}</td>
181                <td style="padding: 8px; text-align: right; border: 1px solid #ddd; color: #10b981;">${b(t.taxRefund)}</td>
182                <td style="padding: 8px; text-align: right; border: 1px solid #ddd; font-weight: bold; color: ${t.realAnnualCost>0?"#ef4444":"#10b981"};">${t.realAnnualCost>0?"-":"+"}${b(Math.abs(t.realAnnualCost))}</td>
183              </tr>
184            `).join("")}
185          </tbody>
186        </table>
187      </div>
188
189      <!-- Section D: Table 2 - Růst investice -->
190      <div id="pdf-section-table2" style="margin-bottom: 30px;">
191        <h2 style="font-size: 20px; font-weight: bold; color: #3C3633; margin: 0 0 16px 0;">Tabulka 2: Růst investice a majetku</h2>
192        <table style="width: 100%; border-collapse: collapse; font-size: 11px;">
193          <thead>
194            <tr style="background: #7D8559; color: white;">
195              <th style="padding: 10px 8px; text-align: center; border: 1px solid #ddd;">Rok</th>
196              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Vloženo z vaš\xed kapsy</th>
197              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Naspořeno v nemovitosti</th>
198              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Tržn\xed hodnota</th>
199              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd; font-weight: bold;">Vaše čist\xe9 jměn\xed</th>
200              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd;">Ročn\xed n\xe1růst bohatstv\xed</th>
201              <th style="padding: 10px 8px; text-align: right; border: 1px solid #ddd; font-weight: bold;">ROI</th>
202            </tr>
203          </thead>
204          <tbody>
205            ${t.map((e,r)=>{let n;if(0===r){let r=t.length>1?t[1].propertyValue/t[0].propertyValue-1:.05;n=e.propertyValue/(1+r)}else n=t[r-1].propertyValue;let i=e.propertyValue-n+e.principalPayment;return`
206                <tr style="background: ${e.year%2==0?"#f9f9f9":"white"};">
207                  <td style="padding: 8px; text-align: center; border: 1px solid #ddd; font-weight: 600;">${e.year}</td>
208                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(e.totalInvested)}</td>
209                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(e.cumulativePrincipal)}</td>
210                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd;">${b(e.propertyValue)}</td>
211                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd; font-weight: bold; color: #10b981;">${b(e.equity)}</td>
212                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd; color: #10b981;">${b(i)}</td>
213                  <td style="padding: 8px; text-align: right; border: 1px solid #ddd; font-weight: bold; color: #10b981;">${x(e.roi,1)}</td>
214                </tr>
215              `}).join("")}
216          </tbody>
217        </table>
218      </div>
219
220      <!-- Section E: Footer -->
221      <div id="pdf-section-footer" style="background-color: #FFFFFF; padding: 40px 40px; width: 100%; margin-top: 40px;">
222        <p style="font-family: 'Manrope', sans-serif; font-size: 10pt; color: #1C1C1C; line-height: 1.6; text-align: justify; margin: 0;">
223          Tento v\xfdpočet je pouze orientačn\xed model a nepředstavuje z\xe1vaznou nab\xeddku ani investičn\xed či daňov\xe9 poradenstv\xed. Informace a v\xfdpočty na tomto webu mohou b\xfdt pro \xfačely modelace zjednodušeny a nemus\xed b\xfdt vyčerp\xe1vaj\xedc\xed. Dosažen\xed prezentovan\xfdch v\xfdnosů, daňov\xfdch \xfaspor a zhodnocen\xed nen\xed zaručeno a z\xe1vis\xed na budouc\xedm v\xfdvoji trhu a legislativy. Pro uplatněn\xed n\xe1roku na odpočet DPH je nezbytn\xe9 splněn\xed specifick\xfdch z\xe1konn\xfdch podm\xednek, kter\xe9 nejsou na těchto str\xe1nk\xe1ch detailně uvedeny. Konkr\xe9tn\xed daňov\xe9 dopady vždy z\xe1vazně konzultujte se sv\xfdm daňov\xfdm poradcem.
224        </p>
225      </div>
226
227    </div>
228  `;try{let t=new Sh({orientation:"landscape",unit:"mm",format:"a4"}),e=10,n=!0;for(let r of["pdf-section-header","pdf-section-summary","pdf-section-table1","pdf-section-table2","pdf-section-footer"]){let i=document.getElementById(r);if(!i)continue;let a=await (0,wN.default)(i,{scale:2,useCORS:!0,logging:!1,backgroundColor:"#ffffff"}),o=277*a.height/a.width;if(!n&&e+o>210&&(t.addPage(),e=10),"pdf-section-footer"===r){let r=210-o-10;r>e?e=r:e>10&&(t.addPage(),e=210-o-10)}t.addImage(a.toDataURL("image/jpeg",.75),"JPEG",10,e,277,o,void 0,"FAST"),e+=o+10,n=!1}let i=`Investicni_Report_${Eo[r].replace(/\\s/g,"_")}_${new Date().toISOString().split("T")[0]}.pdf`;return t.save(i),!0}catch(t){return console.error("Error generating PDF:",t),!1}finally{document.body.removeChild(s)}}let El=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("div",{className:"relative w-full overflow-auto",children:(0,y.jsx)("table",{ref:r,className:tM("w-full caption-bottom text-sm",t),...e})}));
228El.displayName="Table";let Ec=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("thead",{ref:r,className:tM("[&_tr]:border-b",t),...e}));Ec.displayName="TableHeader";let Eu=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("tbody",{ref:r,className:tM("[&_tr:last-child]:border-0",t),...e}));Eu.displayName="TableBody",g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("tfoot",{ref:r,className:tM("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e})).displayName="TableFooter";let Ef=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("tr",{ref:r,className:tM("border-b border-border transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Ef.displayName="TableRow";let Ed=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("th",{ref:r,className:tM("h-12 px-4 text-left align-middle font-medium text-primary-foreground bg-primary font-serif [&:has([role=checkbox])]:pr-0",t),...e}));Ed.displayName="TableHead";let Eh=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("td",{ref:r,className:tM("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...e}));Eh.displayName="TableCell",g.forwardRef(({className:t,...e},r)=>(0,y.jsx)("caption",{ref:r,className:tM("mt-4 text-sm text-muted-foreground",t),...e})).displayName="TableCaption";let Ep=nu("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function Em({label:t,tooltip:e}){return(0,y.jsxs)("div",{className:"flex items-center gap-1",children:[(0,y.jsx)("span",{className:"text-primary-foreground bg-chart-1",children:t}),(0,y.jsxs)(at,{children:[(0,y.jsx)(ar,{asChild:!0,children:(0,y.jsx)(Ep,{className:"w-4 h-4 text-white/80 cursor-help flex-shrink-0"})}),(0,y.jsx)(ao,{children:(0,y.jsx)(am,{className:"max-w-xs z-[99999]",side:"top",children:(0,y.jsx)("p",{className:"text-sm",children:e})})})]})]})}function Ev({data:t,buyerType:e,annualBaseIncome:r,params:n,calculatedMonthlyRent:i,totalExpenses:a,rentalParams:o,expenseBreakdown:s}){if(0===t.length)return null;let[l,c]=(0,g.useState)(!1),u=async()=>{if(!n||void 0===i||void 0===a||!o||!s)return void console.error("Missing required data for PDF generation");c(!0);try{await Es({data:t,params:n,buyerType:e||"entrepreneur",calculatedMonthlyRent:i,totalExpenses:a,rentalParams:o,expenseBreakdown:s})}catch(t){console.error("Failed to generate PDF:",t)}finally{c(!1)}};return(0,y.jsx)(i6,{children:(0,y.jsxs)(eg,{children:[(0,y.jsx)(eb,{className:"mt-0",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(ex,{className:"text-foreground font-serif mb-0",children:"Podrobná Analýza"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground",children:"Podrobný rozbor investice rok po roce"})]}),(0,y.jsxs)(eP,{onClick:u,disabled:l,className:"bg-accent hover:bg-accent/90 text-white",children:[(0,y.jsx)(wj,{className:"w-4 h-4 mr-2"}),l?"Generuji PDF...":"Export do PDF"]})]})}),(0,y.jsx)(ew,{children:(0,y.jsxs)(wu,{defaultValue:"operational",className:"w-full",children:[(0,y.jsxs)(wb,{className:"grid p-1.5 text-muted-foreground bg-muted items-center justify-center gap-1 grid-cols-2 rounded-md w-full h-12",children:[(0,y.jsx)(wx,{value:"operational",className:"data-[state=active]:bg-accent data-[state=active]:text-white data-[state=active]:shadow-md font-semibold text-base transition-all",children:"Provozní realita"}),(0,y.jsx)(wx,{value:"investment",className:"data-[state=active]:bg-accent data-[state=active]:text-white data-[state=active]:shadow-md font-semibold text-base transition-all",children:"Růst investice"})]}),(0,y.jsx)(ww,{value:"operational",className:"mt-6",children:(0,y.jsx)("div",{className:"overflow-x-auto text-accent border rounded-sm",children:(0,y.jsxs)(El,{children:[(0,y.jsx)(Ec,{children:(0,y.jsxs)(Ef,{className:"bg-primary hover:bg-primary",children:[(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-center px-4 h-24",children:"Rok"}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Celková splátk
228a bance",tooltip:"Vaše celková měsíční splátka. Část spolkne banka jako úrok za půjčku. Zbytek peněz ale reálně snižuje váš dluh – vlastně si je přeléváte z účtu do hodnoty své nemovitosti."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Úroky (Daňový náklad)",tooltip:"'Cena peněz'. Tuto část si banka nechává jako odměnu. Je to daňově uznatelný náklad, který snižuje vaše daně."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Splaceno do vlastního",tooltip:"Peníze, které platíte bance za půjčku. Je to sice náklad navíc, ale má světlou stránku: úroky jsou daňově uznatelné. To znamená, že vám legálně sníží daňový základ a vy zaplatíte menší daně."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Daňové odpisy (Zrychlené)",tooltip:"'Papírový' náklad. Nikomu ho neplatíte, peníze vám zůstávají, ale pro FÚ to vypadá jako výdaj. Díky tomu neplatíte daně z nájmu."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Provozní náklady",tooltip:"Náklady na elektřinu, topení, internet, pojištění a běžnou údržbu. Roste o inflaci."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Příjem z nájmu",tooltip:"Celková částka, kterou vám zaplatí nájomce/správce. Roste o inflaci."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Daňová úspora",tooltip:(0,y.jsxs)(y.Fragment,{children:["Částka, kterou reálně ušetříte na daních ze svého hlavního podnikání.",(0,y.jsx)("br",{}),(0,y.jsx)("br",{}),"Díky vysokým odpisům a úrokům vykazuje nemovitost 'papírovou' ztrátu. Tuto ztrátu použijete ke snížení svého celkového daňového základu, a státu tak zaplatíte o tuto částku méně."]})})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-medium font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",children:(0,y.jsx)(Em,{label:"Reálný doplatek",tooltip:"To nejdůležitější číslo. Kolik musíte skutečně vytáhnout z kapsy po započtení nájmu a vrácení daní."})})]})}),(0,y.jsx)(Eu,{children:t.map(t=>(0,y.jsxs)(Ef,{children:[(0,y.jsx)(Eh,{className:"font-medium text-center",children:t.year}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",children:b(t.mortgagePayment)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-expense",children:b(t.interestPayment)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",children:b(t.principalPayment)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",children:b(t.depreciation)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-expense",children:b(t.expenses)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-income",children:b(t.rent)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-income",children:b(t.taxRefund)}),(0,y.jsxs)(Eh,{className:`text-right font-mono text-sm font-bold ${t.realAnnualCost>0?"text-expense":"text-income"}`,children:[t.realAnnualCost>0?"-":"+",b(Math.abs(t.realAnnualCost))]})]},t.year))})]})})}),(0,y.jsx)(ww,{value:"investment",className:"mt-6",children:(0,y.jsx)("div",{className:"rounded-sm border overflow-x-auto",children:(0,y.jsxs)(El,{children:[(0,y.jsx)(Ec,{children:(0,y.jsxs)(Ef,{className:"bg-slate-50",children:[(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-center px-4 h-24",style:{width:"5%"},children:"Rok"}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Vloženo z vaší kapsy",tooltip:"Součet vaší počáteční akontace a všech měsíčních doplatků na provoz, které jste zaplatili ze svého."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Naspořeno v nemovitosti",tooltip:"
228Celková částka dluhu, kterou za vás v průběhu let zaplatil nájomník (a částečně vy). O tolik se snížil váš dluh bance."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Tržní hodnota",tooltip:"Předpokládaná prodejní cena nemovitosti v daném roce."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Vaše čisté jmění (Equity)",tooltip:"Hodnota, která by vám zbyla na účtu, kdybyste nemovitost dnes prodali a doplatili zbytek hypotéky."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Reálná hodnota (dnešní ceny)",tooltip:"Hodnota vašeho čistého jmění očištěná o inflaci. Ukazuje, jakou kupní sílu by měla tato částka v dnešních cenách."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"16%"},children:(0,y.jsx)(Em,{label:"Roční nárůst bohatství",tooltip:"Celkové zvýšení vaší čisté hodnoty v nemovitosti za tento rok. Skládá se z růstu tržní ceny a splacené jistiny úvěru."})}),(0,y.jsx)(Ed,{className:"align-middle [&:has([role=checkbox])]:pr-0 font-semibold font-serif text-primary-foreground bg-chart-1 text-right px-4 h-24",style:{width:"11%"},children:(0,y.jsx)(Em,{label:"Celkové zhodnocení vkladu",tooltip:"Kolikrát se zhodnotily peníze, které jste do toho vložili. (Např. 26 % znamená, že máte zpět svůj vklad + 26 % zisku navíc)."})})]})}),(0,y.jsx)(Eu,{children:t.map((e,r)=>{let n;if(0===r){let r=t.length>1?t[1].propertyValue/t[0].propertyValue-1:.05;n=e.propertyValue/(1+r)}else n=t[r-1].propertyValue;let i=e.propertyValue-n+e.principalPayment;return(0,y.jsxs)(Ef,{className:"hover:bg-slate-50",children:[(0,y.jsx)(Eh,{className:"font-medium text-center",style:{width:"5%"},children:e.year}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",style:{width:"16%"},children:b(e.totalInvested)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",style:{width:"16%"},children:b(e.cumulativePrincipal)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-neutral-dark",style:{width:"16%"},children:b(e.propertyValue)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-income font-bold",style:{width:"16%"},children:b(e.equity)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-stone-500",style:{width:"16%"},children:b(e.realEquity)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-income font-bold",style:{width:"16%"},children:b(i)}),(0,y.jsx)(Eh,{className:"text-right font-mono text-sm text-income font-bold",style:{width:"11%"},children:x(e.roi,1)})]},e.year)})})]})})})]})})]})})}let Ey=nu("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),Eg=nu("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Eb=nu("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ex=nu("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var Ew="Radio",[Ej,EN]=tF(Ew),[Ek,E_]=Ej(Ew),ES=g.forwardRef((t,e)=>{let{__scopeRadio:r,name:n,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,form:c,...u}=t,[f,d]=g.useState(null),h=A(e,t=>d(t)),p=g.useRef(!1),m=!f||c||!!f.closest("form");return(0,y.jsxs)(Ek,{scope:r,checked:i,disabled:o,children:[(0,y.jsx)(E.button,{type:"button",role:"radio","aria-checked":i,"data-state":EE(i),"data-disabled":o?"":void 0,disabled:o,value:s,...u,ref:h,onClick:tz(t.onClick,t=>{i||l?.(),m&&(p.current=t.isPropagationStopped(),p.current||t.stopPropagation())})}),m&&(0,y.jsx)(EP,{control:f,bubbles:!p.current,name:n,value:s,checked:i,required:a,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});ES.displayName=Ew;var EA="RadioIndicator",EO=g.forwardRef((t,e)=>{let{__scopeRadio:r,forceMount:n,...i}=t,a=E_(EA,r);return(0,y.jsx)(eY,{present:n||a.checked,children:(0,y.jsx)(E.span,{"data-state":EE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e})})});EO.displayName=EA;var EP=g.forwardRef(({__scopeRadio:t,control:e,checked:r,bubbles:n=!0,...i},a)=>{let o=g.useRef(null),s=A(o,a),l=tW(r),c=t$(e);return g.useEffect(()=>
228{let t=o.current;if(!t)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&e){let i=new Event("click",{bubbles:n});e.call(t,r),t.dispatchEvent(i)}},[l,r,n]),(0,y.jsx)(E.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:s,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function EE(t){return t?"checked":"unchecked"}EP.displayName="RadioBubbleInput";var EC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],EL="RadioGroup",[EM,ET]=tF(EL,[aN,EN]),EI=aN(),ED=EN(),[ER,Ez]=EM(EL),EF=g.forwardRef((t,e)=>{let{__scopeRadioGroup:r,name:n,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:f,...d}=t,h=EI(r),p=tH(c),[m,v]=tU({prop:a,defaultProp:i??null,onChange:f,caller:EL});return(0,y.jsx)(ER,{scope:r,name:n,required:o,disabled:s,value:m,onValueChange:v,children:(0,y.jsx)(aS,{asChild:!0,...h,orientation:l,dir:p,loop:u,children:(0,y.jsx)(E.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:p,...d,ref:e})})})});EF.displayName=EL;var EB="RadioGroupItem",Eq=g.forwardRef((t,e)=>{let{__scopeRadioGroup:r,disabled:n,...i}=t,a=Ez(EB,r),o=a.disabled||n,s=EI(r),l=ED(r),c=g.useRef(null),u=A(e,c),f=a.value===i.value,d=g.useRef(!1);return g.useEffect(()=>{let t=t=>{EC.includes(t.key)&&(d.current=!0)},e=()=>d.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}},[]),(0,y.jsx)(aP,{asChild:!0,...s,focusable:!o,active:f,children:(0,y.jsx)(ES,{disabled:o,required:a.required,checked:f,...l,...i,name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:tz(t=>{"Enter"===t.key&&t.preventDefault()}),onFocus:tz(i.onFocus,()=>{d.current&&c.current?.click()})})})});Eq.displayName=EB;var EU=g.forwardRef((t,e)=>{let{__scopeRadioGroup:r,...n}=t,i=ED(r);return(0,y.jsx)(EO,{...i,...n,ref:e})});EU.displayName="RadioGroupIndicator";let EV=nu("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),EH=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(EF,{className:tM("grid gap-2",t),...e,ref:r}));EH.displayName=EF.displayName;let EW=g.forwardRef(({className:t,...e},r)=>(0,y.jsx)(Eq,{ref:r,className:tM("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:(0,y.jsx)(EU,{className:"flex items-center justify-center",children:(0,y.jsx)(EV,{className:"h-2.5 w-2.5 fill-current text-current"})})}));EW.displayName=Eq.displayName;let E$={pojisteni:600,revizeUdrzba:300,fondOprav:.5,rezerva:1e3,warrantyMode:!0},EG={pricePerNight:6500,occupancyRate:45,otaCommission:15,managerMargin:20,cleaningCost:1500,consumablesCost:300,avgStayLength:3,vatRate:12,energyHeating:2500,internetTV:300,waterWaste:200,security:300,areaServices:1e3},EK={propertyPrice:12e6,landValue:1e6,downPayment:24e5,interestRate:4.25,loanDuration:30,startYear:3,monthlyRentYear1:46e3,monthlyExpensesYear1:10500,annualInflation:2.6,annualAppreciation:5,incomeTaxRate:15,vatRateForCorporate:.21,annualBaseIncome:1e6,depreciationGroup:4},EY=[{title:"Daňový štít",description:"Ztrátu z pronájmu (vytvořenou odpisy a úroky) si odečtete od zisku z vašeho hlavního podnikání."},{title:"Nulová daň z prodeje",description:"Po 10 letech (časový test) je zisk z prodeje nemovitosti zcela osvobozen od daně z příjmu."}],EX=[{title:"Daňová neutralita",description:"Odpisy a úroky nemovitosti sníží daň z nájmu až na nulu. Výnosy z pronájmu tak často nepodléhají zdanění."},{title:"Nulová daň z prodeje",description:"Po 10 letech (časový test) je zisk z prodeje nemovitosti zcela osvobozen od daně z příjmu."}],EZ=[{title:"Levnější kapitál",description:"Investujete firemní zisk ještě před zdaněním dividendou (úspora 15 % na vstupu)."},{title:"Okamžitá vratka DPH",description:"Stát vám na začátku vrátí 12% nebo 21 % z kupní ceny zpět do cash-flow."},{title:"Daňový štít",description:"Odpisy a náklady nemovitosti snižují celk
228ový daňový základ vaší firmy."},{title:"DPH Bonus",description:"Po 10 letech prodáváte nemovitost osvobozenou od DPH, ale původní odpočet státu vracet nemusíte."}];function EJ(){let t,e,r,n,i,a,o,s,l,[c,u]=(0,g.useState)(EK),[f,d]=(0,g.useState)(E$),[h,p]=(0,g.useState)(EG),[m,v]=(0,g.useState)(!1),[b,x]=(0,g.useState)("entrepreneur"),[j,N]=(0,g.useState)(null);(0,g.useEffect)(()=>{if("corporate"===b){let t=Math.round(1999999.9999999995);u(e=>({...e,propertyPrice:1e7,downPayment:t,incomeTaxRate:21}))}else{let t=Math.round(2419999.9999999995);u(e=>({...e,propertyPrice:121e5,downPayment:t,incomeTaxRate:15}))}},[b]);let k=(r=(e=(t=365*(h.occupancyRate/100))*h.pricePerNight)/(1+h.vatRate/100),i=(n=t/h.avgStayLength)*h.cleaningCost,a=n*h.consumablesCost,o=e*(h.otaCommission/100),s=(h.energyHeating+h.internetTV+h.waterWaste+h.security+h.areaServices)*12,l=r*(h.managerMargin/100),Math.round((r-i-a-o-s-l)/12)),_=c.propertyPrice*(f.fondOprav/100)/12,S=f.pojisteni+f.revizeUdrzba+_+f.rezerva,A={...c,monthlyRentYear1:k,monthlyExpensesYear1:S,buyerType:b,fondOpravRate:f.fondOprav,warrantyMode:f.warrantyMode},O=function(t){var e,r;let n,i,a="corporate"===t.buyerType,o=t.vatRateForCorporate??.21,s=t.propertyPrice,l=a?s*(1+o):s,c=(a?s:t.propertyPrice)-t.downPayment,u=(e=t.interestRate,r=t.loanDuration,n=e/100/12,i=12*r,0===n?c/i:c*n*Math.pow(1+n,i)/(Math.pow(1+n,i)-1)*12),f=s-t.landValue,d=12*t.monthlyRentYear1,h=12*t.monthlyExpensesYear1,p=t.fondOpravRate??.5,m=t.warrantyMode??!0,v=a?l:t.propertyPrice,y=[],g=c,b=t.downPayment,x=0,w=[];for(let e=1;e<=10;e++){let r=Math.pow(1+t.annualInflation/100,e-1),n=d*r,i=p;m&&e<=5&&(i=.3*p);let o=i/100*v*r,c=(h-p/100*v)*r+o,j=g*(t.interestRate/100),N=u-j,k=function(t,e,r,n=5){let{k1:i,k2:a}={4:{k1:20,k2:21},5:{k1:30,k2:31},6:{k1:50,k2:51}}[n];return 1===e?t/i:2*(t-r.reduce((t,e)=>t+e,0))/(a-(e-1))}(f,e,w,t.depreciationGroup||5);w.push(k);let _=n-j-k-c,S=0;"employee"===t.buyerType?S=0:(t.buyerType,S=_<0?Math.abs(_)*(t.incomeTaxRate/100):0);let A=u+c-n-S;A>0&&(b+=A);let O=l*Math.pow(1+t.annualAppreciation/100,e);g-=N,x+=N;let P=O-g,E=P/Math.pow(1+t.annualInflation/100,e),C=0;a&&10===e&&(C=(O-(s-w.reduce((t,e)=>t+e,0)))*(t.incomeTaxRate/100));let L=(P-b)/b*100;y.push({year:e,mortgagePayment:u,interestPayment:j,principalPayment:N,depreciation:k,expenses:c,rent:n,taxableProfit:_,taxRefund:S,realAnnualCost:A,loanBalance:g,propertyValue:O,equity:P,realEquity:E,totalInvested:b,cumulativePrincipal:x,roi:L,vatRefund:void 0,exitCorporateTax:10===e&&a?C:void 0,netPriceForCorporate:a?s:void 0})}return y}(A);return(0,y.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,y.jsxs)("div",{className:"w-full relative h-screen md:h-[650px] overflow-hidden",children:[(0,y.jsx)("img",{src:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/fknj40bvk94bef1rivp7xkx9/rb5vtxoshe9ihueh8ab2dud3/XqSjTPH5oNIvXzmv76IHY/b0002-g.jpg",alt:"Luxury cottage in Beskydy mountains",className:"w-full h-full object-cover"}),(0,y.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/40 via-black/30 to-black/60"}),(0,y.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-start md:justify-center gap-8 pt-16 md:pt-0 py-8 px-3 md:gap-3 md:py-6 md:px-8",children:[(0,y.jsxs)("div",{className:"py-2 md:py-3.5 text-white text-center my-0 md:my-10",children:[(0,y.jsx)("h2",{className:"text-3xl md:text-6xl font-bold mb-2 md:mb-6 font-serif drop-shadow-lg",children:"Investiční kalkulačka"}),(0,y.jsx)("p",{className:"text-lg md:text-2xl font-light drop-shadow-md max-w-3xl mx-auto mb-1 md:mb-4",children:"Modelace nákupu rekreační nemovitosti"}),(0,y.jsxs)("p",{className:"text-sm md:text-lg font-light drop-shadow-md max-w-4xl mx-auto leading-relaxed",children:["Zjistěte, jak ",(0,y.jsx)("strong",{children:"finanční páka"})," (hypotéka), ",(0,y.jsx)("strong",{children:"daňový štít"})," (odpisy) a ",(0,y.jsx)("strong",{children:"efekt DPH"})," ovlivní výnosnost vaši investice. Modelace pracuje s 10letým horizontem, který 
228je klíčový pro splnění časového testu a maximální daňovou optimalizaci při prodeji."]})]}),(0,y.jsx)("div",{className:"w-full max-w-7xl px-2 md:px-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 md:grid md:grid-cols-3 md:gap-6",children:[(0,y.jsx)(eg,{className:"bg-white/95 backdrop-blur-sm border-accent/20 hover:shadow-xl transition-all duration-300 hover:scale-[1.02] text-card-foreground border rounded-sm shadow-md md:p-6 p-4 w-full",children:(0,y.jsx)("div",{className:"flex items-start space-x-2 md:space-x-4",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-sm md:text-lg font-semibold text-accent mb-2 md:mb-2 font-serif",children:"Jak funguje daňový štít?"}),(0,y.jsx)("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:"Daňovou ztrátu z pronájmu (způsobenou zejména odpisy nemovitosti a úroky bance) můžete odečíst od zisku ze svého podnikání. Stát vám tak efektivně vrátí část těchto nákladů zpět do rozpočtu formou úspory na dani."})]})})}),(0,y.jsx)(eg,{className:"bg-white/95 backdrop-blur-sm border-accent/20 hover:shadow-xl transition-all duration-300 hover:scale-[1.02] text-card-foreground border rounded-sm shadow-md md:p-6 p-4 w-full",children:(0,y.jsx)("div",{className:"flex items-start space-x-2 md:space-x-4",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-sm md:text-lg font-semibold text-accent mb-2 md:mb-2 font-serif",children:"Síla pákového efektu"}),(0,y.jsxs)("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:["Banka pokryje většinu kupní ceny, zatímco vy vložíte jen menší část. Hodnota ale v čase roste celé nemovitosti. I malý růst tržní ceny celku vám přinese výrazné zhodnocení vašeho nízkého vkladu.",(0,y.jsx)("br",{})]})]})})}),(0,y.jsx)(eg,{className:"bg-white/95 backdrop-blur-sm border-accent/20 hover:shadow-xl transition-all duration-300 hover:scale-[1.02] text-card-foreground border rounded-sm shadow-md md:p-6 p-4 w-full",children:(0,y.jsx)("div",{className:"flex items-start space-x-2 md:space-x-4",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-sm md:text-lg font-semibold text-accent mb-2 md:mb-2 font-serif",children:"Efekt vráceného DPH"}),(0,y.jsxs)("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:["Při nákupu na firmu (plátce DPH) vám stát vrátí DPH z kupní ceny zpět. Tím okamžitě snížíte svou vstupní investici. Druhý prodej je od DPH osvobozen a po 10 letech uplyne i lhůta pro úpravu odpočtu, takže původní odpočet DPH při prodeji nemusíte vracet.",(0,y.jsx)("br",{})]})]})})})]})})]})]}),(0,y.jsx)("div",{className:"w-full bg-stone-50 border-b border-stone-200",children:(0,y.jsxs)("div",{className:"bg-background mx-auto p-8 max-w-[1600px]",children:[(0,y.jsx)("h3",{className:"text-2xl font-semibold text-foreground mb-6",style:{fontFamily:"Playfair Display, serif"},children:"Parametry kupujícího"}),(0,y.jsxs)(EH,{value:b,onValueChange:t=>x(t),className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-start",children:[(0,y.jsxs)("label",{htmlFor:"entrepreneur",className:`relative rounded-lg p-6 text-left transition-all duration-300 cursor-pointer border-2 ${"entrepreneur"===b?"bg-[#F2F4E8] border-[#7D8559] shadow-lg":"bg-white border-[#3C3633]/20 hover:border-[#7D8559]/40 hover:shadow-md"}`,children:[(0,y.jsx)(EW,{value:"entrepreneur",id:"entrepreneur",className:"sr-only"}),"entrepreneur"===b&&(0,y.jsx)("div",{className:"absolute top-4 right-4",children:(0,y.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7D8559] flex items-center justify-center",children:(0,y.jsx)(oi,{className:"w-4 h-4 text-white"})})}),(0,y.jsx)("h4",{className:`text-lg mb-2 ${"entrepreneur"===b?"font-bold":"font-semibold"} text-[#3C3633]`,style:{fontFamily:"Playfair Display, serif"},children:"Fyzická osoba - Podnikatel"}),(0,y.jsx)("p",{className:"text-sm text-[#3C3633]/70 mb-4",style:{fontFamily:"Manrope, sans-serif"},children:"Nemovitost dlouhodobě pronajímá (§ 9). Podává daňové přiznání. Uplatňuje skutečné výdaje a odpisy. Nemovitost nemá zařazenou v obchodním majetku."}),(0,y.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),"entrepreneur"!==b&&x("entrepreneur"),N("entrepreneur"===j?
228null:"entrepreneur")},className:"flex items-center gap-1.5 text-sm font-medium hover:underline transition-all mb-3",style:{color:"#7D8559"},children:[(0,y.jsx)("span",{children:"entrepreneur"===j?"Skrýt výhody":"Hlavní výhody"}),"entrepreneur"===j?(0,y.jsx)(Eg,{className:"w-4 h-4"}):(0,y.jsx)(Eb,{className:"w-4 h-4"})]}),(0,y.jsx)("div",{className:`overflow-hidden transition-all duration-300 ${"entrepreneur"===j?"max-h-[600px] opacity-100":"max-h-0 opacity-0"}`,children:(0,y.jsx)("div",{className:"pt-3 border-t border-[#7D8559]/20 space-y-3",children:EY.map((t,e)=>(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsx)("div",{className:"flex-shrink-0 pt-0.5",children:(0,y.jsx)(Ex,{className:"w-4 h-4",style:{color:"#7D8559"}})}),(0,y.jsxs)("div",{className:"flex-1",children:[(0,y.jsxs)("p",{className:"font-semibold text-[#3C3633] text-sm mb-0.5",children:[t.title,":"]}),(0,y.jsx)("p",{className:"text-xs text-[#3C3633]/70 leading-relaxed",children:t.description})]})]},e))})})]}),(0,y.jsxs)("label",{htmlFor:"employee",className:`relative rounded-lg p-6 text-left transition-all duration-300 cursor-pointer border-2 ${"employee"===b?"bg-[#F2F4E8] border-[#7D8559] shadow-lg":"bg-white border-[#3C3633]/20 hover:border-[#7D8559]/40 hover:shadow-md"}`,children:[(0,y.jsx)(EW,{value:"employee",id:"employee",className:"sr-only"}),"employee"===b&&(0,y.jsx)("div",{className:"absolute top-4 right-4",children:(0,y.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7D8559] flex items-center justify-center",children:(0,y.jsx)(oi,{className:"w-4 h-4 text-white"})})}),(0,y.jsx)("h4",{className:`text-lg mb-2 ${"employee"===b?"font-bold":"font-semibold"} text-[#3C3633]`,style:{fontFamily:"Playfair Display, serif"},children:"Fyzická osoba - Nepodnikatel"}),(0,y.jsx)("p",{className:"text-sm text-[#3C3633]/70 mb-4",style:{fontFamily:"Manrope, sans-serif"},children:"Nemovitost dlouhodobě pronajímá (§ 9). Uplatňuje skutečné výdaje a odpisy."}),(0,y.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),"employee"!==b&&x("employee"),N("employee"===j?null:"employee")},className:"flex items-center gap-1.5 text-sm font-medium hover:underline transition-all mb-3",style:{color:"#7D8559"},children:[(0,y.jsx)("span",{children:"employee"===j?"Skrýt výhody":"Hlavní výhody"}),"employee"===j?(0,y.jsx)(Eg,{className:"w-4 h-4"}):(0,y.jsx)(Eb,{className:"w-4 h-4"})]}),(0,y.jsx)("div",{className:`overflow-hidden transition-all duration-300 ${"employee"===j?"max-h-[600px] opacity-100":"max-h-0 opacity-0"}`,children:(0,y.jsx)("div",{className:"pt-3 border-t border-[#7D8559]/20 space-y-3",children:EX.map((t,e)=>(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsx)("div",{className:"flex-shrink-0 pt-0.5",children:(0,y.jsx)(Ex,{className:"w-4 h-4",style:{color:"#7D8559"}})}),(0,y.jsxs)("div",{className:"flex-1",children:[(0,y.jsxs)("p",{className:"font-semibold text-[#3C3633] text-sm mb-0.5",children:[t.title,":"]}),(0,y.jsx)("p",{className:"text-xs text-[#3C3633]/70 leading-relaxed",children:t.description})]})]},e))})})]}),(0,y.jsxs)("label",{htmlFor:"corporate",className:`relative rounded-lg p-6 text-left transition-all duration-300 cursor-pointer border-2 ${"corporate"===b?"bg-[#F2F4E8] border-[#7D8559] shadow-lg":"bg-white border-[#3C3633]/20 hover:border-[#7D8559]/40 hover:shadow-md"}`,children:[(0,y.jsx)(EW,{value:"corporate",id:"corporate",className:"sr-only"}),"corporate"===b&&(0,y.jsx)("div",{className:"absolute top-4 right-4",children:(0,y.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7D8559] flex items-center justify-center",children:(0,y.jsx)(oi,{className:"w-4 h-4 text-white"})})}),(0,y.jsx)("h4",{className:`text-lg mb-2 ${"corporate"===b?"font-bold":"font-semibold"} text-[#3C3633]`,style:{fontFamily:"Playfair Display, serif"},children:"Právnická osoba (s.r.o.)"}),(0,y.jsx)("p",{className:"text-sm text-[#3C3633]/70 mb-4",style:{fontFamily:"Manrope, sans-serif"},children:"Nemovitost využívána k ekonomické činnosti s nárokem na odpočet DPH. Nemovitost dlouhodobě pronajímá s DPH plátci DPH nebo provozuje ubytovací služby."}),(0,y.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),"corporate"!==b&&x("corporate"),N("corporate"===j?null:"corporate")},className:"flex items-center gap-1.5 text-sm font-medium hover:underline transition-all mb-3",style:{color:"#7D8559"},children:[(0,y.jsx)("span",{children:"corporate"===j?"Skrýt výhody":"Hlavní výhody"}),"corporate"===j?(0,y.jsx)(Eg,{className:"w-4 h-4"}):(0,y.jsx)(Eb,{className:"w-4 h-4"})]}),(0,y.jsx)("div",{className:`overflow-hidden transition-all duration-300 ${"corporate"===j?"max-h-[600px] opacity-100":"max-h-0 opacity-0"}`,children:(0,y.jsx)("div",{className:"pt-3 border-t border-[#7D8559]/20 space-y-3",children:EZ.map((t,e)=>(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsx)("div",{className:"flex-shrink-0 pt-0.5",children:(0,y.jsx)(Ex,{className:"w-4 h-4",style:{color:"#7D8559"}})}),(0,y.jsxs)("div",{className:"flex-1",children:[(0,y.jsxs)("p",{className:"font-semibold text-[#3C3633] text-sm mb-0.5",children:[t.title,":"]}
228),(0,y.jsx)("p",{className:"text-xs text-[#3C3633]/70 leading-relaxed",children:t.description})]})]},e))})})]})]})]})}),(0,y.jsx)("div",{className:"w-full border-b border-stone-200 bg-background",children:(0,y.jsx)("div",{className:"bg-background mx-auto p-8 w-7xl max-w-[1600px]",children:(0,y.jsx)(os,{params:A,onParamsChange:u,expenseBreakdown:f,onExpenseBreakdownChange:d,rentalParams:h,onRentalParamsChange:p,calculatedMonthlyRent:k,buyerType:b})})}),(0,y.jsx)("div",{className:"w-full bg-background border-b border-stone-200",children:(0,y.jsx)("div",{className:"bg-muted mx-auto p-6 max-w-[1600px]",children:(0,y.jsx)(Ev,{data:O,showRealValues:m,onToggleRealValues:v,inflationRate:A.annualInflation,buyerType:b,annualBaseIncome:c.annualBaseIncome,params:A,calculatedMonthlyRent:k,totalExpenses:S,rentalParams:h,expenseBreakdown:f})})}),(0,y.jsx)("div",{className:"w-full bg-[#F2F4E8] border-b border-[#3C3633]/10 py-16 my-12",children:(0,y.jsx)("div",{className:"max-w-[1600px] mx-auto px-6",children:(0,y.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,y.jsxs)("div",{className:"flex flex-col md:flex-row items-center md:items-start gap-8",children:[(0,y.jsx)("div",{className:"flex-shrink-0",children:(0,y.jsx)("img",{src:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/fknj40bvk94bef1rivp7xkx9/jmqq65kwur3pfcfud53wiv3q/vFE78I3ii8uTvlvm2BNCF.png",alt:"Jiří Helán",className:"w-32 h-32 rounded-full border-4 border-[#7D8559]/20 shadow-lg"})}),(0,y.jsxs)("div",{className:"flex-1 text-center md:text-left",children:[(0,y.jsx)("h2",{className:"text-3xl md:text-4xl font-semibold mb-4 tracking-wider uppercase",style:{fontFamily:"Playfair Display, serif",color:"#7D8559"},children:"Newsletter: Rekreační Investice"}),(0,y.jsxs)("p",{className:"text-base md:text-lg mb-8 text-[#3C3633] leading-relaxed",style:{fontFamily:"Manrope, sans-serif"},children:["Jak vydělávat tam, kde jiní odpočívají. ",(0,y.jsx)("br",{}),"Rekreační nemovitosti očima advokáta, investora a tvůrce Divoké Soláně."]}),(0,y.jsx)("a",{href:"https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7401673596693323776",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 text-white font-semibold rounded-sm transition-all duration-300 hover:shadow-lg hover:scale-105",style:{backgroundColor:"#7D8559",fontFamily:"Manrope, sans-serif"},children:"Odebírat newsletter na LinkedIn"})]})]})})})}),(0,y.jsx)("div",{className:"w-full bg-stone-50",children:(0,y.jsx)("div",{className:"max-w-[1600px] mx-auto p-6",children:(0,y.jsx)(wn,{data:O})})}),(0,y.jsx)("div",{className:"w-full bg-background border-y border-stone-200",children:(0,y.jsx)("div",{className:"max-w-[1600px] mx-auto p-0"})}),(0,y.jsxs)("div",{className:"w-full relative overflow-hidden border-t border-stone-200 min-h-screen flex flex-col justify-center py-12",children:[(0,y.jsx)("img",{src:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/fknj40bvk94bef1rivp7xkx9/rb5vtxoshe9ihueh8ab2dud3/T9pNmbg75EW42mizu9OXd/5fc7263f-a9ee-401f-ad54-dbd1bd4decd4.jpg",alt:"Beskydy mountain cottage",className:"absolute inset-0 w-full h-full object-cover"}),(0,y.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-black/60"}),(0,y.jsx)("div",{className:"relative max-w-[1600px] mx-auto pb-12 px-6 w-full",children:(0,y.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-5 gap-6 mb-12",children:[(0,y.jsx)(eg,{className:"bg-white/95 backdrop-blur-sm border-accent/20 shadow-md hover:shadow-xl transition-shadow duration-300",children:(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold font-serif text-accent mb-3",children:"Vloženo z vlastní kapsy"}),(0,y.jsxs)("div",{className:"text-xl font-bold text-foreground mb-2",children:[w(O[9].totalInvested)," Kč"]}),(0,y.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-3 italic",children:"Za 10 let"}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Součet vaší počáteční investice a všech doplatků","",". Tedy celková hotovost, kterou jste zaplatili ze svého."]})]})}),(0,y.jsx)(eg,{className:"bg-white border-accent/20 shadow-md hover:shadow-xl transition-shadow duration-300",children:(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold font-serif text-accent mb-3",children:"Ušetřen
228o na daních"}),(0,y.jsxs)("div",{className:"text-xl font-bold text-foreground mb-2",children:[w(O.reduce((t,e)=>t+e.taxRefund,0))," Kč"]}),(0,y.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-3 italic",children:"Daňový štít"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Kolik peněz jste za 10 let ušetřili na daních díky tomu, že jste vykazovali účetní ztrátu."})]})}),(0,y.jsx)(eg,{className:"bg-white border-accent/20 shadow-md hover:shadow-xl transition-shadow duration-300",children:(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold font-serif text-accent mb-3",children:"Zhodnocení vkladu"}),(0,y.jsxs)("div",{className:"text-xl font-bold text-foreground mb-2",children:[(O[9].equity/O[9].totalInvested).toFixed(1).replace(".",","),"x"]}),(0,y.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-3 italic",children:"Equity Multiple"}),(0,y.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Za každou 1 Kč, kterou jste do projektu vložili ze svého, si po 10 letech při prodeji odnášíte"," ",(O[9].equity/O[9].totalInvested).toFixed(1).replace(".",",")," ","Kč čistého."]})]})}),(0,y.jsx)(eg,{className:"bg-white border-accent/20 shadow-md hover:shadow-xl transition-shadow duration-300",children:(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold font-serif text-accent mb-3",children:"corporate"===b?"Exit Cash (firma)":"Hodnota majetku"}),(0,y.jsxs)("div",{className:"text-xl font-bold text-foreground mb-2",children:["corporate"===b?w(O[9].propertyValue-O[9].loanBalance-(O[9].exitCorporateTax||0)):w(O[9].equity)," Kč"]}),"corporate"!==b&&(0,y.jsxs)("p",{className:"text-xs text-stone-500 mb-3",children:["(Reálně v dnešních cenách: ",w(O[9].realEquity)," Kč)"]}),(0,y.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-3 italic",children:"corporate"===b?"Po prodeji a dani":"Equity za 10 let"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"corporate"===b?"Výsledek představuje čistou hotovost zůstávající na účtu firmy po prodeji a zaplacení daně z příjmu PO (21 %). Nezahrnuje srážkovou daň pro případ výplaty podílu na zisku.":"Celková čistá hodnota, kterou v nemovitosti vlastníte po 10 letech. Tržní cena nemovitosti mínus zbývající dluh bance."})]})}),(0,y.jsx)(eg,{className:"bg-white border-accent/20 shadow-md hover:shadow-xl transition-shadow duration-300",children:(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold font-serif text-accent mb-3",children:"Možnost jezdit do svého"}),(0,y.jsx)("div",{className:"text-xl font-bold text-foreground mb-2",children:"K nezaplacení"}),(0,y.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-3 italic",children:"Lifestyle benefit"}),(0,y.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Nejde jen o čísla a výnosy. Získáváte vlastní rekreační nemovitost, kterou můžete využívat pro rekreaci, zatímco se vám zhodnocuje."})]})})]})})]}),(0,y.jsx)("div",{id:"website-footer",className:"w-full bg-[#4A4134] text-[#F2F4E8]",children:(0,y.jsxs)("div",{className:"max-w-[1600px] mx-auto py-12 px-6",children:[(0,y.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-8",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-xl font-medium font-sans mb-4",style:{color:"#8B9165"},children:"DIVOKÁ SOLÁŇ"}),(0,y.jsx)("p",{className:"text-sm font-semibold mb-3 text-[#F2F4E8]",children:"Horské chaty a apartmány v srdci CHKO Beskydy"}),(0,y.jsx)("p",{className:"text-sm leading-relaxed opacity-90",children:"Skryjte se v beskydské divočině. Prémiové horské chaty a apartmány v nedotčené přírodě na prodej, které spojují osobní rekreaci s chytrým investičním modelem."}),(0,y.jsxs)("div",{className:"flex items-center space-x-2 mt-4 text-sm",children:[(0,y.jsx)(Ey,{className:"w-4 h-4 flex-shrink-0",style:{color:"#8B9165"}}),(0,y.jsx)("a",{href:"https://www.divokasolan.cz",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"www.divokasolan.cz"})]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("a",{href:"https://www.bricks.legal",target:"_blank",rel:"noopener noreferrer",className:"block mb-4",children:(0,y.jsx)("img",{src:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/fknj40bvk94bef1rivp7xkx9/new-chat/rK5Xta7P0dmBJinxJZSvQ/bez-nazvu-200-x-70-px-2.png",alt:"Bricks Logo",className:"bg-popover-foreground w-20"})}),(0,y.jsx)("p",{className:"text-sm font-semibold mb-3 text-[#F2F4E8]",children:"Advokátní kancelář pro realitní profesionály"}),(0,y.jsx)("p",{className:"text-sm leading-relaxed opacity-90 mb-5",children:"Realitami žijeme. A kdybychom uměli rukama, 100 % máme i stavební firmu. Jenže my místo cihel skládáme paragrafy – rychle, chytře a s přesahem do obchodu."}),(0,y.jsxs)("div",{className:"flex items-center space-x-2 text-sm mb-4",children:[(0,y.jsx)(Ey,{className:"w-4 h-4 flex-shrink-0",style:{color:"#8B9165"}}),(0,y.jsx)("a",{href:"https://www.bricks.legal",target:"_blank",rel:"noopener noreferrer",className:"hover:underline hover:text-[#D4B294]",children:"www.bricks.legal"})]})]})]}),(0,y.jsx)("div",{className:"mb-8 text-center",children:(0,y.jsx)("p",{className:"leading-relaxed text-10px text-xs mx-auto max-w-4xl opacity-60",children:"Tento výpočet je pouze orientační model a nepředstavuje závaznou nabídku ani investiční či daňové poradenství. Informace a výpočty na tomto webu mohou být pro účely modelace zjednodušeny a nemusí být vyčerpávající. Dosažení prezentovaných výnosů, daňových úspor a zhodnocení není zaručeno a závisí na budoucím vývoji trhu a legislativy. Pro uplatnění nároku na odpočet DPH je nezbytné splnění specifických zákonných podmínek, které nejsou na těchto stránkách detailně uvedeny. Konkrétní daňové dopady vždy závazně konzultujte se svým daňovým poradcem."})}),(0,y.jsx)("div",{className:"border-t border-[#F2F4E8]/20 pt-6",children:(0,y.jsxs)("p",{className:"text-sm text-center opacity-75",children:["© 2025 – Spojte se mnou na LinkedIn – ",(0,y.jsx)("a",{href:"https://www.linkedin.com/in/jirihelan/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Jiří Helán"})," "]})})]})})]})}t.s(["CalculatorPage",()=>EJ],65266)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.