File: //proc/self/root/opt/netdata/netdata-web-files/v3/1483.1d32dc1e215c1d33469b.chunk.js
/*! For license information please see 1483.1d32dc1e215c1d33469b.chunk.js.LICENSE.txt */
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"ed2e29ce6294899858f5bc6cd6072923146ca0ff"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7da323e0-f550-4881-9d12-edccfe286890",t._sentryDebugIdIdentifier="sentry-dbid-7da323e0-f550-4881-9d12-edccfe286890")}catch(t){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1483],{42561(t,e){"use strict";e.A=void 0;e.A=function(t){var e=[];for(t=t.parentNode;t;)e.push(t),t=t.parentNode;return e}},43119(t,e,n){"use strict";e.A=void 0;var r=n(96540);e.A=function(t){return(0,r.useEffect)((function(){if(t){var e=function(e){27===e.keyCode&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[t])}},24716(t,e,n){"use strict";function r(t){return r="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},r(t)}n.d(e,{Ay:()=>q});var i=n(69861);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=n(7587),l=function(){return"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:this}();function u(){l.console&&"function"==typeof l.console.log&&l.console.log.apply(l.console,arguments)}var c={log:u,warn:function(t){l.console&&("function"==typeof l.console.warn?l.console.warn.apply(l.console,arguments):u.call(null,arguments))},error:function(t){l.console&&("function"==typeof l.console.error?l.console.error.apply(l.console,arguments):u(t))}};function h(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){p(r.response,e,n)},r.onerror=function(){c.error("could not download file")},r.send()}function d(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function f(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var p=l.saveAs||("object"!==("undefined"==typeof window?"undefined":r(window))||window!==l?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=l.URL||l.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?d(i.href)?h(t,e,n):f(i,i.target="_blank"):f(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){f(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(d(t))h(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){f(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==r(e)&&(c.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.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}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return h(t,e,n);var o="application/octet-stream"===t.type,a=/constructor/i.test(l.HTMLElement)||l.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a)&&"object"===("undefined"==typeof FileReader?"undefined":r(FileReader))){var u=new FileReader;u.onloadend=function(){var t=u.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var c=l.URL||l.webkitURL,d=c.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){c.revokeObjectURL(d)}),4e4)}});function g(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:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(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)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(t);a&&(e=o(a),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),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}var m=l.atob.bind(l),b=l.btoa.bind(l);function v(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=w(n,r,i,o,e[0],7,-680876936),o=w(o,n,r,i,e[1],12,-389564586),i=w(i,o,n,r,e[2],17,606105819),r=w(r,i,o,n,e[3],22,-1044525330),n=w(n,r,i,o,e[4],7,-176418897),o=w(o,n,r,i,e[5],12,1200080426),i=w(i,o,n,r,e[6],17,-1473231341),r=w(r,i,o,n,e[7],22,-45705983),n=w(n,r,i,o,e[8],7,1770035416),o=w(o,n,r,i,e[9],12,-1958414417),i=w(i,o,n,r,e[10],17,-42063),r=w(r,i,o,n,e[11],22,-1990404162),n=w(n,r,i,o,e[12],7,1804603682),o=w(o,n,r,i,e[13],12,-40341101),i=w(i,o,n,r,e[14],17,-1502002290),n=D(n,r=w(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=D(o,n,r,i,e[6],9,-1069501632),i=D(i,o,n,r,e[11],14,643717713),r=D(r,i,o,n,e[0],20,-373897302),n=D(n,r,i,o,e[5],5,-701558691),o=D(o,n,r,i,e[10],9,38016083),i=D(i,o,n,r,e[15],14,-660478335),r=D(r,i,o,n,e[4],20,-405537848),n=D(n,r,i,o,e[9],5,568446438),o=D(o,n,r,i,e[14],9,-1019803690),i=D(i,o,n,r,e[3],14,-187363961),r=D(r,i,o,n,e[8],20,1163531501),n=D(n,r,i,o,e[13],5,-1444681467),o=D(o,n,r,i,e[2],9,-51403784),i=D(i,o,n,r,e[7],14,1735328473),n=x(n,r=D(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=x(o,n,r,i,e[8],11,-2022574463),i=x(i,o,n,r,e[11],16,1839030562),r=x(r,i,o,n,e[14],23,-35309556),n=x(n,r,i,o,e[1],4,-1530992060),o=x(o,n,r,i,e[4],11,1272893353),i=x(i,o,n,r,e[7],16,-155497632),r=x(r,i,o,n,e[10],23,-1094730640),n=x(n,r,i,o,e[13],4,681279174),o=x(o,n,r,i,e[0],11,-358537222),i=x(i,o,n,r,e[3],16,-722521979),r=x(r,i,o,n,e[6],23,76029189),n=x(n,r,i,o,e[9],4,-640364487),o=x(o,n,r,i,e[12],11,-421815835),i=x(i,o,n,r,e[15],16,530742520),n=_(n,r=x(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=_(o,n,r,i,e[7],10,1126891415),i=_(i,o,n,r,e[14],15,-1416354905),r=_(r,i,o,n,e[5],21,-57434055),n=_(n,r,i,o,e[12],6,1700485571),o=_(o,n,r,i,e[3],10,-1894986606),i=_(i,o,n,r,e[10],15,-1051523),r=_(r,i,o,n,e[1],21,-2054922799),n=_(n,r,i,o,e[8],6,1873313359),o=_(o,n,r,i,e[15],10,-30611744),i=_(i,o,n,r,e[6],15,-1560198380),r=_(r,i,o,n,e[13],21,1309151649),n=_(n,r,i,o,e[4],6,-145523070),o=_(o,n,r,i,e[11],10,-1120210379),i=_(i,o,n,r,e[2],15,718787259),r=_(r,i,o,n,e[9],21,-343485551),t[0]=N(n,t[0]),t[1]=N(r,t[1]),t[2]=N(i,t[2]),t[3]=N(o,t[3])}function y(t,e,n,r,i,o){return e=N(N(e,t),N(r,o)),N(e<<i|e>>>32-i,n)}function w(t,e,n,r,i,o,a){return y(e&n|~e&r,t,e,i,o,a)}function D(t,e,n,r,i,o,a){return y(e&r|n&~r,t,e,i,o,a)}function x(t,e,n,r,i,o,a){return y(e^n^r,t,e,i,o,a)}function _(t,e,n,r,i,o,a){return y(n^(e|~r),t,e,i,o,a)}function k(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)v(r,S(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(v(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,v(r,i),r}function S(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}var C="0123456789abcdef".split("");function F(t){for(var e="",n=0;n<4;n++)e+=C[t>>8*n+4&15]+C[t>>8*n&15];return e}function A(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function E(t){return k(t).map(A).join("")}var L="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=F(t[e]);return t.join("")}(k("hello"));function N(t,e){if(L){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function P(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length|0),new Array(o+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+a.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=t,r=s}else s=r;var h=e.length,d=0,f=0,p="";for(l=0;l<h;l++)f=(f+(c=s[d=(d+1)%256]))%256,s[d]=s[f],s[f]=c,a=s[(s[d]+s[f])%256],p+=String.fromCharCode(e.charCodeAt(l)^a);return p}var M={print:4,modify:8,copy:16,"annot-forms":32};function O(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==M.perm)throw new Error("Invalid permission: "+t);i+=M[t]})),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=E(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function I(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);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[r]}return e}function T(t){if("object"!==r(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var a=e[n][o];try{a[0].apply(t,r)}catch(f){l.console&&c.error("jsPDF PubSub Error",f.message,f)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function R(t){if(!(this instanceof R))return new R(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function j(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function B(t,e,n,r,i){if(!(this instanceof B))return new B(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,j.call(this,r,i)}function z(t,e,n,r,i){if(!(this instanceof z))return new z(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,j.call(this,r,i)}function q(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],a=arguments[3],s=[],u=1,h=16,d="S",f=null;"object"===r(t=t||{})&&(n=t.orientation,i=t.unit||i,o=t.format||o,a=t.compress||t.compressPdf||a,null!==(f=t.encryption||null)&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),u="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(h=t.floatPrecision),d=t.defaultPathOperation||"S"),s=t.filters||(!0===a?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,v={},y={internal:{},__private__:{}};y.__private__.PubSub=T;var w="1.3",D=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var x={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]};y.__private__.getPageFormats=function(){return x};var _=y.__private__.getPageFormat=function(t){return x[t]};o=o||"a4";var k="compat",S="advanced",C=k;function F(){this.saveGraphicsState(),ct(new Ut(St,0,0,-St,0,Cn()*St).toString()+" cm"),this.setFontSize(this.getFontSize()/St),d="n",C=S}function A(){this.restoreGraphicsState(),d="S",C=k}var E=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new 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};y.advancedAPI=function(t){var e=C===k;return e&&F.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},y.compatAPI=function(t){var e=C===S;return e&&A.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},y.isAdvancedAPI=function(){return C===S};var L,N=function(t){if(C!==S)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=y.roundToPrecision=y.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};L=y.hpf=y.__private__.hpf="number"==typeof h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,h)}:"smart"===h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,16)};var M=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return P(t,2)},j=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return P(t,3)},W=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return C===k?t*St:C===S?t:void 0},H=function(t){return W(function(t){return C===k?Cn()-t:C===S?t:void 0}(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var U,Y="00000000000000000000000000000000",V=y.__private__.getFileId=function(){return Y},$=y.__private__.setFileId=function(t){return Y=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():Y.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==f&&(Ne=new O(f.userPermissions,f.userPassword,f.ownerPassword,Y)),Y};y.setFileId=function(t){return $(t),this},y.getFileId=function(){return V()};var G=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,Z(r),"'",Z(i),"'"].join("");return["D:",t.getFullYear(),Z(t.getMonth()+1),Z(t.getDate()),Z(t.getHours()),Z(t.getMinutes()),Z(t.getSeconds()),o].join("")},K=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},J=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=G(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 new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return U=e},X=y.__private__.getCreationDate=function(t){var e=U;return"jsDate"===t&&(e=K(U)),e};y.setCreationDate=function(t){return J(t),this},y.getCreationDate=function(t){return X(t)};var Q,Z=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,nt=[],rt=[],it=0,ot=[],at=[],st=!1,lt=rt;y.__private__.setCustomOutputDestination=function(t){st=!0,lt=t};var ut=function(t){st||(lt=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,lt=rt};var ct=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,lt.push(t),lt},ht=y.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},ft=[["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]];y.__private__.getStandardFonts=function(){return ft};var pt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return pt=C===S?t/St:t,this};var gt,mt=y.__private__.getFontSize=y.getFontSize=function(){return C===k?pt:pt*St},bt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return bt=t,this},y.__private__.getR2L=y.getR2L=function(){return bt};var vt,yt=y.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))gt=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');gt=t}else gt=parseInt(t,10)};y.__private__.getZoomMode=function(){return gt};var wt,Dt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');vt=t};y.__private__.getPageMode=function(){return vt};var xt=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');wt=t};y.__private__.getLayoutMode=function(){return wt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,n){return yt(t),xt(e),Dt(n),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(_t).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[t]},y.__private__.getDocumentProperties=function(){return _t},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in _t)_t.hasOwnProperty(e)&&t[e]&&(_t[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(_t).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[t]=e};var kt,St,Ct,Ft,At,Et={},Lt={},Nt=[],Pt={},Mt={},Ot={},It={},Tt=null,Rt=0,jt=[],Bt=new T(y),zt=t.hotfixes||[],qt={},Wt={},Ht=[],Ut=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(Ut.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ut.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ut.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ut.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ut.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(L).join(t)},Ut.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ut(e,n,r,i,o,a)},Ut.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,a=-a),{scale:new Ut(a,0,0,l,0,0),translate:new Ut(1,0,0,1,i,o),rotate:new Ut(t,e,-e,t,0,0),skew:new Ut(1,0,s,1,0,0)}},Ut.prototype.toString=function(t){return this.join(" ")},Ut.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=1/(t*r-e*n),s=r*a,l=-e*a,u=-n*a,c=t*a;return new Ut(s,l,u,c,-s*i-u*o,-l*i-c*o)},Ut.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new gn(e,n)},Ut.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new gn(t.x+t.w,t.y+t.h));return new mn(e.x,e.y,n.x-e.x,n.y-e.y)},Ut.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new Ut(t,e,n,r,i,o)},y.Matrix=Ut;var Yt=y.matrixMult=function(t,e){return e.multiply(t)},Vt=new Ut(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Vt;var $t=function(t,e){if(!Mt[t]){var n=(e instanceof B?"Sh":"P")+(Object.keys(Pt).length+1).toString(10);e.id=n,Mt[t]=n,Pt[n]=e,Bt.publish("addPattern",e)}};y.ShadingPattern=B,y.TilingPattern=z,y.addShadingPattern=function(t,e){return N("addShadingPattern()"),$t(t,e),this},y.beginTilingPattern=function(t){N("beginTilingPattern()"),vn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){N("endTilingPattern()"),e.stream=at[Q].join("\n"),$t(t,e),Bt.publish("endTilingPattern",e),Ht.pop().restore()};var Gt,Kt=y.__private__.newObject=function(){var t=Jt();return Xt(t,!0),t},Jt=y.__private__.newObjectDeferred=function(){return et++,nt[et]=function(){return it},et},Xt=function(t,e){return e="boolean"==typeof e&&e,nt[t]=it,e&&ct(t+" 0 obj"),t},Qt=y.__private__.newAdditionalObject=function(){var t={objId:Jt(),content:""};return ot.push(t),t},Zt=Jt(),te=Jt(),ee=y.__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 n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=y.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,o=t.ch3,a=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new g(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,o=255&u}if(void 0===i||void 0===a&&n===i&&i===o)e="string"==typeof n?n+" "+s[0]:2===t.precision?M(n/255)+" "+s[0]:j(n/255)+" "+s[0];else if(void 0===a||"object"===r(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,i,o,s[1]].join(" "):2===t.precision?[M(n/255),M(i/255),M(o/255),s[1]].join(" "):[j(n/255),j(i/255),j(o/255),s[1]].join(" ")}else e="string"==typeof n?[n,i,o,a,s[2]].join(" "):2===t.precision?[M(n),M(i),M(o),M(a),s[2]].join(" "):[j(n),j(i),j(o),j(a),s[2]].join(" ");return e},re=y.__private__.getFilters=function(){return s},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==f&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==f&&(s=Ne.encryptor(a,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(l=void 0!==q.API.processDataByFilters?q.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var h=0;h<u.length;h+=1)if("DecodeParms"===u[h].key){for(var d=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)d.push("null");d.push(u[h].value),u[h].value="["+d.join(" ")+"]"}}ct("<<");for(var g=0;g<u.length;g++)ct("/"+u[g].key+" "+u[g].value);ct(">>"),0!==l.data.length&&(ct("stream"),ct(s(l.data)),ct("endstream"))},oe=y.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Xt(r,!0),ct("<</Type /Page"),ct("/Parent "+t.rootDictionaryObjId+" 0 R"),ct("/Resources "+t.resourceDictionaryObjId+" 0 R"),ct("/MediaBox ["+parseFloat(L(t.mediaBox.bottomLeftX))+" "+parseFloat(L(t.mediaBox.bottomLeftY))+" "+L(t.mediaBox.topRightX)+" "+L(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ct("/CropBox ["+L(t.cropBox.bottomLeftX)+" "+L(t.cropBox.bottomLeftY)+" "+L(t.cropBox.topRightX)+" "+L(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ct("/BleedBox ["+L(t.bleedBox.bottomLeftX)+" "+L(t.bleedBox.bottomLeftY)+" "+L(t.bleedBox.topRightX)+" "+L(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ct("/TrimBox ["+L(t.trimBox.bottomLeftX)+" "+L(t.trimBox.bottomLeftY)+" "+L(t.trimBox.topRightX)+" "+L(t.trimBox.topRightY)+"]"),null!==t.artBox&&ct("/ArtBox ["+L(t.artBox.bottomLeftX)+" "+L(t.artBox.bottomLeftY)+" "+L(t.artBox.topRightX)+" "+L(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ct("/UserUnit "+t.userUnit),Bt.publish("putPage",{objId:r,pageContext:jt[e],pageNumber:e,page:n}),ct("/Contents "+i+" 0 R"),ct(">>"),ct("endobj");var o=n.join("\n");return C===S&&(o+="\nQ"),Xt(i,!0),ie({data:o,filters:re(),objectId:i}),ct("endobj"),r},ae=y.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Rt;t++)jt[t].objId=Jt(),jt[t].contentsObjId=Jt();for(t=1;t<=Rt;t++)n.push(oe({number:t,data:at[t],objId:jt[t].objId,contentsObjId:jt[t].contentsObjId,mediaBox:jt[t].mediaBox,cropBox:jt[t].cropBox,bleedBox:jt[t].bleedBox,trimBox:jt[t].trimBox,artBox:jt[t].artBox,userUnit:jt[t].userUnit,rootDictionaryObjId:Zt,resourceDictionaryObjId:te}));Xt(Zt,!0),ct("<</Type /Pages");var r="/Kids [";for(e=0;e<Rt;e++)r+=n[e]+" 0 R ";ct(r+"]"),ct("/Count "+Rt),ct(">>"),ct("endobj"),Bt.publish("postPutPages")},se=function(t){Bt.publish("putFont",{font:t,out:ct,newObject:Kt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Kt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+I(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},le=function(t){t.objectNumber=Kt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[L(t.x),L(t.y),L(t.x+t.width),L(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},ue=function(t,e){e||(e=21);var n=Kt(),r=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",l=0,u=0;u<r.length;u++){for(n=r[u];n>t[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),d=t[l].color,f=t[l+1].color;s+=tt(Math.round((1-h)*d[0]+h*f[0]).toString(16))+tt(Math.round((1-h)*d[1]+h*f[1]).toString(16))+tt(Math.round((1-h)*d[2]+h*f[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.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]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),ct("endobj"),t.objectNumber=Kt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var o="/Coords ["+L(parseFloat(t.coords[0]))+" "+L(parseFloat(t.coords[1]))+" ";2===t.type?o+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3])):o+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3]))+" "+L(parseFloat(t.coords[4]))+" "+L(parseFloat(t.coords[5])),ct(o+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+n+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},ce=function(t,e){var n=Jt(),r=Kt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;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(L).join(" ")+"]"}),i.push({key:"XStep",value:L(t.xStep)}),i.push({key:"YStep",value:L(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ct("endobj")},he=function(t){for(var e in t.objectNumber=Kt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+M(t[e]));break;case"stroke-opacity":ct("/CA "+M(t[e]))}ct(">>"),ct("endobj")},de=function(t){Xt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in ct("/Font <<"),Et)Et.hasOwnProperty(t)&&(!1===m||!0===m&&v.hasOwnProperty(t))&&ct("/"+t+" "+Et[t].objectNumber+" 0 R");ct(">>")}(),function(){if(Object.keys(Pt).length>0){for(var t in ct("/Shading <<"),Pt)Pt.hasOwnProperty(t)&&Pt[t]instanceof B&&Pt[t].objectNumber>=0&&ct("/"+t+" "+Pt[t].objectNumber+" 0 R");Bt.publish("putShadingPatternDict"),ct(">>")}}(),function(t){if(Object.keys(Pt).length>0){for(var e in ct("/Pattern <<"),Pt)Pt.hasOwnProperty(e)&&Pt[e]instanceof y.TilingPattern&&Pt[e].objectNumber>=0&&Pt[e].objectNumber<t&&ct("/"+e+" "+Pt[e].objectNumber+" 0 R");Bt.publish("putTilingPatternDict"),ct(">>")}}(t.objectOid),function(){if(Object.keys(Ot).length>0){var t;for(t in ct("/ExtGState <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t].objectNumber>=0&&ct("/"+t+" "+Ot[t].objectNumber+" 0 R");Bt.publish("putGStateDict"),ct(">>")}}(),function(){for(var t in ct("/XObject <<"),qt)qt.hasOwnProperty(t)&&qt[t].objectNumber>=0&&ct("/"+t+" "+qt[t].objectNumber+" 0 R");Bt.publish("putXobjectDict"),ct(">>")}(),ct(">>"),ct("endobj")},fe=function(t){Lt[t.fontName]=Lt[t.fontName]||{},Lt[t.fontName][t.fontStyle]=t.id},pe=function(t,e,n,r,i){var o={id:"F"+(Object.keys(Et).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Bt.publish("addFont",{font:o,instance:this}),Et[o.id]=o,fe(o),o.id},ge=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,l,u,c;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&Et[kt].metadata&&Et[kt].metadata[i]&&Et[kt].metadata[i].encoding&&(o=Et[kt].metadata[i].encoding,!a&&Et[kt].encoding&&(a=Et[kt].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(u=a[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((c=(u=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},me=y.__private__.beginPage=function(t){at[++Rt]=[],jt[Rt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},ye(Rt),ut(at[Q])},be=function(t,e){var r,i,a;switch(n=e||n,"string"==typeof t&&(r=_(t.toLowerCase()),Array.isArray(r)&&(i=r[0],a=r[1])),Array.isArray(t)&&(i=t[0]*St,a=t[1]*St),isNaN(i)&&(i=o[0],a=o[1]),(i>14400||a>14400)&&(c.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),a=Math.min(14400,a)),o=[i,a],n.substr(0,1)){case"l":a>i&&(o=[a,i]);break;case"p":i>a&&(o=[a,i])}me(o),Xe(Ke),ct(an),0!==dn&&ct(dn+" J"),0!==fn&&ct(fn+" j"),Bt.publish("addPage",{pageNumber:Rt})},ve=function(t){t>0&&t<=Rt&&(at.splice(t,1),jt.splice(t,1),Rt--,Q>Rt&&(Q=Rt),this.setPage(Q))},ye=function(t){t>0&&t<=Rt&&(Q=t)},we=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return at.length-1},De=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Et[kt].fontName,e=void 0!==e?e:Et[kt].fontStyle,r=t.toLowerCase(),void 0!==Lt[r]&&void 0!==Lt[r][e]?i=Lt[r][e]:void 0!==Lt[t]&&void 0!==Lt[t][e]?i=Lt[t][e]:!1===n.disableWarning&&c.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Lt.times[e])&&(i=Lt.times.normal),i},xe=y.__private__.putInfo=function(){var t=Kt(),e=function(t){return t};for(var n in null!==f&&(e=Ne.encryptor(t,0)),ct("<<"),ct("/Producer ("+ge(e("jsPDF "+q.version))+")"),_t)_t.hasOwnProperty(n)&&_t[n]&&ct("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ge(e(_t[n]))+")");ct("/CreationDate ("+ge(e(U))+")"),ct(">>"),ct("endobj")},_e=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Zt;switch(Kt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),gt||(gt="fullwidth"),gt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+gt;"%"===n.substr(n.length-1)&&(gt=parseInt(gt)/100),"number"==typeof gt&&ct("/OpenAction [3 0 R /XYZ null null "+M(gt)+"]")}switch(wt||(wt="continuous"),wt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}vt&&ct("/PageMode /"+vt),Bt.publish("putCatalog"),ct(">>"),ct("endobj")},ke=y.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+(et+1)),ct("/Root "+et+" 0 R"),ct("/Info "+(et-1)+" 0 R"),null!==f&&ct("/Encrypt "+Ne.oid+" 0 R"),ct("/ID [ <"+Y+"> <"+Y+"> ]"),ct(">>")},Se=y.__private__.putHeader=function(){ct("%PDF-"+w),ct("%\xba\xdf\xac\xe0")},Ce=y.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+(et+1)),ct("0000000000 65535 f ");for(var e=1;e<=et;e++)"function"==typeof nt[e]?ct((t+nt[e]()).slice(-10)+" 00000 n "):void 0!==nt[e]?ct((t+nt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},Fe=y.__private__.buildDocument=function(){var t;et=0,it=0,rt=[],nt=[],ot=[],Zt=Jt(),te=Jt(),ut(rt),Bt.publish("buildDocument"),Se(),ae(),function(){Bt.publish("putAdditionalObjects");for(var t=0;t<ot.length;t++){var e=ot[t];Xt(e.objId,!0),ct(e.content),ct("endobj")}Bt.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in Et)Et.hasOwnProperty(t)&&(!1===m||!0===m&&v.hasOwnProperty(t))&&se(Et[t])}(),function(){var t;for(t in Ot)Ot.hasOwnProperty(t)&&he(Ot[t])}(),function(){for(var t in qt)qt.hasOwnProperty(t)&&le(qt[t])}(),function(t){var e;for(e in Pt)Pt.hasOwnProperty(e)&&(Pt[e]instanceof B?ue(Pt[e]):Pt[e]instanceof z&&ce(Pt[e],t))}(t),Bt.publish("putResources"),t.forEach(de),de({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Bt.publish("postPutResources"),null!==f&&(Ne.oid=Kt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+Ne.v),ct("/R "+Ne.r),ct("/U <"+Ne.toHexString(Ne.U)+">"),ct("/O <"+Ne.toHexString(Ne.O)+">"),ct("/P "+Ne.P),ct(">>"),ct("endobj")),xe(),_e();var e=it;return Ce(),ke(),ct("startxref"),ct(""+e),ct("%%EOF"),ut(at[Q]),rt.join("\n")},Ae=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ee=y.output=y.__private__.output=(Gt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Fe();case"save":y.save(e.filename);break;case"arraybuffer":return dt(Fe());case"blob":return Ae(Fe());case"bloburi":case"bloburl":if(void 0!==l.URL&&"function"==typeof l.URL.createObjectURL)return l.URL&&l.URL.createObjectURL(Ae(Fe()))||void 0;c.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Fe();try{n=b(r)}catch(f){n=b(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(l)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,o="");var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+i+'"'+o+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=l.open();return null!==s&&s.document.write(a),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(l)){var u='<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>',h=l.open();if(null!==h){h.document.write(u);var d=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=e.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(d.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(l))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<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>',g=l.open();if(null!==g&&(g.document.write(p),g.document.title=e.filename),g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return l.document.location.href=this.output("datauristring",e);default:return null}},Gt.foo=function(){try{return Gt.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!l.console)throw new Error(n);l.console.error(n,e),l.alert&&alert(n)}},Gt.foo.bar=Gt,Gt.foo),Le=function(t){return!0===Array.isArray(zt)&&zt.indexOf(t)>-1};switch(i){case"pt":St=1;break;case"mm":St=72/25.4;break;case"cm":St=72/2.54;break;case"in":St=72;break;case"px":St=1==Le("px_scaling")?.75:96/72;break;case"pc":case"em":St=12;break;case"ex":St=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);St=i}var Ne=null;J(),$();var Pe=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:jt[t].objId,pageNumber:t,pageContext:jt[t]}},Me=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in jt)if(jt[e].objId===t)break;return Pe(e)},Oe=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:jt[Q].objId,pageNumber:Q,pageContext:jt[Q]}};y.addPage=function(){return be.apply(this,arguments),this},y.setPage=function(){return ye.apply(this,arguments),ut.call(this,at[Q]),this},y.insertPage=function(t){return this.addPage(),this.movePage(Q,t),this},y.movePage=function(t,e){var n,r;if(t>e){n=at[t],r=jt[t];for(var i=t;i>e;i--)at[i]=at[i-1],jt[i]=jt[i-1];at[e]=n,jt[e]=r,this.setPage(e)}else if(t<e){n=at[t],r=jt[t];for(var o=t;o<e;o++)at[o]=at[o+1],jt[o]=jt[o+1];at[e]=n,jt[e]=r,this.setPage(e)}return this},y.deletePage=function(){return ve.apply(this,arguments),this},y.__private__.text=y.text=function(t,e,n,i,o){var a,s,l,u,c,h,d,f,p,g=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var m=n;n=e,e=t,t=m}if(arguments[3]instanceof Ut==0?(l=arguments[4],u=arguments[5],"object"===r(d=arguments[3])&&null!==d||("string"==typeof l&&(u=l,l=null),"string"==typeof d&&(u=d,d=null),"number"==typeof d&&(l=d,d=null),i={flags:d,angle:l,align:u})):(N("The transform parameter of text() with a Matrix value"),p=o),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return g;var b,y="",w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ge,D=g.internal.scaleFactor;function x(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),ge(t,d)}function _(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function k(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var F=!1,A=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var E=t.concat();s=[];for(var P,M=E.length;M--;)("string"!=typeof(P=E.shift())||Array.isArray(P)&&"string"!=typeof P[0])&&(A=!1);F=A}if(!1===F)throw new 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 O=pt/g.internal.scaleFactor,I=O*(w-1);switch(i.baseline){case"bottom":n-=I;break;case"top":n+=O-I;break;case"hanging":n+=O-2*I;break;case"middle":n+=O/2-I}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=g.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,h))}),[]))),a={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ge,activeFontKey:kt,fonts:Et,activeFontSize:pt}},Bt.publish("preProcessText",a),t=a.text,l=(i=a.options).angle,p instanceof Ut==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),C===S&&(l=-l);var T=Math.cos(l),R=Math.sin(l);p=new Ut(T,R,-R,T,0,0)}else l&&l instanceof Ut&&(p=l);C!==S||p||(p=Vt),void 0!==(c=i.charSpace||cn)&&(y+=L(W(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(f=i.horizontalScale)&&(y+=L(100*f)+" Tz\n"),i.lang;var j=-1,B=void 0!==i.renderingMode?i.renderingMode:i.stroke,z=g.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var q=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==j?y+=j+" Tr\n":-1!==q&&(y+="0 Tr\n"),-1!==j&&(z.usedRenderingMode=j),u=i.align||"left";var H,U=pt*w,Y=g.internal.pageSize.getWidth(),V=Et[kt];c=i.charSpace||cn,h=i.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},i.flags);var $=[],G=function(t){return g.getStringUnitWidth(t,{font:V,charSpace:c,fontSize:pt,doKerning:!1})*pt/D};if("[object Array]"===Object.prototype.toString.call(t)){var K;s=_(t),"left"!==u&&(H=s.map(G));var J,X=0;if("right"===u){e-=H[0],t=[],M=s.length;for(var Q=0;Q<M;Q++)0===Q?(J=en(e),K=nn(n)):(J=W(X-H[Q]),K=-U),t.push([s[Q],J,K]),X=H[Q]}else if("center"===u){e-=H[0]/2,t=[],M=s.length;for(var Z=0;Z<M;Z++)0===Z?(J=en(e),K=nn(n)):(J=W((X-H[Z])/2),K=-U),t.push([s[Z],J,K]),X=H[Z]}else if("left"===u){t=[],M=s.length;for(var tt=0;tt<M;tt++)t.push(s[tt])}else if("justify"===u&&"Identity-H"===V.encoding){t=[],M=s.length,h=0!==h?h:Y;for(var et=0,nt=0;nt<M;nt++)if(K=0===nt?nn(n):-U,J=0===nt?en(e):et,nt<M-1){var rt=W((h-H[nt])/(s[nt].split(" ").length-1)),it=s[nt].split(" ");t.push([it[0]+" ",J,K]),et=0;for(var ot=1;ot<it.length;ot++){var at=(G(it[ot-1]+" "+it[ot])-G(it[ot]))*D+rt;ot==it.length-1?t.push([it[ot],at,0]):t.push([it[ot]+" ",at,0]),et-=at}}else t.push([s[nt],J,K]);t.push(["",et,0])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],M=s.length,h=0!==h?h:Y,nt=0;nt<M;nt++){K=0===nt?nn(n):-U,J=0===nt?en(e):0;var st=s[nt].split(" ").length-1,lt=st>0?(h-H[nt])/st:0;nt<M-1?$.push(L(W(lt))):$.push(0),t.push([s[nt],J,K])}}}!0===("boolean"==typeof i.R2L?i.R2L:bt)&&(t=k(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),a={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ge,activeFontKey:kt,fonts:Et,activeFontSize:pt}},Bt.publish("postProcessText",a),t=a.text,b=a.mutex.isHex||!1;var ut=Et[kt].encoding;"WinAnsiEncoding"!==ut&&"StandardEncoding"!==ut||(t=k(t,(function(t,e,n){return[x(t),e,n]}))),s=_(t),t=[];for(var ht,dt,ft,gt=Array.isArray(s[0])?1:0,mt="",vt=function(t,e,n){var r="";return n instanceof Ut?(n="number"==typeof i.angle?Yt(n,new Ut(1,0,0,1,t,e)):Yt(new Ut(1,0,0,1,t,e),n),C===S&&(n=Yt(new Ut(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=L(t)+" "+L(e)+" Td\n",r},yt=0;yt<s.length;yt++){switch(mt="",gt){case 1:ft=(b?"<":"(")+s[yt][0]+(b?">":")"),ht=parseFloat(s[yt][1]),dt=parseFloat(s[yt][2]);break;case 0:ft=(b?"<":"(")+s[yt]+(b?">":")"),ht=en(e),dt=nn(n)}void 0!==$&&void 0!==$[yt]&&(mt=$[yt]+" Tw\n"),0===yt?t.push(mt+vt(ht,dt,p)+ft):0===gt?t.push(mt+ft):1===gt&&t.push(mt+vt(ht,dt,p)+ft)}t=0===gt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var wt="BT\n/";return wt+=kt+" "+pt+" Tf\n",wt+=L(pt*w)+" TL\n",wt+=ln+"\n",wt+=y,wt+=t,ct(wt+="ET"),v[kt]=!0,g};var Ie=y.__private__.clip=y.clip=function(t){return ct("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return Ie("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ct("n"),this};var Te=y.__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};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return Te(t)&&(d=t),this};var Re=y.__private__.getStyle=y.getStyle=function(t){var e=d;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},je=y.close=function(){return ct("h"),this};y.stroke=function(){return ct("S"),this},y.fill=function(t){return Be("f",t),this},y.fillEvenOdd=function(t){return Be("f*",t),this},y.fillStroke=function(t){return Be("B",t),this},y.fillStrokeEvenOdd=function(t){return Be("B*",t),this};var Be=function(t,e){"object"===r(e)?We(e,t):ct(t)},ze=function(t){null===t||C===S&&void 0===t||(t=Re(t),ct(t))};function qe(t,e,n,r,i){var o=new z(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return $t(a,o),o}var We=function(t,e){var n=Mt[t.key],r=Pt[n];if(r instanceof B)ct("q"),ct(He(e)),r.gState&&y.setGState(r.gState),ct(t.matrix.toString()+" cm"),ct("/"+n+" sh"),ct("Q");else if(r instanceof z){var i=new Ut(1,0,0,-1,0,Cn());t.matrix&&(i=i.multiply(t.matrix||Vt),n=qe.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ct("q"),ct("/Pattern cs"),ct("/"+n+" scn"),r.gState&&y.setGState(r.gState),ct(e),ct("Q")}},He=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"}},Ue=y.moveTo=function(t,e){return ct(L(W(t))+" "+L(H(e))+" m"),this},Ye=y.lineTo=function(t,e){return ct(L(W(t))+" "+L(H(e))+" l"),this},Ve=y.curveTo=function(t,e,n,r,i,o){return ct([L(W(t)),L(H(e)),L(W(n)),L(H(r)),L(W(i)),L(H(o)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Te(i))throw new Error("Invalid arguments passed to jsPDF.line");return C===k?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,n,r,i,o){var a,s,l,u,c,h,d,f,p,g,m,b;if("number"==typeof t&&(b=n,n=e,e=t,t=b),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Te(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ue(e,n),a=r[0],s=r[1],u=t.length,g=e,m=n,l=0;l<u;l++)2===(c=t[l]).length?(g=c[0]*a+g,m=c[1]*s+m,Ye(g,m)):(h=c[0]*a+g,d=c[1]*s+m,f=c[2]*a+g,p=c[3]*s+m,g=c[4]*a+g,m=c[5]*s+m,Ve(h,d,f,p,g,m));return o&&je(),ze(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":Ue(r[0],r[1]);break;case"l":Ye(r[0],r[1]);break;case"c":Ve.apply(this,r);break;case"h":je()}}return this},y.__private__.rect=y.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Te(i))throw new Error("Invalid arguments passed to jsPDF.rect");return C===k&&(r=-r),ct([L(W(t)),L(H(e)),L(W(n)),L(W(r)),"re"].join(" ")),ze(i),this},y.__private__.triangle=y.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Te(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Te(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Te(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return Ue(t+n,e),Ve(t+n,e-a,t+o,e-r,t,e-r),Ve(t-o,e-r,t-n,e-a,t-n,e),Ve(t-n,e+a,t-o,e+r,t,e+r),Ve(t+o,e+r,t+n,e+a,t+n,e),ze(i),this},y.__private__.circle=y.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Te(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},y.setFont=function(t,e,n){return n&&(e=E(e,n)),kt=De(t,e,{disableWarning:!1}),this};var $e=y.__private__.getFont=y.getFont=function(){return Et[De.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,n={};for(t in Lt)if(Lt.hasOwnProperty(t))for(e in n[t]=[],Lt[t])Lt[t].hasOwnProperty(e)&&n[t].push(e);return n},y.addFont=function(t,e,n,r,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(n=E(n,r)),pe.call(this,t,e,n,i=i||"Identity-H")};var Ge,Ke=t.lineWidth||.200025,Je=y.__private__.getLineWidth=y.getLineWidth=function(){return Ke},Xe=y.__private__.setLineWidth=y.setLineWidth=function(t){return Ke=t,ct(L(W(t))+" w"),this};y.__private__.setLineDash=q.API.setLineDash=q.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return L(W(t))})).join(" "),e=L(W(e)),ct("["+t+"] "+e+" d"),this};var Qe=y.__private__.getLineHeight=y.getLineHeight=function(){return pt*Ge};y.__private__.getLineHeight=y.getLineHeight=function(){return pt*Ge};var Ze=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Ge=t),this},tn=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return Ge};Ze(t.lineHeight);var en=y.__private__.getHorizontalCoordinate=function(t){return W(t)},nn=y.__private__.getVerticalCoordinate=function(t){return C===S?t:jt[Q].mediaBox.topRightY-jt[Q].mediaBox.bottomLeftY-W(t)},rn=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return L(en(t))},on=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return L(nn(t))},an=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(an)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,n,r){return an=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),ct(an),this};var sn=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(sn)},y.__private__.setFillColor=y.setFillColor=function(t,e,n,r){return sn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),ct(sn),this};var ln=t.textColor||"0 g",un=y.__private__.getTextColor=y.getTextColor=function(){return ee(ln)};y.__private__.setTextColor=y.setTextColor=function(t,e,n,r){return ln=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var cn=t.charSpace,hn=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(cn||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=t,this};var dn=0;y.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},y.__private__.setLineCap=y.setLineCap=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dn=e,ct(e+" J"),this};var fn=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fn=e,ct(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ct(L(W(t))+" M"),this},y.GState=R,y.setGState=function(t){(t="string"==typeof t?Ot[It[t]]:pn(null,t)).equals(Tt)||(ct("/"+t.id+" gs"),Tt=t)};var pn=function(t,e){if(!t||!It[t]){var n=!1;for(var r in Ot)if(Ot.hasOwnProperty(r)&&Ot[r].equals(e)){n=!0;break}if(n)e=Ot[r];else{var i="GS"+(Object.keys(Ot).length+1).toString(10);Ot[i]=e,e.id=i}return t&&(It[t]=e.id),Bt.publish("addGState",e),e}};y.addGState=function(t,e){return pn(t,e),this},y.saveGraphicsState=function(){return ct("q"),Nt.push({key:kt,size:pt,color:ln}),this},y.restoreGraphicsState=function(){ct("Q");var t=Nt.pop();return kt=t.key,pt=t.size,ln=t.color,Tt=null,this},y.setCurrentTransformationMatrix=function(t){return ct(t.toString()+" cm"),this},y.comment=function(t){return ct("#"+t),this};var gn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},mn=function(t,e,n,r){gn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},bn=function(){this.page=Rt,this.currentPage=Q,this.pages=at.slice(0),this.pagesContext=jt.slice(0),this.x=Ct,this.y=Ft,this.matrix=At,this.width=wn(Q),this.height=xn(Q),this.outputDestination=lt,this.id="",this.objectNumber=-1};bn.prototype.restore=function(){Rt=this.page,Q=this.currentPage,jt=this.pagesContext,at=this.pages,Ct=this.x,Ft=this.y,At=this.matrix,Dn(Q,this.width),_n(Q,this.height),lt=this.outputDestination};var vn=function(t,e,n,r,i){Ht.push(new bn),Rt=Q=0,at=[],Ct=t,Ft=e,At=i,me([n,r])};for(var yn in y.beginFormObject=function(t,e,n,r,i){return vn(t,e,n,r,i),this},y.endFormObject=function(t){return function(t){if(Wt[t])Ht.pop().restore();else{var e=new bn,n="Xo"+(Object.keys(qt).length+1).toString(10);e.id=n,Wt[t]=n,qt[n]=e,Bt.publish("addFormObject",e),Ht.pop().restore()}}(t),this},y.doFormObject=function(t,e){var n=qt[Wt[t]];return ct("q"),ct(e.toString()+" cm"),ct("/"+n.id+" Do"),ct("Q"),this},y.getFormObject=function(t){var e=qt[Wt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(p(Ae(Fe()),t),"function"==typeof p.unload&&l.setTimeout&&setTimeout(p.unload,911),this):new Promise((function(e,n){try{var r=p(Ae(Fe()),t);"function"==typeof p.unload&&l.setTimeout&&setTimeout(p.unload,911),e(r)}catch(i){n(i.message)}}))},q.API)q.API.hasOwnProperty(yn)&&("events"===yn&&q.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Bt,q.API.events):y[yn]=q.API[yn]);function wn(t){return jt[t].mediaBox.topRightX-jt[t].mediaBox.bottomLeftX}function Dn(t,e){jt[t].mediaBox.topRightX=e+jt[t].mediaBox.bottomLeftX}function xn(t){return jt[t].mediaBox.topRightY-jt[t].mediaBox.bottomLeftY}function _n(t,e){jt[t].mediaBox.topRightY=e+jt[t].mediaBox.bottomLeftY}var kn=y.getPageWidth=function(t){return wn(t=t||Q)/St},Sn=y.setPageWidth=function(t,e){Dn(t,e*St)},Cn=y.getPageHeight=function(t){return xn(t=t||Q)/St},Fn=y.setPageHeight=function(t,e){_n(t,e*St)};return y.internal={pdfEscape:ge,getStyle:Re,getFont:$e,getFontSize:mt,getCharSpace:hn,getTextColor:un,getLineHeight:Qe,getLineHeightFactor:tn,getLineWidth:Je,write:ht,getHorizontalCoordinate:en,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:on,collections:{},newObject:Kt,newAdditionalObject:Qt,newObjectDeferred:Jt,newObjectDeferredBegin:Xt,getFilters:re,putStream:ie,events:Bt,scaleFactor:St,pageSize:{getWidth:function(){return kn(Q)},setWidth:function(t){Sn(Q,t)},getHeight:function(){return Cn(Q)},setHeight:function(t){Fn(Q,t)}},encryptionOptions:f,encryption:Ne,getEncryptor:function(t){return null!==f?Ne.encryptor(t,0):function(t){return t}},output:Ee,getNumberOfPages:we,get pages(){return at},out:ct,f2:M,f3:j,getPageInfo:Pe,getPageInfoByObjId:Me,getCurrentPageInfo:Oe,getPDFVersion:D,Point:gn,Rectangle:mn,Matrix:Ut,hasHotfix:Le},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return kn(Q)},set:function(t){Sn(Q,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Cn(Q)},set:function(t){Fn(Q,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=ft.length;e<n;e++){var r=pe.call(this,t[e][0],t[e][1],t[e][2],ft[e][3],!0);!1===m&&(v[r]=!0);var i=t[e][0].split("-");fe({id:r,fontName:i[0],fontStyle:i[1]||""})}Bt.publish("addFonts",{fonts:Et,dictionary:Lt})}.call(y,ft),kt="F1",be(o,n),Bt.publish("initialized"),y}O.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},O.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},O.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},O.prototype.processOwnerPassword=function(t,e){return P(E(e).substr(0,5),t)},O.prototype.encryptor=function(t,e){var n=E(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return P(n,t)}},R.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||r(t)!==r(this))return!1;var i=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&i--;return 0===i},q.API={events:[]},q.version="4.2.0";var W=q.API,H=1,U=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},V=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===e.length?"0"+e:e)}))},$=function(t){return t.toFixed(2)},G=function(t){return t.toFixed(5)};W.__acroform__={};var K=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},J=function(t){return t*H},X=function(t){var e=new ft,n=Ft.internal.getHeight(t)||0,r=Ft.internal.getWidth(t)||0;return e.BBox=[0,0,Number($(r)),Number($(n))],e},Q=W.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},Z=W.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},tt=W.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},et=W.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return tt(t,e-1)},nt=W.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Q(t,e-1)},rt=W.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Z(t,e-1)},it=W.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],a=t[2],s=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+s)||0,l.upperRight_X=n(i+a)||0,l.upperRight_Y=r(o)||0,[Number($(l.lowerLeft_X)),Number($(l.lowerLeft_Y)),Number($(l.upperRight_X)),Number($(l.upperRight_Y))]},ot=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=at(t,n),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+" "+$(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=X(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},at=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={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 o=n,a=Ft.internal.getHeight(t)||0;a=a<0?-a:a;var s=Ft.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,r){if(e+1<i.length){var o=n+" "+i[e+1][0];return st(o,t,r).width<=s-4}return!1};o++;t:for(;o>0;){e="",o--;var u,c,h=st("3",t,o).height,d=t.multiline?a-o:(a-h)/2,f=d+=2,p=0,g=0,m=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+st(e,t,o=12).width+", FieldWidth:"+s+"\n";break}for(var b="",v=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((h+2)*(v+2)+2>a)continue t;b+=i[y][m],w=!0,g=y,y--}else{b=" "==(b+=i[y][m]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var D=parseInt(y),x=l(D,b,o),_=y>=i.length-1;if(x&&!_){b+=" ",m=0;continue}if(x||_){if(_)g=D;else if(t.multiline&&(h+2)*(v+2)+2>a)continue t}else{if(!t.multiline)continue t;if((h+2)*(v+2)+2>a)continue t;g=D}}for(var k="",S=p;S<=g;S++){var C=i[S];if(t.multiline){if(S===g){k+=C[m]+" ",m=(m+1)%C.length;continue}if(S===p){k+=C[C.length-1]+" ";continue}}k+=C[0]+" "}switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,c=st(k,t,o).width,t.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;default:u=2}e+=$(u)+" "+$(f)+" Td\n",e+="("+U(k)+") Tj\n",e+=-$(u)+" 0 Td\n",f=-(o+2),c=0,p=w?g:g+1,v++,b=""}break}return r.text=e,r.fontSize=o,r},st=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},lt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ut=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},ct=W.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(t){return t};if(Array.isArray(t)){for(var o="[",a=0;a<t.length;a++)switch(0!==a&&(o+=" "),r(t[a])){case"boolean":case"number":case"object":o+=t[a].toString();break;case"string":"/"===t[a].substr(0,1)?o+="/"+V(t[a].substr(1)):(void 0!==e&&n&&(i=n.internal.getEncryptor(e)),o+="("+U(i(t[a].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ht=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+U(r(t))+")"},dt=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})};dt.prototype.toString=function(){return this.objId+" 0 R"},dt.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},dt.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 n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:ct(i,this.objId,this.scope)}):i instanceof dt?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var ft=function(){dt.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}})};K(ft,dt);var pt=function(){dt.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)),"("+U(e(t))+")"}},set:function(e){t=e}})};K(pt,dt);var gt=function t(){dt.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(e,3))},set:function(t){!0===Boolean(t)?this.F=nt(e,3):this.F=rt(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[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 new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof _t)return;o="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+U(e(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=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 u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/H:u},set:function(t){u=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof _t||this instanceof St))return ht(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof wt==0?ht(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof wt==0?"("===t.substr(0,1)?Y(t.substr(1,t.length-2)):Y(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==1?Y(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof wt==1?"/"+V(t):t}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof wt==0?ht(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof wt==0?"("===t.substr(0,1)?Y(t.substr(1,t.length-2)):Y(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==1?Y(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof wt==1?"/"+V(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,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=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 Boolean(et(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,1):this.Ff=rt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,2):this.Ff=rt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,3):this.Ff=rt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){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:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};K(gt,dt);var mt=function(){gt.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 ct(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/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,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,18):this.Ff=rt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=nt(this.Ff,19):this.Ff=rt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=nt(this.Ff,20),e.sort()):this.Ff=rt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,22):this.Ff=rt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,23):this.Ff=rt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,27):this.Ff=rt(this.Ff,27)}}),this.hasAppearanceStream=!1};K(mt,gt);var bt=function(){mt.call(this),this.fontName="helvetica",this.combo=!1};K(bt,mt);var vt=function(){bt.call(this),this.combo=!0};K(vt,bt);var yt=function(){vt.call(this),this.edit=!0};K(yt,vt);var wt=function(){gt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,15):this.Ff=rt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,16):this.Ff=rt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,17):this.Ff=rt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,26):this.Ff=rt(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 n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+U(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===r(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){var n=null==e?"":e.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),t="/"+V(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+V(e)}})};K(wt,gt);var Dt=function(){wt.call(this),this.pushButton=!0};K(Dt,wt);var xt=function(){wt.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:[]}})};K(xt,wt);var _t=function(){var t,e;gt.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 n,i={};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,n=[];for(e in n.push("<<"),i)n.push("/"+e+" ("+U(t(i[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===r(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+V(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+V(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};K(_t,gt),xt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},xt.prototype.createOption=function(t){var e=new _t;return e.Parent=this,e.optionName=t,this.Kids.push(e),At.call(this.scope,e),e};var kt=function(){wt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ft.CheckBox.createAppearanceStream()};K(kt,wt);var St=function(){gt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,13):this.Ff=rt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,21):this.Ff=rt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,23):this.Ff=rt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,24):this.Ff=rt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,25):this.Ff=rt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,26):this.Ff=rt(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}})};K(St,gt);var Ct=function(){St.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(et(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=nt(this.Ff,14):this.Ff=rt(this.Ff,14)}}),this.password=!0};K(Ct,St);var Ft={CheckBox:{createAppearanceStream:function(){return{N:{On:Ft.CheckBox.YesNormal},D:{On:Ft.CheckBox.YesPushDown,Off:Ft.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=at(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+$(Ft.internal.getWidth(t))+" "+$(Ft.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+$(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=X(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=Ft.internal.getHeight(t),a=Ft.internal.getWidth(t),s=at(t,t.caption);return i.push("1 g"),i.push("0 0 "+$(a)+" "+$(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+$(a-1)+" "+$(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+$(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$(Ft.internal.getWidth(t))+" "+$(Ft.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ft.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ft.RadioButton.Circle.YesNormal,e.D[t]=Ft.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=X(t);e.scope=t.scope;var n=[],r=Ft.internal.getWidth(t)<=Ft.internal.getHeight(t)?Ft.internal.getWidth(t)/4:Ft.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Ft.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+G(Ft.internal.getWidth(t)/2)+" "+G(Ft.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var n=[],r=Ft.internal.getWidth(t)<=Ft.internal.getHeight(t)?Ft.internal.getWidth(t)/4:Ft.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ft.internal.Bezier_C).toFixed(5)),a=Number((r*Ft.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Ft.internal.getWidth(t)/2)+" "+G(Ft.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+G(Ft.internal.getWidth(t)/2)+" "+G(Ft.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var n=[],r=Ft.internal.getWidth(t)<=Ft.internal.getHeight(t)?Ft.internal.getWidth(t)/4:Ft.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ft.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Ft.internal.getWidth(t)/2)+" "+G(Ft.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ft.RadioButton.Cross.YesNormal,e.D[t]=Ft.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=X(t);e.scope=t.scope;var n=[],r=Ft.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+$(Ft.internal.getWidth(t)-2)+" "+$(Ft.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push($(r.x1.x)+" "+$(r.x1.y)+" m"),n.push($(r.x2.x)+" "+$(r.x2.y)+" l"),n.push($(r.x4.x)+" "+$(r.x4.y)+" m"),n.push($(r.x3.x)+" "+$(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var n=Ft.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+$(Ft.internal.getWidth(t))+" "+$(Ft.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+$(Ft.internal.getWidth(t)-2)+" "+$(Ft.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push($(n.x1.x)+" "+$(n.x1.y)+" m"),r.push($(n.x2.x)+" "+$(n.x2.y)+" l"),r.push($(n.x4.x)+" "+$(n.x4.y)+" m"),r.push($(n.x3.x)+" "+$(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$(Ft.internal.getWidth(t))+" "+$(Ft.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ft.internal.getWidth(t),n=Ft.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Ft.internal.getWidth=function(t){var e=0;return"object"===r(t)&&(e=J(t.Rect[2])),e},Ft.internal.getHeight=function(t){var e=0;return"object"===r(t)&&(e=J(t.Rect[3])),e};var At=W.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(gt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(lt)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");H=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new pt,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&ut(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var i 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(i)){var o=t[i],a=[],s=o.Rect;if(o.Rect&&(o.Rect=it(o.Rect,e)),e.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Ft.createDefaultAppearanceStream(o),"object"===r(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var l=ot(o);a.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(o.appearanceStreamContent){var u="";for(var c in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(c)){var h=o.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var d=h[i];"function"==typeof d&&(d=d.call(e,o)),u+="/"+i+" "+d+" ",e.internal.acroformPlugin.xForms.indexOf(d)>=0||e.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=h)&&(d=d.call(e,o)),u+="/"+i+" "+d,e.internal.acroformPlugin.xForms.indexOf(d)>=0||e.internal.acroformPlugin.xForms.push(d);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:a,objectId:o.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=n,o=t[n];e.internal.newObjectDeferredBegin(o.objId,!0),"object"===r(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof gt))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};W.AcroFormChoiceField=mt,W.AcroFormListBox=bt,W.AcroFormComboBox=vt,W.AcroFormEditBox=yt,W.AcroFormButton=wt,W.AcroFormPushButton=Dt,W.AcroFormRadioButton=xt,W.AcroFormCheckBox=kt,W.AcroFormTextField=St,W.AcroFormPasswordField=Ct,W.AcroFormAppearance=Ft,W.AcroForm={ChoiceField:mt,ListBox:bt,ComboBox:vt,EditBox:yt,Button:wt,PushButton:Dt,RadioButton:xt,CheckBox:kt,TextField:St,PasswordField:Ct,Appearance:Ft},q.AcroForm={ChoiceField:mt,ListBox:bt,ComboBox:vt,EditBox:yt,Button:wt,PushButton:Dt,RadioButton:xt,CheckBox:kt,TextField:St,PasswordField:Ct,Appearance:Ft};q.AcroForm;function Et(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){var e="addImage_";t.__addimage__={};var n="UNKNOWN",i={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]]},o=t.__addimage__.getImageFileTypeByImageData=function(t,e){var r,o,a,s,l,u=n;if("RGBA"===(e=e||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(k(t))for(l in i)for(a=i[l],r=0;r<a.length;r+=1){for(s=!0,o=0;o<a[r].length;o+=1)if(void 0!==a[r][o]&&a[r][o]!==t[o]){s=!1;break}if(!0===s){u=l;break}}else for(l in i)for(a=i[l],r=0;r<a.length;r+=1){for(s=!0,o=0;o<a[r].length;o+=1)if(void 0!==a[r][o]&&a[r][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){u=l;break}}return u===n&&e!==n&&(u=e),u},a=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:e.width}),o.push({key:"Height",value:e.height}),e.colorSpace===y.INDEXED?o.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]"}):(o.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===y.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var a="",s=0,l=e.transparency.length;s<l;s++)a+=e.transparency[s]+" "+e.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==e.sMask&&o.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:o,alreadyAppliedFilters:u,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var c,h=null!==(c=e.sMaskBitsPerComponent)&&void 0!==c?c:e.bitsPerComponent,d={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:h,data:e.sMask};"filter"in e&&(d.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(h," /Columns ").concat(e.width),d.filter=e.filter),t.call(this,d)}if(e.colorSpace===y.INDEXED){var f=this.internal.newObject();r({data:C(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},s=function(){var t=this.internal.collections[e+"images"];for(var n in t)a.call(this,t[n])},l=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write;for(var i in n)r("/I"+(t=n[i]).index,t.objectId,"0","R")},u=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},c=function(){var t=this.internal.collections[e+"images"];return u.call(this),t},h=function(){return Object.keys(this.internal.collections[e+"images"]).length},d=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===r(t)&&1===t.nodeType},p=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return m(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return m(e.toDataURL(o,1).split("base64,").pop())}},g=function(t){var n=this.internal.collections[e+"images"];if(n)for(var r in n)if(t===n[r].alias)return n[r]},b=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},v=function(t,e,n,r,i,o){var a=b.call(this,n,r,i),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=c.call(this);if(n=a[0],r=a[1],u[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),d=Math.sin(o),f=function(t){return t.toFixed(4)},p=[f(h),f(d),f(-1*d),f(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),l(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},y=t.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"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},D=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(k(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},x=t.__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},_=t.__addimage__.extractImageFromDataUrl=function(t){if(null==t)return null;if(!(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};t.__addimage__.isArrayBuffer=function(t){return t instanceof ArrayBuffer};var k=t.__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},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},C=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=k(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,e,i,o,a,s,l,c,h;if("number"==typeof arguments[1]?(e=n,i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],l=arguments[5],c=arguments[6],h=arguments[7]):(e=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],c=arguments[7],h=arguments[8]),"object"===r(t=arguments[0])&&!f(t)&&"imageData"in t){var d=t;t=d.imageData,e=d.format||e||n,i=d.x||i||0,o=d.y||o||0,a=d.w||d.width||a,s=d.h||d.height||s,l=d.alias||l,c=d.compression||c,h=d.rotation||d.angle||h}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var g=F.call(this,t,e,l,c);return v.call(this,i,o,a,s,g,h),this};var F=function(e,r,i,a){var s,l,u;if("string"==typeof e&&o(e)===n){e=unescape(e);var c=A(e,!1);(""!==c||void 0!==(c=t.loadFile(e,!0)))&&(e=c)}if(f(e)&&(e=p(e,r)),r=o(e,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=i)||0===u.length)&&(i=function(t){return"string"==typeof t||k(t)?D(t):k(t.data)?D(t.data):null}(e)),(s=g.call(this,i))||(e instanceof Uint8Array||"RGBA"===r||(l=e,e=S(e)),s=this["process"+r.toUpperCase()](e,h.call(this),i,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:w.NONE}(a),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},A=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var n,r="";if("string"==typeof t){var i;n=null!==(i=_(t))&&void 0!==i?i:t;try{r=m(n)}catch(o){if(e)throw x(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+o.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};t.getImageProperties=function(e){var r,i,a="";if(f(e)&&(e=p(e)),"string"==typeof e&&o(e)===n&&(""===(a=A(e,!1))&&(a=t.loadFile(e)||""),e=a),i=o(e),!d(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(e instanceof Uint8Array||(e=S(e)),!(r=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(q.API),function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};q.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var n,r,i,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),l=t.pageContext.annotations,u=!1,c=0;c<l.length&&!u;c++)switch((n=l[c]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var h=0;h<l.length;h++){n=l[h];var d=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),b=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y)+"] ")+"/Contents ("+d(m(n.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+d(m(b))+") >>",p.content=i;var v=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(n.bounds.x+30)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+a(n.bounds.y)+"] ")+" /Parent "+v,n.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(f(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var w=this.annotations._nameMap[n.options.name];n.options.pageNumber=w.page,n.options.top=w.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(f(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;default:var D=a(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+D+" "+n.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.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)}},t.link=function(t,e,n,r,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(t),y:s(e),w:a(t+n),h:s(e+r)},options:i,type:"link"})},t.textWithLink=function(t,e,n,r){var i,o,a=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){o=r.maxWidth;var l=this.splitTextToSize(t,o).length;i=Math.ceil(s*l)}else o=a,i=s;return this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=a/2),"right"===r.align&&(e-=a),this.link(e,n-s,o,i,r),a},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(q.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(o++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,o=0),e===t.length-1&&(r=n,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(r=n,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var d=t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!u(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&l(e)||s(t)&&s(e)?0:c(t)&&a(e)&&!s(e)&&a(n)&&u(n)?3:s(t)||!a(n)?1:2:-1},f=function(t){var n=0,r=0,i=0,o="",s="",l="",u=(t=t||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)o=u[n][r],s=u[n][r-1],l=u[n][r+1],a(o)?(i=d(o,s,l),c[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):c[n]+=o;c[n]=h(c[n])}return c.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([f(e[r][0]),e[r][1],e[r][2]]):n.push([f(e[r])]);t=n}else t=f(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(q.API),q.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},function(t){var e=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 n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(q.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,i=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({},e),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=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 n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,a=0,s=0,l=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new 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(u.splitTextToSize(e,c))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)a<(l=this.getStringUnitWidth(t[h],{font:r})*n)&&(a=l);return 0!==a&&(s=t.length),{w:a/=o,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var r=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===t.lineNumber?(t.x=(r.x||0)+(r.width||0),t.y=r.y||0):r.y+r.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=r.y+r.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:"center",baseline:"top",maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:"left",baseline:"top",maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,c,h){if(i.call(this),!u)throw new Error("No data for PDF table.");var d,f,p,g,m=[],b=[],v=[],y={},w={},D=[],x=[],_=(h=h||{}).autoSize||!1,k=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,C=h.margins||Object.assign({width:this.getPageWidth()},e),F="number"==typeof h.padding?h.padding:3,A=h.headerBackgroundColor||"#c8c8c8",E=h.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=A,this.internal.__cell__.headerTextColor=E,this.setFontSize(S),null==c)b=m=Object.keys(u[0]),v=m.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===r(c[0]))for(m=c.map((function(t){return t.name})),b=c.map((function(t){return t.prompt||t.name||""})),v=c.map((function(t){return t.align||"left"})),d=0;d<c.length;d+=1)w[c[d].name]=.7499990551181103*c[d].width;else Array.isArray(c)&&"string"==typeof c[0]&&(b=m=c,v=m.map((function(){return"left"})));if(_||Array.isArray(c)&&"string"==typeof c[0])for(d=0;d<m.length;d+=1){for(y[g=m[d]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),D.push(this.getTextDimensions(b[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=y[g],this.setFont(void 0,"normal"),p=0;p<f.length;p+=1)D.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,D)+F+F,D=[]}if(k){var L={};for(d=0;d<m.length;d+=1)L[m[d]]={},L[m[d]].text=b[d],L[m[d]].align=v[d];var N=l.call(this,L,w);x=m.map((function(e){return new a(t,n,w[e],N,L[e].text,void 0,L[e].align)})),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var P=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(d=0;d<u.length;d+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:d,data:u[d]},this);var M=l.call(this,u[d],w);for(p=0;p<m.length;p+=1){var O=u[d][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:d,col:p,data:O},this),s.call(this,new a(t,n,w[m[p]],M,O,d+2,P[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var l=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(q.API);var Lt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Nt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Pt=Et(Nt),Mt=[100,200,300,400,500,600,700,800,900],Ot=Et(Mt);function It(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return Lt[t=t||"normal"]?t:"normal"}(t.style),r=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),i=function(t){return"number"==typeof Pt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function Tt(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Rt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},jt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Bt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function zt(t){return t.trimLeft()}function qt(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Wt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Ht,Ut,Yt,Vt,$t,Gt,Kt=["times"];function Jt(t,e,n,r,o){var a=4,s=Zt;switch(o){case q.API.image_compression.FAST:a=1,s=Qt;break;case q.API.image_compression.MEDIUM:a=6,s=te;break;case q.API.image_compression.SLOW:a=9,s=ee}t=function(t,e,n,r){for(var i,o=t.length/e,a=new Uint8Array(t.length+o),s=[Xt,Qt,Zt,te,ee],l=0;l<o;l+=1){var u=l*e,c=t.subarray(u,u+e);if(r)a.set(r(c,n,i),u+l);else{for(var h=s.length,d=[],f=0;f<h;f+=1)d[f]=s[f](c,n,i);var p=re(d.concat());a.set(d[p],u+l)}i=c}return a}(t,e,Math.ceil(n*r/8),s);var l=(0,i.$)(t,{level:a});return q.API.__addimage__.arrayBufferToBinaryString(l)}function Xt(t){var e=Array.apply([],t);return e.unshift(0),e}function Qt(t,e){var n=t.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var o=t[i-e]||0;r[i+1]=t[i]-o+256&255}return r}function Zt(t,e,n){var r=t.length,i=[];i[0]=2;for(var o=0;o<r;o+=1){var a=n&&n[o]||0;i[o+1]=t[o]-a+256&255}return i}function te(t,e,n){var r=t.length,i=[];i[0]=3;for(var o=0;o<r;o+=1){var a=t[o-e]||0,s=n&&n[o]||0;i[o+1]=t[o]+256-(a+s>>>1)&255}return i}function ee(t,e,n){var r=t.length,i=[];i[0]=4;for(var o=0;o<r;o+=1){var a=ne(t[o-e]||0,n&&n[o]||0,n&&n[o-e]||0);i[o+1]=t[o]-a+256&255}return i}function ne(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),o=Math.abs(t+e-n-n);return r<=i&&r<=o?t:i<=o?e:n}function re(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))}function ie(t,e,n){var r=e*n,i=Math.floor(r/8),o=16-(r-8*i+n),a=(1<<n)-1;return ae(t,i)>>o&a}function oe(t,e,n,r){var i=n*r,o=Math.floor(i/8),a=16-(i-8*o+r),s=(1<<r)-1,l=(e&s)<<a;!function(t,e,n){if(e+1<t.byteLength)t.setUint16(e,n,!1);else{var r=n>>8&255;t.setUint8(e,r)}}(t,o,ae(t,o)&~(s<<a)&65535|l)}function ae(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function se(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 new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null,l=null;o&&(s=e,l=a,e+=3*a);var u=!0,c=[],h=0,d=null,f=0,p=null;for(this.width=n,this.height=r;u&&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,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,d=t[e++],1&g||(d=null),f=g>>2&7,e++;break;case 254:for(;;){if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],D=w>>6&1,x=1<<1+(7&w),_=s,k=l,S=!1;w>>7&&(S=!0,_=e,k=x,e+=3*x);var C=e;for(e++;;){var F;if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}c.push({x:m,y:b,width:v,height:y,has_local_palette:S,palette_offset:_,palette_size:k,data_offset:C,data_length:e-C,transparent_index:d,interlaced:!!D,delay:h,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var a=new Uint8Array(o);le(t,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,d=4*(i.y*n+i.x),f=4*((i.y+i.height)*n+i.x),p=d,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,b=0,v=a.length;b<v;++b){var y=a[b];if(0===h&&(h=u,(p+=g)>=f&&(g=4*c+4*n*(m-1),p=d+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],D=t[s+3*y+1],x=t[s+3*y+2];r[p++]=x,r[p++]=D,r[p++]=w,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var a=new Uint8Array(o);le(t,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,d=4*(i.y*n+i.x),f=4*((i.y+i.height)*n+i.x),p=d,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,b=0,v=a.length;b<v;++b){var y=a[b];if(0===h&&(h=u,(p+=g)>=f&&(g=4*c+4*n*(m-1),p=d+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],D=t[s+3*y+1],x=t[s+3*y+2];r[p++]=w,r[p++]=D,r[p++]=x,r[p++]=255}--h}}}function le(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,l=i+1,u=(1<<l)-1,h=0,d=0,f=0,p=t[e++],g=new Int32Array(4096),m=null;;){for(;h<16&&0!==p;)d|=t[e++]<<h,h+=8,1===p?p=t[e++]:--p;if(h<l)break;var b=d&u;if(d>>=l,h-=l,b!==o){if(b===a)break;for(var v=b<s?b:m,y=0,w=v;w>o;)w=g[w]>>8,++y;var D=w;if(f+y+(v!==b?1:0)>r)return void c.log("Warning, gif stream longer than expected.");n[f++]=D;var x=f+=y;for(v!==b&&(n[f++]=D),w=v;y--;)w=g[w],n[--x]=255&w,w>>=8;null!==m&&s<4096&&(g[s++]=m<<8|D,s>=u+1&&l<12&&(++l,u=u<<1|1)),m=b}else s=a+1,u=(1<<(l=i+1))-1,m=null}return f!==r&&c.log("Warning, gif stream shorter than expected."),n}function ue(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),h=new Array(65535),d=new Array(65535),f=new Array(64),p=new Array(64),g=[],m=0,b=7,v=new Array(64),y=new Array(64),w=new Array(64),D=new Array(256),x=new Array(2048),_=[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],S=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[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],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],L=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],N=[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 P(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function M(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<b),n--,--b<0&&(255==m?(O(255),O(0)):O(m),b=7,m=0)}function O(t){g.push(t)}function I(t){O(t>>8&255),O(255&t)}function T(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,u,c,h,d=0;for(c=0;c<8;++c){n=t[d],r=t[d+1],i=t[d+2],o=t[d+3],a=t[d+4],s=t[d+5],l=t[d+6];var p=n+(u=t[d+7]),g=n-u,m=r+l,b=r-l,v=i+s,y=i-s,w=o+a,D=o-a,x=p+w,_=p-w,k=m+v,S=m-v;t[d]=x+k,t[d+4]=x-k;var C=.707106781*(S+_);t[d+2]=_+C,t[d+6]=_-C;var F=.382683433*((x=D+y)-(S=b+g)),A=.5411961*x+F,E=1.306562965*S+F,L=.707106781*(k=y+b),N=g+L,P=g-L;t[d+5]=P+A,t[d+3]=P-A,t[d+1]=N+E,t[d+7]=N-E,d+=8}for(d=0,c=0;c<8;++c){n=t[d],r=t[d+8],i=t[d+16],o=t[d+24],a=t[d+32],s=t[d+40],l=t[d+48];var M=n+(u=t[d+56]),O=n-u,I=r+l,T=r-l,R=i+s,j=i-s,B=o+a,z=o-a,q=M+B,W=M-B,H=I+R,U=I-R;t[d]=q+H,t[d+32]=q-H;var Y=.707106781*(U+W);t[d+16]=W+Y,t[d+48]=W-Y;var V=.382683433*((q=z+j)-(U=T+O)),$=.5411961*q+V,G=1.306562965*U+V,K=.707106781*(H=j+T),J=O+K,X=O-K;t[d+40]=X+$,t[d+24]=X-$,t[d+8]=J+G,t[d+56]=J-G,d++}for(c=0;c<64;++c)h=t[c]*e[c],f[c]=h>0?h+.5|0:h-.5|0;return f}(t,e),u=0;u<64;++u)p[_[u]]=l[u];var c=p[0]-n;n=p[0],0==c?M(r[0]):(M(r[d[o=32767+c]]),M(h[o]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return M(a),n;for(var m,b=1;b<=g;){for(var v=b;0==p[b]&&b<=g;)++b;var y=b-v;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)M(s);y&=15}o=32767+p[b],M(i[(y<<4)+d[o]]),M(h[o]),b++}return 63!=g&&M(a),n}function R(t){t=Math.min(Math.max(t,1),100),o!=t&&(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],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[_[n]]=r}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],o=0;o<64;o++){var h=a((i[o]*t+50)/100);h=Math.min(Math.max(h,1),255),l[_[o]]=h}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[f]=1/(s[_[f]]*d[p]*d[g]*8),c[f]=1/(l[_[f]]*d[p]*d[g]*8),f++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&R(o),g=new Array,m=0,b=7,I(65496),I(65504),I(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),I(1),I(1),O(0),O(0),function(){I(65499),I(132),O(0);for(var t=0;t<64;t++)O(s[t]);O(1);for(var e=0;e<64;e++)O(l[e])}(),function(t,e){I(65472),I(17),O(8),I(e),I(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){I(65476),I(418),O(0);for(var t=0;t<16;t++)O(k[t+1]);for(var e=0;e<=11;e++)O(S[e]);O(16);for(var n=0;n<16;n++)O(C[n+1]);for(var r=0;r<=161;r++)O(F[r]);O(1);for(var i=0;i<16;i++)O(A[i+1]);for(var o=0;o<=11;o++)O(E[o]);O(17);for(var a=0;a<16;a++)O(L[a+1]);for(var s=0;s<=161;s++)O(N[s])}(),I(65498),I(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var a=0,h=0,d=0;m=0,b=7,this.encode.displayName="_encode_";for(var f,p,D,_,P,j,B,z,q,W=t.data,H=t.width,U=t.height,Y=4*H,V=0;V<U;){for(f=0;f<Y;){for(P=Y*V+f,B=-1,z=0,q=0;q<64;q++)j=P+(z=q>>3)*Y+(B=4*(7&q)),V+z>=U&&(j-=Y*(V+1+z-U)),f+B>=Y&&(j-=f+B-Y+4),p=W[j++],D=W[j++],_=W[j++],v[q]=(x[p]+x[D+256|0]+x[_+512|0]>>16)-128,y[q]=(x[p+768|0]+x[D+1024|0]+x[_+1280|0]>>16)-128,w[q]=(x[p+1280|0]+x[D+1536|0]+x[_+1792|0]>>16)-128;a=T(v,u,a,e,r),h=T(y,c,h,n,i),d=T(w,c,d,n,i),f+=32}V+=8}if(b>=0){var $=[];$[1]=b+1,$[0]=(1<<b+1)-1,M($)}return I(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)D[e]=t(e)}(),e=P(k,S),n=P(A,E),r=P(C,F),i=P(L,N),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)d[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)d[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256|0]=38470*t,x[t+512|0]=7471*t+32768,x[t+768|0]=-11059*t,x[t+1024|0]=-21709*t,x[t+1280|0]=32768*t+8421375,x[t+1536|0]=-27439*t,x[t+1792|0]=-5329*t}(),R(t)}function ce(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 new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function he(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var o=0;o<i;o++)t[e+o]=n[r+o]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function o(t){return new Int32Array(t)}function a(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var o=i[r],a=0;a<o&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));a++)t(n[a],r+1,i)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function u(t,n,r,i,o){e(!(i%r));do{t[n+(i-=r)]=o}while(0<i)}function c(t,n,r,i,a){if(e(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(t,n,r,i,a,s){var c,d,f=n,p=1<<r,g=o(16),m=o(16);for(e(0!=a),e(null!=i),e(null!=t),e(0<r),d=0;d<a;++d){if(15<i[d])return 0;++g[i[d]]}if(g[0]==a)return 0;for(m[1]=0,c=1;15>c;++c){if(g[c]>1<<c)return 0;m[c+1]=m[c]+g[c]}for(d=0;d<a;++d)c=i[d],0<i[d]&&(s[m[c]++]=d);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,f,1,p,i),p;var b,v=-1,y=p-1,w=0,D=1,x=1,_=1<<r;for(d=0,c=1,a=2;c<=r;++c,a<<=1){if(D+=x<<=1,0>(x-=g[c]))return 0;for(;0<g[c];--g[c])(i=new h).g=c,i.value=s[d++],u(t,f+w,a,_,i),w=l(w,c)}for(c=r+1,a=2;15>=c;++c,a<<=1){if(D+=x<<=1,0>(x-=g[c]))return 0;for(;0<g[c];--g[c]){if(i=new h,(w&y)!=v){for(f+=_,b=1<<(v=c)-r;15>v&&!(0>=(b-=g[v]));)++v,b<<=1;p+=_=1<<(b=v-r),t[n+(v=w&y)].g=b+r,t[n+v].value=f-n-v}i.g=c-r,i.value=s[d++],u(t,f+(w>>r),a,_,i),w=l(w,c)}}return D!=2*m[15]-1?0:p}(t,n,r,i,a,s)}function h(){this.value=this.g=0}function d(){this.value=this.g=0}function f(){this.G=a(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(jn,d)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,C(t)}function g(t,e){for(var n=0;0<e--;)n|=A(t,128)<<e;return n}function m(t,e){var n=g(t,e);return F(t)?-n:n}function b(t,n,r,i){var o,a=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)a+=n[r+o]<<8*o;t.Ra=a,t.bb=i,t.oa=n,t.pa=r}function v(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<qn-8>>>0,++t.bb,t.u-=8;_(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=zn){var r=x(t)&Bn[n];return t.u+=n,v(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&qn-1)>>>0}function _(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>qn}function k(t,e){t.u=e,t.h=_(t)}function S(t){t.u>=Wn&&(e(t.u>=Wn),v(t))}function C(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 F(t){return g(t,1)}function A(t,e){var n=t.Ca;0>t.b&&C(t);var r=t.b,i=n*e>>>8,o=(t.I>>>r>i)+0;for(o?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Hn[r],t.b-=r,t.Ca=(n<<r)-1,o}function E(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function L(t,e){return t[e+0]|t[e+1]<<8}function N(t,e){return L(t,e)|t[e+2]<<16}function P(t,e){return L(t,e)|L(t,e+2)<<16}function M(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=o(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function O(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function I(){this.X=[],this.Xa=this.Mb=0}function T(t,n,r,i){e(null!=r),e(null!=i);var o=r[0],a=i[0];return 0==o&&(o=(t*a+n/2)/n),0==a&&(a=(n*o+t/2)/t),0>=o||0>=a?0:(r[0]=o,i[0]=a,1)}function R(t,e){return t+(1<<e)-1>>>e}function j(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function B(e,n){t[n]=function(n,r,i,o,a,s,l){var u;for(u=0;u<a;++u){var c=t[e](s[l+u-1],i,o+u);s[l+u]=j(n[r+u],c)}}}function z(){this.ud=this.hd=this.jd=0}function q(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function W(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function H(t,e){return W(t+(t-e+.5>>1))}function U(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function Y(t,e,n,r,i,o,a){for(r=o[a-1],n=0;n<i;++n)o[a+n]=r=j(t[e+n],r)}function V(t,e,n,r,i){var o;for(o=0;o<n;++o){var a=t[e+o],s=a>>8&255,l=16711935&(l=(l=16711935&a)+((s<<16)+s));r[i+o]=(4278255360&a)+l>>>0}}function $(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function G(t,e,n,r,i,o){var a;for(a=0;a<r;++a){var s=e[n+a],l=s>>>8,u=s,c=255&(c=(c=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(c<<16)+u}}function K(e,n,r,i,o){t[n]=function(t,e,n,r,a,s,l,u,c){for(r=l;r<u;++r)for(l=0;l<c;++l)a[s++]=o(n[i(t[e++])])},t[e]=function(e,n,a,s,l,u,c){var h=8>>e.b,d=e.Ea,f=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;n<a;++n){var g,m=0;for(g=0;g<d;++g)g&e||(m=i(s[l++])),u[c++]=o(f[m&p]),m>>=h}else t["VP8LMapColor"+r](s,l,f,p,u,c,n,a,d)}}function J(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o}}function X(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o,r[i++]=o>>24&255}}function Q(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&240|a>>12&15,a=240&a|a>>28&15;r[i++]=o,r[i++]=a}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[i++]=o,r[i++]=a}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=255&o,r[i++]=o>>8&255,r[i++]=o>>16&255}}function et(t,e,n,i,o,a){if(0==a)for(n=e+n;e<n;)E(i,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else r(i,o,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==Wr||t==Hr||t==Ur||t==Yr}function it(){this.eb=[],this.size=this.A=this.fb=0}function ot(){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 at(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new ot,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){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 ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var n=t.T,i=e.ba.f.RGBA,o=i.eb,a=i.fb+t.ka*i.A,s=mi[e.ba.S],l=t.y,u=t.O,c=t.f,h=t.N,d=t.ea,f=t.W,p=e.cc,g=e.dc,m=e.Mc,b=e.Nc,v=t.ka,y=t.ka+t.T,w=t.U,D=w+1>>1;for(0==v?s(l,u,null,null,c,h,d,f,c,h,d,f,o,a,null,null,w):(s(e.ec,e.fc,l,u,p,g,m,b,c,h,d,f,o,a-i.A,o,a,w),++n);v+2<y;v+=2)p=c,g=h,m=d,b=f,h+=t.Rc,f+=t.Rc,a+=2*i.A,s(l,(u+=2*t.fa)-t.fa,l,u,p,g,m,b,c,h,d,f,o,a-i.A,o,a,w);return u+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,l,u,w),r(e.cc,e.dc,c,h,D),r(e.Mc,e.Nc,d,f,D),n--):1&y||s(l,u,null,null,c,h,d,f,c,h,d,f,o,a+i.A,null,null,w),n}function ht(t,n,r){var i=t.F,o=[t.J];if(null!=i){var a=t.U,s=n.ba.S,l=s==Br||s==Ur;n=n.ba.f.RGBA;var u=[0],c=t.ka;u[0]=t.T,t.Kb&&(0==c?--u[0]:(--c,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-c));var h=n.eb;c=n.fb+c*n.A,t=kr(i,o[0],t.width,a,u,h,c+(l?0:3),n.A),e(r==u),t&&rt(s)&&xr(h,c,l,a,u,n.A)}return 0}function dt(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Tr||n==jr||n==Br||n==zr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!In(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&vn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ut,t.Kb){if(n=t.U+1>>1,e.memory=o(t.U+2*n),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+n,e.Ib=ct,vn()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,r&&mn())}if(r&&!Li){for(t=0;256>t;++t)Ni[t]=89858*(t-128)+Si>>ki,Oi[t]=-22014*(t-128)+Si,Mi[t]=-45773*(t-128),Pi[t]=113618*(t-128)+Si>>ki;for(t=Ci;t<Fi;++t)e=76283*(t-16)+Si>>ki,Ii[t-Ci]=Yt(e,255),Ti[t-Ci]=Yt(e+8>>4,15);Li=1}return 1}function ft(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function pt(t){t.ma.memory=null}function gt(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function bt(t,e){return 120<e?e-120:1<=(n=((n=Xr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function vt(t,e,n){var r=x(n),i=t[e+=255&r].g-8;return 0<i&&(k(n,n.u+8),r=x(n),e+=t[e].value,e+=r&(1<<i)-1),k(n,n.u+t[e].g),t[e].value}function yt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function wt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function Dt(t,n,i,o){var a=t.ab,s=t.c*n,l=t.C;n=l+n;var u=i,c=o;for(o=t.Ta,i=t.Ua;0<a--;){var h=t.gc[a],d=l,f=n,p=u,g=c,m=(c=o,u=i,h.Ea);switch(e(d<f),e(f<=h.nc),h.hc){case 2:Vn(p,g,(f-d)*m,c,u);break;case 0:var b=d,v=f,y=c,w=u,D=(C=h).Ea;0==b&&(Un(p,g,null,null,1,y,w),Y(p,g+1,0,0,D-1,y,w+1),g+=D,w+=D,++b);for(var x=1<<C.b,_=x-1,k=R(D,C.b),S=C.K,C=C.w+(b>>C.b)*k;b<v;){var F=S,A=C,E=1;for(Yn(p,g,y,w-D,1,y,w);E<D;){var L=(E&~_)+x;L>D&&(L=D),(0,Xn[F[A++]>>8&15])(p,g+ +E,y,w+E-D,L-E,y,w+E),E=L}g+=D,w+=D,++b&_||(C+=k)}f!=h.nc&&r(c,u-m,c,u+(f-d-1)*m,m);break;case 1:for(m=p,v=g,D=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),b=R(p,h.b),x=h.K,h=h.w+(d>>h.b)*b;d<f;){for(_=x,k=h,S=new z,C=v+w,F=v+p;v<C;)$(_[k++],S),Qn(S,m,v,g,c,u),v+=g,u+=g;v<F&&($(_[k++],S),Qn(S,m,v,D,c,u),v+=D,u+=D),++d&y||(h+=b)}break;case 3:if(p==c&&g==u&&0<h.b){for(v=c,p=m=u+(f-d)*m-(w=(f-d)*R(h.Ea,h.b)),g=c,y=u,b=[],w=(D=w)-1;0<=w;--w)b[w]=g[y+w];for(w=D-1;0<=w;--w)v[p+w]=b[w];$n(h,d,f,c,m,c,u)}else $n(h,d,f,p,g,c,u)}u=o,c=i}c!=i&&r(o,i,u,c,s)}function xt(t,n){var r=t.V,i=t.Ba+t.c*t.C,o=n-t.C;if(e(n<=t.l.o),e(16>=o),0<o){var a=t.l,s=t.Ta,l=t.Ua,u=a.width;if(Dt(t,o,r,i),o=l=[l],e((r=t.C)<(i=n)),e(a.v<a.va),i>a.o&&(i=a.o),r<a.j){var c=a.j-r;r=a.j,o[0]+=c*u}if(r>=i?r=0:(o[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=i-r,r=1),r){if(l=l[0],11>(r=t.ca).S){var h=r.f.RGBA,d=(i=r.S,o=a.U,a=a.T,c=h.eb,h.A),f=a;for(h=h.fb+t.Ma*h.A;0<f--;){var p=s,g=l,m=o,b=c,v=h;switch(i){case Ir:Zn(p,g,m,b,v);break;case Tr:tr(p,g,m,b,v);break;case Wr:tr(p,g,m,b,v),xr(b,v,0,m,1,0);break;case Rr:rr(p,g,m,b,v);break;case jr:et(p,g,m,b,v,1);break;case Hr:et(p,g,m,b,v,1),xr(b,v,0,m,1,0);break;case Br:et(p,g,m,b,v,0);break;case Ur:et(p,g,m,b,v,0),xr(b,v,1,m,1,0);break;case zr:er(p,g,m,b,v);break;case Yr:er(p,g,m,b,v),_r(b,v,m,1,0);break;case qr:nr(p,g,m,b,v);break;default:e(0)}l+=u,h+=d}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function _t(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function kt(t,n,r,i,o,a){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=gi[t.Z]);n<r;++n)gi[t.Z](s,l,i,o,i,o,a),s=i,l=o,o+=a;t.qd=s,t.rd=l}}function St(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var o=t.l.width,a=r.ca,s=r.tb+o*i,l=t.V,u=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Kn(c[0],i,n,l,u,a,s),kt(r,i,n,a,s,o)}t.C=t.Ma=n}function Ct(t,n,r,i,o,a,s){var l=t.$/i,u=t.$%i,c=t.m,h=t.s,d=r+t.$,f=d;o=r+i*o;var p=r+i*a,g=280+h.ua,m=t.Pb?l:16777216,b=0<h.ua?h.Wa:null,v=h.wc,y=d<p?wt(h,u,l):null;e(t.C<a),e(p<=o);var w=!1;t:for(;;){for(;w||d<p;){var D=0;if(l>=m){var C=d-r;e((m=t).Pb),m.wd=m.m,m.xd=C,0<m.s.ua&&O(m.s.Wa,m.s.vb),m=l+Zr}if(u&v||(y=wt(h,u,l)),e(null!=y),y.Qb&&(n[d]=y.qb,w=!0),!w)if(S(c),y.jc){D=c,C=n;var F=d,A=y.pd[x(D)&jn-1];e(y.jc),256>A.g?(k(D,D.u+A.g),C[F]=A.value,D=0):(k(D,D.u+A.g-256),e(256<=A.value),D=A.value),0==D&&(w=!0)}else D=vt(y.G[0],y.H[0],c);if(c.h)break;if(w||256>D){if(!w)if(y.nd)n[d]=(y.qb|D<<8)>>>0;else{if(S(c),w=vt(y.G[1],y.H[1],c),S(c),C=vt(y.G[2],y.H[2],c),F=vt(y.G[3],y.H[3],c),c.h)break;n[d]=(F<<24|w<<16|D<<8|C)>>>0}if(w=!1,++d,++u>=i&&(u=0,++l,null!=s&&l<=a&&!(l%16)&&s(t,l),null!=b))for(;f<d;)D=n[f++],b.X[(506832829*D&4294967295)>>>b.Mb]=D}else if(280>D){if(D=mt(D-256,c),C=vt(y.G[4],y.H[4],c),S(c),C=bt(i,C=mt(C,c)),c.h)break;if(d-r<C||o-d<D)break t;for(F=0;F<D;++F)n[d+F]=n[d+F-C];for(d+=D,u+=D;u>=i;)u-=i,++l,null!=s&&l<=a&&!(l%16)&&s(t,l);if(e(d<=o),u&v&&(y=wt(h,u,l)),null!=b)for(;f<d;)D=n[f++],b.X[(506832829*D&4294967295)>>>b.Mb]=D}else{if(!(D<g))break t;for(w=D-280,e(null!=b);f<d;)D=n[f++],b.X[(506832829*D&4294967295)>>>b.Mb]=D;D=d,e(!(w>>>(C=b).Xa)),n[D]=C.X[w],w=!0}w||e(c.h==_(c))}if(t.Pb&&c.h&&d<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&O(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=s&&s(t,l>a?a:l),t.a=0,t.$=d-r}return 1}return t.a=3,0}function Ft(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function At(){var e=new an;return null==e?null:(e.a=0,e.xb=pi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Vn=V,Qn=G,Zn=J,tr=X,er=Q,nr=Z,rr=tt,t.VP8LMapColor32b=Gn,t.VP8LMapColor8b=Jn,e)}function Et(t,n,r,s,l){var u=1,d=[t],p=[n],g=s.m,m=s.s,b=null,v=0;t:for(;;){if(r)for(;u&&y(g,1);){var w=d,D=p,_=s,C=1,F=_.m,A=_.gc[_.ab],E=y(F,2);if(_.Oc&1<<E)u=0;else{switch(_.Oc|=1<<E,A.hc=E,A.Ea=w[0],A.nc=D[0],A.K=[null],++_.ab,e(4>=_.ab),E){case 0:case 1:A.b=y(F,3)+2,C=Et(R(A.Ea,A.b),R(A.nc,A.b),0,_,A.K),A.K=A.K[0];break;case 3:var L,N=y(F,8)+1,P=16<N?0:4<N?1:2<N?2:3;if(w[0]=R(A.Ea,P),A.b=P,L=C=Et(N,1,0,_,A.K)){var O,I=N,T=A,B=1<<(8>>T.b),z=o(B);if(null==z)L=0;else{var q=T.K[0],W=T.w;for(z[0]=T.K[0][0],O=1;O<1*I;++O)z[O]=j(q[W+O],z[O-1]);for(;O<4*B;++O)z[O]=0;T.K[0]=null,T.K[0]=z,L=1}}C=L;break;case 2:break;default:e(0)}u=C}}if(d=d[0],p=p[0],u&&y(g,1)&&!(u=1<=(v=y(g,4))&&11>=v)){s.a=3;break t}var H;if(H=u)e:{var U,Y,V,$=s,G=d,K=p,J=v,X=r,Q=$.m,Z=$.s,tt=[null],et=1,nt=0,rt=Qr[J];n:for(;;){if(X&&y(Q,1)){var it=y(Q,3)+2,ot=R(G,it),at=R(K,it),st=ot*at;if(!Et(ot,at,0,$,tt))break n;for(tt=tt[0],Z.xc=it,U=0;U<st;++U){var lt=tt[U]>>8&65535;tt[U]=lt,lt>=et&&(et=lt+1)}}if(Q.h)break n;for(Y=0;5>Y;++Y){var ut=Gr[Y];!Y&&0<J&&(ut+=1<<J),nt<ut&&(nt=ut)}var ct=a(et*rt,h),ht=et,dt=a(ht,f);if(null==dt)var ft=null;else e(65536>=ht),ft=dt;var pt=o(nt);if(null==ft||null==pt||null==ct){$.a=1;break n}var gt=ct;for(U=V=0;U<et;++U){var mt=ft[U],bt=mt.G,vt=mt.H,wt=0,Dt=1,xt=0;for(Y=0;5>Y;++Y){ut=Gr[Y],bt[Y]=gt,vt[Y]=V,!Y&&0<J&&(ut+=1<<J);r:{var _t,kt=ut,St=$,At=pt,Lt=gt,Nt=V,Pt=0,Mt=St.m,Ot=y(Mt,1);if(i(At,0,0,kt),Ot){var It=y(Mt,1)+1,Tt=y(Mt,1),Rt=y(Mt,0==Tt?1:8);At[Rt]=1,2==It&&(At[Rt=y(Mt,8)]=1);var jt=1}else{var Bt=o(19),zt=y(Mt,4)+4;if(19<zt){St.a=3;var qt=0;break r}for(_t=0;_t<zt;++_t)Bt[Jr[_t]]=y(Mt,3);var Wt=void 0,Ht=void 0,Ut=St,Yt=Bt,Vt=kt,$t=At,Gt=0,Kt=Ut.m,Jt=8,Xt=a(128,h);i:for(;c(Xt,0,7,Yt,19);){if(y(Kt,1)){var Qt=2+2*y(Kt,3);if((Wt=2+y(Kt,Qt))>Vt)break i}else Wt=Vt;for(Ht=0;Ht<Vt&&Wt--;){S(Kt);var Zt=Xt[0+(127&x(Kt))];k(Kt,Kt.u+Zt.g);var te=Zt.value;if(16>te)$t[Ht++]=te,0!=te&&(Jt=te);else{var ee=16==te,ne=te-16,re=$r[ne],ie=y(Kt,Vr[ne])+re;if(Ht+ie>Vt)break i;for(var oe=ee?Jt:0;0<ie--;)$t[Ht++]=oe}}Gt=1;break i}Gt||(Ut.a=3),jt=Gt}(jt=jt&&!Mt.h)&&(Pt=c(Lt,Nt,8,At,kt)),jt&&0!=Pt?qt=Pt:(St.a=3,qt=0)}if(0==qt)break n;if(Dt&&1==Kr[Y]&&(Dt=0==gt[V].g),wt+=gt[V].g,V+=qt,3>=Y){var ae,se=pt[0];for(ae=1;ae<ut;++ae)pt[ae]>se&&(se=pt[ae]);xt+=se}}if(mt.nd=Dt,mt.Qb=0,Dt&&(mt.qb=(bt[3][vt[3]+0].value<<24|bt[1][vt[1]+0].value<<16|bt[2][vt[2]+0].value)>>>0,0==wt&&256>bt[0][vt[0]+0].value&&(mt.Qb=1,mt.qb+=bt[0][vt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>xt,mt.jc){var le,ue=mt;for(le=0;le<jn;++le){var ce=le,he=ue.pd[ce],de=ue.G[0][ue.H[0]+ce];256<=de.value?(he.g=de.g+256,he.value=de.value):(he.g=0,he.value=0,ce>>=yt(de,8,he),ce>>=yt(ue.G[1][ue.H[1]+ce],16,he),ce>>=yt(ue.G[2][ue.H[2]+ce],0,he),yt(ue.G[3][ue.H[3]+ce],24,he))}}}Z.vc=tt,Z.Wb=et,Z.Ya=ft,Z.yc=ct,H=1;break e}H=0}if(!(u=H)){s.a=3;break t}if(0<v){if(m.ua=1<<v,!M(m.Wa,v)){s.a=1,u=0;break t}}else m.ua=0;var fe=s,pe=d,ge=p,me=fe.s,be=me.xc;if(fe.c=pe,fe.i=ge,me.md=R(pe,be),me.wc=0==be?-1:(1<<be)-1,r){s.xb=fi;break t}if(null==(b=o(d*p))){s.a=1,u=0;break t}u=(u=Ct(s,b,0,d,p,p,null))&&!g.h;break t}return u?(null!=l?l[0]=b:(e(null==b),e(r)),s.$=0,r||Ft(m)):Ft(m),u}function Lt(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function Nt(t,n){var r=t.C,i=n-r,o=t.V,a=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,l=t.l.ma,u=t.l.width,c=u*s,h=l.ca,d=l.tb+u*r,f=t.Ta,p=t.Ua;Dt(t,s,o,a),Sr(f,p,h,d,c),kt(l,r,r+s,h,d,u),i-=s,o+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function Pt(){this.ub=this.yd=this.td=this.Rb=0}function Mt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function It(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],o=0;o<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));o++)t(e[o],n+1,r)}(t,0,[3,11]),t}()}function Tt(){this.jb=o(3),this.Wc=s([4,8],It),this.Xc=s([4,17],It)}function Rt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function jt(){this.ld=this.La=this.dd=this.tc=0}function Bt(){this.Na=this.la=0}function zt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function qt(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Wt(){this.uc=this.M=this.Nb=0,this.wa=Array(new jt),this.Y=0,this.ya=Array(new qt),this.aa=0,this.l=new Vt}function Ht(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Ut(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Pt,this.Kc=new Mt,this.ed=new Rt,this.Qa=new Ot,this.Ic=this.$c=this.Aa=0,this.D=new Wt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,zt),this.Pa=new Tt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Bt),this.sb=0,this.wa=Array(new jt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new qt),this.L=this.aa=0,this.gd=s([4,2],jt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Yt(t,e){return 0>t?0:t>e?e:t}function Vt(){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 $t(){var t=new Ut;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ni||(ni=Xt)),t}function Gt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Kt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Jt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Gt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,a=n.ha;if(4>a)return Gt(t,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+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 Gt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Gt(t,4,"Frame not displayable.");o+=3,a-=3;var u=t.Kc;if(l.Rb){if(7>a)return Gt(t,7,"cannot parse picture header");if(!Kt(r,o,a))return Gt(t,3,"Bad code word");u.c=16383&(r[o+4]<<8|r[o+3]),u.Td=r[o+4]>>6,u.i=16383&(r[o+6]<<8|r[o+5]),u.Ud=r[o+6]>>6,o+=7,a-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.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>a)return Gt(t,7,"bad partition length");p(s=t.m,r,o,l.ub),o+=l.ub,a-=l.ub,l.Rb&&(u.Ld=F(s),u.Kd=F(s)),u=t.Qa;var c,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=F(s),u.Cb){if(u.Bb=F(s),F(s)){for(u.Fb=F(s),c=0;4>c;++c)u.Zb[c]=F(s)?m(s,7):0;for(c=0;4>c;++c)u.Lb[c]=F(s)?m(s,6):0}if(u.Bb)for(c=0;3>c;++c)h.jb[c]=F(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Gt(t,3,"cannot parse segment header");if((u=t.ed).zd=F(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=F(s),u.Pc&&F(s)){for(h=0;4>h;++h)F(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)F(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Gt(t,3,"cannot parse filter header");var d=a;if(a=c=o,o=c+d,u=d,t.Xb=(1<<g(t.m,2))-1,d<3*(h=t.Xb))r=7;else{for(c+=3*h,u-=3*h,d=0;d<h;++d){var f=r[a+0]|r[a+1]<<8|r[a+2]<<16;f>u&&(f=u),p(t.Jc[+d],r,c,f),c+=f,u-=f,a+=3}p(t.Jc[+h],r,c,u),r=c<o?0:5}if(0!=r)return Gt(t,r,"cannot parse partitions");for(r=g(c=t.m,7),a=F(c)?m(c,4):0,o=F(c)?m(c,4):0,u=F(c)?m(c,4):0,h=F(c)?m(c,4):0,c=F(c)?m(c,4):0,d=t.Qa,f=0;4>f;++f){if(d.Cb){var b=d.Zb[f];d.Fb||(b+=r)}else{if(0<f){t.pb[f]=t.pb[0];continue}b=r}var v=t.pb[f];v.Sc[0]=ti[Yt(b+a,127)],v.Sc[1]=ei[Yt(b+0,127)],v.Eb[0]=2*ti[Yt(b+o,127)],v.Eb[1]=101581*ei[Yt(b+u,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ti[Yt(b+h,117)],v.Qc[1]=ei[Yt(b+c,127)],v.lc=b+c}if(!l.Rb)return Gt(t,4,"Not a key frame.");for(F(s),l=t.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(o=0;3>o;++o)for(u=0;11>u;++u)h=A(s,li[r][a][o][u])?g(s,8):ai[r][a][o][u],l.Wc[r][a].Yb[o][u]=h;for(a=0;17>a;++a)l.Xc[r][a]=l.Wc[r][ui[a]]}return t.kc=F(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Xt(t,e,n,r,i,o,a){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!A(t,s[n+0]))return i;for(;!A(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var l=e[i+1].Yb;if(A(t,s[n+2])){var u=t,c=0;if(A(u,(d=s)[(h=n)+3]))if(A(u,d[h+6])){for(s=0,h=2*(c=A(u,d[h+8]))+(d=A(u,d[h+9+c])),c=0,d=ri[h];d[s];++s)c+=c+A(u,d[s]);c+=3+(8<<h)}else A(u,d[h+7])?(c=7+2*A(u,165),c+=A(u,145)):c=5+A(u,159);else c=A(u,d[h+4])?3+A(u,d[h+5]):2;s=l[2]}else c=1,s=l[1];l=a+ii[i],0>(u=t).b&&C(u);var h,d=u.b,f=(h=u.Ca>>1)-(u.I>>d)>>31;--u.b,u.Ca+=f,u.Ca|=1,u.I-=(h+1&f)<<d,o[l]=((c^f)-f)*r[(0<i)+0]}return 16}function Qt(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 Zt(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function te(t,e,n,r,i,o){Zt(t,e,0,n,r+i),Zt(t,e,1,n,r+o),Zt(t,e,2,n,r-o),Zt(t,e,3,n,r-i)}function ee(t){return(20091*t>>16)+t}function ne(t,e,n,r){var i,a=0,s=o(16);for(i=0;4>i;++i){var l=t[e+0]+t[e+8],u=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-ee(t[e+12]),h=ee(t[e+4])+(35468*t[e+12]>>16);s[a+0]=l+h,s[a+1]=u+c,s[a+2]=u-c,s[a+3]=l-h,a+=4,e++}for(i=a=0;4>i;++i)l=(t=s[a+0]+4)+s[a+8],u=t-s[a+8],c=(35468*s[a+4]>>16)-ee(s[a+12]),Zt(n,r,0,0,l+(h=ee(s[a+4])+(35468*s[a+12]>>16))),Zt(n,r,1,0,u+c),Zt(n,r,2,0,u-c),Zt(n,r,3,0,l-h),a++,r+=32}function re(t,e,n,r){var i=t[e+0]+4,o=35468*t[e+4]>>16,a=ee(t[e+4]),s=35468*t[e+1]>>16;te(n,r,0,i+a,t=ee(t[e+1]),s),te(n,r,1,i+o,t,s),te(n,r,2,i-o,t,s),te(n,r,3,i-a,t,s)}function ie(t,e,n,r,i){ne(t,e,n,r),i&&ne(t,e+16,n,r+4)}function oe(t,e,n,r){or(t,e+0,n,r,1),or(t,e+32,n,r+128,1)}function ae(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)Zt(n,r,e,i,t)}function se(t,e,n,r){t[e+0]&&lr(t,e+0,n,r),t[e+16]&&lr(t,e+16,n,r+4),t[e+32]&&lr(t,e+32,n,r+128),t[e+48]&&lr(t,e+48,n,r+128+4)}function le(t,e,n,r){var i,a=o(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],u=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];a[0+i]=s+l,a[8+i]=s-l,a[4+i]=c+u,a[12+i]=c-u}for(i=0;4>i;++i)s=(t=a[0+4*i]+3)+a[3+4*i],l=a[1+4*i]+a[2+4*i],u=a[1+4*i]-a[2+4*i],c=t-a[3+4*i],n[r+0]=s+l>>3,n[r+16]=c+u>>3,n[r+32]=s-l>>3,n[r+48]=c-u>>3,r+=64}function ue(t,e,n){var r,i=e-32,o=Mr,a=255-t[i-1];for(r=0;r<n;++r){var s,l=o,u=a+t[e-1];for(s=0;s<n;++s)t[e+s]=l[u+t[i+s]];e+=32}}function ce(t,e){ue(t,e,4)}function he(t,e){ue(t,e,8)}function de(t,e){ue(t,e,16)}function fe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function pe(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function ge(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function me(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];ge(r>>5,t,e)}function be(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];ge(r>>4,t,e)}function ve(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];ge(r>>4,t,e)}function ye(t,e){ge(128,t,e)}function we(t,e,n){return t+2*e+n+2>>2}function De(t,e){var n,i=e-32;for(i=new Uint8Array([we(t[i-1],t[i+0],t[i+1]),we(t[i+0],t[i+1],t[i+2]),we(t[i+1],t[i+2],t[i+3]),we(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function xe(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];E(t,e+0,16843009*we(t[e-1-32],n,r)),E(t,e+32,16843009*we(n,r,i)),E(t,e+64,16843009*we(r,i,o)),E(t,e+96,16843009*we(i,o,o))}function _e(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function ke(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+96]=we(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=we(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=we(o,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=we(a,o,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=we(s,a,o),t[e+3+32]=t[e+2+0]=we(l,s,a),t[e+3+0]=we(u,l,s)}function Se(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],a=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=we(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=we(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=we(r,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=we(i,o,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=we(o,a,s),t[e+3+64]=t[e+2+96]=we(a,s,l),t[e+3+96]=we(s,l,l)}function Ce(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=o+a+1>>1,t[e+1+0]=t[e+2+64]=a+s+1>>1,t[e+2+0]=t[e+3+64]=s+l+1>>1,t[e+3+0]=l+u+1>>1,t[e+0+96]=we(i,r,n),t[e+0+64]=we(r,n,o),t[e+0+32]=t[e+1+96]=we(n,o,a),t[e+1+32]=t[e+2+96]=we(o,a,s),t[e+2+32]=t[e+3+96]=we(a,s,l),t[e+3+32]=we(s,l,u)}function Fe(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],o=t[e+3-32],a=t[e+4-32],s=t[e+5-32],l=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+a+1>>1,t[e+0+32]=we(n,r,i),t[e+1+32]=t[e+0+96]=we(r,i,o),t[e+2+32]=t[e+1+96]=we(i,o,a),t[e+3+32]=t[e+2+96]=we(o,a,s),t[e+3+64]=we(a,s,l),t[e+3+96]=we(s,l,u)}function Ae(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=we(n,r,i),t[e+3+0]=t[e+1+32]=we(r,i,o),t[e+3+32]=t[e+1+64]=we(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function Ee(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96],a=t[e-1-32],s=t[e+0-32],l=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+a+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=we(s,l,u),t[e+2+0]=we(a,s,l),t[e+1+0]=t[e+3+32]=we(n,a,s),t[e+1+32]=t[e+3+64]=we(r,n,a),t[e+1+64]=t[e+3+96]=we(i,r,n),t[e+1+96]=we(o,i,r)}function Le(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function Ne(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Pe(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Me(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Pe(r>>4,t,e)}function Oe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Pe(r>>3,t,e)}function Ie(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Pe(r>>3,t,e)}function Te(t,e){Pe(128,t,e)}function Re(t,e,n){var r=t[e-n],i=t[e+0],o=3*(i-r)+Nr[1020+t[e-2*n]-t[e+n]],a=Pr[112+(o+4>>3)];t[e-n]=Mr[255+r+Pr[112+(o+3>>3)]],t[e+0]=Mr[255+i-a]}function je(t,e,n,r){var i=t[e+0],o=t[e+n];return Or[255+t[e-2*n]-t[e-n]]>r||Or[255+o-i]>r}function Be(t,e,n,r){return 4*Or[255+t[e-n]-t[e+0]]+Or[255+t[e-2*n]-t[e+n]]<=r}function ze(t,e,n,r,i){var o=t[e-3*n],a=t[e-2*n],s=t[e-n],l=t[e+0],u=t[e+n],c=t[e+2*n],h=t[e+3*n];return 4*Or[255+s-l]+Or[255+a-u]>r?0:Or[255+t[e-4*n]-o]<=i&&Or[255+o-a]<=i&&Or[255+a-s]<=i&&Or[255+h-c]<=i&&Or[255+c-u]<=i&&Or[255+u-l]<=i}function qe(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Be(t,e+r,n,i)&&Re(t,e+r,n)}function We(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Be(t,e+r*n,1,i)&&Re(t,e+r*n,1)}function He(t,e,n,r){var i;for(i=3;0<i;--i)qe(t,e+=4*n,n,r)}function Ue(t,e,n,r){var i;for(i=3;0<i;--i)We(t,e+=4,n,r)}function Ye(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(ze(t,e,n,o,a))if(je(t,e,n,s))Re(t,e,n);else{var l=t,u=e,c=n,h=l[u-2*c],d=l[u-c],f=l[u+0],p=l[u+c],g=l[u+2*c],m=27*(v=Nr[1020+3*(f-d)+Nr[1020+h-p]])+63>>7,b=18*v+63>>7,v=9*v+63>>7;l[u-3*c]=Mr[255+l[u-3*c]+v],l[u-2*c]=Mr[255+h+b],l[u-c]=Mr[255+d+m],l[u+0]=Mr[255+f-m],l[u+c]=Mr[255+p-b],l[u+2*c]=Mr[255+g-v]}e+=r}}function Ve(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(ze(t,e,n,o,a))if(je(t,e,n,s))Re(t,e,n);else{var l=t,u=e,c=n,h=l[u-c],d=l[u+0],f=l[u+c],p=Pr[112+(4+(g=3*(d-h))>>3)],g=Pr[112+(g+3>>3)],m=p+1>>1;l[u-2*c]=Mr[255+l[u-2*c]+m],l[u-c]=Mr[255+h+g],l[u+0]=Mr[255+d-p],l[u+c]=Mr[255+f-m]}e+=r}}function $e(t,e,n,r,i,o){Ye(t,e,n,1,16,r,i,o)}function Ge(t,e,n,r,i,o){Ye(t,e,1,n,16,r,i,o)}function Ke(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ve(t,e+=4*n,n,1,16,r,i,o)}function Je(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ve(t,e+=4,1,n,16,r,i,o)}function Xe(t,e,n,r,i,o,a,s){Ye(t,e,i,1,8,o,a,s),Ye(n,r,i,1,8,o,a,s)}function Qe(t,e,n,r,i,o,a,s){Ye(t,e,1,i,8,o,a,s),Ye(n,r,1,i,8,o,a,s)}function Ze(t,e,n,r,i,o,a,s){Ve(t,e+4*i,i,1,8,o,a,s),Ve(n,r+4*i,i,1,8,o,a,s)}function tn(t,e,n,r,i,o,a,s){Ve(t,e+4,1,i,8,o,a,s),Ve(n,r+4,1,i,8,o,a,s)}function en(){this.ba=new at,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){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 rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){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 f,this.yc=new h}function an(){this.xb=this.a=0,this.l=new Vt,this.ca=new at,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=a(4,rn),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Vt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(t,e,n,r,i,o,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)i[o+e]=t+n[r+e]&255,t=i[o+e]}function un(t,e,n,r,i,o,a){var s;if(null==t)ln(null,null,n,r,i,o,a);else for(s=0;s<a;++s)i[o+s]=t[e+s]+n[r+s]&255}function cn(t,e,n,r,i,o,a){if(null==t)ln(null,null,n,r,i,o,a);else{var s,l=t[e+0],u=l,c=l;for(s=0;s<a;++s)u=c+(l=t[e+s])-u,c=n[r+s]+(-256&u?0>u?0:255:u)&255,u=l,i[o+s]=c}}function hn(t,n,i,a){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>i||0>=a||i+a>l)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new sn,(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=o(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var c=t.Fa,h=t.P,d=t.qc,f=t.mb,p=t.nb,g=h+1,m=d-1,v=u.l;if(e(null!=c&&null!=f&&null!=n),gi[0]=null,gi[1]=ln,gi[2]=un,gi[3]=cn,u.ca=f,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=d)n=0;else if(u.$a=3&c[h+0],u.Z=c[h+0]>>2&3,u.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(v.put=ft,v.ac=dt,v.bc=pt,v.ma=u,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,u.$a)t:{e(1==u.$a),n=At();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,b(n.m,c,g,m),!Et(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&_t(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Lt(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:a=l-i}e(null!=t.ga),e(i+a<=l);t:{if(n=(c=t.ga).c,l=c.l.o,0==c.$a){if(g=t.rc,m=t.Vc,v=t.Fa,h=t.P+1+i*n,d=t.mb,f=t.nb+i*n,e(h<=t.P+t.qc),0!=c.Z)for(e(null!=gi[c.Z]),u=0;u<a;++u)gi[c.Z](g,m,v,h,d,f,n),g=d,m=f,f+=n,h+=n;else for(u=0;u<a;++u)r(d,f,v,h,n),g=d,m=f,f+=n,h+=n;t.rc=g,t.Vc=m}else{if(e(null!=c.mc),n=i+a,e(null!=(u=c.mc)),e(n<=u.i),u.C>=n)n=1;else if(c.ic||mn(),c.ic){c=u.V,g=u.Ba,m=u.c;var y=u.i,w=(v=1,h=u.$/m,d=u.$%m,f=u.m,p=u.s,u.$),D=m*y,x=m*n,k=p.wc,C=w<x?wt(p,d,h):null;e(w<=D),e(n<=y),e(_t(p));e:for(;;){for(;!f.h&&w<x;){if(d&k||(C=wt(p,d,h)),e(null!=C),S(f),256>(y=vt(C.G[0],C.H[0],f)))c[g+w]=y,++w,++d>=m&&(d=0,++h<=n&&!(h%16)&&St(u,h));else{if(!(280>y)){v=0;break e}y=mt(y-256,f);var F,A=vt(C.G[4],C.H[4],f);if(S(f),!(w>=(A=bt(m,A=mt(A,f)))&&D-w>=y)){v=0;break e}for(F=0;F<y;++F)c[g+w+F]=c[g+w+F-A];for(w+=y,d+=y;d>=m;)d-=m,++h<=n&&!(h%16)&&St(u,h);w<x&&d&k&&(C=wt(p,d,h))}e(f.h==_(f))}St(u,h>n?n:h);break e}!v||f.h&&w<D?(v=0,u.a=f.h?5:3):u.$=w,n=v}else n=Ct(u,u.V,u.Ba,u.c,u.i,n,Nt);if(!n){a=0;break t}}i+a>=l&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function dn(t,e,n,r,i,o){for(;0<i--;){var a,s=t,l=e+(n?1:0),u=t,c=e+(n?0:3);for(a=0;a<r;++a){var h=u[c+4*a];255!=h&&(h*=32897,s[l+4*a+0]=s[l+4*a+0]*h>>23,s[l+4*a+1]=s[l+4*a+1]*h>>23,s[l+4*a+2]=s[l+4*a+2]*h>>23)}e+=o}}function fn(t,e,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var a=t[e+2*o+0],s=15&(u=t[e+2*o+1]),l=4369*s,u=(240&u|u>>4)*l>>16;t[e+2*o+0]=(240&a|a>>4)*l>>16&240|(15&a|a<<4)*l>>16>>4&15,t[e+2*o+1]=240&u|s}e+=i}}function pn(t,e,n,r,i,o,a,s){var l,u,c=255;for(u=0;u<i;++u){for(l=0;l<r;++l){var h=t[e+l];o[a+4*l]=h,c&=h}e+=n,a+=s}return 255!=c}function gn(t,e,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=t[e+o]>>8}function mn(){xr=dn,_r=fn,kr=pn,Sr=gn}function bn(n,r,i){t[n]=function(t,n,o,a,s,l,u,c,h,d,f,p,g,m,b,v,y){var w,D=y-1>>1,x=s[l+0]|u[c+0]<<16,_=h[d+0]|f[p+0]<<16;e(null!=t);var k=3*x+_+131074>>2;for(r(t[n+0],255&k,k>>16,g,m),null!=o&&(k=3*_+x+131074>>2,r(o[a+0],255&k,k>>16,b,v)),w=1;w<=D;++w){var S=s[l+w]|u[c+w]<<16,C=h[d+w]|f[p+w]<<16,F=x+S+_+C+524296,A=F+2*(S+_)>>3;k=A+x>>1,x=(F=F+2*(x+C)>>3)+S>>1,r(t[n+2*w-1],255&k,k>>16,g,m+(2*w-1)*i),r(t[n+2*w-0],255&x,x>>16,g,m+(2*w-0)*i),null!=o&&(k=F+_>>1,x=A+C>>1,r(o[a+2*w-1],255&k,k>>16,b,v+(2*w-1)*i),r(o[a+2*w+0],255&x,x>>16,b,v+(2*w+0)*i)),x=S,_=C}1&y||(k=3*x+_+131074>>2,r(t[n+y-1],255&k,k>>16,g,m+(y-1)*i),null!=o&&(k=3*_+x+131074>>2,r(o[a+y-1],255&k,k>>16,b,v+(y-1)*i)))}}function vn(){mi[Ir]=bi,mi[Tr]=yi,mi[Rr]=vi,mi[jr]=wi,mi[Br]=Di,mi[zr]=xi,mi[qr]=_i,mi[Wr]=yi,mi[Hr]=wi,mi[Ur]=Di,mi[Yr]=xi}function yn(t){return t&~Ei?0>t?0:255:t>>Ai}function wn(t,e){return yn((19077*t>>8)+(26149*e>>8)-14234)}function Dn(t,e,n){return yn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function xn(t,e){return yn((19077*t>>8)+(33050*e>>8)-17685)}function _n(t,e,n,r,i){r[i+0]=wn(t,n),r[i+1]=Dn(t,e,n),r[i+2]=xn(t,e)}function kn(t,e,n,r,i){r[i+0]=xn(t,e),r[i+1]=Dn(t,e,n),r[i+2]=wn(t,n)}function Sn(t,e,n,r,i){var o=Dn(t,e,n);e=o<<3&224|xn(t,e)>>3,r[i+0]=248&wn(t,n)|o>>5,r[i+1]=e}function Cn(t,e,n,r,i){var o=240&xn(t,e)|15;r[i+0]=240&wn(t,n)|Dn(t,e,n)>>4,r[i+1]=o}function Fn(t,e,n,r,i){r[i+0]=255,_n(t,e,n,r,i+1)}function An(t,e,n,r,i){kn(t,e,n,r,i),r[i+3]=255}function En(t,e,n,r,i){_n(t,e,n,r,i),r[i+3]=255}function Ln(e,n,r){t[e]=function(t,e,i,o,a,s,l,u,c){for(var h=u+(-2&c)*r;u!=h;)n(t[e+0],i[o+0],a[s+0],l,u),n(t[e+1],i[o+0],a[s+0],l,u+r),e+=2,++o,++s,u+=2*r;1&c&&n(t[e+0],i[o+0],a[s+0],l,u)}}function Nn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Pn(t,e,n,r,i){switch(t>>>30){case 3:or(e,n,r,i,0);break;case 2:ar(e,n,r,i);break;case 1:lr(e,n,r,i)}}function Mn(t,e){var n,o,a=e.M,s=e.Nb,l=t.oc,u=t.pc+40,c=t.oc,h=t.pc+584,d=t.oc,f=t.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)c[h+32*n-1]=129,d[f+32*n-1]=129;for(0<a?l[u-1-32]=c[h-1-32]=d[f-1-32]=129:(i(l,u-32-1,127,21),i(c,h-32-1,127,9),i(d,f-32-1,127,9)),o=0;o<t.za;++o){var p=e.ya[e.aa+o];if(0<o){for(n=-1;16>n;++n)r(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)r(c,h+32*n-4,c,h+32*n+4,4),r(d,f+32*n-4,d,f+32*n+4,4)}var g=t.Gd,m=t.Hd+o,b=p.ad,v=p.Hc;if(0<a&&(r(l,u-32,g[m].y,0,16),r(c,h-32,g[m].f,0,8),r(d,f-32,g[m].ea,0,8)),p.Za){var y=l,w=u-32+16;for(0<a&&(o>=t.za-1?i(y,w,g[m].y[15],4):r(y,w,g[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,v<<=2)y=l,w=u+Ri[n],hi[p.Ob[n]](y,w),Pn(v,b,16*+n,y,w)}else if(y=Nn(o,a,p.Ob[0]),ci[y](l,u),0!=v)for(n=0;16>n;++n,v<<=2)Pn(v,b,16*+n,l,u+Ri[n]);for(n=p.Gc,y=Nn(o,a,p.Dd),di[y](c,h),di[y](d,f),v=b,y=c,w=h,255&(p=0|n)&&(170&p?sr(v,256,y,w):ur(v,256,y,w)),p=d,v=f,255&(n>>=8)&&(170&n?sr(b,320,p,v):ur(b,320,p,v)),a<t.Ub-1&&(r(g[m].y,0,l,u+480,16),r(g[m].f,0,c,h+224,8),r(g[m].ea,0,d,f+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*o+16*s*t.R,b=t.qa,p=t.ra+8*o+n,v=t.Ha,y=t.Ia+8*o+n,n=0;16>n;++n)r(g,m+n*t.R,l,u+32*n,16);for(n=0;8>n;++n)r(b,p+n*t.B,c,h+32*n,8),r(v,y+n*t.B,d,f+32*n,8)}}function On(t,r,i,o,a,s,l,u,c){var h=[0],d=[0],f=0,p=null!=c?c.kd:0,g=null!=c?c:new nn;if(null==t||12>i)return 7;g.data=t,g.w=r,g.ha=i,r=[r],i=[i],g.gb=[g.gb];t:{var m=r,v=i,y=g.gb;if(e(null!=t),e(null!=v),e(null!=y),y[0]=0,12<=v[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){y=3;break t}var w=P(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>v[0]-8){y=7;break t}y[0]=w,m[0]+=12,v[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var x=t;v=r,y=i;var _=h,k=d,S=m=[0];if((A=f=[f])[0]=0,8>y[0])y=7;else{if(!n(x,v[0],"VP8X")){if(10!=P(x,v[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var C=P(x,v[0]+8),F=1+N(x,v[0]+12);if(2147483648<=F*(x=1+N(x,v[0]+15))){y=3;break t}null!=S&&(S[0]=C),null!=_&&(_[0]=F),null!=k&&(k[0]=x),v[0]+=18,y[0]-=18,A[0]=1}y=0}}if(f=f[0],m=m[0],0!=y)return y;if(v=!!(2&m),!w&&f)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=v),null!=u&&(u[0]=0),l=h[0],m=d[0],f&&v&&null==c){y=0;break}if(4>i){y=7;break}if(w&&f||!w&&!f&&!n(t,r[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{C=t,y=r,w=i;var A=g.gb;_=g.na,k=g.P,S=g.Sa,F=22,e(null!=C),e(null!=w),x=y[0];var E=w[0];for(e(null!=_),e(null!=S),_[0]=null,k[0]=null,S[0]=0;;){if(y[0]=x,w[0]=E,8>E){y=7;break t}var L=P(C,x+4);if(4294967286<L){y=3;break t}var M=8+L+1&-2;if(F+=M,0<A&&F>A){y=3;break t}if(!n(C,x,"VP8 ")||!n(C,x,"VP8L")){y=0;break t}if(E[0]<M){y=7;break t}n(C,x,"ALPH")||(_[0]=C,k[0]=x+8,S[0]=L),x+=M,E-=M}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(A=t,y=r,w=i,_=g.gb[0],k=g.Ja,S=g.xa,C=y[0],x=!n(A,C,"VP8 "),F=!n(A,C,"VP8L"),e(null!=A),e(null!=w),e(null!=k),e(null!=S),8>w[0])y=7;else{if(x||F){if(A=P(A,C+4),12<=_&&A>_-12){y=3;break t}if(p&&A>w[0]-8){y=7;break t}k[0]=A,y[0]+=8,w[0]-=8,S[0]=F}else S[0]=5<=w[0]&&47==A[C+0]&&!(A[C+4]>>5),k[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||v||(u[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>i){y=7;break}u=l,p=m,v=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],A=[0],_=[0],b(k=new D,t,r,i),gt(k,w,A,_)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=A[0]),null!=v&&(v[0]=_[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Kt(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,v=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!v||!t?t=0:(l&&(l[0]=v),u&&(u[0]=t),t=1))}if(!t)return 3;if(l=l[0],m=m[0],f&&(h[0]!=l||d[0]!=m))return 3;null!=c&&(c[0]=g,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==y||7==y&&f&&null==c?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=o&&(o[0]=l),null!=a&&(a[0]=m),0):y}function In(t,e,n){var r=e.width,i=e.height,o=0,a=0,s=r,l=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,o=t.v,a=t.j,11>n||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=l||o+s>r||a+l>i))return 0;if(e.v=o,e.j=a,e.va=o+s,e.o=a+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!T(s,l,n=[t.ib],o=[t.hb]))return 0;e.ib=n[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Tn(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 Rn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,a=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=i||0>=a||s+i>t||l+a>e)return 2;t=i,e=a}if(n.da){if(!T(t,e,i=[n.ib],a=[n.hb]))return 2;t=i[0],e=a[0]}}r.width=t,r.height=e;t:{var u=r.width,c=r.height;if(t=r.S,0>=u||0>=c||!(t>=Ir&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=a=i=e=0;var h=(l=u*zi[t])*c;if(11>t||(a=(c+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*c)),null==(c=o(h+2*a+s))){t=1;break t}r.sd=c,11>t?((u=r.f.RGBA).eb=c,u.fb=0,u.A=l,u.size=h):((u=r.f.kb).y=c,u.O=0,u.fa=l,u.Fd=h,u.f=c,u.N=0+h,u.Ab=e,u.Cd=a,u.ea=c,u.W=0+h+a,u.Db=e,u.Ed=a,12==t&&(u.F=c,u.J=0+h+2*a),u.Tc=s,u.lb=i)}if(e=1,i=r.S,a=r.width,s=r.height,i>=Ir&&13>i)if(11>i)t=r.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+a<=t.size,e&=l>=a*zi[i],e&=null!=t.eb;else{t=r.f.kb,l=(a+1)/2,h=(s+1)/2,u=Math.abs(t.fa),c=Math.abs(t.Ab);var d=Math.abs(t.Db),f=Math.abs(t.lb),p=f*(s-1)+a;e&=u*(s-1)+a<=t.Fd,e&=c*(h-1)+l<=t.Cd,e=(e&=d*(h-1)+l<=t.Ed)&u>=a&c>=l&d>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=f>=a,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Tn(r)),t}var jn=64,Bn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],zn=24,qn=32,Wn=8,Hn=[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];B("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return q(q(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return q(t,e[n-1])},t.Predictor7=function(t,e,n){return q(t,e[n+0])},t.Predictor8=function(t,e,n){return q(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return q(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return q(q(t,e[n-1]),q(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=U(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+U(r>>16&255,t>>16&255,e>>16&255)+U(r>>8&255,t>>8&255,e>>8&255)+U(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(W((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|W((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|W((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|W((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(H((t=q(t,e[n+0]))>>24&255,r>>24&255)<<24|H(t>>16&255,r>>16&255)<<16|H(t>>8&255,r>>8&255)<<8|H(255&t,255&r))>>>0};var Un=t.PredictorAdd0;t.PredictorAdd1=Y,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var Yn=t.PredictorAdd2;K("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),K("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Vn,$n=t.ColorIndexInverseTransform,Gn=t.MapARGB,Kn=t.VP8LColorIndexInverseTransformAlpha,Jn=t.MapAlpha,Xn=t.VP8LPredictorsAdd=[];Xn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Qn,Zn,tr,er,nr,rr,ir,or,ar,sr,lr,ur,cr,hr,dr,fr,pr,gr,mr,br,vr,yr,wr,Dr,xr,_r,kr,Sr,Cr=o(511),Fr=o(2041),Ar=o(225),Er=o(767),Lr=0,Nr=Fr,Pr=Ar,Mr=Er,Or=Cr,Ir=0,Tr=1,Rr=2,jr=3,Br=4,zr=5,qr=6,Wr=7,Hr=8,Ur=9,Yr=10,Vr=[2,3,7],$r=[3,3,11],Gr=[280,256,256,256,40],Kr=[0,1,1,1,0],Jr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xr=[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],Qr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zr=8,ti=[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],ei=[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],ni=null,ri=[[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]],ii=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ai=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],si=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],li=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ui=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ci=[],hi=[],di=[],fi=1,pi=2,gi=[],mi=[];bn("UpsampleRgbLinePair",_n,3),bn("UpsampleBgrLinePair",kn,3),bn("UpsampleRgbaLinePair",En,4),bn("UpsampleBgraLinePair",An,4),bn("UpsampleArgbLinePair",Fn,4),bn("UpsampleRgba4444LinePair",Cn,2),bn("UpsampleRgb565LinePair",Sn,2);var bi=t.UpsampleRgbLinePair,vi=t.UpsampleBgrLinePair,yi=t.UpsampleRgbaLinePair,wi=t.UpsampleBgraLinePair,Di=t.UpsampleArgbLinePair,xi=t.UpsampleRgba4444LinePair,_i=t.UpsampleRgb565LinePair,ki=16,Si=1<<ki-1,Ci=-227,Fi=482,Ai=6,Ei=(256<<Ai)-1,Li=0,Ni=o(256),Pi=o(256),Mi=o(256),Oi=o(256),Ii=o(Fi-Ci),Ti=o(Fi-Ci);Ln("YuvToRgbRow",_n,3),Ln("YuvToBgrRow",kn,3),Ln("YuvToRgbaRow",En,4),Ln("YuvToBgraRow",An,4),Ln("YuvToArgbRow",Fn,4),Ln("YuvToRgba4444Row",Cn,2),Ln("YuvToRgb565Row",Sn,2);var Ri=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ji=[0,2,8],Bi=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,n,s,l,u){var c=Tr,h=new en,d=new at;h.ba=d,d.S=c,d.width=[d.width],d.height=[d.height];var f=d.width,p=d.height,g=new st;if(null==g||null==t)var m=2;else e(null!=g),m=On(t,n,s,g.width,g.height,g.Pd,g.Qd,g.format,null);if(0!=m?f=0:(null!=f&&(f[0]=g.width[0]),null!=p&&(p[0]=g.height[0]),f=1),f){d.width=d.width[0],d.height=d.height[0],null!=l&&(l[0]=d.width),null!=u&&(u[0]=d.height);t:{if(l=new Vt,(u=new nn).data=t,u.w=n,u.ha=s,u.kd=1,n=[0],e(null!=u),(0==(t=On(u.data,u.w,u.ha,null,null,null,n,null,u))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=h),l.data=u.data,l.w=u.w+u.offset,l.ha=u.ha-u.offset,l.put=ft,l.ac=dt,l.bc=pt,l.ma=h,u.xa){if(null==(t=At())){h=1;break t}if(function(t,n){var r=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,b(t.m,n.data,n.w,n.ha),!gt(t.m,r,i,o)){t.a=3;break e}if(t.xb=pi,n.width=r[0],n.height=i[0],!Et(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,l)){if(l=0==(n=Rn(l.width,l.height,h.Oa,h.ba))){e:{l=t;n:for(;;){if(null==l){l=0;break e}if(e(null!=l.s.yc),e(null!=l.s.Ya),e(0<l.s.Wb),e(null!=(s=l.l)),e(null!=(u=s.ma)),0!=l.xb){if(l.ca=u.ba,l.tb=u.tb,e(null!=l.ca),!In(u.Oa,s,jr)){l.a=2;break n}if(!Lt(l,s.width))break n;if(s.da)break n;if((s.da||rt(l.ca.S))&&mn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&mn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!M(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!Ct(l,l.V,l.Ba,l.c,l.i,s.o,xt))break n;u.Dc=l.Ma,l=1;break e}e(0!=l.a),l=0}l=!l}l&&(n=t.a)}else n=t.a}else{if(null==(t=new $t)){h=1;break t}if(t.Fa=u.na,t.P=u.P,t.qc=u.Sa,Jt(t,l)){if(0==(n=Rn(l.width,l.height,h.Oa,h.ba))){if(t.Aa=0,s=h.Oa,e(null!=(u=t)),null!=s){if(0<(f=0>(f=s.Md)?0:100<f?255:255*f/100)){for(p=g=0;4>p;++p)12>(m=u.pb[p]).lc&&(m.ia=f*Bi[0>m.lc?0:m.lc]>>3),g|=m.ia;g&&(alert("todo:VP8InitRandom"),u.ia=1)}u.Ga=s.Id,100<u.Ga?u.Ga=100:0>u.Ga&&(u.Ga=0)}(function(t,n){if(null==t)return 0;if(null==n)return Gt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Jt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=ji[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.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=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var c=t.Qa.Lb[s];t.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],d=c;if(l.Pc&&(d+=l.vd[0],u&&(d+=l.od[0])),0<(d=0>d?0:63<d?63:d)){var f=d;0<l.wb&&(f=4<l.wb?f>>2:f>>1)>9-l.wb&&(f=9-l.wb),1>f&&(f=1),h.dd=f,h.tc=2*d+f,h.ld=40<=d?2:15<=d?1:0}else h.tc=0;h.La=u}}}s=0}else Gt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=1);e:{s=t.Ic,l=4*(f=t.za);var p=32*f,g=f+1,m=0<t.L?f*(0<t.Aa?2:1):0,b=(2==t.Aa?2:1)*f;if((h=l+832+(u=3*(16*s+ji[t.L])/2*p)+(c=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=o(h),t.Fc=0,null==t.Ec){s=Gt(t,1,"no memory during frame initialization.");break e}t.Vb=h}h=t.Ec,d=t.Fc,t.Ac=h,t.Bc=d,d+=l,t.Gd=a(p,Ht),t.Hd=0,t.rb=a(g+1,Bt),t.sb=1,t.wa=m?a(m,jt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=f),e(!0),t.oc=h,t.pc=d,d+=832,t.ya=a(b,qt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=f),t.R=16*f,t.B=8*f,f=(p=ji[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=d+f,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+=u,t.mb=c?h:null,t.nb=c?d:null,e(d+c<=t.Fc+t.Vb),Qt(t),i(t.Ac,t.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Lr){for(s=-255;255>=s;++s)Cr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Fr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Ar[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Er[255+s]=0>s?0:255<s?255:s;Lr=1}ir=le,or=ie,sr=oe,lr=ae,ur=se,ar=re,cr=$e,hr=Ge,dr=Xe,fr=Qe,pr=Ke,gr=Je,mr=Ze,br=tn,vr=qe,yr=We,wr=He,Dr=Ue,hi[0]=_e,hi[1]=ce,hi[2]=De,hi[3]=xe,hi[4]=ke,hi[5]=Ce,hi[6]=Se,hi[7]=Fe,hi[8]=Ee,hi[9]=Ae,ci[0]=me,ci[1]=de,ci[2]=fe,ci[3]=pe,ci[4]=be,ci[5]=ve,ci[6]=ye,di[0]=Me,di[1]=he,di[2]=Le,di[3]=Ne,di[4]=Ie,di[5]=Oe,di[6]=Te,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var a,s=t.Jc[t.M&t.Xb],l=t.m,u=t;for(a=0;a<u.za;++a){var c=l,h=u,d=h.Ac,f=h.Bc+4*a,p=h.zc,g=h.ya[h.aa+a];if(h.Qa.Bb?g.$b=A(c,h.Pa.jb[0])?2+A(c,h.Pa.jb[2]):A(c,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=A(c,h.Bd)),g.Za=!A(c,145)+0,g.Za){var m=g.Ob,b=0;for(h=0;4>h;++h){var v,y=p[0+h];for(v=0;4>v;++v){y=si[d[f+v]][y];for(var w=oi[A(c,y[0])];0<w;)w=oi[2*w+A(c,y[w])];y=-w,d[f+v]=y}r(m,b,d,f,4),b+=4,p[0+h]=y}}else y=A(c,156)?A(c,128)?1:3:A(c,163)?2:0,g.Ob[0]=y,i(d,f,y,4),i(p,0,y,4);g.Dd=A(c,142)?A(c,114)?A(c,183)?1:3:2:0}if(u.m.Ka)return Gt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,c=(l=t).rb[l.sb-1],d=l.rb[l.sb+l.ja],a=l.ya[l.aa+l.ja],f=l.kc?a.Ad:0)c.la=d.la=0,a.Za||(c.Na=d.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var D,x;if(c=d,d=u,f=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],h=p.ad,m=0,b=l.rb[l.sb-1],y=v=0,i(h,m,0,384),p.Za)var _=0,k=f[3];else{w=o(16);var S=c.Na+b.Na;if(S=ni(d,f[1],S,g.Eb,0,w,0),c.Na=b.Na=(0<S)+0,1<S)ir(w,0,h,m);else{var C=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=C}_=1,k=f[0]}var F=15&c.la,E=15&b.la;for(w=0;4>w;++w){var L=1&E;for(C=x=0;4>C;++C)F=F>>1|(L=(S=ni(d,k,S=L+(1&F),g.Sc,_,h,m))>_)<<7,x=x<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;F>>=4,E=E>>1|L<<7,v=(v<<8|x)>>>0}for(k=F,_=E>>4,D=0;4>D;D+=2){for(x=0,F=c.la>>4+D,E=b.la>>4+D,w=0;2>w;++w){for(L=1&E,C=0;2>C;++C)S=L+(1&F),F=F>>1|(L=0<(S=ni(d,f[2],S,g.Qc,0,h,m)))<<3,x=x<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;F>>=2,E=E>>1|L<<5}y|=x<<4*D,k|=F<<4<<D,_|=(240&E)<<D}c.la=k,b.la=_,p.Hc=v,p.Gc=y,p.ia=43690&y?0:g.ia,f=!(v|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[a.$b][a.Za],l.wa[l.Y+l.ja].La|=!f),u.Ka)return Gt(t,7,"Premature end-of-file encountered.")}if(Qt(t),l=n,u=1,a=(s=t).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(a.M=s.M,a.uc=c,Mn(s,a),u=1,a=(x=s.D).Nb,c=(y=ji[s.L])*s.R,d=y/2*s.B,w=16*a*s.R,C=8*a*s.B,f=s.sa,p=s.ta-c+w,g=s.qa,h=s.ra-d+C,m=s.Ha,b=s.Ia-d+C,E=0==(F=x.M),v=F>=s.Va-1,2==s.Aa&&Mn(s,x),x.uc)for(L=(S=s).D.M,e(S.D.uc),x=S.yb;x<S.Hb;++x){_=x,k=L;var N=(P=(q=S).D).Nb;D=q.R;var P=P.wa[P.Y+_],M=q.sa,O=q.ta+16*N*D+16*_,I=P.dd,T=P.tc;if(0!=T)if(e(3<=T),1==q.L)0<_&&yr(M,O,D,T+4),P.La&&Dr(M,O,D,T),0<k&&vr(M,O,D,T+4),P.La&&wr(M,O,D,T);else{var R=q.B,j=q.qa,B=q.ra+8*N*R+8*_,z=q.Ha,q=q.Ia+8*N*R+8*_;N=P.ld,0<_&&(hr(M,O,D,T+4,I,N),fr(j,B,z,q,R,T+4,I,N)),P.La&&(gr(M,O,D,T,I,N),br(j,B,z,q,R,T,I,N)),0<k&&(cr(M,O,D,T+4,I,N),dr(j,B,z,q,R,T+4,I,N)),P.La&&(pr(M,O,D,T,I,N),mr(j,B,z,q,R,T,I,N))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*F,F=16*(F+1),E?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+C,l.ea=s.Ha,l.W=s.Ia+C):(x-=y,l.y=f,l.O=p,l.f=g,l.N=h,l.ea=m,l.W=b),v||(F-=y),F>l.o&&(F=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&x<F&&(l.J=hn(s,l,x,F-x),l.F=s.mb,null==l.F&&0==l.F.length)){u=Gt(s,3,"Could not decode alpha data.");break e}x<l.j&&(y=l.j-x,x=l.j,e(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),x<F&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=F-x,u=l.put(l))}a+1!=s.Ic||v||(r(s.sa,s.ta-c,f,p+16*s.R,c),r(s.qa,s.ra-d,g,h+8*s.B,d),r(s.Ha,s.Ia-d,m,b+8*s.B,d))}if(!u)return Gt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0})(t,l)||(n=t.a)}}else n=t.a}0==n&&null!=h.Oa&&h.Oa.fd&&(n=Tn(h.ba))}h=n}c=0!=h?null:11>c?d.f.RGBA.eb:d.f.kb.y}else c=null;return c};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function c(t,e){return t[e+0]|t[e+1]<<8}function h(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function d(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],p=[0],g=[],m=new l,b=t,v=function(t,e){var n={},r=0,i=!1,o=0,a=0;if(n.frames=[],!function(t,e){for(var n=0;n<4;n++)if(t[e+n]!="RIFF".charCodeAt(n))return!0;return!1}(t,e)){for(d(t,e+=4),e+=8;e<t.length;){var s=u(t,e),l=d(t,e+=4);e+=4;var f=l+(1&l);switch(s){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=i?a:e-8,m.src_size=o+l+8,r++,i&&(i=!1,o=0,a=0);break;case"VP8X":(m=n.header={}).feature_flags=t[e];var p=e+4;m.canvas_width=1+h(t,p),p+=3,m.canvas_height=1+h(t,p),p+=3;break;case"ALPH":i=!0,o=f+8,a=e-8;break;case"ANIM":(m=n.header).bgcolor=d(t,e),p=e+4,m.loop_count=c(t,p),p+=2;break;case"ANMF":var g,m;(m=n.frames[r]={}).offset_x=2*h(t,e),e+=3,m.offset_y=2*h(t,e),e+=3,m.width=1+h(t,e),e+=3,m.height=1+h(t,e),e+=3,m.duration=h(t,e),e+=3,g=t[e++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=s&&(e+=f)}return n}}(b,0);v.response=b,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,w=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,f=[y.canvas_height],p=[y.canvas_width];for(var D=0;D<w.length&&0!=w[D].blend;D++);}var x=w[0],_=m.WebPDecodeRGBA(b,x.src_off,x.src_size,p,f);x.rgba=_,x.imgwidth=p[0],x.imgheight=f[0];for(var k=0;k<p[0]*f[0]*4;k++)g[k]=_[k];return this.width=p,this.height=f,this.data=g,this}function de(){var t,e=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function fe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(t){var e,n,i,o,a,s,l,u,h,d=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 u,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,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};t.events.push(["initialized",function(){this.context2d=new f(this),e=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,h=new d}]);var f=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[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]),h.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(t){t instanceof d&&(h=t)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(t){h.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=p(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=p(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,f=null,g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(t){c=null,f=null,g=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 n=e[1];e[2];var r=e[3],i=e[4];e[5];var o=e[6],a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?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,n,r=[],i=t.trim();if(""===i)return Kt;if(i in jt)return[jt[i]];for(;""!==i;){switch(n=null,e=(i=zt(i)).charAt(0)){case'"':case"'":n=qt(i.substring(1),e);break;default:n=Wt(i)}if(null===n)return Kt;if(r.push(n[0]),""!==(i=zt(n[1]))&&","!==i.charAt(0))return Kt;i=i.replace(/^,/,"")}return r}(o);if(this.fontFaces){var l=function(t,e){var n=t.getFontList(),r=JSON.stringify(n);if(null===c||f!==r){var i=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(n);c=function(t){for(var e={},n=0;n<t.length;++n){var r=It(t[n]),i=r.family,o=r.stretch,a=r.style,s=r.weight;e[i]=e[i]||{},e[i][o]=e[i][o]||{},e[i][o][a]=e[i][o][a]||{},e[i][o][a][s]=r}return e}(i.concat(e)),f=r}return c}(this.pdf,this.fontFaces),u=s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})),h=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Rt,n.genericFontFamilies||{}),o=null,a=null,s=0;s<e.length;++s)if(i[(o=It(e[s])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){a=t[o.family];break}if(!(a=a||t[r]))throw new Error("Could not find a font-family for the rule '"+Bt(o)+"' and default family '"+r+"'.");if(a=function(t,e){if(e[t])return e[t];var n=Pt[t],r=n<=Pt.normal?-1:1,i=Tt(e,Nt,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(o.stretch,a),a=function(t,e){if(e[t])return e[t];for(var n=Lt[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(o.style,a),!(a=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 n=Ot[t],r=Tt(e,Mt,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Bt(o)+"'.");return a}(l,u);this.pdf.setFont(h.ref.name,h.ref.style)}else{var d="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var p="",g={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"},m=0;m<s.length;m++){if(void 0!==this.pdf.internal.getFont(s[m],d,{noFallback:!0,disableWarning:!0})){p=s[m];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(s[m],"bold",{noFallback:!0,disableWarning:!0}))p=s[m],d="bold";else if(void 0!==this.pdf.internal.getFont(s[m],"normal",{noFallback:!0,disableWarning:!0})){p=s[m],d="normal";break}}if(""===p)for(var b=0;b<s.length;b++)if(g[s[b]]){p=g[s[b]];break}p=""===p?"Times":p,this.pdf.setFont(p,d)}}}}),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,z.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,z.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.setLineDash=function(t){this.lineDash=t},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){_.call(this,"fill",!1)},f.prototype.stroke=function(){_.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw c.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},f.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===r(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw c.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw c.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),o=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},f.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(i,o)),l=this.ctx.transform.applyToPoint(new s(t,e)),u=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},f.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw c.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(t,e));t=a.x,e=a.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},f.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.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,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},f.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},f.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+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)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(t){var e,n,r,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,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new g(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},b=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw c.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!m.call(this)){var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;N.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw c.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){r=isNaN(r)?void 0:r;var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;N.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw c.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/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*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw c.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw c.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new u(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw c.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw c.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new u(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},f.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new u(t,e,n,r,i,o)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(t,e,n,r,i,o,a,s,c){var h=this.pdf.getImageProperties(t),d=1,f=1,p=1,g=1;void 0!==r&&void 0!==s&&(p=s/r,g=c/i,d=h.width/r*s/r,f=h.height/i*c/i),void 0===o&&(o=e,a=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,c=i),void 0===r&&void 0===s&&(s=h.width,c=h.height);var m=this.ctx.transform.decompose(),b=R(m.rotate.shx),w=new u,_=(w=(w=(w=w.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToRectangle(new l(o-e*p,a-n*g,r*d,i*f));if(this.autoPaging){for(var S,C=y.call(this,_),F=[],A=0;A<C.length;A+=1)-1===F.indexOf(C[A])&&F.push(C[A]);x(F);for(var E=F[0],L=F[F.length-1],N=E;N<L+1;N++){this.pdf.setPage(N);var P=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],M=1===N?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===N?0:O+(N-2)*I;if(0!==this.ctx.clip_path.length){var j=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(S,this.posX+this.margin[3],-T+M+this.ctx.prevPageLastElemOffset),k.call(this,"fill",!0),this.path=j}var B=JSON.parse(JSON.stringify(_));B=D([B],this.posX+this.margin[3],-T+M+this.ctx.prevPageLastElemOffset)[0];var z=(N>E||N<L)&&v.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,I,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",B.x,B.y,B.w,B.h,null,null,b),z&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",_.x,_.y,_.w,_.h,null,null,b)};var y=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||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":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var o=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"bct":var a=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)w.call(this);return r},w=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},D=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;default:t[r].x+=e,t[r].y+=n}return t},x=function(t){return t.sort((function(t,e){return t-e}))},_=function(t,e){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,o=this.lineWidth,a=Math.abs(o*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var l,u,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),d=[],f=0;f<h.length;f++)if(void 0!==h[f].x)for(var p=y.call(this,h[f]),g=0;g<p.length;g+=1)-1===d.indexOf(p[g])&&d.push(p[g]);for(var m=0;m<d.length;m++)for(;this.pdf.internal.getNumberOfPages()<d[m];)w.call(this);x(d);for(var b=d[0],_=d[d.length-1],S=b;S<_+1;S++){this.pdf.setPage(S),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=a,this.lineJoin=s;var C=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],F=1===S?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],E=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],L=1===S?0:A+(S-2)*E;if(0!==this.ctx.clip_path.length){var N=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(l,this.posX+this.margin[3],-L+F+this.ctx.prevPageLastElemOffset),k.call(this,t,!0),this.path=N}if(u=JSON.parse(JSON.stringify(c)),this.path=D(u,this.posX+this.margin[3],-L+F+this.ctx.prevPageLastElemOffset),!1===e||0===S){var P=(S>b||S<_)&&v.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],C,E,null).clip().discardPath()),k.call(this,t,e),P&&this.pdf.restoreGraphicsState()}this.lineWidth=o}this.path=c}else this.lineWidth=a,k.call(this,t,e),this.lineWidth=o},k=function(t,e){if(("stroke"!==t||e||!b.call(this))&&("stroke"===t||e||!m.call(this))){for(var n,r,i=[],o=this.path,a=0;a<o.length;a++){var s=o[a];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(o[a-1]&&!isNaN(o[a-1].x)&&(n=[s.x-o[a-1].x,s.y-o[a-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=o[a-1].x+2/3*(s.x1-o[a-1].x),c=o[a-1].y+2/3*(s.y1-o[a-1].y),h=s.x+2/3*(s.x1-s.x),d=s.y+2/3*(s.y1-s.y),f=s.x,p=s.y;n=[u-o[a-1].x,c-o[a-1].y,h-o[a-1].x,d-o[a-1].y,f-o[a-1].x,p-o[a-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var g=!1,v=0;v<i.length;v++)if(i[v].arc)for(var y=i[v].abs,w=0;w<y.length;w++){var D=y[w];"arc"===D.type?F.call(this,D.x,D.y,D.radius,D.startAngle,D.endAngle,D.counterclockwise,void 0,e,!g):P.call(this,D.x,D.y),g=!0}else if(!0===i[v].close)this.pdf.internal.out("h"),g=!1;else if(!0!==i[v].begin){var x=i[v].start.x,_=i[v].start.y;M.call(this,i[v].deltas,x,_),g=!0}r&&A.call(this,r),e&&E.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},C=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.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},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(t,e,n,r,i,o,a,s,l){for(var u=I.call(this,n,r,i,o),c=0;c<u.length;c++){var h=u[c];0===c&&(l?L.call(this,h.x1+t,h.y1+e):P.call(this,h.x1+t,h.y1+e)),O.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?E.call(this):A.call(this,a)},A=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(t,e){this.pdf.internal.out(n(t)+" "+i(e)+" m")},N=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n,r,i,o=this.pdf.getTextDimensions(t.text),a=S.call(this,t.y),c=C.call(this,a)-o.h,h=this.ctx.transform.applyToPoint(new s(t.x,a));if(this.autoPaging){var d=this.ctx.transform.decompose(),f=new u;f=(f=(f=f.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var p=this.ctx.transform.applyToRectangle(new l(t.x,a,o.w,o.h)),g=f.applyToRectangle(new l(t.x,c,o.w,o.h)),m=y.call(this,g),b=[],w=0;w<m.length;w+=1)-1===b.indexOf(m[w])&&b.push(m[w]);x(b);for(var _=b[0],F=b[b.length-1],A=_;A<F+1;A++){this.pdf.setPage(A);var E=1===A?this.posY+this.margin[0]:this.margin[0],L=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],N=this.pdf.internal.pageSize.height-this.margin[2],P=N-this.margin[0],M=this.pdf.internal.pageSize.width-this.margin[1],O=M-this.margin[3],I=1===A?0:L+(A-2)*P;if(0!==this.ctx.clip_path.length){var T=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(n,this.posX+this.margin[3],-1*I+E),k.call(this,"fill",!0),this.path=T}var R=D([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-I+E+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale);var j="text"!==this.autoPaging;if(j||R.y+R.h<=N){if(j||R.y>=E&&R.x<=M){var B=j?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||M-R.x)[0],z=D([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-I+E+this.ctx.prevPageLastElemOffset)[0],q=j&&(A>_||A<F)&&v.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,P,null).clip().discardPath()),this.pdf.text(B,z.x,z.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),q&&this.pdf.restoreGraphicsState()}}else R.y<N&&(this.ctx.prevPageLastElemOffset+=N-R.y);t.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else t.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale),this.pdf.text(t.text,h.x+this.posX,h.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)},P=function(t,e,r,o){r=r||0,o=o||0,this.pdf.internal.out(n(t+r)+" "+i(e+o)+" l")},M=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},O=function(t,n,r,i,s,l,u,c){this.pdf.internal.out([e(o(r+t)),e(a(i+n)),e(o(s+t)),e(a(l+n)),e(o(u+t)),e(a(c+n)),"c"].join(" "))},I=function(t,e,n,r){for(var i=2*Math.PI,o=Math.PI/2;e>n;)e-=i;var a=Math.abs(n-e);a<i&&r&&(a=i-a);for(var s=[],l=r?-1:1,u=e;a>1e-5;){var c=u+l*Math.min(a,o);s.push(T.call(this,t,u,c)),a-=Math.abs(c-u),u=c}return s},T=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,l=a*a+s*s,u=l+a*i+s*o,c=4/3*(Math.sqrt(2*l*u)-u)/(a*o-s*i),h=a-c*s,d=s+c*a,f=h,p=-d,g=r+e,m=Math.cos(g),b=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-d*b,y2:h*b+d*m,x3:f*m-p*b,y3:f*b+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},R=function(t){return 180*t/Math.PI},j=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),u=i+.5*(n-i),c=o+.5*(r-o),h=Math.min(t,i,a,u),d=Math.max(t,i,a,u),f=Math.min(e,o,s,c),p=Math.max(e,o,s,c);return new l(h,f,d-h,p-f)},B=function(t,e,n,r,i,o,a,s){var u,c,h,d,f,p,g,m,b,v,y,w,D,x,_=n-t,k=r-e,S=i-n,C=o-r,F=a-i,A=s-o;for(c=0;c<41;c++)b=(g=(h=t+(u=c/40)*_)+u*((f=n+u*S)-h))+u*(f+u*(i+u*F-f)-g),v=(m=(d=e+u*k)+u*((p=r+u*C)-d))+u*(p+u*(o+u*A-p)-m),0==c?(y=b,w=v,D=b,x=v):(y=Math.min(y,b),w=Math.min(w,v),D=Math.max(D,b),x=Math.max(x,v));return new l(Math.round(y),Math.round(w),Math.round(D-y),Math.round(x-w))},z=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(q.API),function(t){var e=function(t){var e,n,r,i,o,a,s,l,u,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(c=o%85))/85)-(u=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,l+33,u+33,c+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,o,a=String,s="length",l=255,u="charCodeAt",c="slice",h="replace";for(t[c](-2),t=t[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[c](t[s]%5||5))[s];o>i;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),a.fromCharCode.apply(a,r)},r=function(t){return t.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">"},o=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 n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},a=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=(0,i.$)(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,i){var s=0,l=t||"",u=[];for("string"==typeof(i=i||[])&&(i=[i]),s=0;s<i.length;s+=1)switch(i[s]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=o(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[s]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}}(q.API),(Gt=q.API).loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,o=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(o(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return o(r.responseText)}(t,e,n)}catch(l){}return r}(t,e,n)},Gt.allowFsRead=void 0,Gt.loadImageFile=Gt.loadFile,function(t){function e(){return(l.html2canvas?Promise.resolve(l.html2canvas):Promise.resolve().then(n.t.bind(n,20354,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(l.DOMPurify?Promise.resolve(l.DOMPurify):n.e(9418).then(n.bind(n,99418))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var o=function(t){var e=r(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 n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},s=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r},u=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(t,e){return t.__proto__=e||u.prototype,t},u.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"}},u.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t),e){case"string":return this.then(i).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.")}}))},u.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.")}},u.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=s(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"}))},u.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).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)}))},u.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,r="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,i=Object.assign({async:!0,allowTaint:!0,scale:r,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 i.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=n,n)for(var o=0;o<n.length;++o){var a=n[o],s=a.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,a.ref.name,a.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).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)}))},u.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}))},u.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},u.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},u.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},u.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.'}}))},u.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)}))},u.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},u.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in u.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)}))},u.prototype.get=function(t,e){return this.then((function(){var n=t in u.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},u.prototype.setMargin=function(t){return this.then((function(){switch(o(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)},u.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||q.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}))},u.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},u.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},u.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},u.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:u.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return u.convert(o,r.__proto__)},u.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},u.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},u.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return u.convert(e,this)},u.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},u.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},u.prototype.using=u.prototype.set,u.prototype.saveAs=u.prototype.save,u.prototype.export=u.prototype.output,u.prototype.run=u.prototype.then,q.getPageSize=function(t,e,n){if("object"===r(t)){var i=t;t=i.orientation,e=i.unit||e,n=i.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var o,a=(""+n).toLowerCase(),s={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":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+e}var l,u=0,c=0;if(s.hasOwnProperty(a))u=s[a][1]/o,c=s[a][0]/o;else try{u=n[1],c=n[0]}catch(g){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>u&&(l=c,c=u,u=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:e,k:o,orientation:t}},t.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(It):null;var n=new u(e);return e.worker?n:n.from(t).doCallback()}}(q.API),q.API.addJS=function(t){var e,n,r=function(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if("("===r||")"===r){for(var i=0,o=n-1;o>=0&&"\\"===t[o];o--)i++;e+=i%2==0?"\\"+r:r}else e+=r}return e}(t);return this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==n&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],a=n.exec(o);if(null!=a){var s=a[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(i=0;i<l;i++){var c=t.internal.newObject();u.push(c);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var d=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+d+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},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 n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},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 n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+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 o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},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 n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(q.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,o,a){var s,l=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=r,-1!==e.indexOf(t.charCodeAt(a+1))){n=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),o={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:n,numcomponents:t.charCodeAt(a+9)};break}r=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),s.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}u={data:t,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:l,index:n,alias:r}}return u}}(q.API),q.API.processPNG=function(t,e,n,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var o,l=(0,s.D4)(t,{checkCrc:!0}),u=l.width,c=l.height,h=l.channels,d=l.palette,f=l.depth;o=d&&1===h?function(t){for(var e=t.width,n=t.height,r=t.data,i=t.palette,o=t.depth,s=!1,l=[],u=[],c=void 0,h=!1,d=0,f=0;f<i.length;f++){var p=a(i[f],4),g=p[0],m=p[1],b=p[2],v=p[3];l.push(g,m,b),null!=v&&(0===v?(d++,u.length<1&&u.push(f)):v<255&&(h=!0))}if(h||d>1){s=!0,u=void 0;var y=e*n;c=new Uint8Array(y);for(var w=new DataView(r.buffer),D=0;D<y;D++){var x=a(i[ie(w,D,o)],4)[3];c[D]=x}}else 0===d&&(u=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:c,needSMask:s,palette:l,mask:u}}(l):2===h||4===h?function(t){for(var e=t.data,n=t.width,r=t.height,i=t.channels,o=t.depth,a=2===i?"DeviceGray":"DeviceRGB",s=i-1,l=n*r,u=s,c=l*u,h=1*l,d=Math.ceil(c*o/8),f=Math.ceil(h*o/8),p=new Uint8Array(d),g=new Uint8Array(f),m=new DataView(e.buffer),b=new DataView(p.buffer),v=new DataView(g.buffer),y=!1,w=0;w<l;w++){for(var D=w*i,x=0;x<u;x++)oe(b,ie(m,D+x,o),w*u+x,o);var _=ie(m,D+u,o);_<(1<<o)-1&&(y=!0),oe(v,_,1*w,o)}return{colorSpace:a,colorsPerPixel:s,sMaskBitsPerComponent:y?o:void 0,colorBytes:p,alphaBytes:g,needSMask:y}}(l):function(t){var e=t.data,n=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,n=new Uint8Array(2*e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<e;i++)r.setUint16(2*i,t[i],!1);return n}(e):e,needSMask:!1}}(l);var p,g,m,b=o,v=b.colorSpace,y=b.colorsPerPixel,w=b.sMaskBitsPerComponent,D=b.colorBytes,x=b.alphaBytes,_=b.needSMask,k=b.palette,S=b.mask,C=null;return r!==q.API.image_compression.NONE&&"function"==typeof i.$?(C=function(t){var e;switch(t){case q.API.image_compression.FAST:e=11;break;case q.API.image_compression.MEDIUM:e=13;break;case q.API.image_compression.SLOW:e=14;break;default:e=12}return e}(r),p=this.decode.FLATE_DECODE,g="/Predictor ".concat(C," /Colors ").concat(y," /BitsPerComponent ").concat(f," /Columns ").concat(u),t=Jt(D,Math.ceil(u*y*f/8),y,f,r),_&&(m=Jt(x,Math.ceil(u*w/8),1,w,r))):(p=void 0,g=void 0,t=D,_&&(m=x)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:n,data:t,index:e,filter:p,decodeParameters:g,transparency:S,palette:k,sMask:m,predictor:C,width:u,height:c,bitsPerComponent:f,sMaskBitsPerComponent:w,colorSpace:v}}},function(t){t.processGIF89A=function(e,n,r,i){var o=new se(e),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:a,height:s},c=new ue(100).encode(u,100);return t.processJPEG.call(this,c,n,r,i)},t.processGIF87A=t.processGIF89A}(q.API),ce.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=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ce.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(n){c.log("bit decode error:"+n)}},ce.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!==n&&(this.pos+=4-n)}},ce.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,l=15&o,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},ce.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==t&&(this.pos+=4-t)}},ce.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,u=o>>15?255:0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=u}this.pos+=t}},ce.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,l=(a>>5&n)/n*255|0,u=(a>>11)/e*255|0,c=i*this.width*4+4*o;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},ce.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},ce.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},ce.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var o=new ce(e,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},u=new ue(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(q.API),he.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var o=new he(e),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},u=new ue(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(q.API),q.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var c=r[u],h=r[u+1],d=r[u+2],f=r[u+3];o[s++]=c,o[s++]=h,o[s++]=d,a[l++]=f}var p=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},q.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 (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[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},Ht=q.API,Ut=Ht.getCharWidthsArray=function(t,e){var n,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:o.metadata.Unicode.widths,u=l.fof?l.fof:1,c=e.kerning?e.kerning:o.metadata.Unicode.kerning,h=c.fof?c.fof:1,d=!1!==e.doKerning,f=0,p=t.length,g=0,m=l[0]||u,b=[];for(n=0;n<p;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?b.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):(f=d&&"object"===r(c[i])&&!isNaN(parseInt(c[i][g],10))?c[i][g]/h:0,b.push((l[i]||m)/u+f)),g=i;return b},Yt=Ht.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Ht.processArabic&&(t=Ht.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Ut.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Vt=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var l=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(l,o)),s=0,l=o),s+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},$t=function(t,e,n){n||(n={});var r,i,o,a,s,l,u,c=[],h=[c],d=n.textIndent||0,f=0,p=0,g=t.split(" "),m=Ut.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var b=Array(l).join(" "),v=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?v=v.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):v.push(t[0])})),g=v,l=Yt.apply(this,[b,n])}for(o=0,a=g.length;o<a;o++){var y=0;if(r=g[o],l&&"\n"==r[0]&&(r=r.substr(1),y=1),d+f+(p=(i=Ut.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Vt.apply(this,[r,i,e-(d+f),e]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,e){return t+e}),0)}else c=[r];h.push(c),d=p+l,f=m}else c.push(r),d+=f+p,f=m}return u=l?function(t,e){return(e?b:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},Ht.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=r.length;s<l;s++)u=u.concat($t.apply(this,[r[s],a,o]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",i={},o={},a=0;a<16;a++)i[n[a]]=e[a],o[e[a]]=n[a];var s=function(t){return"0x"+parseInt(t,10).toString(16)},l=t.__fontmetrics__.compress=function(t){var e,n,i,a,u=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=s(c).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof e)e<0?(i=s(e).slice(3),a="-"):(i=s(e).slice(2),a=""),i=a+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==r(e))throw new Error("Don't know what to do with value type "+r(e)+".");i=l(e)}u.push(n+i)}return u.push("}"),u.join("")},u=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,n,r,o,a={},s=1,l=a,u=[],c="",h="",d=t.length-1,f=1;f<d;f+=1)"'"==(o=t[f])?e?(r=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(u.push([l,r]),l={},r=void 0):"}"==o?((n=u.pop())[0][n[1]]=l,r=void 0,l=n[0]):"-"==o?s=-1:void 0===r?i.hasOwnProperty(o)?(c+=i[o],r=parseInt(c,16)*s,s=1,c=""):c+=o:i.hasOwnProperty(o)?(h+=i[o],l[r]=parseInt(h,16)*s,s=1,r=void 0,h=""):h+=o;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{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}},d={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'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":u("{'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:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'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:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'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":u("{'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:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'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":u("{'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":u("{'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}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=d.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=h.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(q.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(m(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(q),q.API.addSvgAsImage=function(t,e,r,i,o,a,s,u){if(isNaN(e)||isNaN(r))throw c.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw c.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var d=h.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(l.canvg?Promise.resolve(l.canvg):n.e(399).then(n.bind(n,40399))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t})).then((function(e){return e.fromString(d,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){p.addImage(h.toDataURL("image/jpeg",1),e,r,i,o,s,u)}))},q.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},q.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,o,a,s={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}},l=Object.keys(s),u=[],c=0,h=0,d=0;function f(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(d=0;d<p;d+=1)n[l[d]].value=n[l[d]].defaultValue,n[l[d]].explicitSet=!1}if("object"===r(t))for(o in t)if(a=t[o],f(l,o)&&void 0!==a){if("boolean"===n[o].type&&"boolean"==typeof a)n[o].value=a;else if("name"===n[o].type&&f(n[o].valueSet,a))n[o].value=a;else if("integer"===n[o].type&&Number.isInteger(a))n[o].value=a;else if("array"===n[o].type){for(c=0;c<a.length;c+=1)if(i=!0,1===a[c].length&&"number"==typeof a[c][0])u.push(String(a[c]-1));else if(a[c].length>1){for(h=0;h<a[c].length;h+=1)"number"!=typeof a[c][h]&&(i=!1);!0===i&&u.push([a[c][0]-1,a[c][1]-1].join(" "))}n[o].value="["+u.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},q.API.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceUri:null!=e?e:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof e&&e},this.internal.events.subscribe("putCatalog",fe),this.internal.events.subscribe("postPutResources",de)),this},function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(t){var e,n,r,i,o,a,s;for(o="/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",r=[],a=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;a<s;a++)e=n[a],r.length>=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),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),r.push("<"+e+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",c=0;c<l.length;c++)u+=String.fromCharCode(l[c]);var h=o();a({data:u,addLength1:!0,objectId:h}),i("endobj");var d=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i("endobj");var f=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+I(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+I(n.fontName)),i("/FontDescriptor "+f+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+d+" 0 R"),i("/BaseFont /"+I(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",u=0;u<s.length;u++)l+=String.fromCharCode(s[u]);var c=o();a({data:l,addLength1:!0,objectId:c}),i("endobj");var h=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var d=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+I(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+I(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},l=s.pdfEscape,u=s.activeFontKey,c=s.fonts,h=u,d="",f=0,p="",g=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),f=0;f<p.length;f+=1)c[h].metadata.hasOwnProperty("cmap")&&(e=c[h].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),e||p[f].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?d+=p[f]:d+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=l(d,h).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=n(d,c[h])),s.isHex=!0,{text:m,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?n.push([i(Object.assign({},r,{text:e[o][0]})).text,e[o][1],e[o][2]]):n.push(i(Object.assign({},r,{text:e[o]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(q),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(q.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,l,u=e,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={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},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],g=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)$/),m=!1,b=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),n=e>>8,r=f[n];return void 0!==r?u[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=v(t.charAt(n))))return!1;if("R"===e)return!0}return!1},w=function(t,e,a,s){var l,u,c,h,d=e[s];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(d="AN");break;case"AL":m=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(u=e[s+1])&&"AN"!==u?d="N":m&&(u="AN"),d=u===l?u:"N";break;case"ES":d="EN"===(l=s>0?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){d="EN";break}if(m){d="N";break}for(c=s+1,h=e.length;c<h&&"ET"===e[c];)c++;d=c<h&&"EN"===e[c]?"EN":"N";break;case"NSM":if(i&&!o){for(h=e.length,c=s+1;c<h&&"NSM"===e[c];)c++;if(c<h){var f=t[s],p=f>=1425&&f<=2303||64286===f;if(l=e[c],p&&("R"===l||"AL"===l)){d="R";break}}}d=s<1||"B"===(l=e[s-1])?"N":a[s-1];break;case"B":m=!1,n=!0,d=b;break;case"S":r=!0,d="N"}return d},D=function(t,e,n){var r=t.split("");return n&&x(r,n,{hiLevel:b}),r.reverse(),e&&e.reverse(),r.join("")},x=function(t,e,i){var o,a,s,l,u,f=-1,p=t.length,g=0,y=[],D=b?h:c,x=[];for(m=!1,n=!1,r=!1,a=0;a<p;a++)x[a]=v(t[a]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,x,y,s),o=240&(g=D[u][d[y[s]]]),g&=15,e[s]=l=D[g][5],o>0)if(16===o){for(a=f;a<s;a++)e[a]=1;f=-1}else f=-1;if(D[g][6])-1===f&&(f=s);else if(f>-1){for(a=f;a<s;a++)e[a]=l;f=-1}"B"===x[s]&&(e[s]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=b;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=b}}(x,e,p)},_=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===b&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,l,u,c=e.length,h=0;h<c;){if(i[h]>=t){for(l=h+1;l<c&&i[l]>=t;)l++;for(u=h,s=l-1;u<s;u++,s--)a=e[u],e[u]=e[s],e[s]=a,r&&(a=r[u],r[u]=r[s],r[s]=a);h=l}h++}}},k=function(t,e,n){var r=t.split(""),i={hiLevel:b};return n||(n=[]),x(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),_(2,r,e,n,i),_(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=y(t)),void 0===s&&(s=y(t))}(t,e),i||!a||s)if(i&&a&&o^s)b=o?1:0,t=D(t,e,n);else if(!i&&a&&s)b=o?1:0,t=k(t,e,n),t=D(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=D(t,e),o?(b=0,t=k(t,e,n)):(b=1,t=k(t,e,n),t=D(t,e));else if(i&&o&&!a&&s)b=1,t=k(t,e,n),t=D(t,e);else if(!i&&!a&&o^s){var r=l;o?(b=1,t=k(t,e,n),b=0,l=!1,t=k(t,e,n),l=r):(b=0,t=k(t,e,n),t=D(t,e),b=1,l=!1,t=k(t,e,n),l=r,t=D(t,e))}}else b=0,t=k(t,e,n);else b=o?1:0,t=k(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["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"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var r=t.options||{};t.mutex,r.lang;var i=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(q),q.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new ge(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Oe(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new me(this.contents),this.head=new ye(this),this.name=new Ce(this),this.cmap=new De(this),this.toUnicode={},this.hhea=new xe(this),this.maxp=new Fe(this),this.hmtx=new Ae(this),this.post=new ke(this),this.os2=new _e(this),this.loca=new Me(this),this.glyf=new Le(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,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=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 new 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,n){var r,i,o,a;for(o=0,i=0,a=(t=""+t).length;0<=a?i<a:i>a;i=0<=a?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var pe,ge=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 16777216*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())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),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,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),me=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)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 n,r,i,o,a,s,l,u,c,h,d,f,p;for(p in d=Object.keys(e).length,s=Math.log(2),c=16*Math.floor(Math.log(d)/s),o=Math.floor(c/s),u=16*d-c,(r=new ge).writeInt(this.scalarType),r.writeShort(d),r.writeShort(c),r.writeShort(o),r.writeShort(u),i=16*d,l=r.pos+i,a=null,f=[],e)for(h=e[p],r.writeString(p),r.writeInt(t(h)),r.writeInt(l),r.writeInt(h.length),f=f.concat(h),"head"===p&&(a=l),l+=h.length;l%4;)f.push(0),l++;return r.write(f),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=Ee.call(t);t.length%4;)t.push(0);for(r=new ge(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),be={}.hasOwnProperty,ve=function(t,e){for(var n in e)be.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};pe=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 ye=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),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 ge).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}(),we=function(){function t(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p,g,m,b,v;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=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(d=t.readUInt16(),h=d/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,v=i.length;m<v;s=++m)for(g=i[s],n=b=f=p[s];f<=g?b<=g:b>=g;n=f<=g?++b:--b)0===u[s]?o=n+l[s]:0!==(o=a[u[s]/2+(n-f)-(h-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}t.pos=c}return t.encode=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x,_,k,S,C,F,A,E,L,N,P,M,O,I,T,R,j,B,z,q,W,H,U,Y,V,$;switch(E=new ge,o=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(f=0;f<256;++f)t.push(0);return t}(),b={0:0},i={},L=0,O=o.length;L<O;L++)null==b[U=t[r=o[L]]]&&(b[U]=++p),i[r]={old:t[r],new:b[t[r]]},g[r]=b[t[r]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(g),{charMap:i,subtable:E.data,maxGlyphID:p+1};case"unicode":for(F=[],c=[],v=0,b={},n={},m=l=null,N=0,I=o.length;N<I;N++)null==b[w=t[r=o[N]]]&&(b[w]=++v),n[r]={old:w,new:b[w]},a=b[w]-r,null!=m&&a===l||(m&&c.push(m),F.push(r),l=a),m=r;for(m&&c.push(m),c.push(65535),F.push(65535),S=2*(k=F.length),_=2*Math.pow(Math.log(k)/Math.LN2,2),h=Math.log(_/2)/Math.LN2,x=2*k-_,s=[],D=[],d=[],f=P=0,T=F.length;P<T;f=++P){if(C=F[f],u=c[f],65535===C){s.push(0),D.push(0);break}if(C-(A=n[C].new)>=32768)for(s.push(0),D.push(2*(d.length+k-f)),r=M=C;C<=u?M<=u:M>=u;r=C<=u?++M:--M)d.push(n[r].new);else s.push(A-C),D.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*k+2*d.length),E.writeUInt16(0),E.writeUInt16(S),E.writeUInt16(_),E.writeUInt16(h),E.writeUInt16(x),W=0,R=c.length;W<R;W++)r=c[W],E.writeUInt16(r);for(E.writeUInt16(0),H=0,j=F.length;H<j;H++)r=F[H],E.writeUInt16(r);for(Y=0,B=s.length;Y<B;Y++)a=s[Y],E.writeUInt16(a);for(V=0,z=D.length;V<z;V++)y=D[V],E.writeUInt16(y);for($=0,q=d.length;$<q;$++)p=d[$],E.writeUInt16(p);return{charMap:n,subtable:E.data,maxGlyphID:v+1}}},t}(),De=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new we(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=we.encode(t,e),(r=new ge).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),xe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),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}(),_e=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),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,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),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,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),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}(),ke=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="post",t.prototype.parse=function(t){var e,n,r;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:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},t}(),Se=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ce=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="name",t.prototype.parse=function(t){var e,n,r,i,o,a,s,l,u,c,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,c=n.length;u<c;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),o=new Se(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=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(m){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}(),Fe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),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}(),Ae=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=o=0;0<=r?o<r:o>r;e=0<=r?++o:--o)s.push(this.widths.push(n));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}(),Ee=[].slice,Le=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,l,u,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new ge(e.read(r))).readShort(),l=a.readShort(),c=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[t]=-1===o?new Pe(a,l,c,s,u):new Ne(a,o,l,c,s,u),this.cache[t]))},t.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},t}(),Ne=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Pe=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new ge(Ee.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Me=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ve(t,pe),t.prototype.tag="loca",t.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(r+=s)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},t}(),Oe=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p,g,m;for(r in n=De.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),d={0:0},m=n.charMap)d[(s=m[r]).old]=s.new;for(f in h=n.maxGlyphID,o)f in d||(d[f]=h++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(d),c=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=c.length;t<e;t++)a=c[t],n.push(u[a]);return n}(),i=this.font.glyf.encode(o,p,d),l=this.font.loca.encode(i.offsets,p),g={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&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();q.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")}return""+n},e}()},88055(t,e,n){var r=n(9999);t.exports=function(t){return r(t,5)}},95395(){},93956(t,e,n){"use strict";n.d(e,{Ay:()=>ur});var r=n(34164),i=n(96540),o=n.t(i,2),a=n(41394),s=n(29407),l=n(58646),u=n(32370),c=n(80658),h=n(85577);function d(t,e,n){const r=(0,s.a)(t,n?.in);return r.setHours(e),r}function f(t,e,n){const r=(0,s.a)(t,n?.in);return r.setMinutes(e),r}function p(t,e,n){const r=(0,s.a)(t,n?.in);return r.setSeconds(e),r}var g=n(72794),m=n(6463),b=n(80337),v=n(27763),y=n(70228),w=n(4501),D=n(12268),x=n(54352),_=n(11580),k=n(5305);function S(t,e,n){const[r,i]=(0,k.x)(n?.in,t,e);return r.getFullYear()===i.getFullYear()}var C=n(91868);function F(t,e,n){const[r,i]=(0,k.x)(n?.in,t,e);return+(0,w.a)(r)===+(0,w.a)(i)}var A=n(88652);function E(t,e){return+(0,s.a)(t)===+(0,s.a)(e)}var L=n(73604),N=n(43329);function P(t,e){const n=(0,s.a)(t,e?.in),r=n.getFullYear(),i=n.getMonth(),o=(0,N.w)(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}function M(t,e,n){const r=(0,s.a)(t,n?.in),i=r.getFullYear(),o=r.getDate(),a=(0,N.w)(n?.in||t,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);const l=P(a);return r.setMonth(e,Math.min(o,l)),r}function O(t,e,n){const r=(0,s.a)(t,n?.in),i=e-(Math.trunc(r.getMonth()/3)+1);return M(r,r.getMonth()+3*i)}function I(t,e){return(0,s.a)(t,e?.in).getFullYear()}function T(t,e){return(0,s.a)(t,e?.in).getMonth()}var R=n(64169);function j(t,e){const n=(0,s.a)(t,e?.in);return Math.trunc(n.getMonth()/3)+1}var B=n(2831);function z(t,e){return(0,s.a)(t,e?.in).getHours()}function q(t,e){return(0,s.a)(t,e?.in).getMinutes()}function W(t){return(0,s.a)(t).getSeconds()}var H=n(60125),U=n(29543),Y=n(66304),V=n(37122);function $(t,e,n){return(0,V.z)(t,-e,n)}function G(t,e,n){const[r,i]=(0,k.x)(n?.in,t,e);return 4*(r.getFullYear()-i.getFullYear())+(j(r)-j(i))}var K=n(95413);function J(t,e,n){return(0,K.e)(t,-e,n)}var X=n(32688);function Q(t,e){let n,r=e?.in;return t.forEach((t=>{r||"object"!==typeof t||(r=N.w.bind(null,t));const e=(0,s.a)(t,r);(!n||n>e||isNaN(+e))&&(n=e)})),(0,N.w)(r,n||NaN)}function Z(t,e){let n,r=e?.in;return t.forEach((t=>{r||"object"!==typeof t||(r=N.w.bind(null,t));const e=(0,s.a)(t,r);(!n||n<e||isNaN(+e))&&(n=e)})),(0,N.w)(r,n||NaN)}var tt=n(49176),et=n(38342),nt=n(49914);function rt(t,e){return+(0,s.a)(t)>+(0,s.a)(e)}var it=n(48497);function ot(t,e){return(0,s.a)(t,e?.in).getDay()}function at(t,e){return(0,s.a)(t,e?.in).getDate()}var st=n(16172),lt=n(79114),ut=n(63537);function ct(t,e,n){const r=(0,s.a)(t,n?.in);return isNaN(+r)?(0,N.w)(n?.in||t,NaN):(r.setFullYear(e),r)}var ht=n(18373);function dt(t,e,n){return(0,lt.J)(t,-e,n)}var ft=n(69821);var pt="undefined"!==typeof document?i.useLayoutEffect:function(){};const gt={...o}.useInsertionEffect||(t=>t());var mt=n(74848),bt=n(86635),vt=n(40961),yt=n(97193);function wt(t,e,n){let{reference:r,floating:i}=t;const o=(0,yt.TV)(e),a=(0,yt.Dz)(e),s=(0,yt.sq)(a),l=(0,yt.C0)(e),u="y"===o,c=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}switch((0,yt.Sg)(e)){case"start":f[a]-=d*(n&&u?-1:1);break;case"end":f[a]+=d*(n&&u?-1:1)}return f}async function Dt(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=(0,yt._3)(e,t),p=(0,yt.nI)(f),g=s[d?"floating"===h?"reference":"floating":h],m=(0,yt.B1)(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===h?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=(0,yt.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-w.top+p.top)/y.y,bottom:(w.bottom-m.bottom+p.bottom)/y.y,left:(m.left-w.left+p.left)/y.x,right:(w.right-m.right+p.right)/y.x}}const xt=new Set(["left","top"]);function _t(t){const e=(0,bt.L9)(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=(0,bt.sb)(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=(0,yt.LI)(n)!==o||(0,yt.LI)(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function kt(t){return(0,bt.vq)(t)?t:t.contextElement}function St(t){const e=kt(t);if(!(0,bt.sb)(e))return(0,yt.Jx)(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=_t(e);let a=(o?(0,yt.LI)(n.width):n.width)/r,s=(o?(0,yt.LI)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ct=(0,yt.Jx)(0);function Ft(t){const e=(0,bt.zk)(t);return(0,bt.Tc)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ct}function At(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=kt(t);let a=(0,yt.Jx)(1);e&&(r?(0,bt.vq)(r)&&(a=St(r)):a=St(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==(0,bt.zk)(t))&&e}(o,n,r)?Ft(o):(0,yt.Jx)(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(o){const t=(0,bt.zk)(o),e=r&&(0,bt.vq)(r)?(0,bt.zk)(r):r;let n=t,i=(0,bt._m)(n);for(;i&&r&&e!==n;){const t=St(i),e=i.getBoundingClientRect(),r=(0,bt.L9)(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,u*=t.y,c*=t.x,h*=t.y,l+=o,u+=a,n=(0,bt.zk)(i),i=(0,bt._m)(n)}}return(0,yt.B1)({width:c,height:h,x:l,y:u})}function Et(t,e){const n=(0,bt.CP)(t).scrollLeft;return e?e.left+n:At((0,bt.ep)(t)).left+n}function Lt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-Et(t,n),y:n.top+e.scrollTop}}const Nt=new Set(["absolute","fixed"]);function Pt(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=(0,bt.zk)(t),r=(0,bt.ep)(t),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const t=(0,bt.Tc)();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}const u=Et(r);if(u<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-e.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)r=function(t){const e=(0,bt.ep)(t),n=(0,bt.CP)(t),r=t.ownerDocument.body,i=(0,yt.T9)(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=(0,yt.T9)(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Et(t);const s=-n.scrollTop;return"rtl"===(0,bt.L9)(r).direction&&(a+=(0,yt.T9)(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}((0,bt.ep)(t));else if((0,bt.vq)(e))r=function(t,e){const n=At(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=(0,bt.sb)(t)?St(t):(0,yt.Jx)(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=Ft(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return(0,yt.B1)(r)}function Mt(t,e){const n=(0,bt.$4)(t);return!(n===e||!(0,bt.vq)(n)||(0,bt.eu)(n))&&("fixed"===(0,bt.L9)(n).position||Mt(n,e))}function Ot(t,e,n){const r=(0,bt.sb)(e),i=(0,bt.ep)(e),o="fixed"===n,a=At(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=(0,yt.Jx)(0);function u(){l.x=Et(i)}if(r||!r&&!o)if(("body"!==(0,bt.mq)(e)||(0,bt.ZU)(i))&&(s=(0,bt.CP)(e)),r){const t=At(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&u();o&&!r&&i&&u();const c=!i||r||o?(0,yt.Jx)(0):Lt(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function It(t){return"static"===(0,bt.L9)(t).position}function Tt(t,e){if(!(0,bt.sb)(t)||"fixed"===(0,bt.L9)(t).position)return null;if(e)return e(t);let n=t.offsetParent;return(0,bt.ep)(t)===n&&(n=n.ownerDocument.body),n}function Rt(t,e){const n=(0,bt.zk)(t);if((0,bt.Tf)(t))return n;if(!(0,bt.sb)(t)){let e=(0,bt.$4)(t);for(;e&&!(0,bt.eu)(e);){if((0,bt.vq)(e)&&!It(e))return e;e=(0,bt.$4)(e)}return n}let r=Tt(t,e);for(;r&&(0,bt.Lv)(r)&&It(r);)r=Tt(r,e);return r&&(0,bt.eu)(r)&&It(r)&&!(0,bt.sQ)(r)?n:r||(0,bt.gJ)(t)||n}const jt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,a=(0,bt.ep)(r),s=!!e&&(0,bt.Tf)(e.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=(0,yt.Jx)(1);const c=(0,yt.Jx)(0),h=(0,bt.sb)(r);if((h||!h&&!o)&&(("body"!==(0,bt.mq)(r)||(0,bt.ZU)(a))&&(l=(0,bt.CP)(r)),(0,bt.sb)(r))){const t=At(r);u=St(r),c.x=t.x+r.clientLeft,c.y=t.y+r.clientTop}const d=!a||h||o?(0,yt.Jx)(0):Lt(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}},getDocumentElement:bt.ep,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?(0,bt.Tf)(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=(0,bt.v9)(t,[],!1).filter((t=>(0,bt.vq)(t)&&"body"!==(0,bt.mq)(t))),i=null;const o="fixed"===(0,bt.L9)(t).position;let a=o?(0,bt.$4)(t):t;for(;(0,bt.vq)(a)&&!(0,bt.eu)(a);){const e=(0,bt.L9)(a),n=(0,bt.sQ)(a);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&Nt.has(i.position)||(0,bt.ZU)(a)&&!n&&Mt(t,a))?r=r.filter((t=>t!==a)):i=e,a=(0,bt.$4)(a)}return e.set(t,r),r}(e,this._c):[].concat(n),r],a=o[0],s=o.reduce(((t,n)=>{const r=Pt(e,n,i);return t.top=(0,yt.T9)(r.top,t.top),t.right=(0,yt.jk)(r.right,t.right),t.bottom=(0,yt.jk)(r.bottom,t.bottom),t.left=(0,yt.T9)(r.left,t.left),t}),Pt(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Rt,getElementRects:async function(t){const e=this.getOffsetParent||Rt,n=this.getDimensions,r=await n(t.floating);return{reference:Ot(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=_t(t);return{width:e,height:n}},getScale:St,isElement:bt.vq,isRTL:function(t){return"rtl"===(0,bt.L9)(t).direction}};function Bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function zt(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,u=kt(t),c=i||o?[...u?(0,bt.v9)(u):[],...(0,bt.v9)(e)]:[];c.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const h=u&&s?function(t,e){let n,r=null;const i=(0,bt.ep)(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=u;if(s||e(),!d||!f)return;const p={rootMargin:-(0,yt.RI)(h)+"px "+-(0,yt.RI)(i.clientWidth-(c+d))+"px "+-(0,yt.RI)(i.clientHeight-(h+f))+"px "+-(0,yt.RI)(c)+"px",threshold:(0,yt.T9)(0,(0,yt.jk)(1,l))||1};let g=!0;function m(e){const r=e[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||Bt(u,t.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(b){r=new IntersectionObserver(m,p)}r.observe(t)}(!0),o}(u,n):null;let d,f=-1,p=null;a&&(p=new ResizeObserver((t=>{let[r]=t;r&&r.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var t;null==(t=p)||t.observe(e)}))),n()})),u&&!l&&p.observe(u),p.observe(e));let g=l?At(t):null;return l&&function e(){const r=At(t);g&&!Bt(g,r)&&n();g=r,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==h||h(),null==(t=p)||t.disconnect(),p=null,l&&cancelAnimationFrame(d)}}const qt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=(0,yt.C0)(n),s=(0,yt.Sg)(n),l="y"===(0,yt.TV)(n),u=xt.has(a)?-1:1,c=o&&l?-1:1,h=(0,yt._3)(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:p}="number"===typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"===typeof p&&(f="end"===s?-1*p:p),l?{x:f*c,y:d*u}:{x:d*u,y:f*c}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Wt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=(0,yt._3)(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=(0,yt.C0)(i),v=(0,yt.TV)(s),y=(0,yt.C0)(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),D=d||(y||!g?[(0,yt.bV)(s)]:(0,yt.WJ)(s)),x="none"!==p;!d&&x&&D.push(...(0,yt.lP)(s,g,p,w));const _=[s,...D],k=await Dt(e,m),S=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(c&&S.push(k[b]),h){const t=(0,yt.w7)(i,a,w);S.push(k[t[0]],k[t[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every((t=>t<=0))){var F,A;const t=((null==(F=o.flip)?void 0:F.index)||0)+1,e=_[t];if(e){if(!("alignment"===h&&v!==(0,yt.TV)(e))||C.every((t=>(0,yt.TV)(t.placement)!==v||t.overflows[0]>0)))return{data:{index:t,overflows:C},reset:{placement:e}}}let n=null==(A=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var E;const t=null==(E=C.filter((t=>{if(x){const e=(0,yt.TV)(t.placement);return e===v||"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:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Ht=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=(0,yt._3)(t,e)||{};if(null==u)return{};const h=(0,yt.nI)(c),d={x:n,y:r},f=(0,yt.Dz)(i),p=(0,yt.sq)(f),g=await a.getDimensions(u),m="y"===f,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[f]-d[f]-o.floating[p],D=d[f]-o.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let _=x?x[y]:0;_&&await(null==a.isElement?void 0:a.isElement(x))||(_=s.floating[y]||o.floating[p]);const k=w/2-D/2,S=_/2-g[p]/2-1,C=(0,yt.jk)(h[b],S),F=(0,yt.jk)(h[v],S),A=C,E=_-g[p]-F,L=_/2-g[p]/2+k,N=(0,yt.qE)(A,L,E),P=!l.arrow&&null!=(0,yt.Sg)(i)&&L!==N&&o.reference[p]/2-(L<A?C:F)-g[p]/2<0,M=P?L<A?L-A:L-E:0;return{[f]:d[f]+M,data:{[f]:N,centerOffset:L-N-M,...P&&{alignmentOffset:M}},reset:P}}}),Ut=(t,e,n)=>{const r=new Map,i={platform:jt,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=wt(u,r,l),d=r,f={},p=0;for(let g=0;g<s.length;g++){const{name:n,fn:o}=s[g],{x:m,y:b,data:v,reset:y}=await o({x:c,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=b?b:h,f={...f,[n]:{...f[n],...v}},y&&p<=50&&(p++,"object"===typeof y&&(y.placement&&(d=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):y.rects),({x:c,y:h}=wt(u,d,l))),g=-1)}return{x:c,y:h,placement:d,strategy:i,middlewareData:f}})(t,e,{...i,platform:o})};var Yt="undefined"!==typeof document?i.useLayoutEffect:function(){};function Vt(t,e){if(t===e)return!0;if(typeof t!==typeof e)return!1;if("function"===typeof t&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&"object"===typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!==r--;)if(!Vt(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!t.$$typeof)&&!Vt(t[n],e[n]))return!1}return!0}return t!==t&&e!==e}function $t(t){if("undefined"===typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Gt(t,e){const n=$t(t);return Math.round(e*n)/n}function Kt(t){const e=i.useRef(t);return Yt((()=>{e.current=t})),e}const Jt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:r}="function"===typeof t?t(e):t;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?Ht({element:n.current,padding:r}).fn(e):{}:n?Ht({element:n,padding:r}).fn(e):{};var i}}),Xt=(t,e)=>({...qt(t),options:[t,e]}),Qt=(t,e)=>({...Jt(t),options:[t,e]});const Zt="ArrowLeft",te="ArrowRight",ee="ArrowUp",ne="ArrowDown";const re=[Zt,te],ie=[ee,ne],oe={...o};let ae=!1,se=0;const le=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+se++;const ue=oe.useId||function(){const[t,e]=i.useState((()=>ae?le():void 0));return pt((()=>{null==t&&e(le())}),[]),i.useEffect((()=>{ae=!0}),[]),t};const ce=i.forwardRef((function(t,e){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:s=14,height:l=7,tipRadius:u=0,strokeWidth:c=0,staticOffset:h,stroke:d,d:f,style:{transform:p,...g}={},...m}=t;const b=ue(),[v,y]=i.useState(!1);if(pt((()=>{if(!r)return;"rtl"===(0,bt.L9)(r).direction&&y(!0)}),[r]),!r)return null;const[w,D]=n.split("-"),x="top"===w||"bottom"===w;let _=h;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(_=null);const k=2*c,S=k/2,C=s/2*(u/-8+1),F=l/2*u/4,A=!!f,E=_&&"end"===D?"bottom":"top";let L=_&&"end"===D?"right":"left";_&&v&&(L="end"===D?"left":"right");const N=null!=(null==o?void 0:o.x)?_||o.x:"",P=null!=(null==o?void 0:o.y)?_||o.y:"",M=f||"M0,0 H"+s+" L"+(s-C)+","+(l-F)+" Q"+s/2+","+l+" "+C+","+(l-F)+" Z",O={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,mt.jsxs)("svg",{...m,"aria-hidden":!0,ref:e,width:A?s:s+k,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[L]:N,[E]:P,[w]:x||A?"100%":"calc(100% - "+k/2+"px)",transform:[O,p].filter((t=>!!t)).join(" "),...g},children:[k>0&&(0,mt.jsx)("path",{clipPath:"url(#"+b+")",fill:"none",stroke:d,strokeWidth:k+(f?0:1),d:M}),(0,mt.jsx)("path",{stroke:k&&!f?m.fill:"none",d:M}),(0,mt.jsx)("clipPath",{id:b,children:(0,mt.jsx)("rect",{x:-S,y:S*(A?-1:1),width:s+k,height:s})})]})}));function he(){const t=new Map;return{emit(e,n){var r;null==(r=t.get(e))||r.forEach((t=>t(n)))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;null==(r=t.get(e))||r.delete(n)}}}const de=i.createContext(null),fe=i.createContext(null),pe=()=>{var t;return(null==(t=i.useContext(de))?void 0:t.id)||null},ge=()=>i.useContext(fe);function me(t){const{open:e=!1,onOpenChange:n,elements:r}=t,o=ue(),a=i.useRef({}),[s]=i.useState((()=>he())),l=null!=pe();const[u,c]=i.useState(r.reference),h=function(t){const e=i.useRef((()=>{}));return gt((()=>{e.current=t})),i.useCallback((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null==e.current?void 0:e.current(...n)}),[])}(((t,e,r)=>{a.current.openEvent=t?e:void 0,s.emit("openchange",{open:t,event:e,reason:r,nested:l}),null==n||n(t,e,r)})),d=i.useMemo((()=>({setPositionReference:c})),[]),f=i.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return i.useMemo((()=>({dataRef:a,open:e,onOpenChange:h,elements:f,events:s,floatingId:o,refs:d})),[e,h,f,s,o,d])}function be(t){void 0===t&&(t={});const{nodeId:e}=t,n=me({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,o=r.elements,[a,s]=i.useState(null),[l,u]=i.useState(null),c=(null==o?void 0:o.domReference)||a,h=i.useRef(null),d=ge();pt((()=>{c&&(h.current=c)}),[c]);const f=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[h,d]=i.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=i.useState(r);Vt(f,r)||p(r);const[g,m]=i.useState(null),[b,v]=i.useState(null),y=i.useCallback((t=>{t!==_.current&&(_.current=t,m(t))}),[]),w=i.useCallback((t=>{t!==k.current&&(k.current=t,v(t))}),[]),D=a||g,x=s||b,_=i.useRef(null),k=i.useRef(null),S=i.useRef(h),C=null!=u,F=Kt(u),A=Kt(o),E=Kt(c),L=i.useCallback((()=>{if(!_.current||!k.current)return;const t={placement:e,strategy:n,middleware:f};A.current&&(t.platform=A.current),Ut(_.current,k.current,t).then((t=>{const e={...t,isPositioned:!1!==E.current};N.current&&!Vt(S.current,e)&&(S.current=e,vt.flushSync((()=>{d(e)})))}))}),[f,e,n,A,E]);Yt((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((t=>({...t,isPositioned:!1}))))}),[c]);const N=i.useRef(!1);Yt((()=>(N.current=!0,()=>{N.current=!1})),[]),Yt((()=>{if(D&&(_.current=D),x&&(k.current=x),D&&x){if(F.current)return F.current(D,x,L);L()}}),[D,x,L,F,C]);const P=i.useMemo((()=>({reference:_,floating:k,setReference:y,setFloating:w})),[y,w]),M=i.useMemo((()=>({reference:D,floating:x})),[D,x]),O=i.useMemo((()=>{const t={position:n,left:0,top:0};if(!M.floating)return t;const e=Gt(M.floating,h.x),r=Gt(M.floating,h.y);return l?{...t,transform:"translate("+e+"px, "+r+"px)",...$t(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}}),[n,l,M.floating,h.x,h.y]);return i.useMemo((()=>({...h,update:L,refs:P,elements:M,floatingStyles:O})),[h,L,P,M,O])}({...t,elements:{...o,...l&&{reference:l}}}),p=i.useCallback((t=>{const e=(0,bt.vq)(t)?{getBoundingClientRect:()=>t.getBoundingClientRect(),getClientRects:()=>t.getClientRects(),contextElement:t}:t;u(e),f.refs.setReference(e)}),[f.refs]),g=i.useCallback((t=>{((0,bt.vq)(t)||null===t)&&(h.current=t,s(t)),((0,bt.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==t&&!(0,bt.vq)(t))&&f.refs.setReference(t)}),[f.refs]),m=i.useMemo((()=>({...f.refs,setReference:g,setPositionReference:p,domReference:h})),[f.refs,g,p]),b=i.useMemo((()=>({...f.elements,domReference:c})),[f.elements,c]),v=i.useMemo((()=>({...f,...r,refs:m,elements:b,nodeId:e})),[f,m,b,e,r]);return pt((()=>{r.dataRef.current.floatingContext=v;const t=null==d?void 0:d.nodesRef.current.find((t=>t.id===e));t&&(t.context=v)})),i.useMemo((()=>({...f,context:v,refs:m,elements:b})),[f,m,b,v])}var ve=function(t,e){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ve(t,e)};function ye(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ve(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var we=function(){return we=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},we.apply(this,arguments)};function De(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"===typeof SuppressedError&&SuppressedError;var xe,_e=function(t){var e=t.showTimeSelectOnly,n=void 0!==e&&e,r=t.showTime,o=void 0!==r&&r,a=t.className,s=t.children,l=t.inline,u=n?"Choose Time":"Choose Date".concat(o?" and Time":"");return i.createElement("div",{className:a,"aria-label":u,role:l?void 0:"dialog","aria-modal":l?void 0:"true",translate:"no"},s)},ke=function(t){var e=t.children,n=t.onClickOutside,r=t.className,o=t.containerRef,a=t.style,s=function(t,e){var n=(0,i.useRef)(null),r=(0,i.useRef)(t);(0,i.useEffect)((function(){r.current=t}),[t]);var o=(0,i.useCallback)((function(t){var i,o=t.composed&&t.composedPath&&t.composedPath().find((function(t){return t instanceof Node}))||t.target;n.current&&!n.current.contains(o)&&(e&&o instanceof HTMLElement&&o.classList.contains(e)||null===(i=r.current)||void 0===i||i.call(r,t))}),[e]);return(0,i.useEffect)((function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}}),[o]),n}(n,t.ignoreClass);return i.createElement("div",{className:r,style:a,ref:function(t){s.current=t,o&&(o.current=t)}},e)},Se=null,Ce=!1;function Fe(){if(Ce)return Se;Ce=!0;try{Se=n(54391)("date-fns-tz")}catch(Pn){Se=null}return Se}function Ae(t,e){if(!e)return t;var n=Fe();return n?n.toZonedTime(t,e):t}function Ee(t,e){if(!e)return t;var n=Fe();return n?n.fromZonedTime(t,e):t}function Le(){return"undefined"!==typeof window?window:globalThis}!function(t){t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.PageUp="PageUp",t.PageDown="PageDown",t.Home="Home",t.End="End",t.Enter="Enter",t.Space=" ",t.Tab="Tab",t.Escape="Escape",t.Backspace="Backspace",t.X="x"}(xe||(xe={}));function Ne(t){if(null==t)return new Date;var e="string"===typeof t?(0,a.H)(t):(0,s.a)(t);return Me(e)?e:new Date}function Pe(t,e,n,r,i){void 0===i&&(i=Ne());for(var o=Ze(n)||Ze(Qe()),a=0,s=Array.isArray(e)?e:[e];a<s.length;a++){var c=s[a],h=(0,l.qg)(t,c,i,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(Me(h)&&(!r||t===Ie(h,c,n)))return h}if(!r&&t&&t.length>=8){var d=new Date(t);if((0,u.f)(d))return d}return null}function Me(t){return(0,u.f)(t)}function Oe(t){return null==t?null:(0,c.$)(t)&&(0,u.f)(t)?t:null}function Ie(t,e,n){if("en"===n)return(0,h.GP)(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Ze(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),r=r||Ze(Qe()),(0,h.GP)(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Te(t,e){var n=e.dateFormat,r=e.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return t&&Ie(t,i,r)||""}function Re(t,e){var n=e.hour,r=void 0===n?0:n,i=e.minute,o=void 0===i?0:i,a=e.second;return d(f(p(t,void 0===a?0:a),o),r)}function je(t){return(0,m.o)(t)}function Be(t,e,n){var r=Ze(e||Qe());return(0,b.k)(t,{locale:r,weekStartsOn:n})}function ze(t){return(0,v.w)(t)}function qe(t){return(0,y.D)(t)}function We(t){return(0,w.a)(t)}function He(){return(0,m.o)(Ne())}function Ue(t){return(0,D.D)(t)}function Ye(t){return(0,_.p)(t)}function Ve(t,e){return t&&e?S(t,e):!t&&!e}function $e(t,e){return t&&e?(0,C.t)(t,e):!t&&!e}function Ge(t,e){return t&&e?F(t,e):!t&&!e}function Ke(t,e){return t&&e?(0,A.r)(t,e):!t&&!e}function Je(t,e){return t&&e?E(t,e):!t&&!e}function Xe(t,e,n){var r,i=(0,m.o)(e),o=(0,D.D)(n);try{r=(0,L.v)(t,{start:i,end:o})}catch(a){r=!1}return r}function Qe(){return Le().__localeId__}function Ze(t){if("string"===typeof t){var e=Le();return e.__localeData__?e.__localeData__[t]:void 0}return t}function tn(t,e){return Ie(M(Ne(),t),"LLLL",e)}function en(t,e){return Ie(M(Ne(),t),"LLL",e)}function nn(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,u=n.filterDate;return!!n.disabled||(dn(t,{minDate:r,maxDate:i})||o&&o.some((function(e){return e instanceof Date?Ke(t,e):Ke(t,e.date)}))||a&&a.some((function(e){var n=e.start,r=e.end;return(0,L.v)(t,{start:n,end:r})}))||s&&!s.some((function(e){return Ke(t,e)}))||l&&!l.some((function(e){var n=e.start,r=e.end;return(0,L.v)(t,{start:n,end:r})}))||u&&!u(Ne(t))||!1)}function rn(t,e){var n=void 0===e?{}:e,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some((function(e){var n=e.start,r=e.end;return(0,L.v)(t,{start:n,end:r})})):r&&r.some((function(e){var n;return e instanceof Date?Ke(t,e):Ke(t,null!==(n=e.date)&&void 0!==n?n:new Date)}))||!1}function on(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return dn(t,{minDate:r?(0,v.w)(r):void 0,maxDate:i?(0,_.p)(i):void 0})||(null===o||void 0===o?void 0:o.some((function(e){return $e(t,e instanceof Date?e:e.date)})))||a&&!a.some((function(e){return $e(t,e)}))||s&&!s(Ne(t))||!1}function an(t,e,n,r){var i=I(t),o=T(t),a=I(e),s=T(e),l=I(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function sn(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates;return dn(t,{minDate:r,maxDate:i})||o&&o.some((function(e){return $e(e instanceof Date?e:e.date,t)}))||a&&!a.some((function(e){return $e(e,t)}))||!1}function ln(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return!!n.disabled||(dn(t,{minDate:r,maxDate:i})||(null===o||void 0===o?void 0:o.some((function(e){return Ge(t,e instanceof Date?e:e.date)})))||a&&!a.some((function(e){return Ge(t,e)}))||s&&!s(Ne(t))||!1)}function un(t,e,n){if(!e||!n)return!1;if(!(0,u.f)(e)||!(0,u.f)(n))return!1;var r=I(e),i=I(n);return r<=t&&i>=t}function cn(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;if(n.disabled)return!0;var l=new Date(t,0,1);return dn(l,{minDate:r?(0,y.D)(r):void 0,maxDate:i?(0,R.Q)(i):void 0})||(null===o||void 0===o?void 0:o.some((function(t){return Ve(l,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return Ve(l,t)}))||s&&!s(Ne(l))||!1}function hn(t,e,n,r){var i=I(t),o=j(t),a=I(e),s=j(e),l=I(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function dn(t,e){var n,r=void 0===e?{}:e,i=r.minDate,o=r.maxDate;return null!==(n=i&&(0,B.m)(t,i)<0||o&&(0,B.m)(t,o)>0)&&void 0!==n&&n}function fn(t,e){return e.some((function(e){return z(e)===z(t)&&q(e)===q(t)&&W(e)===W(t)}))}function pn(t,e){var n=void 0===e?{}:e,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&fn(t,r)||i&&!fn(t,i)||o&&!o(t)||!1}function gn(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=Ne();i=p(i=f(i=d(i,z(t)),q(t)),W(t));var o=Ne();o=p(o=f(o=d(o,z(n)),q(n)),W(n));var a,s=Ne();s=p(s=f(s=d(s,z(r)),q(r)),W(r));try{a=!(0,L.v)(i,{start:o,end:s})}catch(l){a=!1}return a}function mn(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.includeDates,o=(0,H.a)(t,1);return r&&(0,U.U)(r,o)>0||i&&i.every((function(t){return(0,U.U)(t,o)>0}))||!1}function bn(t,e){var n=void 0===e?{}:e,r=n.maxDate,i=n.includeDates,o=(0,Y.P)(t,1);return r&&(0,U.U)(o,r)>0||i&&i.every((function(t){return(0,U.U)(o,t)>0}))||!1}function vn(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.includeDates,o=J(t,1);return r&&(0,X.n)(r,o)>0||i&&i.every((function(t){return(0,X.n)(t,o)>0}))||!1}function yn(t,e){var n=void 0===e?{}:e,r=n.maxDate,i=n.includeDates,o=(0,K.e)(t,1);return r&&(0,X.n)(o,r)>0||i&&i.every((function(t){return(0,X.n)(o,t)>0}))||!1}function wn(t){var e=t.minDate,n=t.includeDates;return n&&e?Q(n.filter((function(t){return(0,B.m)(t,e)>=0}))):n?Q(n):e}function Dn(t){var e=t.maxDate,n=t.includeDates;return n&&e?Z(n.filter((function(t){return(0,B.m)(t,e)<=0}))):n?Z(n):e}function xn(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=t.length;i<o;i++){var a=t[i];if((0,c.$)(a)){var s=Ie(a,"MM.dd.yyyy");(p=r.get(s)||[]).includes(e)||(p.push(e),r.set(s,p))}else if("object"===typeof a){var l=null!==(n=Object.keys(a)[0])&&void 0!==n?n:"",u=a[l];if("string"===typeof l&&Array.isArray(u))for(var h=0,d=u.length;h<d;h++){var f=u[h];if(f){var p;s=Ie(f,"MM.dd.yyyy");(p=r.get(s)||[]).includes(l)||(p.push(l),r.set(s,p))}}}}return r}function _n(t,e){void 0===t&&(t=[]),void 0===e&&(e="react-datepicker__day--holidays");var n=new Map;return t.forEach((function(t){var r=t.date,i=t.holidayName;if((0,c.$)(r)){var o=Ie(r,"MM.dd.yyyy"),a=n.get(o)||{className:"",holidayNames:[]};if(!("className"in a)||a.className!==e||(s=a.holidayNames,l=[i],s.length!==l.length||!s.every((function(t,e){return t===l[e]})))){var s,l;a.className=e;var u=a.holidayNames;a.holidayNames=u?De(De([],u,!0),[i],!1):[i],n.set(o,a)}}})),n}function kn(t,e,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=t,u=i[s];u&&(l=(0,tt.L)(l,z(u)),l=(0,et.z)(l,q(u)),l=(0,nt.p)(l,W(u)));var c=(0,et.z)(t,(n+1)*r);rt(l,e)&&(0,it.Y)(l,c)&&void 0!=u&&a.push(u)}return a}function Sn(t){return t<10?"0".concat(t):"".concat(t)}function Cn(t,e){void 0===e&&(e=12);var n=Math.ceil(I(t)/e)*e;return{startPeriod:n-(e-1),endPeriod:n}}function Fn(t){var e=t.getSeconds(),n=t.getMilliseconds();return(0,s.a)(t.getTime()-1e3*e-n)}function An(t,e){return Fn(t).getTime()===Fn(e).getTime()}function En(t){if(!(0,c.$)(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function Ln(t,e){if(!(0,c.$)(t)||!(0,c.$)(e))throw new Error("Invalid date received");var n=En(t),r=En(e);return(0,it.Y)(n,r)}function Nn(t){return t.key===xe.Space}var Pn,Mn=function(t){function e(e){var n=t.call(this,e)||this;return n.inputRef=i.createRef(),n.onTimeChange=function(t){var e,r;n.setState({time:t});var i=n.props.date,o=i instanceof Date&&!isNaN(+i)?i:new Date;if(null===t||void 0===t?void 0:t.includes(":")){var a=t.split(":"),s=a[0],l=a[1];o.setHours(Number(s)),o.setMinutes(Number(l))}null===(r=(e=n.props).onChange)||void 0===r||r.call(e,o)},n.renderTimeInput=function(){var t=n.state.time,e=n.props,r=e.date,o=e.timeString,a=e.customTimeInput;return a?(0,i.cloneElement)(a,{date:r,value:t,onChange:n.onTimeChange}):i.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var t;null===(t=n.inputRef.current)||void 0===t||t.focus()},required:!0,value:t,onChange:function(t){n.onTimeChange(t.target.value||o)}})},n.state={time:n.props.timeString},n}return ye(e,t),e.getDerivedStateFromProps=function(t,e){return t.timeString!==e.time?{time:t.timeString}:null},e.prototype.render=function(){return i.createElement("div",{className:"react-datepicker__input-time-container"},i.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),i.createElement("div",{className:"react-datepicker-time__input-container"},i.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e}(i.Component),On=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dayEl=(0,i.createRef)(),e.handleClick=function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)},e.handleMouseEnter=function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)},e.handleOnKeyDown=function(t){var n,r;t.key===xe.Space&&(t.preventDefault(),t.key=xe.Enter),null===(r=(n=e.props).handleOnKeyDown)||void 0===r||r.call(n,t)},e.isSameDay=function(t){return Ke(e.props.day,t)},e.isKeyboardSelected=function(){var t;if(e.props.disabledKeyboardNavigation)return!1;var n=e.props.selectsMultiple?null===(t=e.props.selectedDates)||void 0===t?void 0:t.some((function(t){return e.isSameDayOrWeek(t)})):e.isSameDayOrWeek(e.props.selected),r=e.props.preSelection&&e.isDisabled(e.props.preSelection);return!n&&e.isSameDayOrWeek(e.props.preSelection)&&!r},e.isDisabled=function(t){return void 0===t&&(t=e.props.day),nn(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate,disabled:e.props.disabled})},e.isExcluded=function(){return rn(e.props.day,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.isStartOfWeek=function(){return Ke(e.props.day,Be(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameWeek=function(t){return e.props.showWeekPicker&&Ke(t,Be(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameDayOrWeek=function(t){return e.isSameDay(t)||e.isSameWeek(t)},e.getHighLightedClass=function(){var t=e.props,n=t.day,r=t.highlightDates;if(!r)return!1;var i=Ie(n,"MM.dd.yyyy");return r.get(i)},e.getHolidaysClass=function(){var t,n=e.props,r=n.day,i=n.holidays;if(!i)return[void 0];var o=Ie(r,"MM.dd.yyyy");return i.has(o)?[null===(t=i.get(o))||void 0===t?void 0:t.className]:[void 0]},e.isInRange=function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Xe(n,r,i)},e.isInSelectingRange=function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,u=n.swapRange,c=n.endDate,h=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;if(e.isAfterMonth()||e.isBeforeMonth())return!1;if(!(i||o||a)||!h||!s&&e.isDisabled())return!1;if(i&&c&&((0,it.Y)(h,c)||Je(h,c)))return Xe(r,h,c);if(o&&l&&(rt(h,l)||Je(h,l)))return Xe(r,l,h);if(a&&l&&!c){if(Je(h,l))return Xe(r,l,h);if(rt(h,l))return Xe(r,l,h);if(u&&(0,it.Y)(h,l))return Xe(r,h,l)}return!1},e.isSelectingRangeStart=function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=n.swapRange,s=n.selectsRange,l=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Ke(r,o||s&&a&&i&&l&&(0,it.Y)(l,i)?l:i)},e.isSelectingRangeEnd=function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=n.selectsRange,s=n.swapRange,l=n.startDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Ke(r,o?u:a&&s&&l&&u?(0,it.Y)(u,l)?l:u:a?u:i)},e.isRangeStart=function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Ke(r,n)},e.isRangeEnd=function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Ke(i,n)},e.isWeekend=function(){var t=ot(e.props.day);return 0===t||6===t},e.isAfterMonth=function(){return void 0!==e.props.month&&(e.props.month+1)%12===T(e.props.day)},e.isBeforeMonth=function(){return void 0!==e.props.month&&(T(e.props.day)+1)%12===e.props.month},e.isCurrentDay=function(){return e.isSameDay(Ne())},e.isSelected=function(){var t;return e.props.selectsMultiple?null===(t=e.props.selectedDates)||void 0===t?void 0:t.some((function(t){return e.isSameDayOrWeek(t)})):e.isSameDayOrWeek(e.props.selected)},e.getClassNames=function(t){var n,i=e.props.dayClassName?e.props.dayClassName(t):void 0;return(0,r.$)("react-datepicker__day",i,"react-datepicker__day--"+Ie(e.props.day,"ddd",n),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass(),e.getHolidaysClass())},e.getAriaLabel=function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(Ie(n,"PPPP",e.props.locale))},e.getTitle=function(){var t=e.props,n=t.day,r=t.holidays,i=void 0===r?new Map:r,o=t.excludeDates,a=Ie(n,"MM.dd.yyyy"),s=[];return i.has(a)&&s.push.apply(s,i.get(a).holidayNames),e.isExcluded()&&s.push(null===o||void 0===o?void 0:o.filter((function(t){return t instanceof Date?Ke(t,n):Ke(null===t||void 0===t?void 0:t.date,n)})).map((function(t){if(!(t instanceof Date))return null===t||void 0===t?void 0:t.message}))),s.join(", ")},e.getTabIndex=function(){var t=e.props.selected,n=e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(t)&&Ke(n,t))?0:-1},e.handleFocusDay=function(){var t;e.shouldFocusDay()&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))},e.renderDayContents=function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(at(e.props.day),e.props.day):at(e.props.day)},e.render=function(){return i.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"gridcell",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&i.createElement("span",{className:"overlay"},e.getTitle()))},e}return ye(e,t),e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var t=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},e.prototype.isDayActiveElement=function(){var t,e,n;return(null===(e=null===(t=this.props.containerRef)||void 0===t?void 0:t.current)||void 0===e?void 0:e.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e}(i.Component),In=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.weekNumberEl=(0,i.createRef)(),e.handleClick=function(t){e.props.onClick&&e.props.onClick(t)},e.handleOnKeyDown=function(t){var n,r;t.key===xe.Space&&(t.preventDefault(),t.key=xe.Enter),null===(r=(n=e.props).handleOnKeyDown)||void 0===r||r.call(n,t)},e.isKeyboardSelected=function(){return!e.props.disabledKeyboardNavigation&&!Ke(e.props.date,e.props.selected)&&Ke(e.props.date,e.props.preSelection)},e.getTabIndex=function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||Ke(e.props.date,e.props.selected)&&Ke(e.props.preSelection,e.props.selected))?0:-1},e.handleFocusWeekNumber=function(t){var n=!1;0===e.getTabIndex()&&!(null===t||void 0===t?void 0:t.isInputFocused)&&Ke(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})},e}return ye(e,t),Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},e.prototype.render=function(){var t=this.props,n=t.weekNumber,o=t.isWeekDisabled,a=t.ariaLabelPrefix,s=void 0===a?e.defaultProps.ariaLabelPrefix:a,l=t.onClick,u={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!l&&!o,"react-datepicker__week-number--selected":!!l&&Ke(this.props.date,this.props.selected)};return i.createElement("div",{ref:this.weekNumberEl,className:(0,r.$)(u),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},n)},e}(i.Component),Tn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.isDisabled=function(t){return nn(t,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(t,e){n.props.onDayClick&&n.props.onDayClick(t,e)},n.handleDayMouseEnter=function(t){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(t)},n.handleWeekClick=function(t,r,i){for(var o,a,s,l=new Date(t),u=0;u<7;u++){var c=new Date(t);if(c.setDate(c.getDate()+u),!n.isDisabled(c)){l=c;break}}"function"===typeof n.props.onWeekSelect&&n.props.onWeekSelect(l,r,i),n.props.showWeekPicker&&n.handleDayClick(l,i),(null!==(o=n.props.shouldCloseOnSelect)&&void 0!==o?o:e.defaultProps.shouldCloseOnSelect)&&(null===(s=(a=n.props).setOpen)||void 0===s||s.call(a,!1))},n.formatWeekNumber=function(t){return n.props.formatWeekNumber?n.props.formatWeekNumber(t):function(t){return(0,g.s)(t)}(t)},n.isWeekDisabled=function(){for(var t=n.startOfWeek(),e=(0,st.f)(t,6),r=new Date(t);r<=e;){if(!n.isDisabled(r))return!1;r=(0,st.f)(r,1)}return!0},n.renderDays=function(){var t=n.startOfWeek(),r=[],o=n.formatWeekNumber(t);if(n.props.showWeekNumber){var a=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,t,o):void 0;r.push(i.createElement(In,we({key:"W"},e.defaultProps,n.props,{weekNumber:o,isWeekDisabled:n.isWeekDisabled(),date:t,onClick:a})))}return r.concat([0,1,2,3,4,5,6].map((function(r){var o=(0,st.f)(t,r);return i.createElement(On,we({},e.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,onClick:n.handleDayClick.bind(n,o),onMouseEnter:n.handleDayMouseEnter.bind(n,o)}))})))},n.startOfWeek=function(){return Be(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Ke(n.startOfWeek(),n.props.selected)&&Ke(n.startOfWeek(),n.props.preSelection)},n}return ye(e,t),Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":Ke(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},e=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return i.createElement("div",{className:(0,r.$)(t,e),role:"row"},this.renderDays())},e}(i.Component),Rn="two_columns",jn="three_columns",Bn="four_columns",zn=((Pn={})[Rn]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Pn[jn]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Pn[Bn]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Pn);function qn(t,e){return t?Bn:e?Rn:jn}var Wn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.MONTH_REFS=De([],Array(12),!0).map((function(){return(0,i.createRef)()})),e.QUARTER_REFS=De([],Array(4),!0).map((function(){return(0,i.createRef)()})),e.isDisabled=function(t){return nn(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate,disabled:e.props.disabled})},e.isExcluded=function(t){return rn(t,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.handleDayClick=function(t,n){var r,i;null===(i=(r=e.props).onDayClick)||void 0===i||i.call(r,t,n,e.props.orderInDisplay)},e.handleDayMouseEnter=function(t){var n,r;null===(r=(n=e.props).onDayMouseEnter)||void 0===r||r.call(n,t)},e.handleMouseLeave=function(){var t,n;null===(n=(t=e.props).onMouseLeave)||void 0===n||n.call(t)},e.isRangeStartMonth=function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&$e(M(r,t),i)},e.isRangeStartQuarter=function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Ge(O(r,t),i)},e.isRangeEndMonth=function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&$e(M(r,t),o)},e.isRangeEndQuarter=function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Ge(O(r,t),o)},e.isInSelectingRangeMonth=function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!c)&&(o&&u?an(c,u,t,i):(a&&l||!(!s||!l||u))&&an(l,c,t,i))},e.isSelectingMonthRangeStart=function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.startDate,a=r.selectsStart,s=M(i,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return $e(s,a?l:o)},e.isSelectingMonthRangeEnd=function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.endDate,a=r.selectsEnd,s=r.selectsRange,l=M(i,t),u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return $e(l,a||s?u:o)},e.isInSelectingRangeQuarter=function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!c)&&(o&&u?hn(c,u,t,i):(a&&l||!(!s||!l||u))&&hn(l,c,t,i))},e.isWeekInMonth=function(t){var n=e.props.day,r=(0,st.f)(t,6);return $e(t,n)||$e(r,n)},e.isCurrentMonth=function(t,e){return I(t)===I(Ne())&&e===T(Ne())},e.isCurrentQuarter=function(t,e){return I(t)===I(Ne())&&e===j(Ne())},e.isSelectedMonth=function(t,e,n){return T(n)===e&&I(t)===I(n)},e.isSelectMonthInList=function(t,n,r){return r.some((function(r){return e.isSelectedMonth(t,n,r)}))},e.isSelectedQuarter=function(t,e,n){return j(n)===e&&I(t)===I(n)},e.isSelectQuarterInList=function(t,n,r){return r.some((function(r){return e.isSelectedQuarter(t,n,r)}))},e.isMonthSelected=function(){var t=e.props,n=t.day,r=t.selected,i=t.selectedDates,o=t.selectsMultiple,a=T(n);return o?null===i||void 0===i?void 0:i.some((function(t){return e.isSelectedMonth(n,a,t)})):!!r&&e.isSelectedMonth(n,a,r)},e.isQuarterSelected=function(){var t=e.props,n=t.day,r=t.selected,i=t.selectedDates,o=t.selectsMultiple,a=j(n);return o?null===i||void 0===i?void 0:i.some((function(t){return e.isSelectedQuarter(n,a,t)})):!!r&&e.isSelectedQuarter(n,a,r)},e.renderWeeks=function(){if(!Me(e.props.day))return[];for(var t=[],n=e.props.fixedHeight,r=0,o=!1,a=Be(ze(e.props.day),e.props.locale,e.props.calendarStartDay),s=e.props.selected?function(t){return e.props.showWeekPicker?Be(t,e.props.locale,e.props.calendarStartDay):e.props.selected}(e.props.selected):void 0,l=e.props.preSelection?function(t){return e.props.showWeekPicker?Be(t,e.props.locale,e.props.calendarStartDay):e.props.preSelection}(e.props.preSelection):void 0;t.push(i.createElement(Tn,we({},e.props,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,key:r,day:a,month:T(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,selected:s,preSelection:l,showWeekNumber:e.props.showWeekNumbers}))),!o;){r++,a=(0,lt.J)(a,1);var u=n&&r>=6,c=!n&&!e.isWeekInMonth(a);if(u||c){if(!e.props.peekNextMonth)break;o=!0}}return t},e.onMonthClick=function(t,n){var r=e.isMonthDisabledForLabelDate(n),i=r.isDisabled,o=r.labelDate;i||e.handleDayClick(ze(o),t)},e.onMonthMouseEnter=function(t){var n=e.isMonthDisabledForLabelDate(t),r=n.isDisabled,i=n.labelDate;r||e.handleDayMouseEnter(ze(i))},e.handleMonthNavigation=function(t,n){var r,i,o,a;null===(i=(r=e.props).setPreSelection)||void 0===i||i.call(r,n),null===(a=null===(o=e.MONTH_REFS[t])||void 0===o?void 0:o.current)||void 0===a||a.focus()},e.handleKeyboardNavigation=function(t,n,r){var i,o=e.props,a=o.selected,s=o.preSelection,l=o.setPreSelection,u=o.minDate,c=o.maxDate,h=o.showFourColumnMonthYearPicker,d=o.showTwoColumnMonthYearPicker;if(s){var f=qn(h,d),p=e.getVerticalOffset(f),g=null===(i=zn[f])||void 0===i?void 0:i.grid,m=function(t,e,n){var r,i,o=e,a=n;switch(t){case xe.ArrowRight:o=(0,Y.P)(e,1),a=11===n?0:n+1;break;case xe.ArrowLeft:o=(0,H.a)(e,1),a=0===n?11:n-1;break;case xe.ArrowUp:o=(0,H.a)(e,p),a=(null===(r=null===g||void 0===g?void 0:g[0])||void 0===r?void 0:r.includes(n))?n+12-p:n-p;break;case xe.ArrowDown:o=(0,Y.P)(e,p),a=(null===(i=null===g||void 0===g?void 0:g[g.length-1])||void 0===i?void 0:i.includes(n))?n-12+p:n+p}return{newCalculatedDate:o,newCalculatedMonth:a}};if(n!==xe.Enter){var b=function(t,n,r){for(var i=t,o=!1,a=0,s=m(i,n,r),l=s.newCalculatedDate,h=s.newCalculatedMonth;!o;){if(a>=40){l=n,h=r;break}var d;if(u&&l<u)i=xe.ArrowRight,l=(d=m(i,l,h)).newCalculatedDate,h=d.newCalculatedMonth;if(c&&l>c)i=xe.ArrowLeft,l=(d=m(i,l,h)).newCalculatedDate,h=d.newCalculatedMonth;if(sn(l,e.props))l=(d=m(i,l,h)).newCalculatedDate,h=d.newCalculatedMonth;else o=!0;a++}return{newCalculatedDate:l,newCalculatedMonth:h}}(n,s,r),v=b.newCalculatedDate,y=b.newCalculatedMonth;switch(n){case xe.ArrowRight:case xe.ArrowLeft:case xe.ArrowUp:case xe.ArrowDown:e.handleMonthNavigation(y,v)}}else e.isMonthDisabled(r)||(e.onMonthClick(t,r),null===l||void 0===l||l(a))}},e.getVerticalOffset=function(t){var e,n;return null!==(n=null===(e=zn[t])||void 0===e?void 0:e.verticalNavigationOffset)&&void 0!==n?n:0},e.onMonthKeyDown=function(t,n){var r=e.props,i=r.disabledKeyboardNavigation,o=r.handleOnMonthKeyDown,a=t.key;a!==xe.Tab&&t.preventDefault(),i||e.handleKeyboardNavigation(t,a,n),o&&o(t)},e.onQuarterClick=function(t,n){var r=O(e.props.day,n);ln(r,e.props)||e.handleDayClick(We(r),t)},e.onQuarterMouseEnter=function(t){var n=O(e.props.day,t);ln(n,e.props)||e.handleDayMouseEnter(We(n))},e.handleQuarterNavigation=function(t,n){var r,i,o,a;e.isDisabled(n)||e.isExcluded(n)||(null===(i=(r=e.props).setPreSelection)||void 0===i||i.call(r,n),null===(a=null===(o=e.QUARTER_REFS[t-1])||void 0===o?void 0:o.current)||void 0===a||a.focus())},e.onQuarterKeyDown=function(t,n){var r,i,o=t.key;if(!e.props.disabledKeyboardNavigation)switch(o){case xe.Enter:e.onQuarterClick(t,n),null===(i=(r=e.props).setPreSelection)||void 0===i||i.call(r,e.props.selected);break;case xe.ArrowRight:if(!e.props.preSelection)break;e.handleQuarterNavigation(4===n?1:n+1,(0,V.z)(e.props.preSelection,1));break;case xe.ArrowLeft:if(!e.props.preSelection)break;e.handleQuarterNavigation(1===n?4:n-1,$(e.props.preSelection,1))}},e.isMonthDisabledForLabelDate=function(t){var n,r=e.props,i=r.day,o=r.disabled,a=r.minDate,s=r.maxDate,l=r.excludeDates,u=r.includeDates,c=M(i,t);return o?{isDisabled:!0,labelDate:M(i,t)}:{isDisabled:null!==(n=(a||s||l||u)&&on(c,e.props))&&void 0!==n&&n,labelDate:c}},e.isMonthDisabled=function(t){return e.isMonthDisabledForLabelDate(t).isDisabled},e.getMonthClassNames=function(t){var n=e.props,i=n.day,o=n.startDate,a=n.endDate,s=n.preSelection,l=n.monthClassName,u=l?l(M(i,t)):void 0,c=e.getSelection();return(0,r.$)("react-datepicker__month-text","react-datepicker__month-".concat(t),u,{"react-datepicker__month-text--disabled":e.isMonthDisabled(t),"react-datepicker__month-text--selected":c?e.isSelectMonthInList(i,t,c):void 0,"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&s&&e.isSelectedMonth(i,t,s)&&!e.isMonthSelected()&&!e.isMonthDisabled(t),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":o&&a?an(o,a,t,i):void 0,"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(i,t)})},e.getTabIndex=function(t){if(null==e.props.preSelection)return"-1";var n=T(e.props.preSelection),r=e.isMonthDisabledForLabelDate(n).isDisabled;return t!==n||r||e.props.disabledKeyboardNavigation?"-1":"0"},e.getQuarterTabIndex=function(t){if(null==e.props.preSelection)return"-1";var n=j(e.props.preSelection),r=ln(e.props.day,e.props);return t!==n||r||e.props.disabledKeyboardNavigation?"-1":"0"},e.getAriaLabel=function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=n.locale,u=M(s,t),c=e.isDisabled(u)||e.isExcluded(u)?a:i;return"".concat(c," ").concat(Ie(u,"MMMM yyyy",l))},e.getQuarterClassNames=function(t){var n=e.props,i=n.day,o=n.startDate,a=n.endDate,s=n.minDate,l=n.maxDate,u=n.excludeDates,c=n.includeDates,h=n.filterDate,d=n.preSelection,f=n.disabledKeyboardNavigation,p=n.disabled,g=(s||l||u||c||h||p)&&ln(O(i,t),e.props),m=e.getSelection();return(0,r.$)("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":g,"react-datepicker__quarter-text--selected":m?e.isSelectQuarterInList(i,t,m):void 0,"react-datepicker__quarter-text--keyboard-selected":!f&&d&&e.isSelectedQuarter(i,t,d)&&!e.isQuarterSelected()&&!g,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":o&&a?hn(o,a,t,i):void 0,"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t),"react-datepicker__quarter-text--today":e.isCurrentQuarter(i,t)})},e.getMonthContent=function(t){var n=e.props,r=n.showFullMonthYearPicker,i=n.renderMonthContent,o=n.locale,a=n.day,s=en(t,o),l=tn(t,o);return i?i(t,s,l,a):r?l:s},e.getQuarterContent=function(t){var n,r=e.props,i=r.renderQuarterContent,o=function(t,e){return Ie(O(Ne(),t),"QQQ",e)}(t,r.locale);return null!==(n=null===i||void 0===i?void 0:i(t,o))&&void 0!==n?n:o},e.renderMonths=function(){var t,n=e.props,r=n.showTwoColumnMonthYearPicker,o=n.showFourColumnMonthYearPicker,a=n.day,s=n.selected,l=null===(t=zn[qn(o,r)])||void 0===t?void 0:t.grid;return null===l||void 0===l?void 0:l.map((function(t,n){return i.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return i.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){Nn(n)&&(n.preventDefault(),n.key=xe.Enter),e.onMonthKeyDown(n,t)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(t)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(t)}:void 0,tabIndex:Number(e.getTabIndex(t)),className:e.getMonthClassNames(t),"aria-disabled":e.isMonthDisabled(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":s?e.isSelectedMonth(a,t,s):void 0},e.getMonthContent(t))})))}))},e.renderQuarters=function(){var t=e.props,n=t.day,r=t.selected;return i.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return i.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(t)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(t)}:void 0,className:e.getQuarterClassNames(t),"aria-selected":r?e.isSelectedQuarter(n,t,r):void 0,tabIndex:Number(e.getQuarterTabIndex(t)),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))},e.getClassNames=function(){var t=e.props,n=t.selectingDate,i=t.selectsStart,o=t.selectsEnd,a=t.showMonthYearPicker,s=t.showQuarterYearPicker,l=t.showWeekPicker;return(0,r.$)("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(i||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})},e}return ye(e,t),e.prototype.getSelection=function(){var t=this.props,e=t.selected,n=t.selectedDates;return t.selectsMultiple?n:e?[e]:void 0},e.prototype.render=function(){var t=this.props,e=t.showMonthYearPicker,n=t.showQuarterYearPicker,r=t.day,o=t.ariaLabelPrefix,a=void 0===o?"Month ":o,s=a?a.trim()+" ":"",l=Me(r)?"".concat(s).concat(Ie(r,"MMMM, yyyy",this.props.locale)):"";return e||n?i.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":l,role:"listbox"},e?this.renderMonths():this.renderQuarters()):i.createElement("div",{role:"table"},this.props.dayNamesHeader&&i.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&i.createElement("div",{role:"rowgroup"},this.props.monthHeader),i.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":l,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&i.createElement("div",{role:"rowgroup"},this.props.monthFooter))},e}(i.Component),Hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monthOptionButtonsRef={},e.isSelectedMonth=function(t){return e.props.month===t},e.handleOptionKeyDown=function(t,n){var r;switch(n.key){case"Enter":n.preventDefault(),e.onChange(t);break;case"Escape":n.preventDefault(),e.props.onCancel();break;case"ArrowUp":case"ArrowDown":n.preventDefault();var i=(t+("ArrowUp"===n.key?-1:1)+e.props.monthNames.length)%e.props.monthNames.length;null===(r=e.monthOptionButtonsRef[i])||void 0===r||r.focus()}},e.renderOptions=function(){return e.monthOptionButtonsRef={},e.props.monthNames.map((function(t,n){return i.createElement("div",{ref:function(t){e.monthOptionButtonsRef[n]=t,e.isSelectedMonth(n)&&(null===t||void 0===t||t.focus())},role:"button",tabIndex:0,className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(e,n),onKeyDown:e.handleOptionKeyDown.bind(e,n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?i.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))},e.onChange=function(t){return e.props.onChange(t)},e.handleClickOutside=function(){return e.props.onCancel()},e}return ye(e,t),e.prototype.render=function(){return i.createElement(ke,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e}(i.Component),Un=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(t){return t.map((function(t,e){return i.createElement("option",{key:t,value:e},t)}))},e.renderSelectMode=function(t){return i.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(parseInt(t.target.value))}},e.renderSelectOptions(t))},e.renderReadView=function(t,n){return i.createElement("button",{key:"read",type:"button",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},i.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))},e.renderDropdown=function(t){return i.createElement(Hn,we({key:"dropdown"},e.props,{monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r},e.onChange=function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return ye(e,t),e.prototype.render=function(){var t,e=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(t){return en(t,e.props.locale)}:function(t){return tn(t,e.props.locale)});switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode(n);break;case"select":t=this.renderSelectMode(n)}return i.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(i.Component);function Yn(t,e,n){for(var r=[],i=null!==t&&void 0!==t?t:J(n,5),o=null!==e&&void 0!==e?e:(0,K.e)(n,5),a=ze(i),s=ze(o);!rt(a,s);)r.push(Ne(a)),a=(0,Y.P)(a,1);return r}var Vn=function(t){function e(e){var n=t.call(this,e)||this;return n.renderOptions=function(){return n.state.monthYearsList.map((function(t){var e=(0,ut.W)(t),r=Ve(n.props.date,t)&&$e(n.props.date,t);return i.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:e,onClick:n.onChange.bind(n,e),"aria-selected":r?"true":void 0},r?i.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Ie(t,n.props.dateFormat,n.props.locale))}))},n.onChange=function(t){return n.props.onChange(t)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Yn(n.props.minDate,n.props.maxDate,n.props.date)},n}return ye(e,t),e.prototype.render=function(){var t=(0,r.$)({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return i.createElement(ke,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(i.Component),$n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t,n,r=null!==(t=e.props.minDate)&&void 0!==t?t:J(e.props.date,5),o=null!==(n=e.props.maxDate)&&void 0!==n?n:(0,K.e)(e.props.date,5),a=ze(r),s=ze(o),l=[];!rt(a,s);){var u=(0,ut.W)(a);l.push(i.createElement("option",{key:u,value:u},Ie(a,e.props.dateFormat,e.props.locale))),a=(0,Y.P)(a,1)}return l},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return i.createElement("select",{value:(0,ut.W)(ze(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){var n=Ie(e.props.date,e.props.dateFormat,e.props.locale);return i.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:e.toggleDropdown},i.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},e.renderDropdown=function(){return i.createElement(Vn,we({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n},e.onChange=function(t){e.toggleDropdown();var n=Ne(t);Ve(e.props.date,n)&&$e(e.props.date,n)||e.props.onChange(n)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return ye(e,t),e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode()}return i.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(i.Component),Gn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var t,r,i;n.list&&(n.list.scrollTop=null!==(i=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(t=n.header)||void 0===t?void 0:t.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==i?i:0)}))},n.handleClick=function(t){var e,r;(n.props.minTime||n.props.maxTime)&&gn(t,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&pn(t,n.props)||null===(r=(e=n.props).onChange)||void 0===r||r.call(e,t)},n.isSelectedTime=function(t){var e=Oe(n.props.selected);return e&&An(e,t)},n.isDisabledTime=function(t){return(n.props.minTime||n.props.maxTime)&&gn(t,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&pn(t,n.props)},n.liClasses=function(t){var r,i=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(t):void 0];return n.isSelectedTime(t)&&i.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(t)&&i.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*z(t)+60*q(t)+W(t))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:e.defaultProps.intervals))!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},n.handleOnKeyDown=function(t,e){var r,i;t.key===xe.Space&&(t.preventDefault(),t.key=xe.Enter),(t.key===xe.ArrowUp||t.key===xe.ArrowLeft)&&t.target instanceof HTMLElement&&t.target.previousSibling&&(t.preventDefault(),t.target.previousSibling instanceof HTMLElement&&t.target.previousSibling.focus()),(t.key===xe.ArrowDown||t.key===xe.ArrowRight)&&t.target instanceof HTMLElement&&t.target.nextSibling&&(t.preventDefault(),t.target.nextSibling instanceof HTMLElement&&t.target.nextSibling.focus()),t.key===xe.Enter&&n.handleClick(e),null===(i=(r=n.props).handleOnKeyDown)||void 0===i||i.call(r,t)},n.renderTimes=function(){for(var t,r=[],o="string"===typeof n.props.format?n.props.format:"p",a=null!==(t=n.props.intervals)&&void 0!==t?t:e.defaultProps.intervals,s=Oe(n.props.selected)||Oe(n.props.openToDate)||Ne(),l=je(s),u=n.props.injectTimes&&n.props.injectTimes.sort((function(t,e){return t.getTime()-e.getTime()})),c=60*function(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+n-+e)/36e5)}(s),h=c/a,d=0;d<h;d++){var f=(0,et.z)(l,d*a);if(r.push(f),u){var p=kn(l,f,d,a,u);r=r.concat(p)}}var g=r.reduce((function(t,e){return e.getTime()<=s.getTime()?e:t}),r[0]);return r.map((function(t){return i.createElement("li",{key:t.valueOf(),onClick:n.handleClick.bind(n,t),className:n.liClasses(t),ref:function(e){t===g&&(n.centerLi=e)},onKeyDown:function(e){n.handleOnKeyDown(e,t)},tabIndex:t===g?0:-1,role:"option","aria-selected":n.isSelectedTime(t)?"true":void 0,"aria-disabled":n.isDisabledTime(t)?"true":void 0},Ie(t,o,n.props.locale))}))},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?i.createElement(i.Fragment,null):i.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){n.header=t}},i.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return ye(e,t),Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()},e.prototype.observeDatePickerHeightChanges=function(){var t=this,e=this.props.monthRef;this.updateContainerHeight(),e&&(this.resizeObserver=new ResizeObserver((function(){t.updateContainerHeight()})),this.resizeObserver.observe(e))},e.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var t=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==t&&this.setState({height:t})}},e.prototype.render=function(){var t,n=this,r=this.state.height;return i.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(t=this.props.todayButton)&&void 0!==t?t:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),i.createElement("div",{className:"react-datepicker__time"},i.createElement("div",{className:"react-datepicker__time-box"},i.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){n.list=t},style:r?{height:r}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(t,e){return e.offsetTop-(t/2-e.clientHeight/2)},e}(i.Component),Kn=function(t){function e(e){var n=t.call(this,e)||this;return n.YEAR_REFS=De([],Array(n.props.yearItemNumber),!0).map((function(){return(0,i.createRef)()})),n.isDisabled=function(t){return nn(t,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(t){return rn(t,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var t;return null!==(t=n.props.selectingDate)&&void 0!==t?t:n.props.preSelection},n.updateFocusOnPaginate=function(t){window.requestAnimationFrame((function(){var e,r;null===(r=null===(e=n.YEAR_REFS[t])||void 0===e?void 0:e.current)||void 0===r||r.focus()}))},n.handleYearClick=function(t,e){n.props.onDayClick&&n.props.onDayClick(t,e)},n.handleYearNavigation=function(t,e){var r,i,o,a,s=n.props,l=s.date,u=s.yearItemNumber;if(void 0!==l&&void 0!==u){var c=Cn(l,u).startPeriod;n.isDisabled(e)||n.isExcluded(e)||(null===(i=(r=n.props).setPreSelection)||void 0===i||i.call(r,e),t-c<0?n.updateFocusOnPaginate(u-(c-t)):t-c>=u?n.updateFocusOnPaginate(Math.abs(u-(t-c))):null===(a=null===(o=n.YEAR_REFS[t-c])||void 0===o?void 0:o.current)||void 0===a||a.focus())}},n.isSameDay=function(t,e){return Ke(t,e)},n.isCurrentYear=function(t){return t===I(Ne())},n.isRangeStart=function(t){return n.props.startDate&&n.props.endDate&&Ve(ct(Ne(),t),n.props.startDate)},n.isRangeEnd=function(t){return n.props.startDate&&n.props.endDate&&Ve(ct(Ne(),t),n.props.endDate)},n.isInRange=function(t){return un(t,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(t){var e=n.props,r=e.selectsStart,i=e.selectsEnd,o=e.selectsRange,a=e.startDate,s=e.endDate;return!(!(r||i||o)||!n.selectingDate())&&(r&&s?un(t,n.selectingDate(),s):(i&&a||!(!o||!a||s))&&un(t,a,n.selectingDate()))},n.isSelectingRangeStart=function(t){var e;if(!n.isInSelectingRange(t))return!1;var r=n.props,i=r.startDate,o=r.selectsStart,a=ct(Ne(),t);return Ve(a,o?null!==(e=n.selectingDate())&&void 0!==e?e:null:null!==i&&void 0!==i?i:null)},n.isSelectingRangeEnd=function(t){var e;if(!n.isInSelectingRange(t))return!1;var r=n.props,i=r.endDate,o=r.selectsEnd,a=r.selectsRange,s=ct(Ne(),t);return Ve(s,o||a?null!==(e=n.selectingDate())&&void 0!==e?e:null:null!==i&&void 0!==i?i:null)},n.isKeyboardSelected=function(t){if(!n.props.disabledKeyboardNavigation&&void 0!==n.props.date&&null!=n.props.preSelection){var e=n.props,r=e.minDate,i=e.maxDate,o=e.excludeDates,a=e.includeDates,s=e.filterDate,l=e.selected,u=qe(ct(n.props.date,t)),c=(r||i||o||a||s)&&cn(t,n.props),h=!!l&&Ke(u,qe(l)),d=Ke(u,qe(n.props.preSelection));return!n.props.inline&&!h&&d&&!c}},n.isSelectedYear=function(t){var e=n.props,r=e.selectsMultiple,i=e.selected,o=e.selectedDates;return r?null===o||void 0===o?void 0:o.some((function(e){return t===I(e)})):!!i&&t===I(i)},n.onYearClick=function(t,e){var r=n.props.date;void 0!==r&&n.handleYearClick(qe(ct(r,e)),t)},n.onYearKeyDown=function(t,e){var r,i,o=t.key,a=n.props,s=a.date,l=a.yearItemNumber,u=a.handleOnKeyDown;if(o!==xe.Tab&&t.preventDefault(),!n.props.disabledKeyboardNavigation)switch(o){case xe.Enter:if(null==n.props.selected)break;n.onYearClick(t,e),null===(i=(r=n.props).setPreSelection)||void 0===i||i.call(r,n.props.selected);break;case xe.ArrowRight:if(null==n.props.preSelection)break;n.handleYearNavigation(e+1,(0,K.e)(n.props.preSelection,1));break;case xe.ArrowLeft:if(null==n.props.preSelection)break;n.handleYearNavigation(e-1,J(n.props.preSelection,1));break;case xe.ArrowUp:if(void 0===s||void 0===l||null==n.props.preSelection)break;var c=Cn(s,l).startPeriod;if((f=e-(d=3))<c){var h=l%d;e>=c&&e<c+h?d=h:d+=h,f=e-d}n.handleYearNavigation(f,J(n.props.preSelection,d));break;case xe.ArrowDown:if(void 0===s||void 0===l||null==n.props.preSelection)break;var d,f,p=Cn(s,l).endPeriod;if((f=e+(d=3))>p){h=l%d;e<=p&&e>p-h?d=h:d+=h,f=e+d}n.handleYearNavigation(f,(0,K.e)(n.props.preSelection,d))}u&&u(t)},n.getYearClassNames=function(t){var e=n.props,i=e.date,o=e.disabled,a=e.minDate,s=e.maxDate,l=e.excludeDates,u=e.includeDates,c=e.filterDate,h=e.yearClassName;return(0,r.$)("react-datepicker__year-text","react-datepicker__year-".concat(t),i?null===h||void 0===h?void 0:h(ct(i,t)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(t),"react-datepicker__year-text--disabled":(a||s||l||u||c||o)&&cn(t,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(t),"react-datepicker__year-text--range-start":n.isRangeStart(t),"react-datepicker__year-text--range-end":n.isRangeEnd(t),"react-datepicker__year-text--in-range":n.isInRange(t),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(t),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(t),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(t),"react-datepicker__year-text--today":n.isCurrentYear(t)})},n.getYearTabIndex=function(t){if(n.props.disabledKeyboardNavigation||null==n.props.preSelection)return"-1";var e=I(n.props.preSelection),r=cn(t,n.props);return t!==e||r?"-1":"0"},n.getYearContent=function(t){return n.props.renderYearContent?n.props.renderYearContent(t):t},n}return ye(e,t),e.prototype.render=function(){var t=this,e=[],n=this.props,r=n.date,o=n.yearItemNumber,a=n.onYearMouseEnter,s=n.onYearMouseLeave;if(void 0===r)return null;for(var l=Cn(r,o),u=l.startPeriod,c=l.endPeriod,h=function(n){e.push(i.createElement("div",{ref:d.YEAR_REFS[n-u],onClick:function(e){t.onYearClick(e,n)},onKeyDown:function(e){Nn(e)&&(e.preventDefault(),e.key=xe.Enter),t.onYearKeyDown(e,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(t){return a(t,n)},onPointerEnter:d.props.usePointerEvent?function(t){return a(t,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(t){return s(t,n)},onPointerLeave:d.props.usePointerEvent?function(t){return s(t,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,f=u;f<=c;f++)h(f);return i.createElement("div",{className:"react-datepicker__year"},i.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},e))},e}(i.Component);function Jn(t,e,n,r){for(var i=[],o=0;o<2*e+1;o++){var a=t+e-o,s=!0;n&&(s=I(n)<=a),r&&s&&(s=I(r)>=a),s&&i.push(a)}return i}var Xn=function(t){function e(e){var n=t.call(this,e)||this;n.yearOptionButtonsRef={},n.handleOptionKeyDown=function(t,e){var r;switch(e.key){case"Enter":e.preventDefault(),n.onChange(t);break;case"Escape":e.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":e.preventDefault();var i=t+("ArrowUp"===e.key?1:-1);n.yearOptionButtonsRef[i]&&(null===(r=n.yearOptionButtonsRef[i])||void 0===r||r.focus())}},n.renderOptions=function(){n.yearOptionButtonsRef={};var t=n.props.year,e=n.state.yearsList.map((function(e){return i.createElement("div",{ref:function(r){n.yearOptionButtonsRef[e]=r,e===t&&(null===r||void 0===r||r.focus())},role:"button",tabIndex:0,className:t===e?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:e,onClick:n.onChange.bind(n,e),onKeyDown:n.handleOptionKeyDown.bind(n,e),"aria-selected":t===e?"true":void 0},t===e?i.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",e)})),r=n.props.minDate?I(n.props.minDate):null,o=n.props.maxDate?I(n.props.maxDate):null;return o&&n.state.yearsList.find((function(t){return t===o}))||e.unshift(i.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},i.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),r&&n.state.yearsList.find((function(t){return t===r}))||e.push(i.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},i.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),e},n.onChange=function(t){n.props.onChange(t)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(t){var e=n.state.yearsList.map((function(e){return e+t}));n.setState({yearsList:e})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var r=e.yearDropdownItemNumber,o=e.scrollableYearDropdown,a=r||(o?10:5);return n.state={yearsList:Jn(n.props.year,a,n.props.minDate,n.props.maxDate)},n.dropdownRef=(0,i.createRef)(),n}return ye(e,t),e.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var e=t.children?Array.from(t.children):null,n=e?e.find((function(t){return t.ariaSelected})):null;t.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},e.prototype.render=function(){var t=(0,r.$)({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return i.createElement(ke,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(i.Component),Qn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t=e.props.minDate?I(e.props.minDate):1900,n=e.props.maxDate?I(e.props.maxDate):2100,r=[],o=t;o<=n;o++)r.push(i.createElement("option",{key:o,value:o},o));return r},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return i.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){return i.createElement("button",{key:"read",type:"button",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:e.toggleDropdown},i.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))},e.renderDropdown=function(){return i.createElement(Xn,we({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n},e.onChange=function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)},e.toggleDropdown=function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))},e.handleYearChange=function(t,n){var r;null===(r=e.onSelect)||void 0===r||r.call(e,t,n),e.setOpen()},e.onSelect=function(t,n){var r,i;null===(i=(r=e.props).onSelect)||void 0===i||i.call(r,t,n)},e.setOpen=function(){var t,n;null===(n=(t=e.props).setOpen)||void 0===n||n.call(t,!0)},e}return ye(e,t),e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode()}return i.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(i.Component),Zn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],tr="react-datepicker-ignore-onclickoutside",er=function(t){function e(n){var o=t.call(this,n)||this;return o.monthContainer=void 0,o.handleClickOutside=function(t){o.props.onClickOutside(t)},o.setClickOutsideRef=function(){return o.containerRef.current},o.handleDropdownFocus=function(t){var e,n;(function(t){var e=(t.className||"").split(/\s+/);return Zn.some((function(t){return e.indexOf(t)>=0}))})(t.target)&&(null===(n=(e=o.props).onDropdownFocus)||void 0===n||n.call(e,t))},o.getDateInView=function(){var t=o.props,e=t.preSelection,n=t.selected,r=t.openToDate,i=wn(o.props),a=Dn(o.props),s=Ne(),l=r||n||e;return l||(i&&(0,it.Y)(s,i)?i:a&&rt(s,a)?a:s)},o.increaseMonth=function(){o.setState((function(t){var e=t.date;return{date:(0,Y.P)(e,1)}}),(function(){return o.handleMonthChange(o.state.date)}))},o.decreaseMonth=function(){o.setState((function(t){var e=t.date;return{date:(0,H.a)(e,1)}}),(function(){return o.handleMonthChange(o.state.date)}))},o.handleDayClick=function(t,e,n){o.props.onSelect(t,e,n),o.props.setPreSelection&&o.props.setPreSelection(t)},o.handleDayMouseEnter=function(t){o.setState({selectingDate:t}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(t)},o.handleMonthMouseLeave=function(){o.setState({selectingDate:void 0}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()},o.handleYearMouseEnter=function(t,e){o.setState({selectingDate:ct(Ne(),e)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(t,e)},o.handleYearMouseLeave=function(t,e){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(t,e)},o.handleYearChange=function(t){var e,n,r,i;null===(n=(e=o.props).onYearChange)||void 0===n||n.call(e,t),o.setState({isRenderAriaLiveMessage:!0}),o.props.adjustDateOnChange&&(o.props.onSelect(t),null===(i=(r=o.props).setOpen)||void 0===i||i.call(r,!0)),o.props.setPreSelection&&o.props.setPreSelection(t)},o.getEnabledPreSelectionDateForMonth=function(t){if(!nn(t,o.props))return t;for(var e=ze(t),n=Ye(t),r=(0,ht.c)(n,e),i=null,a=0;a<=r;a++){var s=(0,st.f)(e,a);if(!nn(s,o.props)){i=s;break}}return i},o.handleMonthChange=function(t){var e,n,r,i=null!==(e=o.getEnabledPreSelectionDateForMonth(t))&&void 0!==e?e:t;o.handleCustomMonthChange(i),o.props.adjustDateOnChange&&(o.props.onSelect(i),null===(r=(n=o.props).setOpen)||void 0===r||r.call(n,!0)),o.props.setPreSelection&&o.props.setPreSelection(i)},o.handleCustomMonthChange=function(t){var e,n;null===(n=(e=o.props).onMonthChange)||void 0===n||n.call(e,t),o.setState({isRenderAriaLiveMessage:!0})},o.handleMonthYearChange=function(t){o.handleYearChange(t),o.handleMonthChange(t)},o.changeYear=function(t){o.setState((function(e){return{date:ct(e.date,Number(t))}}),(function(){return o.handleYearChange(o.state.date)}))},o.changeMonth=function(t){o.setState((function(e){return{date:M(e.date,Number(t))}}),(function(){var t,e;o.handleMonthChange(o.state.date),null===(e=(t=o.props).onMonthSelectedInChange)||void 0===e||e.call(t,0)}))},o.changeMonthYear=function(t){o.setState((function(e){return{date:ct(M(e.date,T(t)),I(t))}}),(function(){return o.handleMonthYearChange(o.state.date)}))},o.header=function(t,e){if(void 0===t&&(t=o.state.date),void 0===e&&(e=0),!Me(t))return[];var n=o.props.disabled,a=Be(t,o.props.locale,o.props.calendarStartDay),s=[];return o.props.showWeekNumbers&&s.push(i.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(n?"react-datepicker__day-name--disabled":""),role:"columnheader"},i.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),i.createElement("span",{"aria-hidden":"true"},o.props.weekLabel||"#"))),s.concat([0,1,2,3,4,5,6].map((function(t){var s=(0,st.f)(a,t),l=o.formatWeekday(s,o.props.locale),u=Ie(s,"EEEE",o.props.locale),c=o.props.weekDayClassName?o.props.weekDayClassName(s):void 0;if(o.props.renderCustomDayName){var h=o.props.renderCustomDayName({day:s,shortName:l,fullName:u,locale:o.props.locale,customDayNameCount:e});return i.createElement("div",{key:t,role:"columnheader",className:(0,r.$)("react-datepicker__day-name",c,n?"react-datepicker__day-name--disabled":"")},h)}return i.createElement("div",{key:t,role:"columnheader",className:(0,r.$)("react-datepicker__day-name",c,n?"react-datepicker__day-name--disabled":"")},i.createElement("span",{className:"react-datepicker__sr-only"},u),i.createElement("span",{"aria-hidden":"true"},l))})))},o.formatWeekday=function(t,e){return o.props.formatWeekDay?function(t,e,n){return e(Ie(t,"EEEE",n))}(t,o.props.formatWeekDay,e):o.props.useWeekdaysShort?function(t,e){return Ie(t,"EEE",e)}(t,e):function(t,e){return Ie(t,"EEEEEE",e)}(t,e)},o.decreaseYear=function(){o.setState((function(t){var n;return{date:J(t.date,o.props.showYearPicker?null!==(n=o.props.yearItemNumber)&&void 0!==n?n:e.defaultProps.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))},o.clearSelectingDate=function(){o.setState({selectingDate:void 0})},o.renderPreviousButton=function(){var t,n,r;if(!o.props.renderCustomHeader){var a,s=null!==(t=o.props.monthsShown)&&void 0!==t?t:e.defaultProps.monthsShown,l=o.props.showPreviousMonths?s-1:0,u=null!==(n=o.props.monthSelectedIn)&&void 0!==n?n:l,c=(0,H.a)(o.state.date,u);switch(!0){case o.props.disabled:a=!0;break;case o.props.showMonthYearPicker:a=vn(o.state.date,o.props);break;case o.props.showYearPicker:a=function(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.yearItemNumber,o=void 0===i?12:i,a=Cn(qe(J(t,o)),o).endPeriod,s=r&&I(r);return s&&s>a||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:a=function(t,e){var n=void 0===e?{}:e,r=n.minDate,i=n.includeDates,o=$((0,y.D)(t),1);return r&&G(r,o)>0||i&&i.every((function(t){return G(t,o)>0}))||!1}(o.state.date,o.props);break;default:a=mn(c,o.props)}if(((null!==(r=o.props.forceShowMonthNavigation)&&void 0!==r?r:e.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!a)&&!o.props.showTimeSelectOnly){var h=["react-datepicker__navigation","react-datepicker__navigation--previous"],d=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(d=o.decreaseYear),a&&o.props.showDisabledMonthNavigation&&(h.push("react-datepicker__navigation--previous--disabled"),d=void 0);var f=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,p=o.props,g=p.previousMonthButtonLabel,m=void 0===g?e.defaultProps.previousMonthButtonLabel:g,b=p.previousYearButtonLabel,v=void 0===b?e.defaultProps.previousYearButtonLabel:b,w=o.props,D=w.previousMonthAriaLabel,x=void 0===D?"string"===typeof m?m:"Previous Month":D,_=w.previousYearAriaLabel,k=void 0===_?"string"===typeof v?v:"Previous Year":_;return i.createElement("button",{type:"button",className:h.join(" "),onClick:d,onKeyDown:o.props.handleOnKeyDown,"aria-label":f?k:x},i.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},f?v:m))}}},o.increaseYear=function(){o.setState((function(t){var n,r=t.date;return{date:(0,K.e)(r,o.props.showYearPicker?null!==(n=o.props.yearItemNumber)&&void 0!==n?n:e.defaultProps.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))},o.renderNextButton=function(){var t;if(!o.props.renderCustomHeader){var n;switch(!0){case o.props.disabled:n=!0;break;case o.props.showMonthYearPicker:n=yn(o.state.date,o.props);break;case o.props.showYearPicker:n=function(t,e){var n=void 0===e?{}:e,r=n.maxDate,i=n.yearItemNumber,o=void 0===i?12:i,a=Cn((0,K.e)(t,o),o).startPeriod,s=r&&I(r);return s&&s<a||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:n=function(t,e){var n=void 0===e?{}:e,r=n.maxDate,i=n.includeDates,o=(0,R.Q)(t),a=(0,V.z)(o,1);return r&&G(a,r)>0||i&&i.every((function(t){return G(a,t)>0}))||!1}(o.state.date,o.props);break;default:n=bn(o.state.date,o.props)}if(((null!==(t=o.props.forceShowMonthNavigation)&&void 0!==t?t:e.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!n)&&!o.props.showTimeSelectOnly){var r=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&r.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&r.push("react-datepicker__navigation--next--with-today-button");var a=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(a=o.increaseYear),n&&o.props.showDisabledMonthNavigation&&(r.push("react-datepicker__navigation--next--disabled"),a=void 0);var s=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,l=o.props,u=l.nextMonthButtonLabel,c=void 0===u?e.defaultProps.nextMonthButtonLabel:u,h=l.nextYearButtonLabel,d=void 0===h?e.defaultProps.nextYearButtonLabel:h,f=o.props,p=f.nextMonthAriaLabel,g=void 0===p?"string"===typeof c?c:"Next Month":p,m=f.nextYearAriaLabel,b=void 0===m?"string"===typeof d?d:"Next Year":m;return i.createElement("button",{type:"button",className:r.join(" "),onClick:a,onKeyDown:o.props.handleOnKeyDown,"aria-label":s?b:g},i.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},s?d:c))}}},o.renderCurrentMonth=function(t){void 0===t&&(t=o.state.date);var e=["react-datepicker__current-month"];return o.props.showYearDropdown&&e.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&e.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&e.push("react-datepicker__current-month--hasMonthYearDropdown"),i.createElement("h2",{className:e.join(" ")},Me(t)?Ie(t,o.props.dateFormat,o.props.locale):"")},o.renderYearDropdown=function(t){if(void 0===t&&(t=!1),o.props.showYearDropdown&&!t)return i.createElement(Qn,we({},e.defaultProps,o.props,{date:o.state.date,onChange:o.changeYear,year:I(o.state.date)}))},o.renderMonthDropdown=function(t){if(void 0===t&&(t=!1),o.props.showMonthDropdown&&!t)return i.createElement(Un,we({},e.defaultProps,o.props,{month:T(o.state.date),onChange:o.changeMonth}))},o.renderMonthYearDropdown=function(t){if(void 0===t&&(t=!1),o.props.showMonthYearDropdown&&!t)return i.createElement($n,we({},e.defaultProps,o.props,{date:o.state.date,onChange:o.changeMonthYear}))},o.handleTodayButtonClick=function(t){o.props.onSelect(He(),t),o.props.setPreSelection&&o.props.setPreSelection(He())},o.renderTodayButton=function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return i.createElement("div",{className:"react-datepicker__today-button",onClick:o.handleTodayButtonClick},o.props.todayButton)},o.renderDayNamesHeader=function(t,e){return void 0===e&&(e=0),i.createElement("div",{className:"react-datepicker__day-names",role:"row"},o.header(t,e))},o.renderDefaultHeader=function(t){var e=t.monthDate,n=t.i,a=i.createElement("div",{className:(0,r.$)("react-datepicker__header",{"react-datepicker__header--has-time-select":o.props.showTimeSelect,"react-datepicker__header--middle":"middle"===o.props.monthHeaderPosition,"react-datepicker__header--bottom":"bottom"===o.props.monthHeaderPosition})},o.renderCurrentMonth(e),i.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(0!==n),o.renderMonthYearDropdown(0!==n),o.renderYearDropdown(0!==n)));return"top"===o.props.monthHeaderPosition?a:i.createElement("div",{className:"react-datepicker__header-wrapper"},o.renderPreviousButton()||null,o.renderNextButton()||null,a)},o.renderCustomHeader=function(t){var e,n,r=t.monthDate,a=t.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var s,l=o.props,u=l.showYearPicker,c=l.yearItemNumber;if(u){var h=Cn(r,c);s={startYear:h.startPeriod,endYear:h.endPeriod}}var d=mn(o.state.date,o.props),f=bn(o.state.date,o.props),p=vn(o.state.date,o.props),g=yn(o.state.date,o.props);return i.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},null===(n=(e=o.props).renderCustomHeader)||void 0===n?void 0:n.call(e,we(we(we({},o.state),u&&{visibleYearsRange:s}),{customHeaderCount:a,monthDate:r,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:d,nextMonthButtonDisabled:f,prevYearButtonDisabled:p,nextYearButtonDisabled:g})))},o.renderYearHeader=function(t){var n=t.monthDate,r=o.props,a=r.showYearPicker,s=r.yearItemNumber,l=Cn(n,void 0===s?e.defaultProps.yearItemNumber:s),u=l.startPeriod,c=l.endPeriod;return i.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(u," - ").concat(c):I(n))},o.renderHeader=function(t){var e=t.monthDate,n=t.i,r={monthDate:e,i:void 0===n?0:n};switch(!0){case void 0!==o.props.renderCustomHeader:return o.renderCustomHeader(r);case o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker:return o.renderYearHeader(r);default:return o.renderDefaultHeader(r)}},o.renderMonths=function(){var t,n;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var r=[],a=null!==(t=o.props.monthsShown)&&void 0!==t?t:e.defaultProps.monthsShown,s=o.props.showPreviousMonths?a-1:0,l=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?(0,K.e)(o.state.date,s):(0,H.a)(o.state.date,s),u=null!==(n=o.props.monthSelectedIn)&&void 0!==n?n:s,c=0;c<a;++c){var h=c-u+s,d=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?(0,K.e)(l,h):(0,Y.P)(l,h),f="month-".concat(c),p=c<a-1,g=c>0;r.push(i.createElement("div",{key:f,ref:function(t){o.monthContainer=null!==t&&void 0!==t?t:void 0},className:"react-datepicker__month-container"},"top"===o.props.monthHeaderPosition&&o.renderHeader({monthDate:d,i:c}),i.createElement(Wn,we({},e.defaultProps,o.props,{containerRef:o.containerRef,ariaLabelPrefix:o.props.monthAriaLabelPrefix,day:d,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,handleOnMonthKeyDown:o.props.handleOnKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,orderInDisplay:c,selectingDate:o.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:g,dayNamesHeader:o.renderDayNamesHeader(d,c),monthHeader:"middle"===o.props.monthHeaderPosition?o.renderHeader({monthDate:d,i:c}):void 0,monthFooter:"bottom"===o.props.monthHeaderPosition?o.renderHeader({monthDate:d,i:c}):void 0}))))}return r}},o.renderYears=function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?i.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader({monthDate:o.state.date}),i.createElement(Kn,we({},e.defaultProps,o.props,{selectingDate:o.state.selectingDate,date:o.state.date,onDayClick:o.handleDayClick,clearSelectingDate:o.clearSelectingDate,onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0},o.renderTimeSection=function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return i.createElement(Gn,we({},e.defaultProps,o.props,{onChange:o.props.onTimeChange,format:o.props.timeFormat,intervals:o.props.timeIntervals,monthRef:o.state.monthContainer}))},o.renderInputTimeSection=function(){var t,n;if(o.props.showTimeInput){if(o.props.selectsRange){var r=o.props,a=r.startDate,s=r.endDate,l=a?new Date(a):void 0,u=l&&Me(l)&&Boolean(a)?"".concat(Sn(l.getHours()),":").concat(Sn(l.getMinutes())):"",c=s?new Date(s):void 0,h=c&&Me(c)&&Boolean(s)?"".concat(Sn(c.getHours()),":").concat(Sn(c.getMinutes())):"";return i.createElement(i.Fragment,null,i.createElement(Mn,we({},e.defaultProps,o.props,{date:l,timeString:u,onChange:function(t){var e,n;null===(n=(e=o.props).onTimeChange)||void 0===n||n.call(e,t,"start")},timeInputLabel:(null!==(t=o.props.timeInputLabel)&&void 0!==t?t:"Time")+" (Start)"})),i.createElement(Mn,we({},e.defaultProps,o.props,{date:c,timeString:h,onChange:function(t){var e,n;null===(n=(e=o.props).onTimeChange)||void 0===n||n.call(e,t,"end")},timeInputLabel:(null!==(n=o.props.timeInputLabel)&&void 0!==n?n:"Time")+" (End)"})))}var d=o.props.selected?new Date(o.props.selected):void 0,f=d&&Me(d)&&Boolean(o.props.selected)?"".concat(Sn(d.getHours()),":").concat(Sn(d.getMinutes())):"";return i.createElement(Mn,we({},e.defaultProps,o.props,{date:d,timeString:f,onChange:function(t){var e,n;null===(n=(e=o.props).onTimeChange)||void 0===n||n.call(e,t)}}))}},o.renderAriaLiveRegion=function(){var t;if(!Me(o.state.date))return i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var n,r=Cn(o.state.date,null!==(t=o.props.yearItemNumber)&&void 0!==t?t:e.defaultProps.yearItemNumber),a=r.startPeriod,s=r.endPeriod;return n=o.props.showYearPicker?"".concat(a," - ").concat(s):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?I(o.state.date):"".concat(tn(T(o.state.date),o.props.locale)," ").concat(I(o.state.date)),i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&n)},o.renderChildren=function(){if(o.props.children)return i.createElement("div",{className:"react-datepicker__children-container"},o.props.children)},o.containerRef=(0,i.createRef)(),o.state={date:o.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},o}return ye(e,t),Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:tr,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=void t.setState({monthContainer:t.monthContainer}))},e.prototype.componentDidUpdate=function(t){var e=this;if(!this.props.preSelection||!Me(this.props.preSelection)||Ke(this.props.preSelection,t.preSelection)&&this.props.monthSelectedIn===t.monthSelectedIn)this.props.openToDate&&!Ke(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!$e(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&e.handleCustomMonthChange(e.state.date)}))}},e.prototype.render=function(){var t=this.props.container||_e;return i.createElement(ke,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},i.createElement("div",{style:{display:"contents"},ref:this.containerRef},i.createElement(t,{className:(0,r.$)("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),"top"===this.props.monthHeaderPosition&&this.renderPreviousButton(),"top"===this.props.monthHeaderPosition&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},e}(i.Component),nr=function(t){var e=t.icon,n=t.className,r=void 0===n?"":n,o=t.onClick,a="react-datepicker__calendar-icon";if("string"===typeof e)return i.createElement("i",{className:"".concat(a," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:o});if(i.isValidElement(e)){var s=e;return i.cloneElement(s,{className:"".concat(s.props.className||""," ").concat(a," ").concat(r),onClick:function(t){"function"===typeof s.props.onClick&&s.props.onClick(t),"function"===typeof o&&o(t)}})}return i.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},i.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},rr=function(t){function e(e){var n=t.call(this,e)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return ye(e,t),e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return vt.createPortal(this.props.children,this.el)},e}(i.Component),ir=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&-1!==t.tabIndex},or=function(t){function e(e){var n=t.call(this,e)||this;return n.getTabChildren=function(){var t;return Array.prototype.slice.call(null===(t=n.tabLoopRef.current)||void 0===t?void 0:t.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(ir)},n.handleFocusStart=function(){var t=n.getTabChildren();t&&t.length>1&&t[t.length-1].focus()},n.handleFocusEnd=function(){var t=n.getTabChildren();t&&t.length>1&&t[0].focus()},n.tabLoopRef=(0,i.createRef)(),n}return ye(e,t),e.prototype.render=function(){var t;return(null!==(t=this.props.enableTabLoop)&&void 0!==t?t:e.defaultProps.enableTabLoop)?i.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},i.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,i.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(i.Component);var ar=function(t){function e(e){var n,r,o,a="boolean"!==typeof e.hidePopper||e.hidePopper,s=(0,i.useRef)(null),l=be(we({open:!a,whileElementsMounted:zt,placement:e.popperPlacement,middleware:De([(r={padding:15},{...Wt(r),options:[r,o]}),Xt(10),Qt({element:s})],null!==(n=e.popperModifiers)&&void 0!==n?n:[],!0)},e.popperProps)),u=we(we({},e),{hidePopper:a,popperProps:we(we({},l),{arrowRef:s})});return i.createElement(t,we({},u))}return e.displayName="withFloating(".concat(t.displayName||t.name||"Component",")"),e}((function(t){var e=t.className,n=t.wrapperClassName,o=t.hidePopper,a=void 0===o||o,s=t.popperComponent,l=t.targetComponent,u=t.enableTabLoop,c=t.popperOnKeyDown,h=t.portalId,d=t.portalHost,f=t.popperProps,p=t.showArrow,g=t.popperTargetRef,m=t.monthHeaderPosition;(0,i.useEffect)((function(){(null===g||void 0===g?void 0:g.current)&&f.refs.setPositionReference(g.current)}),[g,f.refs]);var b=void 0;if(!a){var v=(0,r.$)("react-datepicker-popper",!p&&"react-datepicker-popper-offset","middle"===m&&"react-datepicker-popper--header-middle","bottom"===m&&"react-datepicker-popper--header-bottom",e);b=i.createElement(or,{enableTabLoop:u},i.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:v,"data-placement":f.placement,onKeyDown:c},s,p&&i.createElement(ce,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}t.popperContainer&&(b=(0,i.createElement)(t.popperContainer,{},b)),h&&!a&&(b=i.createElement(rr,{portalId:h,portalHost:d},b));var y=(0,r.$)("react-datepicker-wrapper",n);return i.createElement(i.Fragment,null,i.createElement("div",{ref:f.refs.setReference,className:y},l),b)}));function sr(t,e){return t&&e?T(t)!==T(e)||I(t)!==I(e):t!==e}var lr="Date input not valid.",ur=function(t){function e(n){var o=t.call(this,n)||this;return o.calendar=null,o.input=null,o.getPreSelection=function(){var t=o.props.timeZone,e=o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Ne();return t?Ae(e,t):e},o.modifyHolidays=function(){var t;return null===(t=o.props.holidays)||void 0===t?void 0:t.reduce((function(t,e){var n=Pe(e.date,"yyyy-MM-dd",void 0,!1);return n?De(De([],t,!0),[we(we({},e),{date:n})],!1):t}),[])},o.calcInitialState=function(){var t=o.props.timeZone,e=o.getPreSelection(),n=wn(o.props),r=Dn(o.props),i=n&&(0,it.Y)(e,je(n))?n:r&&rt(e,Ue(r))?r:e,a=o.props.selectsRange?o.props.startDate:o.props.selected;return a&&t&&(a=Ae(a,t)),{open:o.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==a&&void 0!==a?a:i,highlightDates:xn(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},o.getInputValue=function(){var t,n=o.props,r=n.locale,i=n.startDate,a=n.endDate,s=n.rangeSeparator,l=n.selected,u=n.selectedDates,c=n.selectsMultiple,h=n.selectsRange,d=n.formatMultipleDates,f=n.value,p=null!==(t=o.props.dateFormat)&&void 0!==t?t:e.defaultProps.dateFormat,g=o.state.inputValue;if("string"===typeof f)return f;if("string"===typeof g)return g;if(h)return function(t,e,n){if(!t&&!e)return"";var r=t?Te(t,n):"",i=e?Te(e,n):"",o=n.rangeSeparator||" - ";return"".concat(r).concat(o).concat(i)}(i,a,{dateFormat:p,locale:r,rangeSeparator:s});if(c){if(d){return d(null!==u&&void 0!==u?u:[],(function(t){return Te(t,{dateFormat:p,locale:r})}))}return function(t,e){if(!(null===t||void 0===t?void 0:t.length))return"";var n=t[0]?Te(t[0],e):"";if(1===t.length)return n;if(2===t.length&&t[1]){var r=Te(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}(null!==u&&void 0!==u?u:[],{dateFormat:p,locale:r})}return Te(l,{dateFormat:p,locale:r})},o.resetHiddenStatus=function(){o.setState(we(we({},o.state),{wasHidden:!1}))},o.setHiddenStatus=function(){o.setState(we(we({},o.state),{wasHidden:!0}))},o.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&o.setHiddenStatus()},o.clearPreventFocusTimeout=function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)},o.setFocus=function(){var t,e;null===(e=null===(t=o.input)||void 0===t?void 0:t.focus)||void 0===e||e.call(t,{preventScroll:!0})},o.setBlur=function(){var t,e;null===(e=null===(t=o.input)||void 0===t?void 0:t.blur)||void 0===e||e.call(t),o.cancelFocusInput()},o.deferBlur=function(){requestAnimationFrame((function(){o.setBlur()}))},o.setOpen=function(t,e){void 0===e&&(e=!1),o.setState({open:t,preSelection:t&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:hr},(function(){t||o.setState((function(t){return{focused:!!e&&t.focused}}),(function(){!e&&o.deferBlur(),o.setState({inputValue:null})}))}))},o.inputOk=function(){return(0,c.$)(o.state.preSelection)},o.isCalendarOpen=function(){return void 0===o.props.open?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open},o.handleFocus=function(t){var e,n,r=o.state.wasHidden,i=!r||o.state.open;r&&o.resetHiddenStatus(),o.state.preventFocus||(null===(n=(e=o.props).onFocus)||void 0===n||n.call(e,t),!i||o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})},o.sendFocusBackToInput=function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},(function(){o.preventFocusTimeout=setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))}))},o.cancelFocusInput=function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=void 0},o.deferFocusInput=function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout((function(){return o.setFocus()}),1)},o.handleDropdownFocus=function(){o.cancelFocusInput()},o.resetInputValue=function(){o.setState(we(we({},o.state),{inputValue:null}))},o.handleBlur=function(t){var e,n;(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&(null===(n=(e=o.props).onBlur)||void 0===n||n.call(e,t));var r=o.state.inputValue;"string"===typeof r&&r.length>0&&(!/[a-zA-Z0-9]/.test(r)&&o.props.selected&&o.setSelected(null,void 0,!0));o.resetInputValue(),o.state.open&&!1===o.props.open&&o.setOpen(!1),o.setState({focused:!1})},o.handleCalendarClickOutside=function(t){var e,n;null===(n=(e=o.props).onClickOutside)||void 0===n||n.call(e,t),o.props.inline||t.defaultPrevented||o.setOpen(!1),o.props.withPortal&&t.preventDefault()},o.handleChange=function(){for(var t,n,r,i,a,s,l,u,c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var d=c[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(o,c),d&&"function"===typeof d.isDefaultPrevented&&!d.isDefaultPrevented())){o.setState({inputValue:(null===d||void 0===d?void 0:d.target)instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:cr});var f=o.props,p=f.selectsRange,g=f.startDate,m=f.endDate,b=null!==(t=o.props.dateFormat)&&void 0!==t?t:e.defaultProps.dateFormat,v=null!==(n=o.props.strictParsing)&&void 0!==n?n:e.defaultProps.strictParsing,y=(null===d||void 0===d?void 0:d.target)instanceof HTMLInputElement?d.target.value:"";if(p){var w=o.props.rangeSeparator,D=w.trim(),x=y.split(b.includes(D)?w:D,2).map((function(t){return t.trim()})),_=x[0],k=x[1],S=Pe(null!==_&&void 0!==_?_:"",b,o.props.locale,v),C=S?Pe(null!==k&&void 0!==k?k:"",b,o.props.locale,v):null,F=(null===(r=Oe(g))||void 0===r?void 0:r.getTime())!==(null===S||void 0===S?void 0:S.getTime()),A=(null===(i=Oe(m))||void 0===i?void 0:i.getTime())!==(null===C||void 0===C?void 0:C.getTime());if(!F&&!A)return;if(S&&nn(S,o.props))return;if(C&&nn(C,o.props))return;S&&o.setState({preSelection:S}),null===(s=(a=o.props).onChange)||void 0===s||s.call(a,[S,C],d)}else{var E=Pe(y,b,o.props.locale,v,null!==(l=o.props.selected)&&void 0!==l?l:void 0);if(E||!y)o.setSelected(E,d,!0);else if(!o.props.inline){var L=function(t,e){if(void 0===e&&(e=Ne()),!t)return null;var n=t.match(/\b(1\d{3}|2\d{3})\b/);if(!n||!n[1])return null;var r=parseInt(n[1],10),i=t.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/),o=i&&i[1]?parseInt(i[1],10)-1:e.getMonth();return new Date(r,o,1)}(y,null!==(u=o.state.preSelection)&&void 0!==u?u:void 0);!L||o.props.minDate&&(0,it.Y)(L,o.props.minDate)||o.props.maxDate&&rt(L,o.props.maxDate)||o.setState({preSelection:L})}}}},o.handleSelect=function(t,n,r){var i;if(!o.props.readOnly){var a=o.props,s=a.selectsRange,l=a.startDate,u=a.endDate,c=a.locale,h=a.swapRange,d=null!==(i=o.props.dateFormat)&&void 0!==i?i:e.defaultProps.dateFormat,f=!s||l&&!u&&(h||!Ln(t,l));if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&f&&o.sendFocusBackToInput(),o.props.onChangeRaw){var p=Te(t,{dateFormat:d,locale:c});o.props.onChangeRaw(n,{date:t,formattedDate:p})}o.setSelected(t,n,!1,r),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect?o.setPreSelection(t):f&&o.setOpen(!1)}},o.setSelected=function(t,e,n,r){var i,a,s=o.props.timeZone,l=t;if(l&&s&&(l=Ee(l,s)),o.props.showYearPicker){if(null!==l&&cn(I(l),o.props))return}else if(o.props.showMonthYearPicker){if(null!==l&&on(l,o.props))return}else if(null!==l&&nn(l,o.props))return;var u=o.props,c=u.onChange,h=u.selectsRange,d=u.startDate,f=u.endDate,p=u.selectsMultiple,g=u.selectedDates,m=u.minTime,b=u.swapRange;if(!Je(o.props.selected,l)||o.props.allowSameDay||h||p)if(null!==l&&(!o.props.selected||n&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(l=Re(l,{hour:z(o.props.selected),minute:q(o.props.selected),second:W(o.props.selected)})),n||!o.props.showTimeSelect&&!o.props.showTimeSelectOnly||m&&(l=Re(l,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),o.props.inline||o.setState({preSelection:l}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:r})),h){var v=c,y=d&&!f,w=!d&&!!f,D=d&&f;!d&&!f?null===v||void 0===v||v([l,null],e):y?null===l?null===v||void 0===v||v([null,null],e):Ln(l,d)?b?null===v||void 0===v||v([l,d],e):null===v||void 0===v||v([l,null],e):null===v||void 0===v||v([d,l],e):w&&(l&&Ln(l,f)?null===v||void 0===v||v([l,f],e):null===v||void 0===v||v([l,null],e)),D&&(null===v||void 0===v||v([l,null],e))}else if(p){var x=c;if(null!==l)if(null===g||void 0===g?void 0:g.length)if(g.some((function(t){return Ke(t,l)}))){var _=g.filter((function(t){return!Ke(t,l)}));null===x||void 0===x||x(_,e)}else null===x||void 0===x||x(De(De([],g,!0),[l],!1),e);else null===x||void 0===x||x([l],e)}else null===c||void 0===c||c(l,e);n||(null===(a=(i=o.props).onSelect)||void 0===a||a.call(i,l,e),o.setState({inputValue:null}))},o.setPreSelection=function(t){if(!o.props.readOnly){var e=(0,c.$)(o.props.minDate),n=(0,c.$)(o.props.maxDate),r=!0;if(t){var i=je(t);if(e&&n)r=Xe(t,o.props.minDate,o.props.maxDate);else if(e){var a=je(o.props.minDate);r=rt(t,a)||Je(i,a)}else if(n){var s=Ue(o.props.maxDate);r=(0,it.Y)(t,s)||Je(i,s)}}r&&o.setState({preSelection:t})}},o.toggleCalendar=function(){o.setOpen(!o.state.open)},o.handleTimeChange=function(t,e){var n,r;if(!o.props.selectsMultiple){var i=o.props,a=i.selectsRange,s=i.startDate,l=i.endDate,u=i.onChange,c=i.timeZone;if(a){var h=u;if("start"===e){if(s){var d=Re(s,{hour:z(t),minute:q(t)});o.setState({preSelection:d}),c&&(d=Ee(d,c)),null===h||void 0===h||h([d,l?c?Ee(l,c):l:null],void 0)}}else if("end"===e){if(l){var f=Re(l,{hour:z(t),minute:q(t)});o.setState({preSelection:f}),c&&(f=Ee(f,c)),null===h||void 0===h||h([s?c?Ee(s,c):s:null,f],void 0)}}else{if(s&&!l){d=Re(s,{hour:z(t),minute:q(t)});o.setState({preSelection:d}),c&&(d=Ee(d,c)),null===h||void 0===h||h([d,null],void 0)}else if(s&&l){f=Re(l,{hour:z(t),minute:q(t)});o.setState({preSelection:f}),c&&(f=Ee(f,c)),null===h||void 0===h||h([c?Ee(s,c):s,f],void 0)}else{var p=Re(o.getPreSelection(),{hour:z(t),minute:q(t)});o.setState({preSelection:p})}}}else{var g=o.props.selected?o.props.selected:o.getPreSelection();p=o.props.selected?t:Re(g,{hour:z(t),minute:q(t)});o.setState({preSelection:p}),p&&c&&(p=Ee(p,c)),null===(r=(n=o.props).onChange)||void 0===r||r.call(n,p)}o.props.shouldCloseOnSelect&&!o.props.showTimeInput&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})}},o.onInputClick=function(){var t,e;o.props.disabled||o.props.readOnly||o.setOpen(!0),null===(e=(t=o.props).onInputClick)||void 0===e||e.call(t)},o.handleTimeOnlyArrowKey=function(t){var n,r,i,a,s,l=Oe(o.props.selected)||o.state.preSelection||Ne(),u=null!==(n=o.props.timeIntervals)&&void 0!==n?n:30,c=null!==(r=o.props.dateFormat)&&void 0!==r?r:e.defaultProps.dateFormat,h=Array.isArray(c)?c[0]:c,d=je(l),f=60*z(l)+q(l),p=1440-u;if(t===xe.ArrowUp){var g=Math.max(0,f-u);s=(0,et.z)(d,g)}else{g=Math.min(p,f+u);s=(0,et.z)(d,g)}var m=Ie(s,h||e.defaultProps.dateFormat,o.props.locale);if(o.setState({preSelection:s,inputValue:m}),!o.props.selectsRange&&!o.props.selectsMultiple){var b=o.props.selected?o.props.selected:o.getPreSelection(),v=o.props.selected?s:Re(b,{hour:z(s),minute:q(s)});null===(a=(i=o.props).onChange)||void 0===a||a.call(i,v),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame((function(){o.scrollToTimeOption(s)}))}},o.handleTimeOnlyEnterKey=function(t){var n,r,i,a,s=t.target.value,l=null!==(n=o.props.dateFormat)&&void 0!==n?n:e.defaultProps.dateFormat,u=o.props.timeFormat||"p",c=o.state.preSelection||Oe(o.props.selected)||Ne(),h=Pe(s,l,o.props.locale,null!==(r=o.props.strictParsing)&&void 0!==r&&r,c),d=c;if(h&&Me(h))d=h;else{var f=(null===(i=o.calendar)||void 0===i?void 0:i.containerRef.current)instanceof Element&&o.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");if(f instanceof HTMLElement){var p=null===(a=f.textContent)||void 0===a?void 0:a.trim();if(p){var g=Pe(p,u,o.props.locale,!1,c);g&&Me(g)&&(d=g)}}}o.handleTimeChange(d),o.setOpen(!1),o.sendFocusBackToInput()},o.scrollToTimeOption=function(t){var e,n;if(null===(e=o.calendar)||void 0===e?void 0:e.containerRef.current){for(var r=o.calendar.containerRef.current,i=Array.from(r.querySelectorAll(".react-datepicker__time-list-item")),a=null,s=1/0,l=o.props.timeFormat||"p",u=0,c=i;u<c.length;u++){var h=c[u],d=null===(n=h.textContent)||void 0===n?void 0:n.trim();if(d){var f=Pe(d,l,o.props.locale,!1,t);if(f&&Me(f)){if(An(f,t)){a=h;break}var p=Math.abs(f.getTime()-t.getTime());p<s&&(s=p,a=h)}}}a&&(i.forEach((function(t){t.setAttribute("tabindex","-1")})),a.setAttribute("tabindex","0"),a.scrollIntoView({behavior:"smooth",block:"center"}))}},o.onInputKeyDown=function(t){var e,n,r,i,a,s;null===(n=(e=o.props).onKeyDown)||void 0===n||n.call(e,t);var l=t.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open&&o.props.showTimeSelectOnly){if(l===xe.ArrowDown||l===xe.ArrowUp)return t.preventDefault(),void o.handleTimeOnlyArrowKey(l);if(l===xe.Enter)return t.preventDefault(),void o.handleTimeOnlyEnterKey(t)}if(o.state.open){if(l===xe.ArrowDown||l===xe.ArrowUp){t.preventDefault();var u=o.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':o.props.showFullMonthYearPicker||o.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=(null===(i=o.calendar)||void 0===i?void 0:i.containerRef.current)instanceof Element&&o.calendar.containerRef.current.querySelector(u);return void(c instanceof HTMLElement&&c.focus({preventScroll:!0}))}var h=Ne(o.state.preSelection);l===xe.Enter?(t.preventDefault(),t.target.blur(),o.inputOk()&&o.state.lastPreSelectChange===hr?(o.handleSelect(h,t),!o.props.shouldCloseOnSelect&&o.setPreSelection(h)):o.setOpen(!1)):l===xe.Escape?(t.preventDefault(),t.target.blur(),o.sendFocusBackToInput(),o.setOpen(!1)):l===xe.Tab&&o.setOpen(!1),o.inputOk()||null===(s=(a=o.props).onInputError)||void 0===s||s.call(a,{code:1,msg:lr})}}else l!==xe.ArrowDown&&l!==xe.ArrowUp&&l!==xe.Enter||null===(r=o.onInputClick)||void 0===r||r.call(o)},o.onPortalKeyDown=function(t){t.key===xe.Escape&&(t.preventDefault(),o.setState({preventFocus:!0},(function(){o.setOpen(!1),setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))})))},o.onDayKeyDown=function(t){var e,n,r,i,a,s,l=o.props,u=l.minDate,c=l.maxDate,h=l.disabledKeyboardNavigation,d=l.showWeekPicker,f=l.shouldCloseOnSelect,p=l.locale,g=l.calendarStartDay,m=l.adjustDateOnChange,b=l.inline;if(null===(n=(e=o.props).onKeyDown)||void 0===n||n.call(e,t),!h){var v=t.key,y=t.shiftKey,w=Ne(o.state.preSelection),D=function(t,e){var n=e;switch(t){case xe.ArrowRight:n=d?(0,lt.J)(e,1):(0,st.f)(e,1);break;case xe.ArrowLeft:n=d?dt(e,1):(0,ft.e)(e,1);break;case xe.ArrowUp:n=dt(e,1);break;case xe.ArrowDown:n=(0,lt.J)(e,1);break;case xe.PageUp:n=y?J(e,1):(0,H.a)(e,1);break;case xe.PageDown:n=y?(0,K.e)(e,1):(0,Y.P)(e,1);break;case xe.Home:n=Be(e,p,g);break;case xe.End:n=function(t){return(0,x.$)(t)}(e)}return n};if(v===xe.Enter)return t.preventDefault(),o.handleSelect(w,t),void(!f&&o.setPreSelection(w));if(v===xe.Escape)return t.preventDefault(),o.setOpen(!1),void(o.inputOk()||null===(i=(r=o.props).onInputError)||void 0===i||i.call(r,{code:1,msg:lr}));var _=null;switch(v){case xe.ArrowLeft:case xe.ArrowRight:case xe.ArrowUp:case xe.ArrowDown:case xe.PageUp:case xe.PageDown:case xe.Home:case xe.End:_=function(t,e){for(var n=t,r=!1,i=0,a=D(t,e);!r;){if(i>=40){a=e;break}u&&a<u&&(n=xe.ArrowRight,a=nn(u,o.props)?D(n,a):u),c&&a>c&&(n=xe.ArrowLeft,a=nn(c,o.props)?D(n,a):c),nn(a,o.props)?(n!==xe.PageUp&&n!==xe.Home||(n=xe.ArrowRight),n!==xe.PageDown&&n!==xe.End||(n=xe.ArrowLeft),a=D(n,a)):r=!0,i++}return a}(v,w)}_?(t.preventDefault(),o.setState({lastPreSelectChange:hr}),m&&o.setSelected(_),o.setPreSelection(_),b&&o.setState({shouldFocusDayInline:!0})):null===(s=(a=o.props).onInputError)||void 0===s||s.call(a,{code:1,msg:lr})}},o.onPopperKeyDown=function(t){t.key===xe.Escape&&(t.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1))},o.onClearClick=function(t){t&&t.preventDefault&&t.preventDefault(),o.sendFocusBackToInput();var e=o.props,n=e.selectsRange,r=e.onChange;n?null===r||void 0===r||r([null,null],t):null===r||void 0===r||r(null,t),o.setState({inputValue:null})},o.clear=function(){o.onClearClick()},o.onScroll=function(t){"boolean"===typeof o.props.closeOnScroll&&o.props.closeOnScroll?t.target!==document&&t.target!==document.documentElement&&t.target!==document.body||o.setOpen(!1):"function"===typeof o.props.closeOnScroll&&o.props.closeOnScroll(t)&&o.setOpen(!1)},o.handleMonthSelectedInChange=function(t){o.setState({monthSelectedIn:t})},o.renderCalendar=function(){var t,n;return o.props.inline||o.isCalendarOpen()?i.createElement(er,we({showMonthYearDropdown:void 0,ref:function(t){o.calendar=t}},o.props,o.state,{setOpen:o.setOpen,dateFormat:null!==(t=o.props.dateFormatCalendar)&&void 0!==t?t:e.defaultProps.dateFormatCalendar,onSelect:o.handleSelect,onClickOutside:o.handleCalendarClickOutside,holidays:_n(o.modifyHolidays()),outsideClickIgnoreClass:o.props.outsideClickIgnoreClass,onDropdownFocus:o.handleDropdownFocus,onTimeChange:o.handleTimeChange,className:o.props.calendarClassName,container:o.props.calendarContainer,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,setPreSelection:o.setPreSelection,dropdownMode:null!==(n=o.props.dropdownMode)&&void 0!==n?n:e.defaultProps.dropdownMode,onMonthSelectedInChange:o.handleMonthSelectedInChange}),o.props.children):null},o.renderAriaLiveRegion=function(){var t,n,r=o.props.locale,a=null!==(t=o.props.dateFormat)&&void 0!==t?t:e.defaultProps.dateFormat,s=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return n=o.props.selectsRange?"Selected start date: ".concat(Te(o.props.startDate,{dateFormat:s,locale:r}),". ").concat(o.props.endDate?"End date: "+Te(o.props.endDate,{dateFormat:s,locale:r}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(Te(o.props.selected,{dateFormat:a,locale:r})):o.props.showYearPicker?"Selected year: ".concat(Te(o.props.selected,{dateFormat:"yyyy",locale:r})):o.props.showMonthYearPicker?"Selected month: ".concat(Te(o.props.selected,{dateFormat:"MMMM yyyy",locale:r})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(Te(o.props.selected,{dateFormat:"yyyy, QQQ",locale:r})):"Selected date: ".concat(Te(o.props.selected,{dateFormat:s,locale:r})),i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n)},o.renderDateInput=function(){var t,n,a,s,l,u,c,h=(0,r.$)(o.props.className,((t={})[o.props.outsideClickIgnoreClass||e.defaultProps.outsideClickIgnoreClass]=o.state.open,t)),d=o.props.customInput||i.createElement("input",{type:"text"}),f=o.props.customInputRef||"ref",p={},g=null!==(a=o.props["aria-describedby"])&&void 0!==a?a:o.props.ariaDescribedBy,m=null!==(s=o.props["aria-invalid"])&&void 0!==s?s:o.props.ariaInvalid,b=null!==(l=o.props["aria-label"])&&void 0!==l?l:o.props.ariaLabel,v=null!==(u=o.props["aria-labelledby"])&&void 0!==u?u:o.props.ariaLabelledBy,y=null!==(c=o.props["aria-required"])&&void 0!==c?c:o.props.ariaRequired;return null!=g&&(p["aria-describedby"]=g),null!=m&&(p["aria-invalid"]=m),null!=b&&(p["aria-label"]=b),null!=v&&(p["aria-labelledby"]=v),null!=y&&(p["aria-required"]=y),(0,i.cloneElement)(d,we(((n={})[f]=function(t){o.input=t},n.value=o.getInputValue(),n.onBlur=o.handleBlur,n.onChange=o.handleChange,n.onClick=o.onInputClick,n.onFocus=o.handleFocus,n.onKeyDown=o.onInputKeyDown,n.id=o.props.id,n.name=o.props.name,n.form=o.props.form,n.autoFocus=o.props.autoFocus,n.placeholder=o.props.placeholderText,n.disabled=o.props.disabled,n.autoComplete=o.props.autoComplete,n.className=(0,r.$)(d.props.className,h),n.title=o.props.title,n.readOnly=o.props.readOnly,n.required=o.props.required,n.tabIndex=o.props.tabIndex,n),p))},o.renderClearButton=function(){var t=o.props,e=t.isClearable,n=t.disabled,a=t.selected,s=t.startDate,l=t.endDate,u=t.clearButtonTitle,c=t.clearButtonClassName,h=void 0===c?"":c,d=t.ariaLabelClose,f=void 0===d?"Close":d,p=t.selectedDates,g=t.readOnly;return!e||g||null==a&&null==s&&null==l&&!(null===p||void 0===p?void 0:p.length)?null:i.createElement("button",{type:"button",className:(0,r.$)("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":f,onClick:o.onClearClick,title:u,tabIndex:-1})},o.state=o.calcInitialState(),o.preventFocusTimeout=void 0,o}return ye(e,t),Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:tr,readOnly:!1,rangeSeparator:" - ",withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(t,e){var n,r,i,o;this.props.selectsRange&&sr(t.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):sr(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&!1===e.open&&!0===this.state.open&&0!==this.state.monthSelectedIn&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:xn(this.props.highlightDates)}),e.focused||Je(t.selected,this.props.selected)||this.setState({inputValue:null}),e.open!==this.state.open&&(!1===e.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===e.open&&!1===this.state.open&&(null===(o=(i=this.props).onCalendarClose)||void 0===o||o.call(i)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var t=this.props,e=t.showIcon,n=t.icon,o=t.calendarIconClassname,a=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,l=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),i.createElement("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":"")},e&&i.createElement(nr,we({icon:n,className:(0,r.$)(a,!a&&o,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},e.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var e=this.state.open?i.createElement(or,{enableTabLoop:this.props.enableTabLoop},i.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(e=i.createElement(rr,we({portalId:this.props.portalId},this.props),e)),i.createElement(i.Fragment,null,this.renderInputContainer(),e)}return i.createElement(ar,we({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},e}(i.Component),cr="input",hr="navigate"},92255(t,e,n){"use strict";n.d(e,{p3:()=>Ht,w$:()=>b,YI:()=>Vt});var r=["MO","TU","WE","TH","FR","SA","SU"],i=function(){function t(t,e){if(0===e)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=e}return t.fromStr=function(e){return new t(r.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},t.prototype.toString=function(){var t=r[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},t.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},t}(),o=function(t){return null!==t&&void 0!==t},a=function(t){return"number"===typeof t},s=function(t){return"string"===typeof t&&r.includes(t)},l=Array.isArray,u=function(t,e){void 0===e&&(e=t),1===arguments.length&&(e=t,t=0);for(var n=[],r=t;r<e;r++)n.push(r);return n},c=function(t,e){var n=0,r=[];if(l(t))for(;n<e;n++)r[n]=[].concat(t);else for(;n<e;n++)r[n]=t;return r};function h(t,e,n){void 0===n&&(n=" ");var r=String(t);return e|=0,r.length>e?String(r):((e-=r.length)>n.length&&(n+=c(n,e/n.length)),n.slice(0,e)+String(r))}var d=function(t,e){var n=t%e;return n*e<0?n+e:n},f=function(t,e){return{div:Math.floor(t/e),mod:d(t,e)}},p=function(t){return!o(t)||0===t.length},g=function(t){return!p(t)},m=function(t,e){return g(t)&&-1!==t.indexOf(e)},b=function(t,e,n,r,i,o){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),new Date(Date.UTC(t,e-1,n,r,i,o))},v=[31,28,31,30,31,30,31,31,30,31,30,31],y=864e5,w=b(1970,1,1),D=[6,0,1,2,3,4,5],x=function(t){return t%4===0&&t%100!==0||t%400===0},_=function(t){return t instanceof Date},k=function(t){return _(t)&&!isNaN(t.getTime())},S=function(t){return function(t,e){var n=t.getTime()-e.getTime();return Math.round(n/y)}(t,w)},C=function(t){return new Date(w.getTime()+t*y)},F=function(t){var e=t.getUTCMonth();return 1===e&&x(t.getUTCFullYear())?29:v[e]},A=function(t){return D[t.getUTCDay()]},E=function(t,e){var n=b(t,e+1,1);return[A(n),F(n)]},L=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},N=function(t){return new Date(t.getTime())},P=function(t){for(var e=[],n=0;n<t.length;n++)e.push(N(t[n]));return e},M=function(t){t.sort((function(t,e){return t.getTime()-e.getTime()}))},O=function(t,e){void 0===e&&(e=!0);var n=new Date(t);return[h(n.getUTCFullYear().toString(),4,"0"),h(n.getUTCMonth()+1,2,"0"),h(n.getUTCDate(),2,"0"),"T",h(n.getUTCHours(),2,"0"),h(n.getUTCMinutes(),2,"0"),h(n.getUTCSeconds(),2,"0"),e?"Z":""].join("")},I=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(t);if(!e)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[5],10)||0,parseInt(e[6],10)||0,parseInt(e[7],10)||0))},T=function(t,e){return t.toLocaleString("sv-SE",{timeZone:e}).replace(" ","T")+"Z"};const R=function(){function t(t,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=e,"between"===t?(this.maxDate=e.inc?e.before:new Date(e.before.getTime()-1),this.minDate=e.inc?e.after:new Date(e.after.getTime()+1)):"before"===t?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):"after"===t&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}return t.prototype.accept=function(t){++this.total;var e=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if("between"===this.method){if(e)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!e||(this.add(t),!1);return this.add(t)},t.prototype.add=function(t){return this._result.push(t),!0},t.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;default:return t.length?t[t.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}();var j=function(t,e){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},j(t,e)};function B(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var z=function(){return z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},z.apply(this,arguments)};Object.create;function q(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"===typeof SuppressedError&&SuppressedError;const W=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.iterator=r,i}return B(e,t),e.prototype.add=function(t){return!!this.iterator(t,this._result.length)&&(this._result.push(t),!0)},e}(R);const H={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var U=function(t,e){return-1!==t.indexOf(e)},Y=function(t){return t.toString()},V=function(t,e,n){return"".concat(e," ").concat(n,", ").concat(t)};const $=function(){function t(t,e,n,r){if(void 0===e&&(e=Y),void 0===n&&(n=H),void 0===r&&(r=V),this.text=[],this.language=n||H,this.gettext=e,this.dateFormatter=r,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);i.sort((function(t,e){return t-e})),a.sort((function(t,e){return e-t})),this.bymonthday=i.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(o(this.origOptions.byweekday)){var s=l(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(s);this.byweekday={allWeeks:s.filter((function(t){return!t.n})),someWeeks:s.filter((function(t){return Boolean(t.n)})),isWeekdays:-1!==u.indexOf("MO")&&-1!==u.indexOf("TU")&&-1!==u.indexOf("WE")&&-1!==u.indexOf("TH")&&-1!==u.indexOf("FR")&&-1===u.indexOf("SA")&&-1===u.indexOf("SU"),isEveryDay:-1!==u.indexOf("MO")&&-1!==u.indexOf("TU")&&-1!==u.indexOf("WE")&&-1!==u.indexOf("TH")&&-1!==u.indexOf("FR")&&-1!==u.indexOf("SA")&&-1!==u.indexOf("SU")};var c=function(t,e){return t.weekday-e.weekday};this.byweekday.allWeeks.sort(c),this.byweekday.someWeeks.sort(c),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){if(!(e.options.freq in t.IMPLEMENTED))return!1;if(e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(U(["dtstart","tzid","wkst","freq"],n))return!0;if(!U(t.IMPLEMENTED[e.options.freq],n))return!1}return!0},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[Ht.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},t.prototype.MINUTELY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},t.prototype.DAILY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(1===this.options.interval&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},t.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},t.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},t.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},t.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(t){var e;t=parseInt(t.toString(),10);var n=this.gettext;if(-1===t)return n("last");var r=Math.abs(t);switch(r){case 1:case 21:case 31:e=r+n("st");break;case 2:case 22:e=r+n("nd");break;case 3:case 23:e=r+n("rd");break;default:e=r+n("th")}return t<0?e+" "+n("last"):e},t.prototype.monthtext=function(t){return this.language.monthNames[t-1]},t.prototype.weekdaytext=function(t){var e=a(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[e]},t.prototype.plural=function(t){return t%100!==1},t.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},t.prototype.list=function(t,e,n,r){var i=this;void 0===r&&(r=","),l(t)||(t=[t]);e=e||function(t){return t.toString()};var o=function(t){return e&&e.call(i,t)};return n?function(t,e,n){for(var r="",i=0;i<t.length;i++)0!==i&&(i===t.length-1?r+=" "+n+" ":r+=e+" "),r+=t[i];return r}(t.map(o),r,n):t.map(o).join(r+" ")},t}();var G,K=function(){function t(t){this.done=!0,this.rules=t}return t.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&null===this.symbol},t.prototype.nextSymbol=function(){var t,e;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in t=null,this.rules){var r=this.rules[n].exec(this.text);r&&(null===t||r[0].length>t[0].length)&&(t=r,e=n)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===e);return this.symbol=e,this.value=t,!0},t.prototype.accept=function(t){if(this.symbol===t){if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},t}();function J(t,e){void 0===e&&(e=H);var n={},r=new K(e.tokens);return r.start(t)?(function(){r.expect("every");var t=r.acceptNumber();t&&(n.interval=parseInt(t[0],10));if(r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=Ht.DAILY,r.nextSymbol()&&(o(),u());break;case"weekday(s)":n.freq=Ht.WEEKLY,n.byweekday=[Ht.MO,Ht.TU,Ht.WE,Ht.TH,Ht.FR],r.nextSymbol(),o(),u();break;case"week(s)":n.freq=Ht.WEEKLY,r.nextSymbol()&&(i(),o(),u());break;case"hour(s)":n.freq=Ht.HOURLY,r.nextSymbol()&&(i(),u());break;case"minute(s)":n.freq=Ht.MINUTELY,r.nextSymbol()&&(i(),u());break;case"month(s)":n.freq=Ht.MONTHLY,r.nextSymbol()&&(i(),u());break;case"year(s)":n.freq=Ht.YEARLY,r.nextSymbol()&&(i(),u());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=Ht.WEEKLY;var e=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[Ht[e]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var c=s();if(!c)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(Ht[c]),r.nextSymbol()}o(),function(){r.accept("on"),r.accept("the");var t=l();if(!t)return;n.bymonthday=[t],r.nextSymbol();for(;r.accept("comma");){if(!(t=l()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(t),r.nextSymbol()}}(),u();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=Ht.YEARLY,n.bymonth=[a()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var h=a();if(!h)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(h),r.nextSymbol()}i(),u();break;default:throw new Error("Unknown symbol")}}(),n):null;function i(){var t=r.accept("on"),e=r.accept("the");if(t||e)do{var i=l(),o=s(),u=a();if(i)o?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Ht[o].nth(i))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(i),r.accept("day(s)"));else if(o)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Ht[o]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[Ht.MO,Ht.TU,Ht.WE,Ht.TH,Ht.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var c=r.acceptNumber();if(!c)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(c[0],10)];r.accept("comma");){if(!(c=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(c[0],10))}}else{if(!u)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(u)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function o(){if(r.accept("at"))do{var t=r.acceptNumber();if(!t)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(t[0],10)];r.accept("comma");){if(!(t=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(t[0],10))}}while(r.accept("comma")||r.accept("at"))}function a(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var t=parseInt(r.value[1],10);if(t<-366||t>366)throw new Error("Nth out of range: "+t);return r.nextSymbol(),r.accept("last")?-t:t;default:return!1}}function u(){if("until"===r.symbol){var t=Date.parse(r.text);if(!t)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(t)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}function X(t){return t<G.HOURLY}!function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"}(G||(G={}));var Q=function(t,e){return void 0===e&&(e=H),new Ht(J(t,e)||void 0)},Z=["count","until","interval","byweekday","bymonthday","bymonth"];$.IMPLEMENTED=[],$.IMPLEMENTED[G.HOURLY]=Z,$.IMPLEMENTED[G.MINUTELY]=Z,$.IMPLEMENTED[G.DAILY]=["byhour"].concat(Z),$.IMPLEMENTED[G.WEEKLY]=Z,$.IMPLEMENTED[G.MONTHLY]=Z,$.IMPLEMENTED[G.YEARLY]=["byweekno","byyearday"].concat(Z);var tt=$.isFullyConvertible,et=function(){function t(t,e,n,r){this.hour=t,this.minute=e,this.second=n,this.millisecond=r||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},t}(),nt=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,i,o,a,s)||this;return l.year=e,l.month=n,l.day=r,l}return B(e,t),e.fromDate=function(t){return new this(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.valueOf()%1e3)},e.prototype.getWeekday=function(){return A(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(t){this.year+=t},e.prototype.addMonths=function(t){if(this.month+=t,this.month>12){var e=Math.floor(this.month/12),n=d(this.month,12);this.month=n,this.year+=e,0===this.month&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(t,e){e>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-e))+7*t:this.day+=-(this.getWeekday()-e)+7*t,this.fixDay()},e.prototype.addDaily=function(t){this.day+=t,this.fixDay()},e.prototype.addHours=function(t,e,n){for(e&&(this.hour+=Math.floor((23-this.hour)/t)*t);;){this.hour+=t;var r=f(this.hour,24),i=r.div,o=r.mod;if(i&&(this.hour=o,this.addDaily(i)),p(n)||m(n,this.hour))break}},e.prototype.addMinutes=function(t,e,n,r){for(e&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/t)*t);;){this.minute+=t;var i=f(this.minute,60),o=i.div,a=i.mod;if(o&&(this.minute=a,this.addHours(o,!1,n)),(p(n)||m(n,this.hour))&&(p(r)||m(r,this.minute)))break}},e.prototype.addSeconds=function(t,e,n,r,i){for(e&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/t)*t);;){this.second+=t;var o=f(this.second,60),a=o.div,s=o.mod;if(a&&(this.second=s,this.addMinutes(a,!1,n,r)),(p(n)||m(n,this.hour))&&(p(r)||m(r,this.minute))&&(p(i)||m(i,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var t=E(this.year,this.month-1)[1];if(!(this.day<=t))for(;this.day>t;){if(this.day-=t,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;t=E(this.year,this.month-1)[1]}}},e.prototype.add=function(t,e){var n=t.freq,r=t.interval,i=t.wkst,o=t.byhour,a=t.byminute,s=t.bysecond;switch(n){case G.YEARLY:return this.addYears(r);case G.MONTHLY:return this.addMonths(r);case G.WEEKLY:return this.addWeekly(r,i);case G.DAILY:return this.addDaily(r);case G.HOURLY:return this.addHours(r,e,o);case G.MINUTELY:return this.addMinutes(r,e,o,a);case G.SECONDLY:return this.addSeconds(r,e,o,a,s)}},e}(et);function rt(t){for(var e=[],n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];m(Wt,i)||e.push(i),_(t[i])&&!k(t[i])&&e.push(i)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return z({},t)}function it(t){var e=z(z({},qt),rt(t));if(o(e.byeaster)&&(e.freq=Ht.YEARLY),!o(e.freq)||!Ht.FREQUENCIES[e.freq])throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date((new Date).setMilliseconds(0))),o(e.wkst)?a(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=Ht.MO.weekday,o(e.bysetpos)){a(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var n=0;n<e.bysetpos.length;n++){if(0===(c=e.bysetpos[n])||!(c>=-366&&c<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(e.byweekno)||g(e.byweekno)||g(e.byyearday)||Boolean(e.bymonthday)||g(e.bymonthday)||o(e.byweekday)||o(e.byeaster)))switch(e.freq){case Ht.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case Ht.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case Ht.WEEKLY:e.byweekday=[A(e.dtstart)]}if(o(e.bymonth)&&!l(e.bymonth)&&(e.bymonth=[e.bymonth]),o(e.byyearday)&&!l(e.byyearday)&&a(e.byyearday)&&(e.byyearday=[e.byyearday]),o(e.bymonthday))if(l(e.bymonthday)){var r=[],u=[];for(n=0;n<e.bymonthday.length;n++){var c;(c=e.bymonthday[n])>0?r.push(c):c<0&&u.push(c)}e.bymonthday=r,e.bynmonthday=u}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);else e.bymonthday=[],e.bynmonthday=[];if(o(e.byweekno)&&!l(e.byweekno)&&(e.byweekno=[e.byweekno]),o(e.byweekday))if(a(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(s(e.byweekday))e.byweekday=[i.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof i)!e.byweekday.n||e.freq>Ht.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{var h=[],d=[];for(n=0;n<e.byweekday.length;n++){var f=e.byweekday[n];a(f)?h.push(f):s(f)?h.push(i.fromStr(f).weekday):!f.n||e.freq>Ht.MONTHLY?h.push(f.weekday):d.push([f.weekday,f.n])}e.byweekday=g(h)?h:null,e.bynweekday=g(d)?d:null}else e.bynweekday=null;return o(e.byhour)?a(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<Ht.HOURLY?[e.dtstart.getUTCHours()]:null,o(e.byminute)?a(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<Ht.MINUTELY?[e.dtstart.getUTCMinutes()]:null,o(e.bysecond)?a(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<Ht.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function ot(t){var e=t.split("\n").map(st).filter((function(t){return null!==t}));return z(z({},e[0]),e[1])}function at(t){var e={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n)return e;var r=n[1],i=n[2];return r&&(e.tzid=r),e.dtstart=I(i),e}function st(t){if(!(t=t.replace(/^\s+|\s+$/,"")).length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return lt(t);var n=e[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return lt(t);case"DTSTART":return at(t);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(t))}}function lt(t){var e=at(t.replace(/^RRULE:/i,""));return t.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach((function(n){var r=n.split("="),o=r[0],a=r[1];switch(o.toUpperCase()){case"FREQ":e.freq=G[a.toUpperCase()];break;case"WKST":e.wkst=zt[a.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var s=function(t){if(-1!==t.indexOf(",")){return t.split(",").map(ut)}return ut(t)}(a),l=o.toLowerCase();e[l]=s;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=function(t){var e=t.split(",");return e.map((function(t){if(2===t.length)return zt[t];var e=t.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!e||e.length<3)throw new SyntaxError("Invalid weekday string: ".concat(t));var n=Number(e[1]),r=e[2],o=zt[r].weekday;return new i(o,n)}))}(a);break;case"DTSTART":case"TZID":var u=at(t);e.tzid=u.tzid,e.dtstart=u.dtstart;break;case"UNTIL":e.until=I(a);break;case"BYEASTER":e.byeaster=Number(a);break;default:throw new Error("Unknown RRULE property '"+o+"'")}})),e}function ut(t){return/^[+-]?\d+$/.test(t)?Number(t):t}var ct=function(){function t(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var t=O(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:function(t,e){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(T(t,n)),i=new Date(T(t,null!==e&&void 0!==e?e:"UTC")).getTime()-r.getTime();return new Date(t.getTime()-i)}(this.date,this.tzid)},t}();function ht(t){for(var e,n=[],r="",s=Object.keys(t),u=Object.keys(qt),c=0;c<s.length;c++)if("tzid"!==s[c]&&m(u,s[c])){var h=s[c].toUpperCase(),d=t[s[c]],f="";if(o(d)&&(!l(d)||d.length)){switch(h){case"FREQ":f=Ht.FREQUENCIES[t.freq];break;case"WKST":f=a(d)?new i(d).toString():d.toString();break;case"BYWEEKDAY":h="BYDAY",f=(e=d,l(e)?e:[e]).map((function(t){return t instanceof i?t:l(t)?new i(t[0],t[1]):new i(t)})).toString();break;case"DTSTART":r=dt(d,t.tzid);break;case"UNTIL":f=O(d,!t.tzid);break;default:if(l(d)){for(var p=[],g=0;g<d.length;g++)p[g]=String(d[g]);f=p.toString()}else f=String(d)}f&&n.push([h,f])}}var b=n.map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n.toString())})).join(";"),v="";return""!==b&&(v="RRULE:".concat(b)),[r,v].filter((function(t){return!!t})).join("\n")}function dt(t,e){return t?"DTSTART"+new ct(new Date(t),e).toString():""}function ft(t,e){return Array.isArray(t)?!!Array.isArray(e)&&(t.length===e.length&&t.every((function(t,n){return t.getTime()===e[n].getTime()}))):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():t===e}var pt=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(t,e,n){e&&(e=e instanceof Date?N(e):P(e)),"all"===t?this.all=e:(n._value=e,this[t].push(n))},t.prototype._cacheGet=function(t,e){var n=!1,r=e?Object.keys(e):[],i=function(t){for(var n=0;n<r.length;n++){var i=r[n];if(!ft(e[i],t[i]))return!0}return!1},o=this[t];if("all"===t)n=this.all;else if(l(o))for(var a=0;a<o.length;a++){var s=o[a];if(!r.length||!i(s)){n=s._value;break}}if(!n&&this.all){var u=new R(t,e);for(a=0;a<this.all.length&&u.accept(this.all[a]);a++);n=u.getValue(),this._cacheAdd(t,n,e)}return l(n)?P(n):n instanceof Date?N(n):n},t}(),gt=q(q(q(q(q(q(q(q(q(q(q(q(q([],c(1,31),!0),c(2,28),!0),c(3,31),!0),c(4,30),!0),c(5,31),!0),c(6,30),!0),c(7,31),!0),c(8,31),!0),c(9,30),!0),c(10,31),!0),c(11,30),!0),c(12,31),!0),c(1,7),!0),mt=q(q(q(q(q(q(q(q(q(q(q(q(q([],c(1,31),!0),c(2,29),!0),c(3,31),!0),c(4,30),!0),c(5,31),!0),c(6,30),!0),c(7,31),!0),c(8,31),!0),c(9,30),!0),c(10,31),!0),c(11,30),!0),c(12,31),!0),c(1,7),!0),bt=u(1,29),vt=u(1,30),yt=u(1,31),wt=u(1,32),Dt=q(q(q(q(q(q(q(q(q(q(q(q(q([],wt,!0),vt,!0),wt,!0),yt,!0),wt,!0),yt,!0),wt,!0),wt,!0),yt,!0),wt,!0),yt,!0),wt,!0),wt.slice(0,7),!0),xt=q(q(q(q(q(q(q(q(q(q(q(q(q([],wt,!0),bt,!0),wt,!0),yt,!0),wt,!0),yt,!0),wt,!0),wt,!0),yt,!0),wt,!0),yt,!0),wt,!0),wt.slice(0,7),!0),_t=u(-28,0),kt=u(-29,0),St=u(-30,0),Ct=u(-31,0),Ft=q(q(q(q(q(q(q(q(q(q(q(q(q([],Ct,!0),kt,!0),Ct,!0),St,!0),Ct,!0),St,!0),Ct,!0),Ct,!0),St,!0),Ct,!0),St,!0),Ct,!0),Ct.slice(0,7),!0),At=q(q(q(q(q(q(q(q(q(q(q(q(q([],Ct,!0),_t,!0),Ct,!0),St,!0),Ct,!0),St,!0),Ct,!0),Ct,!0),St,!0),Ct,!0),St,!0),Ct,!0),Ct.slice(0,7),!0),Et=[0,31,60,91,121,152,182,213,244,274,305,335,366],Lt=[0,31,59,90,120,151,181,212,243,273,304,334,365],Nt=function(){for(var t=[],e=0;e<55;e++)t=t.concat(u(7));return t}();function Pt(t,e){var n,r,i=b(t,1,1),o=x(t)?366:365,a=x(t+1)?366:365,s=S(i),l=A(i),u=z(z({yearlen:o,nextyearlen:a,yearordinal:s,yearweekday:l},function(t){var e=x(t)?366:365,n=b(t,1,1),r=A(n);if(365===e)return{mmask:gt,mdaymask:xt,nmdaymask:At,wdaymask:Nt.slice(r),mrange:Lt};return{mmask:mt,mdaymask:Dt,nmdaymask:Ft,wdaymask:Nt.slice(r),mrange:Et}}(t)),{wnomask:null});if(p(e.byweekno))return u;u.wnomask=c(0,o+7);var h=n=d(7-l+e.wkst,7);h>=4?(h=0,r=u.yearlen+d(l-e.wkst,7)):r=o-h;for(var f=Math.floor(r/7),g=d(r,7),v=Math.floor(f+g/4),y=0;y<e.byweekno.length;y++){var w=e.byweekno[y];if(w<0&&(w+=v+1),w>0&&w<=v){var D=void 0;w>1?(D=h+7*(w-1),h!==n&&(D-=7-n)):D=h;for(var _=0;_<7&&(u.wnomask[D]=1,D++,u.wdaymask[D]!==e.wkst);_++);}}if(m(e.byweekno,1)){D=h+7*v;if(h!==n&&(D-=7-n),D<o)for(y=0;y<7&&(u.wnomask[D]=1,D+=1,u.wdaymask[D]!==e.wkst);y++);}if(h){var k=void 0;if(m(e.byweekno,-1))k=-1;else{var C=A(b(t-1,1,1)),F=d(7-C.valueOf()+e.wkst,7),E=x(t-1)?366:365,L=void 0;F>=4?(F=0,L=E+d(C-e.wkst,7)):L=o-h,k=Math.floor(52+d(L,7)/4)}if(m(e.byweekno,k))for(D=0;D<h;D++)u.wnomask[D]=1}return u}const Mt=function(){function t(t){this.options=t}return t.prototype.rebuild=function(t,e){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Pt(t,n)),g(n.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var r=this.yearinfo,i=r.yearlen,a=r.mrange,s=r.wdaymask;this.monthinfo=function(t,e,n,r,i,o){var a={lastyear:t,lastmonth:e,nwdaymask:[]},s=[];if(o.freq===Ht.YEARLY)if(p(o.bymonth))s=[[0,n]];else for(var l=0;l<o.bymonth.length;l++)e=o.bymonth[l],s.push(r.slice(e-1,e+1));else o.freq===Ht.MONTHLY&&(s=[r.slice(e-1,e+1)]);if(p(s))return a;for(a.nwdaymask=c(0,n),l=0;l<s.length;l++)for(var u=s[l],h=u[0],f=u[1]-1,g=0;g<o.bynweekday.length;g++){var m=void 0,b=o.bynweekday[g],v=b[0],y=b[1];y<0?(m=f+7*(y+1),m-=d(i[m]-v,7)):(m=h+7*(y-1),m+=d(7-i[m]+v,7)),h<=m&&m<=f&&(a.nwdaymask[m]=1)}return a}(t,e,i,a,s,n)}o(n.byeaster)&&(this.eastermask=function(t,e){void 0===e&&(e=0);var n=t%19,r=Math.floor(t/100),i=t%100,o=Math.floor(r/4),a=r%4,s=Math.floor((r+8)/25),l=Math.floor((r-s+1)/3),u=Math.floor(19*n+r-o-l+15)%30,c=Math.floor(i/4),h=i%4,d=Math.floor(32+2*a+2*c-u-h)%7,f=Math.floor((n+11*u+22*d)/451),p=Math.floor((u+d-7*f+114)/31),g=(u+d-7*f+114)%31+1,m=Date.UTC(t,p-1,g+e),b=Date.UTC(t,0,1);return[Math.ceil((m-b)/864e5)]}(t,n.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[u(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(t,e){for(var n=this.mrange[e-1],r=this.mrange[e],i=c(null,this.yearlen),o=n;o<r;o++)i[o]=o;return[i,n,r]},t.prototype.wdayset=function(t,e,n){for(var r=c(null,this.yearlen+7),i=S(b(t,e,n))-this.yearordinal,o=i,a=0;a<7&&(r[i]=i,++i,this.wdaymask[i]!==this.options.wkst);a++);return[r,o,i]},t.prototype.ddayset=function(t,e,n){var r=c(null,this.yearlen),i=S(b(t,e,n))-this.yearordinal;return r[i]=i,[r,i,i+1]},t.prototype.htimeset=function(t,e,n,r){var i=this,o=[];return this.options.byminute.forEach((function(e){o=o.concat(i.mtimeset(t,e,n,r))})),M(o),o},t.prototype.mtimeset=function(t,e,n,r){var i=this.options.bysecond.map((function(n){return new et(t,e,n,r)}));return M(i),i},t.prototype.stimeset=function(t,e,n,r){return[new et(t,e,n,r)]},t.prototype.getdayset=function(t){switch(t){case G.YEARLY:return this.ydayset.bind(this);case G.MONTHLY:return this.mdayset.bind(this);case G.WEEKLY:return this.wdayset.bind(this);case G.DAILY:default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(t){switch(t){case G.HOURLY:return this.htimeset.bind(this);case G.MINUTELY:return this.mtimeset.bind(this);case G.SECONDLY:return this.stimeset.bind(this)}},t}();function Ot(t,e,n,r,i,a){for(var s=[],l=0;l<t.length;l++){var u=void 0,c=void 0,h=t[l];h<0?(u=Math.floor(h/e.length),c=d(h,e.length)):(u=Math.floor((h-1)/e.length),c=d(h-1,e.length));for(var f=[],p=n;p<r;p++){var g=a[p];o(g)&&f.push(g)}var b=void 0;b=u<0?f.slice(u)[0]:f[u];var v=e[c],y=C(i.yearordinal+b),w=L(y,v);m(s,w)||s.push(w)}return M(s),s}function It(t,e){var n=e.dtstart,r=e.freq,i=e.interval,a=e.until,s=e.bysetpos,l=e.count;if(0===l||0===i)return jt(t);var u=nt.fromDate(n),c=new Mt(e);c.rebuild(u.year,u.month);for(var h=function(t,e,n){var r=n.freq,i=n.byhour,o=n.byminute,a=n.bysecond;if(X(r))return function(t){var e=t.dtstart.getTime()%1e3;if(!X(t.freq))return[];var n=[];return t.byhour.forEach((function(r){t.byminute.forEach((function(i){t.bysecond.forEach((function(t){n.push(new et(r,i,t,e))}))}))})),n}(n);if(r>=Ht.HOURLY&&g(i)&&!m(i,e.hour)||r>=Ht.MINUTELY&&g(o)&&!m(o,e.minute)||r>=Ht.SECONDLY&&g(a)&&!m(a,e.second))return[];return t.gettimeset(r)(e.hour,e.minute,e.second,e.millisecond)}(c,u,e);;){var d=c.getdayset(r)(u.year,u.month,u.day),f=d[0],p=d[1],b=d[2],v=Bt(f,p,b,c,e);if(g(s))for(var y=Ot(s,h,p,b,c,f),w=0;w<y.length;w++){var D=y[w];if(a&&D>a)return jt(t);if(D>=n){var x=Rt(D,e);if(!t.accept(x))return jt(t);if(l&&! --l)return jt(t)}}else for(w=p;w<b;w++){var _=f[w];if(o(_))for(var k=C(c.yearordinal+_),S=0;S<h.length;S++){var F=h[S];D=L(k,F);if(a&&D>a)return jt(t);if(D>=n){x=Rt(D,e);if(!t.accept(x))return jt(t);if(l&&! --l)return jt(t)}}}if(0===e.interval)return jt(t);if(u.add(e,v),u.year>9999)return jt(t);X(r)||(h=c.gettimeset(r)(u.hour,u.minute,u.second,0)),c.rebuild(u.year,u.month)}}function Tt(t,e,n){var r=n.bymonth,i=n.byweekno,o=n.byweekday,a=n.byeaster,s=n.bymonthday,l=n.bynmonthday,u=n.byyearday;return g(r)&&!m(r,t.mmask[e])||g(i)&&!t.wnomask[e]||g(o)&&!m(o,t.wdaymask[e])||g(t.nwdaymask)&&!t.nwdaymask[e]||null!==a&&!m(t.eastermask,e)||(g(s)||g(l))&&!m(s,t.mdaymask[e])&&!m(l,t.nmdaymask[e])||g(u)&&(e<t.yearlen&&!m(u,e+1)&&!m(u,-t.yearlen+e)||e>=t.yearlen&&!m(u,e+1-t.yearlen)&&!m(u,-t.nextyearlen+e-t.yearlen))}function Rt(t,e){return new ct(t,e.tzid).rezonedDate()}function jt(t){return t.getValue()}function Bt(t,e,n,r,i){for(var o=!1,a=e;a<n;a++){var s=t[a];(o=Tt(r,s,i))&&(t[s]=null)}return o}var zt={MO:new i(0),TU:new i(1),WE:new i(2),TH:new i(3),FR:new i(4),SA:new i(5),SU:new i(6)},qt={freq:G.YEARLY,dtstart:null,interval:1,wkst:zt.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Wt=Object.keys(qt),Ht=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this._cache=e?null:new pt,this.origOptions=rt(t);var n=it(t).parsedOptions;this.options=n}return t.parseText=function(t,e){return J(t,e)},t.fromText=function(t,e){return Q(t,e)},t.fromString=function(e){return new t(t.parseString(e)||void 0)},t.prototype._iter=function(t){return It(t,this.options)},t.prototype._cacheGet=function(t,e){return!!this._cache&&this._cache._cacheGet(t,e)},t.prototype._cacheAdd=function(t,e,n){if(this._cache)return this._cache._cacheAdd(t,e,n)},t.prototype.all=function(t){if(t)return this._iter(new W("all",{},t));var e=this._cacheGet("all");return!1===e&&(e=this._iter(new R("all",{})),this._cacheAdd("all",e)),e},t.prototype.between=function(t,e,n,r){if(void 0===n&&(n=!1),!k(t)||!k(e))throw new Error("Invalid date passed in to RRule.between");var i={before:e,after:t,inc:n};if(r)return this._iter(new W("between",i,r));var o=this._cacheGet("between",i);return!1===o&&(o=this._iter(new R("between",i)),this._cacheAdd("between",o,i)),o},t.prototype.before=function(t,e){if(void 0===e&&(e=!1),!k(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:e},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new R("before",n)),this._cacheAdd("before",r,n)),r},t.prototype.after=function(t,e){if(void 0===e&&(e=!1),!k(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:e},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new R("after",n)),this._cacheAdd("after",r,n)),r},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return ht(this.origOptions)},t.prototype.toText=function(t,e,n){return function(t,e,n,r){return new $(t,e,n,r).toString()}(this,t,e,n)},t.prototype.isFullyConvertibleToText=function(){return tt(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=G.YEARLY,t.MONTHLY=G.MONTHLY,t.WEEKLY=G.WEEKLY,t.DAILY=G.DAILY,t.HOURLY=G.HOURLY,t.MINUTELY=G.MINUTELY,t.SECONDLY=G.SECONDLY,t.MO=zt.MO,t.TU=zt.TU,t.WE=zt.WE,t.TH=zt.TH,t.FR=zt.FR,t.SA=zt.SA,t.SU=zt.SU,t.parseString=ot,t.optionsToString=ht,t}();var Ut={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function Yt(t,e){var n=[],r=[],i=[],o=[],a=at(t),s=a.dtstart,l=a.tzid,u=function(t,e){void 0===e&&(e=!1);if(t=t&&t.trim(),!t)throw new Error("Invalid empty string");if(!e)return t.split(/\s/);var n=t.split("\n"),r=0;for(;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&" "===i[0]?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}(t,e.unfold);return u.forEach((function(t){var e;if(t){var a=function(t){var e=function(t){if(-1===t.indexOf(":"))return{name:"RRULE",value:t};var e=function(t,e,n){var r=t.split(e);return n?r.slice(0,n).concat([r.slice(n).join(e)]):r}(t,":",1),n=e[0],r=e[1];return{name:n,value:r}}(t),n=e.name,r=e.value,i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}(t),s=a.name,u=a.parms,c=a.value;switch(s.toUpperCase()){case"RRULE":if(u.length)throw new Error("unsupported RRULE parm: ".concat(u.join(",")));n.push(ot(t));break;case"RDATE":var h=(null!==(e=/RDATE(?:;TZID=([^:=]+))?/i.exec(t))&&void 0!==e?e:[])[1];h&&!l&&(l=h),r=r.concat(Gt(c,u));break;case"EXRULE":if(u.length)throw new Error("unsupported EXRULE parm: ".concat(u.join(",")));i.push(ot(c));break;case"EXDATE":o=o.concat(Gt(c,u));break;case"DTSTART":break;default:throw new Error("unsupported property: "+s)}}})),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:o}}function Vt(t,e){return void 0===e&&(e={}),function(t,e){var n=Yt(t,e),r=n.rrulevals,i=n.rdatevals,o=n.exrulevals,a=n.exdatevals,s=n.dtstart,l=n.tzid,u=!1===e.cache;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||r.length>1||i.length||o.length||a.length){var c=new Jt(u);return c.dtstart(s),c.tzid(l||void 0),r.forEach((function(t){c.rrule(new Ht($t(t,s,l),u))})),i.forEach((function(t){c.rdate(t)})),o.forEach((function(t){c.exrule(new Ht($t(t,s,l),u))})),a.forEach((function(t){c.exdate(t)})),e.compatible&&e.dtstart&&c.rdate(s),c}var h=r[0]||{};return new Ht($t(h,h.dtstart||e.dtstart||s,h.tzid||e.tzid||l),u)}(t,function(t){var e=[],n=Object.keys(t),r=Object.keys(Ut);if(n.forEach((function(t){m(r,t)||e.push(t)})),e.length)throw new Error("Invalid options: "+e.join(", "));return z(z({},Ut),t)}(e))}function $t(t,e,n){return z(z({},t),{dtstart:e,tzid:n})}function Gt(t,e){return function(t){t.forEach((function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)}))}(e),t.split(",").map((function(t){return I(t)}))}function Kt(t){var e=this;return function(n){if(void 0!==n&&(e["_".concat(t)]=n),void 0!==e["_".concat(t)])return e["_".concat(t)];for(var r=0;r<e._rrule.length;r++){var i=e._rrule[r].origOptions[t];if(i)return i}}}var Jt=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this,{},e)||this;return n.dtstart=Kt.apply(n,["dtstart"]),n.tzid=Kt.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return B(e,t),e.prototype._iter=function(t){return function(t,e,n,r,i,o){var a={},s=t.accept;function l(t,e){n.forEach((function(n){n.between(t,e,!0).forEach((function(t){a[Number(t)]=!0}))}))}i.forEach((function(t){var e=new ct(t,o).rezonedDate();a[Number(e)]=!0})),t.accept=function(t){var e=Number(t);return isNaN(e)?s.call(this,t):!(!a[e]&&(l(new Date(e-1),new Date(e+1)),!a[e]))||(a[e]=!0,s.call(this,t))},"between"===t.method&&(l(t.args.after,t.args.before),t.accept=function(t){var e=Number(t);return!!a[e]||(a[e]=!0,s.call(this,t))});for(var u=0;u<r.length;u++){var c=new ct(r[u],o).rezonedDate();if(!t.accept(new Date(c.getTime())))break}e.forEach((function(e){It(t,e.options)}));var h=t._result;switch(M(h),t.method){case"all":case"between":return h;case"before":return h.length&&h[h.length-1]||null;default:return h.length&&h[0]||null}}(t,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(t){Xt(t,this._rrule)},e.prototype.exrule=function(t){Xt(t,this._exrule)},e.prototype.rdate=function(t){Qt(t,this._rdate)},e.prototype.exdate=function(t){Qt(t,this._exdate)},e.prototype.rrules=function(){return this._rrule.map((function(t){return Vt(t.toString())}))},e.prototype.exrules=function(){return this._exrule.map((function(t){return Vt(t.toString())}))},e.prototype.rdates=function(){return this._rdate.map((function(t){return new Date(t.getTime())}))},e.prototype.exdates=function(){return this._exdate.map((function(t){return new Date(t.getTime())}))},e.prototype.valueOf=function(){var t=[];return!this._rrule.length&&this._dtstart&&(t=t.concat(ht({dtstart:this._dtstart}))),this._rrule.forEach((function(e){t=t.concat(e.toString().split("\n"))})),this._exrule.forEach((function(e){t=t.concat(e.toString().split("\n").map((function(t){return t.replace(/^RRULE:/,"EXRULE:")})).filter((function(t){return!/^DTSTART/.test(t)})))})),this._rdate.length&&t.push(Zt("RDATE",this._rdate,this.tzid())),this._exdate.length&&t.push(Zt("EXDATE",this._exdate,this.tzid())),t},e.prototype.toString=function(){return this.valueOf().join("\n")},e.prototype.clone=function(){var t=new e(!!this._cache);return this._rrule.forEach((function(e){return t.rrule(e.clone())})),this._exrule.forEach((function(e){return t.exrule(e.clone())})),this._rdate.forEach((function(e){return t.rdate(new Date(e.getTime()))})),this._exdate.forEach((function(e){return t.exdate(new Date(e.getTime()))})),t},e}(Ht);function Xt(t,e){if(!(t instanceof Ht))throw new TypeError(String(t)+" is not RRule instance");m(e.map(String),String(t))||e.push(t)}function Qt(t,e){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");m(e.map(Number),Number(t))||(e.push(t),M(e))}function Zt(t,e,n){var r=!n||"UTC"===n.toUpperCase(),i=r?"".concat(t,":"):"".concat(t,";TZID=").concat(n,":"),o=e.map((function(t){return O(t.valueOf(),r)})).join(",");return"".concat(i).concat(o)}},17271(t){t.exports=function(t,e,n){"use strict";if(t===e)return 1;if(""===e)return 0;var r=0,i=t.toLowerCase(),o=t.length,a=e.toLowerCase(),s=e.length,l=0,u=1;n=n?1-n:0;for(var c=0;c<s;c+=1){var h=i.indexOf(a[c],l);if(-1===h){if(!n)return 0;u+=n}else{var d=0;l===h?d=.7:(d=.1," "===t[h-1]&&(d+=.8)),t[h]===e[c]&&(d+=.1),r+=d,l=h+1}}var f=.5*(r/o+r/s)/u;return a[0]===i[0]&&f<.85&&(f+=.15),f}},16099(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(86308));function o(t){if(!t.options.indentation&&!t.options.lineSeparator)return;let e;for(t.content+=t.options.lineSeparator,e=0;e<t.level;e++)t.content+=t.options.indentation}function a(t,e){t.content+=e}function s(t,e,n){if("Element"===t.type)!function(t,e,n){e.path.push(t.name),!n&&e.content.length>0&&o(e);if(a(e,"<"+t.name),function(t,e){Object.keys(e).forEach((function(n){const r=e[n].replace(/"/g,""");a(t," "+n+'="'+r+'"')}))}(e,t.attributes),null===t.children||e.options.forceSelfClosingEmptyTag&&0===t.children.length){const t=e.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";a(e,t)}else if(0===t.children.length)a(e,"></"+t.name+">");else{const r=t.children;a(e,">"),e.level++;let i="preserve"===t.attributes["xml:space"]||n,l=!1;if(!i&&e.options.ignoredPaths&&(l=function(t,e){const n="/"+t.join("/"),r=t[t.length-1];return e.includes(r)||e.includes(n)}(e.path,e.options.ignoredPaths),i=l),!i&&e.options.collapseContent){let t=!1,e=!1,o=!1;r.forEach((function(i,a){"Text"===i.type?(i.content.includes("\n")?(e=!0,i.content=i.content.trim()):0!==a&&a!==r.length-1||n||0===i.content.trim().length&&(i.content=""),(i.content.trim().length>0||1===r.length)&&(t=!0)):"CDATA"===i.type?t=!0:o=!0})),!t||o&&e||(i=!0)}r.forEach((function(t){s(t,e,n||i)})),e.level--,n||i||o(e),l&&function(t){let e;for(t.content=t.content.replace(/ +$/,""),e=0;e<t.level;e++)t.content+=t.options.indentation}(e),a(e,"</"+t.name+">")}e.path.pop()}(t,e,n);else if("ProcessingInstruction"===t.type)l(t,e);else{if("string"!==typeof t.content)throw new Error("Unknown node type: "+t.type);!function(t,e,n){if(!n){const n=t.trim();(e.options.lineSeparator||0===n.length)&&(t=n)}t.length>0&&(!n&&e.content.length>0&&o(e),a(e,t))}(t.content,e,n)}}function l(t,e){e.content.length>0&&o(e),a(e,"<?"+t.name),a(e," "+t.content.trim()),a(e,"?>")}function u(t,e={}){e.indentation="indentation"in e?e.indentation:" ",e.collapseContent=!0===e.collapseContent,e.lineSeparator="lineSeparator"in e?e.lineSeparator:"\r\n",e.whiteSpaceAtEndOfSelfclosingTag=!0===e.whiteSpaceAtEndOfSelfclosingTag,e.throwOnFailure=!1!==e.throwOnFailure;try{const n=(0,i.default)(t,{filter:e.filter,strictMode:e.strictMode}),r={content:"",level:0,options:e,path:[]};return n.declaration&&l(n.declaration,r),n.children.forEach((function(t){s(t,r,!1)})),e.lineSeparator?r.content.replace(/\r\n/g,"\n").replace(/\n/g,e.lineSeparator):r.content}catch(n){if(e.throwOnFailure)throw n;return t}}u.minify=(t,e={})=>u(t,Object.assign(Object.assign({},e),{indentation:"",lineSeparator:""})),t.exports=u,e.default=u},86308(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParsingError=void 0;class n extends Error{constructor(t,e){super(t),this.cause=e}}let r;function i(){return s(!1)||function(){const t=c(/^([^<]+)/);if(t){const e={type:"Text",content:t[1]};return{excluded:!1===r.options.filter(e),node:e}}}()||l()||function(){if(r.xml.startsWith("<![CDATA[")){const t=r.xml.indexOf("]]>");if(t>-1){const e=t+3,n={type:"CDATA",content:r.xml.substring(0,e)};return r.xml=r.xml.slice(e),{excluded:!1===r.options.filter(n),node:n}}}}()||a()}function o(){return c(/\s*/),s(!0)||l()||function(){const t=c(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/)||c(/^<!DOCTYPE\s+\S+\s*>/);if(t){const e={type:"DocumentType",content:t[0]};return{excluded:!1===r.options.filter(e),node:e}}}()||a()}function a(){const t=c(/^<\?([\w-:.]+)\s*/);if(!t)return;const e={name:t[1],type:"ProcessingInstruction",content:""},i=r.xml.indexOf("?>");if(!(i>-1))throw new n("Failed to parse XML","ProcessingInstruction closing tag not found");return e.content=r.xml.substring(0,i).trim(),r.xml=r.xml.slice(i),c(/\?>/),{excluded:!1===r.options.filter(e),node:e}}function s(t){const e=c(/^<([^?!</>\s]+)\s*/);if(!e)return;const o={type:"Element",name:e[1],attributes:{},children:[]},a=!t&&!1===r.options.filter(o);for(;!(0===r.xml.length||h(">")||h("?>")||h("/>"));){const t=u();if(!t)return;o.attributes[t.name]=t.value}if(c(/^\s*\/>/))return o.children=null,{excluded:a,node:o};c(/\??>/);let s=i();for(;s;)s.excluded||o.children.push(s.node),s=i();if(r.options.strictMode){const t=`</${o.name}>`;if(!r.xml.startsWith(t))throw new n("Failed to parse XML",`Closing tag not matching "${t}"`);r.xml=r.xml.slice(t.length)}else c(/^<\/[\w-:.\u00C0-\u00FF]+\s*>/);return{excluded:a,node:o}}function l(){const t=c(/^<!--[\s\S]*?-->/);if(t){const e={type:"Comment",content:t[0]};return{excluded:!1===r.options.filter(e),node:e}}}function u(){const t=c(/([^=]+)\s*=\s*("[^"]*"|'[^']*'|[^>\s]+)\s*/);if(t)return{name:t[1].trim(),value:(e=t[2].trim(),e.replace(/^['"]|['"]$/g,""))};var e}function c(t){const e=r.xml.match(t);if(e)return r.xml=r.xml.slice(e[0].length),e}function h(t){return 0===r.xml.indexOf(t)}function d(t,e={}){t=t.trim();const i=e.filter||(()=>!0);return r={xml:t,options:Object.assign(Object.assign({},e),{filter:i,strictMode:!0===e.strictMode})},function(){const t=a(),e=[];let i,s=o();for(;s;){if("Element"===s.node.type){if(i)throw new Error("Found multiple root nodes");i=s.node}s.excluded||e.push(s.node),s=o()}if(!i)throw new n("Failed to parse XML","Root Element not found");if(0!==r.xml.length)throw new n("Failed to parse XML","Not Well-Formed XML");return{declaration:t?t.node:null,root:i,children:e}}()}e.ParsingError=n,t.exports=d,e.default=d},84215(t,e,n){"use strict";var r=n(44576),i=n(82839),o=n(22195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},16193(t,e,n){"use strict";var r=n(79504),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},80747(t,e,n){"use strict";var r=n(66699),i=n(16193),o=n(24659),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):r(t,"stack",i(n,s)))}},24659(t,e,n){"use strict";var r=n(79039),i=n(6980);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},48646(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(1767),a=n(50851);t.exports=function(t,e){e&&"string"===typeof t||i(t);var n=a(t);return o(i(void 0!==n?r(n,t):t))}},77584(t,e,n){"use strict";var r=n(20034),i=n(66699);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},32603(t,e,n){"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},1103(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},10916(t,e,n){"use strict";var r=n(44576),i=n(80550),o=n(94901),a=n(92796),s=n(33706),l=n(78227),u=n(84215),c=n(96395),h=n(39519),d=i&&i.prototype,f=l("species"),p=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(c&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[f]=r,!(p=n.then((function(){}))instanceof r))return!0}return!e&&("BROWSER"===u||"DENO"===u)&&!g}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},90537(t,e,n){"use strict";var r=n(80550),i=n(84428),o=n(10916).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},17145(t,e,n){"use strict";var r=n(46518),i=n(1625),o=n(42787),a=n(52967),s=n(77740),l=n(2360),u=n(66699),c=n(6980),h=n(77584),d=n(80747),f=n(72652),p=n(32603),g=n(78227)("toStringTag"),m=Error,b=[].push,v=function(t,e){var n,r=i(y,this);a?n=a(new m,r?o(this):y):(n=r?this:l(y),u(n,g,"Error")),void 0!==e&&u(n,"message",p(e)),d(n,v,n.stack,1),arguments.length>2&&h(n,arguments[2]);var s=[];return f(t,b,{that:s}),u(n,"errors",s),n};a?a(v,m):s(v,m,{name:!0});var y=v.prototype=l(m.prototype,{constructor:c(1,v),message:c(1,""),name:c(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:v})},30067(t,e,n){"use strict";n(17145)},18107(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(91291),s=n(6469);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=o(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},78350(t,e,n){"use strict";var r=n(46518),i=n(70259),o=n(79306),a=n(48981),s=n(26198),l=n(1469);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return o(t),e=l(n,0),i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},30237(t,e,n){"use strict";n(6469)("flatMap")},30531(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(48646),u=n(19462),c=n(9539),h=n(96395),d=n(30684),f=n(84549);var p=!h&&!d("flatMap",(function(){})),g=!h&&!p&&f("flatMap",TypeError),m=h||p||g||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),(function(t){return t}));t.next(),t.return()}catch(e){return!0}}(),b=u((function(){for(var t,e,n=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(o){c(n,"throw",o)}if(t=a(i(this.next,n)),this.done=!!t.done)return;try{this.inner=l(r(t.value,this.counter++),!1)}catch(o){c(n,"throw",o)}}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(t){a(this);try{o(t)}catch(e){c(this,"throw",e)}return g?i(g,this,t):new b(s(this),{mapper:t,inner:null})}})},53921(t,e,n){"use strict";var r=n(46518),i=n(72652),o=n(97040);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},96167(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,c=s((function(){var n=o(e.resolve),a=[],s=0,u=1;l(t,(function(t){var o=s++,l=!1;u++,i(n,e,t).then((function(t){l||(l=!0,a[o]={status:"fulfilled",value:t},--u||r(a))}),(function(t){l||(l=!0,a[o]={status:"rejected",reason:t},--u||r(a))}))})),--u||r(a)}));return c.error&&u(c.value),n.promise}})},93518(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(97751),s=n(36043),l=n(1103),u=n(72652),c=n(90537),h="No one promise resolved";r({target:"Promise",stat:!0,forced:c},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),c=r.resolve,d=r.reject,f=l((function(){var r=o(e.resolve),a=[],s=0,l=1,f=!1;u(t,(function(t){var o=s++,u=!1;l++,i(r,e,t).then((function(t){u||f||(f=!0,c(t))}),(function(t){u||f||(u=!0,a[o]=t,--l||d(new n(a,h)))}))})),--l||d(new n(a,h))}));return f.error&&d(f.value),r.promise}})},34504(t,e,n){"use strict";n(18107)},30670(t,e,n){"use strict";n(30531)},78898(t,e,n){"use strict";var r=n(46518),i=n(68183).charAt,o=n(67750),a=n(91291),s=n(655);r({target:"String",proto:!0,forced:!0},{at:function(t){var e=s(o(this)),n=e.length,r=a(t),l=r>=0?r:n+r;return l<0||l>=n?void 0:i(e,l)}})},7897(t,e,n){"use strict";n.d(e,{a$:()=>i,k6j:()=>o,pS3:()=>r});var r={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"]},i={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},o={prefix:"far",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"]}},22337(t,e,n){"use strict";n.d(e,{gc:()=>Pr});var r=n(96540);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=p(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function s(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function f(t){return f="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},f(t)}function p(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}var g=function(){},m={},b={},v=null,y={mark:g,measure:g};try{"undefined"!==typeof window&&(m=window),"undefined"!==typeof document&&(b=document),"undefined"!==typeof MutationObserver&&(v=MutationObserver),"undefined"!==typeof performance&&(y=performance)}catch(H){}var w,D,x=(m.navigator||{}).userAgent,_=void 0===x?"":x,k=m,S=b,C=v,F=y,A=(k.document,!!S.documentElement&&!!S.head&&"function"===typeof S.addEventListener&&"function"===typeof S.createElement),E=~_.indexOf("MSIE")||~_.indexOf("Trident/"),L={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},N=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],P="classic",M="duotone",O="sharp",I="sharp-duotone",T="chisel",R="etch",j="graphite",B="jelly",z="jelly-duo",q="jelly-fill",W="notdog",H="notdog-duo",U="slab",Y="slab-press",V="thumbprint",$="utility",G="utility-duo",K="utility-fill",J="whiteboard",X=[P,M,O,I,T,R,j,B,z,q,W,H,U,Y,V,$,G,K,J],Q=(s(s(s(s(s(s(s(s(s(s(w={},P,"Classic"),M,"Duotone"),O,"Sharp"),I,"Sharp Duotone"),T,"Chisel"),R,"Etch"),j,"Graphite"),B,"Jelly"),z,"Jelly Duo"),q,"Jelly Fill"),s(s(s(s(s(s(s(s(s(w,W,"Notdog"),H,"Notdog Duo"),U,"Slab"),Y,"Slab Press"),V,"Thumbprint"),$,"Utility"),G,"Utility Duo"),K,"Utility Fill"),J,"Whiteboard"),new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]])),Z=["fak","fa-kit","fakd","fa-kit-duotone"],tt={fak:"kit","fa-kit":"kit"},et={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},nt=(s(s({},"kit","Kit"),"kit-duotone","Kit Duotone"),{kit:"fak"}),rt={"kit-duotone":"fakd"},it="duotone-group",ot="swap-opacity",at="primary",st="secondary",lt=(s(s(s(s(s(s(s(s(s(s(D={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"graphite","Graphite"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),s(s(s(s(s(s(s(s(s(D,"notdog","Notdog"),"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard"),s(s({},"kit","Kit"),"kit-duotone","Kit Duotone"),{classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}}),ut=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),ct=[1,2,3,4,5,6,7,8,9,10],ht=ct.concat([11,12,13,14,15,16,17,18,19,20]),dt=[].concat(h(Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]})),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",it,ot,at,st]).concat(ct.map((function(t){return"".concat(t,"x")}))).concat(ht.map((function(t){return"w-".concat(t)}))),ft="___FONT_AWESOME___",pt="svg-inline--fa",gt="data-fa-i2svg",mt="data-fa-pseudo-element",bt="data-prefix",vt="data-icon",yt="fontawesome-i2svg",wt=["HTML","HEAD","STYLE","SCRIPT"],Dt=["::before","::after",":before",":after"],xt=function(){try{return!0}catch(t){return!1}}();function _t(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[P]}})}var kt=u({},L);kt[P]=u(u(u(u({},{"fa-duotone":"duotone"}),L[P]),tt),et);var St=_t(kt),Ct=u({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});Ct[P]=u(u(u(u({},{duotone:"fad"}),Ct[P]),nt),rt);var Ft=_t(Ct),At=u({},lt);At[P]=u(u({},At[P]),{fak:"fa-kit"});var Et=_t(At),Lt=u({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});Lt[P]=u(u({},Lt[P]),{"fa-kit":"fak"});_t(Lt);var Nt=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Pt="fa-layers-text",Mt=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Ot=(_t(u({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),It={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Tt=[].concat(h(["kit"]),h(dt)),Rt=k.FontAwesomeConfig||{};if(S&&"function"===typeof S.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(t){var e=c(t,2),n=e[0],r=e[1],i=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=S.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n));void 0!==i&&null!==i&&(Rt[r]=i)}))}var jt={styleDefault:"solid",familyDefault:P,cssPrefix:"fa",replacementClass:pt,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Rt.familyPrefix&&(Rt.cssPrefix=Rt.familyPrefix);var Bt=u(u({},jt),Rt);Bt.autoReplaceSvg||(Bt.observeMutations=!1);var zt={};Object.keys(jt).forEach((function(t){Object.defineProperty(zt,t,{enumerable:!0,set:function(e){Bt[t]=e,qt.forEach((function(t){return t(zt)}))},get:function(){return Bt[t]}})})),Object.defineProperty(zt,"familyPrefix",{enumerable:!0,set:function(t){Bt.cssPrefix=t,qt.forEach((function(t){return t(zt)}))},get:function(){return Bt.cssPrefix}}),k.FontAwesomeConfig=zt;var qt=[];var Wt=16,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ut(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Yt(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Vt(t){return t.classList?Yt(t.classList):(t.getAttribute("class")||"").split(" ").filter((function(t){return t}))}function $t(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Gt(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")}),"")}function Kt(t){return t.size!==Ht.size||t.x!==Ht.x||t.y!==Ht.y||t.rotate!==Ht.rotate||t.flipX||t.flipY}function Jt(){var t="fa",e=pt,n=zt.cssPrefix,r=zt.replacementClass,i=":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\n --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\n --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\n --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\n --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\n --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\n --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\n --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\n --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\n --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\n --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\n --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\n --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\n --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\n --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\n --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}";if(n!==t||r!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var Xt=!1;function Qt(){zt.autoAddCss&&!Xt&&(!function(t){if(t&&A){var e=S.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=S.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}S.head.insertBefore(e,r)}}(Jt()),Xt=!0)}var Zt={mixout:function(){return{dom:{css:Jt,insertCss:Qt}}},hooks:function(){return{beforeDOMElementCreation:function(){Qt()},beforeI2svg:function(){Qt()}}}},te=k||{};te[ft]||(te[ft]={}),te[ft].styles||(te[ft].styles={}),te[ft].hooks||(te[ft].hooks={}),te[ft].shims||(te[ft].shims=[]);var ee=te[ft],ne=[],re=function(){S.removeEventListener("DOMContentLoaded",re),ie=1,ne.map((function(t){return t()}))},ie=!1;function oe(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,i=t.children,o=void 0===i?[]:i;return"string"===typeof t?$t(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat($t(t[n]),'" ')}),"").trim()}(r),">").concat(o.map(oe).join(""),"</").concat(e,">")}function ae(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}A&&((ie=(S.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(S.readyState))||S.addEventListener("DOMContentLoaded",re));var se=function(t,e,n,r){var i,o,a,s=Object.keys(t),l=s.length,u=void 0!==r?function(t,e){return function(n,r,i,o){return t.call(e,n,r,i,o)}}(e,r):e;for(void 0===n?(i=1,a=t[s[0]]):(i=0,a=n);i<l;i++)a=u(a,t[o=s[i]],o,t);return a};function le(t){return 1!==h(t).length?null:t.codePointAt(0).toString(16)}function ue(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{})}function ce(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=ue(e);"function"!==typeof ee.hooks.addPack||r?ee.styles[t]=u(u({},ee.styles[t]||{}),i):ee.hooks.addPack(t,ue(e)),"fas"===t&&ce("fa",e)}var he=ee.styles,de=ee.shims,fe=Object.keys(Et),pe=fe.reduce((function(t,e){return t[e]=Object.keys(Et[e]),t}),{}),ge=null,me={},be={},ve={},ye={},we={};function De(t,e){var n,r=e.split("-"),i=r[0],o=r.slice(1).join("-");return i!==t||""===o||(n=o,~Tt.indexOf(n))?null:o}var xe,_e=function(){var t=function(t){return se(he,(function(e,n,r){return e[r]=se(n,t,{}),e}),{})};me=t((function(t,e,n){(e[3]&&(t[e[3]]=n),e[2])&&e[2].filter((function(t){return"number"===typeof t})).forEach((function(e){t[e.toString(16)]=n}));return t})),be=t((function(t,e,n){(t[n]=n,e[2])&&e[2].filter((function(t){return"string"===typeof t})).forEach((function(e){t[e]=n}));return t})),we=t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in he||zt.autoFetchSvg,n=se(de,(function(t,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||e||(i="fas"),"string"===typeof r&&(t.names[r]={prefix:i,iconName:o}),"number"===typeof r&&(t.unicodes[r.toString(16)]={prefix:i,iconName:o}),t}),{names:{},unicodes:{}});ve=n.names,ye=n.unicodes,ge=Ae(zt.styleDefault,{family:zt.familyDefault})};function ke(t,e){return(me[t]||{})[e]}function Se(t,e){return(we[t]||{})[e]}function Ce(t){return ve[t]||{prefix:null,iconName:null}}function Fe(){return ge}xe=function(t){ge=Ae(t.styleDefault,{family:zt.familyDefault})},qt.push(xe),_e();function Ae(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===e?P:e,r=St[n][t];if(n===M&&!t)return"fad";var i=Ft[n][t]||Ft[n][r],o=t in ee.styles?t:null;return i||o||null}function Ee(t){return t.sort().filter((function(t,e,n){return n.indexOf(t)===e}))}var Le=ut.concat(Z);function Ne(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==e&&e,r=null,i=Ee(t.filter((function(t){return Le.includes(t)}))),o=Ee(t.filter((function(t){return!Le.includes(t)}))),a=c(i.filter((function(t){return r=t,!N.includes(t)})),1)[0],s=void 0===a?null:a,l=function(t){var e=P,n=fe.reduce((function(t,e){return t[e]="".concat(zt.cssPrefix,"-").concat(e),t}),{});return X.forEach((function(r){(t.includes(n[r])||t.some((function(t){return pe[r].includes(t)})))&&(e=r)})),e}(i),h=u(u({},function(t){var e=[],n=null;return t.forEach((function(t){var r=De(zt.cssPrefix,t);r?n=r:t&&e.push(t)})),{iconName:n,rest:e}}(o)),{},{prefix:Ae(s,{family:l})});return u(u(u({},h),function(t){var e=t.values,n=t.family,r=t.canonical,i=t.givenPrefix,o=void 0===i?"":i,a=t.styles,s=void 0===a?{}:a,l=t.config,u=void 0===l?{}:l,c=n===M,h=e.includes("fa-duotone")||e.includes("fad"),d="duotone"===u.familyDefault,f="fad"===r.prefix||"fa-duotone"===r.prefix;!c&&(h||d||f)&&(r.prefix="fad");(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab");if(!r.prefix&&Pe.includes(n)){if(Object.keys(s).find((function(t){return Me.includes(t)}))||u.autoFetchSvg){var p=Q.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Se(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==o||(r.prefix=Fe()||"fas");return r}({values:t,family:l,styles:he,config:zt,canonical:h,givenPrefix:r})),function(t,e,n){var r=n.prefix,i=n.iconName;if(t||!r||!i)return{prefix:r,iconName:i};var o="fa"===e?Ce(i):{},a=Se(r,i);i=o.iconName||a||i,"far"!==(r=o.prefix||r)||he.far||!he.fas||zt.autoFetchSvg||(r="fas");return{prefix:r,iconName:i}}(n,r,h))}var Pe=X.filter((function(t){return t!==P||t!==M})),Me=Object.keys(lt).filter((function(t){return t!==P})).map((function(t){return Object.keys(lt[t])})).flat();var Oe=function(){return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}),[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(e){t.definitions[e]=u(u({},t.definitions[e]||{}),i[e]),ce(e,i[e]);var n=Et[P][e];n&&ce(n,i[e]),_e()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map((function(e){var r=n[e],i=r.prefix,o=r.iconName,a=r.icon,s=a[2];t[i]||(t[i]={}),s.length>0&&s.forEach((function(e){"string"===typeof e&&(t[i][e]=a)})),t[i][o]=a})),t}}])}(),Ie=[],Te={},Re={},je=Object.keys(Re);function Be(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Te[t]||[]).forEach((function(t){e=t.apply(null,[e].concat(r))})),e}function ze(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(Te[t]||[]).forEach((function(t){t.apply(null,n)}))}function qe(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return Re[t]?Re[t].apply(null,e):void 0}function We(t){"fa"===t.prefix&&(t.prefix="fas");var e=t.iconName,n=t.prefix||Fe();if(e)return e=Se(n,e)||e,ae(He.definitions,n,e)||ae(ee.styles,n,e)}var He=new Oe,Ue={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A?(ze("beforeI2svg",t),qe("pseudoElements2svg",t),qe("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.autoReplaceSvgRoot;!1===zt.autoReplaceSvg&&(zt.autoReplaceSvg=!0),zt.observeMutations=!0,t=function(){Ve({autoReplaceSvgRoot:n}),ze("watch",e)},A&&(ie?setTimeout(t,0):ne.push(t))}},Ye={noAuto:function(){zt.autoReplaceSvg=!1,zt.observeMutations=!1,ze("noAuto")},config:zt,dom:Ue,parse:{icon:function(t){if(null===t)return null;if("object"===f(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Se(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=Ae(t[0]);return{prefix:n,iconName:Se(n,e)||e}}if("string"===typeof t&&(t.indexOf("".concat(zt.cssPrefix,"-"))>-1||t.match(Nt))){var r=Ne(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Fe(),iconName:Se(r.prefix,r.iconName)||r.iconName}}if("string"===typeof t){var i=Fe();return{prefix:i,iconName:Se(i,t)||t}}}},library:He,findIconDefinition:We,toHtml:oe},Ve=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,e=void 0===t?S:t;(Object.keys(ee.styles).length>0||zt.autoFetchSvg)&&A&&zt.autoReplaceSvg&&Ye.dom.i2svg({node:e})};function $e(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return oe(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(A){var e=S.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Ge(t){var e=t.icons,n=e.main,r=e.mask,i=t.prefix,o=t.iconName,a=t.transform,s=t.symbol,l=t.maskId,c=t.extra,h=t.watchable,d=void 0!==h&&h,f=r.found?r:n,p=f.width,g=f.height,m=[zt.replacementClass,o?"".concat(zt.cssPrefix,"-").concat(o):""].filter((function(t){return-1===c.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(c.classes).join(" "),b={children:[],attributes:u(u({},c.attributes),{},{"data-prefix":i,"data-icon":o,class:m,role:c.attributes.role||"img",viewBox:"0 0 ".concat(p," ").concat(g)})};(function(t){return["aria-label","aria-labelledby","title","role"].some((function(e){return e in t}))})(c.attributes)||c.attributes["aria-hidden"]||(b.attributes["aria-hidden"]="true"),d&&(b.attributes[gt]="");var v=u(u({},b),{},{prefix:i,iconName:o,main:n,mask:r,maskId:l,transform:a,symbol:s,styles:u({},c.styles)}),y=r.found&&n.found?qe("generateAbstractMask",v)||{children:[],attributes:{}}:qe("generateAbstractIcon",v)||{children:[],attributes:{}},w=y.children,D=y.attributes;return v.children=w,v.attributes=D,s?function(t){var e=t.prefix,n=t.iconName,r=t.children,i=t.attributes,o=t.symbol,a=!0===o?"".concat(e,"-").concat(zt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u(u({},i),{},{id:a}),children:r}]}]}(v):function(t){var e=t.children,n=t.main,r=t.mask,i=t.attributes,o=t.styles,a=t.transform;if(Kt(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Gt(u(u({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}(v)}function Ke(t){var e=t.content,n=t.width,r=t.height,i=t.transform,o=t.extra,a=t.watchable,s=void 0!==a&&a,l=u(u({},o.attributes),{},{class:o.classes.join(" ")});s&&(l[gt]="");var c=u({},o.styles);Kt(i)&&(c.transform=function(t){var e=t.transform,n=t.width,r=void 0===n?16:n,i=t.height,o=void 0===i?16:i,a=t.startCentered,s=void 0!==a&&a,l="";return l+=s&&E?"translate(".concat(e.x/Wt-r/2,"em, ").concat(e.y/Wt-o/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Wt,"em), calc(-50% + ").concat(e.y/Wt,"em)) "):"translate(".concat(e.x/Wt,"em, ").concat(e.y/Wt,"em) "),l+="scale(".concat(e.size/Wt*(e.flipX?-1:1),", ").concat(e.size/Wt*(e.flipY?-1:1),") "),l+"rotate(".concat(e.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var h=Gt(c);h.length>0&&(l.style=h);var d=[];return d.push({tag:"span",attributes:l,children:[e]}),d}var Je=ee.styles;function Xe(t){var e=t[0],n=t[1],r=c(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(zt.cssPrefix,"-").concat(It.GROUP)},children:[{tag:"path",attributes:{class:"".concat(zt.cssPrefix,"-").concat(It.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(zt.cssPrefix,"-").concat(It.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Qe={found:!1,width:512,height:512};function Ze(t,e){var n=e;return"fa"===e&&null!==zt.styleDefault&&(e=Fe()),new Promise((function(r,i){if("fa"===n){var o=Ce(t)||{};t=o.iconName||t,e=o.prefix||e}if(t&&e&&Je[e]&&Je[e][t])return r(Xe(Je[e][t]));!function(t,e){xt||zt.showMissingIcons||!t||console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}(t,e),r(u(u({},Qe),{},{icon:zt.showMissingIcons&&t&&qe("missingIconAbstract")||{}}))}))}var tn=function(){},en=zt.measurePerformance&&F&&F.mark&&F.measure?F:{mark:tn,measure:tn},nn='FA "7.2.0"',rn=function(t){en.mark("".concat(nn," ").concat(t," ends")),en.measure("".concat(nn," ").concat(t),"".concat(nn," ").concat(t," begins"),"".concat(nn," ").concat(t," ends"))},on=function(t){return en.mark("".concat(nn," ").concat(t," begins")),function(){return rn(t)}},an=function(){};function sn(t){return"string"===typeof(t.getAttribute?t.getAttribute(gt):null)}function ln(t){return S.createElementNS("http://www.w3.org/2000/svg",t)}function un(t){return S.createElement(t)}function cn(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===e?"svg"===t.tag?ln:un:e;if("string"===typeof t)return S.createTextNode(t);var r=n(t.tag);return Object.keys(t.attributes||[]).forEach((function(e){r.setAttribute(e,t.attributes[e])})),(t.children||[]).forEach((function(t){r.appendChild(cn(t,{ceFn:n}))})),r}var hn={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach((function(t){e.parentNode.insertBefore(cn(t),e)})),null===e.getAttribute(gt)&&zt.keepOriginalSource){var n=S.createComment(function(t){var e=" ".concat(t.outerHTML," ");return"".concat(e,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],n=t[1];if(~Vt(e).indexOf(zt.replacementClass))return hn.replace(t);var r=new RegExp("".concat(zt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(t,e){return e===zt.replacementClass||e.match(r)?t.toSvg.push(e):t.toNode.push(e),t}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}var o=n.map((function(t){return oe(t)})).join("\n");e.setAttribute(gt,""),e.innerHTML=o}};function dn(t){t()}function fn(t,e){var n="function"===typeof e?e:an;if(0===t.length)n();else{var r=dn;"async"===zt.mutateApproach&&(r=k.requestAnimationFrame||dn),r((function(){var e=!0===zt.autoReplaceSvg?hn.replace:hn[zt.autoReplaceSvg]||hn.replace,r=on("mutate");t.map(e),r(),n()}))}}var pn=!1;function gn(){pn=!0}function mn(){pn=!1}var bn=null;function vn(t){if(C&&zt.observeMutations){var e=t.treeCallback,n=void 0===e?an:e,r=t.nodeCallback,i=void 0===r?an:r,o=t.pseudoElementsCallback,a=void 0===o?an:o,s=t.observeMutationsRoot,l=void 0===s?S:s;bn=new C((function(t){if(!pn){var e=Fe();Yt(t).forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0&&!sn(t.addedNodes[0])&&(zt.searchPseudoElements&&a(t.target),n(t.target)),"attributes"===t.type&&t.target.parentNode&&zt.searchPseudoElements&&a([t.target],!0),"attributes"===t.type&&sn(t.target)&&~Ot.indexOf(t.attributeName))if("class"===t.attributeName&&function(t){var e=t.getAttribute?t.getAttribute(bt):null,n=t.getAttribute?t.getAttribute(vt):null;return e&&n}(t.target)){var r=Ne(Vt(t.target)),o=r.prefix,s=r.iconName;t.target.setAttribute(bt,o||e),s&&t.target.setAttribute(vt,s)}else(l=t.target)&&l.classList&&l.classList.contains&&l.classList.contains(zt.replacementClass)&&i(t.target);var l}))}})),A&&bn.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function yn(t){var e,n,r=t.getAttribute("data-prefix"),i=t.getAttribute("data-icon"),o=void 0!==t.innerText?t.innerText.trim():"",a=Ne(Vt(t));return a.prefix||(a.prefix=Fe()),r&&i&&(a.prefix=r,a.iconName=i),a.iconName&&a.prefix||(a.prefix&&o.length>0&&(a.iconName=(e=a.prefix,n=t.innerText,(be[e]||{})[n]||ke(a.prefix,le(t.innerText)))),!a.iconName&&zt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=t.firstChild.data)),a}function wn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=yn(t),r=n.iconName,i=n.prefix,o=n.rest,a=function(t){return Yt(t.attributes).reduce((function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t}),{})}(t),s=Be("parseNodeAttributes",{},t),l=e.styleParser?function(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce((function(t,e){var n=e.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(t[r]=i.join(":").trim()),t}),{})),n}(t):[];return u({iconName:r,prefix:i,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Dn=ee.styles;function xn(t){var e="nest"===zt.autoReplaceSvg?wn(t,{styleParser:!1}):wn(t);return~e.extra.classes.indexOf(Pt)?qe("generateLayersText",t,e):qe("generateSvgReplacementMutation",t,e)}function _n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!A)return Promise.resolve();var n=S.documentElement.classList,r=function(t){return n.add("".concat(yt,"-").concat(t))},i=function(t){return n.remove("".concat(yt,"-").concat(t))},o=zt.autoFetchSvg?[].concat(h(Z),h(ut)):N.concat(Object.keys(Dn));o.includes("fa")||o.push("fa");var a=[".".concat(Pt,":not([").concat(gt,"])")].concat(o.map((function(t){return".".concat(t,":not([").concat(gt,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=Yt(t.querySelectorAll(a))}catch(c){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=on("onTree"),u=s.reduce((function(t,e){try{var n=xn(e);n&&t.push(n)}catch(c){xt||"MissingIcon"===c.name&&console.error(c)}return t}),[]);return new Promise((function(t,n){Promise.all(u).then((function(n){fn(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof e&&e(),l(),t()}))})).catch((function(t){l(),n(t)}))}))}function kn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xn(t).then((function(t){t&&fn([t],e)}))}var Sn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?Ht:n,i=e.symbol,o=void 0!==i&&i,a=e.mask,s=void 0===a?null:a,l=e.maskId,c=void 0===l?null:l,h=e.classes,d=void 0===h?[]:h,f=e.attributes,p=void 0===f?{}:f,g=e.styles,m=void 0===g?{}:g;if(t){var b=t.prefix,v=t.iconName,y=t.icon;return $e(u({type:"icon"},t),(function(){return ze("beforeDOMElementCreation",{iconDefinition:t,params:e}),Ge({icons:{main:Xe(y),mask:s?Xe(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:v,transform:u(u({},Ht),r),symbol:o,maskId:c,extra:{attributes:p,styles:m,classes:d}})}))}},Cn={mixout:function(){return{icon:(t=Sn,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:We(e||{}),i=n.mask;return i&&(i=(i||{}).icon?i:We(i||{})),t(r,u(u({},n),{},{mask:i}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=_n,t.nodeCallback=kn,t}}},provides:function(t){t.i2svg=function(t){var e=t.node,n=void 0===e?S:e,r=t.callback;return _n(n,void 0===r?function(){}:r)},t.generateSvgReplacementMutation=function(t,e){var n=e.iconName,r=e.prefix,i=e.transform,o=e.symbol,a=e.mask,s=e.maskId,l=e.extra;return new Promise((function(e,u){Promise.all([Ze(n,r),a.iconName?Ze(a.iconName,a.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(a){var u=c(a,2),h=u[0],d=u[1];e([t,Ge({icons:{main:h,mask:d},prefix:r,iconName:n,transform:i,symbol:o,maskId:s,extra:l,watchable:!0})])})).catch(u)}))},t.generateAbstractIcon=function(t){var e,n=t.children,r=t.attributes,i=t.main,o=t.transform,a=Gt(t.styles);return a.length>0&&(r.style=a),Kt(o)&&(e=qe("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(e||i.icon),{children:n,attributes:r}}}},Fn={mixout:function(){return{layer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.classes,r=void 0===n?[]:n;return $e({type:"layer"},(function(){ze("beforeDOMElementCreation",{assembler:t,params:e});var n=[];return t((function(t){Array.isArray(t)?t.map((function(t){n=n.concat(t.abstract)})):n=n.concat(t.abstract)})),[{tag:"span",attributes:{class:["".concat(zt.cssPrefix,"-layers")].concat(h(r)).join(" ")},children:n}]}))}}}},An={mixout:function(){return{counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,r=void 0===n?null:n,i=e.classes,o=void 0===i?[]:i,a=e.attributes,s=void 0===a?{}:a,l=e.styles,c=void 0===l?{}:l;return $e({type:"counter",content:t},(function(){return ze("beforeDOMElementCreation",{content:t,params:e}),function(t){var e=t.content,n=t.extra,r=u(u({},n.attributes),{},{class:n.classes.join(" ")}),i=Gt(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[e]}),o}({content:t.toString(),title:r,extra:{attributes:s,styles:c,classes:["".concat(zt.cssPrefix,"-layers-counter")].concat(h(o))}})}))}}}},En={mixout:function(){return{text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?Ht:n,i=e.classes,o=void 0===i?[]:i,a=e.attributes,s=void 0===a?{}:a,l=e.styles,c=void 0===l?{}:l;return $e({type:"text",content:t},(function(){return ze("beforeDOMElementCreation",{content:t,params:e}),Ke({content:t,transform:u(u({},Ht),r),extra:{attributes:s,styles:c,classes:["".concat(zt.cssPrefix,"-layers-text")].concat(h(o))}})}))}}},provides:function(t){t.generateLayersText=function(t,e){var n=e.transform,r=e.extra,i=null,o=null;if(E){var a=parseInt(getComputedStyle(t).fontSize,10),s=t.getBoundingClientRect();i=s.width/a,o=s.height/a}return Promise.resolve([t,Ke({content:t.innerHTML,width:i,height:o,transform:n,extra:r,watchable:!0})])}}},Ln=new RegExp('"',"ug"),Nn=[1105920,1112319],Pn=u(u(u(u({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Mn=Object.keys(Pn).reduce((function(t,e){return t[e.toLowerCase()]=Pn[e],t}),{}),On=Object.keys(Mn).reduce((function(t,e){var n=Mn[e];return t[e]=n[900]||h(Object.entries(n))[0][1],t}),{});function In(t,e){var n="".concat("data-fa-pseudo-element-pending").concat(e.replace(":","-"));return new Promise((function(r,i){if(null!==t.getAttribute(n))return r();var o=Yt(t.children).filter((function(t){return t.getAttribute(mt)===e}))[0],a=k.getComputedStyle(t,e),s=a.getPropertyValue("font-family"),l=s.match(Mt),c=a.getPropertyValue("font-weight"),d=a.getPropertyValue("content");if(o&&!l)return t.removeChild(o),r();if(l&&"none"!==d&&""!==d){var f=a.getPropertyValue("content"),p=function(t,e){var n=t.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),i=isNaN(r)?"normal":r;return(Mn[n]||{})[i]||On[n]}(s,c),g=function(t){return le(h(t.replace(Ln,""))[0]||"")}(f),m=l[0].startsWith("FontAwesome"),b=function(t){var e=t.getPropertyValue("font-feature-settings").includes("ss01"),n=t.getPropertyValue("content").replace(Ln,""),r=n.codePointAt(0),i=r>=Nn[0]&&r<=Nn[1],o=2===n.length&&n[0]===n[1];return i||o||e}(a),v=ke(p,g),y=v;if(m){var w=function(t){var e=ye[t],n=ke("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(g);w.iconName&&w.prefix&&(v=w.iconName,p=w.prefix)}if(!v||b||o&&o.getAttribute(bt)===p&&o.getAttribute(vt)===y)r();else{t.setAttribute(n,y),o&&t.removeChild(o);var D={iconName:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=D.extra;x.attributes[mt]=e,Ze(v,p).then((function(i){var o=Ge(u(u({},D),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:y,extra:x,watchable:!0})),a=S.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===e?t.insertBefore(a,t.firstChild):t.appendChild(a),a.outerHTML=o.map((function(t){return oe(t)})).join("\n"),t.removeAttribute(n),r()})).catch(i)}}else r()}))}function Tn(t){return Promise.all([In(t,"::before"),In(t,"::after")])}function Rn(t){return t.parentNode!==document.head&&!~wt.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(mt)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}var jn=function(t){return!!t&&Dt.some((function(e){return t.includes(e)}))},Bn=function(t){if(!t)return[];var e=new Set,n=t.split(/,(?![^()]*\))/).map((function(t){return t.trim()}));n=n.flatMap((function(t){return t.includes("(")?t:t.split(",").map((function(t){return t.trim()}))}));var r,i=a(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(jn(o)){var s=Dt.reduce((function(t,e){return t.replace(e,"")}),o);""!==s&&"*"!==s&&e.add(s)}}}catch(l){i.e(l)}finally{i.f()}return e};function zn(t){if(A){var e;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])e=t;else if(zt.searchPseudoElementsFullScan)e=t.querySelectorAll("*");else{var n,r=new Set,i=a(document.styleSheets);try{for(i.s();!(n=i.n()).done;){var o=n.value;try{var s,l=a(o.cssRules);try{for(l.s();!(s=l.n()).done;){var u,c=s.value,h=a(Bn(c.selectorText));try{for(h.s();!(u=h.n()).done;){var d=u.value;r.add(d)}}catch(p){h.e(p)}finally{h.f()}}}catch(p){l.e(p)}finally{l.f()}}catch(g){zt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(o.href," (").concat(g.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(p){i.e(p)}finally{i.f()}if(!r.size)return;var f=Array.from(r).join(", ");try{e=t.querySelectorAll(f)}catch(m){}}return new Promise((function(t,n){var r=Yt(e).filter(Rn).map(Tn),i=on("searchPseudoElements");gn(),Promise.all(r).then((function(){i(),mn(),t()})).catch((function(){i(),mn(),n()}))}))}}var qn={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=zn,t}}},provides:function(t){t.pseudoElements2svg=function(t){var e=t.node,n=void 0===e?S:e;zt.searchPseudoElements&&zn(n)}}},Wn=!1,Hn=function(t){return t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return t.flipX=!0,t;if(r&&"v"===i)return t.flipY=!0,t;if(i=parseFloat(i),isNaN(i))return t;switch(r){case"grow":t.size=t.size+i;break;case"shrink":t.size=t.size-i;break;case"left":t.x=t.x-i;break;case"right":t.x=t.x+i;break;case"up":t.y=t.y-i;break;case"down":t.y=t.y+i;break;case"rotate":t.rotate=t.rotate+i}return t}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Un={mixout:function(){return{parse:{transform:function(t){return Hn(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-transform");return n&&(t.transform=Hn(n)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var e=t.main,n=t.transform,r=t.containerWidth,i=t.iconWidth,o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:u({},c.outer),children:[{tag:"g",attributes:u({},c.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:u(u({},e.icon.attributes),c.path)}]}]}}}},Yn={x:0,y:0,width:"100%",height:"100%"};function Vn(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}var $n={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-mask"),r=n?Ne(n.split(" ").map((function(t){return t.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Fe()),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var e,n=t.children,r=t.attributes,i=t.main,o=t.mask,a=t.maskId,s=t.transform,l=i.width,c=i.icon,h=o.width,d=o.icon,f=function(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:s,containerWidth:h,iconWidth:l}),p={tag:"rect",attributes:u(u({},Yn),{},{fill:"white"})},g=c.children?{children:c.children.map(Vn)}:{},m={tag:"g",attributes:u({},f.inner),children:[Vn(u({tag:c.tag,attributes:u(u({},c.attributes),f.path)},g))]},b={tag:"g",attributes:u({},f.outer),children:[m]},v="mask-".concat(a||Ut()),y="clip-".concat(a||Ut()),w={tag:"mask",attributes:u(u({},Yn),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,b]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(e=d,"g"===e.tag?e.children:[e])},w]};return n.push(D,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},Yn)}),{children:n,attributes:r}}}},Gn={provides:function(t){var e=!1;k.matchMedia&&(e=k.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:u(u({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=u(u({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:u(u({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:u(u({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:u(u({},i),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:u(u({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:u(u({},i),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:u(u({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:u(u({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}};!function(t,e){var n=e.mixoutsTo;Ie=t,Te={},Object.keys(Re).forEach((function(t){-1===je.indexOf(t)&&delete Re[t]})),Ie.forEach((function(t){var e=t.mixout?t.mixout():{};if(Object.keys(e).forEach((function(t){"function"===typeof e[t]&&(n[t]=e[t]),"object"===f(e[t])&&Object.keys(e[t]).forEach((function(r){n[t]||(n[t]={}),n[t][r]=e[t][r]}))})),t.hooks){var r=t.hooks();Object.keys(r).forEach((function(t){Te[t]||(Te[t]=[]),Te[t].push(r[t])}))}t.provides&&t.provides(Re)}))}([Zt,Cn,Fn,An,En,qn,{mixout:function(){return{dom:{unwatch:function(){gn(),Wn=!0}}}},hooks:function(){return{bootstrap:function(){vn(Be("mutationObserverCallbacks",{}))},noAuto:function(){bn&&bn.disconnect()},watch:function(t){var e=t.observeMutationsRoot;Wn?mn():vn(Be("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},Un,$n,Gn,{hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return t.symbol=r,t}}}}],{mixoutsTo:Ye});var Kn=Ye.config,Jn=Ye.parse,Xn=Ye.icon;n(74848);function Qn(t){return e=t,(e-=0)===e?t:(t=t.replace(/[_-]+(.)?/g,((t,e)=>e?e.toUpperCase():""))).charAt(0).toLowerCase()+t.slice(1);var e}var Zn=new Map;function tr(t){if(Zn.has(t))return Zn.get(t);const e={};let n=0;const r=t.length;for(;n<r;){const o=t.indexOf(";",n),a=-1===o?r:o,s=t.slice(n,a).trim();if(s){const t=s.indexOf(":");if(t>0){const n=s.slice(0,t).trim(),r=s.slice(t+1).trim();if(n&&r){const t=Qn(n);e[t.startsWith("webkit")?(i=t,i.charAt(0).toUpperCase()+i.slice(1)):t]=r}}}n=a+1}var i;if(1e3===Zn.size){const t=Zn.keys().next().value;t&&Zn.delete(t)}return Zn.set(t,e),e}var er=function t(e,n,r={}){if("string"===typeof n)return n;const i=(n.children||[]).map((n=>t(e,n))),o=n.attributes||{},a={};for(const[h,d]of Object.entries(o))switch(!0){case"class"===h:a.className=d;break;case"style"===h:a.style=tr(String(d));break;case h.startsWith("aria-"):case h.startsWith("data-"):a[h.toLowerCase()]=d;break;default:a[Qn(h)]=d}const{style:s,role:l,"aria-label":u,...c}=r;return s&&(a.style=a.style?{...a.style,...s}:s),l&&(a.role=l),u&&(a["aria-label"]=u,a["aria-hidden"]="false"),e(n.tag,{...a,...c},...i)}.bind(null,r.createElement),nr=(t,e)=>{const n=(0,r.useId)();return t||(e?n:void 0)};"undefined"!==typeof process&&process.env;var rr="searchPseudoElementsFullScan"in Kn?"7.0.0":"6.0.0",ir=Number.parseInt(rr)>=7,or="fa",ar="fa-beat",sr="fa-fade",lr="fa-beat-fade",ur="fa-bounce",cr="fa-shake",hr="fa-spin",dr="fa-spin-pulse",fr="fa-spin-reverse",pr="fa-pulse",gr={left:"fa-pull-left",right:"fa-pull-right"},mr={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},br={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},vr="fa-border",yr="fa-fw",wr="fa-flip",Dr="fa-flip-horizontal",xr="fa-flip-vertical",_r="fa-inverse",kr="fa-rotate-by",Sr="fa-swap-opacity",Cr="fa-width-auto";function Fr(t){const e=Kn.cssPrefix||Kn.familyPrefix||or;return e===or?t:t.replace(new RegExp(String.raw`(?<=^|\s)${or}-`,"g"),`${e}-`)}function Ar(t){if(t)return(t=>"object"===typeof t&&"icon"in t&&!!t.icon)(t)?t:Jn.icon(t)}var Er=new class{constructor(t="react-fontawesome"){this.enabled=!1;let e=!1;try{e="undefined"!==typeof process&&!1}catch{}this.scope=t,this.enabled=e}log(...t){this.enabled&&console.log(`[${this.scope}]`,...t)}warn(...t){this.enabled&&console.warn(`[${this.scope}]`,...t)}error(...t){this.enabled&&console.error(`[${this.scope}]`,...t)}}("FontAwesomeIcon"),Lr={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Nr=new Set(Object.keys(Lr)),Pr=r.forwardRef(((t,e)=>{const n={...Lr,...t},{icon:r,mask:i,symbol:o,title:a,titleId:s,maskId:l,transform:u}=n,c=nr(l,Boolean(i)),h=nr(s,Boolean(a)),d=Ar(r);if(!d)return Er.error("Icon lookup is undefined",r),null;const f=function(t){const{beat:e,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:s,spinReverse:l,pulse:u,fixedWidth:c,inverse:h,border:d,flip:f,size:p,rotation:g,pull:m,swapOpacity:b,rotateBy:v,widthAuto:y,className:w}=t,D=[];return w&&D.push(...w.split(" ")),e&&D.push(ar),n&&D.push(sr),r&&D.push(lr),i&&D.push(ur),o&&D.push(cr),a&&D.push(hr),l&&D.push(fr),s&&D.push(dr),u&&D.push(pr),c&&D.push(yr),h&&D.push(_r),d&&D.push(vr),!0===f&&D.push(wr),"horizontal"!==f&&"both"!==f||D.push(Dr),"vertical"!==f&&"both"!==f||D.push(xr),void 0!==p&&null!==p&&D.push(br[p]),void 0!==g&&null!==g&&0!==g&&D.push(mr[g]),void 0!==m&&null!==m&&D.push(gr[m]),b&&D.push(Sr),ir?(v&&D.push(kr),y&&D.push(Cr),(Kn.cssPrefix||Kn.familyPrefix||or)===or?D:D.map(Fr)):D}(n),p="string"===typeof u?Jn.transform(u):u,g=Ar(i),m=Xn(d,{...f.length>0&&{classes:f},...p&&{transform:p},...g&&{mask:g},symbol:o,title:a,titleId:h,maskId:c});if(!m)return Er.error("Could not find icon",d),null;const{abstract:b}=m,v={ref:e};for(const w of(y=n,Object.keys(y)))Nr.has(w)||(v[w]=n[w]);var y;return er(b[0],v)}));Pr.displayName="FontAwesomeIcon"},13083(t,e,n){"use strict";n.d(e,{Ay:()=>Hn});var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=t=>i(t,"__esModule",{value:!0}),c=(t,e)=>function(){return e||(0,t[Object.keys(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e)=>{for(var n in u(t),e)i(t,n,{get:e[n],enumerable:!0})},d=t=>((t,e,n)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let r of a(e))l.call(t,r)||"default"===r||i(t,r,{get:()=>e[r],enumerable:!(n=o(e,r))||n.enumerable});return t})(u(i(null!=t?r(s(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),f=c({"src/grammar/tag.js"(t,e){function n(t,e,r,i){this.message=t,this.expected=e,this.found=r,this.location=i,this.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(n,Error),n.buildMessage=function(t,e,n){var r,i={literal:function(t){return'"'+a(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)}));return"["+(t.inverted?"^":"")+e+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description},not:function(t){return"not "+l(t.expected)}};function o(t){return t.charCodeAt(0).toString(16).toUpperCase()}function a(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+o(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+o(t)}))}function s(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+o(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+o(t)}))}function l(t){return i[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(l);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+(((r=e)?'"'+a(r)+'"':"end of input")+" found.")},e.exports={SyntaxError:n,parse:function(t,e){e=void 0!==e?e:{};var r,i={},o={Top:Ut},a=Ut,s="/",l=".",u="#",c="=",h="(",d=")",f=",",p="[",g="]",m="null",b="true",v="false",y="{",w="}",D=":",x="-",_='"',k="\\",S="n",C="r",F="t",A=/^[$@]/,E=/^[0-9]/,L=/^[^\0-\x1F"\\]/,N=/^[a-zA-Z0-9_\-]/,P=/^[ \n\t]/,M=Rt("/",!1),O=jt("tag name"),I=jt("class"),T=jt("id"),R=Rt("=",!1),j=Rt("(",!1),B=Rt(")",!1),z=Rt(",",!1),q=jt("variable"),W=jt("null"),H=jt("boolean"),U=Rt("[",!1),Y=Rt("]",!1),V=Rt("{",!1),$=Rt("}",!1),G=Rt(":",!1),K=jt("number"),J=jt("string"),X=jt("identifier"),Q=jt("whitespace"),Z=function(t){return{type:"variable",meta:{variable:t}}},tt=function(t){return{type:"annotation",meta:{attributes:t}}},et=function(t,e){return e},nt=function(t,e,n,r){e&&(n=n||[]).unshift({type:"attribute",name:"primary",value:e});const[i,o]=r?["tag",0]:["tag_open",1];return{type:i,nesting:o,meta:{tag:t,attributes:n}}},rt=function(t){return{type:"tag_close",nesting:-1,meta:{tag:t}}},it=function(t,e){return t?[t,...e]:[]},ot=function(t){return t},at=function(t){return t},st=function(t){return t},lt=function(t){return t},ut=function(t){return{type:"class",name:t,value:!0}},ct=function(t){return{type:"attribute",name:"id",value:t}},ht=function(t,e){return{type:"attribute",name:t,value:e}},dt=function(t,e,n){return e?[e,...n]:[]},ft=function(t,e){let n={};for(let[r,{name:i,value:o}]of e.entries())n[i||r]=o;return new he(t,n)},pt=function(t){return t},gt=function(t,e){return{name:t,value:e}},mt=function(t){return t},bt=function(t,e,n){return"@"===t?[e,...n]:new ce([e,...n])},vt=function(){return null},yt=function(){return!0},wt=function(){return!1},Dt=function(t,e){return[t,...e]},xt=function(t){return t||[]},_t=function(t,e){return Object.assign(t,...e)},kt=function(t){return t||{}},St=function(t,e){return"$$mdtype"===t?{}:{[t]:e}},Ct=function(){return parseFloat(t.substring(Mt,Pt))},Ft=function(t){return t.join("")},At=function(){return"\n"},Et=function(){return"\r"},Lt=function(){return"\t"},Nt=function(t){return t},Pt=0,Mt=0,Ot=[{line:1,column:1}],It=[],Tt=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function Rt(t,e){return{type:"literal",text:t,ignoreCase:e}}function jt(t){return{type:"other",description:t}}function Bt(e){var n,r=Ot[e];if(r)return r;for(n=e-1;!Ot[n];)n--;for(r={line:(r=Ot[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ot[e]=r,r}var zt="string"===typeof e.filename&&e.filename.length>0;function qt(t,n){var r={};zt&&(r.filename=e.filename);var i=Bt(t);r.start={offset:t,line:i.line,column:i.column};var o=Bt(n);return r.end={offset:n,line:o.line,column:o.column},r}function Wt(t){var e=It[It.length-1];Pt<e.pos||(Pt>e.pos&&(e.pos=Pt,e.variants=[]),e.variants.push(t))}function Ht(t,e,r){return new n(n.buildMessage(t,e,r),t,e,r)}function Ut(){var e;return(e=function(){var t,e;t=Pt,(e=Zt())===i&&(e=Kt());e!==i&&(Mt=t,e=Z(e));return t=e,t}())===i&&(e=function(){var t,e,n,r;if(t=Pt,(e=Vt())!==i){for(n=[],r=ue();r!==i;)n.push(r),r=ue();Mt=t,t=tt(e)}else Pt=t,t=i;return t}())===i&&(e=function(){var e,n,r,o,a,l,u,c=function(t){0===Tt&&Wt(t)};if(e=Pt,(n=Yt())!==i){for(r=[],o=ue();o!==i;)r.push(o),o=ue();for(o=Pt,(a=ee())!==i?((l=ue())===i&&(l=null),Mt=o,o=et(n,a)):(Pt=o,o=i),o===i&&(o=null),(a=Vt())===i&&(a=null),l=[],u=ue();u!==i;)l.push(u),u=ue();c(M),47===t.charCodeAt(Pt)?(u=s,Pt++):u=i,u===i&&(u=null),Mt=e,e=nt(n,o,a,u)}else Pt=e,e=i;return e}(),e===i&&(e=function(){var e,n,r,o=function(t){0===Tt&&Wt(t)};e=Pt,o(M),47===t.charCodeAt(Pt)?(n=s,Pt++):n=i;n!==i&&(r=Yt())!==i?(Mt=e,e=rt(r)):(Pt=e,e=i);return e}())),e}function Yt(){var t,e;return e=O,0===Tt&&Wt(e),Tt++,t=le(),Tt--,t}function Vt(){var t,e,n,r;if(t=Pt,(e=Gt())!==i){for(n=[],r=$t();r!==i;)n.push(r),r=$t();Mt=t,t=it(e,n)}else Pt=t,t=i;return t}function $t(){var t,e,n;if(t=Pt,e=[],(n=ue())!==i)for(;n!==i;)e.push(n),n=ue();else e=i;return e!==i&&(n=Gt())!==i?(Mt=t,t=ot(n)):(Pt=t,t=i),t}function Gt(){var e,n;return e=Pt,n=function(){var e,n,r,o=function(t){0===Tt&&Wt(t)};o(T),Tt++,e=Pt,35===t.charCodeAt(Pt)?(n=u,Pt++):n=i;n!==i&&(r=le())!==i?(Mt=e,e=ct(r)):(Pt=e,e=i);return Tt--,e}(),n!==i&&(Mt=e,n=at(n)),(e=n)===i&&(e=Pt,n=function(){var e,n,r,o=function(t){0===Tt&&Wt(t)};o(I),Tt++,e=Pt,46===t.charCodeAt(Pt)?(n=l,Pt++):n=i;n!==i&&(r=le())!==i?(Mt=e,e=ut(r)):(Pt=e,e=i);return Tt--,e}(),n!==i&&(Mt=e,n=st(n)),(e=n)===i&&(e=Pt,n=function(){var e,n,r,o,a=function(t){0===Tt&&Wt(t)};e=Pt,n=le(),n!==i?(a(R),61===t.charCodeAt(Pt)?(r=c,Pt++):r=i,r!==i&&(o=ee())!==i?(Mt=e,e=ht(n,o)):(Pt=e,e=i)):(Pt=e,e=i);return e}(),n!==i&&(Mt=e,n=lt(n)),e=n)),e}function Kt(){var e,n,r,o,a,s,l,u,c=function(t){0===Tt&&Wt(t)};if(e=Pt,(n=le())!==i)if(c(j),40===t.charCodeAt(Pt)?(r=h,Pt++):r=i,r!==i){for(o=[],a=ue();a!==i;)o.push(a),a=ue();for(a=Pt,(s=Jt())===i&&(s=null),l=[],u=Xt();u!==i;)l.push(u),u=Xt();Mt=a,a=dt(n,s,l),c(B),41===t.charCodeAt(Pt)?(s=d,Pt++):s=i,s!==i?(Mt=e,e=ft(n,a)):(Pt=e,e=i)}else Pt=e,e=i;else Pt=e,e=i;return e}function Jt(){var e,n,r,o,a;return e=Pt,n=Pt,(r=le())!==i?(a=R,0===Tt&&Wt(a),61===t.charCodeAt(Pt)?(o=c,Pt++):o=i,o!==i?(Mt=n,n=pt(r)):(Pt=n,n=i)):(Pt=n,n=i),n===i&&(n=null),(r=ee())!==i?(Mt=e,e=gt(n,r)):(Pt=e,e=i),e}function Xt(){var e,n,r,o,a,s;for(e=Pt,n=[],r=ue();r!==i;)n.push(r),r=ue();if(s=z,0===Tt&&Wt(s),44===t.charCodeAt(Pt)?(r=f,Pt++):r=i,r!==i){for(o=[],a=ue();a!==i;)o.push(a),a=ue();(a=Jt())!==i?(Mt=e,e=mt(a)):(Pt=e,e=i)}else Pt=e,e=i;return e}function Qt(){var e,n,r,o;for(e=Pt,n=[],r=ue();r!==i;)n.push(r),r=ue();return o=z,0===Tt&&Wt(o),44===t.charCodeAt(Pt)?(r=f,Pt++):r=i,r!==i?e=n=[n,r]:(Pt=e,e=i),e===i&&(e=null),e}function Zt(){var e,n,r,o,a,s;if(s=q,0===Tt&&Wt(s),Tt++,e=Pt,A.test(t.charAt(Pt))?(n=t.charAt(Pt),Pt++):n=i,n!==i)if((r=le())!==i){for(o=[],a=te();a!==i;)o.push(a),a=te();Mt=e,e=bt(n,r,o)}else Pt=e,e=i;else Pt=e,e=i;return Tt--,e}function te(){var e,n,r,o;return e=Pt,46===t.charCodeAt(Pt)?(n=l,Pt++):n=i,n!==i&&(r=le())!==i?(Mt=e,e=pt(r)):(Pt=e,e=i),e===i&&(e=Pt,91===t.charCodeAt(Pt)?(n=p,Pt++):n=i,n!==i?((r=oe())===i&&(r=ae()),r!==i?(93===t.charCodeAt(Pt)?(o=g,Pt++):o=i,o!==i?(Mt=e,e=mt(r)):(Pt=e,e=i)):(Pt=e,e=i)):(Pt=e,e=i)),e}function ee(){var e;return e=function(){var e,n,r=function(t){0===Tt&&Wt(t)};r(W),Tt++,e=Pt,t.substr(Pt,4)===m?(n=m,Pt+=4):n=i;n!==i&&(Mt=e,n=vt());return e=n,Tt--,e}(),e===i&&(e=function(){var e,n,r=function(t){0===Tt&&Wt(t)};r(H),Tt++,e=Pt,t.substr(Pt,4)===b?(n=b,Pt+=4):n=i;n!==i&&(Mt=e,n=yt());e=n,e===i&&(e=Pt,t.substr(Pt,5)===v?(n=v,Pt+=5):n=i,n!==i&&(Mt=e,n=wt()),e=n);return Tt--,e}(),e===i&&(e=ae())===i&&(e=oe())===i&&(e=function(){var e,n,r,o,a,s,l,u=function(t){0===Tt&&Wt(t)};e=Pt,u(U),91===t.charCodeAt(Pt)?(n=p,Pt++):n=i;if(n!==i){for(r=[],o=ue();o!==i;)r.push(o),o=ue();if(o=Pt,(a=ee())!==i){for(s=[],l=ne();l!==i;)s.push(l),l=ne();l=Qt(),Mt=o,o=Dt(a,s)}else Pt=o,o=i;for(o===i&&(o=null),a=[],s=ue();s!==i;)a.push(s),s=ue();u(Y),93===t.charCodeAt(Pt)?(s=g,Pt++):s=i,s!==i?(Mt=e,e=xt(o)):(Pt=e,e=i)}else Pt=e,e=i;return e}(),e===i&&(e=function(){var e,n,r,o,a,s,l,u=function(t){0===Tt&&Wt(t)};e=Pt,u(V),123===t.charCodeAt(Pt)?(n=y,Pt++):n=i;if(n!==i){for(r=[],o=ue();o!==i;)r.push(o),o=ue();if(o=Pt,(a=ie())!==i){for(s=[],l=re();l!==i;)s.push(l),l=re();l=Qt(),Mt=o,o=_t(a,s)}else Pt=o,o=i;for(o===i&&(o=null),a=[],s=ue();s!==i;)a.push(s),s=ue();u($),125===t.charCodeAt(Pt)?(s=w,Pt++):s=i,s!==i?(Mt=e,e=kt(o)):(Pt=e,e=i)}else Pt=e,e=i;return e}(),e===i&&(e=Kt())===i&&(e=Zt())))),e}function ne(){var e,n,r,o,a,s;for(e=Pt,n=[],r=ue();r!==i;)n.push(r),r=ue();if(s=z,0===Tt&&Wt(s),44===t.charCodeAt(Pt)?(r=f,Pt++):r=i,r!==i){for(o=[],a=ue();a!==i;)o.push(a),a=ue();(a=ee())!==i?(Mt=e,e=mt(a)):(Pt=e,e=i)}else Pt=e,e=i;return e}function re(){var e,n,r,o,a,s;for(e=Pt,n=[],r=ue();r!==i;)n.push(r),r=ue();if(s=z,0===Tt&&Wt(s),44===t.charCodeAt(Pt)?(r=f,Pt++):r=i,r!==i){for(o=[],a=ue();a!==i;)o.push(a),a=ue();(a=ie())!==i?(Mt=e,e=ot(a)):(Pt=e,e=i)}else Pt=e,e=i;return e}function ie(){var e,n,r,o,a,s;if(e=Pt,(n=le())===i&&(n=ae()),n!==i)if(s=G,0===Tt&&Wt(s),58===t.charCodeAt(Pt)?(r=D,Pt++):r=i,r!==i){for(o=[],a=ue();a!==i;)o.push(a),a=ue();(a=ee())!==i?(Mt=e,e=St(n,a)):(Pt=e,e=i)}else Pt=e,e=i;else Pt=e,e=i;return e}function oe(){var e,n,r,o,a,s,u,c;if(c=K,0===Tt&&Wt(c),Tt++,e=Pt,45===t.charCodeAt(Pt)?(n=x,Pt++):n=i,n===i&&(n=null),r=[],E.test(t.charAt(Pt))?(o=t.charAt(Pt),Pt++):o=i,o!==i)for(;o!==i;)r.push(o),E.test(t.charAt(Pt))?(o=t.charAt(Pt),Pt++):o=i;else r=i;if(r!==i){if(o=Pt,46===t.charCodeAt(Pt)?(a=l,Pt++):a=i,a!==i){if(s=[],E.test(t.charAt(Pt))?(u=t.charAt(Pt),Pt++):u=i,u!==i)for(;u!==i;)s.push(u),E.test(t.charAt(Pt))?(u=t.charAt(Pt),Pt++):u=i;else s=i;s!==i?o=a=[a,s]:(Pt=o,o=i)}else Pt=o,o=i;o===i&&(o=null),Mt=e,e=Ct()}else Pt=e,e=i;return Tt--,e}function ae(){var e,n,r,o,a;if(a=J,0===Tt&&Wt(a),Tt++,e=Pt,34===t.charCodeAt(Pt)?(n=_,Pt++):n=i,n!==i){for(r=[],o=se();o!==i;)r.push(o),o=se();34===t.charCodeAt(Pt)?(o=_,Pt++):o=i,o!==i?(Mt=e,e=Ft(r)):(Pt=e,e=i)}else Pt=e,e=i;return Tt--,e}function se(){var e;return L.test(t.charAt(Pt))?(e=t.charAt(Pt),Pt++):e=i,e===i&&(e=function(){var e,n,r,o;e=Pt,92===t.charCodeAt(Pt)?(n=k,Pt++):n=i;n!==i?(34===t.charCodeAt(Pt)?(r=_,Pt++):r=i,r===i&&(92===t.charCodeAt(Pt)?(r=k,Pt++):r=i,r===i&&(r=Pt,110===t.charCodeAt(Pt)?(o=S,Pt++):o=i,o!==i&&(Mt=r,o=At()),(r=o)===i&&(r=Pt,114===t.charCodeAt(Pt)?(o=C,Pt++):o=i,o!==i&&(Mt=r,o=Et()),(r=o)===i&&(r=Pt,116===t.charCodeAt(Pt)?(o=F,Pt++):o=i,o!==i&&(Mt=r,o=Lt()),r=o)))),r!==i?(Mt=e,e=Nt(r)):(Pt=e,e=i)):(Pt=e,e=i);return e}()),e}function le(){var e,n,r,o;if(o=X,0===Tt&&Wt(o),Tt++,e=Pt,n=[],N.test(t.charAt(Pt))?(r=t.charAt(Pt),Pt++):r=i,r!==i)for(;r!==i;)n.push(r),N.test(t.charAt(Pt))?(r=t.charAt(Pt),Pt++):r=i;else n=i;return e=n!==i?t.substring(e,Pt):n,Tt--,e}function ue(){var e,n;return n=Q,0===Tt&&Wt(n),Tt++,P.test(t.charAt(Pt))?(e=t.charAt(Pt),Pt++):e=i,Tt--,e}const{Variable:ce,Function:he}=e;if(It.push({pos:Pt,variants:[]}),(r=a())!==i&&Pt===t.length)return r;throw r!==i&&Pt<t.length&&Wt({type:"end"}),function(){var e=It[0],n=e.pos;return Ht(e.variants,n<t.length?t.charAt(n):null,n<t.length?qt(n,n+1):qt(n,n))}()}}}}),p=c({"node_modules/entities/lib/maps/entities.json"(t,e){e.exports={Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\xca",ecirc:"\xea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105",in:"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba",int:"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\xb7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",Ocirc:"\xd4",ocirc:"\xf4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\xb6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",prap:"\u2ab7",Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\xd7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\xff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}}}),g=c({"node_modules/markdown-it/lib/common/entities.js"(t,e){e.exports=p()}}),m=c({"node_modules/uc.micro/categories/P/regex.js"(t,e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}}),b=c({"node_modules/mdurl/encode.js"(t,e){var n={};function r(t,e,i){var o,a,s,l,u,c="";for("string"!==typeof e&&(i=e,e=r.defaultChars),"undefined"===typeof i&&(i=!0),u=function(t){var e,r,i=n[t];if(i)return i;for(i=n[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i}(e),o=0,a=t.length;o<a;o++)if(s=t.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3)))c+=t.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=t.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(t[o]);return c}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r}}),v=c({"node_modules/mdurl/decode.js"(t,e){var n={};function r(t,e){var i;return"string"!==typeof e&&(e=r.defaultChars),i=function(t){var e,r,i=n[t];if(i)return i;for(i=n[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),i.push(r);for(e=0;e<t.length;e++)i[r=t.charCodeAt(e)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(e),t.replace(/(%[a-f0-9]{2})+/gi,(function(t){var e,n,r,o,a,s,l,u="";for(e=0,n=t.length;e<n;e+=3)(r=parseInt(t.slice(e+1,e+3),16))<128?u+=i[r]:192===(224&r)&&e+3<n&&128===(192&(o=parseInt(t.slice(e+4,e+6),16)))?(u+=(l=r<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(l),e+=3):224===(240&r)&&e+6<n&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),128===(192&o)&&128===(192&a))?(u+=(l=r<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),e+=6):240===(248&r)&&e+9<n&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?((l=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),e+=9):u+="\ufffd";return u}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r}}),y=c({"node_modules/mdurl/format.js"(t,e){e.exports=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||""}}}),w=c({"node_modules/mdurl/parse.js"(t,e){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(a),l=["%","/","?",";","#"].concat(s),u=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};n.prototype.parse=function(t,e){var n,i,a,s,p,g=t;if(g=g.trim(),!e&&1===t.split("#").length){var m=o.exec(g);if(m)return this.pathname=m[1],m[2]&&(this.search=m[2]),this}var b=r.exec(g);if(b&&(a=(b=b[0]).toLowerCase(),this.protocol=b,g=g.substr(b.length)),(e||b||g.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(p="//"===g.substr(0,2))||b&&d[b]||(g=g.substr(2),this.slashes=!0)),!d[b]&&(p||b&&!f[b])){var v,y,w=-1;for(n=0;n<u.length;n++)-1!==(s=g.indexOf(u[n]))&&(-1===w||s<w)&&(w=s);for(-1!==(y=-1===w?g.lastIndexOf("@"):g.lastIndexOf("@",w))&&(v=g.slice(0,y),g=g.slice(y+1),this.auth=v),w=-1,n=0;n<l.length;n++)-1!==(s=g.indexOf(l[n]))&&(-1===w||s<w)&&(w=s);-1===w&&(w=g.length),":"===g[w-1]&&w--;var D=g.slice(0,w);g=g.slice(w),this.parseHost(D),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x){var _=this.hostname.split(/\./);for(n=0,i=_.length;n<i;n++){var k=_[n];if(k&&!k.match(c)){for(var S="",C=0,F=k.length;C<F;C++)k.charCodeAt(C)>127?S+="x":S+=k[C];if(!S.match(c)){var A=_.slice(0,n),E=_.slice(n+1),L=k.match(h);L&&(A.push(L[1]),E.unshift(L[2])),E.length&&(g=E.join(".")+g),this.hostname=A.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=g.indexOf("#");-1!==N&&(this.hash=g.substr(N),g=g.slice(0,N));var P=g.indexOf("?");return-1!==P&&(this.search=g.substr(P),g=g.slice(0,P)),g&&(this.pathname=g),f[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},n.prototype.parseHost=function(t){var e=i.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.exports=function(t,e){if(t&&t instanceof n)return t;var r=new n;return r.parse(t,e),r}}}),D=c({"node_modules/mdurl/index.js"(t,e){e.exports.encode=b(),e.exports.decode=v(),e.exports.format=y(),e.exports.parse=w()}}),x=c({"node_modules/uc.micro/properties/Any/regex.js"(t,e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}),_=c({"node_modules/uc.micro/categories/Cc/regex.js"(t,e){e.exports=/[\0-\x1F\x7F-\x9F]/}}),k=c({"node_modules/uc.micro/categories/Cf/regex.js"(t,e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/}}),S=c({"node_modules/uc.micro/categories/Z/regex.js"(t,e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}}),C=c({"node_modules/uc.micro/index.js"(t){t.Any=x(),t.Cc=_(),t.Cf=k(),t.P=m(),t.Z=S()}}),F=c({"node_modules/markdown-it/lib/common/utils.js"(t){var e=Object.prototype.hasOwnProperty;function n(t,n){return e.call(t,n)}function r(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!==(65535&t)&&65534!==(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function i(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=g();var u=/[&<>"]/,c=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function d(t){return h[t]}var f=/[.?*+^$[\]\\(){}|-]/g;var p=m();t.lib={},t.lib.mdurl=D(),t.lib.ucmicro=C(),t.assign=function(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){if(e){if("object"!==typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t},t.isString=function(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)},t.has=n,t.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(o,"$1")},t.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(a,(function(t,e,o){return e||function(t,e){var o=0;return n(l,e)?l[e]:35===e.charCodeAt(0)&&s.test(e)&&r(o="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?i(o):t}(t,o)}))},t.isValidEntityCode=r,t.fromCodePoint=i,t.escapeHtml=function(t){return u.test(t)?t.replace(c,d):t},t.arrayReplaceAt=function(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))},t.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(t){return p.test(t)},t.escapeRE=function(t){return t.replace(f,"\\$&")},t.normalizeReference=function(t){return t=t.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(t=t.replace(/\u1e9e/g,"\xdf")),t.toLowerCase().toUpperCase()}}}),A=c({"node_modules/markdown-it/lib/helpers/parse_link_label.js"(t,e){e.exports=function(t,e,n){var r,i,o,a,s=-1,l=t.posMax,u=t.pos;for(t.pos=e+1,r=1;t.pos<l;){if(93===(o=t.src.charCodeAt(t.pos))&&0===--r){i=!0;break}if(a=t.pos,t.md.inline.skipToken(t),91===o)if(a===t.pos-1)r++;else if(n)return t.pos=u,-1}return i&&(s=t.pos),t.pos=u,s}}}),E=c({"node_modules/markdown-it/lib/helpers/parse_link_destination.js"(t,e){var n=F().unescapeAll;e.exports=function(t,e,r){var i,o,a=e,s={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(e)){for(e++;e<r;){if(10===(i=t.charCodeAt(e)))return s;if(60===i)return s;if(62===i)return s.pos=e+1,s.str=n(t.slice(a+1,e)),s.ok=!0,s;92===i&&e+1<r?e+=2:e++}return s}for(o=0;e<r&&32!==(i=t.charCodeAt(e))&&!(i<32||127===i);)if(92===i&&e+1<r){if(32===t.charCodeAt(e+1))break;e+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}e++}return a===e||0!==o||(s.str=n(t.slice(a,e)),s.lines=0,s.pos=e,s.ok=!0),s}}}),L=c({"node_modules/markdown-it/lib/helpers/parse_link_title.js"(t,e){var n=F().unescapeAll;e.exports=function(t,e,r){var i,o,a=0,s=e,l={ok:!1,pos:0,lines:0,str:""};if(e>=r)return l;if(34!==(o=t.charCodeAt(e))&&39!==o&&40!==o)return l;for(e++,40===o&&(o=41);e<r;){if((i=t.charCodeAt(e))===o)return l.pos=e+1,l.lines=a,l.str=n(t.slice(s+1,e)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&e+1<r&&(e++,10===t.charCodeAt(e)&&a++),e++}return l}}}),N=c({"node_modules/markdown-it/lib/helpers/index.js"(t){t.parseLinkLabel=A(),t.parseLinkDestination=E(),t.parseLinkTitle=L()}}),P=c({"node_modules/markdown-it/lib/renderer.js"(t,e){var n=F().assign,r=F().unescapeAll,i=F().escapeHtml,o={};function a(){this.rules=n({},o)}o.code_inline=function(t,e,n,r,o){var a=t[e];return"<code"+o.renderAttrs(a)+">"+i(t[e].content)+"</code>"},o.code_block=function(t,e,n,r,o){var a=t[e];return"<pre"+o.renderAttrs(a)+"><code>"+i(t[e].content)+"</code></pre>\n"},o.fence=function(t,e,n,o,a){var s,l,u,c,h,d=t[e],f=d.info?r(d.info).trim():"",p="",g="";return f&&(p=(u=f.split(/(\s+)/g))[0],g=u.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,p,g)||i(d.content)).indexOf("<pre")?s+"\n":f?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+p]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+p),h={attrs:c},"<pre><code"+a.renderAttrs(h)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"},o.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)},o.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(t,e){return i(t[e].content)},o.html_block=function(t,e){return t[e].content},o.html_inline=function(t,e){return t[e].content},a.prototype.renderAttrs=function(t){var e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e<n;e++)r+=" "+i(t.attrs[e][0])+'="'+i(t.attrs[e][1])+'"';return r},a.prototype.renderToken=function(t,e,n){var r,i="",o=!1,a=t[e];return a.hidden?"":(a.block&&-1!==a.nesting&&e&&t[e-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&e+1<t.length&&("inline"===(r=t[e+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},a.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,s=t.length;a<s;a++)"undefined"!==typeof o[r=t[a].type]?i+=o[r](t,a,e,n,this):i+=this.renderToken(t,a,e);return i},a.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)"text"===t[i].type?r+=t[i].content:"image"===t[i].type?r+=this.renderInlineAsText(t[i].children,e,n):"softbreak"===t[i].type&&(r+="\n");return r},a.prototype.render=function(t,e,n){var r,i,o,a="",s=this.rules;for(r=0,i=t.length;r<i;r++)"inline"===(o=t[r].type)?a+=this.renderInline(t[r].children,e,n):"undefined"!==typeof s[o]?a+=s[t[r].type](t,r,e,n,this):a+=this.renderToken(t,r,e,n);return a},e.exports=a}}),M=c({"node_modules/markdown-it/lib/ruler.js"(t,e){function n(){this.__rules__=[],this.__cache__=null}n.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},n.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))}))}))},n.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},n.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},n.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},n.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},n.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach((function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,n.push(t)}),this),this.__cache__=null,n},n.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach((function(t){t.enabled=!1})),this.enable(t,e)},n.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach((function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,n.push(t)}),this),this.__cache__=null,n},n.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},e.exports=n}}),O=c({"node_modules/markdown-it/lib/rules_core/normalize.js"(t,e){var n=/\r\n?|\n/g,r=/\0/g;e.exports=function(t){var e;e=(e=t.src.replace(n,"\n")).replace(r,"\ufffd"),t.src=e}}}),I=c({"node_modules/markdown-it/lib/rules_core/block.js"(t,e){e.exports=function(t){var e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}}}),T=c({"node_modules/markdown-it/lib/rules_core/inline.js"(t,e){e.exports=function(t){var e,n,r,i=t.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(e=i[n]).type&&t.md.inline.parse(e.content,t.md,t.env,e.children)}}}),R=c({"node_modules/markdown-it/lib/rules_core/linkify.js"(t,e){var n=F().arrayReplaceAt;function r(t){return/^<\/a\s*>/i.test(t)}e.exports=function(t){var e,i,o,a,s,l,u,c,h,d,f,p,g,m,b,v,y,w,D=t.tokens;if(t.md.options.linkify)for(i=0,o=D.length;i<o;i++)if("inline"===D[i].type&&t.md.linkify.pretest(D[i].content))for(g=0,e=(a=D[i].children).length-1;e>=0;e--)if("link_close"!==(l=a[e]).type){if("html_inline"===l.type&&(w=l.content,/^<a[>\s]/i.test(w)&&g>0&&g--,r(l.content)&&g++),!(g>0)&&"text"===l.type&&t.md.linkify.test(l.content)){for(h=l.content,y=t.md.linkify.match(h),u=[],p=l.level,f=0,c=0;c<y.length;c++)m=y[c].url,b=t.md.normalizeLink(m),t.md.validateLink(b)&&(v=y[c].text,v=y[c].schema?"mailto:"!==y[c].schema||/^mailto:/i.test(v)?t.md.normalizeLinkText(v):t.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(d=y[c].index)>f&&((s=new t.Token("text","",0)).content=h.slice(f,d),s.level=p,u.push(s)),(s=new t.Token("link_open","a",1)).attrs=[["href",b]],s.level=p++,s.markup="linkify",s.info="auto",u.push(s),(s=new t.Token("text","",0)).content=v,s.level=p,u.push(s),(s=new t.Token("link_close","a",-1)).level=--p,s.markup="linkify",s.info="auto",u.push(s),f=y[c].lastIndex);f<h.length&&((s=new t.Token("text","",0)).content=h.slice(f),s.level=p,u.push(s)),D[i].children=a=n(a,e,u)}}else for(e--;a[e].level!==l.level&&"link_open"!==a[e].type;)e--}}}),j=c({"node_modules/markdown-it/lib/rules_core/replacements.js"(t,e){var n=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,o={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function a(t,e){return o[e.toLowerCase()]}function s(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)"text"!==(n=t[e]).type||r||(n.content=n.content.replace(i,a)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(t){var e,r,i=0;for(e=t.length-1;e>=0;e--)"text"!==(r=t[e]).type||i||n.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(r.test(t.tokens[e].content)&&s(t.tokens[e].children),n.test(t.tokens[e].content)&&l(t.tokens[e].children))}}}),B=c({"node_modules/markdown-it/lib/rules_core/smartquotes.js"(t,e){var n=F().isWhiteSpace,r=F().isPunctChar,i=F().isMdAsciiPunct,o=/['"]/,a=/['"]/g;function s(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function l(t,e){var o,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x,_,k,S,C,F;for(S=[],o=0;o<t.length;o++){for(l=t[o],f=t[o].level,_=S.length-1;_>=0&&!(S[_].level<=f);_--);if(S.length=_+1,"text"===l.type){h=0,d=(u=l.content).length;t:for(;h<d&&(a.lastIndex=h,c=a.exec(u));){if(D=x=!0,h=c.index+1,k="'"===c[0],g=32,c.index-1>=0)g=u.charCodeAt(c.index-1);else for(_=o-1;_>=0&&("softbreak"!==t[_].type&&"hardbreak"!==t[_].type);_--)if(t[_].content){g=t[_].content.charCodeAt(t[_].content.length-1);break}if(m=32,h<d)m=u.charCodeAt(h);else for(_=o+1;_<t.length&&("softbreak"!==t[_].type&&"hardbreak"!==t[_].type);_++)if(t[_].content){m=t[_].content.charCodeAt(0);break}if(b=i(g)||r(String.fromCharCode(g)),v=i(m)||r(String.fromCharCode(m)),y=n(g),(w=n(m))?D=!1:v&&(y||b||(D=!1)),y?x=!1:b&&(w||v||(x=!1)),34===m&&'"'===c[0]&&g>=48&&g<=57&&(x=D=!1),D&&x&&(D=b,x=v),D||x){if(x)for(_=S.length-1;_>=0&&(p=S[_],!(S[_].level<f));_--)if(p.single===k&&S[_].level===f){p=S[_],k?(C=e.md.options.quotes[2],F=e.md.options.quotes[3]):(C=e.md.options.quotes[0],F=e.md.options.quotes[1]),l.content=s(l.content,c.index,F),t[p.token].content=s(t[p.token].content,p.pos,C),h+=F.length-1,p.token===o&&(h+=C.length-1),d=(u=l.content).length,S.length=_;continue t}D?S.push({token:o,pos:c.index,single:k,level:f}):x&&k&&(l.content=s(l.content,c.index,"\u2019"))}else k&&(l.content=s(l.content,c.index,"\u2019"))}}}}e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&o.test(t.tokens[e].content)&&l(t.tokens[e].children,t)}}}),z=c({"node_modules/markdown-it/lib/token.js"(t,e){function n(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.prototype.attrIndex=function(t){var e,n,r;if(!this.attrs)return-1;for(n=0,r=(e=this.attrs).length;n<r;n++)if(e[n][0]===t)return n;return-1},n.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},n.prototype.attrSet=function(t,e){var n=this.attrIndex(t),r=[t,e];n<0?this.attrPush(r):this.attrs[n]=r},n.prototype.attrGet=function(t){var e=this.attrIndex(t),n=null;return e>=0&&(n=this.attrs[e][1]),n},n.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},e.exports=n}}),q=c({"node_modules/markdown-it/lib/rules_core/state_core.js"(t,e){var n=z();function r(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}r.prototype.Token=n,e.exports=r}}),W=c({"node_modules/markdown-it/lib/parser_core.js"(t,e){var n=M(),r=[["normalize",O()],["block",I()],["inline",T()],["linkify",R()],["replacements",j()],["smartquotes",B()]];function i(){this.ruler=new n;for(var t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1])}i.prototype.process=function(t){var e,n,r;for(e=0,n=(r=this.ruler.getRules("")).length;e<n;e++)r[e](t)},i.prototype.State=q(),e.exports=i}}),H=c({"node_modules/markdown-it/lib/rules_block/table.js"(t,e){var n=F().isSpace;function r(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function i(t){var e,n=[],r=0,i=t.length,o=!1,a=0,s="";for(e=t.charCodeAt(r);r<i;)124===e&&(o?(s+=t.substring(a,r-1),a=r):(n.push(s+t.substring(a,r)),s="",a=r+1)),o=92===e,r++,e=t.charCodeAt(r);return n.push(s+t.substring(a)),n}e.exports=function(t,e,o,a){var s,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x,_,k;if(e+2>o)return!1;if(d=e+1,t.sCount[d]<t.blkIndent)return!1;if(!t.md.options.allowIndentation&&t.sCount[d]-t.blkIndent>=4)return!1;if((u=t.bMarks[d]+t.tShift[d])>=t.eMarks[d])return!1;if(124!==(_=t.src.charCodeAt(u++))&&45!==_&&58!==_)return!1;if(u>=t.eMarks[d])return!1;if(124!==(k=t.src.charCodeAt(u++))&&45!==k&&58!==k&&!n(k))return!1;if(45===_&&n(k))return!1;for(;u<t.eMarks[d];){if(124!==(s=t.src.charCodeAt(u))&&45!==s&&58!==s&&!n(s))return!1;u++}for(f=(l=r(t,e+1)).split("|"),m=[],c=0;c<f.length;c++){if(!(b=f[c].trim())){if(0===c||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?m.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(l=r(t,e).trim()).indexOf("|"))return!1;if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if((f=i(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(p=f.length)||p!==m.length)return!1;if(a)return!0;for(w=t.parentType,t.parentType="table",x=t.md.block.ruler.getRules("blockquote"),(g=t.push("table_open","table",1)).map=v=[e,0],(g=t.push("thead_open","thead",1)).map=[e,e+1],(g=t.push("tr_open","tr",1)).map=[e,e+1],c=0;c<f.length;c++)g=t.push("th_open","th",1),m[c]&&(g.attrs=[["style","text-align:"+m[c]]]),(g=t.push("inline","",0)).content=f[c].trim(),g.children=[],g=t.push("th_close","th",-1);for(g=t.push("tr_close","tr",-1),g=t.push("thead_close","thead",-1),d=e+2;d<o&&!(t.sCount[d]<t.blkIndent);d++){for(D=!1,c=0,h=x.length;c<h;c++)if(x[c](t,d,o,!0)){D=!0;break}if(D)break;if(!(l=r(t,d).trim()))break;if(!t.md.options.allowIndentation&&t.sCount[d]-t.blkIndent>=4)break;for((f=i(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===e+2&&((g=t.push("tbody_open","tbody",1)).map=y=[e+2,0]),(g=t.push("tr_open","tr",1)).map=[d,d+1],c=0;c<p;c++)g=t.push("td_open","td",1),m[c]&&(g.attrs=[["style","text-align:"+m[c]]]),(g=t.push("inline","",0)).content=f[c]?f[c].trim():"",g.children=[],g=t.push("td_close","td",-1);g=t.push("tr_close","tr",-1)}return y&&(g=t.push("tbody_close","tbody",-1),y[1]=d),g=t.push("table_close","table",-1),v[1]=d,t.parentType=w,t.line=d,!0}}}),U=c({"node_modules/markdown-it/lib/rules_block/code.js"(t,e){e.exports=function(t,e,n){if(t.md.options.allowIndentation)return!1;var r,i,o;if(t.sCount[e]-t.blkIndent<4)return!1;for(i=r=e+1;r<n;)if(t.isEmpty(r))r++;else{if(!(t.sCount[r]-t.blkIndent>=4))break;i=++r}return t.line=i,(o=t.push("code_block","code",0)).content=t.getLines(e,i,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}}}),Y=c({"node_modules/markdown-it/lib/rules_block/fence.js"(t,e){e.exports=function(t,e,n,r){var i,o,a,s,l,u,c,h=!1,d=t.bMarks[e]+t.tShift[e],f=t.eMarks[e];if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=t.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=t.skipChars(d,i))-l)<3)return!1;if(c=t.src.slice(l,d),a=t.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=e;!(++s>=n)&&!((d=l=t.bMarks[s]+t.tShift[s])<(f=t.eMarks[s])&&t.sCount[s]<t.blkIndent);)if(t.src.charCodeAt(d)===i&&(t.md.options.allowIndentation||!(t.sCount[s]-t.blkIndent>=4))&&!((d=t.skipChars(d,i))-l<o)&&!((d=t.skipSpaces(d))<f)){h=!0;break}return o=t.sCount[e],t.line=s+(h?1:0),(u=t.push("fence","code",0)).info=a,u.content=t.getLines(e+1,s,o,!0),u.markup=c,u.map=[e,t.line],!0}}}),V=c({"node_modules/markdown-it/lib/rules_block/blockquote.js"(t,e){var n=F().isSpace;e.exports=function(t,e,r,i){var o,a,s,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x,_,k,S=t.lineMax,C=t.bMarks[e]+t.tShift[e],F=t.eMarks[e];if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(C++))return!1;if(i)return!0;for(l=f=t.sCount[e]+1,32===t.src.charCodeAt(C)?(C++,l++,f++,o=!1,w=!0):9===t.src.charCodeAt(C)?(w=!0,(t.bsCount[e]+f)%4===3?(C++,l++,f++,o=!1):o=!0):w=!1,p=[t.bMarks[e]],t.bMarks[e]=C;C<F&&(a=t.src.charCodeAt(C),n(a));)9===a?f+=4-(f+t.bsCount[e]+(o?1:0))%4:f++,C++;for(g=[t.bsCount[e]],t.bsCount[e]=t.sCount[e]+1+(w?1:0),c=C>=F,v=[t.sCount[e]],t.sCount[e]=f-l,y=[t.tShift[e]],t.tShift[e]=C-t.bMarks[e],x=t.md.block.ruler.getRules("blockquote"),b=t.parentType,t.parentType="blockquote",d=e+1;d<r&&(k=t.sCount[d]<t.blkIndent,!((C=t.bMarks[d]+t.tShift[d])>=(F=t.eMarks[d])));d++)if(62!==t.src.charCodeAt(C++)||k){if(c)break;for(D=!1,s=0,u=x.length;s<u;s++)if(x[s](t,d,r,!0)){D=!0;break}if(D){t.lineMax=d,0!==t.blkIndent&&(p.push(t.bMarks[d]),g.push(t.bsCount[d]),y.push(t.tShift[d]),v.push(t.sCount[d]),t.sCount[d]-=t.blkIndent);break}p.push(t.bMarks[d]),g.push(t.bsCount[d]),y.push(t.tShift[d]),v.push(t.sCount[d]),t.sCount[d]=-1}else{for(l=f=t.sCount[d]+1,32===t.src.charCodeAt(C)?(C++,l++,f++,o=!1,w=!0):9===t.src.charCodeAt(C)?(w=!0,(t.bsCount[d]+f)%4===3?(C++,l++,f++,o=!1):o=!0):w=!1,p.push(t.bMarks[d]),t.bMarks[d]=C;C<F&&(a=t.src.charCodeAt(C),n(a));)9===a?f+=4-(f+t.bsCount[d]+(o?1:0))%4:f++,C++;c=C>=F,g.push(t.bsCount[d]),t.bsCount[d]=t.sCount[d]+1+(w?1:0),v.push(t.sCount[d]),t.sCount[d]=f-l,y.push(t.tShift[d]),t.tShift[d]=C-t.bMarks[d]}for(m=t.blkIndent,t.blkIndent=0,(_=t.push("blockquote_open","blockquote",1)).markup=">",_.map=h=[e,0],t.md.block.tokenize(t,e,d),(_=t.push("blockquote_close","blockquote",-1)).markup=">",t.lineMax=S,t.parentType=b,h[1]=t.line,s=0;s<y.length;s++)t.bMarks[s+e]=p[s],t.tShift[s+e]=y[s],t.sCount[s+e]=v[s],t.bsCount[s+e]=g[s];return t.blkIndent=m,!0}}}),$=c({"node_modules/markdown-it/lib/rules_block/hr.js"(t,e){var n=F().isSpace;e.exports=function(t,e,r,i){var o,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(42!==(o=t.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(a=1;u<c;){if((s=t.src.charCodeAt(u++))!==o&&!n(s))return!1;s===o&&a++}return!(a<3)&&(i||(t.line=e+1,(l=t.push("hr","hr",0)).map=[e,t.line],l.markup=Array(a+1).join(String.fromCharCode(o))),!0)}}}),G=c({"node_modules/markdown-it/lib/rules_block/list.js"(t,e){var n=F().isSpace;function r(t,e){var r,i,o,a;return i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],42!==(r=t.src.charCodeAt(i++))&&45!==r&&43!==r||i<o&&(a=t.src.charCodeAt(i),!n(a))?-1:i}function i(t,e){var r,i=t.bMarks[e]+t.tShift[e],o=i,a=t.eMarks[e];if(o+1>=a)return-1;if((r=t.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=a)return-1;if(!((r=t.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o<a&&(r=t.src.charCodeAt(o),!n(r))?-1:o}e.exports=function(t,e,n,o){var a,s,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x,_,k,S,C,F,A,E,L,N,P,M,O=!1,I=!0;if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.allowIndentation&&t.listIndent>=0&&t.sCount[e]-t.listIndent>=4&&t.sCount[e]<t.blkIndent)return!1;if(o&&"paragraph"===t.parentType&&t.sCount[e]>=t.blkIndent&&(O=!0),(A=i(t,e))>=0){if(d=!0,L=t.bMarks[e]+t.tShift[e],v=Number(t.src.slice(L,A-1)),O&&1!==v)return!1}else{if(!((A=r(t,e))>=0))return!1;d=!1}if(O&&t.skipSpaces(A)>=t.eMarks[e])return!1;if(b=t.src.charCodeAt(A-1),o)return!0;for(m=t.tokens.length,d?(M=t.push("ordered_list_open","ol",1),1!==v&&(M.attrs=[["start",v]])):M=t.push("bullet_list_open","ul",1),M.map=g=[e,0],M.markup=String.fromCharCode(b),w=e,E=!1,P=t.md.block.ruler.getRules("list"),_=t.parentType,t.parentType="list";w<n;){for(F=A,y=t.eMarks[w],h=D=t.sCount[w]+A-(t.bMarks[e]+t.tShift[e]);F<y;){if(9===(a=t.src.charCodeAt(F)))D+=4-(D+t.bsCount[w])%4;else{if(32!==a)break;D++}F++}if(c=(s=F)>=y?1:D-h,!t.md.options.allowIndentation&&c>4&&(c=1),u=h+c,(M=t.push("list_item_open","li",1)).markup=String.fromCharCode(b),M.map=f=[e,0],d&&(M.info=t.src.slice(L,A-1)),C=t.tight,S=t.tShift[e],k=t.sCount[e],x=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=u,t.tight=!0,t.tShift[e]=s-t.bMarks[e],t.sCount[e]=D,s>=y&&t.isEmpty(e+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,e,n,!0),t.tight&&!E||(I=!1),E=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=x,t.tShift[e]=S,t.sCount[e]=k,t.tight=C,(M=t.push("list_item_close","li",-1)).markup=String.fromCharCode(b),w=e=t.line,f[1]=w,s=t.bMarks[e],w>=n)break;if(t.sCount[w]<t.blkIndent)break;if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)break;for(N=!1,l=0,p=P.length;l<p;l++)if(P[l](t,w,n,!0)){N=!0;break}if(N)break;if(d){if((A=i(t,w))<0)break;L=t.bMarks[w]+t.tShift[w]}else if((A=r(t,w))<0)break;if(b!==t.src.charCodeAt(A-1))break}return(M=d?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(b),g[1]=w,t.line=w,t.parentType=_,I&&function(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}(t,m),!0}}}),K=c({"node_modules/markdown-it/lib/rules_block/reference.js"(t,e){var n=F().normalizeReference,r=F().isSpace;e.exports=function(t,e,i,o){var a,s,l,u,c,h,d,f,p,g,m,b,v,y,w,D,x=0,_=t.bMarks[e]+t.tShift[e],k=t.eMarks[e],S=e+1;if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(_))return!1;for(;++_<k;)if(93===t.src.charCodeAt(_)&&92!==t.src.charCodeAt(_-1)){if(_+1===k)return!1;if(58!==t.src.charCodeAt(_+1))return!1;break}for(u=t.lineMax,w=t.md.block.ruler.getRules("reference"),g=t.parentType,t.parentType="reference";S<u&&!t.isEmpty(S);S++)if((t.md.options.allowIndentation||!(t.sCount[S]-t.blkIndent>3))&&!(t.sCount[S]<0)){for(y=!1,h=0,d=w.length;h<d;h++)if(w[h](t,S,u,!0)){y=!0;break}if(y)break}for(k=(v=t.getLines(e,S,t.blkIndent,!1).trim()).length,_=1;_<k;_++){if(91===(a=v.charCodeAt(_)))return!1;if(93===a){p=_;break}(10===a||92===a&&++_<k&&10===v.charCodeAt(_))&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(_=p+2;_<k;_++)if(10===(a=v.charCodeAt(_)))x++;else if(!r(a))break;if(!(m=t.md.helpers.parseLinkDestination(v,_,k)).ok)return!1;if(c=t.md.normalizeLink(m.str),!t.md.validateLink(c))return!1;for(s=_=m.pos,l=x+=m.lines,b=_;_<k;_++)if(10===(a=v.charCodeAt(_)))x++;else if(!r(a))break;for(m=t.md.helpers.parseLinkTitle(v,_,k),_<k&&b!==_&&m.ok?(D=m.str,_=m.pos,x+=m.lines):(D="",_=s,x=l);_<k&&(a=v.charCodeAt(_),r(a));)_++;if(_<k&&10!==v.charCodeAt(_)&&D)for(D="",_=s,x=l;_<k&&(a=v.charCodeAt(_),r(a));)_++;return!(_<k&&10!==v.charCodeAt(_))&&(!!(f=n(v.slice(1,p)))&&(o||("undefined"===typeof t.env.references&&(t.env.references={}),"undefined"===typeof t.env.references[f]&&(t.env.references[f]={title:D,href:c}),t.parentType=g,t.line=e+x+1),!0))}}}),J=c({"node_modules/markdown-it/lib/common/html_blocks.js"(t,e){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}}),X=c({"node_modules/markdown-it/lib/common/html_re.js"(t,e){var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+n+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+n+"|"+r+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=o}}),Q=c({"node_modules/markdown-it/lib/rules_block/html_block.js"(t,e){var n=J(),r=X().HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(t,e,n,r){var o,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(u))return!1;for(l=t.src.slice(u,c),o=0;o<i.length&&!i[o][0].test(l);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=e+1,!i[o][1].test(l))for(;a<n&&!(t.sCount[a]<t.blkIndent);a++)if(u=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],l=t.src.slice(u,c),i[o][1].test(l)){0!==l.length&&a++;break}return t.line=a,(s=t.push("html_block","",0)).map=[e,a],s.content=t.getLines(e,a,t.blkIndent,!0),!0}}}),Z=c({"node_modules/markdown-it/lib/rules_block/heading.js"(t,e){var n=F().isSpace;e.exports=function(t,e,r,i){var o,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;if(35!==(o=t.src.charCodeAt(u))||u>=c)return!1;for(a=1,o=t.src.charCodeAt(++u);35===o&&u<c&&a<=6;)a++,o=t.src.charCodeAt(++u);return!(a>6||u<c&&!n(o))&&(i||(c=t.skipSpacesBack(c,u),(s=t.skipCharsBack(c,35,u))>u&&n(t.src.charCodeAt(s-1))&&(c=s),t.line=e+1,(l=t.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[e,t.line],(l=t.push("inline","",0)).content=t.src.slice(u,c).trim(),l.map=[e,t.line],l.children=[],(l=t.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}}}),tt=c({"node_modules/markdown-it/lib/rules_block/lheading.js"(t,e){e.exports=function(t,e,n){var r,i,o,a,s,l,u,c,h,d,f=e+1,p=t.md.block.ruler.getRules("paragraph");if(!t.md.options.allowIndentation&&t.sCount[e]-t.blkIndent>=4)return!1;for(d=t.parentType,t.parentType="paragraph";f<n&&!t.isEmpty(f);f++)if(t.md.options.allowIndentation||!(t.sCount[f]-t.blkIndent>3)){if(t.sCount[f]>=t.blkIndent&&(l=t.bMarks[f]+t.tShift[f])<(u=t.eMarks[f])&&(45===(h=t.src.charCodeAt(l))||61===h)&&(l=t.skipChars(l,h),(l=t.skipSpaces(l))>=u)){c=61===h?1:2;break}if(!(t.sCount[f]<0)){for(i=!1,o=0,a=p.length;o<a;o++)if(p[o](t,f,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=t.getLines(e,f,t.blkIndent,!1).trim(),t.line=f+1,(s=t.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(h),s.map=[e,t.line],(s=t.push("inline","",0)).content=r,s.map=[e,t.line-1],s.children=[],(s=t.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(h),t.parentType=d,!0)}}}),et=c({"node_modules/markdown-it/lib/rules_block/paragraph.js"(t,e){e.exports=function(t,e){var n,r,i,o,a,s,l=e+1,u=t.md.block.ruler.getRules("paragraph"),c=t.lineMax;for(s=t.parentType,t.parentType="paragraph";l<c&&!t.isEmpty(l);l++)if((t.md.options.allowIndentation||!(t.sCount[l]-t.blkIndent>3))&&!(t.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](t,l,c,!0)){r=!0;break}if(r)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,(a=t.push("paragraph_open","p",1)).map=[e,t.line],(a=t.push("inline","",0)).content=n,a.map=[e,t.line],a.children=[],a=t.push("paragraph_close","p",-1),t.parentType=s,!0}}}),nt=c({"node_modules/markdown-it/lib/rules_block/state_block.js"(t,e){var n=z(),r=F().isSpace;function i(t,e,n,i){var o,a,s,l,u,c,h,d;for(this.src=t,this.md=e,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=c=h=0,u=(a=this.src).length;l<u;l++){if(o=a.charCodeAt(l),!d){if(r(o)){c++,9===o?h+=4-h%4:h++;continue}d=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(h),this.bsCount.push(0),d=!1,c=0,h=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(t,e,r){var i=new n(t,e,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},i.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},i.prototype.skipSpaces=function(t){for(var e,n=this.src.length;t<n&&(e=this.src.charCodeAt(t),r(e));t++);return t},i.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!r(this.src.charCodeAt(--t)))return t+1;return t},i.prototype.skipChars=function(t,e){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===e;t++);return t},i.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;for(;t>n;)if(e!==this.src.charCodeAt(--t))return t+1;return t},i.prototype.getLines=function(t,e,n,i){var o,a,s,l,u,c,h,d=t;if(t>=e)return"";for(c=new Array(e-t),o=0;d<e;d++,o++){for(a=0,h=l=this.bMarks[d],u=d+1<e||i?this.eMarks[d]+1:this.eMarks[d];l<u&&a<n;){if(s=this.src.charCodeAt(l),r(s))9===s?a+=4-(a+this.bsCount[d])%4:a++;else{if(!(l-h<this.tShift[d]))break;a++}l++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},i.prototype.Token=n,e.exports=i}}),rt=c({"node_modules/markdown-it/lib/parser_block.js"(t,e){var n=M(),r=[["table",H(),["paragraph","reference"]],["code",U()],["fence",Y(),["paragraph","reference","blockquote","list"]],["blockquote",V(),["paragraph","reference","blockquote","list"]],["hr",$(),["paragraph","reference","blockquote","list"]],["list",G(),["paragraph","reference","blockquote"]],["reference",K()],["html_block",Q(),["paragraph","reference","blockquote"]],["heading",Z(),["paragraph","reference","blockquote"]],["lheading",tt()],["paragraph",et()]];function i(){this.ruler=new n;for(var t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1],{alt:(r[t][2]||[]).slice()})}i.prototype.tokenize=function(t,e,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=e,s=!1,l=t.md.options.maxNesting;a<n&&(t.line=a=t.skipEmptyLines(a),!(a>=n))&&!(t.sCount[a]<t.blkIndent);){if(t.level>=l){t.line=n;break}for(r=0;r<o&&!i[r](t,a,n,!1);r++);t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(a=t.line)<n&&t.isEmpty(a)&&(s=!0,a++,t.line=a)}},i.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},i.prototype.State=nt(),e.exports=i}}),it=c({"node_modules/markdown-it/lib/rules_inline/text.js"(t,e){function n(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(t,e){for(var r=t.pos;r<t.posMax&&!n(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}}}),ot=c({"node_modules/markdown-it/lib/rules_inline/newline.js"(t,e){var n=F().isSpace;e.exports=function(t,e){var r,i,o,a=t.pos;if(10!==t.src.charCodeAt(a))return!1;if(r=t.pending.length-1,i=t.posMax,!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){for(o=r-1;o>=1&&32===t.pending.charCodeAt(o-1);)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<i&&n(t.src.charCodeAt(a));)a++;return t.pos=a,!0}}}),at=c({"node_modules/markdown-it/lib/rules_inline/escape.js"(t,e){var n,r=F().isSpace,i=[];for(n=0;n<256;n++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){i[t.charCodeAt(0)]=1})),e.exports=function(t,e){var n,o=t.pos,a=t.posMax;if(92!==t.src.charCodeAt(o))return!1;if(++o<a){if((n=t.src.charCodeAt(o))<256&&0!==i[n])return e||(t.pending+=t.src[o]),t.pos+=2,!0;if(10===n){for(e||t.push("hardbreak","br",0),o++;o<a&&(n=t.src.charCodeAt(o),r(n));)o++;return t.pos=o,!0}}return e||(t.pending+="\\"),t.pos++,!0}}}),st=c({"node_modules/markdown-it/lib/rules_inline/backticks.js"(t,e){e.exports=function(t,e){var n,r,i,o,a,s,l,u,c=t.pos;if(96!==t.src.charCodeAt(c))return!1;for(n=c,c++,r=t.posMax;c<r&&96===t.src.charCodeAt(c);)c++;if(l=(i=t.src.slice(n,c)).length,t.backticksScanned&&(t.backticks[l]||0)<=n)return e||(t.pending+=i),t.pos+=l,!0;for(a=s=c;-1!==(a=t.src.indexOf("`",s));){for(s=a+1;s<r&&96===t.src.charCodeAt(s);)s++;if((u=s-a)===l)return e||((o=t.push("code_inline","code",0)).markup=i,o.content=t.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=s,!0;t.backticks[u]=a}return t.backticksScanned=!0,e||(t.pending+=i),t.pos+=l,!0}}}),lt=c({"node_modules/markdown-it/lib/rules_inline/strikethrough.js"(t,e){function n(t,e){var n,r,i,o,a,s=[],l=e.length;for(n=0;n<l;n++)126===(i=e[n]).marker&&-1!==i.end&&(o=e[i.end],(a=t.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=t.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===t.tokens[o.token-1].type&&"~"===t.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<t.tokens.length&&"s_close"===t.tokens[r].type;)r++;n!==--r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}e.exports.tokenize=function(t,e){var n,r,i,o,a=t.pos,s=t.src.charCodeAt(a);if(e)return!1;if(126!==s)return!1;if(i=(r=t.scanDelims(t.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(t.push("text","",0).content=o,i--),n=0;n<i;n+=2)t.push("text","",0).content=o+o,t.delimiters.push({marker:s,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},e.exports.postProcess=function(t){var e,r=t.tokens_meta,i=t.tokens_meta.length;for(n(t,t.delimiters),e=0;e<i;e++)r[e]&&r[e].delimiters&&n(t,r[e].delimiters)}}}),ut=c({"node_modules/markdown-it/lib/rules_inline/emphasis.js"(t,e){function n(t,e){var n,r,i,o,a,s;for(n=e.length-1;n>=0;n--)95!==(r=e[n]).marker&&42!==r.marker||-1!==r.end&&(i=e[r.end],s=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=t.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=t.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}e.exports.tokenize=function(t,e){var n,r,i=t.pos,o=t.src.charCodeAt(i);if(e)return!1;if(95!==o&&42!==o)return!1;for(r=t.scanDelims(t.pos,42===o),n=0;n<r.length;n++)t.push("text","",0).content=String.fromCharCode(o),t.delimiters.push({marker:o,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},e.exports.postProcess=function(t){var e,r=t.tokens_meta,i=t.tokens_meta.length;for(n(t,t.delimiters),e=0;e<i;e++)r[e]&&r[e].delimiters&&n(t,r[e].delimiters)}}}),ct=c({"node_modules/markdown-it/lib/rules_inline/link.js"(t,e){var n=F().normalizeReference,r=F().isSpace;e.exports=function(t,e){var i,o,a,s,l,u,c,h,d="",f="",p=t.pos,g=t.posMax,m=t.pos,b=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(l=t.pos+1,(s=t.md.helpers.parseLinkLabel(t,t.pos,!0))<0)return!1;if((u=s+1)<g&&40===t.src.charCodeAt(u)){for(b=!1,u++;u<g&&(o=t.src.charCodeAt(u),r(o)||10===o);u++);if(u>=g)return!1;if(m=u,(c=t.md.helpers.parseLinkDestination(t.src,u,t.posMax)).ok){for(d=t.md.normalizeLink(c.str),t.md.validateLink(d)?u=c.pos:d="",m=u;u<g&&(o=t.src.charCodeAt(u),r(o)||10===o);u++);if(c=t.md.helpers.parseLinkTitle(t.src,u,t.posMax),u<g&&m!==u&&c.ok)for(f=c.str,u=c.pos;u<g&&(o=t.src.charCodeAt(u),r(o)||10===o);u++);}(u>=g||41!==t.src.charCodeAt(u))&&(b=!0),u++}if(b){if("undefined"===typeof t.env.references)return!1;if(u<g&&91===t.src.charCodeAt(u)?(m=u+1,(u=t.md.helpers.parseLinkLabel(t,u))>=0?a=t.src.slice(m,u++):u=s+1):u=s+1,a||(a=t.src.slice(l,s)),!(h=t.env.references[n(a)]))return t.pos=p,!1;d=h.href,f=h.title}return e||(t.pos=l,t.posMax=s,t.push("link_open","a",1).attrs=i=[["href",d]],f&&i.push(["title",f]),t.md.inline.tokenize(t),t.push("link_close","a",-1)),t.pos=u,t.posMax=g,!0}}}),ht=c({"node_modules/markdown-it/lib/rules_inline/image.js"(t,e){var n=F().normalizeReference,r=F().isSpace;e.exports=function(t,e){var i,o,a,s,l,u,c,h,d,f,p,g,m,b="",v=t.pos,y=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(u=t.pos+2,(l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1))<0)return!1;if((c=l+1)<y&&40===t.src.charCodeAt(c)){for(c++;c<y&&(o=t.src.charCodeAt(c),r(o)||10===o);c++);if(c>=y)return!1;for(m=c,(d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax)).ok&&(b=t.md.normalizeLink(d.str),t.md.validateLink(b)?c=d.pos:b=""),m=c;c<y&&(o=t.src.charCodeAt(c),r(o)||10===o);c++);if(d=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<y&&m!==c&&d.ok)for(f=d.str,c=d.pos;c<y&&(o=t.src.charCodeAt(c),r(o)||10===o);c++);else f="";if(c>=y||41!==t.src.charCodeAt(c))return t.pos=v,!1;c++}else{if("undefined"===typeof t.env.references)return!1;if(c<y&&91===t.src.charCodeAt(c)?(m=c+1,(c=t.md.helpers.parseLinkLabel(t,c))>=0?s=t.src.slice(m,c++):c=l+1):c=l+1,s||(s=t.src.slice(u,l)),!(h=t.env.references[n(s)]))return t.pos=v,!1;b=h.href,f=h.title}return e||(a=t.src.slice(u,l),t.md.inline.parse(a,t.md,t.env,g=[]),(p=t.push("image","img",0)).attrs=i=[["src",b],["alt",""]],p.children=g,p.content=a,f&&i.push(["title",f])),t.pos=c,t.posMax=y,!0}}}),dt=c({"node_modules/markdown-it/lib/rules_inline/autolink.js"(t,e){var n=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,r=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(t,e){var i,o,a,s,l,u,c=t.pos;if(60!==t.src.charCodeAt(c))return!1;for(l=t.pos,u=t.posMax;;){if(++c>=u)return!1;if(60===(s=t.src.charCodeAt(c)))return!1;if(62===s)break}return i=t.src.slice(l+1,c),r.test(i)?(o=t.md.normalizeLink(i),!!t.md.validateLink(o)&&(e||((a=t.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(i),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=i.length+2,!0)):!!n.test(i)&&(o=t.md.normalizeLink("mailto:"+i),!!t.md.validateLink(o)&&(e||((a=t.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(i),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=i.length+2,!0))}}}),ft=c({"node_modules/markdown-it/lib/rules_inline/html_inline.js"(t,e){var n=X().HTML_TAG_RE;e.exports=function(t,e){var r,i,o,a=t.pos;return!!t.md.options.html&&(o=t.posMax,!(60!==t.src.charCodeAt(a)||a+2>=o)&&(!(33!==(r=t.src.charCodeAt(a+1))&&63!==r&&47!==r&&!function(t){var e=32|t;return e>=97&&e<=122}(r))&&(!!(i=t.src.slice(a).match(n))&&(e||(t.push("html_inline","",0).content=t.src.slice(a,a+i[0].length)),t.pos+=i[0].length,!0))))}}}),pt=c({"node_modules/markdown-it/lib/rules_inline/entity.js"(t,e){var n=g(),r=F().has,i=F().isValidEntityCode,o=F().fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(t,e){var l,u,c=t.pos,h=t.posMax;if(38!==t.src.charCodeAt(c))return!1;if(c+1<h)if(35===t.src.charCodeAt(c+1)){if(u=t.src.slice(c).match(a))return e||(l="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),t.pending+=i(l)?o(l):o(65533)),t.pos+=u[0].length,!0}else if((u=t.src.slice(c).match(s))&&r(n,u[1]))return e||(t.pending+=n[u[1]]),t.pos+=u[0].length,!0;return e||(t.pending+="&"),t.pos++,!0}}}),gt=c({"node_modules/markdown-it/lib/rules_inline/balance_pairs.js"(t,e){function n(t,e){var n,r,i,o,a,s,l,u,c={},h=e.length;if(h){var d=0,f=-2,p=[];for(n=0;n<h;n++)if(i=e[n],p.push(0),e[d].marker===i.marker&&f===i.token-1||(d=n),f=i.token,i.length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],s=r=d-p[d]-1;r>a;r-=p[r]+1)if((o=e[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(l=!0)),!l)){u=r>0&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+u,p[r]=u,i.open=!1,o.end=n,o.close=!1,s=-1,f=-2;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(t){var e,r=t.tokens_meta,i=t.tokens_meta.length;for(n(0,t.delimiters),e=0;e<i;e++)r[e]&&r[e].delimiters&&n(0,r[e].delimiters)}}}),mt=c({"node_modules/markdown-it/lib/rules_inline/text_collapse.js"(t,e){e.exports=function(t){var e,n,r=0,i=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)i[e].nesting<0&&r--,i[e].level=r,i[e].nesting>0&&r++,"text"===i[e].type&&e+1<o&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}}}),bt=c({"node_modules/markdown-it/lib/rules_inline/state_inline.js"(t,e){var n=z(),r=F().isWhiteSpace,i=F().isPunctChar,o=F().isMdAsciiPunct;function a(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}a.prototype.pushPending=function(){var t=new n("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},a.prototype.push=function(t,e,r){this.pending&&this.pushPending();var i=new n(t,e,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(t,e){var n,a,s,l,u,c,h,d,f,p=t,g=!0,m=!0,b=this.posMax,v=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;p<b&&this.src.charCodeAt(p)===v;)p++;return s=p-t,a=p<b?this.src.charCodeAt(p):32,h=o(n)||i(String.fromCharCode(n)),f=o(a)||i(String.fromCharCode(a)),c=r(n),(d=r(a))?g=!1:f&&(c||h||(g=!1)),c?m=!1:h&&(d||f||(m=!1)),e?(l=g,u=m):(l=g&&(!m||h),u=m&&(!g||f)),{can_open:l,can_close:u,length:s}},a.prototype.Token=n,e.exports=a}}),vt=c({"node_modules/markdown-it/lib/parser_inline.js"(t,e){var n=M(),r=[["text",it()],["newline",ot()],["escape",at()],["backticks",st()],["strikethrough",lt().tokenize],["emphasis",ut().tokenize],["link",ct()],["image",ht()],["autolink",dt()],["html_inline",ft()],["entity",pt()]],i=[["balance_pairs",gt()],["strikethrough",lt().postProcess],["emphasis",ut().postProcess],["text_collapse",mt()]];function o(){var t;for(this.ruler=new n,t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1]);for(this.ruler2=new n,t=0;t<i.length;t++)this.ruler2.push(i[t][0],i[t][1])}o.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,s=t.cache;if("undefined"===typeof s[r]){if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,s[r]=t.pos}else t.pos=s[r]},o.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&!(e=r[n](t,!1));n++);if(e){if(t.pos>=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},o.prototype.parse=function(t,e,n,r){var i,o,a,s=new this.State(t,e,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},o.prototype.State=bt(),e.exports=o}}),yt=c({"node_modules/linkify-it/lib/re.js"(t,e){e.exports=function(t){var e={};e.src_Any=x().source,e.src_Cc=_().source,e.src_Z=S().source,e.src_P=m().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><\uff5c]";return e.src_pseudo_letter="(?:(?![><\uff5c]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><\uff5c]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}}}),wt=c({"node_modules/linkify-it/index.js"(t,e){function n(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}function r(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===r(t)}function o(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var s={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function u(t){var e=t.re=yt()(t.__opts__),n=t.__tlds__.slice();function a(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(a(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(a(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(a(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(a(e.tpl_host_fuzzy_test),"i");var s=[];function l(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var n=t.__schemas__[e];if(null!==n){var o={validate:null,link:null};if(t.__compiled__[e]=o,"[object Object]"===r(n))return!function(t){return"[object RegExp]"===r(t)}(n.validate)?i(n.validate)?o.validate=n.validate:l(e,n):o.validate=function(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}(n.validate),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?l(e,n):o.normalize=function(t,e){e.normalize(t)});!function(t){return"[object String]"===r(t)}(n)?l(e,n):s.push(e)}})),s.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var u=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(o).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+e.src_ZPCc+"))("+u+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+e.src_ZPCc+"))("+u+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function c(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function h(t,e){var n=new c(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function d(t,e){if(!(this instanceof d))return new d(t,e);var r;e||(r=t,Object.keys(r||{}).reduce((function(t,e){return t||a.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=n({},a,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},s,t),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this},d.prototype.set=function(t){return this.__opts__=n(this.__opts__,t),this},d.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,i,o,a,s,l;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(i=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&null!==(r=t.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(t){return this.re.pretest.test(t)},d.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},d.prototype.match=function(t){var e=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(h(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(h(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},d.prototype.onCompile=function(){},e.exports=d}}),Dt=c({"node_modules/punycode/punycode.js"(t,e){var n=2147483647,r=36,i=/^xn--/,o=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function c(t){throw new RangeError(s[t])}function h(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]);const i=function(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}((t=t.replace(a,".")).split("."),e).join(".");return r+i}function d(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=t.charCodeAt(n++);56320==(64512&r)?e.push(((1023&i)<<10)+(1023&r)+65536):(e.push(i),n--)}else e.push(i)}return e}var f=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},p=function(t,e,n){let i=0;for(t=n?l(t/700):t>>1,t+=l(t/e);t>455;i+=r)t=l(t/35);return l(i+36*t/(t+38))},g=function(t){const e=[],i=t.length;let o=0,a=128,s=72,u=t.lastIndexOf("-");u<0&&(u=0);for(let n=0;n<u;++n)t.charCodeAt(n)>=128&&c("not-basic"),e.push(t.charCodeAt(n));for(let d=u>0?u+1:0;d<i;){let u=o;for(let e=1,a=r;;a+=r){d>=i&&c("invalid-input");const u=(h=t.charCodeAt(d++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:r;(u>=r||u>l((n-o)/e))&&c("overflow"),o+=u*e;const f=a<=s?1:a>=s+26?26:a-s;if(u<f)break;const p=r-f;e>l(n/p)&&c("overflow"),e*=p}const f=e.length+1;s=p(o-u,f,0==u),l(o/f)>n-a&&c("overflow"),a+=l(o/f),o%=f,e.splice(o++,0,a)}var h;return String.fromCodePoint(...e)},m=function(t){const e=[];let i=(t=d(t)).length,o=128,a=0,s=72;for(const n of t)n<128&&e.push(u(n));let h=e.length,g=h;for(h&&e.push("-");g<i;){let i=n;for(const e of t)e>=o&&e<i&&(i=e);const d=g+1;i-o>l((n-a)/d)&&c("overflow"),a+=(i-o)*d,o=i;for(const m of t)if(m<o&&++a>n&&c("overflow"),m==o){let t=a;for(let n=r;;n+=r){const i=n<=s?1:n>=s+26?26:n-s;if(t<i)break;const o=t-i,a=r-i;e.push(u(f(i+o%a,0))),t=l(o/a)}e.push(u(f(t,0))),s=p(a,d,g==h),a=0,++g}++a,++o}return e.join("")},b={version:"2.1.0",ucs2:{decode:d,encode:t=>String.fromCodePoint(...t)},decode:g,encode:m,toASCII:function(t){return h(t,(function(t){return o.test(t)?"xn--"+m(t):t}))},toUnicode:function(t){return h(t,(function(t){return i.test(t)?g(t.slice(4).toLowerCase()):t}))}};e.exports=b}}),xt=c({"node_modules/markdown-it/lib/presets/default.js"(t,e){e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}}}),_t=c({"node_modules/markdown-it/lib/presets/zero.js"(t,e){e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}}}),kt=c({"node_modules/markdown-it/lib/presets/commonmark.js"(t,e){e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}}}),St=c({"node_modules/markdown-it/lib/index.js"(t,e){var n=F(),r=N(),i=P(),o=W(),a=rt(),s=vt(),l=wt(),u=D(),c=Dt(),h={default:xt(),zero:_t(),commonmark:kt()},d=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(t){var e=t.trim().toLowerCase();return!d.test(e)||!!f.test(e)}var g=["http:","https:","mailto:"];function m(t){var e=u.parse(t,!0);if(e.hostname&&(!e.protocol||g.indexOf(e.protocol)>=0))try{e.hostname=c.toASCII(e.hostname)}catch(n){}return u.encode(u.format(e))}function b(t){var e=u.parse(t,!0);if(e.hostname&&(!e.protocol||g.indexOf(e.protocol)>=0))try{e.hostname=c.toUnicode(e.hostname)}catch(n){}return u.decode(u.format(e),u.decode.defaultChars+"%")}function v(t,e){if(!(this instanceof v))return new v(t,e);e||n.isString(t)||(e=t||{},t="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=p,this.normalizeLink=m,this.normalizeLinkText=b,this.utils=n,this.helpers=n.assign({},r),this.options={},this.configure(t),e&&this.set(e)}v.prototype.set=function(t){return n.assign(this.options,t),this},v.prototype.configure=function(t){var e,r=this;if(n.isString(t)&&!(t=h[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&r.set(t.options),t.components&&Object.keys(t.components).forEach((function(e){t.components[e].rules&&r[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&r[e].ruler2.enableOnly(t.components[e].rules2)})),this},v.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},v.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},v.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},v.prototype.parse=function(t,e){if("string"!==typeof t)throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},v.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},v.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},v.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},e.exports=v}}),Ct=c({"node_modules/markdown-it/index.js"(t,e){e.exports=St()}}),Ft={};function At(t){return!!t?.$$mdtype}function Et(t){return!("Function"!==t?.$$mdtype)}function Lt(t){return!("Variable"!==t?.$$mdtype)}function*Nt(t){if(null!=t&&"object"===typeof t){if(Array.isArray(t))for(const e of t)yield*Nt(e);if(At(t)&&(yield t),Object.getPrototypeOf(t)===Object.prototype)for(const e of Object.values(t))yield*Nt(e)}}function Pt(t,e={}){if(null==t||"object"!==typeof t)return t;if(Array.isArray(t))return t.map((t=>Pt(t,e)));if(At(t)&&t?.resolve instanceof Function)return t.resolve(e);if(Object.getPrototypeOf(t)!==Object.prototype)return t;const n={};for(const[r,i]of Object.entries(t))n[r]=Pt(i,e);return n}h(Ft,{getAstValues:()=>Nt,isAst:()=>At,isFunction:()=>Et,isVariable:()=>Lt,resolve:()=>Pt});var Mt=class{constructor(t="div",e={},n=[]){this.$$mdtype="Tag",this.name=t,this.attributes=e,this.children=n}};Mt.isTag=t=>!("Tag"!==t?.$$mdtype);var Ot,It,Tt=d(f()),Rt=class{constructor(t=[]){this.$$mdtype="Variable",this.path=t}resolve({variables:t}={}){return t instanceof Function?t(this.path):this.path.reduce(((t={},e)=>t[e]),t)}},jt=class{constructor(t,e){this.$$mdtype="Function",this.name=t,this.parameters=e}resolve(t={}){const e=t?.functions?.[this.name];if(!e)return null;const n=Pt(this.parameters,t);return e.transform?.(n,t)}};(It=Ot||(Ot={}))[It.normal=0]="normal",It[It.string=1]="string",It[It.escape=2]="escape";var Bt="{%",zt="%}",qt=/^[a-zA-Z0-9_-]+$/;function Wt(t){return"string"===typeof t&&qt.test(t)}function Ht(t){return t&&"object"===typeof t&&"function"===typeof t.then}function Ut(t,e=0){let n=0;for(let r=e;r<t.length;r++){const e=t[r];switch(n){case 1:switch(e){case'"':n=0;break;case"\\":n=2}break;case 2:n=1;break;case 0:if('"'===e)n=1;else if(t.startsWith(zt,r))return r}}return null}function Yt(t,e,n){try{return(0,Tt.parse)(t,{Variable:Rt,Function:jt})}catch(r){if(!(r instanceof Tt.SyntaxError))throw r;const{message:t,location:{start:i,end:o}}=r;return{type:"error",meta:{error:{message:t,location:{start:{line:e,character:i.offset+n},end:{line:e+1,character:o.offset+n}}}}}}}function Vt(t,e=0){let n=e+1;const r=[];let i=0;for(let o=0;o<t.length;o++){if("\n"===t[o]){n++;continue}if(!t.startsWith(Bt,o))continue;const e=Ut(t,o);if(null==e){o+=2;continue}const a=t.slice(o,e+2),s=t.slice(o+2,e),l=t.lastIndexOf("\n",o),u=t.indexOf("\n",e),c=t.slice(l,u),h=Yt(s.trim(),n,o-l),d=c.trim()===a?l:o,f=t.slice(i,d);r.push({type:"text",start:i,end:o-1,content:f}),r.push({map:[n,n+1],position:{start:o-l,end:o-l+a.length},start:o,end:o+a.length-1,info:a,...h}),i=e+2,o=i-1}return r.push({type:"text",start:i,end:t.length-1,content:t.slice(i)}),r}var $t={class:{type:class{validate(t,e,n){return"string"===typeof t||"object"===typeof t?[]:[{id:"attribute-type-invalid",level:"error",message:`Attribute '${n}' must be type 'string | object'`}]}transform(t){if(!t||"string"===typeof t)return t;const e=[];for(const[n,r]of Object.entries(t??{}))r&&e.push(n);return e.join(" ")}},render:!0},id:{type:class{validate(t){return"string"===typeof t&&t.match(/^[a-zA-Z]/)?[]:[{id:"attribute-value-invalid",level:"error",message:"The 'id' attribute must start with a letter"}]}},render:!0}},Gt={findSchema:(t,{nodes:e={},tags:n={}}={})=>t.tag?n[t.tag]:e[t.type],attributes(t,e={}){const n=this.findSchema(t,e)??{},r={},i={...$t,...n.attributes};for(const[o,a]of Object.entries(i)){if(0==a.render)continue;const n="string"===typeof a.render?a.render:o;let i=t.attributes[o];if("function"===typeof a.type){const t=new a.type;t.transform&&(i=t.transform(i,e))}i=void 0===i?a.default:i,void 0!==i&&(r[n]=i)}if(n.slots)for(const[o,a]of Object.entries(n.slots)){if(!1===a.render)continue;const n="string"===typeof a.render?a.render:o;t.slots[o]&&(r[n]=this.node(t.slots[o],e))}return r},children(t,e={}){const n=t.children.flatMap((t=>this.node(t,e)));return n.some(Ht)?Promise.all(n):n},node(t,e={}){const n=this.findSchema(t,e)??{};if(n&&n.transform instanceof Function)return n.transform(t,e);const r=this.children(t,e);if(!n||!n.render)return r;const i=this.attributes(t,e);return Ht(i)||Ht(r)?Promise.all([i,r]).then((t=>new Mt(n.render,...t))):new Mt(n.render,i,r)}},Kt=class{constructor(t="node",e={},n=[],r){this.$$mdtype="Node",this.errors=[],this.lines=[],this.inline=!1,this.attributes=e,this.children=n,this.type=t,this.tag=r,this.annotations=[],this.slots={}}*walk(){for(const t of[...Object.values(this.slots),...this.children])yield t,yield*t.walk()}push(t){this.children.push(t)}resolve(t={}){return Object.assign(new Kt,this,{children:this.children.map((e=>e.resolve(t))),attributes:Pt(this.attributes,t),slots:Object.fromEntries(Object.entries(this.slots).map((([e,n])=>[e,n.resolve(t)])))})}findSchema(t={}){return Gt.findSchema(this,t)}transformAttributes(t={}){return Gt.attributes(this,t)}transformChildren(t){return Gt.children(this,t)}transform(t){return Gt.node(this,t)}},Jt={Function:jt,Node:Kt,Variable:Rt};function Xt(t,e){if(!e)return e;const n=Jt[e.$$mdtype];return n?Object.assign(new n,e):e}var Qt={...Jt,...Ft,fromJSON:function(t){return JSON.parse(t,Xt)}},Zt=" ",te=", ",ee="\n",ne=["strong","em","s"],re=(t,e)=>Math.max(t,e),ie=(t,e=2)=>({...t,indent:(t.indent||0)+e});function*oe(t,e){for(const n of t.children)yield*pe(n,e)}function*ae(t){yield[...t].join("").trim()}function*se(t){yield`| ${t.join(" | ")} |`}function le(t){if(void 0!==t)return Qt.isAst(t)?ge(t):null===t?"null":Array.isArray(t)?"["+t.map(le).join(te)+"]":"object"===typeof t?"{"+Object.entries(t).map((([t,e])=>`${Wt(t)?t:`"${t}"`}: ${le(e)}`)).join(te)+"}":JSON.stringify(t)}function ue(t){const e=le(t.value);if(void 0!==e)return"primary"===t.name?e:"id"===t.name&&"string"===typeof t.value&&Wt(t.value)?"#"+t.value:"class"===t.type&&Wt(t.name)?"."+t.name:`${t.name}=${e}`}function*ce(t){for(const[e,n]of Object.entries(t.attributes))if("class"!==e||"object"!==typeof n||Qt.isAst(n))yield ue({type:"attribute",name:e,value:n});else for(const t of Object.keys(n))yield ue({type:"class",name:t,value:n})}function*he(t){t.annotations.length&&(yield Bt+Zt,yield t.annotations.map(ue).join(Zt),yield Zt+zt)}function*de(t){let e;do{const{value:n,done:r}=t.next();if(r)return;e=n.trimStart()}while(!e.length);yield e,yield*t}function*fe(t,e){yield t.replace(e,"\\$&").replace(new RegExp("\xa0","g")," ")}function*pe(t,e={}){switch(typeof t){case"undefined":break;case"boolean":case"number":case"string":yield t.toString();break;case"object":if(null===t)break;if(Array.isArray(t)){for(const n of t)yield*pe(n,e);break}switch(t.$$mdtype){case"Function":yield*function*(t){yield t.name,yield"(",yield Object.values(t.parameters).map(le).join(te),yield")"}(t);break;case"Node":yield*function*(t,e={}){const n={...e,parent:t},r=Zt.repeat(n.indent||0);switch(t.type){case"document":t.attributes.frontmatter&&t.attributes.frontmatter.length&&(yield"---\n"+t.attributes.frontmatter+"\n---"+ee+ee),yield*de(oe(t,n));break;case"heading":yield ee,yield r,yield"#".repeat(t.attributes.level||1),yield Zt,yield*de(oe(t,n)),yield*he(t),yield ee;break;case"paragraph":yield ee,yield*oe(t,n),yield*he(t),yield ee;break;case"inline":yield r,yield*oe(t,n);break;case"image":yield"!",yield"[",yield*pe(t.attributes.alt,n),yield"]",yield"(",yield*"string"===typeof t.attributes.src?fe(t.attributes.src,/[()]/g):pe(t.attributes.src,n),t.attributes.title&&(yield Zt+`"${t.attributes.title}"`),yield")";break;case"link":{const e=[...oe(t,n)].join("");if(e===t.attributes.href&&!t.attributes.title){yield`<${t.attributes.href}>`;break}yield"[",yield e,yield"]",yield"(",yield*"string"===typeof t.attributes.href?fe(t.attributes.href,/[()]/g):pe(t.attributes.href,n),t.attributes.title&&(yield Zt+`"${t.attributes.title}"`),yield")";break}case"text":{const{content:r}=t.attributes;Qt.isAst(r)?(yield Bt+Zt,yield*pe(r,n),yield Zt+zt):e.parent&&ne.includes(e.parent.type)?yield*fe(r,/[*_~]/g):yield*fe(r,/^\*|#+\s|^>/);break}case"blockquote":{const e="> ";yield t.children.map((t=>ge(t,n).trimStart())).map((t=>ee+r+e+t)).join(r+e);break}case"hr":yield ee,yield r,yield"---",yield ee;break;case"fence":{yield ee,yield r;const e=(t.attributes.content.match(/`{3,}/g)||[]).map((t=>t.length)).reduce(re,0),n="`".repeat(e?e+1:3),i=!t.attributes.content.endsWith(ee);yield n,t.attributes.language&&(yield t.attributes.language),t.annotations.length&&(yield Zt),yield*he(t),yield ee,yield r,yield t.attributes.content.split(ee).join(ee+r),i&&(yield ee),yield n,yield ee;break}case"tag":{t.inline||(yield ee,yield r);const i=Bt+Zt,o=[...ce(t)].filter((t=>void 0!==t)),a=[i+t.tag,...o],s=a.join(Zt),l=s.length+2*i.length>(e.maxTagOpeningWidth||80);yield(!t.inline&&l?a.join(ee+Zt.repeat(i.length)+r):s)+Zt+(t.children.length?"":"/")+zt,t.children.length&&(yield*oe(t,n.allowIndentation?ie(n):n),t.inline||(yield r),yield"{% /"+t.tag+Zt+zt),t.inline||(yield ee);break}case"list":{const i=t.children.some((t=>t.children.some((t=>"paragraph"===t.type))));for(let o=0;o<t.children.length;o++){const a=(()=>{if(!t.attributes.ordered)return t.attributes.marker??"-";let n="1";const r=t.attributes.start??1;return 0===o&&(n=r.toString()),"increment"===e.orderedListMode&&(n=(parseInt(r)+o).toString()),`${n}${t.attributes.marker??"."}`})();let s=ge(t.children[o],ie(n,a.length+1));i&&o!==t.children.length-1||(s=s.trim()),yield ee+r+a+" "+s}yield ee;break}case"item":for(let e=0;e<t.children.length;e++)yield*pe(t.children[e],n),0===e&&(yield*he(t));break;case"strong":yield t.attributes.marker??"**",yield*ae(oe(t,n)),yield t.attributes.marker??"**";break;case"em":yield t.attributes.marker??"*",yield*ae(oe(t,n)),yield t.attributes.marker??"*";break;case"code":yield"`",yield*ae(pe(t.attributes.content,n)),yield"`";break;case"s":yield"~~",yield*ae(oe(t,n)),yield"~~";break;case"hardbreak":yield"\\\n",yield r;break;case"softbreak":yield ee,yield r;break;case"table":{const i=[...oe(t,ie(n))];if(e.parent&&"tag"===e.parent.type&&"table"===e.parent.tag){for(let t=0;t<i.length;t++){const e=i[t];if("string"===typeof e)e.trim().length&&(yield ee,yield e);else{0!==t&&(yield ee,yield r+"---");for(const t of e)yield ee+r+"- "+t}}yield ee}else{const t=[];for(const r of i)for(let e=0;e<r.length;e++)t[e]=t[e]?Math.max(t[e],r[e].length):r[e].length;const[e,...n]=i;yield ee,yield*se(e.map(((e,n)=>e+Zt.repeat(t[n]-e.length)))),yield ee,yield*se(e.map(((e,n)=>"-".repeat(t[n])))),yield ee;for(const r of n)yield*se(r.map(((e,n)=>e+Zt.repeat(t[n]-e.length)))),yield ee}break}case"thead":{const[e]=[...oe(t,n)];yield e||[];break}case"tr":yield[...oe(t,n)];break;case"td":case"th":yield[...oe(t,n),...he(t)].join("").trim();break;case"tbody":yield*oe(t,n);break;case"comment":yield"\x3c!-- "+t.attributes.content+" --\x3e\n"}}(t,e);break;case"Variable":yield*function*(t){yield"$",yield t.path.map(((t,e)=>0===e?t:Wt(t)?"."+t:"number"===typeof t?`[${t}]`:`["${t}"]`)).join("")}(t);break;default:throw new Error(`Unimplemented: "${t.$$mdtype}"`)}}}function ge(t,e){let n="";for(const r of pe(t,e))n+=r;return n.trimStart()}var me=class{validate(t,e,n){return"boolean"===typeof t||null===t||void 0===t||"object"===typeof t?[]:[{id:"attribute-type-invalid",level:"error",message:`Attribute '${n}' must be type 'boolean | object' (null or undefined are also allowed)`}]}};function be(t){return!1!==t&&void 0!==t&&null!==t}var ve={attributes:{primary:{type:me,render:!1}},transform(t,e){const n=function(t){const e=[{condition:t.attributes.primary,children:[]}];for(const n of t.children)"tag"===n.type&&"else"===n.tag?e.push({condition:!("primary"in n.attributes)||n.attributes.primary,children:[]}):e[e.length-1].children.push(n);return e}(t);for(const{condition:r,children:i}of n)if(be(r)){const t=i.flatMap((t=>t.transform(e)));return t.some(Ht)?Promise.all(t).then((t=>t.flat())):t}return[]}},ye={selfClosing:!0,attributes:{primary:{type:me,render:!1}}},we={and:{transform:t=>Object.values(t).every((t=>be(t)))},or:{transform:t=>void 0!==Object.values(t).find((t=>be(t)))},not:{parameters:{0:{required:!0}},transform:t=>!be(t[0])},equals:{transform(t){const e=Object.values(t);return e.every((t=>t===e[0]))}},default:{transform:t=>void 0===t[0]?t[1]:t[0]},debug:{transform:t=>JSON.stringify(t[0],null,2)}};function De(t,e="td"){t.type="tr",t.attributes={};for(const n of t.children)n.type=e;return t}function xe(t,e){return"tag"===t.type&&!!t.tag&&e.includes(t.tag)}function _e(t){return"comment"===t.type||"tag"===t.type&&"comment"===t.tag}function ke({type:t,tag:e}){return{id:"table-syntax",level:"critical",message:`Found ${t}${e?` ${e}`:""} where a list was expected. Make sure all content inside table cells is indented.`}}var Se=[function(t,e=["if"]){for(const n of t.walk()){if("tag"!==n.type||"table"!==n.tag)continue;const[t,...r]=n.children;if(!t||"table"===t.type)continue;const i=new Qt.Node("table",n.attributes,[new Qt.Node("thead"),new Qt.Node("tbody")]),[o,a]=i.children;"list"===t.type&&o.push(De(t,"th"));for(const s of r){if("list"===s.type)De(s);else{if(!xe(s,e)){if("hr"===s.type||_e(s))continue;n.errors.push(ke({type:s.type,tag:s.tag}));continue}{const t=[];for(const n of s.children)if("hr"!==n.type){if("list"===n.type)De(n);else if(!_e(n)&&"else"!==n.tag&&!xe(n,e)){s.errors.push(ke({type:n.type,tag:n.tag}));continue}t.push(n)}s.children=t}}a.push(s)}n.children=[i]}}],Ce={ordered_list:"list",bullet_list:"list",code_inline:"code",list_item:"item",variable:"text"};function Fe(t,e){for(const n of e){t.annotations.push(n);const{name:e,value:r,type:i}=n;"attribute"===i?(void 0!==t.attributes[e]&&t.errors.push({id:"duplicate-attribute",level:"warning",message:`Attribute '${e}' already set`}),t.attributes[e]=r):"class"===i&&(t.attributes.class?t.attributes.class[e]=r:t.attributes.class={[e]:r})}}function Ae(t,e,n,r,i,o){if("frontmatter"===t.type)return void(e[0].attributes.frontmatter=t.content);if(t.hidden||"text"===t.type&&""===t.content)return;const a=t.errors||[],s=e[e.length-1],{tag:l,attributes:u,error:c}=t.meta||{};if("annotation"===t.type)return o?Fe(o,u):s.errors.push({id:"no-inline-annotations",level:"error",message:`Can't apply inline annotations to '${s.type}'`});let h=t.type.replace(/_(open|close)$/,"");if(Ce[h]&&(h=Ce[h]),"error"===h){const{message:t,location:e}=c;a.push({id:"parse-error",level:"critical",message:t,location:e})}if(t.nesting<0){if(s.type===h&&s.tag===l)return s.lines&&t.map&&s.lines.push(...t.map),e.pop();a.push({id:"missing-opening",level:"critical",message:`Node '${h}' is missing opening`})}const d=function(t,e){switch(e){case"heading":return{level:Number(t.tag.replace("h",""))};case"list":{const e=t.attrs?Object.fromEntries(t.attrs):void 0,n=t.type.startsWith("ordered");return n&&e?.start?{ordered:!0,start:e.start,marker:t.markup}:{ordered:n,marker:t.markup}}case"link":{const e=Object.fromEntries(t.attrs);return e.title?{href:e.href,title:e.title}:{href:e.href}}case"image":{const e=Object.fromEntries(t.attrs);return e.title?{alt:t.content,src:e.src,title:e.title}:{alt:t.content,src:e.src}}case"em":case"strong":return{marker:t.markup};case"text":case"code":case"comment":return{content:(t.meta||{}).variable||t.content};case"fence":{const[e]=t.info.split(" ",1);return""===e||e===Bt?{content:t.content}:{content:t.content,language:e}}case"td":case"th":if(t.attrs){const e=Object.fromEntries(t.attrs);let n;if(e.style&&(e.style.includes("left")?n="left":e.style.includes("center")?n="center":e.style.includes("right")&&(n="right")),n)return{align:n}}return{};default:return{}}}(t,h),f=new Kt(h,d,void 0,l||void 0),{position:p={}}=t;if(f.errors=a,!1!==i&&(f.lines=t.map||s.lines||[],f.location={file:n,start:{line:f.lines[0],character:p.start},end:{line:f.lines[1],character:p.end}}),o&&(f.inline=!0),u&&["tag","fence","image"].includes(h)&&Fe(f,u),r&&"slot"===l&&"string"===typeof f.attributes.primary?s.slots[f.attributes.primary]=f:s.push(f),t.nesting>0&&e.push(f),!Array.isArray(t.children))return;"inline"===f.type&&(o=s),e.push(f);if(!("image"===h))for(const g of t.children)Ae(g,e,n,r,i,o);e.pop()}var Ee={};h(Ee,{blockquote:()=>Ie,code:()=>Je,comment:()=>tn,document:()=>Le,em:()=>Ve,error:()=>en,fence:()=>Oe,hardbreak:()=>Qe,heading:()=>Ne,hr:()=>je,image:()=>Me,inline:()=>Ge,item:()=>Te,link:()=>Ke,list:()=>Re,node:()=>nn,paragraph:()=>Pe,s:()=>$e,softbreak:()=>Ze,strong:()=>Ye,table:()=>Be,tbody:()=>He,td:()=>ze,text:()=>Xe,th:()=>qe,thead:()=>Ue,tr:()=>We});var Le={render:"article",children:["heading","paragraph","image","table","tag","fence","blockquote","comment","list","hr"],attributes:{frontmatter:{render:!1}}},Ne={children:["inline"],attributes:{level:{type:Number,render:!1,required:!0}},transform:(t,e)=>new Mt(`h${t.attributes.level}`,t.transformAttributes(e),t.transformChildren(e))},Pe={render:"p",children:["inline"]},Me={render:"img",attributes:{src:{type:String,required:!0},alt:{type:String},title:{type:String}}},Oe={render:"pre",attributes:{content:{type:String,render:!1,required:!0},language:{type:String,render:"data-language"},process:{type:Boolean,render:!1,default:!0}},transform(t,e){const n=t.transformAttributes(e),r=t.children.length?t.transformChildren(e):[t.attributes.content];return new Mt("pre",n,r)}},Ie={render:"blockquote",children:["heading","paragraph","image","table","tag","fence","blockquote","list","hr"]},Te={render:"li",children:["inline","heading","paragraph","image","table","tag","fence","blockquote","list","hr"]},Re={children:["item"],attributes:{ordered:{type:Boolean,render:!1,required:!0},start:{type:Number},marker:{type:String,render:!1}},transform:(t,e)=>new Mt(t.attributes.ordered?"ol":"ul",t.transformAttributes(e),t.transformChildren(e))},je={render:"hr"},Be={render:"table"},ze={render:"td",children:["inline","heading","paragraph","image","table","tag","fence","blockquote","list","hr"],attributes:{align:{type:String},colspan:{type:Number,render:"colSpan"},rowspan:{type:Number,render:"rowSpan"}}},qe={render:"th",attributes:{width:{type:String},align:{type:String},colspan:{type:Number,render:"colSpan"},rowspan:{type:Number,render:"rowSpan"}}},We={render:"tr",children:["th","td"]},He={render:"tbody",children:["tr","tag"]},Ue={render:"thead",children:["tr"]},Ye={render:"strong",children:["em","s","link","code","text","tag"],attributes:{marker:{type:String,render:!1}}},Ve={render:"em",children:["strong","s","link","code","text","tag"],attributes:{marker:{type:String,render:!1}}},$e={render:"s",children:["strong","em","link","code","text","tag"]},Ge={children:["strong","em","s","code","text","tag","link","image","hardbreak","softbreak","comment"]},Ke={render:"a",children:["strong","em","s","code","text","tag"],attributes:{href:{type:String,required:!0},title:{type:String}}},Je={render:"code",attributes:{content:{type:String,render:!1,required:!0}},transform(t,e){const n=t.transformAttributes(e);return new Mt("code",n,[t.attributes.content])}},Xe={attributes:{content:{type:String,required:!0}},transform:t=>t.attributes.content},Qe={render:"br"},Ze={transform:()=>" "},tn={attributes:{content:{type:String,required:!0}}},en={},nn={},rn=d(Ct()),{escapeHtml:on}=(0,rn.default)().utils,an=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function sn(t,e){return"string"!==typeof t||t[0]!==t[0].toUpperCase()?t:e instanceof Function?e(t):e[t]}function ln(t,e){return"string"!==typeof t?"Fragment":t[0]!==t[0].toUpperCase()?t:e instanceof Function?e(t):e[t]}function un(t){return t.map(hn).join(", ")}function cn(t){if(null==t||"object"!==typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map((t=>cn(t))).join(", ")}]`;if("Tag"===t.$$mdtype)return hn(t);if("object"!==typeof t)return JSON.stringify(t);return`{${Object.entries(t).map((([t,e])=>[JSON.stringify(t),cn(e)].join(": "))).join(", ")}}`}function hn(t){if(Array.isArray(t))return`React.createElement(React.Fragment, null, ${un(t)})`;if(null===t||"object"!==typeof t||!Mt.isTag(t))return JSON.stringify(t);const{name:e,attributes:{class:n,...r}={},children:i=[]}=t;return n&&(r.className=n),`React.createElement(\n tagName(${JSON.stringify(e)}, components),\n ${0==Object.keys(r).length?"null":cn(r)},\n ${un(i)})`}var dn={html:function t(e){if("string"===typeof e||"number"===typeof e)return on(String(e));if(Array.isArray(e))return e.map(t).join("");if(null===e||"object"!==typeof e||!Mt.isTag(e))return"";const{name:n,attributes:r,children:i=[]}=e;if(!n)return t(i);let o=`<${n}`;for(const[a,s]of Object.entries(r??{}))o+=` ${a.toLowerCase()}="${on(String(s))}"`;return o+=">",an.has(n)||(i.length&&(o+=t(i)),o+=`</${n}>`),o},react:function(t,e,{components:n={},resolveTagName:r=sn}={}){function i(t){if(null==t||"object"!==typeof t)return t;if(Array.isArray(t))return t.map((t=>i(t)));if("Tag"===t.$$mdtype)return o(t);if("object"!==typeof t)return t;const e={};for(const[n,r]of Object.entries(t))e[n]=i(r);return e}function o(t){if(Array.isArray(t))return e.createElement(e.Fragment,null,...t.map(o));if(null===t||"object"!==typeof t||!Mt.isTag(t))return t;const{name:a,attributes:{class:s,...l}={},children:u=[]}=t;return s&&(l.className=s),e.createElement(r(a,n),0==Object.keys(l).length?null:i(l),...u.map(o))}return o(t)},reactStatic:function(t,{resolveTagName:e=ln}={}){if("tagName"!==e.name)throw new Error("resolveTagName must be named tagName");return`\n (({components = {}} = {}) => {\n ${e}\n return ${hn(t)};\n })\n`}},fn={else:ye,if:ve,partial:{inline:!1,selfClosing:!0,attributes:{file:{type:class{validate(t,e){const{partials:n={}}=e;return n[t]?[]:[{id:"attribute-value-invalid",level:"error",message:`Partial \`${t}\` not found. The 'file' attribute must be set in \`config.partials\``}]}},render:!1,required:!0},variables:{type:Object,render:!1}},transform(t,e){const{partials:n={}}=e,{file:r,variables:i}=t.attributes,o=n[r];if(!o)return null;const a={...e,variables:{...e.variables,...i,"$$partial:filename":r}},s=t=>t.resolve(a).transformChildren(a);return Array.isArray(o)?o.flatMap(s):s(o)}},slot:{attributes:{primary:{type:String,required:!0}}},table:{children:["table"],inline:!1}},pn=d(St()),gn=d(f());function mn(t,e,n){try{const{type:n,meta:r,nesting:i=0}=(0,gn.parse)(e,{Variable:Rt,Function:jt}),o=t.push(n,"",i);return o.info=e,o.meta=r,t.delimiters||(t.delimiters=[]),o}catch(r){if(!(r instanceof gn.SyntaxError))throw r;const{message:e,location:{start:i,end:o}}=r,a=n?{start:{offset:i.offset+n},end:{offset:o.offset+n}}:null,s=t.push("error","",0);return s.meta={error:{message:e,location:a}},s}}function bn(t,e,n,r){const i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(!t.src.startsWith(Bt,i))return!1;const a=Ut(t.src,i),s=t.src.slice(0,o).trim().length;if(!a||a<s-2)return!1;const l=i+2,u=t.src.slice(l,a).trim(),c=t.src.slice(i,a+2).split("\n").length;if("$"===u[0])return!1;if(r)return!0;return mn(t,u,l).map=[e,e+c],t.line+=c,!0}function vn(t,e){if(!t.src.startsWith(Bt,t.pos))return!1;const n=Ut(t.src,t.pos);if(!n)return!1;const r=t.src.slice(t.pos+2,n);return e||mn(t,r.trim()),t.pos=n+2,!0}function yn(t){let e;for(e of t.tokens)if("fence"===e.type){if(e.info.includes(Bt)){const t=e.info.indexOf(Bt),r=Ut(e.info,t),i=e.info.slice(t+2,r);try{const{meta:t}=(0,gn.parse)(i.trim(),{Variable:Rt,Function:jt});e.meta=t}catch(n){if(!(n instanceof gn.SyntaxError))throw n;e.errors||(e.errors=[]),e.errors.push({id:"fence-tag-error",level:"error",message:`Syntax error in fence tag: ${n.message}`})}}e?.meta?.attributes?.find((t=>"process"===t.name&&!t.value))||(e.children=Vt(e.content,e.map[0]))}}function wn(t){t.block.ruler.before("paragraph","annotations",bn,{alt:["paragraph","blockquote"]}),t.inline.ruler.push("containers",vn),t.core.ruler.push("annotations",yn)}function Dn(t,e){return t.src.slice(t.bMarks[e],t.eMarks[e]).trim()}function xn(t,e,n,r){if(0!=e||"---"!=Dn(t,0))return!1;const i=function(t,e){for(let n=1;n<e;n++)if("---"===Dn(t,n))return n}(t,n);if(!i)return!1;if(r)return!0;const o=t.push("frontmatter","",0);return o.content=t.src.slice(t.eMarks[0],t.bMarks[i]).trim(),o.map=[0,i],o.hidden=!0,t.line=i+1,!0}function _n(t){t.block.ruler.before("hr","frontmatter",xn)}var kn="\x3c!--",Sn="--\x3e";function Cn(t,e,n,r){const i=t.bMarks[e]+t.tShift[e];if(!t.src.startsWith(kn,i))return!1;const o=t.src.indexOf(Sn,i);if(-1===o)return!1;if(r)return!0;const a=t.src.slice(i+4,o),s=a.split("\n").length,l=t.push("comment","",0);return l.content=a.trim(),l.map=[e,e+s],t.line+=s,!0}function Fn(t,e){if(!t.src.startsWith(kn,t.pos))return!1;const n=t.src.indexOf(Sn,t.pos);if(-1===n)return!1;if(e)return!0;const r=t.src.slice(t.pos+4,n);return t.push("comment","",0).content=r.trim(),t.pos=n+3,!0}function An(t){t.block.ruler.before("table","comment",Cn,{alt:["paragraph"]}),t.inline.ruler.push("comment",Fn)}var En=class{constructor(t={}){this.parser=new pn.default(t),this.parser.use(wn,"annotations",{}),this.parser.use(_n,"frontmatter",{}),this.parser.disable(["lheading","code"]),t.allowComments&&this.parser.use(An,"comments",{})}tokenize(t){return this.parser.parse(t.toString(),{})}},Ln={String:String,Number:Number,Array:Array,Object:Object,Boolean:Boolean};function Nn(t,e,n,r){if(!t)return!0;if(Qt.isFunction(e)&&n.validation?.validateFunctions){const r=n.functions?.[e.name];return!r?.returns||(Array.isArray(r.returns)?void 0!==r.returns.find((e=>e===t)):r.returns===t)}if(Qt.isAst(e))return!0;if(Array.isArray(t))return t.some((t=>Nn(t,e,n,r)));if("string"===typeof t&&(t=Ln[t]),"function"===typeof t){const i=new t;if(i.validate)return i.validate(e,n,r)}return null!=e&&e.constructor===t}function Pn(t){return"string"===typeof t?t:Array.isArray(t)?t.map(Pn).join(" | "):t.name}function Mn(t,e){const n=e.functions?.[t.name],r=[];if(!n)return[{id:"function-undefined",level:"critical",message:`Undefined function: '${t.name}'`}];if(n.validate&&r.push(...n.validate(t,e)),n.parameters)for(const[i,o]of Object.entries(t.parameters)){const a=n.parameters?.[i];if(a){if((!Qt.isAst(o)||Qt.isFunction(o))&&a.type){const n=Nn(a.type,o,e,i);!1===n?r.push({id:"parameter-type-invalid",level:"error",message:`Parameter '${i}' of '${t.name}' must be type of '${Pn(a.type)}'`}):Array.isArray(n)&&r.push(...n)}}else r.push({id:"parameter-undefined",level:"error",message:`Invalid parameter: '${i}'`})}for(const[i,{required:o}]of Object.entries(n.parameters??{}))o&&void 0===t.parameters[i]&&r.push({id:"parameter-missing-required",level:"error",message:`Missing required parameter: '${i}'`});return r}function On(t,e){if(t.length<=e)return JSON.stringify(t);return`[${t.slice(0,e).map((t=>JSON.stringify(t))).join(",")}, ... ${t.length-e} more]`}function In(t,e){const n=t.findSchema(e),r=[...t.errors||[]];if(!n)return r.push({id:t.tag?"tag-undefined":"node-undefined",level:"critical",message:t.tag?`Undefined tag: '${t.tag}'`:`Undefined node: '${t.type}'`}),r;void 0!=n.inline&&t.inline!==n.inline&&r.push({id:"tag-placement-invalid",level:"critical",message:`'${t.tag}' tag should be ${n.inline?"inline":"block"}`}),n.selfClosing&&t.children.length>0&&r.push({id:"tag-selfclosing-has-children",level:"critical",message:`'${t.tag}' tag should be self-closing`});const i={...$t,...n.attributes};for(const o of Object.keys(t.slots)){const t=n.slots?.[o];t||r.push({id:"slot-undefined",level:"error",message:`Invalid slot: '${o}'`})}for(let[o,a]of Object.entries(t.attributes)){const t=i[o];if(!t){r.push({id:"attribute-undefined",level:"error",message:`Invalid attribute: '${o}'`});continue}let{type:n,matches:s,errorLevel:l}=t;if(Qt.isAst(a))if(Qt.isFunction(a)&&e.validation?.validateFunctions)r.push(...Mn(a,e));else{if(!Qt.isVariable(a)||!e.variables)continue;{let t=!1,n=e.variables;for(const e of a.path){if(!Object.prototype.hasOwnProperty.call(n,e)){t=!0;break}n=n[e]}t&&r.push({id:"variable-undefined",level:"error",message:`Undefined variable: '${a.path.join(".")}'`})}}if(n){const t=Nn(n,a,e,o);!1===t&&r.push({id:"attribute-type-invalid",level:l||"error",message:`Attribute '${o}' must be type of '${Pn(n)}'`}),Array.isArray(t)&&r.push(...t)}if("function"===typeof s&&(s=s(e)),Array.isArray(s)&&!s.includes(a)&&r.push({id:"attribute-value-invalid",level:l||"error",message:`Attribute '${o}' must match one of ${On(s,8)}. Got '${a}' instead.`}),s instanceof RegExp&&!s.test(a)&&r.push({id:"attribute-value-invalid",level:l||"error",message:`Attribute '${o}' must match ${s}. Got '${a}' instead.`}),"function"===typeof t.validate){const n=t.validate(a,e,o);Array.isArray(n)&&r.push(...n)}}for(const[o,{required:a}]of Object.entries(i))a&&void 0===t.attributes[o]&&r.push({id:"attribute-missing-required",level:"error",message:`Missing required attribute: '${o}'`});if(n.slots)for(const[o,{required:a}]of Object.entries(n.slots))a&&void 0===t.slots[o]&&r.push({id:"slot-missing-required",level:"error",message:`Missing required slot: '${o}'`});for(const{type:o}of t.children)n.children&&"error"!==o&&!n.children.includes(o)&&r.push({id:"child-invalid",level:"warning",message:`Can't nest '${o}' in '${t.tag||t.type}'`});if(n.validate){const i=n.validate(t,e);if(Ht(i))return i.then((t=>r.concat(t)));r.push(...i)}return r}function*Tn(t,e=[]){yield[t,e];for(const n of[...Object.values(t.slots),...t.children])yield*Tn(n,[...e,t])}var Rn=new En;function jn(t={}){return{...t,tags:{...fn,...t.tags},nodes:{...Ee,...t.nodes},functions:{...we,...t.functions}}}function Bn(t,e){return"string"===typeof t&&(t=Rn.tokenize(t)),function(t,e){const n=new Kt("document"),r=[n];"string"===typeof e&&(e={file:e});for(const i of t)Ae(i,r,e?.file,e?.slots,e?.location);if(r.length>1)for(const i of r.slice(1))i.errors.push({id:"missing-closing",level:"critical",message:`Node '${i.tag||i.type}' is missing closing`});for(const i of Se)i(n,e?.conditionalTags);return n}(t,e)}function zn(t,e){return Array.isArray(t)?t.flatMap((t=>t.resolve(e))):t.resolve(e)}function qn(t,e){const n=jn(e),r=zn(t,n);return Array.isArray(r)?r.flatMap((t=>t.transform(n))):r.transform(n)}function Wn(t,e){return function(t,e){const n=[...Tn(t)].map((([t,n])=>{const{type:r,lines:i,location:o}=t,a=In(t,{...e,validation:{...e.validation,parents:n}});return Ht(a)?a.then((t=>t.map((t=>({type:r,lines:i,location:o,error:t}))))):a.map((t=>({type:r,lines:i,location:o,error:t})))}));return n.some(Ht)?Promise.all(n).then((t=>t.flat())):n.flat()}(t,jn(e))}var Hn=class{constructor(t){this.parse=Bn,this.resolve=t=>zn(t,this.config),this.transform=t=>qn(t,this.config),this.validate=t=>Wn(t,this.config),this.config=t}};Hn.nodes=Ee,Hn.tags=fn,Hn.functions=we,Hn.globalAttributes=$t,Hn.renderers=dn,Hn.transforms=Se,Hn.Ast=Qt,Hn.Tag=Mt,Hn.Tokenizer=En,Hn.parseTags=Vt,Hn.transformer=Gt,Hn.validator=In,Hn.parse=Bn,Hn.transform=qn,Hn.validate=Wn,Hn.createElement=function(t,e={},...n){return{name:t,attributes:e,children:n}},Hn.truthy=be,Hn.format=ge},51220(t,e,n){"use strict";n.d(e,{Te:()=>l});var r=n(96540),i=n(40961),o=n(57530);const a="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function s({useFlushSync:t=!0,...e}){const n=r.useReducer((()=>({})),{})[1],s={...e,onChange:(r,o)=>{var a;t&&o?(0,i.flushSync)(n):n(),null==(a=e.onChange)||a.call(e,r,o)}},[l]=r.useState((()=>new o.YV(s)));return l.setOptions(s),a((()=>l._didMount()),[]),a((()=>l._willUpdate())),l}function l(t){return s({observeElementRect:o.T6,observeElementOffset:o.AO,scrollToFn:o.Ox,...t})}},57530(t,e,n){"use strict";function r(t,e,n){let r,i=n.initialDeps??[],o=!0;function a(){var a,s,l;let u;n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(u=Date.now());const c=t();if(!(c.length!==i.length||c.some(((t,e)=>i[e]!==t))))return r;let h;if(i=c,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(h=Date.now()),r=e(...c),n.key&&(null==(l=n.debug)?void 0:l.call(n))){const t=Math.round(100*(Date.now()-u))/100,e=Math.round(100*(Date.now()-h))/100,r=e/16,i=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t;return t};console.info(`%c\u23f1 ${i(e,5)} /${i(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return!(null==n?void 0:n.onChange)||o&&n.skipInitialOnChange||n.onChange(r),o=!1,r}return a.updateDeps=t=>{i=t},a}function i(t,e){if(void 0===t)throw new Error("Unexpected undefined"+(e?`: ${e}`:""));return t}n.d(e,{YV:()=>g,vp:()=>l,Ox:()=>p,AO:()=>d,T6:()=>u});const o=(t,e,n)=>{let r;return function(...i){t.clearTimeout(r),r=t.setTimeout((()=>e.apply(this,i)),n)}};const a=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},s=t=>t,l=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),r=[];for(let i=e;i<=n;i++)r.push(i);return r},u=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;const i=t=>{const{width:n,height:r}=t;e({width:Math.round(n),height:Math.round(r)})};if(i(a(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver((e=>{const r=()=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void i({width:e.inlineSize,height:e.blockSize})}i(a(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},c={passive:!0},h="undefined"==typeof window||"onscrollend"in window,d=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;let i=0;const a=t.options.useScrollendEvent&&h?()=>{}:o(r,(()=>{e(i,!1)}),t.options.isScrollingResetDelay),s=r=>()=>{const{horizontal:o,isRtl:s}=t.options;i=o?n.scrollLeft*(s?-1:1):n.scrollTop,a(),e(i,r)},l=s(!0),u=s(!1);n.addEventListener("scroll",l,c);const d=t.options.useScrollendEvent&&h;return d&&n.addEventListener("scrollend",u,c),()=>{n.removeEventListener("scroll",l),d&&n.removeEventListener("scrollend",u)}},f=(t,e,n)=>{if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t){return Math.round(t[n.options.horizontal?"inlineSize":"blockSize"])}}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},p=(t,{adjustments:e=0,behavior:n},r)=>{var i,o;const a=t+e;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class g{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var t,e,n;return(null==(n=null==(e=null==(t=this.targetWindow)?void 0:t.performance)?void 0:e.now)?void 0:n.call(e))??Date.now()},this.observer=(()=>{let t=null;const e=()=>t||(this.targetWindow&&this.targetWindow.ResizeObserver?t=new this.targetWindow.ResizeObserver((t=>{t.forEach((t=>{const e=()=>{const e=t.target,n=this.indexFromElement(e);if(!e.isConnected)return this.observer.unobserve(e),void this.elementsCache.delete(this.options.getItemKey(n));this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(e,t,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(e):e()}))})):null);return{disconnect:()=>{var n;null==(n=e())||n.disconnect(),t=null},observe:t=>{var n;return null==(n=e())?void 0:n.observe(t,{box:"border-box"})},unobserve:t=>{var n;return null==(n=e())?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach((([e,n])=>{"undefined"===typeof n&&delete t[e]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:s,rangeExtractor:l,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,n;null==(n=(e=this.options).onChange)||n.call(e,this,t)},this.maybeNotify=r((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(t=>{this.notify(t)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((t=>t())),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e)return void this.maybeNotify();this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(t=this.scrollElement)?void 0:t.window)??null,this.elementsCache.forEach((t=>{this.observer.observe(t)})),this.unsubs.push(this.options.observeElementRect(this,(t=>{this.scrollRect=t,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((t,e)=>{this.scrollAdjustments=0,this.scrollDirection=e?this.getScrollOffset()<t?"forward":"backward":null,this.scrollOffset=t,this.isScrolling=e,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()}))),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"===typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,e)=>{const n=new Map,r=new Map;for(let i=e-1;i>=0;i--){const e=t[i];if(n.has(e.lane))continue;const o=r.get(e.lane);if(null==o||e.end>o.end?r.set(e.lane,e):e.end<o.end&&n.set(e.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((t,e)=>t.end===e.end?t.index-e.index:t.end-e.end))[0]:void 0},this.getMeasurementOptions=r((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes]),((t,e,n,r,i,o)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:n,getItemKey:r,enabled:i,lanes:o})),{key:!1}),this.getMeasurements=r((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:t,paddingStart:e,scrollMargin:n,getItemKey:r,enabled:i,lanes:o},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const c of this.laneAssignments.keys())c>=t&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((t=>{this.itemSizeCache.set(t.key,t.size)})));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const l=this.measurementsCache.slice(0,s),u=new Array(o).fill(void 0);for(let c=0;c<s;c++){const t=l[c];t&&(u[t.lane]=c)}for(let c=s;c<t;c++){const t=r(c),i=this.laneAssignments.get(c);let o,s;if(void 0!==i&&this.options.lanes>1){o=i;const t=u[o],r=void 0!==t?l[t]:void 0;s=r?r.end+this.options.gap:e+n}else{const t=1===this.options.lanes?l[c-1]:this.getFurthestMeasurement(l,c);s=t?t.end+this.options.gap:e+n,o=t?t.lane:c%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(c,o)}const h=a.get(t),d="number"===typeof h?h:this.options.estimateSize(c),f=s+d;l[c]={index:c,start:s,size:d,end:f,key:t,lane:o},u[o]=c}return this.measurementsCache=l,l}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=r((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((t,e,n,r)=>this.range=t.length>0&&e>0?function({measurements:t,outerSize:e,scrollOffset:n,lanes:r}){const i=t.length-1,o=e=>t[e].start;if(t.length<=r)return{startIndex:0,endIndex:i};let a=m(0,i,o,n),s=a;if(1===r)for(;s<i&&t[s].end<n+e;)s++;else if(r>1){const o=Array(r).fill(0);for(;s<i&&o.some((t=>t<n+e));){const e=t[s];o[e.lane]=e.end,s++}const l=Array(r).fill(n+e);for(;a>=0&&l.some((t=>t>=n));){const e=t[a];l[e.lane]=e.start,a--}a=Math.max(0,a-a%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}({measurements:t,outerSize:e,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=r((()=>{let t=null,e=null;const n=this.calculateRange();return n&&(t=n.startIndex,e=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]}),((t,e,n,r,i)=>null===r||null===i?[]:t({startIndex:r,endIndex:i,overscan:e,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,n=t.getAttribute(e);return n?parseInt(n,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var e;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(e=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:e.index);if(void 0!==n&&this.range){const e=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-e),i=Math.min(this.options.count-1,n+e);return t>=r&&t<=i}return!0},this.measureElement=t=>{if(!t)return void this.elementsCache.forEach(((t,e)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(e))}));const e=this.indexFromElement(t),n=this.options.getItemKey(e),r=this.elementsCache.get(n);r!==t&&(r&&this.observer.unobserve(r),this.observer.observe(t),this.elementsCache.set(n,t)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(e)||this.resizeItem(e,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,e)=>{var n;const r=this.measurementsCache[t];if(!r)return;const i=e-(this.itemSizeCache.get(r.key)??r.size);0!==i&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,i,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,e)),this.notify(!1))},this.getVirtualItems=r((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((t,e)=>{const n=[];for(let r=0,i=t.length;r<i;r++){const i=e[t[r]];n.push(i)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements();if(0!==e.length)return i(e[m(0,e.length-1,(t=>i(e[t]).start),t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,e,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),i=this.getScrollOffset();"auto"===e&&(e=t>=i+r?"end":"start"),"center"===e?t+=(n-r)/2:"end"===e&&(t-=r);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[t];if(!i)return;if("auto"===e)if(i.end>=r+n-this.options.scrollPaddingEnd)e="end";else{if(!(i.start<=r+this.options.scrollPaddingStart))return[r,e];e="start"}if("end"===e&&t===this.options.count-1)return[this.getMaxScrollOffset(),e];const o="end"===e?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,e,i.size),e]},this.scrollToOffset=(t,{align:e="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(t,e),i=this.now();this.scrollState={index:null,align:e,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:e="auto",behavior:n="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const r=this.getOffsetForIndex(t,e);if(!r)return;const[i,o]=r,a=this.now();this.scrollState={index:t,align:o,behavior:n,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:e="auto"}={})=>{const n=this.getScrollOffset()+t,r=this.now();this.scrollState={index:null,align:"start",behavior:e,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:e}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var t;const e=this.getMeasurements();let n;if(0===e.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(t=e[e.length-1])?void 0:t.end)??0;else{const t=Array(this.options.lanes).fill(null);let r=e.length-1;for(;r>=0&&t.some((t=>null===t));){const n=e[r];null===t[n.lane]&&(t[n.lane]=n.end),r--}n=Math.max(...t.filter((t=>null!==t)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame((()=>{this.rafId=null,this.reconcileScroll()}))):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const t=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,e=t?t[0]:this.scrollState.lastTargetOffset,n=e!==this.scrollState.lastTargetOffset;if(!n&&(r=e,i=this.getScrollOffset(),Math.abs(r-i)<1.01)){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=e,this.scrollState.behavior="auto",this._scrollToOffset(e,{adjustments:void 0,behavior:"auto"}));var r,i;this.scheduleScrollReconcile()}}const m=(t,e,n,r)=>{for(;t<=e;){const i=(t+e)/2|0,o=n(i);if(o<r)t=i+1;else{if(!(o>r))return i;e=i-1}}return t>0?t-1:0}},66118(t,e,n){"use strict";n.d(e,{$L:()=>cr,A6:()=>L,Bs:()=>ge,E8:()=>Me,FN:()=>Ce,Hg:()=>_t,Jb:()=>N,No:()=>ke,P$:()=>I,PP:()=>Tn,Qw:()=>u,UA:()=>lr,ZT:()=>M,ij:()=>B,ju:()=>P,kc:()=>Bn,m_:()=>Pn,s$:()=>fn,t1:()=>ue});var r=n(81692);class i{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const i=e.listeners[r],o=e.duration;i.forEach((r=>r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=r.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=i.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var o=new i;const a="transparent",s={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=(0,r.c)(t||a),o=i.valid&&(0,r.c)(e||a);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class l{constructor(t,e,n,i){const o=e[n];i=(0,r.a)([t.to,i,o,t.from]);const a=(0,r.a)([t.from,o,i]);this._active=!0,this._fn=t.fn||s[t.type||typeof a],this._easing=r.e[t.easing]||r.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,r.a)([t.to,e,i,t.from]),this._from=(0,r.a)([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=i:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][e]()}}class u{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,r.i)(t))return;const e=Object.keys(r.d.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!(0,r.i)(o))return;const a={};for(const t of e)a[t]=o[t];((0,r.b)(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,a)}))}))}_animateOptions(t,e){const n=e.options,r=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const e=t[r[i]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),i}_createAnimations(t,e){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const u=o[s];if("$"===u.charAt(0))continue;if("options"===u){r.push(...this._animateOptions(t,e));continue}const c=e[u];let h=i[u];const d=n.get(u);if(h){if(d&&h.active()){h.update(d,c,a);continue}h.cancel()}d&&d.duration?(i[u]=h=new l(d,t,u,c),r.push(h)):t[u]=c}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(o.add(this._chart,n),!0):void 0}}function c(t,e){const n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function h(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function d(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let s,l,u,c;if(null===e)return;let h=!1;for(s=0,l=o.length;s<l;++s){if(u=+o[s],u===n){if(h=!0,i.all)continue;break}c=t.values[u],(0,r.g)(c)&&(a||0===e||(0,r.s)(e)===(0,r.s)(c))&&(e+=c)}return h||i.all?e:0}function f(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function p(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function g(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const e=t[i.index];if(n&&e>0||!n&&e<0)return i.index}return null}function m(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,u=a.axis,c=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,a,r),h=e.length;let d;for(let f=0;f<h;++f){const t=e[f],{[l]:n,[u]:o}=t;d=(t._stacks||(t._stacks={}))[u]=p(i,c,n),d[s]=o,d._top=g(d,a,!0,r.type),d._bottom=g(d,a,!1,r.type);(d._visualValues||(d._visualValues={}))[s]=o}}function b(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function v(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const y=t=>"reset"===t||"none"===t,w=(t,e)=>e?t:Object.assign({},t);class D{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=f(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&v(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=(0,r.v)(n.xAxisID,b(t,"x")),a=e.yAxisID=(0,r.v)(n.yAxisID,b(t,"y")),s=e.rAxisID=(0,r.v)(n.rAxisID,b(t,"r")),l=e.indexAxis,u=e.iAxisID=i(l,o,a,s),c=e.vAxisID=i(l,a,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(u),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,r.u)(this._data,this),t._stacked&&v(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,r.i)(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:r}=e,i="x"===n.axis?"x":"y",o="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],s[l]={[i]:c,[o]:t[c]};return s}(e,t)}else if(n!==e){if(n){(0,r.u)(n,this);const t=this._cachedMeta;v(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,r.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=e._stacked;e._stacked=f(e.vScale,e),e.stack!==n.stack&&(r=!0,v(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&(m(this,e._parsed),e._stacked=f(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,s=o.axis;let l,u,c,h=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=(0,r.b)(i[t])?this.parseArrayData(n,i,t,e):(0,r.i)(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===u[s]||d&&u[s]<d[s];for(l=0;l<e;++l)n._parsed[l+t]=u=c[l],h&&(o()&&(h=!1),d=u);n._sorted=h}a&&m(this,c)}parsePrimitiveData(t,e,n,r){const{iScale:i,vScale:o}=t,a=i.axis,s=o.axis,l=i.getLabels(),u=i===o,c=new Array(r);let h,d,f;for(h=0,d=r;h<d;++h)f=h+n,c[h]={[a]:u||i.parse(l[f],f),[s]:o.parse(e[f],f)};return c}parseArrayData(t,e,n,r){const{xScale:i,yScale:o}=t,a=new Array(r);let s,l,u,c;for(s=0,l=r;s<l;++s)u=s+n,c=e[u],a[s]={x:i.parse(c[0],u),y:o.parse(c[1],u)};return a}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,h,d,f;for(c=0,h=i;c<h;++c)d=c+n,f=e[d],u[c]={x:o.parse((0,r.f)(f,s),d),y:a.parse((0,r.f)(f,l),d)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,i=this._cachedMeta,o=e[t.axis];return d({keys:h(r,!0),values:e._stacks[t.axis]._visualValues},o,i.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const i=n[e.axis];let o=null===i?NaN:i;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,o=d(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,s=this._getOtherScale(t),l=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:h(n,!0),values:null})(e,n,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(s);let f,p;function g(){p=i[f];const e=p[s.axis];return!(0,r.g)(p[t.axis])||c>e||d<e}for(f=0;f<a&&(g()||(this.updateRangeFromParsed(u,t,p,l),!o));++f);if(o)for(f=a-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(u,t,p,l);break}return u}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],(0,r.g)(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return(0,r.i)(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}((0,r.v)(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=c(t,n),i=c(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],i=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(t,i,a,s),u=a;u<a+s;++u){const e=r[u];e.hidden||(e.active&&l?o.push(e):e.draw(t,i))}for(u=0;u<o.length;++u)o[u].draw(t,i)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return(0,r.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return(0,r.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,s=o[a],l=this.enableOptionSharing&&(0,r.h)(n);if(s)return w(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],d=u.getOptionScopes(this.getDataset(),c),f=Object.keys(r.d.elements[t]),p=u.resolveNamedOptions(d,f,(()=>this.getContext(n,i,e)),h);return p.$shared&&(p.$shared=l,o[a]=Object.freeze(w(p,l))),p}_resolveAnimations(t,e,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${e}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,e),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(t,n,e))}const l=new u(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||y(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:o}}updateElement(t,e,n,r){y(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!y(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const r=n.length,i=e.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,e,n=!0){const r=this._cachedMeta,i=r.data,o=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(i,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&v(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function x(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=(0,r._)(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,o,a,s,l=e._length;const u=()=>{32767!==a&&-32768!==a&&((0,r.h)(s)&&(l=Math.min(l,Math.abs(a-s)||l)),s=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),u();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),u();return l}function _(t,e,n,i){return(0,r.b)(t)?function(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function k(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,l=[];let u,c,h,d;for(u=n,c=n+r;u<c;++u)d=e[u],h={},h[i.axis]=s||i.parse(a[u],u),l.push(_(d,h,o,u));return l}function S(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function C(t,e,n,r){let i=e.borderSkipped;const o={};if(!i)return void(t.borderSkipped=o);if(!0===i)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:u,bottom:c}=function(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}(t);"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(o[F(c,a,s,l)]=!0,i=u)),o[F(i,a,s,l)]=!0,t.borderSkipped=o}function F(t,e,n,r){var i,o,a;return r?(a=n,t=A(t=(i=t)===(o=e)?a:i===a?o:i,n,e)):t=A(t,e,n),t}function A(t,e,n){return"start"===t?e:"end"===t?n:t}function E(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class L extends D{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,r){return k(t,e,n,r)}parseArrayData(t,e,n,r){return k(t,e,n,r)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u="x"===o.axis?s:l,c="x"===a.axis?s:l,h=[];let d,f,p,g;for(d=n,f=n+i;d<f;++d)g=e[d],p={},p[o.axis]=o.parse((0,r.f)(g,u),d),h.push(_((0,r.f)(g,c),p,a,d));return h}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const i=n._custom;i&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,i=this.getParsed(t),o=i._custom,a=S(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,i);for(let f=e;f<e+n;f++){const e=this.getParsed(f),n=o||(0,r.k)(e[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,c),g=(e._stacks||{})[s.axis],m={horizontal:u,base:n.base,enableBorderRadius:!g||S(e._custom)||a===g._top||a===g._bottom,x:u?n.head:p.center,y:u?p.center:n.head,height:u?p.size:Math.abs(n.size),width:u?Math.abs(n.size):p.size};d&&(m.options=h||this.resolveDataElementOptions(f,t[f].active?"active":i));const b=m.options||t[f].options;C(m,b,g,a),E(m,b,c.ratio),this.updateElement(t[f],f,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(e),l=s&&s[n.axis],u=t=>{const e=t._parsed.find((t=>t[n.axis]===l)),i=e&&e[t.vScale.axis];if((0,r.k)(i)||isNaN(i))return!0};for(const r of i)if((void 0===e||!u(r))&&((!1===o||-1===a.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&a.push(r.stack),r.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((n=>t[n].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[(0,r.v)("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let i,o;for(i=0,o=e.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const a=t.barThickness;return{min:a||x(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),u=l._custom,c=S(u);let h,d,f=l[e.axis],p=0,g=n?this.applyStack(e,l,n):f;g!==f&&(p=g-f,g=f),c&&(f=u.barStart,g=u.barEnd-u.barStart,0!==f&&(0,r.s)(f)!==(0,r.s)(u.barEnd)&&(p=0),p+=f);const m=(0,r.k)(o)||c?p:o;let b=e.getPixelForValue(m);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):b,d=h-b,Math.abs(d)<a){d=function(t,e,n){return 0!==t?(0,r.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,s)*a,f===s&&(b-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),u=Math.min(t,o),p=Math.max(t,o);b=Math.max(Math.min(b,p),u),h=b+d,n&&!c&&(l._stacks[e.axis]._visualValues[i]=e.getValueForPixel(h)-e.getValueForPixel(b))}if(b===e.getPixelForValue(s)){const t=(0,r.s)(d)*e.getLineWidthForValue(s)/2;b+=t,d-=t}return{size:d,base:b,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=(0,r.v)(i.maxBarThickness,1/0);let s,l;const u=this._getAxisCount();if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,c="flex"===i.barThickness?function(t,e,n,r){const i=e.pixels,o=i[t];let a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}(t,e,i,n*u):function(t,e,n,i){const o=n.barThickness;let a,s;return(0,r.k)(o)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=o*i,s=1),{chunk:a/i,ratio:s,start:e.pixels[t]-a/2}}(t,e,i,n*u),h="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf((0,r.v)(h,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+d;s=c.start+c.chunk*f+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(a,e.min*e.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)null===this.getParsed(i)[e.axis]||n[i].hidden||n[i].draw(this._ctx)}}class N extends D{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){const i=super.parsePrimitiveData(t,e,n,r);for(let o=0;o<i.length;o++)i[o]._custom=this.resolveDataElementOptions(o+n).radius;return i}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let a=0;a<o.length;a++){const t=e[n+a];o[a]._custom=(0,r.v)(t[2],this.resolveDataElementOptions(a+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let a=0;a<o.length;a++){const t=e[n+a];o[a]._custom=(0,r.v)(t&&t.r&&+t.r,this.resolveDataElementOptions(a+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y),l=o._custom;return{label:n[t]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,r),u=o.axis,c=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!i&&this.getParsed(h),d={},f=d[u]=i?o.getPixelForDecimal(.5):o.getPixelForValue(n[u]),p=d[c]=i?a.getBasePixel():a.getPixelForValue(n[c]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=s||this.resolveDataElementOptions(h,e.active?"active":r),i&&(d.options.radius=0)),this.updateElement(e,h,d,r)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=(0,r.v)(n&&n._custom,o),i}}class P extends D{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:o,borderRadius:a}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map(((e,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:r,pointStyle:n,borderRadius:o&&(a||l.borderRadius),index:s}})):[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,s=t=>+n[t];if((0,r.i)(n[t])){const{key:t="value"}=this._parsing;s=e=>+(0,r.f)(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=s(o)}}_getRotation(){return(0,r.t)(this.options.rotation-90)}_getCircumference(){return(0,r.t)(this.options.circumference)}_getRotationExtents(){let t=r.T,e=-r.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-a)/2,0),l=Math.min((0,r.m)(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:h}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:p,offsetY:g}=function(t,e,n){let i=1,o=1,a=0,s=0;if(e<r.T){const l=t,u=l+e,c=Math.cos(l),h=Math.sin(l),d=Math.cos(u),f=Math.sin(u),p=(t,e,i)=>(0,r.p)(t,l,u,!0)?1:Math.max(e,e*n,i,i*n),g=(t,e,i)=>(0,r.p)(t,l,u,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,d),b=p(r.H,h,f),v=g(r.P,c,d),y=g(r.P+r.H,h,f);i=(m-v)/2,o=(b-y)/2,a=-(m+v)/2,s=-(b+y)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:s}}(h,c,l),m=(n.width-a)/d,b=(n.height-a)/f,v=Math.max(Math.min(m,b)/2,0),y=(0,r.n)(this.options.radius,v),w=(y-Math.max(y*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=g*y,i.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/r.T)}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=i&&s.animateScale,h=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,r);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,i);for(g=e;g<e+n;++g){const e=this._circumference(g,i),n=t[g],o={x:l+this.offsetX,y:u+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:h};p&&(o.options=f||this.resolveDataElementOptions(g,n.active?"active":r)),m+=e,this.updateElement(n,g,o,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const i=t._parsed[n];null===i||isNaN(i)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(i))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?r.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=(0,r.o)(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,i,o,a,s;if(!t)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){o=n.getDatasetMeta(r),t=o.data,a=o.controller;break}if(!t)return 0;for(r=0,i=t.length;r<i;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,r.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class M extends D{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:s,count:l}=(0,r.q)(e,i,a);this._drawStart=s,this._drawCount=l,(0,r.w)(e)&&(s=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,i),d=a.axis,f=s.axis,{spanGaps:p,segment:g}=this.options,m=(0,r.x)(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i,v=e+n,y=t.length;let w=e>0&&this.getParsed(e-1);for(let D=0;D<y;++D){const n=t[D],p=b?n:{};if(D<e||D>=v){p.skip=!0;continue}const y=this.getParsed(D),x=(0,r.k)(y[f]),_=p[d]=a.getPixelForValue(y[d],D),k=p[f]=o||x?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,y,l):y[f],D);p.skip=isNaN(_)||isNaN(k)||x,p.stop=D>0&&Math.abs(y[d]-w[d])>m,g&&(p.parsed=y,p.raw=u.data[D]),h&&(p.options=c||this.resolveDataElementOptions(D,n.active?"active":i)),b||this.updateElement(n,D,p,i),w=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class O extends D{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=(0,r.o)(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return r.y.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<e.min&&(e.min=r),r>e.max&&(e.max=r))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,h=l.getIndexAngle(0)-.5*r.P;let d,f=h;const p=360/this.countVisibleElements();for(d=0;d<e;++d)f+=this._computeAngle(d,i,p);for(d=e;d<e+n;d++){const e=t[d];let n=f,r=f+this._computeAngle(d,i,p),g=a.getDataVisibility(d)?l.getDistanceFromCenterForValue(this.getParsed(d).r):0;f=r,o&&(s.animateScale&&(g=0),s.animateRotate&&(n=r=h));const m={x:u,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:r,options:this.resolveDataElementOptions(d,e.active?"active":i)};this.updateElement(e,d,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?(0,r.t)(this.resolveDataElementOptions(t,e).angle||n):0}}class I extends P{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}var T=Object.freeze({__proto__:null,BarController:L,BubbleController:N,DoughnutController:P,LineController:M,PieController:I,PolarAreaController:O,RadarController:class extends D{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return r.y.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],i=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":r),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,u=o?i.yCenter:s.y,c={x:l,y:u,angle:s.angle,skip:isNaN(l)||isNaN(u),options:n};this.updateElement(e,a,c,r)}}},ScatterController:class extends D{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y);return{label:n[t]||"",value:"("+a+", "+s+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=(0,r.q)(e,n,i);if(this._drawStart=o,this._drawCount=a,(0,r.w)(e)&&(o=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:o}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(c),d=this.includeOptions(i,h),f=a.axis,p=s.axis,{spanGaps:g,segment:m}=this.options,b=(0,r.x)(g)?g:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===i;let y=e>0&&this.getParsed(e-1);for(let w=e;w<e+n;++w){const e=t[w],n=this.getParsed(w),c=v?e:{},g=(0,r.k)(n[p]),D=c[f]=a.getPixelForValue(n[f],w),x=c[p]=o||g?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,n,l):n[p],w);c.skip=isNaN(D)||isNaN(x)||g,c.stop=w>0&&Math.abs(n[f]-y[f])>b,m&&(c.parsed=n,c.raw=u.data[w]),d&&(c.options=h||this.resolveDataElementOptions(w,e.active?"active":i)),v||this.updateElement(e,w,c,i),y=n}this.updateSharedOptions(h,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!e.length)return r;const i=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,i,o)/2}}});function R(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class j{static override(t){Object.assign(j.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return R()}parse(){return R()}format(){return R()}add(){return R()}diff(){return R()}startOf(){return R()}endOf(){return R()}}var B={_date:j};function z(t,e,n,i){const{controller:o,data:a,_sorted:s}=t,l=o._cachedMeta.iScale,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(l&&e===l.axis&&"r"!==e&&s&&a.length){const s=l._reversePixels?r.A:r.B;if(!i){const i=s(a,e,n);if(u){const{vScale:e}=o._cachedMeta,{_parsed:n}=t,a=n.slice(0,i.lo+1).reverse().findIndex((t=>!(0,r.k)(t[e.axis])));i.lo-=Math.max(0,a);const s=n.slice(i.hi).findIndex((t=>!(0,r.k)(t[e.axis])));i.hi+=Math.max(0,s)}return i}if(o._sharedOptions){const t=a[0],r="function"===typeof t.getRange&&t.getRange(e);if(r){const t=s(a,e,n-r),i=s(a,e,n+r);return{lo:t.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function q(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let s=0,l=o.length;s<l;++s){const{index:t,data:n}=o[s],{lo:l,hi:u}=z(o[s],e,a,i);for(let e=l;e<=u;++e){const i=n[e];i.skip||r(i,t,e)}}}function W(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return q(t,n,e,(function(n,s,l){(o||(0,r.C)(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:s,index:l})}),!0),a}function H(t,e,n,r,i,o){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return q(t,n,e,(function(n,u,c){const h=n.inRange(e.x,e.y,i);if(r&&!h)return;const d=n.getCenterPoint(i);if(!(!!o||t.isPointInArea(d))&&!h)return;const f=s(e,d);f<l?(a=[{element:n,datasetIndex:u,index:c}],l=f):f===l&&a.push({element:n,datasetIndex:u,index:c})})),a}function U(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?H(t,e,n,i,o,a):function(t,e,n,i){let o=[];return q(t,n,e,(function(t,n,a){const{startAngle:s,endAngle:l}=t.getProps(["startAngle","endAngle"],i),{angle:u}=(0,r.D)(t,{x:e.x,y:e.y});(0,r.p)(u,s,l)&&o.push({element:t,datasetIndex:n,index:a})})),o}(t,e,n,o):[]}function Y(t,e,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return q(t,n,e,((t,r,l)=>{t[a]&&t[a](e[n],i)&&(o.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:o}var V={evaluateInteractionItems:q,modes:{index(t,e,n,i){const o=(0,r.z)(e,t),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?W(t,o,a,i,s):U(t,o,a,!1,i,s),u=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,n=t.data[e];n&&!n.skip&&u.push({element:n,datasetIndex:t.index,index:e})})),u):[]},dataset(t,e,n,i){const o=(0,r.z)(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?W(t,o,a,i,s):U(t,o,a,!1,i,s);if(l.length>0){const e=l[0].datasetIndex,n=t.getDatasetMeta(e).data;l=[];for(let t=0;t<n.length;++t)l.push({element:n[t],datasetIndex:e,index:t})}return l},point:(t,e,n,i)=>W(t,(0,r.z)(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=(0,r.z)(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return U(t,o,a,n.intersect,i,s)},x:(t,e,n,i)=>Y(t,(0,r.z)(e,t),"x",n.intersect,i),y:(t,e,n,i)=>Y(t,(0,r.z)(e,t),"y",n.intersect,i)}};const $=["left","top","right","bottom"];function G(t,e){return t.filter((t=>t.pos===e))}function K(t,e){return t.filter((t=>-1===$.indexOf(t.pos)&&t.box.axis===e))}function J(t,e){return t.sort(((t,n)=>{const r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function X(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:i}=n;if(!t||!$.includes(r))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const{fullSize:a}=s.box,l=n[s.stack],u=l&&s.stackWeight/l.weight;s.horizontal?(s.width=u?u*r:a&&e.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:a&&e.availableHeight)}return n}function Q(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Z(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function tt(t,e,n,i){const{pos:o,box:a}=n,s=t.maxPadding;if(!(0,r.i)(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Z(s,a.getPadding());const l=Math.max(0,e.outerWidth-Q(s,t,"left","right")),u=Math.max(0,e.outerHeight-Q(s,t,"top","bottom")),c=l!==t.w,h=u!==t.h;return t.w=l,t.h=u,n.horizontal?{same:c,other:h}:{same:h,other:c}}function et(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function nt(t,e,n,r){const i=[];let o,a,s,l,u,c;for(o=0,a=t.length,u=0;o<a;++o){s=t[o],l=s.box,l.update(s.width||e.w,s.height||e.h,et(s.horizontal,e));const{same:a,other:h}=tt(e,n,s,r);u|=a&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&nt(i,e,n,r)||c}function rt(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function it(t,e,n,i){const o=n.padding;let{x:a,y:s}=e;for(const l of t){const t=l.box,u=i[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/u.weight||1;if(l.horizontal){const i=e.w*c,a=u.size||t.height;(0,r.h)(u.start)&&(s=u.start),t.fullSize?rt(t,o.left,s,n.outerWidth-o.right-o.left,a):rt(t,e.left+u.placed,s,i,a),u.start=s,u.placed+=i,s=t.bottom}else{const i=e.h*c,s=u.size||t.width;(0,r.h)(u.start)&&(a=u.start),t.fullSize?rt(t,a,o.top,s,n.outerHeight-o.bottom-o.top):rt(t,a,e.top+u.placed,s,i),u.start=a,u.placed+=i,a=t.right}}e.x=a,e.y=s}var ot={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=(0,r.E)(t.options.layout.padding),a=Math.max(e-o.width,0),s=Math.max(n-o.height,0),l=function(t){const e=function(t){const e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],({position:o,options:{stack:a,stackWeight:s=1}}=i),e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return e}(t),n=J(e.filter((t=>t.box.fullSize)),!0),r=J(G(e,"left"),!0),i=J(G(e,"right")),o=J(G(e,"top"),!0),a=J(G(e,"bottom")),s=K(e,"x"),l=K(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:G(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(t.boxes),u=l.vertical,c=l.horizontal;(0,r.F)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const h=u.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),f=Object.assign({},o);Z(f,(0,r.E)(i));const p=Object.assign({maxPadding:f,w:a,h:s,x:o.left,y:o.top},o),g=X(u.concat(c),d);nt(l.fullSize,p,d,g),nt(u,p,d,g),nt(c,p,d,g)&&nt(u,p,d,g),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),it(l.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,it(l.rightAndBottom,p,d,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,r.F)(l.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class at{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class st extends at{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const lt="$chartjs",ut={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ct=t=>null===t||""===t;const ht=!!r.K&&{passive:!0};function dt(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,ht)}function ft(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function pt(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||ft(n.addedNodes,r),e=e&&!ft(n.removedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function gt(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||ft(n.removedNodes,r),e=e&&!ft(n.addedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const mt=new Map;let bt=0;function vt(){const t=window.devicePixelRatio;t!==bt&&(bt=t,mt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function yt(t,e,n){const i=t.canvas,o=i&&(0,r.I)(i);if(!o)return;const a=(0,r.L)(((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||a(n,r)}));return s.observe(o),function(t,e){mt.size||window.addEventListener("resize",vt),mt.set(t,e)}(t,a),s}function wt(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){mt.delete(t),mt.size||window.removeEventListener("resize",vt)}(t)}function Dt(t,e,n){const i=t.canvas,o=(0,r.L)((e=>{null!==t.ctx&&n(function(t,e){const n=ut[t.type]||t.type,{x:i,y:o}=(0,r.z)(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,ht)}(i,e,o),o}class xt extends at{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[lt]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ct(o)){const e=(0,r.J)(t,"width");void 0!==e&&(t.width=e)}if(ct(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,r.J)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[lt])return!1;const n=e[lt].initial;["height","width"].forEach((t=>{const i=n[t];(0,r.k)(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[lt],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),i={attach:pt,detach:gt,resize:yt}[e]||Dt;r[e]=i(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:wt,detach:wt,resize:wt}[e]||dt)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return(0,r.G)(t,e,n,i)}isAttached(t){const e=t&&(0,r.I)(t);return!(!e||!e.isConnected)}}class _t{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,r.x)(this.x)&&(0,r.x)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),r}}function kt(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}(t),o=Math.min(n.maxTicksLimit||i,i),a=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],s=a.length,l=a[0],u=a[s-1],c=[];if(s>o)return function(t,e,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===a&&(e.push(t[i]),o++,a=n[o*r])}(e,c,a,s/o),c;const h=function(t,e,n){const i=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=(0,r.N)(i);for(let r=0,s=a.length-1;r<s;r++){const t=a[r];if(t>o)return t}return Math.max(o,1)}(a,e,o);if(s>0){let t,n;const i=s>1?Math.round((u-l)/(s-1)):null;for(St(e,c,h,(0,r.k)(i)?0:l-i,l),t=0,n=s-1;t<n;t++)St(e,c,h,a[t],a[t+1]);return St(e,c,h,u,(0,r.k)(i)?e.length:u+i),c}return St(e,c,h),c}function St(t,e,n,i,o){const a=(0,r.v)(i,0),s=Math.min((0,r.v)(o,t.length),t.length);let l,u,c,h=0;for(n=Math.ceil(n),o&&(l=o-i,n=l/Math.floor(l/n)),c=a;c<0;)h++,c=Math.round(a+h*n);for(u=Math.max(a,0);u<s;u++)u===c&&(e.push(t[u]),h++,c=Math.round(a+h*n))}const Ct=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Ft=(t,e)=>Math.min(e||t,t);function At(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function Et(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel,s=1e-6;let l,u=t.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(u-o,a-u):0===e?(t.getPixelForTick(1)-u)/2:(u-t.getPixelForTick(i-1))/2,u+=i<e?l:-l,u<o-s||u>a+s)))return u}function Lt(t){return t.drawTicks?t.tickLength:0}function Nt(t,e){if(!t.display)return 0;const n=(0,r.a0)(t.font,e),i=(0,r.E)(t.padding);return((0,r.b)(t.text)?t.text.length:1)*n.lineHeight+i.height}function Pt(t,e,n){let i=(0,r.a1)(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Mt extends _t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=(0,r.O)(t,Number.POSITIVE_INFINITY),e=(0,r.O)(e,Number.NEGATIVE_INFINITY),n=(0,r.O)(n,Number.POSITIVE_INFINITY),i=(0,r.O)(i,Number.NEGATIVE_INFINITY),{min:(0,r.O)(t,n),max:(0,r.O)(e,i),minDefined:(0,r.g)(t),maxDefined:(0,r.g)(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let r=0,l=s.length;r<l;++r)e=s[r].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:(0,r.O)(n,(0,r.O)(i,n)),max:(0,r.O)(i,(0,r.O)(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,r.Q)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,r.R)(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?At(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=kt(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,r.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,r.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,r.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,r.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,r.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=(0,r.Q)(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){(0,r.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,r.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Ft(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,o=e.maxRotation;let a,s,l,u=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,f=(0,r.S)(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/n:f/(n-1),h+6>a&&(a=f/(n-(t.offset?.5:1)),s=this.maxHeight-Lt(t.grid)-e.padding-Nt(t.title,this.chart.options.font),l=Math.sqrt(h*h+d*d),u=(0,r.U)(Math.min(Math.asin((0,r.S)((c.highest.height+6)/a,-1,1)),Math.asin((0,r.S)(s/l,-1,1))-Math.asin((0,r.S)(d/l,-1,1)))),u=Math.max(i,Math.min(o,u))),this.labelRotation=u}afterCalculateLabelRotation(){(0,r.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,r.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=Nt(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=Lt(o)+a):(t.height=this.maxHeight,t.width=Lt(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),l=2*n.padding,u=(0,r.t)(this.labelRotation),c=Math.cos(u),h=Math.sin(u);if(s){const e=n.mirror?0:h*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=n.mirror?0:c*o.width+h*a.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,i,h,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,h=0;s?l?(c=r*t.width,h=n*e.height):(c=n*t.height,h=r*e.width):"start"===i?h=e.width:"end"===i?c=t.width:"inner"!==i&&(c=t.width/2,h=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let n=e.height/2,r=t.height/2;"start"===i?(n=0,r=t.height):"end"===i&&(n=e.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,r.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,r.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=At(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(e/Ft(e,n));let u,c,h,d,f,p,g,m,b,v,y,w=0,D=0;for(u=0;u<e;u+=l){if(d=t[u].label,f=this._resolveTickFontOptions(u),i.font=p=f.string,g=o[p]=o[p]||{data:{},gc:[]},m=f.lineHeight,b=v=0,(0,r.k)(d)||(0,r.b)(d)){if((0,r.b)(d))for(c=0,h=d.length;c<h;++c)y=d[c],(0,r.k)(y)||(0,r.b)(y)||(b=(0,r.V)(i,g.data,g.gc,b,y),v+=m)}else b=(0,r.V)(i,g.data,g.gc,b,d),v=m;a.push(b),s.push(v),w=Math.max(b,w),D=Math.max(v,D)}!function(t,e){(0,r.F)(t,(t=>{const n=t.gc,r=n.length/2;let i;if(r>e){for(i=0;i<r;++i)delete t.data[n[i]];n.splice(0,r)}}))}(o,e);const x=a.indexOf(w),_=s.indexOf(D),k=t=>({width:a[t]||0,height:s[t]||0});return{first:k(0),last:k(e-1),widest:k(x),highest:k(_),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,r.W)(this._alignToPixels?(0,r.X)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return(0,r.j)(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=(n=this.chart.getContext(),i=this,(0,r.j)(n,{scale:i,type:"scale"})));var n,i}_tickSize(){const t=this.options.ticks,e=(0,r.t)(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,u=this.isHorizontal(),c=this.ticks.length+(l?1:0),h=Lt(o),d=[],f=s.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,m=function(t){return(0,r.X)(n,t,p)};let b,v,y,w,D,x,_,k,S,C,F,A;if("top"===a)b=m(this.bottom),x=this.bottom-h,k=b-g,C=m(t.top)+g,A=t.bottom;else if("bottom"===a)b=m(this.top),C=t.top,A=m(t.bottom)-g,x=b+g,k=this.top+h;else if("left"===a)b=m(this.right),D=this.right-h,_=b-g,S=m(t.left)+g,F=t.right;else if("right"===a)b=m(this.left),S=t.left,F=m(t.right)-g,D=b+g,_=this.left+h;else if("x"===e){if("center"===a)b=m((t.top+t.bottom)/2+.5);else if((0,r.i)(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}C=t.top,A=t.bottom,x=b+g,k=x+h}else if("y"===e){if("center"===a)b=m((t.left+t.right)/2);else if((0,r.i)(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}D=b-g,_=D-h,S=t.left,F=t.right}const E=(0,r.v)(i.ticks.maxTicksLimit,c),L=Math.max(1,Math.ceil(c/E));for(v=0;v<c;v+=L){const t=this.getContext(v),e=o.setContext(t),i=s.setContext(t),a=e.lineWidth,c=e.color,h=i.dash||[],f=i.dashOffset,p=e.tickWidth,g=e.tickColor,m=e.tickBorderDash||[],b=e.tickBorderDashOffset;y=Et(this,v,l),void 0!==y&&(w=(0,r.X)(n,y,a),u?D=_=S=F=w:x=k=C=A=w,d.push({tx1:D,ty1:x,tx2:_,ty2:k,x1:S,y1:C,x2:F,y2:A,width:a,color:c,borderDash:h,borderDashOffset:f,tickWidth:p,tickColor:g,tickBorderDash:m,tickBorderDashOffset:b}))}return this._ticksLength=c,this._borderValue=b,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:h}=o,d=Lt(n.grid),f=d+c,p=h?-c:f,g=-(0,r.t)(this.labelRotation),m=[];let b,v,y,w,D,x,_,k,S,C,F,A,E="middle";if("top"===i)x=this.bottom-p,_=this._getXAxisLabelAlignment();else if("bottom"===i)x=this.top+p,_=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,D=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,D=t.x}else if("x"===e){if("center"===i)x=(t.top+t.bottom)/2+f;else if((0,r.i)(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)+f}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)D=(t.left+t.right)/2-f;else if((0,r.i)(i)){const t=Object.keys(i)[0],e=i[t];D=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===l?E="top":"end"===l&&(E="bottom"));const L=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],w=y.label;const t=o.setContext(this.getContext(b));k=this.getPixelForTick(b)+o.labelOffset,S=this._resolveTickFontOptions(b),C=S.lineHeight,F=(0,r.b)(w)?w.length:1;const e=F/2,n=t.color,l=t.textStrokeColor,c=t.textStrokeWidth;let d,f=_;if(a?(D=k,"inner"===_&&(f=b===v-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===u||0!==g?-F*C+C/2:"center"===u?-L.highest.height/2-e*C+C:-L.highest.height+C/2:"near"===u||0!==g?C/2:"center"===u?L.highest.height/2-e*C:L.highest.height-F*C,h&&(A*=-1),0===g||t.showLabelBackdrop||(D+=C/2*Math.sin(g))):(x=k,A=(1-F)*C/2),t.showLabelBackdrop){const e=(0,r.E)(t.backdropPadding),n=L.heights[b],i=L.widths[b];let o=A-e.top,a=0-e.left;switch(E){case"middle":o-=n/2;break;case"bottom":o-=n}switch(_){case"center":a-=i/2;break;case"right":a-=i;break;case"inner":b===v-1?a-=i:b>0&&(a-=i/2)}d={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:w,font:S,textOffset:A,options:{rotation:g,color:n,strokeColor:l,strokeWidth:c,textAlign:f,textBaseline:E,translation:[D,x],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,r.t)(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,o=t+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:i,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(i=0,o=r.length;i<o;++i){const t=r[i];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,o=n.setContext(this.getContext()),a=n.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,h,d;this.isHorizontal()?(u=(0,r.X)(t,this.left,a)-a/2,c=(0,r.X)(t,this.right,s)+s/2,h=d=l):(h=(0,r.X)(t,this.top,a)-a/2,d=(0,r.X)(t,this.bottom,s)+s/2,u=c=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(u,h),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&(0,r.Y)(e,n);const i=this.getLabelItems(t);for(const o of i){const t=o.options,n=o.font,i=o.label,a=o.textOffset;(0,r.Z)(e,i,0,a,n,t)}n&&(0,r.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=(0,r.a0)(n.font),a=(0,r.E)(n.padding),s=n.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||(0,r.i)(e)?(l+=a.bottom,(0,r.b)(n.text)&&(l+=o.lineHeight*(n.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:h,rotation:d}=function(t,e,n,i){const{top:o,left:a,bottom:s,right:l,chart:u}=t,{chartArea:c,scales:h}=u;let d,f,p,g=0;const m=s-o,b=l-a;if(t.isHorizontal()){if(f=(0,r.a2)(i,a,l),(0,r.i)(n)){const t=Object.keys(n)[0],r=n[t];p=h[t].getPixelForValue(r)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:Ct(t,n,e);d=l-a}else{if((0,r.i)(n)){const t=Object.keys(n)[0],r=n[t];f=h[t].getPixelForValue(r)-b+e}else f="center"===n?(c.left+c.right)/2-b+e:Ct(t,n,e);p=(0,r.a2)(i,s,o),g="left"===n?-r.H:r.H}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}(this,l,e,s);(0,r.Z)(t,n.text,0,0,o,{color:n.color,maxWidth:h,rotation:d,textAlign:Pt(s,e,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,r.v)(t.grid&&t.grid.z,-1),i=(0,r.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Mt.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];o[n]!==this.id||t&&o.type!==t||r.push(o)}return r}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,r.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ot{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=(0,r.a4)(Object.create(null),[n?r.d.get(n):{},r.d.get(e),t.defaults]);r.d.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),s=e[n].split("."),l=s.pop(),u=s.join(".");r.d.route(a,o,u,l)}))}(e,t.defaultRoutes);t.descriptors&&r.d.describe(e,t.descriptors)}(t,a,n),this.override&&r.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in r.d[i]&&(delete r.d[i][n],this.override&&delete r.a3[n])}}class It{constructor(){this.controllers=new Ot(D,"datasets",!0),this.elements=new Ot(_t,"elements"),this.plugins=new Ot(Object,"plugins"),this.scales=new Ot(Mt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):(0,r.F)(e,(e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,n){const i=(0,r.a5)(t);(0,r.Q)(n["before"+i],[],n),e[t](n),(0,r.Q)(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var Tt=new It;class Rt{constructor(){this._init=void 0}notify(t,e,n,r){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const i=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin,a=t[n],s=[e,i,o.options];if(!1===(0,r.Q)(a,s,t)&&i.cancelable)return!1}return!0}invalidate(){(0,r.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=(0,r.v)(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],r=Object.keys(Tt.plugins.items);for(let o=0;o<r.length;o++)n.push(Tt.getPlugin(r[o]));const i=t.plugins||[];for(let o=0;o<i.length;o++){const t=i[o];-1===n.indexOf(t)&&(n.push(t),e[t.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},r,i){const o=[],a=t.getContext();for(const s of e){const e=s.id,l=jt(r[e],i);null!==l&&o.push({plugin:s,options:Bt(t.config,{plugin:s,local:n[e]},l,a)})}return o}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function jt(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(r,o);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zt(t,e){const n=r.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function qt(t){if("x"===t||"y"===t||"r"===t)return t}function Wt(t,...e){if(qt(t))return t;for(const r of e){const e=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&qt(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Ht(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Ut(t,e){const n=r.a3[t.type]||{scales:{}},i=e.scales||{},o=zt(t.type,e),a=Object.create(null);return Object.keys(i).forEach((e=>{const s=i[e];if(!(0,r.i)(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=Wt(e,s,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return Ht(t,"x",n[0])||Ht(t,"y",n[0])}return{}}(e,t),r.d.scales[s.type]),u=function(t,e){return t===e?"_index_":"_value_"}(l,o),c=n.scales||{};a[e]=(0,r.ab)(Object.create(null),[{axis:l},s,c[l],c[u]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,s=n.indexAxis||zt(o,e),l=(r.a3[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||e;a[o]=a[o]||Object.create(null),(0,r.ab)(a[o],[{axis:e},i[o],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];(0,r.ab)(e,[r.d.scales[e.type],r.d.scale])})),a}function Yt(t){const e=t.options||(t.options={});e.plugins=(0,r.v)(e.plugins,{}),e.scales=Ut(t,e)}function Vt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const $t=new Map,Gt=new Set;function Kt(t,e){let n=$t.get(t);return n||(n=e(),$t.set(t,n),Gt.add(n)),n}const Jt=(t,e,n)=>{const i=(0,r.f)(e,n);void 0!==i&&t.add(i)};class Xt{constructor(t){this._config=function(t){return(t=t||{}).data=Vt(t.data),Yt(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Vt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Yt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Kt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Kt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Kt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Kt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),s=a.get(e);if(s)return s;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Jt(l,t,e)))),e.forEach((t=>Jt(l,i,t))),e.forEach((t=>Jt(l,r.a3[o]||{},t))),e.forEach((t=>Jt(l,r.d,t))),e.forEach((t=>Jt(l,r.a6,t)))}));const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),Gt.has(e)&&a.set(e,u),u}chartOptionScopes(){const{options:t,type:e}=this;return[t,r.a3[e]||{},r.d.datasets[e]||{},{type:e},r.d,r.a6]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=Qt(this._resolverCache,t,i);let l=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=(0,r.aa)(t);for(const o of e){const e=n(o),a=i(o),s=(a||e)&&t[o];if(e&&((0,r.a7)(s)||Zt(s))||a&&(0,r.b)(s))return!0}return!1}(a,e)){o.$shared=!1,n=(0,r.a7)(n)?n():n;const e=this.createResolver(t,n,s);l=(0,r.a8)(a,n,e)}for(const r of e)o[r]=l[r];return o}createResolver(t,e,n=[""],i){const{resolver:o}=Qt(this._resolverCache,t,n);return(0,r.i)(e)?(0,r.a8)(o,e,void 0,i):o}}function Qt(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:(0,r.a9)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,a)}return a}const Zt=t=>(0,r.i)(t)&&Object.getOwnPropertyNames(t).some((e=>(0,r.a7)(t[e])));const te=["top","bottom","left","right","chartArea"];function ee(t,e){return"top"===t||"bottom"===t||-1===te.indexOf(t)&&"x"===e}function ne(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function re(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,r.Q)(n&&n.onComplete,[t],e)}function ie(t){const e=t.chart,n=e.options.animation;(0,r.Q)(n&&n.onProgress,[t],e)}function oe(t){return(0,r.M)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ae={},se=t=>{const e=oe(t);return Object.values(ae).filter((t=>t.canvas===e)).pop()};function le(t,e,n){const r=Object.keys(t);for(const i of r){const r=+i;if(r>=e){const o=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=o)}}}class ue{static defaults=r.d;static instances=ae;static overrides=r.a3;static registry=Tt;static version="4.5.1";static getChart=se;static register(...t){Tt.add(...t),ce()}static unregister(...t){Tt.remove(...t),ce()}constructor(t,e){const n=this.config=new Xt(e),i=oe(t),a=se(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!(0,r.M)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?st:xt}(i)),this.platform.updateConfig(n);const l=this.platform.acquireContext(i,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,h=u&&u.width;this.id=(0,r.ac)(),this.ctx=l,this.canvas=u,this.width=h,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Rt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,r.ad)((t=>this.update(t)),s.resizeDelay||0),this._dataChanges=[],ae[this.id]=this,l&&u?(o.listen(this,"complete",re),o.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return(0,r.k)(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Tt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,r.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,r.af)(this.canvas,this.ctx),this}stop(){return o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,r.ae)(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),(0,r.Q)(n.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,r.F)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],r=Wt(t,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),(0,r.F)(o,(e=>{const o=e.options,a=o.id,s=Wt(a,o),l=(0,r.v)(o.type,e.dtype);void 0!==o.position&&ee(o.position,s)===ee(e.dposition)||(o.position=e.dposition),i[a]=!0;let u=null;if(a in n&&n[a].type===l)u=n[a];else{u=new(Tt.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,t)})),(0,r.F)(i,((t,e)=>{t||delete n[e]})),(0,r.F)(n,(t=>{ot.configure(this,t,t.options),ot.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(ne("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||zt(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=Tt.getController(a),{datasetElementType:i,dataElementType:s}=r.d.datasets[a];Object.assign(e,{dataElementType:Tt.getElement(s),datasetElementType:i&&Tt.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){(0,r.F)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let r=0,u=this.data.datasets.length;r<u;r++){const{controller:t}=this.getDatasetMeta(r),e=!i&&-1===o.indexOf(t);t.buildOrUpdateElements(e),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||(0,r.F)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ne("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){(0,r.F)(this.scales,(t=>{ot.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,r.ag)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of e){le(t,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let o=1;o<e;o++)if(!(0,r.ag)(i,n(o)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ot.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,r.F)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,r.a7)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(o.has(this)?this.attached&&!o.running(this)&&o.start(this):(this.draw(),re({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];t&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=(0,r.ah)(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(i&&(0,r.Y)(e,i),t.controller.draw(),i&&(0,r.$)(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return(0,r.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=V.modes[e];return"function"===typeof i?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter((t=>t&&t._dataset===e)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=(0,r.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"===typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);(0,r.h)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),o.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,r.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ae[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,r.F)(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},i=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){(0,r.F)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,r.F)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===e&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!(0,r.ai)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=i(e,t),a=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,s=this._getActiveElements(t,i,n,a),l=(0,r.aj)(t),u=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,l);n&&(this._lastEvent=null,(0,r.Q)(o.onHover,[t,s,this],this),l&&(0,r.Q)(o.onClick,[t,s,this],this));const c=!(0,r.ai)(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=u,c}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}function ce(){return(0,r.F)(ue.instances,(t=>t._plugins.invalidate()))}function he(t,e,n,i){const o=(a=t.options.borderRadius,(0,r.am)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(n-e)/2,l=Math.min(s,i*e/2),u=t=>{const e=(n-Math.min(s,t))*i/2;return(0,r.S)(t,0,Math.min(s,e))};return{outerStart:u(o.outerStart),outerEnd:u(o.outerEnd),innerStart:(0,r.S)(o.innerStart,0,l),innerEnd:(0,r.S)(o.innerEnd,0,l)}}function de(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function fe(t,e,n,i,o,a){const{x:s,y:l,startAngle:u,pixelMargin:c,innerRadius:h}=e,d=Math.max(e.outerRadius+i+n-c,0),f=h>0?h+i+n+c:0;let p=0;const g=o-u;if(i){const t=((h>0?h-i:0)+(d>0?d-i:0))/2;p=(g-(0!==t?g*t/(t+i):g))/2}const m=(g-Math.max(.001,g*d-n/r.P)/d)/2,b=u+m+p,v=o-m-p,{outerStart:y,outerEnd:w,innerStart:D,innerEnd:x}=he(e,f,d,v-b),_=d-y,k=d-w,S=b+y/_,C=v-w/k,F=f+D,A=f+x,E=b+D/F,L=v-x/A;if(t.beginPath(),a){const e=(S+C)/2;if(t.arc(s,l,d,S,e),t.arc(s,l,d,e,C),w>0){const e=de(k,C,s,l);t.arc(e.x,e.y,w,C,v+r.H)}const n=de(A,v,s,l);if(t.lineTo(n.x,n.y),x>0){const e=de(A,L,s,l);t.arc(e.x,e.y,x,v+r.H,L+Math.PI)}const i=(v-x/f+(b+D/f))/2;if(t.arc(s,l,f,v-x/f,i,!0),t.arc(s,l,f,i,b+D/f,!0),D>0){const e=de(F,E,s,l);t.arc(e.x,e.y,D,E+Math.PI,b-r.H)}const o=de(_,b,s,l);if(t.lineTo(o.x,o.y),y>0){const e=de(_,S,s,l);t.arc(e.x,e.y,y,b-r.H,S)}}else{t.moveTo(s,l);const e=Math.cos(S)*d+s,n=Math.sin(S)*d+l;t.lineTo(e,n);const r=Math.cos(C)*d+s,i=Math.sin(C)*d+l;t.lineTo(r,i)}t.closePath()}function pe(t,e,n,i,o){const{fullCircles:a,startAngle:s,circumference:l,options:u}=e,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:f,borderRadius:p}=u,g="inner"===u.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=f,g?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let m=e.endAngle;if(a){fe(t,e,n,i,m,o);for(let e=0;e<a;++e)t.stroke();isNaN(l)||(m=s+(l%r.T||r.T))}g&&function(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:s,outerRadius:l,innerRadius:u}=e;let c=o/l;t.beginPath(),t.arc(a,s,l,i-c,n+c),u>o?(c=o/u,t.arc(a,s,u,n+c,i-c,!0)):t.arc(a,s,o,n+r.H,i-r.H),t.closePath(),t.clip()}(t,e,m),u.selfJoin&&m-s>=r.P&&0===p&&"miter"!==h&&function(t,e,n){const{startAngle:i,x:o,y:a,outerRadius:s,innerRadius:l,options:u}=e,{borderWidth:c,borderJoinStyle:h}=u,d=Math.min(c/s,(0,r.al)(i-n));if(t.beginPath(),t.arc(o,a,s-c/2,i+d/2,n-d/2),l>0){const e=Math.min(c/l,(0,r.al)(i-n));t.arc(o,a,l+c/2,n-e/2,i+e/2,!0)}else{const e=Math.min(c/2,s*(0,r.al)(i-n));if("round"===h)t.arc(o,a,e,n-r.P/2,i+r.P/2,!0);else if("bevel"===h){const s=2*e*e,l=-s*Math.cos(n+r.P/2)+o,u=-s*Math.sin(n+r.P/2)+a,c=s*Math.cos(i+r.P/2)+o,h=s*Math.sin(i+r.P/2)+a;t.lineTo(l,u),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,m),a||(fe(t,e,n,i,m,o),t.stroke())}class ge extends _t{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=(0,r.D)(i,{x:t,y:e}),{startAngle:s,endAngle:l,innerRadius:u,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,f=(0,r.v)(h,l-s),p=(0,r.p)(o,s,l)&&s!==l,g=f>=r.T||p,m=(0,r.ak)(a,u+d,c+d);return g&&m}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,u=(r+i)/2,c=(o+a+l+s)/2;return{x:e+Math.cos(u)*c,y:n+Math.sin(u)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>r.T?Math.floor(n/r.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=i*(1-Math.sin(Math.min(r.P,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,i,o){const{fullCircles:a,startAngle:s,circumference:l}=e;let u=e.endAngle;if(a){fe(t,e,n,i,u,o);for(let e=0;e<a;++e)t.fill();isNaN(l)||(u=s+(l%r.T||r.T))}fe(t,e,n,i,u,o),t.fill()}(t,this,l,o,a),pe(t,this,l,o,a),t.restore()}}function me(t,e,n=e){t.lineCap=(0,r.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,r.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,r.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,r.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,r.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,r.v)(n.borderColor,e.borderColor)}function be(t,e,n){t.lineTo(n.x,n.y)}function ve(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=e,l=Math.max(i,a),u=Math.min(o,s),c=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:e.loop,ilen:u<l&&!c?r+u-l:u-l}}function ye(t,e,n,i){const{points:o,options:a}=e,{count:s,start:l,loop:u,ilen:c}=ve(o,n,i),h=function(t){return t.stepped?r.at:t.tension||"monotone"===t.cubicInterpolationMode?r.au:be}(a);let d,f,p,{move:g=!0,reverse:m}=i||{};for(d=0;d<=c;++d)f=o[(l+(m?c-d:d))%s],f.skip||(g?(t.moveTo(f.x,f.y),g=!1):h(t,p,f,m,a.stepped),p=f);return u&&(f=o[(l+(m?c:0))%s],h(t,p,f,m,a.stepped)),!!u}function we(t,e,n,r){const i=e.points,{count:o,start:a,ilen:s}=ve(i,n,r),{move:l=!0,reverse:u}=r||{};let c,h,d,f,p,g,m=0,b=0;const v=t=>(a+(u?s-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(h=i[v(0)],t.moveTo(h.x,h.y)),c=0;c<=s;++c){if(h=i[v(c)],h.skip)continue;const e=h.x,n=h.y,r=0|e;r===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),d=r,b=0,f=p=n),g=n}y()}function De(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!n?we:ye}const xe="function"===typeof Path2D;function _e(t,e,n,r){xe&&!e.options.segment?function(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),me(t,e.options),t.stroke(i)}(t,e,n,r):function(t,e,n,r){const{segments:i,options:o}=e,a=De(e);for(const s of i)me(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}(t,e,n,r)}class ke extends _t{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;(0,r.an)(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,r.ao)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=(0,r.ap)(this,{property:e,start:i,end:i});if(!a.length)return;const s=[],l=function(t){return t.stepped?r.aq:t.tension||"monotone"===t.cubicInterpolationMode?r.ar:r.as}(n);let u,c;for(u=0,c=a.length;u<c;++u){const{start:r,end:c}=a[u],h=o[r],d=o[c];if(h===d){s.push(h);continue}const f=l(h,d,Math.abs((i-h[e])/(d[e]-h[e])),n.stepped);f[e]=t[e],s.push(f)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return De(this)(t,this,e,n)}path(t,e,n){const r=this.segments,i=De(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const a of r)o&=i(t,this,a,{start:e,end:e+n-1});return!!o}draw(t,e,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),_e(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Se(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)<i.radius+i.hitRadius}class Ce extends _t{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(t-i,2)+Math.pow(e-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return Se(this,t,"x",e)}inYRange(t,e){return Se(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,r.C)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,r.av)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Fe(t,e){const{x:n,y:r,base:i,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,u,c,h;return t.horizontal?(h=a/2,s=Math.min(n,i),l=Math.max(n,i),u=r-h,c=r+h):(h=o/2,s=n-h,l=n+h,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function Ae(t,e,n,i){return t?0:(0,r.S)(e,n,i)}function Ee(t){const e=Fe(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=(0,r.ax)(i);return{t:Ae(o.top,a.top,0,n),r:Ae(o.right,a.right,0,e),b:Ae(o.bottom,a.bottom,0,n),l:Ae(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=(0,r.ay)(o),s=Math.min(e,n),l=t.borderSkipped,u=i||(0,r.i)(o);return{topLeft:Ae(!u||l.top||l.left,a.topLeft,0,s),topRight:Ae(!u||l.top||l.right,a.topRight,0,s),bottomLeft:Ae(!u||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:Ae(!u||l.bottom||l.right,a.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Le(t,e,n,i){const o=null===e,a=null===n,s=t&&!(o&&a)&&Fe(t,i);return s&&(o||(0,r.ak)(e,s.left,s.right))&&(a||(0,r.ak)(n,s.top,s.bottom))}function Ne(t,e){t.rect(e.x,e.y,e.w,e.h)}function Pe(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+a,radius:t.radius}}class Me extends _t{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:a}=Ee(this),s=(l=a.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?r.aw:Ne;var l;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),s(t,Pe(a,e,o)),t.clip(),s(t,Pe(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Pe(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Le(this,t,e,n)}inXRange(t,e){return Le(this,t,null,e)}inYRange(t,e){return Le(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(e+r)/2:e,y:i?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var Oe=Object.freeze({__proto__:null,ArcElement:ge,BarElement:Me,LineElement:ke,PointElement:Ce});const Ie=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Te=Ie.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Re(t){return Ie[t%Ie.length]}function je(t){return Te[t%Te.length]}function Be(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof P?e=function(t,e){return t.backgroundColor=t.data.map((()=>Re(e++))),e}(n,e):i instanceof O?e=function(t,e){return t.backgroundColor=t.data.map((()=>je(e++))),e}(n,e):i&&(e=function(t,e){return t.borderColor=Re(e),t.backgroundColor=je(e),++e}(n,e))}}function ze(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var qe={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:o}=t.config,{elements:a}=o,s=ze(i)||(l=o)&&(l.borderColor||l.backgroundColor)||a&&ze(a)||"rgba(0,0,0,0.1)"!==r.d.borderColor||"rgba(0,0,0,0.1)"!==r.d.backgroundColor;var l;if(!n.forceOverride&&s)return;const u=Be(t);i.forEach(u)}};function We(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function He(t){t.data.datasets.forEach((t=>{We(t)}))}var Ue={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void He(t);const i=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:s}=e,l=t.getDatasetMeta(o),u=a||e.data;if("y"===(0,r.a)([s,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:d}=function(t,e){const n=e.length;let i,o=0;const{iScale:a}=t,{min:s,max:l,minDefined:u,maxDefined:c}=a.getUserBounds();return u&&(o=(0,r.S)((0,r.B)(e,a.axis,s).lo,0,n-1)),i=c?(0,r.S)((0,r.B)(e,a.axis,l).hi+1,o,n)-o:n-o,{start:o,count:i}}(l,u);if(d<=(n.threshold||4*i))return void We(e);let f;switch((0,r.k)(a)&&(e._data=u,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":f=function(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let l=0;const u=e+n-1;let c,h,d,f,p,g=e;for(a[l++]=t[g],c=0;c<o-2;c++){let r,i=0,o=0;const u=Math.floor((c+1)*s)+1+e,m=Math.min(Math.floor((c+2)*s)+1,n)+e,b=m-u;for(r=u;r<m;r++)i+=t[r].x,o+=t[r].y;i/=b,o/=b;const v=Math.floor(c*s)+1+e,y=Math.min(Math.floor((c+1)*s)+1,n)+e,{x:w,y:D}=t[g];for(d=f=-1,r=v;r<y;r++)f=.5*Math.abs((w-i)*(t[r].y-D)-(w-t[r].x)*(o-D)),f>d&&(d=f,h=t[r],p=r);a[l++]=h,g=p}return a[l++]=t[u],a}(u,h,d,i,n);break;case"min-max":f=function(t,e,n,i){let o,a,s,l,u,c,h,d,f,p,g=0,m=0;const b=[],v=e+n-1,y=t[e].x,w=t[v].x-y;for(o=e;o<e+n;++o){a=t[o],s=(a.x-y)/w*i,l=a.y;const e=0|s;if(e===u)l<f?(f=l,c=o):l>p&&(p=l,h=o),g=(m*g+a.x)/++m;else{const n=o-1;if(!(0,r.k)(c)&&!(0,r.k)(h)){const e=Math.min(c,h),r=Math.max(c,h);e!==d&&e!==n&&b.push({...t[e],x:g}),r!==d&&r!==n&&b.push({...t[r],x:g})}o>0&&n!==d&&b.push(t[n]),b.push(a),u=e,m=0,f=p=l,c=h=d=o}}return b}(u,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=f}))},destroy(t){He(t)}};function Ye(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=(0,r.al)(o),a=(0,r.al)(a)),{property:t,start:o,end:a}}function Ve(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function $e(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function Ge(t,e){let n=[],i=!1;return(0,r.b)(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Ve(t,e,i);const a=i[t],s=i[e];null!==r?(o.push({x:a.x,y:r}),o.push({x:s.x,y:r})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))})),o}(t,e),n.length?new ke({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Ke(t){return t&&!1!==t.fill}function Je(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!(0,r.g)(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function Xe(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=(0,r.v)(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if((0,r.i)(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return(0,r.g)(o)&&Math.floor(o)===o?function(t,e,n,r){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=r)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Qe(t,e,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=Ze(o,e,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(t.push(l),!s)break}t.push(...r)}function Ze(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,s=t.points;let l=!1,u=!1;for(let c=0;c<a.length;c++){const t=a[c],e=s[t.start][n],i=s[t.end][n];if((0,r.ak)(o,e,i)){l=o===e,u=o===i;break}}return{first:l,last:u,point:i}}class tn{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:r.T},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:r}=this,i=t.angle;return{x:e+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function en(t){const{chart:e,fill:n,line:i}=t;if((0,r.g)(n))return function(t,e){const n=t.getDatasetMeta(e),r=n&&t.isDatasetVisible(e);return r?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:r}=t,i=[],o=r.segments,a=r.points,s=function(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const t=r[i];if(t.index===e)break;t.hidden||n.unshift(t.dataset)}return n}(e,n);s.push(Ge({x:null,y:e.bottom},r));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)Qe(i,a[e],s)}return new ke({points:i,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,s=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:(0,r.i)(t)?t.value:e.getBaseValue(),i}(n,e,a),l=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new tn({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let r=0;r<o;++r)l.push(e.getPointPositionForValue(r,s));return l}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:(0,r.i)(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if((0,r.g)(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof tn?o:Ge(o,i)}function nn(t,e,n){const i=en(e),{chart:o,index:a,line:s,scale:l,axis:u}=e,c=s.options,h=c.fill,d=c.backgroundColor,{above:f=d,below:p=d}=h||{},g=o.getDatasetMeta(a),m=(0,r.ah)(o,g);i&&s.points.length&&((0,r.Y)(t,n),function(t,e){const{line:n,target:r,above:i,below:o,area:a,scale:s,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let c=o;o!==i&&("x"===u?(rn(t,r,a.top),an(t,{line:n,target:r,color:i,scale:s,property:u,clip:l}),t.restore(),t.save(),rn(t,r,a.bottom)):"y"===u&&(on(t,r,a.left),an(t,{line:n,target:r,color:o,scale:s,property:u,clip:l}),t.restore(),t.save(),on(t,r,a.right),c=i));an(t,{line:n,target:r,color:c,scale:s,property:u,clip:l}),t.restore()}(t,{line:s,target:i,above:f,below:p,area:n,scale:l,axis:u,clip:m}),(0,r.$)(t))}function rn(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,u=i[r],c=i[Ve(r,l,i)];o?(t.moveTo(u.x,u.y),o=!1):(t.lineTo(u.x,n),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(c.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function on(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,u=i[r],c=i[Ve(r,l,i)];o?(t.moveTo(u.x,u.y),o=!1):(t.lineTo(n,u.y),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(n,c.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function an(t,e){const{line:n,target:i,property:o,color:a,scale:s,clip:l}=e,u=function(t,e,n){const i=t.segments,o=t.points,a=e.points,s=[];for(const l of i){let{start:t,end:i}=l;i=Ve(t,i,o);const u=Ye(n,o[t],o[i],l.loop);if(!e.segments){s.push({source:l,target:u,start:o[t],end:o[i]});continue}const c=(0,r.ap)(e,u);for(const e of c){const t=Ye(n,a[e.start],a[e.end],e.loop),i=(0,r.az)(l,o,t);for(const r of i)s.push({source:r,target:e,start:{[n]:$e(u,t,"start",Math.max)},end:{[n]:$e(u,t,"end",Math.min)}})}}return s}(n,i,o);for(const{source:r,target:c,start:h,end:d}of u){const{style:{backgroundColor:e=a}={}}=r,u=!0!==i;t.save(),t.fillStyle=e,sn(t,s,l,u&&Ye(o,h,d)),t.beginPath();const f=!!n.pathSegment(t,r);let p;if(u){f?t.closePath():ln(t,i,d,o);const e=!!i.pathSegment(t,c,{move:f,reverse:!0});p=f&&e,p||ln(t,i,h,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function sn(t,e,n,r){const i=e.chart.chartArea,{property:o,start:a,end:s}=r||{};if("x"===o||"y"===o){let e,r,l,u;"x"===o?(e=a,r=i.top,l=s,u=i.bottom):(e=i.left,r=a,l=i.right,u=s),t.beginPath(),n&&(e=Math.max(e,n.left),l=Math.min(l,n.right),r=Math.max(r,n.top),u=Math.min(u,n.bottom)),t.rect(e,r,l-e,u-r),t.clip()}}function ln(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var un={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=t.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof ke&&(l={visible:t.isDatasetVisible(a),index:a,fill:Xe(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],l&&!1!==l.fill&&(l.fill=Je(i,a,n.propagate))},beforeDraw(t,e,n){const r="beforeDraw"===n.drawTime,i=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let a=i.length-1;a>=0;--a){const e=i[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),r&&e.fill&&nn(t.ctx,e,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const e=r[i].$filler;Ke(e)&&nn(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;Ke(r)&&"beforeDatasetDraw"===n.drawTime&&nn(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cn=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class hn extends _t{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,r.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=(0,r.a0)(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=cn(n,o);let u,c;e.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,o,s,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+a;let c=t;i.textAlign="left",i.textBaseline="middle";let h=-1,d=-u;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+i.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>o)&&(c+=u,l[l.length-(f>0?0:1)]=0,d+=u,h++),s[f]={left:0,top:d,row:h,width:p,height:r},l[l.length-1]+=p+a})),c}_fitCols(t,e,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=o-t;let c=a,h=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,r,i){const o=function(t,e,n,r){let i=t.text;i&&"string"!==typeof i&&(i=i.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+r.measureText(i).width}(r,t,e,n),a=function(t,e,n){let r=t;"string"!==typeof e.text&&(r=dn(e,n));return r}(i,r,e.lineHeight);return{itemWidth:o,itemHeight:a}}(n,e,i,t,r);o>0&&d+m+2*a>u&&(c+=h+a,l.push({width:h,height:d}),f+=h+a,p++,h=d=0),s[o]={left:f,top:d,col:p,width:g,height:m},h=Math.max(h,g),d+=m+a})),c+=h,l.push({width:h,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=(0,r.aA)(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=(0,r.a2)(n,this.left+i,this.right-this.lineWidths[o]);for(const l of e)o!==l.row&&(o=l.row,s=(0,r.a2)(n,this.left+i,this.right-this.lineWidths[o])),l.top+=this.top+t+i,l.left=a.leftForLtr(a.x(s),l.width),s+=l.width+i}else{let o=0,s=(0,r.a2)(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const l of e)l.col!==o&&(o=l.col,s=(0,r.a2)(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),l.top=s,l.left+=this.left+i,l.left=a.leftForLtr(a.x(l.left),l.width),s+=l.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,r.Y)(t,this),this._draw(),(0,r.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,s=r.d.color,l=(0,r.aA)(t.rtl,this.left,this.width),u=(0,r.a0)(a.font),{padding:c}=a,h=u.size,d=h/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=cn(a,h),b=this.isHorizontal(),v=this._computeTitleHeight();f=b?{x:(0,r.a2)(o,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:(0,r.a2)(o,this.top+v+c,this.bottom-e[0].height),line:0},(0,r.aB)(this.ctx,t.textDirection);const y=m+c;this.legendItems.forEach(((w,D)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fontColor;const x=i.measureText(w.text).width,_=l.textAlign(w.textAlign||(w.textAlign=a.textAlign)),k=p+d+x;let S=f.x,C=f.y;l.setWidth(this.width),b?D>0&&S+k+c>this.right&&(C=f.y+=y,f.line++,S=f.x=(0,r.a2)(o,this.left+c,this.right-n[f.line])):D>0&&C+y>this.bottom&&(S=f.x=S+e[f.line].width+c,f.line++,C=f.y=(0,r.a2)(o,this.top+v+c,this.bottom-e[f.line].height));if(function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const o=(0,r.v)(n.lineWidth,1);if(i.fillStyle=(0,r.v)(n.fillStyle,s),i.lineCap=(0,r.v)(n.lineCap,"butt"),i.lineDashOffset=(0,r.v)(n.lineDashOffset,0),i.lineJoin=(0,r.v)(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=(0,r.v)(n.strokeStyle,s),i.setLineDash((0,r.v)(n.lineDash,[])),a.usePointStyle){const s={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},u=l.xPlus(t,p/2),c=e+d;(0,r.aE)(i,s,u,c,a.pointStyleWidth&&p)}else{const a=e+Math.max((h-g)/2,0),s=l.leftForLtr(t,p),u=(0,r.ay)(n.borderRadius);i.beginPath(),Object.values(u).some((t=>0!==t))?(0,r.aw)(i,{x:s,y:a,w:p,h:g,radius:u}):i.rect(s,a,p,g),i.fill(),0!==o&&i.stroke()}i.restore()}(l.x(S),C,w),S=(0,r.aC)(_,S+p+d,b?S+k:this.right,t.rtl),function(t,e,n){(0,r.Z)(i,n.text,t,e+m/2,u,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(S),C,w),b)f.x+=k+c;else if("string"!==typeof w.text){const t=u.lineHeight;f.y+=dn(w,t)+c}else f.y+=y})),(0,r.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,r.a0)(e.font),i=(0,r.E)(e.padding);if(!e.display)return;const o=(0,r.aA)(t.rtl,this.left,this.width),a=this.ctx,s=e.position,l=n.size/2,u=i.top+l;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+u,h=(0,r.a2)(t.align,h,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=u+(0,r.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=(0,r.a2)(s,h,h+d);a.textAlign=o.textAlign((0,r.a1)(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,(0,r.Z)(a,e.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,e=(0,r.a0)(t.font),n=(0,r.E)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if((0,r.ak)(t,this.left,this.right)&&(0,r.ak)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],(0,r.ak)(t,i.left,i.left+i.width)&&(0,r.ak)(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,s=(o=n,null!==(i=a)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);a&&!s&&(0,r.Q)(e.onLeave,[t,a,this],this),this._hoveredItem=n,n&&!s&&(0,r.Q)(e.onHover,[t,n,this],this)}else n&&(0,r.Q)(e.onClick,[t,n,this],this);var i,o}}function dn(t,e){return e*(t.text?t.text.length:0)}var fn={id:"legend",_element:hn,start(t,e,n){const r=t.legend=new hn({ctx:t.ctx,options:n,chart:t});ot.configure(t,r,n),ot.addBox(t,r)},stop(t){ot.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;ot.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const u=t.controller.getStyle(n?0:void 0),c=(0,r.E)(u.borderWidth);return{text:e[t.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:o||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class pn extends _t{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=(0,r.b)(n.text)?n.text.length:1;this._padding=(0,r.E)(n.padding);const o=i*(0,r.a0)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:o,options:a}=this,s=a.align;let l,u,c,h=0;return this.isHorizontal()?(u=(0,r.a2)(s,n,o),c=e+t,l=o-n):("left"===a.position?(u=n+t,c=(0,r.a2)(s,i,e),h=-.5*r.P):(u=o-t,c=(0,r.a2)(s,e,i),h=.5*r.P),l=i-e),{titleX:u,titleY:c,maxWidth:l,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,r.a0)(e.font),i=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(i);(0,r.Z)(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:l,textAlign:(0,r.a1)(e.align),textBaseline:"middle",translation:[o,a]})}}var gn={id:"title",_element:pn,start(t,e,n){!function(t,e){const n=new pn({ctx:t.ctx,options:e,chart:t});ot.configure(t,n,e),ot.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;ot.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;ot.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const mn=new WeakMap;var bn={id:"subtitle",start(t,e,n){const r=new pn({ctx:t.ctx,options:n,chart:t});ot.configure(t,r,n),ot.addBox(t,r),mn.set(t,r)},stop(t){ot.removeBox(t,mn.get(t)),mn.delete(t)},beforeUpdate(t,e,n){const r=mn.get(t);ot.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vn={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),i+=t.y,++o}}if(0===o||0===r.size)return!1;return{x:[...r].reduce(((t,e)=>t+e))/r.size,y:i/o}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=i.getCenterPoint(),n=(0,r.aF)(e,t);n<l&&(l=n,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function yn(t,e){return e&&((0,r.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function wn(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Dn(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:t,label:a,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function xn(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:s,boxHeight:l}=e,u=(0,r.a0)(e.bodyFont),c=(0,r.a0)(e.titleFont),h=(0,r.a0)(e.footerFont),d=a.length,f=o.length,p=i.length,g=(0,r.E)(e.padding);let m=g.height,b=0,v=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){m+=p*(e.displayColors?Math.max(l,u.lineHeight):u.lineHeight)+(v-p)*u.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*h.lineHeight+(f-1)*e.footerSpacing);let y=0;const w=function(t){b=Math.max(b,n.measureText(t).width+y)};return n.save(),n.font=c.string,(0,r.F)(t.title,w),n.font=u.string,(0,r.F)(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?s+2+e.boxPadding:0,(0,r.F)(i,(t=>{(0,r.F)(t.before,w),(0,r.F)(t.lines,w),(0,r.F)(t.after,w)})),y=0,n.font=h.string,(0,r.F)(t.footer,w),n.restore(),b+=g.width,{width:b,height:m}}function _n(t,e,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=t;let u="center";return"center"===r?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),function(t,e,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===t&&i+o+a>e.width||"right"===t&&i-o-a<0||void 0}(u,t,e,n)&&(u="center"),u}function kn(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||_n(t,e,n,r),yAlign:r}}function Sn(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:s}=t,{xAlign:l,yAlign:u}=n,c=o+a,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=(0,r.ay)(s);let g=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,l);const m=function(t,e,n){let{y:r,height:i}=t;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,u,c);return"center"===u?"left"===l?g+=c:"right"===l&&(g-=c):"left"===l?g-=Math.max(h,f)+o:"right"===l&&(g+=Math.max(d,p)+o),{x:(0,r.S)(g,0,i.width-e.width),y:(0,r.S)(m,0,i.height-e.height)}}function Cn(t,e,n){const i=(0,r.E)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Fn(t){return yn([],wn(t))}function An(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const En={beforeTitle:r.aG,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:r.aG,beforeBody:r.aG,beforeLabel:r.aG,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,r.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:r.aG,afterBody:r.aG,beforeFooter:r.aG,footer:r.aG,afterFooter:r.aG};function Ln(t,e,n,r){const i=t[e].call(n,r);return"undefined"===typeof i?En[e].call(n,r):i}class Nn extends _t{static positioners=vn;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new u(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,(0,r.j)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,r=Ln(n,"beforeTitle",this,t),i=Ln(n,"title",this,t),o=Ln(n,"afterTitle",this,t);let a=[];return a=yn(a,wn(r)),a=yn(a,wn(i)),a=yn(a,wn(o)),a}getBeforeBody(t,e){return Fn(Ln(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,i=[];return(0,r.F)(t,(t=>{const e={before:[],lines:[],after:[]},r=An(n,t);yn(e.before,wn(Ln(r,"beforeLabel",this,t))),yn(e.lines,Ln(r,"label",this,t)),yn(e.after,wn(Ln(r,"afterLabel",this,t))),i.push(e)})),i}getAfterBody(t,e){return Fn(Ln(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=Ln(n,"beforeFooter",this,t),i=Ln(n,"footer",this,t),o=Ln(n,"afterFooter",this,t);let a=[];return a=yn(a,wn(r)),a=yn(a,wn(i)),a=yn(a,wn(o)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let s,l,u=[];for(s=0,l=e.length;s<l;++s)u.push(Dn(this.chart,e[s]));return t.filter&&(u=u.filter(((e,r,i)=>t.filter(e,r,i,n)))),t.itemSort&&(u=u.sort(((e,r)=>t.itemSort(e,r,n)))),(0,r.F)(u,(e=>{const n=An(t.callbacks,e);i.push(Ln(n,"labelColor",this,e)),o.push(Ln(n,"labelPointStyle",this,e)),a.push(Ln(n,"labelTextColor",this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=u,u}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const t=vn[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=xn(this,n),a=Object.assign({},t,e),s=kn(this.chart,n,a),l=Sn(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:h}=(0,r.ay)(s),{x:d,y:f}=t,{width:p,height:g}=e;let m,b,v,y,w,D;return"center"===o?(w=f+g/2,"left"===i?(m=d,b=m-a,y=w+a,D=w-a):(m=d+p,b=m+a,y=w-a,D=w+a),v=m):(b="left"===i?d+Math.max(l,c)+a:"right"===i?d+p-Math.max(u,h)-a:this.caretX,"top"===o?(y=f,w=y-a,m=b-a,v=b+a):(y=f+g,w=y+a,m=b+a,v=b-a),D=y),{x1:m,x2:b,x3:v,y1:y,y2:w,y3:D}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,s,l;if(o){const u=(0,r.aA)(n.rtl,this.x,this.width);for(t.x=Cn(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",a=(0,r.a0)(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,l=0;l<o;++l)e.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:u}=o,c=(0,r.a0)(o.bodyFont),h=Cn(this,"left",o),d=i.x(h),f=l<c.lineHeight?(c.lineHeight-l)/2:0,p=e.y+f;if(o.usePointStyle){const e={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(d,u)+u/2,c=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,r.av)(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,(0,r.av)(t,e,n,c)}else{t.lineWidth=(0,r.i)(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(d,u),n=i.leftForLtr(i.xPlus(d,1),u-2),s=(0,r.ay)(a.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,r.aw)(t,{x:e,y:p,w:u,h:l,radius:s}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,r.aw)(t,{x:n,y:p+1,w:u-2,h:l-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,u,l),t.strokeRect(e,p,u,l),t.fillStyle=a.backgroundColor,t.fillRect(n,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=n,h=(0,r.a0)(n.bodyFont);let d=h.lineHeight,f=0;const p=(0,r.aA)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+f),t.y+d/2),t.y+=d+o},m=p.textAlign(a);let b,v,y,w,D,x,_;for(e.textAlign=a,e.textBaseline="middle",e.font=h.string,t.x=Cn(this,m,n),e.fillStyle=n.bodyColor,(0,r.F)(this.beforeBody,g),f=s&&"right"!==m?"center"===a?u/2+c:u+2+c:0,w=0,x=i.length;w<x;++w){for(b=i[w],v=this.labelTextColors[w],e.fillStyle=v,(0,r.F)(b.before,g),y=b.lines,s&&y.length&&(this._drawColorBox(e,t,w,p,n),d=Math.max(h.lineHeight,l)),D=0,_=y.length;D<_;++D)g(y[D]),d=h.lineHeight;(0,r.F)(b.after,g)}f=0,d=h.lineHeight,(0,r.F)(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,s;if(o){const l=(0,r.aA)(n.rtl,this.x,this.width);for(t.x=Cn(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=l.textAlign(n.footerAlign),e.textBaseline="middle",a=(0,r.a0)(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:c}=n,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=(0,r.ay)(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+h,l),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+u-d,l),e.quadraticCurveTo(s+u,l,s+u,l+d),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+u,l+c-p),e.quadraticCurveTo(s+u,l+c,s+u-p,l+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+f,l+c),e.quadraticCurveTo(s,l+c,s,l+c-f),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,l+h),e.quadraticCurveTo(s,l,s+h,l),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=vn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=xn(this,t),a=Object.assign({},n,this._size),s=kn(e,t,a),l=Sn(t,a,s,e);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=(0,r.E)(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),(0,r.aB)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,r.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,r.ai)(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),s=this._positionChanged(a,t),l=e||!(0,r.ai)(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,n,r){const i=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:r,options:i}=this,o=vn[i.position].call(this,t,e);return!1!==o&&(n!==o.x||r!==o.y)}}var Pn={id:"tooltip",_element:Nn,positioners:vn,afterInit(t,e,n){n&&(t.tooltip=new Nn({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:En},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Mn=Object.freeze({__proto__:null,Colors:qe,Decimation:Ue,Filler:un,Legend:fn,SubTitle:bn,Title:gn,Tooltip:Pn});function On(t,e,n,r){const i=t.indexOf(e);if(-1===i)return((t,e,n,r)=>("string"===typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r);return i!==t.lastIndexOf(e)?n:i}function In(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Tn extends Mt{static id="category";static defaults={ticks:{callback:In}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,r.k)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:(0,r.S)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:On(n,t,(0,r.v)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=t;o<=e;o++)r.push({value:o});return r}getLabelForValue(t){return In.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Rn(t,e,{horizontal:n,minRotation:i}){const o=(0,r.t)(i),a=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class jn extends Mt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,r.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,s=t=>o=n?o:t;if(t){const t=(0,r.s)(i),e=(0,r.s)(o);t<0&&e<0?s(0):t>0&&e>0&&a(0)}if(i===o){let e=0===o?1:Math.abs(.05*o);s(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:u,maxTicks:c,maxDigits:h,includeBounds:d}=t,f=o||1,p=c-1,{min:g,max:m}=e,b=!(0,r.k)(a),v=!(0,r.k)(s),y=!(0,r.k)(u),w=(m-g)/(h+1);let D,x,_,k,S=(0,r.aI)((m-g)/p/f)*f;if(S<1e-14&&!b&&!v)return[{value:g},{value:m}];k=Math.ceil(m/S)-Math.floor(g/S),k>p&&(S=(0,r.aI)(k*S/p/f)*f),(0,r.k)(l)||(D=Math.pow(10,l),S=Math.ceil(S*D)/D),"ticks"===i?(x=Math.floor(g/S)*S,_=Math.ceil(m/S)*S):(x=g,_=m),b&&v&&o&&(0,r.aJ)((s-a)/o,S/1e3)?(k=Math.round(Math.min((s-a)/S,c)),S=(s-a)/k,x=a,_=s):y?(x=b?a:x,_=v?s:_,k=u-1,S=(_-x)/k):(k=(_-x)/S,k=(0,r.aK)(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const C=Math.max((0,r.aL)(S),(0,r.aL)(x));D=Math.pow(10,(0,r.k)(l)?C:l),x=Math.round(x*D)/D,_=Math.round(_*D)/D;let F=0;for(b&&(d&&x!==a?(n.push({value:a}),x<a&&F++,(0,r.aK)(Math.round((x+F*S)*D)/D,a,Rn(a,w,t))&&F++):x<a&&F++);F<k;++F){const t=Math.round((x+F*S)*D)/D;if(v&&t>s)break;n.push({value:t})}return v&&d&&_!==s?n.length&&(0,r.aK)(n[n.length-1].value,s,Rn(s,w,t))?n[n.length-1].value=s:n.push({value:s}):v&&_!==s||n.push({value:_}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,r.aH)(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,r.o)(t,this.chart.options.locale,this.options.ticks.format)}}class Bn extends jn{static id="linear";static defaults={ticks:{callback:r.aM.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,r.g)(t)?t:0,this.max=(0,r.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,r.t)(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const zn=t=>Math.floor((0,r.aN)(t)),qn=(t,e)=>Math.pow(10,zn(t)+e);function Wn(t){return 1===t/Math.pow(10,zn(t))}function Hn(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function Un(t,{min:e,max:n}){e=(0,r.O)(t.min,e);const i=[],o=zn(e);let a=function(t,e){let n=zn(e-t);for(;Hn(t,e,n)>10;)n++;for(;Hn(t,e,n)<10;)n--;return Math.min(n,zn(t))}(e,n),s=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),u=o>a?Math.pow(10,o):0,c=Math.round((e-u)*s)/s,h=Math.floor((e-u)/l/10)*l*10;let d=Math.floor((c-h)/Math.pow(10,a)),f=(0,r.O)(t.min,Math.round((u+h+d*Math.pow(10,a))*s)/s);for(;f<n;)i.push({value:f,major:Wn(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),f=Math.round((u+h+d*Math.pow(10,a))*s)/s;const p=(0,r.O)(t.max,f);return i.push({value:p,major:Wn(p),significand:d}),i}class Yn extends Mt{static id="logarithmic";static defaults={ticks:{callback:r.aM.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=jn.prototype.parse.apply(this,[t,e]);if(0!==n)return(0,r.g)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,r.g)(t)?Math.max(0,t):null,this.max=(0,r.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,r.g)(this._userMin)&&(this.min=t===qn(this.min,0)?qn(this.min,-1):qn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,r=this.max;const i=e=>n=t?n:e,o=t=>r=e?r:t;n===r&&(n<=0?(i(1),o(10)):(i(qn(n,-1)),o(qn(r,1)))),n<=0&&i(qn(r,-1)),r<=0&&o(qn(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,e=Un({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,r.aH)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,r.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,r.aN)(t),this._valueRange=(0,r.aN)(this.max)-(0,r.aN)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,r.aN)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Vn(t){const e=t.ticks;if(e.display&&t.display){const t=(0,r.E)(e.backdropPadding);return(0,r.v)(e.font&&e.font.size,r.d.font.size)+t.height}return 0}function $n(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Gn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?r.P/a:0;for(let d=0;d<a;d++){const a=s.setContext(t.getPointLabelContext(d));o[d]=a.padding;const f=t.getPointPosition(d,t.drawingArea+o[d],l),p=(0,r.a0)(a.font),g=(u=t.ctx,c=p,h=t._pointLabels[d],h=(0,r.b)(h)?h:[h],{w:(0,r.aO)(u,c.string,h),h:h.length*c.lineHeight});i[d]=g;const m=(0,r.al)(t.getIndexAngle(d)+l),b=Math.round((0,r.U)(m));Kn(n,e,m,$n(b,f.x,g.w,0,180),$n(b,f.y,g.h,90,270))}var u,c,h;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:l}=a.pointLabels,u={extra:Vn(a)/2,additionalAngle:s?r.P/o:0};let c;for(let r=0;r<o;r++){u.padding=n[r],u.size=e[r];const o=Jn(t,r,u);i.push(o),"auto"===l&&(o.visible=Xn(o,c),o.visible&&(c=o))}return i}(t,i,o)}function Kn(t,e,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Jn(t,e,n){const i=t.drawingArea,{extra:o,additionalAngle:a,padding:s,size:l}=n,u=t.getPointPosition(e,i+o+s,a),c=Math.round((0,r.U)((0,r.al)(u.angle+r.H))),h=function(t,e,n){90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e);return t}(u.y,l.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),f=function(t,e,n){"right"===n?t-=e:"center"===n&&(t-=e/2);return t}(u.x,l.w,d);return{visible:!0,x:u.x,y:h,textAlign:d,left:f,top:h,right:f+l.w,bottom:h+l.h}}function Xn(t,e){if(!e)return!0;const{left:n,top:i,right:o,bottom:a}=t;return!((0,r.C)({x:n,y:i},e)||(0,r.C)({x:n,y:a},e)||(0,r.C)({x:o,y:i},e)||(0,r.C)({x:o,y:a},e))}function Qn(t,e,n){const{left:i,top:o,right:a,bottom:s}=n,{backdropColor:l}=e;if(!(0,r.k)(l)){const n=(0,r.ay)(e.borderRadius),u=(0,r.E)(e.backdropPadding);t.fillStyle=l;const c=i-u.left,h=o-u.top,d=a-i+u.width,f=s-o+u.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),(0,r.aw)(t,{x:c,y:h,w:d,h:f,radius:n}),t.fill()):t.fillRect(c,h,d,f)}}function Zn(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,r.T);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}class tr extends jn{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:r.aM.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,r.E)(Vn(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,r.g)(t)&&!isNaN(t)?t:0,this.max=(0,r.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vn(this.options))}generateTickLabels(t){jn.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=(0,r.Q)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Gn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){const e=r.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,r.al)(t*e+(0,r.t)(n))}getDistanceFromCenterForValue(t){if((0,r.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,r.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return(0,r.j)(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-r.H+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:r,bottom:i}=this._pointLabelItems[t];return{left:e,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Zn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i,border:o}=e,a=this._pointLabels.length;let s,l,u;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=t._pointLabelItems[o];if(!e.visible)continue;const a=i.setContext(t.getPointLabelContext(o));Qn(n,a,e);const s=(0,r.a0)(a.font),{x:l,y:u,textAlign:c}=e;(0,r.Z)(n,t._pointLabels[o],l,u+s.lineHeight/2,s,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,a),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){l=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),r=i.setContext(n),s=o.setContext(n);!function(t,e,n,r,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:l}=e;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),Zn(t,n,a,r),o.closePath(),o.stroke(),o.restore())}(this,r,l,a,s)}})),n.display){for(t.save(),s=a-1;s>=0;s--){const r=n.setContext(this.getPointLabelContext(s)),{color:i,lineWidth:o}=r;o&&i&&(t.lineWidth=o,t.strokeStyle=i,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&this.min>=0&&!e.reverse)return;const l=n.setContext(this.getContext(s)),u=(0,r.a0)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){t.font=u.string,a=t.measureText(i.label).width,t.fillStyle=l.backdropColor;const e=(0,r.E)(l.backdropPadding);t.fillRect(-a/2-e.left,-o-u.size/2-e.top,a+e.width,u.size+e.height)}(0,r.Z)(t,i.label,0,-o,u,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})})),t.restore()}drawTitle(){}}const er={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nr=Object.keys(er);function rr(t,e){return t-e}function ir(t,e){if((0,r.k)(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let s=e;return"function"===typeof i&&(s=i(s)),(0,r.g)(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!(0,r.x)(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function or(t,e,n,r){const i=nr.length;for(let o=nr.indexOf(t);o<i-1;++o){const t=er[nr[o]],i=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(i*t.size))<=r)return nr[o]}return nr[i-1]}function ar(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=(0,r.aQ)(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function sr(t,e,n){const r=[],i={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}(t,r,i,n):r}class lr extends Mt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),i=this._adapter=new B._date(t.adapters.date);i.init(e),(0,r.ab)(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ir(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}a&&s||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),i=(0,r.g)(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=(0,r.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=(0,r.aP)(i,o,a);return this._unit=e.unit||(n.autoSkip?or(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,r,i){for(let o=nr.length-1;o>=nr.indexOf(n);o--){const n=nr[o];if(er[n].common&&t._adapter.diff(i,r,n)>=e-1)return n}return nr[n?nr.indexOf(n):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=nr.indexOf(t)+1,n=nr.length;e<n;++e)if(er[nr[e]].common)return nr[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&s.reverse(),sr(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=(0,r.S)(i,0,a),o=(0,r.S)(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||or(o.minUnit,e,n,this._getLabelCapacity(e)),s=(0,r.v)(i.ticks.stepSize,1),l="week"===a&&o.isoWeekday,u=(0,r.x)(l)||!0===l,c={};let h,d,f=e;if(u&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,u?"day":a),t.diff(n,e,a)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(h=f,d=0;h<n;h=+t.add(h,s,a),d++)ar(c,h,p);return h!==n&&"ticks"!==i.bounds&&1!==d||ar(c,h,p),Object.keys(c).sort(rr).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,r=this._unit,i=e||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.ticks.callback;if(a)return(0,r.Q)(a,[t,e,n],this);const s=o.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],h=u&&s[u],d=n[e],f=u&&h&&d&&d.major;return this._adapter.format(t,i||(f?h:c))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=(0,r.t)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,sr(this,[t],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(ir(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,r._)(t.sort(rr))}}function ur(t,e,n){let i,o,a,s,l=0,u=t.length-1;n?(e>=t[l].pos&&e<=t[u].pos&&({lo:l,hi:u}=(0,r.B)(t,"pos",e)),({pos:i,time:a}=t[l]),({pos:o,time:s}=t[u])):(e>=t[l].time&&e<=t[u].time&&({lo:l,hi:u}=(0,r.B)(t,"time",e)),({time:i,pos:a}=t[l]),({time:o,pos:s}=t[u]));const c=o-i;return c?a+(s-a)*(e-i)/c:a}const cr=[T,Oe,Mn,Object.freeze({__proto__:null,CategoryScale:Tn,LinearScale:Bn,LogarithmicScale:Yn,RadialLinearScale:tr,TimeScale:lr,TimeSeriesScale:class extends lr{static id="timeseries";static defaults=lr.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ur(e,this.min),this._tableRange=ur(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],i=[];let o,a,s,l,u;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],s=r[o-1],l=r[o],Math.round((u+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(ur(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ur(this._table,n*this._tableRange+this._minPos,!0)}}})]},81692(t,e,n){"use strict";function r(t){return t+.5|0}n.d(e,{$:()=>ke,A:()=>Rt,B:()=>Tt,C:()=>xe,D:()=>Ft,E:()=>Re,F:()=>$,G:()=>vn,H:()=>ft,I:()=>hn,J:()=>Dn,K:()=>wn,L:()=>Ut,M:()=>cn,N:()=>wt,O:()=>W,P:()=>lt,Q:()=>V,R:()=>ze,S:()=>Pt,T:()=>ut,U:()=>St,V:()=>me,W:()=>Mt,X:()=>ve,Y:()=>_e,Z:()=>Ee,_:()=>Wt,a:()=>Be,a0:()=>je,a1:()=>Vt,a2:()=>$t,a3:()=>ce,a4:()=>Q,a5:()=>rt,a6:()=>he,a7:()=>ot,a8:()=>He,a9:()=>We,aA:()=>Sn,aB:()=>Cn,aC:()=>Gt,aD:()=>Fn,aE:()=>De,aF:()=>At,aG:()=>T,aH:()=>_t,aI:()=>yt,aJ:()=>xt,aK:()=>vt,aL:()=>Ct,aM:()=>ue,aN:()=>mt,aO:()=>be,aP:()=>jt,aQ:()=>It,aa:()=>Ue,ab:()=>Z,ac:()=>R,ad:()=>Yt,ae:()=>yn,af:()=>ye,ag:()=>at,ah:()=>Rn,ai:()=>G,aj:()=>st,ak:()=>Ot,al:()=>Lt,am:()=>Oe,an:()=>un,ao:()=>Pn,ap:()=>Nn,aq:()=>_n,ar:()=>kn,as:()=>xn,at:()=>Se,au:()=>Ce,av:()=>we,aw:()=>Le,ax:()=>Ie,ay:()=>Te,az:()=>Ln,b:()=>B,b4:()=>dt,b5:()=>pt,b6:()=>gt,c:()=>ne,d:()=>ge,e:()=>te,f:()=>nt,g:()=>q,h:()=>it,i:()=>z,j:()=>qe,k:()=>j,l:()=>zt,m:()=>U,n:()=>Y,o:()=>se,p:()=>Nt,q:()=>Kt,r:()=>Ht,s:()=>bt,t:()=>kt,u:()=>qt,v:()=>H,w:()=>Jt,x:()=>Dt,y:()=>en,z:()=>mn});const i=(t,e,n)=>Math.max(Math.min(t,n),e);function o(t){return i(r(2.55*t),0,255)}function a(t){return i(r(255*t),0,255)}function s(t){return i(r(t/2.55)/100,0,1)}function l(t){return i(r(100*t),0,100)}const u={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},c=[..."0123456789ABCDEF"],h=t=>c[15&t],d=t=>c[(240&t)>>4]+c[15&t],f=t=>(240&t)>>4===(15&t);function p(t){var e=(t=>f(t.r)&&f(t.g)&&f(t.b)&&f(t.a))(t)?h:d;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const g=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(t,e,n){const r=e*Math.min(n,1-n),i=(e,i=(e+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function b(t,e,n){const r=(r,i=(r+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function v(t,e,n){const r=m(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function y(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),a=(i+o)/2;let s,l,u;return i!==o&&(u=i-o,l=a>.5?u/(2-i-o):u/(i+o),s=function(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}(e,n,r,u,i),s=60*s+.5),[0|s,l||0,a]}function w(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(a)}function D(t,e,n){return w(m,t,e,n)}function x(t){return(t%360+360)%360}function _(t){const e=g.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?o(+e[5]):a(+e[5]));const i=x(+e[2]),s=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return w(v,t,e,n)}(i,s,l):"hsv"===e[1]?function(t,e,n){return w(b,t,e,n)}(i,s,l):D(i,s,l),{r:n[0],g:n[1],b:n[2],a:r}}const k={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let C;function F(t){C||(C=function(){const t={},e=Object.keys(S),n=Object.keys(k);let r,i,o,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,k[o]);o=parseInt(S[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),C.transparent=[0,0,0,0]);const e=C[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const A=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const E=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,L=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function N(t,e,n){if(t){let r=y(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=D(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function P(t,e){return t?Object.assign(e||{},t):t}function M(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function O(t){return"r"===t.charAt(0)?function(t){const e=A.exec(t);let n,r,a,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?o(t):i(255*t,0,255)}return n=+e[1],r=+e[3],a=+e[5],n=255&(e[2]?o(n):i(n,0,255)),r=255&(e[4]?o(r):i(r,0,255)),a=255&(e[6]?o(a):i(a,0,255)),{r:n,g:r,b:a,a:s}}}(t):_(t)}class I{constructor(t){if(t instanceof I)return t;const e=typeof t;let n;"object"===e?n=M(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*u[t[1]],g:255&17*u[t[2]],b:255&17*u[t[3]],a:5===n?17*u[t[4]]:255}:7!==n&&9!==n||(e={r:u[t[1]]<<4|u[t[2]],g:u[t[3]]<<4|u[t[4]],b:u[t[5]]<<4|u[t[6]],a:9===n?u[t[7]]<<4|u[t[8]]:255})),e}(t)||F(t)||O(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=M(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?p(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=y(t),n=e[0],r=l(e[1]),i=l(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${s(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let i;const o=e===i?.5:e,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=L(s(t.r)),i=L(s(t.g)),o=L(s(t.b));return{r:a(E(r+n*(L(s(e.r))-r))),g:a(E(i+n*(L(s(e.g))-i))),b:a(E(o+n*(L(s(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new I(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=r(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return N(this._rgb,2,t),this}darken(t){return N(this._rgb,2,-t),this}saturate(t){return N(this._rgb,1,t),this}desaturate(t){return N(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=y(t);n[0]=x(n[0]+e),n=D(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function T(){}const R=(()=>{let t=0;return()=>t++})();function j(t){return null===t||void 0===t}function B(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function z(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function q(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function W(t,e){return q(t)?t:e}function H(t,e){return"undefined"===typeof t?e:t}const U=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,Y=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function V(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function $(t,e,n,r){let i,o,a;if(B(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(z(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])}function G(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function K(t){if(B(t))return t.map(K);if(z(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=K(t[n[i]]);return e}return t}function J(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function X(t,e,n,r){if(!J(t))return;const i=e[t],o=n[t];z(i)&&z(o)?Q(i,o,r):e[t]=K(o)}function Q(t,e,n){const r=B(e)?e:[e],i=r.length;if(!z(t))return t;const o=(n=n||{}).merger||X;let a;for(let s=0;s<i;++s){if(a=r[s],!z(a))continue;const e=Object.keys(a);for(let r=0,i=e.length;r<i;++r)o(e[r],t,a,n)}return t}function Z(t,e){return Q(t,e,{merger:tt})}function tt(t,e,n){if(!J(t))return;const r=e[t],i=n[t];z(r)&&z(i)?Z(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=K(i))}const et={"":t=>t,x:t=>t.x,y:t=>t.y};function nt(t,e){const n=et[e]||(et[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function rt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const it=t=>"undefined"!==typeof t,ot=t=>"function"===typeof t,at=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function st(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const lt=Math.PI,ut=2*lt,ct=ut+lt,ht=Number.POSITIVE_INFINITY,dt=lt/180,ft=lt/2,pt=lt/4,gt=2*lt/3,mt=Math.log10,bt=Math.sign;function vt(t,e,n){return Math.abs(t-e)<n}function yt(t){const e=Math.round(t);t=vt(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(mt(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function wt(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function Dt(t){return!function(t){return"symbol"===typeof t||"object"===typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function xt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function _t(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function kt(t){return t*(lt/180)}function St(t){return t*(180/lt)}function Ct(t){if(!q(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ft(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*lt&&(o+=ut),{angle:o,distance:i}}function At(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Et(t,e){return(t-e+ct)%ut-lt}function Lt(t){return(t%ut+ut)%ut}function Nt(t,e,n,r){const i=Lt(t),o=Lt(e),a=Lt(n),s=Lt(o-i),l=Lt(a-i),u=Lt(i-o),c=Lt(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function Pt(t,e,n){return Math.max(e,Math.min(n,t))}function Mt(t){return Pt(t,-32768,32767)}function Ot(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function It(t,e,n){n=n||(n=>t[n]<e);let r,i=t.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const Tt=(t,e,n,r)=>It(t,n,r?r=>{const i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:r=>t[r][e]<n),Rt=(t,e,n)=>It(t,n,(r=>t[r][e]>=n));function jt(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const Bt=["push","pop","shift","splice","unshift"];function zt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Bt.forEach((e=>{const n="_onData"+rt(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const i=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),i}})})))}function qt(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(Bt.forEach((e=>{delete t[e]})),delete t._chartjs)}function Wt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Ht="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function Ut(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Ht.call(window,(()=>{r=!1,t.apply(e,n)})))}}function Yt(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Vt=t=>"start"===t?"left":"end"===t?"right":"center",$t=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,Gt=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function Kt(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:a,vScale:s,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:h,max:d,minDefined:f,maxDefined:p}=a.getUserBounds();if(f){if(i=Math.min(Tt(l,c,h).lo,n?r:Tt(e,c,a.getPixelForValue(h)).lo),u){const t=l.slice(0,i+1).reverse().findIndex((t=>!j(t[s.axis])));i-=Math.max(0,t)}i=Pt(i,0,r-1)}if(p){let t=Math.max(Tt(l,a.axis,d,!0).hi+1,n?0:Tt(e,c,a.getPixelForValue(d),!0).hi+1);if(u){const e=l.slice(t-1).findIndex((t=>!j(t[s.axis])));t+=Math.max(0,e)}o=Pt(t,i,r)-i}else o=r-i}return{start:i,count:o}}function Jt(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Xt=t=>0===t||1===t,Qt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ut/n),Zt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ut/n)+1,te={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ft),easeOutSine:t=>Math.sin(t*ft),easeInOutSine:t=>-.5*(Math.cos(lt*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Xt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Xt(t)?t:Qt(t,.075,.3),easeOutElastic:t=>Xt(t)?t:Zt(t,.075,.3),easeInOutElastic(t){const e=.1125;return Xt(t)?t:t<.5?.5*Qt(2*t,e,.45):.5+.5*Zt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-te.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*te.easeInBounce(2*t):.5*te.easeOutBounce(2*t-1)+.5};function ee(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ne(t){return ee(t)?t:new I(t)}function re(t){return ee(t)?t:new I(t).saturate(.5).darken(.1).hexString()}const ie=["x","y","borderWidth","radius","tension"],oe=["color","borderColor","backgroundColor"];const ae=new Map;function se(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=ae.get(n);return r||(r=new Intl.NumberFormat(t,e),ae.set(n,r)),r}(e,n).format(t)}const le={values:t=>B(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(i="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=mt(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),se(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(mt(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?le.numeric.call(this,t,e,n):""}};var ue={formatters:le};const ce=Object.create(null),he=Object.create(null);function de(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const e=n[r];t=t[e]||(t[e]=Object.create(null))}return t}function fe(t,e,n){return"string"===typeof e?Q(de(t,e),n):Q(de(t,""),e)}class pe{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>re(e.backgroundColor),this.hoverBorderColor=(t,e)=>re(e.borderColor),this.hoverColor=(t,e)=>re(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return fe(this,t,e)}get(t){return de(this,t)}describe(t,e){return fe(he,t,e)}override(t,e){return fe(ce,t,e)}route(t,e,n,r){const i=de(this,t),o=de(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[r];return z(t)?Object.assign({},e,t):H(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ge=new pe({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:oe},numbers:{type:"number",properties:ie}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ue.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function me(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function be(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,u,c,h,d;for(l=0;l<s;l++)if(h=n[l],void 0===h||null===h||B(h)){if(B(h))for(u=0,c=h.length;u<c;u++)d=h[u],void 0===d||null===d||B(d)||(a=me(t,i,o,a,d))}else a=me(t,i,o,a,h);t.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[o[l]];o.splice(0,f)}return a}function ve(t,e,n){const r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function ye(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function we(t,e,n,r){De(t,e,n,r,null)}function De(t,e,n,r,i){let o,a,s,l,u,c,h,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*dt;if(f&&"object"===typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,r),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:i?t.ellipse(n,r,i/2,g,0,0,ut):t.arc(n,r,g,0,ut),t.closePath();break;case"triangle":c=i?i/2:g,t.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=gt,t.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=gt,t.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),t.closePath();break;case"rectRounded":u=.516*g,l=g-u,a=Math.cos(m+pt)*l,h=Math.cos(m+pt)*(i?i/2-u:l),s=Math.sin(m+pt)*l,d=Math.sin(m+pt)*(i?i/2-u:l),t.arc(n-h,r-s,u,m-lt,m-ft),t.arc(n+d,r-a,u,m-ft,m),t.arc(n+h,r+s,u,m,m+ft),t.arc(n-d,r+a,u,m+ft,m+lt),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,t.rect(n-c,r-l,2*c,2*l);break}m+=pt;case"rectRot":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),t.moveTo(n-h,r-s),t.lineTo(n+d,r-a),t.lineTo(n+h,r+s),t.lineTo(n-d,r+a),t.closePath();break;case"crossRot":m+=pt;case"cross":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+d,r-a),t.lineTo(n-d,r+a);break;case"star":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+d,r-a),t.lineTo(n-d,r+a),m+=pt,h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+d,r-a),t.lineTo(n-d,r+a);break;case"line":a=i?i/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(m)*(i?i/2:g),r+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function xe(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function _e(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ke(t){t.restore()}function Se(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if("middle"===i){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===i!==!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Ce(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Fe(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(s,c),t.stroke()}}function Ae(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Ee(t,e,n,r,i,o={}){const a=B(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;let l,u;for(t.save(),t.font=i.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),j(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<a.length;++l)u=a[l],o.backdrop&&Ae(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),j(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(u,n,r,o.maxWidth)),t.fillText(u,n,r,o.maxWidth),Fe(t,n,r,u,o),r+=Number(i.lineHeight);t.restore()}function Le(t,e){const{x:n,y:r,w:i,h:o,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*lt,lt,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,lt,ft,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ft,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ft,!0),t.lineTo(n+a.topLeft,r)}const Ne=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Pe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Me(t,e){const n=(""+t).match(Ne);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Oe(t,e){const n={},r=z(e),i=r?Object.keys(e):e,o=z(t)?r?n=>H(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of i)n[a]=+o(a)||0;return n}function Ie(t){return Oe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Te(t){return Oe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Re(t){const e=Ie(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function je(t,e){t=t||{},e=e||ge.font;let n=H(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=H(t.style,e.style);r&&!(""+r).match(Pe)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:H(t.family,e.family),lineHeight:Me(H(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:H(t.weight,e.weight),string:""};return i.string=function(t){return!t||j(t.size)||j(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function Be(t,e,n,r){let i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(a=t[i],void 0!==a&&(void 0!==e&&"function"===typeof a&&(a=a(e),s=!1),void 0!==n&&B(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function ze(t,e,n){const{min:r,max:i}=t,o=Y(e,(i-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function qe(t,e){return Object.assign(Object.create(t),e)}function We(t,e=[""],n,r,i=()=>t[0]){const o=n||t;"undefined"===typeof r&&(r=Ze("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>We([n,...t],e,o,r)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>$e(n,r,(()=>function(t,e,n,r){let i;for(const o of e)if(i=Ze(Ye(o,t),n),"undefined"!==typeof i)return Ve(t,i)?Xe(n,r,t,i):i}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>tn(t).includes(e),ownKeys:t=>tn(t),set(t,e,n){const r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function He(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ue(t,r),setContext:e=>He(t,e,n,r),override:i=>He(t.override(i),e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>$e(t,e,(()=>function(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=t;let s=r[e];ot(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||r);s.delete(t),Ve(t,l)&&(l=Xe(i._scopes,i,t,l));return l}(e,s,t,n));B(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if("undefined"!==typeof o.index&&r(t))return e[o.index%e.length];if(z(e[0])){const n=e,r=i._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Xe(r,i,t,l);e.push(He(n,o,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Ve(e,s)&&(s=He(s,i,o&&o[e],a));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Ue(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ot(n)?n:()=>n,isIndexable:ot(r)?r:()=>r}}const Ye=(t,e)=>t?t+rt(e):e,Ve=(t,e)=>z(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function $e(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const r=n();return t[e]=r,r}function Ge(t,e,n){return ot(t)?t(e,n):t}const Ke=(t,e)=>!0===t?e:"string"===typeof t?nt(e,t):void 0;function Je(t,e,n,r,i){for(const o of e){const e=Ke(n,o);if(e){t.add(e);const o=Ge(e._fallback,n,i);if("undefined"!==typeof o&&o!==n&&o!==r)return o}else if(!1===e&&"undefined"!==typeof r&&n!==r)return null}return!1}function Xe(t,e,n,r){const i=e._rootScopes,o=Ge(e._fallback,n,r),a=[...t,...i],s=new Set;s.add(r);let l=Qe(s,a,n,o||n,r);return null!==l&&(("undefined"===typeof o||o===n||(l=Qe(s,a,o,l,r),null!==l))&&We(Array.from(s),[""],i,o,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];if(B(i)&&z(n))return n;return i||{}}(e,n,r))))}function Qe(t,e,n,r,i){for(;n;)n=Je(t,e,n,r,i);return n}function Ze(t,e){for(const n of e){if(!n)continue;const e=n[t];if("undefined"!==typeof e)return e}}function tn(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function en(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,a=new Array(r);let s,l,u,c;for(s=0,l=r;s<l;++s)u=s+n,c=e[u],a[s]={r:i.parse(nt(c,o),u)};return a}const nn=Number.EPSILON||1e-14,rn=(t,e)=>e<t.length&&!t[e].skip&&t[e],on=t=>"x"===t?"y":"x";function an(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=At(o,i),l=At(a,o);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const h=r*u,d=r*c;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function sn(t,e="x"){const n=on(e),r=t.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=rn(t,0);for(a=0;a<r;++a)if(s=l,l=u,u=rn(t,a+1),l){if(u){const t=u[e]-l[e];i[a]=0!==t?(u[n]-l[n])/t:0}o[a]=s?u?bt(i[a-1])!==bt(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(t,e,n){const r=t.length;let i,o,a,s,l,u=rn(t,0);for(let c=0;c<r-1;++c)l=u,u=rn(t,c+1),l&&u&&(vt(e[c],0,nn)?n[c]=n[c+1]=0:(i=n[c]/e[c],o=n[c+1]/e[c],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[c]=i*a*e[c],n[c+1]=o*a*e[c])))}(t,i,o),function(t,e,n="x"){const r=on(n),i=t.length;let o,a,s,l=rn(t,0);for(let u=0;u<i;++u){if(a=s,s=l,l=rn(t,u+1),!s)continue;const i=s[n],c=s[r];a&&(o=(i-a[n])/3,s[`cp1${n}`]=i-o,s[`cp1${r}`]=c-o*e[u]),l&&(o=(l[n]-i)/3,s[`cp2${n}`]=i+o,s[`cp2${r}`]=c+o*e[u])}}(t,o,e)}function ln(t,e,n){return Math.max(Math.min(t,n),e)}function un(t,e,n,r,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)sn(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],l=an(n,s,t[Math.min(o+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,r,i,o,a,s=xe(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=s,s=n<r-1&&xe(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=ln(i.cp1x,e.left,e.right),i.cp1y=ln(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=ln(i.cp2x,e.left,e.right),i.cp2y=ln(i.cp2y,e.top,e.bottom)))}(t,n)}function cn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function hn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function dn(t,e,n){let r;return"string"===typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const fn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const pn=["top","right","bottom","left"];function gn(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=pn[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function mn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=fn(n),o="border-box"===i.boxSizing,a=gn(i,"padding"),s=gn(i,"border","width"),{x:l,y:u,box:c}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,o,t.target))a=i,s=o;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(c&&s.left),d=a.top+(c&&s.top);let{width:f,height:p}=e;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/f*n.width/r),y:Math.round((u-d)/p*n.height/r)}}const bn=t=>Math.round(10*t)/10;function vn(t,e,n,r){const i=fn(t),o=gn(i,"margin"),a=dn(i.maxWidth,t,"clientWidth")||ht,s=dn(i.maxHeight,t,"clientHeight")||ht,l=function(t,e,n){let r,i;if(void 0===e||void 0===n){const o=t&&hn(t);if(o){const t=o.getBoundingClientRect(),a=fn(o),s=gn(a,"border","width"),l=gn(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=dn(a.maxWidth,o,"clientWidth"),i=dn(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||ht,maxHeight:i||ht}}(t,e,n);let{width:u,height:c}=l;if("content-box"===i.boxSizing){const t=gn(i,"border","width"),e=gn(i,"padding");u-=e.width+t.width,c-=e.height+t.height}u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=bn(Math.min(u,a,l.maxWidth)),c=bn(Math.min(c,s,l.maxHeight)),u&&!c&&(c=bn(u/2));return(void 0!==e||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=bn(Math.floor(c*r))),{width:u,height:c}}function yn(t,e,n){const r=e||1,i=bn(t.height*r),o=bn(t.width*r);t.height=bn(t.height),t.width=bn(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const wn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};cn()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function Dn(t,e){const n=function(t,e){return fn(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function xn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function _n(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function kn(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=xn(t,i,n),s=xn(i,o,n),l=xn(o,e,n),u=xn(a,s,n),c=xn(s,l,n);return xn(u,c,n)}function Sn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Cn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Fn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function An(t){return"angle"===t?{between:Nt,compare:Et,normalize:Lt}:{between:Ot,compare:(t,e)=>t-e,normalize:t=>t}}function En({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function Ln(t,e,n){if(!n)return[t];const{property:r,start:i,end:o}=n,a=e.length,{compare:s,between:l,normalize:u}=An(r),{start:c,end:h,loop:d,style:f}=function(t,e,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=An(r),l=e.length;let u,c,{start:h,end:d,loop:f}=t;if(f){for(h+=l,d+=l,u=0,c=l;u<c&&a(s(e[h%l][r]),i,o);++u)h--,d--;h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,v=!1,y=null;const w=()=>v||l(i,b,g)&&0!==s(i,b),D=()=>!v||0===s(o,g)||l(o,b,g);for(let x=c,_=c;x<=h;++x)m=e[x%a],m.skip||(g=u(m[r]),g!==b&&(v=l(g,i,o),null===y&&w()&&(y=0===s(g,i)?x:_),null!==y&&D()&&(p.push(En({start:y,end:x,loop:d,count:a,style:f})),y=null),_=x,b=g));return null!==y&&p.push(En({start:y,end:h,loop:d,count:a,style:f})),p}function Nn(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const o=Ln(r[i],t.points,e);o.length&&n.push(...o)}return n}function Pn(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:a,end:s}=function(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}(n,i,o,r);if(!0===r)return Mn(t,[{start:a,end:s,loop:o}],n,e);return Mn(t,function(t,e,n,r){const i=t.length,o=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:e%i,end:(a-1)%i,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&o.push({start:e%i,end:s%i,loop:r}),o}(n,a,s<a?s+i:s,!!t._fullLoop&&0===a&&s===i-1),n,e)}function Mn(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const i=t._chart.getContext(),o=On(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,u=[];let c=o,h=e[0].start,d=h;function f(t,e,r,i){const o=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!==e%l&&(u.push({start:t%l,end:e%l,loop:r,style:i}),c=i,h=e%l)}}for(const p of e){h=s?h:p.start;let t,e=n[h%l];for(d=h+1;d<=p.end;d++){const o=n[d%l];t=On(r.setContext(qe(i,{type:"segment",p0:e,p1:o,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),In(t,c)&&f(h,d-1,p.loop,c),e=o,c=t}h<d-1&&f(h,d-1,p.loop,c)}return u}(t,e,n,r):e}function On(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function In(t,e){if(!e)return!1;const n=[],r=function(t,e){return ee(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function Tn(t,e,n){return t.options.clip?t[n]:e[n]}function Rn(t,e){const n=e._clip;if(n.disabled)return!1;const r=function(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Tn(n,e,"left"),right:Tn(n,e,"right"),top:Tn(r,e,"top"),bottom:Tn(r,e,"bottom")}:e}(e,t.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:r.bottom+(!0===n.bottom?0:n.bottom)}}},14936(t,e,n){"use strict";function r(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>r})},59007(t,e,n){"use strict";n.d(e,{P:()=>i});var r=n(5305);function i(t,e){const[n,i]=(0,r.x)(t,e.start,e.end);return{start:n,end:i}}},42539(t,e,n){"use strict";n.d(e,{W:()=>s});var r=n(16172),i=n(66304),o=n(43329),a=n(29407);function s(t,e,n){const{years:s=0,months:l=0,weeks:u=0,days:c=0,hours:h=0,minutes:d=0,seconds:f=0}=e,p=(0,a.a)(t,n?.in),g=l||s?(0,i.P)(p,l+12*s):p,m=c||u?(0,r.f)(g,c+7*u):g,b=1e3*(f+60*(d+60*h));return(0,o.w)(n?.in||t,+m+b)}},16172(t,e,n){"use strict";n.d(e,{f:()=>o});var r=n(43329),i=n(29407);function o(t,e,n){const o=(0,i.a)(t,n?.in);return isNaN(e)?(0,r.w)(n?.in||t,NaN):e?(o.setDate(o.getDate()+e),o):o}},49176(t,e,n){"use strict";n.d(e,{L:()=>o});var r=n(79197),i=n(61501);function o(t,e,n){return(0,r.A)(t,e*i.s0,n)}},79197(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(43329),i=n(29407);function o(t,e,n){return(0,r.w)(n?.in||t,+(0,i.a)(t)+e)}},38342(t,e,n){"use strict";n.d(e,{z:()=>o});var r=n(61501),i=n(29407);function o(t,e,n){const o=(0,i.a)(t,n?.in);return o.setTime(o.getTime()+e*r.Cg),o}},66304(t,e,n){"use strict";n.d(e,{P:()=>o});var r=n(43329),i=n(29407);function o(t,e,n){const o=(0,i.a)(t,n?.in);if(isNaN(e))return(0,r.w)(n?.in||t,NaN);if(!e)return o;const a=o.getDate(),s=(0,r.w)(n?.in||t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return a>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)}},37122(t,e,n){"use strict";n.d(e,{z:()=>i});var r=n(66304);function i(t,e,n){return(0,r.P)(t,3*e,n)}},49914(t,e,n){"use strict";n.d(e,{p:()=>i});var r=n(79197);function i(t,e,n){return(0,r.A)(t,1e3*e,n)}},79114(t,e,n){"use strict";n.d(e,{J:()=>i});var r=n(16172);function i(t,e,n){return(0,r.f)(t,7*e,n)}},95413(t,e,n){"use strict";n.d(e,{e:()=>i});var r=n(66304);function i(t,e,n){return(0,r.P)(t,12*e,n)}},96054(t,e,n){"use strict";n.d(e,{z:()=>i});var r=n(29407);function i(t,e){const n=+(0,r.a)(t)-+(0,r.a)(e);return n<0?-1:n>0?1:n}},52365(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(43329);function i(t){return(0,r.w)(t,Date.now())}},29543(t,e,n){"use strict";n.d(e,{U:()=>i});var r=n(5305);function i(t,e,n){const[i,o]=(0,r.x)(n?.in,t,e);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}},32688(t,e,n){"use strict";n.d(e,{n:()=>i});var r=n(5305);function i(t,e,n){const[i,o]=(0,r.x)(n?.in,t,e);return i.getFullYear()-o.getFullYear()}},18373(t,e,n){"use strict";n.d(e,{c:()=>o});var r=n(5305),i=n(2831);function o(t,e,n){const[o,s]=(0,r.x)(n?.in,t,e),l=a(o,s),u=Math.abs((0,i.m)(o,s));o.setDate(o.getDate()-l*u);const c=l*(u-Number(a(o,s)===-l));return 0===c?0:c}function a(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}},98163(t,e,n){"use strict";n.d(e,{M:()=>a});var r=n(14936),i=n(5305),o=n(61501);function a(t,e,n){const[a,s]=(0,i.x)(n?.in,t,e),l=(+a-+s)/o.s0;return(0,r.u)(n?.roundingMethod)(l)}},92488(t,e,n){"use strict";n.d(e,{b:()=>i});var r=n(29407);function i(t,e){return+(0,r.a)(t)-+(0,r.a)(e)}},49785(t,e,n){"use strict";n.d(e,{o:()=>a});var r=n(14936),i=n(61501),o=n(92488);function a(t,e,n){const a=(0,o.b)(t,e)/i.Cg;return(0,r.u)(n?.roundingMethod)(a)}},10911(t,e,n){"use strict";n.d(e,{W:()=>c});var r=n(5305),i=n(96054),o=n(29543),a=n(12268),s=n(11580),l=n(29407);function u(t,e){const n=(0,l.a)(t,e?.in);return+(0,a.D)(n,e)===+(0,s.p)(n,e)}function c(t,e,n){const[a,s,l]=(0,r.x)(n?.in,t,t,e),c=(0,i.z)(s,l),h=Math.abs((0,o.U)(s,l));if(h<1)return 0;1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*h);let d=(0,i.z)(s,l)===-c;u(a)&&1===h&&1===(0,i.z)(a,l)&&(d=!1);const f=c*(h-+d);return 0===f?0:f}},91349(t,e,n){"use strict";n.d(e,{O:()=>o});var r=n(14936),i=n(92488);function o(t,e,n){const o=(0,i.b)(t,e)/1e3;return(0,r.u)(n?.roundingMethod)(o)}},26382(t,e,n){"use strict";n.d(e,{V:()=>a});var r=n(5305),i=n(96054),o=n(32688);function a(t,e,n){const[a,s]=(0,r.x)(n?.in,t,e),l=(0,i.z)(a,s),u=Math.abs((0,o.n)(a,s));a.setFullYear(1584),s.setFullYear(1584);const c=l*(u-+((0,i.z)(a,s)===-l));return 0===c?0:c}},7685(t,e,n){"use strict";n.d(e,{k:()=>o});var r=n(59007),i=n(43329);function o(t,e){const{start:n,end:o}=(0,r.P)(e?.in,t);let a=+n>+o;const s=a?+n:+o,l=a?o:n;l.setHours(0,0,0,0);let u=e?.step??1;if(!u)return[];u<0&&(u=-u,a=!a);const c=[];for(;+l<=s;)c.push((0,i.w)(n,l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return a?c.reverse():c}},12268(t,e,n){"use strict";n.d(e,{D:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in);return n.setHours(23,59,59,999),n}},11580(t,e,n){"use strict";n.d(e,{p:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}},54352(t,e,n){"use strict";n.d(e,{$:()=>o});var r=n(92516),i=n(29407);function o(t,e){const n=(0,r.q)(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,i.a)(t,e?.in),s=a.getDay(),l=6+(s<o?-7:0)-(s-o);return a.setDate(a.getDate()+l),a.setHours(23,59,59,999),a}},64169(t,e,n){"use strict";n.d(e,{Q:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}},84287(t,e,n){"use strict";n.d(e,{k:()=>c});var r=n(75156),i=n(92516),o=n(14936),a=n(1108),s=n(5305),l=n(96054),u=n(61501);function c(t,e,n){const c=(0,i.q)(),h=n?.locale??c.locale??r.c,d=(0,l.z)(t,e);if(isNaN(d))throw new RangeError("Invalid time value");const f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:d}),[p,g]=(0,s.x)(n?.in,...d>0?[e,t]:[t,e]),m=(0,o.u)(n?.roundingMethod??"round"),b=g.getTime()-p.getTime(),v=b/u.Cg,y=(b-((0,a.G)(g)-(0,a.G)(p)))/u.Cg,w=n?.unit;let D;if(D=w||(v<1?"second":v<60?"minute":v<u.F6?"hour":y<u.Nw?"day":y<u.Ks?"month":"year"),"second"===D){const t=m(b/1e3);return h.formatDistance("xSeconds",t,f)}if("minute"===D){const t=m(v);return h.formatDistance("xMinutes",t,f)}if("hour"===D){const t=m(v/60);return h.formatDistance("xHours",t,f)}if("day"===D){const t=m(y/u.F6);return h.formatDistance("xDays",t,f)}if("month"===D){const t=m(y/u.Nw);return 12===t&&"month"!==w?h.formatDistance("xYears",1,f):h.formatDistance("xMonths",t,f)}{const t=m(y/u.Ks);return h.formatDistance("xYears",t,f)}}},16798(t,e,n){"use strict";n.d(e,{B:()=>o});var r=n(52365),i=n(84287);function o(t,e){return(0,i.k)(t,(0,r.A)(t),e)}},63537(t,e,n){"use strict";n.d(e,{W:()=>i});var r=n(29407);function i(t){return+(0,r.a)(t)}},35047(t,e,n){"use strict";n.d(e,{_:()=>i});var r=n(29407);function i(t){return Math.trunc(+(0,r.a)(t)/1e3)}},55378(t,e,n){"use strict";n.d(e,{F:()=>h});var r=n(59007),i=n(42539),o=n(18373),a=n(98163),s=n(49785),l=n(10911),u=n(91349),c=n(26382);function h(t,e){const{start:n,end:h}=(0,r.P)(e?.in,t),d={},f=(0,c.V)(h,n);f&&(d.years=f);const p=(0,i.W)(n,{years:d.years}),g=(0,l.W)(h,p);g&&(d.months=g);const m=(0,i.W)(p,{months:d.months}),b=(0,o.c)(h,m);b&&(d.days=b);const v=(0,i.W)(m,{days:d.days}),y=(0,a.M)(h,v);y&&(d.hours=y);const w=(0,i.W)(v,{hours:d.hours}),D=(0,s.o)(h,w);D&&(d.minutes=D);const x=(0,i.W)(w,{minutes:d.minutes}),_=(0,u.O)(h,x);return _&&(d.seconds=_),d}},48497(t,e,n){"use strict";n.d(e,{Y:()=>i});var r=n(29407);function i(t,e){return+(0,r.a)(t)<+(0,r.a)(e)}},92705(t,e,n){"use strict";n.d(e,{u:()=>o});var r=n(32370),i=n(58646);function o(t,e,n){return(0,r.f)((0,i.qg)(t,e,new Date,n))}},45710(t,e,n){"use strict";n.d(e,{R:()=>i});var r=n(29407);function i(t){return+(0,r.a)(t)<Date.now()}},88652(t,e,n){"use strict";n.d(e,{r:()=>o});var r=n(5305),i=n(6463);function o(t,e,n){const[o,a]=(0,r.x)(n?.in,t,e);return+(0,i.o)(o)===+(0,i.o)(a)}},91868(t,e,n){"use strict";n.d(e,{t:()=>i});var r=n(5305);function i(t,e,n){const[i,o]=(0,r.x)(n?.in,t,e);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}},73604(t,e,n){"use strict";n.d(e,{v:()=>i});var r=n(29407);function i(t,e,n){const i=+(0,r.a)(t,n?.in),[o,a]=[+(0,r.a)(e.start,n?.in),+(0,r.a)(e.end,n?.in)].sort(((t,e)=>t-e));return i>=o&&i<=a}},58646(t,e,n){"use strict";n.d(e,{qg:()=>mt});var r=n(75156),i=n(78668),o=n(3265),a=n(43329),s=n(92516);function l(){return Object.assign({},(0,s.q)())}var u=n(29407);function c(t,e){const n=function(t){return"function"===typeof t&&t.prototype?.constructor===t}(e)?new e(0):(0,a.w)(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}class h{subPriority=0;validate(t,e){return!0}}class d extends h{constructor(t,e,n,r,i){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class f extends h{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,a.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,a.w)(t,c(t,this.context))}}class p{run(t,e,n,r){const i=this.parse(t,e,n,r);return i?{setter:new d(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,e,n){return!0}}var g=n(61501);const m=/^(1[0-2]|0?\d)/,b=/^(3[0-1]|[0-2]?\d)/,v=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,y=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,D=/^(2[0-4]|[0-1]?\d)/,x=/^(1[0-1]|0?\d)/,_=/^(1[0-2]|0?\d)/,k=/^[0-5]?\d/,S=/^[0-5]?\d/,C=/^\d/,F=/^\d{1,2}/,A=/^\d{1,3}/,E=/^\d{1,4}/,L=/^-?\d+/,N=/^-?\d/,P=/^-?\d{1,2}/,M=/^-?\d{1,3}/,O=/^-?\d{1,4}/,I=/^([+-])(\d{2})(\d{2})?|Z/,T=/^([+-])(\d{2})(\d{2})|Z/,R=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,j=/^([+-])(\d{2}):(\d{2})|Z/,B=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function z(t,e){return t?{value:e(t.value),rest:t.rest}:t}function q(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function W(t,e){const n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*g.s0+o*g.Cg+a*g._m),rest:e.slice(n[0].length)}}function H(t){return q(L,t)}function U(t,e){switch(t){case 1:return q(C,e);case 2:return q(F,e);case 3:return q(A,e);case 4:return q(E,e);default:return q(new RegExp("^\\d{1,"+t+"}"),e)}}function Y(t,e){switch(t){case 1:return q(N,e);case 2:return q(P,e);case 3:return q(M,e);case 4:return q(O,e);default:return q(new RegExp("^-?\\d{1,"+t+"}"),e)}}function V(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function $(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const e=r+50;i=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return n?i:1-i}function G(t){return t%400===0||t%4===0&&t%100!==0}var K=n(84485),J=n(80337);var X=n(22008);var Q=n(65456);function Z(t,e,n){const r=(0,u.a)(t,n?.in),i=(0,Q.N)(r,n)-e;return r.setDate(r.getDate()-7*i),(0,u.a)(r,n?.in)}var tt=n(72794);function et(t,e,n){const r=(0,u.a)(t,n?.in),i=(0,tt.s)(r,n)-e;return r.setDate(r.getDate()-7*i),r}const nt=[31,28,31,30,31,30,31,31,30,31,30,31],rt=[31,29,31,30,31,30,31,31,30,31,30,31];var it=n(16172);function ot(t,e,n){const r=(0,s.q)(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,u.a)(t,n?.in),a=o.getDay(),l=7-i,c=e<0||e>6?e-(a+l)%7:((e%7+7)%7+l)%7-(a+l)%7;return(0,it.f)(o,c,n)}function at(t,e){const n=(0,u.a)(t,e?.in).getDay();return 0===n?7:n}function st(t,e,n){const r=(0,u.a)(t,n?.in),i=e-at(r,n);return(0,it.f)(r,i,n)}var lt=n(1108);const ut={G:new class extends p{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends p{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return z(U(4,t),r);case"yo":return z(n.ordinalNumber(t,{unit:"year"}),r);default:return z(U(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const r=t.getFullYear();if(n.isTwoDigitYear){const e=$(n.year,r);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const i="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Y:new class extends p{priority=130;parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return z(U(4,t),r);case"Yo":return z(n.ordinalNumber(t,{unit:"year"}),r);default:return z(U(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,r){const i=(0,K.h)(t,r);if(n.isTwoDigitYear){const e=$(n.year,i);return t.setFullYear(e,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),(0,J.k)(t,r)}const o="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),(0,J.k)(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends p{priority=130;parse(t,e){return Y("R"===e?4:e.length,t)}set(t,e,n){const r=(0,a.w)(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,X.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends p{priority=130;parse(t,e){return Y("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends p{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return U(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends p{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return U(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends p{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"M":return z(q(m,t),r);case"MM":return z(U(2,t),r);case"Mo":return z(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},L:new class extends p{priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"L":return z(q(m,t),r);case"LL":return z(U(2,t),r);case"Lo":return z(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends p{priority=100;parse(t,e,n){switch(e){case"w":return q(y,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,r){return(0,J.k)(Z(t,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends p{priority=100;parse(t,e,n){switch(e){case"I":return q(y,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return(0,X.b)(et(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends p{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return q(b,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return U(e.length,t)}}validate(t,e){const n=G(t.getFullYear()),r=t.getMonth();return n?e>=1&&e<=rt[r]:e>=1&&e<=nt[r]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends p{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return q(v,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return U(e.length,t)}}validate(t,e){return G(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends p{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=ot(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends p{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return z(U(e.length,t),i);case"eo":return z(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=ot(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends p{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return z(U(e.length,t),i);case"co":return z(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=ot(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends p{priority=90;parse(t,e,n){const r=t=>0===t?7:t;switch(e){case"i":case"ii":return U(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return z(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return z(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return z(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return z(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return(t=st(t,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends p{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(V(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends p{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(V(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends p{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(V(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends p{priority=70;parse(t,e,n){switch(e){case"h":return q(_,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):r||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends p{priority=70;parse(t,e,n){switch(e){case"H":return q(w,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends p{priority=70;parse(t,e,n){switch(e){case"K":return q(x,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends p{priority=70;parse(t,e,n){switch(e){case"k":return q(D,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends p{priority=60;parse(t,e,n){switch(e){case"m":return q(k,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]},s:new class extends p{priority=50;parse(t,e,n){switch(e){case"s":return q(S,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]},S:new class extends p{priority=30;parse(t,e){return z(U(e.length,t),(t=>Math.trunc(t*Math.pow(10,3-e.length))))}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]},X:new class extends p{priority=10;parse(t,e){switch(e){case"X":return W(I,t);case"XX":return W(T,t);case"XXXX":return W(R,t);case"XXXXX":return W(B,t);default:return W(j,t)}}set(t,e,n){return e.timestampIsSet?t:(0,a.w)(t,t.getTime()-(0,lt.G)(t)-n)}incompatibleTokens=["t","T","x"]},x:new class extends p{priority=10;parse(t,e){switch(e){case"x":return W(I,t);case"xx":return W(T,t);case"xxxx":return W(R,t);case"xxxxx":return W(B,t);default:return W(j,t)}}set(t,e,n){return e.timestampIsSet?t:(0,a.w)(t,t.getTime()-(0,lt.G)(t)-n)}incompatibleTokens=["t","T","X"]},t:new class extends p{priority=40;parse(t){return H(t)}set(t,e,n){return[(0,a.w)(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends p{priority=20;parse(t){return H(t)}set(t,e,n){return[(0,a.w)(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ht=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dt=/^'([^]*?)'?$/,ft=/''/g,pt=/\S/,gt=/[a-zA-Z]/;function mt(t,e,n,s){const c=()=>(0,a.w)(s?.in||n,NaN),h=l(),d=s?.locale??h.locale??r.c,p=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??h.firstWeekContainsDate??h.locale?.options?.firstWeekContainsDate??1,g=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??h.weekStartsOn??h.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,u.a)(n,s?.in);const m={firstWeekContainsDate:p,weekStartsOn:g,locale:d},b=[new f(s?.in,n)],v=e.match(ht).map((t=>{const e=t[0];if(e in i.m){return(0,i.m[e])(t,d.formatLong)}return t})).join("").match(ct),y=[];for(let r of v){!s?.useAdditionalWeekYearTokens&&(0,o.xM)(r)&&(0,o.Ss)(r,e,t),!s?.useAdditionalDayOfYearTokens&&(0,o.ef)(r)&&(0,o.Ss)(r,e,t);const n=r[0],i=ut[n];if(i){const{incompatibleTokens:e}=i;if(Array.isArray(e)){const t=y.find((t=>e.includes(t.token)||t.token===n));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${r}\` at the same time`)}else if("*"===i.incompatibleTokens&&y.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);y.push({token:n,fullToken:r});const o=i.run(t,r,d.match,m);if(!o)return c();b.push(o.setter),t=o.rest}else{if(n.match(gt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===r?r="'":"'"===n&&(r=r.match(dt)[1].replace(ft,"'")),0!==t.indexOf(r))return c();t=t.slice(r.length)}}if(t.length>0&&pt.test(t))return c();const w=b.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>b.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let D=(0,u.a)(n,s?.in);if(isNaN(+D))return c();const x={};for(const r of w){if(!r.validate(D,m))return c();const t=r.set(D,x,m);Array.isArray(t)?(D=t[0],Object.assign(x,t[1])):D=t}return D}},41394(t,e,n){"use strict";n.d(e,{H:()=>a});var r=n(61501),i=n(43329),o=n(29407);function a(t,e){const n=()=>(0,i.w)(e?.in,NaN),a=e?.additionalDigits??2,g=function(t){const e={},n=t.split(s.dateTimeDelimiter);let r;if(n.length>2)return e;/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],s.timeZoneDelimiter.test(e.date)&&(e.date=t.split(s.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length)));if(r){const t=s.timezone.exec(r);t?(e.time=r.replace(t[1],""),e.timezone=t[1]):e.time=r}return e}(t);let m;if(g.date){const t=function(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}(g.date,a);m=function(t,e){if(null===e)return new Date(NaN);const n=t.match(l);if(!n)return new Date(NaN);const r=!!n[4],i=h(n[1]),o=h(n[2])-1,a=h(n[3]),s=h(n[4]),u=h(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,u)?function(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(e,s,u):new Date(NaN);{const t=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(f[e]||(p(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(p(t)?366:365)}(e,i)?(t.setUTCFullYear(e,o,Math.max(i,a)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!m||isNaN(+m))return n();const b=+m;let v,y=0;if(g.time&&(y=function(t){const e=t.match(u);if(!e)return NaN;const n=d(e[1]),i=d(e[2]),o=d(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,i,o))return NaN;return n*r.s0+i*r.Cg+1e3*o}(g.time),isNaN(y)))return n();if(!g.timezone){const t=new Date(b+y),n=(0,o.a)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return v=function(t){if("Z"===t)return 0;const e=t.match(c);if(!e)return 0;const n="+"===e[1]?-1:1,i=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,o))return NaN;return n*(i*r.s0+o*r.Cg)}(g.timezone),isNaN(v)?n():(0,o.a)(b+y+v,e?.in)}const s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(t){return t?parseInt(t):1}function d(t){return t&&parseFloat(t.replace(",","."))||0}const f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400===0||t%4===0&&t%100!==0}},99574(t,e,n){"use strict";n.d(e,{c:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in);return n.setSeconds(0,0),n}},27763(t,e,n){"use strict";n.d(e,{w:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}},4501(t,e,n){"use strict";n.d(e,{a:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in),i=n.getMonth(),o=i-i%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}},80696(t,e,n){"use strict";n.d(e,{R:()=>i});var r=n(6463);function i(t){return(0,r.o)(Date.now(),t)}},9618(t,e,n){"use strict";n.d(e,{R:()=>o});var r=n(43329),i=n(52365);function o(t){const e=(0,i.A)(t?.in),n=e.getFullYear(),o=e.getMonth(),a=e.getDate(),s=(0,r.w)(t?.in,0);return s.setFullYear(n,o,a+1),s.setHours(0,0,0,0),s}},69821(t,e,n){"use strict";n.d(e,{e:()=>i});var r=n(16172);function i(t,e,n){return(0,r.f)(t,-e,n)}},60125(t,e,n){"use strict";n.d(e,{a:()=>i});var r=n(66304);function i(t,e,n){return(0,r.P)(t,-e,n)}},90631(t,e,n){"use strict";n.d(e,{A:()=>r});const r=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},25708(t,e,n){"use strict";function r(t,e,n,r,i){r=r||{};var o=i.internal.scaleFactor,a=i.internal.getFontSize()/o,s=a*(i.getLineHeightFactor?i.getLineHeightFactor():1.15),l="",u=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(u=(l="string"===typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=a*(2-1.15),"middle"===r.valign?n-=u/2*s:"bottom"===r.valign&&(n-=u*s),"center"===r.halign||"right"===r.halign){var c=a;if("center"===r.halign&&(c*=.5),l&&u>=1){for(var h=0;h<l.length;h++)i.text(l[h],e-i.getStringUnitWidth(l[h])*c,n),n+=s;return i}e-=i.getStringUnitWidth(t)*c}return"justify"===r.halign?i.text(t,e,n,{maxWidth:r.maxWidth||100,align:"justify"}):i.text(t,e,n),i}n.d(e,{cs:()=>G});var i={},o=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:i=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"===typeof t?[t,t,t]:"string"===typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var r,i,o;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var a=this.jsPDFDocument.internal.getFont(),s=a.fontStyle,l=a.fontName;if(e.font&&(l=e.font),e.fontStyle){s=e.fontStyle;var u=this.getFontList()[l];u&&-1===u.indexOf(s)&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var c=t.unifyColor(e.fillColor);c&&(r=this.jsPDFDocument).setFillColor.apply(r,c),(c=t.unifyColor(e.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,c),(c=t.unifyColor(e.lineColor))&&(o=this.jsPDFDocument).setDrawColor.apply(o,c),"number"===typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,r,i){return this.jsPDFDocument.rect(t,e,n,r,i)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return i||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}(),a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)};function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}"function"===typeof SuppressedError&&SuppressedError;var l=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return s(e,t),e}(Array);function u(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)}function c(t,e,n,r){var i=e.settings.tableLineWidth,o=e.settings.tableLineColor;t.applyStyles({lineWidth:i,lineColor:o});var a=h(i,!1);a&&t.rect(n.x,n.y,e.getWidth(t.pageSize().width),r.y-n.y,a)}function h(t,e){var n=t>0,r=e||0===e;return n&&r?"DF":n?"S":r?"F":null}function d(t,e){var n,r,i,o;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"===typeof t?("number"===typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"===typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(r=t.top)&&void 0!==r?r:e,right:null!==(i=t.right)&&void 0!==i?i:e,bottom:null!==(o=t.bottom)&&void 0!==o?o:e}):("number"!==typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}function f(t,e){var n=d(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}function p(t,e,n,r,i){var o={},a=96/72,s=g(e,(function(t){return i.getComputedStyle(t).backgroundColor}));null!=s&&(o.fillColor=s);var l=g(e,(function(t){return i.getComputedStyle(t).color}));null!=l&&(o.textColor=l);var u=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],r=96/(72/e),i=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,o=n.map((function(t){return parseInt(t||"0")/r})),a=d(o,0);i>a.top&&(a.top=i);i>a.bottom&&(a.bottom=i);return a}(r,n);u&&(o.cellPadding=u);var c="borderTopColor",h=a*n,f=r.borderTopWidth;if(r.borderBottomWidth===f&&r.borderRightWidth===f&&r.borderLeftWidth===f){var p=(parseFloat(f)||0)/h;p&&(o.lineWidth=p)}else o.lineWidth={top:(parseFloat(r.borderTopWidth)||0)/h,right:(parseFloat(r.borderRightWidth)||0)/h,bottom:(parseFloat(r.borderBottomWidth)||0)/h,left:(parseFloat(r.borderLeftWidth)||0)/h},o.lineWidth.top||(o.lineWidth.right?c="borderRightColor":o.lineWidth.bottom?c="borderBottomColor":o.lineWidth.left&&(c="borderLeftColor"));var m=g(e,(function(t){return i.getComputedStyle(t)[c]}));null!=m&&(o.lineColor=m);var b=["left","right","center","justify"];-1!==b.indexOf(r.textAlign)&&(o.halign=r.textAlign),-1!==(b=["middle","bottom","top"]).indexOf(r.verticalAlign)&&(o.valign=r.verticalAlign);var v=parseInt(r.fontSize||"");isNaN(v)||(o.fontSize=v/a);var y=function(t){var e="";("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold");"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic");return e}(r);y&&(o.fontStyle=y);var w=(r.fontFamily||"").toLowerCase();return-1!==t.indexOf(w)&&(o.font=w),o}function g(t,e){var n=m(t,e);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function m(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:m(t.parentElement,e):n}function b(t,e,n,r,i){var o,a,s;void 0===r&&(r=!1),void 0===i&&(i=!1),s="string"===typeof e?n.document.querySelector(e):e;var l=Object.keys(t.getFontList()),u=t.scaleFactor(),c=[],h=[],d=[];if(!s)return console.error("Html table could not be found with input: ",e),{head:c,body:h,foot:d};for(var f=0;f<s.rows.length;f++){var p=s.rows[f],g=null===(a=null===(o=null===p||void 0===p?void 0:p.parentElement)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase(),m=v(l,u,n,p,r,i);m&&("thead"===g?c.push(m):"tfoot"===g?d.push(m):h.push(m))}return{head:c,body:h,foot:d}}function v(t,e,n,r,i,o){for(var a=new l(r),s=0;s<r.cells.length;s++){var u=r.cells[s],c=n.getComputedStyle(u);if(i||"none"!==c.display){var h=void 0;o&&(h=p(t,u,e,c,n)),a.push({rowSpan:u.rowSpan,colSpan:u.colSpan,styles:h,_element:u,content:y(u)})}}var d=n.getComputedStyle(r);if(a.length>0&&(i||"none"!==d.display))return a}function y(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}function w(t,e,n,r,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),a=1;a<arguments.length;a++){var s=arguments[a];if(null!=s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])}return o}function D(t,e){var n=new o(t),r=n.getDocumentOptions(),i=n.getGlobalOptions();!function(t,e,n){for(var r=0,i=[t,e,n];r<i.length;r++){var o=i[r];o&&"object"!==typeof o&&console.error("The options parameter should be of type object, is: "+typeof o),o.startY&&"number"!==typeof o.startY&&(console.error("Invalid value for startY option",o.startY),delete o.startY)}}(i,r,e);var a,s=w({},i,r,e);"undefined"!==typeof window&&(a=window);var l=function(t,e,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(i){if("columnStyles"===i){var o=t[i],a=e[i],s=n[i];r.columnStyles=w({},o,a,s)}else{var l=[t,e,n].map((function(t){return t[i]||{}}));r[i]=w({},l[0],l[1],l[2])}},o=0,a=Object.keys(r);o<a.length;o++){i(a[o])}return r}(i,r,e),u=function(t,e,n){for(var r={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,o=[t,e,n];i<o.length;i++){var a=o[i];a.didParseCell&&r.didParseCell.push(a.didParseCell),a.willDrawCell&&r.willDrawCell.push(a.willDrawCell),a.didDrawCell&&r.didDrawCell.push(a.didDrawCell),a.willDrawPage&&r.willDrawPage.push(a.willDrawPage),a.didDrawPage&&r.didDrawPage.push(a.didDrawPage)}return r}(i,r,e),c=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p,g,m,b=d(e.margin,40/t.scaleFactor()),v=null!==(n=function(t,e){var n=t.getLastAutoTable(),r=t.scaleFactor(),i=t.pageNumber(),o=!1;if(n&&n.startPageNumber){o=n.startPageNumber+n.pageNumber-1===i}if("number"===typeof e)return e;if((null==e||!1===e)&&o&&null!=(null===n||void 0===n?void 0:n.finalY))return n.finalY+20/r;return null}(t,e.startY))&&void 0!==n?n:b.top;g=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(r=e.showFoot)&&void 0!==r?r:"everyPage";m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(i=e.showHead)&&void 0!==i?i:"everyPage";var y=null!==(o=e.useCss)&&void 0!==o&&o,w=e.theme||(y?"plain":"striped"),D=!!e.horizontalPageBreak,x=null!==(a=e.horizontalPageBreakRepeat)&&void 0!==a?a:null;return{includeHiddenHtml:null!==(s=e.includeHiddenHtml)&&void 0!==s&&s,useCss:y,theme:w,startY:v,margin:b,pageBreak:null!==(l=e.pageBreak)&&void 0!==l?l:"auto",rowPageBreak:null!==(u=e.rowPageBreak)&&void 0!==u?u:"auto",tableWidth:null!==(c=e.tableWidth)&&void 0!==c?c:"auto",showHead:m,showFoot:g,tableLineWidth:null!==(h=e.tableLineWidth)&&void 0!==h?h:0,tableLineColor:null!==(f=e.tableLineColor)&&void 0!==f?f:200,horizontalPageBreak:D,horizontalPageBreakRepeat:x,horizontalPageBreakBehaviour:null!==(p=e.horizontalPageBreakBehaviour)&&void 0!==p?p:"afterAllRows"}}(n,s),h=function(t,e,n){var r=e.head||[],i=e.body||[],o=e.foot||[];if(e.html){var a=e.includeHiddenHtml;if(n){var s=b(t,e.html,n,a,e.useCss)||{};r=s.head||r,i=s.body||r,o=s.foot||r}else console.error("Cannot parse html in non browser environment")}var l=e.columns||function(t,e,n){var r=t[0]||e[0]||n[0]||[],i=[];return Object.keys(r).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!==typeof(e=Array.isArray(r)?r[parseInt(t)]:r[t])||Array.isArray(e)||(n=(null===e||void 0===e?void 0:e.colSpan)||1);for(var o=0;o<n;o++){var a={dataKey:Array.isArray(r)?i.length:t+(o>0?"_".concat(o):"")};i.push(a)}})),i}(r,i,o);return{columns:l,head:r,body:i,foot:o}}(n,s,a);return{id:e.tableId,content:h,hooks:u,styles:l,settings:c}}var x,_=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()},k=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n,a)||this;return s.cell=r,s.row=i,s.column=o,s.section=i.section,s}return s(e,t),e}(_),S=function(){function t(t,e){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,r,i,o){for(var a=0,s=e;a<s.length;a++){var l=!1===(0,s[a])(new k(t,this,n,r,i,o));if(n.text=Array.isArray(n.text)?n.text:[n.text],l)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,r=this.hooks.didDrawPage;n<r.length;n++){(0,r[n])(new _(t,this,e))}},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,r=this.hooks.willDrawPage;n<r.length;n++){(0,r[n])(new _(t,this,e))}},t.prototype.getWidth=function(t){if("number"===typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(t,e){return t+e.wrappedWidth}),0);var e=this.settings.margin;return t-e.left-e.right},t}(),C=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this.height=0,this.raw=t,t instanceof l&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=r,this.spansMultiplePages=i}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var r;return Math.max(t,(null===(r=e.cells[n.index])||void 0===r?void 0:r.height)||0)}),0)},t.prototype.hasRowSpan=function(t){var e=this;return t.filter((function(t){var n=e.cells[t.index];return!!n&&n.rowSpan>1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,r){var i=n.cells[r.index];if(!i)return 0;var o=e.getLineHeight(i.styles.fontSize),a=i.padding("vertical")+o;return a>t?a:t}),0)},t}(),F=function(){function t(t,e,n){var r;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var i=t;null==t||"object"!==typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,i=null!==(r=t.content)&&void 0!==r?r:t,t._element&&(this.raw=t._element));var o=null!=i?""+i:"";this.text=o.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var r=this.width-this.padding("horizontal");e=this.x+r/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t,e){void 0===e&&(e=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*e)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=d(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}(),A=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,r=t.allRows();n<r.length;n++){var i=r[n].cells[this.index];i&&"number"===typeof i.styles.cellWidth&&(e=Math.max(e,i.styles.cellWidth))}return e},t}();function E(t,e){!function(t,e){var n=t.scaleFactor(),r=e.settings.horizontalPageBreak,i=f(t,e);e.allRows().forEach((function(o){for(var a=0,s=e.columns;a<s.length;a++){var l=s[a],c=o.cells[l.index];if(c){var h=e.hooks.didParseCell;e.callCellHooks(t,h,c,o,l,null);var d=c.padding("horizontal");c.contentWidth=u(c.text,c.styles,t)+d;var f=u(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,t);if(c.minReadableWidth=f+c.padding("horizontal"),"number"===typeof c.styles.cellWidth)c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if("wrap"===c.styles.cellWidth||!0===r)c.contentWidth>i?(c.minWidth=i,c.wrappedWidth=i):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var p=10/n;c.minWidth=c.styles.minCellWidth||p,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,r=e.columns;n<r.length;n++){var i=r[n],o=t.cells[i.index];if(o&&1===o.colSpan)i.wrappedWidth=Math.max(i.wrappedWidth,o.wrappedWidth),i.minWidth=Math.max(i.minWidth,o.minWidth),i.minReadableWidth=Math.max(i.minReadableWidth,o.minReadableWidth);else{var a=e.styles.columnStyles[i.dataKey]||e.styles.columnStyles[i.index]||{},s=a.cellWidth||a.minCellWidth;s&&"number"===typeof s&&(i.minWidth=s,i.wrappedWidth=s)}o&&(o.colSpan>1&&!i.minWidth&&(i.minWidth=o.minWidth),o.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=o.minWidth))}}))}(t,e);var n=[],r=0;e.columns.forEach((function(t){var i=t.getMaxCustomCellWidth(e);i?t.width=i:(t.width=t.wrappedWidth,n.push(t)),r+=t.width}));var i=e.getWidth(t.pageSize().width)-r;i&&(i=L(n,i,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),i&&(i=L(n,i,(function(t){return t.minWidth}))),i=Math.abs(i),!e.settings.horizontalPageBreak&&i>.1/t.scaleFactor()&&(i=i<1?i:Math.round(i),console.log("Of the table content, ".concat(i," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var r=e[n],i=null,o=0,a=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((a-=1)>1&&t.columns[s+1])o+=l.width,delete r.cells[l.index];else if(i){var u=i;delete r.cells[l.index],i=null,u.width=l.width+o}else{if(!(u=r.cells[l.index]))continue;if(a=u.colSpan,o=0,u.colSpan>1){i=u,o+=l.width;continue}u.width=l.width+o}}}(e),function(t,e){for(var n={count:0,height:0},r=0,i=t.allRows();r<i.length;r++){for(var o=i[r],a=0,s=t.columns;a<s.length;a++){var l=s[a],u=o.cells[l.index];if(u){e.applyStyles(u.styles,!0);var c=u.width-u.padding("horizontal");if("linebreak"===u.styles.overflow)u.text=e.splitTextToSize(u.text,c+1/e.scaleFactor(),{fontSize:u.styles.fontSize});else if("ellipsize"===u.styles.overflow)u.text=N(u.text,c,u.styles,e,"...");else if("hidden"===u.styles.overflow)u.text=N(u.text,c,u.styles,e,"");else if("function"===typeof u.styles.overflow){var h=u.styles.overflow(u.text,c);u.text="string"===typeof h?[h]:h}u.contentHeight=u.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var d=u.contentHeight/u.rowSpan;u.rowSpan>1&&n.count*n.height<d*u.rowSpan?n={height:d,count:u.rowSpan}:n&&n.count>0&&n.height>d&&(d=n.height),d>o.height&&(o.height=d)}}n.count--}}(e,t),function(t){for(var e={},n=1,r=t.allRows(),i=0;i<r.length;i++)for(var o=r[i],a=0,s=t.columns;a<s.length;a++){var l=s[a],u=e[l.index];if(n>1)n--,delete o.cells[l.index];else if(u)u.cell.height+=o.height,n=u.cell.colSpan,delete o.cells[l.index],u.left--,u.left<=1&&delete e[l.index];else{var c=o.cells[l.index];if(!c)continue;if(c.height=o.height,c.rowSpan>1){var h=r.length-i,d=c.rowSpan>h?h:c.rowSpan;e[l.index]={cell:c,left:d,row:o}}}}}(e)}function L(t,e,n){for(var r=e,i=t.reduce((function(t,e){return t+e.wrappedWidth}),0),o=0;o<t.length;o++){var a=t[o],s=r*(a.wrappedWidth/i),l=a.width+s,u=n(a),c=l<u?u:l;e-=c-a.width,a.width=c}if(e=Math.round(1e10*e)/1e10){var h=t.filter((function(t){return!(e<0)||t.width>n(t)}));h.length&&(e=L(h,e,n))}return e}function N(t,e,n,r,i){return t.map((function(t){return function(t,e,n,r,i){var o=1e4*r.scaleFactor();if(e=Math.ceil(e*o)/o,e>=u(t,n,r))return t;for(;e<u(t+i,n,r)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+i}(t,e,n,r,i)}))}function P(t,e){var n=new o(t),r=function(t,e){var n=t.content,r=function(t){return t.map((function(t,e){var n,r;return r="object"===typeof t&&null!==(n=t.dataKey)&&void 0!==n?n:e,new A(r,t,e)}))}(n.columns);if(0===n.head.length){(i=O(r,"head"))&&n.head.push(i)}if(0===n.foot.length){var i;(i=O(r,"foot"))&&n.foot.push(i)}var o=t.settings.theme,a=t.styles;return{columns:r,head:M("head",n.head,r,a,o,e),body:M("body",n.body,r,a,o,e),foot:M("foot",n.foot,r,a,o,e)}}(e,n.scaleFactor()),i=new S(e,r);return E(n,i),n.applyStyles(n.userStyles),i}function M(t,e,n,r,i,o){var a={};return e.map((function(e,s){for(var l=0,u={},c=0,h=0,d=0,f=n;d<f.length;d++){var p=f[d];if(null==a[p.index]||0===a[p.index].left)if(0===h){var g=void 0,m={};"object"!==typeof(g=Array.isArray(e)?e[p.index-c-l]:e[p.dataKey])||Array.isArray(g)||(m=(null===g||void 0===g?void 0:g.styles)||{});var b=I(t,p,s,i,r,o,m),v=new F(g,b,t);u[p.dataKey]=v,u[p.index]=v,h=v.colSpan-1,a[p.index]={left:v.rowSpan-1,times:h}}else h--,c++;else a[p.index].left--,h=a[p.index].times,l++}return new C(e,s,t,u)}))}function O(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var r=function(t,e){if("head"===t){if("object"===typeof e)return e.header||null;if("string"===typeof e||"number"===typeof e)return e}else if("foot"===t&&"object"===typeof e)return e.footer;return null}(e,t.raw);null!=r&&(n[t.dataKey]=r)}})),Object.keys(n).length>0?n:null}function I(t,e,n,r,i,o,a){var s,l={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[r];"head"===t?s=i.headStyles:"body"===t?s=i.bodyStyles:"foot"===t&&(s=i.footStyles);var u=w({},l.table,l[t],i.styles,s),c=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},h="body"===t?c:{},d="body"===t&&n%2===0?w({},l.alternateRow,i.alternateRowStyles):{},f=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}(o),p=w({},f,u,d,h);return w(p,a)}function T(t,e,n){var r;void 0===n&&(n={});var i=f(t,e),o=new Map,a=[],s=[],l=[];Array.isArray(e.settings.horizontalPageBreakRepeat)?l=e.settings.horizontalPageBreakRepeat:"string"!==typeof e.settings.horizontalPageBreakRepeat&&"number"!==typeof e.settings.horizontalPageBreakRepeat||(l=[e.settings.horizontalPageBreakRepeat]),l.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!o.has(n.index)&&(o.set(n.index,!0),a.push(n.index),s.push(e.columns[n.index]),i-=n.wrappedWidth)}));for(var u=!0,c=null!==(r=null===n||void 0===n?void 0:n.start)&&void 0!==r?r:0;c<e.columns.length;)if(o.has(c))c++;else{var h=e.columns[c].wrappedWidth;if(!(u||i>=h))break;u=!1,a.push(c),s.push(e.columns[c]),i-=h,c++}return{colIndexes:a,columns:s,lastIndex:c-1}}function R(t,e){var n=e.settings,r=n.startY,i=n.margin,a={x:i.left,y:r},s=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),l=r+i.bottom+s;"avoid"===n.pageBreak&&(l+=e.body.reduce((function(t,e){return t+e.height}),0));var u=new o(t);("always"===n.pageBreak||null!=n.startY&&l>u.pageSize().height)&&($(u),a.y=i.top),e.callWillDrawPageHooks(u,a);var h=w({},a);e.startPageNumber=u.pageNumber(),n.horizontalPageBreak?function(t,e,n,r){var i=function(t,e){for(var n=[],r=0;r<e.columns.length;r++){var i=T(t,e,{start:r});i.columns.length&&(n.push(i),r=i.lastIndex)}return n}(t,e),o=e.settings;if("afterAllRows"===o.horizontalPageBreakBehaviour)i.forEach((function(i,o){t.applyStyles(t.userStyles),o>0?V(t,e,n,r,i.columns,!0):j(t,e,r,i.columns),function(t,e,n,r,i){t.applyStyles(t.userStyles),e.body.forEach((function(o,a){var s=a===e.body.length-1;W(t,e,o,s,n,r,i)}))}(t,e,n,r,i.columns),z(t,e,r,i.columns)}));else for(var a=-1,s=i[0],l=function(){var o=a;if(s){t.applyStyles(t.userStyles);var l=s.columns;a>=0?V(t,e,n,r,l,!0):j(t,e,r,l),o=B(t,e,a+1,r,l),z(t,e,r,l)}var u=o-a;i.slice(1).forEach((function(i){t.applyStyles(t.userStyles),V(t,e,n,r,i.columns,!0),B(t,e,a+1,r,i.columns,u),z(t,e,r,i.columns)})),a=o};a<e.body.length-1;)l()}(u,e,h,a):(u.applyStyles(u.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return H(u,e,t,a,e.columns)})),u.applyStyles(u.userStyles),e.body.forEach((function(t,n){var r=n===e.body.length-1;W(u,e,t,r,h,a,e.columns)})),u.applyStyles(u.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return H(u,e,t,a,e.columns)}))),c(u,e,h,a),e.callEndPageHooks(u,a),e.finalY=a.y,t.lastAutoTable=e,u.applyStyles(u.userStyles)}function j(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"firstPage"!==i.showHead&&"everyPage"!==i.showHead||e.head.forEach((function(i){return H(t,e,i,n,r)}))}function B(t,e,n,r,i,o){t.applyStyles(t.userStyles),o=null!==o&&void 0!==o?o:e.body.length;var a=Math.min(n+o,e.body.length),s=-1;return e.body.slice(n,a).forEach((function(o,a){var l=n+a===e.body.length-1,u=Y(t,e,l,r);o.canEntireRowFit(u,i)&&(H(t,e,o,r,i),s=n+a)})),s}function z(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"lastPage"!==i.showFoot&&"everyPage"!==i.showFoot||e.foot.forEach((function(i){return H(t,e,i,n,r)}))}function q(t,e,n){var r=n.getLineHeight(t.styles.fontSize),i=t.padding("vertical"),o=Math.floor((e-i)/r);return Math.max(0,o)}function W(t,e,n,r,i,o,a){var s=Y(t,e,r,o);if(n.canEntireRowFit(s,a))H(t,e,n,o,a);else if(function(t,e,n,r){var i=t.pageSize().height,o=r.settings.margin,a=i-(o.top+o.bottom);"body"===e.section&&(a-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var s=e.getMinimumRowHeight(r.columns,t),l=s<n;if(s>a)return console.log("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!l)return!1;var u=e.hasRowSpan(r.columns);return e.getMaxCellHeight(r.columns)>a?(u&&console.log("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!u&&"avoid"!==r.settings.rowPageBreak}(t,n,s,e)){var l=function(t,e,n,r){var i={};t.spansMultiplePages=!0,t.height=0;for(var o=0,a=0,s=n.columns;a<s.length;a++){var l=s[a];if(m=t.cells[l.index]){Array.isArray(m.text)||(m.text=[m.text]),(g=w(g=new F(m.raw,m.styles,m.section),m)).text=[];var u=q(m,e,r);m.text.length>u&&(g.text=m.text.splice(u,m.text.length));var c=r.scaleFactor(),h=r.getLineHeightFactor();m.contentHeight=m.getContentHeight(c,h),m.contentHeight>=e&&(m.contentHeight=e,g.styles.minCellHeight-=e),m.contentHeight>t.height&&(t.height=m.contentHeight),g.contentHeight=g.getContentHeight(c,h),g.contentHeight>o&&(o=g.contentHeight),i[l.index]=g}}var d=new C(t.raw,-1,t.section,i,!0);d.height=o;for(var f=0,p=n.columns;f<p.length;f++){var g,m;l=p[f],(g=d.cells[l.index])&&(g.height=d.height),(m=t.cells[l.index])&&(m.height=t.height)}return d}(n,s,e,t);H(t,e,n,o,a),V(t,e,i,o,a),W(t,e,l,r,i,o,a)}else V(t,e,i,o,a),W(t,e,n,r,i,o,a)}function H(t,e,n,i,o){i.x=e.settings.margin.left;for(var a=0,s=o;a<s.length;a++){var l=s[a],u=n.cells[l.index];if(u)if(t.applyStyles(u.styles),u.x=i.x,u.y=i.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,u,n,l,i)){U(t,u,i);var c=u.getTextPos();r(u.text,c.x,c.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,u,n,l,i),i.x+=l.width}else i.x+=l.width;else i.x+=l.width}i.y+=n.height}function U(t,e,n){var r=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"===typeof r.lineWidth){var i=h(r.lineWidth,r.fillColor);i&&t.rect(e.x,n.y,e.width,e.height,i)}else"object"===typeof r.lineWidth&&(r.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,r){var i,o,a,s;r.top&&(i=n.x,o=n.y,a=n.x+e.width,s=n.y,r.right&&(a+=.5*r.right),r.left&&(i-=.5*r.left),l(r.top,i,o,a,s));r.bottom&&(i=n.x,o=n.y+e.height,a=n.x+e.width,s=n.y+e.height,r.right&&(a+=.5*r.right),r.left&&(i-=.5*r.left),l(r.bottom,i,o,a,s));r.left&&(i=n.x,o=n.y,a=n.x,s=n.y+e.height,r.top&&(o-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.left,i,o,a,s));r.right&&(i=n.x+e.width,o=n.y,a=n.x+e.width,s=n.y+e.height,r.top&&(o-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.right,i,o,a,s));function l(e,n,r,i,o){t.getDocument().setLineWidth(e),t.getDocument().line(n,r,i,o,"S")}}(t,e,n,r.lineWidth))}function Y(t,e,n,r){var i=e.settings.margin.bottom,o=e.settings.showFoot;return("everyPage"===o||"lastPage"===o&&n)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-r.y-i}function V(t,e,n,r,i,o){void 0===i&&(i=[]),void 0===o&&(o=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||o||e.foot.forEach((function(n){return H(t,e,n,r,i)})),e.callEndPageHooks(t,r);var a=e.settings.margin;c(t,e,n,r),$(t),e.pageNumber++,r.x=a.left,r.y=a.top,n.y=a.top,e.callWillDrawPageHooks(t,r),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return H(t,e,n,r,i)})),t.applyStyles(t.userStyles))}function $(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}function G(t,e){R(t,P(t,D(t,e)))}try{if("undefined"!==typeof window&&window){var K=window,J=K.jsPDF||(null===(x=K.jspdf)||void 0===x?void 0:x.jsPDF);J&&function(t){t.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return R(this,P(this,D(this,t[0]))),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(t,e,n,i){r(t,e,n,i,this)},t.API.autoTableSetDefaults=function(t){return o.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){o.setDefaults(t,e)},t.API.autoTableHtmlToJson=function(t,e){var n;if(void 0===e&&(e=!1),"undefined"===typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var r=b(new o(this),t,window,e,!1),i=r.head,a=r.body;return{columns:(null===(n=i[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[],rows:a,data:a}}}(J)}}catch(X){console.error("Could not apply autoTable plugin",X)}},44731(t,e,n){"use strict";n.d(e,{nu:()=>g,t1:()=>d,yP:()=>p});var r=n(74848),i=n(96540),o=n(66118);const a="label";function s(t,e){"function"===typeof t?t(e):t&&(t.current=e)}function l(t,e){t.labels=e}function u(t,e,n=a){const r=[];t.datasets=e.map((e=>{const i=t.datasets.find((t=>t[n]===e[n]));return i&&e.data&&!r.includes(i)?(r.push(i),Object.assign(i,e),i):{...e}}))}function c(t,e=a){const n={labels:[],datasets:[]};return l(n,t.labels),u(n,t.datasets,e),n}function h(t,e){const{height:n=150,width:a=300,redraw:h=!1,datasetIdKey:d,type:f,data:p,options:g,plugins:m=[],fallbackContent:b,updateMode:v,...y}=t,w=(0,i.useRef)(null),D=(0,i.useRef)(null),x=()=>{w.current&&(D.current=new o.t1(w.current,{type:f,data:c(p,d),options:g&&{...g},plugins:m}),s(e,D.current))},_=()=>{s(e,null),D.current&&(D.current.destroy(),D.current=null)};return(0,i.useEffect)((()=>{!h&&D.current&&g&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(D.current,g)}),[h,g]),(0,i.useEffect)((()=>{!h&&D.current&&l(D.current.config.data,p.labels)}),[h,p.labels]),(0,i.useEffect)((()=>{!h&&D.current&&p.datasets&&u(D.current.config.data,p.datasets,d)}),[h,p.datasets]),(0,i.useEffect)((()=>{D.current&&(h?(_(),setTimeout(x)):D.current.update(v))}),[h,g,p.labels,p.datasets,v]),(0,i.useEffect)((()=>{D.current&&(_(),setTimeout(x))}),[f]),(0,i.useEffect)((()=>(x(),()=>_())),[]),(0,r.jsx)("canvas",{ref:w,role:"img",height:n,width:a,...y,children:b})}const d=(0,i.forwardRef)(h);function f(t,e){return o.t1.register(e),(0,i.forwardRef)(((e,n)=>(0,r.jsx)(d,{...e,ref:n,type:t})))}const p=f("bar",o.A6),g=f("doughnut",o.ju)}}]);