/*! For license information please see 358.07d60a88f64b1e176d43.js.LICENSE.txt */
(globalThis.webpackChunk_rio_rio_ui=globalThis.webpackChunk_rio_rio_ui||[]).push([[358],{10649(t,e,r){var i,n,s=r(1626),o=r(13786);i=t.exports,n=()=>a,Object.defineProperty(i,"BuddhistCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});class a extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=(0,o.getExtendedYear)(e.era,e.year);return new(0,s.CalendarDate)(this,r- -543,e.month,e.day)}toJulianDay(t){return super.toJulianDay(A(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(A(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function A(t){let[e,r]=(0,o.fromExtendedYear)(t.year+-543);return new(0,s.CalendarDate)(e,r,t.month,t.day)}},1626(t,e,r){var i=r(34639),n=r(70656),s=r(46135),o=r(13786),a=r(21400),A=r(15869);function l(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}function h(t){let e,r="object"==typeof t[0]?t.shift():new(0,o.GregorianCalendar);if("string"==typeof t[0])e=t.shift();else{let t=r.getEras();e=t[t.length-1]}return[r,e,t.shift(),t.shift(),t.shift()]}l(t.exports,"CalendarDate",()=>u),l(t.exports,"Time",()=>d),l(t.exports,"CalendarDateTime",()=>g),l(t.exports,"ZonedDateTime",()=>y);var c=new WeakMap;class u{copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(t){return(0,i.add)(this,t)}subtract(t){return(0,i.subtract)(this,t)}set(t){return(0,i.set)(this,t)}cycle(t,e,r){return(0,i.cycleDate)(this,t,e,r)}toDate(t){return(0,a.toDate)(this,t)}toString(){return(0,s.dateToString)(this)}compare(t){return(0,n.compareDate)(this,t)}constructor(...t){(0,A._)(this,c,{writable:!0,value:void 0});let[e,r,n,s,o]=h(t);this.calendar=e,this.era=r,this.year=n,this.month=s,this.day=o,(0,i.constrain)(this)}}var p=new WeakMap;class d{copy(){return new d(this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,i.addTime)(this,t)}subtract(t){return(0,i.subtractTime)(this,t)}set(t){return(0,i.setTime)(this,t)}cycle(t,e,r){return(0,i.cycleTime)(this,t,e,r)}toString(){return(0,s.timeToString)(this)}compare(t){return(0,n.compareTime)(this,t)}constructor(t=0,e=0,r=0,n=0){(0,A._)(this,p,{writable:!0,value:void 0}),this.hour=t,this.minute=e,this.second=r,this.millisecond=n,(0,i.constrainTime)(this)}}var f=new WeakMap;class g{copy(){return this.era?new g(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new g(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,i.add)(this,t)}subtract(t){return(0,i.subtract)(this,t)}set(t){return(0,i.set)((0,i.setTime)(this,t),t)}cycle(t,e,r){switch(t){case"era":case"year":case"month":case"day":return(0,i.cycleDate)(this,t,e,r);default:return(0,i.cycleTime)(this,t,e,r)}}toDate(t,e){return(0,a.toDate)(this,t,e)}toString(){return(0,s.dateTimeToString)(this)}compare(t){let e=(0,n.compareDate)(this,t);return 0===e?(0,n.compareTime)(this,(0,a.toCalendarDateTime)(t)):e}constructor(...t){(0,A._)(this,f,{writable:!0,value:void 0});let[e,r,n,s,o]=h(t);this.calendar=e,this.era=r,this.year=n,this.month=s,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,i.constrain)(this)}}var m=new WeakMap;class y{copy(){return this.era?new y(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new y(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,i.addZoned)(this,t)}subtract(t){return(0,i.subtractZoned)(this,t)}set(t,e){return(0,i.setZoned)(this,t,e)}cycle(t,e,r){return(0,i.cycleZoned)(this,t,e,r)}toDate(){return(0,a.zonedToDate)(this)}toString(){return(0,s.zonedDateTimeToString)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-(0,a.toZoned)(t,this.timeZone).toDate().getTime()}constructor(...t){(0,A._)(this,m,{writable:!0,value:void 0});let[e,r,n,s,o]=h(t),a=t.shift(),l=t.shift();this.calendar=e,this.era=r,this.year=n,this.month=s,this.day=o,this.timeZone=a,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,i.constrain)(this)}}},39282(t){var e,r;e=t.exports,r=()=>n,Object.defineProperty(e,"DateFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});let i=new Map;class n{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,e){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(e)}`}formatRangeToParts(t,e){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(e);return[...r.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return null==A&&(A="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),A&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=o(t+=(t.includes("-u-")?"":"-u")+"-nu-latn",{...e,timeZone:void 0}),i=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(t=>"hour"===t.type).value,10),n=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(t=>"hour"===t.type).value,10);if(0===i&&23===n)return"h23";if(24===i&&23===n)return"h24";if(0===i&&11===n)return"h11";if(12===i&&11===n)return"h12";throw new Error("Unexpected hour cycle result")}(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===t.calendar&&(t.calendar="ethioaa"),t}constructor(t,e={}){this.formatter=o(t,e),this.options=e}}const s={true:{ja:"h11"},false:{}};function o(t,e={}){if("boolean"==typeof e.hour12&&(null==a&&(a="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),a)){e={...e};let r=s[String(e.hour12)][t.split("-")[0]],i=e.hour12?"h12":"h23";e.hourCycle=null!=r?r:i,delete e.hour12}let r=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(i.has(r))return i.get(r);let n=new Intl.DateTimeFormat(t,e);return i.set(r,n),n}let a=null,A=null},55609(t,e,r){var i=r(1626);function n(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}n(t.exports,"EthiopicCalendar",()=>u),n(t.exports,"EthiopicAmeteAlemCalendar",()=>p),n(t.exports,"CopticCalendar",()=>d);const s=1723856,o=1824665,a=5500;function A(t,e,r,i){return t+365*e+Math.floor(e/4)+30*(r-1)+i-1}function l(t,e){let r=Math.floor(4*(e-t)/1461),i=1+Math.floor((e-A(t,r,1,1))/30);return[r,i,e+1-A(t,r,i,1)]}function h(t){return Math.floor(t%4/3)}function c(t,e){return e%13!=0?30:h(t)+5}class u{fromJulianDay(t){let[e,r,n]=l(s,t),o="AM";return e<=0&&(o="AA",e+=a),new(0,i.CalendarDate)(this,o,e,r,n)}toJulianDay(t){let e=t.year;return"AA"===t.era&&(e-=a),A(s,e,t.month,t.day)}getDaysInMonth(t){return c(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+h(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return"AA"===t.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class p extends u{fromJulianDay(t){let[e,r,n]=l(s,t);return e+=a,new(0,i.CalendarDate)(this,"AA",e,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class d extends u{fromJulianDay(t){let[e,r,n]=l(o,t),s="CE";return e<=0&&(s="BCE",e=1-e),new(0,i.CalendarDate)(this,s,e,r,n)}toJulianDay(t){let e=t.year;return"BCE"===t.era&&(e=1-e),A(o,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return"BCE"===t.era&&(e=1-e),c(e,t.month)}isInverseEra(t){return"BCE"===t.era}balanceDate(t){t.year<=0&&(t.era="BCE"===t.era?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return"BCE"===t.era?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}},13786(t,e,r){var i=r(1626),n=r(25563);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}s(t.exports,"gregorianToJulianDay",()=>o),s(t.exports,"getExtendedYear",()=>A),s(t.exports,"isLeapYear",()=>a),s(t.exports,"fromExtendedYear",()=>l),s(t.exports,"GregorianCalendar",()=>c);function o(t,e,r,i){let n=(e=A(t,e))-1,s=-2;return r<=2?s=0:a(e)&&(s=-1),1721425+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+s+i)}function a(t){return t%4==0&&(t%100!=0||t%400==0)}function A(t,e){return"BC"===t?1-e:e}function l(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const h={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class c{fromJulianDay(t){let e=t,r=e-1721426,s=Math.floor(r/146097),A=(0,n.mod)(r,146097),h=Math.floor(A/36524),c=(0,n.mod)(A,36524),u=Math.floor(c/1461),p=(0,n.mod)(c,1461),d=Math.floor(p/365),f=400*s+100*h+4*u+d+(4!==h&&4!==d?1:0),[g,m]=l(f),y=e-o(g,m,1,1),v=2;e<o(g,m,3,1)?v=0:a(m)&&(v=1);let b=Math.floor((12*(y+v)+373)/367),w=e-o(g,m,b,1)+1;return new(0,i.CalendarDate)(g,m,b,w)}toJulianDay(t){return o(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return h[a(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return a(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return"BC"===t.era}balanceDate(t){t.year<=0&&(t.era="BC"===t.era?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}},33519(t,e,r){var i,n,s=r(1626),o=r(25563);i=t.exports,n=()=>p,Object.defineProperty(i,"HebrewCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});const a=347997;function A(t){return(0,o.mod)(7*t+1,19)<7}function l(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,i=29*e+Math.floor(r/25920);return(0,o.mod)(3*(i+1),7)<3&&(i+=1),i}function h(t){return l(t)+function(t){let e=l(t-1),r=l(t);return l(t+1)-r===356?2:r-e===382?1:0}(t)}function c(t){return h(t+1)-h(t)}function u(t,e){if(e>=6&&!A(t)&&e++,4===e||7===e||9===e||11===e||13===e)return 29;let r=function(t){let e=c(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}(t);return 2===e?2===r?30:29:3===e?0===r?29:30:6===e?A(t)?30:0:30}class p{fromJulianDay(t){let e=t-a,r=25920*e/765433,i=Math.floor((19*r+234)/235)+1,n=h(i),o=Math.floor(e-n);for(;o<1;)i--,n=h(i),o=Math.floor(e-n);let A=1,l=0;for(;l<o;)l+=u(i,A),A++;A--,l-=u(i,A);let c=o-l;return new(0,s.CalendarDate)(this,i,A,c)}toJulianDay(t){let e=h(t.year);for(let r=1;r<t.month;r++)e+=u(t.year,r);return e+t.day+a}getDaysInMonth(t){return u(t.year,t.month)}getMonthsInYear(t){return A(t.year)?13:12}getDaysInYear(t){return c(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(A(e.year)&&!A(t.year)&&e.month>6?t.month--:!A(e.year)&&A(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}},26915(t,e,r){var i,n,s=r(1626),o=r(13786);i=t.exports,n=()=>a,Object.defineProperty(i,"IndianCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});class a extends o.GregorianCalendar{fromJulianDay(t){let e,r,i,n=super.fromJulianDay(t),a=n.year-78,A=t-(0,o.gregorianToJulianDay)(n.era,n.year,1,1);if(A<80?(a--,e=(0,o.isLeapYear)(n.year-1)?31:30,A+=e+155+90+10):(e=(0,o.isLeapYear)(n.year)?31:30,A-=80),A<e)r=1,i=A+1;else{let t=A-e;t<155?(r=Math.floor(t/31)+2,i=t%31+1):(t-=155,r=Math.floor(t/30)+7,i=t%30+1)}return new(0,s.CalendarDate)(this,a,r,i)}toJulianDay(t){let e,r,i=t.year+78,[n,s]=(0,o.fromExtendedYear)(i);return(0,o.isLeapYear)(s)?(e=31,r=(0,o.gregorianToJulianDay)(n,s,3,21)):(e=30,r=(0,o.gregorianToJulianDay)(n,s,3,22)),1===t.month?r+t.day-1:(r+=e+31*Math.min(t.month-2,5),t.month>=8&&(r+=30*(t.month-7)),r+=t.day-1,r)}getDaysInMonth(t){return 1===t.month&&(0,o.isLeapYear)(t.year+78)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}},99988(t,e,r){var i=r(1626);function n(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}n(t.exports,"IslamicCivilCalendar",()=>u),n(t.exports,"IslamicTabularCalendar",()=>p),n(t.exports,"IslamicUmalquraCalendar",()=>b);const s=1948440,o=1948439,a=1300,A=1600;function l(t,e,r,i){return i+Math.ceil(29.5*(r-1))+354*(e-1)+Math.floor((3+11*e)/30)+t-1}function h(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),s=Math.min(12,Math.ceil((r-(29+l(e,n,1,1)))/29.5)+1),o=r-l(e,n,s,1)+1;return new(0,i.CalendarDate)(t,n,s,o)}function c(t){return(14+11*t)%30<11}class u{fromJulianDay(t){return h(this,s,t)}toJulianDay(t){return l(s,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return 12===t.month&&c(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return c(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class p extends u{fromJulianDay(t){return h(this,o,t)}toJulianDay(t){return l(o,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}let d,f;function g(t){return 460322+f[t-a]}function m(t,e){let r=1<<11-(e-1);return 0===(d[t-a]&r)?29:30}function y(t,e){let r=g(t);for(let i=1;i<e;i++)r+=m(t,i);return r}function v(t){return f[t+1-a]-f[t-a]}class b extends u{fromJulianDay(t){let e=t-s,r=g(a),n=g(A);if(e<r||e>n)return super.fromJulianDay(t);{let t=1299,r=1,n=1;for(;n>0;){t++,n=e-g(t)+1;let i=v(t);if(n===i){r=12;break}if(n<i){let e=m(t,r);for(r=1;n>e;)n-=e,r++,e=m(t,r);break}}return new(0,i.CalendarDate)(this,t,r,e-y(t,r)+1)}}toJulianDay(t){return t.year<a||t.year>A?super.toJulianDay(t):s+y(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<a||t.year>A?super.getDaysInMonth(t):m(t.year,t.month)}getDaysInYear(t){return t.year<a||t.year>A?super.getDaysInYear(t):v(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",d||(d=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),t=>t.charCodeAt(0)).buffer)),!f){f=new Uint32Array(301);let t=0;for(let e=a;e<=A;e++){f[e-a]=t;for(let r=1;r<=12;r++)t+=m(e,r)}}}}},60275(t,e,r){var i,n,s=r(1626),o=r(13786);i=t.exports,n=()=>p,Object.defineProperty(i,"JapaneseCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});const a=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],A=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],l=[1867,1911,1925,1988,2018],h=["meiji","taisho","showa","heisei","reiwa"];function c(t){const e=a.findIndex(([e,r,i])=>t.year<e||t.year===e&&t.month<r||t.year===e&&t.month===r&&t.day<i);return-1===e?a.length-1:0===e?0:e-1}function u(t){let e=l[h.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new(0,s.CalendarDate)(t.year+e,t.month,t.day)}class p extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=c(e);return new(0,s.CalendarDate)(this,h[r],e.year-l[r],e.month,e.day)}toJulianDay(t){return super.toJulianDay(u(t))}balanceDate(t){let e=u(t),r=c(e);h[r]!==t.era&&(t.era=h[r],t.year=e.year-l[r]),this.constrainDate(t)}constrainDate(t){let e=h.indexOf(t.era),r=A[e];if(null!=r){let[i,n,s]=r,o=i-l[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(s,t.day)))}if(1===t.year&&e>=0){let[,r,i]=a[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(i,t.day))}}getEras(){return h}getYearsInEra(t){let e=h.indexOf(t.era),r=a[e],i=a[e+1];if(null==i)return 9999-r[0]+1;let n=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(u(t))}getMinimumMonthInYear(t){let e=d(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=d(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function d(t){if(1===t.year){let e=h.indexOf(t.era);return a[e]}}},5018(t,e,r){var i,n,s=r(1626),o=r(25563);i=t.exports,n=()=>A,Object.defineProperty(i,"PersianCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});const a=[0,31,62,93,124,155,186,216,246,276,306,336];class A{fromJulianDay(t){let e=t-1948320,r=1+Math.floor((33*e+3)/12053),i=e-(365*(r-1)+Math.floor((8*r+21)/33)),n=i<216?Math.floor(i/31):Math.floor((i-6)/30),o=i-a[n]+1;return new(0,s.CalendarDate)(this,r,n+1,o)}toJulianDay(t){let e=1948319+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=a[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||(0,o.mod)(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}},44594(t,e,r){var i,n,s=r(1626),o=r(13786);i=t.exports,n=()=>h,Object.defineProperty(i,"TaiwanCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0});const a=1911;function A(t){return"minguo"===t.era?t.year+a:1-t.year+a}function l(t){let e=t-a;return e>0?["minguo",e]:["before_minguo",1-e]}class h extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=(0,o.getExtendedYear)(e.era,e.year),[i,n]=l(r);return new(0,s.CalendarDate)(this,i,n,e.month,e.day)}toJulianDay(t){return super.toJulianDay(c(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,r]=l(A(t));t.era=e,t.year=r}isInverseEra(t){return"before_minguo"===t.era}getDaysInMonth(t){return super.getDaysInMonth(c(t))}getYearsInEra(t){return"before_minguo"===t.era?9999:8088}constructor(...t){super(...t),this.identifier="roc"}}function c(t){let[e,r]=(0,o.fromExtendedYear)(A(t));return new(0,s.CalendarDate)(e,r,t.month,t.day)}},21400(t,e,r){var i=r(1626),n=r(34639),s=r(13786),o=r(70656);function a(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}function A(t){return t=C(t,new(0,s.GregorianCalendar)),l((0,s.getExtendedYear)(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function l(t,e,r,i,n,s,o){let a=new Date;return a.setUTCHours(i,n,s,o),a.setUTCFullYear(t,e-1,r),a.getTime()}function h(t,e){if("UTC"===e)return 0;if(t>0&&e===(0,o.getLocalTimeZone)()&&!(0,o.isLocalTimeZoneOverridden)())return-6e4*new Date(t).getTimezoneOffset();let{year:r,month:i,day:n,hour:s,minute:a,second:A}=u(t,e);return l(r,i,n,s,a,A,0)-1e3*Math.floor(t/1e3)}a(t.exports,"epochFromDate",()=>A),a(t.exports,"toCalendar",()=>C),a(t.exports,"possibleAbsolutes",()=>d),a(t.exports,"toAbsolute",()=>g),a(t.exports,"toCalendarDateTime",()=>B),a(t.exports,"toDate",()=>m),a(t.exports,"fromAbsolute",()=>y),a(t.exports,"fromDate",()=>v),a(t.exports,"fromDateToLocal",()=>b),a(t.exports,"toCalendarDate",()=>w),a(t.exports,"toTime",()=>x),a(t.exports,"toZoned",()=>E),a(t.exports,"toTimeZone",()=>F),a(t.exports,"zonedToDate",()=>S),a(t.exports,"toLocalTimeZone",()=>T);const c=new Map;function u(t,e){let r=c.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(e,r));let i=r.formatToParts(new Date(t)),n={};for(let t of i)"literal"!==t.type&&(n[t.type]=t.value);return{year:"BC"===n.era||"B"===n.era?1-n.year:+n.year,month:+n.month,day:+n.day,hour:"24"===n.hour?0:+n.hour,minute:+n.minute,second:+n.second}}const p=864e5;function d(t,e){let r=A(t);return f(t,e,r-h(r-p,e),r-h(r+p,e))}function f(t,e,r,i){return(r===i?[r]:[r,i]).filter(r=>function(t,e,r){let i=u(r,e);return t.year===i.year&&t.month===i.month&&t.day===i.day&&t.hour===i.hour&&t.minute===i.minute&&t.second===i.second}(t,e,r))}function g(t,e,r="compatible"){let i=B(t);if("UTC"===e)return A(i);if(e===(0,o.getLocalTimeZone)()&&"compatible"===r&&!(0,o.isLocalTimeZoneOverridden)()){i=C(i,new(0,s.GregorianCalendar));let t=new Date,e=(0,s.getExtendedYear)(i.era,i.year);return t.setFullYear(e,i.month-1,i.day),t.setHours(i.hour,i.minute,i.second,i.millisecond),t.getTime()}let n=A(i),a=h(n-p,e),l=h(n+p,e),c=f(i,e,n-a,n-l);if(1===c.length)return c[0];if(c.length>1)switch(r){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(n-a,n-l);case"compatible":case"later":return Math.max(n-a,n-l);case"reject":throw new RangeError("No such absolute time found")}}function m(t,e,r="compatible"){return new Date(g(t,e,r))}function y(t,e){let r=h(t,e),n=new Date(t+r),s=n.getUTCFullYear(),o=n.getUTCMonth()+1,a=n.getUTCDate(),A=n.getUTCHours(),l=n.getUTCMinutes(),c=n.getUTCSeconds(),u=n.getUTCMilliseconds();return new(0,i.ZonedDateTime)(s<1?"BC":"AD",s<1?1-s:s,o,a,e,r,A,l,c,u)}function v(t,e){return y(t.getTime(),e)}function b(t){return v(t,(0,o.getLocalTimeZone)())}function w(t){return new(0,i.CalendarDate)(t.calendar,t.era,t.year,t.month,t.day)}function B(t,e){let r=0,n=0,s=0,o=0;if("timeZone"in t)({hour:r,minute:n,second:s,millisecond:o}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:s,millisecond:o}=e),new(0,i.CalendarDateTime)(t.calendar,t.era,t.year,t.month,t.day,r,n,s,o)}function x(t){return new(0,i.Time)(t.hour,t.minute,t.second,t.millisecond)}function C(t,e){if((0,o.isEqualCalendar)(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),i=t.copy();return i.calendar=e,i.era=r.era,i.year=r.year,i.month=r.month,i.day=r.day,(0,n.constrain)(i),i}function E(t,e,r){return t instanceof i.ZonedDateTime?t.timeZone===e?t:F(t,e):y(g(t,e,r),e)}function S(t){let e=A(t)-t.offset;return new Date(e)}function F(t,e){return C(y(A(t)-t.offset,e),t.calendar)}function T(t){return F(t,(0,o.getLocalTimeZone)())}},75442(t,e,r){var i,n,s=r(10649),o=r(55609),a=r(13786),A=r(33519),l=r(26915),h=r(99988),c=r(60275),u=r(5018),p=r(44594);function d(t){switch(t){case"buddhist":return new(0,s.BuddhistCalendar);case"ethiopic":return new(0,o.EthiopicCalendar);case"ethioaa":return new(0,o.EthiopicAmeteAlemCalendar);case"coptic":return new(0,o.CopticCalendar);case"hebrew":return new(0,A.HebrewCalendar);case"indian":return new(0,l.IndianCalendar);case"islamic-civil":return new(0,h.IslamicCivilCalendar);case"islamic-tbla":return new(0,h.IslamicTabularCalendar);case"islamic-umalqura":return new(0,h.IslamicUmalquraCalendar);case"japanese":return new(0,c.JapaneseCalendar);case"persian":return new(0,u.PersianCalendar);case"roc":return new(0,p.TaiwanCalendar);default:return new(0,a.GregorianCalendar)}}i=t.exports,n=()=>d,Object.defineProperty(i,"createCalendar",{get:n,set:void 0,enumerable:!0,configurable:!0})},11702(t,e,r){var i=r(1626),n=r(13786),s=r(60275),o=r(10649),a=r(44594),A=r(5018),l=r(26915),h=r(99988),c=r(33519),u=r(55609),p=r(75442),d=r(21400),f=r(70656),g=r(46135),m=r(39282);function y(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}y(t.exports,"CalendarDate",()=>i.CalendarDate),y(t.exports,"CalendarDateTime",()=>i.CalendarDateTime),y(t.exports,"Time",()=>i.Time),y(t.exports,"ZonedDateTime",()=>i.ZonedDateTime),y(t.exports,"GregorianCalendar",()=>n.GregorianCalendar),y(t.exports,"JapaneseCalendar",()=>s.JapaneseCalendar),y(t.exports,"BuddhistCalendar",()=>o.BuddhistCalendar),y(t.exports,"TaiwanCalendar",()=>a.TaiwanCalendar),y(t.exports,"PersianCalendar",()=>A.PersianCalendar),y(t.exports,"IndianCalendar",()=>l.IndianCalendar),y(t.exports,"IslamicCivilCalendar",()=>h.IslamicCivilCalendar),y(t.exports,"IslamicTabularCalendar",()=>h.IslamicTabularCalendar),y(t.exports,"IslamicUmalquraCalendar",()=>h.IslamicUmalquraCalendar),y(t.exports,"HebrewCalendar",()=>c.HebrewCalendar),y(t.exports,"EthiopicCalendar",()=>u.EthiopicCalendar),y(t.exports,"EthiopicAmeteAlemCalendar",()=>u.EthiopicAmeteAlemCalendar),y(t.exports,"CopticCalendar",()=>u.CopticCalendar),y(t.exports,"createCalendar",()=>p.createCalendar),y(t.exports,"toCalendarDate",()=>d.toCalendarDate),y(t.exports,"toCalendarDateTime",()=>d.toCalendarDateTime),y(t.exports,"toTime",()=>d.toTime),y(t.exports,"toCalendar",()=>d.toCalendar),y(t.exports,"toZoned",()=>d.toZoned),y(t.exports,"toTimeZone",()=>d.toTimeZone),y(t.exports,"toLocalTimeZone",()=>d.toLocalTimeZone),y(t.exports,"fromDate",()=>d.fromDate),y(t.exports,"fromDateToLocal",()=>d.fromDateToLocal),y(t.exports,"fromAbsolute",()=>d.fromAbsolute),y(t.exports,"isSameDay",()=>f.isSameDay),y(t.exports,"isSameMonth",()=>f.isSameMonth),y(t.exports,"isSameYear",()=>f.isSameYear),y(t.exports,"isEqualDay",()=>f.isEqualDay),y(t.exports,"isEqualMonth",()=>f.isEqualMonth),y(t.exports,"isEqualYear",()=>f.isEqualYear),y(t.exports,"isToday",()=>f.isToday),y(t.exports,"getDayOfWeek",()=>f.getDayOfWeek),y(t.exports,"now",()=>f.now),y(t.exports,"today",()=>f.today),y(t.exports,"getHoursInDay",()=>f.getHoursInDay),y(t.exports,"getLocalTimeZone",()=>f.getLocalTimeZone),y(t.exports,"setLocalTimeZone",()=>f.setLocalTimeZone),y(t.exports,"resetLocalTimeZone",()=>f.resetLocalTimeZone),y(t.exports,"startOfMonth",()=>f.startOfMonth),y(t.exports,"startOfWeek",()=>f.startOfWeek),y(t.exports,"startOfYear",()=>f.startOfYear),y(t.exports,"endOfMonth",()=>f.endOfMonth),y(t.exports,"endOfWeek",()=>f.endOfWeek),y(t.exports,"endOfYear",()=>f.endOfYear),y(t.exports,"getMinimumMonthInYear",()=>f.getMinimumMonthInYear),y(t.exports,"getMinimumDayInMonth",()=>f.getMinimumDayInMonth),y(t.exports,"getWeeksInMonth",()=>f.getWeeksInMonth),y(t.exports,"minDate",()=>f.minDate),y(t.exports,"maxDate",()=>f.maxDate),y(t.exports,"isWeekend",()=>f.isWeekend),y(t.exports,"isWeekday",()=>f.isWeekday),y(t.exports,"isEqualCalendar",()=>f.isEqualCalendar),y(t.exports,"parseDate",()=>g.parseDate),y(t.exports,"parseDateTime",()=>g.parseDateTime),y(t.exports,"parseTime",()=>g.parseTime),y(t.exports,"parseAbsolute",()=>g.parseAbsolute),y(t.exports,"parseAbsoluteToLocal",()=>g.parseAbsoluteToLocal),y(t.exports,"parseZonedDateTime",()=>g.parseZonedDateTime),y(t.exports,"parseDuration",()=>g.parseDuration),y(t.exports,"DateFormatter",()=>m.DateFormatter)},34639(t,e,r){var i=r(21400),n=r(13786);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}s(t.exports,"add",()=>a),s(t.exports,"constrain",()=>c),s(t.exports,"subtract",()=>p),s(t.exports,"set",()=>d),s(t.exports,"setTime",()=>f),s(t.exports,"constrainTime",()=>g),s(t.exports,"addTime",()=>v),s(t.exports,"subtractTime",()=>b),s(t.exports,"cycleDate",()=>w),s(t.exports,"cycleTime",()=>B),s(t.exports,"addZoned",()=>C),s(t.exports,"subtractZoned",()=>E),s(t.exports,"cycleZoned",()=>S),s(t.exports,"setZoned",()=>F);const o=36e5;function a(t,e){let r=t.copy(),i="hour"in r?y(r,e):0;A(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,l(r),h(r),r.day+=7*(e.weeks||0),r.day+=e.days||0,r.day+=i,function(t){for(;t.day<1;)t.month--,l(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,l(t)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var s,o;let t=null===(s=(o=r.calendar).isInverseEra)||void 0===s?void 0:s.call(o,r);r.year=n,r.month=t?1:r.calendar.getMonthsInYear(r),r.day=t?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function A(t,e){var r,i;(null===(r=(i=t.calendar).isInverseEra)||void 0===r?void 0:r.call(i,t))&&(e=-e),t.year+=e}function l(t){for(;t.month<1;)A(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,A(t,1)}function h(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function c(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),h(t)}function u(t){let e={};for(let r in t)"number"==typeof t[r]&&(e[r]=-t[r]);return e}function p(t,e){return a(t,u(e))}function d(t,e){let r=t.copy();return null!=e.era&&(r.era=e.era),null!=e.year&&(r.year=e.year),null!=e.month&&(r.month=e.month),null!=e.day&&(r.day=e.day),c(r),r}function f(t,e){let r=t.copy();return null!=e.hour&&(r.hour=e.hour),null!=e.minute&&(r.minute=e.minute),null!=e.second&&(r.second=e.second),null!=e.millisecond&&(r.millisecond=e.millisecond),g(r),r}function g(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function m(t,e){let r=t%e;return r<0&&(r+=e),r}function y(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,function(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=m(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=m(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=m(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=m(t.hour,24),e}(t)}function v(t,e){let r=t.copy();return y(r,e),r}function b(t,e){return v(t,u(e))}function w(t,e,r,i){let n=t.copy();switch(e){case"era":{let e=t.calendar.getEras(),s=e.indexOf(t.era);if(s<0)throw new Error("Invalid era: "+t.era);s=x(s,r,0,e.length-1,null==i?void 0:i.round),n.era=e[s],c(n);break}case"year":var s,o;(null===(s=(o=n.calendar).isInverseEra)||void 0===s?void 0:s.call(o,n))&&(r=-r),n.year=x(t.year,r,-1/0,9999,null==i?void 0:i.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=x(t.month,r,1,t.calendar.getMonthsInYear(t),null==i?void 0:i.round);break;case"day":n.day=x(t.day,r,1,t.calendar.getDaysInMonth(t),null==i?void 0:i.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),c(n),n}function B(t,e,r,i){let n=t.copy();switch(e){case"hour":{let e=t.hour,s=0,o=23;if(12===(null==i?void 0:i.hourCycle)){let t=e>=12;s=t?12:0,o=t?23:11}n.hour=x(e,r,s,o,null==i?void 0:i.round);break}case"minute":n.minute=x(t.minute,r,0,59,null==i?void 0:i.round);break;case"second":n.second=x(t.second,r,0,59,null==i?void 0:i.round);break;case"millisecond":n.millisecond=x(t.millisecond,r,0,999,null==i?void 0:i.round);break;default:throw new Error("Unsupported field "+e)}return n}function x(t,e,r,i,n=!1){if(n){(t+=Math.sign(e))<r&&(t=i);let n=Math.abs(e);(t=e>0?Math.ceil(t/n)*n:Math.floor(t/n)*n)>i&&(t=r)}else(t+=e)<r?t=i-(r-t-1):t>i&&(t=r+(t-i-1));return t}function C(t,e){let r;if(null!=e.years&&0!==e.years||null!=e.months&&0!==e.months||null!=e.weeks&&0!==e.weeks||null!=e.days&&0!==e.days){let n=a((0,i.toCalendarDateTime)(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=(0,i.toAbsolute)(n,t.timeZone)}else r=(0,i.epochFromDate)(t)-t.offset;r+=e.milliseconds||0,r+=1e3*(e.seconds||0),r+=6e4*(e.minutes||0),r+=36e5*(e.hours||0);let n=(0,i.fromAbsolute)(r,t.timeZone);return(0,i.toCalendar)(n,t.calendar)}function E(t,e){return C(t,u(e))}function S(t,e,r,s){switch(e){case"hour":{let e=0,a=23;if(12===(null==s?void 0:s.hourCycle)){let r=t.hour>=12;e=r?12:0,a=r?23:11}let A=(0,i.toCalendarDateTime)(t),l=(0,i.toCalendar)(f(A,{hour:e}),new(0,n.GregorianCalendar)),h=[(0,i.toAbsolute)(l,t.timeZone,"earlier"),(0,i.toAbsolute)(l,t.timeZone,"later")].filter(e=>(0,i.fromAbsolute)(e,t.timeZone).day===l.day)[0],c=(0,i.toCalendar)(f(A,{hour:a}),new(0,n.GregorianCalendar)),u=[(0,i.toAbsolute)(c,t.timeZone,"earlier"),(0,i.toAbsolute)(c,t.timeZone,"later")].filter(e=>(0,i.fromAbsolute)(e,t.timeZone).day===c.day).pop(),p=(0,i.epochFromDate)(t)-t.offset,d=Math.floor(p/o),g=p%o;return p=x(d,r,Math.floor(h/o),Math.floor(u/o),null==s?void 0:s.round)*o+g,(0,i.toCalendar)((0,i.fromAbsolute)(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return B(t,e,r,s);case"era":case"year":case"month":case"day":{let n=w((0,i.toCalendarDateTime)(t),e,r,s),o=(0,i.toAbsolute)(n,t.timeZone);return(0,i.toCalendar)((0,i.fromAbsolute)(o,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function F(t,e,r){let n=(0,i.toCalendarDateTime)(t),s=f(d(n,e),e);if(0===s.compare(n))return t;let o=(0,i.toAbsolute)(s,t.timeZone,r);return(0,i.toCalendar)((0,i.fromAbsolute)(o,t.timeZone),t.calendar)}},70656(t,e,r){var i=r(21400),n=r(32728);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}function o(t,e){return e=(0,i.toCalendar)(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function a(t,e){return e=(0,i.toCalendar)(e,t.calendar),t=T(t),e=T(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function A(t,e){return e=(0,i.toCalendar)(e,t.calendar),t=_(t),e=_(e),t.era===e.era&&t.year===e.year}function l(t,e){return u(t.calendar,e.calendar)&&o(t,e)}function h(t,e){return u(t.calendar,e.calendar)&&a(t,e)}function c(t,e){return u(t.calendar,e.calendar)&&A(t,e)}function u(t,e){var r,i,n,s;return null!==(s=null!==(n=null===(r=t.isEqual)||void 0===r?void 0:r.call(t,e))&&void 0!==n?n:null===(i=e.isEqual)||void 0===i?void 0:i.call(e,t))&&void 0!==s?s:t.identifier===e.identifier}function p(t,e){return o(t,m(e))}s(t.exports,"isSameDay",()=>o),s(t.exports,"isSameMonth",()=>a),s(t.exports,"startOfMonth",()=>T),s(t.exports,"isSameYear",()=>A),s(t.exports,"startOfYear",()=>_),s(t.exports,"isEqualDay",()=>l),s(t.exports,"isEqualCalendar",()=>u),s(t.exports,"isEqualMonth",()=>h),s(t.exports,"isEqualYear",()=>c),s(t.exports,"isToday",()=>p),s(t.exports,"today",()=>m),s(t.exports,"getDayOfWeek",()=>f),s(t.exports,"now",()=>g),s(t.exports,"compareDate",()=>y),s(t.exports,"compareTime",()=>v),s(t.exports,"getHoursInDay",()=>w),s(t.exports,"getLocalTimeZone",()=>C),s(t.exports,"setLocalTimeZone",()=>E),s(t.exports,"resetLocalTimeZone",()=>S),s(t.exports,"isLocalTimeZoneOverridden",()=>F),s(t.exports,"endOfMonth",()=>I),s(t.exports,"endOfYear",()=>k),s(t.exports,"getMinimumMonthInYear",()=>L),s(t.exports,"getMinimumDayInMonth",()=>P),s(t.exports,"startOfWeek",()=>N),s(t.exports,"endOfWeek",()=>D),s(t.exports,"getWeeksInMonth",()=>Q),s(t.exports,"minDate",()=>R),s(t.exports,"maxDate",()=>H),s(t.exports,"isWeekend",()=>V),s(t.exports,"isWeekday",()=>G);const d={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function f(t,e,r){let i=t.calendar.toJulianDay(t),s=r?d[r]:function(t){let e=O.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return O.set(t,e),e.firstDay}let r=U(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&n.weekStartData[r]||0};O.set(t,e)}return e.firstDay}(e),o=Math.ceil(i+1-s)%7;return o<0&&(o+=7),o}function g(t){return(0,i.fromAbsolute)(Date.now(),t)}function m(t){return(0,i.toCalendarDate)(g(t))}function y(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function v(t,e){return b(t)-b(e)}function b(t){return 36e5*t.hour+6e4*t.minute+1e3*t.second+t.millisecond}function w(t,e){let r=(0,i.toAbsolute)(t,e),n=t.add({days:1});return((0,i.toAbsolute)(n,e)-r)/36e5}let B=null,x=!1;function C(){return null==B&&(B=(new Intl.DateTimeFormat).resolvedOptions().timeZone),B}function E(t){x=!0,B=t}function S(){x=!1,B=null}function F(){return x}function T(t){return t.subtract({days:t.day-1})}function I(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function _(t){return T(t.subtract({months:t.month-1}))}function k(t){return I(t.add({months:t.calendar.getMonthsInYear(t)-t.month}))}function L(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function P(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function N(t,e,r){let i=f(t,e,r);return t.subtract({days:i})}function D(t,e,r){return N(t,e,r).add({days:6})}const M=new Map,O=new Map;function U(t){if(Intl.Locale){let e=M.get(t);return e||(e=new Intl.Locale(t).maximize().region,e&&M.set(t,e)),e}let e=t.split("-")[1];return"u"===e?void 0:e}function Q(t,e,r){let i=t.calendar.getDaysInMonth(t);return Math.ceil((f(T(t),e,r)+i)/7)}function R(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function H(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}const j={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function V(t,e){let r=t.calendar.toJulianDay(t),i=Math.ceil(r+1)%7;i<0&&(i+=7);let n=U(e),[s,o]=j[n]||[6,0];return i===s||i===o}function G(t,e){return!V(t,e)}},46135(t,e,r){var i=r(1626),n=r(21400),s=r(70656),o=r(13786);function a(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}a(t.exports,"parseTime",()=>g),a(t.exports,"parseDate",()=>m),a(t.exports,"parseDateTime",()=>y),a(t.exports,"parseZonedDateTime",()=>v),a(t.exports,"dateTimeToString",()=>E),a(t.exports,"parseAbsolute",()=>b),a(t.exports,"parseAbsoluteToLocal",()=>w),a(t.exports,"timeToString",()=>x),a(t.exports,"dateToString",()=>C),a(t.exports,"zonedDateTimeToString",()=>F),a(t.exports,"parseDuration",()=>T);const A=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,h=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,c=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,u=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/,p=/^((?<negative>-)|\+)?P((?<years>\d*)Y)?((?<months>\d*)M)?((?<weeks>\d*)W)?((?<days>\d*)D)?((?<time>T)((?<hours>\d*[.,]?\d{1,9})H)?((?<minutes>\d*[.,]?\d{1,9})M)?((?<seconds>\d*[.,]?\d{1,9})S)?)?$/,d=["hours","minutes","seconds"],f=["years","months","weeks","days",...d];function g(t){let e=t.match(A);if(!e)throw new Error("Invalid ISO 8601 time string: "+t);return new(0,i.Time)(B(e[1],0,23),e[2]?B(e[2],0,59):0,e[3]?B(e[3],0,59):0,e[4]?1e3*B(e[4],0,1/0):0)}function m(t){let e=t.match(l);if(!e){if(u.test(t))throw new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`);throw new Error("Invalid ISO 8601 date string: "+t)}let r=new(0,i.CalendarDate)(B(e[1],0,9999),B(e[2],1,12),1);return r.day=B(e[3],1,r.calendar.getDaysInMonth(r)),r}function y(t){let e=t.match(h);if(!e){if(u.test(t))throw new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`);throw new Error("Invalid ISO 8601 date time string: "+t)}let r=B(e[1],-9999,9999),n=r<1?"BC":"AD",s=new(0,i.CalendarDateTime)(n,r<1?1-r:r,B(e[2],1,12),1,e[4]?B(e[4],0,23):0,e[5]?B(e[5],0,59):0,e[6]?B(e[6],0,59):0,e[7]?1e3*B(e[7],0,1/0):0);return s.day=B(e[3],0,s.calendar.getDaysInMonth(s)),s}function v(t,e){let r=t.match(c);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let s=B(r[1],-9999,9999),o=s<1?"BC":"AD",a=new(0,i.ZonedDateTime)(o,s<1?1-s:s,B(r[2],1,12),1,r[11],0,r[4]?B(r[4],0,23):0,r[5]?B(r[5],0,59):0,r[6]?B(r[6],0,59):0,r[7]?1e3*B(r[7],0,1/0):0);a.day=B(r[3],0,a.calendar.getDaysInMonth(a));let A,l=(0,n.toCalendarDateTime)(a);if(r[8]){let t=B(r[8],-23,23);var h,u;if(a.offset=Math.sign(t)*(36e5*Math.abs(t)+6e4*B(null!==(h=r[9])&&void 0!==h?h:"0",0,59)+1e3*B(null!==(u=r[10])&&void 0!==u?u:"0",0,59)),A=(0,n.epochFromDate)(a)-a.offset,!(0,n.possibleAbsolutes)(l,a.timeZone).includes(A))throw new Error(`Offset ${S(a.offset)} is invalid for ${E(a)} in ${a.timeZone}`)}else A=(0,n.toAbsolute)((0,n.toCalendarDateTime)(l),a.timeZone,e);return(0,n.fromAbsolute)(A,a.timeZone)}function b(t,e){let r=t.match(u);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let s=B(r[1],-9999,9999),o=s<1?"BC":"AD",a=new(0,i.ZonedDateTime)(o,s<1?1-s:s,B(r[2],1,12),1,e,0,r[4]?B(r[4],0,23):0,r[5]?B(r[5],0,59):0,r[6]?B(r[6],0,59):0,r[7]?1e3*B(r[7],0,1/0):0);var A;return a.day=B(r[3],0,a.calendar.getDaysInMonth(a)),r[8]&&(a.offset=36e5*B(r[8],-23,23)+6e4*B(null!==(A=r[9])&&void 0!==A?A:"0",0,59)),(0,n.toTimeZone)(a,e)}function w(t){return b(t,(0,s.getLocalTimeZone)())}function B(t,e,r){let i=Number(t);if(i<e||i>r)throw new RangeError(`Value out of range: ${e} <= ${i} <= ${r}`);return i}function x(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function C(t){let e,r=(0,n.toCalendar)(t,new(0,o.GregorianCalendar));return e="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${e}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function E(t){return`${C(t)}T${x(t)}`}function S(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),i=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`;return 0!==n&&(s+=`:${String(n).padStart(2,"0")}`),s}function F(t){return`${E(t)}${S(t.offset)}[${t.timeZone}]`}function T(t){var e,r,i,n,s,o,a,A,l;const h=t.match(p);if(!h)throw new Error(`Invalid ISO 8601 Duration string: ${t}`);const c=(e,r)=>{if(!e)return 0;try{return(r?-1:1)*Number(e.replace(",","."))}catch{throw new Error(`Invalid ISO 8601 Duration string: ${t}`)}},u=!!(null===(e=h.groups)||void 0===e?void 0:e.negative),g=f.some(t=>{var e;return null===(e=h.groups)||void 0===e?void 0:e[t]});if(!g)throw new Error(`Invalid ISO 8601 Duration string: ${t}`);if(null===(r=h.groups)||void 0===r?void 0:r.time){const e=d.some(t=>{var e;return null===(e=h.groups)||void 0===e?void 0:e[t]});if(!e)throw new Error(`Invalid ISO 8601 Duration string: ${t}`)}const m={years:c(null===(i=h.groups)||void 0===i?void 0:i.years,u),months:c(null===(n=h.groups)||void 0===n?void 0:n.months,u),weeks:c(null===(s=h.groups)||void 0===s?void 0:s.weeks,u),days:c(null===(o=h.groups)||void 0===o?void 0:o.days,u),hours:c(null===(a=h.groups)||void 0===a?void 0:a.hours,u),minutes:c(null===(A=h.groups)||void 0===A?void 0:A.minutes,u),seconds:c(null===(l=h.groups)||void 0===l?void 0:l.seconds,u)};if(void 0!==m.hours&&m.hours%1!=0&&(m.minutes||m.seconds))throw new Error(`Invalid ISO 8601 Duration string: ${t} - only the smallest unit can be fractional`);if(void 0!==m.minutes&&m.minutes%1!=0&&m.seconds)throw new Error(`Invalid ISO 8601 Duration string: ${t} - only the smallest unit can be fractional`);return m}},25563(t){var e,r;function i(t,e){return t-e*Math.floor(t/e)}e=t.exports,r=()=>i,Object.defineProperty(e,"mod",{get:r,set:void 0,enumerable:!0,configurable:!0})},32728(t){var e,r;e=t.exports,r=()=>i,Object.defineProperty(e,"weekStartData",{get:r,set:void 0,enumerable:!0,configurable:!0});const i={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1}},25179(t){var e,r;e=t.exports,r=()=>i,Object.defineProperty(e,"MessageDictionary",{get:r,set:void 0,enumerable:!0,configurable:!0});class i{getStringForLocale(t,e){let r=this.messages[e];r||(r=function(t,e,r="en-US"){if(e[t])return e[t];let i=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[i])return e[i];for(let t in e)if(t.startsWith(i+"-"))return e[t];return e[r]}(e,this.messages,this.defaultLocale),this.messages[e]=r);let i=r[t];if(!i)throw new Error(`Could not find intl message ${t} in ${e} locale`);return i}constructor(t,e="en-US"){this.messages=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},22035(t,e,r){var i,n,s=r(81133);i=t.exports,n=()=>o,Object.defineProperty(i,"MessageFormatter",{get:n,set:void 0,enumerable:!0,configurable:!0});class o{format(t,e){let r=this.cache[t];if(!r){let e=this.messages.getStringForLocale(t,this.locale);if(!e)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);r=new((i=s)&&i.__esModule?i.default:i)(e,this.locale),this.cache[t]=r}var i;let n;return e&&(n=Object.keys(e).reduce((t,r)=>(t[r]=null!=e[r]&&e[r],t),{})),r.format(n)}constructor(t,e){this.locale=t,this.messages=e,this.cache={}}}},17700(t,e,r){var i=r(25179),n=r(22035);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}s(t.exports,"MessageDictionary",()=>i.MessageDictionary),s(t.exports,"MessageFormatter",()=>n.MessageFormatter)},48943(t){var e,r;e=t.exports,r=()=>a,Object.defineProperty(e,"NumberFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});let i=new Map,n=!1;try{n="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let s=!1;try{s="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const o={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class a{format(t){let e="";if(e=n||null==this.options.signDisplay?this.numberFormatter.format(t):function(t,e,r){if("auto"===e)return t.format(r);if("never"===e)return t.format(Math.abs(r));{let i=!1;if("always"===e?i=r>0||Object.is(r,0):"exceptZero"===e&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):i=r>0),i){let e=t.format(-r),i=t.format(r),n=e.replace(i,"").replace(/\u200e|\u061C/,"");return 1!==[...n].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),e.replace(i,"!!!").replace(n,"+").replace("!!!",i)}return t.format(r)}}(this.numberFormatter,this.options.signDisplay,t),"unit"===this.options.style&&!s){var r;let{unit:t,unitDisplay:i="short",locale:n}=this.resolvedOptions();if(!t)return e;let s=null===(r=o[t])||void 0===r?void 0:r[i];e+=s[n]||s.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(e);return[...r.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return n||null==this.options.signDisplay||(t={...t,signDisplay:this.options.signDisplay}),s||"unit"!==this.options.style||(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=function(t,e={}){let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),"unit"===e.style&&!s){var n;let{unit:t,unitDisplay:r="short"}=e;if(!t)throw new Error('unit option must be provided with style: "unit"');if(!(null===(n=o[t])||void 0===n?void 0:n[r]))throw new Error(`Unsupported unit ${t} with unitDisplay = ${r}`);e={...e,style:"decimal"}}let a=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(i.has(a))return i.get(a);let A=new Intl.NumberFormat(t,e);return i.set(a,A),A}(t,e),this.options=e}}},77126(t,e,r){var i,n,s=r(48943);i=t.exports,n=()=>A,Object.defineProperty(i,"NumberParser",{get:n,set:void 0,enumerable:!0,configurable:!0});const o=new RegExp("^.*\\(.*\\).*$"),a=["latn","arab","hanidec","deva","beng","fullwide"];class A{parse(t){return h(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,e,r){return h(this.locale,this.options,t).isValidPartialNumber(t,e,r)}getNumberingSystem(t){return h(this.locale,this.options,t).options.numberingSystem}constructor(t,e={}){this.locale=t,this.options=e}}const l=new Map;function h(t,e,r){let i=c(t,e);if(!t.includes("-nu-")&&!i.isValidPartialNumber(r))for(let n of a)if(n!==i.options.numberingSystem){let i=c(t+(t.includes("-u-")?"-nu-":"-u-nu-")+n,e);if(i.isValidPartialNumber(r))return i}return i}function c(t,e){let r=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():""),i=l.get(r);return i||(i=new u(t,e),l.set(r,i)),i}class u{parse(t){let e=this.sanitize(t);if(this.symbols.group&&(e=f(e,this.symbols.group,"")),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(e=e.replace(this.symbols.minusSign,"-")),e=e.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let t=e.indexOf("-");e=e.replace("-",""),e=e.replace("+","");let r=e.indexOf(".");-1===r&&(r=e.length),e=e.replace(".",""),e=r-2==0?`0.${e}`:r-2==-1?`0.0${e}`:r-2==-2?"0.00":`${e.slice(0,r-2)}.${e.slice(r-2)}`,t>-1&&(e=`-${e}`)}let r=e?+e:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){var i,n;let t={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(i=this.options.minimumFractionDigits)&&void 0!==i?i:0)+2,20),maximumFractionDigits:Math.min((null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)+2,20)};return new A(this.locale,t).parse(new(0,s.NumberFormatter)(this.locale,t).format(r))}return"accounting"===this.options.currencySign&&o.test(t)&&(r*=-1),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(t=(t=t.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=f(t,".",this.symbols.group))),"’"===this.symbols.group&&t.includes("'")&&(t=f(t,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(t=f(t," ",this.symbols.group),t=f(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,e=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&e<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),!(this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(t=f(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),0!==t.length))}constructor(t,e={}){var r,i;this.locale=t,1!==e.roundingIncrement&&null!=e.roundingIncrement&&(null==e.maximumFractionDigits&&null==e.minimumFractionDigits?(e.maximumFractionDigits=0,e.minimumFractionDigits=0):null==e.maximumFractionDigits?e.maximumFractionDigits=e.minimumFractionDigits:null==e.minimumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,e),this.options=this.formatter.resolvedOptions(),this.symbols=function(t,e,r,i){var n,s,o,a;let A=new Intl.NumberFormat(t,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),l=A.formatToParts(-10000.111),h=A.formatToParts(10000.111),c=d.map(t=>A.formatToParts(t));var u;let f=null!==(u=null===(n=l.find(t=>"minusSign"===t.type))||void 0===n?void 0:n.value)&&void 0!==u?u:"-",m=null===(s=h.find(t=>"plusSign"===t.type))||void 0===s?void 0:s.value;m||"exceptZero"!==(null==i?void 0:i.signDisplay)&&"always"!==(null==i?void 0:i.signDisplay)||(m="+");let y=null===(o=new Intl.NumberFormat(t,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(t=>"decimal"===t.type))||void 0===o?void 0:o.value,v=null===(a=l.find(t=>"group"===t.type))||void 0===a?void 0:a.value,b=l.filter(t=>!p.has(t.type)).map(t=>g(t.value)),w=c.flatMap(t=>t.filter(t=>!p.has(t.type)).map(t=>g(t.value))),B=[...new Set([...b,...w])].sort((t,e)=>e.length-t.length),x=0===B.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${B.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),E=new Map(C.map((t,e)=>[t,e]));return{minusSign:f,plusSign:m,decimal:y,group:v,literals:x,numeral:new RegExp(`[${C.join("")}]`,"g"),index:t=>String(E.get(t))}}(t,this.formatter,this.options,e),"percent"===this.options.style&&((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)>18||(null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const p=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),d=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function f(t,e,r){return t.replaceAll?t.replaceAll(e,r):t.split(e).join(r)}function g(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},74849(t,e,r){var i=r(48943),n=r(77126);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}s(t.exports,"NumberFormatter",()=>i.NumberFormatter),s(t.exports,"NumberParser",()=>n.NumberParser)},66802(t){var e,r;e=t.exports,r=()=>o,Object.defineProperty(e,"LocalizedStringDictionary",{get:r,set:void 0,enumerable:!0,configurable:!0});const i=Symbol.for("react-aria.i18n.locale"),n=Symbol.for("react-aria.i18n.strings");let s;class o{getStringForLocale(t,e){let r=this.getStringsForLocale(e)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${e} locale`);return r}getStringsForLocale(t){let e=this.strings[t];return e||(e=function(t,e,r="en-US"){if(e[t])return e[t];let i=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[i])return e[i];for(let t in e)if(t.startsWith(i+"-"))return e[t];return e[r]}(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if("undefined"==typeof window)return null;let e=window[i];if(void 0===s){let t=window[n];if(!t)return null;s={};for(let r in t)s[r]=new o({[e]:t[r]},e)}let r=null==s?void 0:s[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},95808(t){var e,r;e=t.exports,r=()=>s,Object.defineProperty(e,"LocalizedStringFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});const i=new Map,n=new Map;class s{format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return"function"==typeof r?r(e,this):r}plural(t,e,r="cardinal"){let n=e["="+t];if(n)return"function"==typeof n?n():n;let s=this.locale+":"+r,o=i.get(s);return o||(o=new Intl.PluralRules(this.locale,{type:r}),i.set(s,o)),n=e[o.select(t)]||e.other,"function"==typeof n?n():n}number(t){let e=n.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),n.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return"function"==typeof r?r():r}constructor(t,e){this.locale=t,this.strings=e}}},83604(t,e,r){var i=r(66802),n=r(95808);function s(t,e,r,i){Object.defineProperty(t,e,{get:r,set:i,enumerable:!0,configurable:!0})}s(t.exports,"LocalizedStringDictionary",()=>i.LocalizedStringDictionary),s(t.exports,"LocalizedStringFormatter",()=>n.LocalizedStringFormatter)},27477(t,e,r){"use strict";r.d(e,{Ay:()=>ht,qj:()=>it,gi:()=>et,VC:()=>rt,J1:()=>Z,Nh:()=>tt});var i=r(65959);function n(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function o(t,e){let r=0,i=1;for(const o of t.body.matchAll(s)){if("number"==typeof o.index||n(!1),o.index>=e)break;r=o.index+o[0].length,i+=1}return{line:i,column:e+1-r}}function a(t){return A(t.source,o(t.source,t.start))}function A(t,e){const r=t.locationOffset.column-1,i="".padStart(r)+t.body,n=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=1===e.line?r:0,A=e.column+a,h=`${t.name}:${o}:${A}\n`,c=i.split(/\r\n|[\n\r]/g),u=c[n];if(u.length>120){const t=Math.floor(A/80),e=A%80,r=[];for(let t=0;t<u.length;t+=80)r.push(u.slice(t,t+80));return h+l([[`${o} |`,r[0]],...r.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",r[t+1]]])}return h+l([[o-1+" |",c[n-1]],[`${o} |`,u],["|","^".padStart(A)],[`${o+1} |`,c[n+1]]])}function l(t){const e=t.filter(([t,e])=>void 0!==e),r=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(r)+(e?" "+e:"")).join("\n")}class h extends Error{constructor(t,e,r,i,n,s,a){var A,l,u;super(t),this.name="GraphQLError",this.path=null!=n?n:void 0,this.originalError=null!=s?s:void 0,this.nodes=c(Array.isArray(e)?e:e?[e]:void 0);const p=c(null===(A=this.nodes)||void 0===A?void 0:A.map(t=>t.loc).filter(t=>null!=t));this.source=null!=r?r:null==p||null===(l=p[0])||void 0===l?void 0:l.source,this.positions=null!=i?i:null==p?void 0:p.map(t=>t.start),this.locations=i&&r?i.map(t=>o(r,t)):null==p?void 0:p.map(t=>o(t.source,t.start));const d="object"==typeof(f=null==s?void 0:s.extensions)&&null!==f?null==s?void 0:s.extensions:void 0;var f;this.extensions=null!==(u=null!=a?a:d)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+a(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+A(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function c(t){return void 0===t||0===t.length?void 0:t}function u(t,e,r){return new h(`Syntax Error: ${r}`,void 0,t,[e])}var p=r(49270),d=r(34695);let f;!function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(f||(f={}));var g=r(55565),m=r(234);class y{constructor(t,e="GraphQL request",r={line:1,column:1}){"string"==typeof t||(0,m.U)(!1,`Body must be a string. Received: ${(0,g.N)(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||(0,m.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,m.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let v;!function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(v||(v={}));var b=r(22359);function w(t){return t>=48&&t<=57}function B(t){return t>=97&&t<=122||t>=65&&t<=90}function x(t){return B(t)||95===t}function C(t){return B(t)||w(t)||95===t}class E{constructor(t){const e=new d.ou(f.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==f.EOF)do{if(t.next)t=t.next;else{const e=L(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===f.COMMENT);return t}}function S(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function F(t,e){return T(t.charCodeAt(e))&&I(t.charCodeAt(e+1))}function T(t){return t>=55296&&t<=56319}function I(t){return t>=56320&&t<=57343}function _(t,e){const r=t.source.body.codePointAt(e);if(void 0===r)return f.EOF;if(r>=32&&r<=126){const t=String.fromCodePoint(r);return'"'===t?"'\"'":`"${t}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function k(t,e,r,i,n){const s=t.line,o=1+r-t.lineStart;return new d.ou(e,r,i,s,o,n)}function L(t,e){const r=t.source.body,i=r.length;let n=e;for(;n<i;){const e=r.charCodeAt(n);switch(e){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++t.line,t.lineStart=n;continue;case 13:10===r.charCodeAt(n+1)?n+=2:++n,++t.line,t.lineStart=n;continue;case 35:return P(t,n);case 33:return k(t,f.BANG,n,n+1);case 36:return k(t,f.DOLLAR,n,n+1);case 38:return k(t,f.AMP,n,n+1);case 40:return k(t,f.PAREN_L,n,n+1);case 41:return k(t,f.PAREN_R,n,n+1);case 46:if(46===r.charCodeAt(n+1)&&46===r.charCodeAt(n+2))return k(t,f.SPREAD,n,n+3);break;case 58:return k(t,f.COLON,n,n+1);case 61:return k(t,f.EQUALS,n,n+1);case 64:return k(t,f.AT,n,n+1);case 91:return k(t,f.BRACKET_L,n,n+1);case 93:return k(t,f.BRACKET_R,n,n+1);case 123:return k(t,f.BRACE_L,n,n+1);case 124:return k(t,f.PIPE,n,n+1);case 125:return k(t,f.BRACE_R,n,n+1);case 34:return 34===r.charCodeAt(n+1)&&34===r.charCodeAt(n+2)?j(t,n):M(t,n)}if(w(e)||45===e)return N(t,n,e);if(x(e))return V(t,n);throw u(t.source,n,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(e)||F(r,n)?`Unexpected character: ${_(t,n)}.`:`Invalid character: ${_(t,n)}.`)}return k(t,f.EOF,i,i)}function P(t,e){const r=t.source.body,i=r.length;let n=e+1;for(;n<i;){const t=r.charCodeAt(n);if(10===t||13===t)break;if(S(t))++n;else{if(!F(r,n))break;n+=2}}return k(t,f.COMMENT,e,n,r.slice(e+1,n))}function N(t,e,r){const i=t.source.body;let n=e,s=r,o=!1;if(45===s&&(s=i.charCodeAt(++n)),48===s){if(s=i.charCodeAt(++n),w(s))throw u(t.source,n,`Invalid number, unexpected digit after 0: ${_(t,n)}.`)}else n=D(t,n,s),s=i.charCodeAt(n);if(46===s&&(o=!0,s=i.charCodeAt(++n),n=D(t,n,s),s=i.charCodeAt(n)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++n),43!==s&&45!==s||(s=i.charCodeAt(++n)),n=D(t,n,s),s=i.charCodeAt(n)),46===s||x(s))throw u(t.source,n,`Invalid number, expected digit but got: ${_(t,n)}.`);return k(t,o?f.FLOAT:f.INT,e,n,i.slice(e,n))}function D(t,e,r){if(!w(r))throw u(t.source,e,`Invalid number, expected digit but got: ${_(t,e)}.`);const i=t.source.body;let n=e+1;for(;w(i.charCodeAt(n));)++n;return n}function M(t,e){const r=t.source.body,i=r.length;let n=e+1,s=n,o="";for(;n<i;){const i=r.charCodeAt(n);if(34===i)return o+=r.slice(s,n),k(t,f.STRING,e,n+1,o);if(92===i){o+=r.slice(s,n);const e=117===r.charCodeAt(n+1)?123===r.charCodeAt(n+2)?O(t,n):U(t,n):H(t,n);o+=e.value,n+=e.size,s=n;continue}if(10===i||13===i)break;if(S(i))++n;else{if(!F(r,n))throw u(t.source,n,`Invalid character within String: ${_(t,n)}.`);n+=2}}throw u(t.source,n,"Unterminated string.")}function O(t,e){const r=t.source.body;let i=0,n=3;for(;n<12;){const t=r.charCodeAt(e+n++);if(125===t){if(n<5||!S(i))break;return{value:String.fromCodePoint(i),size:n}}if(i=i<<4|R(t),i<0)break}throw u(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+n)}".`)}function U(t,e){const r=t.source.body,i=Q(r,e+2);if(S(i))return{value:String.fromCodePoint(i),size:6};if(T(i)&&92===r.charCodeAt(e+6)&&117===r.charCodeAt(e+7)){const t=Q(r,e+8);if(I(t))return{value:String.fromCodePoint(i,t),size:12}}throw u(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function Q(t,e){return R(t.charCodeAt(e))<<12|R(t.charCodeAt(e+1))<<8|R(t.charCodeAt(e+2))<<4|R(t.charCodeAt(e+3))}function R(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function H(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw u(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function j(t,e){const r=t.source.body,i=r.length,n=t.line,s=1+e-t.lineStart;let o=e+3,a=o,A="";for(;o<i;){const i=r.charCodeAt(o);if(34===i&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2))return A+=r.slice(a,o),new d.ou(f.BLOCK_STRING,e,o+3,n,s,(0,b.i$)(A));if(92!==i||34!==r.charCodeAt(o+1)||34!==r.charCodeAt(o+2)||34!==r.charCodeAt(o+3))if(10!==i&&13!==i)if(S(i))++o;else{if(!F(r,o))throw u(t.source,o,`Invalid character within String: ${_(t,o)}.`);o+=2}else 13===i&&10===r.charCodeAt(o+1)?o+=2:++o,++t.line,t.lineStart=o;else A+=r.slice(a,o)+'"""',o+=4,a=o}throw u(t.source,o,"Unterminated string.")}function V(t,e){const r=t.source.body,i=r.length;let n=e+1;for(;n<i&&C(r.charCodeAt(n));)++n;return k(t,f.NAME,e,n,r.slice(e,n))}class G{constructor(t,e){const r=function(t){return t instanceof y}(t)?t:new y(t);this._lexer=new E(r),this._options=e}parseName(){const t=this.expectToken(f.NAME);return this.node(t,{kind:p.b.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.b.DOCUMENT,definitions:this.many(f.SOF,this.parseDefinition,f.EOF)})}parseDefinition(){if(this.peek(f.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===f.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(f.BRACE_L))return this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:d.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let r;return this.peek(f.NAME)&&(r=this.parseName()),this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(f.NAME);switch(t.value){case"query":return d.cE.QUERY;case"mutation":return d.cE.MUTATION;case"subscription":return d.cE.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(f.PAREN_L,this.parseVariableDefinition,f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(f.DOLLAR),this.node(t,{kind:p.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.b.SELECTION_SET,selections:this.many(f.BRACE_L,this.parseSelection,f.BRACE_R)})}parseSelection(){return this.peek(f.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,i;return this.expectOptionalToken(f.COLON)?(r=e,i=this.parseName()):i=e,this.node(t,{kind:p.b.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.PAREN_L,e,f.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(f.COLON),this.node(e,{kind:p.b.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(f.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(f.NAME)?this.node(t,{kind:p.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:p.b.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var t;const e=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacyFragmentVariables)?this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case f.BRACKET_L:return this.parseList(t);case f.BRACE_L:return this.parseObject(t);case f.INT:return this._lexer.advance(),this.node(e,{kind:p.b.INT,value:e.value});case f.FLOAT:return this._lexer.advance(),this.node(e,{kind:p.b.FLOAT,value:e.value});case f.STRING:case f.BLOCK_STRING:return this.parseStringLiteral();case f.NAME:switch(this._lexer.advance(),e.value){case"true":return this.node(e,{kind:p.b.BOOLEAN,value:!0});case"false":return this.node(e,{kind:p.b.BOOLEAN,value:!1});case"null":return this.node(e,{kind:p.b.NULL});default:return this.node(e,{kind:p.b.ENUM,value:e.value})}case f.DOLLAR:if(t){if(this.expectToken(f.DOLLAR),this._lexer.token.kind===f.NAME){const t=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this._lexer.advance(),this.node(t,{kind:p.b.STRING,value:t.value,block:t.kind===f.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:p.b.LIST,values:this.any(f.BRACKET_L,()=>this.parseValueLiteral(t),f.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:p.b.OBJECT,fields:this.any(f.BRACE_L,()=>this.parseObjectField(t),f.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(f.COLON),this.node(e,{kind:p.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(f.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(f.AT),this.node(e,{kind:p.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(f.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(f.BRACKET_R),e=this.node(t,{kind:p.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(f.BANG)?this.node(t,{kind:p.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(f.STRING)||this.peek(f.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);return this.node(t,{kind:p.b.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(f.COLON);const r=this.parseNamedType();return this.node(t,{kind:p.b.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:p.b.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:p.b.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseFieldDefinition,f.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(f.COLON);const n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:p.b.FIELD_DEFINITION,description:e,name:r,arguments:i,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(f.PAREN_L,this.parseInputValueDef,f.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(f.COLON);const i=this.parseTypeReference();let n;this.expectOptionalToken(f.EQUALS)&&(n=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:p.b.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:n,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:p.b.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(t,{kind:p.b.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(f.EQUALS)?this.delimitedMany(f.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(t,{kind:p.b.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(f.BRACE_L,this.parseEnumValueDefinition,f.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:p.b.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${z(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseInputValueDef,f.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===f.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.AT);const r=this.parseName(),i=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:p.b.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,repeatable:n,locations:s})}parseDirectiveLocations(){return this.delimitedMany(f.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(v,e.value))return e;throw this.unexpected(t)}node(t,e){var r;return!0!==(null===(r=this._options)||void 0===r?void 0:r.noLocation)&&(e.loc=new d.aZ(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw u(this._lexer.source,e.start,`Expected ${K(t)}, found ${z(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this._lexer.advance(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==f.NAME||e.value!==t)throw u(this._lexer.source,e.start,`Expected "${t}", found ${z(e)}.`);this._lexer.advance()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===f.NAME&&e.value===t&&(this._lexer.advance(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${z(e)}.`)}any(t,e,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const i=[];do{i.push(e.call(this))}while(!this.expectOptionalToken(r));return i}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}}function z(t){const e=t.value;return K(t.kind)+(null!=e?` "${e}"`:"")}function K(t){return function(t){return t===f.BANG||t===f.DOLLAR||t===f.AMP||t===f.PAREN_L||t===f.PAREN_R||t===f.SPREAD||t===f.COLON||t===f.EQUALS||t===f.AT||t===f.BRACKET_L||t===f.BRACKET_R||t===f.BRACE_L||t===f.PIPE||t===f.BRACE_R}(t)?`"${t}"`:t}var W=new Map,Y=new Map,X=!0,q=!1;function $(t){return t.replace(/[\s,]+/g," ").trim()}function J(t){var e=$(t);if(!W.has(e)){var r=function(t,e){return new G(t,e).parseDocument()}(t,{experimentalFragmentVariables:q,allowLegacyFragmentVariables:q});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");W.set(e,function(t){var e=new Set(t.definitions);e.forEach(function(t){t.loc&&delete t.loc,Object.keys(t).forEach(function(r){var i=t[r];i&&"object"==typeof i&&e.add(i)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}(function(t){var e=new Set,r=[];return t.definitions.forEach(function(t){if("FragmentDefinition"===t.kind){var i=t.name.value,n=$((o=t.loc).source.body.substring(o.start,o.end)),s=Y.get(i);s&&!s.has(n)?X&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Y.set(i,s=new Set),s.add(n),e.has(n)||(e.add(n),r.push(t))}else r.push(t);var o}),(0,i.__assign)((0,i.__assign)({},t),{definitions:r})}(r)))}return W.get(e)}function Z(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];"string"==typeof t&&(t=[t]);var i=t[0];return e.forEach(function(e,r){e&&"Document"===e.kind?i+=e.loc.source.body:i+=e,i+=t[r+1]}),J(i)}function tt(){W.clear(),Y.clear()}function et(){X=!1}function rt(){q=!0}function it(){q=!1}var nt,st=Z,ot=tt,at=et,At=rt,lt=it;(nt=Z||(Z={})).gql=st,nt.resetCaches=ot,nt.disableFragmentWarnings=at,nt.enableExperimentalFragmentVariables=At,nt.disableExperimentalFragmentVariables=lt,Z.default=Z;const ht=Z},42128(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.devAssert=function(t,e){if(!Boolean(t))throw new Error(e)}},10085(t,e){"use strict";function r(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const i=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:r(e,i)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const i=Math.min(10,t.length),n=t.length-i,s=[];for(let n=0;n<i;++n)s.push(r(t[n],e));return 1===n?s.push("... 1 more item"):n>1&&s.push(`... ${n} more items`),"["+s.join(", ")+"]"}(t,i);return function(t,e){const i=Object.entries(t);if(0===i.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const n=i.map(([t,i])=>t+": "+r(i,e));return"{ "+n.join(", ")+" }"}(t,i)}(t,e);default:return String(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.inspect=function(t){return r(t,[])}},48541(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Token=e.QueryDocumentKeys=e.OperationTypeNode=e.Location=void 0,e.isNode=function(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&s.has(e)};class r{constructor(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}e.Location=r;class i{constructor(t,e,r,i,n,s){this.kind=t,this.start=e,this.end=r,this.line=i,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}e.Token=i;const n={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};e.QueryDocumentKeys=n;const s=new Set(Object.keys(n));var o;e.OperationTypeNode=o,function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(o||(e.OperationTypeNode=o={}))},28441(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringLines=function(t){var e;let r=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let e=0;e<t.length;++e){var o;const a=t[e],A=n(a);A!==a.length&&(i=null!==(o=i)&&void 0!==o?o:e,s=e,0!==e&&A<r&&(r=A))}return t.map((t,e)=>0===e?t:t.slice(r)).slice(null!==(e=i)&&void 0!==e?e:0,s+1)},e.isPrintableAsBlockString=function(t){if(""===t)return!0;let e=!0,r=!1,i=!0,n=!1;for(let s=0;s<t.length;++s)switch(t.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!n)return!1;n=!0,e=!0,r=!1;break;case 9:case 32:r||(r=e);break;default:i&&(i=r),e=!1}return!e&&(!i||!n)},e.printBlockString=function(t,e){const r=t.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),s=1===n.length,o=n.length>1&&n.slice(1).every(t=>0===t.length||(0,i.isWhiteSpace)(t.charCodeAt(0))),a=r.endsWith('\\"""'),A=t.endsWith('"')&&!a,l=t.endsWith("\\"),h=A||l,c=!(null!=e&&e.minimize)&&(!s||t.length>70||h||o||a);let u="";const p=s&&(0,i.isWhiteSpace)(t.charCodeAt(0));return(c&&!p||o)&&(u+="\n"),u+=r,(c||h)&&(u+="\n"),'"""'+u+'"""'};var i=r(55640);function n(t){let e=0;for(;e<t.length&&(0,i.isWhiteSpace)(t.charCodeAt(e));)++e;return e}},55640(t,e){"use strict";function r(t){return t>=48&&t<=57}function i(t){return t>=97&&t<=122||t>=65&&t<=90}Object.defineProperty(e,"__esModule",{value:!0}),e.isDigit=r,e.isLetter=i,e.isNameContinue=function(t){return i(t)||r(t)||95===t},e.isNameStart=function(t){return i(t)||95===t},e.isWhiteSpace=function(t){return 9===t||32===t}},72298(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Kind=void 0,e.Kind=r,function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(r||(e.Kind=r={}))},43819(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.printString=function(t){return`"${t.replace(r,i)}"`};const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(t){return n[t.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},2693(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,s.visit)(t,o)};var i=r(28441),n=r(43819),s=r(57459);const o={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>a(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=c(t.variableDefinitions)?l("(\n",a(t.variableDefinitions,"\n"),"\n)"):l("(",a(t.variableDefinitions,", "),")"),r=l("",t.description,"\n")+a([t.operation,a([t.name,e]),a(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:i,description:n})=>l("",n,"\n")+t+": "+e+l(" = ",r)+l(" ",a(i," "))},SelectionSet:{leave:({selections:t})=>A(t)},Field:{leave({alias:t,name:e,arguments:r,directives:i,selectionSet:n}){const s=l("",t,": ")+e;let o=s+l("(",a(r,", "),")");return o.length>80&&(o=s+l("(\n",h(a(r,"\n")),"\n)")),a([o,a(i," "),n]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+l(" ",a(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>a(["...",l("on ",t),a(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>l("",s,"\n")+`fragment ${t}${l("(",a(r,", "),")")} `+`on ${e} ${l("",a(i," ")," ")}`+n},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,i.printBlockString)(t):(0,n.printString)(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+a(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+a(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+l("(",a(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>l("",t,"\n")+a(["schema",a(e," "),A(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>l("",t,"\n")+a(["scalar",e,a(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>l("",t,"\n")+a(["type",e,l("implements ",a(r," & ")),a(i," "),A(n)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:i,directives:n})=>l("",t,"\n")+e+(c(r)?l("(\n",h(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+": "+i+l(" ",a(n," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:i,directives:n})=>l("",t,"\n")+a([e+": "+r,l("= ",i),a(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>l("",t,"\n")+a(["interface",e,l("implements ",a(r," & ")),a(i," "),A(n)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:i})=>l("",t,"\n")+a(["union",e,a(r," "),l("= ",a(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:i})=>l("",t,"\n")+a(["enum",e,a(r," "),A(i)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>l("",t,"\n")+a([e,a(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:i})=>l("",t,"\n")+a(["input",e,a(r," "),A(i)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,directives:i,repeatable:n,locations:s})=>l("",t,"\n")+"directive @"+e+(c(r)?l("(\n",h(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+l(" ",a(i," "))+(n?" repeatable":"")+" on "+a(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>a(["extend schema",a(t," "),A(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>a(["extend scalar",t,a(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>a(["extend type",t,l("implements ",a(e," & ")),a(r," "),A(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>a(["extend interface",t,l("implements ",a(e," & ")),a(r," "),A(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>a(["extend union",t,a(e," "),l("= ",a(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>a(["extend enum",t,a(e," "),A(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>a(["extend input",t,a(e," "),A(r)]," ")},DirectiveExtension:{leave:({name:t,directives:e})=>a(["extend directive @"+t,a(e," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>a([t,l(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:r})=>a([t,l(".",e),l("(",r,":)")])},DirectiveCoordinate:{leave:({name:t})=>a(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>a(["@",t,l("(",e,":)")])}};function a(t,e=""){var r;return null!==(r=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==r?r:""}function A(t){return l("{\n",h(a(t,"\n")),"\n}")}function l(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function h(t){return l("  ",t.replace(/\n/g,"\n  "))}function c(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}},57459(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BREAK=void 0,e.getEnterLeaveForKind=A,e.getVisitFn=function(t,e,r){const{enter:i,leave:n}=A(t,e);return r?n:i},e.visit=function(t,e,r=s.QueryDocumentKeys){const l=new Map;for(const t of Object.values(o.Kind))l.set(t,A(e,t));let h,c,u,p=Array.isArray(t),d=[t],f=-1,g=[],m=t;const y=[],v=[];do{f++;const t=f===d.length,o=t&&0!==g.length;if(t){if(c=0===v.length?void 0:y[y.length-1],m=u,u=v.pop(),o)if(p){m=m.slice();let t=0;for(const[e,r]of g){const i=e-t;null===r?(m.splice(i,1),t++):m[i]=r}}else{m={...m};for(const[t,e]of g)m[t]=e}f=h.index,d=h.keys,g=h.edits,p=h.inArray,h=h.prev}else if(u){if(c=p?f:d[f],m=u[c],null==m)continue;y.push(c)}let A;if(!Array.isArray(m)){var b,w;(0,s.isNode)(m)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,n.inspect)(m)}.`);const r=t?null===(b=l.get(m.kind))||void 0===b?void 0:b.leave:null===(w=l.get(m.kind))||void 0===w?void 0:w.enter;if(A=null==r?void 0:r.call(e,m,c,u,y,v),A===a)break;if(!1===A){if(!t){y.pop();continue}}else if(void 0!==A&&(g.push([c,A]),!t)){if(!(0,s.isNode)(A)){y.pop();continue}m=A}}var B;void 0===A&&o&&g.push([c,m]),t?y.pop():(h={inArray:p,index:f,keys:d,edits:g,prev:h},p=Array.isArray(m),d=p?m:null!==(B=r[m.kind])&&void 0!==B?B:[],f=-1,g=[],u&&v.push(u),u=m)}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:t},e.visitInParallel=function(t){const e=new Array(t.length).fill(null),r=Object.create(null);for(const i of Object.values(o.Kind)){let n=!1;const s=new Array(t.length).fill(void 0),o=new Array(t.length).fill(void 0);for(let e=0;e<t.length;++e){const{enter:r,leave:a}=A(t[e],i);n||(n=null!=r||null!=a),s[e]=r,o[e]=a}if(!n)continue;const l={enter(...r){const i=r[0];for(let o=0;o<t.length;o++)if(null===e[o]){var n;const A=null===(n=s[o])||void 0===n?void 0:n.apply(t[o],r);if(!1===A)e[o]=i;else if(A===a)e[o]=a;else if(void 0!==A)return A}},leave(...r){const i=r[0];for(let s=0;s<t.length;s++)if(null===e[s]){var n;const i=null===(n=o[s])||void 0===n?void 0:n.apply(t[s],r);if(i===a)e[s]=a;else if(void 0!==i&&!1!==i)return i}else e[s]===i&&(e[s]=null)}};r[i]=l}return r};var i=r(42128),n=r(10085),s=r(48541),o=r(72298);const a=Object.freeze({});function A(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}e.BREAK=a},491(t,e,r){"use strict";var i=r(39886),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},21514(t,e,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=r(9712);t.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},9712(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var i in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},77185(t,e,r){"use strict";var i=r(9712);t.exports=function(){return i()&&!!Symbol.toStringTag}},57824(t,e,r){"use strict";var i=r(56608).Buffer,n=r(66096).Transform;function s(t){n.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(s,n),s.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(t){i=t}r(i)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var o="undefined"!=typeof Uint8Array,a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);s.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof i)return t;if("string"==typeof t)return i.from(t,e);if(a&&ArrayBuffer.isView(t)){if(0===t.byteLength)return i.alloc(0);var r=i.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(o&&t instanceof Uint8Array)return i.from(t);if(i.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return i.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(t,e);for(var r=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)r[s++]=t[n++];this._update(),this._blockOffset=0}for(;n<t.length;)r[this._blockOffset++]=t[n++];for(var A=0,l=8*t.length;l>0;++A)this._length[A]+=l,(l=this._length[A]/4294967296|0)>0&&(this._length[A]-=4294967296*l);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},41002(t,e,r){"use strict";var i=r(56608).Buffer,n=r(18836),s=r(9464).Transform;function o(t){s.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(o,s),o.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(t){i=t}r(i)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=n(t,e),i=this._block,s=0;this._blockOffset+r.length-s>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=r[s],o+=1,s+=1;this._update(),this._blockOffset=0}for(;s<r.length;)i[this._blockOffset]=r[s],this._blockOffset+=1,s+=1;for(var a=0,A=8*r.length;A>0;++a)this._length[a]+=A,(A=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*A);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},18836(t,e,r){"use strict";var i=r(56608).Buffer,n=r(26919),s="undefined"!=typeof Uint8Array,o=s&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||i.isBuffer(t)||s&&t instanceof Uint8Array||o&&o(t))return n(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},61631(t,e,r){var i=e;i.utils=r(27905),i.common=r(14427),i.sha=r(61822),i.ripemd=r(47317),i.hmac=r(67309),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},14427(t,e,r){"use strict";var i=r(27905),n=r(35578);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},s.prototype.digest=function(t){return this.update(this._pad()),n(null===this.pending),this._digest(t)},s.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=t>>>24&255,i[n++]=t>>>16&255,i[n++]=t>>>8&255,i[n++]=255&t}else for(i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n++]=t>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,s=8;s<this.padLength;s++)i[n++]=0;return i}},67309(t,e,r){"use strict";var i=r(27905),n=r(35578);function s(t,e,r){if(!(this instanceof s))return new s(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,r))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},s.prototype.update=function(t,e){return this.inner.update(t,e),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},47317(t,e,r){"use strict";var i=r(27905),n=r(14427),s=i.rotl32,o=i.sum32,a=i.sum32_3,A=i.sum32_4,l=n.BlockHash;function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}function u(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(h,l),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var r=this.h[0],i=this.h[1],n=this.h[2],l=this.h[3],h=this.h[4],y=r,v=i,b=n,w=l,B=h,x=0;x<80;x++){var C=o(s(A(r,c(x,i,n,l),t[d[x]+e],u(x)),g[x]),h);r=h,h=l,l=s(n,10),n=i,i=C,C=o(s(A(y,c(79-x,v,b,w),t[f[x]+e],p(x)),m[x]),B),y=B,B=w,w=s(b,10),b=v,v=C}C=a(this.h[1],n,w),this.h[1]=a(this.h[2],l,B),this.h[2]=a(this.h[3],h,y),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],i,b),this.h[0]=C},h.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},61822(t,e,r){"use strict";e.sha1=r(12750),e.sha224=r(37485),e.sha256=r(77292),e.sha384=r(40696),e.sha512=r(58889)},12750(t,e,r){"use strict";var i=r(27905),n=r(14427),s=r(45660),o=i.rotl32,a=i.sum32,A=i.sum32_5,l=s.ft_1,h=n.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(u,h),t.exports=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=o(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],s=this.h[1],h=this.h[2],u=this.h[3],p=this.h[4];for(i=0;i<r.length;i++){var d=~~(i/20),f=A(o(n,5),l(d,s,h,u),p,r[i],c[d]);p=u,u=h,h=o(s,30),s=n,n=f}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],h),this.h[3]=a(this.h[3],u),this.h[4]=a(this.h[4],p)},u.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},37485(t,e,r){"use strict";var i=r(27905),n=r(77292);function s(){if(!(this instanceof s))return new s;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(s,n),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},77292(t,e,r){"use strict";var i=r(27905),n=r(14427),s=r(45660),o=r(35578),a=i.sum32,A=i.sum32_4,l=i.sum32_5,h=s.ch32,c=s.maj32,u=s.s0_256,p=s.s1_256,d=s.g0_256,f=s.g1_256,g=n.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}i.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=A(f(r[i-2]),r[i-7],d(r[i-15]),r[i-16]);var n=this.h[0],s=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],w=this.h[7];for(o(this.k.length===r.length),i=0;i<r.length;i++){var B=l(w,p(y),h(y,v,b),this.k[i],r[i]),x=a(u(n),c(n,s,g));w=b,b=v,v=y,y=a(m,B),m=g,g=s,s=n,n=a(B,x)}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],w)},y.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},40696(t,e,r){"use strict";var i=r(27905),n=r(58889);function s(){if(!(this instanceof s))return new s;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(s,n),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},58889(t,e,r){"use strict";var i=r(27905),n=r(14427),s=r(35578),o=i.rotr64_hi,a=i.rotr64_lo,A=i.shr64_hi,l=i.shr64_lo,h=i.sum64,c=i.sum64_hi,u=i.sum64_lo,p=i.sum64_4_hi,d=i.sum64_4_lo,f=i.sum64_5_hi,g=i.sum64_5_lo,m=n.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(t,e,r,i,n){var s=t&r^~t&n;return s<0&&(s+=4294967296),s}function w(t,e,r,i,n,s){var o=e&i^~e&s;return o<0&&(o+=4294967296),o}function B(t,e,r,i,n){var s=t&r^t&n^r&n;return s<0&&(s+=4294967296),s}function x(t,e,r,i,n,s){var o=e&i^e&s^i&s;return o<0&&(o+=4294967296),o}function C(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}function F(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function T(t,e){var r=o(t,e,1)^o(t,e,8)^A(t,e,7);return r<0&&(r+=4294967296),r}function I(t,e){var r=a(t,e,1)^a(t,e,8)^l(t,e,7);return r<0&&(r+=4294967296),r}function _(t,e){var r=o(t,e,19)^o(e,t,29)^A(t,e,6);return r<0&&(r+=4294967296),r}function k(t,e){var r=a(t,e,19)^a(e,t,29)^l(t,e,6);return r<0&&(r+=4294967296),r}i.inherits(v,m),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=_(r[i-4],r[i-3]),s=k(r[i-4],r[i-3]),o=r[i-14],a=r[i-13],A=T(r[i-30],r[i-29]),l=I(r[i-30],r[i-29]),h=r[i-32],c=r[i-31];r[i]=p(n,s,o,a,A,l,h,c),r[i+1]=d(n,s,o,a,A,l,h,c)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],a=this.h[3],A=this.h[4],l=this.h[5],p=this.h[6],d=this.h[7],m=this.h[8],y=this.h[9],v=this.h[10],T=this.h[11],I=this.h[12],_=this.h[13],k=this.h[14],L=this.h[15];s(this.k.length===r.length);for(var P=0;P<r.length;P+=2){var N=k,D=L,M=S(m,y),O=F(m,y),U=b(m,0,v,0,I),Q=w(0,y,0,T,0,_),R=this.k[P],H=this.k[P+1],j=r[P],V=r[P+1],G=f(N,D,M,O,U,Q,R,H,j,V),z=g(N,D,M,O,U,Q,R,H,j,V);N=C(i,n),D=E(i,n),M=B(i,0,o,0,A),O=x(0,n,0,a,0,l);var K=c(N,D,M,O),W=u(N,D,M,O);k=I,L=_,I=v,_=T,v=m,T=y,m=c(p,d,G,z),y=u(d,d,G,z),p=A,d=l,A=o,l=a,o=i,a=n,i=c(G,z,K,W),n=u(G,z,K,W)}h(this.h,0,i,n),h(this.h,2,o,a),h(this.h,4,A,l),h(this.h,6,p,d),h(this.h,8,m,y),h(this.h,10,v,T),h(this.h,12,I,_),h(this.h,14,k,L)},v.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},45660(t,e,r){"use strict";var i=r(27905).rotr32;function n(t,e,r){return t&e^~t&r}function s(t,e,r){return t&e^t&r^e&r}function o(t,e,r){return t^e^r}e.ft_1=function(t,e,r,i){return 0===t?n(e,r,i):1===t||3===t?o(e,r,i):2===t?s(e,r,i):void 0},e.ch32=n,e.maj32=s,e.p32=o,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},27905(t,e,r){"use strict";var i=r(35578),n=r(91193);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function A(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=n,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var i=0,n=0;n<t.length;n++){var o=t.charCodeAt(n);o<128?r[i++]=o:o<2048?(r[i++]=o>>6|192,r[i++]=63&o|128):s(t,n)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++n)),r[i++]=o>>18|240,r[i++]=o>>12&63|128,r[i++]=o>>6&63|128,r[i++]=63&o|128):(r[i++]=o>>12|224,r[i++]=o>>6&63|128,r[i++]=63&o|128)}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=a(t[r].toString(16));return e},e.htonl=o,e.toHex32=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];"little"===e&&(n=o(n)),r+=A(n.toString(16))}return r},e.zero2=a,e.zero8=A,e.join32=function(t,e,r,n){var s=r-e;i(s%4==0);for(var o=new Array(s/4),a=0,A=e;a<o.length;a++,A+=4){var l;l="big"===n?t[A]<<24|t[A+1]<<16|t[A+2]<<8|t[A+3]:t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A],o[a]=l>>>0}return o},e.split32=function(t,e){for(var r=new Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var s=t[i];"big"===e?(r[n]=s>>>24,r[n+1]=s>>>16&255,r[n+2]=s>>>8&255,r[n+3]=255&s):(r[n+3]=s>>>24,r[n+2]=s>>>16&255,r[n+1]=s>>>8&255,r[n]=255&s)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,i){return t+e+r+i>>>0},e.sum32_5=function(t,e,r,i,n){return t+e+r+i+n>>>0},e.sum64=function(t,e,r,i){var n=t[e],s=i+t[e+1]>>>0,o=(s<i?1:0)+r+n;t[e]=o>>>0,t[e+1]=s},e.sum64_hi=function(t,e,r,i){return(e+i>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,i){return e+i>>>0},e.sum64_4_hi=function(t,e,r,i,n,s,o,a){var A=0,l=e;return A+=(l=l+i>>>0)<e?1:0,A+=(l=l+s>>>0)<s?1:0,t+r+n+o+(A+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,r,i,n,s,o,a){return e+i+s+a>>>0},e.sum64_5_hi=function(t,e,r,i,n,s,o,a,A,l){var h=0,c=e;return h+=(c=c+i>>>0)<e?1:0,h+=(c=c+s>>>0)<s?1:0,h+=(c=c+a>>>0)<a?1:0,t+r+n+o+A+(h+=(c=c+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,r,i,n,s,o,a,A,l){return e+i+s+a+l>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},75630(t,e,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty,s=r(79524);t.exports=s.call(i,n)},73474(t){"use strict";t.exports=(t,e)=>{if("string"!=typeof t||!/^#([A-Fa-f0-9]{3}$|[A-Fa-f0-9]{6}$|[A-Fa-f0-9]{8}$)/.test(t))throw new Error("Invalid hexadecimal color value");if("number"!=typeof e||e>1||e<0)throw new Error("Opacity should be float between 0 - 1");let r=t.substring(1);return 8===r.length&&(r=r.substring(0,r.length-2)),3===r.length&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),r+=Math.round(255*e).toString(16).padStart(2,"0"),`#${r}`.toUpperCase()}},34768(t,e,r){var i;"undefined"!=typeof self&&self,t.exports=(i=r(22155),function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},i.apply(this,arguments)}function n(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),r.d(e,"HighchartsReact",function(){return h});var a=r(1),A=r.n(a),l="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,h=Object(a.memo)(Object(a.forwardRef)(function(t,e){var r=Object(a.useRef)(),s=Object(a.useRef)(),h=Object(a.useRef)(t.constructorType),c=Object(a.useRef)(t.highcharts);return l(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":o(window))&&window.Highcharts,i=t.constructorType||"chart";e?e[i]?t.options?s.current=e[i](r.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(s.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==h.current||t.highcharts!==c.current)h.current=t.constructorType,c.current=t.highcharts,e();else if(!t.immutable&&s.current){var i;(i=s.current).update.apply(i,[t.options].concat(n(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),l(function(){return function(){s.current&&(s.current.destroy(),s.current=null)}},[]),Object(a.useImperativeHandle)(e,function(){return{get chart(){return s.current},container:r}},[]),A.a.createElement("div",i({},t.containerProps,{ref:r}))}));e.default=h},function(t,e){t.exports=i}]))},29132(t,e,r){var i,n,s;s=function(t){function e(t,e,r,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/Pane.js",[t["Core/Chart/Chart.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],function(t,e,r,i,n){function s(t,e,r,i,n){var s=!0,o=r[0],l=r[1],h=Math.sqrt(Math.pow(t-o,2)+Math.pow(e-l,2));return A(i)&&A(n)&&(t=Math.atan2(a(e-l,8),a(t-o,8)),n!==i&&(s=i>n?t>=i&&t<=Math.PI||t<=n&&t>=-Math.PI:t>=i&&t<=a(n,8))),h<=Math.ceil(r[2]/2)&&s}var o=n.addEvent,a=n.correctFloat,A=n.defined,l=n.extend,h=n.merge,c=n.pick,u=n.splat;return t.prototype.collectionsWithUpdate.push("pane"),n=function(){function t(t,e){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(t,e)}return t.prototype.init=function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},t.prototype.setOptions=function(t){this.options=h(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},t.prototype.render=function(){var t=this.options,e=this.options.background,r=this.chart.renderer;if(this.group||(this.group=r.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=u(e),t=Math.max(e.length,this.background.length||0),r=0;r<t;r++)e[r]&&this.axis?this.renderBackground(h(this.defaultBackgroundOptions,e[r]),r):this.background[r]&&(this.background[r]=this.background[r].destroy(),this.background.splice(r,1))},t.prototype.renderBackground=function(t,e){var r="animate",i={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||l(i,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),r="attr"),this.background[e][r]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(i)},t.prototype.updateCenter=function(t){this.center=(t||this.axis||{}).center=e.getCenter.call(this)},t.prototype.update=function(t,e){h(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)},t}(),t.prototype.getHoverPane=function(t){var e,r=this;return t&&r.pane.forEach(function(i){s(t.chartX-r.plotLeft,t.chartY-r.plotTop,i.center)&&(e=i)}),e},o(t,"afterIsInsidePlot",function(t){if(this.polar){if(t.options.inverted){var e=[t.y,t.x];t.x=e[0],t.y=e[1]}t.isInsidePlot=this.pane.some(function(e){return s(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)})}}),o(i,"beforeGetHoverData",function(t){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(r){return r.visible&&!(!t.shared&&r.directTouch)&&c(r.options.enableMouseTracking,!0)&&(!e.hoverPane||r.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}),o(i,"afterGetHoverData",function(t){var e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!s(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}),r.Pane=n,r.Pane}),e(t,"Series/AreaRange/AreaRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),i=(t=t.seriesTypes.area.prototype).pointClass.prototype,n=e.defined,s=e.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.high=void 0,e.low=void 0,e.options=void 0,e.plotX=void 0,e.series=void 0,e}return r(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,r=e.chart.polar;n(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),n(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,r&&s(this.plotHighX)&&(this.plotX=this.plotHighX),i.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],r&&s(this.plotLowX)&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),i.setState.apply(this,arguments)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&s(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=i.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&s(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(i.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return s(this.low)&&s(this.high)},e}(t.pointClass)}),e(t,"Series/AreaRange/AreaRangeSeries.js",[t["Series/AreaRange/AreaRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();e=e.noop;var s=r.seriesTypes,o=s.area,a=s.area.prototype,A=s.column.prototype;s=i.addEvent;var l=i.defined,h=i.extend,c=i.isArray,u=i.isNumber,p=i.pick,d=i.merge,f={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.lowerStateMarkerGraphic=void 0,e.xAxis=void 0,e}return n(e,t),e.prototype.toYData=function(t){return[t.low,t.high]},e.prototype.highToXY=function(t){var e=this.chart,r=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=r.x-e.plotLeft,t.plotHigh=r.y-e.plotTop,t.plotLowX=t.plotX},e.prototype.getGraphPath=function(t){var e,r=[],i=[],n=a.getGraphPath,s=this.options,o=this.chart.polar,A=o&&!1!==s.connectEnds,l=s.connectNulls,h=s.step;for(e=(t=t||this.points).length;e--;){var c=t[e],u=o?{plotX:c.rectPlotX,plotY:c.yBottom,doCurve:!1}:{plotX:c.plotX,plotY:c.plotY,doCurve:!1};c.isNull||A||l||t[e+1]&&!t[e+1].isNull||i.push(u);var d={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom,plotX:p(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull};i.push(d),r.push(d),c.isNull||A||l||t[e-1]&&!t[e-1].isNull||i.push(u)}return t=n.call(this,t),h&&(!0===h&&(h="left"),s.step={left:"right",center:"center",right:"left"}[h]),r=n.call(this,r),i=n.call(this,i),s.step=h,s=[].concat(t,r),!this.chart.polar&&i[0]&&"M"===i[0][0]&&(i[0]=["L",i[0][1],i[0][2]]),this.graphPath=s,this.areaPath=t.concat(i),s.isArea=!0,s.xMap=t.xMap,this.areaPath.xMap=t.xMap,s},e.prototype.drawDataLabels=function(){var t,e,r=this.points,i=r.length,n=[],s=this.options.dataLabels,o=this.chart.inverted;if(s){if(c(s))var A=s[0]||{enabled:!1},l=s[1]||{enabled:!1};else(A=h({},s)).x=s.xHigh,A.y=s.yHigh,(l=h({},s)).x=s.xLow,l.y=s.yLow;if(A.enabled||this._hasPointLabels){for(t=i;t--;)if(e=r[t]){var u=e.plotHigh;u=void 0===u?0:u;var p=e.plotLow;p=void 0===p?0:p,p=A.inside?u<p:u>p,e.y=e.high,e._plotY=e.plotY,e.plotY=u,n[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=p,o?A.align||(A.align=p?"right":"left"):A.verticalAlign||(A.verticalAlign=p?"top":"bottom")}for(this.options.dataLabels=A,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments),t=i;t--;)(e=r[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=n[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(l.enabled||this._hasPointLabels){for(t=i;t--;)(e=r[t])&&(u=void 0===(n=e.plotHigh)?0:n,p=void 0===(n=e.plotLow)?0:n,p=l.inside?u<p:u>p,e.below=!p,o?l.align||(l.align=p?"left":"right"):l.verticalAlign||(l.verticalAlign=p?"bottom":"top"));this.options.dataLabels=l,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments)}if(A.enabled)for(t=i;t--;)(e=r[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=s}},e.prototype.alignDataLabel=function(){A.alignDataLabel.apply(this,arguments)},e.prototype.drawPoints=function(){var t,e=this.points.length;for(a.drawPoints.apply(this,arguments),t=0;t<e;){var r=this.points[t];r.graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,l(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=p(r.high,r.origProps.y),r.negative=r.y<(this.options.threshold||0),this.zones.length&&(r.zone=r.getZone()),this.chart.polar||(r.isInside=r.isTopInside=void 0!==r.plotY&&0<=r.plotY&&r.plotY<=this.yAxis.len&&0<=r.plotX&&r.plotX<=this.xAxis.len),t++}for(a.drawPoints.apply(this,arguments),t=0;t<e;)(r=this.points[t]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(h(r,r.origProps),delete r.origProps),t++},e.defaultOptions=d(o.defaultOptions,f),e}(o),s(i,"afterTranslate",function(){var t=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(e){var r=e.high,i=e.plotY;e.isNull?e.plotY=void 0:(e.plotLow=i,e.plotHigh=u(r)?t.yAxis.translate(t.dataModify?t.dataModify.modifyValue(r):r,!1,!0,void 0,!0):void 0,t.dataModify&&(e.yBottom=e.plotHigh))})},{order:0}),s(i,"afterTranslate",function(){var t=this;this.points.forEach(function(e){if(t.chart.polar)t.highToXY(e),e.plotLow=e.plotY,e.tooltipPos=[((e.plotHighX||0)+(e.plotLowX||0))/2,((e.plotHigh||0)+(e.plotLow||0))/2];else{var r=e.pos(!1,e.plotLow),i=e.pos(!1,e.plotHigh);r&&i&&(r[0]=(r[0]+i[0])/2,r[1]=(r[1]+i[1])/2),e.tooltipPos=r}})},{order:3}),h(i.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:t,pointValKey:"low",setStackedPoints:e}),r.registerSeriesType("arearange",i),i}),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=e.seriesTypes.spline.prototype,s=r.merge;r=r.extend;var o=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.data=void 0,t.points=void 0,t}return i(r,e),r.defaultOptions=s(t.defaultOptions),r}(t);return r(o.prototype,{getPointSpline:n.getPointSpline}),e.registerSeriesType("areasplinerange",o),o}),e(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();e=e.noop;var s=i.extend,o=i.merge,a=i.pick;return i=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(r,e),r.prototype.pointAttribs=function(){return{}},r.prototype.translate=function(){var t=this.yAxis,r=this.pointArrayMap;e.prototype.translate.apply(this),this.points.forEach(function(e){r.forEach(function(r){null!==e[r]&&(e[r+"Plot"]=t.translate(e[r],0,1,0,1))}),e.plotHigh=e.highPlot})},r.prototype.drawPoints=function(){var t,e,r,i,n,s,o,A,l,h,c,u=this,p=u.options,d=u.chart,f=d.renderer,g=0,m=!1!==u.doQuartiles,y=u.options.whiskerLength;u.points.forEach(function(v){var b=v.graphic,w=b?"animate":"attr",B=v.shapeArgs,x={},C={},E={},S={},F=v.color||u.color;void 0!==v.plotY&&(o=Math.round(B.width),A=Math.floor(B.x),l=A+o,h=Math.round(o/2),t=Math.floor(m?v.q1Plot:v.lowPlot),e=Math.floor(m?v.q3Plot:v.lowPlot),r=Math.floor(v.highPlot),i=Math.floor(v.lowPlot),b||(v.graphic=b=f.g("point").add(u.group),v.stem=f.path().addClass("highcharts-boxplot-stem").add(b),y&&(v.whiskers=f.path().addClass("highcharts-boxplot-whisker").add(b)),m&&(v.box=f.path(void 0).addClass("highcharts-boxplot-box").add(b)),v.medianShape=f.path(void 0).addClass("highcharts-boxplot-median").add(b)),d.styledMode||(C.stroke=v.stemColor||p.stemColor||F,C["stroke-width"]=a(v.stemWidth,p.stemWidth,p.lineWidth),C.dashstyle=v.stemDashStyle||p.stemDashStyle||p.dashStyle,v.stem.attr(C),y&&(E.stroke=v.whiskerColor||p.whiskerColor||F,E["stroke-width"]=a(v.whiskerWidth,p.whiskerWidth,p.lineWidth),E.dashstyle=v.whiskerDashStyle||p.whiskerDashStyle||p.dashStyle,v.whiskers.attr(E)),m&&(x.fill=v.fillColor||p.fillColor||F,x.stroke=p.lineColor||F,x["stroke-width"]=p.lineWidth||0,x.dashstyle=v.boxDashStyle||p.boxDashStyle||p.dashStyle,v.box.attr(x)),S.stroke=v.medianColor||p.medianColor||F,S["stroke-width"]=a(v.medianWidth,p.medianWidth,p.lineWidth),S.dashstyle=v.medianDashStyle||p.medianDashStyle||p.dashStyle,v.medianShape.attr(S)),s=v.stem.strokeWidth()%2/2,b=[["M",g=A+h+s,e],["L",g,r],["M",g,t],["L",g,i]],v.stem[w]({d:b}),m&&(s=v.box.strokeWidth()%2/2,t=Math.floor(t)+s,e=Math.floor(e)+s,b=[["M",A+=s,e],["L",A,t],["L",l+=s,t],["L",l,e],["L",A,e],["Z"]],v.box[w]({d:b})),y&&(s=v.whiskers.strokeWidth()%2/2,r+=s,i+=s,c=/%$/.test(y)?h*parseFloat(y)/100:y/2,b=[["M",g-c,r],["L",g+c,r],["M",g-c,i],["L",g+c,i]],v.whiskers[w]({d:b})),n=Math.round(v.medianPlot),s=v.medianShape.strokeWidth()%2/2,b=[["M",A,n+=s],["L",l,n]],v.medianShape[w]({d:b}))})},r.prototype.toYData=function(t){return[t.low,t.q1,t.median,t.q3,t.high]},r.defaultOptions=o(t.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),r}(t),s(i.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:e,setStackedPoints:e}),r.registerSeriesType("boxplot",i),i}),e(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=t.parse,s=r.noop,o=i.arrayMax,a=i.arrayMin,A=i.isNumber,l=i.merge,h=i.pick,c=i.stableSort;return t=function(){function t(t,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0,this.setState=s,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e=this.chart,r=h(t.options.itemDistance,20),i=this.legendItem||{},n=this.options,s=n.ranges,o=n.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(n.labels.style.fontSize),s&&s.length&&A(s[0].value)?(c(s,function(t,e){return e.value-t.value}),this.ranges=s,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(s=this.ranges[0].radius),o=0<(o=o-s+t.width)?o:0,this.maxLabel=t,this.movementX="left"===n.labels.align?o:0,i.labelWidth=e+o+r,i.labelHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,r=this.chart.series[e.seriesIndex],i=this.legend.baseline,s={zIndex:e.zIndex,"stroke-width":e.borderWidth},o={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},A=r.options.marker.fillOpacity,c=this.chart.styledMode;t.forEach(function(u,p){c||(s.stroke=h(u.borderColor,e.borderColor,r.color),s.fill=h(u.color,e.color,1!==A?n(r.color).setOpacity(A).get("rgba"):r.color),o.stroke=h(u.connectorColor,e.connectorColor,r.color)),t[p].radius=this.getRangeRadius(u.value),t[p]=l(t[p],{center:t[0].radius-t[p].radius+i}),c||l(!0,t[p],{bubbleAttribs:l(s),connectorAttribs:l(o),labelAttribs:a})},this)},t.prototype.getRangeRadius=function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,r=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item"),t.symbol.translateX=0,e=t.symbol.translateY=0;for(var i=this.ranges;e<i.length;e++){var n=i[e];n.value>=r&&this.renderRange(n)}t.symbol.add(t.label),t.label.add(t.group),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,r=e.labels,i=this.chart,n=i.series[e.seriesIndex],s=i.renderer,o=this.symbols;i=o.labels;var a=t.center,A=Math.abs(t.radius),l=e.connectorDistance||0,h=r.align,c=e.connectorWidth,u=this.ranges[0].radius||0,p=a-A-e.borderWidth/2+c/2,d=this.fontMetrics;d=d.f/2-(d.h-d.f)/2;var f=s.styledMode;l=this.legend.options.rtl||"left"===h?-l:l,"center"===h&&(l=0,e.connectorDistance=0,t.labelAttribs.align="center"),h=p+e.labels.y;var g=u+l+e.labels.x;o.bubbleItems.push(s.circle(u,a+((p%1?1:.5)-(c%2?0:.5)),A).attr(f?{}:t.bubbleAttribs).addClass((f?"highcharts-color-"+n.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendItem.symbol)),o.connectors.push(s.path(s.crispLine([["M",u,p],["L",u+l,p]],e.connectorWidth)).attr(f?{}:t.connectorAttribs).addClass((f?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol)),t=s.text(this.formatLabel(t),g,h+d).attr(f?{}:t.labelAttribs).css(f?{}:r.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol),i.push(t),t.placed=!0,t.alignAttr={x:g,y:h+d}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(r){e=r.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var r=this.options,i=r.labels.formatter;r=r.labels.format;var n=this.chart.numberFormatter;return r?e.format(r,t):i?i.call(t):n(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach(function(t,r){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[r].show():e.connectors[r].hide()}))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,r=e.options.ranges,i=Number.MAX_VALUE,n=-Number.MAX_VALUE;e.chart.series.forEach(function(e){e.isBubble&&!e.ignoreSeries&&(t=e.zData.filter(A)).length&&(i=h(e.options.zMin,Math.min(i,Math.max(a(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),n=h(e.options.zMax,Math.max(n,o(t))))});var s=i===n?[{value:n}]:[{value:i},{value:(i+n)/2},{value:n,autoRanges:!0}];return r.length&&r[0].radius&&s.reverse(),s.forEach(function(t,e){r&&r[e]&&(s[e]=l(r[e],t))}),s},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,r=t.legend.options,i=r.floating,n=(r="horizontal"===r.layout)?t.legend.lastLineHeight:0,s=t.plotSizeX,o=t.plotSizeY,a=t.series[this.options.seriesIndex],A=a.getPxExtremes();t=Math.ceil(A.minPxSize),A=Math.ceil(A.maxPxSize);var l=Math.min(o,s);return a=a.options.maxSize,i||!/%$/.test(a)?e=A:(a=parseFloat(a),e=(l+n-e.h/2)*a/100/(a/100+1),(r&&o-e>=s||!r&&s-e>=o)&&(e=A)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var r=this.legend.options.bubbleLegend;r.minSize=t,r.maxSize=e,r.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}(),t}),e(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(t,e,r,i){function n(t,e,r){var i,n=this.legend,a=0<=s(this);if(n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&a){var A=n.bubbleLegend.options;a=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(a[0],a[1]),A.placed||(n.group.placed=!1,n.allItems.forEach(function(t){(i=t.legendItem||{}).group&&(i.group.translateY=null)})),n.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),A.placed||(t.setScale(),t.updateNames(),u(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),A.placed=!0,this.getMargins(),t.call(this,e,r),n.bubbleLegend.correctSizes(),l(n,o(n))}else t.call(this,e,r),n&&n.options.enabled&&n.bubbleLegend&&(n.render(),l(n,o(n)))}function s(t){t=t.series;for(var e=0;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].zData.length)return e;e++}return-1}function o(t){var e,r=[],i=(t=t.allItems).length,n=0;for(e=0;e<i;e++){var s=t[e].legendItem||{},o=(t[e+1]||{}).legendItem||{};if(s.labelHeight&&(t[e].itemHeight=s.labelHeight),t[e]===t[i-1]||s.y!==o.y){for(r.push({height:0}),s=r[r.length-1];n<=e;n++)t[n].itemHeight>s.height&&(s.height=t[n].itemHeight);s.step=e}}return r}function a(t){var r=this.bubbleLegend,i=this.options,n=i.bubbleLegend,o=s(this.chart);r&&r.ranges&&r.ranges.length&&(n.ranges.length&&(n.autoRanges=!!n.ranges[0].autoRanges),this.destroyItem(r)),0<=o&&i.enabled&&n.enabled&&(n.seriesIndex=o,this.bubbleLegend=new e(n,this),this.bubbleLegend.addToLegend(t.allItems))}function A(){var t=this.chart,e=this.visible,r=this.chart.legend;r&&r.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=s(t),r.bubbleLegend.visible!==t&&(r.update({bubbleLegend:{enabled:t}}),r.bubbleLegend.visible=t),this.visible=e)}function l(t,e){var r,i,n,s,o=t.options.rtl,a=0;t.allItems.forEach(function(t,A){(s=t.legendItem||{}).group&&(r=s.group.translateX||0,i=s.y||0,((n=t.movementX)||o&&t.ranges)&&(n=o?r-t.options.maxSize/2:r+n,s.group.attr({translateX:n})),A>e[a].step&&a++,s.group.attr({translateY:Math.round(i+e[a].height/2)}),s.y=i+e[a].height/2)})}var h=r.setOptions,c=i.addEvent,u=i.objectEach,p=i.wrap,d=[];return{compose:function(e,r,i){-1===d.indexOf(e)&&(d.push(e),h({legend:{bubbleLegend:t}}),p(e.prototype,"drawChartBox",n)),-1===d.indexOf(r)&&(d.push(r),c(r,"afterGetAllItems",a)),-1===d.indexOf(i)&&(d.push(i),c(i,"legendItemClick",A))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();return r=r.extend,e=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return i(r,e),r.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},r}(e.seriesTypes.scatter.prototype.pointClass),r(e.prototype,{ttBelow:!1}),e}),e(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i,n,s){function o(){var t,e=this,r=this.len,i=this.chart,n=this.isXAxis,s=n?"xData":"yData",o=this.min,a=this.max-o,A=0,l=r,h=r/a;this.series.forEach(function(r){if(r.bubblePadding&&(r.visible||!i.options.chart.ignoreHiddenSeries)){t=e.allowZoomOutside=!0;var c=r[s];if(n&&((r.onPoint||r).getRadii(0,0,r),r.onPoint&&(r.radii=r.onPoint.radii)),0<a)for(var u=c.length;u--;)if(g(c[u])&&e.dataMin<=c[u]&&c[u]<=e.max){var p=r.radii&&r.radii[u]||0;A=Math.min((c[u]-o)*h-p,A),l=Math.max((c[u]-o)*h+p,l)}}}),t&&0<a&&!this.logarithmic&&(l-=r,h*=(r+Math.max(0,A)-Math.min(l,r))/r,[["min","userMin",A],["max","userMax",l]].forEach(function(t){void 0===y(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/h)}))}var a=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),A=r.parse;r=i.noop;var l=n.series,h=n.seriesTypes;i=h.column.prototype;var c=h.scatter;h=s.addEvent;var u=s.arrayMax,p=s.arrayMin,d=s.clamp,f=s.extend,g=s.isNumber,m=s.merge,y=s.pick,v=[];return s=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.maxPxSize=void 0,t.minPxSize=void 0,t.options=void 0,t.points=void 0,t.radii=void 0,t.yData=void 0,t.zData=void 0,t}return a(r,e),r.compose=function(e,r,i,n){t.compose(r,i,n),-1===v.indexOf(e)&&(v.push(e),e.prototype.beforePadding=o)},r.prototype.animate=function(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){var e=t.graphic;e&&e.width&&(this.hasRendered||e.attr({x:t.plotX,y:t.plotY,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)},r.prototype.getRadii=function(){var t=this,e=this.zData,r=this.yData,i=[],n=this.chart.bubbleZExtremes,s=this.getPxExtremes(),o=s.minPxSize,a=s.maxPxSize;if(!n){var A,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;this.chart.series.forEach(function(e){e.bubblePadding&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&(e=(e.onPoint||e).getZExtremes())&&(l=Math.min(l||e.zMin,e.zMin),h=Math.max(h||e.zMax,e.zMax),A=!0)}),A?(n={zMin:l,zMax:h},this.chart.bubbleZExtremes=n):n={zMin:0,zMax:0}}var c=0;for(s=e.length;c<s;c++){var u=e[c];i.push(this.getRadius(n.zMin,n.zMax,o,a,u,r&&r[c]))}this.radii=i},r.prototype.getRadius=function(t,e,r,i,n,s){var o=this.options,a="width"!==o.sizeBy,A=o.zThreshold,l=e-t,h=.5;if(null===s||null===n)return null;if(g(n)){if(o.sizeByAbsoluteValue&&(n=Math.abs(n-A),l=Math.max(e-A,Math.abs(t-A)),t=0),n<t)return r/2-1;0<l&&(h=(n-t)/l)}return a&&0<=h&&(h=Math.sqrt(h)),Math.ceil(r+h*(i-r))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(t,e){var r=this.options.marker.fillOpacity;return t=l.prototype.pointAttribs.call(this,t,e),1!==r&&(t.fill=A(t.fill).setOpacity(r).get("rgba")),t},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var t=this.data,e=this.radii,r=this.getPxExtremes().minPxSize,i=t.length;i--;){var n=t[i],s=e?e[i]:0;g(s)&&s>=r/2?(n.marker=f(n.marker,{radius:s,width:2*s,height:2*s}),n.dlBox={x:n.plotX-s,y:n.plotY-s,width:2*s,height:2*s}):(n.shapeArgs=n.plotY=n.dlBox=void 0,n.isInside=!1)}},r.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"==typeof e){var r=/%$/.test(e);e=parseInt(e,10)}return r?t*e/100:e},r=e(y(this.options.minSize,8));return{minPxSize:r,maxPxSize:e=Math.max(e(y(this.options.maxSize,"20%")),r)}},r.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(g);if(e.length){var r=y(t.zMin,d(p(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(t=y(t.zMax,u(e)),g(r)&&g(t))return{zMin:r,zMax:t}}},r.defaultOptions=m(c.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return g(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),r}(c),f(s.prototype,{alignDataLabel:i.alignDataLabel,applyZones:r,bubblePadding:!0,buildKDTree:r,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),h(s,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),h(s,"remove",function(t){delete t.target.chart.bubbleZExtremes}),n.registerSeriesType("bubble",s),s}),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),i=t.seriesTypes;t=i.column.prototype.pointClass.prototype;var n=e.extend,s=e.isNumber;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return r(e,t),e.prototype.isValid=function(){return s(this.low)},e}(i.arearange.prototype.pointClass),n(e.prototype,{setState:t.setState}),e}),e(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();e=e.noop;var s=r.seriesTypes,o=s.arearange,a=s.column,A=s.column.prototype,l=i.clamp;s=i.extend;var h=i.isNumber,c=i.merge,u=i.pick,p={pointRange:null,marker:null,states:{hover:{halo:!1}}};return i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.setOptions=function(){return c(!0,arguments[0],{stacking:void 0}),o.prototype.setOptions.apply(this,arguments)},e.prototype.translate=function(){var t,e,r,i,n=this,s=this.yAxis,o=this.xAxis,a=o.startAngleRad,c=this.chart,p=this.xAxis.isRadial,d=Math.max(c.chartWidth,c.chartHeight)+999;A.translate.apply(this),this.points.forEach(function(A){var f=A.shapeArgs||{},g=n.options.minPointLength,m=A.plotY,y=s.translate(A.high,0,1,0,1);h(y)&&h(m)&&(A.plotHigh=l(y,-d,d),A.plotLow=l(m,-d,d),i=A.plotHigh,t=u(A.rectPlotY,A.plotY)-A.plotHigh,Math.abs(t)<g?(t+=e=g-t,i-=e/2):0>t&&(i-=t*=-1),p&&n.polar?(r=A.barX+a,A.shapeType="arc",A.shapeArgs=n.polar.arc(i+t,i,r,r+A.pointWidth)):(f.height=t,f.y=i,g=void 0===(g=f.x)?0:g,f=void 0===(f=f.width)?0:f,A.tooltipPos=c.inverted?[s.len+s.pos-c.plotLeft-i-t/2,o.len+o.pos-c.plotTop-g-f/2,t]:[o.left-c.plotLeft+g+f/2,s.pos-c.plotTop+i+t/2,t]))})},e.prototype.pointAttribs=function(){return A.pointAttribs.apply(this,arguments)},e.prototype.translate3dPoints=function(){return A.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return A.translate3dShapes.apply(this,arguments)},e.defaultOptions=c(a.defaultOptions,o.defaultOptions,p),e}(o),s(i.prototype,{directTouch:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:A.adjustForMissingColumns,animate:A.animate,crispCol:A.crispCol,drawGraph:e,drawPoints:A.drawPoints,getSymbol:e,drawTracker:A.drawTracker,getColumnMetrics:A.getColumnMetrics}),r.registerSeriesType("columnrange",i),i}),e(t,"Series/ColumnPyramid/ColumnPyramidSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=t.prototype,s=r.clamp,o=r.merge,a=r.pick;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.prototype.translate=function(){var t=this,e=t.chart,r=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=a(r.borderWidth,i?0:1);var o=t.yAxis,A=r.threshold,l=t.translatedThreshold=o.getThreshold(A),h=a(r.minPointLength,5),c=t.getColumnMetrics(),u=c.width,p=t.barW=Math.max(u,1+2*i),d=t.pointXOffset=c.offset;e.inverted&&(l-=.5),r.pointPadding&&(p=Math.ceil(p)),n.translate.apply(t),t.points.forEach(function(i){var n=a(i.yBottom,l),c=999+Math.abs(n),f=s(i.plotY,-c,o.len+c);c=i.plotX+d;var g,m=p/2,y=Math.min(f,n);n=Math.max(f,n)-y,i.barX=c,i.pointWidth=u,i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-f,t.xAxis.len-c-m,n]:[c+m,f+o.pos-e.plotTop,n],f=A+(i.total||i.y),"percent"===r.stacking&&(f=A+(0>i.y)?-100:100),f=o.toPixels(f,!0);var v=(g=e.plotHeight-f-(e.plotHeight-l))?m*(y-f)/g:0,b=g?m*(y+n-f)/g:0;g=c-v+m,v=c+v+m;var w=c+b+m;b=c-b+m;var B=y-h,x=y+n;0>i.y&&(B=y,x=y+n+h),e.inverted&&(b=m*(f-((w=o.width-y)-n))/(g=f-(o.width-l)),v=(g=c+m+(v=m*(f-w)/g))-2*v,w=c-b+m,b=c+b+m,B=y,x=y+n-h,0>i.y&&(x=y+n+h)),i.shapeType="path",i.shapeArgs={x:g,y:B,width:v-g,height:n,d:[["M",g,B],["L",v,B],["L",w,x],["L",b,x],["Z"]]}})},r.defaultOptions=o(t.defaultOptions,{}),r}(t),e.registerSeriesType("columnpyramid",r),r}),e(t,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),e(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i,n){var s=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),o=i.seriesTypes.arearange,a=n.addEvent,A=n.merge;n=n.extend;var l=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(n,i),n.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},n.prototype.drawDataLabels=function(){var t=this.pointValKey;o&&(o.prototype.drawDataLabels.call(this),this.data.forEach(function(e){e.y=e[t]}))},n.prototype.toYData=function(t){return[t.low,t.high]},n.defaultOptions=A(t.defaultOptions,r),n}(t);return a(l,"afterTranslate",function(){this.points.forEach(function(t){t.plotLow=t.plotY})},{order:0}),n(l.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),i.registerSeriesType("errorbar",l),l}),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(t){var e=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();return function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.shapeArgs=void 0,e}return e(r,t),r.prototype.setState=function(t){this.state=t},r}(t.series.prototype.pointClass)}),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();e=e.noop;var s=r.series,o=r.seriesTypes.column,a=i.clamp,A=i.isNumber,l=i.extend,h=i.merge,c=i.pick,u=i.pInt;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.yAxis=void 0,e}return n(e,t),e.prototype.translate=function(){var t=this.yAxis,e=this.options,r=t.center;this.generatePoints(),this.points.forEach(function(i){var n=h(e.dial,i.dial),s=u(n.radius)*r[2]/200,o=u(n.baseLength)*s/100,l=u(n.rearLength)*s/100,c=n.baseWidth,p=n.topWidth,d=e.overshoot,f=t.startAngleRad+t.translate(i.y,void 0,void 0,void 0,!0);(A(d)||!1===e.wrap)&&(d=A(d)?d/180*Math.PI:0,f=a(f,t.startAngleRad-d,t.endAngleRad+d)),f=180*f/Math.PI,i.shapeType="path",i.shapeArgs={d:n.path||[["M",-l,-c/2],["L",o,-c/2],["L",s,-p/2],["L",s,p/2],["L",o,c/2],["L",-l,c/2],["Z"]],translateX:r[0],translateY:r[1],rotation:f},i.plotX=r[0],i.plotY=r[1]})},e.prototype.drawPoints=function(){var t=this,e=t.chart,r=t.yAxis.center,i=t.pivot,n=t.options,s=n.pivot,o=e.renderer;t.points.forEach(function(r){var i=r.graphic,s=r.shapeArgs,a=s.d,A=h(n.dial,r.dial);i?(i.animate(s),s.d=a):r.graphic=o[r.shapeType](s).attr({rotation:s.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||r.graphic[i?"animate":"attr"]({stroke:A.borderColor,"stroke-width":A.borderWidth,fill:A.backgroundColor})}),i?i.animate({translateX:r[0],translateY:r[1]}):s&&(t.pivot=o.circle(0,0,s.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(r[0],r[1]).add(t.group),e.styledMode||t.pivot.attr({fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.borderWidth}))},e.prototype.animate=function(t){var e=this;t||e.points.forEach(function(t){var r=t.graphic;r&&(r.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),r.animate({rotation:t.shapeArgs.rotation},e.options.animation))})},e.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),s.prototype.render.call(this),this.group.clip(this.chart.clipRect)},e.prototype.setData=function(t,e){s.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),c(e,!0)&&this.chart.redraw()},e.prototype.hasData=function(){return!!this.points.length},e.defaultOptions=h(s.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),e}(s),l(i.prototype,{angular:!0,directTouch:!0,drawGraph:e,drawTracker:o.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",i),i}),e(t,"Series/DragNodesComposition.js",[t["Core/Utilities.js"]],function(t){function e(){var t,e,i,n=this;n.container&&(t=r(n.container,"mousedown",function(t){var s=n.hoverPoint;s&&s.series&&s.series.hasDraggableNodes&&s.series.options.draggable&&(s.series.onMouseDown(s,t),e=r(n.container,"mousemove",function(t){return s&&s.series&&s.series.onMouseMove(s,t)}),i=r(n.container.ownerDocument,"mouseup",function(t){return e(),i(),s&&s.series&&s.series.onMouseUp(s,t)}))})),r(n,"destroy",function(){t()})}var r=t.addEvent,i=[];return{compose:function(t){-1===i.indexOf(t)&&(i.push(t),r(t,"load",e))},onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){var r=this.chart,i=r.pointer.normalize(e);e=t.fixedPosition.chartX-i.chartX,i=t.fixedPosition.chartY-i.chartY;var n=r.graphLayoutsLookup,s=void 0,o=void 0;(5<Math.abs(e)||5<Math.abs(i))&&(s=t.fixedPosition.plotX-e,o=t.fixedPosition.plotY-i,r.isInsidePlot(s,o)&&(t.plotX=s,t.plotY=o,t.hasDragged=!0,this.redrawHalo(t),n.forEach(function(t){t.restartSimulation()})))}},onMouseUp:function(t,e){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}}}),e(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Utilities.js"]],function(t,e){function r(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation()}),this.redraw())}function i(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation(!1)}),this.redraw())}function n(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}function s(){var t=!1,e=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),r=!1,t=!0)};if(this.graphLayoutsLookup){for(o(!1,this),this.graphLayoutsLookup.forEach(function(t){return t.start()});!r;){var r=!0;this.graphLayoutsLookup.forEach(e)}t&&this.series.forEach(function(t){t&&t.layout&&t.render()})}}var o=t.setAnimation,a=e.addEvent,A=[];return{compose:function(t){A.indexOf(t)&&(A.push(t),a(t,"afterPrint",r),a(t,"beforePrint",i),a(t,"predraw",n),a(t,"render",s))},integrations:{},layouts:{}}}),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();return function(r){function n(){var t=null!==r&&r.apply(this,arguments)||this;return t.degree=NaN,t.mass=NaN,t.radius=NaN,t.options=void 0,t.series=void 0,t.value=null,t}return i(n,r),n.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e.prototype.destroy.apply(this,arguments)},n.prototype.firePointEvent=function(){var t=this.series.options;if(this.isParentNode&&t.parentNode){var r=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=r}else e.prototype.firePointEvent.apply(this,arguments)},n.prototype.select=function(){var r=this.series.chart;this.isParentNode?(r.getSelectedPoints=r.getSelectedParentNodes,e.prototype.select.apply(this,arguments),r.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},n}(r.seriesTypes.bubble.prototype.pointClass)}),e(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(t){var e=t.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,r=this.point.value;return e(r)?t(r,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),e(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(t,e,r){var i=t.getMass(),n=-r.x*e*this.diffTemperature;e=-r.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=n*i.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=n*i.toNode/t.toNode.degree,t.toNode.plotY+=e*i.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,r=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,r=(r-(this.box.top+this.box.height)/2)*t,this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=r/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){var r=-t.options.friction,i=t.options.maxSpeed,n=(e.plotX+e.dispX-e.prevX)*r;r*=e.plotY+e.dispY-e.prevY;var s=Math.abs,o=s(n)/(n||1);s=s(r)/(r||1),n=o*Math.min(i,Math.abs(n)),r=s*Math.min(i,Math.abs(r)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=n,e.plotY+=r,e.temperature=t.vectorLength({x:n,y:r})},repulsive:function(t,e,r){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=r.x*e,t.plotY+=r.y*e)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}}}),e(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(t,e){return{barycenter:function(){for(var t,e,r=this.options.gravitationalConstant,i=this.box,n=this.nodes,s=0;s<n.length;s++){var o=n[s];this.options.splitSeries&&!o.isParentNode?(t=o.series.parentNode.plotX,e=o.series.parentNode.plotY):(t=i.width/2,e=i.height/2),o.fixedPosition||(o.plotX-=(o.plotX-t)*r/(o.mass*Math.sqrt(n.length)),o.plotY-=(o.plotY-e)*r/(o.mass*Math.sqrt(n.length)))}},getK:t.noop,integrate:e.integrate,repulsive:function(t,e,r,i){var n=e*this.diffTemperature/t.mass/t.degree;e=r.x*n,r=r.y*n,t.fixedPosition||(t.plotX+=e,t.plotY+=r),i.fixedPosition||(i.plotX-=e,i.plotY-=r)},repulsiveForceFunction:function(t,e,r,i){return Math.min(t,(r.marker.radius+i.marker.radius)/2)}}}),e(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(t,e,r,i){var n=t.getMass(),s=r.x/i*e;e*=r.y/i,t.fromNode.fixedPosition||(t.fromNode.dispX-=s*n.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*n.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=s*n.toNode/t.toNode.degree,t.toNode.dispY+=e*n.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(i){if(!i.fixedPosition){var n=i.getDegree();n*=1+n/2,i.dispX+=(e-i.plotX)*t*n/i.degree,i.dispY+=(r-i.plotY)*t*n/i.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var r=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==r&&(e.plotX+=e.dispX/r*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/r*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,r,i){t.dispX+=r.x/i*e/t.degree,t.dispY+=r.y/i*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}}}),e(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function t(t){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}return t.prototype.divideBox=function(){var e=this.box.width/2,r=this.box.height/2;this.nodes[0]=new t({left:this.box.left,top:this.box.top,width:e,height:r}),this.nodes[1]=new t({left:this.box.left+e,top:this.box.top,width:e,height:r}),this.nodes[2]=new t({left:this.box.left+e,top:this.box.top+r,width:e,height:r}),this.nodes[3]=new t({left:this.box.left,top:this.box.top+r,width:e,height:r})},t.prototype.getBoxPosition=function(t){var e=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?e?0:3:e?1:2},t.prototype.insert=function(e,r){this.isInternal?this.nodes[this.getBoxPosition(e)].insert(e,r-1):(this.isEmpty=!1,this.body?r?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,r-1),this.body=!0),this.nodes[this.getBoxPosition(e)].insert(e,r-1)):((r=new t({top:e.plotX||NaN,left:e.plotY||NaN,width:.1,height:.1})).body=e,r.isInternal=!1,this.nodes.push(r)):(this.isInternal=!1,this.body=e))},t.prototype.updateMassAndCenter=function(){var t=0,e=0,r=0;if(this.isInternal){for(var i=0,n=this.nodes;i<n.length;i++){var s=n[i];s.isEmpty||(t+=s.mass,e+=s.plotX*s.mass,r+=s.plotY*s.mass)}e/=t,r/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,r=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=r},t}()}),e(t,"Series/Networkgraph/QuadTree.js",[t["Series/Networkgraph/QuadTreeNode.js"]],function(t){return function(){function e(e,r,i,n){this.box={left:e,top:r,width:i,height:n},this.maxDepth=25,this.root=new t(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return e.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})},e.prototype.insertNodes=function(t){for(var e=0;e<t.length;e++)this.root.insert(t[e],this.maxDepth)},e.prototype.visitNodeRecursive=function(t,e,r){var i;if(t||(t=this.root),t===this.root&&e&&(i=e(t)),!1!==i){for(var n=0,s=t.nodes;n<s.length;n++){var o=s[n];if(o.isInternal){if(e&&(i=e(o)),!1===i)continue;this.visitNodeRecursive(o,e,r)}else o.body&&e&&e(o.body);r&&r(o)}t===this.root&&r&&r(t)}},e}()}),e(t,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[t["Series/Networkgraph/EulerIntegration.js"],t["Core/Globals.js"],t["Series/GraphLayoutComposition.js"],t["Series/Networkgraph/QuadTree.js"],t["Core/Utilities.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(t,e,r,i,n,s){var o=e.win,a=n.clamp,A=n.defined,l=n.isFunction,h=n.pick;return function(){function e(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.repulsiveForce=this.quadTree=this.options=void 0,this.series=[],this.simulation=!1}return e.compose=function(i){r.compose(i),r.integrations.euler=t,r.integrations.verlet=s,r.layouts["reingold-fruchterman"]=e},e.prototype.init=function(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=r.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=h(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=h(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation},e.prototype.updateSimulation=function(t){this.enableSimulation=h(t,this.options.enableSimulation)},e.prototype.start=function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()},e.prototype.step=function(){var t=this,e=this.series;this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var r=0,i=this.forces||[];r<i.length;r++)this[i[r]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(r=0;r<e.length;r++)(i=e[r]).chart&&i.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&o.cancelAnimationFrame(this.simulation),this.simulation=o.requestAnimationFrame(function(){return t.step()})):this.simulation=!1}},e.prototype.stop=function(){this.simulation&&o.cancelAnimationFrame(this.simulation)},e.prototype.setArea=function(t,e,r,i){this.box={left:t,top:e,width:r,height:i}},e.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},e.prototype.addElementsToCollection=function(t,e){for(var r=0;r<t.length;r++){var i=t[r];-1===e.indexOf(i)&&e.push(i)}},e.prototype.removeElementFromCollection=function(t,e){-1!==(t=e.indexOf(t))&&e.splice(t,1)},e.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},e.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},e.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},e.prototype.setMaxIterations=function(t){this.maxIterations=h(t,this.options.maxIterations)},e.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},e.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},e.prototype.setInitialRendering=function(t){this.initialRendering=t},e.prototype.createQuadTree=function(){this.quadTree=new i(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},e.prototype.initPositions=function(){var t=this.options.initialPositions;if(l(t)){t.call(this),t=0;for(var e=this.nodes;t<e.length;t++){var r=e[t];A(r.prevX)||(r.prevX=r.plotX),A(r.prevY)||(r.prevY=r.plotY),r.dispX=0,r.dispY=0}}else"circle"===t?this.setCircularPositions():this.setRandomPositions()},e.prototype.setCircularPositions=function(){for(var t=this.box,e=this.nodes,r=2*Math.PI/(e.length+1),i=e.filter(function(t){return 0===t.linksTo.length}),n={},s=this.options.initialPositionRadius,o=function(t){var e=0;for(t=t.linksFrom||[];e<t.length;e++){var r=t[e];n[r.toNode.id]||(n[r.toNode.id]=!0,a.push(r.toNode),o(r.toNode))}},a=[],A=0;A<i.length;A++){var l=i[A];a.push(l),o(l)}if(a.length)for(i=0;i<e.length;i++)A=e[i],-1===a.indexOf(A)&&a.push(A);else a=e;for(i=0,A=a.length;i<A;++i)(e=a[i]).plotX=e.prevX=h(e.plotX,t.width/2+s*Math.cos(i*r)),e.plotY=e.prevY=h(e.plotY,t.height/2+s*Math.sin(i*r)),e.dispX=0,e.dispY=0},e.prototype.setRandomPositions=function(){for(var t,e=this.box,r=this.nodes,i=r.length+1,n=function(t){return(t=t*t/Math.PI)-Math.floor(t)},s=0,o=r.length;s<o;++s)(t=r[s]).plotX=t.prevX=h(t.plotX,e.width*n(s)),t.plotY=t.prevY=h(t.plotY,e.height*n(i+s)),t.dispX=0,t.dispY=0},e.prototype.force=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.integration[t].apply(this,e)},e.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},e.prototype.getBarycenter=function(){for(var t=0,e=0,r=0,i=0,n=this.nodes;i<n.length;i++){var s=n[i];e+=s.plotX*s.mass,r+=s.plotY*s.mass,t+=s.mass}return this.barycenter={x:e,y:r,xFactor:e/t,yFactor:r/t}},e.prototype.barnesHutApproximation=function(t,e){var r=this.getDistXY(t,e),i=this.vectorLength(r);if(t!==e&&0!==i)if(e.isInternal)if(e.boxSize/i<this.options.theta&&0!==i){var n=this.repulsiveForce(i,this.k);this.force("repulsive",t,n*e.mass,r,i);var s=!1}else s=!0;else n=this.repulsiveForce(i,this.k),this.force("repulsive",t,n*e.mass,r,i);return s},e.prototype.repulsiveForces=function(){var t=this;if("barnes-hut"===this.approximation)for(var e=function(e){r.quadTree.visitNodeRecursive(null,function(r){return t.barnesHutApproximation(e,r)})},r=this,i=0,n=this.nodes;i<n.length;i++){var s=n[i];e(s)}else{n=i=e=void 0;for(var o=0,a=this.nodes;o<a.length;o++){s=a[o];for(var A=0,l=this.nodes;A<l.length;A++){var h=l[A];s===h||s.fixedPosition||(n=this.getDistXY(s,h),0!==(i=this.vectorLength(n))&&(e=this.repulsiveForce(i,this.k),this.force("repulsive",s,e*h.mass,n,i)))}}}},e.prototype.attractiveForces=function(){for(var t,e,r,i=0,n=this.links;i<n.length;i++){var s=n[i];s.fromNode&&s.toNode&&(t=this.getDistXY(s.fromNode,s.toNode),0!==(e=this.vectorLength(t))&&(r=this.attractiveForce(e,this.k),this.force("attractive",s,r,t,e)))}},e.prototype.applyLimits=function(){for(var t=0,e=this.nodes;t<e.length;t++){var r=e[t];if(r.fixedPosition)break;this.integration.integrate(this,r),this.applyLimitBox(r,this.box),r.dispX=0,r.dispY=0}},e.prototype.applyLimitBox=function(t,e){var r=t.radius;t.plotX=a(t.plotX,e.left+r,e.width-r),t.plotY=a(t.plotY,e.top+r,e.height-r)},e.prototype.coolDown=function(t,e,r){return t-e*r},e.prototype.isStable=function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},e.prototype.getSystemTemperature=function(){for(var t=0,e=0,r=this.nodes;e<r.length;e++)t+=r[e].temperature;return t},e.prototype.vectorLength=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.prototype.getDistR=function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},e.prototype.getDistXY=function(t,e){var r=t.plotX-e.plotX;return{x:r,y:t=t.plotY-e.plotY,absX:Math.abs(r),absY:Math.abs(t)}},e}()}),e(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(t,e,r,i){function n(){var t=[];return this.series.forEach(function(e){e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)}),t}function s(){this.allDataPoints&&delete this.allDataPoints}var o=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=i.addEvent,A=i.pick,l=[];return i=function(i){function h(){var t=null!==i&&i.apply(this,arguments)||this;return t.index=NaN,t.nodes=[],t.options=void 0,t.series=[],t}return o(h,i),h.compose=function(i){r.compose(i),t.integrations.packedbubble=e,t.layouts.packedbubble=h,-1===l.indexOf(i)&&(l.push(i),a(i,"beforeRedraw",s),i.prototype.getSelectedParentNodes=n)},h.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(t){t&&t.calculateParentRadius()})},h.prototype.isStable=function(){var t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>t||0>=this.temperature},h.prototype.setCircularPositions=function(){for(var t,e,r=this.box,i=this.nodes,n=2*Math.PI/(i.length+1),s=this.options.initialPositionRadius,o=0,a=0;a<i.length;a++){var l=i[a];this.options.splitSeries&&!l.isParentNode?(t=l.series.parentNode.plotX,e=l.series.parentNode.plotY):(t=r.width/2,e=r.height/2),l.plotX=l.prevX=A(l.plotX,t+s*Math.cos(l.index||o*n)),l.plotY=l.prevY=A(l.plotY,e+s*Math.sin(l.index||o*n)),l.dispX=0,l.dispY=0,o++}},h.prototype.repulsiveForces=function(){var t,e,r,i=this,n=i.options.bubblePadding;i.nodes.forEach(function(s){s.degree=s.mass,s.neighbours=0,i.nodes.forEach(function(o){t=0,s===o||s.fixedPosition||!i.options.seriesInteraction&&s.series!==o.series||(r=i.getDistXY(s,o),0>(e=i.vectorLength(r)-(s.marker.radius+o.marker.radius+n))&&(s.degree+=.01,s.neighbours++,t=i.repulsiveForce(-e/Math.sqrt(s.neighbours),i.k,s,o)),i.force("repulsive",s,t*o.mass,r,o,e))})})},h.prototype.applyLimitBox=function(t,e){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var r=this.getDistXY(t,t.series.parentNode),n=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(r);0>n&&n>-2*t.marker.radius&&(t.plotX-=.01*r.x,t.plotY-=.01*r.y)}i.prototype.applyLimitBox.call(this,t,e)},h}(r),t.layouts.packedbubble=i}),e(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a,A){var l=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=t.parse;t=i.noop;var c=a.series.prototype,u=a.seriesTypes.bubble,p=A.addEvent,d=A.clamp,f=A.defined,g=A.extend,m=A.fireEvent,y=A.isArray,v=A.isNumber,b=A.merge,w=A.pick;return A=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.layout=void 0,e.options=void 0,e.parentNodeMass=0,e.points=void 0,e.xData=void 0,e}return l(i,t),i.compose=function(t,r,i,n){u.compose(t,r,i,n),e.compose(r),o.compose(r)},i.prototype.accumulateAllPoints=function(){for(var t,e=this.chart,r=[],i=0,n=e.series;i<n.length;i++){var s=n[i];if(s.is("packedbubble")&&s.visible||!e.options.chart.ignoreHiddenSeries){t=s.yData||[];for(var o=0;o<t.length;o++)r.push([null,null,t[o],s.index,o,{id:o,marker:{radius:0}}])}}return r},i.prototype.addLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.options.chart,n=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup;n||(this.chart.graphLayoutsStorage=n={},this.chart.graphLayoutsLookup=s=[]);var o=n[e];o||(t.enableSimulation=f(i.forExport)?!i.forExport:t.enableSimulation,n[e]=o=new r.layouts[e],o.init(t),s.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(t){t.mass=2,t.degree=1,t.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},i.prototype.addSeriesLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup;t=b(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var s=i[e+"-series"];s||(i[e+"-series"]=s=new r.layouts[e],s.init(t),n.splice(s.index,0,s)),this.parentNodeLayout=s,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var t=this.seriesBox();this.parentNodeRadius=d(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},i.prototype.calculateZExtremes=function(){var t=this.options.zMin,e=this.options.zMax,r=1/0,i=-1/0;return t&&e?[t,e]:(this.chart.series.forEach(function(t){t.yData.forEach(function(t){f(t)&&(t>i&&(i=t),t<r&&(r=t))})}),[t=w(t,r),e=w(e,i)])},i.prototype.checkOverlap=function(t,e){var r=t[0]-e[0],i=t[1]-e[1];return-.001>Math.sqrt(r*r+i*i)-Math.abs(t[2]+e[2])},i.prototype.createParentNodes=function(){var t,e=this,r=this.pointClass,i=this.chart,n=this.parentNodeLayout,s=this.layout.options,o=this.parentNode,a={radius:this.parentNodeRadius,lineColor:this.color,fillColor:h(this.color).brighten(.4).get()};s.parentNodeOptions&&(a=b(s.parentNodeOptions.marker||{},a)),this.parentNodeMass=0,this.points.forEach(function(t){e.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)}),this.calculateParentRadius(),n.nodes.forEach(function(r){r.seriesIndex===e.index&&(t=!0)}),n.setArea(0,0,i.plotWidth,i.plotHeight),t||(o||(o=(new r).init(this,{mass:this.parentNodeRadius/2,marker:a,dataLabels:{inside:!1},states:{normal:{marker:a},hover:{marker:a}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(o.plotX=this.parentNode.plotX,o.plotY=this.parentNode.plotY),this.parentNode=o,n.addElementsToCollection([this],n.series),n.addElementsToCollection([o],n.nodes))},i.prototype.deferLayout=function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},i.prototype.destroy=function(){var t=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(t,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),c.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){c.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",c.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var t=this.chart,e=this.layout.options.parentNodeOptions.marker;e={fill:e.fillColor||h(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":w(e.lineWidth,this.options.lineWidth)},this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius();var r=b({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},e);this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(e.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(r)}},i.prototype.drawTracker=function(){var e=this.parentNode;if(t.prototype.drawTracker.call(this),e){var r=y(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[];e.graphic&&(e.graphic.element.point=e),r.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}},i.prototype.getPointRadius=function(){var t,e,r,i,n=this,s=this.chart,o=this.options,a=o.useSimulation,A=Math.min(s.plotWidth,s.plotHeight),l={},h=[],c=s.allDataPoints||[],u=c.length;["minSize","maxSize"].forEach(function(t){var e=parseInt(o[t],10),r=/%$/.test(o[t]);l[t]=r?A*e/100:e*Math.sqrt(u)}),s.minRadius=t=l.minSize/Math.sqrt(u),s.maxRadius=e=l.maxSize/Math.sqrt(u);var p=a?this.calculateZExtremes():[t,e];c.forEach(function(s,o){r=a?d(s[2],p[0],p[1]):s[2],0===(i=n.getRadius(p[0],p[1],t,e,r))&&(i=null),c[o][2]=i,h.push(i)}),this.radii=h},i.prototype.init=function(){return c.init.apply(this,arguments),this.eventsToUnbind.push(p(this,"updatedData",function(){var t=this;this.chart.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)},this)})),this},i.prototype.onMouseUp=function(t){var r=t;if(r.fixedPosition&&!r.removed){var i,n=this.layout,s=this.parentNodeLayout;s&&n.options.dragBetweenSeries&&s.nodes.forEach(function(t){r&&r.marker&&t!==r.series.parentNode&&(i=n.getDistXY(r,t),0>n.vectorLength(i)-t.marker.radius-r.marker.radius&&(t.series.addPoint(b(r.options,{plotX:r.plotX,plotY:r.plotY}),!1),n.removeElementFromCollection(r,n.nodes),r.remove()))}),e.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(t){var e,r=this.checkOverlap,i=this.positionBubble,n=[],s=1,o=0,a=0,A=[];if(t=t.sort(function(t,e){return e[2]-t[2]}),t.length){if(n.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1<t.length)for(n.push([[0,0-t[1][2]-t[0][2],t[1][2],t[1][3],t[1][4]]]),e=2;e<t.length;e++)t[e][2]=t[e][2]||1,r(A=i(n[s][o],n[s-1][a],t[e]),n[s][0])?(n.push([]),a=0,n[s+1].push(i(n[s][o],n[s][0],t[e])),s++,o=0):1<s&&n[s-1][a+1]&&r(A,n[s-1][a+1])?(a++,n[s].push(i(n[s][o],n[s-1][a],t[e])),o++):(o++,n[s].push(A));this.chart.stages=n,this.chart.rawPositions=[].concat.apply([],n),this.resizeRadius(),A=this.chart.rawPositions}return A},i.prototype.pointAttribs=function(t,e){var r=this.options,i=r.marker;return t&&t.isParentNode&&r.layoutAlgorithm&&r.layoutAlgorithm.parentNodeOptions&&(i=r.layoutAlgorithm.parentNodeOptions.marker),r=i.fillOpacity,t=c.pointAttribs.call(this,t,e),1!==r&&(t["fill-opacity"]=r),t},i.prototype.positionBubble=function(t,e,r){var i=Math.sqrt,n=Math.asin,s=Math.acos,o=Math.pow,a=Math.abs;return i=i(o(t[0]-e[0],2)+o(t[1]-e[1],2)),s=s((o(i,2)+o(r[2]+e[2],2)-o(r[2]+t[2],2))/(2*(r[2]+e[2])*i)),n=n(a(t[0]-e[0])/i),t=(0>t[1]-e[1]?0:Math.PI)+s+n*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+r[2])*Math.sin(t),e[1]-(e[2]+r[2])*Math.cos(t),r[2],r[3],r[4]]},i.prototype.render=function(){var t=[];c.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){y(e.dataLabels)&&e.dataLabels.forEach(function(e){t.push(e)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))},i.prototype.resizeRadius=function(){for(var t,e,r=this.chart,i=r.rawPositions,n=Math.min,s=Math.max,o=r.plotLeft,a=r.plotTop,A=r.plotHeight,l=r.plotWidth,h=t=Number.POSITIVE_INFINITY,c=e=Number.NEGATIVE_INFINITY,u=0;u<i.length;u++){var p=i[u],d=p[2];h=n(h,p[0]-d),c=s(c,p[0]+d),t=n(t,p[1]-d),e=s(e,p[1]+d)}if(p=[c-h,e-t],n=n.apply([],[(l-o)/p[0],(A-a)/p[1]]),1e-10<Math.abs(n-1)){for(r=0;r<i.length;r++)(p=i[r])[2]*=n;this.placeBubbles(i)}else r.diffY=A/2+a-t-(e-t)/2,r.diffX=l/2+o-h-(c-h)/2},i.prototype.seriesBox=function(){var t,e=this.chart,r=Math.max,i=Math.min,n=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return this.data.forEach(function(e){f(e.plotX)&&f(e.plotY)&&e.marker.radius&&(t=e.marker.radius,n[0]=i(n[0],e.plotX-t),n[1]=r(n[1],e.plotX+t),n[2]=i(n[2],e.plotY-t),n[3]=r(n[3],e.plotY+t))}),v(n.width/n.height)?n:null},i.prototype.setVisible=function(){var t=this;c.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach(function(e){t.layout.removeElementFromCollection(e,t.layout.nodes)}))},i.prototype.translate=function(){var t=this.chart,e=this.data,r=this.index,i=this.options.useSimulation;if(this.processedXData=this.xData,this.generatePoints(),f(t.allDataPoints)||(t.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),i)var n=t.allDataPoints;else n=this.placeBubbles(t.allDataPoints),this.options.draggable=!1;for(var s=0,o=n;s<o.length;s++){var a=o[s];if(a[3]===r){n=e[a[4]];var A=w(a[2],void 0);i||(n.plotX=a[0]-t.plotLeft+t.diffX,n.plotY=a[1]-t.plotTop+t.diffY),v(A)&&(n.marker=g(n.marker,{radius:A,width:2*A,height:2*A}),n.radius=A)}}i&&this.deferLayout(),m(this,"afterTranslate")},i.defaultOptions=b(u.defaultOptions,s),i}(u),g(A.prototype,{pointClass:n,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:c.alignDataLabel,indexateNodes:t,onMouseDown:e.onMouseDown,onMouseMove:e.onMouseMove,redrawHalo:e.redrawHalo,searchPoint:t}),a.registerSeriesType("packedbubble",A),A}),e(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();t=t.noop;var s=r.series,o=r.seriesTypes,a=o.area,A=o.line,l=o.scatter;o=i.extend;var h=i.merge;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.getGraphPath=function(){for(var t=A.prototype.getGraphPath.call(this),e=t.length+1;e--;)(e===t.length||"M"===t[e][0])&&0<e&&t.splice(e,0,["Z"]);return this.areaPath=t},e.prototype.drawGraph=function(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)},e.defaultOptions=h(l.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),e}(l),o(i.prototype,{type:"polygon",drawLegendSymbol:e.drawRectangle,drawTracker:s.prototype.drawTracker,setStackedPoints:t}),r.registerSeriesType("polygon",i),i}),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(t,e){var r,i=e.addEvent,n=e.objectEach;return function(e){function r(){var t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function s(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function o(){for(var t=this.axes,e=this.series,r=e.length;r--;)e[r].options.stacking&&(t.forEach(function(t){t.isXAxis||(t.waterfall.stacks.changed=!0)}),r=0)}function a(){this.waterfall||(this.waterfall=new A(this))}var A=function(){function e(t){this.axis=t,this.stacks={changed:!1}}return e.prototype.renderStackTotals=function(){var e=this.axis,r=e.waterfall.stacks,i=e.stacking&&e.stacking.stackTotalGroup,s=new t(e,e.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=s,i&&n(r,function(e){n(e,function(e,r){s.total=e.stackTotal,s.x=+r,e.label&&(s.label=e.label),t.prototype.render.call(s,i),e.label=s.label,delete s.label})}),s.total=null},e}();e.Composition=A,e.compose=function(t,e){i(t,"init",a),i(t,"afterBuildStacks",r),i(t,"afterRender",s),i(e,"beforeRedraw",o)}}(r||(r={})),r}),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=r.isNumber;return function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return i(r,t),r.prototype.getClassName=function(){var t=e.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},r.prototype.isValid=function(){return n(this.y)||this.isSum||!!this.isIntermediateSum},r}(t.prototype.pointClass)}),e(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"]],function(t,e,r,i,n,s){var o=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=r.seriesTypes,A=a.column,l=a.line,h=i.arrayMax,c=i.arrayMin,u=i.correctFloat;a=i.extend;var p=i.isNumber,d=i.merge,f=i.objectEach,g=i.pick;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.options=void 0,e.points=void 0,e.stackedYNeg=void 0,e.stackedYPos=void 0,e.stackKey=void 0,e.xData=void 0,e.yAxis=void 0,e.yData=void 0,e}return o(e,t),e.prototype.generatePoints=function(){A.prototype.generatePoints.apply(this);for(var t=0,e=this.points.length;t<e;t++){var r=this.points[t],i=this.processedYData[t];p(i)&&(r.isIntermediateSum||r.isSum)&&(r.y=u(i))}},e.prototype.translate=function(){var t=this.options,e=this.yAxis,r=g(t.minPointLength,5),i=r/2,n=t.threshold||0;t=t.stacking;var s=e.waterfall.stacks[this.stackKey],o=n,a=n;A.prototype.translate.apply(this);for(var l=this.points,h=0;h<l.length;h++){var c=l[h],u=this.processedYData[h],d=c.shapeArgs;if(d&&p(u)){var f=[0,u],m=c.y;if(t){if(s){if(f=s[h],"overlap"===t){var y=f.stackState[f.stateIndex--];y=0<=m?y:y-m,Object.hasOwnProperty.call(f,"absolutePos")&&delete f.absolutePos,Object.hasOwnProperty.call(f,"absoluteNeg")&&delete f.absoluteNeg}else 0<=m?(y=f.threshold+f.posTotal,f.posTotal-=m):(y=f.threshold+f.negTotal,f.negTotal-=m,y-=m),!f.posTotal&&p(f.absolutePos)&&Object.hasOwnProperty.call(f,"absolutePos")&&(f.posTotal=f.absolutePos,delete f.absolutePos),!f.negTotal&&p(f.absoluteNeg)&&Object.hasOwnProperty.call(f,"absoluteNeg")&&(f.negTotal=f.absoluteNeg,delete f.absoluteNeg);c.isSum||(f.connectorThreshold=f.threshold+f.stackTotal),e.reversed?(u=0<=m?y-m:y+m,m=y):(u=y,m=y-m),c.below=u<=n,d.y=e.translate(u,!1,!0,!1,!0),d.height=Math.abs(d.y-e.translate(m,!1,!0,!1,!0)),(m=e.waterfall.dummyStackItem)&&(m.x=h,m.label=s[h].label,m.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[h],this.stackedYPos[h],void 0,this.xAxis))}}else y=Math.max(a,a+m)+f[0],d.y=e.translate(y,!1,!0,!1,!0),c.isSum?(d.y=e.translate(f[1],!1,!0,!1,!0),d.height=Math.min(e.translate(f[0],!1,!0,!1,!0),e.len)-d.y,c.below=f[1]<=n):c.isIntermediateSum?(0<=m?(u=f[1]+o,m=o):(u=o,m=f[1]+o),e.reversed&&(u^=m,u^=m^=u),d.y=e.translate(u,!1,!0,!1,!0),d.height=Math.abs(d.y-Math.min(e.translate(m,!1,!0,!1,!0),e.len)),o+=f[1],c.below=u<=n):(d.height=0<u?e.translate(a,!1,!0,!1,!0)-d.y:e.translate(a,!1,!0,!1,!0)-e.translate(a-u,!1,!0,!1,!0),a+=u,c.below=a<n),0>d.height&&(d.y+=d.height,d.height*=-1);c.plotY=d.y=Math.round(d.y||0)-this.borderWidth%2/2,d.height=Math.max(Math.round(d.height||0),.001),c.yBottom=d.y+d.height,d.height<=r&&!c.isNull?(d.height=r,d.y-=i,c.plotY=d.y,c.minPointLengthOffset=0>c.y?-i:i):(c.isNull&&(d.width=0),c.minPointLengthOffset=0),m=c.plotY+(c.negative?d.height:0),c.below&&(c.plotY+=d.height),c.tooltipPos&&(this.chart.inverted?c.tooltipPos[0]=e.len-m:c.tooltipPos[1]=m),c.isInside=this.isPointInside(c)}}},e.prototype.processData=function(e){var r,i,n,s,o,a=this.options,A=this.yData,l=a.data,h=A.length,c=a.threshold||0;for(o=i=r=n=s=0;o<h;o++){var p=A[o],d=l&&l[o]?l[o]:{};"sum"===p||d.isSum?A[o]=u(i):"intermediateSum"===p||d.isIntermediateSum?(A[o]=u(r),r=0):(i+=p,r+=p),n=Math.min(i,n),s=Math.max(i,s)}t.prototype.processData.call(this,e),a.stacking||(this.dataMin=n+c,this.dataMax=s)},e.prototype.toYData=function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},e.prototype.updateParallelArrays=function(e,r){t.prototype.updateParallelArrays.call(this,e,r),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},e.prototype.pointAttribs=function(t,e){var r=this.options.upColor;return r&&!t.options.color&&(t.color=0<t.y?r:void 0),delete(t=A.prototype.pointAttribs.call(this,t,e)).dashstyle,t},e.prototype.getGraphPath=function(){return[["M",0,0]]},e.prototype.getCrispPath=function(){var t,e=this.data,r=this.yAxis,i=e.length,n=Math.round(this.graph.strokeWidth())%2/2,s=Math.round(this.borderWidth)%2/2,o=this.xAxis.reversed,a=this.yAxis.reversed,A=this.options.stacking,l=[];for(t=1;t<i;t++){var h=e[t].shapeArgs,c=e[t-1],u=e[t-1].shapeArgs,p=r.waterfall.stacks[this.stackKey],d=0<c.y?-u.height:0;p&&u&&h&&(p=p[t-1],A?(p=p.connectorThreshold,d=Math.round(r.translate(p,!1,!0,!1,!0)+(a?d:0))-n):d=u.y+c.minPointLengthOffset+s-n,l.push(["M",(u.x||0)+(o?0:u.width||0),d],["L",(h.x||0)+(o&&h.width||0),d])),u&&l.length&&(!A&&0>c.y&&!a||0<c.y&&a)&&((c=l[l.length-2])&&"number"==typeof c[2]&&(c[2]+=u.height||0),(c=l[l.length-1])&&"number"==typeof c[2]&&(c[2]+=u.height||0))}return l},e.prototype.drawGraph=function(){l.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},e.prototype.setStackedPoints=function(){function t(t,e,r,i){if(g){if(b)for(;r<b;r++)g.stackState[r]+=i;else g.stackState[0]=t,b=g.stackState.length;g.stackState.push(g.stackState[b-1]+e)}}var e,r,i,n=this.options,s=this.yAxis.waterfall.stacks,o=n.threshold||0,a=o,A=a,l=this.stackKey,h=this.xData,c=h.length;this.yAxis.stacking.usePercentage=!1;var u=e=r=a;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p=s.changed;if((i=s.alreadyChanged)&&0>i.indexOf(l)&&(p=!0),s[l]||(s[l]={}),i=s[l])for(var d=0;d<c;d++){var f=h[d];i[f]&&!p||(i[f]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p&&i[f]?i[f].label:void 0});var g=i[f],m=this.yData[d];0<=m?g.posTotal+=m:g.negTotal+=m;var y=n.data[d];f=g.absolutePos=g.posTotal;var v=g.absoluteNeg=g.negTotal;g.stackTotal=f+v;var b=g.stackState.length;y&&y.isIntermediateSum?(t(r,e,0,r),r=e,e=o,a^=A,a^=A^=a):y&&y.isSum?(t(o,u,b,0),a=o):(t(a,m,0,u),y&&(u+=m,e+=m)),g.stateIndex++,g.threshold=a,a+=g.stackTotal}s.changed=!1,s.alreadyChanged||(s.alreadyChanged=[]),s.alreadyChanged.push(l)}},e.prototype.getExtremes=function(){var t=this.options.stacking;if(t){var e=this.yAxis;e=e.waterfall.stacks;var r=this.stackedYNeg=[],i=this.stackedYPos=[];return f(e[this.stackKey],"overlap"===t?function(t){r.push(c(t.stackState)),i.push(h(t.stackState))}:function(t){r.push(t.negTotal+t.threshold),i.push(t.posTotal+t.threshold)}),{dataMin:c(r),dataMax:h(i)}}return{dataMin:this.dataMin,dataMax:this.dataMax}},e.defaultOptions=d(A.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),e}(A),a(i.prototype,{getZonesGraphs:l.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:s}),r.registerSeriesType("waterfall",i),n.compose(t,e),i}),e(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/AxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e,r,i){var n,s=e.defaultOptions,o=r.noop,a=i.addEvent,A=i.correctFloat,l=i.defined,h=i.extend,c=i.fireEvent,u=i.merge,p=i.pick,d=i.relativeLength,f=i.wrap;return function(e){function r(){this.autoConnect=this.isCircular&&void 0===p(this.userMax,this.options.max)&&A(this.endAngleRad-this.startAngleRad)===A(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function i(){var t=this;return function(){if(t.isRadial&&t.tickPositions&&t.options.labels&&!0!==t.options.labels.allowOverlap)return t.tickPositions.map(function(e){return t.ticks[e]&&t.ticks[e].label}).filter(function(t){return!!t})}}function n(){return o}function g(t,e,r){var i=this.pane.center,n=t.value;if(this.isCircular){if(l(n))t.point&&(s=t.point.shapeArgs||{}).start&&(n=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x);else{var s=t.chartX||0,o=t.chartY||0;n=this.translate(Math.atan2(o-r,s-e)-this.startAngleRad,!0)}s=(t=this.getPosition(n)).x,o=t.y}else l(n)||(s=t.chartX,o=t.chartY),l(s)&&l(o)&&(r=i[1]+this.chart.plotTop,n=this.translate(Math.min(Math.sqrt(Math.pow(s-e,2)+Math.pow(o-r,2)),i[2]/2)-i[3]/2,!0));return[n,s||0,o||0]}function m(t,e,r){t=this.pane.center;var i=this.chart,n=this.left||0,s=this.top||0,o=p(e,t[2]/2-this.offset);return void 0===r&&(r=this.horiz?0:this.center&&-this.center[3]/2),r&&(o+=r),this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(n+t[0],s+t[1],o,o,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[n+t[0]],e.yBounds=[s+t[1]-o]):(e=this.postTranslate(this.angleRad,o),e=[["M",this.center[0]+i.plotLeft,this.center[1]+i.plotTop],["L",e.x,e.y]]),e}function y(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function v(t,e,r){var i=this.chart,n=function(t){if("string"==typeof t){var e=parseInt(t,10);return c.test(t)&&(e=e*a/100),e}return t},s=this.center,o=this.startAngleRad,a=s[2]/2,A=Math.min(this.offset,0),l=this.left||0,h=this.top||0,c=/%$/,u=this.isCircular,d=p(n(r.outerRadius),a),f=n(r.innerRadius);if(n=p(n(r.thickness),10),"polygon"===this.options.gridLineInterpolation)A=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{if(t=Math.max(t,this.min),e=Math.min(e,this.max),t=this.translate(t),e=this.translate(e),u||(d=t||0,f=e||0),"circle"!==r.shape&&u)r=o+(t||0),o+=e||0;else{r=-Math.PI/2,o=1.5*Math.PI;var g=!0}d-=A,A=i.renderer.symbols.arc(l+s[0],h+s[1],d,d,{start:Math.min(r,o),end:Math.max(r,o),innerR:p(f,d-(n-A)),open:g}),u&&(u=(o+r)/2,l=l+s[0]+s[2]/2*Math.cos(u),A.xBounds=u>-Math.PI/2&&u<Math.PI/2?[l,i.plotWidth]:[0,l],A.yBounds=[h+s[1]+s[2]/2*Math.sin(u)],A.yBounds[0]+=u>-Math.PI&&0>u||u>Math.PI?-10:10)}return A}function b(t){var e=this,r=this.pane.center,i=this.chart,n=i.inverted,s=t.reverse,o=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},a=o.innerRadius||"0%",A=o.outerRadius||"100%",l=r[0]+i.plotLeft,h=r[1]+i.plotTop,c=this.height,u=t.isCrosshair;o=r[3]/2;var p,f=t.value,g=this.getPosition(f),m=g.x;if(g=g.y,u&&(f=(g=this.getCrosshairPosition(t,l,h))[0],m=g[1],g=g[2]),this.isCircular)f=Math.sqrt(Math.pow(m-l,2)+Math.pow(g-h,2)),s="string"==typeof a?d(a,1):a/f,i="string"==typeof A?d(A,1):A/f,r&&o&&(s<(o/=f)&&(s=o),i<o&&(i=o)),r=[["M",l+s*(m-l),h-s*(h-g)],["L",m-(1-i)*(m-l),g+(1-i)*(h-g)]];else if((f=this.translate(f))&&(0>f||f>c)&&(f=0),"circle"===this.options.gridLineInterpolation)r=this.getLinePath(0,f,o);else if(r=[],i[n?"yAxis":"xAxis"].forEach(function(t){t.pane===e.pane&&(p=t)}),p)for(l=p.tickPositions,p.autoConnect&&(l=l.concat([l[0]])),s&&(l=l.slice().reverse()),f&&(f+=o),h=0;h<l.length;h++)o=p.getPosition(l[h],f),r.push(h?["L",o.x,o.y]:["M",o.x,o.y]);return r}function w(t,e){return t=this.translate(t),this.postTranslate(this.isCircular?t:this.angleRad,p(this.isCircular?e:0>t?0:t,this.center[2]/2)-this.offset)}function B(){var t=this.center,e=this.chart,r=this.options.title;return{x:e.plotLeft+t[0]+(r.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[r.align]*t[2]+(r.y||0)}}function x(t){t.beforeSetTickPositions=r,t.createLabelCollector=i,t.getCrosshairPosition=g,t.getLinePath=m,t.getOffset=y,t.getPlotBandPath=v,t.getPlotLinePath=b,t.getPosition=w,t.getTitlePosition=B,t.postTranslate=k,t.setAxisSize=P,t.setAxisTranslation=N,t.setOptions=D}function C(){var t=this.chart,e=this.options,r=this.pane,i=r&&r.options;t.angular&&this.isXAxis||!r||!t.angular&&!t.polar||(t=2*Math.PI,r=(p(i.startAngle,0)-90)*Math.PI/180,i=(p(i.endAngle,p(i.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=r,this.endAngleRad=i,this.offset=e.offset||0,i=(i%t+t)%t,(e=(r%t+t)%t)>Math.PI&&(e-=t),i>Math.PI&&(i-=t),this.normalizedStartAngleRad=e,this.normalizedEndAngleRad=i)}function E(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function S(){if(this.chart&&this.chart.labelCollectors){var t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=t&&this.chart.labelCollectors.splice(t,1)}}function F(e){var r,i=this.chart,s=i.inverted,a=i.angular,A=i.polar,l=this.isXAxis,h=this.coll,c=a&&l;e=e.userOptions.pane||0,e=this.pane=i.pane&&i.pane[e],"colorAxis"===h?this.isRadial=!1:(a?(c?(this.isHidden=!0,this.createLabelCollector=n,this.getOffset=o,this.render=this.redraw=L,this.setTitle=this.setCategories=this.setScale=o):x(this),(r=!l)&&(this.defaultPolarOptions=Q)):A&&(x(this),this.defaultPolarOptions=(r=this.horiz)?U:u("xAxis"===h?t.defaultXAxisOptions:t.defaultYAxisOptions,R),s&&"yAxis"===h&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),a||A?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i.labelCollectors.push(this.labelCollector)):this.isRadial=!1,e&&r&&(e.axis=this),this.isCircular=r)}function T(){this.isRadial&&this.beforeSetTickPositions()}function I(t){var e=this.label;if(e){var r=this.axis,i=e.getBBox(),n=r.options.labels,s=(r.translate(this.pos)+r.startAngleRad+Math.PI/2)/Math.PI*180%360,o=Math.round(s),a=l(n.y)?0:.3*-i.height,A=n.y,h=20,c=n.align,u="end",f=0>o?o+360:o,g=f,m=0,y=0;if(r.isRadial){var v=r.getPosition(this.pos,r.center[2]/2+d(p(n.distance,-25),r.center[2]/2,-r.center[2]/2));"auto"===n.rotation?e.attr({rotation:s}):l(A)||(A=r.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-i.height/2),l(c)||(r.isCircular?(i.width>r.len*r.tickInterval/(r.max-r.min)&&(h=0),c=s>h&&s<180-h?"left":s>180+h&&s<360-h?"right":"center"):c="center",e.attr({align:c})),"auto"===c&&2===r.tickPositions.length&&r.isCircular&&(90<f&&180>f?f=180-f:270<f&&360>=f&&(f=540-f),180<g&&360>=g&&(g=360-g),r.pane.options.startAngle!==o&&r.pane.options.startAngle!==o+360&&r.pane.options.startAngle!==o-360||(u="start"),c=-90<=o&&90>=o||-360<=o&&-270>=o||270<=o&&360>=o?"start"===u?"right":"left":"start"===u?"left":"right",70<g&&110>g&&(c="center"),15>f||180<=f&&195>f?m=.3*i.height:15<=f&&35>=f?m="start"===u?0:.75*i.height:195<=f&&215>=f?m="start"===u?.75*i.height:0:35<f&&90>=f?m="start"===u?.25*-i.height:i.height:215<f&&270>=f&&(m="start"===u?i.height:.25*-i.height),15>g?y="start"===u?.15*-i.height:.15*i.height:165<g&&180>=g&&(y="start"===u?.15*i.height:.15*-i.height),e.attr({align:c}),e.translate(y,m+a)),t.pos.x=v.x+(n.x||0),t.pos.y=v.y+(A||0)}}}function _(t){this.axis.getPosition&&h(t.pos,this.axis.getPosition(this.pos))}function k(t,e){var r=this.chart,i=this.center;return t=this.startAngleRad+t,{x:r.plotLeft+i[0]+Math.cos(t)*e,y:r.plotTop+i[1]+Math.sin(t)*e}}function L(){this.isDirty=!1}function P(){if(this.constructor.prototype.setAxisSize.call(this),this.isRadial){this.pane.updateCenter(this);var t=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var e=this.postTranslate(this.angleRad,t[3]/2);t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop}this.len=this.width=this.height=(t[2]-t[3])*p(this.sector,1)/2}}function N(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function D(t){(t=this.options=u(this.constructor.defaultOptions,this.defaultPolarOptions,s[this.coll],t)).plotBands||(t.plotBands=[]),c(this,"afterSetOptions")}function M(t,e,r,i,n,s,o){var a=this.axis;return a.isRadial?["M",e,r,"L",(t=a.getPosition(this.pos,a.center[2]/2+i)).x,t.y]:t.call(this,e,r,i,n,s,o)}var O=[],U={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},Q={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},R={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};e.compose=function(t,e){return-1===O.indexOf(t)&&(O.push(t),a(t,"afterInit",C),a(t,"autoLabelAlign",E),a(t,"destroy",S),a(t,"init",F),a(t,"initialAxisTranslation",T)),-1===O.indexOf(e)&&(O.push(e),a(e,"afterGetLabelPosition",I),a(e,"afterGetPosition",_),f(e.prototype,"getMarkPath",M)),t}}(n||(n={})),n}),e(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Extensions/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],function(t,e,r,i,n){function s(t,e,r,i){var n=i?1:0,o=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0,a=t[e=0>o-1?t.length-(1+n):o-1];n=t[o+1>t.length-1?n:o+1];var A=a.plotY,l=n.plotX,h=n.plotY;n=t[o].plotX,o=t[o].plotY,a=(1.5*n+a.plotX)/2.5,A=(1.5*o+A)/2.5,l=(1.5*n+l)/2.5;var c=(1.5*o+h)/2.5;h=Math.sqrt(Math.pow(a-n,2)+Math.pow(A-o,2));var u=Math.sqrt(Math.pow(l-n,2)+Math.pow(c-o,2));return a=Math.atan2(A-o,a-n),c=Math.PI/2+(a+Math.atan2(c-o,l-n))/2,Math.abs(a-c)>Math.PI/2&&(c-=Math.PI),a=n+Math.cos(c)*h,A=o+Math.sin(c)*h,n={rightContX:l=n+Math.cos(Math.PI+c)*u,rightContY:c=o+Math.sin(Math.PI+c)*u,leftContX:a,leftContY:A,plotX:n,plotY:o},r&&(n.prevPointCont=s(t,e,!1,i)),n}function o(){(this.pane||[]).forEach(function(t){t.render()})}function a(t){var e=t.args[0].xAxis,r=t.args[0].yAxis;t=t.args[0].chart,e&&r&&("polygon"===r.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&t.inverted&&(r.startOnTick=!0,r.endOnTick=!0))}function A(){var t=this;this.pane||(this.pane=[]),this.options.pane=_(this.options.pane),this.options.pane.forEach(function(e){new r(e,t)},this)}function l(t){var e=t.args.marker,r=this.chart.xAxis[0],i=this.chart.yAxis[0],n=this.chart.inverted,s=n?i:r;if(r=n?r:i,this.chart.polar){t.preventDefault(),i=(e.attr?e.attr("start"):e.start)-s.startAngleRad,n=e.attr?e.attr("r"):e.r;var o=(e.attr?e.attr("end"):e.end)-s.startAngleRad;e=e.attr?e.attr("innerR"):e.innerR,t.result.x=i+s.pos,t.result.width=o-i,t.result.y=r.len+r.pos-e,t.result.height=e-n}}function h(t){var e=this.chart;if(e.polar&&e.hoverPane&&e.hoverPane.axis){t.preventDefault();var r=e.hoverPane.center,i=this.mouseDownX||0,n=this.mouseDownY||0,s=t.args.chartY,o=t.args.chartX,a=2*Math.PI,A=e.hoverPane.axis.startAngleRad,l=e.hoverPane.axis.endAngleRad,h=e.inverted?e.xAxis[0]:e.yAxis[0],c={},u="arc";if(c.x=r[0]+e.plotLeft,c.y=r[1]+e.plotTop,this.zoomHor){var p=0<A?l-A:Math.abs(A)+Math.abs(l),f=Math.atan2(n-e.plotTop-r[1],i-e.plotLeft-r[0])-A,g=Math.atan2(s-e.plotTop-r[1],o-e.plotLeft-r[0])-A;c.r=r[2]/2,c.innerR=r[3]/2,0>=f&&(f+=a),0>=g&&(g+=a),g<f&&(g=[f,f=g][0]),p<a&&A+g>l+(a-p)/2&&(g=f,f=0>=A?A:0),a=c.start=Math.max(f+A,A),f=c.end=Math.min(g+A,l),"polygon"===h.options.gridLineInterpolation&&(p=a-(g=e.hoverPane.axis).startAngleRad+g.pos,f-=a,u=h.getPlotLinePath({value:h.max}),a=g.toValue(p),p=g.toValue(p+f),a<g.getExtremes().min&&(a=(f=g.getExtremes()).max-(f.min-a)),p<g.getExtremes().min&&(p=(f=g.getExtremes()).max-(f.min-p)),p<a&&(p=[a,a=p][0]),(u=d(u,a,p,g)).push(["L",r[0]+e.plotLeft,e.plotTop+r[1]]),c.d=u,u="path")}this.zoomVert&&(g=e.inverted?e.xAxis[0]:e.yAxis[0],i=Math.sqrt(Math.pow(i-e.plotLeft-r[0],2)+Math.pow(n-e.plotTop-r[1],2)),(s=Math.sqrt(Math.pow(o-e.plotLeft-r[0],2)+Math.pow(s-e.plotTop-r[1],2)))<i&&(i=[s,s=i][0]),s>r[2]/2&&(s=r[2]/2),i<r[3]/2&&(i=r[3]/2),this.zoomHor||(c.start=A,c.end=l),c.r=s,c.innerR=i,"polygon"===g.options.gridLineInterpolation&&(f=g.toValue(g.len+g.pos-i),a=g.toValue(g.len+g.pos-s),u=g.getPlotLinePath({value:a}).concat(g.getPlotLinePath({value:f,reverse:!0})),c.d=u,u="path")),this.zoomHor&&this.zoomVert&&"polygon"===h.options.gridLineInterpolation&&(g=e.hoverPane.axis,a=c.start||0,f=c.end||0,p=a-g.startAngleRad+g.pos,f-=a,a=g.toValue(p),p=g.toValue(p+f),c.d instanceof Array&&(r=c.d.slice(0,c.d.length/2),A=c.d.slice(c.d.length/2,c.d.length),A=x([],A,!0).reverse(),r=d(r,a,p,e=e.hoverPane.axis),(A=d(A,a,p,e))&&(A[0][0]="L"),A=x([],A,!0).reverse(),c.d=r.concat(A),u="path")),t.attrs=c,t.shapeType=u}}function c(){var t=this.chart;t.polar&&(this.polar=new N(this),t.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function u(){if(this.chart.polar&&this.xAxis){var t=this.chart;(this.kdByAngle=t.tooltip&&t.tooltip.shared)?this.searchPoint=p:this.options.findNearestPointBy="xy";for(var r=this.points,i=r.length;i--;)this.preventPostTranslate||this.polar.toXY(r[i]),t.hasParallelCoordinates||this.yAxis.reversed||(I(r[i].y,Number.MIN_VALUE)<this.yAxis.min||r[i].x<this.xAxis.min||r[i].x>this.xAxis.max?(r[i].isNull=!0,r[i].plotY=NaN):r[i].isNull=r[i].isValid&&!r[i].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(E(this,"afterRender",function(){if(t.polar){var r=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2});else{var i=t.renderer,n=r[0],s=r[1],o=r[2]/2,a=r[3]/2;r=k();var A=i.createElement("clipPath").attr({id:r}).add(i.defs);(i=a?i.arc(n,s,o,a,0,2*Math.PI).add(A):i.circle(n,s,o).add(A)).id=r,i.clipPath=A,this.clipCircle=i}this.group.clip(this.clipCircle),this.setClip=e.noop}})))}}function p(t){var e=this.chart,r=this.xAxis;return r=r.pane&&r.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-(r&&r[0]||0)-e.plotLeft,t.chartY-(r&&r[1]||0)-e.plotTop)})}function d(t,e,r,i){var n=i.tickInterval;i=i.tickPositions;var s=F(i,function(t){return t>=r}),o=F(x([],i,!0).reverse(),function(t){return t<=e});return S(s)||(s=i[i.length-1]),S(o)||(o=i[0],s+=n,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(i.indexOf(o),i.indexOf(s)+1))[0][0]="M",t}function f(t,e){return F(this.pane||[],function(t){return t.options.id===e})||t.call(this,e)}function g(t,e,r,i,n,s){var o=this.chart,a=I(i.inside,!!this.options.stacking);o.polar?(t=e.rectPlotX/Math.PI*180,o.inverted?(this.forceDL=o.isInsidePlot(e.plotX,e.plotY),a&&e.shapeArgs?(n=e.shapeArgs,n={x:(n=this.yAxis.postTranslate(((n.start||0)+(n.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-o.plotLeft,y:n.y-o.plotTop}):e.tooltipPos&&(n={x:e.tooltipPos[0],y:e.tooltipPos[1]}),i.align=I(i.align,"center"),i.verticalAlign=I(i.verticalAlign,"middle")):(null===i.align&&(i.align=20<t&&160>t?"left":200<t&&340>t?"right":"center"),null===i.verticalAlign&&(i.verticalAlign=45>t||315<t?"bottom":135<t&&225>t?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,e,r,i,n,s),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?r.hide():r.show()):t.call(this,e,r,i,n,s)}function m(t){var e=this.options,r=e.stacking,i=this.chart,s=this.xAxis,o=this.yAxis,a=o.reversed,A=o.center,l=s.startAngleRad,h=s.endAngleRad-l,c=0,u=0,p=0;if(this.preventPostTranslate=!0,t.call(this),s.isRadial){s=(t=this.points).length;var d=o.translate(o.min),f=o.translate(o.max);for(e=e.threshold||0,i.inverted&&T(e)&&(c=o.translate(e),S(c)&&(0>c?c=0:c>h&&(c=h),this.translatedThreshold=c+l));s--;){var g=(e=t[s]).barX,m=e.x,y=e.y;e.shapeType="arc",i.inverted?(e.plotY=o.translate(y),r&&o.stacking?(y=o.stacking.stacks[(0>y?"-":"")+this.stackKey],this.visible&&y&&y[m]&&!e.isNull&&(p=y[m].points[this.getStackIndicator(void 0,m,this.index).key],u=o.translate(p[0]),p=o.translate(p[1]),S(u)&&(u=n.clamp(u,0,h)))):(u=c,p=e.plotY),u>p&&(p=[u,u=p][0]),a?p>d?p=d:u<f?u=f:(u>d||p<f)&&(u=p=h):u<d?u=d:p>f?p=f:(p<d||u>f)&&(u=p=0),o.min>o.max&&(u=p=a?h:0),u+=l,p+=l,A&&(e.barX=g+=A[3]/2),m=Math.max(g,0),y=Math.max(g+e.pointWidth,0),e.shapeArgs={x:A&&A[0],y:A&&A[1],r:y,innerR:m,start:u,end:p},e.opacity=u===p?0:void 0,e.plotY=(S(this.translatedThreshold)&&(u<this.translatedThreshold?u:p))-l):(u=g+l,e.shapeArgs=this.polar.arc(e.yBottom,e.plotY,u,u+e.pointWidth)),this.polar.toXY(e),i.inverted?(g=o.postTranslate(e.rectPlotY,g+e.pointWidth/2),e.tooltipPos=[g.x-i.plotLeft,g.y-i.plotTop]):e.tooltipPos=[e.plotX,e.plotY],A&&(e.ttBelow=e.plotY>A[1])}}}function y(t,e){var r=this;if(this.chart.polar){e=e||this.points;for(var i=0;i<e.length;i++)if(!e[i].isNull){var n=i;break}if(!1!==this.options.connectEnds&&void 0!==n){this.connectEnds=!0,e.splice(e.length,0,e[n]);var s=!0}e.forEach(function(t){void 0===t.polarPlotY&&r.polar.toXY(t)})}return n=t.apply(this,[].slice.call(arguments,1)),s&&e.pop(),n}function v(t,e){var r=this.chart,i={xAxis:[],yAxis:[]};return r.polar?r.axes.forEach(function(t){if("colorAxis"!==t.coll){var n=t.isXAxis,s=t.center,o=e.chartX-s[0]-r.plotLeft;s=e.chartY-s[1]-r.plotTop,i[n?"xAxis":"yAxis"].push({axis:t,value:t.translate(n?Math.PI-Math.atan2(o,s):Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),!0)})}}):i=t.call(this,e),i}function b(t,e){this.chart.polar||t.call(this,e)}function w(t,r){var i,n,s,o,a=this,A=this.chart,l=this.group,h=this.markerGroup,c=this.xAxis&&this.xAxis.center,u=A.plotLeft,p=A.plotTop,d=this.options.animation;if(A.polar){if(a.isRadialBar)r||(a.startAngleRad=I(a.translatedThreshold,a.xAxis.startAngleRad),e.seriesTypes.pie.prototype.animate.call(a,r));else if(A.renderer.isSVG)if(d=C(d),a.is("column")){if(!r){var f=c[3]/2;a.points.forEach(function(t){i=t.graphic,s=(n=t.shapeArgs)&&n.r,o=n&&n.innerR,i&&n&&(i.attr({r:f,innerR:f}),i.animate({r:s,innerR:o},a.options.animation))})}}else r?(t={translateX:c[0]+u,translateY:c[1]+p,scaleX:.001,scaleY:.001},l.attr(t),h&&h.attr(t)):(t={translateX:u,translateY:p,scaleX:1,scaleY:1},l.animate(t,d),h&&h.animate(t,d))}else t.call(this,r)}function B(t,e,r,i){return this.chart.polar?i?(e=(t=s(e,i,!0,this.connectEnds)).prevPointCont&&t.prevPointCont.rightContX,r=t.prevPointCont&&t.prevPointCont.rightContY,t=["C",T(e)?e:t.plotX,T(r)?r:t.plotY,T(t.leftContX)?t.leftContX:t.plotX,T(t.leftContY)?t.leftContY:t.plotY,t.plotX,t.plotY]):t=["M",r.plotX,r.plotY]:t=t.call(this,e,r,i),t}var x=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var i,n=0,s=e.length;n<s;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},C=t.animObject,E=n.addEvent,S=n.defined,F=n.find,T=n.isNumber,I=n.pick,_=n.splat,k=n.uniqueKey,L=n.wrap,P=[],N=function(){function t(t){this.series=t}return t.compose=function(t,e,r,n,s,p,d,x,C){i.compose(t,s),-1===P.indexOf(e)&&(P.push(e),E(e,"afterDrawChartBox",o),E(e,"getAxes",A),E(e,"init",a),L(e.prototype,"get",f)),-1===P.indexOf(r)&&(P.push(r),t=r.prototype,L(t,"getCoordinates",v),L(t,"pinch",b),E(r,"getSelectionMarkerAttrs",h),E(r,"getSelectionBox",l)),-1===P.indexOf(n)&&(P.push(n),E(n,"afterInit",c),E(n,"afterTranslate",u,{order:2}),L(n.prototype,"animate",w)),d&&-1===P.indexOf(d)&&(P.push(d),r=d.prototype,L(r,"alignDataLabel",g),L(r,"animate",w),L(r,"translate",m)),x&&-1===P.indexOf(x)&&(P.push(x),L(x.prototype,"getGraphPath",y)),C&&-1===P.indexOf(C)&&(P.push(C),x=C.prototype,L(x,"getPointSpline",B),p&&-1===P.indexOf(p)&&(P.push(p),p.prototype.getPointSpline=x.getPointSpline))},t.prototype.arc=function(t,e,r,i){var n=this.series,s=n.xAxis.center,o=n.yAxis.len,a=s[3]/2;return e=o-e+a,t=o-I(t,o)+a,n.yAxis.reversed&&(0>e&&(e=a),0>t&&(t=a)),{x:s[0],y:s[1],r:e,innerR:t,start:r,end:i}},t.prototype.toXY=function(t){var e=this.series,r=e.chart,i=e.xAxis,n=e.yAxis,s=t.plotX,o=r.inverted,a=t.y,A=t.plotY,l=o?s:n.len-A;o&&e&&!e.isRadialBar&&(t.plotY=A=T(a)?n.translate(a):0),t.rectPlotX=s,t.rectPlotY=A,n.center&&(l+=n.center[3]/2),T(A)&&(n=o?n.postTranslate(A,l):i.postTranslate(s,l),t.plotX=t.polarPlotX=n.x-r.plotLeft,t.plotY=t.polarPlotY=n.y-r.plotTop),e.kdByAngle?(0>(e=(s/Math.PI*180+i.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},t}();return N}),e(t,"masters/highcharts-more.src.js",[t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Bubble/BubbleSeries.js"],t["Series/PackedBubble/PackedBubbleSeries.js"],t["Series/PolarComposition.js"]],function(t,e,r,i,n){r.compose(t.Axis,t.Chart,t.Legend,t.Series),i.compose(t.Axis,t.Chart,t.Legend,t.Series),n.compose(t.Axis,t.Chart,t.Pointer,t.Series,t.Tick,e.seriesTypes.areasplinerange,e.seriesTypes.column,e.seriesTypes.line,e.seriesTypes.spline)})},t.exports?(s.default=s,t.exports=s):(i=[r(66044)],void 0===(n=function(t){return s(t),s.Highcharts=t,s}.apply(e,i))||(t.exports=n))},66044(t,e,r){var i,n,s;n="undefined"!=typeof window?window:this,s=function(t){function e(e,r,i,n){e.hasOwnProperty(r)||(e[r]=n.apply(null,i),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:e[r]}})))}var r={};return e(r,"Core/Globals.js",[],function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var r=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,r),e.win.removeEventListener("testPassive",e.noop,r))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e}),e(r,"Core/Utilities.js",[r["Core/Globals.js"]],function(t){function e(r,i,n,s){var o=i?"Highcharts error":"Highcharts warning";32===r&&(r=o+": Deprecated member");var a=A(r),l=a?o+" #"+r+": www.highcharts.com/errors/"+r+"/":r.toString();if(void 0!==s){var h="";a&&(l+="?"),g(s,function(t,e){h+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))}),l+=h}y(t,"displayError",{chart:n,code:r,message:l,params:s},function(){if(i)throw Error(l);w.console&&-1===e.messages.indexOf(l)&&console.warn(l)}),e.messages.push(l)}function r(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function n(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function s(t,e){return!(!t||"object"!=typeof t||e&&n(t))}function o(t){return s(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!s(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function A(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function h(t,e,r){var n,s=i(e)&&!l(r),o=function(e,r){l(e)?t.setAttribute(r,e):s?(n=t.getAttribute(r))||"class"!==r||(n=t.getAttribute(r+"Name")):t.removeAttribute(r)};return i(e)?o(r,e):g(e,o),n}function c(t,e){var r;for(r in t||(t={}),e)t[r]=e[r];return t}function u(){for(var t=arguments,e=t.length,r=0;r<e;r++){var i=t[r];if(null!=i)return i}}function p(e,r){t.isMS&&!t.svg&&r&&l(r.opacity)&&(r.filter="alpha(opacity=".concat(100*r.opacity,")")),c(e.style,r)}function d(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function f(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,r){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(r||t[i],t[i],i,t)}function m(e,r,i){function n(r,i){var n=e.removeEventListener||t.removeEventListenerPolyfill;n&&n.call(e,r,i,!1)}function s(t){var i;if(e.nodeName){if(r){var s={};s[r]=!0}else s=t;g(s,function(e,r){if(t[r])for(i=t[r].length;i--;)n(r,t[r][i].fn)})}}var o="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(o,"hcEvents")){var a=o.hcEvents;r?(o=a[r]||[],i?(a[r]=o.filter(function(t){return i!==t.fn}),n(r,i)):(s(a),a[r]=[])):(s(a),delete o.hcEvents)}}function y(e,r,i,n){if(i=i||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var s=b.createEvent("Events");s.initEvent(r,!0,!0),i=c(s,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(r,i)}else if(e.hcEvents){i.target||c(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:r}),s=[];for(var o=e,a=!1;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[r]&&(s.length&&(a=!0),s.unshift.apply(s,o.hcEvents[r])),o=Object.getPrototypeOf(o);a&&s.sort(function(t,e){return t.order-e.order}),s.forEach(function(t){!1===t.fn.call(e,i)&&i.preventDefault()})}n&&!i.defaultPrevented&&n.call(e,i)}var v=t.charts,b=t.doc,w=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var B=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var r,i=t.length;for(r=0;r<i;r++)if(e(t[r],r))return t[r]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(r,i){t[i]=function(t){var n;return e(32,!1,void 0,((n={})["Highcharts.".concat(i)]="use Array.".concat(r),n)),Array.prototype[r].apply(t,[].slice.call(arguments,1))}});var x,C=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(x?"":t)+e++}}();return w.jQuery&&(w.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[h(this[0],"data-highcharts-chart")]}),B={addEvent:function(e,r,i,n){void 0===n&&(n={});var s="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var o=e.addEventListener||t.addEventListenerPolyfill;return o&&o.call(e,r,i,!!t.supportsPassiveEvents&&{passive:void 0===n.passive?-1!==r.indexOf("touch"):n.passive,capture:!1}),s[r]||(s[r]=[]),s[r].push({fn:i,order:"number"==typeof n.order?n.order:1/0}),s[r].sort(function(t,e){return t.order-e.order}),function(){m(e,r,i)}},arrayMax:function(t){for(var e=t.length,r=t[0];e--;)t[e]>r&&(r=t[e]);return r},arrayMin:function(t){for(var e=t.length,r=t[0];e--;)t[e]<r&&(r=t[e]);return r},attr:h,clamp:function(t,e,r){return t>e?t<r?t:r:e},cleanRecursively:function t(e,r){var i={};return g(e,function(n,o){s(e[o],!0)&&!e.nodeType&&r[o]?(n=t(e[o],r[o]),Object.keys(n).length&&(i[o]=n)):(s(e[o])||e[o]!==r[o]||o in e&&!(o in r))&&(i[o]=e[o])}),i},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:f,createElement:function(t,e,r,i,n){return t=b.createElement(t),e&&c(t,e),n&&p(t,{padding:"0",border:"none",margin:"0"}),r&&p(t,r),i&&i.appendChild(t),t},css:p,defined:l,destroyObjectProperties:function(t,e){g(t,function(r,i){r&&r!==e&&r.destroy&&r.destroy(),delete t[i]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var r=t.length;r--;)if(t[r]===e){t.splice(r,1);break}},error:e,extend:c,extendClass:function(t,e){var r=function(){};return c(r.prototype=new t,e),r},find:B,fireEvent:y,getMagnitude:d,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var r=t.shift();if(void 0===r||"__proto__"===r)return;if(!l(e=e[r])||"function"==typeof e||"number"==typeof e.nodeType||e===w)return}return e},getStyle:function i(n,s,o){var a=t.getStyle||i;if("width"===s)return s=Math.min(n.offsetWidth,n.scrollWidth),(o=n.getBoundingClientRect&&n.getBoundingClientRect().width)<s&&o>=s-1&&(s=Math.floor(o)),Math.max(0,s-(a(n,"padding-left",!0)||0)-(a(n,"padding-right",!0)||0));if("height"===s)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(a(n,"padding-top",!0)||0)-(a(n,"padding-bottom",!0)||0));if(w.getComputedStyle||e(27,!0),n=w.getComputedStyle(n,void 0)){var A=n.getPropertyValue(s);u(o,"opacity"!==s)&&(A=r(A))}return A},inArray:function(t,r,i){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),r.indexOf(t,i)},isArray:n,isClass:a,isDOMElement:o,isFunction:function(t){return"function"==typeof t},isNumber:A,isObject:s,isString:i,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,r={},i=function(t,e){return"object"!=typeof t&&(t={}),g(e,function(r,n){"__proto__"!==n&&"constructor"!==n&&(!s(r,!0)||a(r)||o(r)?t[n]=e[n]:t[n]=i(t[n]||{},r))}),t};!0===e[0]&&(r=e[1],e=Array.prototype.slice.call(e,2));var n=e.length;for(t=0;t<n;t++)r=i(r,e[t]);return r},normalizeTickInterval:function(t,e,r,i,n){var s=t,o=t/(r=u(r,d(t)));for(e||(e=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===r?e=e.filter(function(t){return 0==t%1}):.1>=r&&(e=[1/r]))),i=0;i<e.length&&(s=e[i],!(n&&s*r>=t||!n&&o<=(e[i]+(e[i+1]||e[i]))/2));i++);return f(s*r,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(w.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(w.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,r){return Array((e||2)+1-String(t).replace("-","").length).join(r||"0")+t},pick:u,pInt:r,relativeLength:function(t,e,r){return/%$/.test(t)?e*parseFloat(t)/100+(r||0):parseFloat(t)},removeEvent:m,splat:function(t){return n(t)?t:[t]},stableSort:function(t,e){var r,i,n=t.length;for(i=0;i<n;i++)t[i].safeI=i;for(t.sort(function(t,i){return 0===(r=e(t,i))?t.safeI-i.safeI:r}),i=0;i<n;i++)delete t[i].safeI},syncTimeout:function(t,e,r){return 0<e?setTimeout(t,e,r):(t.call(0,r),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return x=u(t,x)},wrap:function(t,e,r){var i=t[e];t[e]=function(){var t=arguments,e=this;return r.apply(this,[function(){return i.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},B}),e(r,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),e(r,"Core/Color/Color.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=e.isNumber,i=e.merge,n=e.pInt;return e=function(){function e(r){this.rgba=[NaN,NaN,NaN,NaN],this.input=r;var i=t.Color;return i&&i!==e?new i(r):this instanceof e?void this.init(r):new e(r)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var r;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var i=t.length,n=parseInt(t.substr(1),16);7===i?r=[(16711680&n)>>16,(65280&n)>>8,255&n,1]:4===i&&(r=[(3840&n)>>4|(3840&n)>>8,(240&n)>>4|240&n,(15&n)<<4|15&n,1])}if(!r)for(n=e.parsers.length;n--&&!r;){var s=e.parsers[n];(i=s.regex.exec(t))&&(r=s.parse(i))}}r&&(this.rgba=r)},e.prototype.get=function(t){var e=this.input,n=this.rgba;if("object"==typeof e&&void 0!==this.stops){var s=i(e);return s.stops=[].slice.call(s.stops),this.stops.forEach(function(e,r){s.stops[r]=[s.stops[r][0],e.get(t)]}),s}return n&&r(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?"".concat(n[3]):"rgba("+n.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(r(t)&&0!==t)for(var i=0;3>i;i++)e[i]+=n(255*t),0>e[i]&&(e[i]=0),255<e[i]&&(e[i]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,n=t.rgba;return r(i[0])&&r(n[0])?((t=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-e))+","+Math.round(n[1]+(i[1]-n[1])*(1-e))+","+Math.round(n[2]+(i[2]-n[2])*(1-e))+(t?","+(n[3]+(i[3]-n[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],e.None=new e(""),e}(),e}),e(r,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),e(r,"Core/Time.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=t.win,i=e.defined,n=e.error,s=e.extend,o=e.isObject,a=e.merge,A=e.objectEach,l=e.pad,h=e.pick,c=e.splat,u=e.timeUnits,p=t.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,d=t.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=r.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var r=e.getTime(),i=r-this.getTimezoneOffset(e);return e.setTime(i),t=e["getUTC"+t](),e.setTime(r),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,r){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](r);var i=this.getTimezoneOffset(e);return i=e.getTime()-i,e.setTime(i),e["setUTC"+t](r),t=this.getTimezoneOffset(e),i=e.getTime()+t,e.setTime(i)}return this.useUTC||p&&"FullYear"===t?e["setUTC"+t](r):e["set"+t](r)},e.prototype.update=function(t){void 0===t&&(t={});var e=h(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||r.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,r,i,n,s){if(this.useUTC){var o=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(o);o+=a;var A=this.getTimezoneOffset(o);a!==A?o+=A-a:a-36e5!==this.getTimezoneOffset(o-36e5)||d||(o-=36e5)}else o=new this.Date(t,e,h(r,1),h(i,0),h(n,0),h(s,0)).getTime();return o},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.getTimezoneOffset,s=e.moment||r.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(s)return function(t){return 6e4*-s.tz(t,e.timezone).utcOffset()};n(25)}return this.useUTC&&i?function(t){return 6e4*i(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,r,n){if(!i(r)||isNaN(r))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=h(e,"%Y-%m-%d %H:%M:%S");var o=this,a=new this.Date(r),c=this.get("Hours",a),u=this.get("Day",a),p=this.get("Date",a),d=this.get("Month",a),f=this.get("FullYear",a),g=t.defaultOptions.lang,m=g&&g.weekdays,y=g&&g.shortWeekdays;return a=s({a:y?y[u]:m[u].substr(0,3),A:m[u],d:l(p),e:l(p,2," "),w:u,b:g.shortMonths[d],B:g.months[d],m:l(d+1),o:d+1,y:f.toString().substr(2,2),Y:f,H:l(c),k:c,I:l(c%12||12),l:c%12||12,M:l(this.get("Minutes",a)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(r%1e3),3)},t.dateFormats),A(a,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(o,r):t)}),n?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return o(t,!0)?t:{main:(t=c(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,r,n){var o,a=this,A=[],l={},c=new a.Date(e),p=t.unitRange,d=t.count||1;if(n=h(n,1),i(e)){if(a.set("Milliseconds",c,p>=u.second?0:d*Math.floor(a.get("Milliseconds",c)/d)),p>=u.second&&a.set("Seconds",c,p>=u.minute?0:d*Math.floor(a.get("Seconds",c)/d)),p>=u.minute&&a.set("Minutes",c,p>=u.hour?0:d*Math.floor(a.get("Minutes",c)/d)),p>=u.hour&&a.set("Hours",c,p>=u.day?0:d*Math.floor(a.get("Hours",c)/d)),p>=u.day&&a.set("Date",c,p>=u.month?1:Math.max(1,d*Math.floor(a.get("Date",c)/d))),p>=u.month){a.set("Month",c,p>=u.year?0:d*Math.floor(a.get("Month",c)/d));var f=a.get("FullYear",c)}p>=u.year&&a.set("FullYear",c,f-f%d),p===u.week&&(f=a.get("Day",c),a.set("Date",c,a.get("Date",c)-f+n+(f<n?-7:0))),f=a.get("FullYear",c),n=a.get("Month",c);var g=a.get("Date",c),m=a.get("Hours",c);for(e=c.getTime(),!a.variableTimezone&&a.useUTC||!i(r)||(o=r-e>4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(r)),e=c.getTime(),c=1;e<r;)A.push(e),e=p===u.year?a.makeTime(f+c*d,0):p===u.month?a.makeTime(f,n+c*d):!o||p!==u.day&&p!==u.week?o&&p===u.hour&&1<d?a.makeTime(f,n,g,m+c*d):e+p*d:a.makeTime(f,n,g+c*d*(p===u.day?1:7)),c++;A.push(e),p<=u.hour&&1e4>A.length&&A.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return A.info=s(t,{higherRanks:l,totalRange:p*d}),A},e.prototype.getDateFormat=function(t,e,r,i){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),s={millisecond:15,second:12,minute:9,hour:6,day:3},o="millisecond";for(a in u){if(t===u.week&&+this.dateFormat("%w",e)===r&&"00:00:00.000"===n.substr(6)){var a="week";break}if(u[a]>t){a=o;break}if(s[a]&&n.substr(s[a])!=="01-01 00:00:00.000".substr(s[a]))break;"week"!==a&&(o=a)}return this.resolveDTLFormat(i[a]).main},e}(),e}),e(r,"Core/Defaults.js",[r["Core/Chart/ChartDefaults.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Color/Palettes.js"],r["Core/Time.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s){e=e.parse;var o=s.merge,a={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:r.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:r.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var A=new n(o(a.global,a.time));return{defaultOptions:a,defaultTime:A,getOptions:function(){return a},setOptions:function(t){return o(!0,a,t),(t.time||t.global)&&(r.time?r.time.update(o(a.global,a.time,t.global,t.time)):r.time=A),a}}}),e(r,"Core/Animation/Fx.js",[r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var i=t.parse,n=e.win,s=r.isNumber,o=r.objectEach;return function(){function t(t,e,r){this.pos=NaN,this.options=e,this.elem=t,this.prop=r}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var r=this.now||0,i=[];if(1!==r&&e&&t)if(e.length===t.length&&1>r)for(var n=0;n<t.length;n++){for(var o=e[n],a=t[n],A=[],l=0;l<a.length;l++){var h=o[l],c=a[l];s(h)&&s(c)&&("A"!==a[0]||4!==l&&5!==l)?A[l]=h+r*(c-h):A[l]=c}i.push(A)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,r=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,r,null,!0):t.style[e]=r+this.unit,i&&i.call(t,r,this)},t.prototype.run=function(e,r,i){var s=this,o=s.options,a=function(t){return!a.stopped&&s.step(t)},A=n.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&A(l)};e!==r||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=r,this.unit=i,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&A(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,r=this.options,i=this.elem,n=r.complete,s=r.duration,a=r.curAnim;if(i.attr&&!i.element)t=!1;else if(t||e>=s+this.startTime){this.now=this.end,this.pos=1,this.update();var A=a[this.prop]=!0;o(a,function(t){!0!==t&&(A=!1)}),A&&n&&n.call(i),t=!1}else this.pos=r.easing((e-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,r){function i(t,e){for(;t.length<u;){var r=t[0],i=e[u-t.length];i&&"M"===r[0]&&(t[0]="C"===i[0]?["C",r[1],r[2],r[1],r[2],r[1],r[2]]:["L",r[1],r[2]]),t.unshift(r),A&&(r=t.pop(),t.push(t[t.length-1],r))}}function n(t,e){for(;t.length<u;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),A){var r=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,r)}else t.push(e)}var o=t.startX,a=t.endX;r=r.slice();var A=t.isArea,l=A?2:1;if(!(e=e&&e.slice()))return[r,r];if(o&&a&&a.length){for(t=0;t<o.length;t++){if(o[t]===a[0]){var h=t;break}if(o[0]===a[a.length-o.length+t]){h=t;var c=!0;break}if(o[o.length-1]===a[a.length-o.length+t]){h=o.length-t;break}}void 0===h&&(e=[])}if(e.length&&s(h)){var u=r.length+h*l;c?(i(e,r),n(r,e)):(i(r,e),n(e,r))}return[e,r]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),e(r,"Core/Animation/AnimationUtilities.js",[r["Core/Animation/Fx.js"],r["Core/Utilities.js"]],function(t,e){function r(t){return A(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function i(e,r){for(var i=t.timers.length;i--;)t.timers[i].elem!==e||r&&r!==t.timers[i].prop||(t.timers[i].stopped=!0)}var n=e.defined,s=e.getStyle,o=e.isArray,a=e.isNumber,A=e.isObject,l=e.merge,h=e.objectEach,c=e.pick;return{animate:function(e,r,n){var c,u,p,d="";if(!A(n)){var f=arguments;n={duration:f[2],easing:f[3],complete:f[4]}}a(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=l(r),h(r,function(a,A){i(e,A),p=new t(e,n,A),u=void 0,"d"===A&&o(r.d)?(p.paths=p.initPath(e,e.pathArray,r.d),p.toD=r.d,c=0,u=1):e.attr?c=e.attr(A):(c=parseFloat(s(e,A))||0,"opacity"!==A&&(d="px")),u||(u=a),"string"==typeof u&&u.match("px")&&(u=u.replace(/px/g,"")),p.run(c,u,d)})},animObject:r,getDeferredAnimation:function(t,e,i){var s=r(e),o=0,a=0;return(i?[i]:t.series).forEach(function(t){t=r(t.options.animation),o=e&&n(e.defer)?s.defer:Math.max(o,t.duration+t.defer),a=Math.min(s.duration,t.duration)}),t.renderer.forExport&&(o=0),{defer:Math.max(0,o-a),duration:Math.min(o,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=c(t,e.options.chart.animation,!0)},stop:i}}),e(r,"Core/Renderer/HTML/AST.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=t.SVG_NS,i=e.attr,n=e.createElement,s=e.css,o=e.error,a=e.isFunction,A=e.isString,l=e.objectEach,h=e.splat,c=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),u=c?c.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(u,"text/html")}catch(t){p=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,function(r,i){var n=!0;-1===e.allowedAttributes.indexOf(i)&&(n=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(n=A(r)&&e.allowedReferences.some(function(t){return 0===r.indexOf(t)})),n||(o(33,!1,void 0,{"Invalid attribute in config":"".concat(i)}),delete t[i]),A(r)&&t[i]&&(t[i]=r.replace(/</g,"&lt;"))}),t},e.parseStyle=function(t){return t.split(";").reduce(function(t,e){e=e.split(":").map(function(t){return t.trim()});var r=e.shift();return r&&e.length&&(t[r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(":")),t},{})},e.setElementHTML=function(t,r){t.innerHTML=e.emptyHTML,r&&new e(r).addToDOM(t)},e.prototype.addToDOM=function(n){return function n(a,A){var c;return h(a).forEach(function(a){var h=a.tagName,u=a.textContent?t.doc.createTextNode(a.textContent):void 0,p=e.bypassHTMLFiltering;if(h)if("#text"===h)var d=u;else if(-1!==e.allowedTags.indexOf(h)||p){h=t.doc.createElementNS("svg"===h?r:A.namespaceURI||r,h);var f=a.attributes||{};l(a,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(f[e]=t)}),i(h,p?f:e.filterUserAttributes(f)),a.style&&s(h,a.style),u&&h.appendChild(u),n(a.children||[],h),d=h}else o(33,!1,void 0,{"Invalid tagName in config":h});d&&A.appendChild(d),c=d}),c}(this.nodes,n)},e.prototype.parseMarkup=function(t){var r=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),p)t=(new DOMParser).parseFromString(c?c.createHTML(t):t,"text/html");else{var i=n("div");i.innerHTML=t,t={body:i}}var s=function(t,r){var i=t.nodeName.toLowerCase(),n={tagName:i};if("#text"===i&&(n.textContent=t.textContent||""),i=t.attributes){var o={};[].forEach.call(i,function(t){"data-style"===t.name?n.style=e.parseStyle(t.value):o[t.name]=t.value}),n.attributes=o}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,function(t){s(t,a)}),a.length&&(n.children=a)}r.push(n)};return[].forEach.call(t.body.childNodes,function(t){return s(t,r)}),r},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=u,e.bypassHTMLFiltering=!1,e}(),a}),e(r,"Core/FormatUtilities.js",[r["Core/Defaults.js"],r["Core/Utilities.js"]],function(t,e){function r(t,e,r,n){t=+t||0,e=+e;var s=i.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,h=t.toString().split("e"),c=e;if(-1===e)e=Math.min(l,20);else if(o(e)){if(e&&h[1]&&0>h[1]){var u=e+ +h[1];0<=u?(h[0]=(+h[0]).toExponential(u).split("e")[0],e=u):(h[0]=h[0].split(".")[0]||0,t=20>e?(h[0]*Math.pow(10,h[1])).toFixed(e):0,h[1]=0)}}else e=2;u=(Math.abs(h[1]?h[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var p=3<(l=String(A(u))).length?l.length%3:0;return r=a(r,s.decimalPoint),n=a(n,s.thousandsSep),t=(0>t?"-":"")+(p?l.substr(0,p)+n:""),t=0>+h[1]&&!c?"0":t+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+n),e&&(t+=r+u.slice(-e)),h[1]&&0!==+t&&(t+="e"+h[1]),t}var i=t.defaultOptions,n=t.defaultTime,s=e.getNestedProperty,o=e.isNumber,a=e.pick,A=e.pInt;return{dateFormat:function(t,e,r){return n.dateFormat(t,e,r)},format:function(t,e,o){var a="{",A=!1,l=/f$/,h=/\.([0-9])/,c=i.lang,u=o&&o.time||n;o=o&&o.numberFormatter||r;for(var p=[];t;){var d=t.indexOf(a);if(-1===d)break;var f=t.slice(0,d);if(A){if(f=f.split(":"),a=s(f.shift()||"",e),f.length&&"number"==typeof a)if(f=f.join(":"),l.test(f)){var g=parseInt((f.match(h)||["","-1"])[1],10);null!==a&&(a=o(a,g,c.decimalPoint,-1<f.indexOf(",")?c.thousandsSep:""))}else a=u.dateFormat(f,a);p.push(a)}else p.push(f);t=t.slice(d+1),a=(A=!A)?"}":"{"}return p.push(t),p.join("")},numberFormat:r}}),e(r,"Core/Renderer/RendererUtilities.js",[r["Core/Utilities.js"]],function(t){var e,r=t.clamp,i=t.pick,n=t.stableSort;return function(t){t.distribute=function t(e,s,o){var a,A=e,l=A.reducedLen||s,h=function(t,e){return(e.rank||0)-(t.rank||0)},c=function(t,e){return t.target-e.target},u=!0,p=[],d=0;for(a=e.length;a--;)d+=e[a].size;if(d>l){for(n(e,h),d=a=0;d<=l;)d+=e[a].size,a++;p=e.splice(a-1,e.length)}for(n(e,c),e=e.map(function(t){return{size:t.size,targets:[t.target],align:i(t.align,.5)}});u;){for(a=e.length;a--;)l=e[a],h=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=r(h-l.size*l.align,0,s-l.size);for(a=e.length,u=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>s&&(e[a-1].pos=s-e[a-1].size),e.splice(a,1),u=!0)}return A.push.apply(A,p),a=0,e.some(function(e){var r=0;return(e.targets||[]).some(function(){return A[a].pos=e.pos+r,void 0!==o&&Math.abs(A[a].pos-A[a].target)>o?(A.slice(0,a+1).forEach(function(t){return delete t.pos}),A.reducedLen=(A.reducedLen||s)-.1*s,A.reducedLen>.1*s&&t(A,s,o),!0):(r+=A[a].size,a++,!1)})}),n(A,c),A}}(e||(e={})),e}),e(r,"Core/Renderer/SVG/SVGElement.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n=t.animate,s=t.animObject,o=t.stop,a=r.deg2rad,A=r.doc,l=r.svg,h=r.SVG_NS,c=r.win,u=i.addEvent,p=i.attr,d=i.createElement,f=i.css,g=i.defined,m=i.erase,y=i.extend,v=i.fireEvent,b=i.isArray,w=i.isFunction,B=i.isString,x=i.merge,C=i.objectEach,E=i.pick,S=i.pInt,F=i.syncTimeout,T=i.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=h,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=E(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,r){r.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,r=this.element;if(t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var i=this.zIndexSetter();return i||(t?t.element:e.box).appendChild(r),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var r=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce(function(t,e){return-1===r.indexOf(e)&&t.push(e),t},r?[r]:[]).join(" "),t!==r&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,r){var i,n,s,o={},a=this.renderer,A=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!r||B(r))&&(this.alignTo=i=r||"renderer",m(A,this),A.push(this),r=void 0)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),r=E(r,a[i],"scrollablePlotBox"===i?a.plotBox:void 0,a),i=t.align;var l=t.verticalAlign;return a=(r.x||0)+(t.x||0),A=(r.y||0)+(t.y||0),"right"===i?n=1:"center"===i&&(n=2),n&&(a+=(r.width-(t.width||0))/n),o[e?"translateX":"x"]=Math.round(a),"bottom"===l?s=1:"middle"===l&&(s=2),s&&(A+=(r.height-(t.height||0))/s),o[e?"translateY":"y"]=Math.round(A),this[this.placed?"animate":"attr"](o),this.placed=!0,this.alignAttr=o,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,r){var i=this,o=s(E(e,this.renderer.globalAnimation,!0));return e=o.defer,E(A.hidden,A.msHidden,A.webkitHidden,!1)&&(o.duration=0),0!==o.duration?(r&&(o.complete=r),F(function(){i.element&&n(i,t,o)},e)):(this.attr(t,void 0,r||o.complete),C(t,function(t,e){o.step&&o.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.split(" ");if(t=i[i.length-1],(i=i[0])&&"none"!==i&&r.svg){this.fakeTS=!0,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,r){return 2*Number(e)+r}),this.removeTextOutline();var n=A.createElementNS(h,"tspan");p(n,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":i,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),n.appendChild(e)});var s=0;[].forEach.call(t.querySelectorAll("text tspan"),function(t){s+=Number(t.getAttribute("dy"))}),(i=A.createElementNS(h,"tspan")).textContent="​",p(i,{x:Number(e.getAttribute("x")),dy:-s}),n.appendChild(i),t.insertBefore(n,t.firstChild)}},t.prototype.attr=function(t,e,r,i){var n,s,a,A=this.element,l=this.symbolCustomAttribs,h=this;if("string"==typeof t&&void 0!==e){var c=t;(t={})[c]=e}return"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,A):(C(t,function(e,r){s=!1,i||o(this,r),this.symbolName&&-1!==l.indexOf(r)&&(n||(this.symbolAttr(t),n=!0),s=!0),!this.rotation||"x"!==r&&"y"!==r||(this.doTransform=!0),s||((a=this[r+"Setter"]||this._defaultSetter).call(this,e,r,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(r)&&this.updateShadows(r,e,a))},this),this.afterSetters()),r&&r.call(this),h},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var r=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+r,t.y=Math.floor(t.y||this.y||0)+r,t.width=Math.floor((t.width||this.width||0)-2*r),t.height=Math.floor((t.height||this.height||0)-2*r),g(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,r,i){var n,s,o,a,A,l,h,c,u,p,d,f=this.renderer,m=[];v(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?s="radialGradient":t.linearGradient&&(s="linearGradient"),s){if(o=t[s],A=f.gradients,l=t.stops,u=i.radialReference,b(o)&&(t[s]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===s&&u&&!g(o.gradientUnits)&&(a=o,o=x(o,f.getRadialAttr(u,a),{gradientUnits:"userSpaceOnUse"})),C(o,function(t,e){"id"!==e&&m.push(e,t)}),C(l,function(t){m.push(t)}),m=m.join(","),A[m])p=A[m].attr("id");else{o.id=p=T();var y=A[m]=f.createElement(s).attr(o).add(f.defs);y.radAttr=a,y.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(n=e.parse(t[1]),h=n.get("rgb"),c=n.get("a")):(h=t[1],c=1),t=f.createElement("stop").attr({offset:t[0],"stop-color":h,"stop-opacity":c}).add(y),y.stops.push(t)})}d="url("+f.url+"#"+p+")",i.setAttribute(r,d),i.gradient=m,t.toString=function(){return d}}})},t.prototype.css=function(t){var e=this.styles,r={},i=this.element,n=!e;if(t.color&&(t.fill=t.color),e&&C(t,function(t,i){e&&e[i]!==t&&(r[i]=t,n=!0)}),n){if(e&&(t=y(e,r)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===i.nodeName.toLowerCase()&&t.width)var s=this.textWidth=S(t.width);this.styles=t,s&&!l&&this.renderer.forExport&&delete t.width;var o=x(t);i.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(t){return o&&delete o[t]}),f(i,o),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var r=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+S(r[t])*E(e,NaN);t=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},r=t.renderer,i=e.ownerSVGElement,n=r.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,o(t),t.clipPath&&i){var s=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(s.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=s.destroy()}if(t.stops){for(i=0;i<t.stops.length;i++)t.stops[i].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),r.styledMode||t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;t.alignTo&&m(r.alignedObjects,t),C(t,function(e,r){t[r]&&t[r].parentGroup===t&&t[r].destroy&&t[r].destroy(),delete t[r]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.dSetter=function(t,e,r){b(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,r){return e&&e.join?(r?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(r.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:E(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,r){"string"==typeof t?r.setAttribute(e,t):t&&this.complexColor(t,e,r)},t.prototype.getBBox=function(e,r){var i=this.alignValue,n=this.element,s=this.renderer,o=this.styles,A=this.textStr,l=s.cache,h=s.cacheKeys,c=n.namespaceURI===this.SVG_NS;r=E(r,this.rotation,0);var u,p=s.styledMode?n&&t.prototype.getStyle.call(n,"font-size"):o&&o.fontSize;if(g(A)){var d=A.toString();-1===d.indexOf("<")&&(d=d.replace(/[0-9]/g,"0")),d+=["",r,p,this.textWidth,i,o&&o.textOverflow,o&&o.fontWeight].join()}if(d&&!e&&(u=l[d]),!u){if(c||s.forExport){try{var m=this.fakeTS&&function(t){var e=n.querySelector(".highcharts-text-outline");e&&f(e,{display:t})};w(m)&&m("none"),u=n.getBBox?y({},n.getBBox()):{width:n.offsetWidth,height:n.offsetHeight,x:0,y:0},w(m)&&m("")}catch(t){}(!u||0>u.width)&&(u={x:0,y:0,width:0,height:0})}else u=this.htmlGetBBox();if(s.isSVG&&(s=u.width,e=u.height,c&&(u.height=e={"11px,17":14,"13px,20":16}[""+(p||"")+",".concat(Math.round(e))]||e),r)){c=Number(n.getAttribute("y")||0)-u.y,i={right:1,center:.5}[i||0]||0,o=r*a,p=(r-90)*a;var v=s*Math.cos(o);r=s*Math.sin(o),m=Math.cos(p),o=Math.sin(p),v=(m=(p=(s=u.x+i*(s-v)+c*m)+v)-e*m)-v,r=(e=(i=(c=u.y+c-i*r+c*o)+r)-e*o)-r,u.x=Math.min(s,p,m,v),u.y=Math.min(c,i,e,r),u.width=Math.max(s,p,m,v)-u.x,u.height=Math.max(c,i,e,r)-u.y}if(d&&(""===A||0<u.height)){for(;250<h.length;)delete l[h.shift()];l[d]||h.push(d),l[d]=u}}return u},t.prototype.getStyle=function(t){return c.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?d(e):A.createElementNS(this.SVG_NS,e),this.renderer=t,v(this,"afterInit")},t.prototype.on=function(t,e){var r=this.onEvents;return r[t]&&r[t](),r[t]=u(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,r){this.opacity=t=Number(Number(t).toFixed(3)),r.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(B(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var r=this;e=x(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var i=this.renderer.url,n=this.text||this,s=n.textPath,o=e.attributes,a=e.enabled;return t=t||s&&s.path,s&&s.undo(),t&&a?(e=u(n,"afterModifyTree",function(e){if(t&&a){var s=t.attr("id");s||t.attr("id",s=T());var A={x:0,y:0};g(o.dx)&&(A.dx=o.dx,delete o.dx),g(o.dy)&&(A.dy=o.dy,delete o.dy),n.attr(A),r.attr({transform:""}),r.box&&(r.box=r.box.destroy()),A=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:y(o,{"text-anchor":o.textAnchor,href:""+i+"#".concat(s)}),children:A}}}),n.textPath={path:t,undo:e}):(n.attr({dx:0,dy:0}),delete n.textPath),this.added&&(n.textCache="",this.renderer.buildText(n)),this},t.prototype.shadow=function(t,e,r){var i=[],n=this.element,s=this.oldShadowOptions,o=this.parentGroup,a=o&&90===o.rotation;o={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var A,l=!1;if(!0===t?A=o:"object"==typeof t&&(A=y(o,t)),A&&(A&&s&&C(A,function(t,e){t!==s[e]&&(l=!0)}),l&&this.destroyShadows(),this.oldShadowOptions=A),A){if(!this.shadows){o=A.opacity/A.width;var h=a?"translate(".concat(A.offsetY,", ").concat(A.offsetX,")"):"translate(".concat(A.offsetX,", ").concat(A.offsetY,")");for(a=1;a<=A.width;a++){var c=n.cloneNode(!1),u=2*A.width+1-2*a;p(c,{stroke:t.color||"#000000","stroke-opacity":o*a,"stroke-width":u,transform:h,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),r&&(p(c,"height",Math.max(p(c,"height")-u,0)),c.cutHeight=u),e?e.element.appendChild(c):n.parentNode&&n.parentNode.insertBefore(c,n),i.push(c)}this.shadows=i}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,r){this[e]=t,r.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=S(t);else if(""!==t){var r=A.createElementNS(h,"rect");p(r,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(r),e=r.getBBox().width,r.parentNode.removeChild(r)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(r){e[r]=E(t[r],e[r])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,r=e.getElementsByTagName("title")[0]||A.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(r,e.firstChild):e.appendChild(r),r.textContent=String(E(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,r){var i=this.shadows;if(i)for(var n=i.length;n--;)r.call(i[n],"height"===t?Math.max(e-(i[n].cutHeight||0),0):"d"===t?this.d:e,t,i[n])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,r=this.rotation;r=void 0===r?0:r;var i=this.scaleX,n=this.scaleY,s=this.translateX,o=this.translateY;s=["translate("+(void 0===s?0:s)+","+(void 0===o?0:o)+")"],g(e)&&s.push("matrix("+e.join(",")+")"),r&&s.push("rotate("+r+" "+E(this.rotationOriginX,t.getAttribute("x"),0)+" "+E(this.rotationOriginY,t.getAttribute("y")||0)+")"),(g(i)||g(n))&&s.push("scale("+E(i,1)+" "+E(n,1)+")"),s.length&&!(this.text||this).textPath&&t.setAttribute("transform",s.join(" "))},t.prototype.visibilitySetter=function(t,e,r){"inherit"===t?r.removeAttribute(e):this[e]!==t&&r.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var r=this.renderer,i=this.parentGroup,n=(i||r).element||r.box,s=this.element;r=n===r.box;var o,a=!1,A=this.added;if(g(t)?(s.setAttribute("data-z-index",t),t=+t,this[e]===t&&(A=!1)):g(this[e])&&s.removeAttribute("data-z-index"),this[e]=t,A){for((t=this.zIndex)&&i&&(i.handleZ=!0),o=(e=n.childNodes).length-1;0<=o&&!a;o--){A=(i=e[o]).getAttribute("data-z-index");var l=!g(A);i!==s&&(0>t&&l&&!r&&!o?(n.insertBefore(s,e[o]),a=!0):(S(A)<=t||l&&(!g(t)||0<=t))&&(n.insertBefore(s,e[o+1]||null),a=!0))}a||(n.insertBefore(s,e[r?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t}),e(r,"Core/Renderer/RendererRegistry.js",[r["Core/Globals.js"]],function(t){var e;return function(e){var r;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=r),e.rendererTypes[t]||e.rendererTypes[r]},e.registerRendererType=function(i,n,s){e.rendererTypes[i]=n,r&&!s||(r=i,t.Renderer=n)}}(e||(e={})),e}),e(r,"Core/Renderer/SVG/SVGLabel.js",[r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),i=e.defined,n=e.extend,s=e.isNumber,o=e.merge,a=e.pick,A=e.removeEvent;return function(e){function l(t,r,i,n,s,o,a,A,h,c){var u,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=r,p.x=i,p.y=n,p.anchorX=o,p.anchorY=a,p.baseline=h,p.className=c,p.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&p.addClass("highcharts-"+c),p.text=t.text(void 0,0,0,A).attr({zIndex:1}),"string"==typeof s&&((u=/^url\((.*?)\)$/.test(s))||p.renderer.symbols[s])&&(p.symbolKey=s),p.bBox=l.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||u,p.deferredAttr={},p.alignFactor=0,p}return r(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&s(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var r={};e=o(e),l.textProps.forEach(function(t){void 0!==e[t]&&(r[t]=e[t],delete e[t])}),this.text.css(r),"fontSize"in r||"fontWeight"in r?this.updateTextPadding():("width"in r||"textOverflow"in r)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){A(this.element,"mouseenter"),A(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){s(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,r={},o=this.padding,a=this.bBox=s(this.widthSetting)&&s(this.heightSetting)&&!this.textAlign||!i(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*o,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=o+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),r.x=t,r.y=(this.baseline?-this.baselineOffset:0)+t,r.width=Math.round(this.width),r.height=Math.round(this.height),this.box.attr(n(r,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,r=a(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(r+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),r===t.x&&e===t.y||(t.attr("x",r),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=r,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=s(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)}),e(r,"Core/Renderer/SVG/Symbols.js",[r["Core/Utilities.js"]],function(t){function e(t,e,r,i,s){var a=[];if(s){var A=s.start||0,l=o(s.r,r);r=o(s.r,i||r);var h=(s.end||0)-.001;i=s.innerR;var c=o(s.open,.001>Math.abs((s.end||0)-A-2*Math.PI)),u=Math.cos(A),p=Math.sin(A),d=Math.cos(h),f=Math.sin(h);A=o(s.longArc,.001>h-A-Math.PI?0:1),a.push(["M",t+l*u,e+r*p],["A",l,r,0,A,o(s.clockwise,1),t+l*d,e+r*f]),n(i)&&a.push(c?["M",t+i*d,e+i*f]:["L",t+i*d,e+i*f],["A",i,i,0,A,n(s.clockwise)?1-s.clockwise:0,t+i*u,e+i*p]),c||a.push(["Z"])}return a}function r(t,e,r,n,s){return s&&s.r?i(t,e,r,n,s):[["M",t,e],["L",t+r,e],["L",t+r,e+n],["L",t,e+n],["Z"]]}function i(t,e,r,i,n){return[["M",t+(n=n&&n.r||0),e],["L",t+r-n,e],["C",t+r,e,t+r,e,t+r,e+n],["L",t+r,e+i-n],["C",t+r,e+i,t+r,e+i,t+r-n,e+i],["L",t+n,e+i],["C",t,e+i,t,e+i,t,e+i-n],["L",t,e+n],["C",t,e,t,e,t+n,e]]}var n=t.defined,s=t.isNumber,o=t.pick;return{arc:e,callout:function(t,e,r,n,o){var a=Math.min(o&&o.r||0,r,n),A=a+6,l=o&&o.anchorX;o=o&&o.anchorY||0;var h=i(t,e,r,n,{r:a});return s(l)?(t+l>=r?o>e+A&&o<e+n-A?h.splice(3,1,["L",t+r,o-6],["L",t+r+6,o],["L",t+r,o+6],["L",t+r,e+n-a]):h.splice(3,1,["L",t+r,n/2],["L",l,o],["L",t+r,n/2],["L",t+r,e+n-a]):0>=t+l?o>e+A&&o<e+n-A?h.splice(7,1,["L",t,o+6],["L",t-6,o],["L",t,o-6],["L",t,e+a]):h.splice(7,1,["L",t,n/2],["L",l,o],["L",t,n/2],["L",t,e+a]):o&&o>n&&l>t+A&&l<t+r-A?h.splice(5,1,["L",l+6,e+n],["L",l,e+n+6],["L",l-6,e+n],["L",t+a,e+n]):o&&0>o&&l>t+A&&l<t+r-A&&h.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",r-a,e]),h):h},circle:function(t,r,i,n){return e(t+i/2,r+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,r,i){return[["M",t+r/2,e],["L",t+r,e+i/2],["L",t+r/2,e+i],["L",t,e+i/2],["Z"]]},rect:r,roundedRect:i,square:r,triangle:function(t,e,r,i){return[["M",t+r/2,e],["L",t+r,e+i],["L",t,e+i],["Z"]]},"triangle-down":function(t,e,r,i){return[["M",t,e],["L",t+r,e],["L",t+r/2,e+i],["Z"]]}}}),e(r,"Core/Renderer/SVG/TextBuilder.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var i=e.doc,n=e.SVG_NS,s=e.win,o=r.attr,a=r.extend,A=r.fireEvent,l=r.isString,h=r.objectEach,c=r.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,r=e.element,n=e.renderer,s=c(e.textStr,"").toString(),o=-1!==s.indexOf("<"),a=r.childNodes;n=this.width&&!e.added&&n.box;var A=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(A!==e.textCache){for(e.textCache=A,delete e.actualWidth,A=a.length;A--;)r.removeChild(a[A]);o||this.ellipsis||this.width||e.textPath||-1!==s.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(s))?""!==s&&(n&&n.appendChild(r),s=new t(s),this.modifyTree(s.nodes),s.addToDOM(r),this.modifyDOM(),this.ellipsis&&-1!==(r.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),n&&n.removeChild(r)):r.appendChild(i.createTextNode(this.unescapeEntities(s))),l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,r=this.svgElement,a=o(r.element,"x");for(r.firstLineMetrics=void 0;(t=r.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)r.element.removeChild(t);[].forEach.call(r.element.querySelectorAll("tspan.highcharts-br"),function(t,i){t.nextSibling&&t.previousSibling&&(0===i&&1===t.previousSibling.nodeType&&(r.firstLineMetrics=r.renderer.fontMetrics(void 0,t.previousSibling)),o(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var A=this.width||0;if(A){var l=function(t,s){var l=t.textContent||"",h=l.replace(/([^\^])-/g,"$1- ").split(" "),c=!e.noWrap&&(1<h.length||1<r.element.childNodes.length),u=e.getLineHeight(s),p=0,d=r.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,A-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(c){for(l=[],c=[];s.firstChild&&s.firstChild!==t;)c.push(s.firstChild),s.removeChild(s.firstChild);for(;h.length;)h.length&&!e.noWrap&&0<p&&(l.push(t.textContent||""),t.textContent=h.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,h,0===p&&d||0,A,function(t,e){return h.slice(0,e).join(" ").replace(/- /g,"-")}),d=r.actualWidth,p++;c.forEach(function(e){s.insertBefore(e,t)}),l.forEach(function(e){s.insertBefore(i.createTextNode(e),t),(e=i.createElementNS(n,"tspan")).textContent="​",o(e,{dy:u,x:a}),s.insertBefore(e,t)})}},h=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===s.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(r.actualWidth=0),h(e))})};h(r.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===s.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,r=function(i,n){var s=i.attributes;s=void 0===s?{}:s;var o=i.children,A=i.style;A=void 0===A?{}:A;var l=i.tagName,h=e.renderer.styledMode;"b"===l||"strong"===l?h?s.class="highcharts-strong":A.fontWeight="bold":"i"!==l&&"em"!==l||(h?s.class="highcharts-emphasized":A.fontStyle="italic"),A&&A.color&&(A.fill=A.color),"br"===l?(s.class="highcharts-br",i.textContent="​",(n=t[n+1])&&n.textContent&&(n.textContent=n.textContent.replace(/^ +/gm,""))):"a"===l&&o&&o.some(function(t){return"#text"===t.tagName})&&(i.children=[{children:o,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(i.tagName="tspan"),a(i,{attributes:s,style:A}),o&&o.filter(function(t){return"#text"!==t.tagName}).forEach(r)};t.forEach(r),A(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,r,i,n,s){var o,a=this.svgElement,A=a.renderer,l=a.rotation,h=[],c=r?1:0,u=(e||r||"").length,p=u,d=function(n,o){o=o||n;var l=t.parentNode;if(l&&void 0===h[o])if(l.getSubStringLength)try{h[o]=i+l.getSubStringLength(0,r?o+1:o)}catch(t){}else A.getSpanWidth&&(t.textContent=s(e||r,n),h[o]=i+A.getSpanWidth(a,t));return h[o]};a.rotation=0;var f=d(t.textContent.length);if(i+f>n){for(;c<=u;)p=Math.ceil((c+u)/2),r&&(o=s(r,p)),f=d(p,o&&o.length-1),c===u?c=u+1:f>n?u=p-1:c=p;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=o||s(e||r,p))}r&&r.splice(0,p),a.actualWidth=f,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return h(this.renderer.escapes,function(r,i){e&&-1!==e.indexOf(r)||(t=t.toString().replace(new RegExp(r,"g"),i))}),t},e}()}),e(r,"Core/Renderer/SVG/SVGRenderer.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGLabel.js"],r["Core/Renderer/SVG/Symbols.js"],r["Core/Renderer/SVG/TextBuilder.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a,A){var l,h=r.charts,c=r.deg2rad,u=r.doc,p=r.isFirefox,d=r.isMS,f=r.isWebKit,g=r.noop,m=r.SVG_NS,y=r.symbolSizes,v=r.win,b=A.addEvent,w=A.attr,B=A.createElement,x=A.css,C=A.defined,E=A.destroyObjectProperties,S=A.extend,F=A.isArray,T=A.isNumber,I=A.isObject,_=A.isString,k=A.merge,L=A.pick,P=A.pInt,N=A.uniqueKey;return r=function(){function r(t,e,r,i,n,s,o){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,r,i,n,s,o)}return r.prototype.init=function(t,e,r,i,n,s,o){var a,A=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=A.element;o||A.css(this.getStyle(i)),t.appendChild(l),w(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&w(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=A,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=n,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,r,!1),p&&t.getBoundingClientRect&&((e=function(){x(t,{left:0,top:0}),a=t.getBoundingClientRect(),x(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(v,"resize",e))},r.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},r.prototype.getReferenceURL=function(){if((p||f)&&u.getElementsByTagName("base").length){if(!C(l)){var e=N();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(u.body),x(e,{position:"fixed",top:0,left:0,zIndex:9e5});var r=u.elementFromPoint(6,6);l="hitme"===(r&&r.id),u.body.removeChild(e)}if(l)return v.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},r.prototype.getStyle=function(t){return this.style=S({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},r.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},r.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},r.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),E(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},r.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},r.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},r.prototype.buildText=function(t){new a(t).buildSVG()},r.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map(function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},r.prototype.button=function(e,r,i,n,s,o,a,A,l,h){void 0===s&&(s={});var c=this.label(e,r,i,l,void 0,void 0,h,void 0,"button"),u=this.styledMode;e=s.states||{};var p=0;delete(s=k(s)).states;var f=k({color:"#333333",cursor:"pointer",fontWeight:"normal"},s.style);delete s.style;var g=t.filterUserAttributes(s);if(c.attr(k({padding:8,r:2},g)),!u){g=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);var m=(o=k(g,{fill:"#e6e6e6"},t.filterUserAttributes(o||e.hover||{}))).style;delete o.style;var y=(a=k(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var v=(A=k(g,{style:{color:"#cccccc"}},t.filterUserAttributes(A||e.disabled||{}))).style;delete A.style}return b(c.element,d?"mouseover":"mouseenter",function(){3!==p&&c.setState(1)}),b(c.element,d?"mouseout":"mouseleave",function(){3!==p&&c.setState(p)}),c.setState=function(t){1!==t&&(c.state=p=t),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),u||(c.attr([g,o,a,A][t||0]),I(t=[f,m,y,v][t||0])&&c.css(t))},u||(c.attr(g).css(S({cursor:"default"},f)),h&&c.text.css({pointerEvents:"none"})),c.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==p&&n.call(c,t)})},r.prototype.crispLine=function(t,e,r){void 0===r&&(r="round");var i=t[0],n=t[1];return C(i[1])&&i[1]===n[1]&&(i[1]=n[1]=Math[r](i[1])-e%2/2),C(i[2])&&i[2]===n[2]&&(i[2]=n[2]=Math[r](i[2])+e%2/2),t},r.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return F(t)?e.d=t:I(t)&&S(e,t),this.createElement("path").attr(e)},r.prototype.circle=function(t,e,r){return t=I(t)?t:void 0===t?{}:{x:t,y:e,r},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,r){r.setAttribute("c"+e,t)},e.attr(t)},r.prototype.arc=function(t,e,r,i,n,s){return I(t)?(e=(i=t).y,r=i.r,t=i.x):i={innerR:i,start:n,end:s},(t=this.symbol("arc",t,e,r,r,i)).r=r,t},r.prototype.rect=function(t,e,r,i,n,s){n=I(t)?t.r:n;var o=this.createElement("rect");return t=I(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(r,0),height:Math.max(i,0)},this.styledMode||(void 0!==s&&(t["stroke-width"]=s,t=o.crisp(t)),t.fill="none"),n&&(t.r=n),o.rSetter=function(t,e,r){o.r=t,w(r,{rx:t,ry:t})},o.rGetter=function(){return o.r||0},o.attr(t)},r.prototype.setSize=function(t,e,r){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(r,!0)?void 0:0}),this.alignElements()},r.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},r.prototype.image=function(t,e,r,i,n,s){var o={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};T(e)&&(o.x=e),T(r)&&(o.y=r),T(i)&&(o.width=i),T(n)&&(o.height=n);var A=this.createElement("image").attr(o);return e=function(e){a(A.element,t),s.call(A,e)},s?(a(A.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r=new v.Image,b(r,"load",e),r.src=t,r.complete&&e({})):a(A.element,t),A},r.prototype.symbol=function(t,e,r,i,n,s){var o,a=this,A=/^url\((.*?)\)$/,l=A.test(t),c=!l&&(this.symbols[t]?t:"circle"),p=c&&this.symbols[c];if(p){"number"==typeof e&&(o=p.call(this.symbols,Math.round(e||0),Math.round(r||0),i||0,n||0,s));var d=this.path(o);a.styledMode||d.attr("fill","none"),S(d,{symbolName:c||void 0,x:e,y:r,width:i,height:n}),s&&S(d,s)}else if(l){var f=t.match(A)[1],g=d=this.image(f);g.imgwidth=L(y[f]&&y[f].width,s&&s.width),g.imgheight=L(y[f]&&y[f].height,s&&s.height);var m=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach(function(t){g[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var r=this.element,i=this.width,n=this.height,o=this.imgwidth,a=this.imgheight,A=this["img"+e];if(C(A)){var l=1;s&&"within"===s.backgroundSize&&i&&n?(l=Math.min(i/o,n/a),A=Math.round(A*l),w(r,{width:Math.round(o*l),height:Math.round(a*l)})):r&&r.setAttribute(e,A),t||this.translate(((i||0)-A*l)/2,((n||0)-A*l)/2)}}}),C(e)&&g.attr({x:e,y:r}),g.isImg=!0,C(g.imgwidth)&&C(g.imgheight)?m(g):(g.attr({width:0,height:0}),B("img",{onload:function(){var t=h[a.chartIndex];0===this.width&&(x(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this)),y[f]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&m(g),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:f}),this.imgCount++)}return d},r.prototype.clipRect=function(t,e,r,i){var n=N()+"-",s=this.createElement("clipPath").attr({id:n}).add(this.defs);return(t=this.rect(t,e,r,i,0).add(s)).id=n,t.clipPath=s,t.count=0,t},r.prototype.text=function(t,e,r,i){var n={};return!i||!this.allowHTML&&this.forExport?(n.x=Math.round(e||0),r&&(n.y=Math.round(r)),C(t)&&(n.text=t),t=this.createElement("text").attr(n),(!i||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,r){for(var i,n=r.getElementsByTagName("tspan"),s=r.getAttribute(e),o=0;o<n.length;o++)(i=n[o]).getAttribute(e)===s&&i.setAttribute(e,t);r.setAttribute(e,t)}),t):this.html(t,e,r)},r.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!v.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&n.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?P(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},r.prototype.rotCorr=function(t,e,r){var i=t;return e&&r&&(i=Math.max(i*Math.cos(e*c),4)),{x:-t/3*Math.sin(e*c),y:i}},r.prototype.pathToSegments=function(t){for(var e=[],r=[],i={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<t.length;n++)_(r[0])&&T(t[n])&&r.length===i[r[0].toUpperCase()]&&t.splice(n,0,r[0].replace("M","L").replace("m","l")),"string"==typeof t[n]&&(r.length&&e.push(r.slice(0)),r.length=0),r.push(t[n]);return e.push(r.slice(0)),e},r.prototype.label=function(t,e,r,i,n,o,a,A,l){return new s(this,t,e,r,i,n,o,a,A,l)},r.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},r}(),S(r.prototype,{Element:n,SVG_NS:m,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:o,draw:g}),i.registerRendererType("svg",r,!0),r}),e(r,"Core/Renderer/HTML/HTMLElement.js",[r["Core/Globals.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=t.isFirefox,s=t.isMS,o=t.isWebKit,a=t.win,A=r.css,l=r.defined,h=r.extend,c=r.pick,u=r.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var r=e.prototype,i=t.prototype;i.getSpanCorrection=r.getSpanCorrection,i.htmlCss=r.htmlCss,i.htmlGetBBox=r.htmlGetBBox,i.htmlUpdateTransform=r.htmlUpdateTransform,i.setSpanRotation=r.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,r){this.xCorr=-t*r,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,r=c(e&&t.width,void 0);if(e){delete t.width,this.textWidth=r;var i=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=h(this.styles,t),A(this.element,t),i&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,r=this.translateX||0,i=this.translateY||0,n=this.x||0,s=this.y||0,o=this.textAlign||"left",a={left:0,center:.5,right:1}[o],h=this.styles;if(h=h&&h.whiteSpace,A(e,{marginLeft:r,marginTop:i}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){A(t,{marginLeft:r+1,marginTop:i+1})}),this.inverted&&[].forEach.call(e.childNodes,function(r){t.invertChild(r,e)}),"SPAN"===e.tagName){var c=this.rotation,p=this.textWidth&&u(this.textWidth),d=[c,o,e.innerHTML,this.textWidth,this.textAlign].join(),f=void 0;if(f=!1,p!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else A(e,{width:"",whiteSpace:h||"nowrap"}),g=e.offsetWidth;(p>this.oldTextWidth||g>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(A(e,{width:g>p||c?p+"px":"auto",display:"block",whiteSpace:h||"normal"}),this.oldTextWidth=p,f=!0)}this.hasBoxWidthChanged=f,d!==this.cTT&&(f=t.fontMetrics(e.style.fontSize,e).b,!l(c)||c===(this.oldRotation||0)&&o===this.oldAlign||this.setSpanRotation(c,a,f),this.getSpanCorrection(!l(c)&&this.textPxLength||e.offsetWidth,f,a,c,o)),A(e,{left:n+(this.xCorr||0)+"px",top:s+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=c,this.oldAlign=o}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,r){var i={},l=s&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":o?"-webkit-transform":n?"MozTransform":a.opera?"-o-transform":void 0;l&&(i[l]=i.transform="rotate("+t+"deg)",i[l+(n?"Origin":"-origin")]=i.transformOrigin=100*e+"% "+r+"px",A(this.element,i))},e.composedClasses=[],e}(e)}),e(r,"Core/Renderer/HTML/HTMLRenderer.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=i.attr,o=i.createElement,a=i.extend,A=i.pick;return function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return n(i,r),i.compose=function(t){return-1===i.composedClasses.indexOf(t)&&(i.composedClasses.push(t),t.prototype.html=i.prototype.html),t},i.prototype.html=function(r,i,n){var l=this.createElement("span"),h=l.element,c=l.renderer,u=c.isSVG,p=function(t,r){["opacity","visibility"].forEach(function(i){t[i+"Setter"]=function(n,s,o){var a=t.div?t.div.style:r;e.prototype[i+"Setter"].call(this,n,s,o),a&&(a[s]=n)}}),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,A(e,"")),this.textStr=e,l.doTransform=!0)},u&&p(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:r,x:Math.round(i),y:Math.round(n)}).css({position:"absolute"}),c.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),h.style.whiteSpace="nowrap",l.css=l.htmlCss,u&&(l.add=function(t){var e=c.box.parentNode,r=[];if(this.parentGroup=t){var i=t.div;if(!i){for(;t;)r.push(t),t=t.parentGroup;r.reverse().forEach(function(t){function n(e,r){t[r]=e,"translateX"===r?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var A=s(t.element,"class"),h=t.styles||{},c=(i=t.div=t.div||o("div",A?{className:A}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:h.cursor,pointerEvents:h.pointerEvents,visibility:t.visibility},i||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return r[0].div&&l.on.apply({element:r[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:n,translateYSetter:n}),t.addedSetters||p(t)})}}else i=e;return i.appendChild(h),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},i.composedClasses=[],i}(r)}),e(r,"Core/Axis/AxisDefaults.js",[],function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t}),e(r,"Core/Foundation.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,i=t.isFunction,n=t.objectEach,s=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},n(e.events,function(e,n){t.eventOptions[n]!==e&&(t.eventOptions[n]&&(s(t,n,t.eventOptions[n]),delete t.eventOptions[n]),i(e)&&(t.eventOptions[n]=e,r(t,n,e)))})}}(e||(e={})),e}),e(r,"Core/Axis/Tick.js",[r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var i=e.deg2rad,n=r.clamp,s=r.correctFloat,o=r.defined,a=r.destroyObjectProperties,A=r.extend,l=r.fireEvent,h=r.isNumber,c=r.merge,u=r.objectEach,p=r.pick;return e=function(){function e(t,e,r,i,n){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=r||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),r||i||this.addLabel()}return e.prototype.addLabel=function(){var e=this,r=e.axis,i=r.options,n=r.chart,a=r.categories,c=r.logarithmic,u=r.names,d=e.pos,f=p(e.options&&e.options.labels,i.labels),g=r.tickPositions,m=d===g[0],y=d===g[g.length-1],v=(!f.step||1===f.step)&&1===r.tickInterval;g=g.info;var b,w=e.label;if(a=this.parameters.category||(a?p(a[d],u[d],d):d),c&&h(a)&&(a=s(c.lin2log(a))),r.dateTime)if(g)var B=n.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&g.higherRanks[d]||g.unitName]),x=B.main;else h(a)&&(x=r.dateTime.getXDateFormat(a,i.dateTimeLabelFormats||{}));e.isFirst=m,e.isLast=y;var C={axis:r,chart:n,dateTimeLabelFormat:x,isFirst:m,isLast:y,pos:d,tick:e,tickPositionInfo:g,value:a};l(this,"labelFormat",C);var E=function(e){return f.formatter?f.formatter.call(e,e):f.format?(e.text=r.defaultLabelFormatter.call(e,e),t.format(f.format,e,n)):r.defaultLabelFormatter.call(e,e)};i=E.call(C,C);var S=B&&B.list;e.shortenLabel=S?function(){for(b=0;b<S.length;b++)if(A(C,{dateTimeLabelFormat:S[b]}),w.attr({text:E.call(C,C)}),w.getBBox().width<r.getSlotWidth(e)-2*f.padding)return;w.attr({text:""})}:void 0,v&&r._addedPlotLB&&e.moveLabel(i,f),o(w)||e.movedLabel?w&&w.textStr!==i&&!v&&(!w.textWidth||f.style.width||w.styles.width||w.css({width:null}),w.attr({text:i}),w.textPxLength=w.getBBox().width):(e.label=w=e.createLabel({x:0,y:0},i,f),e.rotation=0)},e.prototype.createLabel=function(t,e,r){var i=this.axis,n=i.chart;return(t=o(e)&&r.enabled?n.renderer.text(e,t.x,t.y,r.useHTML).add(i.labelGroup):null)&&(n.styledMode||t.css(c(r.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,r,i){var o=this.axis,a=o.chart,A=i&&a.oldChartHeight||a.chartHeight;return(t={x:t?s(o.translate(e+r,void 0,void 0,i)+o.transB):o.left+o.offset+(o.opposite?(i&&a.oldChartWidth||a.chartWidth)-o.right-o.left:0),y:t?A-o.bottom+o.offset-(o.opposite?o.height:0):s(A-o.translate(e+r,void 0,void 0,i)-o.transB)}).y=n(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,r,n,s,a,A,h){var c=this.axis,u=c.transA,p=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,d=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},g=n||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),m={};return r=0===c.side?r.rotation?-8:-r.getBBox().height:2===c.side?f.y+8:Math.cos(r.rotation*i)*(f.y-r.getBBox(!1,0).height/2),o(s.y)&&(r=0===c.side&&c.horiz?s.y+r:s.y),t=t+s.x+g+f.x-(a&&n?a*u*(p?-1:1):0),e=e+r-(a&&!n?a*u*(p?1:-1):0),d&&(n=A/(h||1)%d,c.opposite&&(n=d-n-1),e+=c.labelOffset/d*n),m.x=t,m.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:a,index:A}),m},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,r,i,n,s){return s.crispLine([["M",t,e],["L",t+(n?0:-r),e+(n?r:0)]],i)},e.prototype.handleOverflow=function(t){var e=this.axis,r=e.options.labels,n=t.x,s=e.chart.chartWidth,o=e.chart.spacing,a=p(e.labelLeft,Math.min(e.pos,o[3]));o=p(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,s-o[1]));var A,l=this.label,h=this.rotation,c={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],u=l.getBBox().width,d=e.getSlotWidth(this),f={},g=d,m=1;h||"justify"!==r.overflow?0>h&&n-c*u<a?A=Math.round(n/Math.cos(h*i)-a):0<h&&n+c*u>o&&(A=Math.round((s-n)/Math.cos(h*i))):(s=n+(1-c)*u,n-c*u<a?g=t.x+g*(1-c)-a:s>o&&(g=o-t.x+g*c,m=-1),(g=Math.min(d,g))<d&&"center"===e.labelAlign&&(t.x+=m*(d-g-c*(d-Math.min(u,g)))),(u>g||e.autoRotation&&(l.styles||{}).width)&&(A=g)),A&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(A)+"px",(r.style||{}).textOverflow||(f.textOverflow="ellipsis"),l.css(f)))},e.prototype.moveLabel=function(t,e){var r=this,i=r.label,n=r.axis,s=n.reversed,o=!1;if(i&&i.textStr===t?(r.movedLabel=i,o=!0,delete r.label):u(n.ticks,function(e){o||e.isNew||e===r||!e.label||e.label.textStr!==t||(r.movedLabel=e.label,o=!0,e.labelPos=r.movedLabel.xy,delete e.label)}),!o&&(r.labelPos||i)){var a=r.labelPos||i.xy;i=n.horiz?s?0:n.width+n.left:a.x,n=n.horiz?a.y:s?n.width+n.left:0,r.movedLabel=r.createLabel({x:i,y:n},t,e),r.movedLabel&&r.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,r){var i=this.axis,n=i.horiz,s=this.pos,o=p(this.tickmarkOffset,i.tickmarkOffset);o=(s=this.getPosition(n,s,o,e)).x;var a=s.y;i=n&&o===i.pos+i.len||!n&&a===i.pos?-1:1,n=p(r,this.label&&this.label.newOpacity,1),r=p(r,1),this.isActive=!0,this.renderGridLine(e,r,i),this.renderMark(s,r,i),this.renderLabel(s,e,n,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,r){var i=this.axis,n=i.options,s={},o=this.pos,a=this.type,A=p(this.tickmarkOffset,i.tickmarkOffset),l=i.chart.renderer,h=this.gridLine,c=n.gridLineWidth,u=n.gridLineColor,d=n.gridLineDashStyle;"minor"===this.type&&(c=n.minorGridLineWidth,u=n.minorGridLineColor,d=n.minorGridLineDashStyle),h||(i.chart.styledMode||(s.stroke=u,s["stroke-width"]=c||0,s.dashstyle=d),a||(s.zIndex=1),t&&(e=0),this.gridLine=h=l.path().attr(s).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(i.gridGroup)),h&&(r=i.getPlotLinePath({value:o+A,lineWidth:h.strokeWidth()*r,force:"pass",old:t,acrossPanes:!1}))&&h[t||this.isNew?"attr":"animate"]({d:r,opacity:e})},e.prototype.renderMark=function(t,e,r){var i=this.axis,n=i.options,s=i.chart.renderer,o=this.type,a=i.tickSize(o?o+"Tick":"tick"),A=t.x;t=t.y;var l=p(n["minor"!==o?"tickWidth":"minorTickWidth"],!o&&i.isXAxis?1:0);n=n["minor"!==o?"tickColor":"minorTickColor"];var h=this.mark,c=!h;a&&(i.opposite&&(a[0]=-a[0]),h||(this.mark=h=s.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||h.attr({stroke:n,"stroke-width":l})),h[c?"attr":"animate"]({d:this.getMarkPath(A,t,a[0],h.strokeWidth()*r,i.horiz,s),opacity:e}))},e.prototype.renderLabel=function(t,e,r,i){var n=this.axis,s=n.horiz,o=n.options,a=this.label,A=o.labels,l=A.step;n=p(this.tickmarkOffset,n.tickmarkOffset);var c=t.x;t=t.y;var u=!0;a&&h(c)&&(a.xy=t=this.getLabelPosition(c,t,a,s,A,n,i,l),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?u=!1:!s||A.step||A.rotation||e||0===r||this.handleOverflow(t),l&&i%l&&(u=!1),u&&h(t.y)?(t.opacity=r,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,r=e.reversed;if(t&&!this.isNew){var i=e.horiz?r?e.left:e.width+e.left:t.xy.x;r=e.horiz?t.xy.y:r?e.width+e.top:e.top,t.animate({x:i,y:r,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e}),e(r,"Core/Axis/Axis.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/AxisDefaults.js"],r["Core/Color/Color.js"],r["Core/Defaults.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Axis/Tick.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a){var A=t.animObject,l=i.defaultOptions,h=n.registerEventOptions,c=s.deg2rad,u=a.arrayMax,p=a.arrayMin,d=a.clamp,f=a.correctFloat,g=a.defined,m=a.destroyObjectProperties,y=a.erase,v=a.error,b=a.extend,w=a.fireEvent,B=a.isArray,x=a.isNumber,C=a.isString,E=a.merge,S=a.normalizeTickInterval,F=a.objectEach,T=a.pick,I=a.relativeLength,_=a.removeEvent,k=a.splat,L=a.syncTimeout,P=function(t,e){return S(e,void 0,void 0,T(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var r=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!r:r,this.isXAxis=r,this.coll=this.coll||(r?"xAxis":"yAxis"),w(this,"init",{userOptions:e}),this.opposite=T(e.opposite,this.opposite),this.side=T(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var i=this.options,n=i.labels,s=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=T(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===s||!0===i.categories,this.categories=i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=T(i.crosshair,k(t.options.tooltip.crosshairs)[r?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=x(n.rotation)?n.rotation:void 0,h(this,i),w(this,"afterInit")},t.prototype.setOptions=function(t){this.options=E(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],E(l[this.coll],t)),w(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var r=x(this.value)?this.value:NaN,i=e.chart.time,n=this.dateTimeLabelFormat,s=l.lang,o=s.numericSymbols;s=s.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(r):e.tickInterval,A=o&&o.length;if(e.categories)var h="".concat(this.value);else if(n)h=i.dateFormat(n,r);else if(A&&1e3<=a)for(;A--&&void 0===h;)a>=(e=Math.pow(s,A+1))&&0==10*r%e&&null!==o[A]&&0!==r&&(h=t(r/e,-1)+o[A]);return void 0===h&&(h=1e4<=Math.abs(r)?t(r,-1):t(r,-1,void 0,"")),h},t.prototype.getSeriesExtremes=function(){var t,e=this,r=e.chart;w(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(i){if(i.visible||!r.options.chart.ignoreHiddenSeries){var n=i.options,s=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=s&&(s=null),e.isXAxis){if((n=i.xData).length){n=e.logarithmic?n.filter(e.validatePositiveValue):n;var o=(t=i.getXExtremes(n)).min,a=t.max;x(o)||o instanceof Date||(n=n.filter(x),o=(t=i.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(T(e.dataMin,o),o),e.dataMax=Math.max(T(e.dataMax,a),a))}}else i=i.applyExtremes(),x(i.dataMin)&&(o=i.dataMin,e.dataMin=Math.min(T(e.dataMin,o),o)),x(i.dataMax)&&(a=i.dataMax,e.dataMax=Math.max(T(e.dataMax,a),a)),g(s)&&(e.threshold=s),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),w(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,r,i,n,s){var o=this.linkedParent||this,a=i&&o.old?o.old.min:o.min;if(!x(a))return NaN;var A=o.minPixelPadding;n=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&n)&&o.lin2val;var l=1,h=0;return(i=i&&o.old?o.old.transA:o.transA)||(i=o.transA),r&&(l*=-1,h=o.len),o.reversed&&(h-=(l*=-1)*(o.sector||o.len)),e?(s=(t*l+h-A)/i+a,n&&(s=o.lin2val(s))):(n&&(t=o.val2lin(t)),t=l*(t-a)*i,s=(o.isRadial?t:f(t))+h+l*A+(x(s)?i*s:0)),s},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,r){return"pass"!==v&&(t<e||t>r)&&(v?t=d(t,e,r):o=!0),t}var r,i,n,s,o,a=this,A=a.chart,l=a.left,h=a.top,c=t.old,u=t.value,p=t.lineWidth,f=c&&A.oldChartHeight||A.chartHeight,g=c&&A.oldChartWidth||A.chartWidth,m=a.transB,y=t.translatedValue,v=t.force;return t={value:u,lineWidth:p,old:c,force:v,acrossPanes:t.acrossPanes,translatedValue:y},w(this,"getPlotLinePath",t,function(t){y=T(y,a.translate(u,void 0,void 0,c)),y=d(y,-1e5,1e5),r=n=Math.round(y+m),i=s=Math.round(f-y-m),x(y)?a.horiz?(i=h,s=f-a.bottom,r=n=e(r,l,l+a.width)):(r=l,n=g-a.right,i=s=e(i,h,h+a.height)):(o=!0,v=!1),t.path=o&&!v?null:A.renderer.crispLine([["M",r,i],["L",n,s]],p||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,r){var i=f(Math.floor(e/t)*t);r=f(Math.ceil(r/t)*t);var n,s=[];if(f(i+t)===i&&(n=20),this.single)return[e];for(e=i;e<=r&&(s.push(e),(e=f(e+t,n))!==o);)var o=e;return s},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?T(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,r=this.minorTickInterval,i=this.pointRangePadding||0,n=this.min-i,s=(i=this.max+i)-n,o=[];if(s&&s/r<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,i){e&&o.push.apply(o,a.getLogTickPositions(r,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())o=o.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),n,i,t.startOfWeek));else for(t=n+(e[0]-n)%r;t<=i&&t!==o[0];t+=r)o.push(t)}return 0!==o.length&&this.trimTicks(o),o},t.prototype.adjustForMinRange=function(){var t,e,r,i,n=this.options,s=this.logarithmic,o=this.min,a=this.max,A=0;if(this.isXAxis&&void 0===this.minRange&&!s&&(g(n.min)||g(n.max)||g(n.floor)||g(n.ceiling)?this.minRange=null:(this.series.forEach(function(n){if(r=n.xData,i=n.xIncrement?1:r.length-1,1<r.length)for(t=i;0<t;t--)e=r[t]-r[t-1],(!A||e<A)&&(A=e)}),this.minRange=Math.min(5*A,this.dataMax-this.dataMin))),a-o<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,h=this.minRange,c=(h-a+o)/2;c=[o-c,T(n.min,o-c)],l&&(c[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(o=u(c))+h,T(n.max,o+h)],l&&(a[2]=s?s.log2lin(this.dataMax):this.dataMax),(a=p(a))-o<h&&(c[0]=a-h,c[1]=T(n.min,a-h),o=u(c))}this.min=o,this.max=a},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach(function(e){var r=e.closestPointRange,i=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&g(r)&&i&&(t=g(t)?Math.min(t,r):r)}),t},t.prototype.nameToX=function(t){var e=B(this.options.categories),r=e?this.categories:this.names,i=t.options.x;if(t.series.requireSorting=!1,g(i)||(i=this.options.uniqueNames&&r?e?r.indexOf(t.name):T(r.keys[t.name],-1):t.series.autoIncrement()),-1===i){if(!e&&r)var n=r.length}else n=i;return void 0!==n?(this.names[n]=t.name,this.names.keys[t.name]=n):t.x&&(n=t.x),n},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(r,i){if(r&&r.options&&void 0!==r.name){var n=t.nameToX(r);void 0!==n&&n!==r.x&&(r.x=n,e.xData[i]=n)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,r=t.linkedParent,i=!!t.categories,n=t.isXAxis,s=t.axisPointRange||0,o=0,a=0,A=t.transA;if(n||i||s){var l=t.getClosest();r?(o=r.minPointOffset,a=r.pointRangePadding):t.series.forEach(function(e){var r=i?1:n?T(e.options.pointRange,l,0):t.axisPointRange||0,A=e.options.pointPlacement;s=Math.max(s,r),t.single&&!i||(e=e.is("xrange")?!n:n,o=Math.max(o,e&&C(A)?0:r/2),a=Math.max(a,e&&"on"===A?0:r))}),r=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=o*=r,t.pointRangePadding=a*=r,t.pointRange=Math.min(s,t.single&&i?1:e),n&&(t.closestPointRange=l)}t.translationSlope=t.transA=A=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=A*o,w(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,r=this.logarithmic,i=this.options,n=this.isXAxis,s=this.isLinked,o=i.tickPixelInterval,a=this.categories,A=this.softThreshold,l=i.maxPadding,h=i.minPadding,c=x(i.tickInterval)&&0<=i.tickInterval?i.tickInterval:void 0,u=x(this.threshold)?this.threshold:null;this.dateTime||a||s||this.getTickAmount();var p=T(this.userMin,i.min),d=T(this.userMax,i.max);if(s){this.linkedParent=e[this.coll][i.linkedTo];var m=this.linkedParent.getExtremes();this.min=T(m.min,m.dataMin),this.max=T(m.max,m.dataMax),i.type!==this.linkedParent.options.type&&v(11,1,e)}else{if(A&&g(u))if(this.dataMin>=u)m=u,h=0;else if(this.dataMax<=u){var y=u;l=0}this.min=T(p,m,this.dataMin),this.max=T(d,y,this.dataMax)}if(r&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,T(this.dataMin,this.min))&&v(10,1,e),this.min=f(r.log2lin(this.min),16),this.max=f(r.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=d=this.max,this.range=null),w(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||s)&&g(this.min)&&g(this.max)&&(e=this.max-this.min)&&(!g(p)&&h&&(this.min-=e*h),!g(d)&&l&&(this.max+=e*l)),x(this.userMin)||(x(i.softMin)&&i.softMin<this.min&&(this.min=p=i.softMin),x(i.floor)&&(this.min=Math.max(this.min,i.floor))),x(this.userMax)||(x(i.softMax)&&i.softMax>this.max&&(this.max=d=i.softMax),x(i.ceiling)&&(this.max=Math.min(this.max,i.ceiling))),A&&g(this.dataMin)&&(u=u||0,!g(p)&&this.min<u&&this.dataMin>=u?this.min=this.options.minRange?Math.min(u,this.max-this.minRange):u:!g(d)&&this.max>u&&this.dataMax<=u&&(this.max=this.options.minRange?Math.max(u,this.min+this.minRange):u)),x(this.min)&&x(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:s&&this.linkedParent&&!c&&o===this.linkedParent.options.tickPixelInterval?c=this.linkedParent.tickInterval:T(c,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*o/Math.max(this.len,o)),n&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)}),w(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),w(this,"initialAxisTranslation"),this.pointRange&&!c&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=T(i.minTickInterval,this.dateTime&&!this.series.some(function(t){return t.noSharedTooltip})?this.closestPointRange:0),!c&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||c||(this.tickInterval=P(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,r=e.tickPositions,i=e.tickPositioner,n=this.getMinorTickInterval(),s=this.hasVerticalPanning(),o="colorAxis"===this.coll,a=(o||!s)&&e.startOnTick;if(s=(o||!s)&&e.endOnTick,o=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),r)o=r.slice();else if(x(this.min)&&x(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)o=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)o=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(n=e=this.tickInterval;n<=2*e&&(o=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&o.length>this.tickAmount);)this.tickInterval=P(this,n*=1.1);else o=[this.min,this.max],v(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]])[0]===o[1]&&(o.length=1),i&&(this.tickPositions=o,(t=i.apply(this,[this.min,this.max]))&&(o=t))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,a,s),!this.isLinked&&x(this.min)&&x(this.max)&&(this.single&&2>o.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),r||t||this.adjustTickAmount()),w(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,r){var i=t[0],n=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(w(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-s>t[0];)t.shift();if(r)this.max=n;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&g(i)&&!this.options.tickPositions&&t.push((n+i)/2)}},t.prototype.alignToOthers=function(){var t,e=this,r=[this],i=e.options,n="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,s=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&i.alignTicks||n)&&!1!==i.startOnTick&&!1!==i.endOnTick&&!e.logarithmic){var o=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=o(this);this.chart[this.coll].forEach(function(i){var n=i.series;n.length&&n.some(function(t){return t.visible})&&i!==e&&o(i)===a&&(t=!0,r.push(i))})}if(t&&n){r.forEach(function(t){t=t.getThresholdAlignment(e),x(t)&&s.push(t)});var A=1<s.length?s.reduce(function(t,e){return t+e},0)/s.length:void 0;r.forEach(function(t){t.thresholdAlignment=A})}return t},t.prototype.getThresholdAlignment=function(t){if((!x(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),x(this.threshold))return t=d((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,r=t.tickAmount;!g(t.tickInterval)&&!r&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(r=2),!r&&this.alignToOthers()&&(r=Math.ceil(this.len/e)+1),4>r&&(this.finalTickAmt=r,r=5),this.tickAmount=r},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,r=t.max,i=t.min,n=t.options,s=t.tickPositions,o=t.tickAmount,a=t.thresholdAlignment,A=s&&s.length,l=T(t.threshold,t.softThreshold?0:null),h=t.tickInterval;if(x(a)){var c=.5>a?Math.ceil(a*(o-1)):Math.floor(a*(o-1));n.reversed&&(c=o-1-c)}if(t.hasData()&&x(i)&&x(r)){if(a=function(){t.transA*=(A-1)/(o-1),t.min=n.startOnTick?s[0]:Math.min(i,s[0]),t.max=n.endOnTick?s[s.length-1]:Math.max(r,s[s.length-1])},x(c)&&x(t.threshold)){for(;s[c]!==l||s.length!==o||s[0]>i||s[s.length-1]<r;){for(s.length=0,s.push(t.threshold);s.length<o;)void 0===s[c]||s[c]>t.threshold?s.unshift(f(s[0]-h)):s.push(f(s[s.length-1]+h));if(h>8*t.tickInterval)break;h*=2}a()}else if(A<o){for(;s.length<o;)s.length%2||i===l?s.push(f(s[s.length-1]+h)):s.unshift(f(s[0]-h));a()}if(g(e)){for(h=l=s.length;h--;)(3===e&&1==h%2||2>=e&&0<h&&h<l-1)&&s.splice(h,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach(function(r){t=t||r.isDirtyData||r.isDirty,e=e||r.xAxis&&r.xAxis.isDirty||!1}),this.setAxisSize();var r=this.len!==(this.old&&this.old.len);r||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=r||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),w(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,r,i,n){var s=this,o=s.chart;r=T(r,!0),s.series.forEach(function(t){delete t.kdTree}),n=b(n,{min:t,max:e}),w(s,"setExtremes",n,function(){s.userMin=t,s.userMax=e,s.eventArgs=n,r&&o.redraw(i)})},t.prototype.zoom=function(t,e){var r=this,i=this.dataMin,n=this.dataMax,s=this.options,o=Math.min(i,T(s.min,i)),a=Math.max(n,T(s.max,n));return w(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,s=t.newMax;e===r.min&&s===r.max||(r.allowZoomOutside||(g(i)&&(e<o&&(e=o),e>a&&(e=a)),g(n)&&(s<o&&(s=o),s>a&&(s=a))),r.displayBtn=void 0!==e||void 0!==s,r.setExtremes(e,s,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,r=e.offsets||[0,0,0,0],i=this.horiz,n=this.width=Math.round(I(T(e.width,t.plotWidth-r[3]+r[1]),t.plotWidth)),s=this.height=Math.round(I(T(e.height,t.plotHeight-r[0]+r[2]),t.plotHeight)),o=this.top=Math.round(I(T(e.top,t.plotTop+r[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(I(T(e.left,t.plotLeft+r[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-s-o,this.right=t.chartWidth-n-e,this.len=Math.max(i?n:s,0),this.pos=i?e:o},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?f(t.lin2log(this.min)):this.min,max:t?f(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,r=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=r:1/0===t?t=e:r>t?t=r:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(T(t,0)-90*this.side+720)%360;return w(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},t.prototype.tickSize=function(t){var e=this.options,r=T(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=e["tick"===t?"tickLength":"minorTickLength"];if(r&&i){"inside"===e[t+"Position"]&&(i=-i);var n=[i,r]}return w(this,"afterTickSize",t={tickSize:n}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,r=this.tickInterval,i=this.len/(((this.categories?1:0)+this.max-this.min)/r),n=t.rotation,s=this.labelMetrics(),o=Math.max(this.max-this.min,0),a=function(t){var e=t/(i||1);return(e=1<e?Math.ceil(e):1)*r>o&&1/0!==t&&1/0!==i&&o&&(e=Math.ceil(o/r)),f(e*r)},A=r,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(x(n))var h=[n];else i<t.autoRotationLimit&&(h=t.autoRotation);if(h)for(var u=e=void 0,p=0,d=h;p<d.length;p++){var g=d[p];if((g===n||g&&-90<=g&&90>=g)&&(u=(e=a(Math.abs(s.h/Math.sin(c*g))))+Math.abs(g/360))<l){l=u;var m=g;A=e}}}else A=a(s.h);return this.autoRotation=h,this.labelRotation=T(m,x(n)?n:0),t.step?r:A},t.prototype.getSlotWidth=function(t){var e=this.chart,r=this.horiz,i=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),s=e.margin[3];if(t&&x(t.slotWidth))return t.slotWidth;if(r&&2>i.step)return i.rotation?0:(this.staggerLines||1)*this.len/n;if(!r){if(void 0!==(t=i.style.width))return parseInt(String(t),10);if(s)return s-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,r=this.tickPositions,i=this.ticks,n=this.options.labels,s=n.style,o=this.horiz,a=this.getSlotWidth(),A=Math.max(1,Math.round(a-2*n.padding)),l={},h=this.labelMetrics(),c=s.textOverflow,u=0;if(C(n.rotation)||(l.rotation=n.rotation||0),r.forEach(function(t){(t=i[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>u&&(u=t.label.textPxLength)}),this.maxLabelLength=u,this.autoRotation)u>A&&u>h.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=A;if(!c){var d="clip";for(A=r.length;!o&&A--;){var f=r[A];(f=i[f].label)&&(f.styles&&"ellipsis"===f.styles.textOverflow?f.css({textOverflow:"clip"}):f.textPxLength>a&&f.css({width:a+"px"}),f.getBBox().height>this.len/r.length-(h.h-h.f)&&(f.specificTextOverflow="ellipsis"))}}}l.rotation&&(p=u>.5*t.chartHeight?.33*t.chartHeight:u,c||(d="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),r.forEach(function(t){var e=(t=i[t])&&t.label,r=s.width,n={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():p&&!r&&"nowrap"!==s.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(n.width=p+"px",c||(n.textOverflow=e.specificTextOverflow||d),e.css(n)):e.styles&&e.styles.width&&!n.width&&!r&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(h.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&g(this.min)&&g(this.max)},t.prototype.addTitle=function(t){var e,r=this.chart.renderer,i=this.horiz,n=this.opposite,s=this.options.title,o=this.chart.styledMode;this.axisTitle||((e=s.textAlign)||(e=(i?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[s.align]),this.axisTitle=r.text(s.text||"",0,0,s.useHTML).attr({zIndex:7,rotation:s.rotation,align:e}).addClass("highcharts-axis-title"),o||this.axisTitle.css(E(s.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||s.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new o(this,t)},t.prototype.getOffset=function(){var t=this,e=this,r=e.chart,i=e.horiz,n=e.options,s=e.side,o=e.ticks,a=e.tickPositions,A=e.coll,l=e.axisParent,h=r.renderer,c=r.inverted&&!e.isZAxis?[1,0,3,2][s]:s,u=e.hasData(),p=n.title,d=n.labels,f=r.axisOffset;r=r.clipOffset;var m,y=[-1,1,1,-1][s],v=n.className,b=0,B=0,x=0;if(e.showAxis=m=u||n.showEmpty,e.staggerLines=e.horiz&&d.staggerLines||void 0,!e.axisGroup){var C=function(e,r,i){return h.g(e).attr({zIndex:i}).addClass("highcharts-".concat(A.toLowerCase()).concat(r," ")+(t.isRadial?"highcharts-radial-axis".concat(r," "):"")+(v||"")).add(l)};e.gridGroup=C("grid","-grid",n.gridZIndex),e.axisGroup=C("axis","",n.zIndex),e.labelGroup=C("axis-labels","-labels",d.zIndex)}if(u||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===s||2===s||{1:"left",3:"right"}[s]===e.labelAlign,T(d.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){x=Math.max(o[t].getLabelSize(),x)}),e.staggerLines&&(x*=e.staggerLines),e.labelOffset=x*(e.opposite?-1:1)):F(o,function(t,e){t.destroy(),delete o[e]}),p&&p.text&&!1!==p.enabled&&(e.addTitle(m),m&&!1!==p.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[i?"height":"width"];var E=p.offset;B=g(E)?0:T(p.margin,i?5:10)}e.renderLine(),e.offset=y*T(n.offset,f[s]?f[s]+(n.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},p=0===s?-e.labelMetrics().h:2===s?e.tickRotCorr.y:0,u=Math.abs(x)+B,x&&(u=u-p+y*(i?T(d.y,e.tickRotCorr.y+8*y):d.x)),e.axisTitleMargin=T(E,u),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(o,a)),"colorAxis"!==A&&(i=this.tickSize("tick"),f[s]=Math.max(f[s],(e.axisTitleMargin||0)+b+y*e.offset,u,a&&a.length&&i?i[0]+y*e.offset:0),n=!e.axisLine||n.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),r[c]=Math.max(r[c],n)),w(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,r=this.opposite,i=this.offset,n=this.horiz,s=this.left+(r?this.width:0)+i;return i=e.chartHeight-this.bottom-(r?this.height:0)+i,r&&(t*=-1),e.renderer.crispLine([["M",n?this.left:s,n?i:this.top],["L",n?e.chartWidth-this.right:s,n?i:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,r=this.top,i=this.len,n=this.options.title,s=t?e:r,o=this.opposite,a=this.offset,A=n.x,l=n.y,h=this.axisTitle,c=this.chart.renderer.fontMetrics(n.style.fontSize,h);return h=h?Math.max(h.getBBox(!1,0).height-c.h-1,0):0,i={low:s+(t?0:i),middle:s+i/2,high:s+(t?i:0)}[n.align],e=(t?r+this.height:e)+(t?1:-1)*(o?-1:1)*(this.axisTitleMargin||0)+[-h,h,c.f,-h][this.side],t={x:t?i+A:e+(o?this.width:0)+a+A,y:t?e+l-(o?this.height:0)+a:i+l},w(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var r=this.minorTicks;r[t]||(r[t]=new o(this,t,"minor")),e&&r[t].isNew&&r[t].render(null,!0),r[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,r){var i=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new o(this,t)),r&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,r=this,i=r.chart,n=r.logarithmic,a=r.options,l=r.isLinked,h=r.tickPositions,c=r.axisTitle,u=r.ticks,p=r.minorTicks,d=r.alternateBands,f=a.stackLabels,g=a.alternateGridColor,m=r.tickmarkOffset,y=r.axisLine,v=r.showAxis,b=A(i.renderer.globalAnimation);if(r.labelEdge.length=0,r.overlap=!1,[u,p,d].forEach(function(t){F(t,function(t){t.isActive=!1})}),r.hasData()||l){var B=r.chart.hasRendered&&r.old&&x(r.old.min);r.minorTickInterval&&!r.categories&&r.getMinorTickPositions().forEach(function(t){r.renderMinorTick(t,B)}),h.length&&(h.forEach(function(t,e){r.renderTick(t,e,B)}),m&&(0===r.min||r.single)&&(u[-1]||(u[-1]=new o(r,-1,null,!0)),u[-1].render(-1))),g&&h.forEach(function(o,a){e=void 0!==h[a+1]?h[a+1]+m:r.max-m,0==a%2&&o<r.max&&e<=r.max+(i.polar?-m:m)&&(d[o]||(d[o]=new s.PlotLineOrBand(r)),t=o+m,d[o].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},d[o].render(),d[o].isActive=!0)}),r._addedPlotLB||(r._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){r.addPlotBandOrLine(t)}))}[u,p,d].forEach(function(t){var e=[],r=b.duration;F(t,function(t,r){t.isActive||(t.render(r,!1,0),t.isActive=!1,e.push(r))}),L(function(){for(var r=e.length;r--;)t[e[r]]&&!t[e[r]].isActive&&(t[e[r]].destroy(),delete t[e[r]])},t!==d&&i.hasRendered&&r?r:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),c&&v&&(a=r.getTitlePosition(),c[c.isNew?"attr":"animate"](a),c.isNew=!1),f&&f.enabled&&r.stacking&&r.stacking.renderStackTotals(),r.old={len:r.len,max:r.max,min:r.min,transA:r.transA,userMax:r.userMax,userMin:r.userMin},r.isDirty=!1,w(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,r=e.plotLinesAndBands,i=this.eventOptions;if(w(this,"destroy",{keepEvents:t}),t||_(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){m(t)}),r)for(t=r.length;t--;)r[t].destroy();for(var n in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();F(e,function(t,r){-1===e.getKeepProps().indexOf(r)&&delete e[r]}),this.eventOptions=i},t.prototype.drawCrosshair=function(t,e){var i,n=this.crosshair,s=T(n&&n.snap,!0),o=this.chart,a=this.cross;if(w(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),n&&!1!==(g(e)||!s)){if(s?g(e)&&(i=T("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),g(i)){var A={value:e&&(this.isXAxis?e.x:T(e.stackY,e.y)),translatedValue:i};o.polar&&b(A,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),A=this.getPlotLinePath(A)||null}if(!g(A))return void this.hideCrosshair();s=this.categories&&!this.isRadial,a||(this.cross=a=o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(n.className||"")).attr({zIndex:T(n.zIndex,2)}).add(),o.styledMode||(a.attr({stroke:n.color||(s?r.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":T(n.width,1)}).css({"pointer-events":"none"}),n.dashStyle&&a.attr({dashstyle:n.dashStyle}))),a.show().attr({d:A}),s&&!n.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),w(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return x(t)&&0<t},t.prototype.update=function(t,e){var r=this.chart;t=E(this.userOptions,t),this.destroy(!0),this.init(r,t),r.isDirtyBox=!0,T(e,!0)&&r.redraw()},t.prototype.remove=function(t){for(var e=this.chart,r=this.coll,i=this.series,n=i.length;n--;)i[n]&&i[n].remove(!1);y(e.axes,this),y(e[r],this),e[r].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,T(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t}),e(r,"Core/Axis/DateTimeAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,i=t.getMagnitude,n=t.normalizeTickInterval,s=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function o(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new A(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,r(t,"init",o)),t};var A=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var r=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=r[r.length-1];var o,a=s[e[0]],A=e[1];for(o=0;o<r.length&&(e=r[o],a=s[e[0]],A=e[1],!(r[o+1]&&t<=(a*A[A.length-1]+s[r[o+1][0]])/2));o++);return a===s.year&&t<5*a&&(A=[1,2,5]),{unitRange:a,count:t=n(t/a,A,"year"===e[0]?Math.max(i(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var r=this.axis,i=r.chart.time;return r.closestPointRange?i.getDateFormat(r.closestPointRange,t,r.options.startOfWeek,e)||i.resolveDTLFormat(e.year).main:i.resolveDTLFormat(e.day).main},t}();t.Additions=A}(e||(e={})),e}),e(r,"Core/Axis/LogarithmicAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,i=t.normalizeTickInterval,n=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function s(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var o=[];t.compose=function(t){return-1===o.indexOf(t)&&(o.push(t),t.keepProps.push("logarithmic"),r(t,"init",e),r(t,"afterInit",s)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,r,s){var o=this.axis,a=o.len,A=o.options,l=[];if(s||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=o.getLinearTickPositions(t,e,r);else if(.08<=t){var h,c=Math.floor(e),u=A=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];c<r+1&&!u;c++){var p=a.length;for(h=0;h<p&&!u;h++){var d=this.log2lin(this.lin2log(c)*a[h]);d>e&&(!s||A<=r)&&void 0!==A&&l.push(A),A>r&&(u=!0),A=d}}}else e=this.lin2log(e),r=this.lin2log(r),t=s?o.getMinorTickInterval():A.tickInterval,t=n("auto"===t?null:t,this.minorAutoInterval,A.tickPixelInterval/(s?5:1)*(r-e)/((s?a/o.tickPositions.length:a)||1)),t=i(t),l=o.getLinearTickPositions(t,e,r).map(this.log2lin),s||(this.minorAutoInterval=t/5);return s||(o.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e}),e(r,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.erase,i=t.extend,n=t.isNumber;return function(t){var e,s=[];t.compose=function(t,r){return e||(e=t),-1===s.indexOf(r)&&(s.push(r),i(r.prototype,o.prototype)),r};var o=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,r){void 0===r&&(r=this.options);var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:r.acrossPanes}),s=[],o=this.horiz;if(e=!n(this.min)||!n(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:r.acrossPanes}),r=1,t&&i){if(e){var a=t.toString()===i.toString();r=0}for(e=0;e<t.length;e+=2){var A=t[e],l=t[e+1],h=i[e],c=i[e+1];"M"!==A[0]&&"L"!==A[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==h[0]&&"L"!==h[0]||"M"!==c[0]&&"L"!==c[0]||(o&&h[1]===A[1]?(h[1]+=r,c[1]+=r):o||h[2]!==A[2]||(h[2]+=r,c[2]+=r),s.push(["M",A[1],A[2]],["L",l[1],l[2]],["L",c[1],c[2]],["L",h[1],h[2]],["Z"])),s.isFlat=a}}return s},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,r){var i=this,n=this.userOptions,s=new e(this,t);if(this.visible&&(s=s.render()),s){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)})),r){var o=n[r]||[];o.push(t),n[r]=o}this.plotLinesAndBands.push(s)}return s},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,i=this.options,n=this.userOptions;if(e){for(var s=e.length;s--;)e[s].id===t&&e[s].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(e){for(s=e.length;s--;)(e[s]||{}).id===t&&r(e,e[s])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e}),e(r,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[r["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],r["Core/Utilities.js"]],function(t,e){var r=e.arrayMax,i=e.arrayMin,n=e.defined,s=e.destroyObjectProperties,o=e.erase,a=e.fireEvent,A=e.merge,l=e.objectEach,h=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(r){return t.compose(e,r)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,r=e.horiz,i=e.logarithmic,s=t.options,o=s.color,c=h(s.zIndex,0),u=s.events,p={},d=e.chart.renderer,f=s.label,g=t.label,m=s.to,y=s.from,v=s.value,b=t.svgElem,w=[],B=n(y)&&n(m);w=n(v);var x=!b,C={class:"highcharts-plot-"+(B?"band ":"line ")+(s.className||"")},E=B?"bands":"lines";if(i&&(y=i.log2lin(y),m=i.log2lin(m),v=i.log2lin(v)),e.chart.styledMode||(w?(C.stroke=o||"#999999",C["stroke-width"]=h(s.width,1),s.dashStyle&&(C.dashstyle=s.dashStyle)):B&&(C.fill=o||"#e6ebf5",s.borderWidth&&(C.stroke=s.borderColor,C["stroke-width"]=s.borderWidth))),p.zIndex=c,E+="-"+c,(i=e.plotLinesAndBandsGroups[E])||(e.plotLinesAndBandsGroups[E]=i=d.g("plot-"+E).attr(p).add()),x&&(t.svgElem=b=d.path().attr(C).add(i)),w)w=e.getPlotLinePath({value:v,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!B)return;w=e.getPlotBandPath(y,m,s)}return!t.eventsAdded&&u&&(l(u,function(e,r){b.on(r,function(e){u[r].apply(t,[e])})}),t.eventsAdded=!0),(x||!b.d)&&w&&w.length?b.attr({d:w}):b&&(w?(b.show(),b.animate({d:w})):b.d&&(b.hide(),g&&(t.label=g=g.destroy()))),f&&(n(f.text)||n(f.formatter))&&w&&w.length&&0<e.width&&0<e.height&&!w.isFlat?(f=A({align:r&&B&&"center",x:r?!B&&4:10,verticalAlign:!r&&B&&"middle",y:r?B?16:10:B?6:-4,rotation:r&&!B&&90},f),this.renderLabel(f,w,B,c)):g&&g.hide(),t},e.prototype.renderLabel=function(t,e,n,s){var o=this.axis,a=o.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(t.className||""),zIndex:s}).add(),o.chart.styledMode||l.css(A({textOverflow:"ellipsis"},t.style))),s=e.xBounds||[e[0][1],e[1][1],n?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],n?e[2][2]:e[0][2]],n=i(s),a=i(e),l.align(t,!1,{x:n,y:a,width:r(s)-n,height:r(e)-a}),l.alignValue&&"left"!==l.alignValue||(t=t.clip?o.width:o.chart.chartWidth,l.css({width:(90===l.rotation?o.height-(l.alignAttr.y-o.top):t-(l.alignAttr.x-o.left))+"px"})),l.show(!0)},e.prototype.getLabelText=function(t){return n(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){o(this.axis.plotLinesAndBands,this),delete this.axis,s(this)},e}(),e}),e(r,"Core/Tooltip.js",[r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i,n){var s=t.format,o=e.doc,a=r.distribute,A=n.clamp,l=n.css,h=n.discardElement,c=n.extend,u=n.fireEvent,p=n.isArray,d=n.isNumber,f=n.isString,g=n.merge,m=n.pick,y=n.splat,v=n.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var r=e&&e.tt;r&&(!r.isActive||t?e.tt=r.destroy():r.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e=this.points||y(this),r=[t.tooltipFooterHeaderFormatter(e[0])];return(r=r.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),r},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),h(this.container)),n.clearTimeout(this.hideTimer),n.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var r=this.chart,i=r.pointer,n=r.inverted,s=r.plotTop;if(r=r.plotLeft,(t=y(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=i.normalize(e)),t=[e.chartX-r,e.chartY-s];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var o=0,a=0;t.forEach(function(t){(t=t.pos(!0))&&(o+=t[0],a+=t[1])}),o/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(n?o=e.chartX:a=e.chartY),t=[o-r,a-s]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,r){var i=t.series,n=i.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+m(t.colorIndex,i.colorIndex),n&&n.className].filter(f).join(" ")},t.prototype.getLabel=function(){var t,r=this,n=this.chart.styledMode,s=this.options,o=this.split&&this.allowShared,a=s.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),A=this.chart.renderer;if(r.label){var h=!r.label.hasClass("highcharts-label");(o&&!h||!o&&h)&&r.destroy()}if(!this.label){if(this.outside){h=this.chart.options.chart.style;var c=i.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",l(t,{position:"absolute",top:"1px",pointerEvents:a,zIndex:Math.max(this.options.style.zIndex||0,(h&&h.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=A=new c(t,0,0,h,void 0,void 0,A.styledMode)}if(o?this.label=A.g("tooltip"):(this.label=A.label("",0,0,s.shape,void 0,void 0,s.useHTML,void 0,"tooltip").attr({padding:s.padding,r:s.borderRadius}),n||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth}).css(s.style).css({pointerEvents:a}).shadow(s.shadow)),n&&s.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),r.outside&&!r.split){var u=this.label,p=u.xSetter,d=u.ySetter;u.xSetter=function(e){p.call(u,r.distance),t.style.left=e+"px"},u.ySetter=function(e){d.call(u,r.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,r){var i,n=this.chart,s=this.distance,a={},A=n.inverted&&r.h||0,l=this.outside,h=l?o.documentElement.clientWidth-2*s:n.chartWidth,c=l?Math.max(o.body.scrollHeight,o.documentElement.scrollHeight,o.body.offsetHeight,o.documentElement.offsetHeight,o.documentElement.clientHeight):n.chartHeight,u=n.pointer.getChartPosition(),p=function(i){var o="x"===i;return[i,o?h:c,o?t:e].concat(l?[o?t*u.scaleX:e*u.scaleY,o?u.left-s+(r.plotX+n.plotLeft)*u.scaleX:u.top-s+(r.plotY+n.plotTop)*u.scaleY,0,o?h:c]:[o?t:e,o?r.plotX+n.plotLeft:r.plotY+n.plotTop,o?n.plotLeft:n.plotTop,o?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])},d=p("y"),f=p("x");p=!!r.negative,!n.polar&&n.hoverSeries&&n.hoverSeries.yAxis&&n.hoverSeries.yAxis.reversed&&(p=!p);var g=!this.followPointer&&m(r.ttBelow,!n.inverted===p),y=function(t,e,r,i,n,o,h){var c=l?"y"===t?s*u.scaleY:s*u.scaleX:s,p=(r-i)/2,d=i<n-s,f=n+s+i<e,m=n-c-r+p;if(n=n+c-p,g&&f)a[t]=n;else if(!g&&d)a[t]=m;else if(d)a[t]=Math.min(h-i,0>m-A?m:m-A);else{if(!f)return!1;a[t]=Math.max(o,n+A+r>e?n:n+A)}},v=function(t,e,r,i,n){var o;return n<s||n>e-s?o=!1:a[t]=n<r/2?1:n>e-i/2?e-i-2:n-r/2,o},b=function(t){var e=d;d=f,f=e,i=t},w=function(){!1!==y.apply(0,d)?!1!==v.apply(0,f)||i||(b(!0),w()):i?a.x=a.y=0:(b(!0),w())};return(n.inverted||1<this.len)&&b(),w(),a},t.prototype.hide=function(t){var e=this;n.clearTimeout(this.hideTimer),t=m(t,this.options.hideDelay),this.isHidden||(this.hideTimer=v(function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=m(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))},t.prototype.move=function(t,e,r,i){var s=this,o=s.now,a=!1!==s.options.animation&&!s.isHidden&&(1<Math.abs(t-o.x)||1<Math.abs(e-o.y)),A=s.followPointer||1<s.len;c(o,{x:a?(2*o.x+t)/3:t,y:a?(o.y+e)/2:e,anchorX:A?void 0:a?(2*o.anchorX+r)/3:r,anchorY:A?void 0:a?(o.anchorY+i)/2:i}),s.getLabel().attr(o),s.drawTracker(),a&&(n.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(t,e,r,i)},32))},t.prototype.refresh=function(t,e){var r=this.chart,i=this.options,s=r.pointer,o=y(t),a=o[0],A=[],l=i.formatter||this.defaultFormatter,h=this.shared,c=r.styledMode,d={};if(i.enabled&&a.series){n.clearTimeout(this.hideTimer),this.allowShared=!(!p(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var f=(t=this.getAnchor(t,e))[0],g=t[1];if(h&&this.allowShared?(s.applyInactiveState(o),o.forEach(function(t){t.setState("hover"),A.push(t.getLabelConfig())}),(d={x:a.category,y:a.y}).points=A):d=a.getLabelConfig(),this.len=A.length,l=l.call(d,this),h=a.series,this.distance=m(h.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,o);else{var v=f,b=g;if(e&&s.isDirectTouch&&(v=e.chartX-r.plotLeft,b=e.chartY-r.plotTop),!r.polar&&!1!==h.options.clip&&!o.some(function(t){return s.isDirectTouch||t.series.shouldShowTooltip(v,b)}))return void this.hide();e=this.getLabel(),i.style.width&&!c||e.css({width:r.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.addClass(this.getClassName(a),!0),c||e.attr({stroke:i.borderColor||a.color||h.color||"#666666"}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}u(this,"refresh")}},t.prototype.renderSplit=function(t,e){function r(t,e,r,n,s){return void 0===s&&(s=!0),r?(e=I?0:P,t=A(t-n/2,S.left,S.right-n-(i.outside?_:0))):(e-=k,t=A(t=s?t-n-x:t+x,s?t:S.left,S.right)),{x:t,y:e}}var i=this,n=i.chart,s=i.chart,l=s.chartWidth,h=s.chartHeight,u=s.plotHeight,p=s.plotLeft,d=s.plotTop,g=s.pointer,y=s.scrollablePixelsY;y=void 0===y?0:y;var v=s.scrollablePixelsX,b=s.scrollingContainer,w=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var B=s.styledMode,x=i.distance,C=i.options,E=i.options.positioner,S=i.outside&&"number"!=typeof v?o.documentElement.getBoundingClientRect():{left:w,right:w+l,top:b,bottom:b+h},F=i.getLabel(),T=this.renderer||n.renderer,I=!(!n.xAxis[0]||!n.xAxis[0].opposite),_=(n=g.getChartPosition()).left;n=n.top;var k=d+b,L=0,P=u-y;f(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,n,s){if(!1!==n&&""!==n){var o=(s=e[s-1]||{isHeader:!0,plotX:e[0].plotX,plotY:u,series:{}}).isHeader,a=o?i:s.series;n=n.toString();var l=a.tt,h=s.isHeader,c=s.series;l||(l={padding:C.padding,r:C.borderRadius},B||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=T.label("",0,0,C[h?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass(i.getClassName(s,!0,h)).attr(l).add(F)),l.isActive=!0,l.attr({text:n}),B||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||s.color||c.color||"#333333"}),n=(h=(a=a.tt=l).getBBox()).width+a.strokeWidth(),o&&(L=h.height,P+=L,I&&(k-=L)),c=void 0===(c=s.plotX)?0:c,l=void 0===(l=s.plotY)?0:l;var f=s.series;if(s.isHeader){c=p+c;var g=d+u/2}else{var y=f.xAxis,v=f.yAxis;c=y.pos+A(c,-x,y.len+x),f.shouldShowTooltip(0,v.pos-d+l,{ignoreX:!0})&&(g=v.pos+l)}c=A(c,S.left-x,S.right+x),"number"==typeof g?(h=h.height+1,l=E?E.call(i,n,h,s):r(c,g,o,n),t.push({align:E?0:void 0,anchorX:c,anchorY:g,boxWidth:n,point:s,rank:m(l.rank,o?1:0),size:h,target:l.y,tt:a,x:l.x})):a.isActive=!1}return t},[]),!E&&t.some(function(t){var e=(i.outside?_:0)+t.anchorX;return e<S.left&&e+t.boxWidth<S.right||e<_-S.left+t.boxWidth&&S.right-e>e})&&(t=t.map(function(t){var e=r(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return c(t,{target:e.y,x:e.x})})),i.cleanSplit(),a(t,P);var N=_,D=_;t.forEach(function(t){var e=t.x,r=t.boxWidth;(t=t.isHeader)||(i.outside&&_+e<N&&(N=_+e),!t&&i.outside&&N+r>D&&(D=_+e))}),t.forEach(function(t){var e=t.x,r=t.anchorX,n=t.pos,s=t.point.isHeader;if(n={visibility:void 0===n?"hidden":"inherit",x:e,y:(n||0)+k,anchorX:r,anchorY:t.anchorY},i.outside&&e<r){var o=_-N;0<o&&(s||(n.x=e+o,n.anchorX=r+o),s&&(n.x=(D-N)/2,n.anchorX=r+o))}t.tt.attr(n)}),t=i.container,y=i.renderer,i.outside&&t&&y&&(s=F.getBBox(),y.setSize(s.width+s.x,s.height+s.y,!1),t.style.left=N+"px",t.style.top=n+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,r=this.shared?t.hoverPoints:t.hoverPoint;if(e&&r){var i={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var n=e.getBBox();r[0]+=t.plotLeft-e.translateX,r[1]+=t.plotTop-e.translateY,i.x=Math.min(0,r[0]),i.y=Math.min(0,r[1]),i.width=0>r[0]?Math.max(Math.abs(r[0]),n.width-r[0]):Math.max(Math.abs(r[0]),n.width),i.height=0>r[1]?Math.max(Math.abs(r[1]),n.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),n.height),this.tracker?this.tracker.attr(i):(this.tracker=e.renderer.rect(i).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var r=t.series,i=r.tooltipOptions,n=r.xAxis,o=n&&n.dateTime;n={isFooter:e,labelConfig:t};var a=i.xDateFormat,A=i[e?"footerFormat":"headerFormat"];return u(this,"headerFormatter",n,function(e){o&&!a&&d(t.key)&&(a=o.getXDateFormat(t.key,i.dateTimeLabelFormats)),o&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){A=A.replace("{point."+t+"}","{point."+t+":"+a+"}")}),r.chart.styledMode&&(A=this.styledModeFormat(A)),e.text=s(A,{point:t,series:r},this.chart)}),n.text},t.prototype.update=function(t){this.destroy(),g(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,g(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,r=this.distance,i=this.options,n=e.pointer,s=this.getLabel(),o=n.getChartPosition();n=o.left;var a=o.top,A=o.scaleX;o=o.scaleY;var h=(i.positioner||this.getPosition).call(this,s.width,s.height,t),c=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(i.positioner&&(h.x+=n-r,h.y+=a-r),r=i.borderWidth+2*r,this.renderer.setSize(s.width+r,s.height+r,!1),1===A&&1===o||(l(this.container,{transform:"scale(".concat(A,", ").concat(o,")")}),c*=A,t*=o),c+=n-h.x,t+=a-h.y),this.move(Math.round(h.x),Math.round(h.y||0),c,t)},t}(),t}),e(r,"Core/Series/Point.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Animation/AnimationUtilities.js"],r["Core/Defaults.js"],r["Core/FormatUtilities.js"],r["Core/Utilities.js"]],function(t,e,r,i,n){var s=e.animObject,o=r.defaultOptions,a=i.format,A=n.addEvent,l=n.defined,h=n.erase,c=n.extend,u=n.fireEvent,p=n.getNestedProperty,d=n.isArray,f=n.isFunction,g=n.isNumber,m=n.isObject,y=n.merge,v=n.objectEach,b=n.pick,w=n.syncTimeout,B=n.removeEvent,x=n.uniqueKey;return e=function(){function e(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},r=t.getGraphicalProps();r.singular.forEach(function(r){t[r]=t[r].animate("dataLabel"===r?{x:t[r].startXPos,y:t[r].startYPos,opacity:0}:e)}),r.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(c({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},e.prototype.applyOptions=function(t,r){var i=this.series,n=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),c(this,t),this.options=this.options?c(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=e.prototype.getNestedProperty.call(this,n)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===r&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===r?i.autoIncrement():r:g(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(n in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(B(e),e.destroyElements()),e)e[n]=null}var e=this,r=e.series,i=r.chart;r=r.options.dataSorting;var n,o=i.hoverPoints,a=s(e.series.chart.renderer.globalAnimation);e.legendItem&&i.legend.destroyItem(e),o&&(e.setState(),h(o,e),o.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),r&&r.enabled?(this.animateBeforeDestroy(),w(t,a.duration)):t(),i.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})},e.prototype.firePointEvent=function(t,e,r){var i=this,n=this.series.options;(n.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&i.importEvents(),"click"===t&&n.allowPointSelect&&(r=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(i,t,e,r)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,r=this,i=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=i.length;e--;){var s=i[e];r[s]&&n.singular.push(s)}return["graphic","dataLabel","connector"].forEach(function(e){var i=e+"s";t[e]&&r[i]&&n.plural.push(i)}),n},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var r,i=0;for(r=e[i];this[t]>=r.value;)r=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=r&&r.color&&!this.options.color?r.color:this.nonZonedColor,r},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,r){return this.series=t,this.applyOptions(e,r),this.id=l(this.id)?this.id:x(),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&g(this.y)},e.prototype.optionsToObject=function(t){var r=this.series,i=r.options.keys,n=i||r.pointArrayMap||["y"],s=n.length,o={},a=0,A=0;if(g(t)||null===t)o[n[0]]=t;else if(d(t))for(!i&&t.length>s&&("string"==(r=typeof t[0])?o.name=t[0]:"number"===r&&(o.x=t[0]),a++);A<s;)i&&void 0===t[a]||(0<n[A].indexOf(".")?e.prototype.setNestedProperty(o,t[a],n[A]):o[n[A]]=t[a]),a++,A++;else"object"==typeof t&&(o=t,t.dataLabels&&(r._hasPointLabels=!0),t.marker&&(r._hasPointMarkers=!0));return o},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var r=this.plotX,i=this.series,n=i.chart,s=i.xAxis;i=i.yAxis;var o=0,a=0;if(g(r)&&g(e))return t&&(o=s?s.pos:n.plotLeft,a=i?i.pos:n.plotTop),n.inverted&&s&&i?[i.len-e+a,s.len-r+o]:[r+o,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,r=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var i=(r=t.options.colors||t.chart.options.colors)[t.colorCounter];r=r.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===r&&(t.colorCounter=0)}else e||(i=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,i)},e.prototype.setNestedProperty=function(t,e,r){return r.split(".").reduce(function(t,r,i,n){return t[r]=n.length-1===i?e:m(t[r],!0)?t[r]:{},t[r]},t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,r=e.tooltipOptions,i=b(r.valueDecimals,""),n=r.valuePrefix||"",s=r.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(n||s)&&(t=t.replace(RegExp(e+"}","g"),n+e+"}"+s)),t=t.replace(RegExp(e+"}","g"),e+":,."+i+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,r,i){function n(){o.applyOptions(t);var i=A&&o.hasMockGraphic;i=null===o.y?!i:i,A&&i&&(o.graphic=A.destroy(),delete o.hasMockGraphic),m(t,!0)&&(A&&A.element&&t&&t.marker&&void 0!==t.marker.symbol&&(o.graphic=A.destroy()),t&&t.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),o.connector&&(o.connector=o.connector.destroy())),s=o.index,a.updateParallelArrays(o,s),h.data[s]=m(h.data[s],!0)||m(t,!0)?o.options:b(t,h.data[s]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===h.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(r)}var s,o=this,a=o.series,A=o.graphic,l=a.chart,h=a.options;e=b(e,!0),!1===i?n():o.firePointEvent("update",{options:t},n)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var r=this,i=r.series,n=i.chart;this.selectedStaging=t=b(t,!r.selected),r.firePointEvent(t?"select":"unselect",{accumulate:e},function(){r.selected=r.options.selected=t,i.options.data[i.data.indexOf(r)]=r.options,r.setState(t&&"select"),e||n.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==r&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,r=e.pointer;t=t?r.normalize(t):r.getChartCoordinatesFromPoint(this,e.inverted),r.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,v(e,function(e,r){f(e)&&A(t,r,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,r){var i,n=this.series,s=this.state,a=n.options.states[e||"normal"]||{},A=o.plotOptions[n.type].marker&&n.options.marker,l=A&&!1===A.enabled,h=A&&A.states&&A.states[e||"normal"]||{},p=!1===h.enabled,d=this.marker||{},f=n.chart,m=A&&n.markerAttribs,y=n.halo,v=n.stateMarkerGraphic;if(!((e=e||"")===this.state&&!r||this.selected&&"select"!==e||!1===a.enabled||e&&(p||l&&!1===h.enabled)||e&&d.states&&d.states[e]&&!1===d.states[e].enabled)){if(this.state=e,m&&(i=n.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),e&&this.graphic.addClass("highcharts-point-"+e),!f.styledMode){s=n.pointAttribs(this,e);var w=b(f.options.chart.animation,a.animation),B=s.opacity;n.options.inactiveOtherPoints&&g(B)&&((this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:B},w)}),this.connector&&this.connector.animate({opacity:B},w)),this.graphic.animate(s,w)}i&&this.graphic.animate(i,b(f.options.chart.animation,h.animation,A.animation)),v&&v.hide()}else e&&h&&(A=d.symbol||n.symbol,v&&v.currentSymbol!==A&&(v=v.destroy()),i&&(v?v[r?"animate":"attr"]({x:i.x,y:i.y}):A&&(n.stateMarkerGraphic=v=f.renderer.symbol(A,i.x,i.y,i.width,i.height).add(n.markerGroup),v.currentSymbol=A)),!f.styledMode&&v&&"inactive"!==this.state&&v.attr(n.pointAttribs(this,e))),v&&(v[e&&this.isInside?"show":"hide"](),v.element.point=this,v.addClass(this.getClassName(),!0));a=a.halo,i=(v=this.graphic||v)&&v.visibility||"inherit",a&&a.size&&v&&"hidden"!==i&&!this.isCluster?(y||(n.halo=y=f.renderer.path().add(v.parentGroup)),y.show()[r?"animate":"attr"]({d:this.haloPath(a.size)}),y.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:i,zIndex:-1}),y.point=this,f.styledMode||y.attr(c({fill:this.color||n.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},null,y.hide),u(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},e}(),e}),e(r,"Core/Pointer.js",[r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Tooltip.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n=t.parse,s=e.charts,o=e.noop,a=i.addEvent,A=i.attr,l=i.css,h=i.defined,c=i.extend,u=i.find,p=i.fireEvent,d=i.isNumber,f=i.isObject,g=i.objectEach,m=i.offset,y=i.pick,v=i.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,r=[];(t||[]).forEach(function(t){e=t.series,r.push(e),e.linkedParent&&r.push(e.linkedParent),e.linkedSeries&&(r=r.concat(e.linkedSeries)),e.navigatorSeries&&r.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===r.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var r=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(r.tooltipTimeout),g(r,function(t,e){r[e]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var r=this,i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",i,function(i){var n=r.chart,s=r.mouseDownX;s=void 0===s?0:s;var o=r.mouseDownY;o=void 0===o?0:o;var a=r.zoomHor,A=r.zoomVert;(i=i.attrs).x=n.plotLeft,i.y=n.plotTop,i.width=a?1:n.plotWidth,i.height=A?1:n.plotHeight,a&&(n=t-s,i.width=Math.abs(n),i.x=(0<n?0:n)+s),A&&(n=e-o,i.height=Math.abs(n),i.y=(0<n?0:n)+o)}),i},t.prototype.drag=function(t){var e=this.chart,r=e.options.chart,i=e.plotLeft,s=e.plotTop,o=e.plotWidth,a=e.plotHeight,A=this.mouseDownX||0,l=this.mouseDownY||0,h=f(r.panning)?r.panning&&r.panning.enabled:r.panning,c=r.panKey&&t[r.panKey+"Key"],u=t.chartX,p=t.chartY,d=this.selectionMarker;d&&d.touch||(u<i?u=i:u>i+o&&(u=i+o),p<s?p=s:p>s+a&&(p=s+a),this.hasDragged=Math.sqrt(Math.pow(A-u,2)+Math.pow(l-p,2)),10<this.hasDragged&&(i=e.isInsidePlot(A-i,l-s,{visiblePlotOnly:!0}),u=(p=this.getSelectionMarkerAttrs(u,p)).shapeType,p=p.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!i||c||d||(this.selectionMarker=d=e.renderer[u](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||d.attr({fill:r.selectionMarkerFill||n("#335cad").setOpacity(.25).get()})),d&&d.attr(p),i&&!d&&h&&e.pan(t,r.panning)))},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:{}};return p(this,"getSelectionBox",e,function(e){e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}}),e.result},t.prototype.drop=function(t){var e=this,r=this.chart,i=this.hasPinched;if(this.selectionMarker){var n=this.getSelectionBox(this.selectionMarker),s=n.x,o=n.y,a=n.width,A=n.height,u={originalEvent:t,xAxis:[],yAxis:[],x:s,y:o,width:a,height:A},f=!!r.mapView;(this.hasDragged||i)&&(r.axes.forEach(function(r){if(r.zoomEnabled&&h(r.min)&&(i||e[{xAxis:"zoomX",yAxis:"zoomY"}[r.coll]])&&d(s)&&d(o)&&d(a)&&d(A)){var n=r.horiz,l="touchend"===t.type?r.minPixelPadding:0,c=r.toValue((n?s:o)+l);n=r.toValue((n?s+a:o+A)-l),u[r.coll].push({axis:r,min:Math.min(c,n),max:Math.max(c,n)}),f=!0}}),f&&p(r,"selection",u,function(t){r.zoom(c(t,i?{animation:!1}:null))})),d(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),i&&this.scaleGroups()}r&&d(r.index)&&(l(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,r){var i;return t.forEach(function(t){var n=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,n),(n=f(t,!0)&&t.series)&&!(n=!f(i,!0))){n=i.distX-t.distX;var s=i.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);n=0<(0!==n&&e?n:0!==s?s:0!==o?o:i.series.index>t.series.index?-1:1)}n&&(i=t)}),i},t.prototype.getChartCoordinatesFromPoint=function(t,e){var r=t.series,i=r.xAxis;r=r.yAxis;var n=t.shapeArgs;if(i&&r){var s=y(t.clientX,t.plotX),o=t.plotY||0;return t.isNode&&n&&d(n.x)&&d(n.y)&&(s=n.x,o=n.y),e?{chartX:r.len+r.pos-o,chartY:i.len+i.pos-s}:{chartX:s+i.pos,chartY:o+r.pos}}if(n&&n.x&&n.y)return{chartX:n.x,chartY:n.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=m(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var r=t.offsetWidth;return t=t.offsetHeight,2<r&&2<t&&(this.chartPosition.scaleX=e.width/r,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,r,i,n,s){var o=[];i=!(!i||!t);var a=function(t){return t.visible&&!(!n&&t.directTouch)&&y(t.options.enableMouseTracking,!0)},A={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:n};p(this,"beforeGetHoverData",A);var l=e&&!e.stickyTracking?[e]:r.filter(function(t){return t.stickyTracking&&(A.filter||a)(t)}),h=i||!s?t:this.findNearestKDPoint(l,n,s);return e=h&&h.series,h&&(n&&!e.noSharedTooltip?(l=r.filter(function(t){return A.filter?A.filter(t):a(t)&&!t.noSharedTooltip}),l.forEach(function(t){var e=u(t.points,function(t){return t.x===h.x&&!t.isNull});f(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),o.push(e))})):o.push(h)),p(this,"afterGetHoverData",A={hoverPoint:h}),{hoverPoint:A.hoverPoint,hoverSeries:e,hoverPoints:o}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var r;t;){if(r=A(t,"class")){if(-1!==r.indexOf(e))return!0;if(-1!==r.indexOf("highcharts-container"))return!1}t=t.parentElement}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},r&&(t.tooltip=new r(t,e.tooltip)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var r=t.touches,i=r?r.length?r.item(0):y(r.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),r=i.pageX-e.left,i=i.pageY-e.top,r/=e.scaleX,i/=e.scaleY,c(t,{chartX:Math.round(r),chartY:Math.round(i)})},t.prototype.onContainerClick=function(t){var e=this.chart,r=e.hoverPoint;t=this.normalize(t);var i=e.plotLeft,n=e.plotTop;e.cancelClick||(r&&this.inClass(t.target,"highcharts-tracker")?(p(r.series,"click",c(t,{point:r})),e.hoverPoint&&r.firePointEvent("click",t)):(c(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-i,t.chartY-n,{visiblePlotOnly:!0})&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var r=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||r)&&(this.zoomOption(t),r&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var r=s[y(t.hoverChartIndex,-1)],i=this.chart.tooltip;e=this.normalize(e),r&&(e.relatedTarget||e.toElement)&&(r.pointer.reset(),r.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,r=e.tooltip;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var r=s[y(t.hoverChartIndex,-1)];r&&r.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,r=e.tooltip,i=this.chartPosition;t=this.normalize(t,i),!i||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var r=s[y(t.hoverChartIndex,-1)];r&&r.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,r=e.chart,i=e.pinchDown,n=t.touches||[],s=n.length,a=e.lastValidTouch,A=e.hasZoom,l={},h=1===s&&(e.inClass(t.target,"highcharts-tracker")&&r.runTrackerClick||e.runChartClick),u={},d=e.chart.tooltip;d=1===s&&y(d&&d.options.followTouchMove,!0);var f=e.selectionMarker;1<s?e.initiated=!0:d&&(e.initiated=!1),A&&e.initiated&&!h&&!1!==t.cancelable&&t.preventDefault(),[].map.call(n,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(n,function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[i[0].chartX,i[1]&&i[1].chartX],a.y=[i[0].chartY,i[1]&&i[1].chartY],r.axes.forEach(function(t){if(t.zoomEnabled){var e=r.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,n=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),s=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),o=Math.max(n,s);e.min=Math.min(t.pos,Math.min(n,s)-i),e.max=Math.max(t.pos+t.len,o+i)}}),e.res=!0):d?this.runPointActions(e.normalize(t)):i.length&&(p(r,"touchpan",{originalEvent:t},function(){f||(e.selectionMarker=f=c({destroy:o,touch:!0},r.plotBox)),e.pinchTranslate(i,n,l,f,u,a),e.hasPinched=A,e.scaleGroups(l,u)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,r,i,n,s){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,r,i,n,s),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,r,i,n,s)},t.prototype.pinchTranslateDirection=function(t,e,r,i,n,s,o,a){var A=this.chart,l=t?"x":"y",h=t?"X":"Y",c="chart"+h,u=t?"width":"height",p=A["plot"+(t?"Left":"Top")],d=A.inverted,f=A.bounds[t?"h":"v"],g=1===e.length,m=e[0][c],y=!g&&e[1][c];e=function(){"number"==typeof x&&20<Math.abs(m-y)&&(w=a||Math.abs(B-x)/Math.abs(m-y)),b=(p-B)/w+m,v=A["plot"+(t?"Width":"Height")]/w};var v,b,w=a||1,B=r[0][c],x=!g&&r[1][c];if(e(),(r=b)<f.min){r=f.min;var C=!0}else r+v>f.max&&(r=f.max-v,C=!0);C?(B-=.8*(B-o[l][0]),"number"==typeof x&&(x-=.8*(x-o[l][1])),e()):o[l]=[B,x],d||(s[l]=b-p,s[u]=v),s=d?1/w:w,n[u]=v,n[l]=r,i[d?t?"scaleY":"scaleX":"scale"+h]=w,i["translate"+h]=s*p+(B-s*m)},t.prototype.reset=function(t,e){var r=this.chart,i=r.hoverSeries,n=r.hoverPoint,s=r.hoverPoints,o=r.tooltip,a=o&&o.shared?s:n;t&&a&&v(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&a&&v(a).length&&(o.refresh(a),o.shared&&s?s.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):n&&(n.setState(n.state,!0),r.axes.forEach(function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),s&&s.forEach(function(t){t.setState()}),i&&i.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},t.prototype.runPointActions=function(e,r,i){var n=this.chart,o=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,A=!!o&&o.shared,l=r||n.hoverPoint,h=l&&l.series||n.hoverSeries;r=this.getHoverData(l,h,n.series,(!e||"touchmove"!==e.type)&&(!!r||h&&h.directTouch&&this.isDirectTouch),A,e),l=r.hoverPoint,h=r.hoverSeries;var c=r.hoverPoints;r=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split;var p=A&&h&&!h.noSharedTooltip;if(l&&(i||l!==n.hoverPoint||o&&o.isHidden)){if((n.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),n.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!l.series)return;n.hoverPoints=c,n.hoverPoint=l,l.firePointEvent("mouseOver",void 0,function(){o&&l&&o.refresh(p?c:l,e)})}else r&&o&&!o.isHidden&&(i=o.getAnchor([{}],e),n.isInsidePlot(i[0],i[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:i[0],plotY:i[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(n.container.ownerDocument,"mousemove",function(e){var r=s[t.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){var r,i=y((t.crosshair||{}).snap,!0);i&&((r=n.hoverPoint)&&r.series[t.coll]===t||(r=u(c,function(e){return e.series&&e.series[t.coll]===t}))),r||!i?t.drawCrosshair(e,r):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var r=this.chart;r.series.forEach(function(i){var n=t||i.getPlotBox();i.group&&(i.xAxis&&i.xAxis.zoomEnabled||r.mapView)&&(i.group.attr(n),i.markerGroup&&(i.markerGroup.attr(n),i.markerGroup.clip(e?r.clipRect:null)),i.dataLabelsGroup&&i.dataLabelsGroup.attr(n))}),r.clipRect.attr(e||r.clipBox)},t.prototype.setDOMEvents=function(){var r=this,i=this.chart.container,n=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(n,"mouseup",this.onDocumentMouseUp.bind(this)));for(var s=this.chart.renderTo.parentElement;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(a(s,"scroll",function(){delete r.chartPosition})),s=s.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(n,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var r=this.chart,i=e.charts[y(t.hoverChartIndex,-1)];i&&i!==r&&i.pointer.onContainerMouseLeave({relatedTarget:r.container}),i&&i.mouseIsDown||(t.hoverChartIndex=r.index)},t.prototype.touch=function(t,e){var r=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(i,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,r=e.options.chart;e=e.inverted;var i=r.zooming.type||"";/touch/.test(t.type)&&(i=y(r.zooming.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=r=/y/.test(i),this.zoomHor=t&&!e||r&&e,this.zoomVert=r&&!e||t&&e,this.hasZoom=t||r},t}(),t}),e(r,"Core/MSPointer.js",[r["Core/Globals.js"],r["Core/Pointer.js"],r["Core/Utilities.js"]],function(t,e,r){function i(){var t=[];return t.item=function(t){return this[t]},u(f,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function n(t,r,n,s){var a=o[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,s(t),a[r]({type:n,target:t.currentTarget,preventDefault:A,touches:i()}))}var s=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),o=t.charts,a=t.doc,A=t.noop,l=t.win,h=r.addEvent,c=r.css,u=r.objectEach,p=r.pick,d=r.removeEvent,f={},g=!!l.PointerEvent;return function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return s(r,e),r.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},r.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},r.prototype.destroy=function(){this.batchMSEvents(d),e.prototype.destroy.call(this)},r.prototype.init=function(t,r){e.prototype.init.call(this,t,r),this.hasZoom&&c(t.container,{"-ms-touch-action":"none","touch-action":"none"})},r.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},r.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)})},r.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",function(t){delete f[t.pointerId]})},r.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||p(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(h)},r}(e)}),e(r,"Core/Legend/Legend.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Series/Point.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s){var o=t.animObject,a=t.setAnimation,A=e.format,l=r.marginNames,h=n.distribute,c=s.addEvent,u=s.createElement,p=s.css,d=s.defined,f=s.discardElement,g=s.find,m=s.fireEvent,y=s.isNumber,v=s.merge,b=s.pick,w=s.relativeLength,B=s.stableSort,x=s.syncTimeout;return t=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),c(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=c(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=v(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var r=this.chart;this.setOptions(v(!0,this.options,t)),this.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,b(e,!0)&&r.redraw(),m(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var r=t.legendItem||{},i=r.group,n=r.label,s=r.line;if(r=r.symbol,i&&i[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var o=this.options;i=this.itemHiddenStyle.color,o=e?o.itemStyle.color:i;var a=e&&t.color||i,A=t.options&&t.options.marker,l={fill:a};n&&n.css({fill:o,color:o}),s&&s.attr({stroke:a}),r&&(A&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=i)),r.attr(l))}m(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,r=t.legendItem||{},i=r.group,n=r.x;n=void 0===n?0:n,r=void 0===(r=r.y)?0:r;var s=this.options,o=s.symbolPadding,a=!s.rtl;s=t.checkbox,i&&i.element&&(o={translateX:a?n:this.legendWidth-n-2*o-4,translateY:r},i[d(i.translateY)?"animate":"attr"](o,void 0,function(){m(e,"afterPositionItem",{item:t})})),s&&(s.x=n,s.y=r)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,r=t.legendItem||{},i=0,n=["group","label","line","symbol"];i<n.length;i++){var s=n[i];r[s]&&(r[s]=r[s].destroy())}e&&f(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++)this.destroyItem(e[t]);for(t=0,e="clipRect up down pager nav box title group".split(" ");t<e.length;t++){var r=e[t];this[r]&&(this[r]=this[r].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,r=this.titleHeight;if(t){var i=t.translateY;this.allItems.forEach(function(n){var s=n.checkbox;if(s){var o=i+r+s.y+(this.scrollOffset||0)+3;p(s,{left:t.translateX+n.checkboxOffset+s.x-20+"px",top:o+"px",display:this.proximate||o>i-6&&o<i+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,r=t.title,i=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?A(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},r=this.chart,i=r.renderer,n=this.options,s=this.symbolWidth,o=n.symbolPadding||0,a=this.itemStyle,A=this.itemHiddenStyle,l="horizontal"===n.layout?b(n.itemDistance,20):0,h=!n.rtl,c=!t.series,u=!c&&t.series.drawLegendSymbol?t.series:t,p=u.options,d=this.createCheckboxForItem&&p&&p.showCheckbox,f=n.useHTML,g=t.options.className,m=e.label;p=s+o+l+(d?20:0),m||(e.group=i.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(c?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=m=i.text("",h?s+o:-o,this.baseline||0,f),r.styledMode||m.css(v(t.visible?a:A)),m.attr({align:h?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=i.fontMetrics(r.styledMode?12:a.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,n.squareSymbol&&(this.symbolWidth=b(n.symbolWidth,Math.max(this.symbolHeight,16)),p=this.symbolWidth+o+l+(d?20:0),h&&m.attr("x",this.symbolWidth+o))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),d&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!r.styledMode&&a.width||m.css({width:(n.itemWidth||this.widthOption||r.spacingBox.width)-p+"px"}),this.setText(t),r=m.getBBox(),i=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=n.itemWidth||e.labelWidth||r.width+p,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(r.height>1.5*i?r.height:i))},t.prototype.layoutItem=function(t){var e=this.options,r=this.padding,i="horizontal"===e.layout,n=t.itemHeight,s=this.itemMarginBottom,o=this.itemMarginTop,a=i?b(e.itemDistance,20):0,A=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};i&&this.itemX-r+e>A&&(this.itemX=r,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=o+this.itemY+s,this.lastLineHeight=Math.max(n,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,i?this.itemX+=e:(this.itemY+=o+n+s,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-r-(t.checkbox?0:a):e)+r,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var r=e&&e.options;e&&b(r.showInLegend,!d(r.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===r.legendType?e.data:e)))}),m(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var r=this.chart,i=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,o){s.test(n)&&!d(t[o])&&(r[l[o]]=Math.max(r[l[o]],r.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*i[o%2?"x":"y"]+b(i.margin,12)+e[o]+(r.titleOffset[o]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],r="left"===this.options.align;this.allItems.forEach(function(i){var n,s=r;if(i.yAxis){i.xAxis.options.reversed&&(s=!s),i.points&&(n=g(s?i.points:i.points.slice(0).reverse(),function(t){return y(t.plotY)})),s=this.itemMarginTop+i.legendItem.label.getBBox().height+this.itemMarginBottom;var o=i.yAxis.top-t.plotTop;i.visible?(n=n?n.plotY:i.yAxis.height,n+=o-.3*s):n=o+i.yAxis.height,e.push({target:n,size:s,item:i})}},this);for(var i,n=0,s=h(e,t.plotHeight);n<s.length;n++){var o=s[n];i=o.item.legendItem||{},y(o.pos)&&(i.y=t.plotTop-t.spacing[0]+o.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,r=this.options,i=this.padding,n=this.getAllItems(),s=this.group,o=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(r.width,t.spacingBox.width-i);var a=t.spacingBox.width-2*i-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,s||(this.group=s=e.g("legend").addClass(r.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(s),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),B(n,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),r.reversed&&n.reverse(),this.allItems=n,this.display=a=!!n.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,n.forEach(this.renderItem,this),n.forEach(this.layoutItem,this),n=(this.widthOption||this.offsetWidth)+i;var A=this.lastItemY+this.lastLineHeight+this.titleHeight;A=this.handleOverflow(A),A+=i,o||(this.box=o=e.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(s)),t.styledMode||o.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),0<n&&0<A&&o[o.placed?"animate":"attr"](o.crisp.call({},{x:0,y:0,width:n,height:A},o.strokeWidth())),s[a?"show":"hide"](),t.styledMode&&"none"===s.getStyle("display")&&(n=A=0),this.legendWidth=n,this.legendHeight=A,a&&this.align(),this.proximate||this.positionItems(),m(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,r=this.options,i=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?i+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(i-=e.titleOffset[2]),i!==t.y&&(t=v(t,{y:i})),e.hasRendered||(this.group.placed=!1),this.group.align(v(r,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":r.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,r,i,n=this,s=this.chart,o=s.renderer,a=this.options,A=a.y,l="top"===a.verticalAlign,h=this.padding,c=a.maxHeight,u=a.navigation,p=b(u.animation,!0),d=u.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?w.attr({height:t}):w&&(n.clipRect=w.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+h+"px,9999px,"+(h+t)+"px,0)":"auto")},y=function(t){return n[t]=o.circle(0,0,1.3*d).translate(d/2,d/2).add(v),s.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]};A=s.spacingBox.height+(l?-A:A)-h;var v=this.nav,w=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(A/=2),c&&(A=Math.min(A,c)),f.length=0,t&&0<A&&t>A&&!1!==u.enabled?(this.clipHeight=e=Math.max(A-20-this.titleHeight-h,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,n){t=(i=t.legendItem||{}).y||0;var s=Math.round(i.label.getBBox().height),o=f.length;(!o||t-f[o-1]>e&&(r||t)!==f[o-1])&&(f.push(r||t),o++),i.pageIx=o-1,r&&((g[n-1].legendItem||{}).pageIx=o-1),n===g.length-1&&t+s-f[o-1]>e&&s<=e&&(f.push(t),i.pageIx=o),t!==r&&(r=t)}),w||(w=n.clipRect=o.clipRect(0,h,9999,0),n.contentGroup.clip(w)),m(e),v||(this.nav=v=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).add(v),y("upTracker").on("click",function(){n.scroll(-1,p)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(v),this.down=o.symbol("triangle-down",0,0,d,d).add(v),y("downTracker").on("click",function(){n.scroll(1,p)})),n.scroll(0),t=A):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var r=this,i=this.chart,n=this.pages,s=n.length,A=this.clipHeight,l=this.options.navigation,h=this.pager,c=this.padding,u=this.currentPage+t;u>s&&(u=s),0<u&&(void 0!==e&&a(e,i),this.nav.attr({translateX:c,translateY:A+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:u+"/"+s}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:u===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===u?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===s?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:u===s?"default":"pointer"})),this.scrollOffset=-n[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),t=o(b(e,i.renderer.globalAnimation,!0)),x(function(){m(r,"afterScroll",{currentPage:u})},t.duration))},t.prototype.setItemEvents=function(t,e,r){var n=this,s=t.legendItem||{},o=n.chart.renderer.boxWrapper,a=t instanceof i,A="highcharts-legend-"+(a?"point":"series")+"-active",l=n.chart.styledMode,h=function(e){n.allItems.forEach(function(r){t!==r&&[r].concat(r.linkedSeries||[]).forEach(function(t){t.setState(e,!a)})})},c=0;for(r=r?[e,s.symbol]:[s.group];c<r.length;c++)(s=r[c])&&s.on("mouseover",function(){t.visible&&h("inactive"),t.setState("hover"),t.visible&&o.addClass(A),l||e.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||e.css(v(t.visible?n.itemStyle:n.itemHiddenStyle)),h(""),o.removeClass(A),t.setState()}).on("click",function(e){var r=function(){t.setVisible&&t.setVisible(),h(t.visible?"inactive":"")};o.removeClass(A),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,r):m(t,"legendItemClick",e,r)})},t.prototype.createCheckboxForItem=function(t){t.checkbox=u("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),c(t.checkbox,"click",function(e){m(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}(),t}),e(r,"Core/Series/SeriesRegistry.js",[r["Core/Globals.js"],r["Core/Defaults.js"],r["Core/Series/Point.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n,s=e.defaultOptions,o=i.extendClass,a=i.merge;return function(e){function i(t,i){var n=s.plotOptions||{},o=i.defaultOptions,a=i.prototype;a.type=t,a.pointClass||(a.pointClass=r),o&&(n[t]=o),e.seriesTypes[t]=i}e.seriesTypes=t.seriesTypes,e.registerSeriesType=i,e.seriesType=function(t,n,A,l,h){var c=s.plotOptions||{};return n=n||"",c[t]=a(c[n],A),i(t,o(e.seriesTypes[n]||function(){},l)),e.seriesTypes[t].prototype.type=t,h&&(e.seriesTypes[t].prototype.pointClass=o(r,h)),e.seriesTypes[t]}}(n||(n={})),n}),e(r,"Core/Chart/Chart.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Defaults.js"],r["Core/FormatUtilities.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Legend/Legend.js"],r["Core/MSPointer.js"],r["Core/Pointer.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Time.js"],r["Core/Utilities.js"],r["Core/Renderer/HTML/AST.js"]],function(t,e,r,i,n,s,o,a,A,l,h,c,u,p,d){var f=t.animate,g=t.animObject,m=t.setAnimation,y=r.defaultOptions,v=r.defaultTime,b=i.numberFormat,w=n.registerEventOptions,B=s.charts,x=s.doc,C=s.marginNames,E=s.svg,S=s.win,F=h.seriesTypes,T=p.addEvent,I=p.attr,_=p.cleanRecursively,k=p.createElement,L=p.css,P=p.defined,N=p.discardElement,D=p.erase,M=p.error,O=p.extend,U=p.find,Q=p.fireEvent,R=p.getStyle,H=p.isArray,j=p.isNumber,V=p.isObject,G=p.isString,z=p.merge,K=p.objectEach,W=p.pick,Y=p.pInt,X=p.relativeLength,q=p.removeEvent,$=p.splat,J=p.syncTimeout,Z=p.uniqueKey;return t=function(){function t(t,e,r){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,r)}return t.chart=function(e,r,i){return new t(e,r,i)},t.prototype.getArgs=function(t,e,r){G(t)||t.nodeName?(this.renderTo=t,this.init(e,r)):this.init(t,e)},t.prototype.init=function(t,e){var r=t.plotOptions||{};Q(this,"init",{args:arguments},function(){var i=z(y,t),n=i.chart;K(i.plotOptions,function(t,e){V(t)&&(t.tooltip=r[e]&&z(r[e].tooltip)||void 0)}),i.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var o=n.zooming=n.zooming||{};t.chart&&!t.chart.zooming&&(o.resetButton=n.resetZoomButton),o.key=W(o.key,n.zoomKey),o.pinchType=W(o.pinchType,n.pinchType),o.singleTouch=W(o.singleTouch,n.zoomBySingleTouch),o.type=W(o.type,n.zoomType),this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new u(t.time):s.time,this.numberFormatter=n.numberFormatter||b,this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=B.length,B.push(this),s.chartCount++,w(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,Q(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var r=F[e];return r||M(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new r).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var r=e.length;t<r;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,r){void 0===r&&(r={});var i=this.inverted,n=this.plotBox,s=this.plotLeft,o=this.plotTop,a=this.scrollablePlotBox,A=0,l=0;r.visiblePlotOnly&&this.scrollingContainer&&(A=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var h=r.series;if(n=r.visiblePlotOnly&&a||n,t={x:a=r.inverted?e:t,y:e=r.inverted?t:e,isInsidePlot:!0,options:r},!r.ignoreX){var c=h&&(i&&!this.polar?h.yAxis:h.xAxis)||{pos:s,len:1/0};(a=r.paneCoordinates?c.pos+a:s+a)>=Math.max(A+s,c.pos)&&a<=Math.min(A+s+n.width,c.pos+c.len)||(t.isInsidePlot=!1)}return!r.ignoreY&&t.isInsidePlot&&(i=r.axis&&!r.axis.isXAxis&&r.axis||h&&(i?h.xAxis:h.yAxis)||{pos:o,len:1/0},(r=r.paneCoordinates?i.pos+e:o+e)>=Math.max(l+o,i.pos)&&r<=Math.min(l+o+n.height,i.pos+i.len)||(t.isInsidePlot=!1)),Q(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){Q(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],r=this.series,i=this.pointer,n=this.legend,s=this.userOptions.legend,o=this.renderer,a=o.isHidden(),A=[],l=this.isDirtyBox,h=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=r.length;t--;){var c=r[t];if(c.options.stacking||c.options.centerInCategory){var u=!0;if(c.isDirty){var p=!0;break}}}if(p)for(t=r.length;t--;)(c=r[t]).options.stacking&&(c.isDirty=!0);r.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),h=!0):s&&(s.labelFormatter||s.labelFormat)&&(h=!0)),t.isDirtyData&&Q(t,"updatedData")}),h&&n&&n.options.enabled&&(n.render(),this.isDirtyLegend=!1),u&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,A.push(function(){Q(t,"afterSetExtremes",O(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||u)&&t.redraw()}),l&&this.drawChartBox(),Q(this,"predraw"),r.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),i&&i.reset(!0),o.draw(),Q(this,"redraw"),Q(this,"render"),a&&this.temporaryDisplay(!0),A.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var r=this.series,i=U(this.axes,e)||U(this.series,e),n=0;!i&&n<r.length;n++)i=U(r[n].points||[],e);return i},t.prototype.getAxes=function(){var t=this,r=this.options,i=r.xAxis=$(r.xAxis||{});r=r.yAxis=$(r.yAxis||{}),Q(this,"getAxes"),i.forEach(function(t,e){t.index=e,t.isX=!0}),r.forEach(function(t,e){t.index=e}),i.concat(r).forEach(function(r){new e(t,r)}),Q(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){W(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,r){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(r)},t.prototype.applyDescription=function(t,e){var r=this,i="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};i=this.options[t]=z(!this.styledMode&&{style:i},this.options[t],e);var n=this[t];n&&e&&(this[t]=n=n.destroy()),i&&!n&&((n=this.renderer.text(i.text,0,0,i.useHTML).attr({align:i.align,class:"highcharts-"+t,zIndex:i.zIndex||4}).add()).update=function(e){r[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||n.css(i.style),this[t]=n)},t.prototype.layOutTitles=function(t){var e=[0,0,0],r=this.renderer,i=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var n,s=this[t],o=this.options[t],a=o.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,s){this.styledMode||(n=o.style&&o.style.fontSize),n=r.fontMetrics(n,s).b,s.css({width:(o.width||i.width+(o.widthAdjust||0))+"px"});var A=Math.round(s.getBBox(o.useHTML).height);s.align(O({y:"bottom"===a?n:t+n,height:A},o),!1,"spacingBox"),o.floating||("top"===a?e[0]=Math.ceil(e[0]+A):"bottom"===a&&(e[2]=Math.ceil(e[2]+A)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var n=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Q(this,"afterLayOutTitles"),!this.isDirtyBox&&n&&(this.isDirtyBox=this.isDirtyLegend=n,this.hasRendered&&W(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var r=this.renderTo;P(e)||(this.containerWidth=R(r,"width")),P(t)||(this.containerHeight=R(r,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,X(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(L(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(x.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(x.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,x.body.appendChild(e)),("none"===R(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),L(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==x.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,r=e.chart,i=Z(),n=this.renderTo;n||(this.renderTo=n=r.renderTo),G(n)&&(this.renderTo=n=x.getElementById(n)),n||M(13,!0,this);var s=Y(I(n,"data-highcharts-chart"));j(s)&&B[s]&&B[s].hasRendered&&B[s].destroy(),I(n,"data-highcharts-chart",this.index),n.innerHTML=d.emptyHTML,r.skipClone||n.offsetWidth||this.temporaryDisplay(),this.getChartSize(),s=this.chartWidth;var o=this.chartHeight;if(L(n,{overflow:"hidden"}),this.styledMode||(t=O({position:"relative",overflow:"hidden",width:s+"px",height:o+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},r.style||{})),this.container=i=k("div",{id:i},t,n),this._cursor=i.style.cursor,this.renderer=new(r.renderer||!E?l.getRendererType(r.renderer):c)(i,s,o,void 0,r.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(r.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(r.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,r=this.margin,i=this.titleOffset;this.resetMargins(),i[0]&&!P(r[0])&&(this.plotTop=Math.max(this.plotTop,i[0]+e[0])),i[2]&&!P(r[2])&&(this.marginBottom=Math.max(this.marginBottom,i[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(r,e),Q(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],r=t.colorAxis,i=t.margin,n=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?n(t.axes):r&&r.length&&n(r),C.forEach(function(r,n){P(i[n])||(t[r]+=e[n])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,r=e.options.chart,i=e.renderTo,n=P(r.width)&&P(r.height),s=r.width||R(i,"width");r=r.height||R(i,"height"),i=t?t.target:S,delete e.pointer.chartPosition,n||e.isPrinting||!s||!r||i!==S&&i!==x||(s===e.containerWidth&&r===e.containerHeight||(p.clearTimeout(e.reflowTimeout),e.reflowTimeout=J(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=s,e.containerHeight=r)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=T(S,"resize",function(t){e.options&&e.reflow(t)}),T(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,r){var i=this,n=i.renderer;i.isResizing+=1,m(r,i),r=n.globalAnimation,i.oldChartHeight=i.chartHeight,i.oldChartWidth=i.chartWidth,void 0!==t&&(i.options.chart.width=t),void 0!==e&&(i.options.chart.height=e),i.getChartSize(),i.styledMode||(r?f:L)(i.container,{width:i.chartWidth+"px",height:i.chartHeight+"px"},r),i.setChartSize(!0),n.setSize(i.chartWidth,i.chartHeight,r),i.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),i.isDirtyLegend=!0,i.isDirtyBox=!0,i.layOutTitles(),i.getMargins(),i.redraw(r),i.oldChartHeight=null,Q(i,"resize"),J(function(){i&&Q(i,"endResize",null,function(){--i.isResizing})},g(r).duration)},t.prototype.setChartSize=function(t){var e,r,i,n,s=this.inverted,o=this.renderer,a=this.chartWidth,A=this.chartHeight,l=this.options.chart,h=this.spacing,c=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=r=Math.round(this.plotTop),this.plotWidth=i=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=n=Math.max(0,Math.round(A-r-this.marginBottom)),this.plotSizeX=s?n:i,this.plotSizeY=s?i:n,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=o.spacingBox={x:h[3],y:h[0],width:a-h[3]-h[1],height:A-h[0]-h[2]},this.plotBox=o.plotBox={x:e,y:r,width:i,height:n},s=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(s,c[3])/2),A=Math.ceil(Math.max(s,c[0])/2),this.clipBox={x:a,y:A,width:Math.floor(this.plotSizeX-Math.max(s,c[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(s,c[2])/2-A))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),o.alignElements()),Q(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){Q(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(r){var i=e[r],n=V(i)?i:[i,i,i,i];["Top","Right","Bottom","Left"].forEach(function(i,s){t[r][s]=W(e[r+i],n[s])})}),C.forEach(function(e,r){t[e]=W(t.margin[r],t.spacing[r])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,r=this.renderer,i=this.chartWidth,n=this.chartHeight,s=this.styledMode,o=this.plotBGImage,a=e.backgroundColor,A=e.plotBackgroundColor,l=e.plotBackgroundImage,h=this.plotLeft,c=this.plotTop,u=this.plotWidth,p=this.plotHeight,d=this.plotBox,f=this.clipRect,g=this.clipBox,m=this.chartBackground,y=this.plotBackground,v=this.plotBorder,b="animate";if(m||(this.chartBackground=m=r.rect().addClass("highcharts-background").add(),b="attr"),s)var w=t=m.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(w||m["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=w),m.attr(a).shadow(e.shadow);m[b]({x:t/2,y:t/2,width:i-t-w%2,height:n-t-w%2,r:e.borderRadius}),b="animate",y||(b="attr",this.plotBackground=y=r.rect().addClass("highcharts-plot-background").add()),y[b](d),s||(y.attr({fill:A||"none"}).shadow(e.plotShadow),l&&(o?(l!==o.attr("href")&&o.attr("href",l),o.animate(d)):this.plotBGImage=r.image(l,h,c,u,p).add())),f?f.animate({width:g.width,height:g.height}):this.clipRect=r.clipRect(g),b="animate",v||(b="attr",this.plotBorder=v=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),s||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),v[b](v.crisp({x:h,y:c,width:u,height:p},-v.strokeWidth())),this.isDirtyBox=!1,Q(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,r,i=this,n=i.options.chart,s=i.options.series;["inverted","angular","polar"].forEach(function(o){for(e=F[n.type||n.defaultSeriesType],r=n[o]||e&&e.prototype[o],t=s&&s.length;!r&&t--;)(e=F[s[t].type])&&e.prototype[o]&&(r=!0);i[o]=r})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var r=e.options.linkedTo;G(r)&&(r=":previous"===r?t.series[e.index-1]:t.get(r))&&r.linkedParent!==e&&(r.linkedSeries.push(e),e.linkedParent=r,r.enabledDataSorting&&e.setDataSortingOptions(),e.visible=W(e.options.visible,r.options.visible,e.visible))}),Q(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(r){var i=O(e.style,r.style),n=Y(i.left)+t.plotLeft,s=Y(i.top)+t.plotTop+12;delete i.left,delete i.top,t.renderer.text(r.html,n,s).attr({zIndex:2}).css(i).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,r=this.renderer,i=this.options,n=function(t){t.forEach(function(t){t.visible&&t.render()})},s=0;this.setTitle(),this.legend=new o(this,i.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),i=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return s=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-s,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var A=1.1<i/this.plotWidth,l=1.05<a/this.plotHeight;(A||l)&&(t.forEach(function(t){(t.horiz&&A||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?n(t):e&&e.length&&n(e),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,r=z(!0,this.options.credits,t);r.enabled&&!this.credits&&(this.credits=this.renderer.text(r.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){r.href&&(S.location.href=r.href)}).attr({align:r.position.align,zIndex:8}),e.styledMode||this.credits.css(r.style),this.credits.add().align(r.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,r=e.axes,i=e.series,n=e.container,o=n&&n.parentNode;for(Q(e,"destroy"),e.renderer.forExport?D(B,e):B[e.index]=void 0,s.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),q(e),t=r.length;t--;)r[t]=r[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=i.length;t--;)i[t]=i[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var r=e[t];r&&r.destroy&&(e[t]=r.destroy())}),n&&(n.innerHTML=d.emptyHTML,q(n),o&&N(n)),K(e,function(t,r){delete e[r]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(H(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),Q(t,"beforeRender"),A&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new A(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),Q(this,"load"),Q(this,"render"),P(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||M('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,r){var i,n=this;return t&&(e=W(e,!0),Q(n,"addSeries",{options:t},function(){i=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),i.enabledDataSorting&&i.setData(t.data,!1),Q(n,"afterAddSeries",{series:i}),e&&n.redraw(r)})),i},t.prototype.addAxis=function(t,e,r,i){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:r,animation:i})},t.prototype.addColorAxis=function(t,e,r){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:r})},t.prototype.createAxis=function(t,r){return t=new e(this,z(r.axis,{index:this[t].length,isX:"xAxis"===t})),W(r.redraw,!0)&&this.redraw(r.animation),t},t.prototype.showLoading=function(t){var e=this,r=e.options,i=r.loading,n=function(){s&&L(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},s=e.loadingDiv,o=e.loadingSpan;s||(e.loadingDiv=s=k("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),o||(e.loadingSpan=o=k("span",{className:"highcharts-loading-inner"},null,s),T(e,"redraw",n)),s.className="highcharts-loading",d.setElementHTML(o,W(t,r.lang.loading,"")),e.styledMode||(L(s,O(i.style,{zIndex:10})),L(o,i.labelStyle),e.loadingShown||(L(s,{opacity:0,display:""}),f(s,{opacity:i.style.opacity||.5},{duration:i.showDuration||0}))),e.loadingShown=!0,n()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||f(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){L(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,r,i){var n,s,o=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},A=t.isResponsiveOptions,l=[];Q(o,"update",{options:t}),A||o.setResponsive(!1,!0),t=_(t,o.options),o.userOptions=z(o.userOptions,t);var h=t.chart;if(h){if(z(!0,o.options.chart,h),"className"in h&&o.setClassName(h.className),"reflow"in h&&o.setReflow(h.reflow),"inverted"in h||"polar"in h||"type"in h){o.propFromSeries();var c=!0}"alignTicks"in h&&(c=!0),"events"in h&&w(this,h),K(h,function(t,e){-1!==o.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==o.propsRequireDirtyBox.indexOf(e)&&(o.isDirtyBox=!0),-1!==o.propsRequireReflow.indexOf(e)&&(A?o.isDirtyBox=!0:s=!0)}),!o.styledMode&&h.style&&o.renderer.setStyle(o.options.chart.style||{})}!o.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===v&&(this.time=new u(t.time)),z(!0,o.options.time,t.time)),K(t,function(e,r){o[r]&&"function"==typeof o[r].update?o[r].update(e,!1):"function"==typeof o[a[r]]?o[a[r]](e):"colors"!==r&&-1===o.collectionsWithUpdate.indexOf(r)&&z(!0,o.options[r],t[r]),"chart"!==r&&-1!==o.propsRequireUpdateSeries.indexOf(r)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var i=[];o[e].forEach(function(t,e){t.options.isInternal||i.push(W(t.options.index,e))}),$(t[e]).forEach(function(t,n){var s,a=P(t.id);a&&(s=o.get(t.id)),!s&&o[e]&&(s=o[e][i?i[n]:n])&&a&&P(s.options.id)&&(s=void 0),s&&s.coll===e&&(s.update(t,!1),r&&(s.touched=!0)),!s&&r&&o.collectionsWithInit[e]&&(o.collectionsWithInit[e][0].apply(o,[t].concat(o.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),r&&o[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),c&&o.axes.forEach(function(t){t.update({},!1)}),n&&o.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),c=h&&h.width,h=h&&(G(h.height)?X(h.height,c||o.chartWidth):h.height),s||j(c)&&c!==o.chartWidth||j(h)&&h!==o.chartHeight?o.setSize(c,h,i):W(e,!0)&&o.redraw(i),Q(o,"afterUpdate",{options:t,redraw:e,animation:i})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,r=y.lang,i=e.options.chart.zooming.resetButton,n=i.theme,s="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"scrollablePlotBox";Q(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(r.resetZoom,null,null,t,n).attr({align:i.position.align,title:r.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,s)}),Q(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){Q(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,r=this,i=r.pointer,n=!1;!t||t.resetSelection?(r.axes.forEach(function(t){e=t.zoom()}),i.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var s=t.axis;(i[s.isXAxis?"zoomX":"zoomY"]&&P(i.mouseDownX)&&P(i.mouseDownY)&&r.isInsidePlot(i.mouseDownX-r.plotLeft,i.mouseDownY-r.plotTop,{axis:s})||!P(r.inverted?i.mouseDownX:i.mouseDownY))&&(e=s.zoom(t.min,t.max),s.displayBtn&&(n=!0))});var s=r.resetZoomButton;n&&!s?r.showResetZoom():!n&&V(s)&&(r.resetZoomButton=s.destroy()),e&&r.redraw(W(r.options.chart.animation,t&&t.animation,100>r.pointCount))},t.prototype.pan=function(t,e){var r=this,i=r.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var n=r.options.chart;n&&n.panning&&(n.panning=e);var s,o=e.type;Q(this,"pan",{originalEvent:t},function(){i&&i.forEach(function(t){t.setState()});var e=r.xAxis;"xy"===o?e=e.concat(r.yAxis):"y"===o&&(e=r.yAxis);var n={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var i=e.horiz,a=t[i?"chartX":"chartY"],A=r[i=i?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,h=e.reversed&&!r.inverted||!e.reversed&&r.inverted?-1:1,c=e.getExtremes(),u=e.toValue(A-a,!0)+l*h,p=e.toValue(A+e.len-a,!0)-(l*h||e.isXAxis&&e.pointRangePadding||0),d=p<u;h=e.hasVerticalPanning(),A=d?p:u,u=d?u:p;var f=e.panningState;!h||e.isXAxis||f&&!f.isDirty||e.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),f||(f={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(e.dataMin)&&j(e.dataMax)&&(f.startMin=Math.min(W(t.options.threshold,1/0),e.dataMin,f.startMin),f.startMax=Math.max(W(t.options.threshold,-1/0),e.dataMax,f.startMax))}),h=Math.min(W(f&&f.startMin,c.dataMin),l?c.min:e.toValue(e.toPixels(c.min)-e.minPixelPadding)),p=Math.max(W(f&&f.startMax,c.dataMax),l?c.max:e.toValue(e.toPixels(c.max)+e.minPixelPadding)),e.panningState=f,e.isOrdinal||(0<(l=h-A)&&(u+=l,A=h),0<(l=u-p)&&(u=p,A-=l),e.series.length&&A!==c.min&&u!==c.max&&A>=h&&u<=p&&(e.setExtremes(A,u,!1,!1,{trigger:"pan"}),!r.resetZoomButton&&A!==h&&u!==p&&o.match("y")&&(r.showResetZoom(),e.displayBtn=!1),s=!0),n[i]=a)}}),K(n,function(t,e){r[e]=t}),s&&r.redraw(!1),L(r.container,{cursor:"move"})})},t}(),O(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t}),e(r,"Core/Legend/LegendSymbol.js",[r["Core/Utilities.js"]],function(t){var e,r=t.extend,i=t.merge,n=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},s=this.options,o=t.symbolWidth,a=t.symbolHeight,A=a/2,l=this.chart.renderer,h=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={},u=s.marker,p=0;this.chart.styledMode||(c={"stroke-width":Math.min(s.lineWidth||0,24)},s.dashStyle?c.dashstyle=s.dashStyle:"square"!==s.linecap&&(c["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(c).add(h),c["stroke-linecap"]&&(p=Math.min(e.line.strokeWidth(),o)/2),e.line.attr({d:[["M",p,t],["L",o-p,t]]}),u&&!1!==u.enabled&&o&&(s=Math.min(n(u.radius,A),A),0===this.symbol.indexOf("url")&&(u=i(u,{width:a,height:a}),s=0),e.symbol=e=l.symbol(this.symbol,o/2-s,t-s,2*s,2*s,r({context:"legend"},u)).addClass("highcharts-point").add(h),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var r=t.symbolHeight,i=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(i?(t.symbolWidth-r)/2:0,t.baseline-r+1,i?r:t.symbolWidth,r,n(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e}),e(r,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),e(r,"Core/Series/Series.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Defaults.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/Point.js"],r["Core/Series/SeriesDefaults.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a,A,l){var h=t.animObject,c=t.setAnimation,u=e.defaultOptions,p=r.registerEventOptions,d=i.hasTouch,f=i.svg,g=i.win,m=a.seriesTypes,y=l.arrayMax,v=l.arrayMin,b=l.clamp,w=l.cleanRecursively,B=l.correctFloat,x=l.defined,C=l.erase,E=l.error,S=l.extend,F=l.find,T=l.fireEvent,I=l.getNestedProperty,_=l.isArray,k=l.isNumber,L=l.isString,P=l.merge,N=l.objectEach,D=l.pick,M=l.removeEvent,O=l.splat,U=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){T(this,"init",{options:e});var r=this,i=t.series;this.eventsToUnbind=[],r.chart=t,r.options=r.setOptions(e),e=r.options,r.linkedSeries=[],r.bindAxes(),S(r,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var n,s=e.events;(s&&s.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach(function(t){r[t+"Data"]||(r[t+"Data"]=[])}),r.isCartesian&&(t.hasCartesianSeries=!0),i.length&&(n=i[i.length-1]),r._i=D(n&&n._i,-1)+1,r.opacity=r.options.opacity,t.orderSeries(this.insert(i)),e.dataSorting&&e.dataSorting.enabled?r.setDataSortingOptions():r.points||r.data||r.setData(e.data,!1),T(this,"afterInit")},t.prototype.is=function(t){return m[t]&&this instanceof m[t]},t.prototype.insert=function(t){var e,r=this.options.index;if(k(r)){for(e=t.length;e--;)if(r>=D(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return D(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,r=e.options,i=e.chart;T(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(n){var s=0;i[n].forEach(function(i){t=i.options,(r[n]===s&&!t.isInternal||void 0!==r[n]&&r[n]===t.id||void 0===r[n]&&0===t.index)&&(e.insert(i.series),e[n]=i,i.isDirty=!0),t.isInternal||s++}),e[n]||e.optionalAxis===n||E(18,!0,i)})}),T(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var r=t.series,i=arguments,n=k(e)?function(i){var n="y"===i&&r.toYData?r.toYData(t):t[i];r[i+"Data"][e]=n}:function(t){Array.prototype[e].apply(r[t+"Data"],Array.prototype.slice.call(i,2))};r.parallelArrays.forEach(n)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,r=this.options,i=r.pointIntervalUnit,n=r.relativeXValue,s=this.chart.time,o=this.xIncrement;return o=D(o,r.pointStart,0),this.pointInterval=e=D(this.pointInterval,r.pointInterval,1),n&&k(t)&&(e*=t),i&&(r=new s.Date(o),"day"===i?s.set("Date",r,s.get("Date",r)+e):"month"===i?s.set("Month",r,s.get("Month",r)+e):"year"===i&&s.set("FullYear",r,s.get("FullYear",r)+e),e=r.getTime()-o),n&&k(t)?o+e:(this.xIncrement=o+e,o)},t.prototype.setDataSortingOptions=function(){var t=this.options;S(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),x(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,r=e.options,i=r.plotOptions,n=e.userOptions||{};t=P(t),e=e.styledMode;var s={plotOptions:i,userOptions:t};T(this,"setOptions",s);var o=s.plotOptions[this.type],a=n.plotOptions||{};return this.userOptions=s.userOptions,n=P(o,i.series,n.plotOptions&&n.plotOptions[this.type],t),this.tooltipOptions=P(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,r.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=D(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||n.stickyTracking),null===o.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,i=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||(r={value:n[this.zoneAxis+"Threshold"]||n.threshold||0,className:"highcharts-negative"},e||(r.color=n.negativeColor,r.fillColor=n.negativeFillColor),i.push(r)),i.length&&x(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),T(this,"afterSetOptions",{options:n}),n},t.prototype.getName=function(){return D(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,r){var i=this.chart,n=this.userOptions,s=t+"Index",o=t+"Counter",a=r?r.length:D(i.options.chart[t+"Count"],i[t+"Count"]);if(!e){var A=D(n[s],n["_"+s]);x(A)||(i.series.length||(i[o]=0),n["_"+s]=A=i[o]%a,i[o]+=1),r&&(e=r[A])}void 0!==A&&(this[s]=A),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var r,i,n=t.id,o=t.x,a=this.points,A=this.options.dataSorting;if(n)(A=this.chart.get(n))instanceof s&&(r=A);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(r=function(e){return!e.touched&&e.index===t.index},A&&A.matchByName?r=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(r=function(e){return!e.touched&&e.options.x===t.x}),!(r=F(a,r))))return;if(r){var l=r&&r.index;void 0!==l&&(i=!0)}return void 0===l&&k(o)&&(l=this.xData.indexOf(o,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!i&&k(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var r,i,n,s=this.options,o=s.dataSorting,a=this.points,A=[],l=this.requireSorting,h=t.length===a.length,c=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i=x(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},c=i.x;i.id||k(c)?(-1===(i=this.findPointIndex(i,n))||void 0===i?A.push(t):a[i]&&t!==s.data[i]?(a[i].update(t,!1,null,!1),a[i].touched=!0,l&&(n=i+1)):a[i]&&(a[i].touched=!0),(!h||e!==i||o&&o.enabled||this.hasDerivedData)&&(r=!0)):A.push(t)},this),r)for(t=a.length;t--;)(i=a[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!h||o&&o.enabled?c=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),A.length=0);return a.forEach(function(t){t&&(t.touched=!1)}),!!c&&(A.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,r,i){void 0===e&&(e=!0);var n=this,s=n.points,o=s&&s.length||0,a=n.options,A=n.chart,l=a.dataSorting,h=n.xAxis,c=a.turboThreshold,u=this.xData,p=this.yData,d=n.pointArrayMap;d=d&&d.length;var f,g=a.keys,m=0,y=1,v=null;if(!A.options.chart.allowMutatingData){a.data&&delete n.options.data,n.userOptions.data&&delete n.userOptions.data;var b=P(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),A.options.chart.allowMutatingData&&!1!==i&&b&&o&&!n.cropped&&!n.hasGroupedData&&n.visible&&!n.boosted&&(f=this.updateData(t,r)),!f){if(n.xIncrement=null,n.colorCounter=0,this.parallelArrays.forEach(function(t){n[t+"Data"].length=0}),c&&b>c)if(v=n.getFirstValidPoint(t),k(v))for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r];else if(_(v))if(d)if(v.length===d)for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r];else for(r=0;r<b;r++)i=t[r],u[r]=i[0],p[r]=i.slice(1,d+1);else if(g&&(m=0<=(m=g.indexOf("x"))?m:0,y=0<=(y=g.indexOf("y"))?y:1),1===v.length&&(y=0),m===y)for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r][y];else for(r=0;r<b;r++)i=t[r],u[r]=i[m],p[r]=i[y];else E(12,!1,A);else for(r=0;r<b;r++)void 0!==t[r]&&(i={series:n},n.pointClass.prototype.applyOptions.apply(i,[t[r]]),n.updateParallelArrays(i,r));for(p&&L(p[0])&&E(14,!0,A),n.data=[],n.options.data=n.userOptions.data=t,r=o;r--;)s[r]&&s[r].destroy&&s[r].destroy();h&&(h.minRange=h.userMinRange),n.isDirty=A.isDirtyBox=!0,n.isDirtyData=!!s,r=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&A.redraw(r)},t.prototype.sortData=function(t){var e=this,r=e.options.dataSorting.sortKey||"y",i=function(t,e){return x(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(r,n){t[n]=i(e,r),t[n].index=n},this),t.concat().sort(function(t,e){return t=I(r,t),(e=I(r,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var r=e.options,n=r.data;r.dataSorting&&r.dataSorting.enabled||!n||(n.forEach(function(r,s){n[s]=i(e,r),t[s]&&(n[s].x=t[s].x,n[s].index=s)}),e.setData(n,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,r=this.options,i=r.cropThreshold,n=t||this.getExtremesFromAll||r.getExtremesFromAll,s=this.isCartesian;t=e&&e.val2lin,r=!(!e||!e.logarithmic);var o=0,a=this.xData,A=this.yData,l=this.requireSorting,h=!1,c=a.length;if(e){var u=(h=e.getExtremes()).min,p=h.max;h=!(!e.categories||e.names.length)}if(s&&this.sorted&&!n&&(!i||c>i||this.forceCrop))if(a[c-1]<u||a[0]>p)a=[],A=[];else if(this.yData&&(a[0]<u||a[c-1]>p)){var d=this.cropData(this.xData,this.yData,u,p);a=d.xData,A=d.yData,o=d.start,d=!0}for(i=a.length||1;--i;)if(0<(e=r?t(a[i])-t(a[i-1]):a[i]-a[i-1])&&(void 0===f||e<f))var f=e;else 0>e&&l&&!h&&(E(15,!1,this.chart),l=!1);return{xData:a,yData:A,cropped:d,cropStart:o,closestPointRange:f}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,T(this,"afterProcessData")},t.prototype.cropData=function(t,e,r,i,n){var s,o=t.length,a=0,A=o;for(n=D(n,this.cropShoulder),s=0;s<o;s++)if(t[s]>=r){a=Math.max(0,s-n);break}for(r=s;r<o;r++)if(t[r]>i){A=r+n;break}return{xData:t.slice(a,A),yData:e.slice(a,A),start:a,end:A}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,r=this.processedXData,i=this.processedYData,n=this.pointClass,s=r.length,o=this.cropStart||0,a=this.hasGroupedData,A=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?o:0;var h,c,u=this.data;if(!u&&!a){var p=[];p.length=e.length,u=this.data=p}for(A&&a&&(this.options.keys=!1),c=0;c<s;c++){if(p=o+c,a){var d=(new n).init(this,[r[c]].concat(O(i[c])));d.dataGroup=this.groupMap[t+c],d.dataGroup.options&&(d.options=d.dataGroup.options,S(d,d.dataGroup.options),delete d.dataLabels)}else(d=u[p])||void 0===e[p]||(u[p]=d=(new n).init(this,e[p],r[c]));d&&(d.index=a?t+c:p,l[c]=d)}if(this.options.keys=A,u&&(s!==(h=u.length)||a))for(c=0;c<h;c++)c!==o||a||(c+=s),u[c]&&(u[c].destroyElements(),u[c].plotX=void 0);this.data=u,this.points=l,T(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:v(t),max:y(t)}},t.prototype.getExtremes=function(t,e){var r=this.xAxis,i=this.yAxis,n=this.processedXData||this.xData,s=[],o=this.requireSorting?this.cropShoulder:0;i=!!i&&i.positiveValuesOnly;var a,A=0,l=0,h=0,c=(t=t||this.stackedYData||this.processedYData||[]).length;if(r){var u=r.getExtremes();A=u.min,l=u.max}for(a=0;a<c;a++){var p=n[a];u=t[a];var d=(k(u)||_(u))&&(u.length||0<u||!i);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!r||(n[a+o]||p)>=A&&(n[a-o]||p)<=l,d&&p)if(d=u.length)for(;d--;)k(u[d])&&(s[h++]=u[d]);else s[h++]=u}return t={activeYData:s,dataMin:v(s),dataMax:y(s)},T(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,r=0,i=null;null===i&&r<e;)i=t[r],r++;return i},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,r=this.options,i=r.stacking,n=this.xAxis,s=n.categories,o=this.enabledDataSorting,a=this.yAxis,A=this.points,l=A.length,h=this.pointPlacementToXValue(),c=!!h,u=r.threshold,p=r.startFromThreshold?u:0,d=this.zoneAxis||"y",f=Number.MAX_VALUE;for(t=0;t<l;t++){var g=A[t],m=g.x,y=void 0,v=void 0,w=g.y,C=g.low,E=i&&a.stacking&&a.stacking.stacks[(this.negStacks&&w<(p?0:u)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(w)||n.positiveValuesOnly&&!n.validatePositiveValue(m))&&(g.isNull=!0),g.plotX=e=B(b(n.translate(m,0,0,0,1,h,"flags"===this.type),-1e5,1e5)),i&&this.visible&&E&&E[m]){var S=this.getStackIndicator(S,m,this.index);!g.isNull&&S.key&&(v=(y=E[m]).points[S.key]),y&&_(v)&&(C=v[0],w=v[1],C===p&&S.key===E[m].base&&(C=D(k(u)?u:a.min)),a.positiveValuesOnly&&x(C)&&0>=C&&(C=void 0),g.total=g.stackTotal=D(y.total),g.percentage=x(g.y)&&y.total?g.y/y.total*100:void 0,g.stackY=w,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(g.yBottom=x(C)?b(a.translate(C,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,t)),g.plotY=void 0,k(w)&&void 0!==(y=a.translate(w,!1,!0,!1,!0))&&(g.plotY=b(y,-1e5,1e5)),g.isInside=this.isPointInside(g),g.clientX=c?B(n.translate(m,0,0,0,1,h)):e,g.negative=g[d]<(r[d+"Threshold"]||u||0),g.category=D(s&&s[g.x],g.x),!g.isNull&&!1!==g.visible){void 0!==F&&(f=Math.min(f,Math.abs(e-F)));var F=e}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&o&&(g.isNew=!0)}this.closestPointRangePx=f,T(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,r){var i=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,{inverted:i.inverted}))&&!1!==t.visible&&(r||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,r=this.yAxis,i=P(t.clipBox);return e&&e.len!==t.plotSizeX&&(i.width=e.len),r&&r.len!==t.plotSizeY&&(i.height=r.len),i},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,r=this.markerGroup,i=t.sharedClips;t=t.renderer;var n=this.getClipBox(),s=this.getSharedClipKey(),o=i[s];o?o.animate(n):i[s]=o=t.clipRect(n),e&&e.clip(!1===this.options.clip?void 0:o),r&&r.clip()},t.prototype.animate=function(t){var e=this.chart,r=this.group,i=this.markerGroup,n=e.inverted,s=h(this.options.animation),o=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(),a=e.sharedClips[o],A=e.sharedClips[o+"m"];if(t&&r)s=this.getClipBox(),a?a.attr("height",s.height):(s.width=0,n&&(s.x=e.plotHeight),a=e.renderer.clipRect(s),e.sharedClips[o]=a,A=e.renderer.clipRect({x:-99,y:-99,width:n?e.plotWidth+199:99,height:n?99:e.plotHeight+199}),e.sharedClips[o+"m"]=A),r.clip(a),i&&i.clip(A);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=s.step;i&&i.element.childNodes.length&&(s.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&A&&A.element&&A.attr(n?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,s)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),N(this.chart.sharedClips,function(e,r,i){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete i[r])}),this.finishedAnimating=!0,T(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,r,i=this.chart,n=i.styledMode,s=this.colorAxis,o=this.options.marker,a=this[this.specialGroup||"markerGroup"],A=this.xAxis,l=D(o.enabled,!(A&&!A.isRadial)||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var h=t[e],c=(r=h.graphic)?"animate":"attr",u=h.marker||{},p=!!h.marker;if((l&&void 0===u.enabled||u.enabled)&&!h.isNull&&!1!==h.visible){var d=D(u.symbol,this.symbol,"rect"),f=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=A.reversed?-(f.width||0):A.width);var g=!1!==h.isInside;!r&&g&&(0<(f.width||0)||h.hasImage)&&(h.graphic=r=i.renderer.symbol(d,f.x,f.y,f.width,f.height,p?u:o).add(a),this.enabledDataSorting&&i.hasRendered&&(r.attr({x:h.startXPos}),c="animate")),r&&"animate"===c&&r[g?"show":"hide"](g).animate(f),r&&(u=this.pointAttribs(h,n||!h.selected?void 0:"select"),n?s&&r.css({fill:u.fill}):r[c](u)),r&&r.addClass(h.getClassName(),!0)}else r&&(h.graphic=r.destroy())}},t.prototype.markerAttribs=function(t,e){var r=this.options,i=r.marker,n=t.marker||{},s=n.symbol||i.symbol,o={},a=D(n.radius,i&&i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],a=D(e&&e.radius,i&&i.radius,a&&a+(i&&i.radiusPlus||0))),t.hasImage=s&&0===s.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),k(a)&&t&&(o.x=t[0]-a,o.y=t[1]-a,r.crisp&&(o.x=Math.floor(o.x))),a&&(o.width=o.height=2*a),o},t.prototype.pointAttribs=function(t,e){var r=this.options.marker,i=t&&t.options,n=i&&i.marker||{},s=i&&i.color,o=t&&t.color,a=t&&t.zone&&t.zone.color,A=this.color;return t=D(n.lineWidth,r.lineWidth),i=1,A=s||a||o||A,s=n.fillColor||r.fillColor||A,o=n.lineColor||r.lineColor||A,e=e||"normal",r=r.states[e]||{},e=n.states&&n.states[e]||{},t=D(e.lineWidth,r.lineWidth,t+D(e.lineWidthPlus,r.lineWidthPlus,0)),s=e.fillColor||r.fillColor||s,{stroke:o=e.lineColor||r.lineColor||o,"stroke-width":t,fill:s,opacity:i=D(e.opacity,r.opacity,i)}},t.prototype.destroy=function(t){var e,r,i,n=this,s=n.chart,o=/AppleWebKit\/533/.test(g.navigator.userAgent),a=n.data||[];for(T(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){(i=n[t])&&i.series&&(C(i.series,n),i.isDirty=i.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),e=a.length;e--;)(r=a[e])&&r.destroy&&r.destroy();n.clips&&n.clips.forEach(function(t){return t.destroy()}),l.clearTimeout(n.animationTimeout),N(n,function(t,e){t instanceof A&&!t.survive&&t[o&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===n&&(s.hoverSeries=void 0),C(s.series,n),s.orderSeries(),N(n,function(e,r){t&&"hcEvents"===r||delete n[r]})},t.prototype.applyZones=function(){var t,e,r,i,n,s,o,a,A=this,l=this.chart,h=l.renderer,c=this.zones,u=this.clips||[],p=this.graph,d=this.area,f=Math.max(l.plotWidth,l.plotHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=l.inverted,y=!1;if(c.length&&(p||d)&&g&&void 0!==g.min){var v=g.reversed,w=g.horiz;p&&!this.showLine&&p.hide(),d&&d.hide();var B=g.getExtremes();c.forEach(function(c,x){t=v?w?l.plotWidth:0:w?0:g.toPixels(B.min)||0,t=b(D(e,t),0,f),e=b(Math.round(g.toPixels(D(c.value,B.max),!0)||0),0,f),y&&(t=e=g.toPixels(B.max)),i=Math.abs(t-e),n=Math.min(t,e),s=Math.max(t,e),g.isXAxis?(r={x:m?s:n,y:0,width:i,height:f},w||(r.x=l.plotHeight-r.x)):(r={x:0,y:m?s:n,width:f,height:i},w&&(r.y=l.plotWidth-r.y)),m&&h.isVML&&(r=g.isXAxis?{x:0,y:v?n:s,height:r.width,width:l.chartWidth}:{x:r.y-l.plotLeft-l.spacingBox.x,y:0,width:r.height,height:l.chartHeight}),u[x]?u[x].animate(r):u[x]=h.clipRect(r),o=A["zone-area-"+x],a=A["zone-graph-"+x],p&&a&&a.clip(u[x]),d&&o&&o.clip(u[x]),y=c.value>B.max,A.resetZones&&0===e&&(e=void 0)}),this.clips=u}else A.visible&&(p&&p.show(),d&&d.show())},t.prototype.plotGroup=function(t,e,r,i,n){var s=this[t],o=!s;return r={visibility:r,zIndex:i||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(r.opacity=this.opacity),o&&(this[t]=s=this.chart.renderer.g().add(n)),s.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(x(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(r)[o?"attr":"animate"](this.getPlotBox(e)),s},t.prototype.getPlotBox=function(t){var e=this.xAxis,r=this.yAxis,i=this.chart;return t=i.inverted&&!i.polar&&e&&!1!==this.invertible&&"series"===t,i.inverted&&(e=r,r=this.xAxis),{translateX:e?e.left:i.plotLeft,translateY:r?r.top:i.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-r.len)/2:0,rotationOriginY:t?(e.len+r.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||M(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,r=t.options,i=h(r.animation),n=t.visible?"inherit":"hidden",s=r.zIndex,o=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?i.duration:0,T(this,"render"),t.plotGroup("group","series",n,s,a),t.markerGroup=t.plotGroup("markerGroup","markers",n,s,a),!1!==r.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),o||(e&&i.defer&&(e+=i.defer),t.animationTimeout=U(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,T(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var r=this.xAxis,i=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?r.len-t.chartY+r.pos:t.chartX-r.pos,plotY:n?i.len-t.chartX+i.pos:t.chartY-i.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,i,n){var s=t&&t.length;if(s){var o=r.kdAxisArray[i%n];return t.sort(function(t,e){return t[o]-e[o]}),{point:t[s=Math.floor(s/2)],left:e(t.slice(0,s),i+1,n),right:e(t.slice(s+1),i+1,n)}}}this.buildingKdTree=!0;var r=this,i=-1<r.options.findNearestPointBy.indexOf("y")?2:1;delete r.kdTree,U(function(){r.kdTree=e(r.getValidPoints(null,!r.directTouch),i,i),r.buildingKdTree=!1},r.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,r){var i=this,n=this.kdAxisArray[0],s=this.kdAxisArray[1],o=e?"distX":"dist";if(e=-1<i.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(r),this.kdTree)return function t(e,r,a,A){var l=r.point,h=i.kdAxisArray[a%A],c=l,u=x(e[n])&&x(l[n])?Math.pow(e[n]-l[n],2):null,p=x(e[s])&&x(l[s])?Math.pow(e[s]-l[s],2):null;return p=(u||0)+(p||0),l.dist=x(p)?Math.sqrt(p):Number.MAX_VALUE,l.distX=x(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(h=e[h]-l[h])?"right":"left",r[p=0>h?"left":"right"]&&(c=(p=t(e,r[p],a+1,A))[o]<c[o]?p:l),r[u]&&Math.sqrt(h*h)<c[o]&&(c=(e=t(e,r[u],a+1,A))[o]<c[o]?e:c),c}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,r=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=r.reversed?-.5:.5),k(t)?t*(e||r.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,r=this.xAxis,i=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(i?i.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(r?r.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,r=e.trackByArea,i=[].concat(r?t.areaPath:t.graphPath),n=t.chart,s=n.pointer,o=n.renderer,a=n.options.tooltip.snap,A=t.tracker,l=function(e){n.hoverSeries!==t&&t.onMouseOver()},h="rgba(192,192,192,"+(f?1e-4:.002)+")";A?A.attr({d:i}):t.graph&&(t.tracker=o.path(i).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),n.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:r?h:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){s.onTrackerMouseOut(t)}),e.cursor&&!n.styledMode&&t.css({cursor:e.cursor}),d)&&t.on("touchstart",l)})),T(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,r,i,n){var s=this.options,o=this.data,a=this.chart,A=this.xAxis;A=A&&A.hasNames&&A.names;var l,h=s.data,c=this.xData;e=D(e,!0);var u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);var p=u.x,d=c.length;if(this.requireSorting&&p<c[d-1])for(l=!0;d&&c[d-1]>p;)d--;this.updateParallelArrays(u,"splice",d,0,0),this.updateParallelArrays(u,d),A&&u.name&&(A[p]=u.name),h.splice(d,0,t),(l||this.processedData)&&(this.data.splice(d,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),r&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(u,"shift"),h.shift())),!1!==n&&T(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(i)},t.prototype.removePoint=function(t,e,r){var i=this,n=i.data,s=n[t],o=i.points,a=i.chart,A=function(){o&&o.length===n.length&&o.splice(t,1),n.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(s||{series:i},"splice",t,1),s&&s.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&a.redraw()};c(r,a),e=D(e,!0),s?s.firePointEvent("remove",null,A):A()},t.prototype.remove=function(t,e,r,i){function n(){s.destroy(i),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),D(t,!0)&&o.redraw(e)}var s=this,o=s.chart;!1!==r?T(s,"remove",null,n):n()},t.prototype.update=function(t,e){t=w(t,this.userOptions),T(this,"update",{options:t});var r=this,i=r.chart,n=r.userOptions,s=r.initialType||r.type,o=i.options.plotOptions,a=m[s].prototype,A=r.finishedAnimating&&{animation:!1},l={},h=["eventOptions","navigatorSeries","baseSeries"],c=t.type||n.type||i.options.chart.type,u=!(this.hasDerivedData||c&&c!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(c=c||s,u&&(h.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&h.push("area","graph"),r.parallelArrays.forEach(function(t){h.push(t+"Data")}),t.data&&(t.dataSorting&&S(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=P(n,A,{index:void 0===n.index?r.index:n.index,pointStart:D(o&&o.series&&o.series.pointStart,n.pointStart,r.xData[0])},!u&&{data:r.options.data},t),u&&t.data&&(t.data=r.options.data),(h=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(h)).forEach(function(t){h[t]=r[t],delete r[t]}),o=!1,m[c]){if(o=c!==r.type,r.remove(!1,!1,!1,!0),o)if(Object.setPrototypeOf)Object.setPrototypeOf(r,m[c].prototype);else{for(p in A=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,a)r[p]=void 0;S(r,m[c].prototype),A?r.hcEvents=A:delete r.hcEvents}}else E(17,!0,i,{missingModuleFor:c});if(h.forEach(function(t){r[t]=h[t]}),r.init(i,t),u&&this.points){if(!1===(t=r.options).visible)l.graphic=1,l.dataLabel=1;else if(!r._hasPointLabels){a=t.marker;var p=t.dataLabels;n=n.marker||{},!a||!1!==a.enabled&&n.symbol===a.symbol&&n.height===a.height&&n.width===a.width||(l.graphic=1),p&&!1===p.enabled&&(l.dataLabel=1)}for(n=0,a=this.points;n<a.length;n++)(p=a[n])&&p.series&&(p.resolveColor(),Object.keys(l).length&&p.destroyElements(l),!1===t.showInLegend&&p.legendItem&&i.legend.destroyItem(p))}r.initialType=s,i.linkSeries(),o&&r.linkedSeries.length&&(r.isDirtyData=!0),T(this,"afterUpdate"),D(e,!0)&&i.redraw(!!u&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],r=this.chart.options.plotOptions,i=this.userOptions[t];return i?e!==i:e!==D(r&&r[this.type]&&r[this.type][t],r&&r.series&&r.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&T(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,r=e.tooltip,i=e.hoverPoint;e.hoverSeries=null,i&&i.onMouseOut(),this&&t.events.mouseOut&&T(this,"mouseOut"),!r||this.stickyTracking||r.shared&&!this.noSharedTooltip||r.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var r=this,i=r.options,n=r.graph,s=i.inactiveOtherPoints,o=i.states,a=D(o[t||"normal"]&&o[t||"normal"].animation,r.chart.options.chart.animation),A=i.lineWidth,l=0,h=i.opacity;if(t=t||"",r.state!==t&&([r.group,r.markerGroup,r.dataLabelsGroup].forEach(function(e){e&&(r.state&&e.removeClass("highcharts-series-"+r.state),t&&e.addClass("highcharts-series-"+t))}),r.state=t,!r.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(A=o[t].lineWidth||A+(o[t].lineWidthPlus||0),h=D(o[t].opacity,h)),n&&!n.dashstyle&&k(A))for(i={"stroke-width":A},n.animate(i,a);r["zone-graph-"+l];)r["zone-graph-"+l].animate(i,a),l+=1;s||[r.group,r.markerGroup,r.dataLabelsGroup,r.labelBySeries].forEach(function(t){t&&t.animate({opacity:h},a)})}e&&s&&r.points&&r.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var r=this,i=r.chart,n=i.options.chart.ignoreHiddenSeries,s=r.visible,o=(r.visible=t=r.options.visible=r.userOptions.visible=void 0===t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){r[t]&&r[t][o]()}),i.hoverSeries!==r&&(i.hoverPoint&&i.hoverPoint.series)!==r||r.onMouseOut(),r.legendItem&&i.legend.colorizeItem(r,t),r.isDirty=!0,r.options.stacking&&i.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),r.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),n&&(i.isDirtyBox=!0),T(r,o),!1!==e&&i.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),T(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,r){return void 0===r&&(r={}),r.series=this,r.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,r)},t.defaultOptions=o,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),S(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:n.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:s,requireSorting:!0,sorted:!0}),a.series=t,t}),e(r,"Extensions/ScrollablePlotArea.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Chart/Chart.js"],r["Core/Series/Series.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s){var o=t.stop,a=s.addEvent,A=s.createElement,l=s.defined,h=s.merge,c=s.pick;a(r,"afterSetChartSize",function(t){var r=this.options.chart.scrollablePlotArea,i=r&&r.minWidth;if(r=r&&r.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var n={1:{name:"right",value:i}}}}else r&&(this.scrollablePixelsY=i=Math.max(0,r-this.chartHeight),l(i)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,n={2:{name:"bottom",value:i}}));n&&!t.skipAxes&&this.axes.forEach(function(t){n[t.side]?t.getPlotLinePath=function(){var r=n[t.side].name,i=this[r];this[r]=i-n[t.side].value;var s=e.prototype.getPlotLinePath.apply(this,arguments);return this[r]=i,s}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(r,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),r.prototype.setUpScrolling=function(){var t,e=this,r={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(r.overflowX="auto"),this.scrollablePixelsY&&(r.overflowY="auto"),this.scrollingParent=A("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=A("div",{className:"highcharts-scrolling"},r,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))}),this.innerContainer=A("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},r.prototype.moveFixedElements=function(){var t,e=this.container,r=this.fixedRenderer,i=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&i.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),i.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},r.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,r=e.scrollablePlotArea,i=n.getRendererType();t?(this.fixedDiv=A("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new i(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(r.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),i=this.chartHeight+(this.scrollablePixelsY||0),o(this.container),this.container.style.width=e+"px",this.container.style.height=i+"px",this.renderer.boxWrapper.attr({width:e,height:i,viewBox:[0,0,e,i].join(" ")}),this.chartBackground.attr({width:e,height:i}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(r.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*r.scrollPositionX),r.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*r.scrollPositionY)),i=this.axisOffset,t=this.plotTop-i[0]-1,r=this.plotLeft-i[3]-1,e=this.plotTop+this.plotHeight+i[2]+1,i=this.plotLeft+this.plotWidth+i[1]+1;var s=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",s,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",s,e],["Z"]]:this.scrollablePixelsY?[["M",r,0],["L",r,this.plotTop-1],["L",i,this.plotTop-1],["L",i,0],["Z"],["M",r,l],["L",r,this.chartHeight],["L",i,this.chartHeight],["L",i,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(i,"show",function(){this.chart.scrollableDirty=!0})}),e(r,"Core/Axis/Stacking/StackItem.js",[r["Core/FormatUtilities.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var i=t.format,n=e.series,s=r.destroyObjectProperties,o=r.pick,a=r.isNumber;return t=function(){function t(t,e,r,i,n){var s=t.chart.inverted,o=t.reversed;this.axis=t,t=this.isNegative=!!r!=!!o,this.options=e=e||{},this.x=i,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=n,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(s?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(s?t?"right":"left":"center")}return t.prototype.destroy=function(){s(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,r=this.options,n=r.format;n=n?i(n,this,e):r.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,void 0,r.shape,void 0,void 0,r.useHTML,!1,"stack-labels"),n={r:r.borderRadius||0,text:n,padding:o(r.padding,5),visibility:"hidden"},e.styledMode||(n.fill=r.backgroundColor,n.stroke=r.borderColor,n["stroke-width"]=r.borderWidth,this.label.css(r.style||{})),this.label.attr(n),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,r,i,s,A){var l=this.alignOptions,h=this.axis,c=this.label,u=this.options,p=this.textAlign,d=h.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:r,boxTop:i,defaultX:s,xAxis:A}),s=l.verticalAlign,c&&t&&(e=c.getBBox(),r=c.padding,i="justify"===o(u.overflow,"justify"),l.x=u.x||0,l.y=u.y||0,p=(s=this.adjustStackPosition({labelBox:e,verticalAlign:s,textAlign:p})).x,s=s.y,t.x-=p,t.y-=s,c.align(l,!1,t),(p=d.isInsidePlot(c.alignAttr.x+l.x+p,c.alignAttr.y+l.y+s))||(i=!1),i&&n.prototype.justifyDataLabel.call(h,c,l,c.alignAttr,e,t),c.attr({x:c.alignAttr.x,y:c.alignAttr.y,rotation:u.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),o(!i&&u.crop,!0)&&(p=a(c.x)&&a(c.y)&&d.isInsidePlot(c.x-r+c.width,c.y)&&d.isInsidePlot(c.x+r,c.y)),c[p?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,r={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*r[t.textAlign],y:e.height/2*r[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,r=e.chart,i=t.boxTop,n=t.defaultX,s=t.xOffset,a=t.width,A=t.boxBottom;return i=e.stacking.usePercentage?100:o(i,this.total,0),i=e.toPixels(i),t=o(n,(t.xAxis||r.xAxis[0]).toPixels(this.x))+s,e=e.toPixels(A||0),e=Math.abs(i-e),A=this.isNegative,r.inverted?{x:(A?i:i-e)-r.plotLeft,y:t-r.plotTop,width:e,height:a}:{x:t-r.plotLeft,y:(A?i-e:i)-r.plotTop,width:a,height:e}},t}(),t}),e(r,"Core/Axis/Stacking/StackingAxis.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Axis/Stacking/StackItem.js"],r["Core/Utilities.js"]],function(t,e,r,i,n){function s(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),t.series.forEach(function(r){var i=r.xAxis&&r.xAxis.options||{};!r.options.stacking||!0!==r.visible&&!1!==t.options.chart.ignoreHiddenSeries||(r.stackKey=[r.type,C(r.options.stack,""),e?i.top:i.left,e?i.height:i.width].join())})}function o(){var t=this.stacking;if(t){var e=t.stacks;x(e,function(t,r){v(t),e[r]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new E(this))}function A(t,e,r,i){return!y(t)||t.x!==e||i&&t.stackKey!==i?t={x:e,index:0,key:i,stackKey:i}:t.index++,t.key=[r,e,t.index].join(),t}function l(){var t,e=this,r=e.stackKey,i=e.yAxis.stacking.stacks,n=e.processedXData,s=e[e.options.stacking+"Stacker"];s&&[r,"-"+r].forEach(function(r){for(var o,a,A=n.length;A--;)o=n[A],t=e.getStackIndicator(t,o,e.index,r),(a=(o=i[r]&&i[r][o])&&o.points[t.key])&&s.call(e,a,o,A)})}function h(t,e,r){e=e.total?100/e.total:0,t[0]=m(t[0]*e),t[1]=m(t[1]*e),this.stackedYData[r]=t[1]}function c(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?f.setStackedPoints.call(this,"group"):t&&x(t.stacks,function(e,r){"group"===r.slice(-5)&&(x(e,function(t){return t.destroy()}),delete t.stacks[r])})}function u(t){var e=this.chart,r=t||this.options.stacking;if(r&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var n=this.processedXData,s=this.processedYData,o=[],a=s.length,A=this.options,l=A.threshold,h=C(A.startFromThreshold&&l,0);A=A.stack;var c,u,p="-"+(t=t?""+this.type+",".concat(r):this.stackKey),d=this.negStacks,f=(e="group"===r?e.yAxis[0]:this.yAxis).stacking.stacks,g=e.stacking.oldStacks;for(e.stacking.stacksTouched+=1,u=0;u<a;u++){var v=n[u],b=s[u],B=this.getStackIndicator(B,v,this.index),x=B.key,E=(c=d&&b<(h?0:l))?p:t;f[E]||(f[E]={}),f[E][v]||(g[E]&&g[E][v]?(f[E][v]=g[E][v],f[E][v].total=null):f[E][v]=new i(e,e.options.stackLabels,!!c,v,A)),E=f[E][v],null!==b?(E.points[x]=E.points[this.index]=[C(E.cumulative,h)],y(E.cumulative)||(E.base=x),E.touched=e.stacking.stacksTouched,0<B.index&&!1===this.singleStacks&&(E.points[x][0]=E.points[this.index+","+v+",0"][0])):E.points[x]=E.points[this.index]=null,"percent"===r?(c=c?t:p,d&&f[c]&&f[c][v]?(c=f[c][v],E.total=c.total=Math.max(c.total,E.total)+Math.abs(b)||0):E.total=m(E.total+(Math.abs(b)||0))):"group"===r?(w(b)&&(b=b[0]),null!==b&&(E.total=(E.total||0)+1)):E.total=m(E.total+(b||0)),E.cumulative="group"===r?(E.total||1)-1:C(E.cumulative,h)+(b||0),null!==b&&(E.points[x].push(E.cumulative),o[u]=E.cumulative,E.hasValidPoints=!0)}"percent"===r&&(e.stacking.usePercentage=!0),"group"!==r&&(this.stackedYData=o),e.stacking.oldStacks={}}}var p,d=t.getDeferredAnimation,f=r.series.prototype,g=n.addEvent,m=n.correctFloat,y=n.defined,v=n.destroyObjectProperties,b=n.fireEvent,w=n.isArray,B=n.isNumber,x=n.objectEach,C=n.pick,E=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,r=e.series,i=e.options.reversedStacks,n=r.length;for(this.usePercentage=!1,t=n;t--;){var s=r[i?t:n-t-1];s.setStackedPoints(),s.setGroupedPoints()}for(t=0;t<n;t++)r[t].modifyStacks();b(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;x(t,function(t){x(t,function(t){t.cumulative=t.total})})},t.prototype.resetStacks=function(){var t=this;x(this.stacks,function(e){x(e,function(r,i){B(r.touched)&&r.touched<t.stacksTouched?(r.destroy(),delete e[i]):(r.total=null,r.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,r=e.renderer,i=this.stacks;t=d(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var n=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();n.translate(e.plotLeft,e.plotTop),x(i,function(t){x(t,function(t){t.render(n)})}),n.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,r,i){-1===e.indexOf(t)&&(e.push(t),g(t,"init",a),g(t,"destroy",o)),-1===e.indexOf(r)&&(e.push(r),r.prototype.getStacks=s),-1===e.indexOf(i)&&(e.push(i),(t=i.prototype).getStackIndicator=A,t.modifyStacks=l,t.percentStacker=h,t.setGroupedPoints=c,t.setStackedPoints=u)}}(p||(p={})),p}),e(r,"Series/Line/LineSeries.js",[r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=r.defined,s=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.prototype.drawGraph=function(){var t=this,e=this.options,r=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode,n=[["graph","highcharts-graph"]];i||n[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(n=t.getZonesGraphs(n)).forEach(function(n,s){var o=n[0],a=t[o],A=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:r.xMap,a.animate({d:r})):r.length&&(t[o]=a=t.chart.renderer.path(r).addClass(n[1]).attr({zIndex:1}).add(t.group)),a&&!i&&(o={stroke:n[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},n[3]?o.dashstyle=n[3]:"square"!==e.linecap&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),a[A](o).shadow(2>s&&e.shadow)),a&&(a.startX=r.xMap,a.isArea=r.isArea)})},r.prototype.getGraphPath=function(t,e,r){var i,s=this,o=s.options,a=[],A=[],l=o.step,h=(t=t||s.points).reversed;return h&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&h&&(l=4-l),(t=this.getValidPoints(t,!1,!(o.connectNulls&&!e&&!r))).forEach(function(h,c){var u=h.plotX,p=h.plotY,d=t[c-1];(h.leftCliff||d&&d.rightCliff)&&!r&&(i=!0),h.isNull&&!n(e)&&0<c?i=!o.connectNulls:h.isNull&&!e?i=!0:(0===c||i?c=[["M",h.plotX,h.plotY]]:s.getPointSpline?c=[s.getPointSpline(t,h,c)]:l?(c=1===l?[["L",d.plotX,p]]:2===l?[["L",(d.plotX+u)/2,d.plotY],["L",(d.plotX+u)/2,p]]:[["L",u,d.plotY]]).push(["L",u,p]):c=[["L",u,p]],A.push(h.x),l&&(A.push(h.x),2===l&&A.push(h.x)),a.push.apply(a,c),i=!1)}),a.xMap=A,s.graphPath=a},r.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,r){r=["zone-graph-"+r,"highcharts-graph highcharts-zone-graph-"+r+" "+(e.className||"")],this.chart.styledMode||r.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(r)},this),t},r.defaultOptions=s(t.defaultOptions,{}),r}(t),e.registerSeriesType("line",r),r}),e(r,"Series/Area/AreaSeries.js",[r["Core/Color/Color.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=t.parse,o=r.seriesTypes.line;t=i.extend;var a=i.merge,A=i.objectEach,l=i.pick;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,r=this.areaPath,i=this.options,n=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach(function(t,r){n.push(["zone-area-"+r,"highcharts-area highcharts-zone-area-"+r+" "+t.className,t.color||e.color,t.fillColor||i.fillColor])}),n.forEach(function(t){var n=t[0],o={},a=e[n],A=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:r.xMap,a.animate({d:r})):(o.zIndex=0,(a=e[n]=e.chart.renderer.path(r).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(o.fill=l(t[3],s(t[2]).setOpacity(l(i.fillOpacity,.75)).get())),a[A](o),a.startX=r.xMap,a.shiftUnit=i.step?2:1})},e.prototype.getGraphPath=function(t){var e=o.prototype.getGraphPath,r=this.options,i=r.stacking,n=this.yAxis,s=[],a=[],A=this.index,h=n.stacking.stacks[this.stackKey],c=r.threshold,u=Math.round(n.getThreshold(r.threshold));r=l(r.connectNulls,"percent"===i);var p=function(e,r,o){var l=t[e];e=i&&h[l.x].points[A];var p=l[o+"Null"]||0;if(o=l[o+"Cliff"]||0,l=!0,o||p){var d=(p?e[0]:e[1])+o,f=e[0]+o;l=!!p}else!i&&t[r]&&t[r].isNull&&(d=f=c);void 0!==d&&(a.push({plotX:m,plotY:null===d?u:n.getThreshold(d),isNull:l,isCliff:!0}),s.push({plotX:m,plotY:null===f?u:n.getThreshold(f),doCurve:!1}))};t=t||this.points,i&&(t=this.getStackPoints(t));for(var d=0,f=t.length;d<f;++d){i||(t[d].leftCliff=t[d].rightCliff=t[d].leftNull=t[d].rightNull=void 0);var g=t[d].isNull,m=l(t[d].rectPlotX,t[d].plotX),y=i?l(t[d].yBottom,u):u;g&&!r||(r||p(d,d-1,"left"),g&&!i&&r||(a.push(t[d]),s.push({x:d,plotX:m,plotY:y})),r||p(d,d+1,"right"))}return p=e.call(this,a,!0,!0),s.reversed=!0,(y=(g=e.call(this,s,!0,!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),(g=p.concat(g)).length&&g.push(["Z"]),e=e.call(this,a,!1,r),g.xMap=p.xMap,this.areaPath=g,e},e.prototype.getStackPoints=function(t){var e=this,r=[],i=[],n=this.xAxis,s=this.yAxis,o=s.stacking.stacks[this.stackKey],a={},h=s.series,c=h.length,u=s.options.reversedStacks?1:-1,p=h.indexOf(e);if(t=t||this.points,this.options.stacking){for(var d=0;d<t.length;d++)t[d].leftNull=t[d].rightNull=void 0,a[t[d].x]=t[d];A(o,function(t,e){null!==t.total&&i.push(e)}),i.sort(function(t,e){return t-e});var f=h.map(function(t){return t.visible});i.forEach(function(t,A){var d,g,m=0;if(a[t]&&!a[t].isNull)r.push(a[t]),[-1,1].forEach(function(r){var n=1===r?"rightNull":"leftNull",s=o[i[A+r]],l=0;if(s)for(var m=p;0<=m&&m<c;){var y=h[m].index;(d=s.points[y])||(y===e.index?a[t][n]=!0:f[m]&&(g=o[t].points[y])&&(l-=g[1]-g[0])),m+=u}a[t][1===r?"rightCliff":"leftCliff"]=l});else{for(var y=p;0<=y&&y<c;){if(d=o[t].points[h[y].index]){m=d[1];break}y+=u}m=l(m,0),m=s.translate(m,0,1,0,1),r.push({isNull:!0,plotX:n.translate(t,0,0,0,1),x:t,plotY:m,yBottom:m})}})}return r},e.defaultOptions=a(o.defaultOptions,{threshold:0}),e}(o),t(i.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),r.registerSeriesType("area",i),i}),e(r,"Series/Spline/SplineSeries.js",[r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),i=t.seriesTypes.line,n=e.merge,s=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.getPointSpline=function(t,e,r){var i=e.plotX||0,n=e.plotY||0,o=t[r-1];if(r=t[r+1],o&&!o.isNull&&!1!==o.doCurve&&!e.isCliff&&r&&!r.isNull&&!1!==r.doCurve&&!e.isCliff){t=o.plotY||0;var a=r.plotX||0;r=r.plotY||0;var A=0,l=(1.5*i+(o.plotX||0))/2.5,h=(1.5*n+t)/2.5,c=(1.5*n+r)/2.5;(a=(1.5*i+a)/2.5)!==l&&(A=(c-h)*(a-i)/(a-l)+n-c),c+=A,(h+=A)>t&&h>n?c=2*n-(h=Math.max(t,n)):h<t&&h<n&&(c=2*n-(h=Math.min(t,n))),c>r&&c>n?h=2*n-(c=Math.max(r,n)):c<r&&c<n&&(h=2*n-(c=Math.min(r,n))),e.rightContX=a,e.rightContY=c}return e=["C",s(o.rightContX,o.plotX,0),s(o.rightContY,o.plotY,0),s(l,i,0),s(h,n,0),i,n],o.rightContX=o.rightContY=void 0,e},e.defaultOptions=n(i.defaultOptions),e}(i),t.registerSeriesType("spline",e),e}),e(r,"Series/AreaSpline/AreaSplineSeries.js",[r["Series/Spline/SplineSeries.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=r.seriesTypes,o=s.area;s=s.area.prototype;var a=i.extend,A=i.merge;return i=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return n(r,e),r.defaultOptions=A(t.defaultOptions,o.defaultOptions),r}(t),a(i.prototype,{getGraphPath:s.getGraphPath,getStackPoints:s.getStackPoints,drawGraph:s.drawGraph,drawLegendSymbol:e.drawRectangle}),r.registerSeriesType("areaspline",i),i}),e(r,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),e(r,"Series/Column/ColumnSeries.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Color/Color.js"],r["Series/Column/ColumnSeriesDefaults.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a){var A=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),l=t.animObject,h=e.parse,c=i.hasTouch;t=i.noop;var u=a.clamp,p=a.defined,d=a.extend,f=a.fireEvent,g=a.isArray,m=a.isNumber,y=a.merge,v=a.pick,b=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return A(e,t),e.prototype.animate=function(t){var e=this,r=this.yAxis,i=e.options,n=this.chart.inverted,s={},o=n?"translateX":"translateY";if(t)s.scaleY=.001,t=u(r.toPixels(i.threshold),r.pos,r.pos+r.len),n?s.translateX=t-r.len:s.translateY=t,e.clipBox&&e.setClip(),e.group.attr(s);else{var a=Number(e.group.attr(o));e.group.animate({scaleY:1},d(l(e.options.animation),{step:function(t,i){e.group&&(s[o]=a+i.pos*(r.pos-a),e.group.attr(s))}}))}},e.prototype.init=function(e,r){t.prototype.init.apply(this,arguments);var i=this;(e=i.chart).hasRendered&&e.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,r=t.xAxis,i=t.yAxis,n=r.options.reversedStacks;n=r.reversed&&!n||!r.reversed&&n;var s,o={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var r=e.yAxis,n=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&i.len===r.len&&i.pos===r.pos){if(n.stacking&&"group"!==n.stacking){s=e.stackKey,void 0===o[s]&&(o[s]=a++);var A=o[s]}else!1!==n.grouping&&(A=a++);e.columnIndex=A}});var A=Math.min(Math.abs(r.transA)*(r.ordinal&&r.ordinal.slope||e.pointRange||r.closestPointRange||r.tickInterval||1),r.len),l=A*e.groupPadding,h=(A-2*l)/(a||1);return e=Math.min(e.maxPointWidth||r.len,v(e.pointWidth,h*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(h-e)/2+(l+((t.columnIndex||0)+(n?1:0))*h-A/2)*(n?-1:1),paddedWidth:h,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,r,i){var n=this.chart,s=this.borderWidth,o=-(s%2?.5:0);return s=s%2?.5:1,n.inverted&&n.renderer.isVML&&(s+=1),this.options.crisp&&(r=Math.round(t+r)+o,r-=t=Math.round(t)+o),i=Math.round(e+i)+s,o=.5>=Math.abs(e)&&.5<i,i-=e=Math.round(e)+s,o&&i&&(--e,i+=1),{x:t,y:e,width:r,height:i}},e.prototype.adjustForMissingColumns=function(t,e,r,i){var n=this,s=this.options.stacking;if(!r.isNull&&1<i.columnCount){var o=this.yAxis.options.reversedStacks,a=0,A=o?0:-i.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof r.x){var e=t[r.x.toString()];e&&(t=e.points[n.index],s?(t&&(a=A),e.hasValidPoints&&(o?A++:A--)):g(t)&&(t=Object.keys(e.points).filter(function(t){return!t.match(",")&&e.points[t]&&1<e.points[t].length}).map(parseFloat).sort(function(t,e){return e-t}),a=t.indexOf(n.index),A=t.length))}}),t=(r.plotX||0)+((A-1)*i.paddedWidth+e)/2-e-a*i.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,r=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=v(r.borderWidth,i?0:1);var n=t.xAxis,o=t.yAxis,a=r.threshold,A=t.translatedThreshold=o.getThreshold(a),l=v(r.minPointLength,5),h=t.getColumnMetrics(),c=h.width,d=t.pointXOffset=h.offset,f=t.dataMin,g=t.dataMax,y=t.barW=Math.max(c,1+2*i);e.inverted&&(A-=.5),r.pointPadding&&(y=Math.ceil(y)),s.prototype.translate.apply(t),t.points.forEach(function(i){var s=v(i.yBottom,A),b=999+Math.abs(s),w=i.plotX||0;b=u(i.plotY,-b,o.len+b);var B=Math.min(b,s),x=Math.max(b,s)-B,C=c,E=w+d,S=y;l&&Math.abs(x)<l&&(x=l,w=!o.reversed&&!i.negative||o.reversed&&i.negative,m(a)&&m(g)&&i.y===a&&g<=a&&(o.min||0)<a&&(f!==g||(o.max||0)<=a)&&(w=!w),B=Math.abs(B-A)>l?s-l:A-(w?l:0)),p(i.options.pointWidth)&&(C=S=Math.ceil(i.options.pointWidth),E-=Math.round((C-c)/2)),r.centerInCategory&&(E=t.adjustForMissingColumns(E,C,i,h)),i.barX=E,i.pointWidth=C,i.tooltipPos=e.inverted?[u(o.len+o.pos-e.plotLeft-b,o.pos-e.plotLeft,o.len+o.pos-e.plotLeft),n.len+n.pos-e.plotTop-E-S/2,x]:[n.left-e.plotLeft+E+S/2,u(b+o.pos-e.plotTop,o.pos-e.plotTop,o.len+o.pos-e.plotTop),x],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[E,A,S,0]:[E,B,S,x])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var r=this.options,i=this.pointAttrToOptions||{},n=i.stroke||"borderColor",s=i["stroke-width"]||"borderWidth",o=t&&t.color||this.color,a=t&&t[n]||r[n]||o;i=t&&t.options.dashStyle||r.dashStyle;var A=t&&t[s]||r[s]||this[s]||0,l=v(t&&t.opacity,r.opacity,1);if(t&&this.zones.length){var c=t.getZone();o=t.options.color||c&&(c.color||t.nonZonedColor)||this.color,c&&(a=c.borderColor||a,i=c.dashStyle||i,A=c.borderWidth||A)}return e&&t&&(e=(t=y(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,o=t.color||void 0!==e&&h(o).brighten(t.brightness).get()||o,a=t[n]||a,A=t[s]||A,i=t.dashStyle||i,l=v(t.opacity,l)),n={fill:o,stroke:a,"stroke-width":A,opacity:l},i&&(n.dashstyle=i),n},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,r=this,i=this.chart,n=r.options,s=i.renderer,o=n.animationLimit||250;t.forEach(function(t){var a=t.graphic,A=!!a,l=a&&i.pointCount<o?"animate":"attr";m(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),r.enabledDataSorting&&(t.startXPos=r.xAxis.reversed?-(e&&e.width||0):r.xAxis.width),a||(t.graphic=a=s[t.shapeType](e).add(t.group||r.group))&&r.enabledDataSorting&&i.hasRendered&&i.pointCount<o&&(a.attr({x:t.startXPos}),A=!0,l="animate"),a&&A&&a[l](y(e)),n.borderRadius&&a[l]({r:n.borderRadius}),i.styledMode||a[l](r.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),a&&(a.addClass(t.getClassName(),!0),a.attr({visibility:t.visible?"inherit":"hidden"}))):a&&(t.graphic=a.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,r=this,i=r.chart,n=i.pointer,s=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=g(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){e.div?e.div.point=t:e.element.point=t})}),r._hasTracking||(r.trackerGroups.forEach(function(t){r[t]&&(r[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){n.onTrackerMouseOut(t)}),c&&r[t].on("touchstart",s),!i.styledMode&&r.options.cursor&&r[t].css({cursor:r.options.cursor}))}),r._hasTracking=!0),f(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),s.prototype.remove.apply(t,arguments)},e.defaultOptions=y(s.defaultOptions,r),e}(s),d(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:n.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",a),a}),e(r,"Core/Series/DataLabel.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/FormatUtilities.js"],r["Core/Utilities.js"]],function(t,e,r){var i,n=t.getDeferredAnimation,s=e.format,o=r.defined,a=r.extend,A=r.fireEvent,l=r.isArray,h=r.isString,c=r.merge,u=r.objectEach,p=r.pick,d=r.splat;return function(t){function e(t,e,r,i,n){var s=this,A=this.chart,l=this.isCartesian&&A.inverted,h=this.enabledDataSorting,c=t.plotX,u=t.plotY,d=r.rotation,f=r.align,g=o(c)&&o(u)&&A.isInsidePlot(c,Math.round(u),{inverted:l,paneCoordinates:!0,series:s});u=function(r){h&&s.xAxis&&!m&&s.setDataLabelStartPos(t,e,n,g,r)};var m="justify"===p(r.overflow,h?"none":"justify");if(c=this.visible&&!1!==t.visible&&o(c)&&(t.series.forceDL||h&&!m||g||p(r.inside,!!this.options.stacking)&&i&&A.isInsidePlot(c,l?i.x+1:i.y+i.height-1,{inverted:l,paneCoordinates:!0,series:s})),l=t.pos(),c&&l){d&&e.attr({align:f}),f=e.getBBox(!0);var y=[0,0],v=A.renderer.fontMetrics(A.styledMode?void 0:r.style.fontSize,e).b;i=a({x:l[0],y:Math.round(l[1]),width:0,height:0},i),a(r,{width:f.width,height:f.height}),d?(m=!1,y=A.renderer.rotCorr(v,d),v={x:i.x+(r.x||0)+i.width/2+y.x,y:i.y+(r.y||0)+{top:0,middle:.5,bottom:1}[r.verticalAlign]*i.height},y=[f.x-Number(e.attr("x")),f.y-Number(e.attr("y"))],u(v),e[n?"attr":"animate"](v)):(u(i),e.align(r,void 0,i),v=e.alignAttr),m&&0<=i.height?this.justifyDataLabel(e,r,v,f,i,n):p(r.crop,!0)&&(i=v.x,u=v.y,i+=y[0],u+=y[1],c=A.isInsidePlot(i,u,{paneCoordinates:!0,series:s})&&A.isInsidePlot(i+f.width,u+f.height,{paneCoordinates:!0,series:s})),r.shape&&!d&&e[n?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}n&&h&&(e.placed=!1),c||h&&!m?e.show():(e.hide(),e.placed=!1)}function r(t){void 0===t&&(t=this.points);var e=this,r=e.chart,i=e.options,a=e.hasRendered||0,c=r.renderer,g=r.options.chart,m=g.backgroundColor;g=g.plotBackgroundColor;var y=c.getContrast(h(g)&&g||h(m)&&m||"#000000"),v=i.dataLabels;if(m=v.animation,m=v.defer?n(r,m,e):{defer:0,duration:0},v=f(f(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[e.type]&&r.options.plotOptions[e.type].dataLabels),v),A(this,"drawDataLabels"),l(v)||v.enabled||e._hasPointLabels){var b=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",v.zIndex||6);b.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&b.show(),a[i.animation?"animate":"attr"]({opacity:1},m)),t.forEach(function(t){d(f(v,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(n,a){var A=n.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var r=e.filter;return!r||(e=r.operator,t=t[r.property],r=r.value,">"===e&&t>r||"<"===e&&t<r||">="===e&&t>=r||"<="===e&&t<=r||"=="===e&&t==r||"==="===e&&t===r)}(t,n),l=t.connectors?t.connectors[a]:t.connector,h=t.dataLabels?t.dataLabels[a]:t.dataLabel,d=!h,f=p(n.distance,t.labelDistance);if(A){var g=t.getLabelConfig(),m=p(n[t.formatPrefix+"Format"],n.format);g=o(m)?s(m,g,r):(n[t.formatPrefix+"Formatter"]||n.formatter).call(g,n),m=n.style;var v=n.rotation;r.styledMode||(m.color=p(n.color,m.color,e.color,"#000000"),"contrast"===m.color?(t.contrastColor=c.getContrast(t.color||e.color),m.color=!o(f)&&n.inside||0>f||i.stacking?t.contrastColor:y):delete t.contrastColor,i.cursor&&(m.cursor=i.cursor));var w={r:n.borderRadius||0,rotation:v,padding:n.padding,zIndex:1};if(!r.styledMode){f=n.backgroundColor;var B=n.borderColor;w.fill="auto"===f?t.color:f,w.stroke="auto"===B?t.color:B,w["stroke-width"]=n.borderWidth}u(w,function(t,e){void 0===t&&delete w[e]})}!h||A&&o(g)&&!!h.div==!!n.useHTML&&(h.rotation&&n.rotation||h.rotation===n.rotation)||(d=!0,t.dataLabel=h=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),A&&o(g)?(h?w.text=g:(t.dataLabels=t.dataLabels||[],h=t.dataLabels[a]=v?c.text(g,0,0,n.useHTML).addClass("highcharts-data-label"):c.label(g,0,0,n.shape,null,null,n.useHTML,null,"data-label"),a||(t.dataLabel=h),h.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":""))),h.options=n,h.attr(w),r.styledMode||h.css(m).shadow(n.shadow),(a=n[t.formatPrefix+"TextPath"]||n.textPath)&&!n.useHTML&&(h.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(h)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),h.added||h.add(b),e.alignDataLabel(t,h,n,null,d)):h&&h.hide()})})}A(this,"afterDrawDataLabels")}function i(t,e,r,i,n,s){var o=this.chart,a=e.align,A=e.verticalAlign,l=t.box?0:t.padding||0,h=e.x;h=void 0===h?0:h;var c=e.y;c=void 0===c?0:c;var u=(r.x||0)+l;if(0>u){"right"===a&&0<=h?(e.align="left",e.inside=!0):h-=u;var p=!0}return(u=(r.x||0)+i.width-l)>o.plotWidth&&("left"===a&&0>=h?(e.align="right",e.inside=!0):h+=o.plotWidth-u,p=!0),0>(u=r.y+l)&&("bottom"===A&&0<=c?(e.verticalAlign="top",e.inside=!0):c-=u,p=!0),(u=(r.y||0)+i.height-l)>o.plotHeight&&("top"===A&&0>=c?(e.verticalAlign="bottom",e.inside=!0):c+=o.plotHeight-u,p=!0),p&&(e.x=h,e.y=c,t.placed=!s,t.align(e,void 0,n)),p}function f(t,e){var r,i=[];if(l(t)&&!l(e))i=t.map(function(t){return c(t,e)});else if(l(e)&&!l(t))i=e.map(function(e){return c(t,e)});else if(l(t)||l(e))for(r=Math.max(t.length,e.length);r--;)i[r]=c(t[r],e[r]);else i=c(t,e);return i}function g(t,e,r,i,n){var s=this.chart,o=s.inverted,a=this.xAxis,A=a.reversed,l=o?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=o?n.x:A?-l-t:a.width-l+t,e.startYPos=o?A?this.yAxis.height-l+t:-l-t:n.y,i?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),s.hasRendered&&(r&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var n=t.prototype;m.push(t),n.alignDataLabel=e,n.drawDataLabels=r,n.justifyDataLabel=i,n.setDataLabelStartPos=g}}}(i||(i={})),i}),e(r,"Series/Column/ColumnDataLabel.js",[r["Core/Series/DataLabel.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var i,n=e.series,s=r.merge,o=r.pick;return function(e){function r(t,e,r,i,a){var A=this.chart.inverted,l=t.series,h=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var c=t.dlBox||t.shapeArgs,u=o(t.below,t.plotY>o(this.translatedThreshold,l)),p=o(r.inside,!!this.options.stacking);c&&(0>(i=s(c)).y&&(i.height+=i.y,i.y=0),0<(c=i.y+i.height-l)&&c<i.height&&(i.height-=c),A&&(i={x:l-i.y-i.height,y:h-i.x-i.width,width:i.height,height:i.width}),p||(A?(i.x+=u?0:i.width,i.width=0):(i.y+=u?i.height:0,i.height=0))),r.align=o(r.align,!A||p?"center":u?"right":"left"),r.verticalAlign=o(r.verticalAlign,A||p?"middle":u?"top":"bottom"),n.prototype.alignDataLabel.call(this,t,e,r,i,a),r.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var i=[];e.compose=function(e){t.compose(n),-1===i.indexOf(e)&&(i.push(e),e.prototype.alignDataLabel=r)}}(i||(i={})),i}),e(r,"Series/Bar/BarSeries.js",[r["Series/Column/ColumnSeries.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=r.extend,s=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.defaultOptions=s(t.defaultOptions,{}),r}(t),n(r.prototype,{inverted:!0}),e.registerSeriesType("bar",r),r}),e(r,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),e(r,"Series/Scatter/ScatterSeries.js",[r["Series/Scatter/ScatterSeriesDefaults.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=e.seriesTypes,s=n.column,o=n.line;n=r.addEvent;var a=r.extend,A=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.prototype.applyJitter=function(){var t=this,e=this.options.jitter,r=this.points.length;e&&this.points.forEach(function(i,n){["x","y"].forEach(function(s,o){var a="plot"+s.toUpperCase();if(e[s]&&!i.isNull){var A=t[s+"Axis"],l=e[s]*A.transA;if(A&&!A.isLog){var h=Math.max(0,i[a]-l);A=Math.min(A.len,i[a]+l),o=1e4*Math.sin(n+o*r),i[a]=h+(A-h)*(o-Math.floor(o)),"x"===s&&(i.clientX=i.plotX)}}})})},r.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},r.defaultOptions=A(o.defaultOptions,t),r}(o),a(r.prototype,{drawTracker:s.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),n(r,"afterTranslate",function(){this.applyJitter()}),e.registerSeriesType("scatter",r),r}),e(r,"Series/CenteredUtilities.js",[r["Core/Globals.js"],r["Core/Series/Series.js"],r["Core/Utilities.js"]],function(t,e,r){var i,n=t.deg2rad,s=r.fireEvent,o=r.isNumber,a=r.pick,A=r.relativeLength;return function(t){t.getCenter=function(){var t=this.options,r=this.chart,i=2*(t.slicedOffset||0),n=r.plotWidth-2*i,l=r.plotHeight-2*i,h=t.center,c=Math.min(n,l),u=t.thickness,p=t.size,d=t.innerSize||0;for("string"==typeof p&&(p=parseFloat(p)),"string"==typeof d&&(d=parseFloat(d)),t=[a(h[0],"50%"),a(h[1],"50%"),a(p&&0>p?void 0:t.size,"100%"),a(d&&0>d?void 0:t.innerSize||0,"0%")],!r.angular||this instanceof e||(t[3]=0),h=0;4>h;++h)p=t[h],r=2>h||2===h&&/%$/.test(p),t[h]=A(p,[n,l,c,t[2]][h])+(r?i:0);return t[3]>t[2]&&(t[3]=t[2]),o(u)&&2*u<t[2]&&0<u&&(t[3]=t[2]-2*u),s(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}}(i||(i={})),i}),e(r,"Series/Pie/PiePoint.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Series/Point.js"],r["Core/Utilities.js"]],function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=t.setAnimation,s=r.addEvent,o=r.defined;t=r.extend;var a=r.isNumber,A=r.pick,l=r.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,r=this.connectorShapes,i=e.connectorShape;return r[i]&&(i=r[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=A(this.name,"Slice");var r=function(t){e.slice("select"===t.type)};return s(this,"select",r),s(this,"unselect",r),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var r=this,i=this.series,n=i.chart,s=i.options.ignoreHiddenPoint;e=A(e,s),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,i.options.data[i.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){r[e]&&r[e][t?"show":"hide"](t)}),this.legendItem&&n.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),s&&(i.isDirty=!0),e&&n.redraw())},e.prototype.slice=function(t,e,r){var i=this.series;n(r,i.chart),A(e,!0),this.sliced=this.options.sliced=o(t)?t:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,r){var i=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],r.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*i.x-e.x,2*i.y-e.y,i.x,i.y]:["L",i.x,i.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,r){e=e.touchingSliceAt;var i=this.series,n=i.center[0],s=i.chart.plotWidth,o=i.chart.plotLeft;i=t.alignment;var a=this.shapeArgs.r;return r=l(r.crookDistance,1),r=["L",s="left"===i?n+a+(s+o-n-a)*(1-r):o+(n-a)*r,t.y],n=!0,("left"===i?s>t.x||s<e.x:s<t.x||s>e.x)&&(n=!1),t=[["M",t.x,t.y]],n&&t.push(r),t.push(["L",e.x,e.y]),t}}}),e}),e(r,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),e(r,"Series/Pie/PieSeries.js",[r["Series/CenteredUtilities.js"],r["Series/Column/ColumnSeries.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Series/Pie/PiePoint.js"],r["Series/Pie/PieSeriesDefaults.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/Symbols.js"],r["Core/Utilities.js"]],function(t,e,r,i,n,s,o,a,A,l){var h=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),c=t.getStartAndEndRadians;r=r.noop;var u=l.clamp,p=l.extend,d=l.fireEvent,f=l.merge,g=l.pick,m=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,r=e.points,i=e.startAngleRad;t||r.forEach(function(t){var r=t.graphic,n=t.shapeArgs;r&&n&&(r.attr({r:g(t.startR,e.center&&e.center[3]/2),start:i,end:i}),r.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,r=this.options;if(0===this.total&&this.center){var i=this.center[0],n=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(i,n,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:A.arc(i,n,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,r){var i=this.center,n=this.radii?this.radii[r.index]||0:i[2]/2;return t=Math.asin(u((t-i[1])/(n+r.labelDistance),-1,1)),i[0]+(e?-1:1)*Math.cos(t)*(n+r.labelDistance)+(0<r.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,r,i,n=this,s=n.chart,o=s.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||s.styledMode||(n.shadowGroup=o.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach(function(A){var l={};if(e=A.graphic,!A.isNull&&e){var h=void 0;i=A.shapeArgs,t=A.getTranslate(),s.styledMode||(h=A.shadowGroup,a&&!h&&(h=A.shadowGroup=o.g("shadow").add(n.shadowGroup)),h&&h.attr(t),r=n.pointAttribs(A,A.selected&&"select")),A.delayedRendering?(e.setRadialReference(n.center).attr(i).attr(t),s.styledMode||e.attr(r).attr({"stroke-linejoin":"round"}).shadow(a,h),A.delayedRendering=!1):(e.setRadialReference(n.center),s.styledMode||f(!0,l,r),f(!0,l,i,t),e.animate(l)),e.attr({visibility:A.visible?"inherit":"hidden"}),e.addClass(A.getClassName(),!0)}else e&&(A.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,r){return void 0!==t.angle&&(r.angle-t.angle)*e})},e.prototype.translate=function(t){d(this,"translate"),this.generatePoints();var e=this.options,r=e.slicedOffset,i=r+(e.borderWidth||0),n=c(e.startAngle,e.endAngle),s=this.startAngleRad=n.start;n=(this.endAngleRad=n.end)-s;var o=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var A,l=o.length,h=0;for(t||(this.center=t=this.getCenter()),A=0;A<l;A++){var u=o[A],p=s+h*n;!u.isValid()||e&&!u.visible||(h+=u.percentage/100);var f=s+h*n,y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*p)/1e3,end:Math.round(1e3*f)/1e3};u.shapeType="arc",u.shapeArgs=y,u.labelDistance=g(u.options.dataLabels&&u.options.dataLabels.distance,a),u.labelDistance=m(u.labelDistance,y.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,u.labelDistance),(f=(f+p)/2)>1.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),u.slicedTranslation={translateX:Math.round(Math.cos(f)*r),translateY:Math.round(Math.sin(f)*r)},y=Math.cos(f)*t[2]/2;var v=Math.sin(f)*t[2]/2;u.tooltipPos=[t[0]+.7*y,t[1]+.7*v],u.half=f<-Math.PI/2||f>Math.PI/2?1:0,u.angle=f,p=Math.min(i,u.labelDistance/5),u.labelPosition={natural:{x:t[0]+y+Math.cos(f)*u.labelDistance,y:t[1]+v+Math.sin(f)*u.labelDistance},final:{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(f)*p,y:t[1]+v+Math.sin(f)*p},touchingSliceAt:{x:t[0]+y,y:t[1]+v}}}}d(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,r=e.length,i=this.options.ignoreHiddenPoint,n=0;for(t=0;t<r;t++){var s=e[t];!s.isValid()||i&&!s.visible||(n+=s.y)}for(this.total=n,t=0;t<r;t++)(s=e[t]).percentage=0<n&&(s.visible||!i)?s.y/n*100:0,s.total=n},e.defaultOptions=f(o.defaultOptions,s),e}(o),p(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:i.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:r,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:n,requireSorting:!1,searchPoint:r,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l}),e(r,"Series/Pie/PieDataLabel.js",[r["Core/Series/DataLabel.js"],r["Core/Globals.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,i,n){var s,o=e.noop,a=r.distribute,A=i.series,l=n.arrayMax,h=n.clamp,c=n.defined,u=n.merge,p=n.pick,d=n.relativeLength;return function(e){function r(){var t,e,r,i,n,s,o,h,d,f,g,m,y=this,v=y.data,b=y.chart,w=y.options.dataLabels||{},B=w.connectorPadding,x=b.plotWidth,C=b.plotHeight,E=b.plotLeft,S=Math.round(b.chartWidth/3),F=y.center,T=F[2]/2,I=F[1],_=[[],[]],k=[0,0,0,0],L=y.dataLabelPositioners;y.visible&&(w.enabled||y._hasPointLabels)&&(v.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),A.prototype.drawDataLabels.apply(y),v.forEach(function(t){t.dataLabel&&(t.visible?(_[t.half].push(t),t.dataLabel._pos=null,!c(w.style.width)&&!c(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>S&&(t.dataLabel.css({width:Math.round(.7*S)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),_.forEach(function(e,r){var A,l=e.length,u=[];if(l){if(y.sortByAngle(e,r-.5),0<y.maxLabelDistance){var v=Math.max(0,I-T-y.maxLabelDistance),S=Math.min(I+T+y.maxLabelDistance,b.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,I-T-t.labelDistance),t.bottom=Math.min(I+T+t.labelDistance,b.plotHeight),A=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+A/2,size:A,rank:t.y},u.push(t.distributeBox))}),a(u,v=S+A-v,v/5)}for(g=0;g<l;g++){if(t=e[g],s=t.labelPosition,i=t.dataLabel,f=!1===t.visible?"hidden":"inherit",d=v=s.natural.y,u&&c(t.distributeBox)&&(void 0===t.distributeBox.pos?f="hidden":(o=t.distributeBox.size,d=L.radialDistributionY(t))),delete t.positionIndex,w.justify)h=L.justify(t,T,F);else switch(w.alignTo){case"connectors":h=L.alignToConnectors(e,r,x,E);break;case"plotEdges":h=L.alignToPlotEdges(i,r,x,E);break;default:h=L.radialDistributionX(y,t,d,v)}i._attr={visibility:f,align:s.alignment},m=t.options.dataLabels||{},i._pos={x:h+p(m.x,w.x)+({left:B,right:-B}[s.alignment]||0),y:d+p(m.y,w.y)-10},s.final.x=h,s.final.y=d,p(w.crop,!0)&&(n=i.getBBox().width,v=null,h-n<B&&1===r?(v=Math.round(n-h+B),k[3]=Math.max(v,k[3])):h+n>x-B&&0===r&&(v=Math.round(h+n-x+B),k[1]=Math.max(v,k[1])),0>d-o/2?k[0]=Math.max(Math.round(o/2-d),k[0]):d+o/2>C&&(k[2]=Math.max(Math.round(d+o/2-C),k[2])),i.sideOverflow=v)}}}),0===l(k)||this.verifyDataLabelOverflow(k))&&(this.placeDataLabels(),this.points.forEach(function(t){var n;m=u(w,t.options.dataLabels),(e=p(m.connectorWidth,1))&&(r=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0<t.labelDistance?(f=i._attr.visibility,(n=!r)&&(t.connector=r=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),b.styledMode||r.attr({"stroke-width":e,stroke:m.connectorColor||t.color||"#666666"})),r[n?"attr":"animate"]({d:t.getConnectorPath()}),r.attr("visibility",f)):r&&(t.connector=r.destroy()))}))}function i(){this.points.forEach(function(t){var e,r=t.dataLabel;r&&t.visible&&((e=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](e),r.moved=!0):r&&r.attr({y:-9999})),delete t.distributeBox},this)}function n(t){var e=this.center,r=this.options,i=r.center,n=r.minSize||80,s=null!==r.size;if(!s){if(null!==i[0])var o=Math.max(e[2]-Math.max(t[1],t[3]),n);else o=Math.max(e[2]-t[1]-t[3],n),e[0]+=(t[3]-t[1])/2;null!==i[1]?o=h(o,n,e[2]-Math.max(t[0],t[2])):(o=h(o,n,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),o<e[2]?(e[2]=o,e[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,d(r.innerSize||0,o)),o),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0}return s}var s=[],f={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,r,i){return t.getX(r<e.top+2||r>e.bottom-2?i:r,e.half,e)},justify:function(t,e,r){return r[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,r,i){return t=t.getBBox().width,e?t+i:r-t-i},alignToConnectors:function(t,e,r,i){var n,s=0;return t.forEach(function(t){(n=t.dataLabel.getBBox().width)>s&&(s=n)}),e?s+i:r-s-i}};e.compose=function(e){t.compose(A),-1===s.indexOf(e)&&(s.push(e),(e=e.prototype).dataLabelPositioners=f,e.alignDataLabel=o,e.drawDataLabels=r,e.placeDataLabels=i,e.verifyDataLabelOverflow=n)}}(s||(s={})),s}),e(r,"Extensions/OverlappingDataLabels.js",[r["Core/Chart/Chart.js"],r["Core/Utilities.js"]],function(t,e){function r(t,e){var r=!1;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),n(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}return r}var i=e.addEvent,n=e.fireEvent,s=e.isArray,o=e.isNumber,a=e.objectEach,A=e.pick;i(t,"render",function(){var t=this,e=[];(this.labelCollectors||[]).forEach(function(t){e=e.concat(t())}),(this.yAxis||[]).forEach(function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,function(t){a(t,function(t){t.label&&e.push(t.label)})})}),(this.series||[]).forEach(function(i){var n=i.options.dataLabels;i.visible&&(!1!==n.enabled||i._hasPointLabels)&&(n=function(i){return i.forEach(function(i){i.visible&&(s(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach(function(n){var s=n.options;n.labelrank=A(s.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),s.allowOverlap?(n.oldOpacity=n.opacity,n.newOpacity=1,r(n,t)):e.push(n)})})},n(i.nodes||[]),n(i.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,i,s,a=this,A=t.length,l=a.renderer,h=!1,c=function(t){var e,r,i=t.box?0:t.padding||0,n=e=0;if(t&&(!t.alignAttr||t.placed)){var s=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var A=t.width-2*i;return(r={left:"0",center:"0.5",right:"1"}[t.alignValue])?n=+r*A:o(t.x)&&Math.round(t.x)!==t.translateX&&(n=t.x-t.translateX),{x:s.x+(a.translateX||0)+i-(n||0),y:s.y+(a.translateY||0)+i-e,width:t.width-2*i,height:t.height-2*i}}};for(i=0;i<A;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<A;i++){var u=(c=t[i])&&c.absoluteBox;for(e=i+1;e<A;++e){var p=(s=t[e])&&s.absoluteBox;!u||!p||c===s||0===c.newOpacity||0===s.newOpacity||"hidden"===c.visibility||"hidden"===s.visibility||p.x>=u.x+u.width||p.x+p.width<=u.x||p.y>=u.y+u.height||p.y+p.height<=u.y||((c.labelrank<s.labelrank?c:s).newOpacity=0)}}t.forEach(function(t){r(t,a)&&(h=!0)}),h&&n(a,"afterHideAllOverlappingLabels")}}),e(r,"Core/Responsive.js",[r["Core/Utilities.js"]],function(t){var e,r=t.extend,i=t.find,n=t.isArray,s=t.isObject,o=t.merge,a=t.objectEach,A=t.pick,l=t.splat,h=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),r(t.prototype,c.prototype)),t};var c=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,r={};return function t(r,i,o,A){var h;a(r,function(r,a){if(!A&&-1<e.collectionsWithUpdate.indexOf(a)&&i[a])for(r=l(r),o[a]=[],h=0;h<Math.max(r.length,i[a].length);h++)i[a][h]&&(void 0===r[h]?o[a][h]=i[a][h]:(o[a][h]={},t(r[h],i[a][h],o[a][h],A+1)));else s(r)?(o[a]=n(r)?[]:{},t(r,i[a]||{},o[a],A+1)):o[a]=void 0===i[a]?null:i[a]})}(t,this.options,r,0),r},t.prototype.matchResponsiveRule=function(t,e){var r=t.condition;(r.callback||function(){return this.chartWidth<=A(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=A(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=A(r.minWidth,0)&&this.chartHeight>=A(r.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var r=this,n=this.options.responsive,s=this.currentResponsive,a=[];!e&&n&&n.rules&&n.rules.forEach(function(t){void 0===t._id&&(t._id=h()),r.matchResponsiveRule(t,a)},this),e=o.apply(void 0,a.map(function(t){return i((n||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions})),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(s&&s.ruleIds)&&(s&&this.update(s.undoOptions,t,!0),a?((s=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:s},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e}),e(r,"masters/highcharts.src.js",[r["Core/Globals.js"],r["Core/Utilities.js"],r["Core/Defaults.js"],r["Core/Animation/Fx.js"],r["Core/Animation/AnimationUtilities.js"],r["Core/Renderer/HTML/AST.js"],r["Core/FormatUtilities.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Renderer/HTML/HTMLElement.js"],r["Core/Renderer/HTML/HTMLRenderer.js"],r["Core/Axis/Axis.js"],r["Core/Axis/DateTimeAxis.js"],r["Core/Axis/LogarithmicAxis.js"],r["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],r["Core/Axis/Tick.js"],r["Core/Tooltip.js"],r["Core/Series/Point.js"],r["Core/Pointer.js"],r["Core/MSPointer.js"],r["Core/Legend/Legend.js"],r["Core/Chart/Chart.js"],r["Core/Axis/Stacking/StackingAxis.js"],r["Core/Axis/Stacking/StackItem.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Series/Column/ColumnSeries.js"],r["Series/Column/ColumnDataLabel.js"],r["Series/Pie/PieSeries.js"],r["Series/Pie/PieDataLabel.js"],r["Core/Series/DataLabel.js"],r["Core/Responsive.js"],r["Core/Color/Color.js"],r["Core/Time.js"]],function(t,e,r,i,n,s,o,a,A,l,h,c,u,p,d,f,g,m,y,v,b,w,B,x,C,E,S,F,T,I,_,k,L,P,N){return t.animate=n.animate,t.animObject=n.animObject,t.getDeferredAnimation=n.getDeferredAnimation,t.setAnimation=n.setAnimation,t.stop=n.stop,t.timers=i.timers,t.AST=s,t.Axis=u,t.Chart=B,t.chart=B.chart,t.Fx=i,t.Legend=w,t.PlotLineOrBand=f,t.Point=y,t.Pointer=b.isRequired()?b:v,t.Series=E,t.StackItem=C,t.SVGElement=A,t.SVGRenderer=l,t.Tick=g,t.Time=N,t.Tooltip=m,t.Color=P,t.color=P.parse,c.compose(l),h.compose(A),t.defaultOptions=r.defaultOptions,t.getOptions=r.getOptions,t.time=r.defaultTime,t.setOptions=r.setOptions,t.dateFormat=o.dateFormat,t.format=o.format,t.numberFormat=o.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=S.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,T.compose(F),k.compose(E),p.compose(u),d.compose(u),_.compose(I),f.compose(u),L.compose(B),x.compose(u,B,E),t}),r["masters/highcharts.src.js"]._modules=r,r["masters/highcharts.src.js"]},t.exports?(s.default=s,t.exports=n.document?s(n):s):void 0===(i=function(){return s(n)}.call(e,r,e,t))||(t.exports=i)},69062(t,e,r){var i,n,s;s=function(t){function e(t,e,r,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Core/Axis/SolidGaugeAxis.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(t,e){var r,i=t.parse,n=e.extend,s=e.merge;return function(t){var e={initDataClasses:function(t){var e,r=this.chart,n=0,o=this.options;this.dataClasses=e=[],t.dataClasses.forEach(function(a,A){a=s(a),e.push(a),a.color||("category"===o.dataClassColor?(A=r.options.colors,a.color=A[n++],n===A.length&&(n=0)):a.color=i(o.minColor).tweenTo(i(o.maxColor),A/(t.dataClasses.length-1)))})},initStops:function(t){this.stops=t.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(t){t.color=i(t[1])})},toColor:function(t,e){var r,i=this.stops,n=this.dataClasses;if(n)for(r=n.length;r--;){var s=n[r],o=s.from;if(i=s.to,(void 0===o||t>=o)&&(void 0===i||t<=i)){var a=s.color;e&&(e.dataClass=r);break}}else{for(this.logarithmic&&(t=this.val2lin(t)),t=1-(this.max-t)/(this.max-this.min),r=i.length;r--&&!(t>i[r][0]););o=i[r]||i[r+1],t=1-((i=i[r+1]||o)[0]-t)/(i[0]-o[0]||1),a=o.color.tweenTo(i.color,t)}return a}};t.init=function(t){n(t,e)}}(r||(r={})),r}),e(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),e(t,"Series/SolidGauge/SolidGaugeComposition.js",[t["Core/Renderer/SVG/SVGRenderer.js"]],function(t){var e=(t=t.prototype).symbols.arc;t.symbols.arc=function(t,r,i,n,s){return t=e(t,r,i,n,s),s&&s.rounded&&(i=((s.r||i)-(s.innerR||0))/2,r=t[0],s=t[2],"M"===r[0]&&"L"===s[0]&&(r=["A",i,i,0,1,1,r[1],r[2]],t[2]=["A",i,i,0,1,1,s[1],s[2]],t[4]=r)),t}}),e(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],t["Core/Utilities.js"]],function(t,e,r,i,n){var s=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),o=e.seriesTypes,a=o.gauge,A=o.pie.prototype,l=n.clamp,h=n.extend,c=n.isNumber,u=n.merge,p=n.pick,d=n.pInt;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.axis=void 0,e.yAxis=void 0,e.startAngleRad=void 0,e.thresholdAngleRad=void 0,e}return s(e,t),e.prototype.translate=function(){var t=this.yAxis;r.init(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(t.options),a.prototype.translate.call(this)},e.prototype.drawPoints=function(){var t,e=this.yAxis,r=e.center,i=this.options,n=this.chart.renderer,s=i.overshoot;s=c(s)?s/180*Math.PI:0,c(i.threshold)&&(t=e.startAngleRad+e.translate(i.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=p(t,e.startAngleRad),t=0;for(var o=this.points;t<o.length;t++){var a=o[t];if(!a.isNull){var A=d(p(a.options.radius,i.radius,100))*r[2]/200,u=d(p(a.options.innerRadius,i.innerRadius,60))*r[2]/200,f=Math.min(e.startAngleRad,e.endAngleRad),g=Math.max(e.startAngleRad,e.endAngleRad),m=a.graphic,y=e.startAngleRad+e.translate(a.y,void 0,void 0,void 0,!0),v=e.toColor(a.y,a);"none"===v&&(v=a.color||this.color||"none"),"none"!==v&&(a.color=v),y=l(y,f-s,g+s),!1===i.wrap&&(y=l(y,f,g)),f=Math.min(y,this.thresholdAngleRad),(y=Math.max(y,this.thresholdAngleRad))-f>2*Math.PI&&(y=f+2*Math.PI),a.shapeArgs=u={x:r[0],y:r[1],r:A,innerR:u,start:f,end:y,rounded:i.rounded},a.startR=A,m?(A=u.d,m.animate(h({fill:v},u)),A&&(u.d=A)):a.graphic=m=n.arc(u).attr({fill:v,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==i.linecap&&m.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),m.attr({stroke:i.borderColor||"none","stroke-width":i.borderWidth||0})),m&&m.addClass(a.getClassName(),!0)}}},e.prototype.animate=function(t){t||(this.startAngleRad=this.thresholdAngleRad,A.animate.call(this,t))},e.defaultOptions=u(a.defaultOptions,i),e}(a),h(n.prototype,{drawLegendSymbol:t.drawRectangle}),e.registerSeriesType("solidgauge",n),n}),e(t,"masters/modules/solid-gauge.src.js",[],function(){})},t.exports?(s.default=s,t.exports=s):(i=[r(66044),r(29132)],void 0===(n=function(t){return s(t),s.Highcharts=t,s}.apply(e,i))||(t.exports=n))},52519(t,e,r){"use strict";var i=r(61631),n=r(94209),s=r(35578);function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=n.toArray(t.entropy,t.entropyEnc||"hex"),r=n.toArray(t.nonce,t.nonceEnc||"hex"),i=n.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}t.exports=o,o.prototype._init=function(t,e,r){var i=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(t,e,r,i){"string"!=typeof e&&(i=r,r=e,e=null),t=n.toArray(t,e),r=n.toArray(r,i),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},o.prototype.generate=function(t,e,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=r,r=e,e=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,t);return this._update(r),this._reseed++,n.encode(o,e)}},4674(t,e,r){"use strict";var i=r(17020),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function A(t){return i.isMemo(t)?o:a[t.$$typeof]||n}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var l=Object.defineProperty,h=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,r,i){if("string"!=typeof r){if(d){var n=p(r);n&&n!==d&&t(e,n,i)}var o=h(r);c&&(o=o.concat(c(r)));for(var a=A(e),f=A(r),g=0;g<o.length;++g){var m=o[g];if(!(s[m]||i&&i[m]||f&&f[m]||a&&a[m])){var y=u(r,m);try{l(e,m,y)}catch(t){}}}}return e}},20743(t,e,r){var i;!function(){var n=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var i in e=arguments[r])v(e,i)&&(t[i]=e[i]);return t},s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=h(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:h(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:A("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(A(function(t){return["سنة","سنتان","سنوات"][d(t)]},function(t){return["شهر","شهران","أشهر"][d(t)]},function(t){return["أسبوع","أسبوعين","أسابيع"][d(t)]},function(t){return["يوم","يومين","أيام"][d(t)]},function(t){return["ساعة","ساعتين","ساعات"][d(t)]},function(t){return["دقيقة","دقيقتان","دقائق"][d(t)]},function(t){return["ثانية","ثانيتان","ثواني"][d(t)]},function(t){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][d(t)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:p(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:A("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:h(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:A("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:A(function(t){return["rok","roku","roky","let"][g(t)]},function(t){return["měsíc","měsíce","měsíce","měsíců"][g(t)]},function(t){return["týden","týdne","týdny","týdnů"][g(t)]},function(t){return["den","dne","dny","dní"][g(t)]},function(t){return["hodina","hodiny","hodiny","hodin"][g(t)]},function(t){return["minuta","minuty","minuty","minut"][g(t)]},function(t){return["sekunda","sekundy","sekundy","sekund"][g(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][g(t)]},","),cy:A("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:h(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:h(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:o,en:h(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:h(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:h(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:h(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:A("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:A("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:h(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:h(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:A(function(t){return"an"+(t>=2?"s":"")},"mois",function(t){return"semaine"+(t>=2?"s":"")},function(t){return"jour"+(t>=2?"s":"")},function(t){return"heure"+(t>=2?"s":"")},function(t){return"minute"+(t>=2?"s":"")},function(t){return"seconde"+(t>=2?"s":"")},function(t){return"milliseconde"+(t>=2?"s":"")},","),gr:o,he:h(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:A(function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},l(["dan","dana"]),function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},function(t){var e=t%10;return 5===e||Math.floor(t)===t&&t>=10&&t<=19?"sekundi":1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi"},function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},","),hi:A("साल",l(["महीना","महीने"]),l(["हफ़्ता","हफ्ते"]),"दिन",l(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:A("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:A("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:h(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:h(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:A("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:A("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:h(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:A("년","개월","주일","일","시간","분","초","밀리 초"),ku:A("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:A("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:A(function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},function(t){return["mėnuo","mėnesiai","mėnesių"][m(t)]},function(t){return["savaitė","savaitės","savaičių"][m(t)]},function(t){return["diena","dienos","dienų"][m(t)]},function(t){return["valanda","valandos","valandų"][m(t)]},function(t){return["minutė","minutės","minučių"][m(t)]},function(t){return["sekundė","sekundės","sekundžių"][m(t)]},function(t){return["milisekundė","milisekundės","milisekundžių"][m(t)]},","),lv:A(function(t){return y(t)?"gads":"gadi"},function(t){return y(t)?"mēnesis":"mēneši"},function(t){return y(t)?"nedēļa":"nedēļas"},function(t){return y(t)?"diena":"dienas"},function(t){return y(t)?"stunda":"stundas"},function(t){return y(t)?"minūte":"minūtes"},function(t){return y(t)?"sekunde":"sekundes"},function(t){return y(t)?"milisekunde":"milisekundes"},","),mk:h(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:A("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:A(l(["वर्ष","वर्षे"]),l(["महिना","महिने"]),l(["आठवडा","आठवडे"]),"दिवस","तास",l(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:A("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:h(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:h(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:A(function(t){return["rok","roku","lata","lat"][f(t)]},function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][f(t)]},function(t){return["tydzień","tygodnia","tygodnie","tygodni"][f(t)]},function(t){return["dzień","dnia","dni","dni"][f(t)]},function(t){return["godzina","godziny","godziny","godzin"][f(t)]},function(t){return["minuta","minuty","minuty","minut"][f(t)]},function(t){return["sekunda","sekundy","sekundy","sekund"][f(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][f(t)]},","),pt:h(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:A(c("an","ani","de ani"),c("lună","luni","de luni"),c("săptămână","săptămâni","de săptămâni"),c("zi","zile","de zile"),c("oră","ore","de ore"),c("minut","minute","de minute"),c("secundă","secunde","de secunde"),c("milisecundă","milisecunde","de milisecunde"),","),ru:p(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:A(l(["vit","vjet"]),"muaj","javë","ditë","orë",function(t){return"minut"+(1===t?"ë":"a")},function(t){return"sekond"+(1===t?"ë":"a")},function(t){return"milisekond"+(1===t?"ë":"a")},","),sr:p(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:h(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:h(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:p(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:A("سال",l(["مہینہ","مہینے"]),l(["ہفتہ","ہفتے"]),"دن",l(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:A(function(t){return["rok","roky","roky","rokov"][g(t)]},function(t){return["mesiac","mesiace","mesiace","mesiacov"][g(t)]},function(t){return["týždeň","týždne","týždne","týždňov"][g(t)]},function(t){return["deň","dni","dni","dní"][g(t)]},function(t){return["hodina","hodiny","hodiny","hodín"][g(t)]},function(t){return["minúta","minúty","minúty","minút"][g(t)]},function(t){return["sekunda","sekundy","sekundy","sekúnd"][g(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekúnd"][g(t)]},","),sl:A(function(t){return t%10==1?"leto":t%100==2?"leti":t%100==3||t%100==4||Math.floor(t)!==t&&t%100<=5?"leta":"let"},function(t){return t%10==1?"mesec":t%100==2||Math.floor(t)!==t&&t%100<=5?"meseca":t%10==3||t%10==4?"mesece":"mesecev"},function(t){return t%10==1?"teden":t%10==2||Math.floor(t)!==t&&t%100<=4?"tedna":t%10==3||t%10==4?"tedne":"tednov"},function(t){return t%100==1?"dan":"dni"},function(t){return t%10==1?"ura":t%100==2?"uri":t%10==3||t%10==4||Math.floor(t)!==t?"ure":"ur"},function(t){return t%10==1?"minuta":t%10==2?"minuti":t%10==3||t%10==4||Math.floor(t)!==t&&t%100<=4?"minute":"minut"},function(t){return t%10==1?"sekunda":t%100==2?"sekundi":t%100==3||t%100==4||Math.floor(t)!==t?"sekunde":"sekund"},function(t){return t%10==1?"milisekunda":t%100==2?"milisekundi":t%100==3||t%100==4||Math.floor(t)!==t?"milisekunde":"milisekund"},","),sv:h(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(h(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:A("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:A("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:A("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:A("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:A("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:A("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:A("年","個月","周","天","小時","分鐘","秒","毫秒")};function A(t,e,r,i,n,s,o,a,A){var l={y:t,mo:e,w:r,d:i,h:n,m:s,s:o,ms:a};return A&&(l.decimal=A),l}function l(t){return function(e){return 1===e?t[0]:t[1]}}function h(t,e,r,i,n,s,o,a,h){return A(l(t),l(e),l(r),l(i),l(n),l(s),l(o),l(a),h)}function c(t,e,r){return function(i){if(1===i)return t;if(Math.floor(i)!==i||0===i)return e;var n=i%100;return n>=1&&n<=19?e:r}}function u(t){return function(e){return Math.floor(e)!==e?t[2]:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?t[0]:e%10==1?t[1]:e>1?t[2]:t[1]}}function p(t,e,r,i,n,s,o,a){return A(u(t),u(e),u(r),u(i),u(n),u(s),u(o),u(a),",")}function d(t){return 2===t?1:t>2&&t<11?2:0}function f(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3}function g(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3}function m(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2}function y(t){return t%10==1&&t%100!=11}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function b(t,e,r){var i,n,s,o=t.unitName,a=t.unitCount,A=r.spacer,l=r.maxDecimalPoints;i=v(r,"decimal")?r.decimal:v(e,"decimal")?e.decimal:".","digitReplacements"in r?n=r.digitReplacements:"_digitReplacements"in e&&(n=e._digitReplacements);var h=(void 0===l?a:Math.floor(a*Math.pow(10,l))/Math.pow(10,l)).toString();if(e._hideCountIf2&&2===a)s="",A="";else if(n){s="";for(var c=0;c<h.length;c++){var u=h[c];s+="."===u?i:n[u]}}else s=h.replace(".",i);var p,d=e[o];return p="function"==typeof d?d(a):d,e._numberFirst?p+A+s:s+A+p}function w(t){var e=function(t,r){t=Math.abs(t);var i=n({},e,r||{}),o=function(t,e){var r,i,n,s,o=e.units,a=e.unitMeasures,A="largest"in e?e.largest:1/0;if(!o.length)return[];var l={};for(s=t,i=0;i<o.length;i++){var h=a[r=o[i]];n=i===o.length-1?s/h:Math.floor(s/h),l[r]=n,s-=n*h}if(e.round){var c=A;for(i=0;i<o.length;i++)if(0!==(n=l[r=o[i]])&&0===--c){for(var u=i+1;u<o.length;u++){var p=o[u],d=l[p];l[r]+=d*a[p]/a[r],l[p]=0}break}for(i=o.length-1;i>=0;i--)if(0!==(n=l[r=o[i]])){var f=Math.round(n);if(l[r]=f,0===i)break;var g=o[i-1],m=a[g],y=Math.floor(f*a[r]/m);if(!y)break;l[g]+=y,l[r]=0}}var v=[];for(i=0;i<o.length&&v.length<A;i++)(n=l[r=o[i]])&&v.push({unitName:r,unitCount:n});return v}(t,i);return function(t,e){var r=function(t){var e=[t.language];if(v(t,"fallbacks")){if(!s(t.fallbacks)||!t.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");e=e.concat(t.fallbacks)}for(var r=0;r<e.length;r++){var i=e[r];if(v(t.languages,i))return t.languages[i];if(v(a,i))return a[i]}throw new Error("No language found.")}(e);if(!t.length){var i=e.units;return b({unitName:i[i.length-1],unitCount:0},r,e)}var n,o=e.conjunction,A=e.serialComma;n=v(e,"delimiter")?e.delimiter:v(r,"delimiter")?r.delimiter:", ";for(var l=[],h=0;h<t.length;h++)l.push(b(t[h],r,e));return o&&1!==t.length?2===t.length?l.join(o):l.slice(0,-1).join(n)+(A?",":"")+o+l.slice(-1):l.join(n)}(o,i)};return n(e,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var B=n(w({}),{getSupportedLanguages:function(){var t=[];for(var e in a)v(a,e)&&"gr"!==e&&t.push(e);return t},humanizer:w});void 0===(i=function(){return B}.call(e,r,e,t))||(t.exports=i)}()},63328(t,e){e.read=function(t,e,r,i,n){var s,o,a=8*n-i-1,A=(1<<a)-1,l=A>>1,h=-7,c=r?n-1:0,u=r?-1:1,p=t[e+c];for(c+=u,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+t[e+c],c+=u,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=i;h>0;o=256*o+t[e+c],c+=u,h-=8);if(0===s)s=1-l;else{if(s===A)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=l}return(p?-1:1)*o*Math.pow(2,s-i)},e.write=function(t,e,r,i,n,s){var o,a,A,l=8*s-n-1,h=(1<<l)-1,c=h>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,d=i?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-o))<1&&(o--,A*=2),(e+=o+c>=1?u/A:u*Math.pow(2,1-c))*A>=2&&(o++,A/=2),o+c>=h?(a=0,o=h):o+c>=1?(a=(e*A-1)*Math.pow(2,n),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;t[r+p]=255&a,p+=d,a/=256,n-=8);for(o=o<<n|a,l+=n;l>0;t[r+p]=255&o,p+=d,o/=256,l-=8);t[r+p-d]|=128*f}},50646(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},91193(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},36488(t){var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,A=/^\s+|\s+$/g,l="";function h(t){return t?t.replace(A,l):l}t.exports=function(t,A){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];A=A||{};var c=1,u=1;function p(t){var e=t.match(r);e&&(c+=e.length);var i=t.lastIndexOf("\n");u=~i?t.length-i:u+t.length}function d(){var t={line:c,column:u};return function(e){return e.position=new f(t),v(),e}}function f(t){this.start=t,this.end={line:c,column:u},this.source=A.source}f.prototype.content=t;var g=[];function m(e){var r=new Error(A.source+":"+c+":"+u+": "+e);if(r.reason=e,r.filename=A.source,r.line=c,r.column=u,r.source=t,!A.silent)throw r;g.push(r)}function y(e){var r=e.exec(t);if(r){var i=r[0];return p(i),t=t.slice(i.length),r}}function v(){y(i)}function b(t){var e;for(t=t||[];e=w();)!1!==e&&t.push(e);return t}function w(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var r=2;l!=t.charAt(r)&&("*"!=t.charAt(r)||"/"!=t.charAt(r+1));)++r;if(r+=2,l===t.charAt(r-1))return m("End of comment missing");var i=t.slice(2,r-2);return u+=2,p(i),t=t.slice(r),u+=2,e({type:"comment",comment:i})}}function B(){var t=d(),r=y(n);if(r){if(w(),!y(s))return m("property missing ':'");var i=y(o),A=t({type:"declaration",property:h(r[0].replace(e,l)),value:i?h(i[0].replace(e,l)):l});return y(a),A}}return v(),function(){var t,e=[];for(b(e);t=B();)!1!==t&&(e.push(t),b(e));return e}()}},83176(t){"use strict";var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,A=/^\s+|\s+$/g,l="";function h(t){return t?t.replace(A,l):l}t.exports=function(t,A){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];A=A||{};var c=1,u=1;function p(t){var e=t.match(r);e&&(c+=e.length);var i=t.lastIndexOf("\n");u=~i?t.length-i:u+t.length}function d(){var t={line:c,column:u};return function(e){return e.position=new f(t),y(),e}}function f(t){this.start=t,this.end={line:c,column:u},this.source=A.source}function g(e){var r=new Error(A.source+":"+c+":"+u+": "+e);if(r.reason=e,r.filename=A.source,r.line=c,r.column=u,r.source=t,!A.silent)throw r}function m(e){var r=e.exec(t);if(r){var i=r[0];return p(i),t=t.slice(i.length),r}}function y(){m(i)}function v(t){var e;for(t=t||[];e=b();)!1!==e&&t.push(e);return t}function b(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var r=2;l!=t.charAt(r)&&("*"!=t.charAt(r)||"/"!=t.charAt(r+1));)++r;if(r+=2,l===t.charAt(r-1))return g("End of comment missing");var i=t.slice(2,r-2);return u+=2,p(i),t=t.slice(r),u+=2,e({type:"comment",comment:i})}}function w(){var t=d(),r=m(n);if(r){if(b(),!m(s))return g("property missing ':'");var i=m(o),A=t({type:"declaration",property:h(r[0].replace(e,l)),value:i?h(i[0].replace(e,l)):l});return m(a),A}}return f.prototype.content=t,y(),function(){var t,e=[];for(v(e);t=w();)!1!==t&&(e.push(t),v(e));return e}()}},81133(t,e,r){"use strict";r.r(e),r.d(e,{ErrorCode:()=>i,FormatError:()=>A,IntlMessageFormat:()=>f,InvalidValueError:()=>l,InvalidValueTypeError:()=>h,MissingValueError:()=>c,PART_TYPE:()=>a,default:()=>g,formatToParts:()=>p,isFormatXMLElementFn:()=>u});var i,n=r(65959),s=r(9991),o=r(78582);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(i||(i={}));var a,A=function(t){function e(e,r,i){var n=t.call(this,e)||this;return n.code=r,n.originalMessage=i,n}return(0,n.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),l=function(t){function e(e,r,n,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),i.INVALID_VALUE,s)||this}return(0,n.__extends)(e,t),e}(A),h=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),i.INVALID_VALUE,n)||this}return(0,n.__extends)(e,t),e}(A),c=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),i.MISSING_VALUE,r)||this}return(0,n.__extends)(e,t),e}(A);function u(t){return"function"==typeof t}function p(t,e,r,n,s,d,f){if(1===t.length&&(0,o.eW)(t[0]))return[{type:a.literal,value:t[0].value}];for(var g=[],m=0,y=t;m<y.length;m++){var v=y[m];if((0,o.eW)(v))g.push({type:a.literal,value:v.value});else if((0,o.jA)(v))"number"==typeof d&&g.push({type:a.literal,value:r.getNumberFormat(e).format(d)});else{var b=v.value;if(!s||!(b in s))throw new c(b,f);var w=s[b];if((0,o.Im)(v))w&&"string"!=typeof w&&"number"!=typeof w||(w="string"==typeof w||"number"==typeof w?String(w):""),g.push({type:"string"==typeof w?a.literal:a.object,value:w});else if((0,o.tv)(v)){var B="string"==typeof v.style?n.date[v.style]:(0,o.Tu)(v.style)?v.style.parsedOptions:void 0;g.push({type:a.literal,value:r.getDateTimeFormat(e,B).format(w)})}else if((0,o.Qh)(v))B="string"==typeof v.style?n.time[v.style]:(0,o.Tu)(v.style)?v.style.parsedOptions:n.time.medium,g.push({type:a.literal,value:r.getDateTimeFormat(e,B).format(w)});else if((0,o.oF)(v))(B="string"==typeof v.style?n.number[v.style]:(0,o.N1)(v.style)?v.style.parsedOptions:void 0)&&B.scale&&(w*=B.scale||1),g.push({type:a.literal,value:r.getNumberFormat(e,B).format(w)});else{if((0,o.xm)(v)){var x=v.children,C=v.value,E=s[C];if(!u(E))throw new h(C,"function",f);var S=E(p(x,e,r,n,s,d).map(function(t){return t.value}));Array.isArray(S)||(S=[S]),g.push.apply(g,S.map(function(t){return{type:"string"==typeof t?a.literal:a.object,value:t}}))}if((0,o.Jp)(v)){if(!(F=v.options[w]||v.options.other))throw new l(v.value,w,Object.keys(v.options),f);g.push.apply(g,p(F.value,e,r,n,s))}else if((0,o.N6)(v)){var F;if(!(F=v.options["=".concat(w)])){if(!Intl.PluralRules)throw new A('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.MISSING_INTL_API,f);var T=r.getPluralRules(e,{type:v.pluralType}).select(w-(v.offset||0));F=v.options[T]||v.options.other}if(!F)throw new l(v.value,w,Object.keys(v.options),f);g.push.apply(g,p(F.value,e,r,n,s,w-(v.offset||0)))}}}}return(I=g).length<2?I:I.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===a.literal&&e.type===a.literal?r.value+=e.value:t.push(e),t},[]);var I}function d(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(a||(a={}));var f=function(){function t(e,r,i,o){void 0===r&&(r=t.defaultLocale);var A,l,h,c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=c.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===a.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return p(c.ast,c.locales,c.formatters,c.formats,t,void 0,c.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=c.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=o||{},f=(u.formatters,(0,n.__rest)(u,["formatters"]));this.ast=t.__parse(e,(0,n.__assign)((0,n.__assign)({},f),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=t.formats,(h=i)?Object.keys(l).reduce(function(t,e){var r,i;return t[e]=(r=l[e],(i=h[e])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(t,e){return t[e]=(0,n.__assign)((0,n.__assign)({},r[e]),i[e]||{}),t},{})):r),t},(0,n.__assign)({},l)):l),this.formatters=o&&o.formatters||(void 0===(A=this.formatterCache)&&(A={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,s.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(A.number),strategy:s.W.variadic}),getDateTimeFormat:(0,s.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(A.dateTime),strategy:s.W.variadic}),getPluralRules:(0,s.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(A.pluralRules),strategy:s.W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=o.qg,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const g=f},92859(t,e,r){"use strict";r.d(e,{S:()=>A});var i=r(65959),n=r(26140),s=r(59556),o=r(23231);function a(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}var A=function(){function t(e,r,n,A){var l,h,c,u=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===o.TT.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return(0,o.hN)(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){return{locale:u.resolvedLocale.toString()}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==A?void 0:A.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(h=t.formats,(c=n)?Object.keys(h).reduce(function(t,e){var r,n;return t[e]=(r=h[e],(n=c[e])?(0,i.__assign)((0,i.__assign)((0,i.__assign)({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=(0,i.__assign)((0,i.__assign)({},r[e]),n[e]||{}),t},{})):r),t},(0,i.__assign)({},h)):h),this.formatters=A&&A.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,s.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:a(l.number),strategy:s.W.variadic}),getDateTimeFormat:(0,s.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:a(l.dateTime),strategy:s.W.variadic}),getPluralRules:(0,s.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:a(l.pluralRules),strategy:s.W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=n.qg,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}()},660(t,e,r){"use strict";r.d(e,{$x:()=>o,Ei:()=>A,IF:()=>s,O4:()=>i,Zo:()=>a});var i,n=r(65959);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(i||(i={}));var s=function(t){function e(e,r,i){var n=t.call(this,e)||this;return n.code=r,n.originalMessage=i,n}return(0,n.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),o=function(t){function e(e,r,n,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),i.INVALID_VALUE,s)||this}return(0,n.__extends)(e,t),e}(s),a=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),i.INVALID_VALUE,n)||this}return(0,n.__extends)(e,t),e}(s),A=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),i.MISSING_VALUE,r)||this}return(0,n.__extends)(e,t),e}(s)},23231(t,e,r){"use strict";r.d(e,{RK:()=>o,TT:()=>i,hN:()=>a});var i,n=r(26140),s=r(660);function o(t){return"function"==typeof t}function a(t,e,r,A,l,h,c){if(1===t.length&&(0,n.eW)(t[0]))return[{type:i.literal,value:t[0].value}];for(var u=[],p=0,d=t;p<d.length;p++){var f=d[p];if((0,n.eW)(f))u.push({type:i.literal,value:f.value});else if((0,n.jA)(f))"number"==typeof h&&u.push({type:i.literal,value:r.getNumberFormat(e).format(h)});else{var g=f.value;if(!l||!(g in l))throw new s.Ei(g,c);var m=l[g];if((0,n.Im)(f))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),u.push({type:"string"==typeof m?i.literal:i.object,value:m});else if((0,n.tv)(f)){var y="string"==typeof f.style?A.date[f.style]:(0,n.Tu)(f.style)?f.style.parsedOptions:void 0;u.push({type:i.literal,value:r.getDateTimeFormat(e,y).format(m)})}else if((0,n.Qh)(f))y="string"==typeof f.style?A.time[f.style]:(0,n.Tu)(f.style)?f.style.parsedOptions:A.time.medium,u.push({type:i.literal,value:r.getDateTimeFormat(e,y).format(m)});else if((0,n.oF)(f))(y="string"==typeof f.style?A.number[f.style]:(0,n.N1)(f.style)?f.style.parsedOptions:void 0)&&y.scale&&(m*=y.scale||1),u.push({type:i.literal,value:r.getNumberFormat(e,y).format(m)});else{if((0,n.xm)(f)){var v=f.children,b=f.value,w=l[b];if(!o(w))throw new s.Zo(b,"function",c);var B=w(a(v,e,r,A,l,h).map(function(t){return t.value}));Array.isArray(B)||(B=[B]),u.push.apply(u,B.map(function(t){return{type:"string"==typeof t?i.literal:i.object,value:t}}))}if((0,n.Jp)(f)){if(!(x=f.options[m]||f.options.other))throw new s.$x(f.value,m,Object.keys(f.options),c);u.push.apply(u,a(x.value,e,r,A,l))}else if((0,n.N6)(f)){var x;if(!(x=f.options["=".concat(m)])){if(!Intl.PluralRules)throw new s.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.O4.MISSING_INTL_API,c);var C=r.getPluralRules(e,{type:f.pluralType}).select(m-(f.offset||0));x=f.options[C]||f.options.other}if(!x)throw new s.$x(f.value,m,Object.keys(f.options),c);u.push.apply(u,a(x.value,e,r,A,l,m-(f.offset||0)))}}}}return(E=u).length<2?E:E.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===i.literal&&e.type===i.literal?r.value+=e.value:t.push(e),t},[]);var E}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(i||(i={}))},84708(t,e,r){"use strict";function i(t,e="utf8"){return new TextDecoder(e).decode(t)}r.d(e,{H:()=>a});const n=new TextEncoder,s=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),o={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class a{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let r=!1;"number"==typeof t?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=e.offset?e.offset>>>0:0,n=t.byteLength-i;let s=i;(ArrayBuffer.isView(t)||t instanceof a)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+i),t=t.buffer),this.lastWrittenByte=r?n:0,this.buffer=t,this.length=n,this.byteLength=n,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,n),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const e=2*(this.offset+t),r=new Uint8Array(e);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=e,this.byteLength=e,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=o[e].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,n=this.buffer.slice(i,i+r);if(this.littleEndian===s&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(i,i+r));t.reverse();const n=new o[e](t.buffer);return this.offset+=r,n.reverse(),n}const a=new o[e](n);return this.offset+=r,a}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return i(this.readBytes(t))}decodeText(t=1,e="utf8"){return i(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(function(t){return n.encode(t)}(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},21815(t){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},22956(t){"use strict";var e,r,i=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,e)}catch(t){t!==r&&(n=null)}else n=null;var s=/^\s*class\b/,o=function(t){try{var e=i.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(i.call(t),!0)}catch(t){return!1}},A=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,h=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var u=document.all;A.call(u)===A.call(document.all)&&(c=function(t){if((h||!t)&&(void 0===t||"object"==typeof t))try{var e=A.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=n?function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{n(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(o(t))return!1;var e=A.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},72856(t){"use strict";t.exports=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)}},40006(t,e,r){"use strict";var i=r(36496);t.exports=function(t){return!!i(t)}},85101(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},16111(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},29969(t,e,r){r(49047),t.exports=self.fetch.bind(self)},40061(t,e,r){t.exports=self.fetch||(self.fetch=r(3866).default||r(3866))},97351(t,e,r){var i,n,s;s=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(i){function n(){}function s(e,r,s){if("undefined"!=typeof document){"number"==typeof(s=t({path:"/"},n.defaults,s)).expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var o=JSON.stringify(r);/^[\{\[]/.test(o)&&(r=o)}catch(t){}r=i.write?i.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var A in s)s[A]&&(a+="; "+A,!0!==s[A]&&(a+="="+s[A].split(";")[0]));return document.cookie=e+"="+r+a}}function o(t,r){if("undefined"!=typeof document){for(var n={},s=document.cookie?document.cookie.split("; "):[],o=0;o<s.length;o++){var a=s[o].split("="),A=a.slice(1).join("=");r||'"'!==A.charAt(0)||(A=A.slice(1,-1));try{var l=e(a[0]);if(A=(i.read||i)(A,l)||e(A),r)try{A=JSON.parse(A)}catch(t){}if(n[l]=A,t===l)break}catch(t){}}return t?n[t]:n}}return n.set=s,n.get=function(t){return o(t,!1)},n.getJSON=function(t){return o(t,!0)},n.remove=function(e,r){s(e,"",t(r,{expires:-1}))},n.defaults={},n.withConverter=r,n}(function(){})},void 0===(n="function"==typeof(i=s)?i.call(e,r,e,t):i)||(t.exports=n),t.exports=s()},6134(t){t.exports=function(t,e,r,i){var n=new Blob(void 0!==i?[i,t]:[t],{type:r||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,e);else{var s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(n):window.webkitURL.createObjectURL(n),o=document.createElement("a");o.style.display="none",o.href=s,o.setAttribute("download",e),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(s)},200)}}},50205(t){"use strict";var e=t.exports=function(t,e,i){"function"==typeof e&&(i=e,e={}),r(e,"function"==typeof(i=e.cb||i)?i:i.pre||function(){},i.post||function(){},t,"",t)};function r(t,n,s,o,a,A,l,h,c,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var p in n(o,a,A,l,h,c,u),o){var d=o[p];if(Array.isArray(d)){if(p in e.arrayKeywords)for(var f=0;f<d.length;f++)r(t,n,s,d[f],a+"/"+p+"/"+f,A,a,p,o,f)}else if(p in e.propsKeywords){if(d&&"object"==typeof d)for(var g in d)r(t,n,s,d[g],a+"/"+p+"/"+i(g),A,a,p,o,g)}else(p in e.keywords||t.allKeys&&!(p in e.skipKeywords))&&r(t,n,s,d,a+"/"+p,A,a,p,o)}s(o,a,A,l,h,c,u)}}function i(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},51148(t,e,r){var i=r(1047),n=function(t){var e="",r=Object.keys(t);return r.forEach(function(n,s){var o=t[n];(function(t){return/[height|width]$/.test(t)})(n=i(n))&&"number"==typeof o&&(o+="px"),e+=!0===o?n:!1===o?"not "+n:"("+n+": "+o+")",s<r.length-1&&(e+=" and ")}),e};t.exports=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(r,i){e+=n(r),i<t.length-1&&(e+=", ")}),e):n(t)}},30583(t,e,r){"use strict";r.d(e,{Ay:()=>R});var i=r(97408),n=r(32016),s=r(72743),o=r(53039),a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this}();function A(){a.console&&"function"==typeof a.console.log&&a.console.log.apply(a.console,arguments)}var l={log:A,warn:function(t){a.console&&("function"==typeof a.console.warn?a.console.warn.apply(a.console,arguments):A.call(null,arguments))},error:function(t){a.console&&("function"==typeof a.console.error?a.console.error.apply(a.console,arguments):A(t))}};function h(t,e,r){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){p(i.response,e,r)},i.onerror=function(){l.error("could not download file")},i.send()}function c(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function u(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){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=a.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,i.A)(window))||window!==a?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var i=a.URL||a.webkitURL,n=document.createElement("a");e=e||t.name||"download",n.download=e,n.rel="noopener","string"==typeof t?(n.href=t,n.origin!==location.origin?c(n.href)?h(t,e,r):u(n,n.target="_blank"):u(n)):(n.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(n.href)},4e4),setTimeout(function(){u(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(c(t))h(t,e,r);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){u(n)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,i.A)(e)&&(l.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,r),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof t)return h(t,e,r);var s="application/octet-stream"===t.type,o=/constructor/i.test(a.HTMLElement)||a.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||s&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,i.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=A?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=t:location=t,n=null},l.readAsDataURL(t)}else{var c=a.URL||a.webkitURL,u=c.createObjectURL(t);n?n.location=u:location.href=u,n=null,setTimeout(function(){c.revokeObjectURL(u)},4e4)}});function d(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 r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,s=r[i].process,o=n.exec(t);o&&(e=s(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}var f=a.atob.bind(a),g=a.btoa.bind(a);function m(t,e){var r=t[0],i=t[1],n=t[2],s=t[3];r=v(r,i,n,s,e[0],7,-680876936),s=v(s,r,i,n,e[1],12,-389564586),n=v(n,s,r,i,e[2],17,606105819),i=v(i,n,s,r,e[3],22,-1044525330),r=v(r,i,n,s,e[4],7,-176418897),s=v(s,r,i,n,e[5],12,1200080426),n=v(n,s,r,i,e[6],17,-1473231341),i=v(i,n,s,r,e[7],22,-45705983),r=v(r,i,n,s,e[8],7,1770035416),s=v(s,r,i,n,e[9],12,-1958414417),n=v(n,s,r,i,e[10],17,-42063),i=v(i,n,s,r,e[11],22,-1990404162),r=v(r,i,n,s,e[12],7,1804603682),s=v(s,r,i,n,e[13],12,-40341101),n=v(n,s,r,i,e[14],17,-1502002290),r=b(r,i=v(i,n,s,r,e[15],22,1236535329),n,s,e[1],5,-165796510),s=b(s,r,i,n,e[6],9,-1069501632),n=b(n,s,r,i,e[11],14,643717713),i=b(i,n,s,r,e[0],20,-373897302),r=b(r,i,n,s,e[5],5,-701558691),s=b(s,r,i,n,e[10],9,38016083),n=b(n,s,r,i,e[15],14,-660478335),i=b(i,n,s,r,e[4],20,-405537848),r=b(r,i,n,s,e[9],5,568446438),s=b(s,r,i,n,e[14],9,-1019803690),n=b(n,s,r,i,e[3],14,-187363961),i=b(i,n,s,r,e[8],20,1163531501),r=b(r,i,n,s,e[13],5,-1444681467),s=b(s,r,i,n,e[2],9,-51403784),n=b(n,s,r,i,e[7],14,1735328473),r=w(r,i=b(i,n,s,r,e[12],20,-1926607734),n,s,e[5],4,-378558),s=w(s,r,i,n,e[8],11,-2022574463),n=w(n,s,r,i,e[11],16,1839030562),i=w(i,n,s,r,e[14],23,-35309556),r=w(r,i,n,s,e[1],4,-1530992060),s=w(s,r,i,n,e[4],11,1272893353),n=w(n,s,r,i,e[7],16,-155497632),i=w(i,n,s,r,e[10],23,-1094730640),r=w(r,i,n,s,e[13],4,681279174),s=w(s,r,i,n,e[0],11,-358537222),n=w(n,s,r,i,e[3],16,-722521979),i=w(i,n,s,r,e[6],23,76029189),r=w(r,i,n,s,e[9],4,-640364487),s=w(s,r,i,n,e[12],11,-421815835),n=w(n,s,r,i,e[15],16,530742520),r=B(r,i=w(i,n,s,r,e[2],23,-995338651),n,s,e[0],6,-198630844),s=B(s,r,i,n,e[7],10,1126891415),n=B(n,s,r,i,e[14],15,-1416354905),i=B(i,n,s,r,e[5],21,-57434055),r=B(r,i,n,s,e[12],6,1700485571),s=B(s,r,i,n,e[3],10,-1894986606),n=B(n,s,r,i,e[10],15,-1051523),i=B(i,n,s,r,e[1],21,-2054922799),r=B(r,i,n,s,e[8],6,1873313359),s=B(s,r,i,n,e[15],10,-30611744),n=B(n,s,r,i,e[6],15,-1560198380),i=B(i,n,s,r,e[13],21,1309151649),r=B(r,i,n,s,e[4],6,-145523070),s=B(s,r,i,n,e[11],10,-1120210379),n=B(n,s,r,i,e[2],15,718787259),i=B(i,n,s,r,e[9],21,-343485551),t[0]=_(r,t[0]),t[1]=_(i,t[1]),t[2]=_(n,t[2]),t[3]=_(s,t[3])}function y(t,e,r,i,n,s){return e=_(_(e,t),_(i,s)),_(e<<n|e>>>32-n,r)}function v(t,e,r,i,n,s,o){return y(e&r|~e&i,t,e,n,s,o)}function b(t,e,r,i,n,s,o){return y(e&i|r&~i,t,e,n,s,o)}function w(t,e,r,i,n,s,o){return y(e^r^i,t,e,n,s,o)}function B(t,e,r,i,n,s,o){return y(r^(e|~i),t,e,n,s,o)}function x(t){var e,r=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)m(i,C(t.substring(e-64,e)));t=t.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)n[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(m(i,n),e=0;e<16;e++)n[e]=0;return n[14]=8*r,m(i,n),i}function C(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}var E="0123456789abcdef".split("");function S(t){for(var e="",r=0;r<4;r++)e+=E[t>>8*r+4&15]+E[t>>8*r&15];return e}function F(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function T(t){return x(t).map(F).join("")}var I="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=S(t[e]);return t.join("")}(x("hello"));function _(t,e){if(I){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}function k(t,e){var r,i,n,s;if(t!==r){for(var o=(n=t,s=1+(256/t.length|0),new Array(s+1).join(n)),a=[],A=0;A<256;A++)a[A]=A;var l=0;for(A=0;A<256;A++){var h=a[A];l=(l+h+o.charCodeAt(A))%256,a[A]=a[l],a[l]=h}r=t,i=a}else a=i;var c=e.length,u=0,p=0,d="";for(A=0;A<c;A++)p=(p+(h=a[u=(u+1)%256]))%256,a[u]=a[p],a[p]=h,o=a[(a[u]+a[p])%256],d+=String.fromCharCode(e.charCodeAt(A)^o);return d}var L={print:4,modify:8,copy:16,"annot-forms":32};function P(t,e,r,i){this.v=1,this.r=2;var n=192;t.forEach(function(t){if(void 0!==L.perm)throw new Error("Invalid permission: "+t);n+=L[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var s=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^n)),this.encryptionKey=T(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function N(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,i=0;i<r;i++){var n=t.charCodeAt(i);e+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):t[i]}return e}function D(t){if("object"!==(0,i.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,i){if(i=i||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var n=Math.random().toString(35);return e[t][n]=[r,!!i],n},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var i=Array.prototype.slice.call(arguments,1),n=[];for(var s in e[r]){var o=e[r][s];try{o[0].apply(t,i)}catch(t){a.console&&l.error("jsPDF PubSub Error",t.message,t)}o[1]&&n.push(s)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function M(t){if(!(this instanceof M))return new M(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function U(t,e,r,i,n){if(!(this instanceof U))return new U(t,e,r,i,n);this.type="axial"===t?2:3,this.coords=e,this.colors=r,O.call(this,i,n)}function Q(t,e,r,i,n){if(!(this instanceof Q))return new Q(t,e,r,i,n);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,O.call(this,i,n)}function R(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],s=arguments[2],o=arguments[3],A=[],h=1,c=16,u="S",f=null;"object"===(0,i.A)(t=t||{})&&(r=t.orientation,n=t.unit||n,s=t.format||s,o=t.compress||t.compressPdf||o,null!==(f=t.encryption||null)&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),h="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),A=t.filters||(!0===o?["FlateEncode"]:A),n=n||"mm",r=(""+(r||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,y={},v={internal:{},__private__:{}};v.__private__.PubSub=D;var b="1.3",w=v.__private__.getPdfVersion=function(){return b};v.__private__.setPdfVersion=function(t){b=t};var B={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]};v.__private__.getPageFormats=function(){return B};var x=v.__private__.getPageFormat=function(t){return B[t]};s=s||"a4";var C="compat",E="advanced",S=C;function F(){this.saveGraphicsState(),ht(new Gt(Et,0,0,-Et,0,Fr()*Et).toString()+" cm"),this.setFontSize(this.getFontSize()/Et),u="n",S=E}function T(){this.restoreGraphicsState(),u="S",S=C}var I=v.__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};v.advancedAPI=function(t){var e=S===C;return e&&F.call(this),"function"!=typeof t||(t(this),e&&T.call(this)),this},v.compatAPI=function(t){var e=S===E;return e&&T.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},v.isAdvancedAPI=function(){return S===E};var _,k=function(t){if(S!==E)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=v.roundToPrecision=v.__private__.roundToPrecision=function(t,r){var i=e||r;if(isNaN(t)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(i).replace(/0+$/,"")};_=v.hpf=v.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,16)};var O=v.f2=v.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return L(t,2)},H=v.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return L(t,3)},j=v.scale=v.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===C?t*Et:S===E?t:void 0},V=function(t){return j(function(t){return S===C?Fr()-t:S===E?t:void 0}(t))};v.__private__.setPrecision=v.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var G,z="00000000000000000000000000000000",K=v.__private__.getFileId=function(){return z},W=v.__private__.setFileId=function(t){return z=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==f&&(Pe=new P(f.userPermissions,f.userPassword,f.ownerPassword,z)),z};v.setFileId=function(t){return W(t),this},v.getFileId=function(){return K()};var Y=v.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",i=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),s=[r,Z(i),"'",Z(n),"'"].join("");return["D:",t.getFullYear(),Z(t.getMonth()+1),Z(t.getDate()),Z(t.getHours()),Z(t.getMinutes()),Z(t.getSeconds()),s].join("")},X=v.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,i=parseInt(t.substr(8,2),10),n=parseInt(t.substr(10,2),10),s=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,i,n,s,o,0)},q=v.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=Y(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 G=e},$=v.__private__.getCreationDate=function(t){var e=G;return"jsDate"===t&&(e=X(G)),e};v.setCreationDate=function(t){return q(t),this},v.getCreationDate=function(t){return $(t)};var J,Z=v.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=v.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],it=[],nt=0,st=[],ot=[],at=!1,At=it;v.__private__.setCustomOutputDestination=function(t){at=!0,At=t};var lt=function(t){at||(At=t)};v.__private__.resetCustomOutputDestination=function(){at=!1,At=it};var ht=v.__private__.out=function(t){return t=t.toString(),nt+=t.length+1,At.push(t),At},ct=v.__private__.write=function(t){return ht(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ut=v.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),i=new Uint8Array(r);e--;)i[e]=t.charCodeAt(e);return r},pt=[["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]];v.__private__.getStandardFonts=function(){return pt};var dt=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(t){return dt=S===E?t/Et:t,this};var ft,gt=v.__private__.getFontSize=v.getFontSize=function(){return S===C?dt:dt*Et},mt=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(t){return mt=t,this},v.__private__.getR2L=v.getR2L=function(){return mt};var yt,vt=v.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ft=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.');ft=t}else ft=parseInt(t,10)};v.__private__.getZoomMode=function(){return ft};var bt,wt=v.__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.');yt=t};v.__private__.getPageMode=function(){return yt};var Bt=v.__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.');bt=t};v.__private__.getLayoutMode=function(){return bt},v.__private__.setDisplayMode=v.setDisplayMode=function(t,e,r){return vt(t),Bt(e),wt(r),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},v.__private__.getDocumentProperties=function(){return xt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},v.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var Ct,Et,St,Ft,Tt,It={},_t={},kt=[],Lt={},Pt={},Nt={},Dt={},Mt=null,Ot=0,Ut=[],Qt=new D(v),Rt=t.hotfixes||[],Ht={},jt={},Vt=[],Gt=function t(e,r,i,n,s,o){if(!(this instanceof t))return new t(e,r,i,n,s,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(i)&&(i=0),isNaN(n)&&(n=1),isNaN(s)&&(s=0),isNaN(o)&&(o=0),this._matrix=[e,r,i,n,s,o]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Gt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(_).join(t)},Gt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,i=t.shx*this.sx+t.sy*this.shx,n=t.shx*this.shy+t.sy*this.sy,s=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Gt(e,r,i,n,s,o)},Gt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,i=this.sy,n=this.tx,s=this.ty,o=Math.sqrt(t*t+e*e),a=(t/=o)*r+(e/=o)*i;r-=t*a,i-=e*a;var A=Math.sqrt(r*r+i*i);return a/=A,t*(i/=A)<e*(r/=A)&&(t=-t,e=-e,a=-a,o=-o),{scale:new Gt(o,0,0,A,0,0),translate:new Gt(1,0,0,1,n,s),rotate:new Gt(t,e,-e,t,0,0),skew:new Gt(1,0,a,1,0,0)}},Gt.prototype.toString=function(t){return this.join(" ")},Gt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,i=this.sy,n=this.tx,s=this.ty,o=1/(t*i-e*r),a=i*o,A=-e*o,l=-r*o,h=t*o;return new Gt(a,A,l,h,-a*n-l*s,-A*n-h*s)},Gt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new gr(e,r)},Gt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new gr(t.x+t.w,t.y+t.h));return new mr(e.x,e.y,r.x-e.x,r.y-e.y)},Gt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,i=this.sy,n=this.tx,s=this.ty;return new Gt(t,e,r,i,n,s)},v.Matrix=Gt;var zt=v.matrixMult=function(t,e){return e.multiply(t)},Kt=new Gt(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=Kt;var Wt=function(t,e){if(!Pt[t]){var r=(e instanceof U?"Sh":"P")+(Object.keys(Lt).length+1).toString(10);e.id=r,Pt[t]=r,Lt[r]=e,Qt.publish("addPattern",e)}};v.ShadingPattern=U,v.TilingPattern=Q,v.addShadingPattern=function(t,e){return k("addShadingPattern()"),Wt(t,e),this},v.beginTilingPattern=function(t){k("beginTilingPattern()"),vr(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},v.endTilingPattern=function(t,e){k("endTilingPattern()"),e.stream=ot[J].join("\n"),Wt(t,e),Qt.publish("endTilingPattern",e),Vt.pop().restore()};var Yt,Xt=v.__private__.newObject=function(){var t=qt();return $t(t,!0),t},qt=v.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return nt},et},$t=function(t,e){return e="boolean"==typeof e&&e,rt[t]=nt,e&&ht(t+" 0 obj"),t},Jt=v.__private__.newAdditionalObject=function(){var t={objId:qt(),content:""};return st.push(t),t},Zt=qt(),te=qt(),ee=v.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var i="#",n=0;n<3;n++)i+=("0"+Math.floor(255*parseFloat(e[n])).toString(16)).slice(-2);return i},re=v.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var r=t.ch1,n=t.ch2,s=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var A=new d(r);if(A.ok)r=A.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var l=parseInt(r.substr(1),16);r=l>>16&255,n=l>>8&255,s=255&l}if(void 0===n||void 0===o&&r===n&&n===s)e="string"==typeof r?r+" "+a[0]:2===t.precision?O(r/255)+" "+a[0]:H(r/255)+" "+a[0];else if(void 0===o||"object"===(0,i.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");e="string"==typeof r?[r,n,s,a[1]].join(" "):2===t.precision?[O(r/255),O(n/255),O(s/255),a[1]].join(" "):[H(r/255),H(n/255),H(s/255),a[1]].join(" ")}else e="string"==typeof r?[r,n,s,o,a[2]].join(" "):2===t.precision?[O(r),O(n),O(s),O(o),a[2]].join(" "):[H(r),H(n),H(s),H(o),a[2]].join(" ");return e},ie=v.__private__.getFilters=function(){return A},ne=v.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ie(),i=t.alreadyAppliedFilters||[],n=t.addLength1||!1,s=e.length,o=t.objectId,a=function(t){return t};if(null!==f&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==f&&(a=Pe.encryptor(o,0));var A={};!0===r&&(r=["FlateEncode"]);var l=t.additionalKeyValues||[],h=(A=void 0!==R.API.processDataByFilters?R.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==A.data.length&&(l.push({key:"Length",value:A.data.length}),!0===n&&l.push({key:"Length1",value:s})),0!=h.length)if(h.split("/").length-1==1)l.push({key:"Filter",value:h});else{l.push({key:"Filter",value:"["+h+"]"});for(var c=0;c<l.length;c+=1)if("DecodeParms"===l[c].key){for(var u=[],p=0;p<A.reverseChain.split("/").length-1;p+=1)u.push("null");u.push(l[c].value),l[c].value="["+u.join(" ")+"]"}}ht("<<");for(var d=0;d<l.length;d++)ht("/"+l[d].key+" "+l[d].value);ht(">>"),0!==A.data.length&&(ht("stream"),ht(a(A.data)),ht("endstream"))},se=v.__private__.putPage=function(t){var e=t.number,r=t.data,i=t.objId,n=t.contentsObjId;$t(i,!0),ht("<</Type /Page"),ht("/Parent "+t.rootDictionaryObjId+" 0 R"),ht("/Resources "+t.resourceDictionaryObjId+" 0 R"),ht("/MediaBox ["+parseFloat(_(t.mediaBox.bottomLeftX))+" "+parseFloat(_(t.mediaBox.bottomLeftY))+" "+_(t.mediaBox.topRightX)+" "+_(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ht("/CropBox ["+_(t.cropBox.bottomLeftX)+" "+_(t.cropBox.bottomLeftY)+" "+_(t.cropBox.topRightX)+" "+_(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ht("/BleedBox ["+_(t.bleedBox.bottomLeftX)+" "+_(t.bleedBox.bottomLeftY)+" "+_(t.bleedBox.topRightX)+" "+_(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ht("/TrimBox ["+_(t.trimBox.bottomLeftX)+" "+_(t.trimBox.bottomLeftY)+" "+_(t.trimBox.topRightX)+" "+_(t.trimBox.topRightY)+"]"),null!==t.artBox&&ht("/ArtBox ["+_(t.artBox.bottomLeftX)+" "+_(t.artBox.bottomLeftY)+" "+_(t.artBox.topRightX)+" "+_(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ht("/UserUnit "+t.userUnit),Qt.publish("putPage",{objId:i,pageContext:Ut[e],pageNumber:e,page:r}),ht("/Contents "+n+" 0 R"),ht(">>"),ht("endobj");var s=r.join("\n");return S===E&&(s+="\nQ"),$t(n,!0),ne({data:s,filters:ie(),objectId:n}),ht("endobj"),i},oe=v.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Ot;t++)Ut[t].objId=qt(),Ut[t].contentsObjId=qt();for(t=1;t<=Ot;t++)r.push(se({number:t,data:ot[t],objId:Ut[t].objId,contentsObjId:Ut[t].contentsObjId,mediaBox:Ut[t].mediaBox,cropBox:Ut[t].cropBox,bleedBox:Ut[t].bleedBox,trimBox:Ut[t].trimBox,artBox:Ut[t].artBox,userUnit:Ut[t].userUnit,rootDictionaryObjId:Zt,resourceDictionaryObjId:te}));$t(Zt,!0),ht("<</Type /Pages");var i="/Kids [";for(e=0;e<Ot;e++)i+=r[e]+" 0 R ";ht(i+"]"),ht("/Count "+Ot),ht(">>"),ht("endobj"),Qt.publish("postPutPages")},ae=function(t){Qt.publish("putFont",{font:t,out:ht,newObject:Xt,putStream:ne}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),ht("<<"),ht("/Type /Font"),ht("/BaseFont /"+N(t.postScriptName)),ht("/Subtype /Type1"),"string"==typeof t.encoding&&ht("/Encoding /"+t.encoding),ht("/FirstChar 32"),ht("/LastChar 255"),ht(">>"),ht("endobj"))},Ae=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[_(t.x),_(t.y),_(t.x+t.width),_(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ne({data:r,additionalKeyValues:e,objectId:t.objectNumber}),ht("endobj")},le=function(t,e){e||(e=21);var r=Xt(),i=function(t,e){var r,i=[],n=1/(e-1);for(r=0;r<1;r+=n)i.push(r);if(i.push(1),0!=t[0].offset){var s={offset:0,color:t[0].color};t.unshift(s)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var a="",A=0,l=0;l<i.length;l++){for(r=i[l];r>t[A+1].offset;)A++;var h=t[A].offset,c=(r-h)/(t[A+1].offset-h),u=t[A].color,p=t[A+1].color;a+=tt(Math.round((1-c)*u[0]+c*p[0]).toString(16))+tt(Math.round((1-c)*u[1]+c*p[1]).toString(16))+tt(Math.round((1-c)*u[2]+c*p[2]).toString(16))}return a.trim()}(t.colors,e),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+e+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ne({data:i,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ht("endobj"),t.objectNumber=Xt(),ht("<< /ShadingType "+t.type),ht("/ColorSpace /DeviceRGB");var s="/Coords ["+_(parseFloat(t.coords[0]))+" "+_(parseFloat(t.coords[1]))+" ";2===t.type?s+=_(parseFloat(t.coords[2]))+" "+_(parseFloat(t.coords[3])):s+=_(parseFloat(t.coords[2]))+" "+_(parseFloat(t.coords[3]))+" "+_(parseFloat(t.coords[4]))+" "+_(parseFloat(t.coords[5])),ht(s+="]"),t.matrix&&ht("/Matrix ["+t.matrix.toString()+"]"),ht("/Function "+r+" 0 R"),ht("/Extend [true true]"),ht(">>"),ht("endobj")},he=function(t,e){var r=qt(),i=Xt();e.push({resourcesOid:r,objectOid:i}),t.objectNumber=i;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+t.boundingBox.map(_).join(" ")+"]"}),n.push({key:"XStep",value:_(t.xStep)}),n.push({key:"YStep",value:_(t.yStep)}),n.push({key:"Resources",value:r+" 0 R"}),t.matrix&&n.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ne({data:t.stream,additionalKeyValues:n,objectId:t.objectNumber}),ht("endobj")},ce=function(t){for(var e in t.objectNumber=Xt(),ht("<<"),t)switch(e){case"opacity":ht("/ca "+O(t[e]));break;case"stroke-opacity":ht("/CA "+O(t[e]))}ht(">>"),ht("endobj")},ue=function(t){$t(t.resourcesOid,!0),ht("<<"),ht("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in ht("/Font <<"),It)It.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ht("/"+t+" "+It[t].objectNumber+" 0 R");ht(">>")}(),function(){if(Object.keys(Lt).length>0){for(var t in ht("/Shading <<"),Lt)Lt.hasOwnProperty(t)&&Lt[t]instanceof U&&Lt[t].objectNumber>=0&&ht("/"+t+" "+Lt[t].objectNumber+" 0 R");Qt.publish("putShadingPatternDict"),ht(">>")}}(),function(t){if(Object.keys(Lt).length>0){for(var e in ht("/Pattern <<"),Lt)Lt.hasOwnProperty(e)&&Lt[e]instanceof v.TilingPattern&&Lt[e].objectNumber>=0&&Lt[e].objectNumber<t&&ht("/"+e+" "+Lt[e].objectNumber+" 0 R");Qt.publish("putTilingPatternDict"),ht(">>")}}(t.objectOid),function(){if(Object.keys(Nt).length>0){var t;for(t in ht("/ExtGState <<"),Nt)Nt.hasOwnProperty(t)&&Nt[t].objectNumber>=0&&ht("/"+t+" "+Nt[t].objectNumber+" 0 R");Qt.publish("putGStateDict"),ht(">>")}}(),function(){for(var t in ht("/XObject <<"),Ht)Ht.hasOwnProperty(t)&&Ht[t].objectNumber>=0&&ht("/"+t+" "+Ht[t].objectNumber+" 0 R");Qt.publish("putXobjectDict"),ht(">>")}(),ht(">>"),ht("endobj")},pe=function(t){_t[t.fontName]=_t[t.fontName]||{},_t[t.fontName][t.fontStyle]=t.id},de=function(t,e,r,i,n){var s={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:i,isStandardFont:n||!1,metadata:{}};return Qt.publish("addFont",{font:s,instance:this}),It[s.id]=s,pe(s),s.id},fe=v.__private__.pdfEscape=v.pdfEscape=function(t,e){return function(t,e){var r,i,n,s,o,a,A,l,h;if(n=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&It[Ct].metadata&&It[Ct].metadata[n]&&It[Ct].metadata[n].encoding&&(s=It[Ct].metadata[n].encoding,!o&&It[Ct].encoding&&(o=It[Ct].encoding),!o&&s.codePages&&(o=s.codePages[0]),"string"==typeof o&&(o=s[o]),o)){for(A=!1,a=[],r=0,i=t.length;r<i;r++)(l=o[t.charCodeAt(r)])?a.push(String.fromCharCode(l)):a.push(t[r]),a[r].charCodeAt(0)>>8&&(A=!0);t=a.join("")}for(r=t.length;void 0===A&&0!==r;)t.charCodeAt(r-1)>>8&&(A=!0),r--;if(!A)return t;for(a=e.noBOM?[]:[254,255],r=0,i=t.length;r<i;r++){if((h=(l=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(h),a.push(l-(h<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ge=v.__private__.beginPage=function(t){ot[++Ot]=[],Ut[Ot]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},ve(Ot),lt(ot[J])},me=function(t,e){var i,n,o;switch(r=e||r,"string"==typeof t&&(i=x(t.toLowerCase()),Array.isArray(i)&&(n=i[0],o=i[1])),Array.isArray(t)&&(n=t[0]*Et,o=t[1]*Et),isNaN(n)&&(n=s[0],o=s[1]),(n>14400||o>14400)&&(l.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),o=Math.min(14400,o)),s=[n,o],r.substr(0,1)){case"l":o>n&&(s=[o,n]);break;case"p":n>o&&(s=[o,n])}ge(s),Ze($e),ht(ar),0!==pr&&ht(pr+" J"),0!==dr&&ht(dr+" j"),Qt.publish("addPage",{pageNumber:Ot})},ye=function(t){t>0&&t<=Ot&&(ot.splice(t,1),Ut.splice(t,1),Ot--,J>Ot&&(J=Ot),this.setPage(J))},ve=function(t){t>0&&t<=Ot&&(J=t)},be=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return ot.length-1},we=function(t,e,r){var i,n=void 0;return r=r||{},t=void 0!==t?t:It[Ct].fontName,e=void 0!==e?e:It[Ct].fontStyle,i=t.toLowerCase(),void 0!==_t[i]&&void 0!==_t[i][e]?n=_t[i][e]:void 0!==_t[t]&&void 0!==_t[t][e]?n=_t[t][e]:!1===r.disableWarning&&l.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),n||r.noFallback||null==(n=_t.times[e])&&(n=_t.times.normal),n},Be=v.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==f&&(e=Pe.encryptor(t,0)),ht("<<"),ht("/Producer ("+fe(e("jsPDF "+R.version))+")"),xt)xt.hasOwnProperty(r)&&xt[r]&&ht("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+fe(e(xt[r]))+")");ht("/CreationDate ("+fe(e(G))+")"),ht(">>"),ht("endobj")},xe=v.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Zt;switch(Xt(),ht("<<"),ht("/Type /Catalog"),ht("/Pages "+e+" 0 R"),ft||(ft="fullwidth"),ft){case"fullwidth":ht("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ht("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ht("/OpenAction [3 0 R /Fit]");break;case"original":ht("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+ft;"%"===r.substr(r.length-1)&&(ft=parseInt(ft)/100),"number"==typeof ft&&ht("/OpenAction [3 0 R /XYZ null null "+O(ft)+"]")}switch(bt||(bt="continuous"),bt){case"continuous":ht("/PageLayout /OneColumn");break;case"single":ht("/PageLayout /SinglePage");break;case"two":case"twoleft":ht("/PageLayout /TwoColumnLeft");break;case"tworight":ht("/PageLayout /TwoColumnRight")}yt&&ht("/PageMode /"+yt),Qt.publish("putCatalog"),ht(">>"),ht("endobj")},Ce=v.__private__.putTrailer=function(){ht("trailer"),ht("<<"),ht("/Size "+(et+1)),ht("/Root "+et+" 0 R"),ht("/Info "+(et-1)+" 0 R"),null!==f&&ht("/Encrypt "+Pe.oid+" 0 R"),ht("/ID [ <"+z+"> <"+z+"> ]"),ht(">>")},Ee=v.__private__.putHeader=function(){ht("%PDF-"+b),ht("%ºß¬à")},Se=v.__private__.putXRef=function(){var t="0000000000";ht("xref"),ht("0 "+(et+1)),ht("0000000000 65535 f ");for(var e=1;e<=et;e++)"function"==typeof rt[e]?ht((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?ht((t+rt[e]).slice(-10)+" 00000 n "):ht("0000000000 00000 n ")},Fe=v.__private__.buildDocument=function(){var t;et=0,nt=0,it=[],rt=[],st=[],Zt=qt(),te=qt(),lt(it),Qt.publish("buildDocument"),Ee(),oe(),function(){Qt.publish("putAdditionalObjects");for(var t=0;t<st.length;t++){var e=st[t];$t(e.objId,!0),ht(e.content),ht("endobj")}Qt.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in It)It.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ae(It[t])}(),function(){var t;for(t in Nt)Nt.hasOwnProperty(t)&&ce(Nt[t])}(),function(){for(var t in Ht)Ht.hasOwnProperty(t)&&Ae(Ht[t])}(),function(t){var e;for(e in Lt)Lt.hasOwnProperty(e)&&(Lt[e]instanceof U?le(Lt[e]):Lt[e]instanceof Q&&he(Lt[e],t))}(t),Qt.publish("putResources"),t.forEach(ue),ue({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Qt.publish("postPutResources"),null!==f&&(Pe.oid=Xt(),ht("<<"),ht("/Filter /Standard"),ht("/V "+Pe.v),ht("/R "+Pe.r),ht("/U <"+Pe.toHexString(Pe.U)+">"),ht("/O <"+Pe.toHexString(Pe.O)+">"),ht("/P "+Pe.P),ht(">>"),ht("endobj")),Be(),xe();var e=nt;return Se(),Ce(),ht("startxref"),ht(""+e),ht("%%EOF"),lt(ot[J]),it.join("\n")},Te=v.__private__.getBlob=function(t){return new Blob([ut(t)],{type:"application/pdf"})},Ie=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},_e=function(t){var e,r=t.document,i=r.documentElement,n=r.head,s=r.body;return n||(n=r.createElement("head"),i.appendChild(n)),s||(s=r.createElement("body"),i.appendChild(s)),Ie(n),Ie(s),(e=r.createElement("style")).appendChild(r.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),n.appendChild(e),{document:r,body:s}},ke=v.output=v.__private__.output=(Yt=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":v.save(e.filename);break;case"arraybuffer":return ut(Fe());case"blob":return Te(Fe());case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(Te(Fe()))||void 0;l.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",i=Fe();try{r=g(i)}catch(t){r=g(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+encodeURIComponent(e.filename)+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=!e.pdfObjectUrl;s||(n=e.pdfObjectUrl);var o=a.open();if(null!==o){var A=_e(o),h=A.document.createElement("script"),c=this;h.src=n,s&&(h.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",h.crossOrigin="anonymous"),h.onload=function(){o.PDFObject.embed(c.output("dataurlstring"),e)},A.body.appendChild(h)}return o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var u=e.pdfJsUrl||"examples/PDF.js/web/viewer.html",p=a.open();if(null!==p){var d=_e(p),f=d.document.createElement("iframe"),m=-1===u.indexOf("?")?"?":"&";c=this,f.id="pdfViewer",f.width="500px",f.height="400px",f.src=u+m+"file=&downloadName="+encodeURIComponent(e.filename),f.onload=function(){p.document.title=e.filename,f.contentWindow.PDFViewerApplication.open(c.output("bloburl"))},d.body.appendChild(f)}return p}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(a))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var y=a.open();if(null!==y){var b=_e(y),w=b.document.createElement("iframe");w.src=this.output("datauristring",e),b.body.appendChild(w),y.document.title=e.filename}if(y||"undefined"==typeof safari)return y;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",e);default:return null}},Yt.foo=function(){try{return Yt.apply(this,arguments)}catch(r){var t=r.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+r.message;if(!a.console)throw new Error(e);a.console.error(e,r),a.alert&&alert(e)}},Yt.foo.bar=Yt,Yt.foo),Le=function(t){return!0===Array.isArray(Rt)&&Rt.indexOf(t)>-1};switch(n){case"pt":Et=1;break;case"mm":Et=72/25.4;break;case"cm":Et=72/2.54;break;case"in":Et=72;break;case"px":Et=1==Le("px_scaling")?.75:96/72;break;case"pc":case"em":Et=12;break;case"ex":Et=6;break;default:if("number"!=typeof n)throw new Error("Invalid unit: "+n);Et=n}var Pe=null;q(),W();var Ne=v.__private__.getPageInfo=v.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ut[t].objId,pageNumber:t,pageContext:Ut[t]}},De=v.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Ut)if(Ut[e].objId===t)break;return Ne(e)},Me=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:Ut[J].objId,pageNumber:J,pageContext:Ut[J]}};v.addPage=function(){return me.apply(this,arguments),this},v.setPage=function(){return ve.apply(this,arguments),lt.call(this,ot[J]),this},v.insertPage=function(t){return this.addPage(),this.movePage(J,t),this},v.movePage=function(t,e){var r,i;if(t>e){r=ot[t],i=Ut[t];for(var n=t;n>e;n--)ot[n]=ot[n-1],Ut[n]=Ut[n-1];ot[e]=r,Ut[e]=i,this.setPage(e)}else if(t<e){r=ot[t],i=Ut[t];for(var s=t;s<e;s++)ot[s]=ot[s+1],Ut[s]=Ut[s+1];ot[e]=r,Ut[e]=i,this.setPage(e)}return this},v.deletePage=function(){return ye.apply(this,arguments),this},v.__private__.text=v.text=function(t,e,r,n,s){var o,a,A,l,h,c,u,p,d,f=(n=n||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof r||Array.isArray(r))){var g=r;r=e,e=t,t=g}if(arguments[3]instanceof Gt==0?(A=arguments[4],l=arguments[5],"object"===(0,i.A)(u=arguments[3])&&null!==u||("string"==typeof A&&(l=A,A=null),"string"==typeof u&&(l=u,u=null),"number"==typeof u&&(A=u,u=null),n={flags:u,angle:A,align:l})):(k("The transform parameter of text() with a Matrix value"),d=s),isNaN(e)||isNaN(r)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return f;var m,v="",b="number"==typeof n.lineHeightFactor?n.lineHeightFactor:qe,w=f.internal.scaleFactor;function B(t){return t=t.split("\t").join(Array(n.TabLen||9).join(" ")),fe(t,u)}function x(t){for(var e,r=t.concat(),i=[],n=r.length;n--;)"string"==typeof(e=r.shift())?i.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?i.push(e[0]):i.push([e[0],e[1],e[2]]);return i}function C(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var i,n,s=t.concat(),o=[],a=s.length;a--;)"string"==typeof(i=s.shift())?o.push(e(i)[0]):Array.isArray(i)&&"string"==typeof i[0]&&(n=e(i[0],i[1],i[2]),o.push([n[0],n[1],n[2]]));r=o}return r}var F=!1,T=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var I=t.concat();a=[];for(var L,P=I.length;P--;)("string"!=typeof(L=I.shift())||Array.isArray(L)&&"string"!=typeof L[0])&&(T=!1);F=T}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 N=dt/f.internal.scaleFactor,D=N*(b-1);switch(n.baseline){case"bottom":r-=D;break;case"top":r+=N-D;break;case"hanging":r+=N-2*D;break;case"middle":r+=N/2-D}if((c=n.maxWidth||0)>0&&("string"==typeof t?t=f.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(f.splitTextToSize(e,c))},[]))),o={text:t,x:e,y:r,options:n,mutex:{pdfEscape:fe,activeFontKey:Ct,fonts:It,activeFontSize:dt}},Qt.publish("preProcessText",o),t=o.text,A=(n=o.options).angle,d instanceof Gt==0&&A&&"number"==typeof A){A*=Math.PI/180,0===n.rotationDirection&&(A=-A),S===E&&(A=-A);var M=Math.cos(A),O=Math.sin(A);d=new Gt(M,O,-O,M,0,0)}else A&&A instanceof Gt&&(d=A);S!==E||d||(d=Kt),void 0!==(h=n.charSpace||cr)&&(v+=_(j(h))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=n.horizontalScale)&&(v+=_(100*p)+" Tz\n"),n.lang;var U=-1,Q=void 0!==n.renderingMode?n.renderingMode:n.stroke,R=f.internal.getCurrentPageInfo().pageContext;switch(Q){case 0:case!1:case"fill":U=0;break;case 1:case!0:case"stroke":U=1;break;case 2:case"fillThenStroke":U=2;break;case 3:case"invisible":U=3;break;case 4:case"fillAndAddForClipping":U=4;break;case 5:case"strokeAndAddPathForClipping":U=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":U=6;break;case 7:case"addToPathForClipping":U=7}var H=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==U?v+=U+" Tr\n":-1!==H&&(v+="0 Tr\n"),-1!==U&&(R.usedRenderingMode=U),l=n.align||"left";var V,G=dt*b,z=f.internal.pageSize.getWidth(),K=It[Ct];h=n.charSpace||cr,c=n.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},n.flags);var W=[],Y=function(t){return f.getStringUnitWidth(t,{font:K,charSpace:h,fontSize:dt,doKerning:!1})*dt/w};if("[object Array]"===Object.prototype.toString.call(t)){var X;a=x(t),"left"!==l&&(V=a.map(Y));var q,$=0;if("right"===l){e-=V[0],t=[],P=a.length;for(var J=0;J<P;J++)0===J?(q=ir(e),X=nr(r)):(q=j($-V[J]),X=-G),t.push([a[J],q,X]),$=V[J]}else if("center"===l){e-=V[0]/2,t=[],P=a.length;for(var Z=0;Z<P;Z++)0===Z?(q=ir(e),X=nr(r)):(q=j(($-V[Z])/2),X=-G),t.push([a[Z],q,X]),$=V[Z]}else if("left"===l){t=[],P=a.length;for(var tt=0;tt<P;tt++)t.push(a[tt])}else if("justify"===l&&"Identity-H"===K.encoding){t=[],P=a.length,c=0!==c?c:z;for(var et=0,rt=0;rt<P;rt++)if(X=0===rt?nr(r):-G,q=0===rt?ir(e):et,rt<P-1){var it=j((c-V[rt])/(a[rt].split(" ").length-1)),nt=a[rt].split(" ");t.push([nt[0]+" ",q,X]),et=0;for(var st=1;st<nt.length;st++){var ot=(Y(nt[st-1]+" "+nt[st])-Y(nt[st]))*w+it;st==nt.length-1?t.push([nt[st],ot,0]):t.push([nt[st]+" ",ot,0]),et-=ot}}else t.push([a[rt],q,X]);t.push(["",et,0])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],P=a.length,c=0!==c?c:z,rt=0;rt<P;rt++){X=0===rt?nr(r):-G,q=0===rt?ir(e):0;var at=a[rt].split(" ").length-1,At=at>0?(c-V[rt])/at:0;rt<P-1?W.push(_(j(At))):W.push(0),t.push([a[rt],q,X])}}}!0===("boolean"==typeof n.R2L?n.R2L:mt)&&(t=C(t,function(t,e,r){return[t.split("").reverse().join(""),e,r]})),o={text:t,x:e,y:r,options:n,mutex:{pdfEscape:fe,activeFontKey:Ct,fonts:It,activeFontSize:dt}},Qt.publish("postProcessText",o),t=o.text,m=o.mutex.isHex||!1;var lt=It[Ct].encoding;"WinAnsiEncoding"!==lt&&"StandardEncoding"!==lt||(t=C(t,function(t,e,r){return[B(t),e,r]})),a=x(t),t=[];for(var ct,ut,pt,ft=Array.isArray(a[0])?1:0,gt="",yt=function(t,e,r){var i="";return r instanceof Gt?(r="number"==typeof n.angle?zt(r,new Gt(1,0,0,1,t,e)):zt(new Gt(1,0,0,1,t,e),r),S===E&&(r=zt(new Gt(1,0,0,-1,0,0),r)),i=r.join(" ")+" Tm\n"):i=_(t)+" "+_(e)+" Td\n",i},vt=0;vt<a.length;vt++){switch(gt="",ft){case 1:pt=(m?"<":"(")+a[vt][0]+(m?">":")"),ct=parseFloat(a[vt][1]),ut=parseFloat(a[vt][2]);break;case 0:pt=(m?"<":"(")+a[vt]+(m?">":")"),ct=ir(e),ut=nr(r)}void 0!==W&&void 0!==W[vt]&&(gt=W[vt]+" Tw\n"),0===vt?t.push(gt+yt(ct,ut,d)+pt):0===ft?t.push(gt+pt):1===ft&&t.push(gt+yt(ct,ut,d)+pt)}t=0===ft?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var bt="BT\n/";return bt+=Ct+" "+dt+" Tf\n",bt+=_(dt*b)+" TL\n",bt+=lr+"\n",bt+=v,bt+=t,ht(bt+="ET"),y[Ct]=!0,f};var Oe=v.__private__.clip=v.clip=function(t){return ht("evenodd"===t?"W*":"W"),this};v.clipEvenOdd=function(){return Oe("evenodd")},v.__private__.discardPath=v.discardPath=function(){return ht("n"),this};var Ue=v.__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};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(t){return Ue(t)&&(u=t),this};var Qe=v.__private__.getStyle=v.getStyle=function(t){var e=u;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},Re=v.close=function(){return ht("h"),this};v.stroke=function(){return ht("S"),this},v.fill=function(t){return He("f",t),this},v.fillEvenOdd=function(t){return He("f*",t),this},v.fillStroke=function(t){return He("B",t),this},v.fillStrokeEvenOdd=function(t){return He("B*",t),this};var He=function(t,e){"object"===(0,i.A)(e)?Ge(e,t):ht(t)},je=function(t){null===t||S===E&&void 0===t||(t=Qe(t),ht(t))};function Ve(t,e,r,i,n){var s=new Q(e||this.boundingBox,r||this.xStep,i||this.yStep,this.gState,n||this.matrix);s.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Wt(o,s),s}var Ge=function(t,e){var r=Pt[t.key],i=Lt[r];if(i instanceof U)ht("q"),ht(ze(e)),i.gState&&v.setGState(i.gState),ht(t.matrix.toString()+" cm"),ht("/"+r+" sh"),ht("Q");else if(i instanceof Q){var n=new Gt(1,0,0,-1,0,Fr());t.matrix&&(n=n.multiply(t.matrix||Kt),r=Ve.call(i,t.key,t.boundingBox,t.xStep,t.yStep,n).id),ht("q"),ht("/Pattern cs"),ht("/"+r+" scn"),i.gState&&v.setGState(i.gState),ht(e),ht("Q")}},ze=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"}},Ke=v.moveTo=function(t,e){return ht(_(j(t))+" "+_(V(e))+" m"),this},We=v.lineTo=function(t,e){return ht(_(j(t))+" "+_(V(e))+" l"),this},Ye=v.curveTo=function(t,e,r,i,n,s){return ht([_(j(t)),_(V(e)),_(j(r)),_(V(i)),_(j(n)),_(V(s)),"c"].join(" ")),this};v.__private__.line=v.line=function(t,e,r,i,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||!Ue(n))throw new Error("Invalid arguments passed to jsPDF.line");return S===C?this.lines([[r-t,i-e]],t,e,[1,1],n||"S"):this.lines([[r-t,i-e]],t,e,[1,1]).stroke()},v.__private__.lines=v.lines=function(t,e,r,i,n,s){var o,a,A,l,h,c,u,p,d,f,g,m;if("number"==typeof t&&(m=r,r=e,e=t,t=m),i=i||[1,1],s=s||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(i)||!Ue(n)||"boolean"!=typeof s)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ke(e,r),o=i[0],a=i[1],l=t.length,f=e,g=r,A=0;A<l;A++)2===(h=t[A]).length?(f=h[0]*o+f,g=h[1]*a+g,We(f,g)):(c=h[0]*o+f,u=h[1]*a+g,p=h[2]*o+f,d=h[3]*a+g,f=h[4]*o+f,g=h[5]*a+g,Ye(c,u,p,d,f,g));return s&&Re(),je(n),this},v.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],i=r.c;switch(r.op){case"m":Ke(i[0],i[1]);break;case"l":We(i[0],i[1]);break;case"c":Ye.apply(this,i);break;case"h":Re()}}return this},v.__private__.rect=v.rect=function(t,e,r,i,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||!Ue(n))throw new Error("Invalid arguments passed to jsPDF.rect");return S===C&&(i=-i),ht([_(j(t)),_(V(e)),_(j(r)),_(j(i)),"re"].join(" ")),je(n),this},v.__private__.triangle=v.triangle=function(t,e,r,i,n,s,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||isNaN(n)||isNaN(s)||!Ue(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,i-e],[n-r,s-i],[t-n,e-s]],t,e,[1,1],o,!0),this},v.__private__.roundedRect=v.roundedRect=function(t,e,r,i,n,s,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||isNaN(n)||isNaN(s)||!Ue(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*r),s=Math.min(s,.5*i),this.lines([[r-2*n,0],[n*a,0,n,s-s*a,n,s],[0,i-2*s],[0,s*a,-n*a,s,-n,s],[2*n-r,0],[-n*a,0,-n,-s*a,-n,-s],[0,2*s-i],[0,-s*a,n*a,-s,n,-s]],t+n,e,[1,1],o,!0),this},v.__private__.ellipse=v.ellipse=function(t,e,r,i,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||!Ue(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var s=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*i;return Ke(t+r,e),Ye(t+r,e-o,t+s,e-i,t,e-i),Ye(t-s,e-i,t-r,e-o,t-r,e),Ye(t-r,e+o,t-s,e+i,t,e+i),Ye(t+s,e+i,t+r,e+o,t+r,e),je(n),this},v.__private__.circle=v.circle=function(t,e,r,i){if(isNaN(t)||isNaN(e)||isNaN(r)||!Ue(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,i)},v.setFont=function(t,e,r){return r&&(e=I(e,r)),Ct=we(t,e,{disableWarning:!1}),this};var Xe=v.__private__.getFont=v.getFont=function(){return It[we.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var t,e,r={};for(t in _t)if(_t.hasOwnProperty(t))for(e in r[t]=[],_t[t])_t[t].hasOwnProperty(e)&&r[t].push(e);return r},v.addFont=function(t,e,r,i,n){var s=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==s.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==s.indexOf(arguments[3])&&(r=I(r,i)),de.call(this,t,e,r,n=n||"Identity-H")};var qe,$e=t.lineWidth||.200025,Je=v.__private__.getLineWidth=v.getLineWidth=function(){return $e},Ze=v.__private__.setLineWidth=v.setLineWidth=function(t){return $e=t,ht(_(j(t))+" w"),this};v.__private__.setLineDash=R.API.setLineDash=R.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 _(j(t))}).join(" "),e=_(j(e)),ht("["+t+"] "+e+" d"),this};var tr=v.__private__.getLineHeight=v.getLineHeight=function(){return dt*qe};v.__private__.getLineHeight=v.getLineHeight=function(){return dt*qe};var er=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(qe=t),this},rr=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return qe};er(t.lineHeight);var ir=v.__private__.getHorizontalCoordinate=function(t){return j(t)},nr=v.__private__.getVerticalCoordinate=function(t){return S===E?t:Ut[J].mediaBox.topRightY-Ut[J].mediaBox.bottomLeftY-j(t)},sr=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(t){return _(ir(t))},or=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(t){return _(nr(t))},ar=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return ee(ar)},v.__private__.setStrokeColor=v.setDrawColor=function(t,e,r,i){return ar=re({ch1:t,ch2:e,ch3:r,ch4:i,pdfColorType:"draw",precision:2}),ht(ar),this};var Ar=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return ee(Ar)},v.__private__.setFillColor=v.setFillColor=function(t,e,r,i){return Ar=re({ch1:t,ch2:e,ch3:r,ch4:i,pdfColorType:"fill",precision:2}),ht(Ar),this};var lr=t.textColor||"0 g",hr=v.__private__.getTextColor=v.getTextColor=function(){return ee(lr)};v.__private__.setTextColor=v.setTextColor=function(t,e,r,i){return lr=re({ch1:t,ch2:e,ch3:r,ch4:i,pdfColorType:"text",precision:3}),this};var cr=t.charSpace,ur=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(cr||0)};v.__private__.setCharSpace=v.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cr=t,this};var pr=0;v.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},v.__private__.setLineCap=v.setLineCap=function(t){var e=v.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 pr=e,ht(e+" J"),this};var dr=0;v.__private__.setLineJoin=v.setLineJoin=function(t){var e=v.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 dr=e,ht(e+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ht(_(j(t))+" M"),this},v.GState=M,v.setGState=function(t){(t="string"==typeof t?Nt[Dt[t]]:fr(null,t)).equals(Mt)||(ht("/"+t.id+" gs"),Mt=t)};var fr=function(t,e){if(!t||!Dt[t]){var r=!1;for(var i in Nt)if(Nt.hasOwnProperty(i)&&Nt[i].equals(e)){r=!0;break}if(r)e=Nt[i];else{var n="GS"+(Object.keys(Nt).length+1).toString(10);Nt[n]=e,e.id=n}return t&&(Dt[t]=e.id),Qt.publish("addGState",e),e}};v.addGState=function(t,e){return fr(t,e),this},v.saveGraphicsState=function(){return ht("q"),kt.push({key:Ct,size:dt,color:lr}),this},v.restoreGraphicsState=function(){ht("Q");var t=kt.pop();return Ct=t.key,dt=t.size,lr=t.color,Mt=null,this},v.setCurrentTransformationMatrix=function(t){return ht(t.toString()+" cm"),this},v.comment=function(t){return ht("#"+t),this};var gr=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(t){n=t.toString()}}),this},mr=function(t,e,r,i){gr.call(this,t,e),this.type="rect";var n=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var s=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return s},set:function(t){isNaN(t)||(s=parseFloat(t))}}),this},yr=function(){this.page=Ot,this.currentPage=J,this.pages=ot.slice(0),this.pagesContext=Ut.slice(0),this.x=St,this.y=Ft,this.matrix=Tt,this.width=wr(J),this.height=xr(J),this.outputDestination=At,this.id="",this.objectNumber=-1};yr.prototype.restore=function(){Ot=this.page,J=this.currentPage,Ut=this.pagesContext,ot=this.pages,St=this.x,Ft=this.y,Tt=this.matrix,Br(J,this.width),Cr(J,this.height),At=this.outputDestination};var vr=function(t,e,r,i,n){Vt.push(new yr),Ot=J=0,ot=[],St=t,Ft=e,Tt=n,ge([r,i])};for(var br in v.beginFormObject=function(t,e,r,i,n){return vr(t,e,r,i,n),this},v.endFormObject=function(t){return function(t){if(jt[t])Vt.pop().restore();else{var e=new yr,r="Xo"+(Object.keys(Ht).length+1).toString(10);e.id=r,jt[t]=r,Ht[r]=e,Qt.publish("addFormObject",e),Vt.pop().restore()}}(t),this},v.doFormObject=function(t,e){var r=Ht[jt[t]];return ht("q"),ht(e.toString()+" cm"),ht("/"+r.id+" Do"),ht("Q"),this},v.getFormObject=function(t){var e=Ht[jt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},v.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(p(Te(Fe()),t),"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),this):new Promise(function(e,r){try{var i=p(Te(Fe()),t);"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),e(i)}catch(t){r(t.message)}})},R.API)R.API.hasOwnProperty(br)&&("events"===br&&R.API.events.length?function(t,e){var r,i,n;for(n=e.length-1;-1!==n;n--)r=e[n][0],i=e[n][1],t.subscribe.apply(t,[r].concat("function"==typeof i?[i]:i))}(Qt,R.API.events):v[br]=R.API[br]);function wr(t){return Ut[t].mediaBox.topRightX-Ut[t].mediaBox.bottomLeftX}function Br(t,e){Ut[t].mediaBox.topRightX=e+Ut[t].mediaBox.bottomLeftX}function xr(t){return Ut[t].mediaBox.topRightY-Ut[t].mediaBox.bottomLeftY}function Cr(t,e){Ut[t].mediaBox.topRightY=e+Ut[t].mediaBox.bottomLeftY}var Er=v.getPageWidth=function(t){return wr(t=t||J)/Et},Sr=v.setPageWidth=function(t,e){Br(t,e*Et)},Fr=v.getPageHeight=function(t){return xr(t=t||J)/Et},Tr=v.setPageHeight=function(t,e){Cr(t,e*Et)};return v.internal={pdfEscape:fe,getStyle:Qe,getFont:Xe,getFontSize:gt,getCharSpace:ur,getTextColor:hr,getLineHeight:tr,getLineHeightFactor:rr,getLineWidth:Je,write:ct,getHorizontalCoordinate:ir,getVerticalCoordinate:nr,getCoordinateString:sr,getVerticalCoordinateString:or,collections:{},newObject:Xt,newAdditionalObject:Jt,newObjectDeferred:qt,newObjectDeferredBegin:$t,getFilters:ie,putStream:ne,events:Qt,scaleFactor:Et,pageSize:{getWidth:function(){return Er(J)},setWidth:function(t){Sr(J,t)},getHeight:function(){return Fr(J)},setHeight:function(t){Tr(J,t)}},encryptionOptions:f,encryption:Pe,getEncryptor:function(t){return null!==f?Pe.encryptor(t,0):function(t){return t}},output:ke,getNumberOfPages:be,get pages(){return ot},out:ht,f2:O,f3:H,getPageInfo:Ne,getPageInfoByObjId:De,getCurrentPageInfo:Me,getPDFVersion:w,Point:gr,Rectangle:mr,Matrix:Gt,hasHotfix:Le},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Er(J)},set:function(t){Sr(J,t)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return Fr(J)},set:function(t){Tr(J,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,r=pt.length;e<r;e++){var i=de.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===m&&(y[i]=!0);var n=t[e][0].split("-");pe({id:i,fontName:n[0],fontStyle:n[1]||""})}Qt.publish("addFonts",{fonts:It,dictionary:_t})}.call(v,pt),Ct="F1",me(s,r),Qt.publish("initialized"),v}P.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},P.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},P.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},P.prototype.processOwnerPassword=function(t,e){return k(T(e).substr(0,5),t)},P.prototype.encryptor=function(t,e){var r=T(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return k(r,t)}},M.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||(0,i.A)(t)!==(0,i.A)(this))return!1;var n=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;n++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&n--;return 0===n},R.API={events:[]},R.version="4.2.1";var H=R.API,j=1,V=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},G=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},z=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)})},K=function(t){return t.toFixed(2)},W=function(t){return t.toFixed(5)};H.__acroform__={};var Y=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},X=function(t){return t*j},q=function(t){var e=new ut,r=St.internal.getHeight(t)||0,i=St.internal.getWidth(t)||0;return e.BBox=[0,0,Number(K(i)),Number(K(r))],e},$=H.__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},J=H.__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)},Z=H.__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},tt=H.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Z(t,e-1)},et=H.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $(t,e-1)},rt=H.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return J(t,e-1)},it=H.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,i=e.internal.getVerticalCoordinate,n=t[0],s=t[1],o=t[2],a=t[3],A={};return A.lowerLeft_X=r(n)||0,A.lowerLeft_Y=i(s+a)||0,A.upperRight_X=r(n+o)||0,A.upperRight_Y=i(s)||0,[Number(K(A.lowerLeft_X)),Number(K(A.lowerLeft_Y)),Number(K(A.upperRight_X)),Number(K(A.upperRight_Y))]},nt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,i=st(t,r),n=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("/"+n+" "+K(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var s=q(t);return s.scope=t.scope,s.stream=e.join("\n"),s}},st=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},n=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");n=t.multiline?n.map(function(t){return t.split("\n")}):n.map(function(t){return[t]});var s=r,o=St.internal.getHeight(t)||0;o=o<0?-o:o;var a=St.internal.getWidth(t)||0;a=a<0?-a:a;var A=function(e,r,i){if(e+1<n.length){var s=r+" "+n[e+1][0];return ot(s,t,i).width<=a-4}return!1};s++;t:for(;s>0;){e="",s--;var l,h,c=ot("3",t,s).height,u=t.multiline?o-s:(o-c)/2,p=u+=2,d=0,f=0,g=0;if(s<=0){e="(...) Tj\n",e+="% Width of Text: "+ot(e,t,s=12).width+", FieldWidth:"+a+"\n";break}for(var m="",y=0,v=0;v<n.length;v++)if(n.hasOwnProperty(v)){var b=!1;if(1!==n[v].length&&g!==n[v].length-1){if((c+2)*(y+2)+2>o)continue t;m+=n[v][g],b=!0,f=v,v--}else{m=" "==(m+=n[v][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var w=parseInt(v),B=A(w,m,s),x=v>=n.length-1;if(B&&!x){m+=" ",g=0;continue}if(B||x){if(x)f=w;else if(t.multiline&&(c+2)*(y+2)+2>o)continue t}else{if(!t.multiline)continue t;if((c+2)*(y+2)+2>o)continue t;f=w}}for(var C="",E=d;E<=f;E++){var S=n[E];if(t.multiline){if(E===f){C+=S[g]+" ",g=(g+1)%S.length;continue}if(E===d){C+=S[S.length-1]+" ";continue}}C+=S[0]+" "}switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,h=ot(C,t,s).width,t.textAlign){case"right":l=a-h-2;break;case"center":l=(a-h)/2;break;default:l=2}e+=K(l)+" "+K(p)+" Td\n",e+="("+V(C)+") Tj\n",e+=-K(l)+" 0 Td\n",p=-(s+2),h=0,d=b?f:f+1,y++,m=""}break}return i.text=e,i.fontSize=s,i},ot=function(t,e,r){var i=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:n}},at={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},At=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===r.type&&t.object===r.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},lt=H.__acroform__.arrayToPdfArray=function(t,e,r){var n=function(t){return t};if(Array.isArray(t)){for(var s="[",o=0;o<t.length;o++)switch(0!==o&&(s+=" "),(0,i.A)(t[o])){case"boolean":case"number":case"object":s+=t[o].toString();break;case"string":"/"===t[o].substr(0,1)?s+="/"+z(t[o].substr(1)):(void 0!==e&&r&&(n=r.internal.getEncryptor(e)),s+="("+V(n(t[o].toString()))+")")}return s+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ht=function(t,e,r){var i=function(t){return t};return void 0!==e&&r&&(i=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+V(i(t))+")"},ct=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})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)});for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var i=e[r],n=this[i];n&&(Array.isArray(n)?t.push({key:i,value:lt(n,this.objId,this.scope)}):n instanceof ct?(n.scope=this.scope,t.push({key:i,value:n.objId+" 0 R"})):"function"!=typeof n&&t.push({key:i,value:n}))}return t};var ut=function(){ct.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}})};Y(ut,ct);var pt=function(){ct.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)),"("+V(e(t))+")"}},set:function(e){t=e}})};Y(pt,ct);var dt=function t(){ct.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(tt(e,3))},set:function(t){!0===Boolean(t)?this.F=et(e,3):this.F=rt(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(t){i=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(t){i[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(t){i[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(t){i[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(t){i[3]=t}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof Bt)return;s="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+V(e(s))+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/j:l},set:function(t){l=t}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(t){h=t}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof Bt||this instanceof Ct))return ht(c,this.objId,this.scope)},set:function(t){t=t.toString(),c=t}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof vt==0?ht(u,this.objId,this.scope):u},set:function(t){t=t.toString(),u=this instanceof vt==0?"("===t.substr(0,1)?G(t.substr(1,t.length-2)):G(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?G(u.substr(1,u.length-1)):u},set:function(t){t=t.toString(),u=this instanceof vt==1?"/"+z(t):t}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof vt==0?ht(p,this.objId,this.scope):p},set:function(t){t=t.toString(),p=this instanceof vt==0?"("===t.substr(0,1)?G(t.substr(1,t.length-2)):G(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?G(p.substr(1,p.length-1)):p},set:function(t){t=t.toString(),p=this instanceof vt==1?"/"+z(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 d,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(t){t=Boolean(t),f=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,1):this.Ff=rt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,2):this.Ff=rt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,3):this.Ff=rt(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){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:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};Y(dt,ct);var ft=function(){dt.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 lt(e,this.objId,this.scope)},set:function(t){var r,i;i=[],"string"==typeof(r=t)&&(i=function(t,e,r){r||(r=1);for(var i,n=[];i=e.exec(t);)n.push(i[r]);return n}(r,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,18):this.Ff=rt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=et(this.Ff,19):this.Ff=rt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=et(this.Ff,20),e.sort()):this.Ff=rt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,22):this.Ff=rt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,23):this.Ff=rt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,27):this.Ff=rt(this.Ff,27)}}),this.hasAppearanceStream=!1};Y(ft,dt);var gt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};Y(gt,ft);var mt=function(){gt.call(this),this.combo=!0};Y(mt,gt);var yt=function(){mt.call(this),this.edit=!0};Y(yt,mt);var vt=function(){dt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,15):this.Ff=rt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,16):this.Ff=rt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,17):this.Ff=rt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=et(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 r,i=[];for(r in i.push("<<"),e)i.push("/"+r+" ("+V(t(e[r]))+")");return i.push(">>"),i.join("\n")}},set:function(t){"object"===(0,i.A)(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 r=null==e?"":e.toString();"/"===r.substr(0,1)&&(r=r.substr(1)),t="/"+z(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+z(e)}})};Y(vt,dt);var bt=function(){vt.call(this),this.pushButton=!0};Y(bt,vt);var wt=function(){vt.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:[]}})};Y(wt,vt);var Bt=function(){var t,e;dt.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 r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),n)r.push("/"+e+" ("+V(t(n[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===(0,i.A)(t)&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),r="/"+z(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),r="/"+z(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=St.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Y(Bt,dt),wt.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 r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},wt.prototype.createOption=function(t){var e=new Bt;return e.Parent=this,e.optionName=t,this.Kids.push(e),It.call(this.scope,e),e};var xt=function(){vt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=St.CheckBox.createAppearanceStream()};Y(xt,vt);var Ct=function(){dt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,13):this.Ff=rt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,21):this.Ff=rt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,23):this.Ff=rt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,24):this.Ff=rt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,25):this.Ff=rt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=et(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}})};Y(Ct,dt);var Et=function(){Ct.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,14):this.Ff=rt(this.Ff,14)}}),this.password=!0};Y(Et,Ct);var St={CheckBox:{createAppearanceStream:function(){return{N:{On:St.CheckBox.YesNormal},D:{On:St.CheckBox.YesPushDown,Off:St.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=q(t);e.scope=t.scope;var r=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),s=st(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+K(St.internal.getWidth(t))+" "+K(St.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+i+" "+K(s.fontSize)+" Tf "+n),r.push("BT"),r.push(s.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=q(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),n=[],s=St.internal.getHeight(t),o=St.internal.getWidth(t),a=st(t,t.caption);return n.push("1 g"),n.push("0 0 "+K(o)+" "+K(s)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+K(o-1)+" "+K(s-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+r+" "+K(a.fontSize)+" Tf "+i),n.push(a.text),n.push("ET"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=q(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+K(St.internal.getWidth(t))+" "+K(St.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:St.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=St.RadioButton.Circle.YesNormal,e.D[t]=St.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=q(t);e.scope=t.scope;var r=[],i=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var n=St.internal.Bezier_C,s=Number((i*n).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),r.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),r.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),r.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=q(t);e.scope=t.scope;var r=[],i=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var n=Number((2*i).toFixed(5)),s=Number((n*St.internal.Bezier_C).toFixed(5)),o=Number((i*St.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=q(t);e.scope=t.scope;var r=[],i=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var n=Number((2*i).toFixed(5)),s=Number((n*St.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:St.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=St.RadioButton.Cross.YesNormal,e.D[t]=St.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=q(t);e.scope=t.scope;var r=[],i=St.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+K(St.internal.getWidth(t)-2)+" "+K(St.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(K(i.x1.x)+" "+K(i.x1.y)+" m"),r.push(K(i.x2.x)+" "+K(i.x2.y)+" l"),r.push(K(i.x4.x)+" "+K(i.x4.y)+" m"),r.push(K(i.x3.x)+" "+K(i.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=q(t);e.scope=t.scope;var r=St.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+K(St.internal.getWidth(t))+" "+K(St.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+K(St.internal.getWidth(t)-2)+" "+K(St.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(K(r.x1.x)+" "+K(r.x1.y)+" m"),i.push(K(r.x2.x)+" "+K(r.x2.y)+" l"),i.push(K(r.x4.x)+" "+K(r.x4.y)+" m"),i.push(K(r.x3.x)+" "+K(r.x3.y)+" l"),i.push("s"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=q(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+K(St.internal.getWidth(t))+" "+K(St.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};St.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=St.internal.getWidth(t),r=St.internal.getHeight(t),i=Math.min(e,r);return{x1:{x:(e-i)/2,y:(r-i)/2+i},x2:{x:(e-i)/2+i,y:(r-i)/2},x3:{x:(e-i)/2,y:(r-i)/2},x4:{x:(e-i)/2+i,y:(r-i)/2+i}}}},St.internal.getWidth=function(t){var e=0;return"object"===(0,i.A)(t)&&(e=X(t.Rect[2])),e},St.internal.getHeight=function(t){var e=0;return"object"===(0,i.A)(t)&&(e=X(t.Rect[3])),e};var Ft,Tt,It=H.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(dt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(at)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");j=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 r in e)if(e.hasOwnProperty(r)){var i=e[r];i.objId=void 0,i.hasAnnotation&&At(i,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 r=!t;for(var n in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(n)){var s=t[n],o=[],a=s.Rect;if(s.Rect&&(s.Rect=it(s.Rect,e)),e.internal.newObjectDeferredBegin(s.objId,!0),s.DA=St.createDefaultAppearanceStream(s),"object"===(0,i.A)(s)&&"function"==typeof s.getKeyValueListForStream&&(o=s.getKeyValueListForStream()),s.Rect=a,s.hasAppearanceStream&&!s.appearanceStreamContent){var A=nt(s);o.push({key:"AP",value:"<</N "+A+">>"}),e.internal.acroformPlugin.xForms.push(A)}if(s.appearanceStreamContent){var l="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var c=s.appearanceStreamContent[h];if(l+="/"+h+" ",l+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var n in c)if(c.hasOwnProperty(n)){var u=c[n];"function"==typeof u&&(u=u.call(e,s)),l+="/"+n+" "+u+" ",e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=c)&&(u=u.call(e,s)),l+="/"+n+" "+u,e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u);l+=">>"}o.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:s.objId}),e.internal.out("endobj")}r&&function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var n=r,s=t[r];e.internal.newObjectDeferredBegin(s.objId,!0),"object"===(0,i.A)(s)&&"function"==typeof s.putStream&&s.putStream(),delete t[n]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof dt))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};function _t(t){return t.reduce(function(t,e,r){return t[e]=r,t},{})}H.AcroFormChoiceField=ft,H.AcroFormListBox=gt,H.AcroFormComboBox=mt,H.AcroFormEditBox=yt,H.AcroFormButton=vt,H.AcroFormPushButton=bt,H.AcroFormRadioButton=wt,H.AcroFormCheckBox=xt,H.AcroFormTextField=Ct,H.AcroFormPasswordField=Et,H.AcroFormAppearance=St,H.AcroForm={ChoiceField:ft,ListBox:gt,ComboBox:mt,EditBox:yt,Button:vt,PushButton:bt,RadioButton:wt,CheckBox:xt,TextField:Ct,PasswordField:Et,Appearance:St},R.AcroForm={ChoiceField:ft,ListBox:gt,ComboBox:mt,EditBox:yt,Button:vt,PushButton:bt,RadioButton:wt,CheckBox:xt,TextField:Ct,PasswordField:Et,Appearance:St},R.AcroForm,function(t){var e="addImage_";t.__addimage__={};var r="UNKNOWN",n={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]]},s=t.__addimage__.getImageFileTypeByImageData=function(t,e){var i,s,o,a,A,l=r;if("RGBA"===(e=e||r)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(C(t))for(A in n)for(o=n[A],i=0;i<o.length;i+=1){for(a=!0,s=0;s<o[i].length;s+=1)if(void 0!==o[i][s]&&o[i][s]!==t[s]){a=!1;break}if(!0===a){l=A;break}}else for(A in n)for(o=n[A],i=0;i<o.length;i+=1){for(a=!0,s=0;s<o[i].length;s+=1)if(void 0!==o[i][s]&&o[i][s]!==t.charCodeAt(s)){a=!1;break}if(!0===a){l=A;break}}return l===r&&e!==r&&(l=e),l},o=function t(e){for(var r=this.internal.write,i=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:e.width}),s.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?s.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]"}):(s.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&s.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",a=0,A=e.transparency.length;a<A;a++)o+=e.transparency[a]+" "+e.transparency[a]+" ";s.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&s.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(i({data:e.data,additionalKeyValues:s,alreadyAppliedFilters:l,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var h,c=null!==(h=e.sMaskBitsPerComponent)&&void 0!==h?h:e.bitsPerComponent,u={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:c,data:e.sMask};"filter"in e&&(u.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(c," /Columns ").concat(e.width),u.filter=e.filter),t.call(this,u)}if(e.colorSpace===v.INDEXED){var p=this.internal.newObject();i({data:S(new Uint8Array(e.palette)),objectId:p}),r("endobj")}},a=function(){var t=this.internal.collections[e+"images"];for(var r in t)o.call(this,t[r])},A=function(){var t,r=this.internal.collections[e+"images"],i=this.internal.write;for(var n in r)i("/I"+(t=r[n]).index,t.objectId,"0","R")},l=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",A))},h=function(){var t=this.internal.collections[e+"images"];return l.call(this),t},c=function(){return Object.keys(this.internal.collections[e+"images"]).length},u=function(e){return"function"==typeof t["process"+e.toUpperCase()]},p=function(t){return"object"===(0,i.A)(t)&&1===t.nodeType},d=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var i=""+e.getAttribute("src");if(0===i.indexOf("data:image/"))return f(unescape(i).split("base64,").pop());var n=t.loadFile(i,!0);if(void 0!==n)return n}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 s;switch(r){case"PNG":s="image/png";break;case"WEBP":s="image/webp";break;default:s="image/jpeg"}return f(e.toDataURL(s,1).split("base64,").pop())}},g=function(t){var r=this.internal.collections[e+"images"];if(r)for(var i in r)if(t===r[i].alias)return r[i]},m=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},y=function(t,e,r,i,n,s){var o=m.call(this,r,i,n),a=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString,l=h.call(this);if(r=o[0],i=o[1],l[n.index]=n,s){s*=Math.PI/180;var c=Math.cos(s),u=Math.sin(s),p=function(t){return t.toFixed(4)},d=[p(c),p(u),p(-1*u),p(c),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,a(t),A(e+i),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(r),"0","0",a(i),"0","0","cm"].join(" "))):this.internal.write([a(r),"0","0",a(i),a(t),A(e+i),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},v=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 b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,i=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)i=(i<<5)-i+t.charCodeAt(e),i|=0;else if(C(t))for(r=t.byteLength/2,e=0;e<r;e++)i=(i<<5)-i+t[e],i|=0;return i},B=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},x=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 C=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},E=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),i=0;i<e;i++)r[i]=t.charCodeAt(i);return r},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=C(t)?t:new Uint8Array(t),i=0;i<r.length;i+=8192)e+=String.fromCharCode.apply(null,r.subarray(i,i+8192));return e};t.addImage=function(){var t,e,n,s,o,a,A,h,c;if("number"==typeof arguments[1]?(e=r,n=arguments[1],s=arguments[2],o=arguments[3],a=arguments[4],A=arguments[5],h=arguments[6],c=arguments[7]):(e=arguments[1],n=arguments[2],s=arguments[3],o=arguments[4],a=arguments[5],A=arguments[6],h=arguments[7],c=arguments[8]),"object"===(0,i.A)(t=arguments[0])&&!p(t)&&"imageData"in t){var u=t;t=u.imageData,e=u.format||e||r,n=u.x||n||0,s=u.y||s||0,o=u.w||u.width||o,a=u.h||u.height||a,A=u.alias||A,h=u.compression||h,c=u.rotation||u.angle||c}var d=this.internal.getFilters();if(void 0===h&&-1!==d.indexOf("FlateEncode")&&(h="SLOW"),isNaN(n)||isNaN(s))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var f=F.call(this,t,e,A,h);return y.call(this,n,s,o,a,f,c),this};var F=function(e,i,n,o){var a,A,l;if("string"==typeof e&&s(e)===r){e=unescape(e);var h=T(e,!1);(""!==h||void 0!==(h=t.loadFile(e,!0)))&&(e=h)}if(p(e)&&(e=d(e,i)),i=s(e,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(l=n)||0===l.length)&&(n=function(t){return"string"==typeof t||C(t)?w(t):C(t.data)?w(t.data):null}(e)),(a=g.call(this,n))||(e instanceof Uint8Array||"RGBA"===i||(A=e,e=E(e)),a=this["process"+i.toUpperCase()](e,c.call(this),n,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(o),A)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},T=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){var n;r=null!==(n=x(t))&&void 0!==n?n:t;try{i=f(r)}catch(t){if(e)throw B(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(e){var i,n,o="";if(p(e)&&(e=d(e)),"string"==typeof e&&s(e)===r&&(""===(o=T(e,!1))&&(o=t.loadFile(e)||""),e=o),n=s(e),!u(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(e instanceof Uint8Array||(e=E(e)),!(i=this["process"+n.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=n,i}}(R.API),Ft=R.API,Tt=function(t){if(void 0!==t&&""!=t)return!0},R.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Ft.events.push(["putPage",function(t){for(var e,r,i,n=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),a=t.pageContext.annotations,A=!1,l=0;l<a.length&&!A;l++)switch((e=a[l]).type){case"link":(Tt(e.options.url)||Tt(e.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(0!=A){this.internal.write("/Annots [");for(var h=0;h<a.length;h++){e=a[h];var c=this.internal.pdfEscape,u=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),d=this.internal.newAdditionalObject(),f=this.internal.getEncryptor(p.objId),g=e.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+n(e.bounds.x)+" "+s(e.bounds.y+e.bounds.h)+" "+n(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y)+"] ")+"/Contents ("+c(f(e.contents))+")",i+=" /Popup "+d.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+c(f(g))+") >>",p.content=i;var m=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+n(e.bounds.x+30)+" "+s(e.bounds.y+e.bounds.h)+" "+n(e.bounds.x+e.bounds.w+30)+" "+s(e.bounds.y)+"] ")+" /Parent "+m,e.open&&(i+=" /Open true"),i+=" >>",d.content=i,this.internal.write(p.objId,"0 R",d.objId,"0 R");break;case"freetext":r="/Rect ["+n(e.bounds.x)+" "+s(e.bounds.y)+" "+n(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y+e.bounds.h)+"] ";var y="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+c(u(e.contents))+")",i+=" /DS("+c(u(y))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(e.options.name){var v=this.annotations._nameMap[e.options.name];e.options.pageNumber=v.page,e.options.top=v.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",i="",e.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+c(u(e.options.url))+") >>";else if(e.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,i+=" /FitV "+e.options.left+"]";break;default:var b=s(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),i+=" /XYZ "+e.options.left+" "+b+" "+e.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),Ft.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)}},Ft.link=function(t,e,r,i,n){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(t),y:a(e),w:o(t+r),h:a(e+i)},options:n,type:"link"})},Ft.textWithLink=function(t,e,r,i){var n,s,o=this.getTextWidth(t),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==i.maxWidth){s=i.maxWidth;var A=this.splitTextToSize(t,s).length;n=Math.ceil(a*A)}else s=o,n=a;return this.text(t,e,r,i),r+=.2*a,"center"===i.align&&(e-=o/2),"right"===i.align&&(e-=o),this.link(e,r-a,s,n,i),o},Ft.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},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]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var s=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},a=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length<=2},A=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&n.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&s(t)&&4==e[t.charCodeAt(0)].length},c=t.__arabicParser__.resolveLigatures=function(t){var e=0,i=r,n="",s=0;for(e=0;e<t.length;e+=1)void 0!==i[t.charCodeAt(e)]?(s++,"number"==typeof(i=i[t.charCodeAt(e)])&&(n+=String.fromCharCode(i),i=r,s=0),e===t.length-1&&(i=r,n+=t.charAt(e-(s-1)),e-=s-1,s=0)):(i=r,n+=t.charAt(e-s),e-=s,s=0);return n};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==i[t.charCodeAt(0)]};var u=t.__arabicParser__.getCorrectForm=function(t,e,r){return o(t)?!1===s(t)?-1:!l(t)||!o(e)&&!o(r)||!o(r)&&a(e)||a(t)&&!o(e)||a(t)&&A(e)||a(t)&&a(e)?0:h(t)&&o(e)&&!a(e)&&o(r)&&l(r)?3:a(t)||!o(r)?1:2:-1},p=function(t){var r=0,i=0,n=0,s="",a="",A="",l=(t=t||"").split("\\s+"),h=[];for(r=0;r<l.length;r+=1){for(h.push(""),i=0;i<l[r].length;i+=1)s=l[r][i],a=l[r][i-1],A=l[r][i+1],o(s)?(n=u(s,a,A),h[r]+=-1!==n?String.fromCharCode(e[s.charCodeAt(0)][n]):s):h[r]+=s;h[r]=c(h[r])}return h.join(" ")},d=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)Array.isArray(e[i])?r.push([p(e[i][0]),e[i][1],e[i][2]]):r.push([p(e[i])]);t=r}else t=p(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",d])}(R.API),R.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 r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(t){i=t}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(R.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,n=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(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var s=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return s},set:function(t){s=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){n.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),s=e.scaleFactor||this.internal.scaleFactor,o=0,a=0,A=0,l=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 h=e.maxWidth;h>0?"string"==typeof t?t=this.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(l.splitTextToSize(e,h))},[])):t=Array.isArray(t)?t:[t];for(var c=0;c<t.length;c++)o<(A=this.getStringUnitWidth(t[c],{font:i})*r)&&(o=A);return 0!==o&&(a=t.length),{w:o/=s,h:Math.max((a*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/s,0)}},t.cellAddPage=function(){n.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var i=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,a=this.internal.__cell__.margins||e,A=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,l&&A&&(this.printHeaderRow(t.lineNumber,!0),t.y+=A[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===r?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-s,t.y+s,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+s,{align:"center",baseline:"top",maxWidth:t.width-s-s}):this.text(t.text,t.x+s,t.y+s,{align:"left",baseline:"top",maxWidth:t.width-s-s})),this.internal.__cell__.lastCell=t,this};t.table=function(t,r,l,h,c){if(n.call(this),!l)throw new Error("No data for PDF table.");var u,p,d,f,g=[],m=[],y=[],v={},b={},w=[],B=[],x=(c=c||{}).autoSize||!1,C=!1!==c.printHeaders,E=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,S=c.margins||Object.assign({width:this.getPageWidth()},e),F="number"==typeof c.padding?c.padding:3,T=c.headerBackgroundColor||"#c8c8c8",I=c.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=E,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=T,this.internal.__cell__.headerTextColor=I,this.setFontSize(E),null==h)m=g=Object.keys(l[0]),y=g.map(function(){return"left"});else if(Array.isArray(h)&&"object"===(0,i.A)(h[0]))for(g=h.map(function(t){return t.name}),m=h.map(function(t){return t.prompt||t.name||""}),y=h.map(function(t){return t.align||"left"}),u=0;u<h.length;u+=1)b[h[u].name]=.7499990551181103*h[u].width;else Array.isArray(h)&&"string"==typeof h[0]&&(m=g=h,y=g.map(function(){return"left"}));if(x||Array.isArray(h)&&"string"==typeof h[0])for(u=0;u<g.length;u+=1){for(v[f=g[u]]=l.map(function(t){return t[f]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=v[f],this.setFont(void 0,"normal"),d=0;d<p.length;d+=1)w.push(this.getTextDimensions(p[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[f]=Math.max.apply(null,w)+F+F,w=[]}if(C){var _={};for(u=0;u<g.length;u+=1)_[g[u]]={},_[g[u]].text=m[u],_[g[u]].align=y[u];var k=A.call(this,_,b);B=g.map(function(e){return new o(t,r,b[e],k,_[e].text,void 0,_[e].align)}),this.setTableHeaderRow(B),this.printHeaderRow(1,!1)}var L=h.reduce(function(t,e){return t[e.name]=e.align,t},{});for(u=0;u<l.length;u+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:u,data:l[u]},this);var P=A.call(this,l[u],b);for(d=0;d<g.length;d+=1){var N=l[u][g[d]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:u,col:d,data:N},this),a.call(this,new o(t,r,b[g[d]],P,N,u+2,L[g[d]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=r,this};var A=function(t,e){var r=this.internal.__cell__.padding,i=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(t).map(function(i){var n=t[i];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,e[i]-r-r)},this).map(function(t){return this.getLineHeightFactor()*t.length*i/n+r+r},this).reduce(function(t,e){return Math.max(t,e)},0)};t.setTableHeaderRow=function(t){n.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){i=this.internal.__cell__.tableHeaderRow[l].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,A.push(i)),i.lineNumber=t;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,i),this.setTextColor(h)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),r=!1}}(R.API);var kt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Lt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Pt=_t(Lt),Nt=[100,200,300,400,500,600,700,800,900],Dt=_t(Nt);function Mt(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return kt[t=t||"normal"]?t:"normal"}(t.style),i=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),n=function(t){return"number"==typeof Pt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:i,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,r,i].join(" ")}}}function Ot(t,e,r,i){var n;for(n=r;n>=0&&n<e.length;n+=i)if(t[e[n]])return t[e[n]];for(n=r;n>=0&&n<e.length;n-=i)if(t[e[n]])return t[e[n]]}var Ut={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Qt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Ht(t){return t.trimLeft()}function jt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Vt(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 Gt,zt,Kt,Wt,Yt,Xt=["times"];function qt(t,e,r,i,s){var o=4,a=Zt;switch(s){case R.API.image_compression.FAST:o=1,a=Jt;break;case R.API.image_compression.MEDIUM:o=6,a=te;break;case R.API.image_compression.SLOW:o=9,a=ee}t=function(t,e,r,i){for(var n,s=t.length/e,o=new Uint8Array(t.length+s),a=[$t,Jt,Zt,te,ee],A=0;A<s;A+=1){var l=A*e,h=t.subarray(l,l+e);if(i)o.set(i(h,r,n),l+A);else{for(var c=a.length,u=[],p=0;p<c;p+=1)u[p]=a[p](h,r,n);var d=ie(u.concat());o.set(u[d],l+A)}n=h}return o}(t,e,Math.ceil(r*i/8),a);var A=(0,n.$)(t,{level:o});return R.API.__addimage__.arrayBufferToBinaryString(A)}function $t(t){var e=Array.apply([],t);return e.unshift(0),e}function Jt(t,e){var r=t.length,i=[];i[0]=1;for(var n=0;n<r;n+=1){var s=t[n-e]||0;i[n+1]=t[n]-s+256&255}return i}function Zt(t,e,r){var i=t.length,n=[];n[0]=2;for(var s=0;s<i;s+=1){var o=r&&r[s]||0;n[s+1]=t[s]-o+256&255}return n}function te(t,e,r){var i=t.length,n=[];n[0]=3;for(var s=0;s<i;s+=1){var o=t[s-e]||0,a=r&&r[s]||0;n[s+1]=t[s]+256-(o+a>>>1)&255}return n}function ee(t,e,r){var i=t.length,n=[];n[0]=4;for(var s=0;s<i;s+=1){var o=re(t[s-e]||0,r&&r[s]||0,r&&r[s-e]||0);n[s+1]=t[s]-o+256&255}return n}function re(t,e,r){if(t===e&&e===r)return t;var i=Math.abs(e-r),n=Math.abs(t-r),s=Math.abs(t+e-r-r);return i<=n&&i<=s?t:n<=s?e:r}function ie(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 ne(t,e,r){var i=e*r,n=Math.floor(i/8),s=16-(i-8*n+r),o=(1<<r)-1;return oe(t,n)>>s&o}function se(t,e,r,i){var n=r*i,s=Math.floor(n/8),o=16-(n-8*s+i),a=(1<<i)-1,A=(e&a)<<o;!function(t,e,r){if(e+1<t.byteLength)t.setUint16(e,r,!1);else{var i=r>>8&255;t.setUint8(e,i)}}(t,s,oe(t,s)&~(a<<o)&65535|A)}function oe(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function ae(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 r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,n=t[e++],s=n>>7,o=1<<1+(7&n);t[e++],t[e++];var a=null,A=null;s&&(a=e,A=o,e+=3*o);var l=!0,h=[],c=0,u=null,p=0,d=null;for(this.width=r,this.height=i;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,d=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 f=t[e++];c=t[e++]|t[e++]<<8,u=t[e++],1&f||(u=null),p=f>>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 g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++],w=b>>6&1,B=1<<1+(7&b),x=a,C=A,E=!1;b>>7&&(E=!0,x=e,C=B,e+=3*B);var S=e;for(e++;;){var F;if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}h.push({x:g,y:m,width:y,height:v,has_local_palette:E,palette_offset:x,palette_size:C,data_offset:S,data_length:e-S,transparent_index:u,interlaced:!!w,delay:c,disposal:p});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error("Frame index out of range.");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var n=this.frameInfo(e),s=n.width*n.height;if(s>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(s);Ae(t,n.data_offset,o,s);var a=n.palette_offset,A=n.transparent_index;null===A&&(A=256);var l=n.width,h=r-l,c=l,u=4*(n.y*r+n.x),p=4*((n.y+n.height)*r+n.x),d=u,f=4*h;!0===n.interlaced&&(f+=4*r*7);for(var g=8,m=0,y=o.length;m<y;++m){var v=o[m];if(0===c&&(c=l,(d+=f)>=p&&(f=4*h+4*r*(g-1),d=u+(l+h)*(g<<1),g>>=1)),v===A)d+=4;else{var b=t[a+3*v],w=t[a+3*v+1],B=t[a+3*v+2];i[d++]=B,i[d++]=w,i[d++]=b,i[d++]=255}--c}},this.decodeAndBlitFrameRGBA=function(e,i){var n=this.frameInfo(e),s=n.width*n.height;if(s>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(s);Ae(t,n.data_offset,o,s);var a=n.palette_offset,A=n.transparent_index;null===A&&(A=256);var l=n.width,h=r-l,c=l,u=4*(n.y*r+n.x),p=4*((n.y+n.height)*r+n.x),d=u,f=4*h;!0===n.interlaced&&(f+=4*r*7);for(var g=8,m=0,y=o.length;m<y;++m){var v=o[m];if(0===c&&(c=l,(d+=f)>=p&&(f=4*h+4*r*(g-1),d=u+(l+h)*(g<<1),g>>=1)),v===A)d+=4;else{var b=t[a+3*v],w=t[a+3*v+1],B=t[a+3*v+2];i[d++]=b,i[d++]=w,i[d++]=B,i[d++]=255}--c}}}function Ae(t,e,r,i){for(var n=t[e++],s=1<<n,o=s+1,a=o+1,A=n+1,h=(1<<A)-1,c=0,u=0,p=0,d=t[e++],f=new Int32Array(4096),g=null;;){for(;c<16&&0!==d;)u|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<A)break;var m=u&h;if(u>>=A,c-=A,m!==s){if(m===o)break;for(var y=m<a?m:g,v=0,b=y;b>s;)b=f[b]>>8,++v;var w=b;if(p+v+(y!==m?1:0)>i)return void l.log("Warning, gif stream longer than expected.");r[p++]=w;var B=p+=v;for(y!==m&&(r[p++]=w),b=y;v--;)b=f[b],r[--B]=255&b,b>>=8;null!==g&&a<4096&&(f[a++]=g<<8|w,a>=h+1&&A<12&&(++A,h=h<<1|1)),g=m}else a=o+1,h=(1<<(A=n+1))-1,g=null}return p!==i&&l.log("Warning, gif stream shorter than expected."),r}function le(t){var e,r,i,n,s,o=Math.floor,a=new Array(64),A=new Array(64),l=new Array(64),h=new Array(64),c=new Array(65535),u=new Array(65535),p=new Array(64),d=new Array(64),f=[],g=0,m=7,y=new Array(64),v=new Array(64),b=new Array(64),w=new Array(256),B=new Array(2048),x=[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],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function L(t,e){for(var r=0,i=0,n=new Array,s=1;s<=16;s++){for(var o=1;o<=t[s];o++)n[e[i]]=[],n[e[i]][0]=r,n[e[i]][1]=s,i++,r++;r*=2}return n}function P(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(g|=1<<m),r--,--m<0&&(255==g?(N(255),N(0)):N(g),m=7,g=0)}function N(t){f.push(t)}function D(t){N(t>>8&255),N(255&t)}function M(t,e,r,i,n){for(var s,o=n[0],a=n[240],A=function(t,e){var r,i,n,s,o,a,A,l,h,c,u=0;for(h=0;h<8;++h){r=t[u],i=t[u+1],n=t[u+2],s=t[u+3],o=t[u+4],a=t[u+5],A=t[u+6];var d=r+(l=t[u+7]),f=r-l,g=i+A,m=i-A,y=n+a,v=n-a,b=s+o,w=s-o,B=d+b,x=d-b,C=g+y,E=g-y;t[u]=B+C,t[u+4]=B-C;var S=.707106781*(E+x);t[u+2]=x+S,t[u+6]=x-S;var F=.382683433*((B=w+v)-(E=m+f)),T=.5411961*B+F,I=1.306562965*E+F,_=.707106781*(C=v+m),k=f+_,L=f-_;t[u+5]=L+T,t[u+3]=L-T,t[u+1]=k+I,t[u+7]=k-I,u+=8}for(u=0,h=0;h<8;++h){r=t[u],i=t[u+8],n=t[u+16],s=t[u+24],o=t[u+32],a=t[u+40],A=t[u+48];var P=r+(l=t[u+56]),N=r-l,D=i+A,M=i-A,O=n+a,U=n-a,Q=s+o,R=s-o,H=P+Q,j=P-Q,V=D+O,G=D-O;t[u]=H+V,t[u+32]=H-V;var z=.707106781*(G+j);t[u+16]=j+z,t[u+48]=j-z;var K=.382683433*((H=R+U)-(G=M+N)),W=.5411961*H+K,Y=1.306562965*G+K,X=.707106781*(V=U+M),q=N+X,$=N-X;t[u+40]=$+W,t[u+24]=$-W,t[u+8]=q+Y,t[u+56]=q-Y,u++}for(h=0;h<64;++h)c=t[h]*e[h],p[h]=c>0?c+.5|0:c-.5|0;return p}(t,e),l=0;l<64;++l)d[x[l]]=A[l];var h=d[0]-r;r=d[0],0==h?P(i[0]):(P(i[u[s=32767+h]]),P(c[s]));for(var f=63;f>0&&0==d[f];)f--;if(0==f)return P(o),r;for(var g,m=1;m<=f;){for(var y=m;0==d[m]&&m<=f;)++m;var v=m-y;if(v>=16){g=v>>4;for(var b=1;b<=g;++b)P(a);v&=15}s=32767+d[m],P(n[(v<<4)+u[s]]),P(c[s]),m++}return 63!=f&&P(o),r}function O(t){t=Math.min(Math.max(t,1),100),s!=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],r=0;r<64;r++){var i=o((e[r]*t+50)/100);i=Math.min(Math.max(i,1),255),a[x[r]]=i}for(var n=[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],s=0;s<64;s++){var c=o((n[s]*t+50)/100);c=Math.min(Math.max(c,1),255),A[x[s]]=c}for(var u=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var f=0;f<8;f++)l[p]=1/(a[x[p]]*u[d]*u[f]*8),h[p]=1/(A[x[p]]*u[d]*u[f]*8),p++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),s=t)}this.encode=function(t,s){s&&O(s),f=new Array,g=0,m=7,D(65496),D(65504),D(16),N(74),N(70),N(73),N(70),N(0),N(1),N(1),N(0),D(1),D(1),N(0),N(0),function(){D(65499),D(132),N(0);for(var t=0;t<64;t++)N(a[t]);N(1);for(var e=0;e<64;e++)N(A[e])}(),function(t,e){D(65472),D(17),N(8),D(e),D(t),N(3),N(1),N(17),N(0),N(2),N(17),N(1),N(3),N(17),N(1)}(t.width,t.height),function(){D(65476),D(418),N(0);for(var t=0;t<16;t++)N(C[t+1]);for(var e=0;e<=11;e++)N(E[e]);N(16);for(var r=0;r<16;r++)N(S[r+1]);for(var i=0;i<=161;i++)N(F[i]);N(1);for(var n=0;n<16;n++)N(T[n+1]);for(var s=0;s<=11;s++)N(I[s]);N(17);for(var o=0;o<16;o++)N(_[o+1]);for(var a=0;a<=161;a++)N(k[a])}(),D(65498),D(12),N(3),N(1),N(0),N(2),N(17),N(3),N(17),N(0),N(63),N(0);var o=0,c=0,u=0;g=0,m=7,this.encode.displayName="_encode_";for(var p,d,w,x,L,U,Q,R,H,j=t.data,V=t.width,G=t.height,z=4*V,K=0;K<G;){for(p=0;p<z;){for(L=z*K+p,Q=-1,R=0,H=0;H<64;H++)U=L+(R=H>>3)*z+(Q=4*(7&H)),K+R>=G&&(U-=z*(K+1+R-G)),p+Q>=z&&(U-=p+Q-z+4),d=j[U++],w=j[U++],x=j[U++],y[H]=(B[d]+B[w+256|0]+B[x+512|0]>>16)-128,v[H]=(B[d+768|0]+B[w+1024|0]+B[x+1280|0]>>16)-128,b[H]=(B[d+1280|0]+B[w+1536|0]+B[x+1792|0]>>16)-128;o=M(y,l,o,e,i),c=M(v,h,c,r,n),u=M(b,h,u,r,n),p+=32}K+=8}if(m>=0){var W=[];W[1]=m+1,W[0]=(1<<m+1)-1,P(W)}return D(65497),new Uint8Array(f)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=L(C,E),r=L(T,I),i=L(S,F),n=L(_,k),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var i=t;i<e;i++)u[32767+i]=r,c[32767+i]=[],c[32767+i][1]=r,c[32767+i][0]=i;for(var n=-(e-1);n<=-t;n++)u[32767+n]=r,c[32767+n]=[],c[32767+n][1]=r,c[32767+n][0]=e-1+n;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256|0]=38470*t,B[t+512|0]=7471*t+32768,B[t+768|0]=-11059*t,B[t+1024|0]=-21709*t,B[t+1280|0]=32768*t+8421375,B[t+1536|0]=-27439*t,B[t+1792|0]=-5329*t}(),O(t)}function he(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 ce(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var i=0;4>i;i++)if(t[e+i]!=r.charCodeAt(i))return!0;return!1}function i(t,e,r,i,n){for(var s=0;s<n;s++)t[e+s]=r[i+s]}function n(t,e,r,i){for(var n=0;n<i;n++)t[e+n]=r}function s(t){return new Int32Array(t)}function o(t,e){for(var r=[],i=0;i<t;i++)r.push(new e);return r}function a(t,e){var r=[];return function t(r,i,n){for(var s=n[i],o=0;o<s&&(r.push(n.length>i+1?[]:new e),!(n.length<i+1));o++)t(r[o],i+1,n)}(r,0,t),r}var A=function(){var t=this;function A(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function l(t,r,i,n,s){e(!(n%i));do{t[r+(n-=i)]=s}while(0<n)}function h(t,r,i,n,o){if(e(2328>=o),512>=o)var a=s(512);else if(null==(a=s(o)))return 0;return function(t,r,i,n,o,a){var h,u,p=r,d=1<<i,f=s(16),g=s(16);for(e(0!=o),e(null!=n),e(null!=t),e(0<i),u=0;u<o;++u){if(15<n[u])return 0;++f[n[u]]}if(f[0]==o)return 0;for(g[1]=0,h=1;15>h;++h){if(f[h]>1<<h)return 0;g[h+1]=g[h]+f[h]}for(u=0;u<o;++u)h=n[u],0<n[u]&&(a[g[h]++]=u);if(1==g[15])return(n=new c).g=0,n.value=a[0],l(t,p,1,d,n),d;var m,y=-1,v=d-1,b=0,w=1,B=1,x=1<<i;for(u=0,h=1,o=2;h<=i;++h,o<<=1){if(w+=B<<=1,0>(B-=f[h]))return 0;for(;0<f[h];--f[h])(n=new c).g=h,n.value=a[u++],l(t,p+b,o,x,n),b=A(b,h)}for(h=i+1,o=2;15>=h;++h,o<<=1){if(w+=B<<=1,0>(B-=f[h]))return 0;for(;0<f[h];--f[h]){if(n=new c,(b&v)!=y){for(p+=x,m=1<<(y=h)-i;15>y&&!(0>=(m-=f[y]));)++y,m<<=1;d+=x=1<<(m=y-i),t[r+(y=b&v)].g=m+i,t[r+y].value=p-r-y}n.g=h-i,n.value=a[u++],l(t,p+(b>>i),o,x,n),b=A(b,h)}}return w!=2*g[15]-1?0:d}(t,r,i,n,o,a)}function c(){this.value=this.g=0}function u(){this.value=this.g=0}function p(){this.G=o(5,c),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Or,u)}function d(t,r,i,n){e(null!=t),e(null!=r),e(2147483648>n),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=i,t.Jd=r,t.Yc=i+n,t.Zc=4<=n?i+n-4+1:i,S(t)}function f(t,e){for(var r=0;0<e--;)r|=T(t,128)<<e;return r}function g(t,e){var r=f(t,e);return F(t)?-r:r}function m(t,r,i,n){var s,o=0;for(e(null!=t),e(null!=r),e(4294967288>n),t.Sb=n,t.Ra=0,t.u=0,t.h=0,4<n&&(n=4),s=0;s<n;++s)o+=r[i+s]<<8*s;t.Ra=o,t.bb=n,t.oa=r,t.pa=i}function y(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Rr-8>>>0,++t.bb,t.u-=8;x(t)&&(t.h=1,t.u=0)}function v(t,r){if(e(0<=r),!t.h&&r<=Qr){var i=B(t)&Ur[r];return t.u+=r,y(t),i}return t.h=1,t.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(t){return t.Ra>>>(t.u&Rr-1)>>>0}function x(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Rr}function C(t,e){t.u=e,t.h=x(t)}function E(t){t.u>=Hr&&(e(t.u>=Hr),y(t))}function S(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function F(t){return f(t,1)}function T(t,e){var r=t.Ca;0>t.b&&S(t);var i=t.b,n=r*e>>>8,s=(t.I>>>i>n)+0;for(s?(r-=n,t.I-=n+1<<i>>>0):r=n+1,i=r,n=0;256<=i;)n+=8,i>>=8;return i=7^n+jr[i],t.b-=i,t.Ca=(r<<i)-1,s}function I(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function _(t,e){return t[e+0]|t[e+1]<<8}function k(t,e){return _(t,e)|t[e+2]<<16}function L(t,e){return _(t,e)|_(t,e+2)<<16}function P(t,r){var i=1<<r;return e(null!=t),e(0<r),t.X=s(i),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function N(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),i(r.X,0,t.X,0,1<<r.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function M(t,r,i,n){e(null!=i),e(null!=n);var s=i[0],o=n[0];return 0==s&&(s=(t*o+r/2)/r),0==o&&(o=(r*s+t/2)/t),0>=s||0>=o?0:(i[0]=s,n[0]=o,1)}function O(t,e){return t+(1<<e)-1>>>e}function U(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function Q(e,r){t[r]=function(r,i,n,s,o,a,A){var l;for(l=0;l<o;++l){var h=t[e](a[A+l-1],n,s+l);a[A+l]=U(r[i+l],h)}}}function R(){this.ud=this.hd=this.jd=0}function H(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function j(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function V(t,e){return j(t+(t-e+.5>>1))}function G(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function z(t,e,r,i,n,s,o){for(i=s[o-1],r=0;r<n;++r)s[o+r]=i=U(t[e+r],i)}function K(t,e,r,i,n){var s;for(s=0;s<r;++s){var o=t[e+s],a=o>>8&255,A=16711935&(A=(A=16711935&o)+((a<<16)+a));i[n+s]=(4278255360&o)+A>>>0}}function W(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function Y(t,e,r,i,n,s){var o;for(o=0;o<i;++o){var a=e[r+o],A=a>>>8,l=a,h=255&(h=(h=a>>>16)+((t.jd<<24>>24)*(A<<24>>24)>>>5));l=255&(l=(l+=(t.hd<<24>>24)*(A<<24>>24)>>>5)+((t.ud<<24>>24)*(h<<24>>24)>>>5)),n[s+o]=(4278255360&a)+(h<<16)+l}}function X(e,r,i,n,s){t[r]=function(t,e,r,i,o,a,A,l,h){for(i=A;i<l;++i)for(A=0;A<h;++A)o[a++]=s(r[n(t[e++])])},t[e]=function(e,r,o,a,A,l,h){var c=8>>e.b,u=e.Ea,p=e.K[0],d=e.w;if(8>c)for(e=(1<<e.b)-1,d=(1<<c)-1;r<o;++r){var f,g=0;for(f=0;f<u;++f)f&e||(g=n(a[A++])),l[h++]=s(p[g&d]),g>>=c}else t["VP8LMapColor"+i](a,A,p,d,l,h,r,o,u)}}function q(t,e,r,i,n){for(r=e+r;e<r;){var s=t[e++];i[n++]=s>>16&255,i[n++]=s>>8&255,i[n++]=255&s}}function $(t,e,r,i,n){for(r=e+r;e<r;){var s=t[e++];i[n++]=s>>16&255,i[n++]=s>>8&255,i[n++]=255&s,i[n++]=s>>24&255}}function J(t,e,r,i,n){for(r=e+r;e<r;){var s=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;i[n++]=s,i[n++]=o}}function Z(t,e,r,i,n){for(r=e+r;e<r;){var s=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;i[n++]=s,i[n++]=o}}function tt(t,e,r,i,n){for(r=e+r;e<r;){var s=t[e++];i[n++]=255&s,i[n++]=s>>8&255,i[n++]=s>>16&255}}function et(t,e,r,n,s,o){if(0==o)for(r=e+r;e<r;)I(n,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),s+=32;else i(n,s,t,e,r)}function rt(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function it(t){return t==Hi||t==ji||t==Vi||t==Gi}function nt(){this.eb=[],this.size=this.A=this.fb=0}function st(){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 ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nt,this.f.kb=new st,this.sd=null}function at(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function At(){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 lt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ht(t,e){var r=t.T,n=e.ba.f.RGBA,s=n.eb,o=n.fb+t.ka*n.A,a=gn[e.ba.S],A=t.y,l=t.O,h=t.f,c=t.N,u=t.ea,p=t.W,d=e.cc,f=e.dc,g=e.Mc,m=e.Nc,y=t.ka,v=t.ka+t.T,b=t.U,w=b+1>>1;for(0==y?a(A,l,null,null,h,c,u,p,h,c,u,p,s,o,null,null,b):(a(e.ec,e.fc,A,l,d,f,g,m,h,c,u,p,s,o-n.A,s,o,b),++r);y+2<v;y+=2)d=h,f=c,g=u,m=p,c+=t.Rc,p+=t.Rc,o+=2*n.A,a(A,(l+=2*t.fa)-t.fa,A,l,d,f,g,m,h,c,u,p,s,o-n.A,s,o,b);return l+=t.fa,t.j+v<t.o?(i(e.ec,e.fc,A,l,b),i(e.cc,e.dc,h,c,w),i(e.Mc,e.Nc,u,p,w),r--):1&v||a(A,l,null,null,h,c,u,p,h,c,u,p,s,o+n.A,null,null,b),r}function ct(t,r,i){var n=t.F,s=[t.J];if(null!=n){var o=t.U,a=r.ba.S,A=a==Ui||a==Vi;r=r.ba.f.RGBA;var l=[0],h=t.ka;l[0]=t.T,t.Kb&&(0==h?--l[0]:(--h,s[0]-=t.width),t.j+t.ka+t.T==t.o&&(l[0]=t.o-t.j-h));var c=r.eb;h=r.fb+h*r.A,t=xi(n,s[0],t.width,o,l,c,h+(A?0:3),r.A),e(i==l),t&&it(a)&&wi(c,h,A,o,l,r.A)}return 0}function ut(t){var e=t.ma,r=e.ba.S,i=11>r,n=r==Di||r==Oi||r==Ui||r==Qi||12==r||it(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Nr(e.Oa,t,n?11:12))return 0;if(n&&it(r)&&mr(),t.da)alert("todo:use_scaling");else{if(i){if(e.Ib=lt,t.Kb){if(r=t.U+1>>1,e.memory=s(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=ht,mr()}}else alert("todo:EmitYUV");n&&(e.Jb=ct,i&&fr())}if(i&&!_n){for(t=0;256>t;++t)kn[t]=89858*(t-128)+En>>Cn,Nn[t]=-22014*(t-128)+En,Pn[t]=-45773*(t-128),Ln[t]=113618*(t-128)+En>>Cn;for(t=Sn;t<Fn;++t)e=76283*(t-16)+En>>Cn,Dn[t-Sn]=zt(e,255),Mn[t-Sn]=zt(e+8>>4,15);_n=1}return 1}function pt(t){var r=t.ma,i=t.U,n=t.T;return e(!(1&t.ka)),0>=i||0>=n?0:(i=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,i),r.Dc+=i,1)}function dt(t){t.ma.memory=null}function ft(t,e,r,i){return 47!=v(t,8)?0:(e[0]=v(t,14)+1,r[0]=v(t,14)+1,i[0]=v(t,1),0!=v(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+v(e,r)+1}function mt(t,e){return 120<e?e-120:1<=(r=((r=qi[e-1])>>4)*t+(8-(15&r)))?r:1;var r}function yt(t,e,r){var i=B(r),n=t[e+=255&i].g-8;return 0<n&&(C(r,r.u+8),i=B(r),e+=t[e].value,e+=i&(1<<n)-1),C(r,r.u+t[e].g),t[e].value}function vt(t,r,i){return i.g+=t.g,i.value+=t.value<<r>>>0,e(8>=i.g),t.g}function bt(t,r,i){var n=t.xc;return e((r=0==n?0:t.vc[t.md*(i>>n)+(r>>n)])<t.Wb),t.Ya[r]}function wt(t,r,n,s){var o=t.ab,a=t.c*r,A=t.C;r=A+r;var l=n,h=s;for(s=t.Ta,n=t.Ua;0<o--;){var c=t.gc[o],u=A,p=r,d=l,f=h,g=(h=s,l=n,c.Ea);switch(e(u<p),e(p<=c.nc),c.hc){case 2:zr(d,f,(p-u)*g,h,l);break;case 0:var m=u,y=p,v=h,b=l,w=(S=c).Ea;0==m&&(Vr(d,f,null,null,1,v,b),z(d,f+1,0,0,w-1,v,b+1),f+=w,b+=w,++m);for(var B=1<<S.b,x=B-1,C=O(w,S.b),E=S.K,S=S.w+(m>>S.b)*C;m<y;){var F=E,T=S,I=1;for(Gr(d,f,v,b-w,1,v,b);I<w;){var _=(I&~x)+B;_>w&&(_=w),(0,qr[F[T++]>>8&15])(d,f+ +I,v,b+I-w,_-I,v,b+I),I=_}f+=w,b+=w,++m&x||(S+=C)}p!=c.nc&&i(h,l-g,h,l+(p-u-1)*g,g);break;case 1:for(g=d,y=f,w=(d=c.Ea)-(b=d&~(v=(f=1<<c.b)-1)),m=O(d,c.b),B=c.K,c=c.w+(u>>c.b)*m;u<p;){for(x=B,C=c,E=new R,S=y+b,F=y+d;y<S;)W(x[C++],E),$r(E,g,y,f,h,l),y+=f,l+=f;y<F&&(W(x[C++],E),$r(E,g,y,w,h,l),y+=w,l+=w),++u&v||(c+=m)}break;case 3:if(d==h&&f==l&&0<c.b){for(y=h,d=g=l+(p-u)*g-(b=(p-u)*O(c.Ea,c.b)),f=h,v=l,m=[],b=(w=b)-1;0<=b;--b)m[b]=f[v+b];for(b=w-1;0<=b;--b)y[d+b]=m[b];Kr(c,u,p,h,g,h,l)}else Kr(c,u,p,d,f,h,l)}l=s,h=n}h!=n&&i(s,n,l,h,a)}function Bt(t,r){var i=t.V,n=t.Ba+t.c*t.C,s=r-t.C;if(e(r<=t.l.o),e(16>=s),0<s){var o=t.l,a=t.Ta,A=t.Ua,l=o.width;if(wt(t,s,i,n),s=A=[A],e((i=t.C)<(n=r)),e(o.v<o.va),n>o.o&&(n=o.o),i<o.j){var h=o.j-i;i=o.j,s[0]+=h*l}if(i>=n?i=0:(s[0]+=4*o.v,o.ka=i-o.j,o.U=o.va-o.v,o.T=n-i,i=1),i){if(A=A[0],11>(i=t.ca).S){var c=i.f.RGBA,u=(n=i.S,s=o.U,o=o.T,h=c.eb,c.A),p=o;for(c=c.fb+t.Ma*c.A;0<p--;){var d=a,f=A,g=s,m=h,y=c;switch(n){case Ni:Jr(d,f,g,m,y);break;case Di:Zr(d,f,g,m,y);break;case Hi:Zr(d,f,g,m,y),wi(m,y,0,g,1,0);break;case Mi:ri(d,f,g,m,y);break;case Oi:et(d,f,g,m,y,1);break;case ji:et(d,f,g,m,y,1),wi(m,y,0,g,1,0);break;case Ui:et(d,f,g,m,y,0);break;case Vi:et(d,f,g,m,y,0),wi(m,y,1,g,1,0);break;case Qi:ti(d,f,g,m,y);break;case Gi:ti(d,f,g,m,y),Bi(m,y,g,1,0);break;case Ri:ei(d,f,g,m,y);break;default:e(0)}A+=l,c+=u}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=i.height)}}t.C=r,e(t.C<=t.i)}function xt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,i=t.Ya[e].H;if(0<r[1][i[1]+0].g||0<r[2][i[2]+0].g||0<r[3][i[3]+0].g)return 0}return 1}function Ct(t,r,i,n,s,o){if(0!=t.Z){var a=t.qd,A=t.rd;for(e(null!=fn[t.Z]);r<i;++r)fn[t.Z](a,A,n,s,n,s,o),a=n,A=s,s+=o;t.qd=a,t.rd=A}}function Et(t,r){var i=t.l.ma,n=0==i.Z||1==i.Z?t.l.j:t.C;if(n=t.C<n?n:t.C,e(r<=t.l.o),r>n){var s=t.l.width,o=i.ca,a=i.tb+s*n,A=t.V,l=t.Ba+t.c*n,h=t.gc;e(1==t.ab),e(3==h[0].hc),Yr(h[0],n,r,A,l,o,a),Ct(i,n,r,o,a,s)}t.C=t.Ma=r}function St(t,r,i,n,s,o,a){var A=t.$/n,l=t.$%n,h=t.m,c=t.s,u=i+t.$,p=u;s=i+n*s;var d=i+n*o,f=280+c.ua,g=t.Pb?A:16777216,m=0<c.ua?c.Wa:null,y=c.wc,v=u<d?bt(c,l,A):null;e(t.C<o),e(d<=s);var b=!1;t:for(;;){for(;b||u<d;){var w=0;if(A>=g){var S=u-i;e((g=t).Pb),g.wd=g.m,g.xd=S,0<g.s.ua&&N(g.s.Wa,g.s.vb),g=A+Ji}if(l&y||(v=bt(c,l,A)),e(null!=v),v.Qb&&(r[u]=v.qb,b=!0),!b)if(E(h),v.jc){w=h,S=r;var F=u,T=v.pd[B(w)&Or-1];e(v.jc),256>T.g?(C(w,w.u+T.g),S[F]=T.value,w=0):(C(w,w.u+T.g-256),e(256<=T.value),w=T.value),0==w&&(b=!0)}else w=yt(v.G[0],v.H[0],h);if(h.h)break;if(b||256>w){if(!b)if(v.nd)r[u]=(v.qb|w<<8)>>>0;else{if(E(h),b=yt(v.G[1],v.H[1],h),E(h),S=yt(v.G[2],v.H[2],h),F=yt(v.G[3],v.H[3],h),h.h)break;r[u]=(F<<24|b<<16|w<<8|S)>>>0}if(b=!1,++u,++l>=n&&(l=0,++A,null!=a&&A<=o&&!(A%16)&&a(t,A),null!=m))for(;p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else if(280>w){if(w=gt(w-256,h),S=yt(v.G[4],v.H[4],h),E(h),S=mt(n,S=gt(S,h)),h.h)break;if(u-i<S||s-u<w)break t;for(F=0;F<w;++F)r[u+F]=r[u+F-S];for(u+=w,l+=w;l>=n;)l-=n,++A,null!=a&&A<=o&&!(A%16)&&a(t,A);if(e(u<=s),l&y&&(v=bt(c,l,A)),null!=m)for(;p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else{if(!(w<f))break t;for(b=w-280,e(null!=m);p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w;w=u,e(!(b>>>(S=m).Xa)),r[w]=S.X[b],b=!0}b||e(h.h==x(h))}if(t.Pb&&h.h&&u<s)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&N(t.s.vb,t.s.Wa);else{if(h.h)break t;null!=a&&a(t,A>o?o:A),t.a=0,t.$=u-i}return 1}return t.a=3,0}function Ft(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function Tt(){var e=new sr;return null==e?null:(e.a=0,e.xb=dn,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),zr=K,$r=Y,Jr=q,Zr=$,ti=J,ei=Z,ri=tt,t.VP8LMapColor32b=Wr,t.VP8LMapColor8b=Xr,e)}function It(t,r,i,a,A){var l=1,u=[t],d=[r],f=a.m,g=a.s,m=null,y=0;t:for(;;){if(i)for(;l&&v(f,1);){var b=u,w=d,x=a,S=1,F=x.m,T=x.gc[x.ab],I=v(F,2);if(x.Oc&1<<I)l=0;else{switch(x.Oc|=1<<I,T.hc=I,T.Ea=b[0],T.nc=w[0],T.K=[null],++x.ab,e(4>=x.ab),I){case 0:case 1:T.b=v(F,3)+2,S=It(O(T.Ea,T.b),O(T.nc,T.b),0,x,T.K),T.K=T.K[0];break;case 3:var _,k=v(F,8)+1,L=16<k?0:4<k?1:2<k?2:3;if(b[0]=O(T.Ea,L),T.b=L,_=S=It(k,1,0,x,T.K)){var N,D=k,M=T,Q=1<<(8>>M.b),R=s(Q);if(null==R)_=0;else{var H=M.K[0],j=M.w;for(R[0]=M.K[0][0],N=1;N<1*D;++N)R[N]=U(H[j+N],R[N-1]);for(;N<4*Q;++N)R[N]=0;M.K[0]=null,M.K[0]=R,_=1}}S=_;break;case 2:break;default:e(0)}l=S}}if(u=u[0],d=d[0],l&&v(f,1)&&!(l=1<=(y=v(f,4))&&11>=y)){a.a=3;break t}var V;if(V=l)e:{var G,z,K,W=a,Y=u,X=d,q=y,$=i,J=W.m,Z=W.s,tt=[null],et=1,rt=0,it=$i[q];r:for(;;){if($&&v(J,1)){var nt=v(J,3)+2,st=O(Y,nt),ot=O(X,nt),at=st*ot;if(!It(st,ot,0,W,tt))break r;for(tt=tt[0],Z.xc=nt,G=0;G<at;++G){var At=tt[G]>>8&65535;tt[G]=At,At>=et&&(et=At+1)}}if(J.h)break r;for(z=0;5>z;++z){var lt=Wi[z];!z&&0<q&&(lt+=1<<q),rt<lt&&(rt=lt)}var ht=o(et*it,c),ct=et,ut=o(ct,p);if(null==ut)var pt=null;else e(65536>=ct),pt=ut;var dt=s(rt);if(null==pt||null==dt||null==ht){W.a=1;break r}var ft=ht;for(G=K=0;G<et;++G){var gt=pt[G],mt=gt.G,yt=gt.H,bt=0,wt=1,Bt=0;for(z=0;5>z;++z){lt=Wi[z],mt[z]=ft,yt[z]=K,!z&&0<q&&(lt+=1<<q);i:{var xt,Ct=lt,Et=W,Tt=dt,_t=ft,kt=K,Lt=0,Pt=Et.m,Nt=v(Pt,1);if(n(Tt,0,0,Ct),Nt){var Dt=v(Pt,1)+1,Mt=v(Pt,1),Ot=v(Pt,0==Mt?1:8);Tt[Ot]=1,2==Dt&&(Tt[Ot=v(Pt,8)]=1);var Ut=1}else{var Qt=s(19),Rt=v(Pt,4)+4;if(19<Rt){Et.a=3;var Ht=0;break i}for(xt=0;xt<Rt;++xt)Qt[Xi[xt]]=v(Pt,3);var jt=void 0,Vt=void 0,Gt=Et,zt=Qt,Kt=Ct,Wt=Tt,Yt=0,Xt=Gt.m,qt=8,$t=o(128,c);n:for(;h($t,0,7,zt,19);){if(v(Xt,1)){var Jt=2+2*v(Xt,3);if((jt=2+v(Xt,Jt))>Kt)break n}else jt=Kt;for(Vt=0;Vt<Kt&&jt--;){E(Xt);var Zt=$t[0+(127&B(Xt))];C(Xt,Xt.u+Zt.g);var te=Zt.value;if(16>te)Wt[Vt++]=te,0!=te&&(qt=te);else{var ee=16==te,re=te-16,ie=Ki[re],ne=v(Xt,zi[re])+ie;if(Vt+ne>Kt)break n;for(var se=ee?qt:0;0<ne--;)Wt[Vt++]=se}}Yt=1;break n}Yt||(Gt.a=3),Ut=Yt}(Ut=Ut&&!Pt.h)&&(Lt=h(_t,kt,8,Tt,Ct)),Ut&&0!=Lt?Ht=Lt:(Et.a=3,Ht=0)}if(0==Ht)break r;if(wt&&1==Yi[z]&&(wt=0==ft[K].g),bt+=ft[K].g,K+=Ht,3>=z){var oe,ae=dt[0];for(oe=1;oe<lt;++oe)dt[oe]>ae&&(ae=dt[oe]);Bt+=ae}}if(gt.nd=wt,gt.Qb=0,wt&&(gt.qb=(mt[3][yt[3]+0].value<<24|mt[1][yt[1]+0].value<<16|mt[2][yt[2]+0].value)>>>0,0==bt&&256>mt[0][yt[0]+0].value&&(gt.Qb=1,gt.qb+=mt[0][yt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>Bt,gt.jc){var Ae,le=gt;for(Ae=0;Ae<Or;++Ae){var he=Ae,ce=le.pd[he],ue=le.G[0][le.H[0]+he];256<=ue.value?(ce.g=ue.g+256,ce.value=ue.value):(ce.g=0,ce.value=0,he>>=vt(ue,8,ce),he>>=vt(le.G[1][le.H[1]+he],16,ce),he>>=vt(le.G[2][le.H[2]+he],0,ce),vt(le.G[3][le.H[3]+he],24,ce))}}}Z.vc=tt,Z.Wb=et,Z.Ya=pt,Z.yc=ht,V=1;break e}V=0}if(!(l=V)){a.a=3;break t}if(0<y){if(g.ua=1<<y,!P(g.Wa,y)){a.a=1,l=0;break t}}else g.ua=0;var pe=a,de=u,fe=d,ge=pe.s,me=ge.xc;if(pe.c=de,pe.i=fe,ge.md=O(de,me),ge.wc=0==me?-1:(1<<me)-1,i){a.xb=pn;break t}if(null==(m=s(u*d))){a.a=1,l=0;break t}l=(l=St(a,m,0,u,d,d,null))&&!f.h;break t}return l?(null!=A?A[0]=m:(e(null==m),e(i)),a.$=0,i||Ft(g)):Ft(g),l}function _t(t,r){var i=t.c*t.i,n=i+r+16*r;return e(t.c<=r),t.V=s(n),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+i+r,1)}function kt(t,r){var i=t.C,n=r-i,s=t.V,o=t.Ba+t.c*i;for(e(r<=t.l.o);0<n;){var a=16<n?16:n,A=t.l.ma,l=t.l.width,h=l*a,c=A.ca,u=A.tb+l*i,p=t.Ta,d=t.Ua;wt(t,a,s,o),Ci(p,d,c,u,h),Ct(A,i,i+a,c,u,l),n-=a,s+=a*t.c,i+=a}e(i==r),t.C=t.Ma=r}function Lt(){this.ub=this.yd=this.td=this.Rb=0}function Pt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Nt(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Dt(){this.Yb=function(){var t=[];return function t(e,r,i){for(var n=i[r],s=0;s<n&&(e.push(i.length>r+1?[]:0),!(i.length<r+1));s++)t(e[s],r+1,i)}(t,0,[3,11]),t}()}function Mt(){this.jb=s(3),this.Wc=a([4,8],Dt),this.Xc=a([4,17],Dt)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Ut(){this.ld=this.La=this.dd=this.tc=0}function Qt(){this.Na=this.la=0}function Rt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ht(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function jt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ut),this.Y=0,this.ya=Array(new Ht),this.aa=0,this.l=new Kt}function Vt(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Gt(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Lt,this.Kc=new Pt,this.ed=new Ot,this.Qa=new Nt,this.Ic=this.$c=this.Aa=0,this.D=new jt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,Rt),this.Pa=new Mt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Vt),this.Hd=0,this.rb=Array(new Qt),this.sb=0,this.wa=Array(new Ut),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 Ht),this.L=this.aa=0,this.gd=a([4,2],Ut),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 zt(t,e){return 0>t?0:t>e?e:t}function Kt(){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 Wt(){var t=new Gt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,en||(en=$t)),t}function Yt(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function Xt(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function qt(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return Yt(t,2,"null VP8Io passed to VP8GetHeaders()");var i=r.data,s=r.w,o=r.ha;if(4>o)return Yt(t,7,"Truncated header.");var a=i[s+0]|i[s+1]<<8|i[s+2]<<16,A=t.Od;if(A.Rb=!(1&a),A.td=a>>1&7,A.yd=a>>4&1,A.ub=a>>5,3<A.td)return Yt(t,3,"Incorrect keyframe parameters.");if(!A.yd)return Yt(t,4,"Frame not displayable.");s+=3,o-=3;var l=t.Kc;if(A.Rb){if(7>o)return Yt(t,7,"cannot parse picture header");if(!Xt(i,s,o))return Yt(t,3,"Bad code word");l.c=16383&(i[s+4]<<8|i[s+3]),l.Td=i[s+4]>>6,l.i=16383&(i[s+6]<<8|i[s+5]),l.Ud=i[s+6]>>6,s+=7,o-=7,t.za=l.c+15>>4,t.Ub=l.i+15>>4,r.width=l.c,r.height=l.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,n((a=t.Pa).jb,0,255,a.jb.length),e(null!=(a=t.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,n(a.Zb,0,0,a.Zb.length),n(a.Lb,0,0,a.Lb)}if(A.ub>o)return Yt(t,7,"bad partition length");d(a=t.m,i,s,A.ub),s+=A.ub,o-=A.ub,A.Rb&&(l.Ld=F(a),l.Kd=F(a)),l=t.Qa;var h,c=t.Pa;if(e(null!=a),e(null!=l),l.Cb=F(a),l.Cb){if(l.Bb=F(a),F(a)){for(l.Fb=F(a),h=0;4>h;++h)l.Zb[h]=F(a)?g(a,7):0;for(h=0;4>h;++h)l.Lb[h]=F(a)?g(a,6):0}if(l.Bb)for(h=0;3>h;++h)c.jb[h]=F(a)?f(a,8):255}else l.Bb=0;if(a.Ka)return Yt(t,3,"cannot parse segment header");if((l=t.ed).zd=F(a),l.Tb=f(a,6),l.wb=f(a,3),l.Pc=F(a),l.Pc&&F(a)){for(c=0;4>c;++c)F(a)&&(l.vd[c]=g(a,6));for(c=0;4>c;++c)F(a)&&(l.od[c]=g(a,6))}if(t.L=0==l.Tb?0:l.zd?1:2,a.Ka)return Yt(t,3,"cannot parse filter header");var u=o;if(o=h=s,s=h+u,l=u,t.Xb=(1<<f(t.m,2))-1,u<3*(c=t.Xb))i=7;else{for(h+=3*c,l-=3*c,u=0;u<c;++u){var p=i[o+0]|i[o+1]<<8|i[o+2]<<16;p>l&&(p=l),d(t.Jc[+u],i,h,p),h+=p,l-=p,o+=3}d(t.Jc[+c],i,h,l),i=h<s?0:5}if(0!=i)return Yt(t,i,"cannot parse partitions");for(i=f(h=t.m,7),o=F(h)?g(h,4):0,s=F(h)?g(h,4):0,l=F(h)?g(h,4):0,c=F(h)?g(h,4):0,h=F(h)?g(h,4):0,u=t.Qa,p=0;4>p;++p){if(u.Cb){var m=u.Zb[p];u.Fb||(m+=i)}else{if(0<p){t.pb[p]=t.pb[0];continue}m=i}var y=t.pb[p];y.Sc[0]=Zi[zt(m+o,127)],y.Sc[1]=tn[zt(m+0,127)],y.Eb[0]=2*Zi[zt(m+s,127)],y.Eb[1]=101581*tn[zt(m+l,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=Zi[zt(m+c,117)],y.Qc[1]=tn[zt(m+h,127)],y.lc=m+h}if(!A.Rb)return Yt(t,4,"Not a key frame.");for(F(a),A=t.Pa,i=0;4>i;++i){for(o=0;8>o;++o)for(s=0;3>s;++s)for(l=0;11>l;++l)c=T(a,An[i][o][s][l])?f(a,8):on[i][o][s][l],A.Wc[i][o].Yb[s][l]=c;for(o=0;17>o;++o)A.Xc[i][o]=A.Wc[i][ln[o]]}return t.kc=F(a),t.kc&&(t.Bd=f(a,8)),t.cb=1}function $t(t,e,r,i,n,s,o){var a=e[n].Yb[r];for(r=0;16>n;++n){if(!T(t,a[r+0]))return n;for(;!T(t,a[r+1]);)if(a=e[++n].Yb[0],r=0,16==n)return 16;var A=e[n+1].Yb;if(T(t,a[r+2])){var l=t,h=0;if(T(l,(u=a)[(c=r)+3]))if(T(l,u[c+6])){for(a=0,c=2*(h=T(l,u[c+8]))+(u=T(l,u[c+9+h])),h=0,u=rn[c];u[a];++a)h+=h+T(l,u[a]);h+=3+(8<<c)}else T(l,u[c+7])?(h=7+2*T(l,165),h+=T(l,145)):h=5+T(l,159);else h=T(l,u[c+4])?3+T(l,u[c+5]):2;a=A[2]}else h=1,a=A[1];A=o+nn[n],0>(l=t).b&&S(l);var c,u=l.b,p=(c=l.Ca>>1)-(l.I>>u)>>31;--l.b,l.Ca+=p,l.Ca|=1,l.I-=(c+1&p)<<u,s[A]=((h^p)-p)*i[(0<n)+0]}return 16}function Jt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,n(t.zc,0,0,t.zc.length),t.ja=0}function Zt(t,e,r,i,n){n=t[e+r+32*i]+(n>>3),t[e+r+32*i]=-256&n?0>n?0:255:n}function te(t,e,r,i,n,s){Zt(t,e,0,r,i+n),Zt(t,e,1,r,i+s),Zt(t,e,2,r,i-s),Zt(t,e,3,r,i-n)}function ee(t){return(20091*t>>16)+t}function re(t,e,r,i){var n,o=0,a=s(16);for(n=0;4>n;++n){var A=t[e+0]+t[e+8],l=t[e+0]-t[e+8],h=(35468*t[e+4]>>16)-ee(t[e+12]),c=ee(t[e+4])+(35468*t[e+12]>>16);a[o+0]=A+c,a[o+1]=l+h,a[o+2]=l-h,a[o+3]=A-c,o+=4,e++}for(n=o=0;4>n;++n)A=(t=a[o+0]+4)+a[o+8],l=t-a[o+8],h=(35468*a[o+4]>>16)-ee(a[o+12]),Zt(r,i,0,0,A+(c=ee(a[o+4])+(35468*a[o+12]>>16))),Zt(r,i,1,0,l+h),Zt(r,i,2,0,l-h),Zt(r,i,3,0,A-c),o++,i+=32}function ie(t,e,r,i){var n=t[e+0]+4,s=35468*t[e+4]>>16,o=ee(t[e+4]),a=35468*t[e+1]>>16;te(r,i,0,n+o,t=ee(t[e+1]),a),te(r,i,1,n+s,t,a),te(r,i,2,n-s,t,a),te(r,i,3,n-o,t,a)}function ne(t,e,r,i,n){re(t,e,r,i),n&&re(t,e+16,r,i+4)}function se(t,e,r,i){ni(t,e+0,r,i,1),ni(t,e+32,r,i+128,1)}function oe(t,e,r,i){var n;for(t=t[e+0]+4,n=0;4>n;++n)for(e=0;4>e;++e)Zt(r,i,e,n,t)}function ae(t,e,r,i){t[e+0]&&ai(t,e+0,r,i),t[e+16]&&ai(t,e+16,r,i+4),t[e+32]&&ai(t,e+32,r,i+128),t[e+48]&&ai(t,e+48,r,i+128+4)}function Ae(t,e,r,i){var n,o=s(16);for(n=0;4>n;++n){var a=t[e+0+n]+t[e+12+n],A=t[e+4+n]+t[e+8+n],l=t[e+4+n]-t[e+8+n],h=t[e+0+n]-t[e+12+n];o[0+n]=a+A,o[8+n]=a-A,o[4+n]=h+l,o[12+n]=h-l}for(n=0;4>n;++n)a=(t=o[0+4*n]+3)+o[3+4*n],A=o[1+4*n]+o[2+4*n],l=o[1+4*n]-o[2+4*n],h=t-o[3+4*n],r[i+0]=a+A>>3,r[i+16]=h+l>>3,r[i+32]=a-A>>3,r[i+48]=h-l>>3,i+=64}function le(t,e,r){var i,n=e-32,s=Li,o=255-t[n-1];for(i=0;i<r;++i){var a,A=s,l=o+t[e-1];for(a=0;a<r;++a)t[e+a]=A[l+t[n+a]];e+=32}}function he(t,e){le(t,e,4)}function ce(t,e){le(t,e,8)}function ue(t,e){le(t,e,16)}function pe(t,e){var r;for(r=0;16>r;++r)i(t,e+32*r,t,e-32,16)}function de(t,e){var r;for(r=16;0<r;--r)n(t,e,t[e-1],16),e+=32}function fe(t,e,r){var i;for(i=0;16>i;++i)n(e,r+32*i,t,16)}function ge(t,e){var r,i=16;for(r=0;16>r;++r)i+=t[e-1+32*r]+t[e+r-32];fe(i>>5,t,e)}function me(t,e){var r,i=8;for(r=0;16>r;++r)i+=t[e-1+32*r];fe(i>>4,t,e)}function ye(t,e){var r,i=8;for(r=0;16>r;++r)i+=t[e+r-32];fe(i>>4,t,e)}function ve(t,e){fe(128,t,e)}function be(t,e,r){return t+2*e+r+2>>2}function we(t,e){var r,n=e-32;for(n=new Uint8Array([be(t[n-1],t[n+0],t[n+1]),be(t[n+0],t[n+1],t[n+2]),be(t[n+1],t[n+2],t[n+3]),be(t[n+2],t[n+3],t[n+4])]),r=0;4>r;++r)i(t,e+32*r,n,0,n.length)}function Be(t,e){var r=t[e-1],i=t[e-1+32],n=t[e-1+64],s=t[e-1+96];I(t,e+0,16843009*be(t[e-1-32],r,i)),I(t,e+32,16843009*be(r,i,n)),I(t,e+64,16843009*be(i,n,s)),I(t,e+96,16843009*be(n,s,s))}function xe(t,e){var r,i=4;for(r=0;4>r;++r)i+=t[e+r-32]+t[e-1+32*r];for(i>>=3,r=0;4>r;++r)n(t,e+32*r,i,4)}function Ce(t,e){var r=t[e-1+0],i=t[e-1+32],n=t[e-1+64],s=t[e-1-32],o=t[e+0-32],a=t[e+1-32],A=t[e+2-32],l=t[e+3-32];t[e+0+96]=be(i,n,t[e-1+96]),t[e+1+96]=t[e+0+64]=be(r,i,n),t[e+2+96]=t[e+1+64]=t[e+0+32]=be(s,r,i),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=be(o,s,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=be(a,o,s),t[e+3+32]=t[e+2+0]=be(A,a,o),t[e+3+0]=be(l,A,a)}function Ee(t,e){var r=t[e+1-32],i=t[e+2-32],n=t[e+3-32],s=t[e+4-32],o=t[e+5-32],a=t[e+6-32],A=t[e+7-32];t[e+0+0]=be(t[e+0-32],r,i),t[e+1+0]=t[e+0+32]=be(r,i,n),t[e+2+0]=t[e+1+32]=t[e+0+64]=be(i,n,s),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=be(n,s,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=be(s,o,a),t[e+3+64]=t[e+2+96]=be(o,a,A),t[e+3+96]=be(a,A,A)}function Se(t,e){var r=t[e-1+0],i=t[e-1+32],n=t[e-1+64],s=t[e-1-32],o=t[e+0-32],a=t[e+1-32],A=t[e+2-32],l=t[e+3-32];t[e+0+0]=t[e+1+64]=s+o+1>>1,t[e+1+0]=t[e+2+64]=o+a+1>>1,t[e+2+0]=t[e+3+64]=a+A+1>>1,t[e+3+0]=A+l+1>>1,t[e+0+96]=be(n,i,r),t[e+0+64]=be(i,r,s),t[e+0+32]=t[e+1+96]=be(r,s,o),t[e+1+32]=t[e+2+96]=be(s,o,a),t[e+2+32]=t[e+3+96]=be(o,a,A),t[e+3+32]=be(a,A,l)}function Fe(t,e){var r=t[e+0-32],i=t[e+1-32],n=t[e+2-32],s=t[e+3-32],o=t[e+4-32],a=t[e+5-32],A=t[e+6-32],l=t[e+7-32];t[e+0+0]=r+i+1>>1,t[e+1+0]=t[e+0+64]=i+n+1>>1,t[e+2+0]=t[e+1+64]=n+s+1>>1,t[e+3+0]=t[e+2+64]=s+o+1>>1,t[e+0+32]=be(r,i,n),t[e+1+32]=t[e+0+96]=be(i,n,s),t[e+2+32]=t[e+1+96]=be(n,s,o),t[e+3+32]=t[e+2+96]=be(s,o,a),t[e+3+64]=be(o,a,A),t[e+3+96]=be(a,A,l)}function Te(t,e){var r=t[e-1+0],i=t[e-1+32],n=t[e-1+64],s=t[e-1+96];t[e+0+0]=r+i+1>>1,t[e+2+0]=t[e+0+32]=i+n+1>>1,t[e+2+32]=t[e+0+64]=n+s+1>>1,t[e+1+0]=be(r,i,n),t[e+3+0]=t[e+1+32]=be(i,n,s),t[e+3+32]=t[e+1+64]=be(n,s,s),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=s}function Ie(t,e){var r=t[e-1+0],i=t[e-1+32],n=t[e-1+64],s=t[e-1+96],o=t[e-1-32],a=t[e+0-32],A=t[e+1-32],l=t[e+2-32];t[e+0+0]=t[e+2+32]=r+o+1>>1,t[e+0+32]=t[e+2+64]=i+r+1>>1,t[e+0+64]=t[e+2+96]=n+i+1>>1,t[e+0+96]=s+n+1>>1,t[e+3+0]=be(a,A,l),t[e+2+0]=be(o,a,A),t[e+1+0]=t[e+3+32]=be(r,o,a),t[e+1+32]=t[e+3+64]=be(i,r,o),t[e+1+64]=t[e+3+96]=be(n,i,r),t[e+1+96]=be(s,n,i)}function _e(t,e){var r;for(r=0;8>r;++r)i(t,e+32*r,t,e-32,8)}function ke(t,e){var r;for(r=0;8>r;++r)n(t,e,t[e-1],8),e+=32}function Le(t,e,r){var i;for(i=0;8>i;++i)n(e,r+32*i,t,8)}function Pe(t,e){var r,i=8;for(r=0;8>r;++r)i+=t[e+r-32]+t[e-1+32*r];Le(i>>4,t,e)}function Ne(t,e){var r,i=4;for(r=0;8>r;++r)i+=t[e+r-32];Le(i>>3,t,e)}function De(t,e){var r,i=4;for(r=0;8>r;++r)i+=t[e-1+32*r];Le(i>>3,t,e)}function Me(t,e){Le(128,t,e)}function Oe(t,e,r){var i=t[e-r],n=t[e+0],s=3*(n-i)+_i[1020+t[e-2*r]-t[e+r]],o=ki[112+(s+4>>3)];t[e-r]=Li[255+i+ki[112+(s+3>>3)]],t[e+0]=Li[255+n-o]}function Ue(t,e,r,i){var n=t[e+0],s=t[e+r];return Pi[255+t[e-2*r]-t[e-r]]>i||Pi[255+s-n]>i}function Qe(t,e,r,i){return 4*Pi[255+t[e-r]-t[e+0]]+Pi[255+t[e-2*r]-t[e+r]]<=i}function Re(t,e,r,i,n){var s=t[e-3*r],o=t[e-2*r],a=t[e-r],A=t[e+0],l=t[e+r],h=t[e+2*r],c=t[e+3*r];return 4*Pi[255+a-A]+Pi[255+o-l]>i?0:Pi[255+t[e-4*r]-s]<=n&&Pi[255+s-o]<=n&&Pi[255+o-a]<=n&&Pi[255+c-h]<=n&&Pi[255+h-l]<=n&&Pi[255+l-A]<=n}function He(t,e,r,i){var n=2*i+1;for(i=0;16>i;++i)Qe(t,e+i,r,n)&&Oe(t,e+i,r)}function je(t,e,r,i){var n=2*i+1;for(i=0;16>i;++i)Qe(t,e+i*r,1,n)&&Oe(t,e+i*r,1)}function Ve(t,e,r,i){var n;for(n=3;0<n;--n)He(t,e+=4*r,r,i)}function Ge(t,e,r,i){var n;for(n=3;0<n;--n)je(t,e+=4,r,i)}function ze(t,e,r,i,n,s,o,a){for(s=2*s+1;0<n--;){if(Re(t,e,r,s,o))if(Ue(t,e,r,a))Oe(t,e,r);else{var A=t,l=e,h=r,c=A[l-2*h],u=A[l-h],p=A[l+0],d=A[l+h],f=A[l+2*h],g=27*(y=_i[1020+3*(p-u)+_i[1020+c-d]])+63>>7,m=18*y+63>>7,y=9*y+63>>7;A[l-3*h]=Li[255+A[l-3*h]+y],A[l-2*h]=Li[255+c+m],A[l-h]=Li[255+u+g],A[l+0]=Li[255+p-g],A[l+h]=Li[255+d-m],A[l+2*h]=Li[255+f-y]}e+=i}}function Ke(t,e,r,i,n,s,o,a){for(s=2*s+1;0<n--;){if(Re(t,e,r,s,o))if(Ue(t,e,r,a))Oe(t,e,r);else{var A=t,l=e,h=r,c=A[l-h],u=A[l+0],p=A[l+h],d=ki[112+(4+(f=3*(u-c))>>3)],f=ki[112+(f+3>>3)],g=d+1>>1;A[l-2*h]=Li[255+A[l-2*h]+g],A[l-h]=Li[255+c+f],A[l+0]=Li[255+u-d],A[l+h]=Li[255+p-g]}e+=i}}function We(t,e,r,i,n,s){ze(t,e,r,1,16,i,n,s)}function Ye(t,e,r,i,n,s){ze(t,e,1,r,16,i,n,s)}function Xe(t,e,r,i,n,s){var o;for(o=3;0<o;--o)Ke(t,e+=4*r,r,1,16,i,n,s)}function qe(t,e,r,i,n,s){var o;for(o=3;0<o;--o)Ke(t,e+=4,1,r,16,i,n,s)}function $e(t,e,r,i,n,s,o,a){ze(t,e,n,1,8,s,o,a),ze(r,i,n,1,8,s,o,a)}function Je(t,e,r,i,n,s,o,a){ze(t,e,1,n,8,s,o,a),ze(r,i,1,n,8,s,o,a)}function Ze(t,e,r,i,n,s,o,a){Ke(t,e+4*n,n,1,8,s,o,a),Ke(r,i+4*n,n,1,8,s,o,a)}function tr(t,e,r,i,n,s,o,a){Ke(t,e+4,1,n,8,s,o,a),Ke(r,i+4,1,n,8,s,o,a)}function er(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new At,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rr(){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 ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function nr(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new c}function sr(){this.xb=this.a=0,this.l=new Kt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new nr,this.ab=0,this.gc=o(4,ir),this.Oc=0}function or(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Kt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ar(t,e,r,i,n,s,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)n[s+e]=t+r[i+e]&255,t=n[s+e]}function Ar(t,e,r,i,n,s,o){var a;if(null==t)ar(null,null,r,i,n,s,o);else for(a=0;a<o;++a)n[s+a]=t[e+a]+r[i+a]&255}function lr(t,e,r,i,n,s,o){if(null==t)ar(null,null,r,i,n,s,o);else{var a,A=t[e+0],l=A,h=A;for(a=0;a<o;++a)l=h+(A=t[e+a])-l,h=r[i+a]+(-256&l?0>l?0:255:l)&255,l=A,n[s+a]=h}}function hr(t,r,n,o){var a=r.width,A=r.o;if(e(null!=t&&null!=r),0>n||0>=o||n+o>A)return null;if(!t.Cc){if(null==t.ga){var l;if(t.ga=new or,(l=null==t.ga)||(l=r.width*r.o,e(0==t.Gb.length),t.Gb=s(l),t.Uc=0,null==t.Gb?l=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,l=1),l=!l),!l){l=t.ga;var h=t.Fa,c=t.P,u=t.qc,p=t.mb,d=t.nb,f=c+1,g=u-1,y=l.l;if(e(null!=h&&null!=p&&null!=r),fn[0]=null,fn[1]=ar,fn[2]=Ar,fn[3]=lr,l.ca=p,l.tb=d,l.c=r.width,l.i=r.height,e(0<l.c&&0<l.i),1>=u)r=0;else if(l.$a=3&h[c+0],l.Z=h[c+0]>>2&3,l.Lc=h[c+0]>>4&3,c=h[c+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||c)r=0;else if(y.put=pt,y.ac=ut,y.bc=dt,y.ma=l,y.width=r.width,y.height=r.height,y.Da=r.Da,y.v=r.v,y.va=r.va,y.j=r.j,y.o=r.o,l.$a)t:{e(1==l.$a),r=Tt();e:for(;;){if(null==r){r=0;break t}if(e(null!=l),l.mc=r,r.c=l.c,r.i=l.i,r.l=l.l,r.l.ma=l,r.l.width=l.c,r.l.height=l.i,r.a=0,m(r.m,h,f,g),!It(l.c,l.i,1,r,null))break e;if(1==r.ab&&3==r.gc[0].hc&&xt(r.s)?(l.ic=1,h=r.c*r.i,r.Ta=null,r.Ua=0,r.V=s(h),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(l.ic=0,r=_t(r,l.c)),!r)break e;r=1;break t}l.mc=null,r=0}else r=g>=l.c*l.i;l=!r}if(l)return null;1!=t.ga.Lc?t.Ga=0:o=A-n}e(null!=t.ga),e(n+o<=A);t:{if(r=(h=t.ga).c,A=h.l.o,0==h.$a){if(f=t.rc,g=t.Vc,y=t.Fa,c=t.P+1+n*r,u=t.mb,p=t.nb+n*r,e(c<=t.P+t.qc),0!=h.Z)for(e(null!=fn[h.Z]),l=0;l<o;++l)fn[h.Z](f,g,y,c,u,p,r),f=u,g=p,p+=r,c+=r;else for(l=0;l<o;++l)i(u,p,y,c,r),f=u,g=p,p+=r,c+=r;t.rc=f,t.Vc=g}else{if(e(null!=h.mc),r=n+o,e(null!=(l=h.mc)),e(r<=l.i),l.C>=r)r=1;else if(h.ic||fr(),h.ic){h=l.V,f=l.Ba,g=l.c;var v=l.i,b=(y=1,c=l.$/g,u=l.$%g,p=l.m,d=l.s,l.$),w=g*v,B=g*r,C=d.wc,S=b<B?bt(d,u,c):null;e(b<=w),e(r<=v),e(xt(d));e:for(;;){for(;!p.h&&b<B;){if(u&C||(S=bt(d,u,c)),e(null!=S),E(p),256>(v=yt(S.G[0],S.H[0],p)))h[f+b]=v,++b,++u>=g&&(u=0,++c<=r&&!(c%16)&&Et(l,c));else{if(!(280>v)){y=0;break e}v=gt(v-256,p);var F,T=yt(S.G[4],S.H[4],p);if(E(p),!(b>=(T=mt(g,T=gt(T,p)))&&w-b>=v)){y=0;break e}for(F=0;F<v;++F)h[f+b+F]=h[f+b+F-T];for(b+=v,u+=v;u>=g;)u-=g,++c<=r&&!(c%16)&&Et(l,c);b<B&&u&C&&(S=bt(d,u,c))}e(p.h==x(p))}Et(l,c>r?r:c);break e}!y||p.h&&b<w?(y=0,l.a=p.h?5:3):l.$=b,r=y}else r=St(l,l.V,l.Ba,l.c,l.i,r,kt);if(!r){o=0;break t}}n+o>=A&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+n*a}function cr(t,e,r,i,n,s){for(;0<n--;){var o,a=t,A=e+(r?1:0),l=t,h=e+(r?0:3);for(o=0;o<i;++o){var c=l[h+4*o];255!=c&&(c*=32897,a[A+4*o+0]=a[A+4*o+0]*c>>23,a[A+4*o+1]=a[A+4*o+1]*c>>23,a[A+4*o+2]=a[A+4*o+2]*c>>23)}e+=s}}function ur(t,e,r,i,n){for(;0<i--;){var s;for(s=0;s<r;++s){var o=t[e+2*s+0],a=15&(l=t[e+2*s+1]),A=4369*a,l=(240&l|l>>4)*A>>16;t[e+2*s+0]=(240&o|o>>4)*A>>16&240|(15&o|o<<4)*A>>16>>4&15,t[e+2*s+1]=240&l|a}e+=n}}function pr(t,e,r,i,n,s,o,a){var A,l,h=255;for(l=0;l<n;++l){for(A=0;A<i;++A){var c=t[e+A];s[o+4*A]=c,h&=c}e+=r,o+=a}return 255!=h}function dr(t,e,r,i,n){var s;for(s=0;s<n;++s)r[i+s]=t[e+s]>>8}function fr(){wi=cr,Bi=ur,xi=pr,Ci=dr}function gr(r,i,n){t[r]=function(t,r,s,o,a,A,l,h,c,u,p,d,f,g,m,y,v){var b,w=v-1>>1,B=a[A+0]|l[h+0]<<16,x=c[u+0]|p[d+0]<<16;e(null!=t);var C=3*B+x+131074>>2;for(i(t[r+0],255&C,C>>16,f,g),null!=s&&(C=3*x+B+131074>>2,i(s[o+0],255&C,C>>16,m,y)),b=1;b<=w;++b){var E=a[A+b]|l[h+b]<<16,S=c[u+b]|p[d+b]<<16,F=B+E+x+S+524296,T=F+2*(E+x)>>3;C=T+B>>1,B=(F=F+2*(B+S)>>3)+E>>1,i(t[r+2*b-1],255&C,C>>16,f,g+(2*b-1)*n),i(t[r+2*b-0],255&B,B>>16,f,g+(2*b-0)*n),null!=s&&(C=F+x>>1,B=T+S>>1,i(s[o+2*b-1],255&C,C>>16,m,y+(2*b-1)*n),i(s[o+2*b+0],255&B,B>>16,m,y+(2*b+0)*n)),B=E,x=S}1&v||(C=3*B+x+131074>>2,i(t[r+v-1],255&C,C>>16,f,g+(v-1)*n),null!=s&&(C=3*x+B+131074>>2,i(s[o+v-1],255&C,C>>16,m,y+(v-1)*n)))}}function mr(){gn[Ni]=mn,gn[Di]=vn,gn[Mi]=yn,gn[Oi]=bn,gn[Ui]=wn,gn[Qi]=Bn,gn[Ri]=xn,gn[Hi]=vn,gn[ji]=bn,gn[Vi]=wn,gn[Gi]=Bn}function yr(t){return t&~In?0>t?0:255:t>>Tn}function vr(t,e){return yr((19077*t>>8)+(26149*e>>8)-14234)}function br(t,e,r){return yr((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function wr(t,e){return yr((19077*t>>8)+(33050*e>>8)-17685)}function Br(t,e,r,i,n){i[n+0]=vr(t,r),i[n+1]=br(t,e,r),i[n+2]=wr(t,e)}function xr(t,e,r,i,n){i[n+0]=wr(t,e),i[n+1]=br(t,e,r),i[n+2]=vr(t,r)}function Cr(t,e,r,i,n){var s=br(t,e,r);e=s<<3&224|wr(t,e)>>3,i[n+0]=248&vr(t,r)|s>>5,i[n+1]=e}function Er(t,e,r,i,n){var s=240&wr(t,e)|15;i[n+0]=240&vr(t,r)|br(t,e,r)>>4,i[n+1]=s}function Sr(t,e,r,i,n){i[n+0]=255,Br(t,e,r,i,n+1)}function Fr(t,e,r,i,n){xr(t,e,r,i,n),i[n+3]=255}function Tr(t,e,r,i,n){Br(t,e,r,i,n),i[n+3]=255}function Ir(e,r,i){t[e]=function(t,e,n,s,o,a,A,l,h){for(var c=l+(-2&h)*i;l!=c;)r(t[e+0],n[s+0],o[a+0],A,l),r(t[e+1],n[s+0],o[a+0],A,l+i),e+=2,++s,++a,l+=2*i;1&h&&r(t[e+0],n[s+0],o[a+0],A,l)}}function _r(t,e,r){return 0==r?0==t?0==e?6:5:0==e?4:0:r}function kr(t,e,r,i,n){switch(t>>>30){case 3:ni(e,r,i,n,0);break;case 2:si(e,r,i,n);break;case 1:ai(e,r,i,n)}}function Lr(t,e){var r,s,o=e.M,a=e.Nb,A=t.oc,l=t.pc+40,h=t.oc,c=t.pc+584,u=t.oc,p=t.pc+600;for(r=0;16>r;++r)A[l+32*r-1]=129;for(r=0;8>r;++r)h[c+32*r-1]=129,u[p+32*r-1]=129;for(0<o?A[l-1-32]=h[c-1-32]=u[p-1-32]=129:(n(A,l-32-1,127,21),n(h,c-32-1,127,9),n(u,p-32-1,127,9)),s=0;s<t.za;++s){var d=e.ya[e.aa+s];if(0<s){for(r=-1;16>r;++r)i(A,l+32*r-4,A,l+32*r+12,4);for(r=-1;8>r;++r)i(h,c+32*r-4,h,c+32*r+4,4),i(u,p+32*r-4,u,p+32*r+4,4)}var f=t.Gd,g=t.Hd+s,m=d.ad,y=d.Hc;if(0<o&&(i(A,l-32,f[g].y,0,16),i(h,c-32,f[g].f,0,8),i(u,p-32,f[g].ea,0,8)),d.Za){var v=A,b=l-32+16;for(0<o&&(s>=t.za-1?n(v,b,f[g].y[15],4):i(v,b,f[g+1].y,0,4)),r=0;4>r;r++)v[b+128+r]=v[b+256+r]=v[b+384+r]=v[b+0+r];for(r=0;16>r;++r,y<<=2)v=A,b=l+On[r],cn[d.Ob[r]](v,b),kr(y,m,16*+r,v,b)}else if(v=_r(s,o,d.Ob[0]),hn[v](A,l),0!=y)for(r=0;16>r;++r,y<<=2)kr(y,m,16*+r,A,l+On[r]);for(r=d.Gc,v=_r(s,o,d.Dd),un[v](h,c),un[v](u,p),y=m,v=h,b=c,255&(d=0|r)&&(170&d?oi(y,256,v,b):Ai(y,256,v,b)),d=u,y=p,255&(r>>=8)&&(170&r?oi(m,320,d,y):Ai(m,320,d,y)),o<t.Ub-1&&(i(f[g].y,0,A,l+480,16),i(f[g].f,0,h,c+224,8),i(f[g].ea,0,u,p+224,8)),r=8*a*t.B,f=t.sa,g=t.ta+16*s+16*a*t.R,m=t.qa,d=t.ra+8*s+r,y=t.Ha,v=t.Ia+8*s+r,r=0;16>r;++r)i(f,g+r*t.R,A,l+32*r,16);for(r=0;8>r;++r)i(m,d+r*t.B,h,c+32*r,8),i(y,v+r*t.B,u,p+32*r,8)}}function Pr(t,i,n,s,o,a,A,l,h){var c=[0],u=[0],p=0,d=null!=h?h.kd:0,f=null!=h?h:new rr;if(null==t||12>n)return 7;f.data=t,f.w=i,f.ha=n,i=[i],n=[n],f.gb=[f.gb];t:{var g=i,y=n,v=f.gb;if(e(null!=t),e(null!=y),e(null!=v),v[0]=0,12<=y[0]&&!r(t,g[0],"RIFF")){if(r(t,g[0]+8,"WEBP")){v=3;break t}var b=L(t,g[0]+4);if(12>b||4294967286<b){v=3;break t}if(d&&b>y[0]-8){v=7;break t}v[0]=b,g[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(b=0<f.gb[0],n=n[0];;){t:{var B=t;y=i,v=n;var x=c,C=u,E=g=[0];if((T=p=[p])[0]=0,8>v[0])v=7;else{if(!r(B,y[0],"VP8X")){if(10!=L(B,y[0]+4)){v=3;break t}if(18>v[0]){v=7;break t}var S=L(B,y[0]+8),F=1+k(B,y[0]+12);if(2147483648<=F*(B=1+k(B,y[0]+15))){v=3;break t}null!=E&&(E[0]=S),null!=x&&(x[0]=F),null!=C&&(C[0]=B),y[0]+=18,v[0]-=18,T[0]=1}v=0}}if(p=p[0],g=g[0],0!=v)return v;if(y=!!(2&g),!b&&p)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=A&&(A[0]=y),null!=l&&(l[0]=0),A=c[0],g=u[0],p&&y&&null==h){v=0;break}if(4>n){v=7;break}if(b&&p||!b&&!p&&!r(t,i[0],"ALPH")){n=[n],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];t:{S=t,v=i,b=n;var T=f.gb;x=f.na,C=f.P,E=f.Sa,F=22,e(null!=S),e(null!=b),B=v[0];var I=b[0];for(e(null!=x),e(null!=E),x[0]=null,C[0]=null,E[0]=0;;){if(v[0]=B,b[0]=I,8>I){v=7;break t}var _=L(S,B+4);if(4294967286<_){v=3;break t}var P=8+_+1&-2;if(F+=P,0<T&&F>T){v=3;break t}if(!r(S,B,"VP8 ")||!r(S,B,"VP8L")){v=0;break t}if(I[0]<P){v=7;break t}r(S,B,"ALPH")||(x[0]=S,C[0]=B+8,E[0]=_),B+=P,I-=P}}if(n=n[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=v)break}n=[n],f.Ja=[f.Ja],f.xa=[f.xa];t:if(T=t,v=i,b=n,x=f.gb[0],C=f.Ja,E=f.xa,S=v[0],B=!r(T,S,"VP8 "),F=!r(T,S,"VP8L"),e(null!=T),e(null!=b),e(null!=C),e(null!=E),8>b[0])v=7;else{if(B||F){if(T=L(T,S+4),12<=x&&T>x-12){v=3;break t}if(d&&T>b[0]-8){v=7;break t}C[0]=T,v[0]+=8,b[0]-=8,E[0]=F}else E[0]=5<=b[0]&&47==T[S+0]&&!(T[S+4]>>5),C[0]=b[0];v=0}if(n=n[0],f.Ja=f.Ja[0],f.xa=f.xa[0],i=i[0],0!=v)break;if(4294967286<f.Ja)return 3;if(null==l||y||(l[0]=f.xa?2:1),A=[A],g=[g],f.xa){if(5>n){v=7;break}l=A,d=g,y=a,null==t||5>n?t=0:5<=n&&47==t[i+0]&&!(t[i+4]>>5)?(b=[0],T=[0],x=[0],m(C=new w,t,i,n),ft(C,b,T,x)?(null!=l&&(l[0]=b[0]),null!=d&&(d[0]=T[0]),null!=y&&(y[0]=x[0]),t=1):t=0):t=0}else{if(10>n){v=7;break}l=g,null==t||10>n||!Xt(t,i+3,n-3)?t=0:(d=t[i+0]|t[i+1]<<8|t[i+2]<<16,y=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=f.Ja||!y||!t?t=0:(A&&(A[0]=y),l&&(l[0]=t),t=1))}if(!t)return 3;if(A=A[0],g=g[0],p&&(c[0]!=A||u[0]!=g))return 3;null!=h&&(h[0]=f,h.offset=i-h.w,e(4294967286>i-h.w),e(h.offset==h.ha-n));break}return 0==v||7==v&&p&&null==h?(null!=a&&(a[0]|=null!=f.na&&0<f.na.length),null!=s&&(s[0]=A),null!=o&&(o[0]=g),0):v}function Nr(t,e,r){var i=e.width,n=e.height,s=0,o=0,a=i,A=n;if(e.Da=null!=t&&0<t.Da,e.Da&&(a=t.cd,A=t.bd,s=t.v,o=t.j,11>r||(s&=-2,o&=-2),0>s||0>o||0>=a||0>=A||s+a>i||o+A>n))return 0;if(e.v=s,e.j=o,e.va=s+a,e.o=o+A,e.U=a,e.T=A,e.da=null!=t&&0<t.da,e.da){if(!M(a,A,r=[t.ib],s=[t.hb]))return 0;e.ib=r[0],e.hb=s[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*i/4&&e.hb<3*n/4,e.Kb=0),1}function Dr(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 Mr(t,e,r,i){if(null==i||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var n=r.cd,o=r.bd,a=-2&r.v,A=-2&r.j;if(0>a||0>A||0>=n||0>=o||a+n>t||A+o>e)return 2;t=n,e=o}if(r.da){if(!M(t,e,n=[r.ib],o=[r.hb]))return 2;t=n[0],e=o[0]}}i.width=t,i.height=e;t:{var l=i.width,h=i.height;if(t=i.S,0>=l||0>=h||!(t>=Ni&&13>t))t=2;else{if(0>=i.Rd&&null==i.sd){a=o=n=e=0;var c=(A=l*Rn[t])*h;if(11>t||(o=(h+1)/2*(e=(l+1)/2),12==t&&(a=(n=l)*h)),null==(h=s(c+2*o+a))){t=1;break t}i.sd=h,11>t?((l=i.f.RGBA).eb=h,l.fb=0,l.A=A,l.size=c):((l=i.f.kb).y=h,l.O=0,l.fa=A,l.Fd=c,l.f=h,l.N=0+c,l.Ab=e,l.Cd=o,l.ea=h,l.W=0+c+o,l.Db=e,l.Ed=o,12==t&&(l.F=h,l.J=0+c+2*o),l.Tc=a,l.lb=n)}if(e=1,n=i.S,o=i.width,a=i.height,n>=Ni&&13>n)if(11>n)t=i.f.RGBA,e&=(A=Math.abs(t.A))*(a-1)+o<=t.size,e&=A>=o*Rn[n],e&=null!=t.eb;else{t=i.f.kb,A=(o+1)/2,c=(a+1)/2,l=Math.abs(t.fa),h=Math.abs(t.Ab);var u=Math.abs(t.Db),p=Math.abs(t.lb),d=p*(a-1)+o;e&=l*(a-1)+o<=t.Fd,e&=h*(c-1)+A<=t.Cd,e=(e&=u*(c-1)+A<=t.Ed)&l>=o&h>=A&u>=A,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==n&&(e&=p>=o,e&=d<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=r&&r.fd&&(t=Dr(i)),t}var Or=64,Ur=[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],Qr=24,Rr=32,Hr=8,jr=[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];Q("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return H(H(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return H(t,e[r-1])},t.Predictor7=function(t,e,r){return H(t,e[r+0])},t.Predictor8=function(t,e,r){return H(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return H(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return H(H(t,e[r-1]),H(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var i=e[r+0];return 0>=G(i>>24&255,t>>24&255,(e=e[r-1])>>24&255)+G(i>>16&255,t>>16&255,e>>16&255)+G(i>>8&255,t>>8&255,e>>8&255)+G(255&i,255&t,255&e)?i:t},t.Predictor12=function(t,e,r){var i=e[r+0];return(j((t>>24&255)+(i>>24&255)-((e=e[r-1])>>24&255))<<24|j((t>>16&255)+(i>>16&255)-(e>>16&255))<<16|j((t>>8&255)+(i>>8&255)-(e>>8&255))<<8|j((255&t)+(255&i)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var i=e[r-1];return(V((t=H(t,e[r+0]))>>24&255,i>>24&255)<<24|V(t>>16&255,i>>16&255)<<16|V(t>>8&255,i>>8&255)<<8|V(255&t,255&i))>>>0};var Vr=t.PredictorAdd0;t.PredictorAdd1=z,Q("Predictor2","PredictorAdd2"),Q("Predictor3","PredictorAdd3"),Q("Predictor4","PredictorAdd4"),Q("Predictor5","PredictorAdd5"),Q("Predictor6","PredictorAdd6"),Q("Predictor7","PredictorAdd7"),Q("Predictor8","PredictorAdd8"),Q("Predictor9","PredictorAdd9"),Q("Predictor10","PredictorAdd10"),Q("Predictor11","PredictorAdd11"),Q("Predictor12","PredictorAdd12"),Q("Predictor13","PredictorAdd13");var Gr=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var zr,Kr=t.ColorIndexInverseTransform,Wr=t.MapARGB,Yr=t.VP8LColorIndexInverseTransformAlpha,Xr=t.MapAlpha,qr=t.VP8LPredictorsAdd=[];qr.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $r,Jr,Zr,ti,ei,ri,ii,ni,si,oi,ai,Ai,li,hi,ci,ui,pi,di,fi,gi,mi,yi,vi,bi,wi,Bi,xi,Ci,Ei=s(511),Si=s(2041),Fi=s(225),Ti=s(767),Ii=0,_i=Si,ki=Fi,Li=Ti,Pi=Ei,Ni=0,Di=1,Mi=2,Oi=3,Ui=4,Qi=5,Ri=6,Hi=7,ji=8,Vi=9,Gi=10,zi=[2,3,7],Ki=[3,3,11],Wi=[280,256,256,256,40],Yi=[0,1,1,1,0],Xi=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],qi=[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],$i=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ji=8,Zi=[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],tn=[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],en=null,rn=[[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]],nn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],sn=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],on=[[[[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]]]],an=[[[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]]],An=[[[[255,255,255,255,255,255,255,255,255,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]]]],ln=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hn=[],cn=[],un=[],pn=1,dn=2,fn=[],gn=[];gr("UpsampleRgbLinePair",Br,3),gr("UpsampleBgrLinePair",xr,3),gr("UpsampleRgbaLinePair",Tr,4),gr("UpsampleBgraLinePair",Fr,4),gr("UpsampleArgbLinePair",Sr,4),gr("UpsampleRgba4444LinePair",Er,2),gr("UpsampleRgb565LinePair",Cr,2);var mn=t.UpsampleRgbLinePair,yn=t.UpsampleBgrLinePair,vn=t.UpsampleRgbaLinePair,bn=t.UpsampleBgraLinePair,wn=t.UpsampleArgbLinePair,Bn=t.UpsampleRgba4444LinePair,xn=t.UpsampleRgb565LinePair,Cn=16,En=1<<Cn-1,Sn=-227,Fn=482,Tn=6,In=(256<<Tn)-1,_n=0,kn=s(256),Ln=s(256),Pn=s(256),Nn=s(256),Dn=s(Fn-Sn),Mn=s(Fn-Sn);Ir("YuvToRgbRow",Br,3),Ir("YuvToBgrRow",xr,3),Ir("YuvToRgbaRow",Tr,4),Ir("YuvToBgraRow",Fr,4),Ir("YuvToArgbRow",Sr,4),Ir("YuvToRgba4444Row",Er,2),Ir("YuvToRgb565Row",Cr,2);var On=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Un=[0,2,8],Qn=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,r,a,A,l){var h=Di,c=new er,u=new ot;c.ba=u,u.S=h,u.width=[u.width],u.height=[u.height];var p=u.width,d=u.height,f=new at;if(null==f||null==t)var g=2;else e(null!=f),g=Pr(t,r,a,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=g?p=0:(null!=p&&(p[0]=f.width[0]),null!=d&&(d[0]=f.height[0]),p=1),p){u.width=u.width[0],u.height=u.height[0],null!=A&&(A[0]=u.width),null!=l&&(l[0]=u.height);t:{if(A=new Kt,(l=new rr).data=t,l.w=r,l.ha=a,l.kd=1,r=[0],e(null!=l),(0==(t=Pr(l.data,l.w,l.ha,null,null,null,r,null,l))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=c),A.data=l.data,A.w=l.w+l.offset,A.ha=l.ha-l.offset,A.put=pt,A.ac=ut,A.bc=dt,A.ma=c,l.xa){if(null==(t=Tt())){c=1;break t}if(function(t,r){var i=[0],n=[0],s=[0];e:for(;;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,m(t.m,r.data,r.w,r.ha),!ft(t.m,i,n,s)){t.a=3;break e}if(t.xb=dn,r.width=i[0],r.height=n[0],!It(i[0],n[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,A)){if(A=0==(r=Mr(A.width,A.height,c.Oa,c.ba))){e:{A=t;r:for(;;){if(null==A){A=0;break e}if(e(null!=A.s.yc),e(null!=A.s.Ya),e(0<A.s.Wb),e(null!=(a=A.l)),e(null!=(l=a.ma)),0!=A.xb){if(A.ca=l.ba,A.tb=l.tb,e(null!=A.ca),!Nr(l.Oa,a,Oi)){A.a=2;break r}if(!_t(A,a.width))break r;if(a.da)break r;if((a.da||it(A.ca.S))&&fr(),11>A.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=A.ca.f.kb.F&&fr()),A.Pb&&0<A.s.ua&&null==A.s.vb.X&&!P(A.s.vb,A.s.Wa.Xa)){A.a=1;break r}A.xb=0}if(!St(A,A.V,A.Ba,A.c,A.i,a.o,Bt))break r;l.Dc=A.Ma,A=1;break e}e(0!=A.a),A=0}A=!A}A&&(r=t.a)}else r=t.a}else{if(null==(t=new Wt)){c=1;break t}if(t.Fa=l.na,t.P=l.P,t.qc=l.Sa,qt(t,A)){if(0==(r=Mr(A.width,A.height,c.Oa,c.ba))){if(t.Aa=0,a=c.Oa,e(null!=(l=t)),null!=a){if(0<(p=0>(p=a.Md)?0:100<p?255:255*p/100)){for(d=f=0;4>d;++d)12>(g=l.pb[d]).lc&&(g.ia=p*Qn[0>g.lc?0:g.lc]>>3),f|=g.ia;f&&(alert("todo:VP8InitRandom"),l.ia=1)}l.Ga=a.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(t,r){if(null==t)return 0;if(null==r)return Yt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!qt(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var a=Un[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-a>>4,t.zb=r.j-a>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+a>>4,t.Hb=r.va+15+a>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var A=t.ed;for(a=0;4>a;++a){var l;if(t.Qa.Cb){var h=t.Qa.Lb[a];t.Qa.Fb||(h+=A.Tb)}else h=A.Tb;for(l=0;1>=l;++l){var c=t.gd[a][l],u=h;if(A.Pc&&(u+=A.vd[0],l&&(u+=A.od[0])),0<(u=0>u?0:63<u?63:u)){var p=u;0<A.wb&&(p=4<A.wb?p>>2:p>>1)>9-A.wb&&(p=9-A.wb),1>p&&(p=1),c.dd=p,c.tc=2*u+p,c.ld=40<=u?2:15<=u?1:0}else c.tc=0;c.La=l}}}a=0}else Yt(t,6,"Frame setup failed"),a=t.a;if(a=0==a){if(a){t.$c=0,0<t.Aa||(t.Ic=1);e:{a=t.Ic,A=4*(p=t.za);var d=32*p,f=p+1,g=0<t.L?p*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*p;if((c=A+832+(l=3*(16*a+Un[t.L])/2*d)+(h=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=c)a=0;else{if(c>t.Vb){if(t.Vb=0,t.Ec=s(c),t.Fc=0,null==t.Ec){a=Yt(t,1,"no memory during frame initialization.");break e}t.Vb=c}c=t.Ec,u=t.Fc,t.Ac=c,t.Bc=u,u+=A,t.Gd=o(d,Vt),t.Hd=0,t.rb=o(f+1,Qt),t.sb=1,t.wa=g?o(g,Ut):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=p),e(!0),t.oc=c,t.pc=u,u+=832,t.ya=o(m,Ht),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=p),t.R=16*p,t.B=8*p,p=(d=Un[t.L])*t.R,d=d/2*t.B,t.sa=c,t.ta=u+p,t.qa=t.sa,t.ra=t.ta+16*a*t.R+d,t.Ha=t.qa,t.Ia=t.ra+8*a*t.B+d,t.$c=0,u+=l,t.mb=h?c:null,t.nb=h?u:null,e(u+h<=t.Fc+t.Vb),Jt(t),n(t.Ac,t.Bc,0,A),a=1}}if(a){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!Ii){for(a=-255;255>=a;++a)Ei[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Si[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Fi[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Ti[255+a]=0>a?0:255<a?255:a;Ii=1}ii=Ae,ni=ne,oi=se,ai=oe,Ai=ae,si=ie,li=We,hi=Ye,ci=$e,ui=Je,pi=Xe,di=qe,fi=Ze,gi=tr,mi=He,yi=je,vi=Ve,bi=Ge,cn[0]=xe,cn[1]=he,cn[2]=we,cn[3]=Be,cn[4]=Ce,cn[5]=Se,cn[6]=Ee,cn[7]=Fe,cn[8]=Ie,cn[9]=Te,hn[0]=ge,hn[1]=ue,hn[2]=pe,hn[3]=de,hn[4]=me,hn[5]=ye,hn[6]=ve,un[0]=Pe,un[1]=ce,un[2]=_e,un[3]=ke,un[4]=De,un[5]=Ne,un[6]=Me,a=1}else a=0}a&&(a=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var o,a=t.Jc[t.M&t.Xb],A=t.m,l=t;for(o=0;o<l.za;++o){var h=A,c=l,u=c.Ac,p=c.Bc+4*o,d=c.zc,f=c.ya[c.aa+o];if(c.Qa.Bb?f.$b=T(h,c.Pa.jb[0])?2+T(h,c.Pa.jb[2]):T(h,c.Pa.jb[1]):f.$b=0,c.kc&&(f.Ad=T(h,c.Bd)),f.Za=!T(h,145)+0,f.Za){var g=f.Ob,m=0;for(c=0;4>c;++c){var y,v=d[0+c];for(y=0;4>y;++y){v=an[u[p+y]][v];for(var b=sn[T(h,v[0])];0<b;)b=sn[2*b+T(h,v[b])];v=-b,u[p+y]=v}i(g,m,u,p,4),m+=4,d[0+c]=v}}else v=T(h,156)?T(h,128)?1:3:T(h,163)?2:0,f.Ob[0]=v,n(u,p,v,4),n(d,0,v,4);f.Dd=T(h,142)?T(h,114)?T(h,183)?1:3:2:0}if(l.m.Ka)return Yt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(l=a,h=(A=t).rb[A.sb-1],u=A.rb[A.sb+A.ja],o=A.ya[A.aa+A.ja],p=A.kc?o.Ad:0)h.la=u.la=0,o.Za||(h.Na=u.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var w,B;if(h=u,u=l,p=A.Pa.Xc,d=A.ya[A.aa+A.ja],f=A.pb[d.$b],c=d.ad,g=0,m=A.rb[A.sb-1],v=y=0,n(c,g,0,384),d.Za)var x=0,C=p[3];else{b=s(16);var E=h.Na+m.Na;if(E=en(u,p[1],E,f.Eb,0,b,0),h.Na=m.Na=(0<E)+0,1<E)ii(b,0,c,g);else{var S=b[0]+3>>3;for(b=0;256>b;b+=16)c[g+b]=S}x=1,C=p[0]}var F=15&h.la,I=15&m.la;for(b=0;4>b;++b){var _=1&I;for(S=B=0;4>S;++S)F=F>>1|(_=(E=en(u,C,E=_+(1&F),f.Sc,x,c,g))>x)<<7,B=B<<2|(3<E?3:1<E?2:0!=c[g+0]),g+=16;F>>=4,I=I>>1|_<<7,y=(y<<8|B)>>>0}for(C=F,x=I>>4,w=0;4>w;w+=2){for(B=0,F=h.la>>4+w,I=m.la>>4+w,b=0;2>b;++b){for(_=1&I,S=0;2>S;++S)E=_+(1&F),F=F>>1|(_=0<(E=en(u,p[2],E,f.Qc,0,c,g)))<<3,B=B<<2|(3<E?3:1<E?2:0!=c[g+0]),g+=16;F>>=2,I=I>>1|_<<5}v|=B<<4*w,C|=F<<4<<w,x|=(240&I)<<w}h.la=C,m.la=x,d.Hc=y,d.Gc=v,d.ia=43690&v?0:f.ia,p=!(y|v)}if(0<A.L&&(A.wa[A.Y+A.ja]=A.gd[o.$b][o.Za],A.wa[A.Y+A.ja].La|=!p),l.Ka)return Yt(t,7,"Premature end-of-file encountered.")}if(Jt(t),A=r,l=1,o=(a=t).D,h=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)e:{if(o.M=a.M,o.uc=h,Lr(a,o),l=1,o=(B=a.D).Nb,h=(v=Un[a.L])*a.R,u=v/2*a.B,b=16*o*a.R,S=8*o*a.B,p=a.sa,d=a.ta-h+b,f=a.qa,c=a.ra-u+S,g=a.Ha,m=a.Ia-u+S,I=0==(F=B.M),y=F>=a.Va-1,2==a.Aa&&Lr(a,B),B.uc)for(_=(E=a).D.M,e(E.D.uc),B=E.yb;B<E.Hb;++B){x=B,C=_;var k=(L=(H=E).D).Nb;w=H.R;var L=L.wa[L.Y+x],P=H.sa,N=H.ta+16*k*w+16*x,D=L.dd,M=L.tc;if(0!=M)if(e(3<=M),1==H.L)0<x&&yi(P,N,w,M+4),L.La&&bi(P,N,w,M),0<C&&mi(P,N,w,M+4),L.La&&vi(P,N,w,M);else{var O=H.B,U=H.qa,Q=H.ra+8*k*O+8*x,R=H.Ha,H=H.Ia+8*k*O+8*x;k=L.ld,0<x&&(hi(P,N,w,M+4,D,k),ui(U,Q,R,H,O,M+4,D,k)),L.La&&(di(P,N,w,M,D,k),gi(U,Q,R,H,O,M,D,k)),0<C&&(li(P,N,w,M+4,D,k),ci(U,Q,R,H,O,M+4,D,k)),L.La&&(pi(P,N,w,M,D,k),fi(U,Q,R,H,O,M,D,k))}}if(a.ia&&alert("todo:DitherRow"),null!=A.put){if(B=16*F,F=16*(F+1),I?(A.y=a.sa,A.O=a.ta+b,A.f=a.qa,A.N=a.ra+S,A.ea=a.Ha,A.W=a.Ia+S):(B-=v,A.y=p,A.O=d,A.f=f,A.N=c,A.ea=g,A.W=m),y||(F-=v),F>A.o&&(F=A.o),A.F=null,A.J=null,null!=a.Fa&&0<a.Fa.length&&B<F&&(A.J=hr(a,A,B,F-B),A.F=a.mb,null==A.F&&0==A.F.length)){l=Yt(a,3,"Could not decode alpha data.");break e}B<A.j&&(v=A.j-B,B=A.j,e(!(1&v)),A.O+=a.R*v,A.N+=a.B*(v>>1),A.W+=a.B*(v>>1),null!=A.F&&(A.J+=A.width*v)),B<F&&(A.O+=A.v,A.N+=A.v>>1,A.W+=A.v>>1,null!=A.F&&(A.J+=A.v),A.ka=B-A.j,A.U=A.va-A.v,A.T=F-B,l=A.put(A))}o+1!=a.Ic||y||(i(a.sa,a.ta-h,p,d+16*a.R,h),i(a.qa,a.ra-u,f,c+8*a.B,u),i(a.Ha,a.Ia-u,g,m+8*a.B,u))}if(!l)return Yt(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),a&=1}return a?(t.cb=0,a):0})(t,A)||(r=t.a)}}else r=t.a}0==r&&null!=c.Oa&&c.Oa.fd&&(r=Dr(c.ba))}c=r}h=0!=c?null:11>h?u.f.RGBA.eb:u.f.kb.y}else h=null;return h};var Rn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(t,e){for(var r="",i=0;i<4;i++)r+=String.fromCharCode(t[e++]);return r}function h(t,e){return t[e+0]|t[e+1]<<8}function c(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new A;var p=[0],d=[0],f=[],g=new A,m=t,y=function(t,e){var r={},i=0,n=!1,s=0,o=0;if(r.frames=[],!function(t,e){for(var r=0;r<4;r++)if(t[e+r]!="RIFF".charCodeAt(r))return!0;return!1}(t,e)){for(u(t,e+=4),e+=8;e<t.length;){var a=l(t,e),A=u(t,e+=4);e+=4;var p=A+(1&A);switch(a){case"VP8 ":case"VP8L":void 0===r.frames[i]&&(r.frames[i]={}),(g=r.frames[i]).src_off=n?o:e-8,g.src_size=s+A+8,i++,n&&(n=!1,s=0,o=0);break;case"VP8X":(g=r.header={}).feature_flags=t[e];var d=e+4;g.canvas_width=1+c(t,d),d+=3,g.canvas_height=1+c(t,d),d+=3;break;case"ALPH":n=!0,s=p+8,o=e-8;break;case"ANIM":(g=r.header).bgcolor=u(t,e),d=e+4,g.loop_count=h(t,d),d+=2;break;case"ANMF":var f,g;(g=r.frames[i]={}).offset_x=2*c(t,e),e+=3,g.offset_y=2*c(t,e),e+=3,g.width=1+c(t,e),e+=3,g.height=1+c(t,e),e+=3,g.duration=c(t,e),e+=3,f=t[e++],g.dispose=1&f,g.blend=f>>1&1}"ANMF"!=a&&(e+=p)}return r}}(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var v=y.header?y.header:null,b=y.frames?y.frames:null;if(v){v.loop_counter=v.loop_count,p=[v.canvas_height],d=[v.canvas_width];for(var w=0;w<b.length&&0!=b[w].blend;w++);}var B=b[0],x=g.WebPDecodeRGBA(m,B.src_off,B.src_size,d,p);B.rgba=x,B.imgwidth=d[0],B.imgheight=p[0];for(var C=0;C<d[0]*p[0]*4;C++)f[C]=x[C];return this.width=d,this.height=p,this.data=f,this}function ue(){var t,e=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?r:'<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>'+r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</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 pe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(t){var e,r,n,s,o,a,A,h,c,u=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 h,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new a,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new a,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 p(this),e=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,A=this.internal.Rectangle,h=this.internal.Matrix,c=new u}]);var p=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 r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return i},set:function(t){i=Boolean(t)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(t){isNaN(t)||(n=t)}});var s=0;Object.defineProperty(this,"posY",{get:function(){return s},set:function(t){isNaN(t)||(s=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.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]),c.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var A=[];Object.defineProperty(this,"pageBreaks",{get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof u&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(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=f(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 h=null,p=null,d=null;Object.defineProperty(this,"fontFaces",{get:function(){return d},set:function(t){h=null,p=null,d=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(t))){var r=e[1];e[2];var i=e[3],n=e[4];e[5];var s=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===o?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var a=function(t){var e,r,i=[],n=t.trim();if(""===n)return Xt;if(n in Qt)return[Qt[n]];for(;""!==n;){switch(r=null,e=(n=Ht(n)).charAt(0)){case'"':case"'":r=jt(n.substring(1),e);break;default:r=Vt(n)}if(null===r)return Xt;if(i.push(r[0]),""!==(n=Ht(r[1]))&&","!==n.charAt(0))return Xt;n=n.replace(/^,/,"")}return i}(s);if(this.fontFaces){var A=function(t,e){var r=t.getFontList(),i=JSON.stringify(r);if(null===h||p!==i){var n=function(t){var e=[];return Object.keys(t).forEach(function(r){t[r].forEach(function(t){var i=null;switch(t){case"bold":i={family:r,weight:"bold"};break;case"italic":i={family:r,style:"italic"};break;case"bolditalic":i={family:r,weight:"bold",style:"italic"};break;case"":case"normal":i={family:r}}null!==i&&(i.ref={name:r,style:t},e.push(i))})}),e}(r);h=function(t){for(var e={},r=0;r<t.length;++r){var i=Mt(t[r]),n=i.family,s=i.stretch,o=i.style,a=i.weight;e[n]=e[n]||{},e[n][s]=e[n][s]||{},e[n][s][o]=e[n][s][o]||{},e[n][s][o][a]=i}return e}(n.concat(e)),p=i}return h}(this.pdf,this.fontFaces),l=a.map(function(t){return{family:t,stretch:"normal",weight:i,style:r}}),c=function(t,e,r){for(var i=(r=r||{}).defaultFontFamily||"times",n=Object.assign({},Ut,r.genericFontFamilies||{}),s=null,o=null,a=0;a<e.length;++a)if(n[(s=Mt(e[a])).family]&&(s.family=n[s.family]),t.hasOwnProperty(s.family)){o=t[s.family];break}if(!(o=o||t[i]))throw new Error("Could not find a font-family for the rule '"+Rt(s)+"' and default family '"+i+"'.");if(o=function(t,e){if(e[t])return e[t];var r=Pt[t],i=r<=Pt.normal?-1:1,n=Ot(e,Lt,r,i);if(!n)throw new Error("Could not find a matching font-stretch value for "+t);return n}(s.stretch,o),o=function(t,e){if(e[t])return e[t];for(var r=kt[t],i=0;i<r.length;++i)if(e[r[i]])return e[r[i]];throw new Error("Could not find a matching font-style for "+t)}(s.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=Dt[t],i=Ot(e,Nt,r,t<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+t);return i}(s.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Rt(s)+"'.");return o}(A,l);this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===i||parseInt(i,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var d="",f={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"},g=0;g<a.length;g++){if(void 0!==this.pdf.internal.getFont(a[g],u,{noFallback:!0,disableWarning:!0})){d=a[g];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(a[g],"bold",{noFallback:!0,disableWarning:!0}))d=a[g],u="bold";else if(void 0!==this.pdf.internal.getFont(a[g],"normal",{noFallback:!0,disableWarning:!0})){d=a[g],u="normal";break}}if(""===d)for(var m=0;m<a.length;m++)if(f[a[m]]){d=f[a[m]];break}d=""===d?"Times":d,this.pdf.setFont(d,u)}}}}),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,R.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,R.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){x.call(this,"fill",!1)},p.prototype.stroke=function(){x.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(t,e)},p.prototype.closePath=function(){var t=new a(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,i.A)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new a(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(r.x,r.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,r,i){if(isNaN(r)||isNaN(i)||isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new a(r,i)),s=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:s.x,y1:s.y,x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},p.prototype.bezierCurveTo=function(t,e,r,i,n,s){if(isNaN(n)||isNaN(s)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i))throw l.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new a(n,s)),A=this.ctx.transform.applyToPoint(new a(t,e)),h=this.ctx.transform.applyToPoint(new a(r,i));this.path.push({type:"bct",x1:A.x,y1:A.y,x2:h.x,y2:h.y,x:o.x,y:o.y}),this.ctx.lastPoint=new a(o.x,o.y)},p.prototype.arc=function(t,e,r,i,n,s){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||isNaN(n))throw l.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(s=Boolean(s),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new a(t,e));t=o.x,e=o.y;var A=this.ctx.transform.applyToPoint(new a(0,r)),h=this.ctx.transform.applyToPoint(new a(0,0));r=Math.sqrt(Math.pow(A.x-h.x,2)+Math.pow(A.y-h.y,2))}Math.abs(n-i)>=2*Math.PI&&(i=0,n=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:i,endAngle:n,counterclockwise:s})},p.prototype.arcTo=function(t,e,r,i,n){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,r,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i))throw l.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,r,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i))throw l.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,i),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},p.prototype.strokeRect=function(t,e,r,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i))throw l.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,r,i),this.stroke())},p.prototype.clearRect=function(t,e,r,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i))throw l.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,r,i))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(t){var e,r,i,n;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,i=0,n=0;else{var s=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==s)e=parseInt(s[1]),r=parseInt(s[2]),i=parseInt(s[3]),n=1;else if(null!==(s=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(s[1]),r=parseInt(s[2]),i=parseInt(s[3]),n=parseFloat(s[4]);else{if(n=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new d(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,i=t.substring(3,4),i+=i):(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),i=parseInt(i,16)}}return{r:e,g:r,b:i,a:n,style:t}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,r,i){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw l.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!g.call(this)){var n=O(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:r,scale:s,angle:n,align:this.textAlign,maxWidth:i})}},p.prototype.strokeText=function(t,e,r,i){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw l.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){i=isNaN(i)?void 0:i;var n=O(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:r,scale:s,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:i})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw l.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,i=e.internal.getFontSize(),n=e.getStringUnitWidth(t)*i/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:n*=Math.round(96*r/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new h(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.rotate=function(t){if(isNaN(t))throw l.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new h(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new h(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.transform=function(t,e,r,i,n,s){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(i)||isNaN(n)||isNaN(s))throw l.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new h(t,e,r,i,n,s);this.ctx.transform=this.ctx.transform.multiply(o)},p.prototype.setTransform=function(t,e,r,i,n,s){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,i=isNaN(i)?1:i,n=isNaN(n)?0:n,s=isNaN(s)?0:s,this.ctx.transform=new h(t,e,r,i,n,s)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,r,i,n,s,o,a,l){var c=this.pdf.getImageProperties(t),u=1,p=1,d=1,f=1;void 0!==i&&void 0!==a&&(d=a/i,f=l/n,u=c.width/i*a/i,p=c.height/n*l/n),void 0===s&&(s=e,o=r,e=0,r=0),void 0!==i&&void 0===a&&(a=i,l=n),void 0===i&&void 0===a&&(a=c.width,l=c.height);var g=this.ctx.transform.decompose(),m=O(g.rotate.shx),b=new h,x=(b=(b=(b=b.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new A(s-e*d,o-r*f,i*u,n*p));if(this.autoPaging){for(var E,S=v.call(this,x),F=[],T=0;T<S.length;T+=1)-1===F.indexOf(S[T])&&F.push(S[T]);B(F);for(var I=F[0],_=F[F.length-1],k=I;k<_+1;k++){this.pdf.setPage(k);var L=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===k?this.posY+this.margin[0]:this.margin[0],N=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],D=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===k?0:N+(k-2)*D;if(0!==this.ctx.clip_path.length){var U=this.path;E=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(E,this.posX+this.margin[3],-M+P+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=U}var Q=JSON.parse(JSON.stringify(x));Q=w([Q],this.posX+this.margin[3],-M+P+this.ctx.prevPageLastElemOffset)[0];var R=(k>I||k<_)&&y.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],L,D,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",Q.x,Q.y,Q.w,Q.h,null,null,m),R&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",x.x,x.y,x.w,x.h,null,null,m)};var v=function(t,e,r){var i=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":i.push(Math.floor((t.y+n)/r)+1);break;case"arc":i.push(Math.floor((t.y+n-t.radius)/r)+1),i.push(Math.floor((t.y+n+t.radius)/r)+1);break;case"qct":var s=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);i.push(Math.floor((s.y+n)/r)+1),i.push(Math.floor((s.y+s.h+n)/r)+1);break;case"bct":var o=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);i.push(Math.floor((o.y+n)/r)+1),i.push(Math.floor((o.y+o.h+n)/r)+1);break;case"rect":i.push(Math.floor((t.y+n)/r)+1),i.push(Math.floor((t.y+t.h+n)/r)+1)}for(var a=0;a<i.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<i[a];)b.call(this);return i},b=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,i=this.lineCap,n=this.lineWidth,s=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=i,this.lineWidth=n,this.lineJoin=s},w=function(t,e,r){for(var i=0;i<t.length;i++)switch(t[i].type){case"bct":t[i].x2+=e,t[i].y2+=r;case"qct":t[i].x1+=e,t[i].y1+=r;default:t[i].x+=e,t[i].y+=r}return t},B=function(t){return t.sort(function(t,e){return t-e})},x=function(t,e){var r=this.fillStyle,i=this.strokeStyle,n=this.lineCap,s=this.lineWidth,o=Math.abs(s*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var A,l,h=JSON.parse(JSON.stringify(this.path)),c=JSON.parse(JSON.stringify(this.path)),u=[],p=0;p<c.length;p++)if(void 0!==c[p].x)for(var d=v.call(this,c[p]),f=0;f<d.length;f+=1)-1===u.indexOf(d[f])&&u.push(d[f]);for(var g=0;g<u.length;g++)for(;this.pdf.internal.getNumberOfPages()<u[g];)b.call(this);B(u);for(var m=u[0],x=u[u.length-1],E=m;E<x+1;E++){this.pdf.setPage(E),this.fillStyle=r,this.strokeStyle=i,this.lineCap=n,this.lineWidth=o,this.lineJoin=a;var S=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],F=1===E?this.posY+this.margin[0]:this.margin[0],T=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],_=1===E?0:T+(E-2)*I;if(0!==this.ctx.clip_path.length){var k=this.path;A=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(A,this.posX+this.margin[3],-_+F+this.ctx.prevPageLastElemOffset),C.call(this,t,!0),this.path=k}if(l=JSON.parse(JSON.stringify(h)),this.path=w(l,this.posX+this.margin[3],-_+F+this.ctx.prevPageLastElemOffset),!1===e||0===E){var L=(E>m||E<x)&&y.call(this);L&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],S,I,null).clip().discardPath()),C.call(this,t,e),L&&this.pdf.restoreGraphicsState()}this.lineWidth=s}this.path=h}else this.lineWidth=o,C.call(this,t,e),this.lineWidth=s},C=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!g.call(this))){for(var r,i,n=[],s=this.path,o=0;o<s.length;o++){var a=s[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var A=n.length;if(s[o-1]&&!isNaN(s[o-1].x)&&(r=[a.x-s[o-1].x,a.y-s[o-1].y],A>0))for(;A>=0;A--)if(!0!==n[A-1].close&&!0!==n[A-1].begin){n[A-1].deltas.push(r),n[A-1].abs.push(a);break}break;case"bct":r=[a.x1-s[o-1].x,a.y1-s[o-1].y,a.x2-s[o-1].x,a.y2-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y],n[n.length-1].deltas.push(r);break;case"qct":var l=s[o-1].x+2/3*(a.x1-s[o-1].x),h=s[o-1].y+2/3*(a.y1-s[o-1].y),c=a.x+2/3*(a.x1-a.x),u=a.y+2/3*(a.y1-a.y),p=a.x,d=a.y;r=[l-s[o-1].x,h-s[o-1].y,c-s[o-1].x,u-s[o-1].y,p-s[o-1].x,d-s[o-1].y],n[n.length-1].deltas.push(r);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}i=e?null:"stroke"===t?"stroke":"fill";for(var f=!1,y=0;y<n.length;y++)if(n[y].arc)for(var v=n[y].abs,b=0;b<v.length;b++){var w=v[b];"arc"===w.type?F.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!f):L.call(this,w.x,w.y),f=!0}else if(!0===n[y].close)this.pdf.internal.out("h"),f=!1;else if(!0!==n[y].begin){var B=n[y].start.x,x=n[y].start.y;P.call(this,n[y].deltas,B,x),f=!0}i&&T.call(this,i),e&&I.call(this)}},E=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;default:return t}},S=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.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},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(t,e,r,i,n,s,o,a,A){for(var l=D.call(this,r,i,n,s),h=0;h<l.length;h++){var c=l[h];0===h&&(A?_.call(this,c.x1+t,c.y1+e):L.call(this,c.x1+t,c.y1+e)),N.call(this,t,e,c.x2,c.y2,c.x3,c.y3,c.x4,c.y4)}a?I.call(this):T.call(this,o)},T=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},_=function(t,e){this.pdf.internal.out(r(t)+" "+n(e)+" m")},k=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var r,i,n,s=this.pdf.getTextDimensions(t.text),o=E.call(this,t.y),l=S.call(this,o)-s.h,c=this.ctx.transform.applyToPoint(new a(t.x,o));if(this.autoPaging){var u=this.ctx.transform.decompose(),p=new h;p=(p=(p=p.multiply(u.translate)).multiply(u.skew)).multiply(u.scale);for(var d=this.ctx.transform.applyToRectangle(new A(t.x,o,s.w,s.h)),f=p.applyToRectangle(new A(t.x,l,s.w,s.h)),g=v.call(this,f),m=[],b=0;b<g.length;b+=1)-1===m.indexOf(g[b])&&m.push(g[b]);B(m);for(var x=m[0],F=m[m.length-1],T=x;T<F+1;T++){this.pdf.setPage(T);var I=1===T?this.posY+this.margin[0]:this.margin[0],_=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],L=k-this.margin[0],P=this.pdf.internal.pageSize.width-this.margin[1],N=P-this.margin[3],D=1===T?0:_+(T-2)*L;if(0!==this.ctx.clip_path.length){var M=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(r,this.posX+this.margin[3],-1*D+I),C.call(this,"fill",!0),this.path=M}var O=w([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-D+I+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(i=this.pdf.internal.getFontSize(),this.pdf.setFontSize(i*t.scale),n=this.lineWidth,this.lineWidth=n*t.scale);var U="text"!==this.autoPaging;if(U||O.y+O.h<=k){if(U||O.y>=I&&O.x<=P){var Q=U?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||P-O.x)[0],R=w([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-D+I+this.ctx.prevPageLastElemOffset)[0],H=U&&(T>x||T<F)&&y.call(this);H&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,L,null).clip().discardPath()),this.pdf.text(Q,R.x,R.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),H&&this.pdf.restoreGraphicsState()}}else O.y<k&&(this.ctx.prevPageLastElemOffset+=k-O.y);t.scale>=.01&&(this.pdf.setFontSize(i),this.lineWidth=n)}}else t.scale>=.01&&(i=this.pdf.internal.getFontSize(),this.pdf.setFontSize(i*t.scale),n=this.lineWidth,this.lineWidth=n*t.scale),this.pdf.text(t.text,c.x+this.posX,c.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(i),this.lineWidth=n)},L=function(t,e,i,s){i=i||0,s=s||0,this.pdf.internal.out(r(t+i)+" "+n(e+s)+" l")},P=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},N=function(t,r,i,n,a,A,l,h){this.pdf.internal.out([e(s(i+t)),e(o(n+r)),e(s(a+t)),e(o(A+r)),e(s(l+t)),e(o(h+r)),"c"].join(" "))},D=function(t,e,r,i){for(var n=2*Math.PI,s=Math.PI/2;e>r;)e-=n;var o=Math.abs(r-e);o<n&&i&&(o=n-o);for(var a=[],A=i?-1:1,l=e;o>1e-5;){var h=l+A*Math.min(o,s);a.push(M.call(this,t,l,h)),o-=Math.abs(h-l),l=h}return a},M=function(t,e,r){var i=(r-e)/2,n=t*Math.cos(i),s=t*Math.sin(i),o=n,a=-s,A=o*o+a*a,l=A+o*n+a*s,h=4/3*(Math.sqrt(2*A*l)-l)/(o*s-a*n),c=o-h*a,u=a+h*o,p=c,d=-u,f=i+e,g=Math.cos(f),m=Math.sin(f);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:c*g-u*m,y2:c*m+u*g,x3:p*g-d*m,y3:p*m+d*g,x4:t*Math.cos(r),y4:t*Math.sin(r)}},O=function(t){return 180*t/Math.PI},U=function(t,e,r,i,n,s){var o=t+.5*(r-t),a=e+.5*(i-e),l=n+.5*(r-n),h=s+.5*(i-s),c=Math.min(t,n,o,l),u=Math.max(t,n,o,l),p=Math.min(e,s,a,h),d=Math.max(e,s,a,h);return new A(c,p,u-c,d-p)},Q=function(t,e,r,i,n,s,o,a){var l,h,c,u,p,d,f,g,m,y,v,b,w,B,x=r-t,C=i-e,E=n-r,S=s-i,F=o-n,T=a-s;for(h=0;h<41;h++)m=(f=(c=t+(l=h/40)*x)+l*((p=r+l*E)-c))+l*(p+l*(n+l*F-p)-f),y=(g=(u=e+l*C)+l*((d=i+l*S)-u))+l*(d+l*(s+l*T-d)-g),0==h?(v=m,b=y,w=m,B=y):(v=Math.min(v,m),b=Math.min(b,y),w=Math.max(w,m),B=Math.max(B,y));return new A(Math.round(v),Math.round(b),Math.round(w-v),Math.round(B-b))},R=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(R.API),function(t){var e=function(t){var e,r,i,n,s,o,a,A,l,h;for(/[^\x00-\xFF]/.test(t),r=[],i=0,n=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;n>i;i+=4)0!==(s=(t.charCodeAt(i)<<24)+(t.charCodeAt(i+1)<<16)+(t.charCodeAt(i+2)<<8)+t.charCodeAt(i+3))?(o=(s=((s=((s=((s=(s-(h=s%85))/85)-(l=s%85))/85)-(A=s%85))/85)-(a=s%85))/85)%85,r.push(o+33,a+33,A+33,l+33,h+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,i,n,s,o=String,a="length",A=255,l="charCodeAt",h="slice",c="replace";for(t[h](-2),t=t[h](0,-2)[c](/\s/g,"")[c]("z","!!!!!"),i=[],n=0,s=(t+=e="uuuuu"[h](t[a]%5||5))[a];s>n;n+=5)r=52200625*(t[l](n)-33)+614125*(t[l](n+1)-33)+7225*(t[l](n+2)-33)+85*(t[l](n+3)-33)+(t[l](n+4)-33),i.push(A&r>>24,A&r>>16,A&r>>8,A&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(i,e[a]),o.fromCharCode.apply(o,i)},i=function(t){return t.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">"},s=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",i=0;i<t.length;i+=2)r+=String.fromCharCode("0x"+(t[i]+t[i+1]));return r},o=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return(e=(0,n.$)(e)).reduce(function(t,e){return t+String.fromCharCode(e)},"")};t.processDataByFilters=function(t,n){var a=0,A=t||"",l=[];for("string"==typeof(n=n||[])&&(n=[n]),a=0;a<n.length;a+=1)switch(n[a]){case"ASCII85Decode":case"/ASCII85Decode":A=r(A),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":A=e(A),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":A=s(A),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":A=i(A),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=o(A),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+n[a]+'" is not implemented')}return{data:A,reverseChain:l.reverse().join(" ")}}}(R.API),function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var i=void 0;try{i=function(t,e,r){var i=new XMLHttpRequest,n=0,s=function(t){var e=t.length,r=[],i=String.fromCharCode;for(n=0;n<e;n+=1)r.push(i(255&t.charCodeAt(n)));return r.join("")};if(i.open("GET",t,!e),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(i.onload=function(){200===i.status?r(s(this.responseText)):r(void 0)}),i.send(null),e&&200===i.status)return s(i.responseText)}(t,e,r)}catch(t){}return i}(t,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(R.API),function(t){function e(){return(a.html2canvas?Promise.resolve(a.html2canvas):r.e(440).then(r.t.bind(r,53440,23))).catch(function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))}).then(function(t){return t.default?t.default:t})}function n(){return(a.DOMPurify?Promise.resolve(a.DOMPurify):r.e(559).then(r.bind(r,30559))).catch(function(t){return Promise.reject(new Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var s=function(t){var e=(0,i.A)(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"},o=function(t,e){var r=document.createElement(t);for(var i in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[i]=e.style[i];return r},A=function t(e,r){for(var i=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==r&&1===n.nodeType&&"SCRIPT"===n.nodeName||i.appendChild(t(n,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(i.value=e.value),i.addEventListener("load",function(){i.scrollTop=e.scrollTop,i.scrollLeft=e.scrollLeft},!0)),i},l=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),i=t.convert(Promise.resolve(),r);return(i=i.setProgress(1,t,1,[t])).set(e)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(t,e){return t.__proto__=e||l.prototype,t},l.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"}},l.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(s(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t),e){case"string":return this.then(n).then(function(e){return this.set({src:o("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.")}})},l.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.")}},l.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=A(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=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("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"})},l.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)})},l.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,r=this.opt.fontFaces,i="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,n=Object.assign({async:!0,allowTaint:!0,scale:i,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var s=0;s<r.length;++s){var o=r[s],a=o.src.find(function(t){return"truetype"===t.format});a&&e.addFont(a.url,o.ref.name,o.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,e.context2d.save(!0),t(this.prop.container,n)}).then(function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},l.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})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},l.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},l.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.'}})},l.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)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(t){if("object"!==s(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in l.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)})},l.prototype.get=function(t,e){return this.then(function(){var r=t in l.template.prop?this.prop[t]:this.opt[t];return e?e(r):r})},l.prototype.setMargin=function(t){return this.then(function(){switch(s(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)},l.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||R.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})},l.prototype.setProgress=function(t,e,r,i){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(t,e,r,i){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,i?this.progress.stack.concat(i):null)},l.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return r.updateProgress(null,t),e}).then(t,e).then(function(t){return r.updateProgress(1),t})})},l.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then;var i=this;t&&(t=t.bind(i)),e&&(e=e.bind(i));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?i:l.convert(Object.assign({},i),Promise.prototype),s=r.call(n,t,e);return l.convert(s,i.__proto__)},l.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},l.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},l.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return l.convert(e,this)},l.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},l.prototype.error=function(t){return this.then(function(){throw new Error(t)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,R.getPageSize=function(t,e,r){if("object"===(0,i.A)(t)){var n=t;t=n.orientation,e=n.unit||e,r=n.format||r}e=e||"mm",r=r||"a4",t=(""+(t||"P")).toLowerCase();var s,o=(""+r).toLowerCase(),a={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":s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+e}var A,l=0,h=0;if(a.hasOwnProperty(o))l=a[o][1]/s,h=a[o][0]/s;else try{l=r[1],h=r[0]}catch(t){throw new Error("Invalid format: "+r)}if("p"===t||"portrait"===t)t="p",h>l&&(A=h,h=l,l=A);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>h&&(A=h,h=l,l=A)}return{width:h,height:l,unit:e,k:s,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(Mt):null;var r=new l(e);return e.worker?r:r.from(t).doCallback()}}(R.API),R.API.addJS=function(t){var e,r,i=function(t){for(var e="",r=0;r<t.length;r++){var i=t[r];if("("===i||")"===i){for(var n=0,s=r-1;s>=0&&"\\"===t[s];s--)n++;e+=n%2==0?"\\"+i:i}else e+=i}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"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==e&&void 0!==r&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),n=0;n<i.length;n++){var s=i[n],o=r.exec(s);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var A=this.internal.pages.length,l=[];for(n=0;n<A;n++){var h=t.internal.newObject();l.push(h);var c=t.internal.getPageInfo(n+1);t.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),n=0;n<l.length;n++)t.internal.write("(page_"+(n+1)+")"+l[n]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+u+" 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,r){var i={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(i),i},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<e.children.length;i++){var n=e.children[i];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(e)),i>0&&this.line("/Prev "+this.makeRef(e.children[i-1])),i<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[i+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var s=this.count=this.count_r({count:0},n);if(s>0&&this.line("/Count "+s),n.options&&n.options.pageNumber){var o=t.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var a=0;a<e.children.length;a++)this.renderItems(e.children[a])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(R.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,i,n,s,o){var a,A=this.decode.DCT_DECODE,l=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,a=function(t){for(var r,i=256*t.charCodeAt(4)+t.charCodeAt(5),n=t.length,s={width:0,height:0,numcomponents:1},o=4;o<n;o+=2){if(o+=i,-1!==e.indexOf(t.charCodeAt(o+1))){r=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),s={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:r,numcomponents:t.charCodeAt(o+9)};break}i=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return s}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),a.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}l={data:t,width:a.width,height:a.height,colorSpace:o,bitsPerComponent:8,filter:A,index:r,alias:i}}return l}}(R.API),R.API.processPNG=function(t,e,r,i){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,A=(0,o.D4)(t,{checkCrc:!0}),l=A.width,h=A.height,c=A.channels,u=A.palette,p=A.depth;a=u&&1===c?function(t){for(var e=t.width,r=t.height,i=t.data,n=t.palette,o=t.depth,a=!1,A=[],l=[],h=void 0,c=!1,u=0,p=0;p<n.length;p++){var d=(0,s.A)(n[p],4),f=d[0],g=d[1],m=d[2],y=d[3];A.push(f,g,m),null!=y&&(0===y?(u++,l.length<1&&l.push(p)):y<255&&(c=!0))}if(c||u>1){a=!0,l=void 0;var v=e*r;h=new Uint8Array(v);for(var b=new DataView(i.buffer),w=0;w<v;w++){var B=ne(b,w,o),x=(0,s.A)(n[B],4)[3];h[w]=x}}else 0===u&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:a?8:void 0,colorBytes:i,alphaBytes:h,needSMask:a,palette:A,mask:l}}(A):2===c||4===c?function(t){for(var e=t.data,r=t.width,i=t.height,n=t.channels,s=t.depth,o=2===n?"DeviceGray":"DeviceRGB",a=n-1,A=r*i,l=a,h=A*l,c=1*A,u=Math.ceil(h*s/8),p=Math.ceil(c*s/8),d=new Uint8Array(u),f=new Uint8Array(p),g=new DataView(e.buffer),m=new DataView(d.buffer),y=new DataView(f.buffer),v=!1,b=0;b<A;b++){for(var w=b*n,B=0;B<l;B++)se(m,ne(g,w+B,s),b*l+B,s);var x=ne(g,w+l,s);x<(1<<s)-1&&(v=!0),se(y,x,1*b,s)}return{colorSpace:o,colorsPerPixel:a,sMaskBitsPerComponent:v?s:void 0,colorBytes:d,alphaBytes:f,needSMask:v}}(A):function(t){var e=t.data,r=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:r,colorsPerPixel:"DeviceGray"===r?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,r=new Uint8Array(2*e),i=new DataView(r.buffer,r.byteOffset,r.byteLength),n=0;n<e;n++)i.setUint16(2*n,t[n],!1);return r}(e):e,needSMask:!1}}(A);var d,f,g,m=a,y=m.colorSpace,v=m.colorsPerPixel,b=m.sMaskBitsPerComponent,w=m.colorBytes,B=m.alphaBytes,x=m.needSMask,C=m.palette,E=m.mask,S=null;return i!==R.API.image_compression.NONE&&"function"==typeof n.$?(S=function(t){var e;switch(t){case R.API.image_compression.FAST:e=11;break;case R.API.image_compression.MEDIUM:e=13;break;case R.API.image_compression.SLOW:e=14;break;default:e=12}return e}(i),d=this.decode.FLATE_DECODE,f="/Predictor ".concat(S," /Colors ").concat(v," /BitsPerComponent ").concat(p," /Columns ").concat(l),t=qt(w,Math.ceil(l*v*p/8),v,p,i),x&&(g=qt(B,Math.ceil(l*b/8),1,b,i))):(d=void 0,f=void 0,t=w,x&&(g=B)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:r,data:t,index:e,filter:d,decodeParameters:f,transparency:E,palette:C,sMask:g,predictor:S,width:l,height:h,bitsPerComponent:p,sMaskBitsPerComponent:b,colorSpace:y}}},function(t){t.processGIF89A=function(e,r,i,n){var s=new ae(e),o=s.width,a=s.height,A=[];s.decodeAndBlitFrameRGBA(0,A);var l={data:A,width:o,height:a},h=new le(100).encode(l,100);return t.processJPEG.call(this,h,r,i,n)},t.processGIF87A=t.processGIF89A}(R.API),he.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 r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:i,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},he.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(t){l.log("bit decode error:"+t)}},he.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,n=0;n<e;n++)for(var s=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var A=this.palette[s>>7-a&1];this.data[o+4*a]=A.blue,this.data[o+4*a+1]=A.green,this.data[o+4*a+2]=A.red,this.data[o+4*a+3]=255}0!==r&&(this.pos+=4-r)}},he.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,n=0;n<t;n++){var s=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+2*n*4,a=s>>4,A=15&s,l=this.palette[a];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*n+1>=this.width)break;l=this.palette[A],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},he.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var n=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*i;if(n<this.palette.length){var o=this.palette[n];this.data[s]=o.red,this.data[s+1]=o.green,this.data[s+2]=o.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}0!==t&&(this.pos+=4-t)}},he.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,a=(s>>5&e)/e*255|0,A=(s>>10&e)/e*255|0,l=s>>15?255:0,h=i*this.width*4+4*n;this.data[h]=A,this.data[h+1]=a,this.data[h+2]=o,this.data[h+3]=l}this.pos+=t}},he.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var n=this.bottom_up?i:this.height-1-i,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,A=(o>>5&r)/r*255|0,l=(o>>11)/e*255|0,h=n*this.width*4+4*s;this.data[h]=l,this.data[h+1]=A,this.data[h+2]=a,this.data[h+3]=255}this.pos+=t}},he.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=s,this.data[o+1]=n,this.data[o+2]=i,this.data[o+3]=255}this.pos+=this.width%4}},he.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;this.data[a]=s,this.data[a+1]=n,this.data[a+2]=i,this.data[a+3]=o}},he.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,i,n){var s=new he(e,!1),o=s.width,a=s.height,A={data:s.getData(),width:o,height:a},l=new le(100).encode(A,100);return t.processJPEG.call(this,l,r,i,n)}}(R.API),ce.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,i,n){var s=new ce(e),o=s.width,a=s.height,A={data:s.getData(),width:o,height:a},l=new le(100).encode(A,100);return t.processJPEG.call(this,l,r,i,n)}}(R.API),R.API.processRGBA=function(t,e,r){for(var i=t.data,n=i.length,s=new Uint8Array(n/4*3),o=new Uint8Array(n/4),a=0,A=0,l=0;l<n;l+=4){var h=i[l],c=i[l+1],u=i[l+2],p=i[l+3];s[a++]=h,s[a++]=c,s[a++]=u,o[A++]=p}var d=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:d,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},R.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},Gt=R.API,zt=Gt.getCharWidthsArray=function(t,e){var r,n,s=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),A=e.widths?e.widths:s.metadata.Unicode.widths,l=A.fof?A.fof:1,h=e.kerning?e.kerning:s.metadata.Unicode.kerning,c=h.fof?h.fof:1,u=!1!==e.doKerning,p=0,d=t.length,f=0,g=A[0]||l,m=[];for(r=0;r<d;r++)n=t.charCodeAt(r),"function"==typeof s.metadata.widthOfString?m.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n))+a*(1e3/o)||0)/1e3):(p=u&&"object"===(0,i.A)(h[n])&&!isNaN(parseInt(h[n][f],10))?h[n][f]/c:0,m.push((A[n]||g)/l+p)),f=n;return m},Kt=Gt.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),i=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return Gt.processArabic&&(t=Gt.processArabic(t)),"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(t,r,n)/r:zt.apply(this,arguments).reduce(function(t,e){return t+e},0)},Wt=function(t,e,r,i){for(var n=[],s=0,o=t.length,a=0;s!==o&&a+e[s]<r;)a+=e[s],s++;n.push(t.slice(0,s));var A=s;for(a=0;s!==o;)a+e[s]>i&&(n.push(t.slice(A,s)),a=0,A=s),a+=e[s],s++;return A!==s&&n.push(t.slice(A,s)),n},Yt=function(t,e,r){r||(r={});var i,n,s,o,a,A,l,h=[],c=[h],u=r.textIndent||0,p=0,d=0,f=t.split(" "),g=zt.apply(this,[" ",r])[0];if(A=-1===r.lineIndent?f[0].length+2:r.lineIndent||0){var m=Array(A).join(" "),y=[];f.map(function(t){(t=t.split(/\s*\n/)).length>1?y=y.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):y.push(t[0])}),f=y,A=Kt.apply(this,[m,r])}for(s=0,o=f.length;s<o;s++){var v=0;if(i=f[s],A&&"\n"==i[0]&&(i=i.substr(1),v=1),u+p+(d=(n=zt.apply(this,[i,r])).reduce(function(t,e){return t+e},0))>e||v){if(d>e){for(a=Wt.apply(this,[i,n,e-(u+p),e]),h.push(a.shift()),h=[a.pop()];a.length;)c.push([a.shift()]);d=n.slice(i.length-(h[0]?h[0].length:0)).reduce(function(t,e){return t+e},0)}else h=[i];c.push(h),u=d+A,p=g}else h.push(i),u+=p+d,p=g}return l=A?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},c.map(l)},Gt.splitTextToSize=function(t,e,r){var i,n=(r=r||{}).fontSize||this.internal.getFontSize(),s=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),r="Unicode";return e.metadata[r]?{widths:e.metadata[r].widths||{0:1},kerning:e.metadata[r].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/n;s.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/n:0,s.lineIndent=r.lineIndent;var a,A,l=[];for(a=0,A=i.length;a<A;a++)l=l.concat(Yt.apply(this,[i[a],o,s]));return l},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",r="klmnopqrstuvwxyz",n={},s={},o=0;o<16;o++)n[r[o]]=e[o],s[e[o]]=r[o];var a=function(t){return"0x"+parseInt(t,10).toString(16)},A=t.__fontmetrics__.compress=function(t){var e,r,n,o,l=["{"];for(var h in t){if(e=t[h],isNaN(parseInt(h,10))?r="'"+h+"'":(h=parseInt(h,10),r=(r=a(h).slice(2)).slice(0,-1)+s[r.slice(-1)]),"number"==typeof e)e<0?(n=a(e).slice(3),o="-"):(n=a(e).slice(2),o=""),n=o+n.slice(0,-1)+s[n.slice(-1)];else{if("object"!==(0,i.A)(e))throw new Error("Don't know what to do with value type "+(0,i.A)(e)+".");n=A(e)}l.push(r+n)}return l.push("}"),l.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,s,o={},a=1,A=o,l=[],h="",c="",u=t.length-1,p=1;p<u;p+=1)"'"==(s=t[p])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(s):"{"==s?(l.push([A,i]),A={},i=void 0):"}"==s?((r=l.pop())[0][r[1]]=A,i=void 0,A=r[0]):"-"==s?a=-1:void 0===i?n.hasOwnProperty(s)?(h+=n[s],i=parseInt(h,16)*a,a=1,h=""):h+=s:n.hasOwnProperty(s)?(c+=n[s],A[i]=parseInt(c,16)*a,a=1,i=void 0,c=""):c+=s;return o},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},u={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,r=u.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var i=c.Unicode[e.postScriptName];i&&(e.metadata.Unicode.encoding=i,e.encoding=i.codePages[0])}])}(R.API),function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),i=0;i<e;i++)r[i]=t.charCodeAt(i);return r};t.API.events.push(["addFont",function(r){var i=void 0,n=r.font,s=r.instance;if(!n.isStandardFont){if(void 0===s)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(i=!1===s.existsFileInVFS(n.postScriptName)?s.loadFile(n.postScriptName):s.getFileFromVFS(n.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");!function(r,i){i=/^\x00\x01\x00\x00/.test(i)?e(i):e(f(i)),r.metadata=t.API.TTFFont.open(i),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(n,i)}}])}(R),R.API.addSvgAsImage=function(t,e,i,n,s,o,A,h){if(isNaN(e)||isNaN(i))throw l.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(s))throw l.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=n,c.height=s;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(a.canvg?Promise.resolve(a.canvg):r.e(143).then(r.bind(r,46143))).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(u,t,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(t){return t.render(p)}).then(function(){d.addImage(c.toDataURL("image/jpeg",1),e,i,n,s,A,h)})},R.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var n=0;n<this.internal.pages[i].length;n++)this.internal.pages[i][n]=this.internal.pages[i][n].replace(e,r);return this},R.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var n,s,o,a={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}},A=Object.keys(a),l=[],h=0,c=0,u=0;function p(t,e){var r,i=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var d=A.length;for(u=0;u<d;u+=1)r[A[u]].value=r[A[u]].defaultValue,r[A[u]].explicitSet=!1}if("object"===(0,i.A)(t))for(s in t)if(o=t[s],p(A,s)&&void 0!==o){if("boolean"===r[s].type&&"boolean"==typeof o)r[s].value=o;else if("name"===r[s].type&&p(r[s].valueSet,o))r[s].value=o;else if("integer"===r[s].type&&Number.isInteger(o))r[s].value=o;else if("array"===r[s].type){for(h=0;h<o.length;h+=1)if(n=!0,1===o[h].length&&"number"==typeof o[h][0])l.push(String(o[h]-1));else if(o[h].length>1){for(c=0;c<o[h].length;c+=1)"number"!=typeof o[h][c]&&(n=!1);!0===n&&l.push([o[h][0]-1,o[h][1]-1].join(" "))}r[s].value="["+l.join(" ")+"]"}else r[s].value=r[s].defaultValue;r[s].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},R.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",pe),this.internal.events.subscribe("postPutResources",ue)),this},function(t){var e=t.API,r=e.pdfEscape16=function(t,e){for(var r,i=e.metadata.Unicode.widths,n=["","0","00","000","0000"],s=[""],o=0,a=t.length;o<a;++o){if(r=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(o),-1==i.indexOf(r)&&(i.push(r),i.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"==r)return s.join("");r=r.toString(16),s.push(n[4-r.length],r)}return s.join("")},i=function(t){var e,r,i,n,s,o,a;for(s="/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",i=[],o=0,a=(r=Object.keys(t).sort(function(t,e){return t-e})).length;o<a;o++)e=r[o],i.length>=100&&(s+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(n=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),i.push("<"+e+"><"+n+">"));return i.length&&(s+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),s+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var r=e.font,n=e.out,s=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"Identity-H"===r.encoding){for(var a=r.metadata.Unicode.widths,A=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),l="",h=0;h<A.length;h++)l+=String.fromCharCode(A[h]);var c=s();o({data:l,addLength1:!0,objectId:c}),n("endobj");var u=s();o({data:i(r.metadata.toUnicode),addLength1:!0,objectId:u}),n("endobj");var p=s();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+N(r.fontName)),n("/FontFile2 "+c+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),n("/Flags "+r.metadata.flags),n("/StemV "+r.metadata.stemV),n("/ItalicAngle "+r.metadata.italicAngle),n("/Ascent "+r.metadata.ascender),n("/Descent "+r.metadata.decender),n("/CapHeight "+r.metadata.capHeight),n(">>"),n("endobj");var d=s();n("<<"),n("/Type /Font"),n("/BaseFont /"+N(r.fontName)),n("/FontDescriptor "+p+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+r.encoding+")"),n(">>"),n(">>"),n("endobj"),r.objectNumber=s(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+u+" 0 R"),n("/BaseFont /"+N(r.fontName)),n("/Encoding /"+r.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),r.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var r=e.font,n=e.out,s=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var a=r.metadata.rawData,A="",l=0;l<a.length;l++)A+=String.fromCharCode(a[l]);var h=s();o({data:A,addLength1:!0,objectId:h}),n("endobj");var c=s();o({data:i(r.metadata.toUnicode),addLength1:!0,objectId:c}),n("endobj");var u=s();n("<<"),n("/Descent "+r.metadata.decender),n("/CapHeight "+r.metadata.capHeight),n("/StemV "+r.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+h+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),n("/FontName /"+N(r.fontName)),n("/ItalicAngle "+r.metadata.italicAngle),n("/Ascent "+r.metadata.ascender),n(">>"),n("endobj"),r.objectNumber=s();for(var p=0;p<r.metadata.hmtx.widths.length;p++)r.metadata.hmtx.widths[p]=parseInt(r.metadata.hmtx.widths[p]*(1e3/r.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+c+" 0 R/BaseFont/"+N(r.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),n("endobj"),r.isAlreadyPutted=!0}}(e)}]);var n=function(t){var e,i=t.text||"",n=t.x,s=t.y,o=t.options||{},a=t.mutex||{},A=a.pdfEscape,l=a.activeFontKey,h=a.fonts,c=l,u="",p=0,d="",f=h[c].encoding;if("Identity-H"!==h[c].encoding)return{text:i,x:n,y:s,options:o,mutex:a};for(d=i,c=l,Array.isArray(i)&&(d=i[0]),p=0;p<d.length;p+=1)h[c].metadata.hasOwnProperty("cmap")&&(e=h[c].metadata.cmap.unicode.codeMap[d[p].charCodeAt(0)]),e||d[p].charCodeAt(0)<256&&h[c].metadata.hasOwnProperty("Unicode")?u+=d[p]:u+="";var g="";return parseInt(c.slice(1))<14||"WinAnsiEncoding"===f?g=A(u,c).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(g=r(u,h[c])),a.isHex=!0,{text:g,x:n,y:s,options:o,mutex:a}};e.events.push(["postProcessText",function(t){var e=t.text||"",r=[],i={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var s=0;for(s=0;s<e.length;s+=1)Array.isArray(e[s])&&3===e[s].length?r.push([n(Object.assign({},i,{text:e[s][0]})).text,e[s][1],e[s][2]]):r.push(n(Object.assign({},i,{text:e[s]})).text);t.text=r}else t.text=n(Object.assign({},i,{text:e})).text}])}(R),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,r){return e.call(this),this.internal.vFS[t]=r,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(R.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,i,n,s,o,a,A,l=e,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=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)$/),g=!1,m=0;this.__bidiEngine__={};var y=function(t){var e=t.charCodeAt(),r=e>>8,i=p[r];return void 0!==i?l[256*i+(255&e)]:252===r||253===r?"AL":f.test(r)?"L":8===r?"R":"N"},v=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=y(t.charAt(r))))return!1;if("R"===e)return!0}return!1},b=function(t,e,o,a){var A,l,h,c,u=e[a];switch(u){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(u="AN");break;case"AL":g=!0,u="R";break;case"WS":case"BN":u="N";break;case"CS":a<1||a+1>=e.length||"EN"!==(A=o[a-1])&&"AN"!==A||"EN"!==(l=e[a+1])&&"AN"!==l?u="N":g&&(l="AN"),u=l===A?l:"N";break;case"ES":u="EN"===(A=a>0?o[a-1]:"B")&&a+1<e.length&&"EN"===e[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===o[a-1]){u="EN";break}if(g){u="N";break}for(h=a+1,c=e.length;h<c&&"ET"===e[h];)h++;u=h<c&&"EN"===e[h]?"EN":"N";break;case"NSM":if(n&&!s){for(c=e.length,h=a+1;h<c&&"NSM"===e[h];)h++;if(h<c){var p=t[a],d=p>=1425&&p<=2303||64286===p;if(A=e[h],d&&("R"===A||"AL"===A)){u="R";break}}}u=a<1||"B"===(A=e[a-1])?"N":o[a-1];break;case"B":g=!1,r=!0,u=m;break;case"S":i=!0,u="N"}return u},w=function(t,e,r){var i=t.split("");return r&&B(i,r,{hiLevel:m}),i.reverse(),e&&e.reverse(),i.join("")},B=function(t,e,n){var s,o,a,A,l,p=-1,d=t.length,f=0,v=[],w=m?c:h,B=[];for(g=!1,r=!1,i=!1,o=0;o<d;o++)B[o]=y(t[o]);for(a=0;a<d;a++){if(l=f,v[a]=b(t,B,v,a),s=240&(f=w[l][u[v[a]]]),f&=15,e[a]=A=w[f][5],s>0)if(16===s){for(o=p;o<a;o++)e[o]=1;p=-1}else p=-1;if(w[f][6])-1===p&&(p=a);else if(p>-1){for(o=p;o<a;o++)e[o]=A;p=-1}"B"===B[a]&&(e[a]=0),n.hiLevel|=A}i&&function(t,e,r){for(var i=0;i<r;i++)if("S"===t[i]){e[i]=m;for(var n=i-1;n>=0&&"WS"===t[n];n--)e[n]=m}}(B,e,d)},x=function(t,e,i,n,s){if(!(s.hiLevel<t)){if(1===t&&1===m&&!r)return e.reverse(),void(i&&i.reverse());for(var o,a,A,l,h=e.length,c=0;c<h;){if(n[c]>=t){for(A=c+1;A<h&&n[A]>=t;)A++;for(l=c,a=A-1;l<a;l++,a--)o=e[l],e[l]=e[a],e[a]=o,i&&(o=i[l],i[l]=i[a],i[a]=o);c=A}c++}}},C=function(t,e,r){var i=t.split(""),n={hiLevel:m};return r||(r=[]),B(i,r,n),function(t,e,r){if(0!==r.hiLevel&&A)for(var i,n=0;n<t.length;n++)1===e[n]&&(i=d.indexOf(t[n]))>=0&&(t[n]=d[i+1])}(i,r,n),x(2,i,e,r,n),x(1,i,e,r,n),i.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===s&&(s=v(t)),void 0===a&&(a=v(t))}(t,e),n||!o||a)if(n&&o&&s^a)m=s?1:0,t=w(t,e,r);else if(!n&&o&&a)m=s?1:0,t=C(t,e,r),t=w(t,e);else if(!n||s||o||a){if(n&&!o&&s^a)t=w(t,e),s?(m=0,t=C(t,e,r)):(m=1,t=C(t,e,r),t=w(t,e));else if(n&&s&&!o&&a)m=1,t=C(t,e,r),t=w(t,e);else if(!n&&!o&&s^a){var i=A;s?(m=1,t=C(t,e,r),m=0,A=!1,t=C(t,e,r),A=i):(m=0,t=C(t,e,r),t=w(t,e),m=1,A=!1,t=C(t,e,r),A=i,t=w(t,e))}}else m=0,t=C(t,e,r);else m=s?1:0,t=C(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(n=t.isInputVisual,o=t.isOutputVisual,s=t.isInputRtl,a=t.isOutputRtl,A=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"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var i=t.options||{};t.mutex,i.lang;var n=[];if(i.isInputVisual="boolean"!=typeof i.isInputVisual||i.isInputVisual,r.setOptions(i),"[object Array]"===Object.prototype.toString.call(e)){var s=0;for(n=[],s=0;s<e.length;s+=1)"[object Array]"===Object.prototype.toString.call(e[s])?n.push([r.doBidiReorder(e[s][0]),e[s][1],e[s][2]]):n.push([r.doBidiReorder(e[s])]);t.text=n}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])}(R),R.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new fe(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Ne(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new ge(this.contents),this.head=new ve(this),this.name=new Se(this),this.cmap=new we(this),this.toUnicode={},this.hhea=new Be(this),this.maxp=new Fe(this),this.hmtx=new Te(this),this.post=new Ce(this),this.os2=new xe(this),this.loca=new Pe(this),this.glyf=new _e(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,i,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,i,n;for(n=[],e=0,r=(i=this.bbox).length;e<r;e++)t=i[e],n.push(Math.round(t*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(e=i>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,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,r){var i,n,s,o;for(s=0,n=0,o=(t=""+t).length;0<=o?n<o:n>o;n=0<=o?++n:--n)i=t.charCodeAt(n),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/e)||0;return s*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var de,fe=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,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,i;for(i=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,i,n,s,o,a;return t=this.readByte(),e=this.readByte(),r=this.readByte(),i=this.readByte(),n=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^n)+65536*(255^s)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*i+16777216*n+65536*s+256*o+a},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,i,n;for(n=[],r=0,i=t.length;r<i;r++)e=t[r],n.push(this.writeByte(e));return n},t}(),ge=function(){var t;function e(t){var e,r,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,i=this.tableCount;0<=i?r<i:r>i;r=0<=i?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,i,n,s,o,a,A,l,h,c,u,p,d;for(d in u=Object.keys(e).length,a=Math.log(2),h=16*Math.floor(Math.log(u)/a),s=Math.floor(h/a),l=16*u-h,(i=new fe).writeInt(this.scalarType),i.writeShort(u),i.writeShort(h),i.writeShort(s),i.writeShort(l),n=16*u,A=i.pos+n,o=null,p=[],e)for(c=e[d],i.writeString(d),i.writeInt(t(c)),i.writeInt(A),i.writeInt(c.length),p=p.concat(c),"head"===d&&(o=A),A+=c.length;A%4;)p.push(0),A++;return i.write(p),r=2981146554-t(i.data),i.pos=o+8,i.writeUInt32(r),i.data},t=function(t){var e,r,i,n;for(t=Ie.call(t);t.length%4;)t.push(0);for(i=new fe(t),r=0,e=0,n=t.length;e<n;e=e+=4)r+=i.readUInt32();return 4294967295&r},e}(),me={}.hasOwnProperty,ye=function(t,e){for(var r in e)me.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};de=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 ve=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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 fe).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}(),be=function(){function t(t,e){var r,i,n,s,o,a,A,l,h,c,u,p,d,f,g,m,y;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),h=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(a=0;a<256;++a)this.codeMap[a]=t.readByte();break;case 4:for(u=t.readUInt16(),c=u/2,t.pos+=6,n=function(){var e,r;for(r=[],a=e=0;0<=c?e<c:e>c;a=0<=c?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,d=function(){var e,r;for(r=[],a=e=0;0<=c?e<c:e>c;a=0<=c?++e:--e)r.push(t.readUInt16());return r}(),A=function(){var e,r;for(r=[],a=e=0;0<=c?e<c:e>c;a=0<=c?++e:--e)r.push(t.readUInt16());return r}(),l=function(){var e,r;for(r=[],a=e=0;0<=c?e<c:e>c;a=0<=c?++e:--e)r.push(t.readUInt16());return r}(),i=(this.length-t.pos+this.offset)/2,o=function(){var e,r;for(r=[],a=e=0;0<=i?e<i:e>i;a=0<=i?++e:--e)r.push(t.readUInt16());return r}(),a=g=0,y=n.length;g<y;a=++g)for(f=n[a],r=m=p=d[a];p<=f?m<=f:m>=f;r=p<=f?++m:--m)0===l[a]?s=r+A[a]:0!==(s=o[l[a]/2+(r-p)-(c-a)]||0)&&(s+=A[a]),this.codeMap[r]=65535&s}t.pos=h}return t.encode=function(t,e){var r,i,n,s,o,a,A,l,h,c,u,p,d,f,g,m,y,v,b,w,B,x,C,E,S,F,T,I,_,k,L,P,N,D,M,O,U,Q,R,H,j,V,G,z,K,W;switch(I=new fe,s=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(d=0,f=function(){var t=[];for(p=0;p<256;++p)t.push(0);return t}(),m={0:0},n={},_=0,N=s.length;_<N;_++)null==m[G=t[i=s[_]]]&&(m[G]=++d),n[i]={old:t[i],new:m[t[i]]},f[i]=m[t[i]];return I.writeUInt16(1),I.writeUInt16(0),I.writeUInt32(12),I.writeUInt16(0),I.writeUInt16(262),I.writeUInt16(0),I.write(f),{charMap:n,subtable:I.data,maxGlyphID:d+1};case"unicode":for(F=[],h=[],y=0,m={},r={},g=A=null,k=0,D=s.length;k<D;k++)null==m[b=t[i=s[k]]]&&(m[b]=++y),r[i]={old:b,new:m[b]},o=m[b]-i,null!=g&&o===A||(g&&h.push(g),F.push(i),A=o),g=i;for(g&&h.push(g),h.push(65535),F.push(65535),E=2*(C=F.length),x=2*Math.pow(Math.log(C)/Math.LN2,2),c=Math.log(x/2)/Math.LN2,B=2*C-x,a=[],w=[],u=[],p=L=0,M=F.length;L<M;p=++L){if(S=F[p],l=h[p],65535===S){a.push(0),w.push(0);break}if(S-(T=r[S].new)>=32768)for(a.push(0),w.push(2*(u.length+C-p)),i=P=S;S<=l?P<=l:P>=l;i=S<=l?++P:--P)u.push(r[i].new);else a.push(T-S),w.push(0)}for(I.writeUInt16(3),I.writeUInt16(1),I.writeUInt32(12),I.writeUInt16(4),I.writeUInt16(16+8*C+2*u.length),I.writeUInt16(0),I.writeUInt16(E),I.writeUInt16(x),I.writeUInt16(c),I.writeUInt16(B),j=0,O=h.length;j<O;j++)i=h[j],I.writeUInt16(i);for(I.writeUInt16(0),V=0,U=F.length;V<U;V++)i=F[V],I.writeUInt16(i);for(z=0,Q=a.length;z<Q;z++)o=a[z],I.writeUInt16(o);for(K=0,R=w.length;K<R;K++)v=w[K],I.writeUInt16(v);for(W=0,H=u.length;W<H;W++)d=u[W],I.writeUInt16(d);return{charMap:r,subtable:I.data,maxGlyphID:y+1}}},t}(),we=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)e=new be(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,i;return null==e&&(e="macroman"),r=be.encode(t,e),(i=new fe).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},t}(),Be=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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}(),xe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),Ce=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(r=t.readUInt16(),this.glyphNameIndex=[],n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=function(){var e,r,i;for(i=[],n=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;n=0<=r?++e:--e)i.push(t.readUInt32());return i}.call(this)}},t}(),Ee=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Se=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,i,n,s,o,a,A,l,h,c;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},n=l=0,h=r.length;l<h;n=++l)i=r[n],t.pos=i.offset,A=t.readString(i.length),s=new Ee(A,i),null==a[c=i.nameID]&&(a[c]=[]),a[i.nameID].push(s);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},t}(),Fe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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}(),Te=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,r,i,n,s,o,a;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,n;for(n=[],e=r=0;0<=i?r<i:r>i;e=0<=i?++r:--r)n.push(t.readInt16());return n}(),this.widths=function(){var t,e,r,i;for(i=[],t=0,e=(r=this.metrics).length;t<e;t++)n=r[t],i.push(n.advance);return i}.call(this),r=this.widths[this.widths.length-1],a=[],e=s=0;0<=i?s<i:s>i;e=0<=i?++s:--s)a.push(this.widths.push(r));return a},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}(),Ie=[].slice,_e=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,i,n,s,o,a,A,l,h;return t in this.cache?this.cache[t]:(n=this.file.loca,e=this.file.contents,r=n.indexOf(t),0===(i=n.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,s=(o=new fe(e.read(i))).readShort(),A=o.readShort(),h=o.readShort(),a=o.readShort(),l=o.readShort(),this.cache[t]=-1===s?new Le(o,A,h,a,l):new ke(o,s,A,h,a,l),this.cache[t]))},t.prototype.encode=function(t,e,r){var i,n,s,o,a;for(s=[],n=[],o=0,a=e.length;o<a;o++)i=t[e[o]],n.push(s.length),i&&(s=s.concat(i.encode(r)));return n.push(s.length),{table:s,offsets:n}},t}(),ke=function(){function t(t,e,r,i,n,s){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=i,this.xMax=n,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Le=function(){function t(t,e,r,i,n){var s,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=i,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return t.prototype.encode=function(){var t,e,r;for(e=new fe(Ie.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Pe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="loca",t.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,i;for(i=[],r=0,e=this.length;r<e;r+=2)i.push(2*t.readUInt16());return i}.call(this):function(){var e,i;for(i=[],r=0,e=this.length;r<e;r+=4)i.push(t.readUInt32());return i}.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 r=new Uint32Array(this.offsets.length),i=0,n=0,s=0;s<r.length;++s)if(r[s]=i,n<e.length&&e[n]==s){++n,r[s]=i;var o=this.offsets[s],a=this.offsets[s+1]-o;a>0&&(i+=a)}for(var A=new Array(4*r.length),l=0;l<r.length;++l)A[4*l+3]=255&r[l],A[4*l+2]=(65280&r[l])>>8,A[4*l+1]=(16711680&r[l])>>16,A[4*l]=(4278190080&r[l])>>24;return A},t}(),Ne=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,i,n;for(e in i=this.font.cmap.tables[0].codeMap,t={},n=this.subset)r=n[e],t[e]=i[r];return t},t.prototype.glyphsFor=function(t){var e,r,i,n,s,o,a;for(i={},s=0,o=t.length;s<o;s++)i[n=t[s]]=this.font.glyf.glyphFor(n);for(n in e=[],i)(null!=(r=i[n])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(n in a=this.glyphsFor(e))r=a[n],i[n]=r;return i},t.prototype.encode=function(t,e){var r,i,n,s,o,a,A,l,h,c,u,p,d,f,g;for(i in r=we.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),u={0:0},g=r.charMap)u[(a=g[i]).old]=a.new;for(p in c=r.maxGlyphID,s)p in u||(u[p]=c++);return l=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(u),h=Object.keys(l).sort(function(t,e){return t-e}),d=function(){var t,e,r;for(r=[],t=0,e=h.length;t<e;t++)o=h[t],r.push(l[o]);return r}(),n=this.font.glyf.encode(s,d,u),A=this.font.loca.encode(n.offsets,d),f={cmap:this.font.cmap.raw(),glyf:n.table,loca:A,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&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},t}();R.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var i,n,s,o;if(Array.isArray(r))return"["+function(){var t,n,s;for(s=[],t=0,n=r.length;t<n;t++)i=r[t],s.push(e.convert(i));return s}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(n in s=["<<"],r)o=r[n],s.push("/"+n+" "+e.convert(o));return s.push(">>"),s.join("\n")}return""+r},e}()},66546(t,e,r){"use strict";function i(t){this.message=t}r.d(e,{A:()=>a}),i.prototype=new Error,i.prototype.name="InvalidCharacterError";var n="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,s=0,o=0,a="";n=e.charAt(o++);~n&&(r=s%4?64*r+n:n,s++%4)?a+=String.fromCharCode(255&r>>(-2*s&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function s(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(n(t).replace(/(.)/g,function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(e)}catch(t){return n(e)}}function o(t){this.message=t}o.prototype=new Error,o.prototype.name="InvalidTokenError";const a=function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(s(t.split(".")[r]))}catch(t){throw new o("Invalid token specified: "+t.message)}}},63850(t){var e=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,o="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,a="object"==typeof self&&self&&self.Object===Object&&self,A=o||a||Function("return this")(),l=Object.prototype.toString,h=Math.max,c=Math.min,u=function(){return A.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function d(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(p(t)){var o="function"==typeof t.valueOf?t.valueOf():t;t=p(o)?o+"":o}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=i.test(t);return a||n.test(t)?s(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,r){var i,n,s,o,a,A,l=0,f=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=i,s=n;return i=n=void 0,l=e,o=t.apply(s,r)}function v(t){var r=t-A;return void 0===A||r>=e||r<0||g&&t-l>=s}function b(){var t=u();if(v(t))return w(t);a=setTimeout(b,function(t){var r=e-(t-A);return g?c(r,s-(t-l)):r}(t))}function w(t){return a=void 0,m&&i?y(t):(i=n=void 0,o)}function B(){var t=u(),r=v(t);if(i=arguments,n=this,A=t,r){if(void 0===a)return function(t){return l=t,a=setTimeout(b,e),f?y(t):o}(A);if(g)return a=setTimeout(b,e),y(A)}return void 0===a&&(a=setTimeout(b,e)),o}return e=d(e)||0,p(r)&&(f=!!r.leading,s=(g="maxWait"in r)?h(d(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),B.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=A=n=a=void 0},B.flush=function(){return void 0===a?o:w(u())},B}},56869(t,e,r){var i=r(45201)(r(91736),"DataView");t.exports=i},5748(t,e,r){var i=r(14319),n=r(85931),s=r(31914),o=r(78670),a=r(6646);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}A.prototype.clear=i,A.prototype.delete=n,A.prototype.get=s,A.prototype.has=o,A.prototype.set=a,t.exports=A},89819(t,e,r){var i=r(21481),n=r(61808);function s(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}s.prototype=i(n.prototype),s.prototype.constructor=s,t.exports=s},14296(t,e,r){var i=r(30651),n=r(73919),s=r(10830),o=r(60794),a=r(4642);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}A.prototype.clear=i,A.prototype.delete=n,A.prototype.get=s,A.prototype.has=o,A.prototype.set=a,t.exports=A},42958(t,e,r){var i=r(21481),n=r(61808);function s(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}s.prototype=i(n.prototype),s.prototype.constructor=s,t.exports=s},4292(t,e,r){var i=r(45201)(r(91736),"Map");t.exports=i},98464(t,e,r){var i=r(96771),n=r(70295),s=r(27462),o=r(81410),a=r(90842);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}A.prototype.clear=i,A.prototype.delete=n,A.prototype.get=s,A.prototype.has=o,A.prototype.set=a,t.exports=A},2715(t,e,r){var i=r(45201)(r(91736),"Promise");t.exports=i},86646(t,e,r){var i=r(45201)(r(91736),"Set");t.exports=i},84870(t,e,r){var i=r(98464),n=r(22611),s=r(73984);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new i;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=n,o.prototype.has=s,t.exports=o},51410(t,e,r){var i=r(14296),n=r(66897),s=r(54726),o=r(93760),a=r(16228),A=r(10468);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=o,l.prototype.has=a,l.prototype.set=A,t.exports=l},25572(t,e,r){var i=r(91736).Symbol;t.exports=i},52769(t,e,r){var i=r(91736).Uint8Array;t.exports=i},96696(t,e,r){var i=r(45201)(r(91736),"WeakMap");t.exports=i},91442(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},73190(t){t.exports=function(t,e,r,i){for(var n=-1,s=null==t?0:t.length;++n<s;){var o=t[n];e(i,o,r(o),t)}return i}},69542(t){t.exports=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}},12908(t){t.exports=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}},73001(t){t.exports=function(t,e){for(var r=-1,i=null==t?0:t.length,n=0,s=[];++r<i;){var o=t[r];e(o,r,t)&&(s[n++]=o)}return s}},19338(t,e,r){var i=r(71908);t.exports=function(t,e){return!(null==t||!t.length)&&i(t,e,0)>-1}},45318(t){t.exports=function(t,e,r){for(var i=-1,n=null==t?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}},51684(t,e,r){var i=r(7967),n=r(64201),s=r(96628),o=r(77103),a=r(51258),A=r(68276),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=s(t),h=!r&&n(t),c=!r&&!h&&o(t),u=!r&&!h&&!c&&A(t),p=r||h||c||u,d=p?i(t.length,String):[],f=d.length;for(var g in t)!e&&!l.call(t,g)||p&&("length"==g||c&&("offset"==g||"parent"==g)||u&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,f))||d.push(g);return d}},39221(t){t.exports=function(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}},78255(t){t.exports=function(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}},86587(t){t.exports=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}},52351(t){t.exports=function(t){return t.split("")}},14220(t,e,r){var i=r(9935),n=r(38763);t.exports=function(t,e,r){(void 0!==r&&!n(t[e],r)||void 0===r&&!(e in t))&&i(t,e,r)}},60484(t,e,r){var i=r(9935),n=r(38763),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var o=t[e];s.call(t,e)&&n(o,r)&&(void 0!==r||e in t)||i(t,e,r)}},65996(t,e,r){var i=r(38763);t.exports=function(t,e){for(var r=t.length;r--;)if(i(t[r][0],e))return r;return-1}},26344(t,e,r){var i=r(82020);t.exports=function(t,e,r,n){return i(t,function(t,i,s){e(n,t,r(t),s)}),n}},5264(t,e,r){var i=r(84534),n=r(86353);t.exports=function(t,e){return t&&i(e,n(e),t)}},67903(t,e,r){var i=r(84534),n=r(93562);t.exports=function(t,e){return t&&i(e,n(e),t)}},9935(t,e,r){var i=r(32582);t.exports=function(t,e,r){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},60444(t,e,r){var i=r(51410),n=r(69542),s=r(60484),o=r(5264),a=r(67903),A=r(10481),l=r(20380),h=r(86735),c=r(67939),u=r(20979),p=r(57856),d=r(55804),f=r(85292),g=r(58262),m=r(73798),y=r(96628),v=r(77103),b=r(85487),w=r(97230),B=r(39601),x=r(86353),C=r(93562),E="[object Arguments]",S="[object Function]",F="[object Object]",T={};T[E]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[F]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[S]=T["[object WeakMap]"]=!1,t.exports=function t(e,r,I,_,k,L){var P,N=1&r,D=2&r,M=4&r;if(I&&(P=k?I(e,_,k,L):I(e)),void 0!==P)return P;if(!w(e))return e;var O=y(e);if(O){if(P=f(e),!N)return l(e,P)}else{var U=d(e),Q=U==S||"[object GeneratorFunction]"==U;if(v(e))return A(e,N);if(U==F||U==E||Q&&!k){if(P=D||Q?{}:m(e),!N)return D?c(e,a(P,e)):h(e,o(P,e))}else{if(!T[U])return k?e:{};P=g(e,U,N)}}L||(L=new i);var R=L.get(e);if(R)return R;L.set(e,P),B(e)?e.forEach(function(i){P.add(t(i,r,I,i,e,L))}):b(e)&&e.forEach(function(i,n){P.set(n,t(i,r,I,n,e,L))});var H=O?void 0:(M?D?p:u:D?C:x)(e);return n(H||e,function(i,n){H&&(i=e[n=i]),s(P,n,t(i,r,I,n,e,L))}),P}},21481(t,e,r){var i=r(97230),n=Object.create,s=function(){function t(){}return function(e){if(!i(e))return{};if(n)return n(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=s},82020(t,e,r){var i=r(93880),n=r(67636)(i);t.exports=n},17210(t,e,r){var i=r(82020);t.exports=function(t,e){var r=!0;return i(t,function(t,i,n){return r=!!e(t,i,n)}),r}},69587(t,e,r){var i=r(82020);t.exports=function(t,e){var r=[];return i(t,function(t,i,n){e(t,i,n)&&r.push(t)}),r}},86424(t){t.exports=function(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}},34403(t,e,r){var i=r(78255),n=r(62892);t.exports=function t(e,r,s,o,a){var A=-1,l=e.length;for(s||(s=n),a||(a=[]);++A<l;){var h=e[A];r>0&&s(h)?r>1?t(h,r-1,s,o,a):i(a,h):o||(a[a.length]=h)}return a}},19810(t,e,r){var i=r(70034)();t.exports=i},93880(t,e,r){var i=r(19810),n=r(86353);t.exports=function(t,e){return t&&i(t,e,n)}},85049(t,e,r){var i=r(46476),n=r(20018);t.exports=function(t,e){for(var r=0,s=(e=i(e,t)).length;null!=t&&r<s;)t=t[n(e[r++])];return r&&r==s?t:void 0}},18614(t,e,r){var i=r(78255),n=r(96628);t.exports=function(t,e,r){var s=e(t);return n(t)?s:i(s,r(t))}},98561(t,e,r){var i=r(25572),n=r(18504),s=r(31567),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?n(t):s(t)}},19142(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},71908(t,e,r){var i=r(86424),n=r(80148),s=r(23092);t.exports=function(t,e,r){return e==e?s(t,e,r):i(t,n,r)}},83465(t,e,r){var i=r(98561),n=r(28089);t.exports=function(t){return n(t)&&"[object Arguments]"==i(t)}},14877(t,e,r){var i=r(38527),n=r(28089);t.exports=function t(e,r,s,o,a){return e===r||(null==e||null==r||!n(e)&&!n(r)?e!=e&&r!=r:i(e,r,s,o,t,a))}},38527(t,e,r){var i=r(51410),n=r(5988),s=r(98611),o=r(1608),a=r(55804),A=r(96628),l=r(77103),h=r(68276),c="[object Arguments]",u="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,f,g,m){var y=A(t),v=A(e),b=y?u:a(t),w=v?u:a(e),B=(b=b==c?p:b)==p,x=(w=w==c?p:w)==p,C=b==w;if(C&&l(t)){if(!l(e))return!1;y=!0,B=!1}if(C&&!B)return m||(m=new i),y||h(t)?n(t,e,r,f,g,m):s(t,e,b,r,f,g,m);if(!(1&r)){var E=B&&d.call(t,"__wrapped__"),S=x&&d.call(e,"__wrapped__");if(E||S){var F=E?t.value():t,T=S?e.value():e;return m||(m=new i),g(F,T,r,f,m)}}return!!C&&(m||(m=new i),o(t,e,r,f,g,m))}},9839(t,e,r){var i=r(55804),n=r(28089);t.exports=function(t){return n(t)&&"[object Map]"==i(t)}},36084(t,e,r){var i=r(51410),n=r(14877);t.exports=function(t,e,r,s){var o=r.length,a=o,A=!s;if(null==t)return!a;for(t=Object(t);o--;){var l=r[o];if(A&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var h=(l=r[o])[0],c=t[h],u=l[1];if(A&&l[2]){if(void 0===c&&!(h in t))return!1}else{var p=new i;if(s)var d=s(c,u,h,t,e,p);if(!(void 0===d?n(u,c,3,s,p):d))return!1}}return!0}},80148(t){t.exports=function(t){return t!=t}},70986(t,e,r){var i=r(65085),n=r(29617),s=r(97230),o=r(9716),a=/^\[object .+?Constructor\]$/,A=Function.prototype,l=Object.prototype,h=A.toString,c=l.hasOwnProperty,u=RegExp("^"+h.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||n(t))&&(i(t)?u:a).test(o(t))}},27217(t,e,r){var i=r(55804),n=r(28089);t.exports=function(t){return n(t)&&"[object Set]"==i(t)}},3924(t,e,r){var i=r(98561),n=r(33341),s=r(28089),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&n(t.length)&&!!o[i(t)]}},55992(t,e,r){var i=r(71176),n=r(80229),s=r(1007),o=r(96628),a=r(79564);t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?o(t)?n(t[0],t[1]):i(t):a(t)}},41009(t,e,r){var i=r(95804),n=r(54407),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return n(t);var e=[];for(var r in Object(t))s.call(t,r)&&"constructor"!=r&&e.push(r);return e}},58458(t,e,r){var i=r(97230),n=r(95804),s=r(48716),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return s(t);var e=n(t),r=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&r.push(a);return r}},61808(t){t.exports=function(){}},75059(t,e,r){var i=r(82020),n=r(72059);t.exports=function(t,e){var r=-1,s=n(t)?Array(t.length):[];return i(t,function(t,i,n){s[++r]=e(t,i,n)}),s}},71176(t,e,r){var i=r(36084),n=r(15157),s=r(4382);t.exports=function(t){var e=n(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||i(r,t,e)}}},80229(t,e,r){var i=r(14877),n=r(32249),s=r(5830),o=r(5749),a=r(50265),A=r(4382),l=r(20018);t.exports=function(t,e){return o(t)&&a(e)?A(l(t),e):function(r){var o=n(r,t);return void 0===o&&o===e?s(r,t):i(e,o,3)}}},22725(t,e,r){var i=r(51410),n=r(14220),s=r(19810),o=r(2887),a=r(97230),A=r(93562),l=r(2169);t.exports=function t(e,r,h,c,u){e!==r&&s(r,function(s,A){if(u||(u=new i),a(s))o(e,r,A,h,t,c,u);else{var p=c?c(l(e,A),s,A+"",e,r,u):void 0;void 0===p&&(p=s),n(e,A,p)}},A)}},2887(t,e,r){var i=r(14220),n=r(10481),s=r(78534),o=r(20380),a=r(73798),A=r(64201),l=r(96628),h=r(81856),c=r(77103),u=r(65085),p=r(97230),d=r(23506),f=r(68276),g=r(2169),m=r(58089);t.exports=function(t,e,r,y,v,b,w){var B=g(t,r),x=g(e,r),C=w.get(x);if(C)i(t,r,C);else{var E=b?b(B,x,r+"",t,e,w):void 0,S=void 0===E;if(S){var F=l(x),T=!F&&c(x),I=!F&&!T&&f(x);E=x,F||T||I?l(B)?E=B:h(B)?E=o(B):T?(S=!1,E=n(x,!0)):I?(S=!1,E=s(x,!0)):E=[]:d(x)||A(x)?(E=B,A(B)?E=m(B):p(B)&&!u(B)||(E=a(x))):S=!1}S&&(w.set(x,E),v(E,x,y,b,w),w.delete(x)),i(t,r,E)}}},99528(t,e,r){var i=r(39221),n=r(85049),s=r(55992),o=r(75059),a=r(79920),A=r(36390),l=r(55925),h=r(1007),c=r(96628);t.exports=function(t,e,r){e=e.length?i(e,function(t){return c(t)?function(e){return n(e,1===t.length?t[0]:t)}:t}):[h];var u=-1;e=i(e,A(s));var p=o(t,function(t,r,n){return{criteria:i(e,function(e){return e(t)}),index:++u,value:t}});return a(p,function(t,e){return l(t,e,r)})}},36364(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},71986(t,e,r){var i=r(85049);t.exports=function(t){return function(e){return i(e,t)}}},74959(t,e,r){var i=r(1007),n=r(12036),s=r(55806);t.exports=function(t,e){return s(n(t,e,i),t+"")}},35421(t,e,r){var i=r(60484),n=r(46476),s=r(51258),o=r(97230),a=r(20018);t.exports=function(t,e,r,A){if(!o(t))return t;for(var l=-1,h=(e=n(e,t)).length,c=h-1,u=t;null!=u&&++l<h;){var p=a(e[l]),d=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(l!=c){var f=u[p];void 0===(d=A?A(f,p,u):void 0)&&(d=o(f)?f:s(e[l+1])?[]:{})}i(u,p,d),u=u[p]}return t}},83549(t,e,r){var i=r(1007),n=r(43011),s=n?function(t,e){return n.set(t,e),t}:i;t.exports=s},3317(t,e,r){var i=r(7965),n=r(32582),s=r(1007),o=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:s;t.exports=o},30495(t){t.exports=function(t,e,r){var i=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(n);++i<n;)s[i]=t[i+e];return s}},79920(t){t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},76982(t){t.exports=function(t,e){for(var r,i=-1,n=t.length;++i<n;){var s=e(t[i]);void 0!==s&&(r=void 0===r?s:r+s)}return r}},7967(t){t.exports=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}},75293(t,e,r){var i=r(25572),n=r(39221),s=r(96628),o=r(83089),a=i?i.prototype:void 0,A=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return n(e,t)+"";if(o(e))return A?A.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},29605(t,e,r){var i=r(49327),n=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(n,""):t}},36390(t){t.exports=function(t){return function(e){return t(e)}}},97936(t,e,r){var i=r(84870),n=r(19338),s=r(45318),o=r(39506),a=r(72454),A=r(57850);t.exports=function(t,e,r){var l=-1,h=n,c=t.length,u=!0,p=[],d=p;if(r)u=!1,h=s;else if(c>=200){var f=e?null:a(t);if(f)return A(f);u=!1,h=o,d=new i}else d=e?[]:p;t:for(;++l<c;){var g=t[l],m=e?e(g):g;if(g=r||0!==g?g:0,u&&m==m){for(var y=d.length;y--;)if(d[y]===m)continue t;e&&d.push(m),p.push(g)}else h(d,m,r)||(d!==p&&d.push(m),p.push(g))}return p}},1116(t,e,r){var i=r(46476),n=r(10017),s=r(42940),o=r(20018),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=-1,A=(e=i(e,t)).length;if(!A)return!0;for(var l=null==t||"object"!=typeof t&&"function"!=typeof t;++r<A;){var h=e[r];if("string"==typeof h){if("__proto__"===h&&!a.call(t,"__proto__"))return!1;if("constructor"===h&&r+1<A&&"string"==typeof e[r+1]&&"prototype"===e[r+1]){if(l&&0===r)continue;return!1}}}var c=s(t,e);return null==c||delete c[o(n(e))]}},39506(t){t.exports=function(t,e){return t.has(e)}},46476(t,e,r){var i=r(96628),n=r(5749),s=r(71951),o=r(55805);t.exports=function(t,e){return i(t)?t:n(t,e)?[t]:s(o(t))}},46189(t,e,r){var i=r(30495);t.exports=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:i(t,e,r)}},34428(t,e,r){var i=r(52769);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},10481(t,e,r){t=r.nmd(t);var i=r(91736),n=e&&!e.nodeType&&e,s=n&&t&&!t.nodeType&&t,o=s&&s.exports===n?i.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,i=a?a(r):new t.constructor(r);return t.copy(i),i}},88454(t,e,r){var i=r(34428);t.exports=function(t,e){var r=e?i(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},27202(t){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},48687(t,e,r){var i=r(25572),n=i?i.prototype:void 0,s=n?n.valueOf:void 0;t.exports=function(t){return s?Object(s.call(t)):{}}},78534(t,e,r){var i=r(34428);t.exports=function(t,e){var r=e?i(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},73895(t,e,r){var i=r(83089);t.exports=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,s=t==t,o=i(t),a=void 0!==e,A=null===e,l=e==e,h=i(e);if(!A&&!h&&!o&&t>e||o&&a&&l&&!A&&!h||n&&a&&l||!r&&l||!s)return 1;if(!n&&!o&&!h&&t<e||h&&r&&s&&!n&&!o||A&&r&&s||!a&&s||!l)return-1}return 0}},55925(t,e,r){var i=r(73895);t.exports=function(t,e,r){for(var n=-1,s=t.criteria,o=e.criteria,a=s.length,A=r.length;++n<a;){var l=i(s[n],o[n]);if(l)return n>=A?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}},50199(t){var e=Math.max;t.exports=function(t,r,i,n){for(var s=-1,o=t.length,a=i.length,A=-1,l=r.length,h=e(o-a,0),c=Array(l+h),u=!n;++A<l;)c[A]=r[A];for(;++s<a;)(u||s<o)&&(c[i[s]]=t[s]);for(;h--;)c[A++]=t[s++];return c}},84309(t){var e=Math.max;t.exports=function(t,r,i,n){for(var s=-1,o=t.length,a=-1,A=i.length,l=-1,h=r.length,c=e(o-A,0),u=Array(c+h),p=!n;++s<c;)u[s]=t[s];for(var d=s;++l<h;)u[d+l]=r[l];for(;++a<A;)(p||s<o)&&(u[d+i[a]]=t[s++]);return u}},20380(t){t.exports=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}},84534(t,e,r){var i=r(60484),n=r(9935);t.exports=function(t,e,r,s){var o=!r;r||(r={});for(var a=-1,A=e.length;++a<A;){var l=e[a],h=s?s(r[l],t[l],l,r,t):void 0;void 0===h&&(h=t[l]),o?n(r,l,h):i(r,l,h)}return r}},86735(t,e,r){var i=r(84534),n=r(7781);t.exports=function(t,e){return i(t,n(t),e)}},67939(t,e,r){var i=r(84534),n=r(16438);t.exports=function(t,e){return i(t,n(t),e)}},40080(t,e,r){var i=r(91736)["__core-js_shared__"];t.exports=i},25862(t){t.exports=function(t,e){for(var r=t.length,i=0;r--;)t[r]===e&&++i;return i}},52937(t,e,r){var i=r(73190),n=r(26344),s=r(55992),o=r(96628);t.exports=function(t,e){return function(r,a){var A=o(r)?i:n,l=e?e():{};return A(r,t,s(a,2),l)}}},25834(t,e,r){var i=r(74959),n=r(3025);t.exports=function(t){return i(function(e,r){var i=-1,s=r.length,o=s>1?r[s-1]:void 0,a=s>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,a&&n(r[0],r[1],a)&&(o=s<3?void 0:o,s=1),e=Object(e);++i<s;){var A=r[i];A&&t(e,A,i,o)}return e})}},67636(t,e,r){var i=r(72059);t.exports=function(t,e){return function(r,n){if(null==r)return r;if(!i(r))return t(r,n);for(var s=r.length,o=e?s:-1,a=Object(r);(e?o--:++o<s)&&!1!==n(a[o],o,a););return r}}},70034(t){t.exports=function(t){return function(e,r,i){for(var n=-1,s=Object(e),o=i(e),a=o.length;a--;){var A=o[t?a:++n];if(!1===r(s[A],A,s))break}return e}}},32735(t,e,r){var i=r(83782),n=r(91736);t.exports=function(t,e,r){var s=1&e,o=i(t);return function e(){return(this&&this!==n&&this instanceof e?o:t).apply(s?r:this,arguments)}}},3228(t,e,r){var i=r(46189),n=r(52135),s=r(66459),o=r(55805);t.exports=function(t){return function(e){e=o(e);var r=n(e)?s(e):void 0,a=r?r[0]:e.charAt(0),A=r?i(r,1).join(""):e.slice(1);return a[t]()+A}}},83782(t,e,r){var i=r(21481),n=r(97230);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=i(t.prototype),s=t.apply(r,e);return n(s)?s:r}}},71185(t,e,r){var i=r(91442),n=r(83782),s=r(54270),o=r(63258),a=r(17280),A=r(55471),l=r(91736);t.exports=function(t,e,r){var h=n(t);return function n(){for(var c=arguments.length,u=Array(c),p=c,d=a(n);p--;)u[p]=arguments[p];var f=c<3&&u[0]!==d&&u[c-1]!==d?[]:A(u,d);return(c-=f.length)<r?o(t,e,s,n.placeholder,void 0,u,f,void 0,void 0,r-c):i(this&&this!==l&&this instanceof n?h:t,this,u)}}},69384(t,e,r){var i=r(42958),n=r(73985),s=r(61546),o=r(22815),a=r(96628),A=r(79538);t.exports=function(t){return n(function(e){var r=e.length,n=r,l=i.prototype.thru;for(t&&e.reverse();n--;){var h=e[n];if("function"!=typeof h)throw new TypeError("Expected a function");if(l&&!c&&"wrapper"==o(h))var c=new i([],!0)}for(n=c?n:r;++n<r;){h=e[n];var u=o(h),p="wrapper"==u?s(h):void 0;c=p&&A(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?c[o(p[0])].apply(c,p[3]):1==h.length&&A(h)?c[u]():c.thru(h)}return function(){var t=arguments,i=t[0];if(c&&1==t.length&&a(i))return c.plant(i).value();for(var n=0,s=r?e[n].apply(this,t):i;++n<r;)s=e[n].call(this,s);return s}})}},54270(t,e,r){var i=r(50199),n=r(84309),s=r(25862),o=r(83782),a=r(63258),A=r(17280),l=r(71017),h=r(55471),c=r(91736);t.exports=function t(e,r,u,p,d,f,g,m,y,v){var b=128&r,w=1&r,B=2&r,x=24&r,C=512&r,E=B?void 0:o(e);return function S(){for(var F=arguments.length,T=Array(F),I=F;I--;)T[I]=arguments[I];if(x)var _=A(S),k=s(T,_);if(p&&(T=i(T,p,d,x)),f&&(T=n(T,f,g,x)),F-=k,x&&F<v){var L=h(T,_);return a(e,r,t,S.placeholder,u,T,L,m,y,v-F)}var P=w?u:this,N=B?P[e]:e;return F=T.length,m?T=l(T,m):C&&F>1&&T.reverse(),b&&y<F&&(T.length=y),this&&this!==c&&this instanceof S&&(N=E||o(N)),N.apply(P,T)}}},70859(t,e,r){var i=r(91442),n=r(83782),s=r(91736);t.exports=function(t,e,r,o){var a=1&e,A=n(t);return function e(){for(var n=-1,l=arguments.length,h=-1,c=o.length,u=Array(c+l),p=this&&this!==s&&this instanceof e?A:t;++h<c;)u[h]=o[h];for(;l--;)u[h++]=arguments[++n];return i(p,a?r:this,u)}}},63258(t,e,r){var i=r(79538),n=r(64006),s=r(8214);t.exports=function(t,e,r,o,a,A,l,h,c,u){var p=8&e;e|=p?32:64,4&(e&=~(p?64:32))||(e&=-4);var d=[t,e,a,p?A:void 0,p?l:void 0,p?void 0:A,p?void 0:l,h,c,u],f=r.apply(void 0,d);return i(t)&&n(f,d),f.placeholder=o,s(f,t,e)}},22734(t,e,r){var i=r(91736),n=r(78164),s=r(43569),o=r(55805),a=i.isFinite,A=Math.min;t.exports=function(t){var e=Math[t];return function(t,r){if(t=s(t),(r=null==r?0:A(n(r),292))&&a(t)){var i=(o(t)+"e").split("e"),l=e(i[0]+"e"+(+i[1]+r));return+((i=(o(l)+"e").split("e"))[0]+"e"+(+i[1]-r))}return e(t)}}},72454(t,e,r){var i=r(86646),n=r(19697),s=r(57850),o=i&&1/s(new i([,-0]))[1]==1/0?function(t){return new i(t)}:n;t.exports=o},42836(t,e,r){var i=r(83549),n=r(32735),s=r(71185),o=r(54270),a=r(70859),A=r(61546),l=r(98198),h=r(64006),c=r(8214),u=r(78164),p=Math.max;t.exports=function(t,e,r,d,f,g,m,y){var v=2&e;if(!v&&"function"!=typeof t)throw new TypeError("Expected a function");var b=d?d.length:0;if(b||(e&=-97,d=f=void 0),m=void 0===m?m:p(u(m),0),y=void 0===y?y:u(y),b-=f?f.length:0,64&e){var w=d,B=f;d=f=void 0}var x=v?void 0:A(t),C=[t,e,r,d,f,w,B,g,m,y];if(x&&l(C,x),t=C[0],e=C[1],r=C[2],d=C[3],f=C[4],!(y=C[9]=void 0===C[9]?v?0:t.length:p(C[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)E=8==e||16==e?s(t,e,y):32!=e&&33!=e||f.length?o.apply(void 0,C):a(t,e,r,d);else var E=n(t,e,r);return c((x?i:h)(E,C),t,e)}},11241(t,e,r){var i=r(23506);t.exports=function(t){return i(t)?void 0:t}},32582(t,e,r){var i=r(45201),n=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=n},5988(t,e,r){var i=r(84870),n=r(86587),s=r(39506);t.exports=function(t,e,r,o,a,A){var l=1&r,h=t.length,c=e.length;if(h!=c&&!(l&&c>h))return!1;var u=A.get(t),p=A.get(e);if(u&&p)return u==e&&p==t;var d=-1,f=!0,g=2&r?new i:void 0;for(A.set(t,e),A.set(e,t);++d<h;){var m=t[d],y=e[d];if(o)var v=l?o(y,m,d,e,t,A):o(m,y,d,t,e,A);if(void 0!==v){if(v)continue;f=!1;break}if(g){if(!n(e,function(t,e){if(!s(g,e)&&(m===t||a(m,t,r,o,A)))return g.push(e)})){f=!1;break}}else if(m!==y&&!a(m,y,r,o,A)){f=!1;break}}return A.delete(t),A.delete(e),f}},98611(t,e,r){var i=r(25572),n=r(52769),s=r(38763),o=r(5988),a=r(64960),A=r(57850),l=i?i.prototype:void 0,h=l?l.valueOf:void 0;t.exports=function(t,e,r,i,l,c,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!c(new n(t),new n(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var d=1&i;if(p||(p=A),t.size!=e.size&&!d)return!1;var f=u.get(t);if(f)return f==e;i|=2,u.set(t,e);var g=o(p(t),p(e),i,l,c,u);return u.delete(t),g;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}},1608(t,e,r){var i=r(20979),n=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,s,o,a){var A=1&r,l=i(t),h=l.length;if(h!=i(e).length&&!A)return!1;for(var c=h;c--;){var u=l[c];if(!(A?u in e:n.call(e,u)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var g=A;++c<h;){var m=t[u=l[c]],y=e[u];if(s)var v=A?s(y,m,u,e,t,a):s(m,y,u,t,e,a);if(!(void 0===v?m===y||o(m,y,r,s,a):v)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(t),a.delete(e),f}},73985(t,e,r){var i=r(23555),n=r(12036),s=r(55806);t.exports=function(t){return s(n(t,void 0,i),t+"")}},38433(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},20979(t,e,r){var i=r(18614),n=r(7781),s=r(86353);t.exports=function(t){return i(t,s,n)}},57856(t,e,r){var i=r(18614),n=r(16438),s=r(93562);t.exports=function(t){return i(t,s,n)}},61546(t,e,r){var i=r(43011),n=r(19697),s=i?function(t){return i.get(t)}:n;t.exports=s},22815(t,e,r){var i=r(53498),n=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=i[e],s=n.call(i,e)?r.length:0;s--;){var o=r[s],a=o.func;if(null==a||a==t)return o.name}return e}},17280(t){t.exports=function(t){return t.placeholder}},88670(t,e,r){var i=r(19169);t.exports=function(t,e){var r=t.__data__;return i(e)?r["string"==typeof e?"string":"hash"]:r.map}},15157(t,e,r){var i=r(50265),n=r(86353);t.exports=function(t){for(var e=n(t),r=e.length;r--;){var s=e[r],o=t[s];e[r]=[s,o,i(o)]}return e}},45201(t,e,r){var i=r(70986),n=r(91793);t.exports=function(t,e){var r=n(t,e);return i(r)?r:void 0}},12566(t,e,r){var i=r(25300)(Object.getPrototypeOf,Object);t.exports=i},18504(t,e,r){var i=r(25572),n=Object.prototype,s=n.hasOwnProperty,o=n.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),r=t[a];try{t[a]=void 0;var i=!0}catch(t){}var n=o.call(t);return i&&(e?t[a]=r:delete t[a]),n}},7781(t,e,r){var i=r(73001),n=r(32148),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),i(o(t),function(e){return s.call(t,e)}))}:n;t.exports=a},16438(t,e,r){var i=r(78255),n=r(12566),s=r(7781),o=r(32148),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,s(t)),t=n(t);return e}:o;t.exports=a},55804(t,e,r){var i=r(56869),n=r(4292),s=r(2715),o=r(86646),a=r(96696),A=r(98561),l=r(9716),h="[object Map]",c="[object Promise]",u="[object Set]",p="[object WeakMap]",d="[object DataView]",f=l(i),g=l(n),m=l(s),y=l(o),v=l(a),b=A;(i&&b(new i(new ArrayBuffer(1)))!=d||n&&b(new n)!=h||s&&b(s.resolve())!=c||o&&b(new o)!=u||a&&b(new a)!=p)&&(b=function(t){var e=A(t),r="[object Object]"==e?t.constructor:void 0,i=r?l(r):"";if(i)switch(i){case f:return d;case g:return h;case m:return c;case y:return u;case v:return p}return e}),t.exports=b},91793(t){t.exports=function(t,e){return null==t?void 0:t[e]}},28602(t){var e=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){var i=t.match(e);return i?i[1].split(r):[]}},86913(t,e,r){var i=r(46476),n=r(64201),s=r(96628),o=r(51258),a=r(33341),A=r(20018);t.exports=function(t,e,r){for(var l=-1,h=(e=i(e,t)).length,c=!1;++l<h;){var u=A(e[l]);if(!(c=null!=t&&r(t,u)))break;t=t[u]}return c||++l!=h?c:!!(h=null==t?0:t.length)&&a(h)&&o(u,h)&&(s(t)||n(t))}},52135(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},14319(t,e,r){var i=r(22919);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},85931(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},31914(t,e,r){var i=r(22919),n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(e,t)?e[t]:void 0}},78670(t,e,r){var i=r(22919),n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:n.call(e,t)}},6646(t,e,r){var i=r(22919);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},85292(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,i=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},58262(t,e,r){var i=r(34428),n=r(88454),s=r(27202),o=r(48687),a=r(78534);t.exports=function(t,e,r){var A=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new A(+t);case"[object DataView]":return n(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new A;case"[object Number]":case"[object String]":return new A(t);case"[object RegExp]":return s(t);case"[object Symbol]":return o(t)}}},73798(t,e,r){var i=r(21481),n=r(12566),s=r(95804);t.exports=function(t){return"function"!=typeof t.constructor||s(t)?{}:i(n(t))}},31727(t){var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,r){var i=r.length;if(!i)return t;var n=i-1;return r[n]=(i>1?"& ":"")+r[n],r=r.join(i>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+r+"] */\n")}},62892(t,e,r){var i=r(25572),n=r(64201),s=r(96628),o=i?i.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||n(t)||!!(o&&t&&t[o])}},51258(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var i=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<r}},3025(t,e,r){var i=r(38763),n=r(72059),s=r(51258),o=r(97230);t.exports=function(t,e,r){if(!o(r))return!1;var a=typeof e;return!!("number"==a?n(r)&&s(e,r.length):"string"==a&&e in r)&&i(r[e],t)}},5749(t,e,r){var i=r(96628),n=r(83089),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!n(t))||o.test(t)||!s.test(t)||null!=e&&t in Object(e)}},19169(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},79538(t,e,r){var i=r(89819),n=r(61546),s=r(22815),o=r(42671);t.exports=function(t){var e=s(t),r=o[e];if("function"!=typeof r||!(e in i.prototype))return!1;if(t===r)return!0;var a=n(r);return!!a&&t===a[0]}},29617(t,e,r){var i,n=r(40080),s=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!s&&s in t}},95804(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},50265(t,e,r){var i=r(97230);t.exports=function(t){return t==t&&!i(t)}},30651(t){t.exports=function(){this.__data__=[],this.size=0}},73919(t,e,r){var i=r(65996),n=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=i(e,t);return!(r<0||(r==e.length-1?e.pop():n.call(e,r,1),--this.size,0))}},10830(t,e,r){var i=r(65996);t.exports=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]}},60794(t,e,r){var i=r(65996);t.exports=function(t){return i(this.__data__,t)>-1}},4642(t,e,r){var i=r(65996);t.exports=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}},96771(t,e,r){var i=r(5748),n=r(14296),s=r(4292);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||n),string:new i}}},70295(t,e,r){var i=r(88670);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},27462(t,e,r){var i=r(88670);t.exports=function(t){return i(this,t).get(t)}},81410(t,e,r){var i=r(88670);t.exports=function(t){return i(this,t).has(t)}},90842(t,e,r){var i=r(88670);t.exports=function(t,e){var r=i(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}},64960(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,i){r[++e]=[i,t]}),r}},4382(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},48563(t,e,r){var i=r(84101);t.exports=function(t){var e=i(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},98198(t,e,r){var i=r(50199),n=r(84309),s=r(55471),o="__lodash_placeholder__",a=Math.min;t.exports=function(t,e){var r=t[1],A=e[1],l=r|A,h=l<131,c=128==A&&8==r||128==A&&256==r&&t[7].length<=e[8]||384==A&&e[7].length<=e[8]&&8==r;if(!h&&!c)return t;1&A&&(t[2]=e[2],l|=1&r?0:4);var u=e[3];if(u){var p=t[3];t[3]=p?i(p,u,e[4]):u,t[4]=p?s(t[3],o):e[4]}return(u=e[5])&&(p=t[5],t[5]=p?n(p,u,e[6]):u,t[6]=p?s(t[5],o):e[6]),(u=e[7])&&(t[7]=u),128&A&&(t[8]=null==t[8]?e[8]:a(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=l,t}},43011(t,e,r){var i=r(96696),n=i&&new i;t.exports=n},22919(t,e,r){var i=r(45201)(Object,"create");t.exports=i},54407(t,e,r){var i=r(25300)(Object.keys,Object);t.exports=i},48716(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},67728(t,e,r){t=r.nmd(t);var i=r(38433),n=e&&!e.nodeType&&e,s=n&&t&&!t.nodeType&&t,o=s&&s.exports===n&&i.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},31567(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},25300(t){t.exports=function(t,e){return function(r){return t(e(r))}}},12036(t,e,r){var i=r(91442),n=Math.max;t.exports=function(t,e,r){return e=n(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=n(s.length-e,0),A=Array(a);++o<a;)A[o]=s[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=s[o];return l[e]=r(A),i(t,this,l)}}},42940(t,e,r){var i=r(85049),n=r(30495);t.exports=function(t,e){return e.length<2?t:i(t,n(e,0,-1))}},53498(t){t.exports={}},71017(t,e,r){var i=r(20380),n=r(51258),s=Math.min;t.exports=function(t,e){for(var r=t.length,o=s(e.length,r),a=i(t);o--;){var A=e[o];t[o]=n(A,r)?a[A]:void 0}return t}},55471(t){var e="__lodash_placeholder__";t.exports=function(t,r){for(var i=-1,n=t.length,s=0,o=[];++i<n;){var a=t[i];a!==r&&a!==e||(t[i]=e,o[s++]=i)}return o}},91736(t,e,r){var i=r(38433),n="object"==typeof self&&self&&self.Object===Object&&self,s=i||n||Function("return this")();t.exports=s},2169(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},22611(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},73984(t){t.exports=function(t){return this.__data__.has(t)}},64006(t,e,r){var i=r(83549),n=r(55586)(i);t.exports=n},57850(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},55806(t,e,r){var i=r(3317),n=r(55586)(i);t.exports=n},8214(t,e,r){var i=r(28602),n=r(31727),s=r(55806),o=r(43679);t.exports=function(t,e,r){var a=e+"";return s(t,n(a,o(i(a),r)))}},55586(t){var e=Date.now;t.exports=function(t){var r=0,i=0;return function(){var n=e(),s=16-(n-i);if(i=n,s>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},66897(t,e,r){var i=r(14296);t.exports=function(){this.__data__=new i,this.size=0}},54726(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},93760(t){t.exports=function(t){return this.__data__.get(t)}},16228(t){t.exports=function(t){return this.__data__.has(t)}},10468(t,e,r){var i=r(14296),n=r(4292),s=r(98464);t.exports=function(t,e){var r=this.__data__;if(r instanceof i){var o=r.__data__;if(!n||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new s(o)}return r.set(t,e),this.size=r.size,this}},23092(t){t.exports=function(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}},66459(t,e,r){var i=r(52351),n=r(52135),s=r(45931);t.exports=function(t){return n(t)?s(t):i(t)}},71951(t,e,r){var i=r(48563),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,function(t,r,i,n){e.push(i?n.replace(s,"$1"):r||t)}),e});t.exports=o},20018(t,e,r){var i=r(83089);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},9716(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},49327(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},45931(t){var e="\\ud800-\\udfff",r="["+e+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",s="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",A="(?:"+i+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",h=l+A+"(?:\\u200d(?:"+[s,o,a].join("|")+")"+l+A+")*",c="(?:"+[s+i+"?",i,o,a,r].join("|")+")",u=RegExp(n+"(?="+n+")|"+c+h,"g");t.exports=function(t){return t.match(u)||[]}},43679(t,e,r){var i=r(69542),n=r(19338),s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return i(s,function(r){var i="_."+r[0];e&r[1]&&!n(t,i)&&t.push(i)}),t.sort()}},48368(t,e,r){var i=r(89819),n=r(42958),s=r(20380);t.exports=function(t){if(t instanceof i)return t.clone();var e=new n(t.__wrapped__,t.__chain__);return e.__actions__=s(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},27535(t,e,r){var i=r(42836);t.exports=function(t,e,r){return e=r?void 0:e,e=t&&null==e?t.length:e,i(t,128,void 0,void 0,void 0,void 0,e)}},45867(t,e,r){var i=r(55805),n=r(93107);t.exports=function(t){return n(i(t).toLowerCase())}},8716(t,e,r){var i=r(30495),n=r(3025),s=r(78164),o=Math.ceil,a=Math.max;t.exports=function(t,e,r){e=(r?n(t,e,r):void 0===e)?1:a(s(e),0);var A=null==t?0:t.length;if(!A||e<1)return[];for(var l=0,h=0,c=Array(o(A/e));l<A;)c[h++]=i(t,l,l+=e);return c}},7740(t,e,r){var i=r(60444);t.exports=function(t){return i(t,4)}},70114(t,e,r){var i=r(60444);t.exports=function(t){return i(t,5)}},7965(t){t.exports=function(t){return function(){return t}}},99742(t,e,r){var i=r(42836);function n(t,e,r){var s=i(t,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return s.placeholder=n.placeholder,s}n.placeholder={},t.exports=n},82702(t,e,r){var i=r(97230),n=r(61381),s=r(43569),o=Math.max,a=Math.min;t.exports=function(t,e,r){var A,l,h,c,u,p,d=0,f=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=A,i=l;return A=l=void 0,d=e,c=t.apply(i,r)}function v(t){var r=t-p;return void 0===p||r>=e||r<0||g&&t-d>=h}function b(){var t=n();if(v(t))return w(t);u=setTimeout(b,function(t){var r=e-(t-p);return g?a(r,h-(t-d)):r}(t))}function w(t){return u=void 0,m&&A?y(t):(A=l=void 0,c)}function B(){var t=n(),r=v(t);if(A=arguments,l=this,p=t,r){if(void 0===u)return function(t){return d=t,u=setTimeout(b,e),f?y(t):c}(p);if(g)return clearTimeout(u),u=setTimeout(b,e),y(p)}return void 0===u&&(u=setTimeout(b,e)),c}return e=s(e)||0,i(r)&&(f=!!r.leading,h=(g="maxWait"in r)?o(s(r.maxWait)||0,e):h,m="trailing"in r?!!r.trailing:m),B.cancel=function(){void 0!==u&&clearTimeout(u),d=0,A=p=l=u=void 0},B.flush=function(){return void 0===u?c:w(n())},B}},38763(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},20218(t,e,r){var i=r(12908),n=r(17210),s=r(55992),o=r(96628),a=r(3025);t.exports=function(t,e,r){var A=o(t)?i:n;return r&&a(t,e,r)&&(e=void 0),A(t,s(e,3))}},53331(t,e,r){var i=r(73001),n=r(69587),s=r(55992),o=r(96628);t.exports=function(t,e){return(o(t)?i:n)(t,s(e,3))}},23555(t,e,r){var i=r(34403);t.exports=function(t){return null!=t&&t.length?i(t,1):[]}},66771(t,e,r){var i=r(69384)(!0);t.exports=i},53541(t,e,r){var i=r(68123),n=r(80470),s=Array.prototype.push;function o(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function a(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function A(t,e){return function(){var r=arguments.length;if(r){for(var i=Array(r);r--;)i[r]=arguments[r];var n=i[0]=e.apply(void 0,i);return t.apply(void 0,i),n}}}t.exports=function t(e,r,l,h){var c="function"==typeof r,u=r===Object(r);if(u&&(h=l,l=r,r=void 0),null==l)throw new TypeError;h||(h={});var p=!("cap"in h)||h.cap,d=!("curry"in h)||h.curry,f=!("fixed"in h)||h.fixed,g=!("immutable"in h)||h.immutable,m=!("rearg"in h)||h.rearg,y=c?l:n,v="curry"in h&&h.curry,b="fixed"in h&&h.fixed,w="rearg"in h&&h.rearg,B=c?l.runInContext():void 0,x=c?l:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},C=x.ary,E=x.assign,S=x.clone,F=x.curry,T=x.forEach,I=x.isArray,_=x.isError,k=x.isFunction,L=x.isWeakMap,P=x.keys,N=x.rearg,D=x.toInteger,M=x.toPath,O=P(i.aryMethod),U={castArray:function(t){return function(){var e=arguments[0];return I(e)?t(a(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],r=t(arguments[0],e),i=r.length;return p&&"number"==typeof e?(e=e>2?e-2:1,i&&i<=e?r:o(r,e)):r}},mixin:function(t){return function(e){var r=this;if(!k(r))return t(r,Object(e));var i=[];return T(P(e),function(t){k(e[t])&&i.push([t,r.prototype[t]])}),t(r,Object(e)),T(i,function(t){var e=t[1];k(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]]}),r}},nthArg:function(t){return function(e){var r=e<0?1:D(e)+1;return F(t(e),r)}},rearg:function(t){return function(e,r){var i=r?r.length:0;return F(t(e,r),i)}},runInContext:function(r){return function(i){return t(e,r(i),h)}}};function Q(t,e,r){if(f&&(b||!i.skipFixed[t])){var n=i.methodSpread[t],o=n&&n.start;return void 0===o?C(e,r):function(t,e){return function(){for(var r=arguments.length,i=r-1,n=Array(r);r--;)n[r]=arguments[r];var o=n[e],a=n.slice(0,e);return o&&s.apply(a,o),e!=i&&s.apply(a,n.slice(e+1)),t.apply(this,a)}}(e,o)}return e}function R(t,e,r){return m&&r>1&&(w||!i.skipRearg[t])?N(e,i.methodRearg[t]||i.aryRearg[r]):e}function H(t,e){for(var r=-1,i=(e=M(e)).length,n=i-1,s=S(Object(t)),o=s;null!=o&&++r<i;){var a=e[r],A=o[a];null==A||k(A)||_(A)||L(A)||(o[a]=S(r==n?A:Object(A))),o=o[a]}return s}function j(e,r){var n=i.aliasToReal[e]||e,s=i.remap[n]||n,o=h;return function(e){var i=c?B:x,a=c?B[s]:r,A=E(E({},o),e);return t(i,n,a,A)}}function V(t,e){return function(){var r=arguments.length;if(!r)return t();for(var i=Array(r);r--;)i[r]=arguments[r];var n=m?0:r-1;return i[n]=e(i[n]),t.apply(void 0,i)}}function G(t,e,r){var n,s=i.aliasToReal[t]||t,l=e,h=U[s];return h?l=h(e):g&&(i.mutate.array[s]?l=A(e,a):i.mutate.object[s]?l=A(e,function(t){return function(e){return t({},e)}}(e)):i.mutate.set[s]&&(l=A(e,H))),T(O,function(t){return T(i.aryMethod[t],function(e){if(s==e){var r=i.methodSpread[s],a=r&&r.afterRearg;return n=a?Q(s,R(s,l,t),t):R(s,Q(s,l,t),t),n=function(t,e,r){return v||d&&r>1?F(e,r):e}(0,n=function(t,e){if(p){var r=i.iterateeRearg[t];if(r)return function(t,e){return V(t,function(t){var r=e.length;return function(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(N(o(t,r),e),r)})}(e,r);var n=!c&&i.iterateeAry[t];if(n)return function(t,e){return V(t,function(t){return"function"==typeof t?o(t,e):t})}(e,n)}return e}(s,n),t),!1}}),!n}),n||(n=l),n==e&&(n=v?F(n,1):function(){return e.apply(this,arguments)}),n.convert=j(s,e),n.placeholder=e.placeholder=r,n}if(!u)return G(r,l,y);var z=l,K=[];return T(O,function(t){T(i.aryMethod[t],function(t){var e=z[i.remap[t]||t];e&&K.push([t,G(t,e,z)])})}),T(P(z),function(t){var e=z[t];if("function"==typeof e){for(var r=K.length;r--;)if(K[r][0]==t)return;e.convert=j(t,e),K.push([t,e])}}),T(K,function(t){z[t[0]]=t[1]}),z.convert=function(t){return z.runInContext.convert(t)(void 0)},z.placeholder=z,T(P(z),function(t){T(i.realToAlias[t]||[],function(e){z[e]=z[t]})}),z}},68123(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,i={};for(var n in r){var s=r[n];t.call(i,s)?i[s].push(n):i[s]=[n]}return i}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},87945(t,e,r){t.exports={ary:r(27535),assign:r(5264),clone:r(7740),curry:r(99742),forEach:r(69542),isArray:r(96628),isError:r(71239),isFunction:r(65085),isWeakMap:r(77151),iteratee:r(64043),keys:r(41009),rearg:r(58806),toInteger:r(78164),toPath:r(38135)}},68851(t,e,r){var i=r(53541),n=r(87945);t.exports=function(t,e,r){return i(n,t,e,r)}},47106(t,e,r){var i=r(68851)("flowRight",r(66771));i.placeholder=r(80470),t.exports=i},80470(t){t.exports={}},47396(t,e,r){var i=r(68851)("set",r(17181));i.placeholder=r(80470),t.exports=i},32249(t,e,r){var i=r(85049);t.exports=function(t,e,r){var n=null==t?void 0:i(t,e);return void 0===n?r:n}},9355(t,e,r){var i=r(9935),n=r(52937),s=Object.prototype.hasOwnProperty,o=n(function(t,e,r){s.call(t,r)?t[r].push(e):i(t,r,[e])});t.exports=o},5830(t,e,r){var i=r(19142),n=r(86913);t.exports=function(t,e){return null!=t&&n(t,e,i)}},1007(t){t.exports=function(t){return t}},64201(t,e,r){var i=r(83465),n=r(28089),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,A=i(function(){return arguments}())?i:function(t){return n(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=A},96628(t){var e=Array.isArray;t.exports=e},72059(t,e,r){var i=r(65085),n=r(33341);t.exports=function(t){return null!=t&&n(t.length)&&!i(t)}},81856(t,e,r){var i=r(72059),n=r(28089);t.exports=function(t){return n(t)&&i(t)}},77103(t,e,r){t=r.nmd(t);var i=r(91736),n=r(14078),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,a=o&&o.exports===s?i.Buffer:void 0,A=(a?a.isBuffer:void 0)||n;t.exports=A},33600(t,e,r){var i=r(41009),n=r(55804),s=r(64201),o=r(96628),a=r(72059),A=r(77103),l=r(95804),h=r(68276),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||A(t)||h(t)||s(t)))return!t.length;var e=n(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!i(t).length;for(var r in t)if(c.call(t,r))return!1;return!0}},51549(t,e,r){var i=r(14877);t.exports=function(t,e){return i(t,e)}},71239(t,e,r){var i=r(98561),n=r(28089),s=r(23506);t.exports=function(t){if(!n(t))return!1;var e=i(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!s(t)}},65085(t,e,r){var i=r(98561),n=r(97230);t.exports=function(t){if(!n(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},33341(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},85487(t,e,r){var i=r(9839),n=r(36390),s=r(67728),o=s&&s.isMap,a=o?n(o):i;t.exports=a},59190(t){t.exports=function(t){return null==t}},31348(t){t.exports=function(t){return null===t}},93448(t,e,r){var i=r(98561),n=r(28089);t.exports=function(t){return"number"==typeof t||n(t)&&"[object Number]"==i(t)}},97230(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},28089(t){t.exports=function(t){return null!=t&&"object"==typeof t}},23506(t,e,r){var i=r(98561),n=r(12566),s=r(28089),o=Function.prototype,a=Object.prototype,A=o.toString,l=a.hasOwnProperty,h=A.call(Object);t.exports=function(t){if(!s(t)||"[object Object]"!=i(t))return!1;var e=n(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==h}},39601(t,e,r){var i=r(27217),n=r(36390),s=r(67728),o=s&&s.isSet,a=o?n(o):i;t.exports=a},83089(t,e,r){var i=r(98561),n=r(28089);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==i(t)}},68276(t,e,r){var i=r(3924),n=r(36390),s=r(67728),o=s&&s.isTypedArray,a=o?n(o):i;t.exports=a},95933(t){t.exports=function(t){return void 0===t}},77151(t,e,r){var i=r(55804),n=r(28089);t.exports=function(t){return n(t)&&"[object WeakMap]"==i(t)}},64043(t,e,r){var i=r(60444),n=r(55992);t.exports=function(t){return n("function"==typeof t?t:i(t,1))}},23047(t,e,r){var i=r(9935),n=r(52937)(function(t,e,r){i(t,r,e)});t.exports=n},86353(t,e,r){var i=r(51684),n=r(41009),s=r(72059);t.exports=function(t){return s(t)?i(t):n(t)}},93562(t,e,r){var i=r(51684),n=r(58458),s=r(72059);t.exports=function(t){return s(t)?i(t,!0):n(t)}},10017(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},49680(t,e,r){var i;t=r.nmd(t),function(){var n,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",A=32,l=128,h=1/0,c=9007199254740991,u=NaN,p=4294967295,d=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",A],["partialRight",64],["rearg",256]],f="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",v="[object Error]",b="[object Function]",w="[object GeneratorFunction]",B="[object Map]",x="[object Number]",C="[object Object]",E="[object Promise]",S="[object RegExp]",F="[object Set]",T="[object String]",I="[object Symbol]",_="[object WeakMap]",k="[object ArrayBuffer]",L="[object DataView]",P="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",O="[object Int32Array]",U="[object Uint8Array]",Q="[object Uint8ClampedArray]",R="[object Uint16Array]",H="[object Uint32Array]",j=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,W=RegExp(z.source),Y=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),it=/^\s+/,nt=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,At=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",Ct="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",St="\\ufe0e\\ufe0f",Ft="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tt="["+wt+"]",It="["+Ft+"]",_t="["+Bt+"]",kt="\\d+",Lt="["+xt+"]",Pt="["+Ct+"]",Nt="[^"+wt+Ft+kt+xt+Ct+Et+"]",Dt="\\ud83c[\\udffb-\\udfff]",Mt="[^"+wt+"]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",Ut="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+Et+"]",Rt="\\u200d",Ht="(?:"+Pt+"|"+Nt+")",jt="(?:"+Qt+"|"+Nt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",zt="(?:"+_t+"|"+Dt+")?",Kt="["+St+"]?",Wt=Kt+zt+"(?:"+Rt+"(?:"+[Mt,Ot,Ut].join("|")+")"+Kt+zt+")*",Yt="(?:"+[Lt,Ot,Ut].join("|")+")"+Wt,Xt="(?:"+[Mt+_t+"?",_t,Ot,Ut,Tt].join("|")+")",qt=RegExp("['’]","g"),$t=RegExp(_t,"g"),Jt=RegExp(Dt+"(?="+Dt+")|"+Xt+Wt,"g"),Zt=RegExp([Qt+"?"+Pt+"+"+Vt+"(?="+[It,Qt,"$"].join("|")+")",jt+"+"+Gt+"(?="+[It,Qt+Ht,"$"].join("|")+")",Qt+"?"+Ht+"+"+Vt,Qt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Yt].join("|"),"g"),te=RegExp("["+Rt+wt+Bt+St+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,ne={};ne[P]=ne[N]=ne[D]=ne[M]=ne[O]=ne[U]=ne[Q]=ne[R]=ne[H]=!0,ne[f]=ne[g]=ne[k]=ne[m]=ne[L]=ne[y]=ne[v]=ne[b]=ne[B]=ne[x]=ne[C]=ne[S]=ne[F]=ne[T]=ne[_]=!1;var se={};se[f]=se[g]=se[k]=se[L]=se[m]=se[y]=se[P]=se[N]=se[D]=se[M]=se[O]=se[B]=se[x]=se[C]=se[S]=se[F]=se[T]=se[I]=se[U]=se[Q]=se[R]=se[H]=!0,se[v]=se[b]=se[_]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,Ae=parseInt,le="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,he="object"==typeof self&&self&&self.Object===Object&&self,ce=le||he||Function("return this")(),ue=e&&!e.nodeType&&e,pe=ue&&t&&!t.nodeType&&t,de=pe&&pe.exports===ue,fe=de&&le.process,ge=function(){try{return pe&&pe.require&&pe.require("util").types||fe&&fe.binding&&fe.binding("util")}catch(t){}}(),me=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,ve=ge&&ge.isMap,be=ge&&ge.isRegExp,we=ge&&ge.isSet,Be=ge&&ge.isTypedArray;function xe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ce(t,e,r,i){for(var n=-1,s=null==t?0:t.length;++n<s;){var o=t[n];e(i,o,r(o),t)}return i}function Ee(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}function Se(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Fe(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}function Te(t,e){for(var r=-1,i=null==t?0:t.length,n=0,s=[];++r<i;){var o=t[r];e(o,r,t)&&(s[n++]=o)}return s}function Ie(t,e){return!(null==t||!t.length)&&Qe(t,e,0)>-1}function _e(t,e,r){for(var i=-1,n=null==t?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}function ke(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}function Le(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}function Pe(t,e,r,i){var n=-1,s=null==t?0:t.length;for(i&&s&&(r=t[++n]);++n<s;)r=e(r,t[n],n,t);return r}function Ne(t,e,r,i){var n=null==t?0:t.length;for(i&&n&&(r=t[--n]);n--;)r=e(r,t[n],n,t);return r}function De(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}var Me=Ve("length");function Oe(t,e,r){var i;return r(t,function(t,r,n){if(e(t,r,n))return i=r,!1}),i}function Ue(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}function Qe(t,e,r){return e==e?function(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}(t,e,r):Ue(t,He,r)}function Re(t,e,r,i){for(var n=r-1,s=t.length;++n<s;)if(i(t[n],e))return n;return-1}function He(t){return t!=t}function je(t,e){var r=null==t?0:t.length;return r?Ke(t,e)/r:u}function Ve(t){return function(e){return null==e?n:e[t]}}function Ge(t){return function(e){return null==t?n:t[e]}}function ze(t,e,r,i,n){return n(t,function(t,n,s){r=i?(i=!1,t):e(r,t,n,s)}),r}function Ke(t,e){for(var r,i=-1,s=t.length;++i<s;){var o=e(t[i]);o!==n&&(r=r===n?o:r+o)}return r}function We(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}function Ye(t){return t?t.slice(0,cr(t)+1).replace(it,""):t}function Xe(t){return function(e){return t(e)}}function qe(t,e){return ke(e,function(e){return t[e]})}function $e(t,e){return t.has(e)}function Je(t,e){for(var r=-1,i=t.length;++r<i&&Qe(e,t[r],0)>-1;);return r}function Ze(t,e){for(var r=t.length;r--&&Qe(e,t[r],0)>-1;);return r}var tr=Ge({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),er=Ge({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(t){return"\\"+oe[t]}function ir(t){return te.test(t)}function nr(t){var e=-1,r=Array(t.size);return t.forEach(function(t,i){r[++e]=[i,t]}),r}function sr(t,e){return function(r){return t(e(r))}}function or(t,e){for(var r=-1,i=t.length,n=0,s=[];++r<i;){var o=t[r];o!==e&&o!==a||(t[r]=a,s[n++]=r)}return s}function ar(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function Ar(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}function lr(t){return ir(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Me(t)}function hr(t){return ir(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function cr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var ur=Ge({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pr=function t(e){var r,i=(e=null==e?ce:pr.defaults(ce.Object(),e,pr.pick(ce,re))).Array,nt=e.Date,wt=e.Error,Bt=e.Function,xt=e.Math,Ct=e.Object,Et=e.RegExp,St=e.String,Ft=e.TypeError,Tt=i.prototype,It=Bt.prototype,_t=Ct.prototype,kt=e["__core-js_shared__"],Lt=It.toString,Pt=_t.hasOwnProperty,Nt=0,Dt=(r=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mt=_t.toString,Ot=Lt.call(Ct),Ut=ce._,Qt=Et("^"+Lt.call(Pt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=de?e.Buffer:n,Ht=e.Symbol,jt=e.Uint8Array,Vt=Rt?Rt.allocUnsafe:n,Gt=sr(Ct.getPrototypeOf,Ct),zt=Ct.create,Kt=_t.propertyIsEnumerable,Wt=Tt.splice,Yt=Ht?Ht.isConcatSpreadable:n,Xt=Ht?Ht.iterator:n,Jt=Ht?Ht.toStringTag:n,te=function(){try{var t=As(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,le=nt&&nt.now!==ce.Date.now&&nt.now,he=e.setTimeout!==ce.setTimeout&&e.setTimeout,ue=xt.ceil,pe=xt.floor,fe=Ct.getOwnPropertySymbols,ge=Rt?Rt.isBuffer:n,Me=e.isFinite,Ge=Tt.join,dr=sr(Ct.keys,Ct),fr=xt.max,gr=xt.min,mr=nt.now,yr=e.parseInt,vr=xt.random,br=Tt.reverse,wr=As(e,"DataView"),Br=As(e,"Map"),xr=As(e,"Promise"),Cr=As(e,"Set"),Er=As(e,"WeakMap"),Sr=As(Ct,"create"),Fr=Er&&new Er,Tr={},Ir=Ms(wr),_r=Ms(Br),kr=Ms(xr),Lr=Ms(Cr),Pr=Ms(Er),Nr=Ht?Ht.prototype:n,Dr=Nr?Nr.valueOf:n,Mr=Nr?Nr.toString:n;function Or(t){if(ta(t)&&!Vo(t)&&!(t instanceof Hr)){if(t instanceof Rr)return t;if(Pt.call(t,"__wrapped__"))return Os(t)}return new Rr(t)}var Ur=function(){function t(){}return function(e){if(!Zo(e))return{};if(zt)return zt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Qr(){}function Rr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Hr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function jr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Gr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Gr;++e<r;)this.add(t[e])}function Kr(t){var e=this.__data__=new Vr(t);this.size=e.size}function Wr(t,e){var r=Vo(t),i=!r&&jo(t),n=!r&&!i&&Wo(t),s=!r&&!i&&!n&&Aa(t),o=r||i||n||s,a=o?We(t.length,St):[],A=a.length;for(var l in t)!e&&!Pt.call(t,l)||o&&("length"==l||n&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||fs(l,A))||a.push(l);return a}function Yr(t){var e=t.length;return e?t[Gi(0,e-1)]:n}function Xr(t,e){return ks(Sn(t),ni(e,0,t.length))}function qr(t){return ks(Sn(t))}function $r(t,e,r){(r!==n&&!Qo(t[e],r)||r===n&&!(e in t))&&ri(t,e,r)}function Jr(t,e,r){var i=t[e];Pt.call(t,e)&&Qo(i,r)&&(r!==n||e in t)||ri(t,e,r)}function Zr(t,e){for(var r=t.length;r--;)if(Qo(t[r][0],e))return r;return-1}function ti(t,e,r,i){return li(t,function(t,n,s){e(i,t,r(t),s)}),i}function ei(t,e){return t&&Fn(e,_a(e),t)}function ri(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function ii(t,e){for(var r=-1,s=e.length,o=i(s),a=null==t;++r<s;)o[r]=a?n:Ea(t,e[r]);return o}function ni(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function si(t,e,r,i,s,o){var a,A=1&e,l=2&e,h=4&e;if(r&&(a=s?r(t,i,s,o):r(t)),a!==n)return a;if(!Zo(t))return t;var c=Vo(t);if(c){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!A)return Sn(t,a)}else{var u=cs(t),p=u==b||u==w;if(Wo(t))return bn(t,A);if(u==C||u==f||p&&!s){if(a=l||p?{}:ps(t),!A)return l?function(t,e){return Fn(t,hs(t),e)}(t,function(t,e){return t&&Fn(e,ka(e),t)}(a,t)):function(t,e){return Fn(t,ls(t),e)}(t,ei(a,t))}else{if(!se[u])return s?t:{};a=function(t,e,r){var i,n=t.constructor;switch(e){case k:return wn(t);case m:case y:return new n(+t);case L:return function(t,e){var r=e?wn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case P:case N:case D:case M:case O:case U:case Q:case R:case H:return Bn(t,r);case B:return new n;case x:case T:return new n(t);case S:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case F:return new n;case I:return i=t,Dr?Ct(Dr.call(i)):{}}}(t,u,A)}}o||(o=new Kr);var d=o.get(t);if(d)return d;o.set(t,a),sa(t)?t.forEach(function(i){a.add(si(i,e,r,i,t,o))}):ea(t)&&t.forEach(function(i,n){a.set(n,si(i,e,r,n,t,o))});var g=c?n:(h?l?es:ts:l?ka:_a)(t);return Ee(g||t,function(i,n){g&&(i=t[n=i]),Jr(a,n,si(i,e,r,n,t,o))}),a}function oi(t,e,r){var i=r.length;if(null==t)return!i;for(t=Ct(t);i--;){var s=r[i],o=e[s],a=t[s];if(a===n&&!(s in t)||!o(a))return!1}return!0}function ai(t,e,r){if("function"!=typeof t)throw new Ft(s);return Fs(function(){t.apply(n,r)},e)}function Ai(t,e,r,i){var n=-1,s=Ie,o=!0,a=t.length,A=[],l=e.length;if(!a)return A;r&&(e=ke(e,Xe(r))),i?(s=_e,o=!1):e.length>=200&&(s=$e,o=!1,e=new zr(e));t:for(;++n<a;){var h=t[n],c=null==r?h:r(h);if(h=i||0!==h?h:0,o&&c==c){for(var u=l;u--;)if(e[u]===c)continue t;A.push(h)}else s(e,c,i)||A.push(h)}return A}Or.templateSettings={escape:X,evaluate:q,interpolate:$,variable:"",imports:{_:Or}},Or.prototype=Qr.prototype,Or.prototype.constructor=Or,Rr.prototype=Ur(Qr.prototype),Rr.prototype.constructor=Rr,Hr.prototype=Ur(Qr.prototype),Hr.prototype.constructor=Hr,jr.prototype.clear=function(){this.__data__=Sr?Sr(null):{},this.size=0},jr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jr.prototype.get=function(t){var e=this.__data__;if(Sr){var r=e[t];return r===o?n:r}return Pt.call(e,t)?e[t]:n},jr.prototype.has=function(t){var e=this.__data__;return Sr?e[t]!==n:Pt.call(e,t)},jr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Sr&&e===n?o:e,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(t){var e=this.__data__,r=Zr(e,t);return!(r<0||(r==e.length-1?e.pop():Wt.call(e,r,1),--this.size,0))},Vr.prototype.get=function(t){var e=this.__data__,r=Zr(e,t);return r<0?n:e[r][1]},Vr.prototype.has=function(t){return Zr(this.__data__,t)>-1},Vr.prototype.set=function(t,e){var r=this.__data__,i=Zr(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new jr,map:new(Br||Vr),string:new jr}},Gr.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gr.prototype.get=function(t){return os(this,t).get(t)},Gr.prototype.has=function(t){return os(this,t).has(t)},Gr.prototype.set=function(t,e){var r=os(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this},zr.prototype.add=zr.prototype.push=function(t){return this.__data__.set(t,o),this},zr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Kr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Kr.prototype.get=function(t){return this.__data__.get(t)},Kr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Vr){var i=r.__data__;if(!Br||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new Gr(i)}return r.set(t,e),this.size=r.size,this};var li=_n(mi),hi=_n(yi,!0);function ci(t,e){var r=!0;return li(t,function(t,i,n){return r=!!e(t,i,n)}),r}function ui(t,e,r){for(var i=-1,s=t.length;++i<s;){var o=t[i],a=e(o);if(null!=a&&(A===n?a==a&&!aa(a):r(a,A)))var A=a,l=o}return l}function pi(t,e){var r=[];return li(t,function(t,i,n){e(t,i,n)&&r.push(t)}),r}function di(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=ds),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?di(a,e-1,r,i,n):Le(n,a):i||(n[n.length]=a)}return n}var fi=kn(),gi=kn(!0);function mi(t,e){return t&&fi(t,e,_a)}function yi(t,e){return t&&gi(t,e,_a)}function vi(t,e){return Te(e,function(e){return qo(t[e])})}function bi(t,e){for(var r=0,i=(e=gn(e,t)).length;null!=t&&r<i;)t=t[Ds(e[r++])];return r&&r==i?t:n}function wi(t,e,r){var i=e(t);return Vo(t)?i:Le(i,r(t))}function Bi(t){return null==t?t===n?"[object Undefined]":"[object Null]":Jt&&Jt in Ct(t)?function(t){var e=Pt.call(t,Jt),r=t[Jt];try{t[Jt]=n;var i=!0}catch(t){}var s=Mt.call(t);return i&&(e?t[Jt]=r:delete t[Jt]),s}(t):function(t){return Mt.call(t)}(t)}function xi(t,e){return t>e}function Ci(t,e){return null!=t&&Pt.call(t,e)}function Ei(t,e){return null!=t&&e in Ct(t)}function Si(t,e,r){for(var s=r?_e:Ie,o=t[0].length,a=t.length,A=a,l=i(a),h=1/0,c=[];A--;){var u=t[A];A&&e&&(u=ke(u,Xe(e))),h=gr(u.length,h),l[A]=!r&&(e||o>=120&&u.length>=120)?new zr(A&&u):n}u=t[0];var p=-1,d=l[0];t:for(;++p<o&&c.length<h;){var f=u[p],g=e?e(f):f;if(f=r||0!==f?f:0,!(d?$e(d,g):s(c,g,r))){for(A=a;--A;){var m=l[A];if(!(m?$e(m,g):s(t[A],g,r)))continue t}d&&d.push(g),c.push(f)}}return c}function Fi(t,e,r){var i=null==(t=Cs(t,e=gn(e,t)))?t:t[Ds(Ys(e))];return null==i?n:xe(i,t,r)}function Ti(t){return ta(t)&&Bi(t)==f}function Ii(t,e,r,i,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,r,i,s,o){var a=Vo(t),A=Vo(e),l=a?g:cs(t),h=A?g:cs(e),c=(l=l==f?C:l)==C,u=(h=h==f?C:h)==C,p=l==h;if(p&&Wo(t)){if(!Wo(e))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new Kr),a||Aa(t)?Jn(t,e,r,i,s,o):function(t,e,r,i,n,s,o){switch(r){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!s(new jt(t),new jt(e)));case m:case y:case x:return Qo(+t,+e);case v:return t.name==e.name&&t.message==e.message;case S:case T:return t==e+"";case B:var a=nr;case F:var A=1&i;if(a||(a=ar),t.size!=e.size&&!A)return!1;var l=o.get(t);if(l)return l==e;i|=2,o.set(t,e);var h=Jn(a(t),a(e),i,n,s,o);return o.delete(t),h;case I:if(Dr)return Dr.call(t)==Dr.call(e)}return!1}(t,e,l,r,i,s,o);if(!(1&r)){var d=c&&Pt.call(t,"__wrapped__"),b=u&&Pt.call(e,"__wrapped__");if(d||b){var w=d?t.value():t,E=b?e.value():e;return o||(o=new Kr),s(w,E,r,i,o)}}return!!p&&(o||(o=new Kr),function(t,e,r,i,s,o){var a=1&r,A=ts(t),l=A.length;if(l!=ts(e).length&&!a)return!1;for(var h=l;h--;){var c=A[h];if(!(a?c in e:Pt.call(e,c)))return!1}var u=o.get(t),p=o.get(e);if(u&&p)return u==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);for(var f=a;++h<l;){var g=t[c=A[h]],m=e[c];if(i)var y=a?i(m,g,c,e,t,o):i(g,m,c,t,e,o);if(!(y===n?g===m||s(g,m,r,i,o):y)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,r,i,s,o))}(t,e,r,i,Ii,s))}function _i(t,e,r,i){var s=r.length,o=s,a=!i;if(null==t)return!o;for(t=Ct(t);s--;){var A=r[s];if(a&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++s<o;){var l=(A=r[s])[0],h=t[l],c=A[1];if(a&&A[2]){if(h===n&&!(l in t))return!1}else{var u=new Kr;if(i)var p=i(h,c,l,t,e,u);if(!(p===n?Ii(c,h,3,i,u):p))return!1}}return!0}function ki(t){return!(!Zo(t)||(e=t,Dt&&Dt in e))&&(qo(t)?Qt:ft).test(Ms(t));var e}function Li(t){return"function"==typeof t?t:null==t?rA:"object"==typeof t?Vo(t)?Oi(t[0],t[1]):Mi(t):cA(t)}function Pi(t){if(!bs(t))return dr(t);var e=[];for(var r in Ct(t))Pt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Ni(t,e){return t<e}function Di(t,e){var r=-1,n=zo(t)?i(t.length):[];return li(t,function(t,i,s){n[++r]=e(t,i,s)}),n}function Mi(t){var e=as(t);return 1==e.length&&e[0][2]?Bs(e[0][0],e[0][1]):function(r){return r===t||_i(r,t,e)}}function Oi(t,e){return ms(t)&&ws(e)?Bs(Ds(t),e):function(r){var i=Ea(r,t);return i===n&&i===e?Sa(r,t):Ii(e,i,3)}}function Ui(t,e,r,i,s){t!==e&&fi(e,function(o,a){if(s||(s=new Kr),Zo(o))!function(t,e,r,i,s,o,a){var A=Es(t,r),l=Es(e,r),h=a.get(l);if(h)$r(t,r,h);else{var c=o?o(A,l,r+"",t,e,a):n,u=c===n;if(u){var p=Vo(l),d=!p&&Wo(l),f=!p&&!d&&Aa(l);c=l,p||d||f?Vo(A)?c=A:Ko(A)?c=Sn(A):d?(u=!1,c=bn(l,!0)):f?(u=!1,c=Bn(l,!0)):c=[]:ia(l)||jo(l)?(c=A,jo(A)?c=ga(A):Zo(A)&&!qo(A)||(c=ps(l))):u=!1}u&&(a.set(l,c),s(c,l,i,o,a),a.delete(l)),$r(t,r,c)}}(t,e,a,r,Ui,i,s);else{var A=i?i(Es(t,a),o,a+"",t,e,s):n;A===n&&(A=o),$r(t,a,A)}},ka)}function Qi(t,e){var r=t.length;if(r)return fs(e+=e<0?r:0,r)?t[e]:n}function Ri(t,e,r){e=e.length?ke(e,function(t){return Vo(t)?function(e){return bi(e,1===t.length?t[0]:t)}:t}):[rA];var i=-1;e=ke(e,Xe(ss()));var n=Di(t,function(t,r,n){var s=ke(e,function(e){return e(t)});return{criteria:s,index:++i,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,r){for(var i=-1,n=t.criteria,s=e.criteria,o=n.length,a=r.length;++i<o;){var A=xn(n[i],s[i]);if(A)return i>=a?A:A*("desc"==r[i]?-1:1)}return t.index-e.index}(t,e,r)});e--;)t[e]=t[e].value;return t}(n)}function Hi(t,e,r){for(var i=-1,n=e.length,s={};++i<n;){var o=e[i],a=bi(t,o);r(a,o)&&Xi(s,gn(o,t),a)}return s}function ji(t,e,r,i){var n=i?Re:Qe,s=-1,o=e.length,a=t;for(t===e&&(e=Sn(e)),r&&(a=ke(t,Xe(r)));++s<o;)for(var A=0,l=e[s],h=r?r(l):l;(A=n(a,h,A,i))>-1;)a!==t&&Wt.call(a,A,1),Wt.call(t,A,1);return t}function Vi(t,e){for(var r=t?e.length:0,i=r-1;r--;){var n=e[r];if(r==i||n!==s){var s=n;fs(n)?Wt.call(t,n,1):An(t,n)}}return t}function Gi(t,e){return t+pe(vr()*(e-t+1))}function zi(t,e){var r="";if(!t||e<1||e>c)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function Ki(t,e){return Ts(xs(t,e,rA),t+"")}function Wi(t){return Yr(Qa(t))}function Yi(t,e){var r=Qa(t);return ks(r,ni(e,0,r.length))}function Xi(t,e,r,i){if(!Zo(t))return t;for(var s=-1,o=(e=gn(e,t)).length,a=o-1,A=t;null!=A&&++s<o;){var l=Ds(e[s]),h=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(s!=a){var c=A[l];(h=i?i(c,l,A):n)===n&&(h=Zo(c)?c:fs(e[s+1])?[]:{})}Jr(A,l,h),A=A[l]}return t}var qi=Fr?function(t,e){return Fr.set(t,e),t}:rA,$i=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Za(e),writable:!0})}:rA;function Ji(t){return ks(Qa(t))}function Zi(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(r=r>s?s:r)<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var o=i(s);++n<s;)o[n]=t[n+e];return o}function tn(t,e){var r;return li(t,function(t,i,n){return!(r=e(t,i,n))}),!!r}function en(t,e,r){var i=0,n=null==t?i:t.length;if("number"==typeof e&&e==e&&n<=2147483647){for(;i<n;){var s=i+n>>>1,o=t[s];null!==o&&!aa(o)&&(r?o<=e:o<e)?i=s+1:n=s}return n}return rn(t,e,rA,r)}function rn(t,e,r,i){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=r(e))!=e,A=null===e,l=aa(e),h=e===n;s<o;){var c=pe((s+o)/2),u=r(t[c]),p=u!==n,d=null===u,f=u==u,g=aa(u);if(a)var m=i||f;else m=h?f&&(i||p):A?f&&p&&(i||!d):l?f&&p&&!d&&(i||!g):!d&&!g&&(i?u<=e:u<e);m?s=c+1:o=c}return gr(o,4294967294)}function nn(t,e){for(var r=-1,i=t.length,n=0,s=[];++r<i;){var o=t[r],a=e?e(o):o;if(!r||!Qo(a,A)){var A=a;s[n++]=0===o?0:o}}return s}function sn(t){return"number"==typeof t?t:aa(t)?u:+t}function on(t){if("string"==typeof t)return t;if(Vo(t))return ke(t,on)+"";if(aa(t))return Mr?Mr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function an(t,e,r){var i=-1,n=Ie,s=t.length,o=!0,a=[],A=a;if(r)o=!1,n=_e;else if(s>=200){var l=e?null:Kn(t);if(l)return ar(l);o=!1,n=$e,A=new zr}else A=e?[]:a;t:for(;++i<s;){var h=t[i],c=e?e(h):h;if(h=r||0!==h?h:0,o&&c==c){for(var u=A.length;u--;)if(A[u]===c)continue t;e&&A.push(c),a.push(h)}else n(A,c,r)||(A!==a&&A.push(c),a.push(h))}return a}function An(t,e){var r=-1,i=(e=gn(e,t)).length;if(!i)return!0;for(var n=null==t||"object"!=typeof t&&"function"!=typeof t;++r<i;){var s=e[r];if("string"==typeof s){if("__proto__"===s&&!Pt.call(t,"__proto__"))return!1;if("constructor"===s&&r+1<i&&"string"==typeof e[r+1]&&"prototype"===e[r+1]){if(n&&0===r)continue;return!1}}}var o=Cs(t,e);return null==o||delete o[Ds(Ys(e))]}function ln(t,e,r,i){return Xi(t,e,r(bi(t,e)),i)}function hn(t,e,r,i){for(var n=t.length,s=i?n:-1;(i?s--:++s<n)&&e(t[s],s,t););return r?Zi(t,i?0:s,i?s+1:n):Zi(t,i?s+1:0,i?n:s)}function cn(t,e){var r=t;return r instanceof Hr&&(r=r.value()),Pe(e,function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))},r)}function un(t,e,r){var n=t.length;if(n<2)return n?an(t[0]):[];for(var s=-1,o=i(n);++s<n;)for(var a=t[s],A=-1;++A<n;)A!=s&&(o[s]=Ai(o[s]||a,t[A],e,r));return an(di(o,1),e,r)}function pn(t,e,r){for(var i=-1,s=t.length,o=e.length,a={};++i<s;){var A=i<o?e[i]:n;r(a,t[i],A)}return a}function dn(t){return Ko(t)?t:[]}function fn(t){return"function"==typeof t?t:rA}function gn(t,e){return Vo(t)?t:ms(t,e)?[t]:Ns(ma(t))}var mn=Ki;function yn(t,e,r){var i=t.length;return r=r===n?i:r,!e&&r>=i?t:Zi(t,e,r)}var vn=oe||function(t){return ce.clearTimeout(t)};function bn(t,e){if(e)return t.slice();var r=t.length,i=Vt?Vt(r):new t.constructor(r);return t.copy(i),i}function wn(t){var e=new t.constructor(t.byteLength);return new jt(e).set(new jt(t)),e}function Bn(t,e){var r=e?wn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function xn(t,e){if(t!==e){var r=t!==n,i=null===t,s=t==t,o=aa(t),a=e!==n,A=null===e,l=e==e,h=aa(e);if(!A&&!h&&!o&&t>e||o&&a&&l&&!A&&!h||i&&a&&l||!r&&l||!s)return 1;if(!i&&!o&&!h&&t<e||h&&r&&s&&!i&&!o||A&&r&&s||!a&&s||!l)return-1}return 0}function Cn(t,e,r,n){for(var s=-1,o=t.length,a=r.length,A=-1,l=e.length,h=fr(o-a,0),c=i(l+h),u=!n;++A<l;)c[A]=e[A];for(;++s<a;)(u||s<o)&&(c[r[s]]=t[s]);for(;h--;)c[A++]=t[s++];return c}function En(t,e,r,n){for(var s=-1,o=t.length,a=-1,A=r.length,l=-1,h=e.length,c=fr(o-A,0),u=i(c+h),p=!n;++s<c;)u[s]=t[s];for(var d=s;++l<h;)u[d+l]=e[l];for(;++a<A;)(p||s<o)&&(u[d+r[a]]=t[s++]);return u}function Sn(t,e){var r=-1,n=t.length;for(e||(e=i(n));++r<n;)e[r]=t[r];return e}function Fn(t,e,r,i){var s=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var A=e[o],l=i?i(r[A],t[A],A,r,t):n;l===n&&(l=t[A]),s?ri(r,A,l):Jr(r,A,l)}return r}function Tn(t,e){return function(r,i){var n=Vo(r)?Ce:ti,s=e?e():{};return n(r,t,ss(i,2),s)}}function In(t){return Ki(function(e,r){var i=-1,s=r.length,o=s>1?r[s-1]:n,a=s>2?r[2]:n;for(o=t.length>3&&"function"==typeof o?(s--,o):n,a&&gs(r[0],r[1],a)&&(o=s<3?n:o,s=1),e=Ct(e);++i<s;){var A=r[i];A&&t(e,A,i,o)}return e})}function _n(t,e){return function(r,i){if(null==r)return r;if(!zo(r))return t(r,i);for(var n=r.length,s=e?n:-1,o=Ct(r);(e?s--:++s<n)&&!1!==i(o[s],s,o););return r}}function kn(t){return function(e,r,i){for(var n=-1,s=Ct(e),o=i(e),a=o.length;a--;){var A=o[t?a:++n];if(!1===r(s[A],A,s))break}return e}}function Ln(t){return function(e){var r=ir(e=ma(e))?hr(e):n,i=r?r[0]:e.charAt(0),s=r?yn(r,1).join(""):e.slice(1);return i[t]()+s}}function Pn(t){return function(e){return Pe(qa(ja(e).replace(qt,"")),t,"")}}function Nn(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Ur(t.prototype),i=t.apply(r,e);return Zo(i)?i:r}}function Dn(t){return function(e,r,i){var s=Ct(e);if(!zo(e)){var o=ss(r,3);e=_a(e),r=function(t){return o(s[t],t,s)}}var a=t(e,r,i);return a>-1?s[o?e[a]:a]:n}}function Mn(t){return Zn(function(e){var r=e.length,i=r,o=Rr.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new Ft(s);if(o&&!A&&"wrapper"==is(a))var A=new Rr([],!0)}for(i=A?i:r;++i<r;){var l=is(a=e[i]),h="wrapper"==l?rs(a):n;A=h&&ys(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?A[is(h[0])].apply(A,h[3]):1==a.length&&ys(a)?A[l]():A.thru(a)}return function(){var t=arguments,i=t[0];if(A&&1==t.length&&Vo(i))return A.plant(i).value();for(var n=0,s=r?e[n].apply(this,t):i;++n<r;)s=e[n].call(this,s);return s}})}function On(t,e,r,s,o,a,A,h,c,u){var p=e&l,d=1&e,f=2&e,g=24&e,m=512&e,y=f?n:Nn(t);return function l(){for(var v=arguments.length,b=i(v),w=v;w--;)b[w]=arguments[w];if(g)var B=ns(l),x=function(t,e){for(var r=t.length,i=0;r--;)t[r]===e&&++i;return i}(b,B);if(s&&(b=Cn(b,s,o,g)),a&&(b=En(b,a,A,g)),v-=x,g&&v<u){var C=or(b,B);return Gn(t,e,On,l.placeholder,r,b,C,h,c,u-v)}var E=d?r:this,S=f?E[t]:t;return v=b.length,h?b=function(t,e){for(var r=t.length,i=gr(e.length,r),s=Sn(t);i--;){var o=e[i];t[i]=fs(o,r)?s[o]:n}return t}(b,h):m&&v>1&&b.reverse(),p&&c<v&&(b.length=c),this&&this!==ce&&this instanceof l&&(S=y||Nn(S)),S.apply(E,b)}}function Un(t,e){return function(r,i){return function(t,e,r,i){return mi(t,function(t,n,s){e(i,r(t),n,s)}),i}(r,t,e(i),{})}}function Qn(t,e){return function(r,i){var s;if(r===n&&i===n)return e;if(r!==n&&(s=r),i!==n){if(s===n)return i;"string"==typeof r||"string"==typeof i?(r=on(r),i=on(i)):(r=sn(r),i=sn(i)),s=t(r,i)}return s}}function Rn(t){return Zn(function(e){return e=ke(e,Xe(ss())),Ki(function(r){var i=this;return t(e,function(t){return xe(t,i,r)})})})}function Hn(t,e){var r=(e=e===n?" ":on(e)).length;if(r<2)return r?zi(e,t):e;var i=zi(e,ue(t/lr(e)));return ir(e)?yn(hr(i),0,t).join(""):i.slice(0,t)}function jn(t){return function(e,r,s){return s&&"number"!=typeof s&&gs(e,r,s)&&(r=s=n),e=ua(e),r===n?(r=e,e=0):r=ua(r),function(t,e,r,n){for(var s=-1,o=fr(ue((e-t)/(r||1)),0),a=i(o);o--;)a[n?o:++s]=t,t+=r;return a}(e,r,s=s===n?e<r?1:-1:ua(s),t)}}function Vn(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=fa(e),r=fa(r)),t(e,r)}}function Gn(t,e,r,i,s,o,a,l,h,c){var u=8&e;e|=u?A:64,4&(e&=~(u?64:A))||(e&=-4);var p=[t,e,s,u?o:n,u?a:n,u?n:o,u?n:a,l,h,c],d=r.apply(n,p);return ys(t)&&Ss(d,p),d.placeholder=i,Is(d,t,e)}function zn(t){var e=xt[t];return function(t,r){if(t=fa(t),(r=null==r?0:gr(pa(r),292))&&Me(t)){var i=(ma(t)+"e").split("e");return+((i=(ma(e(i[0]+"e"+(+i[1]+r)))+"e").split("e"))[0]+"e"+(+i[1]-r))}return e(t)}}var Kn=Cr&&1/ar(new Cr([,-0]))[1]==h?function(t){return new Cr(t)}:aA;function Wn(t){return function(e){var r=cs(e);return r==B?nr(e):r==F?Ar(e):function(t,e){return ke(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yn(t,e,r,o,h,c,u,p){var d=2&e;if(!d&&"function"!=typeof t)throw new Ft(s);var f=o?o.length:0;if(f||(e&=-97,o=h=n),u=u===n?u:fr(pa(u),0),p=p===n?p:pa(p),f-=h?h.length:0,64&e){var g=o,m=h;o=h=n}var y=d?n:rs(t),v=[t,e,r,o,h,g,m,c,u,p];if(y&&function(t,e){var r=t[1],i=e[1],n=r|i,s=n<131,o=i==l&&8==r||i==l&&256==r&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==r;if(!s&&!o)return t;1&i&&(t[2]=e[2],n|=1&r?0:4);var A=e[3];if(A){var h=t[3];t[3]=h?Cn(h,A,e[4]):A,t[4]=h?or(t[3],a):e[4]}(A=e[5])&&(h=t[5],t[5]=h?En(h,A,e[6]):A,t[6]=h?or(t[5],a):e[6]),(A=e[7])&&(t[7]=A),i&l&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=n}(v,y),t=v[0],e=v[1],r=v[2],o=v[3],h=v[4],!(p=v[9]=v[9]===n?d?0:t.length:fr(v[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,r){var s=Nn(t);return function o(){for(var a=arguments.length,A=i(a),l=a,h=ns(o);l--;)A[l]=arguments[l];var c=a<3&&A[0]!==h&&A[a-1]!==h?[]:or(A,h);return(a-=c.length)<r?Gn(t,e,On,o.placeholder,n,A,c,n,n,r-a):xe(this&&this!==ce&&this instanceof o?s:t,this,A)}}(t,e,p):e!=A&&33!=e||h.length?On.apply(n,v):function(t,e,r,n){var s=1&e,o=Nn(t);return function e(){for(var a=-1,A=arguments.length,l=-1,h=n.length,c=i(h+A),u=this&&this!==ce&&this instanceof e?o:t;++l<h;)c[l]=n[l];for(;A--;)c[l++]=arguments[++a];return xe(u,s?r:this,c)}}(t,e,r,o);else var b=function(t,e,r){var i=1&e,n=Nn(t);return function e(){return(this&&this!==ce&&this instanceof e?n:t).apply(i?r:this,arguments)}}(t,e,r);return Is((y?qi:Ss)(b,v),t,e)}function Xn(t,e,r,i){return t===n||Qo(t,_t[r])&&!Pt.call(i,r)?e:t}function qn(t,e,r,i,s,o){return Zo(t)&&Zo(e)&&(o.set(e,t),Ui(t,e,n,qn,o),o.delete(e)),t}function $n(t){return ia(t)?n:t}function Jn(t,e,r,i,s,o){var a=1&r,A=t.length,l=e.length;if(A!=l&&!(a&&l>A))return!1;var h=o.get(t),c=o.get(e);if(h&&c)return h==e&&c==t;var u=-1,p=!0,d=2&r?new zr:n;for(o.set(t,e),o.set(e,t);++u<A;){var f=t[u],g=e[u];if(i)var m=a?i(g,f,u,e,t,o):i(f,g,u,t,e,o);if(m!==n){if(m)continue;p=!1;break}if(d){if(!De(e,function(t,e){if(!$e(d,e)&&(f===t||s(f,t,r,i,o)))return d.push(e)})){p=!1;break}}else if(f!==g&&!s(f,g,r,i,o)){p=!1;break}}return o.delete(t),o.delete(e),p}function Zn(t){return Ts(xs(t,n,Vs),t+"")}function ts(t){return wi(t,_a,ls)}function es(t){return wi(t,ka,hs)}var rs=Fr?function(t){return Fr.get(t)}:aA;function is(t){for(var e=t.name+"",r=Tr[e],i=Pt.call(Tr,e)?r.length:0;i--;){var n=r[i],s=n.func;if(null==s||s==t)return n.name}return e}function ns(t){return(Pt.call(Or,"placeholder")?Or:t).placeholder}function ss(){var t=Or.iteratee||iA;return t=t===iA?Li:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var r,i,n=t.__data__;return("string"==(i=typeof(r=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function as(t){for(var e=_a(t),r=e.length;r--;){var i=e[r],n=t[i];e[r]=[i,n,ws(n)]}return e}function As(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return ki(r)?r:n}var ls=fe?function(t){return null==t?[]:(t=Ct(t),Te(fe(t),function(e){return Kt.call(t,e)}))}:dA,hs=fe?function(t){for(var e=[];t;)Le(e,ls(t)),t=Gt(t);return e}:dA,cs=Bi;function us(t,e,r){for(var i=-1,n=(e=gn(e,t)).length,s=!1;++i<n;){var o=Ds(e[i]);if(!(s=null!=t&&r(t,o)))break;t=t[o]}return s||++i!=n?s:!!(n=null==t?0:t.length)&&Jo(n)&&fs(o,n)&&(Vo(t)||jo(t))}function ps(t){return"function"!=typeof t.constructor||bs(t)?{}:Ur(Gt(t))}function ds(t){return Vo(t)||jo(t)||!!(Yt&&t&&t[Yt])}function fs(t,e){var r=typeof t;return!!(e=null==e?c:e)&&("number"==r||"symbol"!=r&&mt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,r){if(!Zo(r))return!1;var i=typeof e;return!!("number"==i?zo(r)&&fs(e,r.length):"string"==i&&e in r)&&Qo(r[e],t)}function ms(t,e){if(Vo(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!aa(t))||Z.test(t)||!J.test(t)||null!=e&&t in Ct(e)}function ys(t){var e=is(t),r=Or[e];if("function"!=typeof r||!(e in Hr.prototype))return!1;if(t===r)return!0;var i=rs(r);return!!i&&t===i[0]}(wr&&cs(new wr(new ArrayBuffer(1)))!=L||Br&&cs(new Br)!=B||xr&&cs(xr.resolve())!=E||Cr&&cs(new Cr)!=F||Er&&cs(new Er)!=_)&&(cs=function(t){var e=Bi(t),r=e==C?t.constructor:n,i=r?Ms(r):"";if(i)switch(i){case Ir:return L;case _r:return B;case kr:return E;case Lr:return F;case Pr:return _}return e});var vs=kt?qo:fA;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function ws(t){return t==t&&!Zo(t)}function Bs(t,e){return function(r){return null!=r&&r[t]===e&&(e!==n||t in Ct(r))}}function xs(t,e,r){return e=fr(e===n?t.length-1:e,0),function(){for(var n=arguments,s=-1,o=fr(n.length-e,0),a=i(o);++s<o;)a[s]=n[e+s];s=-1;for(var A=i(e+1);++s<e;)A[s]=n[s];return A[e]=r(a),xe(t,this,A)}}function Cs(t,e){return e.length<2?t:bi(t,Zi(e,0,-1))}function Es(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ss=_s(qi),Fs=he||function(t,e){return ce.setTimeout(t,e)},Ts=_s($i);function Is(t,e,r){var i=e+"";return Ts(t,function(t,e){var r=e.length;if(!r)return t;var i=r-1;return e[i]=(r>1?"& ":"")+e[i],e=e.join(r>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Ee(d,function(r){var i="_."+r[0];e&r[1]&&!Ie(t,i)&&t.push(i)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(i),r)))}function _s(t){var e=0,r=0;return function(){var i=mr(),s=16-(i-r);if(r=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function ks(t,e){var r=-1,i=t.length,s=i-1;for(e=e===n?i:e;++r<e;){var o=Gi(r,s),a=t[o];t[o]=t[r],t[r]=a}return t.length=e,t}var Ls,Ps,Ns=(Ls=Po(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,r,i,n){e.push(i?n.replace(ht,"$1"):r||t)}),e},function(t){return 500===Ps.size&&Ps.clear(),t}),Ps=Ls.cache,Ls);function Ds(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ms(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Os(t){if(t instanceof Hr)return t.clone();var e=new Rr(t.__wrapped__,t.__chain__);return e.__actions__=Sn(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Us=Ki(function(t,e){return Ko(t)?Ai(t,di(e,1,Ko,!0)):[]}),Qs=Ki(function(t,e){var r=Ys(e);return Ko(r)&&(r=n),Ko(t)?Ai(t,di(e,1,Ko,!0),ss(r,2)):[]}),Rs=Ki(function(t,e){var r=Ys(e);return Ko(r)&&(r=n),Ko(t)?Ai(t,di(e,1,Ko,!0),n,r):[]});function Hs(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var n=null==r?0:pa(r);return n<0&&(n=fr(i+n,0)),Ue(t,ss(e,3),n)}function js(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var s=i-1;return r!==n&&(s=pa(r),s=r<0?fr(i+s,0):gr(s,i-1)),Ue(t,ss(e,3),s,!0)}function Vs(t){return null!=t&&t.length?di(t,1):[]}function Gs(t){return t&&t.length?t[0]:n}var zs=Ki(function(t){var e=ke(t,dn);return e.length&&e[0]===t[0]?Si(e):[]}),Ks=Ki(function(t){var e=Ys(t),r=ke(t,dn);return e===Ys(r)?e=n:r.pop(),r.length&&r[0]===t[0]?Si(r,ss(e,2)):[]}),Ws=Ki(function(t){var e=Ys(t),r=ke(t,dn);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?Si(r,n,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Xs=Ki(qs);function qs(t,e){return t&&t.length&&e&&e.length?ji(t,e):t}var $s=Zn(function(t,e){var r=null==t?0:t.length,i=ii(t,e);return Vi(t,ke(e,function(t){return fs(t,r)?+t:t}).sort(xn)),i});function Js(t){return null==t?t:br.call(t)}var Zs=Ki(function(t){return an(di(t,1,Ko,!0))}),to=Ki(function(t){var e=Ys(t);return Ko(e)&&(e=n),an(di(t,1,Ko,!0),ss(e,2))}),eo=Ki(function(t){var e=Ys(t);return e="function"==typeof e?e:n,an(di(t,1,Ko,!0),n,e)});function ro(t){if(!t||!t.length)return[];var e=0;return t=Te(t,function(t){if(Ko(t))return e=fr(t.length,e),!0}),We(e,function(e){return ke(t,Ve(e))})}function io(t,e){if(!t||!t.length)return[];var r=ro(t);return null==e?r:ke(r,function(t){return xe(e,n,t)})}var no=Ki(function(t,e){return Ko(t)?Ai(t,e):[]}),so=Ki(function(t){return un(Te(t,Ko))}),oo=Ki(function(t){var e=Ys(t);return Ko(e)&&(e=n),un(Te(t,Ko),ss(e,2))}),ao=Ki(function(t){var e=Ys(t);return e="function"==typeof e?e:n,un(Te(t,Ko),n,e)}),Ao=Ki(ro),lo=Ki(function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,io(t,r)});function ho(t){var e=Or(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var uo=Zn(function(t){var e=t.length,r=e?t[0]:0,i=this.__wrapped__,s=function(e){return ii(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Hr&&fs(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:n}),new Rr(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(n),t})):this.thru(s)}),po=Tn(function(t,e,r){Pt.call(t,r)?++t[r]:ri(t,r,1)}),fo=Dn(Hs),go=Dn(js);function mo(t,e){return(Vo(t)?Ee:li)(t,ss(e,3))}function yo(t,e){return(Vo(t)?Se:hi)(t,ss(e,3))}var vo=Tn(function(t,e,r){Pt.call(t,r)?t[r].push(e):ri(t,r,[e])}),bo=Ki(function(t,e,r){var n=-1,s="function"==typeof e,o=zo(t)?i(t.length):[];return li(t,function(t){o[++n]=s?xe(e,t,r):Fi(t,e,r)}),o}),wo=Tn(function(t,e,r){ri(t,r,e)});function Bo(t,e){return(Vo(t)?ke:Di)(t,ss(e,3))}var xo=Tn(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]}),Co=Ki(function(t,e){if(null==t)return[];var r=e.length;return r>1&&gs(t,e[0],e[1])?e=[]:r>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Ri(t,di(e,1),[])}),Eo=le||function(){return ce.Date.now()};function So(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Yn(t,l,n,n,n,n,e)}function Fo(t,e){var r;if("function"!=typeof e)throw new Ft(s);return t=pa(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var To=Ki(function(t,e,r){var i=1;if(r.length){var n=or(r,ns(To));i|=A}return Yn(t,i,e,r,n)}),Io=Ki(function(t,e,r){var i=3;if(r.length){var n=or(r,ns(Io));i|=A}return Yn(e,i,t,r,n)});function _o(t,e,r){var i,o,a,A,l,h,c=0,u=!1,p=!1,d=!0;if("function"!=typeof t)throw new Ft(s);function f(e){var r=i,s=o;return i=o=n,c=e,A=t.apply(s,r)}function g(t){var r=t-h;return h===n||r>=e||r<0||p&&t-c>=a}function m(){var t=Eo();if(g(t))return y(t);l=Fs(m,function(t){var r=e-(t-h);return p?gr(r,a-(t-c)):r}(t))}function y(t){return l=n,d&&i?f(t):(i=o=n,A)}function v(){var t=Eo(),r=g(t);if(i=arguments,o=this,h=t,r){if(l===n)return function(t){return c=t,l=Fs(m,e),u?f(t):A}(h);if(p)return vn(l),l=Fs(m,e),f(h)}return l===n&&(l=Fs(m,e)),A}return e=fa(e)||0,Zo(r)&&(u=!!r.leading,a=(p="maxWait"in r)?fr(fa(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),v.cancel=function(){l!==n&&vn(l),c=0,i=h=o=l=n},v.flush=function(){return l===n?A:y(Eo())},v}var ko=Ki(function(t,e){return ai(t,1,e)}),Lo=Ki(function(t,e,r){return ai(t,fa(e)||0,r)});function Po(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ft(s);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=t.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(Po.Cache||Gr),r}function No(t){if("function"!=typeof t)throw new Ft(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Po.Cache=Gr;var Do=mn(function(t,e){var r=(e=1==e.length&&Vo(e[0])?ke(e[0],Xe(ss())):ke(di(e,1),Xe(ss()))).length;return Ki(function(i){for(var n=-1,s=gr(i.length,r);++n<s;)i[n]=e[n].call(this,i[n]);return xe(t,this,i)})}),Mo=Ki(function(t,e){var r=or(e,ns(Mo));return Yn(t,A,n,e,r)}),Oo=Ki(function(t,e){var r=or(e,ns(Oo));return Yn(t,64,n,e,r)}),Uo=Zn(function(t,e){return Yn(t,256,n,n,n,e)});function Qo(t,e){return t===e||t!=t&&e!=e}var Ro=Vn(xi),Ho=Vn(function(t,e){return t>=e}),jo=Ti(function(){return arguments}())?Ti:function(t){return ta(t)&&Pt.call(t,"callee")&&!Kt.call(t,"callee")},Vo=i.isArray,Go=me?Xe(me):function(t){return ta(t)&&Bi(t)==k};function zo(t){return null!=t&&Jo(t.length)&&!qo(t)}function Ko(t){return ta(t)&&zo(t)}var Wo=ge||fA,Yo=ye?Xe(ye):function(t){return ta(t)&&Bi(t)==y};function Xo(t){if(!ta(t))return!1;var e=Bi(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function qo(t){if(!Zo(t))return!1;var e=Bi(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $o(t){return"number"==typeof t&&t==pa(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Zo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=ve?Xe(ve):function(t){return ta(t)&&cs(t)==B};function ra(t){return"number"==typeof t||ta(t)&&Bi(t)==x}function ia(t){if(!ta(t)||Bi(t)!=C)return!1;var e=Gt(t);if(null===e)return!0;var r=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Lt.call(r)==Ot}var na=be?Xe(be):function(t){return ta(t)&&Bi(t)==S},sa=we?Xe(we):function(t){return ta(t)&&cs(t)==F};function oa(t){return"string"==typeof t||!Vo(t)&&ta(t)&&Bi(t)==T}function aa(t){return"symbol"==typeof t||ta(t)&&Bi(t)==I}var Aa=Be?Xe(Be):function(t){return ta(t)&&Jo(t.length)&&!!ne[Bi(t)]},la=Vn(Ni),ha=Vn(function(t,e){return t<=e});function ca(t){if(!t)return[];if(zo(t))return oa(t)?hr(t):Sn(t);if(Xt&&t[Xt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Xt]());var e=cs(t);return(e==B?nr:e==F?ar:Qa)(t)}function ua(t){return t?(t=fa(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pa(t){var e=ua(t),r=e%1;return e==e?r?e-r:e:0}function da(t){return t?ni(pa(t),0,p):0}function fa(t){if("number"==typeof t)return t;if(aa(t))return u;if(Zo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Zo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=dt.test(t);return r||gt.test(t)?Ae(t.slice(2),r?2:8):pt.test(t)?u:+t}function ga(t){return Fn(t,ka(t))}function ma(t){return null==t?"":on(t)}var ya=In(function(t,e){if(bs(e)||zo(e))Fn(e,_a(e),t);else for(var r in e)Pt.call(e,r)&&Jr(t,r,e[r])}),va=In(function(t,e){Fn(e,ka(e),t)}),ba=In(function(t,e,r,i){Fn(e,ka(e),t,i)}),wa=In(function(t,e,r,i){Fn(e,_a(e),t,i)}),Ba=Zn(ii),xa=Ki(function(t,e){t=Ct(t);var r=-1,i=e.length,s=i>2?e[2]:n;for(s&&gs(e[0],e[1],s)&&(i=1);++r<i;)for(var o=e[r],a=ka(o),A=-1,l=a.length;++A<l;){var h=a[A],c=t[h];(c===n||Qo(c,_t[h])&&!Pt.call(t,h))&&(t[h]=o[h])}return t}),Ca=Ki(function(t){return t.push(n,qn),xe(Pa,n,t)});function Ea(t,e,r){var i=null==t?n:bi(t,e);return i===n?r:i}function Sa(t,e){return null!=t&&us(t,e,Ei)}var Fa=Un(function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Mt.call(e)),t[e]=r},Za(rA)),Ta=Un(function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Mt.call(e)),Pt.call(t,e)?t[e].push(r):t[e]=[r]},ss),Ia=Ki(Fi);function _a(t){return zo(t)?Wr(t):Pi(t)}function ka(t){return zo(t)?Wr(t,!0):function(t){if(!Zo(t))return function(t){var e=[];if(null!=t)for(var r in Ct(t))e.push(r);return e}(t);var e=bs(t),r=[];for(var i in t)("constructor"!=i||!e&&Pt.call(t,i))&&r.push(i);return r}(t)}var La=In(function(t,e,r){Ui(t,e,r)}),Pa=In(function(t,e,r,i){Ui(t,e,r,i)}),Na=Zn(function(t,e){var r={};if(null==t)return r;var i=!1;e=ke(e,function(e){return e=gn(e,t),i||(i=e.length>1),e}),Fn(t,es(t),r),i&&(r=si(r,7,$n));for(var n=e.length;n--;)An(r,e[n]);return r}),Da=Zn(function(t,e){return null==t?{}:function(t,e){return Hi(t,e,function(e,r){return Sa(t,r)})}(t,e)});function Ma(t,e){if(null==t)return{};var r=ke(es(t),function(t){return[t]});return e=ss(e),Hi(t,r,function(t,r){return e(t,r[0])})}var Oa=Wn(_a),Ua=Wn(ka);function Qa(t){return null==t?[]:qe(t,_a(t))}var Ra=Pn(function(t,e,r){return e=e.toLowerCase(),t+(r?Ha(e):e)});function Ha(t){return Xa(ma(t).toLowerCase())}function ja(t){return(t=ma(t))&&t.replace(yt,tr).replace($t,"")}var Va=Pn(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()}),Ga=Pn(function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}),za=Ln("toLowerCase"),Ka=Pn(function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}),Wa=Pn(function(t,e,r){return t+(r?" ":"")+Xa(e)}),Ya=Pn(function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}),Xa=Ln("toUpperCase");function qa(t,e,r){return t=ma(t),(e=r?n:e)===n?function(t){return ee.test(t)}(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(At)||[]}(t):t.match(e)||[]}var $a=Ki(function(t,e){try{return xe(t,n,e)}catch(t){return Xo(t)?t:new wt(t)}}),Ja=Zn(function(t,e){return Ee(e,function(e){e=Ds(e),ri(t,e,To(t[e],t))}),t});function Za(t){return function(){return t}}var tA=Mn(),eA=Mn(!0);function rA(t){return t}function iA(t){return Li("function"==typeof t?t:si(t,1))}var nA=Ki(function(t,e){return function(r){return Fi(r,t,e)}}),sA=Ki(function(t,e){return function(r){return Fi(t,r,e)}});function oA(t,e,r){var i=_a(e),n=vi(e,i);null!=r||Zo(e)&&(n.length||!i.length)||(r=e,e=t,t=this,n=vi(e,_a(e)));var s=!(Zo(r)&&"chain"in r&&!r.chain),o=qo(t);return Ee(n,function(r){var i=e[r];t[r]=i,o&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__);return(r.__actions__=Sn(this.__actions__)).push({func:i,args:arguments,thisArg:t}),r.__chain__=e,r}return i.apply(t,Le([this.value()],arguments))})}),t}function aA(){}var AA=Rn(ke),lA=Rn(Fe),hA=Rn(De);function cA(t){return ms(t)?Ve(Ds(t)):function(t){return function(e){return bi(e,t)}}(t)}var uA=jn(),pA=jn(!0);function dA(){return[]}function fA(){return!1}var gA,mA=Qn(function(t,e){return t+e},0),yA=zn("ceil"),vA=Qn(function(t,e){return t/e},1),bA=zn("floor"),wA=Qn(function(t,e){return t*e},1),BA=zn("round"),xA=Qn(function(t,e){return t-e},0);return Or.after=function(t,e){if("function"!=typeof e)throw new Ft(s);return t=pa(t),function(){if(--t<1)return e.apply(this,arguments)}},Or.ary=So,Or.assign=ya,Or.assignIn=va,Or.assignInWith=ba,Or.assignWith=wa,Or.at=Ba,Or.before=Fo,Or.bind=To,Or.bindAll=Ja,Or.bindKey=Io,Or.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Vo(t)?t:[t]},Or.chain=ho,Or.chunk=function(t,e,r){e=(r?gs(t,e,r):e===n)?1:fr(pa(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,A=i(ue(s/e));o<s;)A[a++]=Zi(t,o,o+=e);return A},Or.compact=function(t){for(var e=-1,r=null==t?0:t.length,i=0,n=[];++e<r;){var s=t[e];s&&(n[i++]=s)}return n},Or.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Le(Vo(r)?Sn(r):[r],di(e,1))},Or.cond=function(t){var e=null==t?0:t.length,r=ss();return t=e?ke(t,function(t){if("function"!=typeof t[1])throw new Ft(s);return[r(t[0]),t[1]]}):[],Ki(function(r){for(var i=-1;++i<e;){var n=t[i];if(xe(n[0],this,r))return xe(n[1],this,r)}})},Or.conforms=function(t){return function(t){var e=_a(t);return function(r){return oi(r,t,e)}}(si(t,1))},Or.constant=Za,Or.countBy=po,Or.create=function(t,e){var r=Ur(t);return null==e?r:ei(r,e)},Or.curry=function t(e,r,i){var s=Yn(e,8,n,n,n,n,n,r=i?n:r);return s.placeholder=t.placeholder,s},Or.curryRight=function t(e,r,i){var s=Yn(e,16,n,n,n,n,n,r=i?n:r);return s.placeholder=t.placeholder,s},Or.debounce=_o,Or.defaults=xa,Or.defaultsDeep=Ca,Or.defer=ko,Or.delay=Lo,Or.difference=Us,Or.differenceBy=Qs,Or.differenceWith=Rs,Or.drop=function(t,e,r){var i=null==t?0:t.length;return i?Zi(t,(e=r||e===n?1:pa(e))<0?0:e,i):[]},Or.dropRight=function(t,e,r){var i=null==t?0:t.length;return i?Zi(t,0,(e=i-(e=r||e===n?1:pa(e)))<0?0:e):[]},Or.dropRightWhile=function(t,e){return t&&t.length?hn(t,ss(e,3),!0,!0):[]},Or.dropWhile=function(t,e){return t&&t.length?hn(t,ss(e,3),!0):[]},Or.fill=function(t,e,r,i){var s=null==t?0:t.length;return s?(r&&"number"!=typeof r&&gs(t,e,r)&&(r=0,i=s),function(t,e,r,i){var s=t.length;for((r=pa(r))<0&&(r=-r>s?0:s+r),(i=i===n||i>s?s:pa(i))<0&&(i+=s),i=r>i?0:da(i);r<i;)t[r++]=e;return t}(t,e,r,i)):[]},Or.filter=function(t,e){return(Vo(t)?Te:pi)(t,ss(e,3))},Or.flatMap=function(t,e){return di(Bo(t,e),1)},Or.flatMapDeep=function(t,e){return di(Bo(t,e),h)},Or.flatMapDepth=function(t,e,r){return r=r===n?1:pa(r),di(Bo(t,e),r)},Or.flatten=Vs,Or.flattenDeep=function(t){return null!=t&&t.length?di(t,h):[]},Or.flattenDepth=function(t,e){return null!=t&&t.length?di(t,e=e===n?1:pa(e)):[]},Or.flip=function(t){return Yn(t,512)},Or.flow=tA,Or.flowRight=eA,Or.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,i={};++e<r;){var n=t[e];i[n[0]]=n[1]}return i},Or.functions=function(t){return null==t?[]:vi(t,_a(t))},Or.functionsIn=function(t){return null==t?[]:vi(t,ka(t))},Or.groupBy=vo,Or.initial=function(t){return null!=t&&t.length?Zi(t,0,-1):[]},Or.intersection=zs,Or.intersectionBy=Ks,Or.intersectionWith=Ws,Or.invert=Fa,Or.invertBy=Ta,Or.invokeMap=bo,Or.iteratee=iA,Or.keyBy=wo,Or.keys=_a,Or.keysIn=ka,Or.map=Bo,Or.mapKeys=function(t,e){var r={};return e=ss(e,3),mi(t,function(t,i,n){ri(r,e(t,i,n),t)}),r},Or.mapValues=function(t,e){var r={};return e=ss(e,3),mi(t,function(t,i,n){ri(r,i,e(t,i,n))}),r},Or.matches=function(t){return Mi(si(t,1))},Or.matchesProperty=function(t,e){return Oi(t,si(e,1))},Or.memoize=Po,Or.merge=La,Or.mergeWith=Pa,Or.method=nA,Or.methodOf=sA,Or.mixin=oA,Or.negate=No,Or.nthArg=function(t){return t=pa(t),Ki(function(e){return Qi(e,t)})},Or.omit=Na,Or.omitBy=function(t,e){return Ma(t,No(ss(e)))},Or.once=function(t){return Fo(2,t)},Or.orderBy=function(t,e,r,i){return null==t?[]:(Vo(e)||(e=null==e?[]:[e]),Vo(r=i?n:r)||(r=null==r?[]:[r]),Ri(t,e,r))},Or.over=AA,Or.overArgs=Do,Or.overEvery=lA,Or.overSome=hA,Or.partial=Mo,Or.partialRight=Oo,Or.partition=xo,Or.pick=Da,Or.pickBy=Ma,Or.property=cA,Or.propertyOf=function(t){return function(e){return null==t?n:bi(t,e)}},Or.pull=Xs,Or.pullAll=qs,Or.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?ji(t,e,ss(r,2)):t},Or.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?ji(t,e,n,r):t},Or.pullAt=$s,Or.range=uA,Or.rangeRight=pA,Or.rearg=Uo,Or.reject=function(t,e){return(Vo(t)?Te:pi)(t,No(ss(e,3)))},Or.remove=function(t,e){var r=[];if(!t||!t.length)return r;var i=-1,n=[],s=t.length;for(e=ss(e,3);++i<s;){var o=t[i];e(o,i,t)&&(r.push(o),n.push(i))}return Vi(t,n),r},Or.rest=function(t,e){if("function"!=typeof t)throw new Ft(s);return Ki(t,e=e===n?e:pa(e))},Or.reverse=Js,Or.sampleSize=function(t,e,r){return e=(r?gs(t,e,r):e===n)?1:pa(e),(Vo(t)?Xr:Yi)(t,e)},Or.set=function(t,e,r){return null==t?t:Xi(t,e,r)},Or.setWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:Xi(t,e,r,i)},Or.shuffle=function(t){return(Vo(t)?qr:Ji)(t)},Or.slice=function(t,e,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&gs(t,e,r)?(e=0,r=i):(e=null==e?0:pa(e),r=r===n?i:pa(r)),Zi(t,e,r)):[]},Or.sortBy=Co,Or.sortedUniq=function(t){return t&&t.length?nn(t):[]},Or.sortedUniqBy=function(t,e){return t&&t.length?nn(t,ss(e,2)):[]},Or.split=function(t,e,r){return r&&"number"!=typeof r&&gs(t,e,r)&&(e=r=n),(r=r===n?p:r>>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!na(e))&&!(e=on(e))&&ir(t)?yn(hr(t),0,r):t.split(e,r):[]},Or.spread=function(t,e){if("function"!=typeof t)throw new Ft(s);return e=null==e?0:fr(pa(e),0),Ki(function(r){var i=r[e],n=yn(r,0,e);return i&&Le(n,i),xe(t,this,n)})},Or.tail=function(t){var e=null==t?0:t.length;return e?Zi(t,1,e):[]},Or.take=function(t,e,r){return t&&t.length?Zi(t,0,(e=r||e===n?1:pa(e))<0?0:e):[]},Or.takeRight=function(t,e,r){var i=null==t?0:t.length;return i?Zi(t,(e=i-(e=r||e===n?1:pa(e)))<0?0:e,i):[]},Or.takeRightWhile=function(t,e){return t&&t.length?hn(t,ss(e,3),!1,!0):[]},Or.takeWhile=function(t,e){return t&&t.length?hn(t,ss(e,3)):[]},Or.tap=function(t,e){return e(t),t},Or.throttle=function(t,e,r){var i=!0,n=!0;if("function"!=typeof t)throw new Ft(s);return Zo(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),_o(t,e,{leading:i,maxWait:e,trailing:n})},Or.thru=co,Or.toArray=ca,Or.toPairs=Oa,Or.toPairsIn=Ua,Or.toPath=function(t){return Vo(t)?ke(t,Ds):aa(t)?[t]:Sn(Ns(ma(t)))},Or.toPlainObject=ga,Or.transform=function(t,e,r){var i=Vo(t),n=i||Wo(t)||Aa(t);if(e=ss(e,4),null==r){var s=t&&t.constructor;r=n?i?new s:[]:Zo(t)&&qo(s)?Ur(Gt(t)):{}}return(n?Ee:mi)(t,function(t,i,n){return e(r,t,i,n)}),r},Or.unary=function(t){return So(t,1)},Or.union=Zs,Or.unionBy=to,Or.unionWith=eo,Or.uniq=function(t){return t&&t.length?an(t):[]},Or.uniqBy=function(t,e){return t&&t.length?an(t,ss(e,2)):[]},Or.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?an(t,n,e):[]},Or.unset=function(t,e){return null==t||An(t,e)},Or.unzip=ro,Or.unzipWith=io,Or.update=function(t,e,r){return null==t?t:ln(t,e,fn(r))},Or.updateWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:ln(t,e,fn(r),i)},Or.values=Qa,Or.valuesIn=function(t){return null==t?[]:qe(t,ka(t))},Or.without=no,Or.words=qa,Or.wrap=function(t,e){return Mo(fn(e),t)},Or.xor=so,Or.xorBy=oo,Or.xorWith=ao,Or.zip=Ao,Or.zipObject=function(t,e){return pn(t||[],e||[],Jr)},Or.zipObjectDeep=function(t,e){return pn(t||[],e||[],Xi)},Or.zipWith=lo,Or.entries=Oa,Or.entriesIn=Ua,Or.extend=va,Or.extendWith=ba,oA(Or,Or),Or.add=mA,Or.attempt=$a,Or.camelCase=Ra,Or.capitalize=Ha,Or.ceil=yA,Or.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=fa(r))==r?r:0),e!==n&&(e=(e=fa(e))==e?e:0),ni(fa(t),e,r)},Or.clone=function(t){return si(t,4)},Or.cloneDeep=function(t){return si(t,5)},Or.cloneDeepWith=function(t,e){return si(t,5,e="function"==typeof e?e:n)},Or.cloneWith=function(t,e){return si(t,4,e="function"==typeof e?e:n)},Or.conformsTo=function(t,e){return null==e||oi(t,e,_a(e))},Or.deburr=ja,Or.defaultTo=function(t,e){return null==t||t!=t?e:t},Or.divide=vA,Or.endsWith=function(t,e,r){t=ma(t),e=on(e);var i=t.length,s=r=r===n?i:ni(pa(r),0,i);return(r-=e.length)>=0&&t.slice(r,s)==e},Or.eq=Qo,Or.escape=function(t){return(t=ma(t))&&Y.test(t)?t.replace(K,er):t},Or.escapeRegExp=function(t){return(t=ma(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Or.every=function(t,e,r){var i=Vo(t)?Fe:ci;return r&&gs(t,e,r)&&(e=n),i(t,ss(e,3))},Or.find=fo,Or.findIndex=Hs,Or.findKey=function(t,e){return Oe(t,ss(e,3),mi)},Or.findLast=go,Or.findLastIndex=js,Or.findLastKey=function(t,e){return Oe(t,ss(e,3),yi)},Or.floor=bA,Or.forEach=mo,Or.forEachRight=yo,Or.forIn=function(t,e){return null==t?t:fi(t,ss(e,3),ka)},Or.forInRight=function(t,e){return null==t?t:gi(t,ss(e,3),ka)},Or.forOwn=function(t,e){return t&&mi(t,ss(e,3))},Or.forOwnRight=function(t,e){return t&&yi(t,ss(e,3))},Or.get=Ea,Or.gt=Ro,Or.gte=Ho,Or.has=function(t,e){return null!=t&&us(t,e,Ci)},Or.hasIn=Sa,Or.head=Gs,Or.identity=rA,Or.includes=function(t,e,r,i){t=zo(t)?t:Qa(t),r=r&&!i?pa(r):0;var n=t.length;return r<0&&(r=fr(n+r,0)),oa(t)?r<=n&&t.indexOf(e,r)>-1:!!n&&Qe(t,e,r)>-1},Or.indexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var n=null==r?0:pa(r);return n<0&&(n=fr(i+n,0)),Qe(t,e,n)},Or.inRange=function(t,e,r){return e=ua(e),r===n?(r=e,e=0):r=ua(r),function(t,e,r){return t>=gr(e,r)&&t<fr(e,r)}(t=fa(t),e,r)},Or.invoke=Ia,Or.isArguments=jo,Or.isArray=Vo,Or.isArrayBuffer=Go,Or.isArrayLike=zo,Or.isArrayLikeObject=Ko,Or.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Bi(t)==m},Or.isBuffer=Wo,Or.isDate=Yo,Or.isElement=function(t){return ta(t)&&1===t.nodeType&&!ia(t)},Or.isEmpty=function(t){if(null==t)return!0;if(zo(t)&&(Vo(t)||"string"==typeof t||"function"==typeof t.splice||Wo(t)||Aa(t)||jo(t)))return!t.length;var e=cs(t);if(e==B||e==F)return!t.size;if(bs(t))return!Pi(t).length;for(var r in t)if(Pt.call(t,r))return!1;return!0},Or.isEqual=function(t,e){return Ii(t,e)},Or.isEqualWith=function(t,e,r){var i=(r="function"==typeof r?r:n)?r(t,e):n;return i===n?Ii(t,e,n,r):!!i},Or.isError=Xo,Or.isFinite=function(t){return"number"==typeof t&&Me(t)},Or.isFunction=qo,Or.isInteger=$o,Or.isLength=Jo,Or.isMap=ea,Or.isMatch=function(t,e){return t===e||_i(t,e,as(e))},Or.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,_i(t,e,as(e),r)},Or.isNaN=function(t){return ra(t)&&t!=+t},Or.isNative=function(t){if(vs(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ki(t)},Or.isNil=function(t){return null==t},Or.isNull=function(t){return null===t},Or.isNumber=ra,Or.isObject=Zo,Or.isObjectLike=ta,Or.isPlainObject=ia,Or.isRegExp=na,Or.isSafeInteger=function(t){return $o(t)&&t>=-9007199254740991&&t<=c},Or.isSet=sa,Or.isString=oa,Or.isSymbol=aa,Or.isTypedArray=Aa,Or.isUndefined=function(t){return t===n},Or.isWeakMap=function(t){return ta(t)&&cs(t)==_},Or.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Bi(t)},Or.join=function(t,e){return null==t?"":Ge.call(t,e)},Or.kebabCase=Va,Or.last=Ys,Or.lastIndexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var s=i;return r!==n&&(s=(s=pa(r))<0?fr(i+s,0):gr(s,i-1)),e==e?function(t,e,r){for(var i=r+1;i--;)if(t[i]===e)return i;return i}(t,e,s):Ue(t,He,s,!0)},Or.lowerCase=Ga,Or.lowerFirst=za,Or.lt=la,Or.lte=ha,Or.max=function(t){return t&&t.length?ui(t,rA,xi):n},Or.maxBy=function(t,e){return t&&t.length?ui(t,ss(e,2),xi):n},Or.mean=function(t){return je(t,rA)},Or.meanBy=function(t,e){return je(t,ss(e,2))},Or.min=function(t){return t&&t.length?ui(t,rA,Ni):n},Or.minBy=function(t,e){return t&&t.length?ui(t,ss(e,2),Ni):n},Or.stubArray=dA,Or.stubFalse=fA,Or.stubObject=function(){return{}},Or.stubString=function(){return""},Or.stubTrue=function(){return!0},Or.multiply=wA,Or.nth=function(t,e){return t&&t.length?Qi(t,pa(e)):n},Or.noConflict=function(){return ce._===this&&(ce._=Ut),this},Or.noop=aA,Or.now=Eo,Or.pad=function(t,e,r){t=ma(t);var i=(e=pa(e))?lr(t):0;if(!e||i>=e)return t;var n=(e-i)/2;return Hn(pe(n),r)+t+Hn(ue(n),r)},Or.padEnd=function(t,e,r){t=ma(t);var i=(e=pa(e))?lr(t):0;return e&&i<e?t+Hn(e-i,r):t},Or.padStart=function(t,e,r){t=ma(t);var i=(e=pa(e))?lr(t):0;return e&&i<e?Hn(e-i,r)+t:t},Or.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),yr(ma(t).replace(it,""),e||0)},Or.random=function(t,e,r){if(r&&"boolean"!=typeof r&&gs(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=ua(t),e===n?(e=t,t=0):e=ua(e)),t>e){var i=t;t=e,e=i}if(r||t%1||e%1){var s=vr();return gr(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gi(t,e)},Or.reduce=function(t,e,r){var i=Vo(t)?Pe:ze,n=arguments.length<3;return i(t,ss(e,4),r,n,li)},Or.reduceRight=function(t,e,r){var i=Vo(t)?Ne:ze,n=arguments.length<3;return i(t,ss(e,4),r,n,hi)},Or.repeat=function(t,e,r){return e=(r?gs(t,e,r):e===n)?1:pa(e),zi(ma(t),e)},Or.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Or.result=function(t,e,r){var i=-1,s=(e=gn(e,t)).length;for(s||(s=1,t=n);++i<s;){var o=null==t?n:t[Ds(e[i])];o===n&&(i=s,o=r),t=qo(o)?o.call(t):o}return t},Or.round=BA,Or.runInContext=t,Or.sample=function(t){return(Vo(t)?Yr:Wi)(t)},Or.size=function(t){if(null==t)return 0;if(zo(t))return oa(t)?lr(t):t.length;var e=cs(t);return e==B||e==F?t.size:Pi(t).length},Or.snakeCase=Ka,Or.some=function(t,e,r){var i=Vo(t)?De:tn;return r&&gs(t,e,r)&&(e=n),i(t,ss(e,3))},Or.sortedIndex=function(t,e){return en(t,e)},Or.sortedIndexBy=function(t,e,r){return rn(t,e,ss(r,2))},Or.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var i=en(t,e);if(i<r&&Qo(t[i],e))return i}return-1},Or.sortedLastIndex=function(t,e){return en(t,e,!0)},Or.sortedLastIndexBy=function(t,e,r){return rn(t,e,ss(r,2),!0)},Or.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=en(t,e,!0)-1;if(Qo(t[r],e))return r}return-1},Or.startCase=Wa,Or.startsWith=function(t,e,r){return t=ma(t),r=null==r?0:ni(pa(r),0,t.length),e=on(e),t.slice(r,r+e.length)==e},Or.subtract=xA,Or.sum=function(t){return t&&t.length?Ke(t,rA):0},Or.sumBy=function(t,e){return t&&t.length?Ke(t,ss(e,2)):0},Or.template=function(t,e,r){var i=Or.templateSettings;r&&gs(t,e,r)&&(e=n),t=ma(t),e=ba({},e,i,Xn);var s,o,a=ba({},e.imports,i.imports,Xn),A=_a(a),l=qe(a,A),h=0,c=e.interpolate||vt,u="__p += '",p=Et((e.escape||vt).source+"|"+c.source+"|"+(c===$?ct:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),d="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(p,function(e,r,i,n,a,A){return i||(i=n),u+=t.slice(h,A).replace(bt,rr),r&&(s=!0,u+="' +\n__e("+r+") +\n'"),a&&(o=!0,u+="';\n"+a+";\n__p += '"),i&&(u+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),h=A+e.length,e}),u+="';\n";var f=Pt.call(e,"variable")&&e.variable;if(f){if(lt.test(f))throw new wt("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(o?u.replace(j,""):u).replace(V,"$1").replace(G,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=$a(function(){return Bt(A,d+"return "+u).apply(n,l)});if(g.source=u,Xo(g))throw g;return g},Or.times=function(t,e){if((t=pa(t))<1||t>c)return[];var r=p,i=gr(t,p);e=ss(e),t-=p;for(var n=We(i,e);++r<t;)e(r);return n},Or.toFinite=ua,Or.toInteger=pa,Or.toLength=da,Or.toLower=function(t){return ma(t).toLowerCase()},Or.toNumber=fa,Or.toSafeInteger=function(t){return t?ni(pa(t),-9007199254740991,c):0===t?t:0},Or.toString=ma,Or.toUpper=function(t){return ma(t).toUpperCase()},Or.trim=function(t,e,r){if((t=ma(t))&&(r||e===n))return Ye(t);if(!t||!(e=on(e)))return t;var i=hr(t),s=hr(e);return yn(i,Je(i,s),Ze(i,s)+1).join("")},Or.trimEnd=function(t,e,r){if((t=ma(t))&&(r||e===n))return t.slice(0,cr(t)+1);if(!t||!(e=on(e)))return t;var i=hr(t);return yn(i,0,Ze(i,hr(e))+1).join("")},Or.trimStart=function(t,e,r){if((t=ma(t))&&(r||e===n))return t.replace(it,"");if(!t||!(e=on(e)))return t;var i=hr(t);return yn(i,Je(i,hr(e))).join("")},Or.truncate=function(t,e){var r=30,i="...";if(Zo(e)){var s="separator"in e?e.separator:s;r="length"in e?pa(e.length):r,i="omission"in e?on(e.omission):i}var o=(t=ma(t)).length;if(ir(t)){var a=hr(t);o=a.length}if(r>=o)return t;var A=r-lr(i);if(A<1)return i;var l=a?yn(a,0,A).join(""):t.slice(0,A);if(s===n)return l+i;if(a&&(A+=l.length-A),na(s)){if(t.slice(A).search(s)){var h,c=l;for(s.global||(s=Et(s.source,ma(ut.exec(s))+"g")),s.lastIndex=0;h=s.exec(c);)var u=h.index;l=l.slice(0,u===n?A:u)}}else if(t.indexOf(on(s),A)!=A){var p=l.lastIndexOf(s);p>-1&&(l=l.slice(0,p))}return l+i},Or.unescape=function(t){return(t=ma(t))&&W.test(t)?t.replace(z,ur):t},Or.uniqueId=function(t){var e=++Nt;return ma(t)+e},Or.upperCase=Ya,Or.upperFirst=Xa,Or.each=mo,Or.eachRight=yo,Or.first=Gs,oA(Or,(gA={},mi(Or,function(t,e){Pt.call(Or.prototype,e)||(gA[e]=t)}),gA),{chain:!1}),Or.VERSION="4.17.23",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Or[t].placeholder=Or}),Ee(["drop","take"],function(t,e){Hr.prototype[t]=function(r){r=r===n?1:fr(pa(r),0);var i=this.__filtered__&&!e?new Hr(this):this.clone();return i.__filtered__?i.__takeCount__=gr(r,i.__takeCount__):i.__views__.push({size:gr(r,p),type:t+(i.__dir__<0?"Right":"")}),i},Hr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ee(["filter","map","takeWhile"],function(t,e){var r=e+1,i=1==r||3==r;Hr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:r}),e.__filtered__=e.__filtered__||i,e}}),Ee(["head","last"],function(t,e){var r="take"+(e?"Right":"");Hr.prototype[t]=function(){return this[r](1).value()[0]}}),Ee(["initial","tail"],function(t,e){var r="drop"+(e?"":"Right");Hr.prototype[t]=function(){return this.__filtered__?new Hr(this):this[r](1)}}),Hr.prototype.compact=function(){return this.filter(rA)},Hr.prototype.find=function(t){return this.filter(t).head()},Hr.prototype.findLast=function(t){return this.reverse().find(t)},Hr.prototype.invokeMap=Ki(function(t,e){return"function"==typeof t?new Hr(this):this.map(function(r){return Fi(r,t,e)})}),Hr.prototype.reject=function(t){return this.filter(No(ss(t)))},Hr.prototype.slice=function(t,e){t=pa(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Hr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=pa(e))<0?r.dropRight(-e):r.take(e-t)),r)},Hr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hr.prototype.toArray=function(){return this.take(p)},mi(Hr.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=Or[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(Or.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,A=e instanceof Hr,l=a[0],h=A||Vo(e),c=function(t){var e=s.apply(Or,Le([t],a));return i&&u?e[0]:e};h&&r&&"function"==typeof l&&1!=l.length&&(A=h=!1);var u=this.__chain__,p=!!this.__actions__.length,d=o&&!u,f=A&&!p;if(!o&&h){e=f?e:new Hr(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:n}),new Rr(g,u)}return d&&f?t.apply(this,a):(g=this.thru(c),d?i?g.value()[0]:g.value():g)})}),Ee(["pop","push","shift","sort","splice","unshift"],function(t){var e=Tt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Or.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(Vo(n)?n:[],t)}return this[r](function(r){return e.apply(Vo(r)?r:[],t)})}}),mi(Hr.prototype,function(t,e){var r=Or[e];if(r){var i=r.name+"";Pt.call(Tr,i)||(Tr[i]=[]),Tr[i].push({name:e,func:r})}}),Tr[On(n,2).name]=[{name:"wrapper",func:n}],Hr.prototype.clone=function(){var t=new Hr(this.__wrapped__);return t.__actions__=Sn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Sn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Sn(this.__views__),t},Hr.prototype.reverse=function(){if(this.__filtered__){var t=new Hr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Vo(t),i=e<0,n=r?t.length:0,s=function(t,e,r){for(var i=-1,n=r.length;++i<n;){var s=r[i],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=gr(e,t+o);break;case"takeRight":t=fr(t,e-o)}}return{start:t,end:e}}(0,n,this.__views__),o=s.start,a=s.end,A=a-o,l=i?a:o-1,h=this.__iteratees__,c=h.length,u=0,p=gr(A,this.__takeCount__);if(!r||!i&&n==A&&p==A)return cn(t,this.__actions__);var d=[];t:for(;A--&&u<p;){for(var f=-1,g=t[l+=e];++f<c;){var m=h[f],y=m.iteratee,v=m.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)continue t;break t}}d[u++]=g}return d},Or.prototype.at=uo,Or.prototype.chain=function(){return ho(this)},Or.prototype.commit=function(){return new Rr(this.value(),this.__chain__)},Or.prototype.next=function(){this.__values__===n&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Or.prototype.plant=function(t){for(var e,r=this;r instanceof Qr;){var i=Os(r);i.__index__=0,i.__values__=n,e?s.__wrapped__=i:e=i;var s=i;r=r.__wrapped__}return s.__wrapped__=t,e},Or.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hr){var e=t;return this.__actions__.length&&(e=new Hr(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:n}),new Rr(e,this.__chain__)}return this.thru(Js)},Or.prototype.toJSON=Or.prototype.valueOf=Or.prototype.value=function(){return cn(this.__wrapped__,this.__actions__)},Or.prototype.first=Or.prototype.head,Xt&&(Or.prototype[Xt]=function(){return this}),Or}();ce._=pr,(i=function(){return pr}.call(e,r,e,t))===n||(t.exports=i)}.call(this)},44773(t,e,r){var i=r(9935),n=r(93880),s=r(55992);t.exports=function(t,e){var r={};return e=s(e,3),n(t,function(t,n,s){i(r,n,e(t,n,s))}),r}},84101(t,e,r){var i=r(98464);function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=t.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(n.Cache||i),r}n.Cache=i,t.exports=n},50277(t,e,r){var i=r(22725),n=r(25834)(function(t,e,r){i(t,e,r)});t.exports=n},19697(t){t.exports=function(){}},61381(t,e,r){var i=r(91736);t.exports=function(){return i.Date.now()}},47520(t,e,r){var i=r(39221),n=r(60444),s=r(1116),o=r(46476),a=r(84534),A=r(11241),l=r(73985),h=r(57856),c=l(function(t,e){var r={};if(null==t)return r;var l=!1;e=i(e,function(e){return e=o(e,t),l||(l=e.length>1),e}),a(t,h(t),r),l&&(r=n(r,7,A));for(var c=e.length;c--;)s(r,e[c]);return r});t.exports=c},78664(t,e,r){var i=r(99528),n=r(96628);t.exports=function(t,e,r,s){return null==t?[]:(n(e)||(e=null==e?[]:[e]),n(r=s?void 0:r)||(r=null==r?[]:[r]),i(t,e,r))}},63447(t,e,r){var i=r(52937)(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]});t.exports=i},79564(t,e,r){var i=r(36364),n=r(71986),s=r(5749),o=r(20018);t.exports=function(t){return s(t)?i(o(t)):n(t)}},58806(t,e,r){var i=r(42836),n=r(73985)(function(t,e){return i(t,256,void 0,void 0,void 0,e)});t.exports=n},87677(t,e,r){var i=r(22734)("round");t.exports=i},17181(t,e,r){var i=r(35421);t.exports=function(t,e,r){return null==t?t:i(t,e,r)}},32148(t){t.exports=function(){return[]}},14078(t){t.exports=function(){return!1}},46059(t,e,r){var i=r(55992),n=r(76982);t.exports=function(t,e){return t&&t.length?n(t,i(e,2)):0}},96263(t,e,r){var i=r(43569),n=1/0;t.exports=function(t){return t?(t=i(t))===n||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},78164(t,e,r){var i=r(96263);t.exports=function(t){var e=i(t),r=e%1;return e==e?r?e-r:e:0}},43569(t,e,r){var i=r(29605),n=r(97230),s=r(83089),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,A=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var r=a.test(t);return r||A.test(t)?l(t.slice(2),r?2:8):o.test(t)?NaN:+t}},38135(t,e,r){var i=r(39221),n=r(20380),s=r(96628),o=r(83089),a=r(71951),A=r(20018),l=r(55805);t.exports=function(t){return s(t)?i(t,A):o(t)?[t]:n(a(l(t)))}},58089(t,e,r){var i=r(84534),n=r(93562);t.exports=function(t){return i(t,n(t))}},55805(t,e,r){var i=r(75293);t.exports=function(t){return null==t?"":i(t)}},40944(t,e,r){var i=r(97936);t.exports=function(t){return t&&t.length?i(t):[]}},93107(t,e,r){var i=r(3228)("toUpperCase");t.exports=i},42671(t,e,r){var i=r(89819),n=r(42958),s=r(61808),o=r(96628),a=r(28089),A=r(48368),l=Object.prototype.hasOwnProperty;function h(t){if(a(t)&&!o(t)&&!(t instanceof i)){if(t instanceof n)return t;if(l.call(t,"__wrapped__"))return A(t)}return new n(t)}h.prototype=s.prototype,h.prototype.constructor=h,t.exports=h},7369(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,i=0,n=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="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},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var i,n,s,o,a,A,l,h;switch(A=r*(1-e),l=r*(1-(a=6*t-(o=Math.floor(6*t)))*e),h=r*(1-(1-a)*e),o%6){case 0:i=r,n=h,s=A;break;case 1:i=l,n=r,s=A;break;case 2:i=A,n=r,s=h;break;case 3:i=A,n=l,s=r;break;case 4:i=h,n=A,s=r;break;case 5:i=r,n=A,s=l}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),o=n-s,a=0===n?0:o/n,A=n/255;switch(n){case s:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o}return[i,a,A]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="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},_typeof$5(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){n.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=e,n}(function(t){if(s.dataManager||(s.dataManager=function(){function t(n,s){var o,a,A,l,h,u,p=n.length;for(a=0;a<p;a+=1)if("ks"in(o=n[a])&&!o.completed){if(o.completed=!0,o.hasMask){var d=o.masksProperties;for(l=d.length,A=0;A<l;A+=1)if(d[A].pt.k.i)i(d[A].pt.k);else for(u=d[A].pt.k.length,h=0;h<u;h+=1)d[A].pt.k[h].s&&i(d[A].pt.k[h].s[0]),d[A].pt.k[h].e&&i(d[A].pt.k[h].e[0])}0===o.ty?(o.layers=e(o.refId,s),t(o.layers,s)):4===o.ty?r(o.shapes):5===o.ty&&c(o)}}function e(t,e){var r=function(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,n,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;n<s;n+=1)t[e].ks.k[n].s&&i(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&i(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var s,o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),a=(s=[4,7,99],function(t){if(t.chars&&!n(s,t.v)){var e,i=t.chars.length;for(e=0;e<i;e+=1){var o=t.chars[e];o.data&&o.data.shapes&&(r(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),A=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var r,i,n,s=t.length;for(r=0;r<s;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(n=t[r].c.k.length,i=0;i<n;i+=1)t[r].c.k[i].s&&(t[r].c.k[i].s[0]/=255,t[r].c.k[i].s[1]/=255,t[r].c.k[i].s[2]/=255,t[r].c.k[i].s[3]/=255),t[r].c.k[i].e&&(t[r].c.k[i].e[0]/=255,t[r].c.k[i].e[1]/=255,t[r].c.k[i].e[2]/=255,t[r].c.k[i].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),h=function(){var t=[4,4,18];function e(t){var r,i,n;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(n=t[r].ks.k.length,i=0;i<n;i+=1)t[r].ks.k[i].s&&(t[r].ks.k[i].s[0].c=t[r].closed),t[r].ks.k[i].e&&(t[r].ks.k[i].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,i,n,s,o,a,A=t.length;for(i=0;i<A;i+=1){if((r=t[i]).hasMask){var l=r.masksProperties;for(s=l.length,n=0;n<s;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(a=l[n].pt.k.length,o=0;o<a;o+=1)l[n].pt.k[o].s&&(l[n].pt.k[o].s[0].c=l[n].cl),l[n].pt.k[o].e&&(l[n].pt.k[o].e[0].c=l[n].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function c(t){0===t.t.a.length&&t.t.p}var u={completeData:function(r){r.__complete||(l(r),o(r),a(r),A(r),h(r),t(r.layers,r.assets),function(r,i){if(r){var n=0,s=r.length;for(n=0;n<s;n+=1)1===r[n].t&&(r[n].data.layers=e(r[n].data.refId,i),t(r[n].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return u.checkColors=l,u.checkChars=a,u.checkPathProperties=A,u.checkShapes=h,u.completeLayers=t,u}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,i,n){var s,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)s=t(o),i(s);else try{s=t(o),i(s)}catch(t){n&&n(t)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(t){o.open(["G","E","T"].join(""),r+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,r=e.id,n=i[r];i[r]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function a(t,e){var n="processId_"+(r+=1);return i[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,r,i){o();var n=a(r,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,r,i){o();var n=a(r,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,r,i){o();var n=a(r,i);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,r){var i="";if(t.e)i=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=e+n}else i=r,i+=t.u?t.u:"",i+=t.p;return i}function n(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var i=t.length;for(r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=i(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.src=r;var s={img:n,assetData:e};return s},createImageData:function(e){var r=i(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var s={img:n,assetData:e};return s},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),i={},n=0,s=0;s<r.length;s+=1)2===(e=r[s].split(":")).length&&(i[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return i}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch(r){try{s.payload=t(e[i].cm)}catch(t){s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="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},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==s,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,s=t.layers,o=s.length;for(r=0;r<o;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,i="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,o=!1;function a(t){for(var r=0,n=t.target;r<i;)e[r].animation===n&&(e.splice(r,1),r-=1,i-=1,n.isPaused||h()),r+=1}function A(t,r){if(!t)return null;for(var n=0;n<i;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var s=new AnimationItem;return c(s,t),s.setData(t,r),s}function l(){n+=1,d()}function h(){n-=1}function c(t,r){t.addEventListener("destroy",a),t.addEventListener("_active",l),t.addEventListener("_idle",h),e.push({elem:r,animation:t}),i+=1}function u(t){var a,A=t-r;for(a=0;a<i;a+=1)e[a].animation.advanceTime(A);r=t,n&&!o?window.requestAnimationFrame(u):s=!0}function p(t){r=t,window.requestAnimationFrame(u)}function d(){!o&&n&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=A,t.loadAnimation=function(t){var e=new AnimationItem;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setSpeed(t,r)},t.setDirection=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=n.length;for(i=0;i<s;i+=1)r&&n[i].setAttribute("data-bm-type",r),A(n[i],t);if(e&&0===s){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var a=createTag("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",r),o.appendChild(a),A(a,t)}},t.resize=function(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,n){var s;for(s=0;s<i;s+=1)e[s].animation.goToAndStop(t,r,n)},t.destroy=function(t){var r;for(r=i-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,d()},t.setVolume=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i.push(e[t].animation);return i},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,i,n,s){var o=s||("bez_"+t+"_"+r+"_"+i+"_"+n).replace(/\./g,"p");if(e[o])return e[o];var a=new h([t,r,i,n]);return e[o]=a,a}},e={},r=11,i=1/(r-1),n="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function A(t,e,r){return((s(e,r)*t+o(e,r))*t+a(e))*t}function l(t,e,r){return 3*s(e,r)*t*t+2*o(e,r)*t+a(e)}function h(t){this._p=t,this._mSampleValues=n?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===r&&i===n?t:0===t?0:1===t?1:A(this._getTForX(t),r,n)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<r;++n)this._mSampleValues[n]=A(n*i,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],s=this._mSampleValues,o=0,a=1,h=r-1;a!==h&&s[a]<=t;++a)o+=i;var c=o+(t-s[--a])/(s[a+1]-s[a])*i,u=l(c,e,n);return u>=.001?function(t,e,r,i){for(var n=0;n<4;++n){var s=l(e,r,i);if(0===s)return e;e-=(A(e,r,i)-t)/s}return e}(t,c,e,n):0===u?c:function(t,e,r,i,n){var s,o,a=0;do{(s=A(o=e+(r-e)/2,i,n)-t)>0?r=o:e=o}while(Math.abs(s)>1e-7&&++a<10);return o}(t,o,o+i,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(t){i===n&&(s=pooling.double(s),n*=2),r&&r(t),s[i]=t,i+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,r,i,n,s){var o=t*i+e*n+r*s-n*i-s*t-r*e;return o>-.001&&o<.001}var r=function(t,e,r,i){var n,s,o,a,A,l,h=getDefaultCurveSegments(),c=0,u=[],p=[],d=bezierLengthPool.newElement();for(o=r.length,n=0;n<h;n+=1){for(A=n/(h-1),l=0,s=0;s<o;s+=1)a=bmPow(1-A,3)*t[s]+3*bmPow(1-A,2)*A*r[s]+3*(1-A)*bmPow(A,2)*i[s]+bmPow(A,3)*e[s],u[s]=a,null!==p[s]&&(l+=bmPow(u[s]-p[s],2)),p[s]=u[s];l&&(c+=l=bmSqrt(l)),d.percents[n]=A,d.lengths[n]=c}return d.addedLength=c,d};function i(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var s,o=(s={},function(t,r,o,a){var A=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+a[0]+"_"+a[1]).replace(/\./g,"p");if(!s[A]){var l,h,c,u,p,d,f,g=getDefaultCurveSegments(),m=0,y=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],r[0],r[1],r[0]+a[0],r[1]+a[1])&&(g=2);var v=new i(g);for(c=o.length,l=0;l<g;l+=1){for(f=createSizedArray(c),p=l/(g-1),d=0,h=0;h<c;h+=1)u=bmPow(1-p,3)*t[h]+3*bmPow(1-p,2)*p*(t[h]+o[h])+3*(1-p)*bmPow(p,2)*(r[h]+a[h])+bmPow(p,3)*r[h],f[h]=u,null!==y&&(d+=bmPow(f[h]-y[h],2));m+=d=bmSqrt(d),v.points[l]=new n(d,f),y=f}v.segmentLength=m,s[A]=v}return s[A]});function a(t,e){var r=e.percents,i=e.lengths,n=r.length,s=bmFloor((n-1)*t),o=t*e.addedLength,a=0;if(s===n-1||0===s||o===i[s])return r[s];for(var A=i[s]>o?-1:1,l=!0;l;)if(i[s]<=o&&i[s+1]>o?(a=(o-i[s])/(i[s+1]-i[s]),l=!1):s+=A,s<0||s>=n-1){if(s===n-1)return r[s];l=!1}return r[s]+(r[s+1]-r[s])*a}var A=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,i=segmentsLengthPool.newElement(),n=t.c,s=t.v,o=t.o,a=t.i,A=t._length,l=i.lengths,h=0;for(e=0;e<A-1;e+=1)l[e]=r(s[e],s[e+1],o[e],a[e+1]),h+=l[e].addedLength;return n&&A&&(l[e]=r(s[e],s[0],o[e],a[0]),h+=l[e].addedLength),i.totalLength=h,i},getNewSegment:function(e,r,i,n,s,o,l){s<0?s=0:s>1&&(s=1);var h,c=a(s,l),u=a(o=o>1?1:o,l),p=e.length,d=1-c,f=1-u,g=d*d*d,m=c*d*d*3,y=c*c*d*3,v=c*c*c,b=d*d*f,w=c*d*f+d*c*f+d*d*u,B=c*c*f+d*c*u+c*d*u,x=c*c*u,C=d*f*f,E=c*f*f+d*u*f+d*f*u,S=c*u*f+d*u*u+c*f*u,F=c*u*u,T=f*f*f,I=u*f*f+f*u*f+f*f*u,_=u*u*f+f*u*u+u*f*u,k=u*u*u;for(h=0;h<p;h+=1)A[4*h]=t.round(1e3*(g*e[h]+m*i[h]+y*n[h]+v*r[h]))/1e3,A[4*h+1]=t.round(1e3*(b*e[h]+w*i[h]+B*n[h]+x*r[h]))/1e3,A[4*h+2]=t.round(1e3*(C*e[h]+E*i[h]+S*n[h]+F*r[h]))/1e3,A[4*h+3]=t.round(1e3*(T*e[h]+I*i[h]+_*n[h]+k*r[h]))/1e3;return A},getPointInSegment:function(e,r,i,n,s,o){var A=a(s,o),l=1-A;return[t.round(1e3*(l*l*l*e[0]+(A*l*l+l*A*l+l*l*A)*i[0]+(A*A*l+l*A*A+A*l*A)*n[0]+A*A*A*r[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(A*l*l+l*A*l+l*l*A)*i[1]+(A*A*l+l*A*A+A*l*A)*n[1]+A*A*A*r[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(r,i,n,s,o,a,A,l,h){if(0===n&&0===a&&0===h)return e(r,i,s,o,A,l);var c,u=t.sqrt(t.pow(s-r,2)+t.pow(o-i,2)+t.pow(a-n,2)),p=t.sqrt(t.pow(A-r,2)+t.pow(l-i,2)+t.pow(h-n,2)),d=t.sqrt(t.pow(A-s,2)+t.pow(l-o,2)+t.pow(h-a,2));return(c=u>p?u>d?u-p-d:d-p-u:d>p?d-p-u:p-u-d)>-1e-4&&c<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,s,o,a,A,l,h,c,u,p=e.lastIndex,d=p,f=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[d],s=this.keyframes[d+1],d===f-1&&t>=s.t-i){n.h&&(n=s),p=0;break}if(s.t-i>t){p=d;break}d<f-1?d+=1:(p=0,g=!1)}o=this.keyframesMetadata[d]||{};var m,y=s.t-i,v=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var b=o.bezierData;if(t>=y||t<v){var w=t>=y?b.points.length-1:0;for(A=b.points[w].point.length,a=0;a<A;a+=1)r[a]=b.points[w].point[a]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),l=u((t-v)/(y-v));var B,x=b.segmentLength*l,C=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,g=!0,h=b.points.length;g;){if(C+=b.points[c].partialLength,0===x||0===l||c===b.points.length-1){for(A=b.points[c].point.length,a=0;a<A;a+=1)r[a]=b.points[c].point[a];break}if(x>=C&&x<C+b.points[c+1].partialLength){for(B=(x-C)/b.points[c+1].partialLength,A=b.points[c].point.length,a=0;a<A;a+=1)r[a]=b.points[c].point[a]+(b.points[c+1].point[a]-b.points[c].point[a])*B;break}c<h-1?c+=1:g=!1}e._lastPoint=c,e._lastAddedLength=C-b.points[c].partialLength,e._lastKeyframeIndex=d}}else{var E,S,F,T,I;if(f=n.s.length,m=s.s||n.e,this.sh&&1!==n.h)t>=y?(r[0]=m[0],r[1]=m[1],r[2]=m[2]):t<=v?(r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2]):quaternionToEuler(r,slerp(createQuaternion(n.s),createQuaternion(m),(t-v)/(y-v)));else for(d=0;d<f;d+=1)1!==n.h&&(t>=y?l=1:t<v?l=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[d]?u=o.__fnct[d]:(E=void 0===n.o.x[d]?n.o.x[0]:n.o.x[d],S=void 0===n.o.y[d]?n.o.y[0]:n.o.y[d],F=void 0===n.i.x[d]?n.i.x[0]:n.i.x[d],T=void 0===n.i.y[d]?n.i.y[0]:n.i.y[d],u=BezierFactory.getBezierEasing(E,S,F,T).get,o.__fnct[d]=u)):o.__fnct?u=o.__fnct:(E=n.o.x,S=n.o.y,F=n.i.x,T=n.i.y,u=BezierFactory.getBezierEasing(E,S,F,T).get,n.keyframeMetadata=u),l=u((t-v)/(y-v)))),m=s.s||n.e,I=1===n.h?n.s[d]:n.s[d]+(m[d]-n.s[d])*l,"multidimensional"===this.propType?r[d]=I:r=I}return e.lastIndex=p,r}function slerp(t,e,r){var i,n,s,o,a,A=[],l=t[0],h=t[1],c=t[2],u=t[3],p=e[0],d=e[1],f=e[2],g=e[3];return(n=l*p+h*d+c*f+u*g)<0&&(n=-n,p=-p,d=-d,f=-f,g=-g),1-n>1e-6?(i=Math.acos(n),s=Math.sin(i),o=Math.sin((1-r)*i)/s,a=Math.sin(r*i)/s):(o=1-r,a=r),A[0]=o*l+a*p,A[1]=o*h+a*d,A[2]=o*c+a*f,A[3]=o*u+a*g,A}function quaternionToEuler(t,e){var r=e[0],i=e[1],n=e[2],s=e[3],o=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n),a=Math.asin(2*r*i+2*n*s),A=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n);t[0]=o/degToRads,t[1]=a/degToRads,t[2]=A/degToRads}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),s=Math.cos(r/2),o=Math.cos(i/2),a=Math.sin(e/2),A=Math.sin(r/2),l=Math.sin(i/2);return[a*A*o+n*s*l,a*s*o+n*A*l,n*A*o-a*s*l,n*s*o-a*A*l]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)e=t[r]*this.mult,mathAbs(this.v[r]-e)>1e-5&&(this.v[r]=e,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,r,i){var n;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;n<s;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,r,i){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,r,i){var n;this.propType="multidimensional";var s,o,a,A,l=e.k.length;for(n=0;n<l-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(s=e.k[n].s,o=e.k[n+1].s,a=e.k[n].to,A=e.k[n].ti,(2===s.length&&(s[0]!==o[0]||s[1]!==o[1])&&bez.pointOnLine2D(s[0],s[1],o[0],o[1],s[0]+a[0],s[1]+a[1])&&bez.pointOnLine2D(s[0],s[1],o[0],o[1],o[0]+A[0],o[1]+A[1])||3===s.length&&(s[0]!==o[0]||s[1]!==o[1]||s[2]!==o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],o[0],o[1],o[2],s[0]+a[0],s[1]+a[1],s[2]+a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],o[0],o[1],o[2],o[0]+A[0],o[1]+A[1],o[2]+A[2]))&&(e.k[n].to=null,e.k[n].ti=null),s[0]===o[0]&&s[1]===o[1]&&0===a[0]&&0===a[1]&&0===A[0]&&0===A[1]&&(2===s.length||s[2]===o[2]&&0===a[2]&&0===A[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=e.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),n=0;n<h;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,r,i,n){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,i,n);else switch(r){case 0:s=new KeyframedValueProperty(t,e,i,n);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,i,n)}else s=new ValueProperty(t,e,i,n);return s.effectsSequence.length&&n.addDynamicProperty(s),s}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(r,i,"o",o,a),this.setXYAt(n,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,o=this._length-1,a=this._length;for(s=n;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],s,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,r=factory.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i,n,s,o,a,A,l,h,c,u=r.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)i=p[0].s[0],s=!0,u=0;else if(t>=p[p.length-1].t-this.offsetTime)i=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{for(var d,f,g,m=u,y=p.length-1,v=!0;v&&(d=p[m],!((f=p[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:v=!1;if(g=this.keyframesMetadata[m]||{},u=m,!(s=1===d.h)){if(t>=f.t-this.offsetTime)h=1;else if(t<d.t-this.offsetTime)h=0;else{var b;g.__fnct?b=g.__fnct:(b=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=b),h=b((t-(d.t-this.offsetTime))/(f.t-this.offsetTime-(d.t-this.offsetTime)))}n=f.s?f.s[0]:d.e[0]}i=d.s[0]}for(A=e._length,l=i.i[0].length,r.lastIndex=u,o=0;o<A;o+=1)for(a=0;a<l;a+=1)c=s?i.i[o][a]:i.i[o][a]+(n.i[o][a]-i.i[o][a])*h,e.i[o][a]=c,c=s?i.o[o][a]:i.o[o][a]+(n.o[o][a]-i.o[o][a])*h,e.o[o][a]=c,c=s?i.v[o][a]:i.v[o][a]+(n.v[o][a]-i.v[o][a])*h,e.v[o][a]=c}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<r&&e<r||n>i&&e>i)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function A(e,n,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=s,o.prototype.setVValue=n,o.prototype.addEffect=a,A.prototype.getValue=s,A.prototype.interpolateShape=e,A.prototype.setVValue=n,A.prototype.addEffect=a;var l=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,s=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=r-n,o.v[1][0]=s?e+i:e-i,o.v[1][1]=r,o.v[2][0]=e,o.v[2][1]=r+n,o.v[3][0]=s?e-i:e+i,o.v[3][1]=r,o.i[0][0]=s?e-i*t:e+i*t,o.i[0][1]=r-n,o.i[1][0]=s?e+i:e-i,o.i[1][1]=r-n*t,o.i[2][0]=s?e+i*t:e-i*t,o.i[2][1]=r+n,o.i[3][0]=s?e-i:e+i,o.i[3][1]=r+n*t,o.o[0][0]=s?e+i*t:e-i*t,o.o[0][1]=r-n,o.o[1][0]=s?e+i:e-i,o.o[1][1]=r+n*t,o.o[2][0]=s?e-i*t:e+i*t,o.o[2][1]=r+n,o.o[3][0]=s?e-i:e+i,o.o[3][1]=r-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,n=2*Math.floor(this.pt.v),s=2*Math.PI/n,o=!0,a=this.or.v,A=this.ir.v,l=this.os.v,h=this.is.v,c=2*Math.PI*a/(2*n),u=2*Math.PI*A/(2*n),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){r=o?l:h,i=o?c:u;var f=(e=o?a:A)*Math.cos(p),g=e*Math.sin(p),m=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),y=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-m*i*r*d,g-y*i*r*d,f+m*i*r*d,g+y*i*r*d,t,!0),o=!o,p+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,n=this.os.v,s=2*Math.PI*i/(4*e),o=.5*-Math.PI,a=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var A=i*Math.cos(o),l=i*Math.sin(o),h=0===A&&0===l?0:l/Math.sqrt(A*A+l*l),c=0===A&&0===l?0:-A/Math.sqrt(A*A+l*l);A+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(A,l,A-h*s*n*a,l-c*s*n*a,A+h*s*n*a,l+c*s*n*a,t,!0),o+=r*a}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bmMin(r,i,this.r.v),s=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+n,t+r,e-i+s,0,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-s,t+r,e+i-n,1,!0),0!==n?(this.v.setTripleAt(t+r-n,e+i,t+r-n,e+i,t+r-s,e+i,2,!0),this.v.setTripleAt(t-r+n,e+i,t-r+s,e+i,t-r+n,e+i,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-n,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+s,t-r,e-i+n,5,!0),this.v.setTripleAt(t-r+n,e-i,t-r+n,e-i,t-r+s,e-i,6,!0),this.v.setTripleAt(t+r-n,e-i,t+r-s,e-i,t+r-n,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+s,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+s,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+s,t+r,e-i+n,0,!0),0!==n?(this.v.setTripleAt(t+r-n,e-i,t+r-n,e-i,t+r-s,e-i,1,!0),this.v.setTripleAt(t-r+n,e-i,t-r+s,e-i,t-r+n,e-i,2,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+n,t-r,e-i+s,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-s,t-r,e+i-n,4,!0),this.v.setTripleAt(t-r+n,e+i,t-r+n,e+i,t-r+s,e+i,5,!0),this.v.setTripleAt(t+r-n,e+i,t+r-s,e+i,t+r-n,e+i,6,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-n,t+r,e+i-s,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+s,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-s,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-s,e+i,t+r,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new A(t,e,r):new o(t,e,r):5===r?i=new c(t,e):6===r?i=new l(t,e):7===r&&(i=new h(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return A}}}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function o(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(1,0,0,0,0,i,-n,0,0,n,i,0,0,0,0,1)}function a(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,0,n,0,0,1,0,0,-n,0,i,0,0,0,0,1)}function A(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function h(t,e){return this.shear(r(t),r(e))}function c(i,n){var s=t(n),o=e(n);return this._t(s,o,0,0,-o,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-o,0,0,o,s,0,0,0,0,1,0,0,0,0,1)}function u(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function p(t,e,r,i,n,s,o,a,A,l,h,c,u,p,d,f){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=s,this.props[6]=o,this.props[7]=a,this.props[8]=A,this.props[9]=l,this.props[10]=h,this.props[11]=c,this.props[12]=u,this.props[13]=p,this.props[14]=d,this.props[15]=f,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function f(t,e,r,i,n,s,o,a,A,l,h,c,u,p,d,f){var g=this.props;if(1===t&&0===e&&0===r&&0===i&&0===n&&1===s&&0===o&&0===a&&0===A&&0===l&&1===h&&0===c)return g[12]=g[12]*t+g[15]*u,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*h+g[15]*d,g[15]*=f,this._identityCalculated=!1,this;var m=g[0],y=g[1],v=g[2],b=g[3],w=g[4],B=g[5],x=g[6],C=g[7],E=g[8],S=g[9],F=g[10],T=g[11],I=g[12],_=g[13],k=g[14],L=g[15];return g[0]=m*t+y*n+v*A+b*u,g[1]=m*e+y*s+v*l+b*p,g[2]=m*r+y*o+v*h+b*d,g[3]=m*i+y*a+v*c+b*f,g[4]=w*t+B*n+x*A+C*u,g[5]=w*e+B*s+x*l+C*p,g[6]=w*r+B*o+x*h+C*d,g[7]=w*i+B*a+x*c+C*f,g[8]=E*t+S*n+F*A+T*u,g[9]=E*e+S*s+F*l+T*p,g[10]=E*r+S*o+F*h+T*d,g[11]=E*i+S*a+F*c+T*f,g[12]=I*t+_*n+k*A+L*u,g[13]=I*e+_*s+k*l+L*p,g[14]=I*r+_*o+k*h+L*d,g[15]=I*i+_*a+k*c+L*f,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function m(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function B(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function x(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function C(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,n=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=r,a.props[4]=i,a.props[5]=n,a.props[12]=s,a.props[13]=o,a}function S(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function F(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=S(t[e]);return i}function T(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],s=this.props[1],o=this.props[4],a=this.props[5],A=this.props[12],l=this.props[13];i[0]=t[0]*n+t[1]*o+A,i[1]=t[0]*s+t[1]*a+l,i[2]=e[0]*n+e[1]*o+A,i[3]=e[0]*s+e[1]*a+l,i[4]=r[0]*n+r[1]*o+A,i[5]=r[0]*s+r[1]*a+l}return i}function I(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function _(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function k(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=i(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function L(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function P(){var t=this.props;return"matrix("+L(t[0])+","+L(t[1])+","+L(t[4])+","+L(t[5])+","+L(t[12])+","+L(t[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=A,this.skew=h,this.skewFromAxis=c,this.shear=l,this.scale=u,this.setTransform=p,this.translate=d,this.transform=f,this.multiply=g,this.applyToPoint=w,this.applyToX=B,this.applyToY=x,this.applyToZ=C,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=_,this.toCSS=k,this.to2dCSS=P,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=F,this.inversePoint=S,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="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},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,i){return new e[t](r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var o,a,A=[],l=s.length;for(o=0;o<l;o+=1){var h,c;(a=s[o]).e*n<i||a.s*n>i+r||(h=a.s*n<=i?0:(a.s*n-i)/r,c=a.e*n>=i+r?1:(a.e*n-i)/r,A.push([h,c]))}return A.length||A.push([0,0]),A},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=r,r=o}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,A,l,h,c,u=this.shapes.length,p=0;if(r===e)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var d,f,g=[];for(n=0;n<u;n+=1)if((d=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(A=(i=d.shape.paths)._length,c=0,!d.shape._mdf&&d.pathsData.length)c=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),a=0;a<A;a+=1)h=bez.getSegmentsLength(i.shapes[a]),l.push(h),c+=h.totalLength;d.totalShapeLength=c,d.pathsData=l}p+=c,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var m,y=e,v=r,b=0;for(n=u-1;n>=0;n-=1)if((d=this.shapes[n]).shape._mdf){for((f=d.localShapeCollection).releaseShapes(),2===this.m&&u>1?(m=this.calculateShapeEdges(e,r,d.totalShapeLength,b,p),b+=d.totalShapeLength):m=[[y,v]],A=m.length,a=0;a<A;a+=1){y=m[a][0],v=m[a][1],g.length=0,v<=1?g.push({s:d.totalShapeLength*y,e:d.totalShapeLength*v}):y>=1?g.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(v-1)}):(g.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(v-1)}));var w=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var B=w.pop();this.addPaths(w,f),w=this.addShapes(d,g[1],B)}else this.addPaths(w,f),w=this.addShapes(d,g[1]);this.addPaths(w,f)}}d.shape.paths=f}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,o){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),o&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,o,a,A,l,h,c=t.pathsData,u=t.shape.paths.shapes,p=t.shape.paths._length,d=0,f=[],g=!0;for(r?(a=r._length,h=r._length):(r=shapePool.newElement(),a=0,h=0),f.push(r),i=0;i<p;i+=1){for(A=c[i].lengths,r.c=u[i].c,s=u[i].c?A.length:A.length+1,n=1;n<s;n+=1)if(d+(o=A[n-1]).addedLength<e.s)d+=o.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+o.addedLength?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[n],u[i].v[n],r,a,g),g=!1):(l=bez.getNewSegment(u[i].v[n-1],u[i].v[n],u[i].o[n-1],u[i].i[n],(e.s-d)/o.addedLength,(e.e-d)/o.addedLength,A[n-1]),this.addSegmentFromArray(l,r,a,g),g=!1,r.c=!1),d+=o.addedLength,a+=1}if(u[i].c&&A.length){if(o=A[n-1],d<=e.e){var m=A[n-1].addedLength;e.s<=d&&e.e>=d+m?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[0],u[i].v[0],r,a,g),g=!1):(l=bez.getNewSegment(u[i].v[n-1],u[i].v[0],u[i].o[n-1],u[i].i[0],(e.s-d)/m,(e.e-d)/m,A[n-1]),this.addSegmentFromArray(l,r,a,g),g=!1,r.c=!1)}else r.c=!1;d+=o.addedLength,a+=1}if(r._length&&(r.setXYAt(r.v[h][0],r.v[h][1],"i",h),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i<p-1&&(r=shapePool.newElement(),g=!0,f.push(r),a=0)}return f},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var o,a,A,l,h,c,u=shapePool.newElement();for(u.c=t.c,s=0;s<n;s+=1)o=t.v[s][0]+(i[0]-t.v[s][0])*r,a=t.v[s][1]+(i[1]-t.v[s][1])*r,A=t.o[s][0]+(i[0]-t.o[s][0])*-r,l=t.o[s][1]+(i[1]-t.o[s][1])*-r,h=t.i[s][0]+(i[0]-t.i[s][0])*-r,c=t.i[s][1]+(i[1]-t.i[s][1])*-r,u.setTripleAt(o,a,A,l,h,c,s);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,A=this.amount.v;if(0!==A)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],A));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,n=e.or.k.length;for(i=0;i<n;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,o=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=o.getValueAtTime(o.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,o.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(0===i)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),o=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<r?r=a:a>i&&(i=a)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var o=splitData(t),a=splitData(e);intersectsImpl(o[0],a[0],r+1,i,n,s),intersectsImpl(o[0],a[1],r+1,i,n,s),intersectsImpl(o[1],a[0],r+1,i,n,s),intersectsImpl(o[1],a[1],r+1,i,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],o=[r[0],r[1],1],a=[i[0],i[1],1],A=crossProduct(crossProduct(n,s),crossProduct(o,a));return floatZero(A[2])?null:[A[0]/A[2],A[1]/A[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,s,o){var a=r-Math.PI/2,A=r+Math.PI/2,l=e[0]+Math.cos(r)*i*n,h=e[1]-Math.sin(r)*i*n;t.setTripleAt(l,h,l+Math.cos(a)*s,h-Math.sin(a)*s,l+Math.cos(A)*o,h-Math.sin(A)*o,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,o){var a=getProjectingAngle(e,r),A=e.v[r%e._length],l=e.v[0===r?e._length-1:r-1],h=e.v[(r+1)%e._length],c=2===s?Math.sqrt(Math.pow(A[0]-l[0],2)+Math.pow(A[1]-l[1],2)):0,u=2===s?Math.sqrt(Math.pow(A[0]-h[0],2)+Math.pow(A[1]-h[1],2)):0;setPoint(t,e.v[r%e._length],a,o,i,u/(2*(n+1)),c/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),A=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(a);setPoint(t,e.point(a),l,s,r,A/(2*(i+1)),A/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,o,a,A;r=(A=linearOffset(t.points[0],t.points[1],e))[0],i=A[1],n=(A=linearOffset(t.points[1],t.points[2],e))[0],s=A[1],o=(A=linearOffset(t.points[2],t.points[3],e))[0],a=A[1];var l=lineIntersection(r,i,n,s);null===l&&(l=i);var h=lineIntersection(o,a,n,s);return null===h&&(h=o),new PolynomialBezier(r,l,h,a)}function joinLines(t,e,r,i,n){var s=e.points[3],o=r.points[0];if(3===i)return s;if(pointEqual(s,o))return s;if(2===i){var a=-e.tangentAngle(1),A=-r.tangentAngle(0)+Math.PI,l=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),h=l?pointDistance(l,s):pointDistance(s,o)/2,c=polarOffset(s,a,2*h*roundCorner);return t.setXYAt(c[0],c[1],"o",t.length()-1),c=polarOffset(o,A,2*h*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],c[0],c[1],t.length()),o}var u=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return u&&pointDistance(u,s)<n?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,s,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return r=(n=t.split(o[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(n=n[1].split(a))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,n,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-n),A=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(s?1/a:a,s?1/A:A),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,o=!1;if(this._mdf||t){var a,A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(a=s<A,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),!a){var h=this.elemsData[i].it,c=h[h.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}s+=1}this._currentCopies=A;var u=this.o.v,p=u%1,d=u>0?Math.floor(u):Math.ceil(u),f=this.pMatrix.props,g=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,v,b=0;if(u>0){for(;b<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(u<0){for(;b>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(v=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==b){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),y=0;y<v;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<v;y+=1)r[y]=this.matrix.props[y];b+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=n;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var n,s,o,a,A,l,h,c,u,p,d,f,g=t._length,m=0;for(r=0;r<g;r+=1)n=t.v[r],o=t.o[r],s=t.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===s[0]&&n[1]===s[1]?0!==r&&r!==g-1||t.c?(a=0===r?t.v[g-1]:t.v[r-1],l=(A=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(A/2,e)/A:0,h=d=n[0]+(a[0]-n[0])*l,c=f=n[1]-(n[1]-a[1])*l,u=h-(h-n[0])*roundCorner,p=c-(c-n[1])*roundCorner,i.setTripleAt(h,c,u,p,d,f,m),m+=1,a=r===g-1?t.v[0]:t.v[r+1],l=(A=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(A/2,e)/A:0,h=u=n[0]+(a[0]-n[0])*l,c=p=n[1]+(a[1]-n[1])*l,d=h-(h-n[0])*roundCorner,f=c-(c-n[1])*roundCorner,i.setTripleAt(h,c,u,p,d,f,m),m+=1):(i.setTripleAt(n[0],n[1],o[0],o[1],s[0],s[1],m),m+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],m),m+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,A=this.rd.v;if(0!==A)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],A));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),o=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,s,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),0===n)return s;var o=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,o);for(var A=0;A<n;A+=1)o=zigZagSegment(s,a,e,r,i,-o),a=A!==n-1||t.c?PolynomialBezier.shapeSegment(t,(A+1)%n):null,zigZagCorner(s,t,A+1,e,r,i,o);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,A=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==A)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],A,l,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,o,a,A=t.length();t.c||(A-=1);var l=[];for(s=0;s<A;s+=1)a=PolynomialBezier.shapeSegment(t,s),l.push(offsetSegmentSplit(a,e));if(!t.c)for(s=A-1;s>=0;s-=1)a=PolynomialBezier.shapeSegmentInverted(t,s),l.push(offsetSegmentSplit(a,e));l=pruneIntersections(l);var h=null,c=null;for(s=0;s<l.length;s+=1){var u=l[s];for(c&&(h=joinLines(n,c,u[0],r,i)),c=u[u.length-1],o=0;o<u.length;o+=1)a=u[o],h&&pointEqual(a.points[0],h)?n.setXYAt(a.points[1][0],a.points[1][1],"o",n.length()-1):n.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],n.length()),n.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],n.length()),h=a.points[3]}return l.length&&joinLines(n,c,l[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,A=this.amount.v,l=this.miterLimit.v,h=this.lineJoin;if(0!==A)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],A,h,l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=function(t){var e,r=t.split(","),i=r.length,n=[];for(e=0;e<i;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&n.push(r[e]);return n.join(",")}(t)+", "+e,{node:i,w:n,parent:r}}function s(t,e){var r,i=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===i){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",n.style),s.setAttribute("font-weight",n.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),r=s}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=n.style+" "+n.weight+" 100px "+t.fFamily,r=o}return{measureText:function(t){return"svg"===i?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}function o(t){var e=0,r=t.charCodeAt(0);if(r>=55296&&r<=56319){var i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=1024*(r-55296)+i-56320+65536)}return e}function a(t){var e=o(t);return e>=127462&&e<=127487}var A=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};A.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==i.indexOf(r)},A.isZeroWidthJoiner=function(t){return 8205===t},A.isFlagEmoji=function(t){return a(t.substr(0,2))&&a(t.substr(2,2))},A.isRegionalCode=a,A.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},A.isRegionalFlag=function(t,e){var i=o(t.substr(e,2));if(i!==r)return!1;var n=0;for(e+=2;n<5;){if((i=o(t.substr(e,2)))<917601||i>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},A.isVariationSelector=function(t){return 65039===t},A.BLACK_FLAG_CODE_POINT=r;var l={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,i,n=t.length,s=this.chars.length;for(e=0;e<n;e+=1){for(r=0,i=!1;r<s;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=s(t),t.cache={}}),void(this.fonts=t.list);var r,i=t.list,o=i.length,a=o;for(r=0;r<o;r+=1){var A,l,h=!0;if(i[r].loaded=!1,i[r].monoCase=n(i[r].fFamily,"monospace"),i[r].sansCase=n(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((A=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(h=!1),h){var c=createTag("style");c.setAttribute("f-forigin",i[r].fOrigin),c.setAttribute("f-origin",i[r].origin),c.setAttribute("f-family",i[r].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(c)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(A=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<A.length;l+=1)-1!==A[l].href.indexOf(i[r].fPath)&&(h=!1);if(h){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.type="text/css",u.rel="stylesheet",u.href=i[r].fPath,document.body.appendChild(u)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(A=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<A.length;l+=1)i[r].fPath===A[l].src&&(h=!1);if(h){var p=createTag("link");p.setAttribute("f-forigin",i[r].fOrigin),p.setAttribute("f-origin",i[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",i[r].fPath),e.appendChild(p)}}}else i[r].loaded=!0,a-=1;i[r].helper=s(i[r],e),i[r].cache={},this.fonts.push(i[r])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,i){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===e&&this.chars[n].style===r&&this.chars[n].fFamily===i)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,i)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var i=this.getFontByName(e),n=t;if(!i.cache[n]){var s=i.helper;if(" "===t){var o=s.measureText("|"+t+"|"),a=s.measureText("||");i.cache[n]=(o-a)/100}else i.cache[n]=s.measureText(t)/100}return i.cache[n]*r},checkLoadedFonts:function(){var t,e,r,i=this.fonts.length,n=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return A.prototype=l,A}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,s=0,o=n.length;s<o;)n[s].ind==e&&(i[s]&&!0!==i[s]?(r.push(i[s]),i[s].setAsParent(),void 0!==n[s].parent?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,A,l,h,c,u,p=this.masksProperties,d=0,f=[],g=createElementID(),m="clipPath",y="clip-path";for(i=0;i<o;i+=1)if(("a"!==p[i].mode&&"n"!==p[i].mode||p[i].inv||100!==p[i].o.k||p[i].o.x)&&(m="mask",y="mask"),"s"!==p[i].mode&&"i"!==p[i].mode||0!==d?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),f.push(l)),n=createNS("path"),"n"===p[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),elem:n,lastPath:""},s.appendChild(n);else{var v;if(d+=1,n.setAttribute("fill","s"===p[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==p[i].x.k?(m="mask",y="mask",u=PropertyFactory.getProp(this.element,p[i].x,0,null,this.element),v=createElementID(),(h=createNS("filter")).setAttribute("id",v),(c=createNS("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),h.appendChild(c),s.appendChild(h),n.setAttribute("stroke","s"===p[i].mode?"#000000":"#ffffff")):(c=null,u=null),this.storedData[i]={elem:n,x:u,expan:c,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===p[i].mode){A=f.length;var b=createNS("g");for(a=0;a<A;a+=1)b.appendChild(f[a]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+d),w.appendChild(n),s.appendChild(w),b.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),f.length=0,f.push(b)}else f.push(n);p[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),invRect:l},this.viewData[i].prop.k||this.drawPath(p[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(m),o=f.length,i=0;i<o;i+=1)this.maskElement.appendChild(f[i]);d>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)e.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<e;t+=1){var i=this.localTransforms[t].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,r=t.length;for(e=0;e<r;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,o=e.length;for(r=0;r<o;r+=1)s=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",o)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}},featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),o=filtersFactory.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var A=t.data.ef[e].ty;registeredEffects$1[A]&&(r=new(0,registeredEffects$1[A].effect)(o,t.effectsManager.effectElements[e],t,idPrefix+a,i),i=idPrefix+a,registeredEffects$1[A].countsAsEffect&&(a+=1)),r&&this.filters.push(r)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(r.setAttribute("id",n),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var A=createNS("g");a.appendChild(A),e=createElementID(),r=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),l.appendChild(h),this.globalData.defs.appendChild(r);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),A.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),A.appendChild(c),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(i),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),A.appendChild(c),n.appendChild(this.layerElement),A.appendChild(n)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,o=e.length||0;for(n=0;n<o;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)n=createNS("stop"),i.appendChild(n),a.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),A=createElementID();s.setAttribute("id",A);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var h=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),h.push(r);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=s,this.ost=h,this.maskId=A,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(0===e)return"";var n,s=t.o,o=t.i,a=t.v,A=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(n=1;n<e;n+=1)A+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[n][0],o[n][1])+" "+i.applyToPointStringified(a[n][0],a[n][1]);return r&&e&&(A+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),A+="z"),A},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function n(r,i,n){var s,o,a,A,l,h,c,u,p,d,f=i.styles.length,g=i.lvl;for(h=0;h<f;h+=1){if(A=i.sh._mdf||n,i.styles[h].lvl<g){for(u=e.reset(),p=g-i.styles[h].lvl,d=i.transformers.length-1;!A&&p>0;)A=i.transformers[d].mProps._mdf||A,p-=1,d-=1;if(A)for(p=g-i.styles[h].lvl,d=i.transformers.length-1;p>0;)u.multiply(i.transformers[d].mProps.v),p-=1,d-=1}else u=t;if(o=(c=i.sh.paths)._length,A){for(a="",s=0;s<o;s+=1)(l=c.shapes[s])&&l._length&&(a+=buildShapeString(l,l._length,l.c,u));i.caches[h]=a}else a=i.caches[h];i.styles[h].d+=!0===r.hd?"":a,i.styles[h]._mdf=A||i.styles[h]._mdf}}function s(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function o(t,e,r){a(t,e,r),A(0,e,r)}function a(t,e,r){var i,n,s,o,a,A=e.gf,l=e.g._hasOpacity,h=e.s.v,c=e.e.v;if(e.o._mdf||r){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||r){var p=1===t.t?"x1":"cx",d="x1"===p?"y1":"cy";A.setAttribute(p,h[0]),A.setAttribute(d,h[1]),l&&!e.g._collapsable&&(e.of.setAttribute(p,h[0]),e.of.setAttribute(d,h[1]))}if(e.g._cmdf||r){i=e.cst;var f=e.g.c;for(s=i.length,n=0;n<s;n+=1)(o=i[n]).setAttribute("offset",f[4*n]+"%"),o.setAttribute("stop-color","rgb("+f[4*n+1]+","+f[4*n+2]+","+f[4*n+3]+")")}if(l&&(e.g._omdf||r)){var g=e.g.o;for(s=(i=e.g._collapsable?e.cst:e.ost).length,n=0;n<s;n+=1)o=i[n],e.g._collapsable||o.setAttribute("offset",g[2*n]+"%"),o.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||r)&&(A.setAttribute("x2",c[0]),A.setAttribute("y2",c[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",c[0]),e.of.setAttribute("y2",c[1])));else if((e.s._mdf||e.e._mdf||r)&&(a=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)),A.setAttribute("r",a),l&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||r){a||(a=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)));var m=Math.atan2(c[1]-h[1],c[0]-h[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var v=a*y,b=Math.cos(m+e.a.v)*v+h[0],w=Math.sin(m+e.a.v)*v+h[1];A.setAttribute("fx",b),A.setAttribute("fy",w),l&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",w))}}function A(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return a;case"gs":return o;case"st":return A;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,i,n=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],a=!1,o.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,i):"fl"===t.ty?r=new SVGFillStyleData(this,t,i):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,i)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)-1!==r.indexOf(this.stylesList[e])||this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,o){var a,A,l,h,c,u,p=[].concat(s),d=t.length-1,f=[],g=[];for(a=d;a>=0;a-=1){if((u=this.searchProcessedElement(t[a]))?e[a]=r[u-1]:t[a]._render=o,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)u?e[a].style.closed=t[a].hd:e[a]=this.createStyleElement(t[a],n),t[a]._render&&e[a].style.pElem.parentNode!==i&&i.appendChild(e[a].style.pElem),f.push(e[a].style);else if("gr"===t[a].ty){if(u)for(l=e[a].it.length,A=0;A<l;A+=1)e[a].prevViewData[A]=e[a].it[A];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,n+1,p,o),t[a]._render&&e[a].gr.parentNode!==i&&i.appendChild(e[a].gr)}else"tr"===t[a].ty?(u||(e[a]=this.createTransformElement(t[a],i)),h=e[a].transform,p.push(h)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(u||(e[a]=this.createShapeElement(t[a],p,n)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(u?(c=e[a]).closed=!1:((c=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=c,this.shapeModifiers.push(c)),g.push(c)):"rp"===t[a].ty&&(u?(c=e[a]).closed=!0:(c=ShapeModifiers.getModifier(t[a].ty),e[a]=c,c.init(this,t,a,e),this.shapeModifiers.push(c),o=!1),g.push(c));this.addProcessedElement(t[a],a+1)}for(d=f.length,a=0;a<d;a+=1)f[a].closed=!0;for(d=g.length,a=0;a<d;a+=1)g[a].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,n,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,o=!1,a=!1,A="";n<s;)o=a,a=!1,e=t.charCodeAt(n),A=t.charAt(n),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?A=t.substr(n,14):(r=t.charCodeAt(n+1))>=56320&&r<=57343&&(FontManager.isModifier(e,r)?(A=t.substr(n,2),o=!0):A=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(r=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,a=!0),o?(i[i.length-1]+=A,o=!1):i.push(A),n+=A.length;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,o,a,A=this.elem.globalData.fontManager,l=this.data,h=[],c=0,u=l.m.g,p=0,d=0,f=0,g=[],m=0,y=0,v=A.getFontByName(t.f),b=0,w=getFontProperties(v);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var B,x=t.tr/1e3*t.finalSize;if(t.sz)for(var C,E,S=!0,F=t.sz[0],T=t.sz[1];S;){C=0,m=0,r=(E=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var I=-1;for(e=0;e<r;e+=1)B=E[e].charCodeAt(0),i=!1," "===E[e]?I=e:13!==B&&3!==B||(m=0,i=!0,C+=t.finalLineHeight||1.2*t.finalSize),A.chars?(a=A.getCharData(E[e],v.fStyle,v.fFamily),b=i?0:a.w*t.finalSize/100):b=A.measureText(E[e],t.f,t.finalSize),m+b>F&&" "!==E[e]?(-1===I?r+=1:e=I,C+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,I===e?1:0,"\r"),I=-1,m=0):(m+=b,m+=x);C+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,r=t.finalText.length,S=!1)}m=-x,b=0;var _,k=0;for(e=0;e<r;e+=1)if(i=!1,13===(B=(_=t.finalText[e]).charCodeAt(0))||3===B?(k=0,g.push(m),y=m>y?m:y,m=-2*x,n="",i=!0,f+=1):n=_,A.chars?(a=A.getCharData(_,v.fStyle,A.getFontByName(t.f).fFamily),b=i?0:a.w*t.finalSize/100):b=A.measureText(n,t.f,t.finalSize)," "===_?k+=b+x:(m+=b+x+k,k=0),h.push({l:b,an:b,add:p,n:i,anIndexes:[],val:n,line:f,animatorJustifyOffset:0}),2==u){if(p+=b,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(p-=b);d<=e;)h[d].an=p,h[d].ind=c,h[d].extra=b,d+=1;c+=1,p=0}}else if(3==u){if(p+=b,""===n||e===r-1){for(""===n&&(p-=b);d<=e;)h[d].an=p,h[d].ind=c,h[d].extra=b,d+=1;p=0,c+=1}}else h[c].ind=c,h[c].extra=0,c+=1;if(t.l=h,y=m>y?m:y,g.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var L,P,N,D,M=l.a;o=M.length;var O=[];for(s=0;s<o;s+=1){for((L=M[s]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),D=0,N=L.s.b,e=0;e<r;e+=1)(P=h[e]).anIndexes[s]=D,(1==N&&""!==P.val||2==N&&""!==P.val&&" "!==P.val||3==N&&(P.n||" "==P.val||e==r-1)||4==N&&(P.n||e==r-1))&&(1===L.s.rn&&O.push(D),D+=1);l.a[s].s.totalChars=D;var U,Q=-1;if(1===L.s.rn)for(e=0;e<r;e+=1)Q!=(P=h[e]).anIndexes[s]&&(Q=P.anIndexes[s],U=O.splice(Math.floor(Math.random()*O.length),1)[0]),P.anIndexes[s]=U}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,s=0,o=1,a=1;this.ne.v>0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:a=1+this.xe.v/100;var A=BezierFactory.getBezierEasing(n,s,o,a).get,l=0,h=this.finalS,c=this.finalE,u=this.data.sh;if(2===u)l=A(l=c===h?i>=c?1:0:t(0,e(.5/(c-h)+(i-h)/(c-h),1)));else if(3===u)l=A(l=c===h?i>=c?0:1:1-t(0,e(.5/(c-h)+(i-h)/(c-h),1)));else if(4===u)c===h?l=0:(l=t(0,e(.5/(c-h)+(i-h)/(c-h),1)))<.5?l*=2:l=1-2*(l-.5),l=A(l);else if(5===u){if(c===h)l=0;else{var p=c-h,d=-p/2+(i=e(t(0,i+.5-h),c-h)),f=p/2;l=Math.sqrt(1-d*d/(f*f))}l=A(l)}else 6===u?(c===h?l=0:(i=e(t(0,i+.5-h),c-h),l=(1+Math.cos(Math.PI+2*Math.PI*i/(c-h)))/2),l=A(l)):(i>=r(h)&&(l=t(0,e(i-h<0?e(c,1)-(h-i):c-i,1))),l=A(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var m=.5-.5*g;l<m?l=0:(l=(l-m)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,n=this.e.v/e+r;if(i>n){var s=i;i=n,n=s}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,s,o,a,A,l,h,c,u,p,d,f,g,m,y,v,b,w=this._moreOptions.alignment.v,B=this._animatorsData,x=this._textData,C=this.mHelper,E=this._renderType,S=this.renderedLetters.length,F=t.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,I=b.v;for(this._pathData.r.v&&(I=I.reverse()),o={tLength:0,segments:[]},s=I._length-1,m=0,n=0;n<s;n+=1)T=bez.buildBezierData(I.v[n],I.v[n+1],[I.o[n][0]-I.v[n][0],I.o[n][1]-I.v[n][1]],[I.i[n+1][0]-I.v[n+1][0],I.i[n+1][1]-I.v[n+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),m+=T.segmentLength;n=s,b.v.c&&(T=bez.buildBezierData(I.v[n],I.v[0],[I.o[n][0]-I.v[n][0],I.o[n][1]-I.v[n][1]],[I.i[0][0]-I.v[0][0],I.i[0][1]-I.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),m+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,u=0,c=1,l=0,h=!0,f=o.segments,a<0&&b.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),c=(d=f[u=f.length-1].points).length-1;a<0;)a+=d[c].partialLength,(c-=1)<0&&(c=(d=f[u-=1].points).length-1);p=(d=f[u].points)[c-1],g=(A=d[c]).partialLength}s=F.length,r=0,i=0;var _,k,L,P,N,D=1.2*t.finalSize*.714,M=!0;L=B.length;var O,U,Q,R,H,j,V,G,z,K,W,Y,X=-1,q=a,$=u,J=c,Z=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,nt=2===t.j?-.5:-1,st=0,ot=!0;for(n=0;n<s;n+=1)if(F[n].n){for(rt&&(rt+=it);st<n;)F[st].animatorJustifyOffset=rt,st+=1;rt=0,ot=!0}else{for(k=0;k<L;k+=1)(_=B[k].a).t.propType&&(ot&&2===t.j&&(it+=_.t.v*nt),(N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars)).length?rt+=_.t.v*N[0]*nt:rt+=_.t.v*N*nt);ot=!1}for(rt&&(rt+=it);st<n;)F[st].animatorJustifyOffset=rt,st+=1}for(n=0;n<s;n+=1){if(C.reset(),R=1,F[n].n)r=0,i+=t.yOffset,i+=M?1:0,a=q,M=!1,this._hasMaskedPath&&(c=J,p=(d=f[u=$].points)[c-1],g=(A=d[c]).partialLength,l=0),tt="",W="",z="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==F[n].line){switch(t.j){case 1:a+=m-t.lineWidths[F[n].line];break;case 2:a+=(m-t.lineWidths[F[n].line])/2}Z=F[n].line}X!==F[n].ind&&(F[X]&&(a+=F[X].extra),a+=F[n].an/2,X=F[n].ind),a+=w[0]*F[n].an*.005;var at=0;for(k=0;k<L;k+=1)(_=B[k].a).p.propType&&((N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars)).length?at+=_.p.v[0]*N[0]:at+=_.p.v[0]*N),_.a.propType&&((N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars)).length?at+=_.a.v[0]*N[0]:at+=_.a.v[0]*N);for(h=!0,this._pathData.a.v&&(a=.5*F[0].an+(m-this._pathData.f.v-.5*F[0].an-.5*F[F.length-1].an)*X/(s-1),a+=this._pathData.f.v);h;)l+g>=a+at||!d?(y=(a+at-l)/A.partialLength,U=p.point[0]+(A.point[0]-p.point[0])*y,Q=p.point[1]+(A.point[1]-p.point[1])*y,C.translate(-w[0]*F[n].an*.005,-w[1]*D*.01),h=!1):d&&(l+=A.partialLength,(c+=1)>=d.length&&(c=0,f[u+=1]?d=f[u].points:b.v.c?(c=0,d=f[u=0].points):(l-=A.partialLength,d=null)),d&&(p=A,g=(A=d[c]).partialLength));O=F[n].an/2-F[n].add,C.translate(-O,0,0)}else O=F[n].an/2-F[n].add,C.translate(-O,0,0),C.translate(-w[0]*F[n].an*.005,-w[1]*D*.01,0);for(k=0;k<L;k+=1)(_=B[k].a).t.propType&&(N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?N.length?a+=_.t.v*N[0]:a+=_.t.v*N:N.length?r+=_.t.v*N[0]:r+=_.t.v*N));for(t.strokeWidthAnim&&(j=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(V=[t.fc[0],t.fc[1],t.fc[2]]),k=0;k<L;k+=1)(_=B[k].a).a.propType&&((N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars)).length?C.translate(-_.a.v[0]*N[0],-_.a.v[1]*N[1],_.a.v[2]*N[2]):C.translate(-_.a.v[0]*N,-_.a.v[1]*N,_.a.v[2]*N));for(k=0;k<L;k+=1)(_=B[k].a).s.propType&&((N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars)).length?C.scale(1+(_.s.v[0]-1)*N[0],1+(_.s.v[1]-1)*N[1],1):C.scale(1+(_.s.v[0]-1)*N,1+(_.s.v[1]-1)*N,1));for(k=0;k<L;k+=1){if(_=B[k].a,N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars),_.sk.propType&&(N.length?C.skewFromAxis(-_.sk.v*N[0],_.sa.v*N[1]):C.skewFromAxis(-_.sk.v*N,_.sa.v*N)),_.r.propType&&(N.length?C.rotateZ(-_.r.v*N[2]):C.rotateZ(-_.r.v*N)),_.ry.propType&&(N.length?C.rotateY(_.ry.v*N[1]):C.rotateY(_.ry.v*N)),_.rx.propType&&(N.length?C.rotateX(_.rx.v*N[0]):C.rotateX(_.rx.v*N)),_.o.propType&&(N.length?R+=(_.o.v*N[0]-R)*N[0]:R+=(_.o.v*N-R)*N),t.strokeWidthAnim&&_.sw.propType&&(N.length?j+=_.sw.v*N[0]:j+=_.sw.v*N),t.strokeColorAnim&&_.sc.propType)for(G=0;G<3;G+=1)N.length?H[G]+=(_.sc.v[G]-H[G])*N[0]:H[G]+=(_.sc.v[G]-H[G])*N;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(G=0;G<3;G+=1)N.length?V[G]+=(_.fc.v[G]-V[G])*N[0]:V[G]+=(_.fc.v[G]-V[G])*N;_.fh.propType&&(V=N.length?addHueToRGB(V,_.fh.v*N[0]):addHueToRGB(V,_.fh.v*N)),_.fs.propType&&(V=N.length?addSaturationToRGB(V,_.fs.v*N[0]):addSaturationToRGB(V,_.fs.v*N)),_.fb.propType&&(V=N.length?addBrightnessToRGB(V,_.fb.v*N[0]):addBrightnessToRGB(V,_.fb.v*N))}}for(k=0;k<L;k+=1)(_=B[k].a).p.propType&&(N=B[k].s.getMult(F[n].anIndexes[k],x.a[k].s.totalChars),this._hasMaskedPath?N.length?C.translate(0,_.p.v[1]*N[0],-_.p.v[2]*N[1]):C.translate(0,_.p.v[1]*N,-_.p.v[2]*N):N.length?C.translate(_.p.v[0]*N[0],_.p.v[1]*N[1],-_.p.v[2]*N[2]):C.translate(_.p.v[0]*N,_.p.v[1]*N,-_.p.v[2]*N));if(t.strokeWidthAnim&&(z=j<0?0:j),t.strokeColorAnim&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(W="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,w[1]*D*.01+i,0),this._pathData.p.v){v=(A.point[1]-p.point[1])/(A.point[0]-p.point[0]);var At=180*Math.atan(v)/Math.PI;A.point[0]<p.point[0]&&(At+=180),C.rotate(-At*Math.PI/180)}C.translate(U,Q,0),a-=w[0]*F[n].an*.005,F[n+1]&&X!==F[n+1].ind&&(a+=F[n].an/2,a+=.001*t.tr*t.finalSize)}else{switch(C.translate(r,i,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(F[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[F[n].line]),0,0);break;case 2:C.translate(F[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[F[n].line])/2,0,0)}C.translate(0,-t.ls),C.translate(O,0,0),C.translate(w[0]*F[n].an*.005,w[1]*D*.01,0),r+=F[n].l+.001*t.tr*t.finalSize}"html"===E?tt=C.toCSS():"svg"===E?tt=C.to2dCSS():et=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],Y=R}S<=n?(P=new LetterProps(Y,z,K,W,tt,et),this.renderedLetters.push(P),S+=1,this.lettersChangedFlag=!0):(P=this.renderedLetters[n],this.lettersChangedFlag=P.update(Y,z,K,W,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)"sh"===e[r].ty&&(i=e[r].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var a=createNS("defs");this.svgElement.appendChild(a);var A=createNS("g");this.svgElement.appendChild(A),this.layerElement=A,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o,a=r.l||[],A=!!this.globalData.fontManager.chars;e=a.length;var l=this.mHelper,h=this.data.singleShape,c=0,u=0,p=!0,d=.001*r.tr*r.finalSize;if(!h||A||r.sz){var f,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!A||!h||0===t){if(o=g>t?this.textSpans[t].span:createNS(A?"g":"text"),g<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,A){var m=createNS("g");o.appendChild(m),this.textSpans[t].childSpan=m}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(l.reset(),h&&(a[t].n&&(c=-d,u+=r.yOffset,u+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,l,a[t].line,c,u),c+=a[t].l||0,c+=d),A){var y;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(f.data,this.globalData,this);else{var v=emptyShapeData;f.data&&f.data.shapes&&(v=this.buildShapeData(f.data,r.finalSize)),y=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var b=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[t].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[t].childSpan.appendChild(y.layerElement),1===f.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else h&&o.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&o&&o.setAttribute("d","")}else{var w=this.textContainer,B="start";switch(r.j){case 1:B="end";break;case 2:B="middle";break;default:B="start"}w.setAttribute("text-anchor",B),w.setAttribute("letter-spacing",d);var x=this.buildTextContents(r.finalText);for(e=x.length,u=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=x[t],o.setAttribute("x",0),o.setAttribute("y",u),o.style.display="inherit",w.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,u+=r.finalLineHeight;this.layerElement.appendChild(w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r=0,i=t.transforms.length,n=e;r<i&&!e;){if(t.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(t.finalTransform.reset(),r=i-1;r>=0;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=n},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,r=null,i=null;function n(){var n,s,o;e||(n=createNS("svg"),s=createNS("filter"),o=createNS("feColorMatrix"),s.setAttribute("id",t),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),s.appendChild(o),n.appendChild(s),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),i=n,document.body.appendChild(i),e=createTag("canvas"),(r=e.getContext("2d")).filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:n,get:function(i){return e||n(),e.width=i.width,e.height=i.height,r.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(t){var e,r,i=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<i;e+=1){r=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(r=new(0,registeredEffects[n].effect)(t.effectsManager.effectElements[e],t)),r&&this.filters.push(r)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,s=this.element.canvasContext,o=this.masksProperties.length;for(s.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var a;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(e[0],e[1]);var A=i._length;for(a=1;a<A;a+=1)r=n.applyToTriplePoints(i.o[a-1],i.i[a],i.v[a]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[a-1],i.i[0],i.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var o,a=r.length;for(n=0;n<a;n+=1)r[n].closed||(o={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(o),r[n].elements.push(o))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"===t.ty||"st"===t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var s,o,a,A,l,h,c=t.length-1,u=[],p=[],d=[].concat(n);for(s=c;s>=0;s-=1){if((A=this.searchProcessedElement(t[s]))?e[s]=r[A-1]:t[s]._shouldRender=i,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)A?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),u.push(e[s].style);else if("gr"===t[s].ty){if(A)for(a=e[s].it.length,o=0;o<a;o+=1)e[s].prevViewData[o]=e[s].it[o];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,d)}else"tr"===t[s].ty?(A||(h=this.createTransformElement(t[s]),e[s]=h),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?A||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(A?(l=e[s]).closed=!1:((l=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=l,this.shapeModifiers.push(l)),p.push(l)):"rp"===t[s].ty&&(A?(l=e[s]).closed=!0:(l=ShapeModifiers.getModifier(t[s].ty),e[s]=l,l.init(this,t,s,e),this.shapeModifiers.push(l),i=!1),p.push(l));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),c=p.length,s=0;s<c;s+=1)p[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,n,s,o,a,A,l=this.stylesList.length,h=this.globalData.renderer,c=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(a=(A=this.stylesList[t]).type)&&"gs"!==a||0!==A.wi)&&A.data._shouldRender&&0!==A.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),s=A.elements,"st"===a||"gs"===a?(h.ctxStrokeStyle("st"===a?A.co:A.grd),h.ctxLineWidth(A.wi),h.ctxLineCap(A.lc),h.ctxLineJoin(A.lj),h.ctxMiterLimit(A.ml||0)):h.ctxFillStyle("fl"===a?A.co:A.grd),h.ctxOpacity(A.coOp),"st"!==a&&"gs"!==a&&c.beginPath(),h.ctxTransform(A.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for("st"!==a&&"gs"!==a||(c.beginPath(),A.da&&(c.setLineDash(A.da),c.lineDashOffset=A.do)),n=(o=s[e].trNodes).length,i=0;i<n;i+=1)"m"===o[i].t?c.moveTo(o[i].p[0],o[i].p[1]):"c"===o[i].t?c.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):c.closePath();"st"!==a&&"gs"!==a||(h.ctxStroke(),A.da&&c.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&this.globalData.renderer.ctxFill(A.r),h.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)"tr"===e[n].ty?(s=r[n].transform,this.renderShapeTransform(t,s)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],r[n]):"fl"===e[n].ty?this.renderFill(e[n],r[n],s):"st"===e[n].ty?this.renderStroke(e[n],r[n],s):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],r[n],s):"gr"===e[n].ty?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,o=e.paths,a=o._length;s.length=0;var A=t.transforms.finalTransform;for(n=0;n<a;n+=1){var l=o.shapes[n];if(l&&l.v){for(i=l._length,r=1;r<i;r+=1)1===r&&s.push({t:"m",p:A.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:A.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===i&&s.push({t:"m",p:A.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&i&&(s.push({t:"c",pts:A.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,o=this.globalData.canvasContext,a=e.s.v,A=e.e.v;if(1===t.t)i=o.createLinearGradient(a[0],a[1],A[0],A[1]);else{var l=Math.sqrt(Math.pow(a[0]-A[0],2)+Math.pow(a[1]-A[1],2)),h=Math.atan2(A[1]-a[1],A[0]-a[0]),c=e.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var u=l*c,p=Math.cos(h+e.a.v)*u+a[0],d=Math.sin(h+e.a.v)*u+a[1];i=o.createRadialGradient(p,d,0,a[0],a[1],l)}var f=t.g.p,g=e.g.c,m=1;for(s=0;s<f;s+=1)e.g._hasOpacity&&e.g._collapsable&&(m=e.g.o[2*s+1]),i.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+m+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,s,o,a,A,l,h,c,u,p,d,f=this.globalData.fontManager.getFontByName(t.f),g=t.l,m=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var y=this.data.singleShape,v=.001*t.tr*t.finalSize,b=0,w=0,B=!0,x=0;for(i=0;i<n;i+=1){o=(s=this.globalData.fontManager.getCharData(t.finalText[i],f.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},m.reset(),y&&g[i].n&&(b=-v,w+=t.yOffset,w+=B?1:0,B=!1),c=(l=o.shapes?o.shapes[0].it:[]).length,m.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,m,g[i].line,b,w),p=createSizedArray(c-1);var C=0;for(h=0;h<c;h+=1)if("sh"===l[h].ty){for(A=l[h].ks.k.i.length,u=l[h].ks.k,d=[],a=1;a<A;a+=1)1===a&&d.push(m.applyToX(u.v[0][0],u.v[0][1],0),m.applyToY(u.v[0][0],u.v[0][1],0)),d.push(m.applyToX(u.o[a-1][0],u.o[a-1][1],0),m.applyToY(u.o[a-1][0],u.o[a-1][1],0),m.applyToX(u.i[a][0],u.i[a][1],0),m.applyToY(u.i[a][0],u.i[a][1],0),m.applyToX(u.v[a][0],u.v[a][1],0),m.applyToY(u.v[a][0],u.v[a][1],0));d.push(m.applyToX(u.o[a-1][0],u.o[a-1][1],0),m.applyToY(u.o[a-1][0],u.o[a-1][1],0),m.applyToX(u.i[0][0],u.i[0][1],0),m.applyToY(u.i[0][0],u.i[0][1],0),m.applyToX(u.v[0][0],u.v[0][1],0),m.applyToY(u.v[0][0],u.v[0][1],0)),p[C]=d,C+=1}y&&(b+=g[i].l,b+=v),this.textSpans[x]?this.textSpans[x].elem=p:this.textSpans[x]={elem:p},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,s;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,a=this.textAnimator.renderedLetters,A=this.textProperty.currentData.l;e=A.length;var l,h,c=null,u=null,p=null,d=this.globalData.renderer;for(t=0;t<e;t+=1)if(!A[t].n){if((o=a[t])&&(d.save(),d.ctxTransform(o.p),d.ctxOpacity(o.o)),this.fill){for(o&&o.fc?c!==o.fc&&(d.ctxFillStyle(o.fc),c=o.fc):c!==this.values.fill&&(c=this.values.fill,d.ctxFillStyle(this.values.fill)),i=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(h=l[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(o&&o.sw?p!==o.sw&&(p=o.sw,d.ctxLineWidth(o.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),o&&o.sc?u!==o.sc&&(u=o.sc,d.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),i=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(h=l[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),n=this.img.width,s=this.img.height,o=n/s,a=this.assetData.w/this.assetData.h,A=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&"xMidYMid slice"===A||o<a&&"xMidYMid slice"!==A?e=(r=s)*a:r=(e=n)/a,i.drawImage(this.img,(n-e)/2,(s-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,r,i){this.canvasContext.fillRect(t,e,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,i,n,s;if(this.reset(),t?(r=t,i=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",A=o[0]||"xMidYMid",l=A.substr(0,4),h=A.substr(4);n=r/i,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===a||s<n&&"slice"===a?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(s<n&&"meet"===a||s>n&&"slice"===a)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(s<n&&"meet"===a||s>n&&"slice"===a)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(s>n&&"meet"===a||s<n&&"slice"===a)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(s>n&&"meet"===a||s<n&&"slice"===a)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,r=this.stack[this.cArrPos],i=r.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=i[e];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(t||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,i=this.stack[this.cArrPos];for(r=0;r<16;r+=1)i.transform[r]=e[r];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=i.opacity,n.fillStyle=i.fillStyle,n.strokeStyle=i.strokeStyle,n.lineWidth=i.lineWidth,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,s,o,a=t.sh.v,A=t.transformers,l=a._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)i=this.getTransformedPoint(A,a.v[r]),n=this.getTransformedPoint(A,a.o[r]),s=this.getTransformedPoint(A,a.i[r+1]),o=this.getTransformedPoint(A,a.v[r+1]),this.checkBounds(i,n,s,o,e);a.c&&(i=this.getTransformedPoint(A,a.v[r]),n=this.getTransformedPoint(A,a.o[r]),s=this.getTransformedPoint(A,a.i[0]),o=this.getTransformedPoint(A,a.v[0]),this.checkBounds(i,n,s,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){for(var n,s,o,a,A,l,h,c=[[t[0],i[0]],[t[1],i[1]]],u=0;u<2;++u)s=6*t[u]-12*e[u]+6*r[u],n=-3*t[u]+9*e[u]-9*r[u]+3*i[u],o=3*e[u]-3*t[u],s|=0,o|=0,0==(n|=0)&&0===s||(0===n?(a=-o/s)>0&&a<1&&c[u].push(this.calculateF(a,t,e,r,i,u)):(A=s*s-4*o*n)>=0&&((l=(-s+bmSqrt(A))/(2*n))>0&&l<1&&c[u].push(this.calculateF(l,t,e,r,i,u)),(h=(-s-bmSqrt(A))/(2*n))>0&&h<1&&c[u].push(this.calculateF(h,t,e,r,i,u))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,n,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var A,l,h,c=t.l;n=c.length;var u,p=this.mHelper,d="",f=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?A=this.textPaths[f]:((A=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),A.setAttribute("stroke-linejoin",lineJoinEnum[2]),A.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?h=(l=this.textSpans[f]).children[0]:((l=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(A),styleDiv(l)))):this.isMasked?A=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(l=this.textSpans[f],A=this.textPaths[f]):(styleDiv(l=createTag("span")),styleDiv(A=createTag("span")),l.appendChild(A)),this.globalData.fontManager.chars){var g,m=this.globalData.fontManager.getCharData(t.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=m?m.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(p,u),A.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(A);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(h);var y=h.getBBox();h.setAttribute("width",y.width+2),h.setAttribute("height",y.height+2),h.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var v=h.style,b="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";v.transform=b,v.webkitTransform=b,c[i].yOffset=y.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);l.appendChild(h)}}else if(A.textContent=c[i].val,A.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(A);else{this.innerElem.appendChild(l);var w=A.style,B="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=B,w.webkitTransform=B}this.isMasked?this.textSpans[f]=A:this.textSpans[f]=l,this.textSpans[f].style.display="block",this.textPaths[f]=A,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,n,s,o,a=0,A=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(i=l.length,r=0;r<i;r+=1)l[r].n?a+=1:(s=this.textSpans[r],o=this.textPaths[r],n=A[a],a+=1,n._mdf.m&&(this.isMasked?s.setAttribute("transform",n.m):(s.style.webkitTransform=n.m,s.style.transform=n.m)),s.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=c,t.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,i=e.container.style;var s=this.pe.v+"px",o="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=s,r.webkitPerspective=s,i.transformOrigin=o,i.mozTransformOrigin=o,i.webkitTransformOrigin=o,r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/s,n[1]/s,n[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),A=Math.atan2(o[1],a),l=Math.atan2(o[0],-o[2]);this.mat.rotateY(l).rotateX(-A)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var c,u,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(c=this.comp.threeDElements[t]).type){if(h){var d=this.mat.toCSS();(p=c.container.style).transform=d,p.webkitTransform=d}this.pe._mdf&&((u=c.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,s,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(s=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):s.getBaseElement())||n),o+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),"3d"===e){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=a,i.webkitTransform=a}n.appendChild(s);var A={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(A),A},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=n/s;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",a.transform=a.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var r=0,i=t.layers.length;r<i;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="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},_typeof$2(t)}function seedRandom(t,e){var r=this,i=256,n="random",s=e.pow(i,6),o=e.pow(2,52),a=2*o,A=255;function l(t){var e,r=t.length,n=this,s=0,o=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);s<i;)a[s]=s++;for(s=0;s<i;s++)a[s]=a[o=A&o+t[s%r]+(e=a[s])],a[o]=e;n.g=function(t){for(var e,r=0,s=n.i,o=n.j,a=n.S;t--;)e=a[s=A&s+1],r=r*i+a[A&(a[s]=a[o=A&o+e])+(a[o]=e)];return n.i=s,n.j=o,r}}function h(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var r,i=[],n=_typeof$2(t);if(e&&"object"==n)for(r in t)try{i.push(c(t[r],e-1))}catch(t){}return i.length?i:"string"==n?t:t+"\0"}function u(t,e){for(var r,i=t+"",n=0;n<i.length;)e[A&n]=A&(r^=19*e[A&n])+i.charCodeAt(n++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(A,d,f){var g=[],m=u(c((d=!0===d?{entropy:!0}:d||{}).entropy?[A,p(t)]:null===A?function(){try{var e=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(e),p(e)}catch(e){var n=r.navigator,s=n&&n.plugins;return[+new Date,r,s,r.screen,p(t)]}}():A,3),g),y=new l(g),v=function(){for(var t=y.g(6),e=s,r=0;t<o;)t=(t+r)*i,e*=i,r=y.g(1);for(;t>=a;)t/=2,e/=2,r>>>=1;return(t+r)/e};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/4294967296},v.double=v,u(p(y.S),t),(d.pass||f||function(t,r,i,s){return s&&(s.S&&h(s,y),t.state=function(){return h(y,{})}),i?(e[n]=t,r):t})(v,m,"global"in d?d.global:this==e,d.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="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},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(i,e)||"string"===r||"string"===i)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,o=e.length,a=[];n<s||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?a[n]=t[n]+e[n]:a[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return a}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t,10)),"string"===i&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,o=e.length,a=[];n<s||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?a[n]=t[n]-e[n]:a[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return a}return 0}function mul(t,e){var r,i,n,s=_typeof$1(t),o=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof$1(t),o=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],o=Math.max(i,n,s),a=Math.min(i,n,s),A=(o+a)/2;if(o===a)e=0,r=0;else{var l=o-a;switch(r=A>.5?l/(2-o-a):l/(o+a),o){case i:e=(n-s)/l+(n<s?6:0);break;case n:e=(s-i)/l+2;break;case s:e=(i-n)/l+4}e/=6}return[e,r,A,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],o=t[2];if(0===s)e=o,i=o,r=o;else{var a=o<.5?o*(1+s):o+s-o*s,A=2*o-a;e=hue2rgb(A,a,n+1/3),r=hue2rgb(A,a,n),i=hue2rgb(A,a,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0!==i&&void 0!==n||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var o,a=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*a;var A=i.length,l=createTypedArray("float32",A);for(o=0;o<A;o+=1)l[o]=i[o]+(n[o]-i[o])*a;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,o=shapePool.newElement();o.setPathData(!!i,s);var a,A,l=[0,0];for(n=0;n<s;n+=1)a=e&&e[n]?e[n]:l,A=r&&r[n]?r[n]:l,o.setTripleAt(t[n][0],t[n][1],A[0]+t[n][0],A[1]+t[n][1],a[0]+t[n][0],a[1]+t[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),o=Math.floor(5*time);for(r=0,i=0;r<o;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var a=5*time,A=a-Math.floor(a),l=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)l[i]=this.pv[i]+s[i]+(-e+2*e*BMMath.random())*A;return l}return this.pv+s[0]+(-e+2*e*BMMath.random())*A}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){void 0===n?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var a,A=n.length,l=createTypedArray("float32",A);for(a=0;a<A;a+=1)l[a]=(s[a]-n[a])*o+n[a];return l}return(s-n)*o+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<n;){if(e.masksProperties[r].nm===t)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(!t.numKeys)return 0;var n;n="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var s="unidimensional"===r?new Number(n):Object.assign({},n);return s.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===r?n[0]:n,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function i(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var i=1/e.mult,n=e.pv*i,s=new Number(n);return s.value=n,r(s,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*i,s.value!==n&&((s=new Number(n)).value=n,s[0]=n,r(s,e,"unidimensional")),s}}(n):function(t){t&&"pv"in t||(t=e);var i=1/t.mult,n=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",n),o=createTypedArray("float32",n);return s.value=o,r(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)o[e]=t.v[e]*i,s[e]=o[e];return s}}(n):i}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function a(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function A(){return[1,1,1,1]}return function(l){var h;function c(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=t,c.invertPoint=o,c.applyPoint=s,c.toWorld=r,c.toWorldVec=e,c.fromWorld=n,c.fromWorldVec=i,c.toComp=r,c.fromComp=a,c.sampleImage=A,c.sourceRectAtTime=l.sourceRectAtTime.bind(l),c._elem=l;var u=getDescriptor(h=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return h}},active:{get:function(){return l.isInRange}}}),c.startTime=l.data.st,c.index=l.data.ind,c.source=l.data.refId,c.height=0===l.data.ty?l.data.h:100,c.width=0===l.data.ty?l.data.w:100,c.inPoint=l.data.ip/l.comp.globalData.frameRate,c.outPoint=l.data.op/l.comp.globalData.frameRate,c._name=l.data.nm,c.registerMaskInterface=function(t){c.mask=new MaskManagerInterface(t,l)},c.registerEffectsInterface=function(t){c.effect=t},c}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function o(t){for(var e=r.ef,i=0,n=e.length;i<n;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?l[i]:l[i]();i+=1}throw new Error}var a,A=propertyGroupFactory(o,n),l=[],h=r.ef.length;for(a=0;a<h;a+=1)5===r.ef[a].ty?l.push(t(r.ef[a],i.effectElements[a],i.effectElements[a].propertyGroup,s)):l.push(e(i.effectElements[a],r.ef[a].ty,s,A));return"ADBE Color Control"===r.mn&&Object.defineProperty(o,"color",{get:function(){return l[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:A}}),o.enabled=0!==r.en,o.active=o.enabled,o}function e(t,e,r,i){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===e?r.comp.compInterface(t.p.v):n()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],s=e.data.ef,o=e.effectsManager.effectElements.length;for(i=0;i<o;i+=1)n.push(t(s[i],e.effectsManager.effectElements[i],r,e));var a=e.data.ef||[],A=function(t){for(i=0,o=a.length;i<o;){if(t===a[i].nm||t===a[i].mn||t===a[i].ix)return n[i];i+=1}return null};return Object.defineProperty(A,"numProperties",{get:function(){return a.length}}),A}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(t,a,p){var d,f=[],g=t?t.length:0;for(d=0;d<g;d+=1)"gr"===t[d].ty?f.push(e(t[d],a[d],p)):"fl"===t[d].ty?f.push(r(t[d],a[d],p)):"st"===t[d].ty?f.push(s(t[d],a[d],p)):"tm"===t[d].ty?f.push(o(t[d],a[d],p)):"tr"===t[d].ty||("el"===t[d].ty?f.push(A(t[d],a[d],p)):"sr"===t[d].ty?f.push(l(t[d],a[d],p)):"sh"===t[d].ty?f.push(ShapePathInterface(t[d],a[d],p)):"rc"===t[d].ty?f.push(h(t[d],a[d],p)):"rd"===t[d].ty?f.push(c(t[d],a[d],p)):"rp"===t[d].ty?f.push(u(t[d],a[d],p)):"gf"===t[d].ty?f.push(i(t[d],a[d],p)):f.push(n(t[d],a[d])));return f}function e(e,r,i){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,i);var s=function(e,r,i){var n,s=function(t){for(var e=0,r=n.length;e<r;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};s.propertyGroup=propertyGroupFactory(s,i),n=t(e.it,r.it,s.propertyGroup),s.numProperties=n.length;var o=a(e.it[e.it.length-1],r.it[r.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=e.cix,s._name=e.nm,s}(e,r,n.propertyGroup),o=a(e.it[e.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=s,n.transform=o,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function r(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(t,e,r){function i(t){return"Start Point"===t||"start point"===t?i.startPoint:"End Point"===t||"end point"===t?i.endPoint:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function n(){return function(){return null}}function s(t,e,r){var i,n=propertyGroupFactory(l,r),s=propertyGroupFactory(A,n);function o(r){Object.defineProperty(A,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var a=t.d?t.d.length:0,A={};for(i=0;i<a;i+=1)o(i),e.d.dataProps[i].p.setGroupProperty(s);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return A}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),l}function o(t,e,r){function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:null}var n=propertyGroupFactory(i,r);return i.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),i.propertyIndex=t.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mn=t.mn,i}function a(t,e,r){function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:null}var n=propertyGroupFactory(i,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i.propertyGroup=r,i}function A(t,e,r){function i(e){return t.p.ix===e?i.position:t.s.ix===e?i.size:null}var n=propertyGroupFactory(i,r);i.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.rotation:t.pt.ix===e?i.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?i.outerRadius:t.os.ix===e?i.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?i.innerRoundness:null:i.innerRadius}var n=propertyGroupFactory(i,r),s="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",n)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),s.pt.setGroupProperty(PropertyInterface("Points",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),i.mn=t.mn,i}function h(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?i.size:null}var n=propertyGroupFactory(i,r),s="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",n)),s.s.setGroupProperty(PropertyInterface("Size",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),i.mn=t.mn,i}function c(t,e,r){function i(e){return t.r.ix===e||"Round Corners 1"===e?i.radius:null}var n=propertyGroupFactory(i,r),s=e;return i.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),i.mn=t.mn,i}function u(t,e,r){function i(e){return t.c.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:null}var n=propertyGroupFactory(i,r),s=e;return i.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",n)),s.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),i.mn=t.mn,i}return function(e,r,i){var n;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?i:n[t-1];for(var e=0,r=n.length;e<r;){if(n[e]._name===t)return n[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,function(){return i}),n=t(e,r,s.propertyGroup),s.numProperties=n.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function r(t){return"ADBE Text Document"===t?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return e&&r===e.value||((e=new String(r)).value=r||new String(r),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),r};function _typeof(t){return _typeof="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},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function i(t){if(r[t])return e=t,"object"===_typeof(r=r[t])?i:r;var n=t.indexOf(e);if(-1!==n){var s=parseInt(t.substr(n+e.length),10);return"object"===_typeof(r=r[s])?i:r}return""}return function(){return e="",r=t.getFootageData(),i}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=-.001,n=this.getValueAtTime(t),s=this.getValueAtTime(t+i);if(n.length)for(e=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)e[r]=(s[r]-n[r])/i;else e=(s-n)/i;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,n,s,o,a,A=this.comp.renderedFrame,l=this.keyframes,h=l[l.length-1].t;if(A<=h)return this.pv;if(r?n=h-(i=e?Math.abs(h-this.elem.comp.globalData.frameRate*e):Math.max(0,h-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),i=h-(n=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((A-n)/i)%2!=0)return this.getValueAtTime((i-(A-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(h/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((A-n)%i+n)/this.comp.globalData.frameRate,0),d=Math.floor((A-n)/i);if(this.pv.length){for(o=(a=new Array(c.length)).length,s=0;s<o;s+=1)a[s]=(u[s]-c[s])*d+p[s];return a}return(u-c)*d+p}if("continue"===t){var f=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(f.length)).length,s=0;s<o;s+=1)a[s]=f[s]+(f[s]-g[s])*((A-h)/this.comp.globalData.frameRate)/5e-4;return a}return f+(A-h)/.001*(f-g)}}return this.getValueAtTime(((A-n)%i+n)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,n,s,o,a,A=this.comp.renderedFrame,l=this.keyframes,h=l[0].t;if(A>=h)return this.pv;if(r?n=h+(i=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-h)):((!e||e>l.length-1)&&(e=l.length-1),i=(n=l[e].t)-h),"pingpong"===t){if(Math.floor((h-A)/i)%2==0)return this.getValueAtTime(((h-A)%i+h)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(h/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),p=this.getValueAtTime((i-(h-A)%i+h)/this.comp.globalData.frameRate,0),d=Math.floor((h-A)/i)+1;if(this.pv.length){for(o=(a=new Array(c.length)).length,s=0;s<o;s+=1)a[s]=p[s]-(u[s]-c[s])*d;return a}return p-(u-c)*d}if("continue"===t){var f=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(f.length)).length,s=0;s<o;s+=1)a[s]=f[s]+(f[s]-g[s])*(h-A)/.001;return a}return f+(f-g)*(h-A)/.001}}return this.getValueAtTime((i-((h-A)%i+h))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,s=n-t,o=e>1?(n+t-s)/(e-1):1,a=0,A=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(i=this.getValueAtTime(s+a*o),this.pv.length)for(A=0;A<this.pv.length;A+=1)r[A]+=i[A];else r+=i;a+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)r[A]/=e;else r/=e;return r}function i(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(t);e.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var a=this.rz.getValueAtTime(t),A=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),h=this.or.getValueAtTime(t);e.rotateZ(-a*this.rz.mult).rotateY(A*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-h[2]*this.or.mult).rotateY(h[1]*this.or.mult).rotateX(h[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(c*this.px.mult,u*this.py.mult,-p*this.pz.mult)}else e.translate(c*this.px.mult,u*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var o=s(t,e,r);return o.dynamicProperties.length?o.getValueAtTime=i.bind(o):o.getValueAtTime=n.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(i,n,s,a,A){var l=o(i,n,s,a,A);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===n.a?n.k.length:0,l.propertyIndex=n.ix;var h=0;return 0!==s&&(h=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(i,n,l),l.k&&A.addDynamicProperty(l),l};var a=ShapePropertyFactory.getConstructorFunction(),A=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0));var n=i._length,s=i[t],o=i.v,a=createSizedArray(n);for(r=0;r<n;r+=1)a[r]="i"===t||"o"===t?[s[r][0]-o[r][0],s[r][1]-o[r][1]]:[s[r][0],s[r][1]];return a},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,s=n.lengths,o=n.totalLength*t,a=0,A=s.length,l=0;a<A;){if(l+s[a].addedLength>o){var h=a,c=r.c&&a===A-1?0:a+1,u=(o-l)/s[a].addedLength;i=bez.getPointInSegment(r.v[h],r.v[c],r.o[h],r.i[c],u,s[a]);break}l+=s[a].addedLength,a+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-i[0],o=n[1]-i[1],a=Math.sqrt(Math.pow(s,2)+Math.pow(o,2));return 0===a?[0,0]:"tangent"===r?[s/a,o/a]:[-o/a,s/a]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],a),extendPrototype([l],A),A.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},A.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,n){var s=h(t,e,r,i,n);return s.propertyIndex=e.ix,s.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,s):4===r&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",i+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var A=createNS("feFuncB");A.setAttribute("type","table"),s.appendChild(A),this.feFuncB=A,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,r,i,n){var s=e.container.globalData.renderConfig.filterSize,o=e.data.fs||s;t.setAttribute("x",o.x||s.x),t.setAttribute("y",o.y||s.y),t.setAttribute("width",o.width||s.width),t.setAttribute("height",o.height||s.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",i+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var A=createNS("feOffset");A.setAttribute("dx","25"),A.setAttribute("dy","0"),A.setAttribute("in",i+"_drop_shadow_1"),A.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=A,t.appendChild(A);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var h=createNS("feComposite");h.setAttribute("in",i+"_drop_shadow_3"),h.setAttribute("in2",i+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(h);var c=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(c)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)a.appendChild(n[0]);this.elem.layerElement.appendChild(a),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),A=i.getTotalLength();s="0 0 0 "+A*o+" ";var l,h=A*(a-o),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(h/c);for(l=0;l<u;l+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*A+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,o,a=0,A=Math.min(t,e),l=Math.max(t,e),h=Array.call(null,{length:256}),c=0,u=n-i,p=e-t;a<=256;)o=(s=a/256)<=A?p<0?n:i:s>=l?p<0?i:n:i+u*Math.pow((s-t)/p,1/r),h[c]=o,c+=1,a+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,o=n.length;s<o&&n[s]!==t.layerElement;)s+=1;s<=o-2&&(i=n[s+1]);var a=createNS("use");a.setAttribute("href","#"+e),i?r.insertBefore(a,i):r.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:e,n=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,i=e[1].p.v,n=1===e[2].p.v,s=e[3].p.v,o=n?s:e[4].p.v,a=e[5].p.v,A=e[6].p.v,l=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*o,.01*s,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-a*degToRads,(A+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},77412(t){"use strict";t.exports=Math.abs},52418(t){"use strict";t.exports=Math.floor},41694(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},57958(t){"use strict";t.exports=Math.max},47384(t){"use strict";t.exports=Math.min},250(t){"use strict";t.exports=Math.pow},51844(t){"use strict";t.exports=Math.round},47279(t,e,r){"use strict";var i=r(41694);t.exports=function(t){return i(t)||0===t?t:t<0?-1:1}},86481(t,e,r){"use strict";r.d(e,{t:()=>A});var i=r(51918);const n=(t,e,r)=>{if(t&&"reportValidity"in t){const n=(0,i.Jt)(r,e);t.setCustomValidity(n&&n.message||""),t.reportValidity()}},s=(t,e)=>{for(const r in e.fields){const i=e.fields[r];i&&i.ref&&"reportValidity"in i.ref?n(i.ref,r,t):i.refs&&i.refs.forEach(e=>n(e,r,t))}},o=(t,e)=>{e.shouldUseNativeValidation&&s(t,e);const r={};for(const n in t){const s=(0,i.Jt)(e.fields,n),o=Object.assign(t[n]||{},{ref:s&&s.ref});if(a(e.names||Object.keys(t),n)){const t=Object.assign({},(0,i.Jt)(r,n));(0,i.hZ)(t,"root",o),(0,i.hZ)(r,n,t)}else(0,i.hZ)(r,n,o)}return r},a=(t,e)=>t.some(t=>t.startsWith(e+"."));function A(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),function(n,a,A){try{return Promise.resolve(function(i,o){try{var l=(e.context,Promise.resolve(t["sync"===r.mode?"validateSync":"validate"](n,Object.assign({abortEarly:!1},e,{context:a}))).then(function(t){return A.shouldUseNativeValidation&&s({},A),{values:r.raw?n:t,errors:{}}}))}catch(t){return o(t)}return l&&l.then?l.then(void 0,o):l}(0,function(t){if(!t.inner)throw t;return{values:{},errors:o((e=t,r=!A.shouldUseNativeValidation&&"all"===A.criteriaMode,(e.inner||[]).reduce(function(t,e){if(t[e.path]||(t[e.path]={message:e.message,type:e.type}),r){var n=t[e.path].types,s=n&&n[e.type];t[e.path]=(0,i.Gb)(e.path,r,t,e.type,s?[].concat(s,e.message):e.message)}return t},{})),A)};var e,r}))}catch(t){return Promise.reject(t)}}}},234(t,e,r){"use strict";function i(t,e){if(!Boolean(t))throw new Error(e)}r.d(e,{U:()=>i})},55565(t,e,r){"use strict";function i(t){return n(t,[])}function n(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:n(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),i=t.length-r,s=[];for(let i=0;i<r;++i)s.push(n(t[i],e));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(t,r);return function(t,e){const r=Object.entries(t);if(0===r.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const i=r.map(([t,r])=>t+": "+n(r,e));return"{ "+i.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}r.d(e,{N:()=>i})},34695(t,e,r){"use strict";r.d(e,{Ll:()=>a,aD:()=>s,aZ:()=>i,cE:()=>A,ou:()=>n});class i{constructor(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class n{constructor(t,e,r,i,n,s){this.kind=t,this.start=e,this.end=r,this.line=i,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function a(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&o.has(e)}let A;!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(A||(A={}))},22359(t,e,r){"use strict";function i(t){const e=t.split(/\r\n|[\n\r]/g),r=function(t){var e;let r=!0,i=!0,n=0,s=null;for(let e=0;e<t.length;++e)switch(t.charCodeAt(e)){case 13:10===t.charCodeAt(e+1)&&++e;case 10:r=!1,i=!0,n=0;break;case 9:case 32:++n;break;default:i&&!r&&(null===s||n<s)&&(s=n),i=!1}return null!==(e=s)&&void 0!==e?e:0}(t);if(0!==r)for(let t=1;t<e.length;t++)e[t]=e[t].slice(r);let i=0;for(;i<e.length&&n(e[i]);)++i;let s=e.length;for(;s>i&&n(e[s-1]);)--s;return e.slice(i,s).join("\n")}function n(t){for(const e of t)if(" "!==e&&"\t"!==e)return!1;return!0}function s(t,e=!1){const r=!t.includes("\n"),i=t.startsWith(" ")||t.startsWith("\t"),n=t.endsWith('"'),s=t.endsWith("\\"),o=!r||n||s||e;let a="";return!o||r&&i||(a+="\n"),a+=t,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}r.d(e,{i$:()=>i,yo:()=>s})},49270(t,e,r){"use strict";let i;r.d(e,{b:()=>i}),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(i||(i={}))},96891(t,e,r){"use strict";r.d(e,{VK:()=>n});var i=r(49270);function n(t){return t.kind===i.b.FIELD||t.kind===i.b.FRAGMENT_SPREAD||t.kind===i.b.INLINE_FRAGMENT}},74831(t,e,r){"use strict";r.d(e,{y:()=>A});var i=r(85517),n=r(22359);const s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(t){return a[t.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function A(t){return(0,i.YR)(t,l)}const l={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>h(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=u("(",h(t.variableDefinitions,", "),")"),r=h([t.operation,h([t.name,e]),h(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:i})=>t+": "+e+u(" = ",r)+u(" ",h(i," "))},SelectionSet:{leave:({selections:t})=>c(t)},Field:{leave({alias:t,name:e,arguments:r,directives:i,selectionSet:n}){const s=u("",t,": ")+e;let o=s+u("(",h(r,", "),")");return o.length>80&&(o=s+u("(\n",p(h(r,"\n")),"\n)")),h([o,h(i," "),n]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+u(" ",h(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>h(["...",u("on ",t),h(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:i,selectionSet:n})=>`fragment ${t}${u("(",h(r,", "),")")} on ${e} ${u("",h(i," ")," ")}`+n},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,n.yo)(t):`"${t.replace(s,o)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+h(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+h(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+u("(",h(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>u("",t,"\n")+h(["schema",h(e," "),c(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>u("",t,"\n")+h(["scalar",e,h(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>u("",t,"\n")+h(["type",e,u("implements ",h(r," & ")),h(i," "),c(n)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:i,directives:n})=>u("",t,"\n")+e+(d(r)?u("(\n",p(h(r,"\n")),"\n)"):u("(",h(r,", "),")"))+": "+i+u(" ",h(n," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:i,directives:n})=>u("",t,"\n")+h([e+": "+r,u("= ",i),h(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>u("",t,"\n")+h(["interface",e,u("implements ",h(r," & ")),h(i," "),c(n)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:i})=>u("",t,"\n")+h(["union",e,h(r," "),u("= ",h(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:i})=>u("",t,"\n")+h(["enum",e,h(r," "),c(i)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>u("",t,"\n")+h([e,h(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:i})=>u("",t,"\n")+h(["input",e,h(r," "),c(i)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:i,locations:n})=>u("",t,"\n")+"directive @"+e+(d(r)?u("(\n",p(h(r,"\n")),"\n)"):u("(",h(r,", "),")"))+(i?" repeatable":"")+" on "+h(n," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>h(["extend schema",h(t," "),c(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>h(["extend scalar",t,h(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>h(["extend type",t,u("implements ",h(e," & ")),h(r," "),c(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>h(["extend interface",t,u("implements ",h(e," & ")),h(r," "),c(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>h(["extend union",t,h(e," "),u("= ",h(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>h(["extend enum",t,h(e," "),c(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>h(["extend input",t,h(e," "),c(r)]," ")}};function h(t,e=""){var r;return null!==(r=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==r?r:""}function c(t){return u("{\n",p(h(t,"\n")),"\n}")}function u(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function p(t){return u("  ",t.replace(/\n/g,"\n  "))}function d(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}},85517(t,e,r){"use strict";r.d(e,{YR:()=>A,sP:()=>a});var i=r(55565),n=r(234),s=r(34695),o=r(49270);const a=Object.freeze({});function A(t,e,r=s.aD){const A=new Map;for(const t of Object.values(o.b))A.set(t,l(e,t));let h,c,u,p,d=Array.isArray(t),f=[t],g=-1,m=[];const y=[],v=[];let b=t;do{g++;const t=g===f.length,o=t&&0!==m.length;if(t){if(u=0===v.length?void 0:y[y.length-1],c=p,p=v.pop(),o)if(d){c=c.slice();let t=0;for(const[e,r]of m){const i=e-t;null===r?(c.splice(i,1),t++):c[i]=r}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[t,e]of m)c[t]=e}g=h.index,f=h.keys,m=h.edits,d=h.inArray,h=h.prev}else{if(u=p?d?g:f[g]:void 0,c=p?p[u]:b,null==c)continue;p&&y.push(u)}let l;if(!Array.isArray(c)){var w,B;(0,s.Ll)(c)||(0,n.U)(!1,`Invalid AST Node: ${(0,i.N)(c)}.`);const r=t?null===(w=A.get(c.kind))||void 0===w?void 0:w.leave:null===(B=A.get(c.kind))||void 0===B?void 0:B.enter;if(l=null==r?void 0:r.call(e,c,u,p,y,v),l===a)break;if(!1===l){if(!t){y.pop();continue}}else if(void 0!==l&&(m.push([u,l]),!t)){if(!(0,s.Ll)(l)){y.pop();continue}c=l}}var x;void 0===l&&o&&m.push([u,c]),t?y.pop():(h={inArray:d,index:g,keys:f,edits:m,prev:h},d=Array.isArray(c),f=d?c:null!==(x=r[c.kind])&&void 0!==x?x:[],g=-1,m=[],p&&v.push(p),p=c)}while(void 0!==h);return 0!==m.length&&(b=m[m.length-1][1]),b}function l(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}},61001(t,e,r){"use strict";r.r(e),r.d(e,{BREAK:()=>Lt,BreakingChangeType:()=>ao,DEFAULT_DEPRECATION_REASON:()=>fr,DangerousChangeType:()=>Ao,DirectiveLocation:()=>E,ExecutableDefinitionsRule:()=>vi,FieldsOnCorrectTypeRule:()=>bi,FragmentsOnCompositeTypesRule:()=>wi,GRAPHQL_MAX_INT:()=>tr,GRAPHQL_MIN_INT:()=>er,GraphQLBoolean:()=>sr,GraphQLDeprecatedDirective:()=>gr,GraphQLDirective:()=>ur,GraphQLEnumType:()=>ze,GraphQLError:()=>d,GraphQLFloat:()=>ir,GraphQLID:()=>or,GraphQLIncludeDirective:()=>pr,GraphQLInputObjectType:()=>Ye,GraphQLInt:()=>rr,GraphQLInterfaceType:()=>je,GraphQLList:()=>we,GraphQLNonNull:()=>Be,GraphQLObjectType:()=>Ne,GraphQLOneOfDirective:()=>yr,GraphQLScalarType:()=>Pe,GraphQLSchema:()=>Rr,GraphQLSkipDirective:()=>dr,GraphQLSpecifiedByDirective:()=>mr,GraphQLString:()=>nr,GraphQLUnionType:()=>Ve,Kind:()=>S,KnownArgumentNamesRule:()=>Bi,KnownDirectivesRule:()=>Ci,KnownFragmentNamesRule:()=>Ei,KnownTypeNamesRule:()=>Si,Lexer:()=>O,Location:()=>v,LoneAnonymousOperationRule:()=>Ti,LoneSchemaDefinitionRule:()=>Ii,MaxIntrospectionDepthRule:()=>_i,NoDeprecatedCustomRule:()=>xs,NoFragmentCyclesRule:()=>ki,NoSchemaIntrospectionCustomRule:()=>Cs,NoUndefinedVariablesRule:()=>Li,NoUnusedFragmentsRule:()=>Pi,NoUnusedVariablesRule:()=>Ni,OperationTypeNode:()=>C,OverlappingFieldsCanBeMergedRule:()=>Oi,PossibleFragmentSpreadsRule:()=>Xi,PossibleTypeExtensionsRule:()=>qi,ProvidedRequiredArgumentsRule:()=>Ji,ScalarLeafsRule:()=>en,SchemaMetaFieldDef:()=>Pr,SingleFieldSubscriptionsRule:()=>wn,Source:()=>at,Token:()=>b,TokenKind:()=>F,TypeInfo:()=>si,TypeKind:()=>kr,TypeMetaFieldDef:()=>Nr,TypeNameMetaFieldDef:()=>Dr,UniqueArgumentDefinitionNamesRule:()=>xn,UniqueArgumentNamesRule:()=>Cn,UniqueDirectiveNamesRule:()=>En,UniqueDirectivesPerLocationRule:()=>Sn,UniqueEnumValueNamesRule:()=>Fn,UniqueFieldDefinitionNamesRule:()=>Tn,UniqueFragmentNamesRule:()=>_n,UniqueInputFieldNamesRule:()=>kn,UniqueOperationNamesRule:()=>Ln,UniqueOperationTypesRule:()=>Pn,UniqueTypeNamesRule:()=>Nn,UniqueVariableNamesRule:()=>Dn,ValidationContext:()=>Kn,ValuesOfCorrectTypeRule:()=>Mn,VariablesAreInputTypesRule:()=>Un,VariablesInAllowedPositionRule:()=>Qn,__Directive:()=>Er,__DirectiveLocation:()=>Sr,__EnumValue:()=>_r,__Field:()=>Tr,__InputValue:()=>Ir,__Schema:()=>Cr,__Type:()=>Fr,__TypeKind:()=>Lr,assertAbstractType:()=>be,assertCompositeType:()=>ye,assertDirective:()=>cr,assertEnumType:()=>ne,assertEnumValueName:()=>Kt,assertInputObjectType:()=>oe,assertInputType:()=>ue,assertInterfaceType:()=>te,assertLeafType:()=>ge,assertListType:()=>Ae,assertName:()=>zt,assertNamedType:()=>Ie,assertNonNullType:()=>he,assertNullableType:()=>Se,assertObjectType:()=>Jt,assertOutputType:()=>de,assertScalarType:()=>qt,assertSchema:()=>Qr,assertType:()=>Yt,assertUnionType:()=>re,assertValidName:()=>so,assertValidSchema:()=>Vr,assertWrappingType:()=>Ce,astFromValue:()=>Br,buildASTSchema:()=>Ds,buildClientSchema:()=>Is,buildSchema:()=>Ms,coerceInputValue:()=>on,concatAST:()=>to,createSourceEventStream:()=>Bs,defaultFieldResolver:()=>fs,defaultTypeResolver:()=>ds,doTypesOverlap:()=>Ze,execute:()=>es,executeSync:()=>rs,extendSchema:()=>_s,findBreakingChanges:()=>lo,findDangerousChanges:()=>ho,formatError:()=>m,getArgumentValues:()=>pn,getDirectiveValues:()=>dn,getEnterLeaveForKind:()=>Dt,getIntrospectionQuery:()=>Es,getLocation:()=>h,getNamedType:()=>_e,getNullableType:()=>Fe,getOperationAST:()=>Ss,getOperationRootType:()=>Fs,getVariableValues:()=>un,getVisitFn:()=>Mt,graphql:()=>ms,graphqlSync:()=>ys,introspectionFromSchema:()=>Ts,introspectionTypes:()=>Mr,isAbstractType:()=>ve,isCompositeType:()=>me,isConstValueNode:()=>ui,isDefinitionNode:()=>Ai,isDirective:()=>hr,isEnumType:()=>ie,isEqualType:()=>$e,isExecutableDefinitionNode:()=>li,isInputObjectType:()=>se,isInputType:()=>ce,isInterfaceType:()=>Zt,isIntrospectionType:()=>Or,isLeafType:()=>fe,isListType:()=>ae,isNamedType:()=>Te,isNonNullType:()=>le,isNullableType:()=>Ee,isObjectType:()=>$t,isOutputType:()=>pe,isRequiredArgument:()=>He,isRequiredInputField:()=>qe,isScalarType:()=>Xt,isSchema:()=>Ur,isSchemaCoordinateNode:()=>yi,isSelectionNode:()=>hi,isSpecifiedDirective:()=>br,isSpecifiedScalarType:()=>Ar,isType:()=>Wt,isTypeDefinitionNode:()=>fi,isTypeExtensionNode:()=>mi,isTypeNode:()=>pi,isTypeSubTypeOf:()=>Je,isTypeSystemDefinitionNode:()=>di,isTypeSystemExtensionNode:()=>gi,isUnionType:()=>ee,isValidNameError:()=>oo,isValueNode:()=>ci,isWrappingType:()=>xe,lexicographicSortSchema:()=>Os,locatedError:()=>Jn,parse:()=>lt,parseConstValue:()=>ct,parseSchemaCoordinate:()=>pt,parseType:()=>ut,parseValue:()=>ht,print:()=>Ot,printError:()=>g,printIntrospectionSchema:()=>js,printLocation:()=>c,printSchema:()=>Hs,printSourceLocation:()=>u,printType:()=>Ks,recommendedRules:()=>Hn,resolveASTSchemaCoordinate:()=>Fo,resolveObjMapThunk:()=>Le,resolveReadonlyArrayThunk:()=>ke,resolveSchemaCoordinate:()=>So,responsePathAsArray:()=>sn,separateOperations:()=>eo,specifiedDirectives:()=>vr,specifiedRules:()=>jn,specifiedScalarTypes:()=>ar,stripIgnoredCharacters:()=>no,subscribe:()=>ws,syntaxError:()=>y,typeFromAST:()=>ni,validate:()=>Yn,validateSchema:()=>jr,valueFromAST:()=>ln,valueFromASTUntyped:()=>Gt,version:()=>i,versionInfo:()=>n,visit:()=>Pt,visitInParallel:()=>Nt,visitWithTypeInfo:()=>ai});const i="16.14.2",n=Object.freeze({major:16,minor:14,patch:2,preReleaseTag:null});function s(t,e){if(!Boolean(t))throw new Error(e)}function o(t){return"function"==typeof(null==t?void 0:t.then)}function a(t){return"object"==typeof t&&null!==t}function A(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const l=/\r\n|[\n\r]/g;function h(t,e){let r=0,i=1;for(const n of t.body.matchAll(l)){if("number"==typeof n.index||A(!1),n.index>=e)break;r=n.index+n[0].length,i+=1}return{line:i,column:e+1-r}}function c(t){return u(t.source,h(t.source,t.start))}function u(t,e){const r=t.locationOffset.column-1,i="".padStart(r)+t.body,n=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=1===e.line?r:0,A=e.column+a,l=`${t.name}:${o}:${A}\n`,h=i.split(/\r\n|[\n\r]/g),c=h[n];if(c.length>120){const t=Math.floor(A/80),e=A%80,r=[];for(let t=0;t<c.length;t+=80)r.push(c.slice(t,t+80));return l+p([[`${o} |`,r[0]],...r.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",r[t+1]]])}return l+p([[o-1+" |",h[n-1]],[`${o} |`,c],["|","^".padStart(A)],[`${o+1} |`,h[n+1]]])}function p(t){const e=t.filter(([t,e])=>void 0!==e),r=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(r)+(e?" "+e:"")).join("\n")}class d extends Error{constructor(t,...e){var r,i,n;const{nodes:s,source:o,positions:A,path:l,originalError:c,extensions:u}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=f(Array.isArray(s)?s:s?[s]:void 0);const p=f(null===(r=this.nodes)||void 0===r?void 0:r.map(t=>t.loc).filter(t=>null!=t));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=A?A:null==p?void 0:p.map(t=>t.start),this.locations=A&&o?A.map(t=>h(o,t)):null==p?void 0:p.map(t=>h(t.source,t.start));const g=a(null==c?void 0:c.extensions)?null==c?void 0:c.extensions:void 0;this.extensions=null!==(n=null!=u?u:g)&&void 0!==n?n:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+c(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+u(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function f(t){return void 0===t||0===t.length?void 0:t}function g(t){return t.toString()}function m(t){return t.toJSON()}function y(t,e,r){return new d(`Syntax Error: ${r}`,{source:t,positions:[e]})}class v{constructor(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class b{constructor(t,e,r,i,n,s){this.kind=t,this.start=e,this.end=r,this.line=i,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const w={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},B=new Set(Object.keys(w));function x(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&B.has(e)}var C,E,S,F;function T(t){return 9===t||32===t}function I(t){return t>=48&&t<=57}function _(t){return t>=97&&t<=122||t>=65&&t<=90}function k(t){return _(t)||95===t}function L(t){return _(t)||I(t)||95===t}function P(t){var e;let r=Number.MAX_SAFE_INTEGER,i=null,n=-1;for(let e=0;e<t.length;++e){var s;const o=t[e],a=N(o);a!==o.length&&(i=null!==(s=i)&&void 0!==s?s:e,n=e,0!==e&&a<r&&(r=a))}return t.map((t,e)=>0===e?t:t.slice(r)).slice(null!==(e=i)&&void 0!==e?e:0,n+1)}function N(t){let e=0;for(;e<t.length&&T(t.charCodeAt(e));)++e;return e}function D(t){if(""===t)return!0;let e=!0,r=!1,i=!0,n=!1;for(let s=0;s<t.length;++s)switch(t.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!n)return!1;n=!0,e=!0,r=!1;break;case 9:case 32:r||(r=e);break;default:i&&(i=r),e=!1}return!(e||i&&n)}function M(t,e){const r=t.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),n=1===i.length,s=i.length>1&&i.slice(1).every(t=>0===t.length||T(t.charCodeAt(0))),o=r.endsWith('\\"""'),a=t.endsWith('"')&&!o,A=t.endsWith("\\"),l=a||A,h=!(null!=e&&e.minimize)&&(!n||t.length>70||l||s||o);let c="";const u=n&&T(t.charCodeAt(0));return(h&&!u||s)&&(c+="\n"),c+=r,(h||l)&&(c+="\n"),'"""'+c+'"""'}!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(C||(C={})),function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(E||(E={})),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(S||(S={})),function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(F||(F={}));class O{constructor(t){const e=new b(F.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==F.EOF)do{if(t.next)t=t.next;else{const e=z(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===F.COMMENT);return t}}function U(t){return t===F.BANG||t===F.DOLLAR||t===F.AMP||t===F.PAREN_L||t===F.PAREN_R||t===F.DOT||t===F.SPREAD||t===F.COLON||t===F.EQUALS||t===F.AT||t===F.BRACKET_L||t===F.BRACKET_R||t===F.BRACE_L||t===F.PIPE||t===F.BRACE_R}function Q(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function R(t,e){return H(t.charCodeAt(e))&&j(t.charCodeAt(e+1))}function H(t){return t>=55296&&t<=56319}function j(t){return t>=56320&&t<=57343}function V(t,e){const r=t.source.body.codePointAt(e);if(void 0===r)return F.EOF;if(r>=32&&r<=126){const t=String.fromCodePoint(r);return'"'===t?"'\"'":`"${t}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function G(t,e,r,i,n){const s=t.line,o=1+r-t.lineStart;return new b(e,r,i,s,o,n)}function z(t,e){const r=t.source.body,i=r.length;let n=e;for(;n<i;){const e=r.charCodeAt(n);switch(e){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++t.line,t.lineStart=n;continue;case 13:10===r.charCodeAt(n+1)?n+=2:++n,++t.line,t.lineStart=n;continue;case 35:return K(t,n);case 33:return G(t,F.BANG,n,n+1);case 36:return G(t,F.DOLLAR,n,n+1);case 38:return G(t,F.AMP,n,n+1);case 40:return G(t,F.PAREN_L,n,n+1);case 41:return G(t,F.PAREN_R,n,n+1);case 46:if(46===r.charCodeAt(n+1)&&46===r.charCodeAt(n+2))return G(t,F.SPREAD,n,n+3);break;case 58:return G(t,F.COLON,n,n+1);case 61:return G(t,F.EQUALS,n,n+1);case 64:return G(t,F.AT,n,n+1);case 91:return G(t,F.BRACKET_L,n,n+1);case 93:return G(t,F.BRACKET_R,n,n+1);case 123:return G(t,F.BRACE_L,n,n+1);case 124:return G(t,F.PIPE,n,n+1);case 125:return G(t,F.BRACE_R,n,n+1);case 34:return 34===r.charCodeAt(n+1)&&34===r.charCodeAt(n+2)?et(t,n):X(t,n)}if(I(e)||45===e)return W(t,n,e);if(k(e))return rt(t,n);throw y(t.source,n,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Q(e)||R(r,n)?`Unexpected character: ${V(t,n)}.`:`Invalid character: ${V(t,n)}.`)}return G(t,F.EOF,i,i)}function K(t,e){const r=t.source.body,i=r.length;let n=e+1;for(;n<i;){const t=r.charCodeAt(n);if(10===t||13===t)break;if(Q(t))++n;else{if(!R(r,n))break;n+=2}}return G(t,F.COMMENT,e,n,r.slice(e+1,n))}function W(t,e,r){const i=t.source.body;let n=e,s=r,o=!1;if(45===s&&(s=i.charCodeAt(++n)),48===s){if(s=i.charCodeAt(++n),I(s))throw y(t.source,n,`Invalid number, unexpected digit after 0: ${V(t,n)}.`)}else n=Y(t,n,s),s=i.charCodeAt(n);if(46===s&&(o=!0,s=i.charCodeAt(++n),n=Y(t,n,s),s=i.charCodeAt(n)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++n),43!==s&&45!==s||(s=i.charCodeAt(++n)),n=Y(t,n,s),s=i.charCodeAt(n)),46===s||k(s))throw y(t.source,n,`Invalid number, expected digit but got: ${V(t,n)}.`);return G(t,o?F.FLOAT:F.INT,e,n,i.slice(e,n))}function Y(t,e,r){if(!I(r))throw y(t.source,e,`Invalid number, expected digit but got: ${V(t,e)}.`);const i=t.source.body;let n=e+1;for(;I(i.charCodeAt(n));)++n;return n}function X(t,e){const r=t.source.body,i=r.length;let n=e+1,s=n,o="";for(;n<i;){const i=r.charCodeAt(n);if(34===i)return o+=r.slice(s,n),G(t,F.STRING,e,n+1,o);if(92===i){o+=r.slice(s,n);const e=117===r.charCodeAt(n+1)?123===r.charCodeAt(n+2)?q(t,n):$(t,n):tt(t,n);o+=e.value,n+=e.size,s=n;continue}if(10===i||13===i)break;if(Q(i))++n;else{if(!R(r,n))throw y(t.source,n,`Invalid character within String: ${V(t,n)}.`);n+=2}}throw y(t.source,n,"Unterminated string.")}function q(t,e){const r=t.source.body;let i=0,n=3;for(;n<12;){const t=r.charCodeAt(e+n++);if(125===t){if(n<5||!Q(i))break;return{value:String.fromCodePoint(i),size:n}}if(i=i<<4|Z(t),i<0)break}throw y(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+n)}".`)}function $(t,e){const r=t.source.body,i=J(r,e+2);if(Q(i))return{value:String.fromCodePoint(i),size:6};if(H(i)&&92===r.charCodeAt(e+6)&&117===r.charCodeAt(e+7)){const t=J(r,e+8);if(j(t))return{value:String.fromCodePoint(i,t),size:12}}throw y(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function J(t,e){return Z(t.charCodeAt(e))<<12|Z(t.charCodeAt(e+1))<<8|Z(t.charCodeAt(e+2))<<4|Z(t.charCodeAt(e+3))}function Z(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function tt(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw y(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function et(t,e){const r=t.source.body,i=r.length;let n=t.lineStart,s=e+3,o=s,a="";const A=[];for(;s<i;){const i=r.charCodeAt(s);if(34===i&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){a+=r.slice(o,s),A.push(a);const i=G(t,F.BLOCK_STRING,e,s+3,P(A).join("\n"));return t.line+=A.length-1,t.lineStart=n,i}if(92!==i||34!==r.charCodeAt(s+1)||34!==r.charCodeAt(s+2)||34!==r.charCodeAt(s+3))if(10!==i&&13!==i)if(Q(i))++s;else{if(!R(r,s))throw y(t.source,s,`Invalid character within String: ${V(t,s)}.`);s+=2}else a+=r.slice(o,s),A.push(a),13===i&&10===r.charCodeAt(s+1)?s+=2:++s,a="",o=s,n=s;else a+=r.slice(o,s),o=s+1,s+=4}throw y(t.source,s,"Unterminated string.")}function rt(t,e){const r=t.source.body,i=r.length;let n=e+1;for(;n<i&&L(r.charCodeAt(n));)++n;return G(t,F.NAME,e,n,r.slice(e,n))}class it{line=1;lineStart=0;constructor(t){const e=new b(F.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==F.EOF){const e=function(t,e){const r=t.source.body,i=r.length,n=e;if(n<i){const e=r.charCodeAt(n);switch(e){case 46:return G(t,F.DOT,n,n+1);case 40:return G(t,F.PAREN_L,n,n+1);case 41:return G(t,F.PAREN_R,n,n+1);case 58:return G(t,F.COLON,n,n+1);case 64:return G(t,F.AT,n,n+1)}if(k(e))return rt(t,n);throw y(t.source,n,`Invalid character: ${V(t,n)}.`)}return G(t,F.EOF,i,i)}(this,t.end);t.next=e,e.prev=t,t=e}return t}}function nt(t){return st(t,[])}function st(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:st(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),i=t.length-r,n=[];for(let i=0;i<r;++i)n.push(st(t[i],e));return 1===i?n.push("... 1 more item"):i>1&&n.push(`... ${i} more items`),"["+n.join(", ")+"]"}(t,r);return function(t,e){const r=Object.entries(t);if(0===r.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const i=r.map(([t,r])=>t+": "+st(r,e));return"{ "+i.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}const ot=globalThis.process?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;if("object"==typeof t&&null!==t){var r;const i=e.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in t?t[Symbol.toStringTag]:null===(r=t.constructor)||void 0===r?void 0:r.name)){const e=nt(t);throw new Error(`Cannot use ${i} "${e}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class at{constructor(t,e="GraphQL request",r={line:1,column:1}){"string"==typeof t||s(!1,`Body must be a string. Received: ${nt(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||s(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||s(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function At(t){return ot(t,at)}function lt(t,e){const r=new dt(t,e),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}function ht(t,e){const r=new dt(t,e);r.expectToken(F.SOF);const i=r.parseValueLiteral(!1);return r.expectToken(F.EOF),i}function ct(t,e){const r=new dt(t,e);r.expectToken(F.SOF);const i=r.parseConstValueLiteral();return r.expectToken(F.EOF),i}function ut(t,e){const r=new dt(t,e);r.expectToken(F.SOF);const i=r.parseTypeReference();return r.expectToken(F.EOF),i}function pt(t){const e=At(t)?t:new at(t),r=new it(e),i=new dt(t,{lexer:r});i.expectToken(F.SOF);const n=i.parseSchemaCoordinate();return i.expectToken(F.EOF),n}class dt{constructor(t,e={}){const{lexer:r,...i}=e;if(r)this._lexer=r;else{const e=At(t)?t:new at(t);this._lexer=new O(e)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(F.NAME);return this.node(t,{kind:S.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:S.DOCUMENT,definitions:this.many(F.SOF,this.parseDefinition,F.EOF)})}parseDefinition(){if(this.peek(F.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===F.BRACE_L)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===F.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===e.value)return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(F.BRACE_L))return this.node(t,{kind:S.OPERATION_DEFINITION,operation:C.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(F.NAME)&&(i=this.parseName()),this.node(t,{kind:S.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(F.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(F.PAREN_L,this.parseVariableDefinition,F.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:S.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(F.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(F.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(F.DOLLAR),this.node(t,{kind:S.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:S.SELECTION_SET,selections:this.many(F.BRACE_L,this.parseSelection,F.BRACE_R)})}parseSelection(){return this.peek(F.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,i;return this.expectOptionalToken(F.COLON)?(r=e,i=this.parseName()):i=e,this.node(t,{kind:S.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(F.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(F.PAREN_L,e,F.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(e,{kind:S.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(F.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(F.NAME)?this.node(t,{kind:S.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:S.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(t,{kind:S.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:S.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case F.BRACKET_L:return this.parseList(t);case F.BRACE_L:return this.parseObject(t);case F.INT:return this.advanceLexer(),this.node(e,{kind:S.INT,value:e.value});case F.FLOAT:return this.advanceLexer(),this.node(e,{kind:S.FLOAT,value:e.value});case F.STRING:case F.BLOCK_STRING:return this.parseStringLiteral();case F.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:S.BOOLEAN,value:!0});case"false":return this.node(e,{kind:S.BOOLEAN,value:!1});case"null":return this.node(e,{kind:S.NULL});default:return this.node(e,{kind:S.ENUM,value:e.value})}case F.DOLLAR:if(t){if(this.expectToken(F.DOLLAR),this._lexer.token.kind===F.NAME){const t=this._lexer.token.value;throw y(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:S.STRING,value:t.value,block:t.kind===F.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:S.LIST,values:this.any(F.BRACKET_L,()=>this.parseValueLiteral(t),F.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:S.OBJECT,fields:this.any(F.BRACE_L,()=>this.parseObjectField(t),F.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(e,{kind:S.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(F.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(F.AT),this.node(e,{kind:S.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(F.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(F.BRACKET_R),e=this.node(t,{kind:S.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(F.BANG)?this.node(t,{kind:S.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:S.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(F.STRING)||this.peek(F.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);return this.node(t,{kind:S.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(F.COLON);const r=this.parseNamedType();return this.node(t,{kind:S.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:S.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:S.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(F.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseFieldDefinition,F.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(F.COLON);const n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:S.FIELD_DEFINITION,description:e,name:r,arguments:i,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(F.PAREN_L,this.parseInputValueDef,F.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(F.COLON);const i=this.parseTypeReference();let n;this.expectOptionalToken(F.EQUALS)&&(n=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:S.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:n,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:S.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(t,{kind:S.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(F.EQUALS)?this.delimitedMany(F.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(t,{kind:S.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(F.BRACE_L,this.parseEnumValueDefinition,F.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:S.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw y(this._lexer.source,this._lexer.token.start,`${ft(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(t,{kind:S.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseInputValueDef,F.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===F.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:S.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:S.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:S.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:S.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:S.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:S.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:S.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(F.AT);const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:S.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(F.AT);const r=this.parseName(),i=this.parseArgumentDefs(),n=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:S.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(F.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(E,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(F.AT),r=this.parseName();let i,n;return!e&&this.expectOptionalToken(F.DOT)&&(i=this.parseName()),(e||i)&&this.expectOptionalToken(F.PAREN_L)&&(n=this.parseName(),this.expectToken(F.COLON),this.expectToken(F.PAREN_R)),e?n?this.node(t,{kind:S.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:n}):this.node(t,{kind:S.DIRECTIVE_COORDINATE,name:r}):i?n?this.node(t,{kind:S.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:n}):this.node(t,{kind:S.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:S.TYPE_COORDINATE,name:r})}node(t,e){return!0!==this._options.noLocation&&(e.loc=new v(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw y(this._lexer.source,e.start,`Expected ${gt(t)}, found ${ft(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==F.NAME||e.value!==t)throw y(this._lexer.source,e.start,`Expected "${t}", found ${ft(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===F.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return y(this._lexer.source,e.start,`Unexpected ${ft(e)}.`)}any(t,e,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const i=[];do{i.push(e.call(this))}while(!this.expectOptionalToken(r));return i}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==F.EOF&&(++this._tokenCounter,void 0!==t&&this._tokenCounter>t))throw y(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function ft(t){const e=t.value;return gt(t.kind)+(null!=e?` "${e}"`:"")}function gt(t){return U(t)?`"${t}"`:t}function mt(t,e){const[r,i]=e?[t,e]:[void 0,t];let n=" Did you mean ";r&&(n+=r+" ");const s=i.map(t=>`"${t}"`);switch(s.length){case 0:return"";case 1:return n+s[0]+"?";case 2:return n+s[0]+" or "+s[1]+"?"}const o=s.slice(0,5),a=o.pop();return n+o.join(", ")+", or "+a+"?"}function yt(t){return t}function vt(t,e){const r=Object.create(null);for(const i of t)r[e(i)]=i;return r}function bt(t,e,r){const i=Object.create(null);for(const n of t)i[e(n)]=r(n);return i}function wt(t,e){const r=Object.create(null);for(const i of Object.keys(t))r[i]=e(t[i],i);return r}function Bt(t,e){let r=0,i=0;for(;r<t.length&&i<e.length;){let n=t.charCodeAt(r),s=e.charCodeAt(i);if(Ct(n)&&Ct(s)){let o=0;do{++r,o=10*o+n-xt,n=t.charCodeAt(r)}while(Ct(n)&&o>0);let a=0;do{++i,a=10*a+s-xt,s=e.charCodeAt(i)}while(Ct(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(n<s)return-1;if(n>s)return 1;++r,++i}}return t.length-e.length}const xt=48;function Ct(t){return!isNaN(t)&&xt<=t&&t<=57}function Et(t,e){const r=Object.create(null),i=new St(t),n=Math.floor(.4*t.length)+1;for(const t of e){const e=i.measure(t,n);void 0!==e&&(r[t]=e)}return Object.keys(r).sort((t,e)=>{const i=r[t]-r[e];return 0!==i?i:Bt(t,e)})}class St{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Ft(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,e){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Ft(r),n=this._inputArray;if(i.length<n.length){const t=i;i=n,n=t}const s=i.length,o=n.length;if(s-o>e)return;const a=this._rows;for(let t=0;t<=o;t++)a[0][t]=t;for(let t=1;t<=s;t++){const r=a[(t-1)%3],s=a[t%3];let A=s[0]=t;for(let e=1;e<=o;e++){const o=i[t-1]===n[e-1]?0:1;let l=Math.min(r[e]+1,s[e-1]+1,r[e-1]+o);if(t>1&&e>1&&i[t-1]===n[e-2]&&i[t-2]===n[e-1]){const r=a[(t-2)%3][e-2];l=Math.min(l,r+1)}l<A&&(A=l),s[e]=l}if(A>e)return}const A=a[s%3][o];return A<=e?A:void 0}}function Ft(t){const e=t.length,r=new Array(e);for(let i=0;i<e;++i)r[i]=t.charCodeAt(i);return r}function Tt(t){if(null==t)return Object.create(null);if(null===Object.getPrototypeOf(t))return t;const e=Object.create(null);for(const[r,i]of Object.entries(t))e[r]=i;return e}const It=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _t(t){return kt[t.charCodeAt(0)]}const kt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Lt=Object.freeze({});function Pt(t,e,r=w){const i=new Map;for(const t of Object.values(S))i.set(t,Dt(e,t));let n,o,a,A=Array.isArray(t),l=[t],h=-1,c=[],u=t;const p=[],d=[];do{h++;const t=h===l.length,y=t&&0!==c.length;if(t){if(o=0===d.length?void 0:p[p.length-1],u=a,a=d.pop(),y)if(A){u=u.slice();let t=0;for(const[e,r]of c){const i=e-t;null===r?(u.splice(i,1),t++):u[i]=r}}else{u={...u};for(const[t,e]of c)u[t]=e}h=n.index,l=n.keys,c=n.edits,A=n.inArray,n=n.prev}else if(a){if(o=A?h:l[h],u=a[o],null==u)continue;p.push(o)}let v;if(!Array.isArray(u)){var f,g;x(u)||s(!1,`Invalid AST Node: ${nt(u)}.`);const r=t?null===(f=i.get(u.kind))||void 0===f?void 0:f.leave:null===(g=i.get(u.kind))||void 0===g?void 0:g.enter;if(v=null==r?void 0:r.call(e,u,o,a,p,d),v===Lt)break;if(!1===v){if(!t){p.pop();continue}}else if(void 0!==v&&(c.push([o,v]),!t)){if(!x(v)){p.pop();continue}u=v}}var m;void 0===v&&y&&c.push([o,u]),t?p.pop():(n={inArray:A,index:h,keys:l,edits:c,prev:n},A=Array.isArray(u),l=A?u:null!==(m=r[u.kind])&&void 0!==m?m:[],h=-1,c=[],a&&d.push(a),a=u)}while(void 0!==n);return 0!==c.length?c[c.length-1][1]:t}function Nt(t){const e=new Array(t.length).fill(null),r=Object.create(null);for(const i of Object.values(S)){let n=!1;const s=new Array(t.length).fill(void 0),o=new Array(t.length).fill(void 0);for(let e=0;e<t.length;++e){const{enter:r,leave:a}=Dt(t[e],i);n||(n=null!=r||null!=a),s[e]=r,o[e]=a}if(!n)continue;const a={enter(...r){const i=r[0];for(let o=0;o<t.length;o++)if(null===e[o]){var n;const a=null===(n=s[o])||void 0===n?void 0:n.apply(t[o],r);if(!1===a)e[o]=i;else if(a===Lt)e[o]=Lt;else if(void 0!==a)return a}},leave(...r){const i=r[0];for(let s=0;s<t.length;s++)if(null===e[s]){var n;const i=null===(n=o[s])||void 0===n?void 0:n.apply(t[s],r);if(i===Lt)e[s]=Lt;else if(void 0!==i&&!1!==i)return i}else e[s]===i&&(e[s]=null)}};r[i]=a}return r}function Dt(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function Mt(t,e,r){const{enter:i,leave:n}=Dt(t,e);return r?n:i}function Ot(t){return Pt(t,Ut)}const Ut={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Qt(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=Vt(t.variableDefinitions)?Ht("(\n",Qt(t.variableDefinitions,"\n"),"\n)"):Ht("(",Qt(t.variableDefinitions,", "),")"),r=Ht("",t.description,"\n")+Qt([t.operation,Qt([t.name,e]),Qt(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:i,description:n})=>Ht("",n,"\n")+t+": "+e+Ht(" = ",r)+Ht(" ",Qt(i," "))},SelectionSet:{leave:({selections:t})=>Rt(t)},Field:{leave({alias:t,name:e,arguments:r,directives:i,selectionSet:n}){const s=Ht("",t,": ")+e;let o=s+Ht("(",Qt(r,", "),")");return o.length>80&&(o=s+Ht("(\n",jt(Qt(r,"\n")),"\n)")),Qt([o,Qt(i," "),n]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+Ht(" ",Qt(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Qt(["...",Ht("on ",t),Qt(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>Ht("",s,"\n")+`fragment ${t}${Ht("(",Qt(r,", "),")")} `+`on ${e} ${Ht("",Qt(i," ")," ")}`+n},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?M(t):`"${t.replace(It,_t)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Qt(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Qt(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+Ht("(",Qt(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>Ht("",t,"\n")+Qt(["schema",Qt(e," "),Rt(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>Ht("",t,"\n")+Qt(["scalar",e,Qt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>Ht("",t,"\n")+Qt(["type",e,Ht("implements ",Qt(r," & ")),Qt(i," "),Rt(n)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:i,directives:n})=>Ht("",t,"\n")+e+(Vt(r)?Ht("(\n",jt(Qt(r,"\n")),"\n)"):Ht("(",Qt(r,", "),")"))+": "+i+Ht(" ",Qt(n," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:i,directives:n})=>Ht("",t,"\n")+Qt([e+": "+r,Ht("= ",i),Qt(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:i,fields:n})=>Ht("",t,"\n")+Qt(["interface",e,Ht("implements ",Qt(r," & ")),Qt(i," "),Rt(n)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:i})=>Ht("",t,"\n")+Qt(["union",e,Qt(r," "),Ht("= ",Qt(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:i})=>Ht("",t,"\n")+Qt(["enum",e,Qt(r," "),Rt(i)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>Ht("",t,"\n")+Qt([e,Qt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:i})=>Ht("",t,"\n")+Qt(["input",e,Qt(r," "),Rt(i)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,directives:i,repeatable:n,locations:s})=>Ht("",t,"\n")+"directive @"+e+(Vt(r)?Ht("(\n",jt(Qt(r,"\n")),"\n)"):Ht("(",Qt(r,", "),")"))+Ht(" ",Qt(i," "))+(n?" repeatable":"")+" on "+Qt(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Qt(["extend schema",Qt(t," "),Rt(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Qt(["extend scalar",t,Qt(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>Qt(["extend type",t,Ht("implements ",Qt(e," & ")),Qt(r," "),Rt(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:i})=>Qt(["extend interface",t,Ht("implements ",Qt(e," & ")),Qt(r," "),Rt(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>Qt(["extend union",t,Qt(e," "),Ht("= ",Qt(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>Qt(["extend enum",t,Qt(e," "),Rt(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>Qt(["extend input",t,Qt(e," "),Rt(r)]," ")},DirectiveExtension:{leave:({name:t,directives:e})=>Qt(["extend directive @"+t,Qt(e," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>Qt([t,Ht(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:r})=>Qt([t,Ht(".",e),Ht("(",r,":)")])},DirectiveCoordinate:{leave:({name:t})=>Qt(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>Qt(["@",t,Ht("(",e,":)")])}};function Qt(t,e=""){var r;return null!==(r=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==r?r:""}function Rt(t){return Ht("{\n",jt(Qt(t,"\n")),"\n}")}function Ht(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function jt(t){return Ht("  ",t.replace(/\n/g,"\n  "))}function Vt(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}function Gt(t,e){switch(t.kind){case S.NULL:return null;case S.INT:return parseInt(t.value,10);case S.FLOAT:return parseFloat(t.value);case S.STRING:case S.ENUM:case S.BOOLEAN:return t.value;case S.LIST:return t.values.map(t=>Gt(t,e));case S.OBJECT:return bt(t.fields,t=>t.name.value,t=>Gt(t.value,e));case S.VARIABLE:return null==e?void 0:e[t.name.value]}}function zt(t){if(null!=t||s(!1,"Must provide name."),"string"==typeof t||s(!1,"Expected name to be a string."),0===t.length)throw new d("Expected name to be a non-empty string.");for(let e=1;e<t.length;++e)if(!L(t.charCodeAt(e)))throw new d(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!k(t.charCodeAt(0)))throw new d(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function Kt(t){if("true"===t||"false"===t||"null"===t)throw new d(`Enum values cannot be named: ${t}`);return zt(t)}function Wt(t){return Xt(t)||$t(t)||Zt(t)||ee(t)||ie(t)||se(t)||ae(t)||le(t)}function Yt(t){if(!Wt(t))throw new Error(`Expected ${nt(t)} to be a GraphQL type.`);return t}function Xt(t){return ot(t,Pe)}function qt(t){if(!Xt(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Scalar type.`);return t}function $t(t){return ot(t,Ne)}function Jt(t){if(!$t(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Object type.`);return t}function Zt(t){return ot(t,je)}function te(t){if(!Zt(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Interface type.`);return t}function ee(t){return ot(t,Ve)}function re(t){if(!ee(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Union type.`);return t}function ie(t){return ot(t,ze)}function ne(t){if(!ie(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Enum type.`);return t}function se(t){return ot(t,Ye)}function oe(t){if(!se(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Input Object type.`);return t}function ae(t){return ot(t,we)}function Ae(t){if(!ae(t))throw new Error(`Expected ${nt(t)} to be a GraphQL List type.`);return t}function le(t){return ot(t,Be)}function he(t){if(!le(t))throw new Error(`Expected ${nt(t)} to be a GraphQL Non-Null type.`);return t}function ce(t){return Xt(t)||ie(t)||se(t)||xe(t)&&ce(t.ofType)}function ue(t){if(!ce(t))throw new Error(`Expected ${nt(t)} to be a GraphQL input type.`);return t}function pe(t){return Xt(t)||$t(t)||Zt(t)||ee(t)||ie(t)||xe(t)&&pe(t.ofType)}function de(t){if(!pe(t))throw new Error(`Expected ${nt(t)} to be a GraphQL output type.`);return t}function fe(t){return Xt(t)||ie(t)}function ge(t){if(!fe(t))throw new Error(`Expected ${nt(t)} to be a GraphQL leaf type.`);return t}function me(t){return $t(t)||Zt(t)||ee(t)}function ye(t){if(!me(t))throw new Error(`Expected ${nt(t)} to be a GraphQL composite type.`);return t}function ve(t){return Zt(t)||ee(t)}function be(t){if(!ve(t))throw new Error(`Expected ${nt(t)} to be a GraphQL abstract type.`);return t}class we{constructor(t){Wt(t)||s(!1,`Expected ${nt(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Be{constructor(t){Ee(t)||s(!1,`Expected ${nt(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function xe(t){return ae(t)||le(t)}function Ce(t){if(!xe(t))throw new Error(`Expected ${nt(t)} to be a GraphQL wrapping type.`);return t}function Ee(t){return Wt(t)&&!le(t)}function Se(t){if(!Ee(t))throw new Error(`Expected ${nt(t)} to be a GraphQL nullable type.`);return t}function Fe(t){if(t)return le(t)?t.ofType:t}function Te(t){return Xt(t)||$t(t)||Zt(t)||ee(t)||ie(t)||se(t)}function Ie(t){if(!Te(t))throw new Error(`Expected ${nt(t)} to be a GraphQL named type.`);return t}function _e(t){if(t){let e=t;for(;xe(e);)e=e.ofType;return e}}function ke(t){return"function"==typeof t?t():t}function Le(t){return"function"==typeof t?t():t}class Pe{constructor(t){var e,r,i,n;const o=null!==(e=t.parseValue)&&void 0!==e?e:yt;this.name=zt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=null!==(r=t.serialize)&&void 0!==r?r:yt,this.parseValue=o,this.parseLiteral=null!==(i=t.parseLiteral)&&void 0!==i?i:(t,e)=>o(Gt(t,e)),this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],null==t.specifiedByURL||"string"==typeof t.specifiedByURL||s(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${nt(t.specifiedByURL)}.`),null==t.serialize||"function"==typeof t.serialize||s(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||s(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ne{constructor(t){var e;this.name=zt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=()=>Me(t),this._interfaces=()=>De(t),null==t.isTypeOf||"function"==typeof t.isTypeOf||s(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${nt(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Qe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function De(t){var e;const r=ke(null!==(e=t.interfaces)&&void 0!==e?e:[]);return Array.isArray(r)||s(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),r}function Me(t){const e=Le(t.fields);return Ue(e)||s(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),wt(e,(e,r)=>{var i;Ue(e)||s(!1,`${t.name}.${r} field config must be an object.`),null==e.resolve||"function"==typeof e.resolve||s(!1,`${t.name}.${r} field resolver must be a function if provided, but got: ${nt(e.resolve)}.`);const n=null!==(i=e.args)&&void 0!==i?i:{};return Ue(n)||s(!1,`${t.name}.${r} args must be an object with argument names as keys.`),{name:zt(r),description:e.description,type:e.type,args:Oe(n),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:Tt(e.extensions),astNode:e.astNode}})}function Oe(t){return Object.entries(t).map(([t,e])=>({name:zt(t),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Tt(e.extensions),astNode:e.astNode}))}function Ue(t){return a(t)&&!Array.isArray(t)}function Qe(t){return wt(t,t=>({description:t.description,type:t.type,args:Re(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Re(t){return bt(t,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function He(t){return le(t.type)&&void 0===t.defaultValue}class je{constructor(t){var e;this.name=zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=Me.bind(void 0,t),this._interfaces=De.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${nt(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Qe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ve{constructor(t){var e;this.name=zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._types=Ge.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${nt(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ge(t){const e=ke(t.types);return Array.isArray(e)||s(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class ze{constructor(t){var e;this.name=zt(t.name),this.description=t.description,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._values="function"==typeof t.values?t.values:We(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=We(this.name,this._values())),this._values}getValue(t){return null===this._nameLookup&&(this._nameLookup=vt(this.getValues(),t=>t.name)),this._nameLookup[t]}serialize(t){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(t=>[t.value,t])));const e=this._valueLookup.get(t);if(void 0===e)throw new d(`Enum "${this.name}" cannot represent value: ${nt(t)}`);return e.name}parseValue(t){if("string"!=typeof t){const e=nt(t);throw new d(`Enum "${this.name}" cannot represent non-string value: ${e}.`+Ke(this,e))}const e=this.getValue(t);if(null==e)throw new d(`Value "${t}" does not exist in "${this.name}" enum.`+Ke(this,t));return e.value}parseLiteral(t,e){if(t.kind!==S.ENUM){const e=Ot(t);throw new d(`Enum "${this.name}" cannot represent non-enum value: ${e}.`+Ke(this,e),{nodes:t})}const r=this.getValue(t.value);if(null==r){const e=Ot(t);throw new d(`Value "${e}" does not exist in "${this.name}" enum.`+Ke(this,e),{nodes:t})}return r.value}toConfig(){const t=bt(this.getValues(),t=>t.name,t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ke(t,e){return mt("the enum value",Et(e,t.getValues().map(t=>t.name)))}function We(t,e){return Ue(e)||s(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([e,r])=>(Ue(r)||s(!1,`${t}.${e} must refer to an object with a "value" key representing an internal value but got: ${nt(r)}.`),{name:Kt(e),description:r.description,value:void 0!==r.value?r.value:e,deprecationReason:r.deprecationReason,extensions:Tt(r.extensions),astNode:r.astNode}))}class Ye{constructor(t){var e,r;this.name=zt(t.name),this.description=t.description,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this.isOneOf=null!==(r=t.isOneOf)&&void 0!==r&&r,this._fields=Xe.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const t=wt(this.getFields(),t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Xe(t){const e=Le(t.fields);return Ue(e)||s(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),wt(e,(e,r)=>(!("resolve"in e)||s(!1,`${t.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:zt(r),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Tt(e.extensions),astNode:e.astNode}))}function qe(t){return le(t.type)&&void 0===t.defaultValue}function $e(t,e){return t===e||(le(t)&&le(e)||!(!ae(t)||!ae(e)))&&$e(t.ofType,e.ofType)}function Je(t,e,r){return e===r||(le(r)?!!le(e)&&Je(t,e.ofType,r.ofType):le(e)?Je(t,e.ofType,r):ae(r)?!!ae(e)&&Je(t,e.ofType,r.ofType):!ae(e)&&ve(r)&&(Zt(e)||$t(e))&&t.isSubType(r,e))}function Ze(t,e,r){return e===r||(ve(e)?ve(r)?t.getPossibleTypes(e).some(e=>t.isSubType(r,e)):t.isSubType(e,r):!!ve(r)&&t.isSubType(r,e))}const tr=2147483647,er=-2147483648,rr=new Pe({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=lr(t);if("boolean"==typeof e)return e?1:0;let r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),"number"!=typeof r||!Number.isInteger(r))throw new d(`Int cannot represent non-integer value: ${nt(e)}`);if(r>tr||r<er)throw new d("Int cannot represent non 32-bit signed integer value: "+nt(e));return r},parseValue(t){if("number"!=typeof t||!Number.isInteger(t))throw new d(`Int cannot represent non-integer value: ${nt(t)}`);if(t>tr||t<er)throw new d(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==S.INT)throw new d(`Int cannot represent non-integer value: ${Ot(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>tr||e<er)throw new d(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),ir=new Pe({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(t){const e=lr(t);if("boolean"==typeof e)return e?1:0;let r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),"number"!=typeof r||!Number.isFinite(r))throw new d(`Float cannot represent non numeric value: ${nt(e)}`);return r},parseValue(t){if("number"!=typeof t||!Number.isFinite(t))throw new d(`Float cannot represent non numeric value: ${nt(t)}`);return t},parseLiteral(t){if(t.kind!==S.FLOAT&&t.kind!==S.INT)throw new d(`Float cannot represent non numeric value: ${Ot(t)}`,t);return parseFloat(t.value)}}),nr=new Pe({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(t){const e=lr(t);if("string"==typeof e)return e;if("boolean"==typeof e)return e?"true":"false";if("number"==typeof e&&Number.isFinite(e))return e.toString();throw new d(`String cannot represent value: ${nt(t)}`)},parseValue(t){if("string"!=typeof t)throw new d(`String cannot represent a non string value: ${nt(t)}`);return t},parseLiteral(t){if(t.kind!==S.STRING)throw new d(`String cannot represent a non string value: ${Ot(t)}`,{nodes:t});return t.value}}),sr=new Pe({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=lr(t);if("boolean"==typeof e)return e;if(Number.isFinite(e))return 0!==e;throw new d(`Boolean cannot represent a non boolean value: ${nt(e)}`)},parseValue(t){if("boolean"!=typeof t)throw new d(`Boolean cannot represent a non boolean value: ${nt(t)}`);return t},parseLiteral(t){if(t.kind!==S.BOOLEAN)throw new d(`Boolean cannot represent a non boolean value: ${Ot(t)}`,{nodes:t});return t.value}}),or=new Pe({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(t){const e=lr(t);if("string"==typeof e)return e;if(Number.isInteger(e))return String(e);throw new d(`ID cannot represent value: ${nt(t)}`)},parseValue(t){if("string"==typeof t)return t;if("number"==typeof t&&Number.isInteger(t))return t.toString();throw new d(`ID cannot represent value: ${nt(t)}`)},parseLiteral(t){if(t.kind!==S.STRING&&t.kind!==S.INT)throw new d("ID cannot represent a non-string and non-integer value: "+Ot(t),{nodes:t});return t.value}}),ar=Object.freeze([nr,rr,ir,sr,or]);function Ar(t){return ar.some(({name:e})=>t.name===e)}function lr(t){if(a(t)){if("function"==typeof t.valueOf){const e=t.valueOf();if(!a(e))return e}if("function"==typeof t.toJSON)return t.toJSON()}return t}function hr(t){return ot(t,ur)}function cr(t){if(!hr(t))throw new Error(`Expected ${nt(t)} to be a GraphQL directive.`);return t}class ur{constructor(t){var e,r,i;this.name=zt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(e=t.isRepeatable)&&void 0!==e&&e,this.deprecationReason=t.deprecationReason,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(r=t.extensionASTNodes)&&void 0!==r?r:[],Array.isArray(t.locations)||s(!1,`@${t.name} locations must be an Array.`);const n=null!==(i=t.args)&&void 0!==i?i:{};a(n)&&!Array.isArray(n)||s(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Oe(n)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Re(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pr=new ur({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[E.FIELD,E.FRAGMENT_SPREAD,E.INLINE_FRAGMENT],args:{if:{type:new Be(sr),description:"Included when true."}}}),dr=new ur({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[E.FIELD,E.FRAGMENT_SPREAD,E.INLINE_FRAGMENT],args:{if:{type:new Be(sr),description:"Skipped when true."}}}),fr="No longer supported",gr=new ur({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[E.FIELD_DEFINITION,E.ARGUMENT_DEFINITION,E.INPUT_FIELD_DEFINITION,E.ENUM_VALUE,E.DIRECTIVE_DEFINITION],args:{reason:{type:nr,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:fr}}}),mr=new ur({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[E.SCALAR],args:{url:{type:new Be(nr),description:"The URL that specifies the behavior of this scalar."}}}),yr=new ur({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[E.INPUT_OBJECT],args:{}}),vr=Object.freeze([pr,dr,gr,mr,yr]);function br(t){return vr.some(({name:e})=>e===t.name)}function wr(t){return"object"==typeof t&&"function"==typeof(null==t?void 0:t[Symbol.iterator])}function Br(t,e){if(le(e)){const r=Br(t,e.ofType);return(null==r?void 0:r.kind)===S.NULL?null:r}if(null===t)return{kind:S.NULL};if(void 0===t)return null;if(ae(e)){const r=e.ofType;if(wr(t)){const e=[];for(const i of t){const t=Br(i,r);null!=t&&e.push(t)}return{kind:S.LIST,values:e}}return Br(t,r)}if(se(e)){if(!a(t))return null;const r=[];for(const i of Object.values(e.getFields())){const e=Br(t[i.name],i.type);e&&r.push({kind:S.OBJECT_FIELD,name:{kind:S.NAME,value:i.name},value:e})}return{kind:S.OBJECT,fields:r}}if(fe(e)){const r=e.serialize(t);if(null==r)return null;if("boolean"==typeof r)return{kind:S.BOOLEAN,value:r};if("number"==typeof r&&Number.isFinite(r)){const t=String(r);return xr.test(t)?{kind:S.INT,value:t}:{kind:S.FLOAT,value:t}}if("string"==typeof r)return ie(e)?{kind:S.ENUM,value:r}:e===or&&xr.test(r)?{kind:S.INT,value:r}:{kind:S.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${nt(r)}.`)}A(!1,"Unexpected input type: "+nt(e))}const xr=/^-?(?:0|[1-9][0-9]*)$/,Cr=new Ne({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:nr,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new Be(new we(new Be(Fr))),resolve:t=>Object.values(t.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Be(Fr),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Fr,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Fr,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Be(new we(new Be(Er))),args:{includeDeprecated:{type:new Be(sr),defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.getDirectives():t.getDirectives().filter(t=>null==t.deprecationReason)}})}),Er=new Ne({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Be(nr),resolve:t=>t.name},description:{type:nr,resolve:t=>t.description},isRepeatable:{type:new Be(sr),resolve:t=>t.isRepeatable},locations:{type:new Be(new we(new Be(Sr))),resolve:t=>t.locations},args:{type:new Be(new we(new Be(Ir))),args:{includeDeprecated:{type:sr,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter(t=>null==t.deprecationReason)},isDeprecated:{type:new Be(sr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:nr,resolve:t=>t.deprecationReason}})}),Sr=new ze({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:E.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:E.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:E.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:E.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:E.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:E.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:E.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:E.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:E.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:E.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:E.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:E.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:E.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:E.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:E.UNION,description:"Location adjacent to a union definition."},ENUM:{value:E.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:E.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:E.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:E.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),Fr=new Ne({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Be(Lr),resolve:t=>Xt(t)?kr.SCALAR:$t(t)?kr.OBJECT:Zt(t)?kr.INTERFACE:ee(t)?kr.UNION:ie(t)?kr.ENUM:se(t)?kr.INPUT_OBJECT:ae(t)?kr.LIST:le(t)?kr.NON_NULL:void A(!1,`Unexpected type: "${nt(t)}".`)},name:{type:nr,resolve:t=>"name"in t?t.name:void 0},description:{type:nr,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:nr,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new we(new Be(Tr)),args:{includeDeprecated:{type:sr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if($t(t)||Zt(t)){const r=Object.values(t.getFields());return e?r:r.filter(t=>null==t.deprecationReason)}}},interfaces:{type:new we(new Be(Fr)),resolve(t){if($t(t)||Zt(t))return t.getInterfaces()}},possibleTypes:{type:new we(new Be(Fr)),resolve(t,e,r,{schema:i}){if(ve(t))return i.getPossibleTypes(t)}},enumValues:{type:new we(new Be(_r)),args:{includeDeprecated:{type:sr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(ie(t)){const r=t.getValues();return e?r:r.filter(t=>null==t.deprecationReason)}}},inputFields:{type:new we(new Be(Ir)),args:{includeDeprecated:{type:sr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(se(t)){const r=Object.values(t.getFields());return e?r:r.filter(t=>null==t.deprecationReason)}}},ofType:{type:Fr,resolve:t=>"ofType"in t?t.ofType:void 0},isOneOf:{type:sr,resolve:t=>{if(se(t))return t.isOneOf}}})}),Tr=new Ne({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Be(nr),resolve:t=>t.name},description:{type:nr,resolve:t=>t.description},args:{type:new Be(new we(new Be(Ir))),args:{includeDeprecated:{type:sr,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter(t=>null==t.deprecationReason)},type:{type:new Be(Fr),resolve:t=>t.type},isDeprecated:{type:new Be(sr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:nr,resolve:t=>t.deprecationReason}})}),Ir=new Ne({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Be(nr),resolve:t=>t.name},description:{type:nr,resolve:t=>t.description},type:{type:new Be(Fr),resolve:t=>t.type},defaultValue:{type:nr,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:r}=t,i=Br(r,e);return i?Ot(i):null}},isDeprecated:{type:new Be(sr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:nr,resolve:t=>t.deprecationReason}})}),_r=new Ne({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Be(nr),resolve:t=>t.name},description:{type:nr,resolve:t=>t.description},isDeprecated:{type:new Be(sr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:nr,resolve:t=>t.deprecationReason}})});var kr;!function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"}(kr||(kr={}));const Lr=new ze({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:kr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:kr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:kr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:kr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:kr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:kr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:kr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:kr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Pr={name:"__schema",type:new Be(Cr),description:"Access the current type schema of this server.",args:[],resolve:(t,e,r,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nr={name:"__type",type:Fr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Be(nr),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},r,{schema:i})=>i.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Dr={name:"__typename",type:new Be(nr),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,r,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Mr=Object.freeze([Cr,Er,Sr,Fr,Tr,Ir,_r,Lr]);function Or(t){return Mr.some(({name:e})=>t.name===e)}function Ur(t){return ot(t,Rr)}function Qr(t){if(!Ur(t))throw new Error(`Expected ${nt(t)} to be a GraphQL schema.`);return t}class Rr{constructor(t){var e,r;this.__validationErrors=!0===t.assumeValid?[]:void 0,a(t)||s(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||s(!1,`"types" must be Array if provided but got: ${nt(t.types)}.`),!t.directives||Array.isArray(t.directives)||s(!1,`"directives" must be Array if provided but got: ${nt(t.directives)}.`),this.description=t.description,this.extensions=Tt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(r=t.directives)&&void 0!==r?r:vr;const i=new Set(t.types);if(null!=t.types)for(const e of t.types)i.delete(e),Hr(e,i);null!=this._queryType&&Hr(this._queryType,i),null!=this._mutationType&&Hr(this._mutationType,i),null!=this._subscriptionType&&Hr(this._subscriptionType,i);for(const t of this._directives)if(hr(t))for(const e of t.args)Hr(e.type,i);Hr(Cr,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const t of i){if(null==t)continue;const e=t.name;if(e||s(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=t,Zt(t)){for(const e of t.getInterfaces())if(Zt(e)){let r=this._implementationsMap[e.name];void 0===r&&(r=this._implementationsMap[e.name]={objects:[],interfaces:[]}),r.interfaces.push(t)}}else if($t(t))for(const e of t.getInterfaces())if(Zt(e)){let r=this._implementationsMap[e.name];void 0===r&&(r=this._implementationsMap[e.name]={objects:[],interfaces:[]}),r.objects.push(t)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case C.QUERY:return this.getQueryType();case C.MUTATION:return this.getMutationType();case C.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return ee(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const e=this._implementationsMap[t.name];return null!=e?e:{objects:[],interfaces:[]}}isSubType(t,e){let r=this._subTypeMap[t.name];if(void 0===r){if(r=Object.create(null),ee(t))for(const e of t.getTypes())r[e.name]=!0;else{const e=this.getImplementations(t);for(const t of e.objects)r[t.name]=!0;for(const t of e.interfaces)r[t.name]=!0}this._subTypeMap[t.name]=r}return void 0!==r[e.name]}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(e=>e.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Hr(t,e){const r=_e(t);if(!e.has(r))if(e.add(r),ee(r))for(const t of r.getTypes())Hr(t,e);else if($t(r)||Zt(r)){for(const t of r.getInterfaces())Hr(t,e);for(const t of Object.values(r.getFields())){Hr(t.type,e);for(const r of t.args)Hr(r.type,e)}}else if(se(r))for(const t of Object.values(r.getFields()))Hr(t.type,e);return e}function jr(t){if(Qr(t),t.__validationErrors)return t.__validationErrors;const e=new Gr(t);!function(t){const e=t.schema,r=e.getQueryType();if(r){if(!$t(r)){var i;t.reportError(`Query root type must be Object type, it cannot be ${nt(r)}.`,null!==(i=zr(e,C.QUERY))&&void 0!==i?i:r.astNode)}}else t.reportError("Query root type must be provided.",e.astNode);const n=e.getMutationType();var s;n&&!$t(n)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${nt(n)}.`,null!==(s=zr(e,C.MUTATION))&&void 0!==s?s:n.astNode);const o=e.getSubscriptionType();var a;o&&!$t(o)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${nt(o)}.`,null!==(a=zr(e,C.SUBSCRIPTION))&&void 0!==a?a:o.astNode)}(e),function(t){for(const r of t.schema.getDirectives())if(hr(r)){Kr(t,r),0===r.locations.length&&t.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const i of r.args){var e;Kr(t,i),ce(i.type)||t.reportError(`The type of @${r.name}(${i.name}:) must be Input Type but got: ${nt(i.type)}.`,i.astNode),He(i)&&null!=i.deprecationReason&&t.reportError(`Required argument @${r.name}(${i.name}:) cannot be deprecated.`,[ii(i.astNode),null===(e=i.astNode)||void 0===e?void 0:e.type])}}else t.reportError(`Expected directive but got: ${nt(r)}.`,null==r?void 0:r.astNode)}(e),function(t){const e=function(t){const e=Object.create(null),r=[],i=Object.create(null);return function n(s){if(e[s.name])return;e[s.name]=!0,i[s.name]=r.length;const o=Object.values(s.getFields());for(const e of o)if(le(e.type)&&se(e.type.ofType)){const s=e.type.ofType,o=i[s.name];if(r.push(e),void 0===o)n(s);else{const e=r.slice(o),i=e.map(t=>t.name).join(".");t.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${i}".`,e.map(t=>t.astNode))}r.pop()}i[s.name]=void 0}}(t),r=t.schema.getTypeMap();for(const i of Object.values(r))Te(i)?(Or(i)||Kr(t,i),$t(i)||Zt(i)?(Wr(t,i),Yr(t,i)):ee(i)?$r(t,i):ie(i)?Jr(t,i):se(i)&&(Zr(t,i),e(i))):t.reportError(`Expected GraphQL named type but got: ${nt(i)}.`,i.astNode)}(e);const r=e.getErrors();return t.__validationErrors=r,r}function Vr(t){const e=jr(t);if(0!==e.length)throw new Error(e.map(t=>t.message).join("\n\n"))}class Gr{constructor(t){this._errors=[],this.schema=t}reportError(t,e){const r=Array.isArray(e)?e.filter(Boolean):e;this._errors.push(new d(t,{nodes:r}))}getErrors(){return this._errors}}function zr(t,e){var r;return null===(r=[t.astNode,...t.extensionASTNodes].flatMap(t=>{var e;return null!==(e=null==t?void 0:t.operationTypes)&&void 0!==e?e:[]}).find(t=>t.operation===e))||void 0===r?void 0:r.type}function Kr(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function Wr(t,e){const r=Object.values(e.getFields());0===r.length&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const o of r){var i;Kr(t,o),pe(o.type)||t.reportError(`The type of ${e.name}.${o.name} must be Output Type but got: ${nt(o.type)}.`,null===(i=o.astNode)||void 0===i?void 0:i.type);for(const r of o.args){const i=r.name;var n,s;Kr(t,r),ce(r.type)||t.reportError(`The type of ${e.name}.${o.name}(${i}:) must be Input Type but got: ${nt(r.type)}.`,null===(n=r.astNode)||void 0===n?void 0:n.type),He(r)&&null!=r.deprecationReason&&t.reportError(`Required argument ${e.name}.${o.name}(${i}:) cannot be deprecated.`,[ii(r.astNode),null===(s=r.astNode)||void 0===s?void 0:s.type])}}}function Yr(t,e){const r=Object.create(null);for(const i of e.getInterfaces())Zt(i)?e!==i?r[i.name]?t.reportError(`Type ${e.name} can only implement ${i.name} once.`,ei(e,i)):(r[i.name]=!0,qr(t,e,i),Xr(t,e,i)):t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,ei(e,i)):t.reportError(`Type ${nt(e)} must only implement Interface types, it cannot implement ${nt(i)}.`,ei(e,i))}function Xr(t,e,r){const i=e.getFields();for(const A of Object.values(r.getFields())){const l=A.name,h=i[l];if(h){var n,s;Je(t.schema,h.type,A.type)||t.reportError(`Interface field ${r.name}.${l} expects type ${nt(A.type)} but ${e.name}.${l} is type ${nt(h.type)}.`,[null===(n=A.astNode)||void 0===n?void 0:n.type,null===(s=h.astNode)||void 0===s?void 0:s.type]);for(const i of A.args){const n=i.name,s=h.args.find(t=>t.name===n);var o,a;s?$e(i.type,s.type)||t.reportError(`Interface field argument ${r.name}.${l}(${n}:) expects type ${nt(i.type)} but ${e.name}.${l}(${n}:) is type ${nt(s.type)}.`,[null===(o=i.astNode)||void 0===o?void 0:o.type,null===(a=s.astNode)||void 0===a?void 0:a.type]):t.reportError(`Interface field argument ${r.name}.${l}(${n}:) expected but ${e.name}.${l} does not provide it.`,[i.astNode,h.astNode])}for(const i of h.args){const n=i.name;!A.args.find(t=>t.name===n)&&He(i)&&t.reportError(`Object field ${e.name}.${l} includes required argument ${n} that is missing from the Interface field ${r.name}.${l}.`,[i.astNode,A.astNode])}}else t.reportError(`Interface field ${r.name}.${l} expected but ${e.name} does not provide it.`,[A.astNode,e.astNode,...e.extensionASTNodes])}}function qr(t,e,r){const i=e.getInterfaces();for(const n of r.getInterfaces())i.includes(n)||t.reportError(n===e?`Type ${e.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${e.name} must implement ${n.name} because it is implemented by ${r.name}.`,[...ei(r,n),...ei(e,r)])}function $r(t,e){const r=e.getTypes();0===r.length&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const i=Object.create(null);for(const n of r)i[n.name]?t.reportError(`Union type ${e.name} can only include type ${n.name} once.`,ri(e,n.name)):(i[n.name]=!0,$t(n)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${nt(n)}.`,ri(e,String(n))))}function Jr(t,e){const r=e.getValues();0===r.length&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const e of r)Kr(t,e)}function Zr(t,e){const r=Object.values(e.getFields());0===r.length&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const s of r){var i,n;Kr(t,s),ce(s.type)||t.reportError(`The type of ${e.name}.${s.name} must be Input Type but got: ${nt(s.type)}.`,null===(i=s.astNode)||void 0===i?void 0:i.type),qe(s)&&null!=s.deprecationReason&&t.reportError(`Required input field ${e.name}.${s.name} cannot be deprecated.`,[ii(s.astNode),null===(n=s.astNode)||void 0===n?void 0:n.type]),e.isOneOf&&ti(e,s,t)}}function ti(t,e,r){var i;le(e.type)&&r.reportError(`OneOf input field ${t.name}.${e.name} must be nullable.`,null===(i=e.astNode)||void 0===i?void 0:i.type),void 0!==e.defaultValue&&r.reportError(`OneOf input field ${t.name}.${e.name} cannot have a default value.`,e.astNode)}function ei(t,e){const{astNode:r,extensionASTNodes:i}=t;return(null!=r?[r,...i]:i).flatMap(t=>{var e;return null!==(e=t.interfaces)&&void 0!==e?e:[]}).filter(t=>t.name.value===e.name)}function ri(t,e){const{astNode:r,extensionASTNodes:i}=t;return(null!=r?[r,...i]:i).flatMap(t=>{var e;return null!==(e=t.types)&&void 0!==e?e:[]}).filter(t=>t.name.value===e)}function ii(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e.find(t=>t.name.value===gr.name)}function ni(t,e){switch(e.kind){case S.LIST_TYPE:{const r=ni(t,e.type);return r&&new we(r)}case S.NON_NULL_TYPE:{const r=ni(t,e.type);return r&&new Be(r)}case S.NAMED_TYPE:return t.getType(e.name.value)}}class si{constructor(t,e,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=r?r:oi,e&&(ce(e)&&this._inputTypeStack.push(e),me(e)&&this._parentTypeStack.push(e),pe(e)&&this._typeStack.push(e))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const e=this._schema;switch(t.kind){case S.SELECTION_SET:{const t=_e(this.getType());this._parentTypeStack.push(me(t)?t:void 0);break}case S.FIELD:{const r=this.getParentType();let i,n;r&&(i=this._getFieldDef(e,r,t),i&&(n=i.type)),this._fieldDefStack.push(i),this._typeStack.push(pe(n)?n:void 0);break}case S.DIRECTIVE:this._directive=e.getDirective(t.name.value);break;case S.OPERATION_DEFINITION:{const r=e.getRootType(t.operation);this._typeStack.push($t(r)?r:void 0);break}case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:{const r=t.typeCondition,i=r?ni(e,r):_e(this.getType());this._typeStack.push(pe(i)?i:void 0);break}case S.VARIABLE_DEFINITION:{const r=ni(e,t.type);this._inputTypeStack.push(ce(r)?r:void 0);break}case S.ARGUMENT:{var r;let e,i;const n=null!==(r=this.getDirective())&&void 0!==r?r:this.getFieldDef();n&&(e=n.args.find(e=>e.name===t.name.value),e&&(i=e.type)),this._argument=e,this._defaultValueStack.push(e?e.defaultValue:void 0),this._inputTypeStack.push(ce(i)?i:void 0);break}case S.LIST:{const t=Fe(this.getInputType()),e=ae(t)?t.ofType:t;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ce(e)?e:void 0);break}case S.OBJECT_FIELD:{const e=_e(this.getInputType());let r,i;se(e)&&(i=e.getFields()[t.name.value],i&&(r=i.type)),this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ce(r)?r:void 0);break}case S.ENUM:{const e=_e(this.getInputType());let r;ie(e)&&(r=e.getValue(t.value)),this._enumValue=r;break}}}leave(t){switch(t.kind){case S.SELECTION_SET:this._parentTypeStack.pop();break;case S.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case S.DIRECTIVE:this._directive=null;break;case S.OPERATION_DEFINITION:case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:this._typeStack.pop();break;case S.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case S.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.LIST:case S.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.ENUM:this._enumValue=null}}}function oi(t,e,r){const i=r.name.value;return i===Pr.name&&t.getQueryType()===e?Pr:i===Nr.name&&t.getQueryType()===e?Nr:i===Dr.name&&me(e)?Dr:$t(e)||Zt(e)?e.getFields()[i]:void 0}function ai(t,e){return{enter(...r){const i=r[0];t.enter(i);const n=Dt(e,i.kind).enter;if(n){const s=n.apply(e,r);return void 0!==s&&(t.leave(i),x(s)&&t.enter(s)),s}},leave(...r){const i=r[0],n=Dt(e,i.kind).leave;let s;return n&&(s=n.apply(e,r)),t.leave(i),s}}}function Ai(t){return li(t)||di(t)||gi(t)}function li(t){return t.kind===S.OPERATION_DEFINITION||t.kind===S.FRAGMENT_DEFINITION}function hi(t){return t.kind===S.FIELD||t.kind===S.FRAGMENT_SPREAD||t.kind===S.INLINE_FRAGMENT}function ci(t){return t.kind===S.VARIABLE||t.kind===S.INT||t.kind===S.FLOAT||t.kind===S.STRING||t.kind===S.BOOLEAN||t.kind===S.NULL||t.kind===S.ENUM||t.kind===S.LIST||t.kind===S.OBJECT}function ui(t){return ci(t)&&(t.kind===S.LIST?t.values.some(ui):t.kind===S.OBJECT?t.fields.some(t=>ui(t.value)):t.kind!==S.VARIABLE)}function pi(t){return t.kind===S.NAMED_TYPE||t.kind===S.LIST_TYPE||t.kind===S.NON_NULL_TYPE}function di(t){return t.kind===S.SCHEMA_DEFINITION||fi(t)||t.kind===S.DIRECTIVE_DEFINITION}function fi(t){return t.kind===S.SCALAR_TYPE_DEFINITION||t.kind===S.OBJECT_TYPE_DEFINITION||t.kind===S.INTERFACE_TYPE_DEFINITION||t.kind===S.UNION_TYPE_DEFINITION||t.kind===S.ENUM_TYPE_DEFINITION||t.kind===S.INPUT_OBJECT_TYPE_DEFINITION}function gi(t){return t.kind===S.SCHEMA_EXTENSION||t.kind===S.DIRECTIVE_EXTENSION||mi(t)}function mi(t){return t.kind===S.SCALAR_TYPE_EXTENSION||t.kind===S.OBJECT_TYPE_EXTENSION||t.kind===S.INTERFACE_TYPE_EXTENSION||t.kind===S.UNION_TYPE_EXTENSION||t.kind===S.ENUM_TYPE_EXTENSION||t.kind===S.INPUT_OBJECT_TYPE_EXTENSION}function yi(t){return t.kind===S.TYPE_COORDINATE||t.kind===S.MEMBER_COORDINATE||t.kind===S.ARGUMENT_COORDINATE||t.kind===S.DIRECTIVE_COORDINATE||t.kind===S.DIRECTIVE_ARGUMENT_COORDINATE}function vi(t){return{Document(e){for(const r of e.definitions)if(!li(r)){const e=r.kind===S.SCHEMA_DEFINITION||r.kind===S.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';t.reportError(new d(`The ${e} definition is not executable.`,{nodes:r}))}return!1}}}function bi(t){return{Field(e){const r=t.getParentType();if(r&&!t.getFieldDef()){const i=t.getSchema(),n=e.name.value;let s=mt("to use an inline fragment on",function(t,e,r){if(!ve(e))return[];const i=new Set,n=Object.create(null);for(const o of t.getPossibleTypes(e))if(o.getFields()[r]){i.add(o),n[o.name]=1;for(const t of o.getInterfaces()){var s;t.getFields()[r]&&(i.add(t),n[t.name]=(null!==(s=n[t.name])&&void 0!==s?s:0)+1)}}return[...i].sort((e,r)=>{const i=n[r.name]-n[e.name];return 0!==i?i:Zt(e)&&t.isSubType(e,r)?-1:Zt(r)&&t.isSubType(r,e)?1:Bt(e.name,r.name)}).map(t=>t.name)}(i,r,n));""===s&&(s=mt(function(t,e){return $t(t)||Zt(t)?Et(e,Object.keys(t.getFields())):[]}(r,n))),t.reportError(new d(`Cannot query field "${n}" on type "${r.name}".`+s,{nodes:e}))}}}}function wi(t){return{InlineFragment(e){const r=e.typeCondition;if(r){const e=ni(t.getSchema(),r);if(e&&!me(e)){const e=Ot(r);t.reportError(new d(`Fragment cannot condition on non composite type "${e}".`,{nodes:r}))}}},FragmentDefinition(e){const r=ni(t.getSchema(),e.typeCondition);if(r&&!me(r)){const r=Ot(e.typeCondition);t.reportError(new d(`Fragment "${e.name.value}" cannot condition on non composite type "${r}".`,{nodes:e.typeCondition}))}}}}function Bi(t){return{...xi(t),Argument(e){const r=t.getArgument(),i=t.getFieldDef(),n=t.getParentType();if(!r&&i&&n){const r=e.name.value,s=Et(r,i.args.map(t=>t.name));t.reportError(new d(`Unknown argument "${r}" on field "${n.name}.${i.name}".`+mt(s),{nodes:e}))}}}}function xi(t){const e=Object.create(null),r=t.getSchema(),i=r?r.getDirectives():vr;for(const t of i)e[t.name]=t.args.map(t=>t.name);const n=t.getDocument().definitions;for(const t of n)if(t.kind===S.DIRECTIVE_DEFINITION){var s;const r=null!==(s=t.arguments)&&void 0!==s?s:[];e[t.name.value]=r.map(t=>t.name.value)}return{Directive(r){const i=r.name.value,n=e[i];if(r.arguments&&n)for(const e of r.arguments){const r=e.name.value;if(!n.includes(r)){const s=Et(r,n);t.reportError(new d(`Unknown argument "${r}" on directive "@${i}".`+mt(s),{nodes:e}))}}return!1}}}function Ci(t){const e=Object.create(null),r=t.getSchema(),i=r?r.getDirectives():vr;for(const t of i)e[t.name]=t.locations;const n=t.getDocument().definitions;for(const t of n)t.kind===S.DIRECTIVE_DEFINITION&&(e[t.name.value]=t.locations.map(t=>t.value));return{Directive(r,i,n,s,o){const a=r.name.value,l=e[a];if(!l)return void t.reportError(new d(`Unknown directive "@${a}".`,{nodes:r}));const h=function(t){const e=t[t.length-1];switch("kind"in e||A(!1),e.kind){case S.OPERATION_DEFINITION:return function(t){switch(t){case C.QUERY:return E.QUERY;case C.MUTATION:return E.MUTATION;case C.SUBSCRIPTION:return E.SUBSCRIPTION}}(e.operation);case S.FIELD:return E.FIELD;case S.FRAGMENT_SPREAD:return E.FRAGMENT_SPREAD;case S.INLINE_FRAGMENT:return E.INLINE_FRAGMENT;case S.FRAGMENT_DEFINITION:return E.FRAGMENT_DEFINITION;case S.VARIABLE_DEFINITION:return E.VARIABLE_DEFINITION;case S.SCHEMA_DEFINITION:case S.SCHEMA_EXTENSION:return E.SCHEMA;case S.SCALAR_TYPE_DEFINITION:case S.SCALAR_TYPE_EXTENSION:return E.SCALAR;case S.OBJECT_TYPE_DEFINITION:case S.OBJECT_TYPE_EXTENSION:return E.OBJECT;case S.FIELD_DEFINITION:return E.FIELD_DEFINITION;case S.INTERFACE_TYPE_DEFINITION:case S.INTERFACE_TYPE_EXTENSION:return E.INTERFACE;case S.UNION_TYPE_DEFINITION:case S.UNION_TYPE_EXTENSION:return E.UNION;case S.ENUM_TYPE_DEFINITION:case S.ENUM_TYPE_EXTENSION:return E.ENUM;case S.ENUM_VALUE_DEFINITION:return E.ENUM_VALUE;case S.INPUT_OBJECT_TYPE_DEFINITION:case S.INPUT_OBJECT_TYPE_EXTENSION:return E.INPUT_OBJECT;case S.INPUT_VALUE_DEFINITION:{const e=t[t.length-3];return"kind"in e||A(!1),e.kind===S.INPUT_OBJECT_TYPE_DEFINITION?E.INPUT_FIELD_DEFINITION:E.ARGUMENT_DEFINITION}case S.DIRECTIVE_DEFINITION:case S.DIRECTIVE_EXTENSION:return E.DIRECTIVE_DEFINITION;default:A(!1,"Unexpected kind: "+nt(e.kind))}}(o);h&&!l.includes(h)&&t.reportError(new d(`Directive "@${a}" may not be used on ${h}.`,{nodes:r}))}}}function Ei(t){return{FragmentSpread(e){const r=e.name.value;t.getFragment(r)||t.reportError(new d(`Unknown fragment "${r}".`,{nodes:e.name}))}}}function Si(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),i=Object.create(null);for(const e of t.getDocument().definitions)fi(e)&&(i[e.name.value]=!0);const n=[...Object.keys(r),...Object.keys(i)];return{NamedType(e,s,o,a,A){const l=e.name.value;if(!r[l]&&!i[l]){var h;const r=null!==(h=A[2])&&void 0!==h?h:o,i=null!=r&&"kind"in(c=r)&&(di(c)||gi(c));if(i&&Fi.includes(l))return;const s=Et(l,i?Fi.concat(n):n);t.reportError(new d(`Unknown type "${l}".`+mt(s),{nodes:e}))}var c}}}const Fi=[...ar,...Mr].map(t=>t.name);function Ti(t){let e=0;return{Document(t){e=t.definitions.filter(t=>t.kind===S.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&e>1&&t.reportError(new d("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function Ii(t){var e,r,i;const n=t.getSchema(),s=null!==(e=null!==(r=null!==(i=null==n?void 0:n.astNode)&&void 0!==i?i:null==n?void 0:n.getQueryType())&&void 0!==r?r:null==n?void 0:n.getMutationType())&&void 0!==e?e:null==n?void 0:n.getSubscriptionType();let o=0;return{SchemaDefinition(e){s?t.reportError(new d("Cannot define a new schema within a schema extension.",{nodes:e})):(o>0&&t.reportError(new d("Must provide only one schema definition.",{nodes:e})),++o)}}}function _i(t){function e(r,i=Object.create(null),n=0){if(r.kind===S.FRAGMENT_SPREAD){const s=r.name.value;if(!0===i[s])return!1;const o=t.getFragment(s);if(!o)return!1;try{return i[s]=!0,e(o,i,n)}finally{i[s]=void 0}}if(r.kind===S.FIELD&&("fields"===r.name.value||"interfaces"===r.name.value||"possibleTypes"===r.name.value||"inputFields"===r.name.value)&&++n>=3)return!0;if("selectionSet"in r&&r.selectionSet)for(const t of r.selectionSet.selections)if(e(t,i,n))return!0;return!1}return{Field(r){if(("__schema"===r.name.value||"__type"===r.name.value)&&e(r))return t.reportError(new d("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}function ki(t){const e=Object.create(null),r=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:t=>(n(t),!1)};function n(s){if(e[s.name.value])return;const o=s.name.value;e[o]=!0;const a=t.getFragmentSpreads(s.selectionSet);if(0!==a.length){i[o]=r.length;for(const e of a){const s=e.name.value,o=i[s];if(r.push(e),void 0===o){const e=t.getFragment(s);e&&n(e)}else{const e=r.slice(o),i=e.slice(0,-1).map(t=>'"'+t.name.value+'"').join(", ");t.reportError(new d(`Cannot spread fragment "${s}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:e}))}r.pop()}i[o]=void 0}}}function Li(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(r){const i=t.getRecursiveVariableUsages(r);for(const{node:n}of i){const i=n.name.value;!0!==e[i]&&t.reportError(new d(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[n,r]}))}}},VariableDefinition(t){e[t.variable.name.value]=!0}}}function Pi(t){const e=[],r=[];return{OperationDefinition:t=>(e.push(t),!1),FragmentDefinition:t=>(r.push(t),!1),Document:{leave(){const i=Object.create(null);for(const r of e)for(const e of t.getRecursivelyReferencedFragments(r))i[e.name.value]=!0;for(const e of r){const r=e.name.value;!0!==i[r]&&t.reportError(new d(`Fragment "${r}" is never used.`,{nodes:e}))}}}}}function Ni(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(r){const i=Object.create(null),n=t.getRecursiveVariableUsages(r);for(const{node:t}of n)i[t.name.value]=!0;for(const n of e){const e=n.variable.name.value;!0!==i[e]&&t.reportError(new d(r.name?`Variable "$${e}" is never used in operation "${r.name.value}".`:`Variable "$${e}" is never used.`,{nodes:n}))}}},VariableDefinition(t){e.push(t)}}}function Di(t){switch(t.kind){case S.OBJECT:return{...t,fields:(e=t.fields,e.map(t=>({...t,value:Di(t.value)})).sort((t,e)=>Bt(t.name.value,e.name.value)))};case S.LIST:return{...t,values:t.values.map(Di)};case S.INT:case S.FLOAT:case S.STRING:case S.BOOLEAN:case S.NULL:case S.ENUM:case S.VARIABLE:return t}var e}function Mi(t){return Array.isArray(t)?t.map(([t,e])=>`subfields "${t}" conflict because `+Mi(e)).join(" and "):t}function Oi(t){const e=new Wi,r=new Yi,i=new Map;return{SelectionSet(n){const s=function(t,e,r,i,n,s){const o=[],[a,A]=Gi(t,e,n,s);if(function(t,e,r,i,n,s){for(const[o,a]of Object.entries(s))if(a.length>1)for(let s=0;s<a.length;s++)for(let A=s+1;A<a.length;A++){const l=Hi(t,r,i,n,!1,o,a[s],a[A]);l&&e.push(l)}}(t,o,e,r,i,a),0!==A.length)for(let n=0;n<A.length;n++){Ui(t,o,e,r,i,!1,a,A[n]);for(let s=n+1;s<A.length;s++)Qi(t,o,e,r,i,!1,A[n],A[s])}return o}(t,i,e,r,t.getParentType(),n);for(const[[e,r],i,n]of s){const s=Mi(r);t.reportError(new d(`Fields "${e}" conflict because ${s}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:i.concat(n)}))}}}}function Ui(t,e,r,i,n,s,o,a){if(i.has(o,a,s))return;i.add(o,a,s);const A=t.getFragment(a);if(!A)return;const[l,h]=zi(t,r,A);if(o!==l){Ri(t,e,r,i,n,s,o,l);for(const a of h)Ui(t,e,r,i,n,s,o,a)}}function Qi(t,e,r,i,n,s,o,a){if(o===a)return;if(n.has(o,a,s))return;n.add(o,a,s);const A=t.getFragment(o),l=t.getFragment(a);if(!A||!l)return;const[h,c]=zi(t,r,A),[u,p]=zi(t,r,l);Ri(t,e,r,i,n,s,h,u);for(const a of p)Qi(t,e,r,i,n,s,o,a);for(const o of c)Qi(t,e,r,i,n,s,o,a)}function Ri(t,e,r,i,n,s,o,a){for(const[A,l]of Object.entries(o)){const o=a[A];if(o)for(const a of l)for(const l of o){const o=Hi(t,r,i,n,s,A,a,l);o&&e.push(o)}}}function Hi(t,e,r,i,n,s,o,a){const[A,l,h]=o,[c,u,p]=a,d=n||A!==c&&$t(A)&&$t(c);if(!d){const t=l.name.value,e=u.name.value;if(t!==e)return[[s,`"${t}" and "${e}" are different fields`],[l],[u]];if(!function(t,e){const r=t.arguments,i=e.arguments;if(void 0===r||0===r.length)return void 0===i||0===i.length;if(void 0===i||0===i.length)return!1;if(r.length!==i.length)return!1;const n=new Map(i.map(({name:t,value:e})=>[t.value,e]));return r.every(t=>{const e=t.value,r=n.get(t.name.value);return void 0!==r&&ji(e)===ji(r)})}(l,u))return[[s,"they have differing arguments"],[l],[u]]}const f=null==h?void 0:h.type,g=null==p?void 0:p.type;if(f&&g&&Vi(f,g))return[[s,`they return conflicting types "${nt(f)}" and "${nt(g)}"`],[l],[u]];const m=l.selectionSet,y=u.selectionSet;if(m&&y){const n=function(t,e,r,i,n,s,o,a,A){const l=[],[h,c]=Gi(t,e,s,o),[u,p]=Gi(t,e,a,A);Ri(t,l,e,r,i,n,h,u);for(const s of p)Ui(t,l,e,r,i,n,h,s);for(const s of c)Ui(t,l,e,r,i,n,u,s);for(const s of c)for(const o of p)Qi(t,l,e,r,i,n,s,o);return l}(t,e,r,i,d,_e(f),m,_e(g),y);return function(t,e,r,i){if(t.length>0)return[[e,t.map(([t])=>t)],[r,...t.map(([,t])=>t).flat()],[i,...t.map(([,,t])=>t).flat()]]}(n,s,l,u)}}function ji(t){return Ot(Di(t))}function Vi(t,e){return ae(t)?!ae(e)||Vi(t.ofType,e.ofType):!!ae(e)||(le(t)?!le(e)||Vi(t.ofType,e.ofType):!!le(e)||!(!fe(t)&&!fe(e))&&t!==e)}function Gi(t,e,r,i){const n=e.get(i);if(n)return n;const s=Object.create(null),o=Object.create(null);Ki(t,r,i,s,o);const a=[s,Object.keys(o)];return e.set(i,a),a}function zi(t,e,r){const i=e.get(r.selectionSet);if(i)return i;const n=ni(t.getSchema(),r.typeCondition);return Gi(t,e,n,r.selectionSet)}function Ki(t,e,r,i,n){for(const s of r.selections)switch(s.kind){case S.FIELD:{const t=s.name.value;let r;($t(e)||Zt(e))&&(r=e.getFields()[t]);const n=s.alias?s.alias.value:t;i[n]||(i[n]=[]),i[n].push([e,s,r]);break}case S.FRAGMENT_SPREAD:n[s.name.value]=!0;break;case S.INLINE_FRAGMENT:{const r=s.typeCondition,o=r?ni(t.getSchema(),r):e;Ki(t,o,s.selectionSet,i,n);break}}}class Wi{constructor(){this._data=new Map}has(t,e,r){var i;const n=null===(i=this._data.get(t))||void 0===i?void 0:i.get(e);return void 0!==n&&(!!r||r===n)}add(t,e,r){const i=this._data.get(t);void 0===i?this._data.set(t,new Map([[e,r]])):i.set(e,r)}}class Yi{constructor(){this._orderedPairSet=new Wi}has(t,e,r){return t<e?this._orderedPairSet.has(t,e,r):this._orderedPairSet.has(e,t,r)}add(t,e,r){t<e?this._orderedPairSet.add(t,e,r):this._orderedPairSet.add(e,t,r)}}function Xi(t){return{InlineFragment(e){const r=t.getType(),i=t.getParentType();if(me(r)&&me(i)&&!Ze(t.getSchema(),r,i)){const n=nt(i),s=nt(r);t.reportError(new d(`Fragment cannot be spread here as objects of type "${n}" can never be of type "${s}".`,{nodes:e}))}},FragmentSpread(e){const r=e.name.value,i=function(t,e){const r=t.getFragment(e);if(r){const e=ni(t.getSchema(),r.typeCondition);if(me(e))return e}}(t,r),n=t.getParentType();if(i&&n&&!Ze(t.getSchema(),i,n)){const s=nt(n),o=nt(i);t.reportError(new d(`Fragment "${r}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:e}))}}}}function qi(t){const e=t.getSchema(),r=Object.create(null);for(const e of t.getDocument().definitions)fi(e)&&(r[e.name.value]=e);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(i){const n=i.name.value,s=r[n],o=null==e?void 0:e.getType(n);let a;if(s?a=$i[s.kind]:o&&(a=Xt(l=o)?S.SCALAR_TYPE_EXTENSION:$t(l)?S.OBJECT_TYPE_EXTENSION:Zt(l)?S.INTERFACE_TYPE_EXTENSION:ee(l)?S.UNION_TYPE_EXTENSION:ie(l)?S.ENUM_TYPE_EXTENSION:se(l)?S.INPUT_OBJECT_TYPE_EXTENSION:void A(!1,"Unexpected type: "+nt(l))),a){if(a!==i.kind){const e=function(t){switch(t){case S.SCALAR_TYPE_EXTENSION:return"scalar";case S.OBJECT_TYPE_EXTENSION:return"object";case S.INTERFACE_TYPE_EXTENSION:return"interface";case S.UNION_TYPE_EXTENSION:return"union";case S.ENUM_TYPE_EXTENSION:return"enum";case S.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:A(!1,"Unexpected kind: "+nt(t))}}(i.kind);t.reportError(new d(`Cannot extend non-${e} type "${n}".`,{nodes:s?[s,i]:i}))}}else{const s=Et(n,Object.keys({...r,...null==e?void 0:e.getTypeMap()}));t.reportError(new d(`Cannot extend type "${n}" because it is not defined.`+mt(s),{nodes:i.name}))}var l}}const $i={[S.SCALAR_TYPE_DEFINITION]:S.SCALAR_TYPE_EXTENSION,[S.OBJECT_TYPE_DEFINITION]:S.OBJECT_TYPE_EXTENSION,[S.INTERFACE_TYPE_DEFINITION]:S.INTERFACE_TYPE_EXTENSION,[S.UNION_TYPE_DEFINITION]:S.UNION_TYPE_EXTENSION,[S.ENUM_TYPE_DEFINITION]:S.ENUM_TYPE_EXTENSION,[S.INPUT_OBJECT_TYPE_DEFINITION]:S.INPUT_OBJECT_TYPE_EXTENSION};function Ji(t){return{...Zi(t),Field:{leave(e){var r;const i=t.getFieldDef();if(!i)return!1;const n=new Set(null===(r=e.arguments)||void 0===r?void 0:r.map(t=>t.name.value));for(const r of i.args)if(!n.has(r.name)&&He(r)){const n=nt(r.type);t.reportError(new d(`Field "${i.name}" argument "${r.name}" of type "${n}" is required, but it was not provided.`,{nodes:e}))}}}}}function Zi(t){var e;const r=Object.create(null),i=t.getSchema(),n=null!==(e=null==i?void 0:i.getDirectives())&&void 0!==e?e:vr;for(const t of n)r[t.name]=vt(t.args.filter(He),t=>t.name);const s=t.getDocument().definitions;for(const t of s)if(t.kind===S.DIRECTIVE_DEFINITION){var o;const e=null!==(o=t.arguments)&&void 0!==o?o:[];r[t.name.value]=vt(e.filter(tn),t=>t.name.value)}return{Directive:{leave(e){const i=e.name.value,n=r[i];if(n){var s;const r=null!==(s=e.arguments)&&void 0!==s?s:[],o=new Set(r.map(t=>t.name.value));for(const[r,s]of Object.entries(n))if(!o.has(r)){const n=Wt(s.type)?nt(s.type):Ot(s.type);t.reportError(new d(`Directive "@${i}" argument "${r}" of type "${n}" is required, but it was not provided.`,{nodes:e}))}}}}}}function tn(t){return t.type.kind===S.NON_NULL_TYPE&&null==t.defaultValue}function en(t){return{Field(e){const r=t.getType(),i=e.selectionSet;if(r)if(fe(_e(r))){if(i){const n=e.name.value,s=nt(r);t.reportError(new d(`Field "${n}" must not have a selection since type "${s}" has no subfields.`,{nodes:i}))}}else if(i){if(0===i.selections.length){const i=e.name.value,n=nt(r);t.reportError(new d(`Field "${i}" of type "${n}" must have at least one field selected.`,{nodes:e}))}}else{const i=e.name.value,n=nt(r);t.reportError(new d(`Field "${i}" of type "${n}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:e}))}}}}function rn(t){return t.map(t=>"number"==typeof t?"["+t.toString()+"]":"."+t).join("")}function nn(t,e,r){return{prev:t,key:e,typename:r}}function sn(t){const e=[];let r=t;for(;r;)e.push(r.key),r=r.prev;return e.reverse()}function on(t,e,r=an){return An(t,e,r,void 0)}function an(t,e,r){let i="Invalid value "+nt(e);throw t.length>0&&(i+=` at "value${rn(t)}"`),r.message=i+": "+r.message,r}function An(t,e,r,i){if(le(e))return null!=t?An(t,e.ofType,r,i):void r(sn(i),t,new d(`Expected non-nullable type "${nt(e)}" not to be null.`));if(null==t)return null;if(ae(e)){const n=e.ofType;return wr(t)?Array.from(t,(t,e)=>{const s=nn(i,e,void 0);return An(t,n,r,s)}):[An(t,n,r,i)]}if(se(e)){if(!a(t)||Array.isArray(t))return void r(sn(i),t,new d(`Expected type "${e.name}" to be an object.`));const n=Object.create(null),s=e.getFields();for(const o of Object.values(s)){const s=t[o.name];if(void 0!==s)n[o.name]=An(s,o.type,r,nn(i,o.name,e.name));else if(void 0!==o.defaultValue)n[o.name]=o.defaultValue;else if(le(o.type)){const e=nt(o.type);r(sn(i),t,new d(`Field "${o.name}" of required type "${e}" was not provided.`))}}for(const n of Object.keys(t))if(!s[n]){const s=Et(n,Object.keys(e.getFields()));r(sn(i),t,new d(`Field "${n}" is not defined by type "${e.name}".`+mt(s)))}if(e.isOneOf){const s=Object.keys(n);1!==s.length&&r(sn(i),t,new d(`Exactly one key must be specified for OneOf type "${e.name}".`));const o=s[0],a=n[o];null===a&&r(sn(i).concat(o),a,new d(`Field "${o}" must be non-null.`))}return{...n}}if(fe(e)){let n;try{n=e.parseValue(t)}catch(n){return void r(sn(i),t,n instanceof d?n:new d(`Expected type "${e.name}". `+n.message,{originalError:n}))}return void 0===n&&r(sn(i),t,new d(`Expected type "${e.name}".`)),n}A(!1,"Unexpected input type: "+nt(e))}function ln(t,e,r){if(t){if(t.kind===S.VARIABLE){const i=t.name.value;if(null==r||void 0===r[i]||!cn(r,i))return;const n=r[i];if(null===n&&le(e))return;return n}if(le(e)){if(t.kind===S.NULL)return;return ln(t,e.ofType,r)}if(t.kind===S.NULL)return null;if(ae(e)){const i=e.ofType;if(t.kind===S.LIST){const e=[];for(const n of t.values)if(hn(n,r)){if(le(i))return;e.push(null)}else{const t=ln(n,i,r);if(void 0===t)return;e.push(t)}return e}const n=ln(t,i,r);if(void 0===n)return;return[n]}if(se(e)){if(t.kind!==S.OBJECT)return;const i=Object.create(null),n=vt(t.fields,t=>t.name.value);for(const t of Object.values(e.getFields())){const e=n[t.name];if(!e||hn(e.value,r)){if(void 0!==t.defaultValue)i[t.name]=t.defaultValue;else if(le(t.type))return;continue}const s=ln(e.value,t.type,r);if(void 0===s)return;i[t.name]=s}if(e.isOneOf){const t=Object.keys(i);if(1!==t.length)return;if(null===i[t[0]])return}return i}if(fe(e)){let i;try{i=e.parseLiteral(t,r)}catch(t){return}if(void 0===i)return;return i}A(!1,"Unexpected input type: "+nt(e))}}function hn(t,e){return t.kind===S.VARIABLE&&(null==e||void 0===e[t.name.value]||!cn(e,t.name.value))}function cn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function un(t,e,r,i){const n=[],s=null==i?void 0:i.maxErrors;try{const i=function(t,e,r,i){const n=Object.create(null);for(const s of e){const e=s.variable.name.value,o=ni(t,s.type);if(!ce(o)){const t=Ot(s.type);i(new d(`Variable "$${e}" expected value of type "${t}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!fn(r,e)){if(s.defaultValue)n[e]=ln(s.defaultValue,o);else if(le(o)){const t=nt(o);i(new d(`Variable "$${e}" of required type "${t}" was not provided.`,{nodes:s}))}continue}const a=r[e];if(null===a&&le(o)){const t=nt(o);i(new d(`Variable "$${e}" of non-null type "${t}" must not be null.`,{nodes:s}));continue}n[e]=on(a,o,(t,r,n)=>{let o=`Variable "$${e}" got invalid value `+nt(r);t.length>0&&(o+=` at "${e}${rn(t)}"`),i(new d(o+"; "+n.message,{nodes:s,originalError:n}))})}return{...n}}(t,e,r,t=>{if(null!=s&&n.length>=s)throw new d("Too many errors processing variables, error limit reached. Execution aborted.");n.push(t)});if(0===n.length)return{coerced:i}}catch(t){n.push(t)}return{errors:n}}function pn(t,e,r){var i;const n=Object.create(null),s=vt(null!==(i=e.arguments)&&void 0!==i?i:[],t=>t.name.value);for(const i of t.args){const t=i.name,o=i.type,a=s[t];if(!a){if(void 0!==i.defaultValue)n[t]=i.defaultValue;else if(le(o))throw new d(`Argument "${t}" of required type "${nt(o)}" was not provided.`,{nodes:e});continue}const A=a.value;let l=A.kind===S.NULL;if(A.kind===S.VARIABLE){const e=A.name.value;if(null==r||!fn(r,e)){if(void 0!==i.defaultValue)n[t]=i.defaultValue;else if(le(o))throw new d(`Argument "${t}" of required type "${nt(o)}" was provided the variable "$${e}" which was not provided a runtime value.`,{nodes:A});continue}l=null==r[e]}if(l&&le(o))throw new d(`Argument "${t}" of non-null type "${nt(o)}" must not be null.`,{nodes:A});const h=ln(A,o,r);if(void 0===h)throw new d(`Argument "${t}" has invalid value ${Ot(A)}.`,{nodes:A});n[t]=h}return{...n}}function dn(t,e,r){var i;const n=null===(i=e.directives)||void 0===i?void 0:i.find(e=>e.name.value===t.name);if(n)return pn(t,n,r)}function fn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gn(t,e,r,i,n){const s=new Map;return mn(t,e,r,i,n,s,new Set),s}function mn(t,e,r,i,n,s,o){for(const a of n.selections)switch(a.kind){case S.FIELD:{if(!yn(r,a))continue;const t=bn(a),e=s.get(t);void 0!==e?e.push(a):s.set(t,[a]);break}case S.INLINE_FRAGMENT:if(!yn(r,a)||!vn(t,a,i))continue;mn(t,e,r,i,a.selectionSet,s,o);break;case S.FRAGMENT_SPREAD:{const n=a.name.value;if(o.has(n)||!yn(r,a))continue;o.add(n);const A=e[n];if(!A||!vn(t,A,i))continue;mn(t,e,r,i,A.selectionSet,s,o);break}}}function yn(t,e){const r=dn(dr,e,t);if(!0===(null==r?void 0:r.if))return!1;const i=dn(pr,e,t);return!1!==(null==i?void 0:i.if)}function vn(t,e,r){const i=e.typeCondition;if(!i)return!0;const n=ni(t,i);return n===r||!!ve(n)&&t.isSubType(n,r)}function bn(t){return t.alias?t.alias.value:t.name.value}function wn(t){return{OperationDefinition(e){if("subscription"===e.operation){const r=t.getSchema(),i=r.getSubscriptionType();if(i){const n=e.name?e.name.value:null,s=Object.create(null),o=t.getDocument(),a=Object.create(null);for(const t of o.definitions)t.kind===S.FRAGMENT_DEFINITION&&(a[t.name.value]=t);const A=gn(r,a,s,i,e.selectionSet);if(A.size>1){const e=[...A.values()].slice(1).flat();t.reportError(new d(null!=n?`Subscription "${n}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:e}))}for(const e of A.values())e[0].name.value.startsWith("__")&&t.reportError(new d(null!=n?`Subscription "${n}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:e}))}}}}}function Bn(t,e){const r=new Map;for(const i of t){const t=e(i),n=r.get(t);void 0===n?r.set(t,[i]):n.push(i)}return r}function xn(t){return{DirectiveDefinition(t){var e;const i=null!==(e=t.arguments)&&void 0!==e?e:[];return r(`@${t.name.value}`,i)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(t){var e;const i=t.name.value,n=null!==(e=t.fields)&&void 0!==e?e:[];for(const t of n){var s;r(`${i}.${t.name.value}`,null!==(s=t.arguments)&&void 0!==s?s:[])}return!1}function r(e,r){const i=Bn(r,t=>t.name.value);for(const[r,n]of i)n.length>1&&t.reportError(new d(`Argument "${e}(${r}:)" can only be defined once.`,{nodes:n.map(t=>t.name)}));return!1}}function Cn(t){return{Field:e,Directive:e};function e(e){var r;const i=Bn(null!==(r=e.arguments)&&void 0!==r?r:[],t=>t.name.value);for(const[e,r]of i)r.length>1&&t.reportError(new d(`There can be only one argument named "${e}".`,{nodes:r.map(t=>t.name)}))}}function En(t){const e=Object.create(null),r=t.getSchema();return{DirectiveDefinition(i){const n=i.name.value;if(null==r||!r.getDirective(n))return e[n]?t.reportError(new d(`There can be only one directive named "@${n}".`,{nodes:[e[n],i.name]})):e[n]=i.name,!1;t.reportError(new d(`Directive "@${n}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}}function Sn(t){const e=Object.create(null),r=t.getSchema(),i=r?r.getDirectives():vr;for(const t of i)e[t.name]=!t.isRepeatable;const n=t.getDocument().definitions;for(const t of n)t.kind===S.DIRECTIVE_DEFINITION&&(e[t.name.value]=!t.repeatable);const s=Object.create(null),o=Object.create(null),a=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives)return;let i;if(r.kind===S.SCHEMA_DEFINITION||r.kind===S.SCHEMA_EXTENSION)i=s;else if(fi(r)||mi(r)){const t=r.name.value;i=o[t],void 0===i&&(o[t]=i=Object.create(null))}else if(r.kind===S.DIRECTIVE_DEFINITION||r.kind===S.DIRECTIVE_EXTENSION){const t=r.name.value;i=a[t],void 0===i&&(a[t]=i=Object.create(null))}else i=Object.create(null);for(const n of r.directives){const r=n.name.value;e[r]&&(i[r]?t.reportError(new d(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],n]})):i[r]=n)}}}}function Fn(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:n,EnumTypeExtension:n};function n(e){var n;const s=e.name.value;i[s]||(i[s]=Object.create(null));const o=null!==(n=e.values)&&void 0!==n?n:[],a=i[s];for(const e of o){const i=e.name.value,n=r[s];ie(n)&&n.getValue(i)?t.reportError(new d(`Enum value "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):a[i]?t.reportError(new d(`Enum value "${s}.${i}" can only be defined once.`,{nodes:[a[i],e.name]})):a[i]=e.name}return!1}}function Tn(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:n,InputObjectTypeExtension:n,InterfaceTypeDefinition:n,InterfaceTypeExtension:n,ObjectTypeDefinition:n,ObjectTypeExtension:n};function n(e){var n;const s=e.name.value;i[s]||(i[s]=Object.create(null));const o=null!==(n=e.fields)&&void 0!==n?n:[],a=i[s];for(const e of o){const i=e.name.value;In(r[s],i)?t.reportError(new d(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):a[i]?t.reportError(new d(`Field "${s}.${i}" can only be defined once.`,{nodes:[a[i],e.name]})):a[i]=e.name}return!1}}function In(t,e){return!!($t(t)||Zt(t)||se(t))&&null!=t.getFields()[e]}function _n(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){const i=r.name.value;return e[i]?t.reportError(new d(`There can be only one fragment named "${i}".`,{nodes:[e[i],r.name]})):e[i]=r.name,!1}}}function kn(t){const e=[];let r=Object.create(null);return{ObjectValue:{enter(){e.push(r),r=Object.create(null)},leave(){const t=e.pop();t||A(!1),r=t}},ObjectField(e){const i=e.name.value;r[i]?t.reportError(new d(`There can be only one input field named "${i}".`,{nodes:[r[i],e.name]})):r[i]=e.name}}}function Ln(t){const e=Object.create(null);return{OperationDefinition(r){const i=r.name;return i&&(e[i.value]?t.reportError(new d(`There can be only one operation named "${i.value}".`,{nodes:[e[i.value],i]})):e[i.value]=i),!1},FragmentDefinition:()=>!1}}function Pn(t){const e=t.getSchema(),r=Object.create(null),i=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:n,SchemaExtension:n};function n(e){var n;const s=null!==(n=e.operationTypes)&&void 0!==n?n:[];for(const e of s){const n=e.operation,s=r[n];i[n]?t.reportError(new d(`Type for ${n} already defined in the schema. It cannot be redefined.`,{nodes:e})):s?t.reportError(new d(`There can be only one ${n} type in schema.`,{nodes:[s,e]})):r[n]=e}return!1}}function Nn(t){const e=Object.create(null),r=t.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const n=i.name.value;if(null==r||!r.getType(n))return e[n]?t.reportError(new d(`There can be only one type named "${n}".`,{nodes:[e[n],i.name]})):e[n]=i.name,!1;t.reportError(new d(`Type "${n}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}}function Dn(t){return{OperationDefinition(e){var r;const i=Bn(null!==(r=e.variableDefinitions)&&void 0!==r?r:[],t=>t.variable.name.value);for(const[e,r]of i)r.length>1&&t.reportError(new d(`There can be only one variable named "$${e}".`,{nodes:r.map(t=>t.variable.name)}))}}}function Mn(t){return{ListValue(e){if(!ae(Fe(t.getParentInputType())))return On(t,e),!1},ObjectValue(e){const r=_e(t.getInputType());if(!se(r))return On(t,e),!1;const i=vt(e.fields,t=>t.name.value);for(const n of Object.values(r.getFields()))if(!i[n.name]&&qe(n)){const i=nt(n.type);t.reportError(new d(`Field "${r.name}.${n.name}" of required type "${i}" was not provided.`,{nodes:e}))}r.isOneOf&&function(t,e,r,i){var n;const s=Object.keys(i);if(1!==s.length)return void t.reportError(new d(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[e]}));const o=null===(n=i[s[0]])||void 0===n?void 0:n.value;o&&o.kind!==S.NULL||t.reportError(new d(`Field "${r.name}.${s[0]}" must be non-null.`,{nodes:[e]}))}(t,e,r,i)},ObjectField(e){const r=_e(t.getParentInputType());if(!t.getInputType()&&se(r)){const i=Et(e.name.value,Object.keys(r.getFields()));t.reportError(new d(`Field "${e.name.value}" is not defined by type "${r.name}".`+mt(i),{nodes:e}))}},NullValue(e){const r=t.getInputType();le(r)&&t.reportError(new d(`Expected value of type "${nt(r)}", found ${Ot(e)}.`,{nodes:e}))},EnumValue:e=>On(t,e),IntValue:e=>On(t,e),FloatValue:e=>On(t,e),StringValue:e=>On(t,e),BooleanValue:e=>On(t,e)}}function On(t,e){const r=t.getInputType();if(!r)return;const i=_e(r);if(!fe(i)){const i=nt(r);return void t.reportError(new d(`Expected value of type "${i}", found ${Ot(e)}.`,{nodes:e}))}try{if(void 0===i.parseLiteral(e,void 0)){const i=nt(r);t.reportError(new d(`Expected value of type "${i}", found ${Ot(e)}.`,{nodes:e}))}}catch(i){const n=nt(r);i instanceof d?t.reportError(i):t.reportError(new d(`Expected value of type "${n}", found ${Ot(e)}; `+i.message,{nodes:e,originalError:i}))}}function Un(t){return{VariableDefinition(e){const r=ni(t.getSchema(),e.type);if(void 0!==r&&!ce(r)){const r=e.variable.name.value,i=Ot(e.type);t.reportError(new d(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:e.type}))}}}}function Qn(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(r){const i=t.getRecursiveVariableUsages(r);for(const{node:r,type:n,defaultValue:s,parentType:o}of i){const i=r.name.value,a=e[i];if(a&&n){const e=t.getSchema(),A=ni(e,a.type);if(A&&!Rn(e,A,a.defaultValue,n,s)){const e=nt(A),s=nt(n);t.reportError(new d(`Variable "$${i}" of type "${e}" used in position expecting type "${s}".`,{nodes:[a,r]}))}se(o)&&o.isOneOf&&Ee(A)&&t.reportError(new d(`Variable "$${i}" is of type "${A}" but must be non-nullable to be used for OneOf Input Object "${o}".`,{nodes:[a,r]}))}}}},VariableDefinition(t){e[t.variable.name.value]=t}}}function Rn(t,e,r,i,n){return le(i)&&!le(e)?(null!=r&&r.kind!==S.NULL||void 0!==n)&&Je(t,e,i.ofType):Je(t,e,i)}const Hn=Object.freeze([_i]),jn=Object.freeze([vi,Ln,Ti,wn,Si,wi,Un,en,bi,_n,Ei,Pi,Xi,ki,Dn,Li,Ni,Ci,Sn,Bi,Cn,Mn,Ji,Qn,Oi,kn,...Hn]),Vn=Object.freeze([Ii,Pn,Nn,Fn,Tn,xn,En,Si,Ci,Sn,qi,xi,Cn,kn,Zi]);class Gn{constructor(t,e){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=e}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let e;if(this._fragments)e=this._fragments;else{e=Object.create(null);for(const t of this.getDocument().definitions)t.kind===S.FRAGMENT_DEFINITION&&(e[t.name.value]=t);this._fragments=e}return e[t]}getFragmentSpreads(t){let e=this._fragmentSpreads.get(t);if(!e){e=[];const r=[t];let i;for(;i=r.pop();)for(const t of i.selections)t.kind===S.FRAGMENT_SPREAD?e.push(t):t.selectionSet&&r.push(t.selectionSet);this._fragmentSpreads.set(t,e)}return e}getRecursivelyReferencedFragments(t){let e=this._recursivelyReferencedFragments.get(t);if(!e){e=[];const r=Object.create(null),i=[t.selectionSet];let n;for(;n=i.pop();)for(const t of this.getFragmentSpreads(n)){const n=t.name.value;if(!0!==r[n]){r[n]=!0;const t=this.getFragment(n);t&&(e.push(t),i.push(t.selectionSet))}}this._recursivelyReferencedFragments.set(t,e)}return e}}class zn extends Gn{constructor(t,e,r){super(t,r),this._schema=e}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Kn extends Gn{constructor(t,e,r,i){super(e,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let e=this._variableUsages.get(t);if(!e){const r=[],i=new si(this._schema);Pt(t,ai(i,{VariableDefinition:()=>!1,Variable(t){r.push({node:t,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),e=r,this._variableUsages.set(t,e)}return e}getRecursiveVariableUsages(t){let e=this._recursiveVariableUsages.get(t);if(!e){e=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))e=e.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,e)}return e}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}const Wn=wt(w,t=>t.filter(t=>"description"!==t));function Yn(t,e,r=jn,i,n=new si(t)){var o;const a=null!==(o=null==i?void 0:i.maxErrors)&&void 0!==o?o:100;e||s(!1,"Must provide document."),Vr(t);const A=Object.freeze({}),l=[],h=new Kn(t,e,n,t=>{if(l.length>=a)throw l.push(new d("Too many validation errors, error limit reached. Validation aborted.")),A;l.push(t)}),c=Nt(r.map(t=>t(h)));try{Pt(e,ai(n,c),Wn)}catch(t){if(t!==A)throw t}return l}function Xn(t,e,r=Vn){const i=[],n=new zn(t,e,t=>{i.push(t)});return Pt(t,Nt(r.map(t=>t(n)))),i}function qn(t){return Promise.all(Object.values(t)).then(e=>{const r=Object.create(null);for(const[i,n]of Object.keys(t).entries())r[n]=e[i];return r})}class $n extends Error{constructor(t){super("Unexpected error value: "+nt(t)),this.name="NonErrorThrown",this.thrownValue=t}}function Jn(t,e,r){var i;const n=(s=t)instanceof Error?s:new $n(s);var s,o;return o=n,Array.isArray(o.path)?n:new d(n.message,{nodes:null!==(i=n.nodes)&&void 0!==i?i:e,source:n.source,positions:n.positions,path:r,originalError:n})}const Zn=function(){let t;return function(e,r,i){void 0===t&&(t=new WeakMap);let n=t.get(e);void 0===n&&(n=new WeakMap,t.set(e,n));let s=n.get(r);void 0===s&&(s=new WeakMap,n.set(r,s));let o=s.get(i);return void 0===o&&(A=r,l=i,o=function(t,e,r,i,n){const s=new Map,o=new Set;for(const a of n)a.selectionSet&&mn(t,e,r,i,a.selectionSet,s,o);return s}((a=e).schema,a.fragments,a.variableValues,A,l),s.set(i,o)),o;var a,A,l}}();class ts{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,e){this._hasNulledPosition(e)||(this._errorPositions.add(e),this._errors.push(t))}_hasNulledPosition(t){let e=t;for(;void 0!==e;){if(this._errorPositions.has(e))return!0;e=e.prev}return this._errorPositions.has(void 0)}}function es(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:r,variableValues:i,rootValue:n}=t;ns(e,r,i);const a=ss(t);if(!("schema"in a))return{errors:a};try{const{operation:t}=a,e=function(t,e,r){const i=t.schema.getRootType(e.operation);if(null==i)throw new d(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const n=gn(t.schema,t.fragments,t.variableValues,i,e.selectionSet),s=void 0;switch(e.operation){case C.QUERY:return os(t,i,r,s,n);case C.MUTATION:return function(t,e,r,i,n){return function(t,e){let r=Object.create(null);for(const i of t)r=o(r)?r.then(t=>e(t,i)):e(r,i);return r}(n.entries(),(n,[s,a])=>{const A=nn(i,s,e.name),l=as(t,e,r,a,A);return void 0===l?n:o(l)?l.then(t=>(n[s]=t,n)):(n[s]=l,n)})}(t,i,r,s,n);case C.SUBSCRIPTION:return os(t,i,r,s,n)}}(a,t,n);return o(e)?e.then(t=>is(t,a.collectedErrors.errors),t=>(a.collectedErrors.add(t,void 0),is(null,a.collectedErrors.errors))):is(e,a.collectedErrors.errors)}catch(t){return a.collectedErrors.add(t,void 0),is(null,a.collectedErrors.errors)}}function rs(t){const e=es(t);if(o(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function is(t,e){return 0===e.length?{data:t}:{errors:e,data:t}}function ns(t,e,r){e||s(!1,"Must provide document."),Vr(t),null==r||a(r)||s(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function ss(t){var e,r,i;const{schema:n,document:s,rootValue:o,contextValue:a,variableValues:A,operationName:l,fieldResolver:h,typeResolver:c,subscribeFieldResolver:u,options:p}=t;let f;const g=Object.create(null);for(const t of s.definitions)switch(t.kind){case S.OPERATION_DEFINITION:if(null==l){if(void 0!==f)return[new d("Must provide operation name if query contains multiple operations.")];f=t}else(null===(e=t.name)||void 0===e?void 0:e.value)===l&&(f=t);break;case S.FRAGMENT_DEFINITION:g[t.name.value]=t}if(!f)return null!=l?[new d(`Unknown operation named "${l}".`)]:[new d("Must provide an operation.")];const m=un(n,null!==(r=f.variableDefinitions)&&void 0!==r?r:[],null!=A?A:{},{maxErrors:null!==(i=null==p?void 0:p.maxCoercionErrors)&&void 0!==i?i:50});return m.errors?m.errors:{schema:n,fragments:g,rootValue:o,contextValue:a,operation:f,variableValues:m.coerced,fieldResolver:null!=h?h:fs,typeResolver:null!=c?c:ds,subscribeFieldResolver:null!=u?u:fs,collectedErrors:new ts}}function os(t,e,r,i,n){const s=Object.create(null);let a=!1;try{for(const[A,l]of n.entries()){const n=as(t,e,r,l,nn(i,A,e.name));void 0!==n&&(s[A]=n,o(n)&&(a=!0))}}catch(t){if(a)return qn(s).finally(()=>{throw t});throw t}return a?qn(s):s}function as(t,e,r,i,n){var s;const a=gs(t.schema,e,i[0]);if(!a)return;const A=a.type,l=null!==(s=a.resolve)&&void 0!==s?s:t.fieldResolver,h=As(t,a,i,e,n);try{const e=l(r,pn(a,i[0],t.variableValues),t.contextValue,h);let s;return s=o(e)?e.then(e=>hs(t,A,i,h,n,e)):hs(t,A,i,h,n,e),o(s)?s.then(void 0,e=>ls(Jn(e,i,sn(n)),A,n,t)):s}catch(e){return ls(Jn(e,i,sn(n)),A,n,t)}}function As(t,e,r,i,n){return{fieldName:e.name,fieldNodes:r,returnType:e.type,parentType:i,path:n,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function ls(t,e,r,i){if(le(e))throw t;return i.collectedErrors.add(t,r),null}function hs(t,e,r,i,n,s){if(s instanceof Error)throw s;if(le(e)){const o=hs(t,e.ofType,r,i,n,s);if(null===o)throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return o}return null==s?null:ae(e)?function(t,e,r,i,n,s){if(!wr(s))throw new d(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);const a=e.ofType;let A=!1;const l=Array.from(s,(e,s)=>{const l=nn(n,s,void 0);try{let n;return n=o(e)?e.then(e=>hs(t,a,r,i,l,e)):hs(t,a,r,i,l,e),o(n)?(A=!0,n.then(void 0,e=>ls(Jn(e,r,sn(l)),a,l,t))):n}catch(e){return ls(Jn(e,r,sn(l)),a,l,t)}});return A?Promise.all(l):l}(t,e,r,i,n,s):fe(e)?function(t,e){const r=t.serialize(e);if(null==r)throw new Error(`Expected \`${nt(t)}.serialize(${nt(e)})\` to return non-nullable value, returned: ${nt(r)}`);return r}(e,s):ve(e)?function(t,e,r,i,n,s){var a;const A=null!==(a=e.resolveType)&&void 0!==a?a:t.typeResolver,l=t.contextValue,h=A(s,l,i,e);return o(h)?h.then(o=>us(t,cs(o,t,e,r,i,s),r,i,n,s)):us(t,cs(h,t,e,r,i,s),r,i,n,s)}(t,e,r,i,n,s):$t(e)?us(t,e,r,i,n,s):void A(!1,"Cannot complete value of unexpected output type: "+nt(e))}function cs(t,e,r,i,n,s){if(null==t)throw new d(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${n.parentType.name}.${n.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if($t(t))throw new d("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof t)throw new d(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${n.parentType.name}.${n.fieldName}" with value ${nt(s)}, received "${nt(t)}".`);const o=e.schema.getType(t);if(null==o)throw new d(`Abstract type "${r.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:i});if(!$t(o))throw new d(`Abstract type "${r.name}" was resolved to a non-object type "${t}".`,{nodes:i});if(!e.schema.isSubType(r,o))throw new d(`Runtime Object type "${o.name}" is not a possible type for "${r.name}".`,{nodes:i});return o}function us(t,e,r,i,n,s){const a=Zn(t,e,r);if(e.isTypeOf){const A=e.isTypeOf(s,t.contextValue,i);if(o(A))return A.then(i=>{if(!i)throw ps(e,s,r);return os(t,e,s,n,a)});if(!A)throw ps(e,s,r)}return os(t,e,s,n,a)}function ps(t,e,r){return new d(`Expected value of type "${t.name}" but got: ${nt(e)}.`,{nodes:r})}const ds=function(t,e,r,i){if(a(t)&&"string"==typeof t.__typename)return t.__typename;const n=r.schema.getPossibleTypes(i),s=[];for(let i=0;i<n.length;i++){const a=n[i];if(a.isTypeOf){const n=a.isTypeOf(t,e,r);if(o(n))s[i]=n;else if(n)return s.length&&Promise.allSettled(s).catch(()=>{}),a.name}}return s.length?Promise.all(s).then(t=>{for(let e=0;e<t.length;e++)if(t[e])return n[e].name}):void 0},fs=function(t,e,r,i){if(a(t)||"function"==typeof t){const n=t[i.fieldName];return"function"==typeof n?t[i.fieldName](e,r,i):n}};function gs(t,e,r){const i=r.name.value;return i===Pr.name&&t.getQueryType()===e?Pr:i===Nr.name&&t.getQueryType()===e?Nr:i===Dr.name?Dr:e.getFields()[i]}function ms(t){return new Promise(e=>e(vs(t)))}function ys(t){const e=vs(t);if(o(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function vs(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:r,rootValue:i,contextValue:n,variableValues:o,operationName:a,fieldResolver:A,typeResolver:l}=t,h=jr(e);if(h.length>0)return{errors:h};let c;try{c=lt(r)}catch(t){return{errors:[t]}}const u=Yn(e,c);return u.length>0?{errors:u}:es({schema:e,document:c,rootValue:i,contextValue:n,variableValues:o,operationName:a,fieldResolver:A,typeResolver:l})}function bs(t){return"function"==typeof(null==t?void 0:t[Symbol.asyncIterator])}async function ws(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await Bs(t);return bs(e)?function(e){const r=e[Symbol.asyncIterator]();async function i(e){if(e.done)return e;try{return{value:await(i=e.value,es({...t,rootValue:i})),done:!1}}catch(t){if("function"==typeof r.return)try{await r.return()}catch(t){}throw t}var i}return{next:async()=>i(await r.next()),return:async()=>"function"==typeof r.return?i(await r.return()):{value:void 0,done:!0},async throw(t){if("function"==typeof r.throw)return i(await r.throw(t));throw t},[Symbol.asyncIterator](){return this}}}(e):e}async function Bs(...t){const e=function(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}(t),{schema:r,document:i,variableValues:n}=e;ns(r,i,n);const s=ss(e);if(!("schema"in s))return{errors:s};try{const t=await async function(t){const{schema:e,fragments:r,operation:i,variableValues:n,rootValue:s}=t,o=e.getSubscriptionType();if(null==o)throw new d("Schema is not configured to execute subscription operation.",{nodes:i});const a=gn(e,r,n,o,i.selectionSet),[A,l]=[...a.entries()][0],h=gs(e,o,l[0]);if(!h){const t=l[0].name.value;throw new d(`The subscription field "${t}" is not defined.`,{nodes:l})}const c=nn(void 0,A,o.name),u=As(t,h,l,o,c);try{var p;const e=pn(h,l[0],n),r=t.contextValue,i=null!==(p=h.subscribe)&&void 0!==p?p:t.subscribeFieldResolver,o=await i(s,e,r,u);if(o instanceof Error)throw o;return o}catch(t){throw Jn(t,l,sn(c))}}(s);if(!bs(t))throw new Error(`Subscription field must return Async Iterable. Received: ${nt(t)}.`);return t}catch(t){if(t instanceof d)return{errors:[t]};throw t}}function xs(t){return{Field(e){const r=t.getFieldDef(),i=null==r?void 0:r.deprecationReason;if(r&&null!=i){const n=t.getParentType();null!=n||A(!1),t.reportError(new d(`The field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:e}))}},Argument(e){const r=t.getArgument(),i=null==r?void 0:r.deprecationReason;if(r&&null!=i){const n=t.getDirective();if(null!=n)t.reportError(new d(`Directive "@${n.name}" argument "${r.name}" is deprecated. ${i}`,{nodes:e}));else{const n=t.getParentType(),s=t.getFieldDef();null!=n&&null!=s||A(!1),t.reportError(new d(`Field "${n.name}.${s.name}" argument "${r.name}" is deprecated. ${i}`,{nodes:e}))}}},ObjectField(e){const r=_e(t.getParentInputType());if(se(r)){const i=r.getFields()[e.name.value],n=null==i?void 0:i.deprecationReason;null!=n&&t.reportError(new d(`The input field ${r.name}.${i.name} is deprecated. ${n}`,{nodes:e}))}},EnumValue(e){const r=t.getEnumValue(),i=null==r?void 0:r.deprecationReason;if(r&&null!=i){const n=_e(t.getInputType());null!=n||A(!1),t.reportError(new d(`The enum value "${n.name}.${r.name}" is deprecated. ${i}`,{nodes:e}))}}}}function Cs(t){return{Field(e){const r=_e(t.getType());r&&Or(r)&&t.reportError(new d(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Es(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,experimentalDirectiveDeprecation:!1,oneOf:!1,typeDepth:9,...t},r=e.descriptions?"description":"",i=e.specifiedByUrl?"specifiedByURL":"",n=e.directiveIsRepeatable?"isRepeatable":"",s=e.schemaDescription?r:"";function o(t){return e.inputValueDeprecation?t:""}function a(t){return e.experimentalDirectiveDeprecation?t:""}const A=e.oneOf?"isOneOf":"";return`\n    query IntrospectionQuery {\n      __schema {\n        ${s}\n        queryType { name kind }\n        mutationType { name kind }\n        subscriptionType { name kind }\n        types {\n          ...FullType\n        }\n        directives${a("(includeDeprecated: true)")} {\n          name\n          ${r}\n          ${n}\n          ${a("isDeprecated")}\n          ${a("deprecationReason")}\n          locations\n          args${o("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${r}\n      ${i}\n      ${A}\n      fields(includeDeprecated: true) {\n        name\n        ${r}\n        args${o("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${o("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${r}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${r}\n      type { ...TypeRef }\n      defaultValue\n      ${o("isDeprecated")}\n      ${o("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name${function t(e,r){if(e<=0)return"";if(e>100)throw new Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");return`\n${r}ofType {\n${r}  name\n${r}  kind${t(e-1,r+"  ")}\n${r}}`}(e.typeDepth,"      ")}\n    }\n  `}function Ss(t,e){let r=null;for(const n of t.definitions){var i;if(n.kind===S.OPERATION_DEFINITION)if(null==e){if(r)return null;r=n}else if((null===(i=n.name)||void 0===i?void 0:i.value)===e)return n}return r}function Fs(t,e){if("query"===e.operation){const r=t.getQueryType();if(!r)throw new d("Schema does not define the required query root type.",{nodes:e});return r}if("mutation"===e.operation){const r=t.getMutationType();if(!r)throw new d("Schema is not configured for mutations.",{nodes:e});return r}if("subscription"===e.operation){const r=t.getSubscriptionType();if(!r)throw new d("Schema is not configured for subscriptions.",{nodes:e});return r}throw new d("Can only have query, mutation and subscription operations.",{nodes:e})}function Ts(t,e){const r=rs({schema:t,document:lt(Es({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,experimentalDirectiveDeprecation:!0,oneOf:!0,...e}))});return!r.errors&&r.data||A(!1),r.data}function Is(t,e){a(t)&&a(t.__schema)||s(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${nt(t)}.`);const r=t.__schema,i=bt(r.types,t=>t.name,t=>function(t){if(null!=t&&null!=t.name&&null!=t.kind)switch(t.kind){case kr.SCALAR:return new Pe({name:(i=t).name,description:i.description,specifiedByURL:i.specifiedByURL});case kr.OBJECT:return new Ne({name:(r=t).name,description:r.description,interfaces:()=>d(r),fields:()=>f(r)});case kr.INTERFACE:return new je({name:(e=t).name,description:e.description,interfaces:()=>d(e),fields:()=>f(e)});case kr.UNION:return function(t){if(!t.possibleTypes){const e=nt(t);throw new Error(`Introspection result missing possibleTypes: ${e}.`)}return new Ve({name:t.name,description:t.description,types:()=>t.possibleTypes.map(u)})}(t);case kr.ENUM:return function(t){if(!t.enumValues){const e=nt(t);throw new Error(`Introspection result missing enumValues: ${e}.`)}return new ze({name:t.name,description:t.description,values:bt(t.enumValues,t=>t.name,t=>({description:t.description,deprecationReason:t.deprecationReason}))})}(t);case kr.INPUT_OBJECT:return function(t){if(!t.inputFields){const e=nt(t);throw new Error(`Introspection result missing inputFields: ${e}.`)}return new Ye({name:t.name,description:t.description,fields:()=>m(t.inputFields),isOneOf:t.isOneOf})}(t)}var e,r,i;const n=nt(t);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${n}.`)}(t));for(const t of[...ar,...Mr])i[t.name]&&(i[t.name]=t);const n=r.queryType?u(r.queryType):null,o=r.mutationType?u(r.mutationType):null,A=r.subscriptionType?u(r.subscriptionType):null,l=r.directives?r.directives.map(function(t){if(!t.args){const e=nt(t);throw new Error(`Introspection result missing directive args: ${e}.`)}if(!t.locations){const e=nt(t);throw new Error(`Introspection result missing directive locations: ${e}.`)}return new ur({name:t.name,description:t.description,isRepeatable:t.isRepeatable,deprecationReason:t.deprecationReason,locations:t.locations.slice(),args:m(t.args)})}):[];return new Rr({description:r.description,query:n,mutation:o,subscription:A,types:Object.values(i),directives:l,assumeValid:null==e?void 0:e.assumeValid});function h(t){if(t.kind===kr.LIST){const e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");return new we(h(e))}if(t.kind===kr.NON_NULL){const e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");const r=h(e);return new Be(Se(r))}return c(t)}function c(t){const e=t.name;if(!e)throw new Error(`Unknown type reference: ${nt(t)}.`);const r=i[e];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${e}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function u(t){return Jt(c(t))}function p(t){return te(c(t))}function d(t){if(null===t.interfaces&&t.kind===kr.INTERFACE)return[];if(!t.interfaces){const e=nt(t);throw new Error(`Introspection result missing interfaces: ${e}.`)}return t.interfaces.map(p)}function f(t){if(!t.fields)throw new Error(`Introspection result missing fields: ${nt(t)}.`);return bt(t.fields,t=>t.name,g)}function g(t){const e=h(t.type);if(!pe(e)){const t=nt(e);throw new Error(`Introspection must provide output type for fields, but received: ${t}.`)}if(!t.args){const e=nt(t);throw new Error(`Introspection result missing field args: ${e}.`)}return{description:t.description,deprecationReason:t.deprecationReason,type:e,args:m(t.args)}}function m(t){return bt(t,t=>t.name,y)}function y(t){const e=h(t.type);if(!ce(e)){const t=nt(e);throw new Error(`Introspection must provide input type for arguments, but received: ${t}.`)}const r=null!=t.defaultValue?ln(ht(t.defaultValue),e):void 0;return{description:t.description,type:e,defaultValue:r,deprecationReason:t.deprecationReason}}}function _s(t,e,r){Qr(t),null!=e&&e.kind===S.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==r?void 0:r.assumeValid)&&!0!==(null==r?void 0:r.assumeValidSDL)&&function(t,e){const r=Xn(t,e);if(0!==r.length)throw new Error(r.map(t=>t.message).join("\n\n"))}(e,t);const i=t.toConfig(),n=ks(i,e,r);return i===n?t:new Rr(n)}function ks(t,e,r){var i,n,s,o;const a=[],l=Object.create(null),h=Object.create(null),c=[];let u;const p=[];for(const t of e.definitions)if(t.kind===S.SCHEMA_DEFINITION)u=t;else if(t.kind===S.SCHEMA_EXTENSION)p.push(t);else if(fi(t))a.push(t);else if(mi(t)){const e=t.name.value,r=l[e];l[e]=r?r.concat([t]):[t]}else if(t.kind===S.DIRECTIVE_DEFINITION)c.push(t);else if(t.kind===S.DIRECTIVE_EXTENSION){const e=t.name.value,r=h[e];h[e]=r?r.concat([t]):[t]}if(0===Object.keys(l).length&&0===a.length&&0===Object.keys(h).length&&0===c.length&&0===p.length&&null==u)return t;const d=Object.create(null);for(const e of t.types)d[e.name]=w(e);for(const t of a){var f;const e=t.name.value;d[e]=null!==(f=Ls[e])&&void 0!==f?f:D(t)}const g=Object.create(null);for(const e of t.directives)g[e.name]=E(e);const m={query:t.query&&b(t.query),mutation:t.mutation&&b(t.mutation),subscription:t.subscription&&b(t.subscription),...u&&C([u]),...C(p)},y=Object.values(g);return{description:null===(i=u)||void 0===i||null===(n=i.description)||void 0===n?void 0:n.value,...m,types:Object.values(d),directives:[...y.map(function(t){const e=t.toConfig();return new ur({...e,args:wt(e.args,x)})}),...c.map(function(t){var e,r,i;const n=null!==(e=h[t.name.value])&&void 0!==e?e:[],s=null!==(r=Ps(t))&&void 0!==r?r:n.map(t=>Ps(t)).find(t=>null!=t);return new ur({name:t.name.value,description:null===(i=t.description)||void 0===i?void 0:i.value,locations:t.locations.map(({value:t})=>t),isRepeatable:t.repeatable,args:_(t.arguments),deprecationReason:s,astNode:t,extensionASTNodes:n})})],extensions:Object.create(null),astNode:null!==(s=u)&&void 0!==s?s:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(p),assumeValid:null!==(o=null==r?void 0:r.assumeValid)&&void 0!==o&&o};function v(t){return ae(t)?new we(v(t.ofType)):le(t)?new Be(v(t.ofType)):b(t)}function b(t){return d[t.name]}function w(t){return Or(t)||Ar(t)?t:Xt(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[r.name])&&void 0!==e?e:[];let n=r.specifiedByURL;for(const t of i){var s;n=null!==(s=Ns(t))&&void 0!==s?s:n}return new Pe({...r,specifiedByURL:n,extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):$t(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[r.name])&&void 0!==e?e:[];return new Ne({...r,interfaces:()=>[...t.getInterfaces().map(b),...P(i)],fields:()=>({...wt(r.fields,B),...I(i)}),extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):Zt(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[r.name])&&void 0!==e?e:[];return new je({...r,interfaces:()=>[...t.getInterfaces().map(b),...P(i)],fields:()=>({...wt(r.fields,B),...I(i)}),extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):ee(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[r.name])&&void 0!==e?e:[];return new Ve({...r,types:()=>[...t.getTypes().map(b),...N(i)],extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):ie(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[t.name])&&void 0!==e?e:[];return new ze({...r,values:{...r.values,...L(i)},extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):se(t)?function(t){var e;const r=t.toConfig(),i=null!==(e=l[r.name])&&void 0!==e?e:[];return new Ye({...r,fields:()=>({...wt(r.fields,t=>({...t,type:v(t.type)})),...k(i)}),extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):void A(!1,"Unexpected type: "+nt(t))}function B(t){return{...t,type:v(t.type),args:t.args&&wt(t.args,x)}}function x(t){return{...t,type:v(t.type)}}function C(t){const e={};for(const i of t){var r;const t=null!==(r=i.operationTypes)&&void 0!==r?r:[];for(const r of t)e[r.operation]=F(r.type)}return e}function E(t){var e,r;const i=t.toConfig(),n=null!==(e=h[i.name])&&void 0!==e?e:[],s=null!==(r=i.deprecationReason)&&void 0!==r?r:n.map(t=>Ps(t)).find(t=>null!=t);return new ur({...i,deprecationReason:s,extensionASTNodes:i.extensionASTNodes.concat(n)})}function F(t){var e;const r=t.name.value,i=null!==(e=Ls[r])&&void 0!==e?e:d[r];if(void 0===i)throw new Error(`Unknown type: "${r}".`);return i}function T(t){return t.kind===S.LIST_TYPE?new we(T(t.type)):t.kind===S.NON_NULL_TYPE?new Be(T(t.type)):F(t)}function I(t){const e=Object.create(null);for(const n of t){var r;const t=null!==(r=n.fields)&&void 0!==r?r:[];for(const r of t){var i;e[r.name.value]={type:T(r.type),description:null===(i=r.description)||void 0===i?void 0:i.value,args:_(r.arguments),deprecationReason:Ps(r),astNode:r}}}return e}function _(t){const e=null!=t?t:[],r=Object.create(null);for(const t of e){var i;const e=T(t.type);r[t.name.value]={type:e,description:null===(i=t.description)||void 0===i?void 0:i.value,defaultValue:ln(t.defaultValue,e),deprecationReason:Ps(t),astNode:t}}return r}function k(t){const e=Object.create(null);for(const n of t){var r;const t=null!==(r=n.fields)&&void 0!==r?r:[];for(const r of t){var i;const t=T(r.type);e[r.name.value]={type:t,description:null===(i=r.description)||void 0===i?void 0:i.value,defaultValue:ln(r.defaultValue,t),deprecationReason:Ps(r),astNode:r}}}return e}function L(t){const e=Object.create(null);for(const n of t){var r;const t=null!==(r=n.values)&&void 0!==r?r:[];for(const r of t){var i;e[r.name.value]={description:null===(i=r.description)||void 0===i?void 0:i.value,deprecationReason:Ps(r),astNode:r}}}return e}function P(t){return t.flatMap(t=>{var e,r;return null!==(e=null===(r=t.interfaces)||void 0===r?void 0:r.map(F))&&void 0!==e?e:[]})}function N(t){return t.flatMap(t=>{var e,r;return null!==(e=null===(r=t.types)||void 0===r?void 0:r.map(F))&&void 0!==e?e:[]})}function D(t){var e;const r=t.name.value,i=null!==(e=l[r])&&void 0!==e?e:[];switch(t.kind){case S.OBJECT_TYPE_DEFINITION:{var n;const e=[t,...i];return new Ne({name:r,description:null===(n=t.description)||void 0===n?void 0:n.value,interfaces:()=>P(e),fields:()=>I(e),astNode:t,extensionASTNodes:i})}case S.INTERFACE_TYPE_DEFINITION:{var s;const e=[t,...i];return new je({name:r,description:null===(s=t.description)||void 0===s?void 0:s.value,interfaces:()=>P(e),fields:()=>I(e),astNode:t,extensionASTNodes:i})}case S.ENUM_TYPE_DEFINITION:{var o;const e=[t,...i];return new ze({name:r,description:null===(o=t.description)||void 0===o?void 0:o.value,values:L(e),astNode:t,extensionASTNodes:i})}case S.UNION_TYPE_DEFINITION:{var a;const e=[t,...i];return new Ve({name:r,description:null===(a=t.description)||void 0===a?void 0:a.value,types:()=>N(e),astNode:t,extensionASTNodes:i})}case S.SCALAR_TYPE_DEFINITION:var A;return new Pe({name:r,description:null===(A=t.description)||void 0===A?void 0:A.value,specifiedByURL:Ns(t),astNode:t,extensionASTNodes:i});case S.INPUT_OBJECT_TYPE_DEFINITION:{var h;const e=[t,...i];return new Ye({name:r,description:null===(h=t.description)||void 0===h?void 0:h.value,fields:()=>k(e),astNode:t,extensionASTNodes:i,isOneOf:(c=t,Boolean(dn(yr,c)))})}}var c}}const Ls=vt([...ar,...Mr],t=>t.name);function Ps(t){const e=dn(gr,t);return null==e?void 0:e.reason}function Ns(t){const e=dn(mr,t);return null==e?void 0:e.url}function Ds(t,e){null!=t&&t.kind===S.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==e?void 0:e.assumeValid)&&!0!==(null==e?void 0:e.assumeValidSDL)&&function(t){const e=Xn(t);if(0!==e.length)throw new Error(e.map(t=>t.message).join("\n\n"))}(t);const r=ks({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(null==r.astNode)for(const t of r.types)switch(t.name){case"Query":r.query=t;break;case"Mutation":r.mutation=t;break;case"Subscription":r.subscription=t}const i=[...r.directives,...vr.filter(t=>r.directives.every(e=>e.name!==t.name))];return new Rr({...r,directives:i})}function Ms(t,e){return Ds(lt(t,{noLocation:null==e?void 0:e.noLocation,allowLegacyFragmentVariables:null==e?void 0:e.allowLegacyFragmentVariables,experimentalDirectivesOnDirectiveDefinitions:null==e?void 0:e.experimentalDirectivesOnDirectiveDefinitions}),{assumeValidSDL:null==e?void 0:e.assumeValidSDL,assumeValid:null==e?void 0:e.assumeValid})}function Os(t){const e=t.toConfig(),r=bt(Qs(e.types),t=>t.name,function(t){if(Xt(t)||Or(t))return t;if($t(t)){const e=t.toConfig();return new Ne({...e,interfaces:()=>l(e.interfaces),fields:()=>a(e.fields)})}if(Zt(t)){const e=t.toConfig();return new je({...e,interfaces:()=>l(e.interfaces),fields:()=>a(e.fields)})}if(ee(t)){const e=t.toConfig();return new Ve({...e,types:()=>l(e.types)})}if(ie(t)){const e=t.toConfig();return new ze({...e,values:Us(e.values,t=>t)})}if(se(t)){const e=t.toConfig();return new Ye({...e,fields:()=>Us(e.fields,t=>({...t,type:i(t.type)}))})}A(!1,"Unexpected type: "+nt(t))});return new Rr({...e,types:Object.values(r),directives:Qs(e.directives).map(function(t){const e=t.toConfig();return new ur({...e,locations:Rs(e.locations,t=>t),args:o(e.args)})}),query:s(e.query),mutation:s(e.mutation),subscription:s(e.subscription)});function i(t){return ae(t)?new we(i(t.ofType)):le(t)?new Be(i(t.ofType)):n(t)}function n(t){return r[t.name]}function s(t){return t&&n(t)}function o(t){return Us(t,t=>({...t,type:i(t.type)}))}function a(t){return Us(t,t=>({...t,type:i(t.type),args:t.args&&o(t.args)}))}function l(t){return Qs(t).map(n)}}function Us(t,e){const r=Object.create(null);for(const i of Object.keys(t).sort(Bt))r[i]=e(t[i]);return r}function Qs(t){return Rs(t,t=>t.name)}function Rs(t,e){return t.slice().sort((t,r)=>Bt(e(t),e(r)))}function Hs(t){return Gs(t,t=>!br(t),Vs)}function js(t){return Gs(t,br,Or)}function Vs(t){return!Ar(t)&&!Or(t)}function Gs(t,e,r){const i=t.getDirectives().filter(e),n=Object.values(t.getTypeMap()).filter(r);return[zs(t),...i.map(t=>function(t){return Zs(t)+"directive @"+t.name+qs(t.args)+Js(t.deprecationReason)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}(t)),...n.map(t=>Ks(t))].filter(Boolean).join("\n\n")}function zs(t){if(null==t.description&&function(t){const e=t.getQueryType();if(e&&"Query"!==e.name)return!1;const r=t.getMutationType();if(r&&"Mutation"!==r.name)return!1;const i=t.getSubscriptionType();return!i||"Subscription"===i.name}(t))return;const e=[],r=t.getQueryType();r&&e.push(`  query: ${r.name}`);const i=t.getMutationType();i&&e.push(`  mutation: ${i.name}`);const n=t.getSubscriptionType();return n&&e.push(`  subscription: ${n.name}`),Zs(t)+`schema {\n${e.join("\n")}\n}`}function Ks(t){return Xt(t)?function(t){return Zs(t)+`scalar ${t.name}`+(null==(e=t).specifiedByURL?"":` @specifiedBy(url: ${Ot({kind:S.STRING,value:e.specifiedByURL})})`);var e}(t):$t(t)?function(t){return Zs(t)+`type ${t.name}`+Ws(t)+Ys(t)}(t):Zt(t)?function(t){return Zs(t)+`interface ${t.name}`+Ws(t)+Ys(t)}(t):ee(t)?function(t){const e=t.getTypes(),r=e.length?" = "+e.join(" | "):"";return Zs(t)+"union "+t.name+r}(t):ie(t)?function(t){const e=t.getValues().map((t,e)=>Zs(t,"  ",!e)+"  "+t.name+Js(t.deprecationReason));return Zs(t)+`enum ${t.name}`+Xs(e)}(t):se(t)?function(t){const e=Object.values(t.getFields()).map((t,e)=>Zs(t,"  ",!e)+"  "+$s(t));return Zs(t)+`input ${t.name}`+(t.isOneOf?" @oneOf":"")+Xs(e)}(t):void A(!1,"Unexpected type: "+nt(t))}function Ws(t){const e=t.getInterfaces();return e.length?" implements "+e.map(t=>t.name).join(" & "):""}function Ys(t){return Xs(Object.values(t.getFields()).map((t,e)=>Zs(t,"  ",!e)+"  "+t.name+qs(t.args,"  ")+": "+String(t.type)+Js(t.deprecationReason)))}function Xs(t){return 0!==t.length?" {\n"+t.join("\n")+"\n}":""}function qs(t,e=""){return 0===t.length?"":t.every(t=>!t.description)?"("+t.map($s).join(", ")+")":"(\n"+t.map((t,r)=>Zs(t,"  "+e,!r)+"  "+e+$s(t)).join("\n")+"\n"+e+")"}function $s(t){const e=Br(t.defaultValue,t.type);let r=t.name+": "+String(t.type);return e&&(r+=` = ${Ot(e)}`),r+Js(t.deprecationReason)}function Js(t){return null==t?"":t!==fr?` @deprecated(reason: ${Ot({kind:S.STRING,value:t})})`:" @deprecated"}function Zs(t,e="",r=!0){const{description:i}=t;return null==i?"":(e&&!r?"\n"+e:e)+Ot({kind:S.STRING,value:i,block:D(i)}).replace(/\n/g,"\n"+e)+"\n"}function to(t){const e=[];for(const r of t)e.push(...r.definitions);return{kind:S.DOCUMENT,definitions:e}}function eo(t){const e=[],r=Object.create(null);for(const i of t.definitions)switch(i.kind){case S.OPERATION_DEFINITION:e.push(i);break;case S.FRAGMENT_DEFINITION:r[i.name.value]=io(i.selectionSet)}const i=Object.create(null);for(const n of e){const e=new Set;for(const t of io(n.selectionSet))ro(e,r,t);i[n.name?n.name.value:""]={kind:S.DOCUMENT,definitions:t.definitions.filter(t=>t===n||t.kind===S.FRAGMENT_DEFINITION&&e.has(t.name.value))}}return i}function ro(t,e,r){if(!t.has(r)){t.add(r);const i=e[r];if(void 0!==i)for(const r of i)ro(t,e,r)}}function io(t){const e=[];return Pt(t,{FragmentSpread(t){e.push(t.name.value)}}),e}function no(t){const e=At(t)?t:new at(t),r=e.body,i=new O(e);let n="",s=!1;for(;i.advance().kind!==F.EOF;){const t=i.token,e=t.kind,o=!U(t.kind);s&&(o||t.kind===F.SPREAD)&&(n+=" ");const a=r.slice(t.start,t.end);e===F.BLOCK_STRING?n+=M(t.value,{minimize:!0}):n+=a,s=o}return n}function so(t){const e=oo(t);if(e)throw e;return t}function oo(t){if("string"==typeof t||s(!1,"Expected name to be a string."),t.startsWith("__"))return new d(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{zt(t)}catch(t){return t}}var ao,Ao;function lo(t,e){return co(t,e).filter(t=>t.type in ao)}function ho(t,e){return co(t,e).filter(t=>t.type in Ao)}function co(t,e){return[...po(t,e),...uo(t,e)]}function uo(t,e){const r=[],i=Eo(t.getDirectives(),e.getDirectives());for(const t of i.removed)r.push({type:ao.DIRECTIVE_REMOVED,description:`${t.name} was removed.`});for(const[t,e]of i.persisted){const i=Eo(t.args,e.args);for(const e of i.added)He(e)&&r.push({type:ao.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${e.name} on directive ${t.name} was added.`});for(const e of i.removed)r.push({type:ao.DIRECTIVE_ARG_REMOVED,description:`${e.name} was removed from ${t.name}.`});t.isRepeatable&&!e.isRepeatable&&r.push({type:ao.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${t.name}.`});for(const i of t.locations)e.locations.includes(i)||r.push({type:ao.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${t.name}.`})}return r}function po(t,e){const r=[],i=Eo(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const t of i.removed)r.push({type:ao.TYPE_REMOVED,description:Ar(t)?`Standard scalar ${t.name} was removed because it is not referenced anymore.`:`${t.name} was removed.`});for(const[t,e]of i.persisted)ie(t)&&ie(e)?r.push(...mo(t,e)):ee(t)&&ee(e)?r.push(...go(t,e)):se(t)&&se(e)?r.push(...fo(t,e)):$t(t)&&$t(e)||Zt(t)&&Zt(e)?r.push(...vo(t,e),...yo(t,e)):t.constructor!==e.constructor&&r.push({type:ao.TYPE_CHANGED_KIND,description:`${t.name} changed from ${xo(t)} to ${xo(e)}.`});return r}function fo(t,e){const r=[],i=Eo(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of i.added)qe(e)?r.push({type:ao.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${e.name} on input type ${t.name} was added.`}):r.push({type:Ao.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${e.name} on input type ${t.name} was added.`});for(const e of i.removed)r.push({type:ao.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,n]of i.persisted)Bo(e.type,n.type)||r.push({type:ao.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(n.type)}.`});return r}function go(t,e){const r=[],i=Eo(t.getTypes(),e.getTypes());for(const e of i.added)r.push({type:Ao.TYPE_ADDED_TO_UNION,description:`${e.name} was added to union type ${t.name}.`});for(const e of i.removed)r.push({type:ao.TYPE_REMOVED_FROM_UNION,description:`${e.name} was removed from union type ${t.name}.`});return r}function mo(t,e){const r=[],i=Eo(t.getValues(),e.getValues());for(const e of i.added)r.push({type:Ao.VALUE_ADDED_TO_ENUM,description:`${e.name} was added to enum type ${t.name}.`});for(const e of i.removed)r.push({type:ao.VALUE_REMOVED_FROM_ENUM,description:`${e.name} was removed from enum type ${t.name}.`});return r}function yo(t,e){const r=[],i=Eo(t.getInterfaces(),e.getInterfaces());for(const e of i.added)r.push({type:Ao.IMPLEMENTED_INTERFACE_ADDED,description:`${e.name} added to interfaces implemented by ${t.name}.`});for(const e of i.removed)r.push({type:ao.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${e.name}.`});return r}function vo(t,e){const r=[],i=Eo(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of i.removed)r.push({type:ao.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,n]of i.persisted)r.push(...bo(t,e,n)),wo(e.type,n.type)||r.push({type:ao.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(n.type)}.`});return r}function bo(t,e,r){const i=[],n=Eo(e.args,r.args);for(const r of n.removed)i.push({type:ao.ARG_REMOVED,description:`${t.name}.${e.name} arg ${r.name} was removed.`});for(const[r,s]of n.persisted)if(Bo(r.type,s.type)){if(void 0!==r.defaultValue)if(void 0===s.defaultValue)i.push({type:Ao.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${r.name} defaultValue was removed.`});else{const n=Co(r.defaultValue,r.type),o=Co(s.defaultValue,s.type);n!==o&&i.push({type:Ao.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${r.name} has changed defaultValue from ${n} to ${o}.`})}}else i.push({type:ao.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${r.name} has changed type from ${String(r.type)} to ${String(s.type)}.`});for(const r of n.added)He(r)?i.push({type:ao.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${t.name}.${e.name} was added.`}):i.push({type:Ao.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${t.name}.${e.name} was added.`});return i}function wo(t,e){return ae(t)?ae(e)&&wo(t.ofType,e.ofType)||le(e)&&wo(t,e.ofType):le(t)?le(e)&&wo(t.ofType,e.ofType):Te(e)&&t.name===e.name||le(e)&&wo(t,e.ofType)}function Bo(t,e){return ae(t)?ae(e)&&Bo(t.ofType,e.ofType):le(t)?le(e)&&Bo(t.ofType,e.ofType)||!le(e)&&Bo(t.ofType,e):Te(e)&&t.name===e.name}function xo(t){return Xt(t)?"a Scalar type":$t(t)?"an Object type":Zt(t)?"an Interface type":ee(t)?"a Union type":ie(t)?"an Enum type":se(t)?"an Input type":void A(!1,"Unexpected type: "+nt(t))}function Co(t,e){const r=Br(t,e);return null!=r||A(!1),Ot(Di(r))}function Eo(t,e){const r=[],i=[],n=[],s=vt(t,({name:t})=>t),o=vt(e,({name:t})=>t);for(const e of t){const t=o[e.name];void 0===t?i.push(e):n.push([e,t])}for(const t of e)void 0===s[t.name]&&r.push(t);return{added:r,persisted:n,removed:i}}function So(t,e){return Fo(t,pt(e))}function Fo(t,e){switch(e.kind){case S.TYPE_COORDINATE:return function(t,e){const r=e.name.value,i=t.getType(r);if(null!=i)return{kind:"NamedType",type:i}}(t,e);case S.MEMBER_COORDINATE:return function(t,e){const r=e.name.value,i=t.getType(r);if(!i)throw new Error(`Expected ${nt(r)} to be defined as a type in the schema.`);if(!(ie(i)||se(i)||$t(i)||Zt(i)))throw new Error(`Expected ${nt(r)} to be an Enum, Input Object, Object or Interface type.`);if(ie(i)){const t=e.memberName.value,r=i.getValue(t);if(null==r)return;return{kind:"EnumValue",type:i,enumValue:r}}if(se(i)){const t=e.memberName.value,r=i.getFields()[t];if(null==r)return;return{kind:"InputField",type:i,inputField:r}}const n=e.memberName.value,s=i.getFields()[n];if(null!=s)return{kind:"Field",type:i,field:s}}(t,e);case S.ARGUMENT_COORDINATE:return function(t,e){const r=e.name.value,i=t.getType(r);if(null==i)throw new Error(`Expected ${nt(r)} to be defined as a type in the schema.`);if(!$t(i)&&!Zt(i))throw new Error(`Expected ${nt(r)} to be an object type or interface type.`);const n=e.fieldName.value,s=i.getFields()[n];if(null==s)throw new Error(`Expected ${nt(n)} to exist as a field of type ${nt(r)} in the schema.`);const o=e.argumentName.value,a=s.args.find(t=>t.name===o);if(null!=a)return{kind:"FieldArgument",type:i,field:s,fieldArgument:a}}(t,e);case S.DIRECTIVE_COORDINATE:return function(t,e){const r=e.name.value,i=t.getDirective(r);if(i)return{kind:"Directive",directive:i}}(t,e);case S.DIRECTIVE_ARGUMENT_COORDINATE:return function(t,e){const r=e.name.value,i=t.getDirective(r);if(!i)throw new Error(`Expected ${nt(r)} to be defined as a directive in the schema.`);const{argumentName:{value:n}}=e,s=i.args.find(t=>t.name===n);if(s)return{kind:"DirectiveArgument",directive:i,directiveArgument:s}}(t,e)}}!function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(ao||(ao={})),function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Ao||(Ao={}))},25722(t,e,r){"use strict";r.d(e,{H:()=>w});var i=r(12172),n=r(40562),s=r(10150);const o=/[ \t\n\f\r]/g;function a(t){return""===t.replace(o,"")}var A=r(639),l=r(74946),h=r(67389),c=r(34683),u=r(41832),p=r(69974),d=r(48112);const f={}.hasOwnProperty,g=new Map,m=/[A-Z]/g,y=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),b="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function w(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let i;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=function(t,e){return function(r,i,n,s){const o=Array.isArray(n.children),a=(0,p.PW)(r);return e(i,n,s,o,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(r,e.jsxDEV)}else{if("function"!=typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");n=e.jsx,s=e.jsxs,i=function(t,e,r,i){const o=Array.isArray(r.children)?s:n;return i?o(e,r,i):o(e,r)}}var n,s;const o={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?A.JW:A.qy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},a=B(o,t,void 0);return a&&"string"!=typeof a?a:o.create(t,o.Fragment,{children:a||void 0},void 0)}function B(t,e,r){return"element"===e.type?function(t,e,r){const i=t.schema;let n=i;"svg"===e.tagName.toLowerCase()&&"html"===i.space&&(n=A.JW,t.schema=n),t.ancestors.push(e);const s=F(t,e.tagName,!1),o=function(t,e){const r={};let i,n;for(n in e.properties)if("children"!==n&&f.call(e.properties,n)){const s=S(t,n,e.properties[n]);if(s){const[n,o]=s;t.tableCellAlignToStyle&&"align"===n&&"string"==typeof o&&v.has(e.tagName)?i=o:r[n]=o}}return i&&((r.style||(r.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=i),r}(t,e);let l=E(t,e);return y.has(e.tagName)&&(l=l.filter(function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&a(e.value):a(e));var e})),x(t,o,s,e),C(o,l),t.ancestors.pop(),t.schema=i,t.create(e,s,o,r)}(t,e,r):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return(0,n.ok)("ExpressionStatement"===r.type),t.evaluater.evaluateExpression(r.expression)}T(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,r){const i=t.schema;let s=i;"svg"===e.name&&"html"===i.space&&(s=A.JW,t.schema=s),t.ancestors.push(e);const o=null===e.name?t.Fragment:F(t,e.name,!0),a=function(t,e){const r={};for(const i of e.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&t.evaluater){const e=i.data.estree.body[0];(0,n.ok)("ExpressionStatement"===e.type);const s=e.expression;(0,n.ok)("ObjectExpression"===s.type);const o=s.properties[0];(0,n.ok)("SpreadElement"===o.type),Object.assign(r,t.evaluater.evaluateExpression(o.argument))}else T(t,e.position);else{const s=i.name;let o;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&t.evaluater){const e=i.value.data.estree.body[0];(0,n.ok)("ExpressionStatement"===e.type),o=t.evaluater.evaluateExpression(e.expression)}else T(t,e.position);else o=null===i.value||i.value;r[s]=o}return r}(t,e),l=E(t,e);return x(t,a,o,e),C(a,l),t.ancestors.pop(),t.schema=i,t.create(e,o,a,r)}(t,e,r):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);T(t,e.position)}(t,e):"root"===e.type?function(t,e,r){const i={};return C(i,E(t,e)),t.create(e,t.Fragment,i,r)}(t,e,r):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function x(t,e,r,i){"string"!=typeof r&&r!==t.Fragment&&t.passNode&&(e.node=i)}function C(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function E(t,e){const r=[];let i=-1;const n=t.passKeys?new Map:g;for(;++i<e.children.length;){const s=e.children[i];let o;if(t.passKeys){const t="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(t){const e=n.get(t)||0;o=t+"-"+e,n.set(t,e+1)}}const a=B(t,s,o);void 0!==a&&r.push(a)}return r}function S(t,e,r){const n=(0,l.I)(t.schema,e);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?(0,i.A)(r):(0,c.A)(r)),"style"===n.property){let e="object"==typeof r?r:function(t,e){try{return u(e,{reactCompat:!0})}catch(e){if(t.ignoreInvalidStyle)return{};const r=e,i=new d.o("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=b+"#cannot-parse-style-attribute",i}}(t,String(r));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let r;for(r in t)f.call(t,r)&&(e[I(r)]=t[r]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&n.space?h.H[n.property]||n.property:n.attribute,r]}}function F(t,e,r){let i;if(r)if(e.includes(".")){const t=e.split(".");let r,o=-1;for(;++o<t.length;){const e=(0,s.UU)(t[o])?{type:"Identifier",name:t[o]}:{type:"Literal",value:t[o]};r=r?{type:"MemberExpression",object:r,property:e,computed:Boolean(o&&"Literal"===e.type),optional:!1}:e}(0,n.ok)(r,"always a result"),i=r}else i=(0,s.UU)(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else i={type:"Literal",value:e};if("Literal"===i.type){const e=i.value;return f.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(i);T(t)}function T(t,e){const r=new d.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=b+"#cannot-handle-mdx-estrees-without-createevaluater",r}function I(t){let e=t.replace(m,_);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function _(t){return"-"+t.toLowerCase()}},17770(t,e,r){"use strict";function i(t){const e=t&&"object"==typeof t&&"text"===t.type?t.value||"":t;return"string"==typeof e&&""===e.replace(/[ \t\n\f\r]/g,"")}r.d(e,{m:()=>i})},37519(t,e,r){"use strict";r.d(e,{$:()=>i});const i={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]}},52076(t,e,r){"use strict";r.d(e,{Ay:()=>sa});class i{constructor(t,e,r,i){this.left=t,this.top=e,this.width=r,this.height=i}add(t,e,r,n){return new i(this.left+t,this.top+e,this.width+r,this.height+n)}static fromClientRect(t,e){return new i(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)}static fromDOMRectList(t,e){const r=Array.from(e);let n=r.find(t=>0!==t.width);return n||(n=r.find(t=>0!==t.height)),!n&&r.length>0&&(n=r[0]),n?new i(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):i.EMPTY}}i.EMPTY=new i(0,0,0,0);const n=(t,e)=>i.fromClientRect(t,e.getBoundingClientRect());for(var s=function(t){for(var e=[],r=0,i=t.length;r<i;){var n=t.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){var s=t.charCodeAt(r++);56320==(64512&s)?e.push(((1023&n)<<10)+(1023&s)+65536):(e.push(n),r--)}else e.push(n)}return e},o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var i=[],n=-1,s="";++n<r;){var o=t[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===r||i.length>16384)&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return s},a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<64;A++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(A)]=A;for(var l="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<64;h++)l["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(h)]=h;for(var c=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},u=function(){function t(t,e,r,i,n,s){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=i,this.index=n,this.data=s}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<64;d++)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(d)]=d;var f,g,m,y,v,b,w,B,x=10,C=13,E=15,S=17,F=18,T=19,I=20,_=21,k=22,L=24,P=25,N=26,D=27,M=28,O=30,U=32,Q=33,R=34,H=35,j=37,V=38,G=39,z=40,K=42,W=[9001,65288],Y="×",X="÷",q=(y=function(t){var e,r,i,n,s,o=.75*t.length,a=t.length,A=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var h="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(h)?h:new Uint8Array(h);for(e=0;e<a;e+=4)r=l[t.charCodeAt(e)],i=l[t.charCodeAt(e+1)],n=l[t.charCodeAt(e+2)],s=l[t.charCodeAt(e+3)],c[A++]=r<<2|i>>4,c[A++]=(15&i)<<4|n>>2,c[A++]=(3&n)<<6|63&s;return h}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),v=Array.isArray(y)?function(t){for(var e=t.length,r=[],i=0;i<e;i+=4)r.push(t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]);return r}(y):new Uint32Array(y),b=Array.isArray(y)?function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r.push(t[i+1]<<8|t[i]);return r}(y):new Uint16Array(y),w=c(b,12,v[4]/2),B=2===v[5]?c(b,(24+v[4])/2):(f=v,g=Math.ceil((24+v[4])/4),f.slice?f.slice(g,m):new Uint32Array(Array.prototype.slice.call(f,g,m))),new u(v[0],v[1],v[2],v[3],w,B)),$=[O,36],J=[1,2,3,5],Z=[x,8],tt=[D,N],et=J.concat(Z),rt=[V,G,z,R,H],it=[E,C],nt=function(t,e,r,i){var n=i[r];if(Array.isArray(t)?-1!==t.indexOf(n):t===n)for(var s=r;s<=i.length;){if((A=i[++s])===e)return!0;if(A!==x)break}if(n===x)for(s=r;s>0;){var o=i[--s];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var a=r;a<=i.length;){var A;if((A=i[++a])===e)return!0;if(A!==x)break}if(o!==x)break}return!1},st=function(t,e){for(var r=t;r>=0;){var i=e[r];if(i!==x)return i;r--}return 0},ot=function(t,e,r,i,n){if(0===r[i])return Y;var s=i-1;if(Array.isArray(n)&&!0===n[s])return Y;var o=s-1,a=s+1,A=e[s],l=o>=0?e[o]:0,h=e[a];if(2===A&&3===h)return Y;if(-1!==J.indexOf(A))return"!";if(-1!==J.indexOf(h))return Y;if(-1!==Z.indexOf(h))return Y;if(8===st(s,e))return X;if(11===q.get(t[s]))return Y;if((A===U||A===Q)&&11===q.get(t[a]))return Y;if(7===A||7===h)return Y;if(9===A)return Y;if(-1===[x,C,E].indexOf(A)&&9===h)return Y;if(-1!==[S,F,T,L,M].indexOf(h))return Y;if(st(s,e)===k)return Y;if(nt(23,k,s,e))return Y;if(nt([S,F],_,s,e))return Y;if(nt(12,12,s,e))return Y;if(A===x)return X;if(23===A||23===h)return Y;if(16===h||16===A)return X;if(-1!==[C,E,_].indexOf(h)||14===A)return Y;if(36===l&&-1!==it.indexOf(A))return Y;if(A===M&&36===h)return Y;if(h===I)return Y;if(-1!==$.indexOf(h)&&A===P||-1!==$.indexOf(A)&&h===P)return Y;if(A===D&&-1!==[j,U,Q].indexOf(h)||-1!==[j,U,Q].indexOf(A)&&h===N)return Y;if(-1!==$.indexOf(A)&&-1!==tt.indexOf(h)||-1!==tt.indexOf(A)&&-1!==$.indexOf(h))return Y;if(-1!==[D,N].indexOf(A)&&(h===P||-1!==[k,E].indexOf(h)&&e[a+1]===P)||-1!==[k,E].indexOf(A)&&h===P||A===P&&-1!==[P,M,L].indexOf(h))return Y;if(-1!==[P,M,L,S,F].indexOf(h))for(var c=s;c>=0;){if((u=e[c])===P)return Y;if(-1===[M,L].indexOf(u))break;c--}if(-1!==[D,N].indexOf(h))for(c=-1!==[S,F].indexOf(A)?o:s;c>=0;){var u;if((u=e[c])===P)return Y;if(-1===[M,L].indexOf(u))break;c--}if(V===A&&-1!==[V,G,R,H].indexOf(h)||-1!==[G,R].indexOf(A)&&-1!==[G,z].indexOf(h)||-1!==[z,H].indexOf(A)&&h===z)return Y;if(-1!==rt.indexOf(A)&&-1!==[I,N].indexOf(h)||-1!==rt.indexOf(h)&&A===D)return Y;if(-1!==$.indexOf(A)&&-1!==$.indexOf(h))return Y;if(A===L&&-1!==$.indexOf(h))return Y;if(-1!==$.concat(P).indexOf(A)&&h===k&&-1===W.indexOf(t[a])||-1!==$.concat(P).indexOf(h)&&A===F)return Y;if(41===A&&41===h){for(var p=r[s],d=1;p>0&&41===e[--p];)d++;if(d%2!=0)return Y}return A===U&&h===Q?Y:X},at=function(){function t(t,e,r,i){this.codePoints=t,this.required="!"===e,this.start=r,this.end=i}return t.prototype.slice=function(){return o.apply(void 0,this.codePoints.slice(this.start,this.end))},t}();const At=45,lt=43,ht=-1,ct=t=>t>=48&&t<=57,ut=t=>ct(t)||t>=65&&t<=70||t>=97&&t<=102,pt=t=>10===t||9===t||32===t,dt=t=>(t=>(t=>t>=97&&t<=122)(t)||(t=>t>=65&&t<=90)(t))(t)||(t=>t>=128)(t)||95===t,ft=t=>dt(t)||ct(t)||t===At,gt=t=>t>=0&&t<=8||11===t||t>=14&&t<=31||127===t,mt=(t,e)=>92===t&&10!==e,yt=(t,e,r)=>t===At?dt(e)||mt(e,r):!!dt(t)||!(92!==t||!mt(t,e)),vt=(t,e,r)=>t===lt||t===At?!!ct(e)||46===e&&ct(r):ct(46===t?e:t),bt=t=>{let e=0,r=1;t[e]!==lt&&t[e]!==At||(t[e]===At&&(r=-1),e++);const i=[];for(;ct(t[e]);)i.push(t[e++]);const n=i.length?parseInt(o(...i),10):0;46===t[e]&&e++;const s=[];for(;ct(t[e]);)s.push(t[e++]);const a=s.length,A=a?parseInt(o(...s),10):0;69!==t[e]&&101!==t[e]||e++;let l=1;t[e]!==lt&&t[e]!==At||(t[e]===At&&(l=-1),e++);const h=[];for(;ct(t[e]);)h.push(t[e++]);const c=h.length?parseInt(o(...h),10):0;return r*(n+A*Math.pow(10,-a))*Math.pow(10,l*c)},wt={type:2},Bt={type:3},xt={type:4},Ct={type:13},Et={type:8},St={type:21},Ft={type:9},Tt={type:10},It={type:11},_t={type:12},kt={type:14},Lt={type:23},Pt={type:1},Nt={type:25},Dt={type:24},Mt={type:26},Ot={type:27},Ut={type:28},Qt={type:29},Rt={type:31},Ht={type:32};class jt{constructor(){this._value=[]}write(t){this._value=this._value.concat(s(t))}read(){const t=[];let e=this.consumeToken();for(;e!==Ht;)t.push(e),e=this.consumeToken();return t}consumeToken(){const t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(ft(e)||mt(r,i)){const t=yt(e,r,i)?2:1;return{type:5,value:this.consumeName(),flags:t}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ct;break;case 39:return this.consumeStringToken(39);case 40:return wt;case 41:return Bt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kt;break;case lt:if(vt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return xt;case At:const n=t,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(vt(n,s,o))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(yt(n,s,o))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===At&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Dt;break;case 46:if(vt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(42===t&&(t=this.consumeCodePoint(),47===t))return this.consumeToken();if(t===ht)return this.consumeToken()}break;case 58:return Mt;case 59:return Ot;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),Nt;break;case 64:const a=this.peekCodePoint(0),A=this.peekCodePoint(1),l=this.peekCodePoint(2);if(yt(a,A,l))return{type:7,value:this.consumeName()};break;case 91:return Ut;case 92:if(mt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Qt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Et;break;case 123:return It;case 125:return _t;case 117:case 85:const h=this.peekCodePoint(0),c=this.peekCodePoint(1);return h!==lt||!ut(c)&&63!==c||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ft;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),St;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Tt;break;case ht:return Ht}return pt(t)?(this.consumeWhiteSpace(),Rt):ct(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):dt(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:o(t)}}consumeCodePoint(){const t=this._value.shift();return void 0===t?-1:t}reconsumeCodePoint(t){this._value.unshift(t)}peekCodePoint(t){return t>=this._value.length?-1:this._value[t]}consumeUnicodeRangeToken(){const t=[];let e=this.consumeCodePoint();for(;ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();let r=!1;for(;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r)return{type:30,start:parseInt(o(...t.map(t=>63===t?48:t)),16),end:parseInt(o(...t.map(t=>63===t?70:t)),16)};const i=parseInt(o(...t),16);if(this.peekCodePoint(0)===At&&ut(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const t=[];for(;ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();return{type:30,start:i,end:parseInt(o(...t),16)}}return{type:30,start:i,end:i}}consumeIdentLikeToken(){const t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}}consumeUrlToken(){const t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ht)return{type:22,value:""};const e=this.peekCodePoint(0);if(39===e||34===e){const t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ht||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Lt)}for(;;){const e=this.consumeCodePoint();if(e===ht||41===e)return{type:22,value:o(...t)};if(pt(e))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ht||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:o(...t)}):(this.consumeBadUrlRemnants(),Lt);if(34===e||39===e||40===e||gt(e))return this.consumeBadUrlRemnants(),Lt;if(92===e){if(!mt(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Lt;t.push(this.consumeEscapedCodePoint())}else t.push(e)}}consumeWhiteSpace(){for(;pt(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const t=this.consumeCodePoint();if(41===t||t===ht)return;mt(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(t){let e="";for(;t>0;){const r=Math.min(5e4,t);e+=o(...this._value.splice(0,r)),t-=r}return this._value.shift(),e}consumeStringToken(t){let e="",r=0;for(;;){const i=this._value[r];if(i===ht||void 0===i||i===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(10===i)return this._value.splice(0,r),Pt;if(92===i){const t=this._value[r+1];t!==ht&&void 0!==t&&(10===t?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):mt(i,t)&&(e+=this.consumeStringSlice(r),e+=o(this.consumeEscapedCodePoint()),r=-1))}r++}}consumeNumber(){const t=[];let e=4,r=this.peekCodePoint(0);for(r!==lt&&r!==At||t.push(this.consumeCodePoint());ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);let i=this.peekCodePoint(1);if(46===r&&ct(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),i=this.peekCodePoint(1);const n=this.peekCodePoint(2);if((69===r||101===r)&&((i===lt||i===At)&&ct(n)||ct(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[bt(t),e]}consumeNumericToken(){const[t,e]=this.consumeNumber(),r=this.peekCodePoint(0),i=this.peekCodePoint(1),n=this.peekCodePoint(2);return yt(r,i,n)?{type:15,number:t,flags:e,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}}consumeEscapedCodePoint(){const t=this.consumeCodePoint();if(ut(t)){let e=o(t);for(;ut(this.peekCodePoint(0))&&e.length<6;)e+=o(this.consumeCodePoint());pt(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return 0===r||(t=>t>=55296&&t<=57343)(r)||r>1114111?65533:r}return t===ht?65533:t}consumeName(){let t="";for(;;){const e=this.consumeCodePoint();if(ft(e))t+=o(e);else{if(!mt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=o(this.consumeEscapedCodePoint())}}}}class Vt{constructor(t){this._tokens=t}static create(t){const e=new jt;return e.write(t),new Vt(e.read())}static parseValue(t){return Vt.create(t).parseComponentValue()}static parseValues(t){return Vt.create(t).parseComponentValues()}parseComponentValue(){let t=this.consumeToken();for(;31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);const e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const t=[];for(;;){const e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}}consumeComponentValue(){const t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t}consumeSimpleBlock(t){const e={type:t,values:[]};let r=this.consumeToken();for(;;){if(32===r.type||Jt(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}}consumeFunction(t){const e={name:t.value,values:[],type:18};for(;;){const t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}}consumeToken(){const t=this._tokens.shift();return void 0===t?Ht:t}reconsumeToken(t){this._tokens.unshift(t)}}const Gt=t=>15===t.type,zt=t=>17===t.type,Kt=t=>20===t.type,Wt=t=>0===t.type,Yt=(t,e)=>Kt(t)&&t.value===e,Xt=t=>31!==t.type,qt=t=>31!==t.type&&4!==t.type,$t=t=>{const e=[];let r=[];return t.forEach(t=>{if(4===t.type){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(r),void(r=[])}31!==t.type&&r.push(t)}),r.length&&e.push(r),e},Jt=(t,e)=>11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type,Zt=t=>17===t.type||15===t.type,te=t=>16===t.type||Zt(t),ee=t=>t.length>1?[t[0],t[1]]:[t[0]],re={type:17,number:0,flags:4},ie={type:16,number:50,flags:4},ne={type:16,number:100,flags:4},se=(t,e,r)=>{const[i,n]=t;return[oe(i,e),oe(void 0!==n?n:i,r)]},oe=(t,e)=>{if(16===t.type)return t.number/100*e;if(Gt(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},ae="grad",Ae="turn",le=(t,e)=>{if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case ae:return Math.PI/200*e.number;case"rad":return e.number;case Ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},he=t=>15===t.type&&("deg"===t.unit||t.unit===ae||"rad"===t.unit||t.unit===Ae),ce=t=>{switch(t.filter(Kt).map(t=>t.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[re,re];case"to top":case"bottom":return ue(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[re,ne];case"to right":case"left":return ue(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ne,ne];case"to bottom":case"top":return ue(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ne,re];case"to left":case"right":return ue(270)}return 0},ue=t=>Math.PI*t/180,pe=t=>!(255&t),de=t=>{const e=255&t,r=255&t>>8,i=255&t>>16,n=255&t>>24;return e<255?`rgba(${n},${i},${r},${e/255})`:`rgb(${n},${i},${r})`},fe=(t,e,r,i)=>(t<<24|e<<16|r<<8|Math.round(255*i))>>>0,ge=(t,e)=>{if(17===t.type)return t.number;if(16===t.type){const r=3===e?1:255;return 3===e?t.number/100*r:Math.round(t.number/100*r)}return 0},me=t=>"from"===(20===t[0].type?t[0].value:"unknown"),ye=(t,e,r)=>Math.min(Math.max(t,e),r),ve=(t,e)=>[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]],be=([t,e,r,i])=>{const n=Ue([t,e,r]);return fe(ye(Math.round(255*n[0]),0,255),ye(Math.round(255*n[1]),0,255),ye(Math.round(255*n[2]),0,255),i)},we=t=>{const e=Me([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])},Be=(t,e)=>{const r=e.filter(qt),[i,n,s,o]=r;return[(17===i.type?ue(i.number):le(0,i))/(2*Math.PI),te(n)?n.number/100:0,te(s)?s.number/100:0,void 0!==o&&te(o)?oe(o,1):1]},xe=(t,e)=>{if(me(e))throw new Error("Relative color not supported for hsl()");const[r,i,n,s]=Be(0,e),o=_e([r,i,n]);return fe(255*o[0],255*o[1],255*o[2],0===i?1:s)},Ce=t=>{const e=t.filter(qt);return[te(e[0])?e[0].number:0,te(e[1])?e[1].number:0,zt(e[2])||Gt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Ee=t=>{const e=t.filter(qt);return[16===e[0].type?e[0].number/100:zt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:zt(e[1])?e[1].number:0,zt(e[2])||Gt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Se=t=>{const e=t.filter(qt);return[16===e[0].type?e[0].number/100:zt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:zt(e[1])?e[1].number:0,zt(e[2])||Gt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Fe=t=>ve([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),Te=t=>ve([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),Ie=(t,e,r)=>(r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<.5?e:r<2/3?6*(e-t)*(2/3-r)+t:t),_e=([t,e,r])=>{if(0===e)return[255*r,255*r,255*r];const i=r<=.5?r*(e+1):r+e-r*e,n=2*r-i;return[Ie(n,i,t+1/3),Ie(n,i,t),Ie(n,i,t-1/3)]},ke=([t,e,r])=>(e<0&&(e=0),isNaN(r)&&(r=0),[t,e*Math.cos(r*Math.PI/180),e*Math.sin(r*Math.PI/180)]),Le=t=>{const e=ve([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t).map(t=>t**3);return ve([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],e)},Pe=t=>{const e=(t[0]+16)/116,r=t[1]/500+e,i=e-t[2]/200,n=24389/27,s=24/116,o=[.3457*(r>s?r**3:(116*r-16)/n)/.3585,t[0]>8?e**3:t[0]/n,.2958*(i>s?i**3:(116*i-16)/n)/.3585];return Te([o[0],o[1],o[2]])},Ne=t=>t,De=t=>we([t[0],t[1],t[2],t[3]]),Me=t=>ve([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),Oe=t=>ve([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),Ue=t=>t.map(t=>{const e=t<0?-1:1,r=Math.abs(t);return r>.0031308?e*(1.055*r**(1/2.4)-.055):12.92*t}),Qe=t=>t.map(t=>{const e=t<0?-1:1,r=Math.abs(t);return r<=.04045?t/12.92:e*((r+.055)/1.055)**2.4}),Re=1.09929682680944,He=.018053968510807,je=(t,e)=>{if(18===e.type){const r=Ye[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return r(t,e.values)}if(5===e.type){const[t,r,i,n]=Ve(e);return fe(t,r,i,n)}if(20===e.type){const t=qe[e.value.toUpperCase()];if(void 0!==t)return t}return qe.TRANSPARENT},Ve=t=>{if(3===t.value.length){const e=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3);return[parseInt(e+e,16),parseInt(r+r,16),parseInt(i+i,16),1]}if(4===t.value.length){const e=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3),n=t.value.substring(3,4);return[parseInt(e+e,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(n+n,16)/255]}if(6===t.value.length){const e=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6);return[parseInt(e,16),parseInt(r,16),parseInt(i,16),1]}if(8===t.value.length){const e=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6),n=t.value.substring(6,8);return[parseInt(e,16),parseInt(r,16),parseInt(i,16),parseInt(n,16)/255]}return[0,0,0,1]},Ge=(t,e)=>{const r=e.filter(qt);if(me(r))throw new Error("Relative color not supported for rgb()");if(3===r.length){const[t,e,i]=r.map(ge);return fe(t,e,i,1)}if(4===r.length){const[t,e,i,n]=r.map(ge);return fe(t,e,i,n)}if(5===r.length&&6===r[3].type&&"/"===r[3].value){const t=ge(r[0],0),e=ge(r[1],1),i=ge(r[2],2),n=ge(r[4],3);return fe(t,e,i,n)}return 0},ze={srgb:t=>fe(ye(Math.round(255*t[0]),0,255),ye(Math.round(255*t[1]),0,255),ye(Math.round(255*t[2]),0,255),ye(t[3],0,1)),"srgb-linear":be,"display-p3":t=>{const e=(t=>{const e=[t[0],t[1],t[2]].map(t=>{const e=t<0?-1:1;return t*e<=.04045?t/12.92:e*((t+.055)/1.055)**2.4||0});var r;return r=[e[0],e[1],e[2]],ve([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],r)})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},"a98-rgb":t=>{const e=Me((r=(t=>{const e=t.map(t=>(t<0?-1:1)*Math.abs(t)**(563/256));return[e[0],e[1],e[2]]})([t[0],t[1],t[2]]),ve([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],r)));var r;return be([e[0],e[1],e[2],t[3]])},"prophoto-rgb":t=>{const e=(t=>{const e=[t[0],t[1],t[2]].map(t=>t<16/512?t/16:t**1.8);return Te((r=[e[0],e[1],e[2]],ve([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],r)));var r})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},xyz:De,"xyz-d50":t=>{const e=(t=>Te([t[0],t[1],t[2]]))([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},"xyz-d65":De,rec2020:t=>{const e=(t=>{const e=(t=>t.map(function(t){return t<4.5*He?t/4.5:Math.pow((t+Re-1)/Re,1/.45)}))([t[0],t[1],t[2]]);return r=[e[0],e[1],e[2]],ve([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],r);var r})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])}},Ke={rgb:(t,e)=>{const r=e.filter(qt);if(3===r.length){const[t,e,i]=r.map(ge),n=Qe([t/255,e/255,i/255]),[s,o,a]=Oe([n[0],n[1],n[2]]);return[s,o,a,1]}if(4===r.length){const[t,e,i,n]=r.map(ge),s=Qe([t/255,e/255,i/255]),[o,a,A]=Oe([s[0],s[1],s[2]]);return[o,a,A,n]}return[0,0,0,1]},hsl:(t,e)=>{const[r,i,n,s]=Be(0,e),o=Qe(_e([r,i,n])),[a,A,l]=Oe([o[0],o[1],o[2]]);return[a,A,l,s]},lab:(t,e)=>{const[r,i,n,s]=Ee(e),[o,a,A]=Pe([r,i,n]);return[o,a,A,s]},lch:(t,e)=>{const[r,i,n,s]=Ce(e),[o,a,A]=Pe(ke([r,i,n]));return[o,a,A,s]},oklab:(t,e)=>{const[r,i,n,s]=Ee(e),[o,a,A]=Le([r,i,n]);return[o,a,A,s]},oklch:(t,e)=>{const[r,i,n,s]=Se(e),[o,a,A]=Le(ke([r,i,n]));return[o,a,A,s]}},We={srgb:t=>{const[e,r,i]=Ue(Me([t[0],t[1],t[2]]));return[e,r,i,t[3]]},"srgb-linear":t=>{const[e,r,i]=Me([t[0],t[1],t[2]]);return[ye(Math.round(255*e),0,255),ye(Math.round(255*r),0,255),ye(Math.round(255*i),0,255),t[3]]},"display-p3":t=>{const[e,r,i]=(s=[t[0],t[1],t[2]],n=ve([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],s),Ue(n));var n,s;return[e,r,i,t[3]]},"a98-rgb":t=>{const[e,r,i]=(t=>{const e=t.map(t=>(t<0?-1:1)*Math.abs(t)**(256/563));return[e[0],e[1],e[2]]})((n=[t[0],t[1],t[2]],ve([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],n)));var n;return[e,r,i,t[3]]},"prophoto-rgb":t=>{const[e,r,i]=(n=Fe([t[0],t[1],t[2]]),ve([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],n).map(t=>t>1/512?t**(1/1.8):16*t));var n;return[e,r,i,t[3]]},xyz:Ne,"xyz-d50":t=>{const[e,r,i]=Fe([t[0],t[2],t[3]]);return[e,r,i,t[3]]},"xyz-d65":Ne,rec2020:t=>{const[e,r,i]=(t=>t.map(function(t){return t>=He?Re*Math.pow(t,.45)-(Re-1):4.5*t}))((n=[t[0],t[1],t[2]],ve([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],n)));var n;return[e,r,i,t[3]]}},Ye={hsl:xe,hsla:xe,rgb:Ge,rgba:Ge,lch:(t,e)=>{if(me(e.filter(qt)))throw new Error("Relative color not supported for lch()");const[r,i,n,s]=Ce(e),o=Ue(Me(Pe(ke([r,i,n]))));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},oklch:(t,e)=>{if(me(e.filter(qt)))throw new Error("Relative color not supported for oklch()");const[r,i,n,s]=Se(e),o=Ue(Me(Le(ke([r,i,n]))));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},oklab:(t,e)=>{if(me(e.filter(qt)))throw new Error("Relative color not supported for oklab()");const[r,i,n,s]=Ee(e),o=Ue(Me(Le([r,i,n])));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},lab:(t,e)=>{if(me(e.filter(qt)))throw new Error("Relative color not supported for lab()");const[r,i,n,s]=Ee(e),o=Ue(Me(Pe([r,i,n])));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},color:(t,e)=>{const r=e.filter(qt),i=20===r[0].type?r[0].value:"unknown";if(!me(r)){const t=ze[i];if(void 0===t)throw new Error(`Attempting to parse an unsupported color space "${i}" for color() function`);return t([zt(r[1])?r[1].number:0,zt(r[2])?r[2].number:0,zt(r[3])?r[3].number:0,r.length>4&&6===r[4].type&&"/"===r[4].value&&zt(r[5])?r[5].number:1])}{const e=(t,e)=>{if(zt(e))return e.number;if(Kt(e))return t["r"===(r=e.value)||"x"===r?0:"g"===r||"y"===r?1:2];var r;const i=t=>{const e=t.filter(qt);let r="(";for(const t of e)r+=18===t.type&&"calc"===t.name?i(t.values):zt(t)?t.number:6===t.type||Kt(t)?t.value:"";return r+=")",r};if(18===e.type){const r=e.values.filter(qt);if("calc"===e.name){const e=i(r).replace(/r|x/,t[0].toString()).replace(/g|y/,t[1].toString()).replace(/b|z/,t[2].toString());return new Function("return "+e)()}}return null},i=18===r[1].type?r[1].name:Kt(r[1])||5===r[1].type?"rgb":"unknown",n=Kt(r[2])?r[2].value:"unknown";let s=18===r[1].type?r[1].values:Kt(r[1])?[r[1]]:[];if(Kt(r[1])){if(void 0===qe[r[1].value.toUpperCase()])throw new Error("Attempting to use unknown color in relative color 'from'");{const e=Xe(t,r[1].value),i=255&e;s=[{type:17,number:255&e>>24,flags:1},{type:17,number:255&e>>16,flags:1},{type:17,number:255&e>>8,flags:1},{type:17,number:i>1?i/255:i,flags:1}]}}else if(5===r[1].type){const[t,e,i,n]=Ve(r[1]);s=[{type:17,number:t,flags:1},{type:17,number:e,flags:1},{type:17,number:i,flags:1},{type:17,number:n>1?n/255:n,flags:1}]}if(0===s.length)throw new Error("Attempting to use unknown color in relative color 'from'");if("unknown"===n)throw new Error("Attempting to use unknown colorspace in relative color 'to'");const o=Ke[i],a=We[n],A=ze[n];if(void 0===o)throw new Error(`Attempting to parse an unsupported color space "${i}" for color() function`);if(void 0===a)throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);const l=a(o(t,s)),h=e(l,r[3]),c=e(l,r[4]),u=e(l,r[5]),p=r.length>6&&6===r[6].type&&"/"===r[6].value&&zt(r[7])?r[7].number:1;if(null===h||null===c||null===u)throw new Error("Invalid relative color in color() function");return A([h,c,u,p])}}},Xe=(t,e)=>je(t,Vt.create(e).parseComponentValue()),qe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},$e={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(Kt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Je={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ze=(t,e)=>{const r=je(t,e[0]),i=e[1];return i&&te(i)?{color:r,stop:i}:{color:r,stop:null}},tr=(t,e)=>{const r=t[0],i=t[t.length-1];null===r.stop&&(r.stop=re),null===i.stop&&(i.stop=ne);const n=[];let s=0;for(let r=0;r<t.length;r++){const i=t[r].stop;if(null!==i){const t=oe(i,e);t>s?n.push(t):n.push(s),s=t}else n.push(null)}let o=null;for(let t=0;t<n.length;t++){const e=n[t];if(null===e)null===o&&(o=t);else if(null!==o){const r=t-o,i=(e-n[o-1])/(r+1);for(let t=1;t<=r;t++)n[o+t-1]=i*t;o=null}}return t.map(({color:t},r)=>({color:t,stop:Math.max(Math.min(1,n[r]/e),0)}))},er=(t,e,r)=>{const i="number"==typeof t?t:((t,e,r)=>{const i=e/2,n=r/2,s=oe(t[0],e)-i,o=n-oe(t[1],r);return(Math.atan2(o,s)+2*Math.PI)%(2*Math.PI)})(t,e,r),n=Math.abs(e*Math.sin(i))+Math.abs(r*Math.cos(i)),s=e/2,o=r/2,a=n/2,A=Math.sin(i-Math.PI/2)*a,l=Math.cos(i-Math.PI/2)*a;return[n,s-l,s+l,o-A,o+A]},rr=(t,e)=>Math.sqrt(t*t+e*e),ir=(t,e,r,i,n)=>[[0,0],[0,e],[t,0],[t,e]].reduce((t,e)=>{const[s,o]=e,a=rr(r-s,i-o);return(n?a<t.optimumDistance:a>t.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner,nr=(t,e,r,i,n)=>{let s=0,o=0;switch(t.size){case 0:0===t.shape?s=o=Math.min(Math.abs(e),Math.abs(e-i),Math.abs(r),Math.abs(r-n)):1===t.shape&&(s=Math.min(Math.abs(e),Math.abs(e-i)),o=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(0===t.shape)s=o=Math.min(rr(e,r),rr(e,r-n),rr(e-i,r),rr(e-i,r-n));else if(1===t.shape){const t=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(e),Math.abs(e-i)),[a,A]=ir(i,n,e,r,!0);s=rr(a-e,(A-r)/t),o=t*s}break;case 1:0===t.shape?s=o=Math.max(Math.abs(e),Math.abs(e-i),Math.abs(r),Math.abs(r-n)):1===t.shape&&(s=Math.max(Math.abs(e),Math.abs(e-i)),o=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(0===t.shape)s=o=Math.max(rr(e,r),rr(e,r-n),rr(e-i,r),rr(e-i,r-n));else if(1===t.shape){const t=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(e),Math.abs(e-i)),[a,A]=ir(i,n,e,r,!1);s=rr(a-e,(A-r)/t),o=t*s}}return Array.isArray(t.size)&&(s=oe(t.size[0],i),o=2===t.size.length?oe(t.size[1],n):s),[s,o]},sr=(t,e)=>{let r=ue(180);const i=[];return $t(e).forEach((e,n)=>{if(0===n){const t=e[0];if(20===t.type&&-1!==["top","left","right","bottom"].indexOf(t.value))return void(r=ce(e));if(he(t))return void(r=(le(0,t)+ue(270))%ue(360))}const s=Ze(t,e);i.push(s)}),{angle:r,stops:i,type:1}},or="closest-side",ar="farthest-side",Ar="closest-corner",lr="farthest-corner",hr="circle",cr="ellipse",ur="cover",pr="contain",dr=(t,e)=>{let r=0,i=3;const n=[],s=[];return $t(e).forEach((e,o)=>{let a=!0;if(0===o?a=e.reduce((t,e)=>{if(Kt(e))switch(e.value){case"center":return s.push(ie),!1;case"top":case"left":return s.push(re),!1;case"right":case"bottom":return s.push(ne),!1}else if(te(e)||Zt(e))return s.push(e),!1;return t},a):1===o&&(a=e.reduce((t,e)=>{if(Kt(e))switch(e.value){case hr:return r=0,!1;case cr:return r=1,!1;case pr:case or:return i=0,!1;case ar:return i=1,!1;case Ar:return i=2,!1;case ur:case lr:return i=3,!1}else if(Zt(e)||te(e))return Array.isArray(i)||(i=[]),i.push(e),!1;return t},a)),a){const r=Ze(t,e);n.push(r)}}),{size:i,shape:r,stops:n,position:s,type:2}},fr=t=>1===t.type,gr=t=>2===t.type,mr=(t,e)=>{if(22===e.type){const r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(18===e.type){const r=yr[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return r(t,e.values)}throw new Error(`Unsupported image type ${e.type}`)},yr={"linear-gradient":(t,e)=>{let r=ue(180);const i=[];return $t(e).forEach((e,n)=>{if(0===n){const t=e[0];if(20===t.type&&"to"===t.value)return void(r=ce(e));if(he(t))return void(r=le(0,t))}const s=Ze(t,e);i.push(s)}),{angle:r,stops:i,type:1}},"-moz-linear-gradient":sr,"-ms-linear-gradient":sr,"-o-linear-gradient":sr,"-webkit-linear-gradient":sr,"radial-gradient":(t,e)=>{let r=0,i=3;const n=[],s=[];return $t(e).forEach((e,o)=>{let a=!0;if(0===o){let t=!1;a=e.reduce((e,n)=>{if(t)if(Kt(n))switch(n.value){case"center":return s.push(ie),e;case"top":case"left":return s.push(re),e;case"right":case"bottom":return s.push(ne),e}else(te(n)||Zt(n))&&s.push(n);else if(Kt(n))switch(n.value){case hr:return r=0,!1;case cr:return r=1,!1;case"at":return t=!0,!1;case or:return i=0,!1;case ur:case ar:return i=1,!1;case pr:case Ar:return i=2,!1;case lr:return i=3,!1}else if(Zt(n)||te(n))return Array.isArray(i)||(i=[]),i.push(n),!1;return e},a)}if(a){const r=Ze(t,e);n.push(r)}}),{size:i,shape:r,stops:n,position:s,type:2}},"-moz-radial-gradient":dr,"-ms-radial-gradient":dr,"-o-radial-gradient":dr,"-webkit-radial-gradient":dr,"-webkit-gradient":(t,e)=>{const r=ue(180),i=[];let n=1;return $t(e).forEach((e,r)=>{const s=e[0];if(0===r){if(Kt(s)&&"linear"===s.value)return void(n=1);if(Kt(s)&&"radial"===s.value)return void(n=2)}if(18===s.type)if("from"===s.name){const e=je(t,s.values[0]);i.push({stop:re,color:e})}else if("to"===s.name){const e=je(t,s.values[0]);i.push({stop:ne,color:e})}else if("color-stop"===s.name){const e=s.values.filter(qt);if(2===e.length){const r=je(t,e[1]),n=e[0];zt(n)&&i.push({stop:{type:16,number:100*n.number,flags:n.flags},color:r})}}}),1===n?{angle:(r+ue(180))%ue(360),stops:i,type:n}:{size:3,shape:0,stops:i,position:[],type:n}}},vr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const r=e[0];return 20===r.type&&"none"===r.value?[]:e.filter(t=>qt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!yr[t.name])}(t)).map(e=>mr(t,e))}},br={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(Kt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},wr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,e)=>$t(e).map(t=>t.map(t=>{return 18===(e=t).type&&"calc"===e.name?((t,e=0)=>{const r=t=>{let i="";for(const n of t)if(31!==n.type)if(18===n.type){if("calc"!==n.name)return null;{const t=r(n.values);if(null===t)return null;i+=`(${t})`}}else if(17===n.type)i+=n.number.toString();else if(15===n.type)"px"===n.unit?i+=n.number.toString():"rem"===n.unit||"em"===n.unit?i+=(16*n.number).toString():i+=n.number.toString();else if(16===n.type)i+=(n.number/100*e).toString();else if(6===n.type){const t=n.value;"+"===t||"-"===t||"*"===t||"/"===t?i+=` ${t} `:"("===t?i+="(":")"===t&&(i+=")")}return i};try{const e=r(t.values);if(null===e||""===e.trim())return null;const i=new Function("return "+e)();if("number"==typeof i&&!isNaN(i))return{type:17,number:i,flags:4}}catch(t){return null}return null})(t,0):te(t)?t:null;var e}).filter(t=>null!==t)).map(ee)},Br={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,e)=>$t(e).map(t=>t.filter(Kt).map(t=>t.value).join(" ")).map(xr)},xr=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};var Cr;!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Cr||(Cr={}));const Er={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,e)=>$t(e).map(t=>t.filter(Sr))},Sr=t=>Kt(t)||te(t),Fr=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Tr=Fr("top"),Ir=Fr("right"),_r=Fr("bottom"),kr=Fr("left"),Lr=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(t,e)=>ee(e.filter(te))}),Pr=Lr("top-left"),Nr=Lr("top-right"),Dr=Lr("bottom-right"),Mr=Lr("bottom-left"),Or=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),Ur=Or("top"),Qr=Or("right"),Rr=Or("bottom"),Hr=Or("left"),jr=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(t,e)=>Gt(e)?e.number:0}),Vr=jr("top"),Gr=jr("right"),zr=jr("bottom"),Kr=jr("left"),Wr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Yr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,e)=>"rtl"===e?1:0},Xr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).reduce((t,e)=>t|qr(e.value),0)},qr=t=>{switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},$r={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Jr={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,e)=>20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0};var Zr;!function(t){t.NORMAL="normal",t.STRICT="strict"}(Zr||(Zr={}));const ti={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"strict"===e?Zr.STRICT:Zr.NORMAL},ei={name:"line-height",initialValue:"normal",prefix:!1,type:4},ri=(t,e)=>Kt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:te(t)?oe(t,e):e,ii={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,e)=>20===e.type&&"none"===e.value?null:mr(t,e)},ni={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,e)=>"inside"===e?0:1},si={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},oi=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),ai=oi("top"),Ai=oi("right"),li=oi("bottom"),hi=oi("left"),ci={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},ui={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"break-word"===e?"break-word":"normal"},pi=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),di=pi("top"),fi=pi("right"),gi=pi("bottom"),mi=pi("left"),yi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},vi={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},bi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Yt(e[0],"none")?[]:$t(e).map(e=>{const r={color:qe.TRANSPARENT,offsetX:re,offsetY:re,blur:re};let i=0;for(let n=0;n<e.length;n++){const s=e[n];Zt(s)?(0===i?r.offsetX=s:1===i?r.offsetY=s:r.blur=s,i++):r.color=je(t,s)}return r})},wi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Bi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>{if(20===e.type&&"none"===e.value)return null;if(18===e.type){const r=xi[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return r(t,e.values)}return null}},xi={matrix:(t,e)=>{const r=e.filter(t=>17===t.type).map(t=>t.number);return 6===r.length?r:null},matrix3d:(t,e)=>{const r=e.filter(t=>17===t.type).map(t=>t.number),[i,n,{},{},s,o,{},{},{},{},{},{},a,A]=r;return 16===r.length?[i,n,s,o,a,A]:null},rotate:(t,e)=>{if(1!==e.length)return null;const r=e[0];let i=0;if(17===r.type&&0===r.number)i=0;else{if(15!==r.type)return null;i=le(0,r)}const n=Math.cos(i),s=Math.sin(i);return[n,s,-s,n,0,0]}},Ci={type:16,number:50,flags:4},Ei=[Ci,Ci],Si={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,e)=>{const r=e.filter(te);return 2!==r.length?Ei:[r[0],r[1]]}},Fi={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,e)=>20===e.type&&"none"===e.value?null:17===e.type&&0===e.number?0:15===e.type?180*le(0,e)/Math.PI:null},Ti={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};var Ii;!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Ii||(Ii={}));const _i={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"break-all":return Ii.BREAK_ALL;case"keep-all":return Ii.KEEP_ALL;default:return Ii.NORMAL}}},ki={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(20===e.type)return{auto:!0,order:0};if(zt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Li=(t,e)=>{if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},Pi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,e)=>zt(e)?e.number:1},Ni={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Di={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>0!==t)},Mi={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},Oi={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(Kt(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return Gt(e)?e.number:"auto"}},Ui={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>Kt(e)&&"auto"===e.value?"auto":Gt(e)?e.number:"auto"},Qi={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,e)=>{const r=[],i=[];return e.forEach(t=>{switch(t.type){case 20:case 0:r.push(t.value);break;case 17:r.push(t.number.toString());break;case 4:i.push(r.join(" ")),r.length=0}}),r.length&&i.push(r.join(" ")),i.map(t=>-1===t.indexOf(" ")?t:`'${t}'`)}},Ri={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Hi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,e)=>zt(e)?e.number:Kt(e)&&"bold"===e.value?700:400},ji={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.filter(Kt).map(t=>t.value)},Vi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Gi=(t,e)=>0!==(t&e),zi={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const r=e[0];return 20===r.type&&"none"===r.value?[]:e}},Ki={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const r=e[0];if(20===r.type&&"none"===r.value)return null;const i=[],n=e.filter(Xt);for(let t=0;t<n.length;t++){const e=n[t],r=n[t+1];if(20===e.type){const t=r&&zt(r)?r.number:1;i.push({counter:e.value,increment:t})}}return i}},Wi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return[];const r=[],i=e.filter(Xt);for(let t=0;t<i.length;t++){const e=i[t],n=i[t+1];if(Kt(e)&&"none"!==e.value){const t=n&&zt(n)?n.number:0;r.push({counter:e.value,reset:t})}}return r}},Yi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,e)=>e.filter(Gt).map(t=>Li(0,t))},Xi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const r=e[0];if(20===r.type&&"none"===r.value)return null;const i=[],n=e.filter(Wt);if(n.length%2!=0)return null;for(let t=0;t<n.length;t+=2){const e=n[t].value,r=n[t+1].value;i.push({open:e,close:r})}return i}},qi=(t,e,r)=>{if(!t)return"";const i=t[Math.min(e,t.length-1)];return i?r?i.open:i.close:""},$i={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Yt(e[0],"none")?[]:$t(e).map(e=>{const r={color:255,offsetX:re,offsetY:re,blur:re,spread:re,inset:!1};let i=0;for(let n=0;n<e.length;n++){const s=e[n];Yt(s,"inset")?r.inset=!0:Zt(s)?(0===i?r.offsetX=s:1===i?r.offsetY=s:2===i?r.blur=s:r.spread=s,i++):r.color=je(t,s)}return r})},Ji={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,e)=>{const r=[];return e.filter(Kt).forEach(t=>{switch(t.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}}),[0,1,2].forEach(t=>{-1===r.indexOf(t)&&r.push(t)}),r}},Zi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},tn={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,e)=>Gt(e)?e.number:0},en={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>20===e.type&&"none"===e.value?0:17===e.type?Math.max(0,Math.floor(e.number)):0},rn={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).reduce((t,e)=>t|nn(e.value),0)},nn=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},sn={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,e)=>"ellipsis"===e?1:0};class on{constructor(t,e){this.animationDuration=ln(t,Yi,e.animationDuration),this.backgroundClip=ln(t,$e,e.backgroundClip),this.backgroundColor=ln(t,Je,e.backgroundColor),this.backgroundImage=ln(t,vr,e.backgroundImage),this.backgroundOrigin=ln(t,br,e.backgroundOrigin),this.backgroundPosition=ln(t,wr,e.backgroundPosition),this.backgroundRepeat=ln(t,Br,e.backgroundRepeat),this.backgroundSize=ln(t,Er,e.backgroundSize),this.borderTopColor=ln(t,Tr,e.borderTopColor),this.borderRightColor=ln(t,Ir,e.borderRightColor),this.borderBottomColor=ln(t,_r,e.borderBottomColor),this.borderLeftColor=ln(t,kr,e.borderLeftColor),this.borderTopLeftRadius=ln(t,Pr,e.borderTopLeftRadius),this.borderTopRightRadius=ln(t,Nr,e.borderTopRightRadius),this.borderBottomRightRadius=ln(t,Dr,e.borderBottomRightRadius),this.borderBottomLeftRadius=ln(t,Mr,e.borderBottomLeftRadius),this.borderTopStyle=ln(t,Ur,e.borderTopStyle),this.borderRightStyle=ln(t,Qr,e.borderRightStyle),this.borderBottomStyle=ln(t,Rr,e.borderBottomStyle),this.borderLeftStyle=ln(t,Hr,e.borderLeftStyle),this.borderTopWidth=ln(t,Vr,e.borderTopWidth),this.borderRightWidth=ln(t,Gr,e.borderRightWidth),this.borderBottomWidth=ln(t,zr,e.borderBottomWidth),this.borderLeftWidth=ln(t,Kr,e.borderLeftWidth),this.boxShadow=ln(t,$i,e.boxShadow),this.color=ln(t,Wr,e.color),this.direction=ln(t,Yr,e.direction),this.display=ln(t,Xr,e.display),this.float=ln(t,$r,e.cssFloat),this.fontFamily=ln(t,Qi,e.fontFamily),this.fontSize=ln(t,Ri,e.fontSize),this.fontStyle=ln(t,Vi,e.fontStyle),this.fontVariant=ln(t,ji,e.fontVariant),this.fontWeight=ln(t,Hi,e.fontWeight),this.letterSpacing=ln(t,Jr,e.letterSpacing),this.lineBreak=ln(t,ti,e.lineBreak),this.lineHeight=ln(t,ei,e.lineHeight),this.listStyleImage=ln(t,ii,e.listStyleImage),this.listStylePosition=ln(t,ni,e.listStylePosition),this.listStyleType=ln(t,si,e.listStyleType),this.marginTop=ln(t,ai,e.marginTop),this.marginRight=ln(t,Ai,e.marginRight),this.marginBottom=ln(t,li,e.marginBottom),this.marginLeft=ln(t,hi,e.marginLeft),this.opacity=ln(t,Pi,e.opacity);const r=ln(t,ci,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=ln(t,ui,e.overflowWrap),this.paddingTop=ln(t,di,e.paddingTop),this.paddingRight=ln(t,fi,e.paddingRight),this.paddingBottom=ln(t,gi,e.paddingBottom),this.paddingLeft=ln(t,mi,e.paddingLeft),this.paintOrder=ln(t,Ji,e.paintOrder),this.position=ln(t,vi,e.position),this.textAlign=ln(t,yi,e.textAlign),this.textDecorationColor=ln(t,Ni,e.textDecorationColor??e.color),this.textDecorationLine=ln(t,Di,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=ln(t,Mi,e.textDecorationStyle),this.textDecorationThickness=ln(t,Oi,e.textDecorationThickness),this.textUnderlineOffset=ln(t,Ui,e.textUnderlineOffset),this.textShadow=ln(t,bi,e.textShadow),this.textTransform=ln(t,wi,e.textTransform),this.textOverflow=ln(t,sn,e.textOverflow),this.transform=ln(t,Bi,e.transform),this.transformOrigin=ln(t,Si,e.transformOrigin),this.rotate=ln(t,Fi,e.rotate),this.visibility=ln(t,Ti,e.visibility),this.webkitTextStrokeColor=ln(t,Zi,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=ln(t,tn,e.webkitTextStrokeWidth),this.webkitLineClamp=ln(t,en,e.webkitLineClamp),this.wordBreak=ln(t,_i,e.wordBreak),this.zIndex=ln(t,ki,e.zIndex),this.objectFit=ln(t,rn,e.objectFit)}isVisible(){return this.display>0&&this.opacity>0&&0===this.visibility}isTransparent(){return pe(this.backgroundColor)}isTransformed(){return null!==this.transform||null!==this.rotate}isPositioned(){return 0!==this.position}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return 0!==this.float}isInlineLevel(){return Gi(this.display,4)||Gi(this.display,33554432)||Gi(this.display,268435456)||Gi(this.display,536870912)||Gi(this.display,67108864)||Gi(this.display,134217728)}}class an{constructor(t,e){this.content=ln(t,zi,e.content),this.quotes=ln(t,Xi,e.quotes)}}class An{constructor(t,e){this.counterIncrement=ln(t,Ki,e.counterIncrement),this.counterReset=ln(t,Wi,e.counterReset)}}const ln=(t,e,r)=>{const i=new jt,n=null!=r?r.toString():e.initialValue;i.write(n);const s=new Vt(i.read());switch(e.type){case 2:const r=s.parseComponentValue();return e.parse(t,Kt(r)?r.value:e.initialValue);case 0:return e.parse(t,s.parseComponentValue());case 1:return e.parse(t,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return le(0,s.parseComponentValue());case"color":return je(t,s.parseComponentValue());case"image":return mr(t,s.parseComponentValue());case"length":const e=s.parseComponentValue();return Zt(e)?e:re;case"length-percentage":const r=s.parseComponentValue();return te(r)?r:re;case"time":return Li(0,s.parseComponentValue())}}},hn=(t,e)=>{const r=(t=>{switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}})(t);return 1===r||e===r};class cn{constructor(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,hn(e,3),this.styles=new on(t,window.getComputedStyle(e,null)),ls(e)&&(this.styles.animationDuration.some(t=>t>0)&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none"),null!==this.styles.rotate&&(e.style.rotate="none")),this.bounds=n(this.context,e),hn(e,4)&&(this.flags|=16)}}for(var un="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn<64;pn++)un["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(pn)]=pn;for(var dn=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},fn=function(){function t(t,e,r,i,n,s){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=i,this.index=n,this.data=s}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),gn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mn=0;mn<64;mn++)gn["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(mn)]=mn;var yn=8,vn=9,bn=11,wn=12,Bn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var i=[],n=-1,s="";++n<r;){var o=t[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===r||i.length>16384)&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return s},xn=function(){var t,e,r,i=function(t){var e,r,i,n,s,o=.75*t.length,a=t.length,A=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),h=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)r=un[t.charCodeAt(e)],i=un[t.charCodeAt(e+1)],n=un[t.charCodeAt(e+2)],s=un[t.charCodeAt(e+3)],h[A++]=r<<2|i>>4,h[A++]=(15&i)<<4|n>>2,h[A++]=(3&n)<<6|63&s;return l}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),n=Array.isArray(i)?function(t){for(var e=t.length,r=[],i=0;i<e;i+=4)r.push(t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]);return r}(i):new Uint32Array(i),s=Array.isArray(i)?function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r.push(t[i+1]<<8|t[i]);return r}(i):new Uint16Array(i),o=dn(s,12,n[4]/2),a=2===n[5]?dn(s,(24+n[4])/2):(t=n,e=Math.ceil((24+n[4])/4),t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r)));return new fn(n[0],n[1],n[2],n[3],o,a)}(),Cn="×",En=function(t){return xn.get(t)},Sn=function(t,e,r){var i=r-2,n=e[i],s=e[r-1],o=e[r];if(2===s&&3===o)return Cn;if(2===s||3===s||4===s)return"÷";if(2===o||3===o||4===o)return"÷";if(s===yn&&-1!==[yn,vn,bn,wn].indexOf(o))return Cn;if(!(s!==bn&&s!==vn||o!==vn&&10!==o))return Cn;if((s===wn||10===s)&&10===o)return Cn;if(13===o||5===o)return Cn;if(7===o)return Cn;if(1===s)return Cn;if(13===s&&14===o){for(;5===n;)n=e[--i];if(14===n)return Cn}if(15===s&&15===o){for(var a=0;15===n;)a++,n=e[--i];if(a%2==0)return Cn}return"÷"},Fn=function(t){var e=function(t){for(var e=[],r=0,i=t.length;r<i;){var n=t.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){var s=t.charCodeAt(r++);56320==(64512&s)?e.push(((1023&n)<<10)+(1023&s)+65536):(e.push(n),r--)}else e.push(n)}return e}(t),r=e.length,i=0,n=0,s=e.map(En);return{next:function(){if(i>=r)return{done:!0,value:null};for(var t=Cn;i<r&&(t=Sn(0,s,++i))===Cn;);if(t!==Cn||i===r){var o=Bn.apply(null,e.slice(n,i));return n=i,{value:o,done:!1}}return{done:!0,value:null}}}};const Tn=t=>0===t[0]&&255===t[1]&&0===t[2]&&255===t[3],In=(t,e,r,i,n)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",r.toString()),a.setAttributeNS(null,"y",i.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(n),o},_n=t=>new Promise((e,r)=>{const i=new Image;i.onload=()=>e(i),i.onerror=r,i.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(t))}`}),kn={get SUPPORT_RANGE_BOUNDS(){const t=(t=>{if(t.createRange){const e=t.createRange();if(e.getBoundingClientRect){const r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);const i=e.getBoundingClientRect(),n=Math.round(i.height);if(t.body.removeChild(r),123===n)return!0}}return!1})(document);return Object.defineProperty(kn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=kn.SUPPORT_RANGE_BOUNDS&&(t=>{const e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);const r=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";const i=e.firstChild,n=s(i.data).map(t=>o(t));let a=0,A={};const l=n.every((t,e)=>{r.setStart(i,a),r.setEnd(i,a+t.length);const n=r.getBoundingClientRect();a+=t.length;const s=n.x>A.x||n.y>A.y;return A=n,0===e||s});return t.body.removeChild(e),l})(document);return Object.defineProperty(kn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=(t=>{const e=new Image,r=t.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(e,0,0),r.toDataURL()}catch(t){return!1}return!0})(document);return Object.defineProperty(kn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t="function"==typeof Array.from&&"function"==typeof window.fetch?(t=>{const e=t.createElement("canvas"),r=100;e.width=r,e.height=r;const i=e.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);const n=new Image,s=e.toDataURL();n.src=s;const o=In(r,r,0,0,n);return i.fillStyle="red",i.fillRect(0,0,r,r),_n(o).then(e=>{i.drawImage(e,0,0);const n=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);const o=t.createElement("div");return o.style.backgroundImage=`url(${s})`,o.style.height="100px",Tn(n)?_n(In(r,r,0,0,o)):Promise.reject(!1)}).then(t=>(i.drawImage(t,0,0),Tn(i.getImageData(0,0,r,r).data))).catch(()=>!1)})(document):Promise.resolve(!1);return Object.defineProperty(kn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=void 0!==(new Image).crossOrigin;return Object.defineProperty(kn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(kn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(kn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(kn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class Ln{constructor(t,e){this.text=t,this.bounds=e}}const Pn=(t,e,r)=>{const i=t.ownerDocument;if(!i)throw new Error("Node has no owner document");const n=i.createRange();return n.setStart(t,e),n.setEnd(t,e+r),n},Nn=t=>{if(kn.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(t=>t.segment)}return function(t){for(var e,r=Fn(t),i=[];!(e=r.next()).done;)e.value&&i.push(e.value.slice());return i}(t)},Dn=[32,160,4961,65792,65793,4153,4241],Mn=(t,e)=>{const r=function(t,e){var r=s(t),i=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=function(t,e){void 0===e&&(e="strict");var r=[],i=[],n=[];return t.forEach(function(t,s){var o=q.get(t);if(o>50?(n.push(!0),o-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return i.push(s),r.push(16);if(4===o||11===o){if(0===s)return i.push(s),r.push(O);var a=r[s-1];return-1===et.indexOf(a)?(i.push(i[s-1]),r.push(a)):(i.push(s),r.push(O))}return i.push(s),31===o?r.push("strict"===e?_:j):o===K||29===o?r.push(O):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?r.push(j):r.push(O):void r.push(o)}),[i,r,n]}(t,e.lineBreak),i=r[0],n=r[1],s=r[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(t){return-1!==[P,O,K].indexOf(t)?j:t}));var o="keep-all"===e.wordBreak?s.map(function(e,r){return e&&t[r]>=19968&&t[r]<=40959}):void 0;return[i,n,o]}(r,e),n=i[0],o=i[1],a=i[2],A=r.length,l=0,h=0;return{next:function(){if(h>=A)return{done:!0,value:null};for(var t=Y;h<A&&(t=ot(r,o,n,++h,a))===Y;);if(t!==Y||h===A){var e=new at(r,t,l,h);return l=h,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[];let n;for(;!(n=r.next()).done;)if(n.value){const t=n.value.slice(),e=s(t);let r="";e.forEach(t=>{-1===Dn.indexOf(t)?r+=o(t):(r.length&&i.push(r),i.push(o(t)),r="")}),r.length&&i.push(r)}return i};class On{constructor(t,e,r){this.text=Un(e.data,r.textTransform),this.textBounds=((t,e,r,s)=>{const o=((t,e)=>0!==e.letterSpacing?Nn(t):((t,e)=>{if(kn.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(t=>t.segment)}return Mn(t,e)})(t,e))(e,r),a=[];let A=0;return o.forEach(e=>{if(r.textDecorationLine.length||e.trim().length>0)if(kn.SUPPORT_RANGE_BOUNDS){const r=Pn(s,A,e.length).getClientRects();if(r.length>1){const r=Nn(e);let n=0;r.forEach(e=>{a.push(new Ln(e,i.fromDOMRectList(t,Pn(s,n+A,e.length).getClientRects()))),n+=e.length})}else a.push(new Ln(e,i.fromDOMRectList(t,r)))}else{const r=s.splitText(e.length);a.push(new Ln(e,((t,e)=>{const r=e.ownerDocument;if(r){const i=r.createElement("html2canvaswrapper");i.appendChild(e.cloneNode(!0));const s=e.parentNode;if(s){s.replaceChild(i,e);const r=n(t,i);return i.firstChild&&s.replaceChild(i.firstChild,i),r}}return i.EMPTY})(t,s))),s=r}else kn.SUPPORT_RANGE_BOUNDS||(s=s.splitText(e.length));A+=e.length}),a})(t,this.text,r,e)}}const Un=(t,e)=>{switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Qn,Rn);case 2:return t.toUpperCase();default:return t}},Qn=/(^|\s|:|-|\(|\))([a-z])/g,Rn=(t,e,r)=>t.length>0?e+r.toUpperCase():t;class Hn extends cn{constructor(t,e){super(t,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}}class jn extends cn{constructor(t,e){super(t,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Vn extends cn{constructor(t,e){super(t,e);const r=new XMLSerializer,i=n(t,e);e.setAttribute("width",`${i.width}px`),e.setAttribute("height",`${i.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(r.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class Gn extends cn{constructor(t,e){super(t,e),this.value=e.value}}class zn extends cn{constructor(t,e){super(t,e),this.start=e.start,this.reversed="boolean"==typeof e.reversed&&!0===e.reversed}}const Kn=[{type:15,flags:0,unit:"px",number:3}],Wn=[{type:16,flags:0,number:50}],Yn="checkbox",Xn="radio",qn=707406591;class $n extends cn{constructor(t,e){var r,n;switch(super(t,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=(t=>{const e="password"===t.type?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e})(e),this.isPlaceholder=0===(r=e).value.length&&!!r.placeholder,this.type!==Yn&&this.type!==Xn||(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=(n=this.bounds).width>n.height?new i(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width<n.height?new i(n.left,n.top+(n.height-n.width)/2,n.width,n.width):n),this.type){case Yn:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Kn;break;case Xn:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Wn}}}class Jn extends cn{constructor(t,e){super(t,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class Zn extends cn{constructor(t,e){super(t,e),this.value=e.value}}class ts extends cn{constructor(t,e){super(t,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){this.tree=ns(t,e.contentWindow.document.documentElement);const r=e.contentWindow.document.documentElement?Xe(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):qe.TRANSPARENT,i=e.contentWindow.document.body?Xe(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):qe.TRANSPARENT;this.backgroundColor=pe(r)?pe(i)?this.styles.backgroundColor:i:r}}catch(t){}}}const es=["OL","UL","MENU"],rs=(t,e,r,i)=>{for(let n,s=e.firstChild;s;s=n)if(n=s.nextSibling,as(s)&&s.data.length>0)r.textNodes.push(new On(t,s,r.styles));else if(As(s))if(Cs(s)&&s.assignedNodes)s.assignedNodes().forEach(e=>rs(t,e,r,i));else{const e=is(t,s);e.styles.isVisible()&&(ss(s,e,i)?e.flags|=4:os(e.styles)&&(e.flags|=2),-1!==es.indexOf(s.tagName)&&(e.flags|=8),r.elements.push(e),s.slot,s.shadowRoot?rs(t,s.shadowRoot,e,i):Bs(s)||ds(s)||xs(s)||rs(t,s,e,i))}},is=(t,e)=>ys(e)?new Hn(t,e):gs(e)?new jn(t,e):ds(e)?new Vn(t,e):cs(e)?new Gn(t,e):us(e)?new zn(t,e):ps(e)?new $n(t,e):xs(e)?new Jn(t,e):Bs(e)?new Zn(t,e):vs(e)?new ts(t,e):new cn(t,e),ns=(t,e)=>{const r=is(t,e);return r.flags|=4,rs(t,e,r,r),r},ss=(t,e,r)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fs(t)&&r.styles.isTransparent(),os=t=>!(!t.isPositioned()&&!t.isFloating())||Gi(t.display,268435456)||Gi(t.display,33554432)||Gi(t.display,536870912)||Gi(t.display,134217728),as=t=>t.nodeType===Node.TEXT_NODE,As=t=>t.nodeType===Node.ELEMENT_NODE,ls=t=>As(t)&&void 0!==t.style&&!hs(t),hs=t=>"object"==typeof t.className,cs=t=>"LI"===t.tagName,us=t=>"OL"===t.tagName,ps=t=>"INPUT"===t.tagName,ds=t=>"svg"===t.tagName,fs=t=>"BODY"===t.tagName,gs=t=>"CANVAS"===t.tagName,ms=t=>"VIDEO"===t.tagName,ys=t=>"IMG"===t.tagName,vs=t=>"IFRAME"===t.tagName,bs=t=>"STYLE"===t.tagName,ws=t=>"SCRIPT"===t.tagName,Bs=t=>"TEXTAREA"===t.tagName,xs=t=>"SELECT"===t.tagName,Cs=t=>"SLOT"===t.tagName,Es=t=>t.tagName.indexOf("-")>0;class Ss{constructor(){this.counters={}}getCounterValue(t){const e=this.counters[t];return e&&e.length?e[e.length-1]:1}getCounterValues(t){return this.counters[t]||[]}pop(t){t.forEach(t=>this.counters[t].pop())}parse(t){const e=t.counterIncrement,r=t.counterReset;let i=!0;null!==e&&e.forEach(t=>{const e=this.counters[t.counter];e&&0!==t.increment&&(i=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=t.increment)});const n=[];return i&&r.forEach(t=>{let e=this.counters[t.counter];n.push(t.counter),e||(e=this.counters[t.counter]=[]),e.push(t.reset)}),n}}const Fs={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ts={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Is={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_s={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ks=(t,e,r,i,n,s)=>t<e||t>r?Rs(t,n,s.length>0):i.integers.reduce((e,r,n)=>{for(;t>=r;)t-=r,e+=i.values[n];return e},"")+s,Ls=(t,e,r,i)=>{let n="";do{r||t--,n=i(t)+n,t/=e}while(t*e>=e);return n},Ps=(t,e,r,i,n)=>{const s=r-e+1;return(t<0?"-":"")+(Ls(Math.abs(t),s,i,t=>o(Math.floor(t%s)+e))+n)},Ns=(t,e,r=". ")=>{const i=e.length;return Ls(Math.abs(t),i,!1,t=>e[Math.floor(t%i)])+r},Ds=(t,e,r,i,n,s)=>{if(t<-9999||t>9999)return Rs(t,4,n.length>0);let o=Math.abs(t),a=n;if(0===o)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const n=o%10;0===n&&Gi(s,1)&&""!==a?a=e[n]+a:n>1||1===n&&0===i||1===n&&1===i&&Gi(s,2)||1===n&&1===i&&Gi(s,4)&&t>100||1===n&&i>1&&Gi(s,8)?a=e[n]+(i>0?r[i-1]:"")+a:1===n&&i>0&&(a=r[i-1]+a),o=Math.floor(o/10)}return(t<0?i:"")+a},Ms="十百千萬",Os="拾佰仟萬",Us="マイナス",Qs="마이너스",Rs=(t,e,r)=>{const i=r?". ":"",n=r?"、":"",s=r?", ":"",o=r?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const e=Ps(t,48,57,!0,i);return e.length<4?`0${e}`:e;case 4:return Ns(t,"〇一二三四五六七八九",n);case 6:return ks(t,1,3999,Fs,3,i).toLowerCase();case 7:return ks(t,1,3999,Fs,3,i);case 8:return Ps(t,945,969,!1,i);case 9:return Ps(t,97,122,!1,i);case 10:return Ps(t,65,90,!1,i);case 11:return Ps(t,1632,1641,!0,i);case 12:case 49:return ks(t,1,9999,Ts,3,i);case 35:return ks(t,1,9999,Ts,3,i).toLowerCase();case 13:return Ps(t,2534,2543,!0,i);case 14:case 30:return Ps(t,6112,6121,!0,i);case 15:return Ns(t,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ns(t,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Ds(t,"零一二三四五六七八九",Ms,"負",n,14);case 47:return Ds(t,"零壹貳參肆伍陸柒捌玖",Os,"負",n,15);case 42:return Ds(t,"零一二三四五六七八九",Ms,"负",n,14);case 41:return Ds(t,"零壹贰叁肆伍陆柒捌玖",Os,"负",n,15);case 26:return Ds(t,"〇一二三四五六七八九","十百千万",Us,n,0);case 25:return Ds(t,"零壱弐参四伍六七八九","拾百千万",Us,n,7);case 31:return Ds(t,"영일이삼사오육칠팔구","십백천만",Qs,s,7);case 33:return Ds(t,"零一二三四五六七八九","十百千萬",Qs,s,0);case 32:return Ds(t,"零壹貳參四五六七八九","拾百千",Qs,s,7);case 18:return Ps(t,2406,2415,!0,i);case 20:return ks(t,1,19999,_s,3,i);case 21:return Ps(t,2790,2799,!0,i);case 22:return Ps(t,2662,2671,!0,i);case 52:return ks(t,1,10999,Is,3,i);case 23:return Ns(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ns(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ps(t,3302,3311,!0,i);case 28:return Ns(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ns(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Ps(t,3792,3801,!0,i);case 37:return Ps(t,6160,6169,!0,i);case 38:return Ps(t,4160,4169,!0,i);case 39:return Ps(t,2918,2927,!0,i);case 40:return Ps(t,1776,1785,!0,i);case 43:return Ps(t,3046,3055,!0,i);case 44:return Ps(t,3174,3183,!0,i);case 45:return Ps(t,3664,3673,!0,i);case 46:return Ps(t,3872,3881,!0,i);default:return Ps(t,48,57,!0,i)}},Hs="data-html2canvas-ignore";class js{constructor(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ss,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const t=(t=>{let e=t;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null})(e);t&&(this.options.iframeContainer=t)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(t,e){const r=Gs(t,e,this.options.iframeContainer);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");const i=t.defaultView.pageXOffset,n=t.defaultView.pageYOffset,s=r.contentWindow,o=s.document,a=Ws(r).then(async()=>{this.scrolledElements.forEach(Js),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)));const t=this.options.onclone,i=this.clonedReferenceElement;return void 0===i?Promise.reject(`Error finding the ${this.referenceElement.nodeName} in the cloned document`):(o.fonts&&o.fonts.ready&&await o.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await Ks(o),"function"==typeof t?Promise.resolve().then(()=>t(o,i)).then(()=>r):r)}),A=o.baseURI;o.open();try{const t=trustedTypes.createPolicy("my-policy",{createHTML:t=>t}),e=qs(document.doctype)+"<html></html>",r=t.createHTML(e);o.write(r)}catch(t){o.write(qs(document.doctype)+"<html></html>")}$s(this.referenceElement.ownerDocument,i,n);const l=o.adoptNode(this.documentElement);return no(l,A),o.replaceChild(l,o.documentElement),o.close(),a}createElementClone(t){if(hn(t,2),gs(t))return this.createCanvasClone(t);if(ms(t))return this.createVideoClone(t);if(bs(t))return this.createStyleClone(t);const e=t.cloneNode(!1);return ys(e)&&(ys(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Es(e)?this.createCustomElementClone(e):e}createCustomElementClone(t){const e=document.createElement("div");if(e.className=t.className,Xs(t.style,e),t.shadowRoot)try{e.attachShadow({mode:"open"})}catch(t){this.context.logger.error("Failed to attach shadow root to custom element clone:",t)}return e}createStyleClone(t){try{const e=t.sheet;if(e&&e.cssRules){const r=[].slice.call(e.cssRules,0).reduce((t,e)=>e&&"string"==typeof e.cssText?t+e.cssText:t,""),i=t.cloneNode(!1);return i.textContent=r,this.options.cspNonce&&(i.nonce=this.options.cspNonce),i}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}const e=t.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(t){if(this.options.inlineImages&&t.ownerDocument){const e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}const e=t.cloneNode(!1);try{e.width=t.width,e.height=t.height;const r=t.getContext("2d"),i=e.getContext("2d",{willReadFrequently:!0});if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{const e=t.getContext("webgl2")??t.getContext("webgl");if(e){const r=e.getContextAttributes();!1===r?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return e}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return e}createVideoClone(t){const e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;const r=e.getContext("2d");try{return r&&(r.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}const i=t.ownerDocument.createElement("canvas");return i.width=t.offsetWidth,i.height=t.offsetHeight,i}appendChildNode(t,e,r){As(e)&&(ws(e)||e.hasAttribute(Hs)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&As(e)&&bs(e)||t.appendChild(this.cloneNode(e,r))}shouldCloneChild(t){return!(As(t)&&(ws(t)||t.hasAttribute(Hs)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t)))}shouldCloneStyleElement(t){return!this.options.copyStyles||!As(t)||!bs(t)}safeAppendClonedChild(t,e,r){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&t.appendChild(this.cloneNode(e,r))}cloneAssignedNodes(t,e,r){t.forEach(t=>{this.safeAppendClonedChild(e,t,r)})}cloneSlotFallbackContent(t,e,r){for(let i=t.firstChild;i;i=i.nextSibling)this.safeAppendClonedChild(e,i,r)}cloneSlotElement(t,e,r){if(!Cs(t))return;const i=t;if("function"!=typeof i.assignedNodes)return this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",t),void this.cloneSlotFallbackContent(t,e,r);const n=i.assignedNodes();if(!n||!Array.isArray(n))return this.context.logger.warn("assignedNodes() did not return a valid array",t),void this.cloneSlotFallbackContent(t,e,r);n.length>0?this.cloneAssignedNodes(n,e,r):this.cloneSlotFallbackContent(t,e,r)}cloneShadowDOMChildren(t,e,r){for(let i=t.firstChild;i;i=i.nextSibling)As(i)&&Cs(i)?this.cloneSlotElement(i,e,r):this.safeAppendClonedChild(e,i,r)}cloneLightDOMChildren(t,e,r){for(let i=t.firstChild;i;i=i.nextSibling)this.appendChildNode(e,i,r)}cloneSlotElementAsLightDOM(t,e,r){if(!Cs(t))return;const i=t;if("function"!=typeof i.assignedNodes){for(let i=t.firstChild;i;i=i.nextSibling)this.appendChildNode(e,i,r);return}const n=i.assignedNodes();if(n&&Array.isArray(n)&&n.length>0)n.forEach(t=>this.appendChildNode(e,t,r));else for(let i=t.firstChild;i;i=i.nextSibling)this.appendChildNode(e,i,r)}cloneShadowDOMAsLightDOM(t,e,r){for(let i=t.firstChild;i;i=i.nextSibling)As(i)&&Cs(i)?this.cloneSlotElementAsLightDOM(i,e,r):this.appendChildNode(e,i,r)}cloneChildNodes(t,e,r){t.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(t.shadowRoot,e.shadowRoot,r),this.cloneLightDOMChildren(t,e,r)):t.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(t.shadowRoot,e,r):this.cloneLightDOMChildren(t,e,r)}cloneNode(t,e){if(as(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);const r=t.ownerDocument.defaultView;if(r&&As(t)&&(ls(t)||hs(t))){const i=this.createElementClone(t);i.style.transitionProperty="none";const n=r.getComputedStyle(t),s=r.getComputedStyle(t,":before"),o=r.getComputedStyle(t,":after");this.referenceElement===t&&ls(i)&&(this.clonedReferenceElement=i),fs(i)&&ro(i,this.options.cspNonce);const a=this.counters.parse(new An(this.context,n)),A=this.resolvePseudoContent(t,i,s,Vs.BEFORE);Es(t)&&(e=!0),ms(t)||this.cloneChildNodes(t,i,e),A&&i.insertBefore(A,i.firstChild);const l=this.resolvePseudoContent(t,i,o,Vs.AFTER);return l&&i.appendChild(l),this.counters.pop(a),(n&&(this.options.copyStyles||hs(t))&&!vs(t)||e)&&Xs(n,i),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([i,t.scrollLeft,t.scrollTop]),(Bs(t)||xs(t))&&(Bs(i)||xs(i))&&(i.value=t.value),i}return t.cloneNode(!1)}resolvePseudoContent(t,e,r,i){if(!r)return;const n=r.content,s=e.ownerDocument;if(!s||!n||"none"===n||"-moz-alt-content"===n||"none"===r.display)return;this.counters.parse(new An(this.context,r));const o=new an(this.context,r),a=s.createElement("html2canvaspseudoelement");Xs(r,a),o.content.forEach(e=>{if(0===e.type)a.appendChild(s.createTextNode(e.value));else if(22===e.type){const t=s.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){const r=e.values.filter(Kt);r.length&&a.appendChild(s.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){const[t,r]=e.values.filter(qt);if(t&&Kt(t)){const e=this.counters.getCounterValue(t.value),i=r&&Kt(r)?si.parse(this.context,r.value):3;a.appendChild(s.createTextNode(Rs(e,i,!1)))}}else if("counters"===e.name){const[t,r,i]=e.values.filter(qt);if(t&&Kt(t)){const e=this.counters.getCounterValues(t.value),n=i&&Kt(i)?si.parse(this.context,i.value):3,o=r&&0===r.type?r.value:"",A=e.map(t=>Rs(t,n,!1)).join(o);a.appendChild(s.createTextNode(A))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(s.createTextNode(qi(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(qi(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(e.value))}}),a.className=`${Zs} ${to}`;const A=i===Vs.BEFORE?` ${Zs}`:` ${to}`;return hs(e)?e.className.baseValue+=A:e.className+=A,a}static destroy(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)}}var Vs;!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Vs||(Vs={}));const Gs=(t,e,r)=>{const i=t.createElement("iframe");return i.className="html2canvas-container",i.style.visibility="hidden",i.style.position="fixed",i.style.left="-10000px",i.style.top="0px",i.style.border="0",i.width=e.width.toString(),i.height=e.height.toString(),i.scrolling="no",i.setAttribute(Hs,"true"),(r||t.body).appendChild(i),i},zs=t=>new Promise(e=>{t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}),Ks=t=>Promise.all([].slice.call(t.images,0).map(zs)),Ws=t=>new Promise((e,r)=>{const i=t.contentWindow;if(!i)return r("No window assigned for iframe");const n=i.document;i.onload=t.onload=()=>{i.onload=t.onload=null;const r=setInterval(()=>{n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(r),e(t))},50)}}),Ys=["all","d","content"],Xs=(t,e)=>{for(let r=t.length-1;r>=0;r--){const i=t.item(r);-1!==Ys.indexOf(i)||i.startsWith("--")||e.style.setProperty(i,t.getPropertyValue(i))}return e},qs=t=>{let e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+=`"${t.publicId}"`),t.systemId&&(e+=`"${t.systemId}"`),e+=">"),e},$s=(t,e,r)=>{t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},Js=([t,e,r])=>{t.scrollLeft=e,t.scrollTop=r},Zs="___html2canvas___pseudoelement_before",to="___html2canvas___pseudoelement_after",eo='{\n    content: "" !important;\n    display: none !important;\n}',ro=(t,e)=>{io(t,`.${Zs}:before${eo}\n         .${to}:after${eo}`,e)},io=(t,e,r)=>{const i=t.ownerDocument;if(i){const n=i.createElement("style");n.textContent=e,r&&(n.nonce=r),t.appendChild(n)}},no=(t,e)=>{const r=t.ownerDocument.createElement("base");r.href=e;const i=t.getElementsByTagName("head").item(0);i?.insertBefore(r,i?.firstChild??null)};class so{static getOrigin(t){const e=so._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"}static isSameOrigin(t){return so.getOrigin(t)===so._origin}static setContext(t){so._link=t.document.createElement("a"),so._origin=so.getOrigin(t.location.href)}}so._origin="about:blank";class oo{constructor(t,e){this.context=t,this._options=e,this._cache={}}addImage(t){const e=Promise.resolve();return this.has(t)?e:po(t)||ho(t)?((this._cache[t]=this.loadImage(t)).catch(()=>{}),e):e}match(t){return this._cache[t]}async loadImage(t){const e="function"==typeof this._options.customIsSameOrigin?await this._options.customIsSameOrigin(t,so.isSameOrigin):so.isSameOrigin(t),r=!co(t)&&!0===this._options.useCORS&&kn.SUPPORT_CORS_IMAGES&&!e,i=!co(t)&&!e&&!po(t)&&"string"==typeof this._options.proxy&&kn.SUPPORT_CORS_XHR&&!r;if(!(e||!1!==this._options.allowTaint||co(t)||po(t)||i||r))return;let n=t;return i&&(n=await this.proxy(n)),this.context.logger.debug(`Added image ${t.substring(0,256)}`),await new Promise((t,e)=>{const i=new Image;i.onload=()=>t(i),i.onerror=e,(uo(n)||r)&&(i.crossOrigin="anonymous"),i.src=n,!0===i.complete&&setTimeout(()=>t(i),500),this._options.imageTimeout>0&&setTimeout(()=>e(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(t){return void 0!==this._cache[t]}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(t){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const r=t.substring(0,256);return new Promise((i,n)=>{const s=kn.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(200===o.status)if("text"===s)i(o.response);else{const t=new FileReader;t.addEventListener("load",()=>i(t.result),!1),t.addEventListener("error",t=>n(t),!1),t.readAsDataURL(o.response)}else n(`Failed to proxy resource ${r} with status code ${o.status}`)},o.onerror=n;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(t)}&responseType=${s}`),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const t=this._options.imageTimeout;o.timeout=t,o.ontimeout=()=>n(`Timed out (${t}ms) proxying ${r}`)}o.send()})}}const ao=/^data:image\/svg\+xml/i,Ao=/^data:image\/.*;base64,/i,lo=/^data:image\/.*/i,ho=t=>kn.SUPPORT_SVG_DRAWING||!fo(t),co=t=>lo.test(t),uo=t=>Ao.test(t),po=t=>"blob"===t.substr(0,4),fo=t=>"svg"===t.substr(-3).toLowerCase()||ao.test(t);class go{constructor(t,e){this.type=0,this.x=t,this.y=e}add(t,e){return new go(this.x+t,this.y+e)}}const mo=(t,e,r)=>new go(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r);class yo{constructor(t,e,r,i){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=i}subdivide(t,e){const r=mo(this.start,this.startControl,t),i=mo(this.startControl,this.endControl,t),n=mo(this.endControl,this.end,t),s=mo(r,i,t),o=mo(i,n,t),a=mo(s,o,t);return e?new yo(this.start,r,s,a):new yo(a,o,n,this.end)}add(t,e){return new yo(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))}reverse(){return new yo(this.end,this.endControl,this.startControl,this.start)}}const vo=t=>1===t.type;class bo{constructor(t){const e=t.styles,r=t.bounds;let[i,n]=se(e.borderTopLeftRadius,r.width,r.height),[s,o]=se(e.borderTopRightRadius,r.width,r.height),[a,A]=se(e.borderBottomRightRadius,r.width,r.height),[l,h]=se(e.borderBottomLeftRadius,r.width,r.height);const c=[];c.push((i+s)/r.width),c.push((l+a)/r.width),c.push((n+h)/r.height),c.push((o+A)/r.height);const u=Math.max(...c);u>1&&(i/=u,n/=u,s/=u,o/=u,a/=u,A/=u,l/=u,h/=u);const p=r.width-s,d=r.height-A,f=r.width-a,g=r.height-h,m=e.borderTopWidth,y=e.borderRightWidth,v=e.borderBottomWidth,b=e.borderLeftWidth,w=oe(e.paddingTop,t.bounds.width),B=oe(e.paddingRight,t.bounds.width),x=oe(e.paddingBottom,t.bounds.width),C=oe(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||n>0?Bo(r.left+b/3,r.top+m/3,i-b/3,n-m/3,wo.TOP_LEFT):new go(r.left+b/3,r.top+m/3),this.topRightBorderDoubleOuterBox=i>0||n>0?Bo(r.left+p,r.top+m/3,s-y/3,o-m/3,wo.TOP_RIGHT):new go(r.left+r.width-y/3,r.top+m/3),this.bottomRightBorderDoubleOuterBox=a>0||A>0?Bo(r.left+f,r.top+d,a-y/3,A-v/3,wo.BOTTOM_RIGHT):new go(r.left+r.width-y/3,r.top+r.height-v/3),this.bottomLeftBorderDoubleOuterBox=l>0||h>0?Bo(r.left+b/3,r.top+g,l-b/3,h-v/3,wo.BOTTOM_LEFT):new go(r.left+b/3,r.top+r.height-v/3),this.topLeftBorderDoubleInnerBox=i>0||n>0?Bo(r.left+2*b/3,r.top+2*m/3,i-2*b/3,n-2*m/3,wo.TOP_LEFT):new go(r.left+2*b/3,r.top+2*m/3),this.topRightBorderDoubleInnerBox=i>0||n>0?Bo(r.left+p,r.top+2*m/3,s-2*y/3,o-2*m/3,wo.TOP_RIGHT):new go(r.left+r.width-2*y/3,r.top+2*m/3),this.bottomRightBorderDoubleInnerBox=a>0||A>0?Bo(r.left+f,r.top+d,a-2*y/3,A-2*v/3,wo.BOTTOM_RIGHT):new go(r.left+r.width-2*y/3,r.top+r.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=l>0||h>0?Bo(r.left+2*b/3,r.top+g,l-2*b/3,h-2*v/3,wo.BOTTOM_LEFT):new go(r.left+2*b/3,r.top+r.height-2*v/3),this.topLeftBorderStroke=i>0||n>0?Bo(r.left+b/2,r.top+m/2,i-b/2,n-m/2,wo.TOP_LEFT):new go(r.left+b/2,r.top+m/2),this.topRightBorderStroke=i>0||n>0?Bo(r.left+p,r.top+m/2,s-y/2,o-m/2,wo.TOP_RIGHT):new go(r.left+r.width-y/2,r.top+m/2),this.bottomRightBorderStroke=a>0||A>0?Bo(r.left+f,r.top+d,a-y/2,A-v/2,wo.BOTTOM_RIGHT):new go(r.left+r.width-y/2,r.top+r.height-v/2),this.bottomLeftBorderStroke=l>0||h>0?Bo(r.left+b/2,r.top+g,l-b/2,h-v/2,wo.BOTTOM_LEFT):new go(r.left+b/2,r.top+r.height-v/2),this.topLeftBorderBox=i>0||n>0?Bo(r.left,r.top,i,n,wo.TOP_LEFT):new go(r.left,r.top),this.topRightBorderBox=s>0||o>0?Bo(r.left+p,r.top,s,o,wo.TOP_RIGHT):new go(r.left+r.width,r.top),this.bottomRightBorderBox=a>0||A>0?Bo(r.left+f,r.top+d,a,A,wo.BOTTOM_RIGHT):new go(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=l>0||h>0?Bo(r.left,r.top+g,l,h,wo.BOTTOM_LEFT):new go(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||n>0?Bo(r.left+b,r.top+m,Math.max(0,i-b),Math.max(0,n-m),wo.TOP_LEFT):new go(r.left+b,r.top+m),this.topRightPaddingBox=s>0||o>0?Bo(r.left+Math.min(p,r.width-y),r.top+m,p>r.width+y?0:Math.max(0,s-y),Math.max(0,o-m),wo.TOP_RIGHT):new go(r.left+r.width-y,r.top+m),this.bottomRightPaddingBox=a>0||A>0?Bo(r.left+Math.min(f,r.width-b),r.top+Math.min(d,r.height-v),Math.max(0,a-y),Math.max(0,A-v),wo.BOTTOM_RIGHT):new go(r.left+r.width-y,r.top+r.height-v),this.bottomLeftPaddingBox=l>0||h>0?Bo(r.left+b,r.top+Math.min(g,r.height-v),Math.max(0,l-b),Math.max(0,h-v),wo.BOTTOM_LEFT):new go(r.left+b,r.top+r.height-v),this.topLeftContentBox=i>0||n>0?Bo(r.left+b+C,r.top+m+w,Math.max(0,i-(b+C)),Math.max(0,n-(m+w)),wo.TOP_LEFT):new go(r.left+b+C,r.top+m+w),this.topRightContentBox=s>0||o>0?Bo(r.left+Math.min(p,r.width+b+C),r.top+m+w,p>r.width+b+C?0:s-b+C,o-(m+w),wo.TOP_RIGHT):new go(r.left+r.width-(y+B),r.top+m+w),this.bottomRightContentBox=a>0||A>0?Bo(r.left+Math.min(f,r.width-(b+C)),r.top+Math.min(d,r.height+m+w),Math.max(0,a-(y+B)),A-(v+x),wo.BOTTOM_RIGHT):new go(r.left+r.width-(y+B),r.top+r.height-(v+x)),this.bottomLeftContentBox=l>0||h>0?Bo(r.left+b+C,r.top+g,Math.max(0,l-(b+C)),h-(v+x),wo.BOTTOM_LEFT):new go(r.left+b+C,r.top+r.height-(v+x))}}var wo;!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(wo||(wo={}));const Bo=(t,e,r,i,n)=>{const s=(Math.sqrt(2)-1)/3*4,o=r*s,a=i*s,A=t+r,l=e+i;switch(n){case wo.TOP_LEFT:return new yo(new go(t,l),new go(t,l-a),new go(A-o,e),new go(A,e));case wo.TOP_RIGHT:return new yo(new go(t,e),new go(t+o,e),new go(A,l-a),new go(A,l));case wo.BOTTOM_RIGHT:return new yo(new go(A,e),new go(A,e+a),new go(t+o,l),new go(t,l));case wo.BOTTOM_LEFT:default:return new yo(new go(A,l),new go(A-o,l),new go(t,e+a),new go(t,e))}},xo=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],Co=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class Eo{constructor(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class So{constructor(t,e){this.path=t,this.target=e,this.type=1}}class Fo{constructor(t){this.opacity=t,this.type=2,this.target=6}}const To=t=>1===t.type,Io=(t,e)=>t.length===e.length&&t.some((t,r)=>t===e[r]);class _o{constructor(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class ko{constructor(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new bo(this.container),this.container.styles.opacity<1&&this.effects.push(new Fo(this.container.styles.opacity)),null!==this.container.styles.rotate){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+oe(t[0],this.container.bounds.width),r=this.container.bounds.top+oe(t[1],this.container.bounds.height),i=this.container.styles.rotate*Math.PI/180,n=Math.cos(i),s=Math.sin(i),o=[n,s,-s,n,0,0];this.effects.push(new Eo(e,r,o))}if(null!==this.container.styles.transform){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+oe(t[0],this.container.bounds.width),r=this.container.bounds.top+oe(t[1],this.container.bounds.height),i=this.container.styles.transform;this.effects.push(new Eo(e,r,i))}if(0!==this.container.styles.overflowX){const t=xo(this.curves),e=Co(this.curves);Io(t,e)?this.effects.push(new So(t,6)):(this.effects.push(new So(t,2)),this.effects.push(new So(e,4)))}}getEffects(t){let e=-1===[2,3].indexOf(this.container.styles.position),r=this.parent;const i=this.effects.slice(0);for(;r;){const t=r.effects.filter(t=>!To(t));if(e||0!==r.container.styles.position||!r.parent){if(e=-1===[2,3].indexOf(r.container.styles.position),0!==r.container.styles.overflowX){const t=xo(r.curves),e=Co(r.curves);Io(t,e)||i.unshift(new So(e,6))}i.unshift(...t)}else i.unshift(...t);r=r.parent}return i.filter(e=>Gi(e.target,t))}}const Lo=(t,e,r,i)=>{t.container.elements.forEach(n=>{const s=Gi(n.flags,4),o=Gi(n.flags,2),a=new ko(n,t);Gi(n.styles.display,2048)&&i.push(a);const A=Gi(n.flags,8)?[]:i;if(s||o){const t=s||n.styles.isPositioned()?r:e,i=new _o(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){const e=n.styles.zIndex.order;if(e<0){let r=0;t.negativeZIndex.some((t,i)=>e>t.element.container.styles.zIndex.order?(r=i,!1):r>0),t.negativeZIndex.splice(r,0,i)}else if(e>0){let r=0;t.positiveZIndex.some((t,i)=>e>=t.element.container.styles.zIndex.order?(r=i+1,!1):r>0),t.positiveZIndex.splice(r,0,i)}else t.zeroOrAutoZIndexOrTransformedOrOpacity.push(i)}else n.styles.isFloating()?t.nonPositionedFloats.push(i):t.nonPositionedInlineLevel.push(i);Lo(a,i,s?i:r,A)}else n.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Lo(a,e,r,A);Gi(n.flags,8)&&Po(n,A)})},Po=(t,e)=>{let r=t instanceof zn?t.start:1;const i=t instanceof zn&&t.reversed;for(let t=0;t<e.length;t++){const n=e[t];n.container instanceof Gn&&"number"==typeof n.container.value&&0!==n.container.value&&(r=n.container.value),n.listValue=Rs(r,n.container.styles.listStyleType,!0),r+=i?-1:1}},No=(t,e)=>{switch(e){case 0:return Mo(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Mo(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Mo(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return Mo(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Do=(t,e)=>{const r=[];return vo(t)?r.push(t.subdivide(.5,!1)):r.push(t),vo(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},Mo=(t,e,r,i)=>{const n=[];return vo(t)?n.push(t.subdivide(.5,!1)):n.push(t),vo(r)?n.push(r.subdivide(.5,!0)):n.push(r),vo(i)?n.push(i.subdivide(.5,!0).reverse()):n.push(i),vo(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Oo=t=>{const e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Uo=t=>{const e=t.styles,r=t.bounds,i=oe(e.paddingLeft,r.width),n=oe(e.paddingRight,r.width),s=oe(e.paddingTop,r.width),o=oe(e.paddingBottom,r.width);return r.add(i+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+i+n),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Qo=(t,e,r)=>{const i=((t,e)=>0===t?e.bounds:2===t?Uo(e):Oo(e))(Vo(t.styles.backgroundOrigin,e),t),n=((t,e)=>0===t?e.bounds:2===t?Uo(e):Oo(e))(Vo(t.styles.backgroundClip,e),t),s=jo(Vo(t.styles.backgroundSize,e),r,i);let[o,a]=s;const A=se(Vo(t.styles.backgroundPosition,e),i.width-o,i.height-a),l=Go(Vo(t.styles.backgroundRepeat,e),A,s,i,n),h=Math.round(i.left+A[0]),c=Math.round(i.top+A[1]);return o=Math.max(1,o),a=Math.max(1,a),[l,h,c,o,a]},Ro=t=>Kt(t)&&t.value===Cr.AUTO,Ho=t=>"number"==typeof t,jo=(t,[e,r,i],n)=>{const[s,o]=t;if(!s)return[0,0];if(te(s)&&o&&te(o))return[oe(s,n.width),oe(o,n.height)];const a=Ho(i);if(Kt(s)&&(s.value===Cr.CONTAIN||s.value===Cr.COVER))return Ho(i)?n.width/n.height<i!=(s.value===Cr.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];const A=Ho(e),l=Ho(r),h=A||l;if(Ro(s)&&(!o||Ro(o)))return A&&l?[e,r]:a||h?h&&a?[A?e:r*i,l?r:e/i]:[A?e:n.width,l?r:n.height]:[n.width,n.height];if(a){let t=0,e=0;return te(s)?t=oe(s,n.width):te(o)&&(e=oe(o,n.height)),Ro(s)?t=e*i:o&&!Ro(o)||(e=t/i),[t,e]}let c=null,u=null;if(te(s)?c=oe(s,n.width):o&&te(o)&&(u=oe(o,n.height)),null===c||o&&!Ro(o)||(u=A&&l?c/e*r:n.height),null!==u&&Ro(s)&&(c=A&&l?u/r*e:n.width),null!==c&&null!==u)return[c,u];throw new Error("Unable to calculate background-size for element")},Vo=(t,e)=>{const r=t[e];return void 0===r?t[0]:r},Go=(t,[e,r],[i,n],s,o)=>{switch(t){case 2:return[new go(Math.round(s.left),Math.round(s.top+r)),new go(Math.round(s.left+s.width),Math.round(s.top+r)),new go(Math.round(s.left+s.width),Math.round(n+s.top+r)),new go(Math.round(s.left),Math.round(n+s.top+r))];case 3:return[new go(Math.round(s.left+e),Math.round(s.top)),new go(Math.round(s.left+e+i),Math.round(s.top)),new go(Math.round(s.left+e+i),Math.round(s.height+s.top)),new go(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new go(Math.round(s.left+e),Math.round(s.top+r)),new go(Math.round(s.left+e+i),Math.round(s.top+r)),new go(Math.round(s.left+e+i),Math.round(s.top+r+n)),new go(Math.round(s.left+e),Math.round(s.top+r+n))];default:return[new go(Math.round(o.left),Math.round(o.top)),new go(Math.round(o.left+o.width),Math.round(o.top)),new go(Math.round(o.left+o.width),Math.round(o.height+o.top)),new go(Math.round(o.left),Math.round(o.height+o.top))]}},zo="Hidden Text";class Ko{constructor(t){this._data={},this._document=t}parseMetrics(t,e){const r=this._document.createElement("div"),i=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(zo)),r.appendChild(n),r.appendChild(i);const o=i.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(zo)),r.style.lineHeight="normal",i.style.verticalAlign="super";const a=i.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:a}}getMetrics(t,e){const r=`${t} ${e}`;return void 0===this._data[r]&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]}}class Wo{constructor(t,e){this.context=t,this.options=e}}class Yo extends Wo{constructor(t,e){super(t,e),this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`),this.fontMetrics=new Ko(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.ctx.textBaseline="bottom",this._activeEffects=[],this.context.logger.debug(`Canvas renderer initialized (${e.width}x${e.height}) with scale ${e.scale}`)}applyEffects(t){for(;this._activeEffects.length;)this.popEffect();t.forEach(t=>this.applyEffect(t))}applyEffect(t){this.ctx.save(),(t=>2===t.type)(t)&&(this.ctx.globalAlpha=t.opacity),(t=>0===t.type)(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),To(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)}popEffect(){this._activeEffects.pop(),this.ctx.restore()}async renderStack(t){t.element.container.styles.isVisible()&&await this.renderStackContent(t)}async renderNode(t){Gi(t.container.flags,16),t.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(t),await this.renderNodeContent(t))}renderTextWithLetterSpacing(t,e,r){0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+r):Nn(t.text).reduce((e,i)=>(this.ctx.fillText(i,e,t.bounds.top+r),e+this.ctx.measureText(i).width),t.bounds.left)}renderTextBoundWithPaintOrder(t,e,r){r.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=de(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number))}})}renderTextDecoration(t,e){this.ctx.fillStyle=de(e.textDecorationColor||e.color);let r=1;"number"==typeof e.textDecorationThickness?r=e.textDecorationThickness:"from-font"===e.textDecorationThickness&&(r=Math.max(1,Math.floor(.05*e.fontSize.number)));let i=0;"number"==typeof e.textUnderlineOffset&&(i=e.textUnderlineOffset);const n=e.textDecorationStyle;e.textDecorationLine.forEach(e=>{let s=0;switch(e){case 1:s=t.top+t.height-r+i;break;case 2:s=t.top;break;case 3:s=t.top+(t.height/2-r/2);break;default:return}this.drawDecorationLine(t.left,s,t.width,r,n)})}drawDecorationLine(t,e,r,i,n){switch(n){case 0:default:this.ctx.fillRect(t,e,r,i);break;case 1:const n=Math.max(1,i);this.ctx.fillRect(t,e,r,i),this.ctx.fillRect(t,e+i+n,r,i);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([i,2*i]),this.ctx.lineWidth=i,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+i/2),this.ctx.lineTo(t+r,e+i/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([3*i,2*i]),this.ctx.lineWidth=i,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+i/2),this.ctx.lineTo(t+r,e+i/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=i,this.ctx.strokeStyle=this.ctx.fillStyle;const s=2*i,o=4*i;let a=t;for(this.ctx.moveTo(a,e+i/2);a<t+r;){const n=Math.min(a+o/2,t+r);if(this.ctx.quadraticCurveTo(a+o/4,e+i/2-s,n,e+i/2),a=n,a<t+r){const n=Math.min(a+o/2,t+r);this.ctx.quadraticCurveTo(a+o/4,e+i/2+s,n,e+i/2),a=n}}this.ctx.stroke(),this.ctx.restore()}}truncateTextWithEllipsis(t,e,r){const i="...",n=this.ctx.measureText(i).width;if(0===r){let r=t;for(;this.ctx.measureText(r).width+n>e&&r.length>0;)r=r.slice(0,-1);return r+i}{const s=Nn(t);let o=n,a=[];for(const t of s){const i=this.ctx.measureText(t).width+r;if(o+i>e)break;a.push(t),o+=i}return a.join("")+i}}createFontStyle(t){const e=t.fontVariant.filter(t=>"normal"===t||"small-caps"===t).join(""),r=Zo(t.fontFamily).join(", "),i=Gt(t.fontSize)?`${t.fontSize.number}${t.fontSize.unit}`:`${t.fontSize.number}px`;return[[t.fontStyle,e,t.fontWeight,i,r].join(" "),r,i]}async renderTextNode(t,e,r){const[i]=this.createFontStyle(e);this.ctx.font=i,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const n=e.paintOrder,s=1.5*e.fontSize.number;if(e.webkitLineClamp>0&&2&e.display&&1===e.overflowY&&t.textBounds.length>0){const i=[];let o=[],a=t.textBounds[0].bounds.top;t.textBounds.forEach(t=>{Math.abs(t.bounds.top-a)>=.5*s?(o.length>0&&i.push(o),o=[t],a=t.bounds.top):o.push(t)}),o.length>0&&i.push(o);const A=e.webkitLineClamp;if(i.length>A){for(let t=0;t<A-1;t++)i[t].forEach(t=>{this.renderTextBoundWithPaintOrder(t,e,n)});const t=i[A-1];if(t&&t.length>0&&r){const i=t.map(t=>t.text).join(""),s=t[0],o=r.width-(s.bounds.left-r.left),a=this.truncateTextWithEllipsis(i,o,e.letterSpacing);n.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=de(e.color),0===e.letterSpacing?this.ctx.fillText(a,s.bounds.left,s.bounds.top+e.fontSize.number):Nn(a).reduce((t,r)=>(this.ctx.fillText(r,t,s.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),s.bounds.left);break;case 1:e.webkitTextStrokeWidth&&a.trim().length&&(this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(a,s.bounds.left,s.bounds.top+e.fontSize.number):Nn(a).reduce((t,r)=>(this.ctx.strokeText(r,t,s.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),s.bounds.left))}})}return}}const o=1===e.textOverflow&&r&&1===e.overflowX&&t.textBounds.length>0;let a=!1,A="";if(o){const i=t.textBounds[0].bounds.top;if(t.textBounds.every(t=>Math.abs(t.bounds.top-i)<.5*s)){let i=t.textBounds.map(t=>t.text).join("");i=i.replace(/\s+/g," ").trim();const n=this.ctx.measureText(i).width,s=r.width;n>s&&(a=!0,A=this.truncateTextWithEllipsis(i,s,e.letterSpacing))}}if(a){const r=t.textBounds[0];return void n.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=de(e.color),0===e.letterSpacing?this.ctx.fillText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Nn(A).reduce((t,i)=>(this.ctx.fillText(i,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(i).width+e.letterSpacing),r.bounds.left);const t=e.textShadow;t.length&&A.trim().length&&(t.slice(0).reverse().forEach(t=>{this.ctx.shadowColor=de(t.color),this.ctx.shadowOffsetX=t.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=t.offsetY.number*this.options.scale,this.ctx.shadowBlur=t.blur.number,0===e.letterSpacing?this.ctx.fillText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Nn(A).reduce((t,i)=>(this.ctx.fillText(i,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(i).width+e.letterSpacing),r.bounds.left)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break;case 1:e.webkitTextStrokeWidth&&A.trim().length&&(this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Nn(A).reduce((t,i)=>(this.ctx.strokeText(i,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(i).width+e.letterSpacing),r.bounds.left))}})}t.textBounds.forEach(t=>{n.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=de(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);const r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=de(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),e.textDecorationLine.length&&this.renderTextDecoration(t.bounds,e);break;case 1:if(e.webkitTextStrokeWidth&&t.text.trim().length){this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round";const r=e.fontSize.number;0===e.letterSpacing?this.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+r):Nn(t.text).reduce((e,i)=>(this.ctx.strokeText(i,e,t.bounds.top+r),e+this.ctx.measureText(i).width),t.bounds.left)}this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}})})}renderReplacedElement(t,e,r){const i=r.naturalWidth||t.intrinsicWidth,n=r.naturalHeight||t.intrinsicHeight;if(r&&i>0&&n>0){const s=Uo(t),o=Co(e);this.path(o),this.ctx.save(),this.ctx.clip();let a=0,A=0,l=i,h=n,c=s.left,u=s.top,p=s.width,d=s.height;const{objectFit:f}=t.styles,g=p/d,m=l/h;2===f?m>g?(d=p/m,u+=(s.height-d)/2):(p=d*m,c+=(s.width-p)/2):4===f?m>g?(l=h*g,a+=(i-l)/2):(h=l/g,A+=(n-h)/2):8===f?(l>p?(a+=(l-p)/2,l=p):(c+=(p-l)/2,p=l),h>d?(A+=(h-d)/2,h=d):(u+=(d-h)/2,d=h)):16===f&&((m>g?p:d*m)<(l>p?l:p)?m>g?(d=p/m,u+=(s.height-d)/2):(p=d*m,c+=(s.width-p)/2):(l>p?(a+=(l-p)/2,l=p):(c+=(p-l)/2,p=l),h>d?(A+=(h-d)/2,h=d):(u+=(d-h)/2,d=h))),this.ctx.drawImage(r,a,A,l,h,c,u,p,d),this.ctx.restore()}}async renderNodeContent(t){this.applyEffects(t.getEffects(4));const e=t.container,r=t.curves,n=e.styles,s=Uo(e);for(const t of e.textNodes)await this.renderTextNode(t,n,s);if(e instanceof Hn)try{const t=await this.context.cache.match(e.src);this.renderReplacedElement(e,r,t)}catch(t){this.context.logger.error(`Error loading image ${e.src}`)}if(e instanceof jn&&this.renderReplacedElement(e,r,e.canvas),e instanceof Vn)try{const t=await this.context.cache.match(e.svg);this.renderReplacedElement(e,r,t)}catch(t){this.context.logger.error(`Error loading svg ${e.svg.substring(0,255)}`)}if(e instanceof ts&&e.tree){const t=new Yo(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),r=await t.render(e.tree);e.width&&e.height&&this.ctx.drawImage(r,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof $n){const t=Math.min(e.bounds.width,e.bounds.height);e.type===Yn?e.checked&&(this.ctx.save(),this.path([new go(e.bounds.left+.39363*t,e.bounds.top+.79*t),new go(e.bounds.left+.16*t,e.bounds.top+.5549*t),new go(e.bounds.left+.27347*t,e.bounds.top+.44071*t),new go(e.bounds.left+.39694*t,e.bounds.top+.5649*t),new go(e.bounds.left+.72983*t,e.bounds.top+.23*t),new go(e.bounds.left+.84*t,e.bounds.top+.34085*t),new go(e.bounds.left+.39363*t,e.bounds.top+.79*t)]),this.ctx.fillStyle=de(qn),this.ctx.fill(),this.ctx.restore()):e.type===Xn&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+t/2,e.bounds.top+t/2,t/4,0,2*Math.PI,!0),this.ctx.fillStyle=de(qn),this.ctx.fill(),this.ctx.restore())}if(Xo(e)&&e.value.length){const[t,r,i]=this.createFontStyle(n),{baseline:s}=this.fontMetrics.getMetrics(r,i);this.ctx.font=t;const o=e instanceof $n&&e.isPlaceholder;this.ctx.fillStyle=de(o?1970632191:n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$o(e.styles.textAlign);const a=Uo(e);let A=0;switch(e.styles.textAlign){case 1:A+=a.width/2;break;case 2:A+=a.width}let l=0;if(e instanceof $n){const t=oe(n.fontSize,0);l=(a.height-t)/2}const h=a.add(A,l,0,0);this.ctx.save(),this.path([new go(a.left,a.top),new go(a.left+a.width,a.top),new go(a.left+a.width,a.top+a.height),new go(a.left,a.top+a.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ln(e.value,h),n.letterSpacing,s),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(Gi(e.styles.display,2048))if(null!==e.styles.listStyleImage){const t=e.styles.listStyleImage;if(0===t.type){let r;const i=t.url;try{r=await this.context.cache.match(i),this.ctx.drawImage(r,e.bounds.left-(r.width+10),e.bounds.top)}catch(t){this.context.logger.error(`Error loading list-style-image ${i}`)}}}else if(t.listValue&&-1!==e.styles.listStyleType){const[r]=this.createFontStyle(n);this.ctx.font=r,this.ctx.fillStyle=de(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const s=new i(e.bounds.left,e.bounds.top+oe(e.styles.paddingTop,e.bounds.width),e.bounds.width,ri(n.lineHeight,n.fontSize.number)/2+1);this.renderTextWithLetterSpacing(new Ln(t.listValue,s),n.letterSpacing,ri(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}async renderStackContent(t){Gi(t.element.container.flags,16),await this.renderNodeBackgroundAndBorders(t.element);for(const e of t.negativeZIndex)await this.renderStack(e);await this.renderNodeContent(t.element);for(const e of t.nonInlineLevel)await this.renderNode(e);for(const e of t.nonPositionedFloats)await this.renderStack(e);for(const e of t.nonPositionedInlineLevel)await this.renderStack(e);for(const e of t.inlineLevel)await this.renderNode(e);for(const e of t.zeroOrAutoZIndexOrTransformedOrOpacity)await this.renderStack(e);for(const e of t.positiveZIndex)await this.renderStack(e)}mask(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.options.width,0),this.ctx.lineTo(this.options.width,this.options.height),this.ctx.lineTo(0,this.options.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()}path(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()}formatPath(t){t.forEach((t,e)=>{const r=vo(t)?t.start:t;0===e?this.ctx.moveTo(r.x,r.y):this.ctx.lineTo(r.x,r.y),vo(t)&&this.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})}renderRepeat(t,e,r,i){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)}resizeImage(t,e,r){const i=(this.canvas.ownerDocument??document).createElement("canvas");return i.width=Math.max(1,e),i.height=Math.max(1,r),i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,r),i}async renderBackgroundImage(t){let e=t.styles.backgroundImage.length-1;for(const r of t.styles.backgroundImage.slice(0).reverse()){if(0===r.type){let i;const n=r.url;try{i=await this.context.cache.match(n)}catch(t){this.context.logger.error(`Error loading background-image ${n}`)}if(i){const r=isNaN(i.width)||0===i.width?1:i.width,n=isNaN(i.height)||0===i.height?1:i.height,[s,o,a,A,l]=Qo(t,e,[r,n,r/n]),h=this.ctx.createPattern(this.resizeImage(i,A,l),"repeat");this.renderRepeat(s,h,o,a)}}else if(fr(r)){const[i,n,s,o,a]=Qo(t,e,[null,null,null]),[A,l,h,c,u]=er(r.angle,o,a),p=document.createElement("canvas");p.width=o,p.height=a;const d=p.getContext("2d"),f=d.createLinearGradient(l,c,h,u);if(tr(r.stops,A||1).forEach(t=>f.addColorStop(t.stop,de(t.color))),d.fillStyle=f,d.fillRect(0,0,o,a),o>0&&a>0){const t=this.ctx.createPattern(p,"repeat");this.renderRepeat(i,t,n,s)}}else if(gr(r)){const[i,n,s,o,a]=Qo(t,e,[null,null,null]),A=0===r.position.length?[ie]:r.position,l=oe(A[0],o),h=oe(A[A.length-1],a);let[c,u]=nr(r,l,h,o,a);if(0!==c&&0!==u||(c=Math.max(c,.01),u=Math.max(u,.01)),c>0&&u>0){const e=this.ctx.createRadialGradient(n+l,s+h,0,n+l,s+h,c);if(tr(r.stops,2*c).forEach(t=>e.addColorStop(t.stop,de(t.color))),this.path(i),this.ctx.fillStyle=e,c!==u){const e=t.bounds.left+.5*t.bounds.width,r=t.bounds.top+.5*t.bounds.height,i=u/c,A=1/i;this.ctx.save(),this.ctx.translate(e,r),this.ctx.transform(1,0,0,i,0,0),this.ctx.translate(-e,-r),this.ctx.fillRect(n,A*(s-r)+r,o,a*A),this.ctx.restore()}else this.ctx.fill()}}e--}}async renderSolidBorder(t,e,r){this.path(No(r,e)),this.ctx.fillStyle=de(t),this.ctx.fill()}async renderDoubleBorder(t,e,r,i){if(e<3)return void await this.renderSolidBorder(t,r,i);const n=((t,e)=>{switch(e){case 0:return Mo(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Mo(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Mo(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return Mo(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}})(i,r);this.path(n),this.ctx.fillStyle=de(t),this.ctx.fill();const s=((t,e)=>{switch(e){case 0:return Mo(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Mo(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Mo(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return Mo(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}})(i,r);this.path(s),this.ctx.fill()}async renderNodeBackgroundAndBorders(t){this.applyEffects(t.getEffects(2));const e=t.container.styles,r=!pe(e.backgroundColor)||e.backgroundImage.length,i=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=qo(Vo(e.backgroundClip,0),t.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(n),this.ctx.clip(),pe(e.backgroundColor)||(this.ctx.fillStyle=de(e.backgroundColor),this.ctx.fill()),await this.renderBackgroundImage(t.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(e=>{this.ctx.save();const r=xo(t.curves),i=e.inset?0:1e4,n=(s=r,o=-i+(e.inset?1:-1)*e.spread.number,a=(e.inset?1:-1)*e.spread.number,A=e.spread.number*(e.inset?-2:2),l=e.spread.number*(e.inset?-2:2),s.map((t,e)=>{switch(e){case 0:return t.add(o,a);case 1:return t.add(o+A,a);case 2:return t.add(o+A,a+l);case 3:return t.add(o,a+l)}return t}));var s,o,a,A,l;e.inset?(this.path(r),this.ctx.clip(),this.mask(n)):(this.mask(r),this.ctx.clip(),this.path(n)),this.ctx.shadowOffsetX=e.offsetX.number+i,this.ctx.shadowOffsetY=e.offsetY.number,this.ctx.shadowColor=de(e.color),this.ctx.shadowBlur=e.blur.number,this.ctx.fillStyle=e.inset?de(e.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let s=0;for(const e of i)0!==e.style&&!pe(e.color)&&e.width>0&&(2===e.style?await this.renderDashedDottedBorder(e.color,e.width,s,t.curves,2):3===e.style?await this.renderDashedDottedBorder(e.color,e.width,s,t.curves,3):4===e.style?await this.renderDoubleBorder(e.color,e.width,s,t.curves):await this.renderSolidBorder(e.color,s,t.curves)),s++}async renderDashedDottedBorder(t,e,r,i,n){this.ctx.save();const s=((t,e)=>{switch(e){case 0:return Do(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Do(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Do(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Do(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}})(i,r),o=No(i,r);let a,A,l,h,c;2===n&&(this.path(o),this.ctx.clip()),vo(o[0])?(a=o[0].start.x,A=o[0].start.y):(a=o[0].x,A=o[0].y),vo(o[1])?(l=o[1].end.x,h=o[1].end.y):(l=o[1].x,h=o[1].y),c=0===r||2===r?Math.abs(a-l):Math.abs(A-h),this.ctx.beginPath(),3===n?this.formatPath(s):this.formatPath(o.slice(0,2));let u=e<3?3*e:2*e,p=e<3?2*e:e;3===n&&(u=e,p=e);let d=!0;if(c<=2*u)d=!1;else if(c<=2*u+p){const t=c/(2*u+p);u*=t,p*=t}else{const t=Math.floor((c+p)/(u+p)),e=(c-t*u)/(t-1),r=(c-(t+1)*u)/t;p=r<=0||Math.abs(p-e)<Math.abs(p-r)?e:r}if(d&&(3===n?this.ctx.setLineDash([0,u+p]):this.ctx.setLineDash([u,p])),3===n?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=de(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===n){if(vo(o[0])){const t=o[3],e=o[0];this.ctx.beginPath(),this.formatPath([new go(t.end.x,t.end.y),new go(e.start.x,e.start.y)]),this.ctx.stroke()}if(vo(o[1])){const t=o[1],e=o[2];this.ctx.beginPath(),this.formatPath([new go(t.end.x,t.end.y),new go(e.start.x,e.start.y)]),this.ctx.stroke()}}this.ctx.restore()}async render(t){this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=(t=>{const e=new ko(t,null),r=new _o(e),i=[];return Lo(e,r,r,i),Po(e.container,i),r})(t);return await this.renderStack(e),this.applyEffects([]),this.canvas}}const Xo=t=>t instanceof Zn||t instanceof Jn||t instanceof $n&&t.type!==Xn&&t.type!==Yn,qo=(t,e)=>{switch(t){case 0:return xo(e);case 2:return(t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox])(e);default:return Co(e)}},$o=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}},Jo=["-apple-system","system-ui"],Zo=t=>/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(t=>-1===Jo.indexOf(t)):t;class ta extends Wo{constructor(t,e){super(t,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}async render(t){const e=In(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),r=await ea(e);return this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const ea=t=>new Promise((e,r)=>{const i=new Image;i.onload=()=>{e(i)},i.onerror=r,i.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(t))}`});class ra{constructor({id:t,enabled:e}){this.id=t,this.enabled=e,this.start=Date.now()}debug(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug(this.id,`${this.getTime()}ms`,...t):this.info(...t))}getTime(){return Date.now()-this.start}info(...t){this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info(this.id,`${this.getTime()}ms`,...t)}warn(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn(this.id,`${this.getTime()}ms`,...t):this.info(...t))}error(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error(this.id,`${this.getTime()}ms`,...t):this.info(...t))}}ra.instances={};class ia{constructor(t,e){this.windowBounds=e,this.instanceName="#"+ia.instanceCount++,this.logger=new ra({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new oo(this,t)}}let na;ia.instanceCount=1;const sa=(t,e={})=>oa(t,e);sa.setCspNonce=t=>{na=t},"undefined"!=typeof window&&so.setContext(window);const oa=async(t,e)=>{if(!t||"object"!=typeof t)return Promise.reject("Invalid element provided as first argument");const r=t.ownerDocument;if(!r)throw new Error("Element is not attached to a Document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a Window");const o={allowTaint:e.allowTaint??!1,imageTimeout:e.imageTimeout??15e3,proxy:e.proxy,useCORS:e.useCORS??!1,customIsSameOrigin:e.customIsSameOrigin},a={logging:e.logging??!0,cache:e.cache,...o},A={windowWidth:e.windowWidth??s.innerWidth,windowHeight:e.windowHeight??s.innerHeight,scrollX:e.scrollX??s.pageXOffset,scrollY:e.scrollY??s.pageYOffset},l=new i(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),h=new ia(a,l),c=e.foreignObjectRendering??!1,u={allowTaint:e.allowTaint??!1,onclone:e.onclone,ignoreElements:e.ignoreElements,iframeContainer:e.iframeContainer,inlineImages:c,copyStyles:c,cspNonce:na};h.logger.debug(`Starting document clone with size ${l.width}x${l.height} scrolled to ${-l.left},${-l.top}`);const p=new js(h,t,u),d=p.clonedReferenceElement;if(!d)return Promise.reject("Unable to find element in cloned iframe");const f=await p.toIFrame(r,l),{width:g,height:m,left:y,top:v}=fs(d)||"HTML"===d.tagName?(t=>{const e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");const n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),s=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new i(0,0,n,s)})(d.ownerDocument):n(h,d),b=aa(h,d,e.backgroundColor),w={canvas:e.canvas,backgroundColor:b,scale:e.scale??s.devicePixelRatio??1,x:(e.x??0)+y,y:(e.y??0)+v,width:e.width??Math.ceil(g),height:e.height??Math.ceil(m)};let B;if(c){h.logger.debug("Document cloned, using foreign object rendering");const t=new ta(h,w);B=await t.render(d)}else{h.logger.debug(`Document cloned, element located at ${y},${v} with size ${g}x${m} using computed rendering`),h.logger.debug("Starting DOM parsing");const t=ns(h,d);b===t.styles.backgroundColor&&(t.styles.backgroundColor=qe.TRANSPARENT),h.logger.debug(`Starting renderer for element at ${w.x},${w.y} with size ${w.width}x${w.height}`);const e=new Yo(h,w);B=await e.render(t)}return(e.removeContainer??1)&&(js.destroy(f)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),B},aa=(t,e,r)=>{const i=e.ownerDocument,n=i.documentElement?Xe(t,getComputedStyle(i.documentElement).backgroundColor):qe.TRANSPARENT,s=i.body?Xe(t,getComputedStyle(i.body).backgroundColor):qe.TRANSPARENT,o="string"==typeof r?Xe(t,r):null===r?qe.TRANSPARENT:4294967295;return e===i.documentElement?pe(n)?pe(s)?o:s:n:o}},64616(t,e,r){"use strict";function i(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}r.d(e,{A:()=>i})},85587(t,e,r){"use strict";r.d(e,{vj:()=>h});var i=function(){function t(){}return t.prototype.expandToken=function(t){for(var e=[],r="",i=0,n=t.length;i<n;++i)r+=t.charAt(i),e.push(r);return e},t}(),n=function(){function t(){}return t.prototype.sanitize=function(t){return t?t.toLocaleLowerCase().trim():""},t}();function s(t,e){e=e||[];for(var r=t=t||{},i=0;i<e.length;i++)if(null==(r=r[e[i]]))return null;return r}var o=function(){function t(t){this._uidFieldName=t,this._tokenToIdfCache={},this._tokenMap={}}var e=t.prototype;return e.indexDocument=function(t,e,r){this._tokenToIdfCache={};var i,n=this._tokenMap;"object"!=typeof n[t]?n[t]=i={$numDocumentOccurrences:0,$totalNumOccurrences:1,$uidMap:{}}:(i=n[t]).$totalNumOccurrences++;var s=i.$uidMap;"object"!=typeof s[e]?(i.$numDocumentOccurrences++,s[e]={$document:r,$numTokenOccurrences:1}):s[e].$numTokenOccurrences++},e.search=function(t,e){for(var r={},i=0,n=t.length;i<n;i++){var s,o=t[i],a=this._tokenMap[o];if(!a)return[];if(0===i)for(var A=0,l=(s=Object.keys(a.$uidMap)).length;A<l;A++)r[h=s[A]]=a.$uidMap[h].$document;else for(A=0,l=(s=Object.keys(r)).length;A<l;A++){var h=s[A];"object"!=typeof a.$uidMap[h]&&delete r[h]}}var c=[];for(var h in r)c.push(r[h]);var u=this._createCalculateTfIdf();return c.sort(function(r,i){return u(t,i,e)-u(t,r,e)})},e._createCalculateIdf=function(){var t=this._tokenMap,e=this._tokenToIdfCache;return function(r,i){if(!e[r]){var n=void 0!==t[r]?t[r].$numDocumentOccurrences:0;e[r]=1+Math.log(i.length/(1+n))}return e[r]}},e._createCalculateTfIdf=function(){var t=this._tokenMap,e=this._uidFieldName,r=this._createCalculateIdf();return function(i,n,o){for(var a=0,A=0,l=i.length;A<l;++A){var h,c=i[A],u=r(c,o);u===1/0&&(u=0),h=e instanceof Array?n&&s(n,e):n&&n[e],a+=(void 0!==t[c]&&void 0!==t[c].$uidMap[h]?t[c].$uidMap[h].$numTokenOccurrences:0)*u}return a}},t}(),a=/[^a-zа-яё0-9\-']+/i,A=function(){function t(){}return t.prototype.tokenize=function(t){return t.split(a).filter(function(t){return t})},t}();function l(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var h=function(){function t(t){if(!t)throw Error("js-search requires a uid field name constructor parameter");this._uidFieldName=t,this._indexStrategy=new i,this._searchIndex=new o(t),this._sanitizer=new n,this._tokenizer=new A,this._documents=[],this._searchableFields=[]}var e,r,a=t.prototype;return a.addDocument=function(t){this.addDocuments([t])},a.addDocuments=function(t){this._documents=this._documents.concat(t),this.indexDocuments_(t,this._searchableFields)},a.addIndex=function(t){this._searchableFields.push(t),this.indexDocuments_(this._documents,[t])},a.search=function(t){var e=this._tokenizer.tokenize(this._sanitizer.sanitize(t));return this._searchIndex.search(e,this._documents)},a.indexDocuments_=function(t,e){this._initialized=!0;for(var r=this._indexStrategy,i=this._sanitizer,n=this._searchIndex,o=this._tokenizer,a=this._uidFieldName,A=0,l=t.length;A<l;A++){var h,c=t[A];h=a instanceof Array?s(c,a):c[a];for(var u=0,p=e.length;u<p;u++){var d,f=e[u];if(null!=(d=f instanceof Array?s(c,f):c[f])&&"string"!=typeof d&&d.toString&&(d=d.toString()),"string"==typeof d)for(var g=o.tokenize(i.sanitize(d)),m=0,y=g.length;m<y;m++)for(var v=g[m],b=r.expandToken(v),w=0,B=b.length;w<B;w++){var x=b[w];n.indexDocument(x,h,c)}}}},e=t,(r=[{key:"indexStrategy",set:function(t){if(this._initialized)throw Error("IIndexStrategy cannot be set after initialization");this._indexStrategy=t},get:function(){return this._indexStrategy}},{key:"sanitizer",set:function(t){if(this._initialized)throw Error("ISanitizer cannot be set after initialization");this._sanitizer=t},get:function(){return this._sanitizer}},{key:"searchIndex",set:function(t){if(this._initialized)throw Error("ISearchIndex cannot be set after initialization");this._searchIndex=t},get:function(){return this._searchIndex}},{key:"tokenizer",set:function(t){if(this._initialized)throw Error("ITokenizer cannot be set after initialization");this._tokenizer=t},get:function(){return this._tokenizer}}])&&l(e.prototype,r),t}()},98889(t,e,r){"use strict";function i(t,e){const r=String(t);let i=r.indexOf(e),n=i,s=0,o=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==i;)i===n?++s>o&&(o=s):s=1,n=i+e.length,i=r.indexOf(e,n);return o}r.d(e,{D:()=>i})},37358(t,e,r){"use strict";function i(t){return t.length}function n(t,e){const r=e||{},n=(r.align||[]).concat(),a=r.stringLength||i,A=[],l=[],h=[],c=[];let u=0,p=-1;for(;++p<t.length;){const e=[],i=[];let n=-1;for(t[p].length>u&&(u=t[p].length);++n<t[p].length;){const o=s(t[p][n]);if(!1!==r.alignDelimiters){const t=a(o);i[n]=t,(void 0===c[n]||t>c[n])&&(c[n]=t)}e.push(o)}l[p]=e,h[p]=i}let d=-1;if("object"==typeof n&&"length"in n)for(;++d<u;)A[d]=o(n[d]);else{const t=o(n);for(;++d<u;)A[d]=t}d=-1;const f=[],g=[];for(;++d<u;){const t=A[d];let e="",i="";99===t?(e=":",i=":"):108===t?e=":":114===t&&(i=":");let n=!1===r.alignDelimiters?1:Math.max(1,c[d]-e.length-i.length);const s=e+"-".repeat(n)+i;!1!==r.alignDelimiters&&(n=e.length+n+i.length,n>c[d]&&(c[d]=n),g[d]=n),f[d]=s}l.splice(1,0,f),h.splice(1,0,g),p=-1;const m=[];for(;++p<l.length;){const t=l[p],e=h[p];d=-1;const i=[];for(;++d<u;){const n=t[d]||"";let s="",o="";if(!1!==r.alignDelimiters){const t=c[d]-(e[d]||0),r=A[d];114===r?s=" ".repeat(t):99===r?t%2?(s=" ".repeat(t/2+.5),o=" ".repeat(t/2-.5)):(s=" ".repeat(t/2),o=s):o=" ".repeat(t)}!1===r.delimiterStart||d||i.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===n||!1===r.delimiterStart&&!d||i.push(" "),!1!==r.alignDelimiters&&i.push(s),i.push(n),!1!==r.alignDelimiters&&i.push(o),!1!==r.padding&&i.push(" "),!1===r.delimiterEnd&&d===u-1||i.push("|")}m.push(!1===r.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return m.join("\n")}function s(t){return null==t?"":String(t)}function o(t){const e="string"==typeof t?t.codePointAt(0):0;return 67===e||99===e?99:76===e||108===e?108:82===e||114===e?114:0}r.d(e,{Q:()=>n})}}]);
//# sourceMappingURL=358.07d60a88f64b1e176d43.js.map