PageSourceSearch

https://www.vaillant-group.com/technical/script.min.js?ver=1790750957484

js vaillant-group.com collected 2026-10-02 05:11:25 UTC 561,437 bytes, 2 lines download raw bytes

1!function r(i,o,a){function s(e,t){if(!o[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(u)return u(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=o[e]={exports:{}},i[e][0].call(n.exports,function(t){return s(i[e][1][t]||t)},n,n.exports,r,i,o,a)}return o[e].exports}for(var u="function"==typeof require&&require,t=0;t<a.length;t++)s(a[t]);return s}({1:[function(t,e,n){e.exports=t("../dist/chart")},{"../dist/chart":2}],2:[function(t,e,n){var r,i;r=this,i=function(){function t(){}let E=(()=>{let t=0;return function(){return t++}})();function A(t){return null==t}function j(t){return!(!Array.isArray||!Array.isArray(t))||"[object"===(t=Object.prototype.toString.call(t)).slice(0,7)&&"Array]"===t.slice(-6)}function z(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}let g=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function l(t,e){return g(t)?t:e}function N(t,e){return void 0===t?e:t}let O=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,C=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function c(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function S(t,e,n,r){let i,o,a;if(j(t))if(o=t.length,r)for(i=o-1;0<=i;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(z(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])}function D(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function F(e){if(j(e))return e.map(F);if(z(e)){var n=Object.create(null),r=Object.keys(e),i=r.length;let t=0;for(;t<i;++t)n[r[t]]=F(e[r[t]]);return n}return e}function H(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function W(t,e,n,r){var i;H(t)&&(i=e[t],n=n[t],z(i)&&z(n)?V(i,n,r):e[t]=F(n))}function V(n,r,i){var e=j(r)?r:[r],o=e.length;if(z(n)){var a=(i=i||{}).merger||W;for(let t=0;t<o;++t)if(z(r=e[t])){var s=Object.keys(r);for(let t=0,e=s.length;t<e;++t)a(s[t],n,r,i)}}return n}function $(t,e){return V(t,e,{merger:q})}function q(t,e,n){var r;H(t)&&(r=e[t],n=n[t],z(r)&&z(n)?$(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=F(n)))}let U={"":t=>t,x:t=>t.x,y:t=>t.y};function d(t,e){return(U[e]||(U[e]=(t=>{let n=Y(t);return t=>{for(var e of n){if(""===e)break;t=t&&t[e]}return t}})(e)))(t)}function Y(t){var e,n=[];let r="";for(e of t.split("."))r=(r+=e).endsWith("\\")?r.slice(0,-1)+".":(n.push(r),"");return n}function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}let p=t=>void 0!==t,h=t=>"function"==typeof t,G=(t,e)=>{if(t.size!==e.size)return!1;for(var n of t)if(!e.has(n))return!1;return!0};function Q(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let x=Math.PI,v=2*x,X=v+x,J=Number.POSITIVE_INFINITY,Z=x/180,w=x/2,tt=x/4,et=2*x/3,f=Math.log10,P=Math.sign;function nt(t){var e=Math.round(t),e=(t=ot(t,e,t/1e3)?e:t,Math.pow(10,Math.floor(f(t)))),t=t/e;return(t<=1?1:t<=2?2:t<=5?5:10)*e}function rt(t){var e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r==0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}function it(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ot(t,e,n){return Math.abs(t-e)<n}function at(t,e){var n=Math.round(t);return n-e<=t&&t<=n+e}function st(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function R(t){return t*(x/180)}function ut(t){return t*(180/x)}function lt(n){if(g(n)){let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}}function ct(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e);let r=Math.atan2(e,n);return r<-.5*x&&(r+=v),{angle:r,distance:t}}function ht(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ft(t,e){return(t-e+X)%v-x}function m(t){return(t%v+v)%v}function pt(t,e,n,r){var t=m(t),e=m(e),n=m(n),i=m(e-t),o=m(n-t),a=m(t-e),s=m(t-n);return t===e||t===n||r&&e===n||o<i&&a<s}function _(t,e,n){return Math.max(e,Math.min(n,t))}function dt(t){return _(t,-32768,32767)}function y(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function gt(e,n,t){t=t||(t=>e[t]<n);let r=e.length-1,i=0;for(var o;1<r-i;)t(o=i+r>>1)?i=o:r=o;return{lo:i,hi:r}}let b=(e,n,r,t)=>gt(e,r,t?t=>e[t][n]<=r:t=>e[t][n]<r),vt=(e,n,r)=>gt(e,r,t=>e[t][n]>=r);function mt(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return 0<r||i<t.length?t.slice(r,i):t}let _t=["push","pop","shift","splice","unshift"];function yt(i,t){i._chartjs?i._chartjs.listeners.push(t):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),_t.forEach(t=>{let n="_onData"+K(t),r=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...e){var t=r.apply(this,e);
1return i._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),t}})}))}function bt(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(_t.forEach(t=>{delete e[t]}),delete e._chartjs))}function xt(t){var e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}let wt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function St(e,n,t){let r=t||(t=>Array.prototype.slice.call(t)),i=!1,o;return function(...t){o=r(t),i||(i=!0,wt.call(window,()=>{i=!1,e.apply(n,o)}))}}function kt(e,n){let r;return function(...t){return n?(clearTimeout(r),r=setTimeout(e,n,t)):e.apply(this,t),n}}let Pt=t=>"start"===t?"left":"end"===t?"right":"center",I=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,Mt=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function Et(t,e,n){var r,i,o,a,s,u,l=e.length;let c=0,h=l;return t._sorted&&({iScale:t,_parsed:r}=t,i=t.axis,{min:o,max:a,minDefined:s,maxDefined:u}=t.getUserBounds(),s&&(c=_(Math.min(b(r,t.axis,o).lo,n?l:b(e,i,t.getPixelForValue(o)).lo),0,l-1)),h=u?_(Math.max(b(r,t.axis,a,!0).hi+1,n?0:b(e,i,t.getPixelForValue(a),!0).hi+1),c,l)-c:l-c),{start:c,count:h}}function At(t){var{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};return r?(e=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max,Object.assign(r,i),e):(t._scaleRanges=i,!0)}var o=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,t){t=n.listeners[t];let i=n.duration;t.forEach(t=>t({chart:e,initial:n.initial,numSteps:i,currentStep:Math.min(r-n.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=wt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(a=Date.now()){let s=0;this._charts.forEach((n,r)=>{if(n.running&&n.items.length){var i,o=n.items;let t=o.length-1,e=!1;for(;0<=t;--t)(i=o[t])._active?(i._total>n.duration&&(n.duration=i._total),i.tick(a),e=!0):(o[t]=o[o.length-1],o.pop());e&&(r.draw(),this._notify(r,n,a,"progress")),o.length||(n.running=!1,this._notify(r,n,a,"complete"),n.initial=!1),s+=o.length}}),this._lastDate=a,0===s&&(this._running=!1)}_getAnims(t){var e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return 0<this._getAnims(t).items.length}start(t){t=this._charts.get(t);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){return!!this._running&&!!((t=this._charts.get(t))&&t.running&&t.items.length)}stop(e){var n=this._charts.get(e);if(n&&n.items.length){var r=n.items;let t=r.length-1;for(;0<=t;--t)r[t].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}}remove(t){return this._charts.delete(t)}};function Ot(t){return t+.5|0}let Ct=(t,e,n)=>Math.max(Math.min(t,n),e);function Dt(t){return Ct(Ot(2.55*t),0,255)}function It(t){return Ct(Ot(255*t),0,255)}function a(t){return Ct(Ot(t/2.55)/100,0,1)}function Tt(t){return Ct(Ot(100*t),0,100)}let s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Lt=[..."0123456789ABCDEF"],jt=t=>Lt[15&t],Rt=t=>Lt[(240&t)>>4]+Lt[15&t],zt=t=>(240&t)>>4==(15&t);function Nt(t){e=t;var e=zt(e.r)&&zt(e.g)&&zt(e.b)&&zt(e.a)?jt:Rt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t=t.a,e=e,t<255?e(t):""):void 0}let Bt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ft(n,t,r){let i=t*Math.min(r,1-r);t=(t,e=(t+n/30)%12)=>r-i*Math.max(Math.min(e-3,9-e,1),-1);return[t(0),t(8),t(4)]}function Ht(n,r,i){var t=(t,e=(t+n/60)%6)=>i-i*r*Math.max(Math.min(e,4-e,1),0);return[t(5),t(3),t(1)]}function Wt(t,e,n){var r=Ft(t,1,.5);let i;for(1<e+n&&(e*=i=1/(e+n),n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function Vt(t){var e=t.r/255,n=t.g/255,t=t.b/255,r=Math.max(e,n,t),i=Math.min(e,n,t),o=(r+i)/2;let a,s,u;return r!==i&&(u=r-i,s=.5<o?u/(2-r-i):u/(r+i),a=60*(a=(i=n,n=t,t=u,(e=e)===(r=r)?(i-n)/t+(i<n?6:0):i===r?(n-e)/t+2:(e-i)/t+4))+.5),[0|a,s||0,o]}function $t(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(It)}function qt(t,e,n){return $t(Ft,t,e,n)}function Ut(t){return(t%360+360)%360}function Yt(t){var e,n,r,t=Bt.exec(t);let i=255,o;if(t)return t[5]!==o&&(i=(t[6]?Dt:It)(+t[5])),e=Ut(+t[2]),n=+t[3]/100,r=+t[4]/100,{r:(o="hwb"===t[1]?$t(Wt,e,n,r):"hsv"===t[1]?$t(Ht,e,n,r):qt(e,n,r))[0],g:o[1],b:o[2],a:i}}let Kt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Gt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
1ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Qt;function Xt(t){Qt||((Qt=(()=>{var t={},e=Object.keys(Gt),n=Object.keys(Kt);let r,i,o,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,Kt[o]);o=parseInt(Gt[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t})()).transparent=[0,0,0,0]);t=Qt[t.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}let Jt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;let Zt=t=>
1t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,te=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function ee(e,n,r){if(e){let t=Vt(e);t[n]=Math.max(0,Math.min(t[n]+t[n]*r,0===n?360:1)),t=qt(t),e.r=t[0],e.g=t[1],e.b=t[2]}}function ne(t,e){return t&&Object.assign(e||{},t)}function re(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?3<=t.length&&(e={r:t[0],g:t[1],b:t[2],a:255},3<t.length)&&(e.a=It(t[3])):(e=ne(t,{r:0,g:0,b:0,a:1})).a=It(e.a),e}function ie(e){if("r"!==e.charAt(0))return Yt(e);{var n,r,i,e=Jt.exec(e);let t=255;if(e)return void 0!==e[7]&&(i=+e[7],t=e[8]?Dt(i):Ct(255*i,0,255)),i=+e[1],n=+e[3],r=+e[5],{r:255&(e[2]?Dt(i):Ct(i,0,255)),g:255&(e[4]?Dt(n):Ct(n,0,255)),b:255&(e[6]?Dt(r):Ct(r,0,255)),a:t}}}class oe{constructor(t){if(t instanceof oe)return t;var e,n,r=typeof t;let i;"object"==r?i=re(t):"string"==r&&(i=(n=(r=t).length,"#"===r[0]&&(4===n||5===n?e={r:255&17*s[r[1]],g:255&17*s[r[2]],b:255&17*s[r[3]],a:5===n?17*s[r[4]]:255}:7!==n&&9!==n||(e={r:s[r[1]]<<4|s[r[2]],g:s[r[3]]<<4|s[r[4]],b:s[r[5]]<<4|s[r[6]],a:9===n?s[r[7]]<<4|s[r[8]]:255})),e||Xt(t)||ie(t))),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=ne(this._rgb);return t&&(t.a=a(t.a)),t}set rgb(t){this._rgb=re(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${a(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Nt(this._rgb):void 0}hslString(){if(this._valid){var t,e,n,r=this._rgb;if(r)return t=(n=Vt(r))[0],e=Tt(n[1]),n=Tt(n[2]),r.a<255?`hsla(${t}, ${e}%, ${n}%, ${a(r.a)})`:`hsl(${t}, ${e}%, ${n}%)`}}mix(t,e){var n,r,i;return t&&(n=this.rgb,t=t.rgb,i=n.a-t.a,n.r=255&(r=(1+((r=2*(e=void 0===e?.5:e)-1)*i==-1?r:(r+i)/(1+r*i)))/2)*n.r+(i=1-r)*t.r+.5,n.g=255&r*n.g+i*t.g+.5,n.b=255&r*n.b+i*t.b+.5,n.a=e*n.a+(1-e)*t.a,this.rgb=n),this}interpolate(t,e){var n,r,i,o;return t&&(this._rgb=(n=this._rgb,t=t._rgb,e=e,r=te(a(n.r)),i=te(a(n.g)),o=te(a(n.b)),{r:It(Zt(r+e*(te(a(t.r))-r))),g:It(Zt(i+e*(te(a(t.g))-i))),b:It(Zt(o+e*(te(a(t.b))-o))),a:n.a+e*(t.a-n.a)})),this}clone(){return new oe(this.rgb)}alpha(t){return this._rgb.a=It(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){var t=this._rgb,e=Ot(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ee(this._rgb,2,t),this}darken(t){return ee(this._rgb,2,-t),this}saturate(t){return ee(this._rgb,1,t),this}desaturate(t){return ee(this._rgb,1,-t),this}rotate(t){var e,n;return e=this._rgb,t=t,(n=Vt(e))[0]=Ut(n[0]+t),n=qt(n),e.r=n[0],e.g=n[1],e.b=n[2],this}}function ae(t){return new oe(t)}function se(t){return!(!t||"object"!=typeof t||"[object CanvasPattern]"!==(t=t.toString())&&"[object CanvasGradient]"!==t)}function ue(t){return se(t)?t:ae(t)}function le(t){return se(t)?t:ae(t).saturate(.5).darken(.1).hexString()}let ce=Object.create(null),he=Object.create(null);function fe(n,t){if(t){var r=t.split(".");for(let t=0,e=r.length;t<e;++t){var i=r[t];n=n[i]||(n[i]=Object.create(null))}}return n}function pe(t,e,n){return"string"==typeof e?V(fe(t,e),n):V(fe(t,""),e)}var T=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>le(e.backgroundColor),this.hoverBorderColor=(t,e)=>le(e.borderColor),this.hoverColor=(t,e)=>le(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return pe(this,t,e)}get(t){return fe(this,t)}describe(t,e){return pe(he,t,e)}override(t,e){return pe(ce,t,e)}route(t,e,n,r){t=fe(this,t);let i=fe(this,n),o="_"+e;Object.defineProperties(t,{[o]:{value:t[e],writable:!0},[e]:{enumerable:!0,get(){var t=this[o],e=i[r];return z(t)?Object.assign({},e,t):N(t,e)},set(t){this[o]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function de(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ge(t){let e=t.parentNode;return e=e&&"[object ShadowRoot]"===e.toString()?e.host:e}function ve(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}let me=t=>window.getComputedStyle(t,null);function _e(t,e){return me(t).getPropertyValue(e)}let ye=["top","right","bottom","left"];function be(e,n,r){var i={};r=r?"-"+r:"";for(let t=0;t<4;t++){var o=ye[t];i[o]=parseFloat(e[n+"-"+o+r])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}let xe=(t,e,n)=>(0<t||0<e)&&(!n||!n.shadowRoot);function we(t,e){if("native"in t)return t;var{canvas:n,currentDevicePixelRatio:r}=e,i=me(n),o="border-box"===i.boxSizing,a=be(i,"padding"),i=be(i,"border","width"),{x:t,y:s,box:u}=((t,e)=>{var n=t.touches,{offsetX:r,offsetY:i}=n=n&&n.length?n[0]:t;let o=!1,a,s;return xe(r,i,t.target)?(a=r,s=i):(t=e.getBoundingClientRect(),a=n.clientX-t.left,s=n.clientY-t.top,o=!0),{x:a,y:s,box:o}})(t,n),l=a.left+(u&&i.left),u=a.top+(u&&i.top);let{width:c,height:h}=e;return o&&(c-=a.width+i.width,h-=a.height+i.height),{x:Math.round((t-l)/c*n.width/r),y:Math.round((s-u)/h*n.height/r)}}let Se=t=>Math.round(10*t)/10;function ke(t,e,n,r){var i=me(t),o=be(i,"margin"),a=ve(i.maxWidth,t,"clientWidth")||J,s=ve(i.maxHeight,t,"clientHeight")||J,t=((t,e,n)=>{let r,i;var o,a,s,u,l;return void 0!==e&&void 0!==n||((o=ge(t))?(a=o.getBoundingClientRect(),u=be(s=me(o),"border","width"),l=be(s,"padding"),e=a.width-l.width-u.width,n=a.height-l.height-u.height,r=ve(s.maxWidth,o,"clientWidth"),i=ve(s.maxHeight,o,"clientHeight")):(e=t.clientWidth,n=t.clientHeight)),{width:e,height:n,maxWidth:r||J,maxHeight:i||J}})(t,e,n);let{width:u,height:l}=t;return"content-box"===i.boxSizing&&(e=be(i,"border","width"),n=be(i,"padding"),u-=n.width+e.width,l-=n.height+e.height),u=Math.max(0,u-o.width),l=Math.max(0,r?Math.floor(u/r):l-o.height),u=Se(Math.min(u,a,t.maxWidth)),l=Se(Math.min(l,s,t.maxHeight)),u&&!l&&(l=Se(u/2)),{width:u,height:l}}function Pe(t,e,n){var e=e||1,r=Math.floor(t.height*e),i=Math.floor(t.width*e),o=(t.height=r/e,t.width=i/e,t.canvas);return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=t.height+"px",o.style.width=t.width+"px"),(t.currentDevicePixelRatio!==e||o.height!==r||o.width!==i)&&(t.currentDevicePixelRatio=e,o.height=r,o.width=i,t.ctx.setTransform(e,0,0,e,0,0),!0)}var Me=(()=>{let t=!1;try{var e={get passive(){return!(t=!0)}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t})();function Ee(t,e){t=_e(t,e),e=t&&t.match(/^(\d+)(\.\d+)?px$/);return e?+e[1]:void 0}function Ae(t){return!t||A(t.size)||A(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Oe(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),r=o>r?o:r}function Ce(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[],a=(r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e,0);var s=n.length;let u,l,c,h,f;for(u=0;u<s;u++)if(null!=(h=n[u])&&!0!==j(h))a=Oe(t,i,o,a,h);else if(j(h))for(l=0,c=h.length;l<c;l++)null==(f=h[l])||j(f)||(a=Oe(t,i,o,a,f));t.restore();var p=o.length/2;if(p>n.length){for(u=0;u<p;u++)delete i[o[u]];o.splice(0,p)}return a}function De(t,e,n){t=t.currentDevicePixelRatio,n=0!==n?Math.max(n/2,.5):0;return Math.round((e-n)*t)/t+n}function Ie(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore(
1)}function Te(t,e,n,r){Le(t,e,n,r,null)}function Le(t,e,n,r,i){let o,a,s,u,l,c;var h=e.pointStyle,f=e.rotation,p=e.radius;let d=(f||0)*Z;if(!h||"object"!=typeof h||"[object HTMLImageElement]"!==(o=h.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,p,0,0,v):t.arc(n,r,p,0,v),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=et,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=et,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),t.closePath();break;case"rectRounded":l=.516*p,u=p-l,a=Math.cos(d+tt)*u,s=Math.sin(d+tt)*u,t.arc(n-a,r-s,l,d-x,d-w),t.arc(n+s,r-a,l,d-w,d),t.arc(n+a,r+s,l,d,d+w),t.arc(n-s,r+a,l,d+w,d+x),t.closePath();break;case"rect":if(!f){u=Math.SQRT1_2*p,c=i?i/2:u,t.rect(n-c,r-u,2*c,2*u);break}d+=tt;case"rectRot":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":d+=tt;case"cross":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),d+=tt,a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=i?i/2:Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(d)*p,r+Math.sin(d)*p)}t.fill(),0<e.borderWidth&&t.stroke()}}else t.save(),t.translate(n,r),t.rotate(d),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore()}function je(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Re(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ze(t){t.restore()}function Ne(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);var o;"middle"===i?(o=(e.x+n.x)/2,t.lineTo(o,e.y),t.lineTo(o,n.y)):"after"===i!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),t.lineTo(n.x,n.y)}function Be(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Fe(t,e,n,r,i,o={}){var a=j(e)?e:[e],s=0<o.strokeWidth&&""!==o.strokeColor;let u,l;t.save(),t.font=i.string;var e=t,c=o;for(c.translation&&e.translate(c.translation[0],c.translation[1]),A(c.rotation)||e.rotate(c.rotation),c.color&&(e.fillStyle=c.color),c.textAlign&&(e.textAlign=c.textAlign),c.textBaseline&&(e.textBaseline=c.textBaseline),u=0;u<a.length;++u){l=a[u],s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),A(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,r,o.maxWidth)),t.fillText(l,n,r,o.maxWidth),f=h=m=v=g=d=p=void 0;var h,f,p=t,d=n,g=r,v=l,m=o;(m.strikethrough||m.underline)&&(v=p.measureText(v),h=d-v.actualBoundingBoxLeft,d=d+v.actualBoundingBoxRight,f=g+v.actualBoundingBoxDescent,g=m.strikethrough?(g-v.actualBoundingBoxAscent+f)/2:f,p.strokeStyle=p.fillStyle,p.beginPath(),p.lineWidth=m.decorationWidth||2,p.moveTo(h,g),p.lineTo(d,g),p.stroke()),r+=i.lineHeight}t.restore()}function He(t,e){var{x:e,y:n,w:r,h:i,radius:o}=e;t.arc(e+o.topLeft,n+o.topLeft,o.topLeft,-w,x,!0),t.lineTo(e,n+i-o.bottomLeft),t.arc(e+o.bottomLeft,n+i-o.bottomLeft,o.bottomLeft,x,w,!0),t.lineTo(e+r-o.bottomRight,n+i),t.arc(e+r-o.bottomRight,n+i-o.bottomRight,o.bottomRight,w,0,!0),t.lineTo(e+r,n+o.topRight),t.arc(e+r-o.topRight,n+o.topRight,o.topRight,0,-w,!0),t.lineTo(e+o.topLeft,n)}function We(a,s=[""],e=a,n,i=()=>a[0]){p(n)||(n=Je("_fallback",a));var t={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:e,_fallback:n,_getTarget:i,override:t=>We([t,...a],s,e,n)};return new Proxy(t,{deleteProperty(t,e){return delete t[e],delete t._keys,delete a[0][e],!0},get(i,o){return Ye(i,o,()=>{var t,e=o,n=a,r=i;for(t of s)if(t=Je(qe(t,e),n),p(t))return Ue(e,t)?Qe(n,r,e,t):t})},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(t,e){return Ze(t).includes(e)},ownKeys(t){return Ze(t)},set(t,e,n){var r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function Ve(r,e,n,i){var t={_cacheable:!1,_proxy:r,_context:e,_subProxy:n,_stack:new Set,_descriptors:$e(r,i),setContext:t=>Ve(r,t,n,i),override:t=>Ve(r.override(t),e,n,i)};return new Proxy(t,{deleteProperty(t,e){return delete t[e],delete r[e],!0},get(u,l,c){return Ye(u,l,()=>{{var o=u,a=l,s=c;let{_proxy:t,_context:e,_subProxy:n,_descriptors:r}=o,i=t[a];return j(i=h(i)&&r.isScriptable(a)?((t,e,n,r)=>{var{_proxy:n,_context:i,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(i,o||r),a.delete(t),e=Ue(t,e)?Qe(n._scopes,n,t,e):e})(a,i,o,s):i)&&i.length&&(i=((t,n,e,r)=>{var{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=e;if(p(o.index)&&r(t))n=n[o.index%n.length];else if(z(n[0])){let e=n;var u,l=i._scopes.filter(t=>t!==e);n=[];for(u of e){var c=Qe(l,i,t,u);n.push(Ve(c,o,a&&a[t],s))}}return n})(a,i,o,r.isIndexable)),i=Ue(a,i)?Ve(i,e,n&&n[a],r):i}})},getOwnPropertyDescriptor(t,e){return t._descriptors.allKeys?Reflect.has(r,e)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(r,e)},getPrototypeOf(){return Reflect.getPrototypeOf(r)},has(t,e){return Reflect.has(r,e)},ownKeys(){return Reflect.ownKeys(r)},set(t,e,n){return r[e]=n,delete t[e],!0}})}function $e(t,e={scriptable:!0,indexable:!0}){let{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:h(n)?n:()=>n,isIndexable:h(r)?r:()=>r}}let qe=(t,e)=>t?t+K(e):e,Ue=(t,e)=>z(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ye(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:(n=n(),t[e]=n)}function Ke(t,e,n){return h(t)?t(e,n):t}let Ge=(t,e)=>!0===t?e:"string"==typeof t?d(e,t):void 0;function Qe(t,r,i,o){var e=r._rootScopes,n=Ke(r._fallback,i,o),t=[...t,...e],a=new Set,s=(a.add(o),Xe(a,t,i,n||i,o));return null!==s&&(!p(n)||n===i||null!==(s=Xe(a,t,n,s,o)))&&We(Array.from(a),[""],e,
1n,()=>{var t=r,e=i,n=o;return t=t._getTarget(),e in t||(t[e]={}),j(t=t[e])&&z(n)?n:t})}function Xe(t,e,n,r,i){for(;n;)n=((t,e,n,r,i)=>{for(var o of e){o=Ge(n,o);if(o){t.add(o);var a=Ke(o._fallback,n,i);if(p(a)&&a!==n&&a!==r)return a}else if(!1===o&&p(r)&&n!==r)return null}return!1})(t,e,n,r,i);return n}function Je(t,e){for(var n of e)if(n){n=n[t];if(p(n))return n}}function Ze(t){let e=t._keys;return e=e||(t._keys=(t=>{var e,n=new Set;for(e of t)for(var r of Object.keys(e).filter(t=>!t.startsWith("_")))n.add(r);return Array.from(n)})(t._scopes))}function tn(t,e,n,r){var i=t.iScale,{key:o="r"}=this._parsing,a=new Array(r);let s,u,l,c;for(s=0,u=r;s<u;++s)c=e[l=s+n],a[s]={r:i.parse(d(c,o),l)};return a}let en=Number.EPSILON||1e-14,nn=(t,e)=>e<t.length&&!t[e].skip&&t[e],rn=t=>"x"===t?"y":"x";function on(t,e,n,r){var t=t.skip?e:t,i=e,e=n.skip?e:n,n=ht(i,t),o=ht(e,i),a=n/(n+o),n=o/(n+o),o=r*(isNaN(a)?0:a),a=r*(isNaN(n)?0:n);return{previous:{x:i.x-o*(e.x-t.x),y:i.y-o*(e.y-t.y)},next:{x:i.x+a*(e.x-t.x),y:i.y+a*(e.y-t.y)}}}function an(t,o="x"){var e,n=rn(o),r=t.length,i=Array(r).fill(0),a=Array(r);let s,u,l,c=nn(t,0);for(s=0;s<r;++s)u=l,l=c,c=nn(t,s+1),l&&(c&&(e=c[o]-l[o],i[s]=0!=e?(c[n]-l[n])/e:0),a[s]=u?c?P(i[s-1])!==P(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]);{var h=t,f=i,p=a,d,g,v,m=h.length;let e=nn(h,0);for(let t=0;t<m-1;++t)v=e,e=nn(h,t+1),v&&e&&(ot(f[t],0,en)?p[t]=p[t+1]=0:(v=p[t]/f[t],d=p[t+1]/f[t],(g=Math.pow(v,2)+Math.pow(d,2))<=9||(g=3/Math.sqrt(g),p[t]=v*g*f[t],p[t+1]=d*g*f[t])))}{var[_,y,b="x"]=[t,a,o],x,w,S=rn(b),k=_.length;let e,n,r,i=nn(_,0);for(let t=0;t<k;++t)n=r,r=i,i=nn(_,t+1),r&&(x=r[b],w=r[S],n&&(e=(x-n[b])/3,r["cp1"+b]=x-e,r["cp1"+S]=w-e*y[t]),i)&&(e=(i[b]-x)/3,r["cp2"+b]=x+e,r["cp2"+S]=w+e*y[t])}}function sn(t,e,n){return Math.max(Math.min(t,n),e)}function un(a,e,s,n,t){let r,i,o,u;if(e.spanGaps&&(a=a.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)an(a,t);else{let t=n?a[a.length-1]:a[0];for(r=0,i=a.length;r<i;++r)o=a[r],u=on(t,o,a[Math.min(r+1,i-(n?0:1))%i],e.tension),o.cp1x=u.previous.x,o.cp1y=u.previous.y,o.cp2x=u.next.x,o.cp2y=u.next.y,t=o}if(e.capBezierPoints){var l=a;var c=s;let t,e,n,r,i,o=je(l[0],c);for(t=0,e=l.length;t<e;++t)i=r,r=o,o=t<e-1&&je(l[t+1],c),r&&(n=l[t],i&&(n.cp1x=sn(n.cp1x,c.left,c.right),n.cp1y=sn(n.cp1y,c.top,c.bottom)),o)&&(n.cp2x=sn(n.cp2x,c.left,c.right),n.cp2y=sn(n.cp2y,c.top,c.bottom))}}let ln=t=>0===t||1===t,cn=(t,e,n)=>-(Math.pow(2,10*--t)*Math.sin((t-e)*v/n)),hn=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*v/n)+1,fn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-(--t*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>--t*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*w),easeOutSine:t=>Math.sin(t*w),easeInOutSine:t=>-.5*(Math.cos(x*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ln(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>1<=t?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1- --t*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ln(t)?t:cn(t,.075,.3),easeOutElastic:t=>ln(t)?t:hn(t,.075,.3),easeInOutElastic(t){return ln(t)?t:t<.5?.5*cn(2*t,.1125,.45):.5+.5*hn(2*t-1,.1125,.45)},easeInBack(t){return t*t*(2.70158*t-1.70158)},easeOutBack(t){return--t*t*(2.70158*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-fn.easeOutBounce(1-t),easeOutBounce(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*fn.easeInBounce(2*t):.5*fn.easeOutBounce(2*t-1)+.5};function pn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function dn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:("middle"===r?n<.5?t:e:"after"===r?n<1?t:e:0<n?e:t).y}}function gn(t,e,n,r){var i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},t=pn(t,i,n),i=pn(i,o,n),o=pn(o,e,n),e=pn(t,i,n),t=pn(i,o,n);return pn(e,t,n)}let vn=new Map;function mn(t,e,n){return((t,e)=>{e=e||{};var n=t+JSON.stringify(e);let r=vn.get(n);return r||(r=new Intl.NumberFormat(t,e),vn.set(n,r)),r})(e,n).format(t)}let _n=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),yn=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function bn(t,e){var n=(""+t).match(_n);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}let xn=t=>+t||0;function wn(e,n){var t,r={},i=z(n),o=i?Object.keys(n):n,a=z(e)?i?t=>N(e[t],e[n[t]]):t=>e[t]:()=>e;for(t of o)r[t]=xn(a(t));return r}function Sn(t){return wn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function kn(t){return wn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function B(t){t=Sn(t);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function L(t,e){e=e||T.font;let n=N((t=t||{}).size,e.size),r=("string"==typeof n&&(n=parseInt(n,10)),N(t.style,e.style));r&&!(""+r).match(yn)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");t={family:N(t.family,e.family),lineHeight:bn(N(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:N(t.weight,e.weight),string:""};return t.string=Ae(t),t}function Pn(t,e,n,r){let i=!0,o,a,s;for(o=0,a=t.length;o<a;
1++o)if(void 0!==(s=t[o])&&(void 0!==e&&"function"==typeof s&&(s=s(e),i=!1),void 0!==n&&j(s)&&(s=s[n%s.length],i=!1),void 0!==s))return r&&!i&&(r.cacheable=!1),s}function Mn(t,e,n){var{min:t,max:r}=t,e=C(e,(r-t)/2),i=(t,e)=>n&&0===t?0:t+e;return{min:i(t,-Math.abs(e)),max:i(r,e)}}function En(t,e){return Object.assign(Object.create(t),e)}function An(t,e,n){return t?(r=e,i=n,{x(t){return r+r+i-t},setWidth(t){i=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}};var r,i}function On(t,e){var n,r;"ltr"!==e&&"rtl"!==e||(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Cn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Dn(t){return"angle"===t?{between:pt,compare:ft,normalize:m}:{between:y,compare:(t,e)=>t-e,normalize:t=>t}}function In({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:i}}function Tn(n,r,t){if(!t)return[n];let{property:i,start:o,end:a}=t;var s=r.length;let{compare:u,between:l,normalize:c}=Dn(i);var{start:n,end:h,loop:f,style:p}=((t,e,n)=>{var{property:r,start:i,end:o}=n,{between:a,normalize:s}=Dn(r),u=e.length;let{start:l,end:c,loop:h}=t,f,p;if(h){for(l+=u,c+=u,f=0,p=u;f<p&&a(s(e[l%u][r]),i,o);++f)l--,c--;l%=u,c%=u}return c<l&&(c+=u),{start:l,end:c,loop:h,style:t.style}})(n,r,t),d=[];let g,v=null,m,_,y;var b=()=>g||l(o,y,m)&&0!==u(o,y),x=()=>!g||0===u(a,m)||l(a,y,m);for(let t=n,e=n;t<=h;++t)(_=r[t%s]).skip||(m=c(_[i]))!==y&&(g=l(m,o,a),null!==(v=null===v&&b()?0===u(m,o)?t:e:v)&&x()&&(d.push(In({start:v,end:t,loop:f,count:s,style:p})),v=null),e=t,y=m);return null!==v&&d.push(In({start:v,end:h,loop:f,count:s,style:p})),d}function Ln(e,n){var r=[],i=e.segments;for(let t=0;t<i.length;t++){var o=Tn(i[t],e.points,n);o.length&&r.push(...o)}return r}function jn(t,e){var n,r,i,o=t.points,a=t.options.spanGaps,s=o.length;return s?({start:r,end:i}=((t,e,n,r)=>{let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}})(o,s,n=!!t._loop,a),Rn(t,!0===a?[{start:r,end:i,loop:n}]:((t,e,n,r)=>{var i=t.length,o=[];let a=e,s=t[e],u;for(u=e+1;u<=n;++u){var l=t[u%i];l.skip||l.stop?s.skip||(r=!1,o.push({start:e%i,end:(u-1)%i,loop:r}),e=a=l.stop?u:null):(a=u,s.skip&&(e=u)),s=l}return null!==a&&o.push({start:e%i,end:a%i,loop:r}),o})(o,r,i<r?i+s:i,!!t._fullLoop&&0===r&&i===s-1),o,e)):[]}function Rn(i,c,h,f){if(f&&f.setContext&&h){var p=c;var d=h;var g=f;let e=i._chart.getContext(),t=zn(i.options),{_datasetIndex:n,options:{spanGaps:o}}=i,a=d.length,s=[],u=t,l=p[0].start,r=l;function v(t,e,n,r){var i=o?-1:1;if(t!==e){for(t+=a;d[t%a].skip;)t-=i;for(;d[e%a].skip;)e+=i;t%a!=e%a&&(s.push({start:t%a,end:e%a,loop:n,style:r}),u=r,l=e%a)}}for(var m of p){l=o?l:m.start;let t=d[l%a];var _;for(r=l+1;r<=m.end;r++){var y=d[r%a];((t,e)=>e&&JSON.stringify(t)!==JSON.stringify(e))(_=zn(g.setContext(En(e,{type:"segment",p0:t,p1:y,p0DataIndex:(r-1)%a,p1DataIndex:r%a,datasetIndex:n}))),u)&&v(l,r-1,m.loop,u),t=y,u=_}l<r-1&&v(l,r-1,m.loop,u)}return s}return c}function zn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}var Nn=Object.freeze({__proto__:null,easingEffects:fn,isPatternOrGradient:se,color:ue,getHoverColor:le,noop:t,uid:E,isNullOrUndef:A,isArray:j,isObject:z,isFinite:g,finiteOrDefault:l,valueOrDefault:N,toPercentage:O,toDimension:C,callback:c,each:S,_elementsEqual:D,clone:F,_merger:W,merge:V,mergeIf:$,_mergerIf:q,_deprecated:function(t,e,n,r){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+r+'" instead')},resolveObjectKey:d,_splitKey:Y,_capitalize:K,defined:p,isFunction:h,setsEqual:G,_isClickEvent:Q,toFontString:Ae,_measureText:Oe,_longestText:Ce,_alignPixel:De,clearCanvas:Ie,drawPoint:Te,drawPointLegend:Le,_isPointInArea:je,clipArea:Re,unclipArea:ze,_steppedLineTo:Ne,_bezierCurveTo:Be,renderText:Fe,addRoundedRectPath:He,_lookup:gt,_lookupByKey:b,_rlookupByKey:vt,_filterBetween:mt,listenArrayEvents:yt,unlistenArrayEvents:bt,_arrayUnique:xt,_createResolver:We,_attachContext:Ve,_descriptors:$e,_parseObjectDataRadialScale:tn,splineCurve:on,splineCurveMonotone:an,_updateBezierControlPoints:un,_isDomSupp
1orted:de,_getParentNode:ge,getStyle:_e,getRelativePosition:we,getMaximumSize:ke,retinaScale:Pe,supportsEventListenerOptions:Me,readUsedSize:Ee,fontString:function(t,e,n){return e+" "+t+"px "+n},requestAnimFrame:wt,throttled:St,debounce:kt,_toLeftRightCenter:Pt,_alignStartEnd:I,_textX:Mt,_getStartAndCountOfVisiblePoints:Et,_scaleRangesChanged:At,_pointInLine:pn,_steppedInterpolation:dn,_bezierInterpolation:gn,formatNumber:mn,toLineHeight:bn,_readValueToProps:wn,toTRBL:Sn,toTRBLCorners:kn,toPadding:B,toFont:L,resolve:Pn,_addGrace:Mn,createContext:En,PI:x,TAU:v,PITAU:X,INFINITY:J,RAD_PER_DEG:Z,HALF_PI:w,QUARTER_PI:tt,TWO_THIRDS_PI:et,log10:f,sign:P,niceNum:nt,_factorize:rt,isNumber:it,almostEquals:ot,almostWhole:at,_setMinAndMaxByKey:st,toRadians:R,toDegrees:ut,_decimalPlaces:lt,getAngleFromPoint:ct,distanceBetweenPoints:ht,_angleDiff:ft,_normalizeAngle:m,_angleBetween:pt,_limitValue:_,_int16Range:dt,_isBetween:y,getRtlAdapter:An,overrideTextDirection:On,restoreTextDirection:Cn,_boundSegment:Tn,_boundSegments:Ln,_computeSegments:jn});function Bn(t,n,e,r,i){var o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let t=0,e=o.length;t<e;++t){var{index:s,data:u}=o[t],{lo:l,hi:c}=((t,e,n,r)=>{var{controller:t,data:i,_sorted:o}=t;if((a=t._cachedMeta.iScale)&&e===a.axis&&"r"!==e&&o&&i.length){o=a._reversePixels?vt:b;if(!r)return o(i,e,n);if(t._sharedOptions){var a=i[0],r="function"==typeof a.getRange&&a.getRange(e);if(r)return t=o(i,e,n-r),a=o(i,e,n+r),{lo:t.lo,hi:a.hi}}}return{lo:0,hi:i.length-1}})(o[t],n,a,i);for(let t=l;t<=c;++t){var h=u[t];h.skip||r(h,s,t)}}}function Fn(r,i,t,o,a){let s=[];return(a||r.isPointInArea(i))&&Bn(r,t,i,function(t,e,n){(a||je(t,r.chartArea,0))&&t.inRange(i.x,i.y,o)&&s.push({element:t,datasetIndex:e,index:n})},!0),s}function Hn(t,a,e,s){let u=[];return Bn(t,e,a,function(t,e,n){var{startAngle:r,endAngle:i}=t.getProps(["startAngle","endAngle"],s),o=ct(t,{x:a.x,y:a.y}).angle;pt(o,r,i)&&u.push({element:t,datasetIndex:e,index:n})}),u}function Wn(o,a,t,s,u,l){let c=[],h=(t=>{let r=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,e){var n=r?Math.abs(t.x-e.x):0,t=i?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(t,2))}})(t),f=Number.POSITIVE_INFINITY;return Bn(o,t,a,function(t,e,n){var r,i=t.inRange(a.x,a.y,u);(!s||i)&&(r=t.getCenterPoint(u),l||o.isPointInArea(r)||i)&&((i=h(a,r))<f?(c=[{element:t,datasetIndex:e,index:n}],f=i):i===f&&c.push({element:t,datasetIndex:e,index:n}))}),c}function Vn(t,e,n,r,i,o){return o||t.isPointInArea(e)?"r"!==n||r?Wn(t,e,n,r,i,o):Hn(t,e,n,i):[]}function $n(t,r,i,e,o){let a=[],s="x"===i?"inXRange":"inYRange",u=!1;return Bn(t,i,r,(t,e,n)=>{t[s](r[i],o)&&(a.push({element:t,datasetIndex:e,index:n}),u=u||t.inRange(r.x,r.y,o))}),e&&!u?[]:a}var qn={evaluateInteractionItems:Bn,modes:{index(t,e,n,r){var e=we(e,t),i=n.axis||"x",o=n.includeInvisible||!1;let a=n.intersect?Fn(t,e,i,r,o):Vn(t,e,i,!1,r,o),s=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{var e=a[0].index,n=t.data[e];n&&!n.skip&&s.push({element:n,datasetIndex:t.index,index:e})}),s):[]},dataset(t,e,n,r){var e=we(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?Fn(t,e,i,r,o):Vn(t,e,i,!1,r,o);if(0<a.length){var s=a[0].datasetIndex,u=t.getDatasetMeta(s).data;a=[];for(let t=0;t<u.length;++t)a.push({element:u[t],datasetIndex:s,index:t})}return a},point(t,e,n,r){return Fn(t,we(e,t),n.axis||"xy",r,n.includeInvisible||!1)},nearest(t,e,n,r){return Vn(t,we(e,t),n.axis||"xy",n.intersect,r,n.includeInvisible||!1)},x(t,e,n,r){return $n(t,we(e,t),"x",n.intersect,r)},y(t,e,n,r){return $n(t,we(e,t),"y",n.intersect,r)}}};let Un=["left","top","right","bottom"];function Yn(t,e){return t.filter(t=>t.pos===e)}function Kn(t,e){return t.filter(t=>-1===Un.indexOf(t.pos)&&t.box.axis===e)}function Gn(t,r){return t.sort((t,e)=>{var n=r?e:t,t=r?t:e;return n.weight===t.weight?n.index-t.index:n.weight-t.weight})}function Qn(t,e){var n=(t=>{var e,n={};for(e of t){var{stack:r,pos:i,stackWeight:o}=e;r&&Un.includes(i)&&((i=n[r]||(n[r]={count:0,placed:0,weight:0,size:0})).count++,i.weight+=o)}return n})(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){var u=(s=t[o]).box.fullSize,l=n[s.stack],l=l&&s.stackWeight/l.weight;s.horizontal?(s.width=l?l*r:u&&e.availableWidth,s.height=i):(s.width=r,s.height=l?l*i:u&&e.availableHeight)}return n}function Xn(t){var t=(t=>{var e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;n<r;++n)({position:o,options:{stack:a,stackWeight:s=1}}=i=t[n]),e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return e})(t),e=Gn(t.filter(t=>t.box.fullSize),!0),n=Gn(Yn(t,"left"),!0),r=Gn(Yn(t,"right")),i=Gn(Yn(t,"top"),!0),o=Gn(Yn(t,"bottom")),a=Kn(t,"x"),s=Kn(t,"y");return{fullSize:e,leftAndTop:n.concat(i),rightAndBottom:r.concat(s).concat(o).concat(a),chartArea:Yn(t,"chartArea"),vertical:n.concat(r).concat(s),horizontal:i.concat(o).concat(a)}}function Jn(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Zn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function tr(t,e,n,r){var i=[];let o,a,s,u,l,c;for(o=0,a=t.length,l=0;o<a;++o){s=t[o],(u=s.box).update(s.width||e.w,s.height||e.h,((t,n)=>{let r=n.maxPadding;function e(t){let e={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{e[t]=Math.max(n[t],r[t])}),e}return e(t?["left","right"]:["top","bottom"])})(s.horizontal,e));var{same:h,other:f}=((t,e,n,r)=>{var{pos:i,box:o}=n,a=t.maxPadding,r=(z(i)||(n.size&&(t[i]-=n.size),(r=r[n.stack]||{size:0,count:1}).size=Math.max(r.size,n.horizontal?o.height:o.width),n.size=r.size/r.count,t[i]+=n.size),o.getPadding&&Zn(a,o.getPadding()),Math.max(0,e.outerWidth-Jn(a,t,"left","right"))),i=Math.max(0,e.outerHeight-Jn(a,t,"top","bottom")),o=r!==t.w,e=i!==t.h;return t.w=r,t.h=i,n.horizontal?{same:o,other:e}:{same:e,other:o}})(e,n,s,r);l|=h&&i.length,c=c||f,u.fullSize||i.push(s)}return l&&tr(i,e,n,r)||c}function er(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function nr(t,e,n,r){var i,o=n.padding;let{x:a,y:s}=e;for(i of t){var u,l,c=i.box,h=r[i.stack]||{count:1,placed:0,weight:1},f=i.stackWeight/h.weight||1;i.horizontal?(l=e.w*f,u=h.size||c.height,p(h.start)&&(s=h.start),c.fullSize?er(c,o.left,s,n.outerWidth-o.right-o.left,u):er(c,e.left+h.placed,s,l,u),h.start=s,h.placed+=l,s=c.bottom):(u=e.h*f,l=h.size||c.width,p(h.start)&&(a=h.start),c.fullSize?er(c,a,o.top,l,n.outerHeight-o.bottom-o.top):er(c,a,e.top+h.placed,l,u),h.start=a,h.placed+=u,a=c.right)}e.x=a,e.y=s}T.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});
1var i={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(n,t,r,i){if(n){var o=B(n.options.layout.padding),a=Math.max(t-o.width,0),s=Math.max(r-o.height,0),u=Xn(n.boxes),l=u.vertical,c=u.horizontal,h=(S(n.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}),l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1),t=Object.freeze({outerWidth:t,outerHeight:r,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),r=Object.assign({},o);Zn(r,B(i));let e=Object.assign({maxPadding:r,w:a,h:s,x:o.left,y:o.top},o);h=Qn(l.concat(c),t);tr(u.fullSize,e,t,h),tr(l,e,t,h),tr(c,e,t,h)&&tr(l,e,t,h);{var f=e;let n=f.maxPadding;function p(t){var e=Math.max(n[t]-f[t],0);return f[t]+=e,e}f.y+=p("top"),f.x+=p("left"),p("right"),p("bottom")}nr(u.leftAndTop,e,t,h),e.x+=e.w,e.y+=e.h,nr(u.rightAndBottom,e,t,h),n.chartArea={left:e.left,top:e.top,right:e.left+e.w,bottom:e.top+e.h,height:e.h,width:e.w},S(u.chartArea,t=>{t=t.box;Object.assign(t,n.chartArea),t.update(e.w,e.h,{left:0,top:0,right:0,bottom:0})})}}};class rr{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class ir extends rr{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}let or="$chartjs",ar={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},sr=t=>null===t||""===t;let ur=!!Me&&{passive:!0};function lr(t,e,n){t.canvas.removeEventListener(e,n,ur)}function cr(t,e){for(var n of t)if(n===e||n.contains(e))return!0}function hr(t,e,r){let i=t.canvas;t=new MutationObserver(t=>{let e=!1;for(var n of t)e=(e=e||cr(n.addedNodes,i))&&!cr(n.removedNodes,i);e&&r()});return t.observe(document,{childList:!0,subtree:!0}),t}function fr(t,e,r){let i=t.canvas;t=new MutationObserver(t=>{let e=!1;for(var n of t)e=(e=e||cr(n.removedNodes,i))&&!cr(n.addedNodes,i);e&&r()});return t.observe(document,{childList:!0,subtree:!0}),t}let pr=new Map,dr=0;function gr(){let n=window.devicePixelRatio;n!==dr&&(dr=n,pr.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function vr(t,e,r){var i=t.canvas;let o=i&&ge(i);if(o){let n=St((t,e)=>{var n=o.clientWidth;r(t,e),n<o.clientWidth&&r()},window);var a,i=new ResizeObserver(t=>{var t=t[0],e=t.contentRect.width,t=t.contentRect.height;0===e&&0===t||n(e,t)});return i.observe(o),t=t,a=n,pr.size||window.addEventListener("resize",gr),pr.set(t,a),i}}function mr(t,e,n){n&&n.disconnect(),"resize"===e&&(n=t,pr.delete(n),pr.size||window.removeEventListener("resize",gr))}function _r(e,t,n){var r=e.canvas,i=St(t=>{null!==e.ctx&&n(((t,e)=>{var n=ar[t.type]||t.type,{x:r,y:i}=we(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==i?i:null}})(t,e))},e,t=>{t=t[0];return[t,t.offsetX,t.offsetY]});return r.addEventListener(t,i,ur),i}class yr extends rr{acquireContext(t,e){var n,r,i,o=t&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(e=e,n=(t=t).style,r=t.getAttribute("height"),i=t.getAttribute("width"),t[or]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",sr(i)&&void 0!==(n=Ee(t,"width"))&&(t.width=n),sr(r)&&(""===t.style.height?t.height=t.width/(e||2):void 0!==(i=Ee(t,"height"))&&(t.height=i)),o):null}releaseContext(t){let n=t.canvas;if(!n[or])return!1;let r=n[or].initial,e=(["height","width"].forEach(t=>{var e=r[t];A(e)?n.removeAttribute(t):n.setAttribute(t,e)}),r.style||{});return Object.keys(e).forEach(t=>{n.style[t]=e[t]}),n.width=n.width,delete n[or],!0}addEventListener(t,e,n){this.removeEventListener(t,e);var r=t.$proxies||(t.$proxies={}),i={attach:hr,detach:fr,resize:vr}[e]||_r;r[e]=i(t,e,n)}removeEventListener(t,e){var n=t.$proxies||(t.$proxies={}),r=n[e];r&&(({attach:mr,detach:mr,resize:mr}[e]||lr)(t,e,r),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return ke(t,e,n,r)}isAttached(t){t=ge(t);return!(!t||!t.isConnected)}}function br(t){return!de()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ir:yr}let xr=Object.freeze({__proto__:null,_detectPlatform:br,BasePlatform:rr,BasicPlatform:ir,DomPlatform:yr}),wr="transparent",Sr={boolean(t,e,n){return.5<n?e:t},color(t,e,n){var t=ue(t||wr),r=t.valid&&ue(e||wr);return r&&r.valid?r.mix(t,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class kr{constructor(t,e,n,r){var i=e[n],i=(r=Pn([t.to,r,i,t.from]),Pn([t.from,i,r]));this._active=!0,this._fn=t.fn||Sr[t.type||typeof i],this._easing=fn[t.easing]||fn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){var r,i,o;this._active&&(this._notify(!1),r=this._target[this._prop],i=n-this._start,o=this._duration-i,this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Pn([t.to,e,r,t.from]),this._from=Pn([t.from,r,e]))}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){var t=t-this._start,e=this._duration,n=this._prop,r=this._from,i=this._loop,o=this._to;this._active=r!==o&&(i||t<e),this._active?t<0?this._target[n]=r:(t=t/e%2,t=this._easing(Math.min(1,Math.max(0,i&&1<t?2-t:t))),this._target[n]=this._fn(r,o,t)):(this._target[n]=o,this._notify(!0))}wait(){let n=this._promises||(this._promises=[]);return new Promise((t,e)=>{n.push({res:t,rej:e})})}_notify(t){var e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}T.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});let Pr=Object.keys(T.animation);T.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),T.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),T.describe("animations",{_fallback:"animation"}),T.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class Mr{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(e){if(z(e)){let i=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{var t=e[n];if(z(t)){let e={};for(var r of Pr)e[r]=t[r];
1(j(t.properties)&&t.properties||[n]).forEach(t=>{t!==n&&i.has(t)||i.set(t,e)})}})}}_animateOptions(t,e){let n=e.options;var e=((e,n)=>{if(n){let t=e.options;if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=n}})(t,n);return e?(e=this._createAnimations(e,n),n.$shared&&((e,t)=>{var n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){var i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)})(t.options.$animations,n).then(()=>{t.options=n},()=>{}),e):[]}_createAnimations(e,n){var r=this._properties,i=[],o=e.$animations||(e.$animations={}),t=Object.keys(n),a=Date.now();let s;for(s=t.length-1;0<=s;--s){var u=t[s];if("$"!==u.charAt(0))if("options"===u)i.push(...this._animateOptions(e,n));else{var l=n[u];let t=o[u];var c=r.get(u);if(t){if(c&&t.active()){t.update(c,l,a);continue}t.cancel()}c&&c.duration?(o[u]=t=new kr(c,e,u,l),i.push(t)):e[u]=l}}return i}update(t,e){var n;if(0!==this._properties.size)return(n=this._createAnimations(t,e)).length?(o.add(this._chart,n),!0):void 0;Object.assign(t,e)}}function Er(t,e){var t=t&&t.options||{},n=t.reverse,r=void 0===t.min?e:0,t=void 0===t.max?e:0;return{start:n?t:r,end:n?r:t}}function Ar(t,e){var n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function Or(t,e,n,r={}){var i=t.keys,o="single"===r.mode;let a,s,u,l;if(null!==e){for(a=0,s=i.length;a<s;++a){if((u=+i[a])===n){if(r.all)continue;break}l=t.values[u],g(l)&&(o||0===e||P(e)===P(l))&&(e+=l)}return e}}function Cr(t,e){t=t&&t.options.stacked;return t||void 0===t&&void 0!==e.stack}function Dr(t,e,n,r){for(var i of e.getMatchingVisibleMetas(r).reverse()){var o=t[i.index];if(n&&0<o||!n&&o<0)return i.index}return null}function Ir(t,e){var n,{chart:t,_cachedMeta:r}=t,i=t._stacks||(t._stacks={}),{iScale:t,vScale:o,index:a}=r,s=t.axis,u=o.axis,l=(n=r,`${t.id}.${o.id}.`+(n.stack||n.type)),c=e.length;for(let t=0;t<c;++t){var h,f=e[t],{[s]:p,[u]:d}=f;(h=(f._stacks||(f._stacks={}))[u]=(f=p,(p=(p=i)[h=l]||(p[h]={}))[f]||(p[f]={})))[a]=d,h._top=Dr(h,o,!0,r.type),h._bottom=Dr(h,o,!1,r.type)}}function Tr(t,e){let n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Lr(t,e){var n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r)for(var i of e=e||t._parsed){i=i._stacks;if(!i||void 0===i[r]||void 0===i[r][n])return;delete i[r][n]}}let jr=t=>"reset"===t||"none"===t,Rr=(t,e)=>e?t:Object.assign({},t);class e{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Cr(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Lr(this._cachedMeta),this.index=t}linkScales(){var t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,i=e.xAxisID=N(n.xAxisID,Tr(t,"x")),o=e.yAxisID=N(n.yAxisID,Tr(t,"y")),n=e.rAxisID=N(n.rAxisID,Tr(t,"r")),t=e.indexAxis,a=e.iAxisID=r(t,i,o,n),r=e.vAxisID=r(t,o,i,n);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(n),e.iScale=this.getScaleForId(a),e.vScale=this.getScaleForId(r)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){var t=this._cachedMeta;this._data&&bt(this._data,this),t._stacked&&Lr(t)}_dataCheck(){var t=this.getDataset(),t=t.data||(t.data=[]),e=this._data;z(t)?this._data=(t=>{var e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],n[r]={x:o,y:t[o]};return n})(t):e!==t&&(e&&(bt(e,this),Lr(e=this._cachedMeta),e._parsed=[]),t&&Object.isExtensible(t)&&yt
1(t,this),this._syncList=[],this._data=t)}addElements(){var t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){var e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();var i=e._stacked;e._stacked=Cr(e.vScale,e),e.stack!==n.stack&&(r=!0,Lr(e),e.stack=n.stack),this._resyncElements(t),!r&&i===e._stacked||Ir(this,e._parsed)}configure(){var t=this.chart.config,e=t.datasetScopeKeys(this._type),e=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(e,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){var{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:o}=n;let a=i.axis,s=0===t&&e===r.length||n._sorted,u=0<t&&n._parsed[t-1],l,c,h;if(!1===this._parsing)n._parsed=r,n._sorted=!0,h=r;else{h=j(r[t])?this.parseArrayData(n,r,t,e):z(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);for(l=0;l<e;++l)n._parsed[l+t]=c=h[l],s&&((null===c[a]||u&&c[a]<u[a])&&(s=!1),u=c);n._sorted=s}o&&Ir(this,h)}parsePrimitiveData(t,e,n,r){var{iScale:i,vScale:o}=t,a=i.axis,s=o.axis,u=i.getLabels(),l=i===o,c=new Array(r);let h,f,p;for(h=0,f=r;h<f;++h)p=h+n,c[h]={[a]:l||i.parse(u[p],p),[s]:o.parse(e[p],p)};return c}parseArrayData(t,e,n,r){var{xScale:i,yScale:o}=t,a=new Array(r);let s,u,l,c;for(s=0,u=r;s<u;++s)c=e[l=s+n],a[s]={x:i.parse(c[0],l),y:o.parse(c[1],l)};return a}parseObjectData(t,e,n,r){var{xScale:i,yScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,u=new Array(r);let l,c,h,f;for(l=0,c=r;l<c;++l)f=e[h=l+n],u[l]={x:i.parse(d(f,a),h),y:o.parse(d(f,s),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){var r=this.chart,i=this._cachedMeta,o=e[t.axis];return Or({keys:Ar(r,!0),values:e._stacks[t.axis]},o,i.index,{mode:n})}updateRangeFromParsed(t,e,n,r){var i=n[e.axis];let o=null===i?NaN:i;n=r&&n._stacks[e.axis];r&&n&&(r.values=n,o=Or(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(e,t){var n=this._cachedMeta;let r=n._parsed;var i=n._sorted&&e===n.iScale,o=r.length;let a=this._getOtherScale(e);n=n,s=this.chart;var s,u=t&&!n.hidden&&n._stacked&&{keys:Ar(s,!0),values:null},l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};let{min:c,max:h}=(t=>{var{min:t,max:e,minDefined:n,maxDefined:r}=t.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}})(a),f,p;function d(){var t=(p=r[f])[a.axis];return!g(p[e.axis])||c>t||h<t}for(f=0;f<o&&(d()||(this.updateRangeFromParsed(l,e,p,u),!i));++f);if(i)for(f=o-1;0<=f;--f)if(!d()){this.updateRangeFromParsed(l,e,p,u);break}return l}getAllParsedValues(t){var e=this._cachedMeta._parsed,n=[];let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r][t.axis],g(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){var e=this._cachedMeta,n=e.iScale,e=e.vScale,t=this.getParsed(t);return{label:n?""+n.getLabelForValue(t[n.axis]):"",value:e?""+e.getLabelForValue(t[e.axis]):""}}_update(t){var e,n=this._cachedMeta;this.update(t||"default"),n._clip=(t=>{let e,n,r,i;return z(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:!1===t}})(N(this.options.clip,(t=n.xScale,n=n.yScale,!1!==(e=this.getMaxOverflow())&&(t=Er(t,e),{top:(n=Er(n,e)).end,right:t.end,bottom:n.start,left:t.start}))))}update(t){}draw(){var t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],i=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,u=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,i,a,s),l=a;l<a+s;++l){var c=r[l];c.hidden||(c.active&&u?o.push(c):c.draw(t,i))}for(l=0;l<o.length;++l)o[l].draw(t,i)}getStyle(t,e){e=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(e):this.resolveDataElementOptions(t||0,e)}getContext(t,e,n){var r,i=this.getDataset();let o;return 0<=t&&t<this._cachedMeta.data.length?(r=this._cachedMeta.data[t],(o=r.$context||(r.$context=En(this.getContext(),{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"}))).parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t):((o=this.$context||(this.$context=(r=this.chart.getContext(),t=this.index,En(r,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})))).dataset=i,o.index=o.datasetIndex=this.index),o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){let r="active"===e;var i,o,a=this._cachedDataOpts,e=t+"-"+e,s=a[e],u=this.enableOptionSharing&&p(n);return s?Rr(s,u):(o=(s=this.chart.config).datasetElementScopeKeys(this._type,t),i=r?[t+"Hover","hover",t,""]:[t,""],o=s.getOptionScopes(this.getDataset(),o),t=Object.keys(T.elements[t]),(s=s.resolveNamedOptions(o,t,()=>this.getContext(n,r),i)).$shared&&(s.$shared=u,a[e]=Object.freeze(Rr(s,u))),s)}_resolveAnimations(t,e,n){var r,i=this.chart,o=this._cachedDataOpts,a="animation-"+e,s=o[a];if(s)return s;let u;!1!==i.options.animation&&(r=(s=this.chart.config).datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),r),u=s.createResolver(r,this.getContext(t,n,e)));s=new Mr(i,u&&u.animations);return u&&u._cacheable&&(o[a]=Object.freeze(s)),s}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||jr(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){var t=this.resolveDataElementOptions(t,e),n=this._sharedOptions,r=this.getSharedOptions(t),n=this.includeOptions(e,r)||r!==n;return this.updateSharedOptions(r,e,t),{sharedOptions:r,includeOptions:n}}updateElement(t,e,n,r){jr(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!jr(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;var i=this.getStyle(e,r);
1this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){var e,n,r,i=this._data,o=this._cachedMeta.data;for([e,n,r]of this._syncList)this[e](n,r);this._syncList=[];var o=o.length,i=i.length,a=Math.min(i,o);a&&this.parse(0,a),o<i?this._insertElements(o,i-o,t):i<o&&this._removeElements(i,o-i)}_insertElements(t,e,n=!0){var r=this._cachedMeta,i=r.data;let o=t+e,a;var s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(i,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){var n,r=this._cachedMeta;this._parsing&&(n=r._parsed.splice(t,e),r._stacked)&&Lr(r,n),r.data.splice(t,e)}_sync(t){var e,n,r;this._parsing?this._syncList.push(t):([e,n,r]=t,this[e](n,r)),this.chart._dataChanges.push([this.index,...t])}_onDataPush(){var t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);e=arguments.length-2;e&&this._sync(["_insertElements",t,e])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}e.defaults={},e.prototype.datasetElementType=null,e.prototype.dataElementType=null;class n{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){var{x:t,y:e}=this.getProps(["x","y"],t);return{x:t,y:e}}hasValue(){return it(this.x)&&it(this.y)}getProps(t,e){let n=this.$animations;if(!e||!n)return this;let r={};return t.forEach(t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),r}}n.defaults={},n.defaultRoutes=void 0;let zr={values(t){return j(t)?t:""+t},numeric(t,e,n){if(0===t)return"0";var r=this.chart.options.locale;let i,o=t;1<n.length&&(((a=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value)))<1e-4||1e15<a)&&(i="scientific"),o=((t,e)=>{let n=3<e.length?e[2].value-e[1].value:e[1].value-e[0].value;return n=1<=Math.abs(n)&&t!==Math.floor(t)?t-Math.floor(t):n})(t,n));var a=f(Math.abs(o)),n=Math.max(Math.min(-1*Math.floor(a),20),0),a={notation:i,minimumFractionDigits:n,maximumFractionDigits:n};return Object.assign(a,this.options.ticks.format),mn(t,r,a)},logarithmic(t,e,n){var r;return 0===t?"0":1==(r=t/Math.pow(10,Math.floor(f(t))))||2==r||5==r?zr.numeric.call(this,t,e,n):""}};Me={formatters:zr};function Nr(n,r){var i=n.options.ticks,o=i.maxTicksLimit||(s=(n=n).options.offset,o=n._tickSize(),s=n._length/o+(s?0:1),n=n._maxLength/o,Math.floor(Math.min(s,n))),a=i.major.enabled?(t=>{let e=[],n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e})(r):[],s=a.length,n=a[0],i=a[s-1],u=[];if(o<s){var l=r,c=u,h=a,f=s/o;let t=0,e=h[0],n;for(f=Math.ceil(f),n=0;n<l.length;n++)n===e&&(c.push(l[n]),t++,e=h[t*f])}else{var p=((t,e,n)=>{var t=(t=>{let e=t.length,n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r})(t),r=e.length/n;if(t){var i=rt(t);for(let t=0,e=i.length-1;t<e;t++){var o=i[t];if(r<o)return o}}return Math.max(r,1)})(a,r,o);if(0<s){let t,e;var d=1<s?Math.round((i-n)/(s-1)):null;for(Br(r,u,p,A(d)?0:n-d,n),t=0,e=s-1;t<e;t++)Br(r,u,p,a[t],a[t+1]);Br(r,u,p,i,A(d)?r.length:i+d)}else Br(r,u,p)}return u}function Br(t,e,n,r,i){var o=N(r,0),a=Math.min(N(i,t.length),t.length);let s=0,u,l,c;for(n=Math.ceil(n),i&&(n=(u=i-r)/Math.floor(u/n)),c=o;c<0;)s++,c=Math.round(o+s*n);for(l=Math.max(o,0);l<a;l++)l===c&&(e.push(t[l]),s++,c=Math.round(o+s*n))}T.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Me.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),T.route("scale.ticks","color","","color"),T.route("scale.grid","color","","borderColor"),T.route("scale.grid","borderColor","","borderColor"),T.route("scale.title","color","","color"),T.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),T.describe("scales",{_fallback:"scale"}),T.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});let Fr=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Hr(t,e){var n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function Wr(t){return t.drawTicks?t.tickLength:0}function Vr(t,e){var n;return t.display?(e=L(t.font,e),n=B(t.padding),(j(t.text)?t.text.length:1)*e.lineHeight+n.height):0}class $r extends n{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){var{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this,t=l(t,Number.POSITIVE_INFINITY),e=l(e,Number.NEGATIVE_INFINITY),n=l(n,Number.POSITIVE_INFINITY),r=l(r,Number.NEGATIVE_INFINITY);return{min:l(t,n),max:l(e,r),minDefined:g(t),maxDefined:g(e)}}getMinMax(n){let{min:r,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();var s;if(o&&a)return{min:r,max:i};var u=this.getMatchingVisibleMetas();for(let t=0,e=u.length;t<e;++t)s=u[t].controller.getMinMax(this,n),o||(r=Math.min(r,s.min)),a||(i=Math.max(i,s.max));return r=a&&r>i?i:r,i=o&&r>i?r:i,{min:l(r,l(i,r)),max:l(i,l(r,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){c(this.options.beforeUpdate,[this])}update(t,e,n){var{beginAtZero:r,grace:i,ticks:o}=this.options,a=o.sampleSize,t=(this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Mn(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks(),a<this.ticks.length);this._convertTicksToLabels(t?Hr(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Nr(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),t&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,n;this.isHorizontal()?(e=this.left,n=this.right):(e=this.top,n=this.bottom,t=!t),this._startPixel=e,this._endPixel=n,this._reversePixels=t,this._length=n-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){c(this.options.afterUpdate,[this])}beforeSetDimensions(){c(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){c(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),c(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){c(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){var e=this.options.ticks;let n,r,i;for(n=0,r=t.length;n<r;n++)(i=t[n]).label=c(e.callback,[i.value,n,t],this)}afterTickToLabelConversion(){c(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){c(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){var t,e,n,r,i=this.options,o=i.ticks,a=this.ticks.length,s=o.minRotation||0,u=o.maxRotation;let l=s;!this._isVisible()||!o.display||u<=s||a<=1||!this.isHorizontal()?this.labelRotation=s:(e=(t=this._getLabelSizes()).widest.width,n=t.highest.height,r=_(this.chart.width-e,0,this.maxWidth),(i.offset?this.maxWidth/a:r/(a-1))<e+6&&(r=r/(a-(i.offset?.5:1)),a=this.maxHeight-Wr(i.grid)-o.padding-Vr(i.title,this.chart.options.font),o=Math.sqrt(e*e+n*n),l=ut(Math.min(Math.asin(_((t.highest.height+6)/r,-1,1)),Math.asin(_(a/o,-1,1))-Math.asin(_(n/o,-1,1)))),l=Math.max(s,Math.min(u,l))),this.labelRotation=l)}afterCalculateLabelRotation(){c(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){c(this.options.beforeFit,[this])}fit(){var t,e,n,r,i,o={width:0,height:0}
1,{chart:a,options:{ticks:s,title:u,grid:l}}=this,c=this._isVisible(),h=this.isHorizontal();c&&(c=Vr(u,a.options.font),h?(o.width=this.maxWidth,o.height=Wr(l)+c):(o.height=this.maxHeight,o.width=Wr(l)+c),s.display)&&this.ticks.length&&({first:u,last:l,widest:c,highest:t}=this._getLabelSizes(),e=2*s.padding,r=R(this.labelRotation),n=Math.cos(r),r=Math.sin(r),h?(i=s.mirror?0:r*c.width+n*t.height,o.height=Math.min(this.maxHeight,o.height+i+e)):(i=s.mirror?0:n*c.width+r*t.height,o.width=Math.min(this.maxWidth,o.width+i+e)),this._calculatePadding(u,l,r,n)),this._handleMargins(),h?(this.width=this._length=a.width-this._margins.left-this._margins.right,this.height=o.height):(this.width=o.width,this.height=this._length=a.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,r,i,o){var{ticks:{align:a,padding:s},position:u}=this.options,l=0!==this.labelRotation,u="top"!==u&&"x"===this.axis;if(this.isHorizontal()){var c=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let t=0,e=0;l?e=u?(t=o*n.width,i*r.height):(t=i*n.height,o*r.width):"start"===a?e=r.width:"end"===a?t=n.width:"inner"!==a&&(t=n.width/2,e=r.width/2),this.paddingLeft=Math.max((t-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((e-h+s)*this.width/(this.width-h),0)}else{let t=r.height/2,e=n.height/2;"start"===a?(t=0,e=n.height):"end"===a&&(t=r.height,e=0),this.paddingTop=t+s,this.paddingBottom=e+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){c(this.options.afterFit,[this])}isHorizontal(){var{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,n;for(e=0,n=t.length;e<n;e++)A(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){var n=this.options.ticks.sampleSize;let t=this.ticks;n<t.length&&(t=Hr(t,n)),this._labelSizes=e=this._computeLabelSizes(t,t.length)}return e}_computeLabelSizes(t,e){var i,{ctx:n,_longestTextCache:r}=this;let o=[],a=[],s=0,u=0,l,c,h,f,p,d,g,v,m,_,y;for(l=0;l<e;++l){if(f=t[l].label,p=this._resolveTickFontOptions(l),n.font=d=p.string,g=r[d]=r[d]||{data:{},gc:[]},v=p.lineHeight,m=_=0,A(f)||j(f)){if(j(f))for(c=0,h=f.length;c<h;++c)A(y=f[c])||j(y)||(m=Oe(n,g.data,g.gc,m,y),_+=v)}else m=Oe(n,g.data,g.gc,m,f),_=v;o.push(m),a.push(_),s=Math.max(m,s),u=Math.max(_,u)}i=e,S(r,t=>{var e=t.gc,n=e.length/2;let r;if(i<n){for(r=0;r<n;++r)delete t.data[e[r]];e.splice(0,n)}});var b=o.indexOf(s),x=a.indexOf(u),w=t=>({width:o[t]||0,height:a[t]||0});return{first:w(0),last:w(e-1),widest:w(b),highest:w(x),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);t=this._startPixel+t*this._length;return dt(this._alignToPixels?De(this.chart,t,0):t)}getDecimalForPixel(t){t=(t-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){var{min:t,max:e}=this;return t<0&&e<0?e:0<t&&0<e?t:0}getContext(t){var e=this.ticks||[];return 0<=t&&t<e.length?(e=e[t]).$context||(e.$context=En(this.getContext(),{tick:e,index:t,type:"tick"})):this.$context||(this.$context=En(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){var t=this.options.ticks,e=R(this.labelRotation),n=Math.abs(Math.cos(e)),e=Math.abs(Math.sin(e)),r=this._getLabelSizes(),t=t.autoSkipPadding||0,i=r?r.widest.width+t:0,r=r?r.highest.height+t:0;return this.isHorizontal()?i*e<r*n?i/n:r/e:r*e<i*n?r/n:i/e}_isVisible(){var t=this.options.display;return"auto"!==t?!!t:0<this.getMatchingVisibleMetas().length}_computeGridLineItems(t){var e=this.axis;let n=this.chart;var r=this.options,{grid:i,position:o}=r,a=i.offset,s=this.isHorizontal(),u=this.ticks.length+(a?1:0),l=Wr(i),c=[],h=i.setContext(this.getContext());let f=h.drawBorder?h.borderWidth:0;function p(t){return De(n,t,f)}var d,g,h=f/2;let v,m,_,y,b,x,w,S,k,P,M,E;
1"top"===o?(v=p(this.bottom),x=this.bottom-l,S=v-h,P=p(t.top)+h,E=t.bottom):"bottom"===o?(v=p(this.top),P=t.top,E=p(t.bottom)-h,x=v+h,S=this.top+l):"left"===o?(v=p(this.right),b=this.right-l,w=v-h,k=p(t.left)+h,M=t.right):"right"===o?(v=p(this.left),k=t.left,M=p(t.right)-h,b=v+h,w=this.left+l):"x"===e?("center"===o?v=p((t.top+t.bottom)/2+.5):z(o)&&(g=o[d=Object.keys(o)[0]],v=p(this.chart.scales[d].getPixelForValue(g))),P=t.top,E=t.bottom,x=v+h,S=x+l):"y"===e&&("center"===o?v=p((t.left+t.right)/2):z(o)&&(g=o[d=Object.keys(o)[0]],v=p(this.chart.scales[d].getPixelForValue(g))),b=v-h,w=b-l,k=t.left,M=t.right);var e=N(r.ticks.maxTicksLimit,u),A=Math.max(1,Math.ceil(u/e));for(m=0;m<u;m+=A){var O=i.setContext(this.getContext(m)),C=O.lineWidth,D=O.color,I=O.borderDash||[],T=O.borderDashOffset,L=O.tickWidth,j=O.tickColor,R=O.tickBorderDash||[],O=O.tickBorderDashOffset;void 0!==(_=((t,e,n)=>{var r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel;let s=t.getPixelForTick(i),u;if(!(n&&(u=1===r?Math.max(s-o,a-s):0===e?(t.getPixelForTick(1)-s)/2:(s-t.getPixelForTick(i-1))/2,(s+=i<e?u:-u)<o-1e-6||s>a+1e-6)))return s})(this,m,a))&&(y=De(n,_,C),s?b=w=k=M=y:x=S=P=E=y,c.push({tx1:b,ty1:x,tx2:w,ty2:S,x1:k,y1:P,x2:M,y2:E,width:C,color:D,borderDash:I,borderDashOffset:T,tickWidth:L,tickColor:j,tickBorderDash:R,tickBorderDashOffset:O}))}return this._ticksLength=u,this._borderValue=v,c}_computeLabelItems(t){var e,n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:u,crossAlign:l,padding:c,mirror:h}=o,r=Wr(r.grid),f=r+c,c=h?-c:f,p=-R(this.labelRotation),d=[];let g,v,m,_,y,b,x,w,S,k,P,M="middle";"top"===i?(y=this.bottom-c,b=this._getXAxisLabelAlignment()):"bottom"===i?(y=this.top+c,b=this._getXAxisLabelAlignment()):"left"===i?(c=this._getYAxisLabelAlignment(r),b=c.textAlign,_=c.x):"right"===i?(c=this._getYAxisLabelAlignment(r),b=c.textAlign,_=c.x):"x"===n?("center"===i?y=(t.top+t.bottom)/2+f:z(i)&&(e=i[c=Object.keys(i)[0]],y=this.chart.scales[c].getPixelForValue(e)+f),b=this._getXAxisLabelAlignment()):"y"===n&&("center"===i?_=(t.left+t.right)/2-f:z(i)&&(e=i[c=Object.keys(i)[0]],_=this.chart.scales[c].getPixelForValue(e)),b=this._getYAxisLabelAlignment(r).textAlign),"y"===n&&("start"===u?M="top":"end"===u&&(M="bottom"));var E=this._getLabelSizes();for(g=0,v=s.length;g<v;++g){m=s[g].label;var A=o.setContext(this.getContext(g)),O=(x=this.getPixelForTick(g)+o.labelOffset,S=(w=this._resolveTickFontOptions(g)).lineHeight,(k=j(m)?m.length:1)/2),C=A.color,D=A.textStrokeColor,I=A.textStrokeWidth;let t=b;a?(_=x,"inner"===b&&(t=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),P="top"===i?"near"===l||0!=p?-k*S+S/2:"center"===l?-E.highest.height/2-O*S+S:-E.highest.height+S/2:"near"===l||0!=p?S/2:"center"===l?E.highest.height/2-O*S:E.highest.height-k*S,h&&(P*=-1)):(y=x,P=(1-k)*S/2);let n;if(A.showLabelBackdrop){var O=B(A.backdropPadding),T=E.heights[g],L=E.widths[g];let t=y+P-O.top,e=_-O.left;switch(M){case"middle":t-=T/2;break;case"bottom":t-=T}switch(b){case"center":e-=L/2;break;case"right":e-=L}n={left:e,top:t,width:L+O.width,height:T+O.height,color:A.backdropColor}}d.push({rotation:p,label:m,font:w,color:C,strokeColor:D,strokeWidth:I,textOffset:P,textAlign:t,textBaseline:M,translation:[_,y],backdrop:n})}return d}_getXAxisLabelAlignment(){var{position:t,ticks:e}=this.options;if(-R(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){var{position:e,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,t=t+i,o=this._getLabelSizes().widest.width;let a,s;return"left"===e?r?(s=this.right+i,"near"===n?a="left":"center"===n?(a="center",s+=o/2):(a="right",s+=o)):(s=this.right-t,"near"===n?a="right":"center"===n?(a="center",s-=o/2):(a="left",s=this.left)):"right"===e?r?(s=this.left+i,"near"===n?a="right":"center"===n?(a="center",s-=o/2):(a="left",s-=o)):(s=this.left+t,"near"===n?a="left":"center"===n?(a="center",s+=o/2):(a="right",s=this.right)):a="right",{textAlign:a,x:s}}_computeLabelArea(){var t,e;if(!this.options.ticks.mirror)return t=this.chart,"left"===(e=this.options.position)||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
1:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){var{ctx:t,options:{backgroundColor:e},left:n,top:r,width:i,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,o),t.restore())}getLineWidthForValue(e){var t,n=this.options.grid;return this._isVisible()&&n.display&&0<=(t=this.ticks.findIndex(t=>t.value===e))?n.setContext(this.getContext(t)).lineWidth:0}drawGrid(t){var e=this.options.grid;let r=this.ctx;var n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;var a=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(i=0,o=n.length;i<o;++i){var s=n[i];e.drawOnChartArea&&a({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),e.drawTicks&&a({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}drawBorder(){var{chart:i,ctx:o,options:{grid:a}}=this,s=a.setContext(this.getContext()),u=a.drawBorder?s.borderWidth:0;if(u){var a=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let t,e,n,r;this.isHorizontal()?(t=De(i,this.left,u)-u/2,e=De(i,this.right,a)+a/2,n=r=l):(n=De(i,this.top,u)-u/2,r=De(i,this.bottom,a)+a/2,t=e=l),o.save(),o.lineWidth=s.borderWidth,o.strokeStyle=s.borderColor,o.beginPath(),o.moveTo(t,n),o.lineTo(e,r),o.stroke(),o.restore()}}drawLabels(n){if(this.options.ticks.display){var r=this.ctx,i=this._computeLabelArea(),o=(i&&Re(r,i),this._labelItems||(this._labelItems=this._computeLabelItems(n)));let t,e;for(t=0,e=o.length;t<e;++t){var a=o[t],s=a.font,u=a.label,l=(a.backdrop&&(r.fillStyle=a.backdrop.color,r.fillRect(a.backdrop.left,a.backdrop.top,a.backdrop.width,a.backdrop.height)),a.textOffset);Fe(r,u,0,l,s,a)}i&&ze(r)}}drawTitle(){var{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(r.display){var o=L(r.font),a=B(r.padding),s=r.align;let t=o.lineHeight/2;"bottom"===n||"center"===n||z(n)?(t+=a.bottom,j(r.text)&&(t+=o.lineHeight*(r.text.length-1))):t+=a.top;var{titleX:a,titleY:u,maxWidth:l,rotation:c}=((t,e,n,r)=>{var{top:i,left:o,bottom:a,right:s,chart:u}=t,{chartArea:u,scales:l}=u;let c=0,h,f,p;var d,g,v=a-i,m=s-o;return t.isHorizontal()?(f=I(r,o,s),p=z(n)?(g=n[d=Object.keys(n)[0]],l[d].getPixelForValue(g)+v-e):"center"===n?(u.bottom+u.top)/2+v-e:Fr(t,n,e),h=s-o):(f=z(n)?(g=n[d=Object.keys(n)[0]],l[d].getPixelForValue(g)-m+e):"center"===n?(u.left+u.right)/2-m+e:Fr(t,n,e),p=I(r,a,i),c="left"===n?-w:w),{titleX:f,titleY:p,maxWidth:h,rotation:c}})(this,t,n,s);Fe(e,r.text,0,0,o,{color:r.color,maxWidth:l,rotation:c,textAlign:((t,e,n)=>{let r=Pt(t);return r=n&&"right"!==e||!n&&"right"===e?"left"===(t=r)?"right":"right"===t?"left":t:r})(s,n,i),textBaseline:"middle",translation:[a,u]})}}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){var t=this.options,e=t.ticks&&t.ticks.z||0,t=N(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===$r.prototype.draw?[{z:t,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:t+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){var e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=e.length;i<o;++i){var a=e[i];a[n]!==this.id||t&&a.type!==t||r.push(a)}return r}_resolveTickFontOptions(t){return L(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){var t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class qr{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){var e=Object.getPrototypeOf(t);let n;"id"in(a=e)&&"defaults"in a&&(n=this.register(e));var r,i,o,a=this.items,e=t.id,s=this.scope+"."+e;if(e)return e in a||(a=a[e]=t,e=s,r=n,r=V(Object.create(null),[r?T.get(r):{},T.get(e),a.defaults]),T.set(e,r),a.defaultRoutes&&(i=e,o=a.defaultRoutes,Object.keys(o).forEac
1h(t=>{var e=t.split("."),n=e.pop(),e=[i].concat(e).join("."),t=o[t].split("."),r=t.pop(),t=t.join(".");T.route(e,n,t,r)})),a.descriptors&&T.describe(e,a.descriptors),this.override&&T.override(t.id,t.overrides)),s;throw new Error("class does not have id: "+t)}get(t){return this.items[t]}unregister(t){var e=this.items,t=t.id,n=this.scope;t in e&&delete e[t],n&&t in T[n]&&(delete T[n][t],this.override)&&delete ce[t]}}var k=new class{constructor(){this.controllers=new qr(e,"datasets",!0),this.elements=new qr(n,"elements"),this.plugins=new qr(Object,"plugins"),this.scales=new qr($r,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(n,t,r){[...t].forEach(t=>{var e=r||this._getRegistryForType(t);r||e.isForType(t)||e===this.plugins&&t.id?this._exec(n,e,t):S(t,t=>{var e=r||this._getRegistryForType(t);this._exec(n,e,t)})})}_exec(t,e,n){var r=K(t);c(n["before"+r],[],n),e[t](n),c(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(t,e,n){e=e.get(t);if(void 0===e)throw new Error('"'+t+'" is not a registered '+n+".");return e}};class Ur{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));r=r?this._descriptors(t).filter(r):this._descriptors(t),n=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),n}_notify(t,e,n,r){r=r||{};for(var i of t){var o=i.plugin;if(!1===c(o[n],[e,r,i.options],o)&&r.cancelable)return!1}return!0}invalidate(){A(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){var e;return this._cache||(e=this._cache=this._createDescriptors(t),this._notifyStateChanges(t),e)}_createDescriptors(t,e){var n=t&&t.config,r=N(n.options&&n.options.plugins,{}),n=(t=>{var e={},n=[],r=Object.keys(k.plugins.items);for(let t=0;t<r.length;t++)n.push(k.getPlugin(r[t]));var i=t.plugins||[];for(let t=0;t<i.length;t++){var o=i[t];-1===n.indexOf(o)&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}})(n);if(!1!==r||e){var i,[o,{plugins:t,localIds:a},s,u]=[t,n,r,e],l=[],c=o.getContext();for(i of t){var h=i.id,f=((t,e)=>e||!1!==t?!0!==t?t:{}:null)(s[h],u);null!==f&&l.push({plugin:i,options:((t,{plugin:e,local:n},r,i)=>{var o=t.pluginScopeKeys(e),r=t.getOptionScopes(r,o);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})})(o.config,{plugin:i,local:a[h]},f,c)})}return l}return[]}_notifyStateChanges(t){var e=this._oldCache||[],n=this._cache,r=(t,n)=>t.filter(e=>!n.some(t=>e.plugin.id===t.plugin.id));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function Yr(t,e){var n=T.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Kr(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(e=e.position)||"bottom"===e?"x":"left"
1===e||"right"===e?"y":void 0)||t.charAt(0).toLowerCase()}function Gr(e,n){let o=ce[e.type]||{scales:{}},a=n.scales||{},s=Yr(e.type,n),u=Object.create(null),l=Object.create(null);return Object.keys(a).forEach(t=>{var e,n,r,i=a[t];return z(i)?i._proxy?console.warn("Ignoring resolver passed as options for scale: "+t):(e=Kr(t,i),n=e,r=s,n=n===r?"_index_":"_value_",r=o.scales||{},u[e]=u[e]||t,void(l[t]=$(Object.create(null),[{axis:e},i,r[e],r[n]]))):console.error("Invalid scale configuration for scale: "+t)}),e.data.datasets.forEach(r=>{var t=r.type||e.type;let i=r.indexAxis||Yr(t,n),o=(ce[t]||{}).scales||{};Object.keys(o).forEach(t=>{var e=((t,e)=>{let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n})(t,i),n=r[e+"AxisID"]||u[e]||e;l[n]=l[n]||Object.create(null),$(l[n],[{axis:e},a[n],o[t]])})}),Object.keys(l).forEach(t=>{t=l[t];$(t,[T.scales[t.type],T.scale])}),l}function Qr(t){var e=t.options||(t.options={});e.plugins=N(e.plugins,{}),e.scales=Gr(t,e)}function Xr(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}let Jr=new Map,Zr=new Set;function ti(t,e){let n=Jr.get(t);return n||(n=e(),Jr.set(t,n),Zr.add(n)),n}let ei=(t,e,n)=>{e=d(e,n);void 0!==e&&t.add(e)};class ni{constructor(t){this._config=((t=(t=t)||{}).data=Xr(t.data),Qr(t),t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Xr(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){var t=this._config;this.clearCache(),Qr(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ti(t,()=>[["datasets."+t,""]])}datasetAnimationScopeKeys(t,e){return ti(t+".transition."+e,()=>[[`datasets.${t}.transitions.`+e,"transitions."+e],["datasets."+t,""]])}datasetElementScopeKeys(t,e){return ti(t+"-"+e,()=>[[`datasets.${t}.elements.`+e,"datasets."+t,"elements."+e,""]])}pluginScopeKeys(t){let e=t.id;return ti(this.type+"-plugin-"+e,()=>[["plugins."+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){var n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this;var n=this._cachedScopes(e,n),o=n.get(t);if(o)return o;let a=new Set;t.forEach(t=>{e&&(a.add(e),t.forEach(t=>ei(a,e,t))),t.forEach(t=>ei(a,r,t)),t.forEach(t=>ei(a,ce[i]||{},t)),t.forEach(t=>ei(a,T,t)),t.forEach(t=>ei(a,he,t))});o=Array.from(a);return 0===o.length&&o.push(Object.create(null)),Zr.has(t)&&n.set(t,o),o}chartOptionScopes(){var{options:t,type:e}=this;return[t,ce[e]||{},T.datasets[e]||{},{type:e},T,he]}resolveNamedOptions(t,e,n,r=[""]){var i,o={$shared:!0},{resolver:r,subPrefixes:a}=ri(this._resolverCache,t,r);let s=r;((t,e)=>{var{isScriptable:n,isIndexable:r}=$e(t);for(a of e){var i=n(a),o=r(a),a=(o||i)&&t[a];if(i&&(h(a)||ii(a))||o&&j(a))return 1}})(r,e)&&(o.$shared=!1,n=h(n)?n():n,t=this.createResolver(t,n,a),s=Ve(r,n,t));for(i of e)o[i]=s[i];return o}createResolver(t,e,n=[""],r){t=ri(this._resolverCache,t,n).resolver;return z(e)?Ve(t,e,void 0,r):t}}function ri(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));t=n.join();let i=r.get(t);return i||(e=We(e,n),i={resolver:e,subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},r.set(t,i)),i}let ii=n=>z(n)&&Object.getOwnPropertyNames(n).reduce((t,e)=>t||h(n[e]),!1);let oi=["top","bottom","left","right","chartArea"];function ai(t,e){return"top"===t||"bottom"===t||-1===oi.indexOf(t)&&"x"===e}function si(n,r){return function(t,e){return t[n]===e[n]?t[r]-e[r]:t[n]-e[n]}}function ui(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),c(n&&n.onComplete,[t],e)}function li(t){var e=t.chart,n=e.options.animation;c(n&&n.onProgress,[t],e)}function ci(t){return de()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t=t&&t.canvas?t.canvas:t}let hi={},fi=t=>{let e=ci(t);return Object.values(hi).filter(t=>t.canvas===e).pop()};class r{constructor(t,e){var e=this.config=new ni(e),t=ci(t),n=fi(t);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");var n=e.createResolver(e.chartOptionScopes(),this.getContext()),e=(this.platform=new(e.platform||br(t)),this.platform.updateConfig(e),this.platform.acquireContext(t,n.aspectRatio)),t=e&&e.canvas,r=t&&t.height,i=t&&t.width;this.id=E(),this.ctx=e,this.canvas=t,this.width=i,this.height=r,this._options=n,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ur,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=kt(t=>this.update(t),n.resizeDelay||0),this._dataChanges=[],hi[this.id]=this,e&&t?(o.listen(this,"complete",ui),o.listen(this,"progress",li),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){var{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:i}=this;return A(t)?e&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ie(this.canvas,this.ctx),this}stop(){return o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(r,t,e,i),t=n.devicePixelRatio||this.platform.getDevicePixelRatio(),e=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Pe(this,t,!0)&&(this.notifyPlugins("resize",{size:r}),c(n.onResize,[this,r],this),this.attached)&&this._doResize(e)&&this.render()}ensureScalesHaveIDs(){S(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){let a=this.options,r=a.scales,s=this.scales,u=Object.keys(s).reduce((t,e)=>(t[e]=!1,t),{}),t=[];S(t=r?t.concat(Object.keys(r).map(t=>{var e=r[t],t=Kr(t,e),n="r"===t,t="x"===t;return{options:e,dposition:n?"chartArea":t?"bottom":"left",dtype:n?"radialLinear":t?"category":"linear"}})):t,t=>{var e=t.options,n=e.id,r=Kr(n,e),i=N(e.type,t.dtype);void 0!==e.position&&ai(e.position,r)===ai(t.dposition)||(e.position=t.dposition),u[n]=!0;let o=null;
1n in s&&s[n].type===i?o=s[n]:(r=k.getScale(i),o=new r({id:n,type:i,ctx:this.ctx,chart:this}),s[o.id]=o),o.init(e,a)}),S(u,(t,e)=>{t||delete s[e]}),S(s,t=>{i.configure(this,t,t.options),i.addBox(this,t)})}_updateMetasets(){var t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),e<n){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(si("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((e,t)=>{0===n.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){var e=[],n=this.data.datasets;let r,t;for(this._removeUnreferencedMetasets(),r=0,t=n.length;r<t;r++){var i=n[r];let t=this.getDatasetMeta(r);var o,a=i.type||this.config.type;t.type&&t.type!==a&&(this._destroyDatasetMeta(r),t=this.getDatasetMeta(r)),t.type=a,t.indexAxis=i.indexAxis||Yr(a,this.options),t.order=i.order||0,t.index=r,t.label=""+i.label,t.visible=this.isDatasetVisible(r),t.controller?(t.controller.updateIndex(r),t.controller.linkScales()):(i=k.getController(a),{datasetElementType:a,dataElementType:o}=T.datasets[a],Object.assign(i.prototype,{dataElementType:k.getElement(o),datasetElementType:a&&k.getElement(a)}),t.controller=new i(this,r),e.push(t.controller))}return this._updateMetasets(),e}_resetElements(){S(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){var e=this.config,e=(e.update(),this._options=e.createResolver(e.chartOptionScopes(),this.getContext())),r=this._animationsDisabled=!e.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let n=0;for(let t=0,e=this.data.datasets.length;t<e;t++){var o=this.getDatasetMeta(t).controller,a=!r&&-1===i.indexOf(o);o.buildOrUpdateElements(a),n=Math.max(+o.getMaxOverflow(),n)}n=this._minPadding=e.layout.autoPadding?n:0,this._updateLayout(n),r||S(i,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(si("z","_idx"));var{_active:e,_lastEvent:t}=this;t?this._eventHandler(t,!0):e.length&&this._updateHoverStyles(e,e,!0),this.render()}}_updateScales(){S(this.scales,t=>{i.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){var t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);G(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){var t,e,n,r=this._hiddenIndices;for({method:t,start:e,count:n}of this._getUniformDataChanges()||[]){var i,o="_removeElements"===t?-n:n,a=(i=l=c=u=s=a=void 0,r),s=e,u=o;for(i of Object.keys(a)){var l,c=+i;s<=c&&(l=a[i],delete a[i],0<u||s<c)&&(a[c+u]=l)}}}_getUniformDataChanges(){let t=this._dataChanges;if(t&&t.length){this._dataChanges=[];var e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),r=n(0);for(let t=1;t<e;t++)if(!G(r,n(t)))return;return Array.from(r).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}}_updateLayout(t){if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){i.update(this,this.width,this.height,t);t=this.chartArea;let e=t.width<=0||t.height<=0;this._layers=[],S(this.boxes,t=>{e&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}}_updateDatasets(n){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:n,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,e=this.data.datasets.length;t<e;++t)this._updateDataset(t,h(n)?n({datasetIndex:t}):n);this.notifyPlugins("afterDatasetsUpdate",{mode:n})}}_updateDataset(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",t)&&(n.controller._update(e),t.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",t))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(o.has(this)?this.attached&&!o.running(this)&&o.start(this):(this.draw(),ui({chart:this})))}draw(){let t;var e,n;if(this._resizeBeforeDraw&&({width:e,height:n}=this._resizeBeforeDraw,this._resize(e,n),this._resizeBeforeDraw=null),this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}}_getSortedDatasetMetas(t){var e=this._sortedMetasets,n=[];let r,i;for(r=0,i=e.length;r<i;++r){var o=e[r];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){var e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;0<=t;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}_drawDataset(t){var e=this.ctx,n=t._clip,r=!n.disabled,i=this.chartArea,o={meta:t,index:t.index,cancelable:!0};
1!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&Re(e,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&ze(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return je(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){e=qn.modes[e];return"function"==typeof e?e(this,t,n,r):[]}getDatasetMeta(t){let e=this.data.datasets[t];var n=this._metasets;let r=n.filter(t=>t&&t._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=En(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){var e=this.data.datasets[t];return!!e&&("boolean"==typeof(t=this.getDatasetMeta(t)).hidden?!t.hidden:!e.hidden)}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(e,t,n){let r=n?"show":"hide";var i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);p(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),o.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");var{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ie(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete hi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let n=this._listeners,r=this.platform,e=(t,e)=>{r.addEventListener(this,t,e),n[t]=e},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};S(this.options.events,t=>e(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let n=this._responsiveListeners,r=this.platform,t=(t,e)=>{r.addEventListener(this,t,e),n[t]=e},e=(t,e)=>{n[t]&&(r.removeEventListener(this,t,e),delete n[t])},i=(t,e)=>{this.canvas&&this.resize(t,e)},o,a=()=>{e("attach",a),this.attached=!0,this.resize(),t("resize",i),t("detach",o)};o=()=>{this.attached=!1,e("resize",i),this._stop(),this._resize(0,0),t("attach",a)},(r.isAttached(this.canvas)?a:o)()}unbindEvents(){S(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},S(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){var r=n?"set":"remove";let i,o,a;for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+r+"DatasetHoverStyle"](),o=0,a=t.length;o<a;++o){var s=(i=t[o])&&this.getDatasetMeta(i.datasetIndex).controller;s&&s[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){var e=this._active||[],t=t.map(({datasetIndex:t,index:e})=>{var n=this.getDatasetMeta(t);if(n)return{datasetIndex:t,element:n.data[e],index:e};throw new Error("No dataset found at index "+t)});D(t,e)||(this._active=t,this._lastEvent=null,this._updateHoverStyles(t,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){var r=this.options.hover,i=(t,n)=>t.filter(e=>!n.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),o=i(e,t),n=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),n.length&&r.mode&&this.updateHoverStyle(n,r.mode,!0)}_eventHandler(e,t){var n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1!==this.notifyPlugins("beforeEvent",n,r))return t=this._handleEvent(e,t,n.inChartArea),n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(t||n.changed)&&this.render(),this}_handleEvent(t,e,n){var r,{_active:i=[],options:o}=this,a=this._getActiveElements(t,i,n,e),s=Q(t),u=(r=t,l=this._lastEvent,u=s,n&&"mouseout"!==r.type?u?l:r:null),l=(n&&(this._lastEvent=null,c(o.onHover,[t,a,this],this),s)&&c(o.onClick,[t,a,this],this),!D(a,i));return(l||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=u,l}_getActiveElements(t,e,n,r){return"mouseout"===t.type?[]:n?(n=this.options.hover,this.getElementsAtEventForMode(t,n.mode,n,r)):e}}let pi=()=>S(r.instances,t=>t._plugins.invalidate());function di(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(r,{defaults:{enumerable:!0,value:T},instances:{enumerable:!0,value:hi},overrides:{enumerable:!0,value:ce},registry:{enumerable:!0,value:k},version:{enumerable:!0,value:"3.9.1"},getChart:{enumerable:!0,value:fi},register:{enumerable:!0,value:(...t)=>{k.add(...t),pi()}},unregister:{enumerable:!0,value:(...t)=>{k.remove(...t),pi()}}});class gi{constructor(t){this.options=t||{}}init(t){}formats(){return di()}parse(t,e){return di()}format(t,e){return di()}add(t,e,n){return di()}diff(t,e,n){return di()}startOf(t,e,n){return di()}endOf(t,e){return di()}}gi.override=function(t){Object.assign(gi.prototype,t)};var vi={_date:gi};function mi(t){var e=t.iScale,n=((r,t)=>{if(!r._cache.$bar){var i=r.getMatchingVisibleMetas(t);let n=[];for(let t=0,e=i.length;t<e;t++)n=n.concat(i[t].controller.getAllParsedValues(r));r._cache.$bar=xt(n.sort((t,e)=>t-e))}return r._cache.$bar})(e,t.type);let r=e._length,i,o,a,s;var u=()=>{32767!==a&&-32768!==a&&(p(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;
1++i)a=e.getPixelForValue(n[i]),u();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),u();return r}function _i(n,r,i,o){if(j(n)){var a=n;var s=r;var u=i;var l=o;var c=u.parse(a[0],l),a=u.parse(a[1],l),l=Math.min(c,a),h=Math.max(c,a);let t=l,e=h;Math.abs(l)>Math.abs(h)&&(t=h,e=l),s[u.axis]=e,s._custom={barStart:t,barEnd:e,start:c,end:a,min:l,max:h}}else r[i.axis]=i.parse(n,o);return r}function yi(t,e,n,r){var i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,u=[];let l,c,h,f;for(c=(l=n)+r;l<c;++l)f=e[l],(h={})[i.axis]=s||i.parse(a[l],l),u.push(_i(f,h,o,l));return u}function bi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function xi(t,e,n,r){let i=e.borderSkipped;var o,a,s,u,l,e={};i?!0===i?t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0}:({start:o,end:a,reverse:s,top:u,bottom:l}=(t=>{let e,n,r,i,o;return r=t.horizontal?(e=t.base>t.x,n="left","right"):(e=t.base<t.y,n="bottom","top"),o=e?(i="end","start"):(i="start","end"),{start:n,end:r,reverse:e,top:i,bottom:o}})(t),"middle"===i&&n&&(t.enableBorderRadius=!0,i=(n._top||0)===r?u:(n._bottom||0)===r?l:(e[wi(l,o,a,s)]=!0,u)),e[wi(i,o,a,s)]=!0,t.borderSkipped=e):t.borderSkipped=e}function wi(t,e,n,r){var i,o;return t=r?(r=n,Si(t=(i=t)===(o=e)?r:i===r?o:i,n,e)):Si(t,e,n)}function Si(t,e,n){return"start"===t?e:"end"===t?n:t}class ki extends e{parsePrimitiveData(t,e,n,r){return yi(t,e,n,r)}parseArrayData(t,e,n,r){return yi(t,e,n,r)}parseObjectData(t,e,n,r){var{iScale:i,vScale:o}=t,{xAxisKey:t="x",yAxisKey:a="y"}=this._parsing,s="x"===i.axis?t:a,u="x"===o.axis?t:a,l=[];let c,h,f,p;for(h=(c=n)+r;c<h;++c)p=e[c],(f={})[i.axis]=i.parse(d(p,s),c),l.push(_i(d(p,u),f,o,c));return l}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){var{iScale:e,vScale:n}=this._cachedMeta,t=this.getParsed(t),r=t._custom,r=bi(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(t[n.axis]);return{label:""+e.getLabelForValue(t[e.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){var e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(e,n,r,i){var o="reset"===i,{index:a,_cachedMeta:{vScale:s}}=this,u=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:f}=this._getSharedOptions(n,i);for(let t=n;t<n+r;t++){var p=this.getParsed(t),d=o||A(p[s.axis])?{base:u,head:u}:this._calculateBarValuePixels(t),g=this._calculateBarIndexPixels(t,c),v=(p._stacks||{})[s.axis],p={horizontal:l,base:d.base,enableBorderRadius:!v||bi(p._custom)||a===v._top||a===v._bottom,x:l?d.head:g.center,y:l?g.center:d.head,height:l?g.size:Math.abs(d.size),width:l?Math.abs(d.size):g.size},d=(f&&(p.options=h||this.resolveDataElementOptions(t,e[t].active?"active":i)),p.options||e[t].options);xi(p,d,v,a),[g,{inflateAmount:v},d]=[p,d,c.ratio],g.inflateAmount="auto"===v?1===d?.33:0:v,this.updateElement(e[t],t,p,i)}}_getStacks(t,n){var e,r=this._cachedMeta.iScale,i=r.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=r.options.stacked,a=[];for(e of i)if((void 0===n||!(t=>{var e=t.controller.getParsed(n),e=e&&e[t.vScale.axis];if(A(e)||isNaN(e))return!0})(e))&&((!1===o||-1===a.indexOf(e.stack)||void 0===o&&void 0===e.stack)&&a.push(e.stack),e.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){t=this._getStacks(t,n),n=void 0!==e?t.indexOf(e):-1;return-1===n?t.length-1:n}_getRuler(){var t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let i,o;for(i=0,o=e.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));var a=t.barThickness;return{min:a||mi(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){var{_cachedMeta:{vScale:e,_stacked:n},options:{base:r,minBarLength:i}}=this,o=r||0,a=this.getParsed(t),s=a._custom,u=bi(s);let l=a[e.axis],c=0,h=n?this.applyStack(e,a,n):l,f,p;h!==l&&(c=h-l,h=l),u&&(l=s.barStart,h=s.barEnd-s.barStart,0!==l&&P(l)!==P(s.barEnd)&&(c=0),c+=l);var a=A(r)||u?c:r;let d=e.getPixelForValue(a);return f=this.chart.getDataVisibility(t)?e.getPixelForValue(c+h):d,p=f-d,Math.abs(p)<i&&(p=(n=p,s=e,u=o,(0!==n?P(n):(s.isHorizontal()?1:-1)*(s.min>=u?1:-1))*i),l===o&&(d-=p/2),r=e.getPixelForDecimal(0),a=e.getPixelForDecimal(1),t=Math.min(r,a),n=Math.max(r,a),d=Math.max(Math.min(d,n),t),f=d+p),d===e.getPixelForValue(o)&&(s=P(p)*e.getLineWidthForValue(o)/2,d+=s,p-=s),{size:p,base:d,head:f,center:f+p/2}}_calculateBarIndexPixels(t,e){var n,r=e.scale,i=this.options,o=i.skipNull,a=N(i.maxBarThickness,1/0);let s,u;return u=e.grouped?(n=o?this._getStackCount(t):e.stackCount,i=("flex"===i.barThickness?(t,e,n,r)=>{var i=e.pixels,o=i[t];
1let a=0<t?i[t-1]:null,s=t<i.length-1?i[t+1]:null;return i=n.categoryPercentage,null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a),t=o-(o-Math.min(a,s))/2*i,{chunk:Math.abs(s-a)/2*i/r,ratio:n.barPercentage,start:t}}:(t,e,n,r)=>{var i=n.barThickness;let o,a;return a=A(i)?(o=e.min*n.categoryPercentage,n.barPercentage):(o=i*r,1),{chunk:o/r,ratio:a,start:e.pixels[t]-o/2}})(t,e,i,n),n=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0),s=i.start+i.chunk*n+i.chunk/2,Math.min(a,i.chunk*i.ratio)):(s=r.getPixelForValue(this.getParsed(t)[r.axis],t),Math.min(a,e.min*e.ratio)),{base:s-u/2,head:s+u/2,center:s,size:u}}draw(){var t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)null!==this.getParsed(i)[e.axis]&&n[i].draw(this._ctx)}}ki.id="bar",ki.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},ki.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Pi extends e{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){var i=super.parsePrimitiveData(t,e,n,r);for(let t=0;t<i.length;t++)i[t]._custom=this.resolveDataElementOptions(t+n).radius;return i}parseArrayData(t,e,n,r){var i=super.parseArrayData(t,e,n,r);for(let t=0;t<i.length;t++){var o=e[n+t];i[t]._custom=N(o[2],this.resolveDataElementOptions(t+n).radius)}return i}parseObjectData(t,e,n,r){var i=super.parseObjectData(t,e,n,r);for(let t=0;t<i.length;t++){var o=e[n+t];i[t]._custom=N(o&&o.r&&+o.r,this.resolveDataElementOptions(t+n).radius)}return i}getMaxOverflow(){var e=this._cachedMeta.data;let n=0;for(let t=e.length-1;0<=t;--t)n=Math.max(n,e[t].size(this.resolveDataElementOptions(t))/2);return 0<n&&n}getLabelAndValue(t){var e=this._cachedMeta,{xScale:n,yScale:r}=e,t=this.getParsed(t),n=n.getLabelForValue(t.x),r=r.getLabelForValue(t.y),t=t._custom;return{label:e.label,value:"("+n+", "+r+(t?", "+t:"")+")"}}update(t){var e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(e,n,r,i){var o="reset"===i,{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:u,includeOptions:l}=this._getSharedOptions(n,i),c=a.axis,h=s.axis;for(let t=n;t<n+r;t++){var f=e[t],p=!o&&this.getParsed(t),d={},g=d[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(p[c]),p=d[h]=o?s.getBasePixel():s.getPixelForValue(p[h]);d.skip=isNaN(g)||isNaN(p),l&&(d.options=u||this.resolveDataElementOptions(t,f.active?"active":i),o)&&(d.options.radius=0),this.updateElement(f,t,d,i)}}resolveDataElementOptions(t,e){var n=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);t=(r=r.$shared?Object.assign({},r,{$shared:!1}):r).radius;return"active"!==e&&(r.radius=0),r.radius+=N(n&&n._custom,t),r}}Pi.id="bubble",Pi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Pi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class Mi extends e{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(r,i){let o=this.getDataset().data;var a=this._cachedMeta;if(!1===this._parsing)a._parsed=o;else{let t=t=>+o[t];if(z(o[r])){let{key:e="value"}=this._parsing;t=t=>+d(o[t],e)}let e,n;for(n=(e=r)+i;e<n;++e)a._parsed[e]=t(e)}}_getRotation(){return R(this.options.rotation-90)}_getCircumference(){return R(this.options.circumference)}_getRotationExtents(){let e=v,n=-v;for(let t=0;t<this.chart.data.datasets.length;++t){var r,i;this.chart.isDatasetVisible(t)&&(r=(i=this.chart.getDatasetMeta(t).controller)._getRotation(),i=i._getCircumference(),e=Math.min(e,r),n=Math.max(n,r+i))}return{rotation:e,circumference:n-e}}update(t){var e=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(e.width,e.height)-i)/2,0),o=Math.min(O(this.options.cutout,o),1),a=this._getRingWeight(this.index),{circumference:s,rotation:u}=this._getRotationExtents(),{ratioX:u,ratioY:s,offsetX:l,offsetY:c}=((t,e,o)=>{let n=1,a=1,s=0,u=0;if(e<v){let r=t,i=r+e;var t=Math.cos(r),e=Math.sin(r),l=Math.cos(i),c=Math.sin(i),h=(t,e,n)=>pt(t,r,i,!0)?1:Math.max(e,e*o,n,n*o),f=(t,e,n)=>pt(t,r,i,!0)?-1:Math.min(e,e*o,n,n*o),p=h(0,t,l),h=h(w,e,c),t=f(x,t,l),l=f(x+w,e,c);n=(p-t)/2,a=(h-l)/2,s=-(p+t)/2,u=-(h+l)/2}return{ratioX:n,ratioY:a,offsetX:s,offsetY:u}})(u,s,o),u=(e.width-i)/u,e=(e.height-i)/s,i=Math.max(Math.min(u,e)/2,0),s=C(this.options.radius,i),u=(s-Math.max(s*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=l*s,this.offsetY=c*s,n.total=this.calculateTotal(),this.outerRadius=s-u*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-u*a,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/v)}updateElements(t,e,n,r){var i="reset"===r,o=this.chart,a=o.chartArea,o=o.options.animation,s=(a.left+a.right)/2,u=(a.top+a.bottom)/2,a=i&&o.animateScale,l=a?0:this.innerRadius,c=a?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(e,r);let p=this._getRotation(),d;for(d=0;d<e;++d)p+=this._circumference(d,i);for(d=e;d<e+n;++d){var g=this._circumference(d,i),v=t[d],m={x:s+this.offsetX,y:u+this.offsetY,startAngle:p,endAngle:p+g,circumference:g,outerRadius:c,innerRadius:l};f&&(m.options=h||this.resolveDataElementOptions(d,v.active?"active":r)),p+=g,this.updateElement(v,d,m,r)}}calculateTotal(){var t=this._cachedMeta,e=t.data;let n=0,r;for(r=0;r<e.length;r++){var i=t._parsed[r];
1null===i||isNaN(i)||!this.chart.getDataVisibility(r)||e[r].hidden||(n+=Math.abs(i))}return n}calculateCircumference(t){var e=this._cachedMeta.total;return 0<e&&!isNaN(t)?v*(Math.abs(t)/e):0}getLabelAndValue(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],e=mn(e._parsed[t],n.options.locale);return{label:r[t]||"",value:e}}getMaxBorderWidth(t){let e=0;var n=this.chart;let r,i,o,a,s;if(!t)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){t=(o=n.getDatasetMeta(r)).data,a=o.controller;break}if(!t)return 0;for(r=0,i=t.length;r<i;++r)"inner"!==(s=a.resolveDataElementOptions(r)).borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(n){let r=0;for(let t=0,e=n.length;t<e;++t){var i=this.resolveDataElementOptions(t);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(e){let n=0;for(let t=0;t<e;++t)this.chart.isDatasetVisible(t)&&(n+=this._getRingWeight(t));return n}_getRingWeight(t){return Math.max(N(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Mi.id="doughnut",Mi.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Mi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Mi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){var t=i.data;if(t.labels.length&&t.datasets.length){let{pointStyle:r}=i.legend.options.labels;return t.labels.map((t,e)=>{var n=i.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:r,hidden:!i.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;t=": "+t.formattedValue;return j(e)?(e=e.slice())[0]+=t:e+=t,e}}}}};class Ei extends e{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){var e=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=e,o=this.chart._animationsDisabled;let{start:a,count:s}=Et(e,r,o);this._drawStart=a,this._drawCount=s,At(e)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0),e.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:e},t),this.updateElements(r,a,s,t)}updateElements(e,n,r,i){var o="reset"===i,{iScale:a,vScale:s,_stacked:u,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(n,i),f=a.axis,p=s.axis,{spanGaps:t,segment:d}=this.options,g=it(t)?t:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===i;let m=0<n&&this.getParsed(n-1);for(let t=n;t<n+r;++t){var _=e[t],y=this.getParsed(t),b=v?_:{},x=A(y[p]),w=b[f]=a.getPixelForValue(y[f],t),S=b[p]=o||x?s.getBasePixel():s.getPixelForValue(u?this.applyStack(s,y,u):y[p],t);b.skip=isNaN(w)||isNaN(S)||x,b.stop=0<t&&Math.abs(y[f]-m[f])>g,d&&(b.parsed=y,b.raw=l.data[t]),h&&(b.options=c||this.resolveDataElementOptions(t,_.active?"active":i)),v||this.updateElement(_,t,b,i),m=y}}getMaxOverflow(){var t,e=this._cachedMeta,n=e.dataset,n=n.options&&n.options.borderWidth||0,e=e.data||[];return e.length?(t=e[0].size(this.resolveDataElementOptions(0)),e=e[e.length-1].size(this.resolveDataElementOptions(e.length-1)),Math.max(n,t,e)/2):n}draw(){var t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ei.id="line",Ei.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ei.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ai extends e{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],e=mn(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:e}}parseObjectData(t,e,n,r){return tn.bind(this)(t,e,n,r)}update(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){var t=this._cachedMeta;let r={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,e)=>{var n=this.getParsed(e).r;!isNaN(n)&&this.chart.getDataVisibility(e)&&(n<r.min&&(r.min=n),n>r.max)&&(r.max=n)}),r}_updateRadius(){var t=this.chart,e=t.chartArea,n=t.options,e=Math.min(e.right-e.left,e.bottom-e.top),e=Math.max(e/2,0),n=(e-Math.max(n.cutoutPercentage?e/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=e-n*this.index,this.innerRadius=this.outerRadius-n}updateElements(r,t,e,i){var o="reset"===i,a=this.chart,s=a.options.animation,u=this._cachedMeta.rScale,l=u.xCenter,c=u.yCenter,h=u.getIndexAngle(0)-.5*x;let f=h,p;var d=360/this.countVisibleElements();for(p=0;p<t;++p)f+=this._computeAngle(p,i,d);for(p=t;p<t+e;p++){var g=r[p];let t=f,e=f+this._computeAngle(p,i,d),n=a.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;f=e,o&&(s.animateScale&&(n=0),s.animateRotate)&&(t=e=h);var v={x:l,y:c,innerRadius:0,outerRadius:n,startAngle:t,endAngle:e,options:this.resolveDataElementOptions(p,g.active?"active":i)};this.updateElement(g,p,v,i)}}countVisibleElements(){var t=this._cachedMeta;let n=0;return t.data.forEach((t,e)=>{!isNaN(this.getParsed(e).r)&&this.chart.getDataVisibility(e)&&n++}),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?R(this.resolveDataElementOptions(t,e).angle||n):0}}Ai.id="polarArea",Ai.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ai.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){var t=i.data;if(t.labels.length&&t.datasets.length){let{pointStyle:r}=i.legend.options.labels;return t.labels.map((t,e)=>{var n=i.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:r,hidden:!i.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update(
1)}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Oi extends Mi{}Oi.id="pie",Oi.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ci extends e{getLabelAndValue(t){var e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,r){return tn.bind(this)(t,e,n,r)}update(t){var e,n=this._cachedMeta,r=n.dataset,i=n.data||[],n=n.iScale.getLabels();r.points=i,"resize"!==t&&(e=this.resolveDatasetElementOptions(t),this.options.showLine||(e.borderWidth=0),n={_loop:!0,_fullLoop:n.length===i.length,options:e},this.updateElement(r,void 0,n,t)),this.updateElements(i,0,i.length,t)}updateElements(e,n,r,i){var o=this._cachedMeta.rScale,a="reset"===i;for(let t=n;t<n+r;t++){var s=e[t],u=this.resolveDataElementOptions(t,s.active?"active":i),l=o.getPointPositionForValue(t,this.getParsed(t).r),c=a?o.xCenter:l.x,h=a?o.yCenter:l.y,l={x:c,y:h,angle:l.angle,skip:isNaN(c)||isNaN(h),options:u};this.updateElement(s,t,l,i)}}}Ci.id="radar",Ci.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ci.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Di extends e{update(t){var e,n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:a}=Et(n,r,i);this._drawStart=o,this._drawCount=a,At(n)&&(o=0,a=r.length),this.options.showLine&&({dataset:n,_dataset:e}=n,n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!e._decimated,n.points=r,(e=this.resolveDatasetElementOptions(t)).segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:e},t)),this.updateElements(r,o,a,t)}addElements(){var t=this.options.showLine;!this.datasetElementType&&t&&(this.datasetElementType=k.getElement("line")),super.addElements()}updateElements(e,n,r,i){var o="reset"===i,{iScale:a,vScale:s,_stacked:u,_dataset:l}=this._cachedMeta,t=this.resolveDataElementOptions(n,i),c=this.getSharedOptions(t),h=this.includeOptions(i,c),f=a.axis,p=s.axis,{spanGaps:d,segment:g}=this.options,v=it(d)?d:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i;let _=0<n&&this.getParsed(n-1);for(let t=n;t<n+r;++t){var y=e[t],b=this.getParsed(t),x=m?y:{},w=A(b[p]),S=x[f]=a.getPixelForValue(b[f],t),k=x[p]=o||w?s.getBasePixel():s.getPixelForValue(u?this.applyStack(s,b,u):b[p],t);x.skip=isNaN(S)||isNaN(k)||w,x.stop=0<t&&Math.abs(b[f]-_[f])>v,g&&(x.parsed=b,x.raw=l.data[t]),h&&(x.options=c||this.resolveDataElementOptions(t,y.active?"active":i)),m||this.updateElement(y,t,x,i),_=b}this.updateSharedOptions(c,i,t)}getMaxOverflow(){var t,e,n=this._cachedMeta,r=n.data||[];if(this.options.showLine)return n=(n=n.dataset).options&&n.options.borderWidth||0,r.length?(t=r[0].size(this.resolveDataElementOptions(0)),e=r[r.length-1].size(this.resolveDataElementOptions(r.length-1)),Math.max(n,t,e)/2):n;{let e=0;for(let t=r.length-1;0<=t;--t)e=Math.max(e,r[t].size(this.resolveDataElementOptions(t))/2);return 0<e&&e}}}Di.id="scatter",Di.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Di.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Ii=Object.freeze({__proto__:null,BarController:ki,BubbleController:Pi,DoughnutController:Mi,LineController:Ei,PolarAreaController:Ai,PieController:Oi,RadarController:Ci,ScatterController:Di});function Ti(t,e,n){var{startAngle:e,pixelMargin:r,x:i,y:o,outerRadius:a,innerRadius:s}=e,u=r/a;t.beginPath(),t.arc(i,o,a,e-u,n+u),r<s?t.arc(i,o,s,n+(u=r/s),e-u,!0):t.arc(i,o,r,n+w,e-w),t.closePath(),t.clip()}function Li(t,e,n,r){t=wn(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);let i=(n-e)/2;var e=Math.min(i,r*e/2),o=t=>{var e=(n-Math.min(i,t))*r/2;return _(t,0,Math.min(i,e))};return{outerStart:o(t.outerStart),outerEnd:o(t.outerEnd),innerStart:_(t.innerStart,0,e),innerEnd:_(t.innerEnd,0,e)}}function ji(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Ri(t,e,n,r,i,o){var{x:a,y:s,startAngle:u,pixelMargin:l,innerRadius:c}=e,h=Math.max(e.outerRadius+r+n-l,0),l=0<c?c+r+n+l:0;let f=0;var p=i-u,c=(r&&(c=((0<c?c-r:0)+(0<h?h-r:0))/2,f=(p-(0!=c?p*c/(c+r):p))/2),Math.max(.001,p*h-n/x)/h),r=(p-c)/2,n=u+r+f,p=i-r-f,{outerStart:c,outerEnd:u,innerStart:i,innerEnd:r}=Li(e,l,h,p-n),e=h-c,d=h-u,g=n+c/e,v=p-u/d,m=l+i,_=l+r,y=n+i/m,b=p-r/_;t.beginPath(),o?(t.arc(a,s,h,g,v),0<u&&(o=ji(d,v,a,s),t.arc(o.x,o.y,u,v,p+w)),d=ji(_,p,a,s),t.lineTo(d.x,d.y),0<r&&(o=ji(_,b,a,s),t.arc(o.x,o.y,r,p+w,b+Math.PI)),t.arc(a,s,l,p-r/l,n+i/l,!0),0<i&&(u=ji(m,y,a,s),t.arc(u.x,u.y,i,y+Math.PI,n-w)),d=ji(e,n,a,s),t.lineTo(d.x,d.y),0<c&&(_=ji(e,g,a,s),t.arc(_.x,_.y,c,n-w,g))):(t.moveTo(a,s),o=Math.cos(g)*h+a,b=Math.sin(g)*h+s,t.lineTo(o,b),p=Math.cos(v)*h+a,r=Math.sin(v)*h+s,t.lineTo(p,r)),t.closePath()}function zi(e,n,t,r,i,o){var a=n.options,{borderWidth:s,borderJoinStyle:u}=a,a="inner"===a.borderAlign;if(s){if(a?(e.lineWidth=2*s,e.lineJoin=u||"round"):(e.lineWidth=s,e.lineJoin=u||"bevel"),n.fullCircles){var l=e;s=n;u=a;var{x:c,y:h,startAngle:f,pixelMargin:p,fullCircles:d}=s,g=Math.max(s.outerRadius-p,0),p=s.innerRadius+p;let t;for(u&&Ti(l,s,f+v),l.beginPath(),l.arc(c,h,p,f+v,f,!0),t=0;t<d;++t)l.stroke();for(l.beginPath(),l.arc(c,h,g,f,f+v),t=0;t<d;++t)l.stroke()}a&&Ti(e,n,i),Ri(e,n,t,r,i,o),e.stroke()}}class Ni extends n{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){var{angle:t,distance:e}=ct(this.getProps(["x","y"],n),{x:t,y:e}),{startAngle:n,endAngle:r,innerRadius:i,outerRadius:o,circumference:a}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=this.options.spacing/2,a=N(a,r-n)>=v||pt(t,n,r),t=y(e,i+s,o+s);return a&&t}getCenterPoint(t){var{x:t,y:e,startAngle:n,endAngle:r,innerRadius:i,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:s}=this.options,n=(n+r)/2,r=(i+o+s+a)/2;return{x:t+Math.cos(n)*r,y:e+Math.sin(n)*r}}tooltipPosition(t){return this.getCenterPoint(t)}draw(e){var{options:n,circumference:r}=this,i=(n.offset||0)/2,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin="inner"===n.borderAlign?.33:0,this.fullCircles=r>v?Math.floor(r/v):0,!(0===r||this.innerRadius<0||this.outerRadius<0)){e.save();let t=0;i&&(t=i/2,r=(this.startAngle+this.endAngle)/2,e.translate(Math.cos(r)*t,Math.sin(r)*t),this.circumference>=x)&&(t=i),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;r=((e,t,n,r,i)=>{var{fullCircles:o,startAngle:a,circumference:s}=t;let u=t.endAngle;if(o){Ri(e,t,n,r,a+v,i);for(let t=0;t<o;++t)e.fill();isNaN(s)||(u=a+s%v,s%v==0&&(u+=v))}return Ri(e,t,n,r,u,i),e.fill(),u})(e,this,t,o,a);
1zi(e,this,t,o,r,a),e.restore()}}}function Bi(t,e,n=e){t.lineCap=N(n.borderCapStyle,e.borderCapStyle),t.setLineDash(N(n.borderDash,e.borderDash)),t.lineDashOffset=N(n.borderDashOffset,e.borderDashOffset),t.lineJoin=N(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=N(n.borderWidth,e.borderWidth),t.strokeStyle=N(n.borderColor,e.borderColor)}function Fi(t,e,n){t.lineTo(n.x,n.y)}function Hi(t,e,n={}){var t=t.length,{start:n=0,end:r=t-1}=n,{start:i,end:o}=e,a=Math.max(n,i),s=Math.min(r,o);return{count:t,start:a,loop:e.loop,ilen:s<a&&!(n<i&&r<i||o<n&&o<r)?t+s-a:s-a}}function Wi(t,e,n,r){var{points:i,options:o}=e,{count:a,start:s,loop:e,ilen:u}=Hi(i,n,r),l=(n=o).stepped?Ne:n.tension||"monotone"===n.cubicInterpolationMode?Be:Fi;let{move:c=!0,reverse:h}=r||{},f,p,d;for(f=0;f<=u;++f)(p=i[(s+(h?u-f:f))%a]).skip||(c?(t.moveTo(p.x,p.y),c=!1):l(t,d,p,h,o.stepped),d=p);return e&&(p=i[(s+(h?u:0))%a],l(t,d,p,h,o.stepped)),!!e}function Vi(t,e,n,r){var i=e.points;let{count:o,start:a,ilen:s}=Hi(i,n,r),{move:u=!0,reverse:l}=r||{},c=0,h=0,f,p,d,g,v,m;var _,y,b,x=t=>(a+(l?s-t:t))%o,w=()=>{g!==v&&(t.lineTo(c,v),t.lineTo(c,g),t.lineTo(c,m))};for(u&&(p=i[x(0)],t.moveTo(p.x,p.y)),f=0;f<=s;++f)(p=i[x(f)]).skip||(_=p.x,y=p.y,(b=0|_)===d?(y<g?g=y:y>v&&(v=y),c=(h*c+_)/++h):(w(),t.lineTo(_,y),d=b,h=0,g=v=y),m=y);w()}function $i(t){var e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Vi:Wi}Ni.id="arc",Ni.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ni.defaultRoutes={backgroundColor:"backgroundColor"};let qi="function"==typeof Path2D;function Ui(e,n,r,i){if(qi&&!n.options.segment){var o=e;var a=n;var s=r;var u=i;let t=a._path;t||(t=a._path=new Path2D,a.path(t,s,u)&&t.closePath()),Bi(o,a.options),o.stroke(t)}else{var t,l=e,c=n,h=r,f=i,{segments:s,options:p}=c,d=$i(c);for(t of s)Bi(l,p,t.style),l.beginPath(),d(l,c,t,{start:h,end:h+f-1})&&l.closePath(),l.stroke()}}class Yi extends n{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){var n,r=this.options;!r.tension&&"monotone"!==r.cubicInterpolationMode||r.stepped||this._pointsUpdated||(n=r.spanGaps?this._loop:this._fullLoop,un(this._points,r,t,n,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jn(this,this.options.segment))}first(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){var t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(n,r){var i=this.options,o=n[r],a=this.points,s=Ln(this,{property:r,start:o,end:o});if(s.length){var u,l=[],c=(u=i).stepped?dn:u.tension||"monotone"===u.cubicInterpolationMode?gn:pn;let t,e;for(t=0,e=s.length;t<e;++t){var{start:h,end:f}=s[t],h=a[h],f=a[f];h===f?l.push(h):((f=c(h,f,Math.abs((o-h[r])/(f[r]-h[r])),i.stepped))[r]=n[r],l.push(f))}return 1===l.length?l[0]:l}}pathSegment(t,e,n){return $i(this)(t,this,e,n)}path(t,e,n){var r,i=this.segments,o=$i(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),Ui(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ki(t,e,n,r){var i=t.options,{[n]:t}=t.getProps([n],r);return Math.abs(e-t)<i.radius+i.hitRadius}Yi.id="line",Yi.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Yi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Yi.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Gi extends n{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){var r=this.options,{x:n,y:i}=this.getProps(["x","y"],n);return Math.pow(t-n,2)+Math.pow(e-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return Ki(this,t,"x",e)}inYRange(t,e){return Ki(this,t,"y",e)}getCenterPoint(t){var{x:t,y:e}=this.getProps(["x","y"],t);return{x:t,y:e}}size(t){var e=(t=t||this.options||{}).radius||0;return 2*((e=Math.max(e,e&&t.hoverRadius||0))+(e&&t.borderWidth||0))}draw(t,e){var n=this.options;this.skip||n.radius<.1||!je(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Te(t,n,this.x,this.y))}getRange(){var t=this.options||{};return t.radius+t.hitRadius}}function Qi(t,e){var{x:e,y:n,base:r,width:i,height:o}=t.getProps(["x","y","base","width","height"],e);let a,s,u,l,c;return l=t.horizontal?(c=o/2,a=Math.min(e,r),s=Math.max(e,r),u=n-c,n+c):(c=i/2,a=e-c,s=e+c,u=Math.min(n,r),Math.max(n,r)),{left:a,top:u,right:s,bottom:l}}function Xi(t,e,n,r){return t?0:_(e,n,r)}function Ji(t){var e,n,r,i,o,a=Qi(t),s=a.right-a.left,u=a.bottom-a.top,l=(e=s/2,l=u/2,r=(n=t).options.borderWidth,n=n.borderSkipped,r=Sn(r),{t:Xi(n.top,r.top,0,l),r:Xi(n.right,r.right,0,e),b:Xi(n.bottom,r.bottom,0,l),l:Xi(n.left,r.left,0,e)}),t=(n=s/2,r=u/2,t=(e=t).getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,o=kn(i),n=Math.min(n,r),r=e.borderSkipped,{topLeft:Xi(!(e=t||z(i))||r.top||r.left,o.topLeft,0,n),topRight:Xi(!e||r.top||r.right,o.topRight,0,n),bottomLeft:Xi(!e||r.bottom||r.left,o.bottomLeft,0,n),bottomRight:Xi(!e||r.bottom||r.right,o.bottomRight,0,n)});
1return{outer:{x:a.left,y:a.top,w:s,h:u,radius:t},inner:{x:a.left+l.l,y:a.top+l.t,w:s-l.l-l.r,h:u-l.t-l.b,radius:{topLeft:Math.max(0,t.topLeft-Math.max(l.t,l.l)),topRight:Math.max(0,t.topRight-Math.max(l.t,l.r)),bottomLeft:Math.max(0,t.bottomLeft-Math.max(l.b,l.l)),bottomRight:Math.max(0,t.bottomRight-Math.max(l.b,l.r))}}}}function Zi(t,e,n,r){var i=null===e,o=null===n,t=t&&!(i&&o)&&Qi(t,r);return t&&(i||y(e,t.left,t.right))&&(o||y(n,t.top,t.bottom))}function to(t,e){t.rect(e.x,e.y,e.w,e.h)}function eo(t,e,n={}){var r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0;return{x:t.x+r,y:t.y+i,w:t.w+((t.x+t.w!==n.x+n.w?e:0)-r),h:t.h+((t.y+t.h!==n.y+n.h?e:0)-i),radius:t.radius}}Gi.id="point",Gi.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Gi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class no extends n{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){var{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:o}=Ji(this),a=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?He:to;t.save(),o.w===i.w&&o.h===i.h||(t.beginPath(),a(t,eo(o,e,i)),t.clip(),a(t,eo(i,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,eo(i,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return Zi(this,t,e,n)}inXRange(t,e){return Zi(this,t,null,e)}inYRange(t,e){return Zi(this,null,t,e)}getCenterPoint(t){var{x:t,y:e,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(t+n)/2:t,y:r?e:(e+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}no.id="bar",no.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},no.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ro=Object.freeze({__proto__:null,ArcElement:Ni,LineElement:Yi,PointElement:Gi,BarElement:no});function io(t){var e;t._decimated&&(e=t._data,delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e}))}function oo(t){t.data.datasets.forEach(t=>{io(t)})}var ao={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(u,t,l)=>{if(l.enabled){let s=u.width;u.data.datasets.forEach((e,t)=>{var{_data:n,indexAxis:r}=e,t=u.getDatasetMeta(t),i=n||e.data;if("y"!==Pn([r,u.options.indexAxis])&&t.controller.supportsDecimation){r=u.scales[t.xAxisID];if(("linear"===r.type||"time"===r.type)&&!u.options.parsing){var{start:o,count:a}=((t,e)=>{var n=e.length;let r=0,i;var{min:o,max:a,minDefined:s,maxDefined:u}=(t=t.iScale).getUserBounds();return s&&(r=_(b(e,t.axis,o).lo,0,n-1)),i=u?_(b(e,t.axis,a).hi+1,r,n)-r:n-r,{start:r,count:i}})(t,i);if(a<=(l.threshold||4*s))io(e);else{A(n)&&(e._data=i,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}}));let t;switch(l.algorithm){case"lttb":t=((r,i,o,t,e)=>{var n=e.samples||t;if(o<=n)return r.slice(i,i+o);var a=[],s=(o-2)/(n-2);let u=0,l=(e=i+o-1,i),c,h,f,p,d;for(a[u++]=r[l],c=0;c<n-2;c++){let t=0,e=0,n;var g=Math.floor((c+1)*s)+1+i,v=Math.min(Math.floor((c+2)*s)+1,o)+i,m=v-g;for(n=g;n<v;n++)t+=r[n].x,e+=r[n].y;t/=m,e/=m;var g=Math.floor(c*s)+1+i,_=Math.min(Math.floor((c+1)*s)+1,o)+i,{x:y,y:b}=r[l];for(f=-1,n=g;n<_;n++)(p=.5*Math.abs((y-t)*(r[n].y-b)-(y-r[n].x)*(e-b)))>f&&(f=p,h=r[n],d=n);a[u++]=h,l=d}return a[u++]=r[e],a})(i,o,a,s,l);break;case"min-max":t=((t,e,n,r)=>{let i=0,o=0,a,s,u,l,c,h,f,p,d,g;var v=[],m=t[e].x,_=t[e+n-1].x-m;for(a=e;a<e+n;++a){u=((s=t[a]).x-m)/_*r,l=s.y;var y,b,x,w=0|u;w===c?(l<d?(d=l,h=a):l>g&&(g=l,f=a),i=(o*i+s.x)/++o):(y=a-1,A(h)||A(f)||(b=Math.min(h,f),x=Math.max(h,f),b!==p&&b!==y&&v.push({...t[b],x:i}),x!==p&&x!==y&&v.push({...t[x],x:i})),0<a&&y!==p&&v.push(t[y]),v.push(s),c=w,o=0,d=g=l,h=f=p=a)}return v})(i,o,a,s);break;default:throw new Error(`Unsupported decimation algorithm '${l.algorithm}'`)}e._decimated=t}}}})}else oo(u)},destroy(t){oo(t)}};function so(n,r,i,t){if(!t){let t=r[n],e=i[n];return"angle"===n&&(t=m(t),e=m(e)),{property:n,start:t,end:e}}}function uo(t,e,n){for(;t<e;e--){var r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function lo(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function co(t,e){let n=[],r=!1;return(n=j(t)?(r=!0,t):((t,e)=>{let{x:n=null,y:r=null}=t||{},i=e.points,o=[];
1return e.segments.forEach(({start:t,end:e})=>{e=uo(t,e,i);t=i[t],e=i[e];null!==r?(o.push({x:t.x,y:r}),o.push({x:e.x,y:r})):null!==n&&(o.push({x:n,y:t.y}),o.push({x:n,y:e.y}))}),o})(t,e)).length?new Yi({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function ho(t){return t&&!1!==t.fill}function fo(t,e,n){var r,i,t=(t=>{let e=t.options,n=e.fill,r=N(n&&n.target,n);return!1!==(r=void 0===r?!!e.backgroundColor:r)&&null!==r&&(!0!==r?r:"origin")})(t);return z(t)?!isNaN(t.value)&&t:(i=parseFloat(t),g(i)&&Math.floor(i)===i?(r=t[0],e=e,i=i,n=n,!((i="-"!==r&&"+"!==r?i:e+i)===e||i<0||n<=i)&&i):0<=["origin","start","end","stack","shape"].indexOf(t)&&t)}function po(t){var{scale:t,index:e,line:n}=t,r=[],i=n.segments,o=n.points,a=((t,e)=>{var n=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){var i=r[t];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n})(t,e);a.push(co({x:null,y:t.bottom},n));for(let t=0;t<i.length;t++){var s=i[t];for(let t=s.start;t<=s.end;t++){d=p=f=h=c=l=u=void 0;var u=r,l=o[t],c=a,h=[];for(let t=0;t<c.length;t++){var{first:f,last:p,point:d}=((t,e,n)=>{if(!(e=t.interpolate(e,n)))return{};let r=e[n],i=t.segments,o=t.points,a=!1,s=!1;for(let t=0;t<i.length;t++){var u=i[t],l=o[u.start][n],u=o[u.end][n];if(y(r,l,u)){a=r===l,s=r===u;break}}return{first:a,last:s,point:e}})(c[t],l,"x");if(!(!d||f&&p))if(f)h.unshift(d);else if(u.push(d),!p)break}u.push(...h)}}return new Yi({points:r,options:{}})}class go{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){var{x:r,y:i,radius:o}=this;return e=e||{start:0,end:v},t.arc(r,i,o,e.end,e.start,!0),!n.bounds}interpolate(t){var{x:e,y:n,radius:r}=this,t=t.angle;return{x:e+Math.cos(t)*r,y:n+Math.sin(t)*r,angle:t}}}function vo(t){var e,n,{chart:r,fill:i,line:o}=t;return g(i)?(n=i,(r=(e=(r=r).getDatasetMeta(n))&&r.isDatasetVisible(n))?e.dataset:null):"stack"===i?po(t):"shape"===i||((n=(t=>{var e=t.scale||{};if(e.getPointPositionForValue){var{scale:n,fill:e}=e=t,r=n.options,i=n.getLabels().length,o=r.reverse?n.max:n.min,a=((t,e,n)=>{let r;return r="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:z(t)?t.value:e.getBaseValue()})(e,n,o),s=[];if(r.grid.circular)return e=n.getPointPositionForValue(0,o),new go({x:e.x,y:e.y,radius:n.getDistanceFromCenterForValue(a)});for(let t=0;t<i;++t)s.push(n.getPointPositionForValue(t,a));return s}return{scale:e={},fill:t}=e=t,t=((t,e)=>{let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:z(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n})(t,e),g(t)?{x:(e=e.isHorizontal())?t:null,y:e?null:t}:null})(t))instanceof go?n:co(n,o))}function mo(t,e,n){var r,i=vo(e),{line:e,scale:o,axis:a}=e,s=e.options,u=s.fill,s=s.backgroundColor,{above:u=s,below:s=s}=u||{};i&&e.points.length&&(Re(t,n),r=t,{line:i,target:u,above:s,below:n,area:o,scale:a}=e={line:e,target:i,above:u,below:s,area:n,scale:o,axis:a},e=i._loop?"angle":e.axis,r.save(),"x"===e&&n!==s&&(_o(r,u,o.top),yo(r,{line:i,target:u,color:s,scale:a,property:e}),r.restore(),r.save(),_o(r,u,o.bottom)),yo(r,{line:i,target:u,color:n,scale:a,property:e}),r.restore(),ze(t))}function _o(t,e,n){var r,{segments:i,points:o}=e;let a=!0,s=!1;t.beginPath();for(r of i){var{start:u,end:l}=r,c=o[u],u=o[uo(u,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),(s=!!e.pathSegment(t,r,{move:s}))?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function yo(e,t){var n,r,i,o,{line:a,target:s,property:u,color:l,scale:c}=t;for({source:n,target:r,start:i,end:o}of((t,e,n)=>{var r,i=t.segments,o=t.points,a=e.points,s=[];for(r of i){var u,{start:l,end:c}=r,c=uo(l,c,o),h=so(n,o[l],o[c],r.loop);if(e.segments)for(u of Ln(e,h)){var f,p=so(n,a[u.start],a[u.end],u.loop);for(f of Tn(r,o,p))s.push({source:f,target:u,start:{[n]:lo(h,p,"start",Math.max)},end:{[n]:lo(h,p,"end",Math.min)}})}else s.push({source:r,target:h,start:o[l],end:o[c]})}return s})(a,s,u)){var{style:{backgroundColor:h=l}={}}=n,f=!0!==s,h=(e.save(),e.fillStyle=h,m=v=g=d=p=h=void 0,e),p=c,d=f&&so(u,i,o),{top:p,bottom:g}=p.chart.chartArea,{property:d,start:v,end:m}=d||{},d=("x"===d&&(h.beginPath(),h.rect(v,p,m-v,g-p),h.clip()),e.beginPath(),!!a.pathSegment(e,n));let t;!f||(d?e.closePath():bo(e,s,o,u),m=!!s.pathSegment(e,r,{move:d,reverse:!0}),t=d&&m)||bo(e,s,i,u),e.closePath(),e.fill(t?"evenodd":"nonzero"),e.restore(
1)}}function bo(t,e,n,r){e=e.interpolate(n,r);e&&t.lineTo(e.x,e.y)}let xo={id:"filler",afterDatasetsUpdate(t,e,n){var r=(t.data.datasets||[]).length,i=[];let o,a,s,u;for(a=0;a<r;++a)s=(o=t.getDatasetMeta(a)).dataset,u=null,s&&s.options&&s instanceof Yi&&(u={visible:t.isDatasetVisible(a),index:a,fill:fo(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=u,i.push(u);for(a=0;a<r;++a)(u=i[a])&&!1!==u.fill&&(u.fill=((t,e,n)=>{let r=t[e].fill;var i,o=[e];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!g(r))return r;if(!(i=t[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1})(i,a,n.propagate))},beforeDraw(e,t,n){var r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let t=i.length-1;0<=t;--t){var a=i[t].$filler;a&&(a.line.updateControlPoints(o,a.axis),r)&&a.fill&&mo(e.ctx,a,o)}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"===n.drawTime){var r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;0<=t;--t){var i=r[t].$filler;ho(i)&&mo(e.ctx,i,e.chartArea)}}},beforeDatasetDraw(t,e,n){e=e.meta.$filler;ho(e)&&"beforeDatasetDraw"===n.drawTime&&mo(t.ctx,e,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},wo=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class So extends n{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},t=c(n.generateLabels,[this.chart],this)||[];n.filter&&(t=t.filter(t=>n.filter(t,this.chart.data))),n.sort&&(t=t.sort((t,e)=>n.sort(t,e,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){var{options:n,ctx:r}=this;if(n.display){var i=n.labels,o=L(i.font),a=o.size,s=this._computeTitleHeight(),{boxWidth:i,itemHeight:u}=wo(i,a);let t,e;r.font=o.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(s,a,i,u)+10):(e=this.maxHeight,t=this._fitCols(s,a,i,u)+10),this.width=Math.min(t,n.maxWidth||this.maxWidth),this.height=Math.min(e,n.maxHeight||this.maxHeight)}else this.width=this.height=0}_fitRows(t,n,r,i){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,u=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s,h=t,f=(o.textAlign="left",o.textBaseline="middle",-1),p=-c;return this.legendItems.forEach((t,e)=>{t=r+n/2+o.measureText(t.text).width;(0===e||l[l.length-1]+t+2*s>a)&&(h+=c,l[l.length-(0<e?0:1)]=0,p+=c,f++),u[e]={left:0,top:p,row:f,width:t,height:i},l[l.length-1]+=t+s}),h}_fitCols(t,n,r,i){let{ctx:o,maxHeight:e,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=e-t,c=a,h=0,f=0,p=0,d=0;return this.legendItems.forEach((t,e)=>{t=r+n/2+o.measureText(t.text).width;0<e&&f+i+2*a>l&&(c+=h+a,u.push({width:h,height:f}),p+=h+a,d++,h=f=0),s[e]={left:p,top:f,col:d,width:t,height:i},h=Math.max(h,t),f+=i+a}),c+=h,u.push({width:h,height:f}),c}adjustHitBoxes(){if(this.options.display){var n=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:i,labels:{padding:o},rtl:t}}=this,a=An(t,this.left,this.width);if(this.isHorizontal()){let t=0,e=I(i,this.left+o,this.right-this.lineWidths[t]);for(var s of r)t!==s.row&&(t=s.row,e=I(i,this.left+o,this.right-this.lineWidths[t])),s.top+=this.top+n+o,s.left=a.leftForLtr(a.x(e),s.width),e+=s.width+o}else{let t=0,e=I(i,this.top+n+o,this.bottom-this.columnSizes[t].height);for(var u of r)u.col!==t&&(t=u.col,e=I(i,this.top+n+o,this.bottom-this.columnSizes[t].height)),u.top=e,u.left+=this.left+o,u.left=a.leftForLtr(a.x(u.left),u.width),e+=u.height+o}}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){var t;this.options.display&&(Re(t=this.ctx,this),this._draw(),ze(t))}_draw(){let{options:f,columnSizes:p,lineWidths:d,ctx:g}=this,{align:v,labels:m}=f,_=T.color,y=An(f.rtl,this.left,this.width),b=L(m.font),{color:x,padding:w}=m,S=b.size,k=S/2,P,{boxWidth:M,boxHeight:E,itemHeight:A}=(this.drawTitle(),g.textAlign=y.textAlign("left"),g.textBaseline="middle",g.lineWidth=.5,g.font=b.string,wo(m,S)),O=this.isHorizontal(),C=this._computeTitleHeight(),D=(P=O?{x:I(v,this.left+w,this.right-d[0]),y:this.top+w+C,line:0}:{x:this.left+w,y:I(v,this.top+C+w,this.bottom-p[0].height),line:0},On(this.ctx,f.textDirection),A+w);
1this.legendItems.forEach((t,e)=>{g.strokeStyle=t.fontColor||x,g.fillStyle=t.fontColor||x;var n=g.measureText(t.text).width,r=y.textAlign(t.textAlign||(t.textAlign=m.textAlign)),n=M+k+n;let i=P.x,o=P.y;y.setWidth(this.width),O?0<e&&i+n+w>this.right&&(o=P.y+=D,P.line++,i=P.x=I(v,this.left+w,this.right-d[P.line])):0<e&&o+D>this.bottom&&(i=P.x=i+p[P.line].width+w,P.line++,o=P.y=I(v,this.top+C+w,this.bottom-p[P.line].height));var a,s,u,l,c,h,e=y.x(i);e=e,c=o,h=t,isNaN(M)||M<=0||isNaN(E)||E<0||(g.save(),a=N(h.lineWidth,1),g.fillStyle=N(h.fillStyle,_),g.lineCap=N(h.lineCap,"butt"),g.lineDashOffset=N(h.lineDashOffset,0),g.lineJoin=N(h.lineJoin,"miter"),g.lineWidth=a,g.strokeStyle=N(h.strokeStyle,_),g.setLineDash(N(h.lineDash,[])),m.usePointStyle?(s={radius:E*Math.SQRT2/2,pointStyle:h.pointStyle,rotation:h.rotation,borderWidth:a},u=y.xPlus(e,M/2),l=c+k,Le(g,s,u,l,m.pointStyleWidth&&M)):(s=c+Math.max((S-E)/2,0),u=y.leftForLtr(e,M),l=kn(h.borderRadius),g.beginPath(),Object.values(l).some(t=>0!==t)?He(g,{x:u,y:s,w:M,h:E,radius:l}):g.rect(u,s,M,E),g.fill(),0!==a&&g.stroke()),g.restore()),i=Mt(r,i+M+k,O?i+n:this.right,f.rtl),c=y.x(i),e=o,h=t,Fe(g,h.text,c,e+A/2,b,{strikethrough:h.hidden,textAlign:y.textAlign(h.textAlign)}),O?P.x+=n+w:P.y+=D}),Cn(this.ctx,f.textDirection)}drawTitle(){var r=this.options,i=r.title,o=L(i.font),a=B(i.padding);if(i.display){var s=An(r.rtl,this.left,this.width),u=this.ctx,l=i.position,c=o.size/2,a=a.top+c;let t,e=this.left,n=this.width;this.isHorizontal()?(n=Math.max(...this.lineWidths),t=this.top+a,e=I(r.align,e,this.right-n)):(c=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0),t=a+I(r.align,this.top,this.bottom-c-r.labels.padding-this._computeTitleHeight()));a=I(l,e,e+n);u.textAlign=s.textAlign(Pt(l)),u.textBaseline="middle",u.strokeStyle=i.color,u.fillStyle=i.color,u.font=o.string,Fe(u,i.text,a,t,o)}}_computeTitleHeight(){var t=this.options.title,e=L(t.font),n=B(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,i;if(y(t,this.left,this.right)&&y(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(y(t,(r=i[n]).left,r.left+r.width)&&y(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){var e,n,r,i,o=this.options;n=t.type,e=o,("mousemove"!==n&&"mouseout"!==n||!e.onHover&&!e.onLeave)&&(!e.onClick||"click"!==n&&"mouseup"!==n)||(e=this._getLegendItemAt(t.x,t.y),"mousemove"===t.type||"mouseout"===t.type?(n=this._hoveredItem,i=e,r=null!==(r=n)&&null!==i&&r.datasetIndex===i.datasetIndex&&r.index===i.index,n&&!r&&c(o.onLeave,[t,n,this],this),(this._hoveredItem=e)&&!r&&c(o.onHover,[t,e,this],this)):e&&c(o.onClick,[t,e,this],this))}}var ko={id:"legend",_element:So,start(t,e,n){var r=t.legend=new So({ctx:t.ctx,options:n,chart:t});i.configure(t,r,n),i.addBox(t,r)},stop(t){i.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){var r=t.legend;i.configure(t,r,n),r.options=n},afterUpdate(t){t=t.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){var r=e.datasetIndex,n=n.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let r=t.data.datasets,{usePointStyle:i,pointStyle:o,textAlign:a,color:s}=t.legend.options.labels;return t._getSortedDatasetMetas().map(t=>{var e=t.controller.getStyle(i?0:void 0),n=B(e.borderWidth);return{text:r[t.index].label,fillStyle:e.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:(n.width+n.height)/4,strokeStyle:e.borderColor,pointStyle:o||e.pointStyle,rotation:e.rotation,textAlign:a||e.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Po extends n{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){var n=this.options;this.left=0,this.top=0,n.display?(this.width=this.right=t,this.height=this.bottom=e,t=j(n.text)?n.text.length:1,this._padding=B(n.padding),e=t*L(n.font).lineHeight+this._padding.height,this.isHorizontal()?this.height=e:this.width=e):this.width=this.height=this.right=this.bottom=0}isHorizontal(){var t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){var{top:e,left:n,bottom:r,right:i,options:o}=this,a=o.align;let s=0,u,l,c;return u=this.isHorizontal()?(l=I(a,n,i),c=e+t,i-n):(s="left"===o.position?(l=n+t,c=I(a,r,e),-.5*x):(l=i-t,c=I(a,e,r),.5*x),r-e),{titleX:l,titleY:c,maxWidth:u,rotation:s}}draw(){var t,e,n,r,i,o=this.ctx,a=this.options;a.display&&(e=(t=L(a.font)).lineHeight/2+this._padding.top,{titleX:e,titleY:n,maxWidth:r,rotation:i}=this._drawArgs(e),Fe(o,a.text,0,0,t,{color:a.color,maxWidth:r,rotation:i,textAlign:Pt(a.al
1ign),textBaseline:"middle",translation:[e,n]}))}}let Mo={id:"title",_element:Po,start(t,e,n){var r;t=t,n=n,r=new Po({ctx:t.ctx,options:n,chart:t}),i.configure(t,r,n),i.addBox(t,r),t.titleBlock=r},stop(t){var e=t.titleBlock;i.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){var r=t.titleBlock;i.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Eo=new WeakMap,Ao={id:"subtitle",start(t,e,n){var r=new Po({ctx:t.ctx,options:n,chart:t});i.configure(t,r,n),i.addBox(t,r),Eo.set(t,r)},stop(t){i.removeBox(t,Eo.get(t)),Eo.delete(t)},beforeUpdate(t,e,n){var r=Eo.get(t);i.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Oo={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){var a=t[e].element;a&&a.hasValue()&&(a=a.tooltipPosition(),r+=a.x,i+=a.y,++o)}return{x:r/o,y:i/o}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o<a;++o){var u,l=t[o].element;l&&l.hasValue()&&(u=ht(e,l.getCenterPoint()))<i&&(i=u,s=l)}var c;return s&&(c=s.tooltipPosition(),n=c.x,r=c.y),{x:n,y:r}}};function u(t,e){return e&&(j(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Co(t){return("string"==typeof t||t instanceof String)&&-1<t.indexOf("\n")?t.split("\n"):t}function Do(t,e){let n=t.chart.ctx;var{body:r,footer:i,title:o}=t,{boxWidth:a,boxHeight:s}=e,u=L(e.bodyFont),l=L(e.titleFont),c=L(e.footerFont),o=o.length,i=i.length,h=r.length,f=B(e.padding);let p=f.height,d=0;var g=r.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);g+=t.beforeBody.length+t.afterBody.length,o&&(p+=o*l.lineHeight+(o-1)*e.titleSpacing+e.titleMarginBottom),g&&(o=e.displayColors?Math.max(s,u.lineHeight):u.lineHeight,p+=h*o+(g-h)*u.lineHeight+(g-1)*e.bodySpacing),i&&(p+=e.footerMarginTop+i*c.lineHeight+(i-1)*e.footerSpacing);function v(t){d=Math.max(d,n.measureText(t).width+m)}let m=0;return n.save(),n.font=l.string,S(t.title,v),n.font=u.string,S(t.beforeBody.concat(t.afterBody),v),m=e.displayColors?a+2+e.boxPadding:0,S(r,t=>{S(t.before,v),S(t.lines,v),S(t.after,v)}),m=0,n.font=c.string,S(t.footer,v),n.restore(),{width:d+=f.width,height:p}}function Io(t,e,n,r){var{x:i,width:o}=n,{width:a,chartArea:{left:s,right:u}}=t;let l="center";return"center"===r?l=i<=(s+u)/2?"left":"right":i<=o/2?l="left":a-o/2<=i&&(l="right"),l=((t,e,n,r)=>{var{x:r,width:i}=r,n=n.caretSize+n.caretPadding;return"left"===t&&r+i+n>e.width||"right"===t&&r-i-n<0})(l,t,e,n)?"center":l}function To(t,e,n){var r=n.yAlign||e.yAlign||((t,e)=>{var{y:e,height:n}=e;return e<n/2?"top":e>t.height-n/2?"bottom":"center"})(t,n);return{xAlign:n.xAlign||e.xAlign||Io(t,e,n,r),yAlign:r}}function Lo(t,e,n,r){var{caretSize:t,caretPadding:i,cornerRadius:o}=t,{xAlign:n,yAlign:a}=n,i=t+i,{topLeft:o,topRight:s,bottomLeft:u,bottomRight:l}=kn(o);let c=((t,e)=>{let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n})(e,n);var h=((t,e,n)=>{let{y:r,height:i}=t;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r})(e,a,i);return"center"===a?"left"===n?c+=i:"right"===n&&(c-=i):"left"===n?c-=Math.max(o,u)+t:"right"===n&&(c+=Math.max(s,l)+t),{x:_(c,0,r.width-e.width),y:_(h,0,r.height-e.height)}}function jo(t,e,n){n=B(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ro(t){return u([],Co(t))}function zo(t,e){e=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return e?t.override(e):t}class No extends n{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){var t,e=this._cachedAnimations;return e||(e=this.chart,e=(t=this.options.setContext(this.getContext())).enabled&&e.options.animation&&t.animations,t=new Mr(this.chart,e),e._cacheable&&(this._cachedAnimations=Object.freeze(t)),t)}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),n=(e=this)._tooltipItems,En(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){var e=e.callbacks,n=e.beforeTitle.apply(this,[t]),r=e.title.apply(this,[t]),e=e.afterTitle.apply(this,[t]),t=u([],Co(n));return t=u(t,Co(r)),u(t,Co(e))}getBeforeBody(t,e){return Ro(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){let r=e.callbacks,i=[];return S(t,t=>{var e={before:[],lines:[],after:[]},n=zo(r,t);u(e.before,Co(n.beforeLabel.call(this,t))),u(e.lines,n.label.call(this,t)),u(e.after,Co(n.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ro(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){var e=e.callbacks,n=e.beforeFooter.apply(this,[t]),r=e.footer.apply(this,[t]),e=e.afterFooter.apply(this,[t]),t=u([],Co(n));return t=u(t,Co(r)),u(t,Co(e))}_createItems(r){var t=this._active;let i=this.chart.data,n=[],o=[],a=[],e=[],s,u;for(s=0,u=t.length;s<u;++s)e.push(((t,e)=>{var{element:e,datasetIndex:n,index:r}=e,i=t.getDatasetMeta(n).controller,{label:o,value:a}=i.getLabelAndValue(r);return{chart:t,label:o,parsed:i.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:a,dataset:i.getDataset(),dataIndex:r,datasetIndex:n,element:e}})(this.chart,t[s]));return r.filter&&(e=e.filter((t,e,n)=>r.filter(t,e,n,i))),S(e=r.itemSort?e.sort((t,e)=>r.itemSort(t,e,i)):e,t=>{var e=zo(r.callbacks,t);n.push(e.labelColor.call(this,t)),o.push(e.labelPointStyle.call(this,t)),a.push(e.labelTextColor.call(this,t))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=e}update(t,e){var n,r,i,o=this.options.setContext(this.getContext()),a=this._active;let s,u=[];a.length?(a=Oo[o.position].call(this,a,this._eventPosition),u=this._createItems(o),this.title=this.getTitle(u,o),this.beforeBody=this.getBeforeBody(u,o),this.body=this.getBody(u,o),this.afterBody=this.getAfterBody(u,o),this.footer=this.getFooter(u,o),n=this._size=Do(this,o),i=Lo(o,r=Object.assign({},a,n),r=To(this.chart,o,r),this.chart),this.xAlign=r.xAlign,this.yAlign=r.yAlign,s={opacity:1,x:i.x,y:i.y,width:n.width,height:n.height,caretX:a.x,caretY:a.y}):0!==this.opacity&&(s={opacity:0}
1),this._tooltipItems=u,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){t=this.getCaretPosition(t,n,r);e.lineTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineTo(t.x3,t.y3)}getCaretPosition(t,e,n){var{xAlign:r,yAlign:i}=this,{caretSize:n,cornerRadius:o}=n,{topLeft:o,topRight:a,bottomLeft:s,bottomRight:u}=kn(o),{x:t,y:l}=t,{width:e,height:c}=e;let h,f,p,d,g,v;return"center"===i?(g=l+c/2,v="left"===r?(h=t,f=h-n,d=g+n,g-n):(h=t+e,f=h+n,d=g-n,g+n),p=h):(f="left"===r?t+Math.max(o,s)+n:"right"===r?t+e-Math.max(a,u)-n:this.caretX,p="top"===i?(d=l,g=d-n,h=f-n,f+n):(d=l+c,g=d+n,h=f+n,f-n),v=d),{x1:h,x2:f,x3:p,y1:d,y2:g,y3:v}}drawTitle(t,e,n){var r=this.title,i=r.length;let o,a,s;if(i){var u=An(n.rtl,this.x,this.width);for(t.x=jo(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",o=L(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,s=0;s<i;++s)e.fillText(r[s],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,s+1===i&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,i){var o,a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:u,boxWidth:l,boxPadding:c}=i,h=L(i.bodyFont),f=jo(this,"left",i),f=r.x(f),h=u<h.lineHeight?(h.lineHeight-u)/2:0,e=e.y+h;i.usePointStyle?(h={radius:Math.min(l,u)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},s=r.leftForLtr(f,l)+l/2,o=e+u/2,t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Te(t,h,s,o),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Te(t,h,s,o)):(t.lineWidth=z(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0,h=r.leftForLtr(f,l-c),s=r.leftForLtr(r.xPlus(f,1),l-c-2),o=kn(a.borderRadius),Object.values(o).some(t=>0!==t)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,He(t,{x:h,y:e,w:l,h:u,radius:o}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),He(t,{x:s,y:e+1,w:l-2,h:u-2,radius:o}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(h,e,l,u),t.strokeRect(h,e,l,u),t.fillStyle=a.backgroundColor,t.fillRect(s,e+1,l-2,u-2))),t.fillStyle=this.labelTextColors[n]}drawBody(e,n,t){var r=this.body;let{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:u,boxPadding:l}=t;var c=L(t.bodyFont);let h=c.lineHeight,f=0,p=An(t.rtl,this.x,this.width);function d(t){n.fillText(t,p.x(e.x+f),e.y+h/2),e.y+=h+i}var g=p.textAlign(o);let v,m,_,y,b,x,w;for(n.textAlign=o,n.textBaseline="middle",n.font=c.string,e.x=jo(this,g,t),n.fillStyle=t.bodyColor,S(this.beforeBody,d),f=a&&"right"!==g?"center"===o?u/2+l:u+2+l:0,y=0,x=r.length;y<x;++y){for(v=r[y],m=this.labelTextColors[y],n.fillStyle=m,S(v.before,d),_=v.lines,a&&_.length&&(this._drawColorBox(n,e,y,p,t),h=Math.max(c.lineHeight,s)),b=0,w=_.length;b<w;++b)d(_[b]),h=c.lineHeight;S(v.after,d)}f=0,h=c.lineHeight,S(this.afterBody,d),e.y-=i}drawFooter(t,e,n){var r=this.footer,i=r.length;let o,a;if(i){var s=An(n.rtl,this.x,this.width);for(t.x=jo(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",o=L(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,a=0;a<i;++a)e.fillText(r[a],s.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){var{xAlign:i,yAlign:o}=this,{x:a,y:s}=t,{width:u,height:l}=n,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:p}=kn(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+c,s),"top"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+u-h,s),e.quadraticCurveTo(a+u,s,a+u,s+h),"center"===o&&"right"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+u,s+l-p),e.quadraticCurveTo(a+u,s+l,a+u-p,s+l),"bottom"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+f,s+l),e.quadraticCurveTo(a,s+l,a,s+l-f),"center"===o&&"left"===i&&this.drawCaret(t,e,n,r),e.lineTo(a,s+c),e.quadraticCurveTo(a,s,a+c,s),e.closePath(),e.fill(),0<r.borderWidth&&e.stroke()}_updateAnimationTarget(t){var e,n,r,i=this.chart,o=this.$animations,a=o&&o.x,o=o&&o.y;(a||o)&&(e=Oo[t.position].call(this,this._active,this._eventPosition))&&(n=this._size=Do(this,t),r=Lo(t,r=Object.assign({},e,this._size),t=To(i,t,r),i),a._to===r.x&&o._to===r.y||(this.xAlign=t.xAlign,this.yAlign=t.yAlign,this.width=n.width,this.height=n.height,this.caretX=e.x,this.caretY=e.y,this._resolveAnimations().update(this,r)))}_willRender(){return!!this.opacity}draw(t){var e,n,r,i,o=this.options.setContext(this.getContext()),a=this.opacity;a&&(this._updateAnimationTarget(o),e={width:this.width,height:this.height},n={x:this.x,y:this.y},a=Math.abs(a)<.001?0:a,r=B(o.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length,o.enabled)&&i&&(t.save(),t.globalAlpha=a,this.drawBackgroun
1d(n,t,e,o),On(t,o.textDirection),n.y+=r.top,this.drawTitle(n,t,o),this.drawBody(n,t,o),this.drawFooter(n,t,o),Cn(t,o.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){var n=this._active,t=t.map(({datasetIndex:t,index:e})=>{var n=this.chart.getDatasetMeta(t);if(n)return{datasetIndex:t,element:n.data[e],index:e};throw new Error("Cannot find a dataset at index "+t)}),n=!D(n,t),r=this._positionChanged(t,e);(n||r)&&(this._active=t,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],n=this._getActiveElements(t,i,e,n),o=this._positionChanged(n,t),i=e||!D(n,i)||o;return i&&(this._active=n,r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e)),i}_getActiveElements(t,e,n,r){var i=this.options;return"mouseout"===t.type?[]:r?(r=this.chart.getElementsAtEventForMode(t,i.mode,i,n),i.reverse&&r.reverse(),r):e}_positionChanged(t,e){var{caretX:n,caretY:r,options:i}=this,i=Oo[i.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}No.positioners=Oo;var Bo={id:"tooltip",_element:No,positioners:Oo,afterInit(t,e,n){n&&(t.tooltip=new No({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){var e,n=t.tooltip;n&&n._willRender()&&!(e={tooltip:n})!==t.notifyPlugins("beforeTooltipDraw",e)&&(n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e))},afterEvent(t,e){var n;t.tooltip&&(n=e.replay,t.tooltip.handleEvent(e.event,n,e.inChartArea))&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:t,title(t){if(0<t.length){var t=t[0],e=t.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(0<n&&t.dataIndex<n)return e[t.dataIndex]}return""},afterTitle:t,beforeBody:t,beforeLabel:t,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");t=t.formattedValue;return A(t)||(e+=t),e},labelColor(t){t=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){t=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Fo=Object.freeze({__proto__:null,Decimation:ao,Filler:xo,Legend:ko,SubTitle:Ao,Title:Mo,Tooltip:Bo});function Ho(t,e,n,r){var i,o,a,s=t.indexOf(e);return-1===s?(i=t,a=n,r=r,"string"==typeof(o=e)?(a=i.push(o)-1,r.unshift({index:a,label:o})):isNaN(o)&&(a=null),a):s!==t.lastIndexOf(e)?n:s}class Wo extends $r{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){var e=this._addedLabels;if(e.length){var n,r,i=this.getLabels();for({index:n,label:r}of e)i[n]===r&&i.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){var n;return A(t)||(n=this.getLabels(),e=isFinite(e)&&n[e]===t?e:Ho(n,t,N(e,t),this._addedLabels),t=e,e=n.length-1,null===t)?null:_(Math.round(t),0,e)}
1determineDataLimits(){var{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){var e=this.min,n=this.max,t=this.options.offset,r=[];let i=this.getLabels();i=0===e&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(t?0:1),1),this._startValue=this.min-(t?.5:0);for(let t=e;t<=n;t++)r.push({value:t});return r}getLabelForValue(t){var e=this.getLabels();return 0<=t&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return null===(t="number"!=typeof t?this.parse(t):t)?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Vo(t,e,{horizontal:n,minRotation:r}){r=R(r),n=(n?Math.sin(r):Math.cos(r))||.001;return Math.min(e/n,.75*e*(""+t).length)}Wo.id="category",Wo.defaults={ticks:{callback:Wo.prototype.getLabelForValue}};class $o extends $r{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return A(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){var e=this.options.beginAtZero;let{minDefined:n,maxDefined:r}=this.getUserBounds(),{min:i,max:o}=this;var t,a,s=t=>i=n?i:t,u=t=>o=r?o:t;if(e&&(t=P(i),a=P(o),t<0&&a<0?u(0):0<t&&0<a&&s(0)),i===o){let t=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*o)),u(o+t),e||s(i-t)}this.min=i,this.max=o}getTickLimit(){let{maxTicksLimit:t,stepSize:e}=this.options.ticks,n;return e?1e3<(n=Math.ceil(this.max/e)-Math.floor(this.min/e)+1)&&(console.warn(`scales.${this.id}.ticks.stepSize: ${e} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3):(n=this.computeTickLimit(),t=t||11),n=t?Math.min(t,n):n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){var t=this.options,e=t.ticks,n=this.getTickLimit(),n=((t,e)=>{var n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:u,maxTicks:l,maxDigits:c,includeBounds:h}=t,f=i||1,p=l-1,{min:e,max:d}=e,g=!A(o),v=!A(a),m=!A(u),c=(d-e)/(c+1);let _=nt((d-e)/p/f)*f,y,b,x,w;if(_<1e-14&&!g&&!v)return[{value:e},{value:d}];(w=Math.ceil(d/_)-Math.floor(e/_))>p&&(_=nt(w*_/p/f)*f),A(s)||(y=Math.pow(10,s),_=Math.ceil(_*y)/y),x="ticks"===r?(b=Math.floor(e/_)*_,Math.ceil(d/_)*_):(b=e,d),g&&v&&i&&at((a-o)/i,_/1e3)?(w=Math.round(Math.min((a-o)/_,l)),_=(a-o)/w,b=o,x=a):m?(b=g?o:b,x=v?a:x,w=u-1,_=(x-b)/w):w=ot(w=(x-b)/_,Math.round(w),_/1e3)?Math.round(w):Math.ceil(w),p=Math.max(lt(_),lt(b)),y=Math.pow(10,A(s)?p:s),b=Math.round(b*y)/y,x=Math.round(x*y)/y;let S=0;for(g&&(h&&b!==o?(n.push({value:o}),b<o&&S++,ot(Math.round((b+S*_)*y)/y,o,Vo(o,c,t))&&S++):b<o&&S++);S<w;++S)n.push({value:Math.round((b+S*_)*y)/y});return v&&h&&x!==a?n.length&&ot(n[n.length-1].value,a,Vo(a,c,t))?n[n.length-1].value=a:n.push({value:a}):v&&x!==a||n.push({value:x}),n})({maxTicks:Math.max(2,n),bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&st(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){var t=this.ticks;let e=this.min,n=this.max;super.configure(),this.options.offset&&t.length&&(t=(n-e)/Math.max(t.length-1,1)/2,e-=t,n+=t),this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return mn(t,this.chart.options.locale,this.options.ticks.format)}}class qo extends $o{determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?t:0,this.max=g(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){var t=this.isHorizontal(),e=t?this.width:this.height,n=R(this.options.ticks.minRotation),t=(t?Math.sin(n):Math.cos(n))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/t))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Uo(t){return 1==t/Math.pow(10,Math.floor(f(t)))}qo.id="linear",qo.defaults={ticks:{callback:Me.formatters.numeric}};class Yo extends $r{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){t=$o.prototype.parse.apply(this,[t,e]);if(0!==t)return g(t)&&0<t?t:null;this._zero=!0}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?Math.max(0,t):null,this.max=g(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:n}=this.getUserBounds(),r=this.min,i=this.max;var t=t=>r=e?r:t,o=t=>i=n?i:t,a=(t,e)=>Math.pow(10,Math.floor(f(t))+e);r===i&&(r<=0?(t(1),o(10)):(t(a(r,-1)),o(a(i,1)))),r<=0&&t(a(i,-1)),i<=0&&o(a(r,1)
1),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&t(a(r,-1)),this.min=r,this.max=i}buildTicks(){var t=this.options,e=((t,e)=>{var n=Math.floor(f(e.max)),r=Math.ceil(e.max/Math.pow(10,n)),i=[];let o=l(t.min,Math.pow(10,Math.floor(f(e.min)))),a=Math.floor(f(o)),s=Math.floor(o/Math.pow(10,a)),u=a<0?Math.pow(10,Math.abs(a)):1;for(;i.push({value:o,major:Uo(o)}),10===++s&&(s=1,++a,u=0<=a?1:u),o=Math.round(s*Math.pow(10,a)*u)/u,a<n||a===n&&s<r;);return e=l(t.max,o),i.push({value:e,major:Uo(o)}),i})({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&st(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":mn(t,this.chart.options.locale,this.options.ticks.format)}configure(){var t=this.min;super.configure(),this._startValue=f(t),this._valueRange=f(this.max)-f(t)}getPixelForValue(t){return null===(t=void 0!==t&&0!==t?t:this.min)||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(f(t)-this._startValue)/this._valueRange)}getValueForPixel(t){t=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+t*this._valueRange)}}function Ko(t){var e=t.ticks;return e.display&&t.display?(t=B(e.backdropPadding),N(e.font&&e.font.size,T.font.size)+t.height):0}function Go(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||i<t?{start:e-n,end:e}:{start:e,end:e+n}}function Qo(e){var i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},o=Object.assign({},i),n=[],r=[],a=e._pointLabels.length,s=e.options.pointLabels,u=s.centerPointLabels?x/a:0;for(let t=0;t<a;t++){var l=s.setContext(e.getPointLabelContext(t)),c=(r[t]=l.padding,e.getPointPosition(t,e.drawingArea+r[t],u)),l=L(l.font),h=(h=e.ctx,l=l,f=j(f=e._pointLabels[t])?f:[f],{w:Ce(h,l.string,f),h:f.length*l.lineHeight}),f=(n[t]=h,m(e.getIndexAngle(t)+u)),l=Math.round(ut(f)),p=Go(l,c.x,h.w,0,180),l=Go(l,c.y,h.h,90,270);{c=void 0;h=void 0;d=void 0;g=void 0;v=void 0;c=o;h=i;var d=f;var g=p;var v=l;let t=Math.abs(Math.sin(d)),e=Math.abs(Math.cos(d)),n=0,r=0;g.start<h.l?(n=(h.l-g.start)/t,c.l=Math.min(c.l,h.l-n)):g.end>h.r&&(n=(g.end-h.r)/t,c.r=Math.max(c.r,h.r+n)),v.start<h.t?(r=(h.t-v.start)/e,c.t=Math.min(c.t,h.t-r)):v.end>h.b&&(r=(v.end-h.b)/e,c.b=Math.max(c.b,h.b+r))}}e.setCenterPoint(i.l-o.l,o.r-i.r,i.t-o.t,o.b-i.b),e._pointLabelItems=((e,n,r)=>{var i=[],o=e._pointLabels.length,t=e.options,a=Ko(t)/2,s=e.drawingArea,u=t.pointLabels.centerPointLabels?x/o:0;for(let t=0;t<o;t++){var l=e.getPointPosition(t,s+a+r[t],u),c=Math.round(ut(m(l.angle+w))),h=n[t],f=((t,e,n)=>(90===n||270===n?t-=e/2:(270<n||n<90)&&(t-=e),t))(l.y,h.h,c),c=(t=>0===t||180===t?"center":t<180?"left":"right")(c),p=((t,e,n)=>("right"===n?t-=e:"center"===n&&(t-=e/2),t))(l.x,h.w,c);i.push({x:l.x,y:f,textAlign:c,left:p,top:f,right:p+h.w,bottom:f+h.h})}return i})(e,n,r)}function Xo(e,n,t,r){var i=e.ctx;if(t)i.arc(e.xCenter,e.yCenter,n,0,v);else{var o=e.getPointPosition(0,n);i.moveTo(o.x,o.y);for(let t=1;t<r;t++)o=e.getPointPosition(t,n),i.lineTo(o.x,o.y)}}Yo.id="logarithmic",Yo.defaults={ticks:{callback:Me.formatters.logarithmic,major:{enabled:!0}}};class Jo extends $o{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){var t=this._padding=B(Ko(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!1);this.min=g(t)&&!isNaN(t)?t:0,this.max=g(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ko(this.options))}generateTickLabels(t){$o.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{t=c(this.options.pointLabels.callback,[t,e],this);return t||0===t?t:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){var t=this.options;t.display&&t.pointLabels.display?Qo(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){return m(t*(v/(this._pointLabels.length||1))+R(this.options.startAngle||0))}getDistanceFromCenterForValue(t){var e;return A(t)?NaN:(e=this.drawingArea/(this.max-this.min),this.options.reverse?(this.max-t)*e:(t-this.min)*e)}getValueForDistanceFromCenter(t){return A(t)?NaN:(t=t/(this.drawingArea/(this.max-this.min)),this.options.reverse?this.max-t:this.min+t)}getPointLabelContext(t){var e=this._pointLabels||[];if(0<=t&&t<e.length)return e=e[t],En(this.getContext(),{label:e,index:t,type:"pointLabel"})}getPointPosition(t,e,n=0){t=this.getIndexAngle(t)-w+n;return{x:Math.cos(t)*e+this.xCenter,y:Math.sin(t)*e+this.yCenter,angle:t}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){var{left:t,top:e,right:n,bottom:r}=this._pointLabelItems[t];return{left:t,top:e,right:n,bottom:r}}
1drawBackground(){var t,{backgroundColor:e,grid:{circular:n}}=this.options;e&&((t=this.ctx).save(),t.beginPath(),Xo(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),t.closePath(),t.fillStyle=e,t.fill(),t.restore())}drawGrid(){var t=this.ctx,e=this.options;let{angleLines:n,grid:u}=e,l=this._pointLabels.length,r,c,i;if(e.pointLabels.display){var o=this,a=l,{ctx:s,options:{pointLabels:h}}=o;for(let t=a-1;0<=t;t--){var f,p,d,g=h.setContext(o.getPointLabelContext(t)),v=L(g.font),{x:m,y:_,textAlign:y,left:b,top:x,right:w,bottom:S}=o._pointLabelItems[t],k=g.backdropColor;A(k)||(f=kn(g.borderRadius),p=B(g.backdropPadding),s.fillStyle=k,k=b-p.left,d=x-p.top,w=w-b+p.width,b=S-x+p.height,Object.values(f).some(t=>0!==t)?(s.beginPath(),He(s,{x:k,y:d,w:w,h:b,radius:f}),s.fill()):s.fillRect(k,d,w,b)),Fe(s,o._pointLabels[t],m,_+v.lineHeight/2,v,{color:g.color,textAlign:y,textBaseline:"middle"})}}if(u.display&&this.ticks.forEach((t,e)=>{var n,r,i,o,a,s;0!==e&&(c=this.getDistanceFromCenterForValue(t.value),t=u.setContext(this.getContext(e-1)),e=this,t=t,n=c,r=l,i=e.ctx,o=t.circular,{color:a,lineWidth:s}=t,!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),Xo(e,n,o,r),i.closePath(),i.stroke(),i.restore()))}),n.display){for(t.save(),r=l-1;0<=r;r--){var P=n.setContext(this.getPointLabelContext(r)),{color:M,lineWidth:E}=P;E&&M&&(t.lineWidth=E,t.strokeStyle=M,t.setLineDash(P.borderDash),t.lineDashOffset=P.borderDashOffset,c=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),i=this.getPointPosition(r,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(i.x,i.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let a=this.ctx,s=this.options,u=s.ticks;if(u.display){var t=this.getIndexAngle(0);let i,o;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(t),a.textAlign="center",a.textBaseline="middle",this.ticks.forEach((t,e)=>{var n,r;0===e&&!s.reverse||(r=L((n=u.setContext(this.getContext(e))).font),i=this.getDistanceFromCenterForValue(this.ticks[e].value),n.showLabelBackdrop&&(a.font=r.string,o=a.measureText(t.label).width,a.fillStyle=n.backdropColor,e=B(n.backdropPadding),a.fillRect(-o/2-e.left,-i-r.size/2-e.top,o+e.width,r.size+e.height)),Fe(a,t.label,0,-i,r,{color:n.color}))}),a.restore()}}drawTitle(){}}Jo.id="radialLinear",Jo.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Me.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}},Jo.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};let Zo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!(Jo.descriptors={angleLines:{_fallback:"grid"}}),size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},M=Object.keys(Zo);function ta(t,e){return t-e}function ea(t,e){if(A(e))return null;var n=t._adapter,{parser:t,round:r,isoWeekday:i}=t._parseOpts;let o=e;return"function"==typeof t&&(o=t(o)),null===(o=g(o)?o:"string"==typeof t?n.parse(o,t):n.parse(o))?null:+(o=r?"week"!==r||!it(i)&&!0!==i?n.startOf(o,r):n.startOf(o,"isoWeek",i):o)}function na(e,n,r,i){var o=M.length;for(let t=M.indexOf(e);t<o-1;++t){var a=Zo[M[t]],s=a.steps||Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((r-n)/(s*a.size))<=i)return M[t]}return M[o-1]}function ra(t,e,n){var r,i;n?n.length&&({lo:r,hi:i}=gt(n,e),t[n[r]>=e?n[r]:n[i]]=!0):t[e]=!0}function ia(n,t,r){var i=[],o={},e=t.length;let a,s;for(a=0;a<e;++a)o[s=t[a]]=a,i.push({value:s,major:!1});if(0!==e&&r){var u=i,l=o,c=r,h=(r=n)._adapter,r=+h.startOf(u[0].value,c),f=u[u.length-1].value;let t,e;for(t=r;t<=f;t=+h.add(t,1,c))0<=(e=l[t])&&(u[e].major=!0);return u}return i}class oa extends $r{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){var n=t.time||(t.time={}),r=this._adapter=new vi._date(t.adapters.date);r.init(e),$(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ea(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){var t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function s(t){o||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(i=Math.max(i,t.max))}o&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source)||s(this.getMinMax(!1)),r=g(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),i=g(i)&&
1!isNaN(i)?i:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){var t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){var t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate(),i=("ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]),this.min),o=mt(r,i,this.max);return this._unit=e.unit||(n.autoSkip?na(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):((e,n,r,i,o)=>{for(let t=M.length-1;t>=M.indexOf(r);t--){var a=M[t];if(Zo[a].common&&e._adapter.diff(o,i,a)>=n-1)return a}return M[r?M.indexOf(r):0]})(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?(n=>{for(let t=M.indexOf(n)+1,e=M.length;t<e;++t)if(Zo[M[t]].common)return M[t]})(this._unit):void 0,this.initOffsets(r),t.reverse&&o.reverse(),ia(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e=0,n=0;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),e=1===t.length?1-r:(this.getDecimalForValue(t[1])-r)/2,r=this.getDecimalForValue(t[t.length-1]),n=1===t.length?r:(r-this.getDecimalForValue(t[t.length-2]))/2);var r=t.length<3?.5:.25;e=_(e,0,r),n=_(n,0,r),this._offsets={start:e,end:n,factor:1/(e+1+n)}}_generate(){var t=this._adapter,e=this.min,n=this.max,r=this.options,i=r.time,o=i.unit||na(i.minUnit,e,n,this._getLabelCapacity(e)),a=N(i.stepSize,1),i="week"===o&&i.isoWeekday,s=it(i)||!0===i,u={};let l=e,c,h;if(s&&(l=+t.startOf(l,"isoWeek",i)),l=+t.startOf(l,s?"day":o),t.diff(n,e,o)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+o);var f="data"===r.ticks.source&&this.getDataTimestamps();for(c=l,h=0;c<n;c=+t.add(c,a,o),h++)ra(u,c,f);return c!==n&&"ticks"!==r.bounds&&1!==h||ra(u,c,f),Object.keys(u).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){var e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,r){var i=this.options,o=i.time.displayFormats,a=this._unit,s=this._majorUnit,a=a&&o[a],o=s&&o[s],u=n[e],s=s&&o&&u&&u.major,u=this._adapter.format(t,r||(s?o:a)),t=i.ticks.callback;return t?c(t,[u,e,n],this):u}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)(r=t[e]).label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){var e=this._offsets,t=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+t)*e.factor)}getValueForPixel(t){var e=this._offsets,t=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+t*(this.max-this.min)}_getLabelSize(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,e=R(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(e),e=Math.sin(e),r=this._resolveTickFontOptions(0).size;return{w:t*n+r*e,h:t*e+r*n}}_getLabelCapacity(t){var e=this.options.time,n=e.displayFormats,e=n[e.unit]||n.millisecond,n=this._tickFormatFunction(t,0,ia(this,[t],this._majorUnit),e),t=this._getLabelSize(n),e=Math.floor(this.isHorizontal()?this.width/t.w:this.height/t.h)-1;return 0<e?e:1}getDataTimestamps(){let t=this._cache.data||[],e,n;if(t.length)return t;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,n=r.length;e<n;++e)t=t.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){var t=this._cache.labels||[];let e,n;if(t.length)return t;var r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(ea(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return xt(t.sort(ta))}}function aa(t,e,n){let r=0,i=t.length-1,o,a,s,u;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=b(t,"pos",e)),{pos:o,time:s}=t[r],{pos:a,time:u}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=b(t,"time",e)),{time:o,pos:s}=t[r],{time:a,pos:u}=t[i]);n=a-o;return n?s+(u-s)*(e-o)/n:s}oa.id="time",oa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class sa extends oa{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=aa(e,this.min),this._tableRange=aa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){var{min:e,max:n}=this,r=[],i=[];let o,a,s,u,l;for(o=0,a=t.length;o<a;++o)(u=t[o])>=e&&u<=n&&r.push(u);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)l=r[o+1],s=r[o-1],u=r[o],Math.round((l+s)/2)!==u&&i.push({time:u,pos:o/(a-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];var e,n;return t.length||(e=this.getDataTimestamps(),n=this.getLabelTimestamps(),t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t),t}getDecimalForValue(t){return(aa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){var e=this._offsets,t=this.getDecimalForPixel(t)/e.factor-e.end;return aa(this._table,t*this._tableRange+this._minPos,!0)}}sa.id="timeseries",sa.defaults=oa.defaults;ao=Object.freeze({__proto__:null,CategoryScale:Wo,LinearScale:qo,LogarithmicScale:Yo,RadialLinearScale:Jo,TimeScale:oa,TimeSeriesScale:sa});return r.register(Ii,ao,ro,Fo),r.helpers={...Nn},r._adapters=vi,r.Animation=kr,r.Animations=Mr,r.animator=o,r.controllers=k.controllers.items,r.DatasetController=e,r.Element=n,r.elements=ro,r.Interaction=qn,r.layouts=i,r.platforms=xr,r.Scale=$r,r.Ticks=Me,Object.assign(r,Ii,ao,ro,Fo,xr),r.Chart=r,"undefined"!=typeof window&&(window.Chart=r),r},"object"==typeof n&&void 0!==e?e.exports=i():"function"==typeof define&&define.amd?define(i):(r="undefined"!=typeof globalThis?globalThis:r||self).Chart=i()},{}],3:[function(t,e,n){t=t("./_getNative")(t("./_root"),"DataView");e.exports=t},{"./_getNative":44,"./_root":79}],4:[function(t,e,n){var r=t("./_hashClear"),i=t("./_hashDelete"),o=t("./_hashGet"),a=t("./_hashHas"),t=t("./_hashSet");function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=t,e.exports=s},{"./_hashClear":49,"./_hashDelete":50,"./_hashGet":51,"./_hashHas":52,"./_hashSet":53}],5:[function(t,e,n){var r=t("./_baseCreate"),t=t("./_baseLodash");function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(t.prototype),e.exports=i.prototype.constructor=i},{"./_baseCreate":22,"./_baseLodash":30}],6:[function(t,e,n){var r=t("./_listCacheClear"),i=t("./_listCacheDelete"),o=t("./_listCacheGet"),a=t("./_listCacheHas"),t=t("./_listCacheSet");function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=t,e.exports=s},{"./_listCacheClear":61,"./_listCacheDelete":62,"./_listCacheGet":63,"./_listCacheHas":64,"./_listCacheSet":65}],7:[function(t,e,n){var r=t("./_baseCreate"),t=t("./_baseLodash");function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}i.prototype=r(t.prototype),e.exports=i.prototype.constructor=i},{"./_baseCreate":22,"./_baseLodash":30}],8:[function(t,e,n){t=t("./_getNative")(t("./_root"),"Map");e.exports=t},{"./_getNative":44,"./_root":79}],9:[function(t,e,n){var r=t("./_mapCacheClear"),i=t("./_mapCacheDelete"),o=t("./_mapCacheGet"),a=t("./_mapCacheHas"),t=t("./_mapCacheSet");function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=t,e.exports=s},{"./_mapCacheClear":66,"./_mapCacheDelete":67,"./_mapCacheGet":68,"./_mapCacheHas":69,"./_mapCacheSet":70}],10:[function(t,e,n){t=t("./_getNative")(t("./_root"),"Promise");e.exports=t},{"./_getNative":44,"./_root":79}],11:[function(t,e,n){t=t("./_getNative")(t("./_root"),"Set");e.exports=t},{"./_getNative":44,"./_root":79}],12:[function(t,e,n){t=t("./_root").Symbol;e.exports=t},{"./_root":79}],13:[function(t,e,n){t=t("./_getNative")(t("./_root"),"WeakMap");e.exports=t},{"./_getNative":44,"./_root":79}],14:[function(t,e,n){e.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},{}],15:[function(t,e,n){var c=t("./_baseTimes"),h=t("./isArguments"),f=t("./isArray"),p=t("./isBuffer"),d=t("./_isIndex"),g=t("./isTypedArray"),v=Object.prototype.hasOwnProperty;e.exports=function(t,e){var n,r=f(t),i=!r&&h(t),o=!r&&!i&&p(t),a=!r&&!i&&!o&&g(t),s=r||i||o||a,u=s?c(t.length,String):[],l=u.length;for(n in t)!e&&!v.call(t,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||d(n,l))||u.push(n);return u}},{"./_baseTimes":32,"./_isIndex":55,"./isArguments":96,"./isArray":97,"./isBuffer":99,"./isTypedArray":106}],16:[function(t,e,n){e.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},{}],17:[function(t,e,n){e.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},{}],18:[function(t,e,n){e.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},{}],19:[function(t,e,n){e.exports=function(t){return t.split("")}},{}],20:[function(t,e,n){var r=t("./eq");e.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},{"./eq":92}],21:[function(t,e,n){var a=t("./get");e.exports=function(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:a(t,e[n]);return i}},{"./get":94}],22:[function(t,e,n){var r=t("./isObject"),i=Object.create;function o(){}e.exports=function(t){if(!r(t))return{};if(i)return i(t);o.prototype=t;t=new o;return o.prototype=void 0,t}},{"./isObject":102}
1],23:[function(t,e,n){var l=t("./_arrayPush"),c=t("./_isFlattenable");e.exports=function t(e,n,r,i,o){var a=-1,s=e.length;for(r=r||c,o=o||[];++a<s;){var u=e[a];0<n&&r(u)?1<n?t(u,n-1,r,i,o):l(o,u):i||(o[o.length]=u)}return o}},{"./_arrayPush":17,"./_isFlattenable":54}],24:[function(t,e,n){var i=t("./_castPath"),o=t("./_toKey");e.exports=function(t,e){for(var n=0,r=(e=i(e,t)).length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}},{"./_castPath":37,"./_toKey":85}],25:[function(t,e,n){var r=t("./_Symbol"),i=t("./_getRawTag"),o=t("./_objectToString"),a=r?r.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(a&&a in Object(t)?i:o)(t)}},{"./_Symbol":12,"./_getRawTag":45,"./_objectToString":76}],26:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isObjectLike");e.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},{"./_baseGetTag":25,"./isObjectLike":103}],27:[function(t,e,n){var r=t("./isFunction"),i=t("./_isMasked"),o=t("./isObject"),a=t("./_toSource"),s=/^\[object .+?Constructor\]$/,t=Function.prototype,u=Object.prototype,t=t.toString,u=u.hasOwnProperty,l=RegExp("^"+t.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!o(t)||i(t))&&(r(t)?l:s).test(a(t))}},{"./_isMasked":58,"./_toSource":86,"./isFunction":100,"./isObject":102}],28:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isLength"),o=t("./isObjectLike"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},{"./_baseGetTag":25,"./isLength":101,"./isObjectLike":103}],29:[function(t,e,n){var r=t("./_isPrototype"),i=t("./_nativeKeys"),o=Object.prototype.hasOwnProperty;e.exports=function(t){if(!r(t))return i(t);var e,n=[];for(e in Object(t))o.call(t,e)&&"constructor"!=e&&n.push(e);return n}},{"./_isPrototype":59,"./_nativeKeys":74}],30:[function(t,e,n){e.exports=function(){}},{}],31:[function(t,e,n){var r=t("./constant"),i=t("./_defineProperty"),t=t("./identity");e.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:t},{"./_defineProperty":40,"./constant":91,"./identity":95}],32:[function(t,e,n){e.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},{}],33:[function(t,e,n){var r=t("./_Symbol"),i=t("./_arrayMap"),o=t("./isArray"),a=t("./isSymbol"),t=r?r.prototype:void 0,s=t?t.toString:void 0;e.exports=function t(e){var n;return"string"==typeof e?e:o(e)?i(e,t)+"":a(e)?s?s.call(e):"":"0"==(n=e+"")&&1/e==-1/0?"-0":n}},{"./_Symbol":12,"./_arrayMap":16,"./isArray":97,"./isSymbol":105}],34:[function(t,e,n){e.exports=function(e){return function(t){return e(t)}}},{}],35:[function(t,e,n){var r=t("./_arrayMap");e.exports=function(e,t){return r(t,function(t){return e[t]})}},{"./_arrayMap":16}],36:[function(t,e,n){var r=t("./_LazyWrapper"),i=t("./_arrayPush"),o=t("./_arrayReduce");e.exports=function(t,e){return t instanceof r&&(t=t.value()),o(e,function(t,e){return e.func.apply(e.thisArg,i([t],e.args))},t)}},{"./_LazyWrapper":5,"./_arrayPush":17,"./_arrayReduce":18}],37:[function(t,e,n){var r=t("./isArray"),i=t("./_isKey"),o=t("./_stringToPath"),a=t("./toString");e.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},{"./_isKey":56,"./_stringToPath":84,"./isArray":97,"./toString":120}],38:[function(t,e,n){e.exports=function(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}},{}],39:[function(t,e,n){t=t("./_root")["__core-js_shared__"];e.exports=t},{"./_root":79}],40:[function(t,e,n){var r=t("./_getNative"),t=(()=>{try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}})();e.exports=t},{"./_getNative":44}],41:[function(t,e,n){var r=t("./flatten"),i=t("./_overRest"),o=t("./_setToString");e.exports=function(t){return o(i(t,void 0,r),t+"")}},{"./_overRest":78,"./_setToString":81,"./flatten":93}],42:[function(t,n,e){!function(e){!function(){var t="object"==typeof e&&e&&e.Object===Object&&e;n.exports=t}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],43:[function(t,e,n){var r=t("./_isKeyable");e.exports=function(t,e){return t=t.__data__,r(e)?t["string"==typeof e?"string":"hash"]:t.map}},{"./_isKeyable":57}],44:[function(t,e,n){var r=t("./_baseIsNative"),i=t("./_getValue");e.exports=function(t,e){return t=i(t,e),r(t)?t:void 0}},{"./_baseIsNative":27,"./_getValue":47}],45:[function(t,e,n){var t=t("./_Symbol"),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=t?t.toStringTag:void 0;e.exports=function(t){var e=o.call(t,s),n=t[s];try{var r=!(t[s]=void 0)}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},{"./_Symbol":12}],46:[function(t,e,n){var r=t("./_DataView"),i=t("./_Map"),o=t("./_Promise"),a=t("./_Set"),s=t("./_WeakMap"),u=t("./_baseGetTag"),l=t("./_toSource"),c="[object Map]",h="[object Promise]",f="[object Set]",p="[object WeakMap]",d="[object DataView]",g=l(r),v=l(i),m=l(o),_=l(a),y=l(s),t=u;
1(r&&t(new r(new ArrayBuffer(1)))!=d||i&&t(new i)!=c||o&&t(o.resolve())!=h||a&&t(new a)!=f||s&&t(new s)!=p)&&(t=function(t){var e=u(t),t="[object Object]"==e?t.constructor:void 0,t=t?l(t):"";if(t)switch(t){case g:return d;case v:return c;case m:return h;case _:return f;case y:return p}return e}),e.exports=t},{"./_DataView":3,"./_Map":8,"./_Promise":10,"./_Set":11,"./_WeakMap":13,"./_baseGetTag":25,"./_toSource":86}],47:[function(t,e,n){e.exports=function(t,e){return null==t?void 0:t[e]}},{}],48:[function(t,e,n){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return r.test(t)}},{}],49:[function(t,e,n){var r=t("./_nativeCreate");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},{"./_nativeCreate":73}],50:[function(t,e,n){e.exports=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}},{}],51:[function(t,e,n){var r=t("./_nativeCreate"),i=Object.prototype.hasOwnProperty;e.exports=function(t){var e,n=this.__data__;return r?"__lodash_hash_undefined__"===(e=n[t])?void 0:e:i.call(n,t)?n[t]:void 0}},{"./_nativeCreate":73}],52:[function(t,e,n){var r=t("./_nativeCreate"),i=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},{"./_nativeCreate":73}],53:[function(t,e,n){var r=t("./_nativeCreate");e.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},{"./_nativeCreate":73}],54:[function(t,e,n){var r=t("./_Symbol"),i=t("./isArguments"),o=t("./isArray"),a=r?r.isConcatSpreadable:void 0;e.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},{"./_Symbol":12,"./isArguments":96,"./isArray":97}],55:[function(t,e,n){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&-1<t&&t%1==0&&t<e}},{}],56:[function(t,e,n){var r=t("./isArray"),i=t("./isSymbol"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(t,e){var n;return!r(t)&&(!("number"!=(n=typeof t)&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},{"./isArray":97,"./isSymbol":105}],57:[function(t,e,n){e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},{}],58:[function(t,e,n){var t=t("./_coreJsData"),r=(t=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";e.exports=function(t){return!!r&&r in t}},{"./_coreJsData":39}],59:[function(t,e,n){var r=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},{}],60:[function(t,e,n){e.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},{}],61:[function(t,e,n){e.exports=function(){this.__data__=[],this.size=0}},{}],62:[function(t,e,n){var r=t("./_assocIndexOf"),i=Array.prototype.splice;e.exports=function(t){var e=this.__data__;return!((t=r(e,t))<0||(t==e.length-1?e.pop():i.call(e,t,1),--this.size,0))}},{"./_assocIndexOf":20}],63:[function(t,e,n){var r=t("./_assocIndexOf");e.exports=function(t){var e=this.__data__;return(t=r(e,t))<0?void 0:e[t][1]}},{"./_assocIndexOf":20}],64:[function(t,e,n){var r=t("./_assocIndexOf");e.exports=function(t){return-1<r(this.__data__,t)}},{"./_assocIndexOf":20}],65:[function(t,e,n){var i=t("./_assocIndexOf");e.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},{"./_assocIndexOf":20}],66:[function(t,e,n){var r=t("./_Hash"),i=t("./_ListCache"),o=t("./_Map");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},{"./_Hash":4,"./_ListCache":6,"./_Map":8}],67:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){return t=r(this,t).delete(t),this.size-=t?1:0,t}},{"./_getMapData":43}],68:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){return r(this,t).get(t)}},{"./_getMapData":43}],69:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){return r(this,t).has(t)}},{"./_getMapData":43}],70:[function(t,e,n){var i=t("./_getMapData");e.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},{"./_getMapData":43}],71:[function(t,e,n){e.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},{}],72:[function(t,e,n){var r=t("./memoize");e.exports=function(t){var e=(t=r(t,function(t){return 500===e.size&&e.clear(),t})).cache;return t}},{"./memoize":109}],73:[function(t,e,n){t=t("./_getNative")(Object,"create");e.exports=t},{"./_getNative":44}],74:[function(t,e,n){t=t("./_overArg")(Object.keys,Object);e.exports=t},{"./_overArg":77}],75:[function(t,e,n){var t=t("./_freeGlobal"),n="object"==typeof n&&n&&!n.nodeType&&n,r=n&&"object"==typeof e&&e&&!e.nodeType&&e,i=r&&r.exports===n&&t.process,n=(()=>
1{try{var t=r&&r.require&&r.require("util").types;return t?t:i&&i.binding&&i.binding("util")}catch(t){}})();e.exports=n},{"./_freeGlobal":42}],76:[function(t,e,n){var r=Object.prototype.toString;e.exports=function(t){return r.call(t)}},{}],77:[function(t,e,n){e.exports=function(e,n){return function(t){return e(n(t))}}},{}],78:[function(t,e,n){var u=t("./_apply"),l=Math.max;e.exports=function(o,a,s){return a=l(void 0===a?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=l(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];for(var e=-1,i=Array(a+1);++e<a;)i[e]=t[e];return i[a]=s(r),u(o,this,i)}}},{"./_apply":14}],79:[function(t,e,n){var t=t("./_freeGlobal"),r="object"==typeof self&&self&&self.Object===Object&&self,t=t||r||Function("return this")();e.exports=t},{"./_freeGlobal":42}],80:[function(t,e,n){e.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},{}],81:[function(t,e,n){var r=t("./_baseSetToString"),t=t("./_shortOut")(r);e.exports=t},{"./_baseSetToString":31,"./_shortOut":82}],82:[function(t,e,n){var o=Date.now;e.exports=function(n){var r=0,i=0;return function(){var t=o(),e=16-(t-i);if(i=t,0<e){if(800<=++r)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},{}],83:[function(t,e,n){var r=t("./_asciiToArray"),i=t("./_hasUnicode"),o=t("./_unicodeToArray");e.exports=function(t){return(i(t)?o:r)(t)}},{"./_asciiToArray":19,"./_hasUnicode":48,"./_unicodeToArray":87}],84:[function(t,e,n){var t=t("./_memoizeCapped"),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,t=t(function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(r,function(t,e,n,r){i.push(n?r.replace(o,"$1"):e||t)}),i});e.exports=t},{"./_memoizeCapped":72}],85:[function(t,e,n){var r=t("./isSymbol");e.exports=function(t){var e;return"string"==typeof t||r(t)?t:"0"==(e=t+"")&&1/t==-1/0?"-0":e}},{"./isSymbol":105}],86:[function(t,e,n){var r=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},{}],87:[function(t,e,n){var r="\\ud800-\\udfff",i="["+r+"]",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",r="[^"+r+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="[\\ufe0e\\ufe0f]?",c=c+l+("(?:\\u200d(?:"+[r,s,u].join("|")+")"+c+l+")*"),l="(?:"+[r+o+"?",o,s,u,i].join("|")+")",h=RegExp(a+"(?="+a+")|"+l+c,"g");e.exports=function(t){return t.match(h)||[]}},{}],88:[function(t,e,n){var r=t("./_LazyWrapper"),i=t("./_LodashWrapper"),o=t("./_copyArray");e.exports=function(t){var e;return t instanceof r?t.clone():((e=new i(t.__wrapped__,t.__chain__)).__actions__=o(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e)}},{"./_LazyWrapper":5,"./_LodashWrapper":7,"./_copyArray":38}],89:[function(t,e,n){var r=t("./wrapperLodash");e.exports=function(t){return(t=r(t)).__chain__=!0,t}},{"./wrapperLodash":125}],90:[function(t,e,n){var r=t("./_LodashWrapper");e.exports=function(){return new r(this.value(),this.__chain__)}},{"./_LodashWrapper":7}],91:[function(t,e,n){e.exports=function(t){return function(){return t}}},{}],92:[function(t,e,n){e.exports=function(t,e){return t===e||t!=t&&e!=e}},{}],93:[function(t,e,n){var r=t("./_baseFlatten");e.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},{"./_baseFlatten":23}],94:[function(t,e,n){var r=t("./_baseGet");e.exports=function(t,e,n){return void 0===(t=null==t?void 0:r(t,e))?n:t}},{"./_baseGet":24}],95:[function(t,e,n){e.exports=function(t){return t}},{}],96:[function(t,e,n){var r=t("./_baseIsArguments"),i=t("./isObjectLike"),t=Object.prototype,o=t.hasOwnProperty,a=t.propertyIsEnumerable,t=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};e.exports=t},{"./_baseIsArguments":26,"./isObjectLike":103}],97:[function(t,e,n){var r=Array.isArray;e.exports=r},{}],98:[function(t,e,n){var r=t("./isFunction"),i=t("./isLength");e.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},{"./isFunction":100,"./isLength":101}
1],99:[function(t,e,n){var r=t("./_root"),t=t("./stubFalse"),n="object"==typeof n&&n&&!n.nodeType&&n,i=n&&"object"==typeof e&&e&&!e.nodeType&&e,i=i&&i.exports===n?r.Buffer:void 0,n=i?i.isBuffer:void 0;e.exports=n||t},{"./_root":79,"./stubFalse":114}],100:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isObject");e.exports=function(t){return!!i(t)&&("[object Function]"==(t=r(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}},{"./_baseGetTag":25,"./isObject":102}],101:[function(t,e,n){e.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},{}],102:[function(t,e,n){e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},{}],103:[function(t,e,n){e.exports=function(t){return null!=t&&"object"==typeof t}},{}],104:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isArray"),o=t("./isObjectLike");e.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},{"./_baseGetTag":25,"./isArray":97,"./isObjectLike":103}],105:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isObjectLike");e.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},{"./_baseGetTag":25,"./isObjectLike":103}],106:[function(t,e,n){var r=t("./_baseIsTypedArray"),i=t("./_baseUnary"),t=t("./_nodeUtil"),t=t&&t.isTypedArray,i=t?i(t):r;e.exports=i},{"./_baseIsTypedArray":28,"./_baseUnary":34,"./_nodeUtil":75}],107:[function(t,e,n){var r=t("./_arrayLikeKeys"),i=t("./_baseKeys"),o=t("./isArrayLike");e.exports=function(t){return(o(t)?r:i)(t)}},{"./_arrayLikeKeys":15,"./_baseKeys":29,"./isArrayLike":98}],108:[function(t,A,O){!function(E){!function(){!function(){var Ho,Wo="Expected a function",_a="__lodash_hash_undefined__",ya="__lodash_placeholder__",Vo=9007199254740991,ba=NaN,$o=4294967295,xa=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],qo="[object Arguments]",wa="[object Array]",Uo="[object Boolean]",Yo="[object Date]",Sa="[object Error]",ka="[object Function]",Pa="[object GeneratorFunction]",Ko="[object Map]",Go="[object Number]",Qo="[object Object]",Ma="[object Promise]",Xo="[object RegExp]",Jo="[object Set]",Zo="[object String]",Ea="[object Symbol]",ta="[object WeakMap]",ea="[object ArrayBuffer]",na="[object DataView]",Aa="[object Float32Array]",Oa="[object Float64Array]",Ca="[object Int8Array]",Da="[object Int16Array]",Ia="[object Int32Array]",Ta="[object Uint8Array]",La="[object Uint8ClampedArray]",ja="[object Uint16Array]",Ra="[object Uint32Array]",za=/\b__p \+= '';/g,Na=/\b(__p \+=) '' \+/g,Ba=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fa=/&(?:amp|lt|gt|quot|#39);/g,Ha=/[&<>"']/g,Wa=RegExp(Fa.source),Va=RegExp(Ha.source),$a=/<%-([\s\S]+?)%>/g,qa=/<%([\s\S]+?)%>/g,Ua=/<%=([\s\S]+?)%>/g,Ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ka=/^\w*$/,Ga=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qa=/[\\^$.*+?()[\]{}|]/g,Xa=RegExp(Qa.source),Ja=/^\s+/,o=/\s/,Za=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ts=/\{\n\/\* \[wrapped with (.+)\] \*/,es=/,? & /,ns=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rs=/[()=,{}\[\]\/\s]/,is=/\\(\\)?/g,os=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,as=/\w*$/,ss=/^[-+]0x[0-9a-f]+$/i,us=/^0b[01]+$/i,ls=/^\[object .+?Constructor\]$/,cs=/^0o[0-7]+$/i,hs=/^(?:0|[1-9]\d*)$/,fs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,659 bytes, line 1
17f]/g,ps=/($^)/,ds=/['\n\r\u2028\u2029\\]/g,a="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",u="\\u2700-\\u27bf",t="a-z\\xdf-\\xf6\\xf8-\\xff",e="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",c="\\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",n="["+a+"]",h="["+c+"]",f="["+s+"]",p="["+u+"]",d="["+t+"]",c="[^"+a+c+"\\d+"+u+t+e+"]",u="\\ud83c[\\udffb-\\udfff]",t="[^"+a+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",e="["+e+"]",v="(?:"+d+"|"+c+")",c="(?:"+e+"|"+c+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",_="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:"+f+"|"+u+")"+"?",b="["+l+"]?",b=b+y+("(?:\\u200d(?:"+[t,g,r].join("|")+")"+b+y+")*"),y="(?:"+[p,g,r].join("|")+")"+b,p="(?:"+[t+f+"?",f,g,r,n].join("|")+")",gs=RegExp("['’]","g"),vs=RegExp(f,"g"),x=RegExp(u+"(?="+u+")|"+p+b,"g"),ms=RegExp([e+"?"+d+"+"+m+"(?="+[h,e,"$"].join("|")+")",c+"+"+_+"(?="+[h,e+v,"$"].join("|")+")",e+"?"+v+"+"+m,e+"+"+_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",y].join("|"),"g"),w=RegExp("[\\u200d"+a+s+l+"]"),_s=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ys=["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"],bs=-1,ra={},ia=(ra[Aa]=ra[Oa]=ra[Ca]=ra[Da]=ra[Ia]=ra[Ta]=ra[La]=ra[ja]=ra[Ra]=!0,ra[qo]=ra[wa]=ra[ea]=ra[Uo]=ra[na]=ra[Yo]=ra[Sa]=ra[ka]=ra[Ko]=ra[Go]=ra[Qo]=ra[Xo]=ra[Jo]=ra[Zo]=ra[ta]=!1,{}),S=(ia[qo]=ia[wa]=ia[ea]=ia[na]=ia[Uo]=ia[Yo]=ia[Aa]=ia[Oa]=ia[Ca]=ia[Da]=ia[Ia]=ia[Ko]=ia[Go]=ia[Qo]=ia[Xo]=ia[Jo]=ia[Zo]=ia[Ea]=ia[Ta]=ia[La]=ia[ja]=ia[Ra]=!0,ia[Sa]=ia[ka]=ia[ta]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),xs=parseFloat,ws=parseInt,t="object"==typeof E&&E&&E.Object===Object&&E,g="object"==typeof self&&self&&self.Object===Object&&self,oa=t||g||Function("return this")(),r="object"==typeof O&&O&&!O.nodeType&&O,i=r&&"object"==typeof A&&A&&!A.nodeType&&A,Ss=i&&i.exports===r,k=Ss&&t.process,n=(()=>{try{var t=i&&i.require&&i.require("util").types;return t?t:k&&k.binding&&k.binding("util")}catch(t){}})(),ks=n&&n.isArrayBuffer,Ps=n&&n.isDate,Ms=n&&n.isMap,Es=n&&n.isRegExp,As=n&&n.isSet,Os=n&&n.isTypedArray;function aa(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Cs(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function sa(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ds(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Is(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ua(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Ts(t,e){return!!(null==t?0:t.length)&&-1<ha(t,e,0)}function Ls(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function la(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ca(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function js(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Rs(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function zs(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var P=Vs("length");function Ns(t,r,e){var i;return e(t,function(t,e,n){if(r(t,e,n))return i=e,!1}),i}function Bs(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function ha(t,e,n){if(e!=e)return Bs(t,Hs,n);for(var r=t,i=e,o=n-1,a=r.length;++o<a;)if(r[o]===i)return o;return-1}function Fs(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Hs(t){return t!=t}function Ws(t,e){var n=null==t?0:t.length;return n?qs(t,e)/n:ba}function Vs(e){return function(t){return null==t?Ho:t[e]}}function M(e){return function(t){return null==e?Ho:e[t]}}function $s(t,r,i,o,e){return e(t,function(t,e,n){i=o?(o=!1,t):r(i,t,e,n)}),i}function qs(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);
vendor: 4,354 bytes, line 1
1o!==Ho&&(n=n===Ho?o:n+o)}return n}function Us(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ys(t){return t&&t.slice(0,iu(t)+1).replace(Ja,"")}function fa(e){return function(t){return e(t)}}function Ks(e,t){return la(t,function(t){return e[t]})}function Gs(t,e){return t.has(e)}function Qs(t,e){for(var n=-1,r=t.length;++n<r&&-1<ha(e,t[n],0););return n}function Xs(t,e){for(var n=t.length;n--&&-1<ha(e,t[n],0););return n}var Js=M({"À":"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","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Zs=M({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tu(t){return"\\"+S[t]}function pa(t){return w.test(t)}function eu(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function nu(e,n){return function(t){return e(n(t))}}function da(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==ya||(t[n]=ya,o[i++]=n)}return o}function ru(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function ga(t){return(pa(t)?t=>{for(var e=x.lastIndex=0;x.test(t);)++e;return e}:P)(t)}function va(t){return pa(t)?t.match(x)||[]:t.split("")}function iu(t){for(var e=t.length;e--&&o.test(t.charAt(e)););return e}var ou=M({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var ma=function r(t){var w=(t=null==t?oa:ma.defaults(oa.Object(),t,ma.pick(oa,ys))).Array,i=t.Date,T=t.Error,L=t.Function,o=t.Math,g=t.Object,j=t.RegExp,W=t.String,S=t.TypeError,V=w.prototype,$=L.prototype,q=g.prototype,U=t["__core-js_shared__"],Y=$.toString,R=q.hasOwnProperty,K=0,G=($=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",Q=q.toString,X=Y.call(g),J=oa._,Z=j("^"+Y.call(R).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=Ss?t.Buffer:Ho,e=t.Symbol,tt=t.Uint8Array,et=$?$.allocUnsafe:Ho,nt=nu(g.getPrototypeOf,g),rt=g.create,it=q.propertyIsEnumerable,ot=V.splice,at=e?e.isConcatSpreadable:Ho,st=e?e.iterator:Ho,ut=e?e.toStringTag:Ho,lt=(()=>{try{var t=Jn(g,"defineProperty");return t({},"",{}),t}catch(t){}})(),ct=t.clearTimeout!==oa.clearTimeout&&t.clearTimeout,ht=i&&i.now!==oa.Date.now&&i.now,ft=t.setTimeout!==oa.setTimeout&&t.setTimeout,pt=o.ceil,dt=o.floor,gt=g.getOwnPropertySymbols,$=$?$.isBuffer:Ho,vt=t.isFinite,mt=V.join,_t=nu(g.keys,g),k=o.max,P=o.min,yt=i.now,bt=t.parseInt,xt=o.random,wt=V.reverse,i=Jn(t,"DataView"),St=Jn(t,"Map"),kt=Jn(t,"Promise"),Pt=Jn(t,"Set"),t=Jn(t,"WeakMap"),Mt=Jn(g,"create"),Et=t&&new t,At={},Ot=Sr(i),Ct=Sr(St),Dt=Sr(kt),It=Sr(Pt),Tt=Sr(t),e=e?e.prototype:Ho,Lt=e?e.valueOf:Ho,jt=e?e.toString:Ho;function d(t){if(H(t)&&!F(t)&&!(t instanceof m)){if(t instanceof v)return t;if(R.call(t,"__wrapped__"))return kr(t)}
vendor: 51,120 bytes, line 1
1return new v(t)}var Rt=function(t){if(!x(t))return{};if(rt)return rt(t);zt.prototype=t;t=new zt;return zt.prototype=Ho,t};function zt(){}function Nt(){}function v(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=Ho}function m(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$o,this.__views__=[]}function Bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ft(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ht(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Wt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ht;++e<n;)this.add(t[e])}function z(t){t=this.__data__=new Ft(t);this.size=t.size}function Vt(t,e){var n,r=F(t),i=!r&&mi(t),o=!r&&!i&&yi(t),a=!r&&!i&&!o&&Ci(t),s=r||i||o||a,u=s?Us(t.length,W):[],l=u.length;for(n in t)!e&&!R.call(t,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||ir(n,l))||u.push(n);return u}function $t(t){var e=t.length;return e?t[Ne(0,e-1)]:Ho}function qt(t,e){return yr(M(t),te(e,0,t.length))}function Ut(t){return yr(M(t))}function Yt(t,e,n){(n===Ho||B(t[e],n))&&(n!==Ho||e in t)||Jt(t,e,n)}function Kt(t,e,n){var r=t[e];R.call(t,e)&&B(r,n)&&(n!==Ho||e in t)||Jt(t,e,n)}function Gt(t,e){for(var n=t.length;n--;)if(B(t[n][0],e))return n;return-1}function Qt(t,r,i,o){return ie(t,function(t,e,n){r(o,t,i(t),n)}),o}function Xt(t,e){return t&&vn(e,C(e),t)}function Jt(t,e,n){"__proto__"==e&&lt?lt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Zt(t,e){for(var n=-1,r=e.length,i=w(r),o=null==t;++n<r;)i[n]=o?Ho:$i(t,e[n]);return i}function te(t,e,n){return t=t==t&&(n!==Ho&&(t=t<=n?t:n),e!==Ho)?e<=t?t:e:t}function _(n,r,i,t,e,o){var a,s=1&r,u=2&r,l=4&r;if((a=i?e?i(n,t,e,o):i(n):a)===Ho){if(!x(n))return n;var c,t=F(n);if(t){if(a=(t=>{var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&R.call(t,"index")&&(n.index=t.index,n.input=t.input),n})(n),!s)return M(n,a)}else{var h=N(n),f=h==ka||h==Pa;if(yi(n))return cn(n,s);if(h==Qo||h==qo||f&&!e){if(a=u||f?{}:nr(n),!s)return u?(p=f=n,p=(c=a)&&vn(p,D(p),c),vn(f,tr(f),p)):(f=Xt(a,c=n),vn(c,Zn(c),f))}else{if(!ia[h])return e?n:{};a=((t,e,n)=>{var r=t.constructor;switch(e){case ea:return hn(t);case Uo:case Yo:return new r(+t);case na:return((t,e)=>(e=e?hn(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength)))(t,n);case Aa:case Oa:case Ca:case Da:case Ia:case Ta:case La:case ja:case Ra:return fn(t,n);case Ko:return new r;case Go:case Zo:return new r(t);case Xo:return(t=>{var e=new t.constructor(t.source,as.exec(t));return e.lastIndex=t.lastIndex,e})(t);case Jo:return new r;case Ea:return(t=>Lt?g(Lt.call(t)):{})(t)}})(n,h,s)}}var p=(o=o||new z).get(n);if(p)return p;o.set(n,a),Ai(n)?n.forEach(function(t){a.add(_(t,r,i,t,n,o))}):ki(n)&&n.forEach(function(t,e){a.set(e,_(t,r,i,e,n,o))});var d=t?Ho:(l?u?Un:qn:u?D:C)(n);sa(d||n,function(t,e){d&&(t=n[e=t]),Kt(a,e,_(t,r,i,e,n,o))})}return a}function ee(t,e,n){var r=n.length;if(null==t)return!r;for(t=g(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===Ho&&!(i in t)||!o(a))return!1}return!0}function ne(t,e,n){if("function"!=typeof t)throw new S(Wo);return gr(function(){t.apply(Ho,n)},e)}function re(t,e,n,r){var i=-1,o=Ts,a=!0,s=t.length,u=[],l=e.length;if(s){n&&(e=la(e,fa(n))),r?(o=Ls,a=!1):200<=e.length&&(o=Gs,a=!1,e=new Wt(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c),c=r||0!==c?c:0;if(a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}}return u}d.templateSettings={escape:$a,evaluate:qa,interpolate:Ua,variable:"",imports:{_:d}},(d.prototype=Nt.prototype).constructor=d,(v.prototype=Rt(Nt.prototype)).constructor=v,(m.prototype=Rt(Nt.prototype)).constructor=m,Bt.prototype.clear=function(){this.__data__=Mt?Mt(null):{},this.size=0},Bt.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},Bt.prototype.get=function(t){var e,n=this.__data__;return Mt?(e=n[t])===_a?Ho:e:R.call(n,t)?n[t]:Ho},Bt.prototype.has=function(t){var e=this.__data__;return Mt?e[t]!==Ho:R.call(e,t)},Bt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&e===Ho?_a:e,this},Ft.prototype.clear=function(){this.__data__=[],this.size=0},Ft.prototype.delete=function(t){var e=this.__data__;return!((t=Gt(e,t))<0||(t==e.length-1?e.pop():ot.call(e,t,1),--this.size,0))},Ft.prototype.get=function(t){var e=this.__data__;return(t=Gt(e,t))<0?Ho:e[t][1]},Ft.prototype.has=function(t){return-1<Gt(this.__data__,t)},Ft.prototype.set=function(t,e){var n=this.__data__,r=Gt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Ht.prototype.clear=function(){this.size=0,this.__data__={hash:new Bt,map:new(St||Ft),string:new Bt}},Ht.prototype.delete=function(t){return t=Qn(this,t).delete(t),this.size-=t?1:0,t},Ht.prototype.get=function(t){return Qn(this,t).get(t)},Ht.prototype.has=function(t){return Qn(this,t).has(t)},Ht.prototype.set=function(t,e){var n=Qn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Wt.prototype.add=Wt.prototype.push=function(t){return this.__data__.set(t,_a),this},Wt.prototype.has=function(t){return this.__data__.has(t)},z.prototype.clear=function(){this.__data__=new Ft,this.size=0},z.prototype.delete=function(t){var e=this.__data__,t=e.delete(t);return this.size=e.size,t},z.prototype.get=function(t){return this.__data__.get(t)},z.prototype.has=function(t){return this.__data__.has(t)},z.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ft){var r=n.__data__;if(!St||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ht(r)}return n.set(t,e),this.size=n.size,this};var ie=yn(he),oe=yn(fe,!0);function ae(t,r){var i=!0;return ie(t,function(t,e,n){return i=!!r(t,e,n)}),i}function se(t,e,n){for(var r=-1,i=t.length;++r<i;){var o,a,s=t[r],u=e(s);null!=u&&(o===Ho?u==u&&!y(u):n(u,o))&&(o=u,a=s)}return a}function ue(t,r){var i=[];return ie(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i}function u(t,e,n,r,i){var o=-1,a=t.length;for(n=n||rr,i=i||[];++o<a;){var s=t[o];0<e&&n(s)?1<e?u(s,e-1,n,r,i):ca(i,s):r||(i[i.length]=s)}return i}var le=bn(),ce=bn(!0);function he(t,e){return t&&le(t,e,C)}function fe(t,e){return t&&ce(t,e,C)}function pe(e,t){return ua(t,function(t){return xi(e[t])})}function de(t,e){for(var n=0,r=(e=an(e,t)).length;null!=t&&n<r;)t=t[wr(e[n++])];return n&&n==r?t:Ho}function ge(t,e,n){e=e(t);return F(t)?e:ca(e,n(t))}function n(t){if(null==t)return t===Ho?"[object Undefined]":"[object Null]";if(ut&&ut in g(t)){var e=t,n=R.call(e,ut),r=e[ut];try{e[ut]=Ho;var i=!0}catch(t){}var o=Q.call(e);return i&&(n?e[ut]=r:delete e[ut]),o}return Q.call(t)}function ve(t,e){return e<t}function me(t,e){return null!=t&&R.call(t,e)}function _e(t,e){return null!=t&&e in g(t)}function ye(t,e,n){for(var r=n?Ls:Ts,i=t[0].length,o=t.length,a=o,s=w(o),u=1/0,l=[];a--;){var c=t[a];a&&e&&(c=la(c,fa(e))),u=P(c.length,u),s[a]=!n&&(e||120<=i&&120<=c.length)?new Wt(a&&c):Ho}var c=t[0],h=-1,f=s[0];t:for(;++h<i&&l.length<u;){var p=c[h],d=e?e(p):p,p=n||0!==p?p:0;if(!(f?Gs(f,d):r(l,d,n))){for(a=o;--a;){var g=s[a];if(!(g?Gs(g,d):r(t[a],d,n)))continue t}f&&f.push(d),l.push(p)}}return l}function be(t,e,n){e=null==(t=fr(t,e=an(e,t)))?t:t[wr(c(e))];return null==e?Ho:aa(e,t,n)}function xe(t){return H(t)&&n(t)==qo}function we(t,e,n,r,i){if(t===e)return!0;if(null==t||null==e||!H(t)&&!H(e))return t!=t&&e!=e;var o=we,a=F(t),s=F(e),u=a?wa:N(t),s=s?wa:N(e),l=(u=u==qo?Qo:u)==Qo,c=(s=s==qo?Qo:s)==Qo;if((s=u==s)&&yi(t)){if(!yi(e))return!1;l=!(a=!0)}if(s&&!l){i=i||new z;if(a||Ci(t))return Vn(t,e,n,r,o,i);else{var h=t;var f=e;var p=u;var d=n;var g=r;var v=o;var m=i;switch(p){case na:if(h.byteLength!=f.byteLength||h.byteOffset!=f.byteOffset)return!1;h=h.buffer,f=f.buffer;case ea:return h.byteLength==f.byteLength&&v(new tt(h),new tt(f))?!0:!1;case Uo:case Yo:case Go:return B(+h,+f);case Sa:return h.name==f.name&&h.message==f.message;case Xo:case Zo:return h==f+"";case Ko:var _=eu;case Jo:var y=1&d;if(_=_||ru,h.size!=f.size&&!y)return!1;y=m.get(h);if(y)return y==f;d|=2,m.set(h,f);y=Vn(_(h),_(f),d,g,v,m);return m.delete(h),y;case Ea:if(Lt)return Lt.call(h)==Lt.call(f)}return!1;return}}if(!(1&n)){a=l&&R.call(t,"__wrapped__"),u=c&&R.call(e,"__wrapped__");if(a||u)return l=a?t.value():t,c=u?e.value():e,i=i||new z,o(l,c,n,r,i)}if(s){i=i||new z;var b=t,x=e,w=n,S=r,k=o,P=i,M=1&w,E=qn(b),A=E.length,a=qn(x).length;if(A!=a&&!M)return!1;for(var O=A;O--;){var C=E[O];if(!(M?C in x:R.call(x,C)))return!1}a=P.get(b),u=P.get(x);if(a&&u)return a==x&&u==b;for(var D=!0,I=(P.set(b,x),P.set(x,b),M);++O<A;){C=E[O];var T,L=b[C],j=x[C];if(!((T=S?M?S(j,L,C,x,b,P):S(L,j,C,b,x,P):T)===Ho?L===j||k(L,j,w,S,P):T)){D=!1;break}I=I||"constructor"==C}return D&&!I&&(a=b.constructor,u=x.constructor,a!=u)&&"constructor"in b&&"constructor"in x&&!("function"==typeof a&&a instanceof a&&"function"==typeof u&&u instanceof u)&&(D=!1),P.delete(b),P.delete(x),D}return!1}function Se(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=g(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(l===Ho&&!(u in t))return!1}else{var h,f=new z;if(!((h=r?r(l,c,u,t,e,f):h)===Ho?we(c,l,3,r,f):h))return!1}}return!0}function ke(t){var e;return!(!x(t)||(e=t,G&&G in e))&&(xi(t)?Z:ls).test(Sr(t))}function Pe(t){return"function"==typeof t?t:null==t?I:"object"==typeof t?F(t)?De(t[0],t[1]):Ce(t):Ao(t)}function Me(t){if(!ur(t))return _t(t);var e,n=[];for(e in g(t))R.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Ee(t){if(!x(t)){var e=t,n=[];if(null!=e)for(var r in g(e))n.push(r);return n}var i,o=ur(t),a=[];for(i in t)("constructor"!=i||!o&&R.call(t,i))&&a.push(i);return a}function Ae(t,e){return t<e}function Oe(t,r){var i=-1,o=p(t)?w(t.length):[];return ie(t,function(t,e,n){o[++i]=r(t,e,n)}),o}function Ce(e){var n=Xn(e);return 1==n.length&&n[0][2]?cr(n[0][0],n[0][1]):function(t){return t===e||Se(t,e,n)}}function De(n,r){return or(n)&&lr(r)?cr(wr(n),r):function(t){var e=$i(t,n);return e===Ho&&e===r?qi(t,n):we(r,e,3)}}function Ie(g,v,m,_,y){g!==v&&le(v,function(t,e){var n,r,i,o,a,s,u,l,c,h,f,p,d;y=y||new z,x(t)?(r=v,o=m,a=Ie,s=_,u=y,f=pr(n=g,i=e),p=pr(r,i),(d=u.get(p))?Yt(n,i,d):(d=s?s(f,p,i+"",n,r,u):Ho,(r=d===Ho)&&(l=F(p),c=!l&&yi(p),h=!l&&!c&&Ci(p),d=p,l||c||h?d=F(f)?f:b(f)?M(f):c?cn(p,!(r=!1)):h?fn(p,!(r=!1)):[]:Mi(p)||mi(p)?mi(d=f)?d=Ri(f):x(f)&&!xi(f)||(d=nr(p)):r=!1),r&&(u.set(p,d),a(d,p,o,s,u),u.delete(p)),Yt(n,i,d))):(l=_?_(pr(g,e),t,e+"",g,v,y):Ho,Yt(g,e,l=l===Ho?t:l))},D)}function Te(t,e){var n=t.length;if(n)return ir(e+=e<0?n:0,n)?t[e]:Ho}function Le(t,r,c){r=r.length?la(r,function(e){return F(e)?function(t){return de(t,1===e.length?e[0]:e)}:e}):[I];var i=-1;r=la(r,fa(h()));var e=Oe(t,function(e,t,n){return{criteria:la(r,function(t){return t(e)}),index:++i,value:e}}),t=function(t,e){for(var n=c,r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u,l=pn(i[r],o[r]);if(l)return s<=r?l:(u=n[r],l*("desc"==u?-1:1))}return t.index-e.index},n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function je(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=de(t,a);n(s,a)&&We(o,an(a,t),s)}return o}function Re(t,e,n,r){var i=r?Fs:ha,o=-1,a=e.length,s=t;for(t===e&&(e=M(e)),n&&(s=la(t,fa(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;-1<(u=i(s,c,u,r));)s!==t&&ot.call(s,u,1),ot.call(t,u,1);return t}function ze(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i,o=e[n];n!=r&&o===i||(ir(i=o)?ot.call(t,o,1):Xe(t,o))}}function Ne(t,e){return t+dt(xt()*(e-t+1))}function Be(t,e){var n="";if(!(!t||e<1||Vo<e))for(;e%2&&(n+=t),(e=dt(e/2))&&(t+=t),e;);return n}function a(t,e){return vr(hr(t,e,I),t+"")}function Fe(t){return $t(no(t))}function He(t,e){t=no(t);return yr(t,te(e,0,t.length))}function We(t,e,n,r){if(x(t))for(var i=-1,o=(e=an(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u,l=wr(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;Kt(s,l,c=i!=a&&(u=s[l],(c=r?r(u,l,s):Ho)===Ho)?x(u)?u:ir(e[i+1])?[]:{}:c),s=s[l]}return t}var Ve=Et?function(t,e){return Et.set(t,e),t}:I,e=lt?function(t,e){return lt(t,"toString",{configurable:!0,enumerable:!1,value:mo(e),writable:!0})}:I;function $e(t){return yr(no(t))}function s(t,e,n){for(var r=-1,i=t.length,o=((n=i<n?i:n)<0&&(n+=i),i=n<(e=e<0?i<-e?0:i+e:e)?0:n-e>>>0,e>>>=0,w(i));++r<i;)o[r]=t[r+e];return o}function qe(t,r){var i;return ie(t,function(t,e,n){return!(i=r(t,e,n))}),!!i}function Ue(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!y(a)&&(n?a<=e:a<e)?r=1+o:i=o}return i}return Ye(t,e,I,n)}function Ye(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=y(e),l=e===Ho;i<o;){var c=dt((i+o)/2),h=n(t[c]),f=h!==Ho,p=null===h,d=h==h,g=y(h),d=a?r||d:l?d&&(r||f):s?d&&f&&(r||!p):u?d&&f&&!p&&(r||!g):!p&&!g&&(r?h<=e:h<e);d?i=c+1:o=c}return P(o,4294967294)}function Ke(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a,s=t[n],u=e?e(s):s;n&&B(u,a)||(a=u,o[i++]=0===s?0:s)}return o}function Ge(t){return"number"==typeof t?t:y(t)?ba:+t}function l(t){var e;return"string"==typeof t?t:F(t)?la(t,l)+"":y(t)?jt?jt.call(t):"":"0"==(e=t+"")&&1/t==-1/0?"-0":e}function Qe(t,e,n){var r=-1,i=Ts,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ls;else if(200<=o){var l=e?null:zn(t);if(l)return ru(l);a=!1,i=Gs,u=new Wt}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c,c=n||0!==c?c:0;if(a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function Xe(t,e){var n=-1,r=(e=an(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var o=e[n];if("string"==typeof o){if("__proto__"===o&&!R.call(t,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]&&(!i||0!==n))return!1}}var a=fr(t,e);return null==a||delete a[wr(c(e))]}function Je(t,e,n,r){return We(t,e,n(de(t,e)),r)}function Ze(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?s(t,r?0:o,r?o+1:i):s(t,r?o+1:0,r?i:o)}function tn(t,e){var n=t;return js(e,function(t,e){return e.func.apply(e.thisArg,ca([t],e.args))},n=t instanceof m?t.value():n)}function en(t,e,n){var r=t.length;if(r<2)return r?Qe(t[0]):[];for(var i=-1,o=w(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=re(o[i]||a,t[s],e,n));return Qe(u(o,1),e,n)}function nn(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:Ho;n(a,t[r],s)}return a}function rn(t){return b(t)?t:[]}function on(t){return"function"==typeof t?t:I}function an(t,e){return F(t)?t:or(t,e)?[t]:xr(O(t))}var sn=a;function un(t,e,n){var r=t.length;return n=n===Ho?r:n,!e&&r<=n?t:s(t,e,n)}var ln=ct||function(t){return oa.clearTimeout(t)};function cn(t,e){return e?t.slice():(e=t.length,e=et?et(e):new t.constructor(e),t.copy(e),e)}function hn(t){var e=new t.constructor(t.byteLength);return new tt(e).set(new tt(t)),e}function fn(t,e){e=e?hn(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function pn(t,e){if(t!==e){var n=t!==Ho,r=null===t,i=t==t,o=y(t),a=e!==Ho,s=null===e,u=e==e,l=y(e);if(!s&&!l&&!o&&e<t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function dn(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,l=k(o-a,0),c=w(u+l),h=!r;++s<u;)c[s]=e[s];for(;++i<a;)(h||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}function gn(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,l=e.length,c=k(o-s,0),h=w(c+l),f=!r;++i<c;)h[i]=t[i];for(var p=i;++u<l;)h[p+u]=e[u];for(;++a<s;)(f||i<o)&&(h[p+n[a]]=t[i++]);return h}function M(t,e){var n=-1,r=t.length;for(e=e||w(r);++n<r;)e[n]=t[n];return e}function vn(t,e,n,r){for(var i=!n,o=(n=n||{},-1),a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):Ho;(i?Jt:Kt)(n,s,u=u===Ho?t[s]:u)}return n}function mn(i,o){return function(t,e){var n=F(t)?Cs:Qt,r=o?o():{};return n(t,i,h(e,2),r)}}function _n(s){return a(function(t,e){var n=-1,r=e.length,i=1<r?e[r-1]:Ho,o=2<r?e[2]:Ho,i=3<s.length&&"function"==typeof i?(r--,i):Ho;for(o&&f(e[0],e[1],o)&&(i=r<3?Ho:i,r=1),t=g(t);++n<r;){var a=e[n];a&&s(t,a,n,i)}return t})}function yn(o,a){return function(t,e){if(null!=t){if(!p(t))return o(t,e);for(var n=t.length,r=a?n:-1,i=g(t);(a?r--:++r<n)&&!1!==e(i[r],r,i););}return t}}function bn(u){return function(t,e,n){for(var r=-1,i=g(t),o=n(t),a=o.length;a--;){var s=o[u?a:++r];if(!1===e(i[s],s,i))break}return t}}function xn(r){return function(t){var e=pa(t=O(t))?va(t):Ho,n=e?e[0]:t.charAt(0),e=e?un(e,1).join(""):t.slice(1);return n[r]()+e}}function wn(e){return function(t){return js(po(oo(t).replace(gs,"")),e,"")}}function Sn(r){return function(){var t=arguments;switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3]);case 5:return new r(t[0],t[1],t[2],t[3],t[4]);case 6:return new r(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new r(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=Rt(r.prototype),n=r.apply(e,t);return x(n)?n:e}}function kn(o,a,s){var u=Sn(o);return function t(){for(var e=arguments.length,n=w(e),r=e,i=Gn(t);r--;)n[r]=arguments[r];i=e<3&&n[0]!==i&&n[e-1]!==i?[]:da(n,i);return(e-=i.length)<s?jn(o,a,En,t.placeholder,Ho,n,i,Ho,Ho,s-e):aa(this&&this!==oa&&this instanceof t?u:o,this,n)}}function Pn(o){return function(t,e,n){var r,i=g(t),e=(p(t)||(r=h(e,3),t=C(t),e=function(t){return r(i[t],t,i)}),o(t,e,n));return-1<e?i[r?t[e]:e]:Ho}}function Mn(u){return $n(function(i){var o=i.length,t=o,e=v.prototype.thru;for(u&&i.reverse();t--;){var n=i[t];if("function"!=typeof n)throw new S(Wo);e&&!s&&"wrapper"==Kn(n)&&(s=new v([],!0))}for(t=s?t:o;++t<o;)var r=Kn(n=i[t]),a="wrapper"==r?Yn(n):Ho,s=a&&ar(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?s[Kn(a[0])].apply(s,a[3]):1==n.length&&ar(n)?s[r]():s.thru(n);return function(){var t=arguments,e=t[0];if(s&&1==t.length&&F(e))return s.plant(e).value();for(var n=0,r=o?i[n].apply(this,t):e;++n<o;)r=i[n].call(this,r);return r}})}function En(a,s,u,l,c,h,f,p,d,g){var v=128&s,m=1&s,_=2&s,y=24&s,b=512&s,x=_?Ho:Sn(a);return function t(){for(var e,n,r,i=w(r=arguments.length),o=r;o--;)i[o]=arguments[o];return y&&(n=((t,e)=>{for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r})(i,e=Gn(t))),l&&(i=dn(i,l,c,y)),h&&(i=gn(i,h,f,y)),r-=n,y&&r<g?(n=da(i,e),jn(a,s,En,t.placeholder,u,i,n,p,d,g-r)):(e=m?u:this,n=_?e[a]:a,r=i.length,p?i=((t,e)=>{for(var n=t.length,r=P(e.length,n),i=M(t);r--;){var o=e[r];t[r]=ir(o,n)?i[o]:Ho}return t})(i,p):b&&1<r&&i.reverse(),v&&d<r&&(i.length=d),(n=this&&this!==oa&&this instanceof t?x||Sn(n):n).apply(e,i))}}function An(n,a){return function(t,e){return t=t,r=n,i=a(e),o={},he(t,function(t,e,n){r(o,i(t),e,n)}),o;var r,i,o}}function On(r,i){return function(t,e){var n;if(t===Ho&&e===Ho)return i;if(t!==Ho&&(n=t),e!==Ho){if(n===Ho)return e;e=("string"==typeof t||"string"==typeof e?(t=l(t),l):(t=Ge(t),Ge))(e),n=r(t,e)}return n}}function Cn(r){return $n(function(t){return t=la(t,fa(h())),a(function(e){var n=this;return r(t,function(t){return aa(t,n,e)})})})}function Dn(t,e){var n=(e=e===Ho?" ":l(e)).length;return n<2?n?Be(e,t):e:(n=Be(e,pt(t/ga(e))),pa(e)?un(va(n),0,t).join(""):n.slice(0,t))}function In(s,t,u,l){var c=1&t,h=Sn(s);return function t(){for(var e=-1,n=arguments.length,r=-1,i=l.length,o=w(i+n),a=this&&this!==oa&&this instanceof t?h:s;++r<i;)o[r]=l[r];for(;n--;)o[r++]=arguments[++e];return aa(a,c?u:this,o)}}function Tn(l){return function(t,e,n){n&&"number"!=typeof n&&f(t,e,n)&&(e=n=Ho),t=Li(t),e===Ho?(e=t,t=0):e=Li(e),n=n===Ho?t<e?1:-1:Li(n);for(var r=t,i=n,o=l,a=-1,s=k(pt((e-r)/(i||1)),0),u=w(s);s--;)u[o?s:++a]=r,r+=i;return u}}function Ln(n){return function(t,e){return"string"==typeof t&&"string"==typeof e||(t=A(t),e=A(e)),n(t,e)}}function jn(t,e,n,r,i,o,a,s,u,l){var c=8&e,i=(4&(e=(e|(c?32:64))&~(c?64:32))||(e&=-4),[t,e,i,c?o:Ho,c?a:Ho,c?Ho:o,c?Ho:a,s,u,l]),o=n.apply(Ho,i);return ar(t)&&dr(o,i),o.placeholder=r,mr(o,t,e)}function Rn(t){var r=o[t];return function(t,e){var n;return t=A(t),(e=null==e?0:P(E(e),292))&&vt(t)?(n=(O(t)+"e").split("e"),+((n=(O(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))):r(t)}}var zn=Pt&&1/ru(new Pt([,-0]))[1]==1/0?function(t){return new Pt(t)}:ko;function Nn(o){return function(t){var e,n,r,i=N(t);return i==Ko?eu(t):i==Jo?(i=t,e=-1,n=Array(i.size),i.forEach(function(t){n[++e]=[t,t]}),n):la(o(r=t),function(t){return[t,r[t]]})}}function Bn(t,e,n,r,i,o,a,s){var u,l,c,h,f,p,d,g,v,m,_,y,b,x=2&e;if(x||"function"==typeof t)return(u=r?r.length:0)||(e&=-97,r=i=Ho),a=a===Ho?a:k(E(a),0),s=s===Ho?s:E(s),u-=i?i.length:0,64&e&&(c=r,h=i,r=i=Ho),l=x?Ho:Yn(t),c=[t,e,n,r,i,c,h,o,a,s],l&&(h=l,a=(o=c)[1],p=h[1],g=(d=a|p)<131,v=128==p&&8==a||128==p&&256==a&&o[7].length<=h[8]||384==p&&h[7].length<=h[8]&&8==a,g||v)&&(1&p&&(o[2]=h[2],d|=1&a?0:4),(g=h[3])&&(f=o[3],o[3]=f?dn(f,g,h[4]):g,o[4]=f?da(o[3],ya):h[4]),(g=h[5])&&(f=o[5],o[5]=f?gn(f,g,h[6]):g,o[6]=f?da(o[5],ya):h[6]),(g=h[7])&&(o[7]=g),128&p&&(o[8]=null==o[8]?h[8]:P(o[8],h[8])),null==o[9]&&(o[9]=h[9]),o[0]=h[0],o[1]=d),t=c[0],e=c[1],n=c[2],r=c[3],i=c[4],!(s=c[9]=c[9]===Ho?x?0:t.length:k(c[9]-u,0))&&24&e&&(e&=-25),v=e&&1!=e?8==e||16==e?kn(t,e,s):32!=e&&33!=e||i.length?En.apply(Ho,c):In(t,e,n,r):(_=n,y=1&e,b=Sn(m=t),function t(){return(this&&this!==oa&&this instanceof t?b:m).apply(y?_:this,arguments)}),mr((l?Ve:dr)(v,c),t,e);throw new S(Wo)}function Fn(t,e,n,r){return t===Ho||B(t,q[n])&&!R.call(r,n)?e:t}function Hn(t,e,n,r,i,o){return x(t)&&x(e)&&(o.set(e,t),Ie(t,e,Ho,Hn,o),o.delete(e)),t}function Wn(t){return Mi(t)?Ho:t}function Vn(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&s<u))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var c=-1,h=!0,f=2&n?new Wt:Ho;for(o.set(t,e),o.set(e,t);++c<s;){var p,d=t[c],g=e[c];if((p=r?a?r(g,d,c,e,t,o):r(d,g,c,t,e,o):p)!==Ho){if(p)continue;h=!1;break}if(f){if(!zs(e,function(t,e){return!Gs(f,e)&&(d===t||i(d,t,n,r,o))&&f.push(e)})){h=!1;break}}else if(d!==g&&!i(d,g,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function $n(t){return vr(hr(t,Ho,Er),t+"")}function qn(t){return ge(t,C,Zn)}function Un(t){return ge(t,D,tr)}var Yn=Et?function(t){return Et.get(t)}:ko;function Kn(t){for(var e=t.name+"",n=At[e],r=R.call(At,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Gn(t){return(R.call(d,"placeholder")?d:t).placeholder}function h(){var t=(t=d.iteratee||bo)===bo?Pe:t;return arguments.length?t(arguments[0],arguments[1]):t}function Qn(t,e){var n,r,t=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?t["string"==typeof e?"string":"hash"]:t.map}function Xn(t){for(var e=C(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,lr(i)]}return e}function Jn(t,e){e=e;t=null==(t=t)?Ho:t[e];return ke(t)?t:Ho}var Zn=gt?function(e){return null==e?[]:(e=g(e),ua(gt(e),function(t){return it.call(e,t)}))}:Do,tr=gt?function(t){for(var e=[];t;)ca(e,Zn(t)),t=nt(t);return e}:Do,N=n;function er(t,e,n){for(var r=-1,i=(e=an(e,t)).length,o=!1;++r<i;){var a=wr(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Si(i)&&ir(a,i)&&(F(t)||mi(t))}function nr(t){return"function"!=typeof t.constructor||ur(t)?{}:Rt(nt(t))}function rr(t){return F(t)||mi(t)||!!(at&&t&&t[at])}function ir(t,e){var n=typeof t;return!!(e=null==e?Vo:e)&&("number"==n||"symbol"!=n&&hs.test(t))&&-1<t&&t%1==0&&t<e}function f(t,e,n){var r;if(x(n))return("number"==(r=typeof e)?p(n)&&ir(e,n.length):"string"==r&&e in n)&&B(n[e],t)}function or(t,e){var n;if(!F(t))return"number"==(n=typeof t)||"symbol"==n||"boolean"==n||null==t||y(t)||Ka.test(t)||!Ya.test(t)||null!=e&&t in g(e)}function ar(t){var e=Kn(t),n=d[e];return"function"==typeof n&&e in m.prototype&&(t===n||(e=Yn(n))&&t===e[0])}(i&&N(new i(new ArrayBuffer(1)))!=na||St&&N(new St)!=Ko||kt&&N(kt.resolve())!=Ma||Pt&&N(new Pt)!=Jo||t&&N(new t)!=ta)&&(N=function(t){var e=n(t),t=e==Qo?t.constructor:Ho,t=t?Sr(t):"";if(t)switch(t){case Ot:return na;case Ct:return Ko;case Dt:return Ma;case It:return Jo;case Tt:return ta}return e});var sr=U?xi:Io;function ur(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||q)}function lr(t){return t==t&&!x(t)}function cr(e,n){return function(t){return null!=t&&t[e]===n&&(n!==Ho||e in g(t))}}function hr(o,a,s){return a=k(a===Ho?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=k(t.length-a,0),r=w(n);++e<n;)r[e]=t[a+e];for(var e=-1,i=w(a+1);++e<a;)i[e]=t[e];return i[a]=s(r),aa(o,this,i)}}function fr(t,e){return e.length<2?t:de(t,s(e,0,-1))}function pr(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var dr=_r(Ve),gr=ft||function(t,e){return oa.setTimeout(t,e)},vr=_r(e);function mr(t,e,n){var r,i,o,e=e+"";return vr(t,(i=(e=(e=t=e).match(ts))?e[1].split(es):[],o=n,sa(xa,function(t){var e="_."+t[0];o&t[1]&&!Ts(i,e)&&i.push(e)}),e=i.sort(),(n=e.length)?(e[r=n-1]=(1<n?"& ":"")+e[r],e=e.join(2<n?", ":" "),t.replace(Za,"{\n/* [wrapped with "+e+"] */\n")):t))}function _r(n){var r=0,i=0;return function(){var t=yt(),e=16-(t-i);if(i=t,0<e){if(800<=++r)return arguments[0]}else r=0;return n.apply(Ho,arguments)}}function yr(t,e){var n=-1,r=t.length,i=r-1;for(e=e===Ho?r:e;++n<e;){var o=Ne(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}br=(ct=ci(ct=function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(Ga,function(t,e,n,r){i.push(n?r.replace(is,"$1"):e||t)}),i},function(t){return 500===br.size&&br.clear(),t})).cache;var br,xr=ct;function wr(t){var e;return"string"==typeof t||y(t)?t:"0"==(e=t+"")&&1/t==-1/0?"-0":e}function Sr(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function kr(t){var e;return t instanceof m?t.clone():((e=new v(t.__wrapped__,t.__chain__)).__actions__=M(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e)}i=a(function(t,e){return b(t)?re(t,u(e,1,b,!0)):[]}),kt=a(function(t,e){var n=c(e);return b(n)&&(n=Ho),b(t)?re(t,u(e,1,b,!0),h(n,2)):[]}),t=a(function(t,e){var n=c(e);return b(n)&&(n=Ho),b(t)?re(t,u(e,1,b,!0),Ho,n):[]});function Pr(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:E(n))<0&&(n=k(r+n,0)),Bs(t,h(e,3),n)):-1}function Mr(t,e,n){var r,i=null==t?0:t.length;return i?(r=i-1,n!==Ho&&(r=E(n),r=n<0?k(i+r,0):P(r,i-1)),Bs(t,h(e,3),r,!0)):-1}function Er(t){return(null==t?0:t.length)?u(t,1):[]}function Ar(t){return t&&t.length?t[0]:Ho}U=a(function(t){var e=la(t,rn);return e.length&&e[0]===t[0]?ye(e):[]}),ft=a(function(t){var e=c(t),n=la(t,rn);return e===c(n)?e=Ho:n.pop(),n.length&&n[0]===t[0]?ye(n,h(e,2)):[]}),e=a(function(t){var e=c(t),n=la(t,rn);return(e="function"==typeof e?e:Ho)&&n.pop(),n.length&&n[0]===t[0]?ye(n,Ho,e):[]});function c(t){var e=null==t?0:t.length;return e?t[e-1]:Ho}ct=a(Or);function Or(t,e){return t&&t.length&&e&&e.length?Re(t,e):t}var Cr=$n(function(t,e){var n=null==t?0:t.length,r=Zt(t,e);return ze(t,la(e,function(t){return ir(t,n)?+t:t}).sort(pn)),r});function Dr(t){return null==t?t:wt.call(t)}var Ir=a(function(t){return Qe(u(t,1,b,!0))}),Tr=a(function(t){var e=c(t);return b(e)&&(e=Ho),Qe(u(t,1,b,!0),h(e,2))}),Lr=a(function(t){var e="function"==typeof(e=c(t))?e:Ho;return Qe(u(t,1,b,!0),Ho,e)});function jr(e){var n;return e&&e.length?(n=0,e=ua(e,function(t){return b(t)&&(n=k(t.length,n),1)}),Us(n,function(t){return la(e,Vs(t))})):[]}function Rr(t,e){return t&&t.length?(t=jr(t),null==e?t:la(t,function(t){return aa(e,Ho,t)})):[]}var zr=a(function(t,e){return b(t)?re(t,e):[]}),Nr=a(function(t){return en(ua(t,b))}),Br=a(function(t){var e=c(t);return b(e)&&(e=Ho),en(ua(t,b),h(e,2))}),Fr=a(function(t){var e="function"==typeof(e=c(t))?e:Ho;return en(ua(t,b),Ho,e)}),Hr=a(jr);var Wr=a(function(t){var e=t.length,e="function"==typeof(e=1<e?t[e-1]:Ho)?(t.pop(),e):Ho;return Rr(t,e)});function Vr(t){t=d(t);return t.__chain__=!0,t}function $r(t,e){return e(t)}var qr=$n(function(e){function t(t){return Zt(t,e)}var n=e.length,r=n?e[0]:0,i=this.__wrapped__;return!(1<n||this.__actions__.length)&&i instanceof m&&ir(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:$r,args:[t],thisArg:Ho}),new v(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(Ho),t})):this.thru(t)});var Ur=mn(function(t,e,n){R.call(t,n)?++t[n]:Jt(t,n,1)});var Yr=Pn(Pr),Kr=Pn(Mr);function Gr(t,e){return(F(t)?sa:ie)(t,h(e,3))}function Qr(t,e){return(F(t)?Ds:oe)(t,h(e,3))}var Xr=mn(function(t,e,n){R.call(t,n)?t[n].push(e):Jt(t,n,[e])});var Jr=a(function(t,e,n){var r=-1,i="function"==typeof e,o=p(t)?w(t.length):[];return ie(t,function(t){o[++r]=i?aa(e,t,n):be(t,e,n)}),o}),Zr=mn(function(t,e,n){Jt(t,n,e)});function ti(t,e){return(F(t)?la:Oe)(t,h(e,3))}var ei=mn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var ni=a(function(t,e){var n;return null==t?[]:(1<(n=e.length)&&f(t,e[0],e[1])?e=[]:2<n&&f(e[0],e[1],e[2])&&(e=[e[0]]),Le(t,u(e,1),[]))}),ri=ht||function(){return oa.Date.now()};function ii(t,e,n){return e=n?Ho:e,e=t&&null==e?t.length:e,Bn(t,128,Ho,Ho,Ho,Ho,e)}function oi(t,e){var n;if("function"!=typeof e)throw new S(Wo);return t=E(t),function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=Ho),n}}var ai=a(function(t,e,n){var r,i=1;return n.length&&(r=da(n,Gn(ai)),i|=32),Bn(t,i,e,n,r)}),si=a(function(t,e,n){var r,i=3;return n.length&&(r=da(n,Gn(si)),i|=32),Bn(e,i,t,n,r)});function ui(r,n,t){var i,o,a,s,u,l,c=0,h=!1,f=!1,e=!0;if("function"!=typeof r)throw new S(Wo);function p(t){var e=i,n=o;return i=o=Ho,c=t,s=r.apply(n,e)}function d(t){var e=t-l;return l===Ho||n<=e||e<0||f&&a<=t-c}function g(){var t,e=ri();if(d(e))return v(e);u=gr(g,(t=n-((e=e)-l),f?P(t,a-(e-c)):t))}function v(t){return u=Ho,e&&i?p(t):(i=o=Ho,s)}function m(){var t=ri(),e=d(t);if(i=arguments,o=this,l=t,e){if(u===Ho)return c=t=l,u=gr(g,n),h?p(t):s;if(f)return ln(u),u=gr(g,n),p(l)}return u===Ho&&(u=gr(g,n)),s}return n=A(n)||0,x(t)&&(h=!!t.leading,f="maxWait"in t,a=f?k(A(t.maxWait)||0,n):a,e="trailing"in t?!!t.trailing:e),m.cancel=function(){u!==Ho&&ln(u),c=0,i=l=o=u=Ho},m.flush=function(){return u===Ho?s:v(ri())},m}var ht=a(function(t,e){return ne(t,1,e)}),li=a(function(t,e,n){return ne(t,A(e)||0,n)});function ci(r,i){if("function"!=typeof r||null!=i&&"function"!=typeof i)throw new S(Wo);function o(){var t=arguments,e=i?i.apply(this,t):t[0],n=o.cache;return n.has(e)?n.get(e):(t=r.apply(this,t),o.cache=n.set(e,t)||n,t)}return o.cache=new(ci.Cache||Ht),o}function hi(e){if("function"!=typeof e)throw new S(Wo);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ci.Cache=Ht;var sn=sn(function(r,i){var o=(i=1==i.length&&F(i[0])?la(i[0],fa(h())):la(u(i,1),fa(h()))).length;return a(function(t){for(var e=-1,n=P(t.length,o);++e<n;)t[e]=i[e].call(this,t[e]);return aa(r,this,t)})}),fi=a(function(t,e){var n=da(e,Gn(fi));return Bn(t,32,Ho,e,n)}),pi=a(function(t,e){var n=da(e,Gn(pi));return Bn(t,64,Ho,e,n)}),di=$n(function(t,e){return Bn(t,256,Ho,Ho,Ho,e)});function B(t,e){return t===e||t!=t&&e!=e}var gi=Ln(ve),vi=Ln(function(t,e){return e<=t}),mi=xe(function(){return arguments}())?xe:function(t){return H(t)&&R.call(t,"callee")&&!it.call(t,"callee")},F=w.isArray,_i=ks?fa(ks):function(t){return H(t)&&n(t)==ea};function p(t){return null!=t&&Si(t.length)&&!xi(t)}function b(t){return H(t)&&p(t)}var yi=$||Io,$=Ps?fa(Ps):function(t){return H(t)&&n(t)==Yo};function bi(t){var e;return!!H(t)&&((e=n(t))==Sa||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Mi(t))}function xi(t){return!!x(t)&&((t=n(t))==ka||t==Pa||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function wi(t){return"number"==typeof t&&t==E(t)}function Si(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=Vo}function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function H(t){return null!=t&&"object"==typeof t}var ki=Ms?fa(Ms):function(t){return H(t)&&N(t)==Ko};function Pi(t){return"number"==typeof t||H(t)&&n(t)==Go}function Mi(t){return!(!H(t)||n(t)!=Qo)&&(null===(t=nt(t))||"function"==typeof(t=R.call(t,"constructor")&&t.constructor)&&t instanceof t&&Y.call(t)==X)}var Ei=Es?fa(Es):function(t){return H(t)&&n(t)==Xo};var Ai=As?fa(As):function(t){return H(t)&&N(t)==Jo};function Oi(t){return"string"==typeof t||!F(t)&&H(t)&&n(t)==Zo}function y(t){return"symbol"==typeof t||H(t)&&n(t)==Ea}var Ci=Os?fa(Os):function(t){return H(t)&&Si(t.length)&&!!ra[n(t)]};var Di=Ln(Ae),Ii=Ln(function(t,e){return t<=e});function Ti(t){if(!t)return[];if(p(t))return(Oi(t)?va:M)(t);if(st&&t[st]){for(var e,n=t[st](),r=[];!(e=n.next()).done;)r.push(e.value);return r}var i=N(t);return(i==Ko?eu:i==Jo?ru:no)(t)}function Li(t){return t?(t=A(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function E(t){var t=Li(t),e=t%1;return t==t?e?t-e:t:0}function ji(t){return t?te(E(t),0,$o):0}function A(t){if("number"==typeof t)return t;if(y(t))return ba;if("string"!=typeof(t=x(t)?x(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=Ys(t);var e=us.test(t);return e||cs.test(t)?ws(t.slice(2),e?2:8):ss.test(t)?ba:+t}function Ri(t){return vn(t,D(t))}function O(t){return null==t?"":l(t)}var zi=_n(function(t,e){if(ur(e)||p(e))vn(e,C(e),t);else for(var n in e)R.call(e,n)&&Kt(t,n,e[n])}),Ni=_n(function(t,e){vn(e,D(e),t)}),Bi=_n(function(t,e,n,r){vn(e,D(e),t,r)}),Fi=_n(function(t,e,n,r){vn(e,C(e),t,r)}),Hi=$n(Zt);var Wi=a(function(t,e){t=g(t);var n=-1,r=e.length,i=2<r?e[2]:Ho;for(i&&f(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=D(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(c===Ho||B(c,q[l])&&!R.call(t,l))&&(t[l]=o[l])}return t}),Vi=a(function(t){return t.push(Ho,Hn),aa(Qi,Ho,t)});function $i(t,e,n){t=null==t?Ho:de(t,e);return t===Ho?n:t}function qi(t,e){return null!=t&&er(t,e,_e)}var Ui=An(function(t,e,n){t[e=null!=e&&"function"!=typeof e.toString?Q.call(e):e]=n},mo(I)),Yi=An(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Q.call(e)),R.call(t,e)?t[e].push(n):t[e]=[n]},h),Ki=a(be);function C(t){return(p(t)?Vt:Me)(t)}function D(t){return p(t)?Vt(t,!0):Ee(t)}var Gi=_n(function(t,e,n){Ie(t,e,n)}),Qi=_n(function(t,e,n,r){Ie(t,e,n,r)}),Xi=$n(function(e,t){var n={};if(null!=e)for(var r=!1,i=(t=la(t,function(t){return t=an(t,e),r=r||1<t.length,t}),vn(e,Un(e),n),r&&(n=_(n,7,Wn)),t.length);i--;)Xe(n,t[i]);return n});var Ji=$n(function(t,e){return null==t?{}:je(n=t,e,function(t,e){return qi(n,e)});var n});function Zi(t,n){var e;return null==t?{}:(e=la(Un(t),function(t){return[t]}),n=h(n),je(t,e,function(t,e){return n(t,e[0])}))}var to=Nn(C),eo=Nn(D);function no(t){return null==t?[]:Ks(t,C(t))}var ro=wn(function(t,e,n){return e=e.toLowerCase(),t+(n?io(e):e)});function io(t){return fo(O(t).toLowerCase())}function oo(t){return(t=O(t))&&t.replace(fs,Js).replace(vs,"")}var ao=wn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),so=wn(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),uo=xn("toLowerCase");var lo=wn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var co=wn(function(t,e,n){return t+(n?" ":"")+fo(e)});var ho=wn(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),fo=xn("toUpperCase");function po(t,e,n){return t=O(t),(e=n?Ho:e)===Ho?(n=t,_s.test(n)?t.match(ms)||[]:t.match(ns)||[]):t.match(e)||[]}var go=a(function(t,e){try{return aa(t,Ho,e)}catch(t){return bi(t)?t:new T(t)}}),vo=$n(function(e,t){return sa(t,function(t){t=wr(t),Jt(e,t,ai(e[t],e))}),e});function mo(t){return function(){return t}}var _o=Mn(),yo=Mn(!0);function I(t){return t}function bo(t){return Pe("function"==typeof t?t:_(t,1))}var xo=a(function(e,n){return function(t){return be(t,e,n)}}),wo=a(function(e,n){return function(t){return be(e,t,n)}});function So(r,e,t){var n=C(e),i=pe(e,n),o=(null!=t||x(e)&&(i.length||!n.length)||(t=e,e=r,r=this,i=pe(e,C(e))),!(x(t)&&"chain"in t&&!t.chain)),a=xi(r);return sa(i,function(t){var n=e[t];r[t]=n,a&&(r.prototype[t]=function(){var t,e=this.__chain__;return o||e?(((t=r(this.__wrapped__)).__actions__=M(this.__actions__)).push({func:n,args:arguments,thisArg:r}),t.__chain__=e,t):n.apply(r,ca([this.value()],arguments))})}),r}function ko(){}var Po=Cn(la),Mo=Cn(Is),Eo=Cn(zs);function Ao(t){return or(t)?Vs(wr(t)):(e=t,function(t){return de(t,e)});var e}var Oo=Tn(),Co=Tn(!0);function Do(){return[]}function Io(){return!1}var To=On(function(t,e){return t+e},0),Lo=Rn("ceil"),jo=On(function(t,e){return t/e},1),Ro=Rn("floor");var zo,No=On(function(t,e){return t*e},1),Bo=Rn("round"),Fo=On(function(t,e){return t-e},0);return d.after=function(t,e){if("function"!=typeof e)throw new S(Wo);return t=E(t),function(){if(--t<1)return e.apply(this,arguments)}},d.ary=ii,d.assign=zi,d.assignIn=Ni,d.assignInWith=Bi,d.assignWith=Fi,d.at=Hi,d.before=oi,d.bind=ai,d.bindAll=vo,d.bindKey=si,d.castArray=function(){var t;return arguments.length?F(t=arguments[0])?t:[t]:[]},d.chain=Vr,d.chunk=function(t,e,n){e=(n?f(t,e,n):e===Ho)?1:k(E(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=w(pt(r/e));i<r;)a[o++]=s(t,i,i+=e);return a},d.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},d.concat=function(){var t=arguments.length;if(!t)return[];for(var e=w(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return ca(F(n)?M(n):[n],u(e,1))},d.cond=function(r){var i=null==r?0:r.length,e=h();return r=i?la(r,function(t){if("function"!=typeof t[1])throw new S(Wo);return[e(t[0]),t[1]]}):[],a(function(t){for(var e=-1;++e<i;){var n=r[e];if(aa(n[0],this,t))return aa(n[1],this,t)}})},d.conforms=function(t){return e=_(t,1),n=C(e),function(t){return ee(t,e,n)};var e,n},d.constant=mo,d.countBy=Ur,d.create=function(t,e){return t=Rt(t),null==e?t:Xt(t,e)},d.curry=function t(e,n,r){e=Bn(e,8,Ho,Ho,Ho,Ho,Ho,n=r?Ho:n);return e.placeholder=t.placeholder,e},d.curryRight=function t(e,n,r){e=Bn(e,16,Ho,Ho,Ho,Ho,Ho,n=r?Ho:n);return e.placeholder=t.placeholder,e},d.debounce=ui,d.defaults=Wi,d.defaultsDeep=Vi,d.defer=ht,d.delay=li,d.difference=i,d.differenceBy=kt,d.differenceWith=t,d.drop=function(t,e,n){var r=null==t?0:t.length;return r?s(t,(e=n||e===Ho?1:E(e))<0?0:e,r):[]},d.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?s(t,0,(e=r-(e=n||e===Ho?1:E(e)))<0?0:e):[]},d.dropRightWhile=function(t,e){return t&&t.length?Ze(t,h(e,3),!0,!0):[]},d.dropWhile=function(t,e){return t&&t.length?Ze(t,h(e,3),!0):[]},d.fill=function(t,e,n,r){if(!(u=null==t?0:t.length))return[];n&&"number"!=typeof n&&f(t,e,n)&&(n=0,r=u);var i=t,o=e,a=n,s=r,u=i.length;for((a=E(a))<0&&(a=u<-a?0:u+a),(s=s===Ho||u<s?u:E(s))<0&&(s+=u),s=s<a?0:ji(s);a<s;)i[a++]=o;return i},d.filter=function(t,e){return(F(t)?ua:ue)(t,h(e,3))},d.flatMap=function(t,e){return u(ti(t,e),1)},d.flatMapDeep=function(t,e){return u(ti(t,e),1/0)},d.flatMapDepth=function(t,e,n){return n=n===Ho?1:E(n),u(ti(t,e),n)},d.flatten=Er,d.flattenDeep=function(t){return(null==t?0:t.length)?u(t,1/0):[]},d.flattenDepth=function(t,e){return(null==t?0:t.length)?u(t,e=e===Ho?1:E(e)):[]},d.flip=function(t){return Bn(t,512)},d.flow=_o,d.flowRight=yo,d.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},d.functions=function(t){return null==t?[]:pe(t,C(t))},d.functionsIn=function(t){return null==t?[]:pe(t,D(t))},d.groupBy=Xr,d.initial=function(t){return(null==t?0:t.length)?s(t,0,-1):[]},d.intersection=U,d.intersectionBy=ft,d.intersectionWith=e,d.invert=Ui,d.invertBy=Yi,d.invokeMap=Jr,d.iteratee=bo,d.keyBy=Zr,d.keys=C,d.keysIn=D,d.map=ti,d.mapKeys=function(t,r){var i={};return r=h(r,3),he(t,function(t,e,n){Jt(i,r(t,e,n),t)}),i},d.mapValues=function(t,r){var i={};return r=h(r,3),he(t,function(t,e,n){Jt(i,e,r(t,e,n))}),i},d.matches=function(t){return Ce(_(t,1))},d.matchesProperty=function(t,e){return De(t,_(e,1))},d.memoize=ci,d.merge=Gi,d.mergeWith=Qi,d.method=xo,d.methodOf=wo,d.mixin=So,d.negate=hi,d.nthArg=function(e){return e=E(e),a(function(t){return Te(t,e)})},d.omit=Xi,d.omitBy=function(t,e){return Zi(t,hi(h(e)))},d.once=function(t){return oi(2,t)},d.orderBy=function(t,e,n,r){return null==t?[]:Le(t,e=F(e)?e:null==e?[]:[e],n=F(n=r?Ho:n)?n:null==n?[]:[n])},d.over=Po,d.overArgs=sn,d.overEvery=Mo,d.overSome=Eo,d.partial=fi,d.partialRight=pi,d.partition=ei,d.pick=Ji,d.pickBy=Zi,d.property=Ao,d.propertyOf=function(e){return function(t){return null==e?Ho:de(e,t)}},d.pull=ct,d.pullAll=Or,d.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Re(t,e,h(n,2)):t},d.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Re(t,e,Ho,n):t},d.pullAt=Cr,d.range=Oo,d.rangeRight=Co,d.rearg=di,d.reject=function(t,e){return(F(t)?ua:ue)(t,hi(h(e,3)))},d.remove=function(t,e){var n=[];if(t&&t.length){var r=-1,i=[],o=t.length;for(e=h(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}ze(t,i)}return n},d.rest=function(t,e){if("function"!=typeof t)throw new S(Wo);return a(t,e=e===Ho?e:E(e))},d.reverse=Dr,d.sampleSize=function(t,e,n){return e=(n?f(t,e,n):e===Ho)?1:E(e),(F(t)?qt:He)(t,e)},d.set=function(t,e,n){return null==t?t:We(t,e,n)},d.setWith=function(t,e,n,r){return r="function"==typeof r?r:Ho,null==t?t:We(t,e,n,r)},d.shuffle=function(t){return(F(t)?Ut:$e)(t)},d.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n=n&&"number"!=typeof n&&f(t,e,n)?(e=0,r):(e=null==e?0:E(e),n===Ho?r:E(n)),s(t,e,n)):[]},d.sortBy=ni,d.sortedUniq=function(t){return t&&t.length?Ke(t):[]},d.sortedUniqBy=function(t,e){return t&&t.length?Ke(t,h(e,2)):[]},d.split=function(t,e,n){return n&&"number"!=typeof n&&f(t,e,n)&&(e=n=Ho),(n=n===Ho?$o:n>>>0)?(t=O(t))&&("string"==typeof e||null!=e&&!Ei(e))&&!(e=l(e))&&pa(t)?un(va(t),0,n):t.split(e,n):[]},d.spread=function(n,r){if("function"!=typeof n)throw new S(Wo);return r=null==r?0:k(E(r),0),a(function(t){var e=t[r],t=un(t,0,r);return e&&ca(t,e),aa(n,this,t)})},d.tail=function(t){var e=null==t?0:t.length;return e?s(t,1,e):[]},d.take=function(t,e,n){return t&&t.length?s(t,0,(e=n||e===Ho?1:E(e))<0?0:e):[]},d.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?s(t,(e=r-(e=n||e===Ho?1:E(e)))<0?0:e,r):[]},d.takeRightWhile=function(t,e){return t&&t.length?Ze(t,h(e,3),!1,!0):[]},d.takeWhile=function(t,e){return t&&t.length?Ze(t,h(e,3)):[]},d.tap=function(t,e){return e(t),t},d.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new S(Wo);return x(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ui(t,e,{leading:r,maxWait:e,trailing:i})},d.thru=$r,d.toArray=Ti,d.toPairs=to,d.toPairsIn=eo,d.toPath=function(t){return F(t)?la(t,wr):y(t)?[t]:M(xr(O(t)))},d.toPlainObject=Ri,d.transform=function(t,r,i){var e,n=F(t),o=n||yi(t)||Ci(t);return r=h(r,4),null==i&&(e=t&&t.constructor,i=o?n?new e:[]:x(t)&&xi(e)?Rt(nt(t)):{}),(o?sa:he)(t,function(t,e,n){return r(i,t,e,n)}),i},d.unary=function(t){return ii(t,1)},d.union=Ir,d.unionBy=Tr,d.unionWith=Lr,d.uniq=function(t){return t&&t.length?Qe(t):[]},d.uniqBy=function(t,e){return t&&t.length?Qe(t,h(e,2)):[]},d.uniqWith=function(t,e){return e="function"==typeof e?e:Ho,t&&t.length?Qe(t,Ho,e):[]},d.unset=function(t,e){return null==t||Xe(t,e)},d.unzip=jr,d.unzipWith=Rr,d.update=function(t,e,n){return null==t?t:Je(t,e,on(n))},d.updateWith=function(t,e,n,r){return r="function"==typeof r?r:Ho,null==t?t:Je(t,e,on(n),r)},d.values=no,d.valuesIn=function(t){return null==t?[]:Ks(t,D(t))},d.without=zr,d.words=po,d.wrap=function(t,e){return fi(on(e),t)},d.xor=Nr,d.xorBy=Br,d.xorWith=Fr,d.zip=Hr,d.zipObject=function(t,e){return nn(t||[],e||[],Kt)},d.zipObjectDeep=function(t,e){return nn(t||[],e||[],We)},d.zipWith=Wr,d.entries=to,d.entriesIn=eo,d.extend=Ni,d.extendWith=Bi,So(d,d),d.add=To,d.attempt=go,d.camelCase=ro,d.capitalize=io,d.ceil=Lo,d.clamp=function(t,e,n){return n===Ho&&(n=e,e=Ho),n!==Ho&&(n=(n=A(n))==n?n:0),e!==Ho&&(e=(e=A(e))==e?e:0),te(A(t),e,n)},d.clone=function(t){return _(t,4)},d.cloneDeep=function(t){return _(t,5)},d.cloneDeepWith=function(t,e){return _(t,5,e="function"==typeof e?e:Ho)},d.cloneWith=function(t,e){return _(t,4,e="function"==typeof e?e:Ho)},d.conformsTo=function(t,e){return null==e||ee(t,e,C(e))},d.deburr=oo,d.defaultTo=function(t,e){return null==t||t!=t?e:t},d.divide=jo,d.endsWith=function(t,e,n){t=O(t),e=l(e);var r=t.length,r=n=n===Ho?r:te(E(n),0,r);return 0<=(n-=e.length)&&t.slice(n,r)==e},d.eq=B,d.escape=function(t){return(t=O(t))&&Va.test(t)?t.replace(Ha,Zs):t},d.escapeRegExp=function(t){return(t=O(t))&&Xa.test(t)?t.replace(Qa,"\\$&"):t},d.every=function(t,e,n){return(F(t)?Is:ae)(t,h(e=n&&f(t,e,n)?Ho:e,3))},d.find=Yr,d.findIndex=Pr,d.findKey=function(t,e){return Ns(t,h(e,3),he)},d.findLast=Kr,d.findLastIndex=Mr,d.findLastKey=function(t,e){return Ns(t,h(e,3),fe)},d.floor=Ro,d.forEach=Gr,d.forEachRight=Qr,d.forIn=function(t,e){return null==t?t:le(t,h(e,3),D)},d.forInRight=function(t,e){return null==t?t:ce(t,h(e,3),D)},d.forOwn=function(t,e){return t&&he(t,h(e,3))},d.forOwnRight=function(t,e){return t&&fe(t,h(e,3))},d.get=$i,d.gt=gi,d.gte=vi,d.has=function(t,e){return null!=t&&er(t,e,me)},d.hasIn=qi,d.head=Ar,d.identity=I,d.includes=function(t,e,n,r){return t=p(t)?t:no(t),n=n&&!r?E(n):0,r=t.length,n<0&&(n=k(r+n,0)),Oi(t)?n<=r&&-1<t.indexOf(e,n):!!r&&-1<ha(t,e,n)},d.indexOf=function(t,e,n){var r=null==t?0:t.length;return r?ha(t,e,t=(t=null==n?0:E(n))<0?k(r+t,0):t):-1},d.inRange=function(t,e,n){return e=Li(e),n===Ho?(n=e,e=0):n=Li(n),(t=t=A(t))>=P(e=e,n=n)&&t<k(e,n)},d.invoke=Ki,d.isArguments=mi,d.isArray=F,d.isArrayBuffer=_i,d.isArrayLike=p,d.isArrayLikeObject=b,d.isBoolean=function(t){return!0===t||!1===t||H(t)&&n(t)==Uo},d.isBuffer=yi,d.isDate=$,d.isElement=function(t){return H(t)&&1===t.nodeType&&!Mi(t)},d.isEmpty=function(t){if(null!=t){if(p(t)&&(F(t)||"string"==typeof t||"function"==typeof t.splice||yi(t)||Ci(t)||mi(t)))return!t.length;var e,n=N(t);if(n==Ko||n==Jo)return!t.size;if(ur(t))return!Me(t).length;for(e in t)if(R.call(t,e))return!1}return!0},d.isEqual=function(t,e){return we(t,e)},d.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:Ho)?n(t,e):Ho;return r===Ho?we(t,e,Ho,n):!!r},d.isError=bi,d.isFinite=function(t){return"number"==typeof t&&vt(t)},d.isFunction=xi,d.isInteger=wi,d.isLength=Si,d.isMap=ki,d.isMatch=function(t,e){return t===e||Se(t,e,Xn(e))},d.isMatchWith=function(t,e,n){return n="function"==typeof n?n:Ho,Se(t,e,Xn(e),n)},d.isNaN=function(t){return Pi(t)&&t!=+t},d.isNative=function(t){if(sr(t))throw new T("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ke(t)},d.isNil=function(t){return null==t},d.isNull=function(t){return null===t},d.isNumber=Pi,d.isObject=x,d.isObjectLike=H,d.isPlainObject=Mi,d.isRegExp=Ei,d.isSafeInteger=function(t){return wi(t)&&-Vo<=t&&t<=Vo},d.isSet=Ai,d.isString=Oi,d.isSymbol=y,d.isTypedArray=Ci,d.isUndefined=function(t){return t===Ho},d.isWeakMap=function(t){return H(t)&&N(t)==ta},d.isWeakSet=function(t){return H(t)&&"[object WeakSet]"==n(t)},d.join=function(t,e){return null==t?"":mt.call(t,e)},d.kebabCase=ao,d.last=c,d.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;if(n!==Ho&&(i=(i=E(n))<0?k(r+i,0):P(i,r-1)),e!=e)return Bs(t,Hs,i,!0);for(var o=t,a=e,s=i+1;s--;)if(o[s]===a)return s;return s},d.lowerCase=so,d.lowerFirst=uo,d.lt=Di,d.lte=Ii,d.max=function(t){return t&&t.length?se(t,I,ve):Ho},d.maxBy=function(t,e){return t&&t.length?se(t,h(e,2),ve):Ho},d.mean=function(t){return Ws(t,I)},d.meanBy=function(t,e){return Ws(t,h(e,2))},d.min=function(t){return t&&t.length?se(t,I,Ae):Ho},d.minBy=function(t,e){return t&&t.length?se(t,h(e,2),Ae):Ho},d.stubArray=Do,d.stubFalse=Io,d.stubObject=function(){return{}},d.stubString=function(){return""},d.stubTrue=function(){return!0},d.multiply=No,d.nth=function(t,e){return t&&t.length?Te(t,E(e)):Ho},d.noConflict=function(){return oa._===this&&(oa._=J),this},d.noop=ko,d.now=ri,d.pad=function(t,e,n){t=O(t);var r=(e=E(e))?ga(t):0;return!e||e<=r?t:Dn(dt(e=(e-r)/2),n)+t+Dn(pt(e),n)},d.padEnd=function(t,e,n){t=O(t);var r=(e=E(e))?ga(t):0;return e&&r<e?t+Dn(e-r,n):t},d.padStart=function(t,e,n){t=O(t);var r=(e=E(e))?ga(t):0;return e&&r<e?Dn(e-r,n)+t:t},d.parseInt=function(t,e,n){return e=n||null==e?0:e&&+e,bt(O(t).replace(Ja,""),e||0)},d.random=function(t,e,n){var r;return n&&"boolean"!=typeof n&&f(t,e,n)&&(e=n=Ho),n===Ho&&("boolean"==typeof e?(n=e,e=Ho):"boolean"==typeof t&&(n=t,t=Ho)),t===Ho&&e===Ho?(t=0,e=1):(t=Li(t),e===Ho?(e=t,t=0):e=Li(e)),e<t&&(r=t,t=e,e=r),n||t%1||e%1?(r=xt(),P(t+r*(e-t+xs("1e-"+((r+"").length-1))),e)):Ne(t,e)},d.reduce=function(t,e,n){var r=F(t)?js:$s,i=arguments.length<3;return r(t,h(e,4),n,i,ie)},d.reduceRight=function(t,e,n){var r=F(t)?Rs:$s,i=arguments.length<3;return r(t,h(e,4),n,i,oe)},d.repeat=function(t,e,n){return e=(n?f(t,e,n):e===Ho)?1:E(e),Be(O(t),e)},d.replace=function(){var t=arguments,e=O(t[0]);return t.length<3?e:e.replace(t[1],t[2])},d.result=function(t,e,n){var r=-1,i=(e=an(e,t)).length;for(i||(i=1,t=Ho);++r<i;){var o=null==t?Ho:t[wr(e[r])];o===Ho&&(r=i,o=n),t=xi(o)?o.call(t):o}return t},d.round=Bo,d.runInContext=r,d.sample=function(t){return(F(t)?$t:Fe)(t)},d.size=function(t){var e;return null==t?0:p(t)?Oi(t)?ga(t):t.length:(e=N(t))==Ko||e==Jo?t.size:Me(t).length},d.snakeCase=lo,d.some=function(t,e,n){return(F(t)?zs:qe)(t,h(e=n&&f(t,e,n)?Ho:e,3))},d.sortedIndex=function(t,e){return Ue(t,e)},d.sortedIndexBy=function(t,e,n){return Ye(t,e,h(n,2))},d.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Ue(t,e);if(r<n&&B(t[r],e))return r}return-1},d.sortedLastIndex=function(t,e){return Ue(t,e,!0)},d.sortedLastIndexBy=function(t,e,n){return Ye(t,e,h(n,2),!0)},d.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Ue(t,e,!0)-1;if(B(t[n],e))return n}return-1},d.startCase=co,d.startsWith=function(t,e,n){return t=O(t),n=null==n?0:te(E(n),0,t.length),e=l(e),t.slice(n,n+e.length)==e},d.subtract=Fo,d.sum=function(t){return t&&t.length?qs(t,I):0},d.sumBy=function(t,e){return t&&t.length?qs(t,h(e,2)):0},d.template=function(a,t,e){var s,u,n=d.templateSettings;e&&f(a,t,e)&&(t=Ho),a=O(a),t=Bi({},t,n,Fn);var r=C(e=Bi({},t.imports,n.imports,Fn)),i=Ks(e,r),l=0,n=t.interpolate||ps,c="__p += '",e=j((t.escape||ps).source+"|"+n.source+"|"+(n===Ua?os:ps).source+"|"+(t.evaluate||ps).source+"|$","g"),o="//# sourceURL="+(R.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bs+"]")+"\n";if(a.replace(e,function(t,e,n,r,i,o){return n=n||r,c+=a.slice(l,o).replace(ds,tu),e&&(s=!0,c+="' +\n__e("+e+") +\n'"),i&&(u=!0,c+="';\n"+i+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=o+t.length,t}),c+="';\n",n=R.call(t,"variable")&&t.variable){if(rs.test(n))throw new T("Invalid `variable` option passed into `_.template`")}else c="with (obj) {\n"+c+"\n}\n";if(c=(u?c.replace(za,""):c).replace(Na,"$1").replace(Ba,"$1;"),c="function("+(n||"obj")+") {\n"+(n?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+c+"return __p\n}",(e=go(function(){return L(r,o+"return "+c).apply(Ho,i)})).source=c,bi(e))throw e;return e},d.times=function(t,e){if((t=E(t))<1||Vo<t)return[];for(var n=$o,r=P(t,$o),r=(e=h(e),t-=$o,Us(r,e));++n<t;)e(n);return r},d.toFinite=Li,d.toInteger=E,d.toLength=ji,d.toLower=function(t){return O(t).toLowerCase()},d.toNumber=A,d.toSafeInteger=function(t){return t?te(E(t),-Vo,Vo):0===t?t:0},d.toString=O,d.toUpper=function(t){return O(t).toUpperCase()},d.trim=function(t,e,n){return(t=O(t))&&(n||e===Ho)?Ys(t):t&&(e=l(e))?un(n=va(t),Qs(n,e=va(e)),Xs(n,e)+1).join(""):t},d.trimEnd=function(t,e,n){return(t=O(t))&&(n||e===Ho)?t.slice(0,iu(t)+1):t&&(e=l(e))?un(n=va(t),0,Xs(n,va(e))+1).join(""):t},d.trimStart=function(t,e,n){return(t=O(t))&&(n||e===Ho)?t.replace(Ja,""):t&&(e=l(e))?un(n=va(t),Qs(n,va(e))).join(""):t},d.truncate=function(t,e){var n,r=30,i="...",e=(x(e)&&(n="separator"in e?e.separator:n,r="length"in e?E(e.length):r,i="omission"in e?l(e.omission):i),(t=O(t)).length);if((e=pa(t)?(o=va(t)).length:e)<=r)return t;if((e=r-ga(i))<1)return i;var o,r=o?un(o,0,e).join(""):t.slice(0,e);if(n!==Ho)if(o&&(e+=r.length-e),Ei(n)){if(t.slice(e).search(n)){var a,s=r;for((n=n.global?n:j(n.source,O(as.exec(n))+"g")).lastIndex=0;a=n.exec(s);)var u=a.index;r=r.slice(0,u===Ho?e:u)}}else t.indexOf(l(n),e)!=e&&-1<(o=r.lastIndexOf(n))&&(r=r.slice(0,o));return r+i},d.unescape=function(t){return(t=O(t))&&Wa.test(t)?t.replace(Fa,ou):t},d.uniqueId=function(t){var e=++K;return O(t)+e},d.upperCase=ho,d.upperFirst=fo,d.each=Gr,d.eachRight=Qr,d.first=Ar,So(d,(zo={},he(d,function(t,e){R.call(d.prototype,e)||(zo[e]=t)}),zo),{chain:!1}),d.VERSION="4.17.23",sa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){d[t].placeholder=d}),sa(["drop","take"],function(n,r){m.prototype[n]=function(t){t=t===Ho?1:k(E(t),0);var e=this.__filtered__&&!r?new m(this):this.clone();return e.__filtered__?e.__takeCount__=P(t,e.__takeCount__):e.__views__.push({size:P(t,$o),type:n+(e.__dir__<0?"Right":"")}),e},m.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),sa(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;m.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:h(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),sa(["head","last"],function(t,e){var n="take"+(e?"Right":"");m.prototype[t]=function(){return this[n](1).value()[0]}}),sa(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");m.prototype[t]=function(){return this.__filtered__?new m(this):this[n](1)}}),m.prototype.compact=function(){return this.filter(I)},m.prototype.find=function(t){return this.filter(t).head()},m.prototype.findLast=function(t){return this.reverse().find(t)},m.prototype.invokeMap=a(function(e,n){return"function"==typeof e?new m(this):this.map(function(t){return be(t,e,n)})}),m.prototype.reject=function(t){return this.filter(hi(h(t)))},m.prototype.slice=function(t,e){t=E(t);var n=this;return n.__filtered__&&(0<t||e<0)?new m(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==Ho?(e=E(e))<0?n.dropRight(-e):n.take(e-t):n)},m.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},m.prototype.toArray=function(){return this.take($o)},he(m.prototype,function(l,t){var c=/^(?:filter|find|map|reject)|While$/.test(t),h=/^(?:head|last)$/.test(t),f=d[h?"take"+("last"==t?"Right":""):t],p=h||/^find/.test(t);f&&(d.prototype[t]=function(){function t(t){return t=f.apply(d,ca([t],r)),h&&s?t[0]:t}var e,n=this.__wrapped__,r=h?[1]:arguments,i=n instanceof m,o=r[0],a=i||F(n),s=(a&&c&&"function"==typeof o&&1!=o.length&&(i=a=!1),this.__chain__),o=!!this.__actions__.length,u=p&&!s,i=i&&!o;return!p&&a?(n=i?n:new m(this),(e=l.apply(n,r)).__actions__.push({func:$r,args:[t],thisArg:Ho}),new v(e,s)):u&&i?l.apply(this,r):(e=this.thru(t),u?h?e.value()[0]:e.value():e)})}),sa(["pop","push","shift","sort","splice","unshift"],function(t){var n=V[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);d.prototype[t]=function(){var t,e=arguments;return i&&!this.__chain__?(t=this.value(),n.apply(F(t)?t:[],e)):this[r](function(t){return n.apply(F(t)?t:[],e)})}}),he(m.prototype,function(t,e){var n,r=d[e];
1r&&(n=r.name+"",R.call(At,n)||(At[n]=[]),At[n].push({name:e,func:r}))}),At[En(Ho,2).name]=[{name:"wrapper",func:Ho}],m.prototype.clone=function(){var t=new m(this.__wrapped__);return t.__actions__=M(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=M(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=M(this.__views__),t},m.prototype.reverse=function(){var t;return this.__filtered__?((t=new m(this)).__dir__=-1,t.__filtered__=!0):(t=this.clone()).__dir__*=-1,t},m.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=F(t),r=e<0,i=n?t.length:0,o=((t,e,n)=>{for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=P(e,t+a);break;case"takeRight":t=k(t,e-a)}}return{start:t,end:e}})(0,i,this.__views__),a=o.start,s=(o=o.end)-a,u=r?o:a-1,l=this.__iteratees__,c=l.length,h=0,f=P(s,this.__takeCount__);if(!n||!r&&i==s&&f==s)return tn(t,this.__actions__);var p=[];t:for(;s--&&h<f;){for(var d=-1,g=t[u+=e];++d<c;){var v=l[d],m=v.iteratee,v=v.type,m=m(g);if(2==v)g=m;else if(!m){if(1==v)continue t;break t}}p[h++]=g}return p},d.prototype.at=qr,d.prototype.chain=function(){return Vr(this)},d.prototype.commit=function(){return new v(this.value(),this.__chain__)},d.prototype.next=function(){this.__values__===Ho&&(this.__values__=Ti(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?Ho:this.__values__[this.__index__++]}},d.prototype.plant=function(t){for(var e,n=this;n instanceof Nt;)var r=kr(n),i=(r.__index__=0,r.__values__=Ho,e?i.__wrapped__=r:e=r,r),n=n.__wrapped__;return i.__wrapped__=t,e},d.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof m?(t=t,(t=(t=this.__actions__.length?new m(this):t).reverse()).__actions__.push({func:$r,args:[Dr],thisArg:Ho}),new v(t,this.__chain__)):this.thru(Dr)},d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=function(){return tn(this.__wrapped__,this.__actions__)},d.prototype.first=d.prototype.head,st&&(d.prototype[st]=function(){return this}),d}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(oa._=ma,define(function(){return ma})):i?((i.exports=ma)._=ma,r._=ma):oa._=ma}.call(this)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],109:[function(t,e,n){var a=t("./_MapCache");function s(r,i){if("function"!=typeof r||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");function o(){var t=arguments,e=i?i.apply(this,t):t[0],n=o.cache;return n.has(e)?n.get(e):(t=r.apply(this,t),o.cache=n.set(e,t)||n,t)}return o.cache=new(s.Cache||a),o}s.Cache=a,e.exports=s},{"./_MapCache":9}],110:[function(t,e,n){var r=t("./toArray");e.exports=function(){void 0===this.__values__&&(this.__values__=r(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}},{"./toArray":117}],111:[function(t,e,n){var o=t("./_baseLodash"),a=t("./_wrapperClone");e.exports=function(t){for(var e,n=this;n instanceof o;)var r=a(n),i=(r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r,r),n=n.__wrapped__;return i.__wrapped__=t,e}},{"./_baseLodash":30,"./_wrapperClone":88}],112:[function(t,e,n){var r=Array.prototype.reverse;e.exports=function(t){return null==t?t:r.call(t)}},{}],113:[function(t,e,n){e.exports={at:t("./wrapperAt"),chain:t("./chain"),commit:t("./commit"),lodash:t("./wrapperLodash"),next:t("./next"),plant:t("./plant"),reverse:t("./wrapperReverse"),tap:t("./tap"),thru:t("./thru"),toIterator:t("./toIterator"),toJSON:t("./toJSON"),value:t("./wrapperValue"),valueOf:t("./valueOf"),wrapperChain:t("./wrapperChain")}},{"./chain":89,"./commit":90,"./next":110,"./plant":111,"./tap":115,"./thru":116,"./toIterator":118,"./toJSON":119,"./valueOf":121,"./wrapperAt":123,"./wrapperChain":124,"./wrapperLodash":125,"./wrapperReverse":126,"./wrapperValue":127}],114:[function(t,e,n){e.exports=function(){return!1}},{}],115:[function(t,e,n){e.exports=function(t,e){return e(t),t}},{}],116:[function(t,e,n){e.exports=function(t,e){return e(t)}},{}],117:[function(t,e,n){var r=t("./_Symbol"),i=t("./_copyArray"),o=t("./_getTag"),a=t("./isArrayLike"),s=t("./isString"),u=t("./_iteratorToArray"),l=t("./_mapToArray"),c=t("./_setToArray"),h=t("./_stringToArray"),f=t("./values"),p=r?r.iterator:void 0;e.exports=function(t){var e;return t?a(t)?(s(t)?h:i)(t):p&&t[p]?u(t[p]()):("[object Map]"==(e=o(t))?l:"[object Set]"==e?c:f)(t):[]}},{"./_Symbol":12,"./_copyArray":38,"./_getTag":46,"./_iteratorToArray":60,"./_mapToArray":71,"./_setToArray":80,"./_stringToArray":83,"./isArrayLike":98,"./isString":104,"./values":122}],118:[function(t,e,n){e.exports=function(){return this}},{}],119:[function(t,e,n){e.exports=t("./wrapperValue")},{"./wrapperValue":127}],120:[function(t,e,n){var r=t("./_baseToString");e.exports=function(t){return null==t?"":r(t)}},{"./_baseToString":33}],121:[function(t,e,n){arguments[4][119][0].apply(n,arguments)},{"./wrapperValue":127,dup:119}],122:[function(t,e,n){var r=t("./_baseValues"),i=t("./keys");e.exports=function(t){return null==t?[]:r(t,i(t))}},{"./_baseValues":35,"./keys":107}],123:[function(t,e,n){var o=t("./_LazyWrapper"),a=t("./_LodashWrapper"),s=t("./_baseAt"),r=t("./_flatRest"),u=t("./_isIndex"),l=t("./thru"),t=r(function(e){function t(t){return s(t,e)}var n=e.length,r=n?e[0]:0,i=this.__wrapped__;return!(1<n||this.__actions__.length)&&i instanceof o&&u(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:l,args:[t],thisArg:void 0}),new a(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(void 0),t})):this.thru(t)});e.exports=t},{"./_LazyWrapper":5,"./_LodashWrapper":7,"./_baseAt":21,"./_flatRest":41,"./_isIndex":55,"./thru":116}],124:[function(t,e,n){var r=t("./chain");e.exports=function(){return r(this)}},{"./chain":89}],125:[function(t,e,n){var r=t("./_LazyWrapper"),i=t("./_LodashWrapper"),o=t("./_baseLodash"),a=t("./isArray"),s=t("./isObjectLike"),u=t
1("./_wrapperClone"),l=Object.prototype.hasOwnProperty;function c(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof i)return t;if(l.call(t,"__wrapped__"))return u(t)}return new i(t)}c.prototype=o.prototype,e.exports=c.prototype.constructor=c},{"./_LazyWrapper":5,"./_LodashWrapper":7,"./_baseLodash":30,"./_wrapperClone":88,"./isArray":97,"./isObjectLike":103}],126:[function(t,e,n){var r=t("./_LazyWrapper"),i=t("./_LodashWrapper"),o=t("./reverse"),a=t("./thru");e.exports=function(){var t=this.__wrapped__;return t instanceof r?(t=t,(t=(t=this.__actions__.length?new r(this):t).reverse()).__actions__.push({func:a,args:[o],thisArg:void 0}),new i(t,this.__chain__)):this.thru(o)}},{"./_LazyWrapper":5,"./_LodashWrapper":7,"./reverse":112,"./thru":116}],127:[function(t,e,n){var r=t("./_baseWrapperValue");e.exports=function(){return r(this.__wrapped__,this.__actions__)}},{"./_baseWrapperValue":36}],128:[function(t,e,n){jQuery.fn.accordion=function(){var e=this.find(".accordion-element"),t=this.css("background-color");this.find(".accordion-content").css("background-color",t);for(let t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.classList.toggle("active");var t=this.nextElementSibling;t.style.maxHeight?t.style.maxHeight=null:t.style.maxHeight=t.scrollHeight+"px"})}},{}],129:[function(t,e,n){var r,i=(r=t("../vendor/auto-complete.min"))&&r.__esModule?r:{default:r},o=t("../vendor/smartsearch.bundle");{var a=jQuery;class s{constructor(t){this._element=t,this._$element=a(t),this._initialize()}_initialize(){this._input=this._element.querySelector("input"),this._prepareTemplate(),this._registerAutocomplete(),this._createSmartSearch()}_prepareTemplate(){var t=this._element.querySelector(".suggest-item-template");this._template=t.innerHTML.trim()}_registerAutocomplete(){let r=this._$element;var t={selector:this._input,minChars:this._element.dataset.fsssPrefixThreshold,source:(t,e)=>{this._commitSearch(t,e)},renderItem:(t,e)=>{e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replaceAll(" ","|");e=new RegExp("(".concat(e,")"),"gi"),e=t.replace(e,"<b>$1</b>");return this._template.replace("{autocompleteValue}",t).replace("{label}",e)},onSelect:function(t,e,n){r.submit()}};this.autocomplete=new i.default(t)}_commitSearch(t,e){var n=this._element.dataset.fsssPrefixThreshold,n={autocompleteOptions:{highlight:!0,language:document.documentElement.lang,prefixThreshold:n}};this._smartSearch.fetchAutocompleteList(t,n).then(t=>{e(t)})}_createSmartSearch(){var t=this._element.dataset.fsssHost,e=this._element.dataset.fsssPreparedSearch;this._smartSearch=new o.SmartSearch(t,e,{})}focus(){this._input.focus()}}a.fn.autocomplete=function(){return this.each(function(t,e){e.plugin||(e.plugin=new s(e))}),this}}},{"../vendor/auto-complete.min":167,"../vendor/smartsearch.bundle":169}],130:[function(t,e,n){var w,S=r(t("../vendor/waterfall.min")),k=r(t("../services/browser-events"));function r(t){return t&&t.__esModule?t:{default:t}}(w=jQuery).fn.cards=function(){let i=w(this).find(".element-loader"),o=this,t=o.find(".grid"),a=w(this).attr("data-random-sorted"),s=12,e=JSON.parse(w(this).find(".cards-data").text()),u=o.find(".card-item-template").html(),l=o.find(".card-item-link-template").html(),c=o.find(".card-item-video-template").html(),h=o.find(".tag-template").html(),f=o.find(".load-more");var n=o.find(".tag-button");i.show();let r=[],p,d,g,v,m;w(window).scroll(function(){w(".grid-item:not(.visible)").each(function(t){w(this).offset().top+w(this).outerHeight()/4<w(window).scrollTop()+w(window).innerHeight()&&(w(this).css("margin-top","50px"),w(this).delay(300*t).animate({opacity:"1"},{duration:800,queue:!1}),w(this).animate({marginTop:"0"},{duration:800,queue:!1}),w(this).addClass("visible"))})}),w(window).scroll();var _=e;function y(){p=e.results[0].cards,d=p.length,g=0,v=g+s,o.find(".cards-grid").empty()}function b(){if(i.show(),"true"===a){if(0===g){var e=p;for(let t=e.length-1;0<t;t--){var n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}}else p.sort(function(t,e){return new Date(t.card_date)-new Date(e.card_date)});var t=[...p];let r=t.slice(g,v);0===(d=t.length)?o.find(".no-results").css("display","block"):o.find(".no-results").css("display","none"),w.each(r,function(t){t=r[t],t=((t,e)=>{let r=t,i=Object.assign({},e),n=(w.each(["lang","card_alt_text","card_headline","card_date","show_date","video_url","card_text","card_link","card_link_target","card_link_tracking","card_image_image_640w_stored_only","card_image_image_960w_stored_only","card_image_image_1280w_stored_only","card_image_image_1600w_stored_only"],function(t,e){var n;void 0===i[e]&&(i[e]=""),"lang"===e&&("de"===m?i[e]=m:i[e]="en-us"),"card_date"===e&&("de"===m?i[e]=(n=i[e],moment(new Date(n)).format("DD.MM.YYYY")):i[e]=(n=i[e],moment(new Date(n)).format("MM/DD/YYYY"))),r=r.replaceAll("{".concat(e,"}"),i[e])}),w(r)),o=n.find(".element-image img"),a=(o.each(function(){var t=w(this);""===t.attr("src")&&t.closest("div.element-image").remove()}),n.find(".tags"));return a.html(null),w.each(e.card_tags,function(t,e){e=h.replace("{card_tags}",e);a.append(e)}),n})(t.card_link?l:t.video_url?c:u,t);o.find(".cards-grid").append(t)}),v>
1=p.length?f.hide():f.show(),g+=s,v+=s,0!==p.length&&x(),o.find(".video-card a").each(function(){var t,e,n=w(this).attr("href");767<=window.innerWidth?w(this).magnificPopup({items:{src:n},type:"iframe",closeBtnInside:!0,closeMarkup:'<span class="custom-close-btn"><button class="mfp-close">×</button></span>',iframe:{markup:'<div class="mfp-iframe-scaler magnific-popup"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',patterns:{youtube:{src:n}},srcAction:"iframe_src"}}):(t=w(this).children().clone(),e=w(this).attr("href"),n=w(this).prev(),w(this).remove(),t.appendTo(n),n.click(function(){t.find(".mobile-iframe-container").html('<iframe src="'+e+'" allowfullscreen wmode="Opaque"></iframe>')}))}),i.hide()}function x(){window.setTimeout(function(){(0,S.default)(t.get(0))},0)}(_=_.results[0]).language&&(m=_.language.toString()),y(),b(),n.on("click",function(t){var e,n;t.preventDefault(),t=w(this),e=t.text(),-1===(n=r.indexOf(e))?(r.push(e),t.addClass("active")):(r.splice(n,1),t.removeClass("active")),y(),0!==(p=0!==r.length?w.grep(p,function(e,t){return r.some(t=>e.card_tags.includes(t))}):p).length&&x(),b(),w(".grid-item").each(function(t){w(this).removeClass("visible")}),w("html, body").animate({scrollTop:"+=1px"},100)}),f.on("click",function(){b(),w("html, body").animate({scrollTop:"+=10px"},800)}),k.default.on("resize",x)}},{"../services/browser-events":160,"../vendor/waterfall.min":170}],131:[function(t,e,n){var r=t("../services/scroll-animations.js");jQuery.fn.collage=function(){return(gsap||ScrollTrigger)&&((0,r.initGsap)(),this.each(function(t,e){var n=e.querySelectorAll(".collage__image"),r=(gsap.set(e,{overflow:"hidden"}),gsap.set(n,{autoAlpha:0}),n[0]),i=n[1],o=n[2];r&&gsap.set(r,{x:r.classList.contains("collage__image--lg")?"-50%":"-100%"}),i&&gsap.set(i,{y:"50%"}),o&&gsap.set(o,{x:o.classList.contains("collage__image--lg")?"50%":"100%"}),gsap.timeline({paused:!0,scrollTrigger:{trigger:e,start:"top 70%",end:"bottom top",toggleActions:"play none none none",once:!0}}).to(n,{autoAlpha:1,y:0,x:0,duration:1.5,ease:"power2.out"},0)})),this}},{"../services/scroll-animations.js":164}],132:[function(t,e,n){var r;(r=jQuery).fn.contentTypeAndTags=function(){let e=document.documentElement.lang;return r(this).find(".date").each(function(){var t=r(this).text();"de"===e||"de-DE"===e?r(this).text(moment(new Date(t)).format("DD.MM.YYYY")):r(this).text(moment(new Date(t)).format("DD/MM/YYYY"))}),this}},{}],133:[function(t,e,n){var g,v=t("../services/browser-events");(g=jQuery).fn.factsAndFiguresSlider=function(){g(window).scroll(function t(){let e=(window.pageYOffset||document.documentElement.scrollTop)+window.innerHeight;let n=r.find(".component-facts-and-figures-slider").offset().top+100;e>n&&(g(window).off("scroll",t),a.each(function(){let t=this.dataset.n,e=this.dataset.year;t%1!=0?1===f(t)?p(g(this),t,s,u):p(g(this),t,s,l):""===t?p(g(this),e,s,h):p(g(this),t,s,c)}))});let i=document.documentElement.lang,r=(i="en-INT"===i?"en":"de",this),o=this,a=r.find(".item-headline span.count"),s=2e3,t=!1,e=767;function u(t){return(Math.ceil(10*t)/10).toLocaleString(i)}function l(t){return(Math.ceil(100*t)/100).toLocaleString(i)}function c(t){return Math.ceil(t).toLocaleString(i)}function h(t){return Math.ceil(t)}function f(t){return Math.floor(t)!==t&&t.toString().split(".")[1].length||0}function p(t,e,n,r){t.prop("Counter",0).animate({Counter:e},{duration:n,easing:"swing",step:function(t){g(this).text(r(t))},complete:function(){o.find(".slick-cloned .count").each(function(){""===this.dataset.n?g(this).text(parseFloat(this.dataset.year)):g(this).text(parseFloat(this.dataset.n).toLocaleString(i))})}})}let n={prevArrow:r.find(".btn-prev"),nextArrow:r.find(".btn-next"),infinite:!0,dots:!0,slidesToScroll:1,slidesToShow:1,mobileFirst:!0,responsive:[{breakpoint:e,settings:"unslick"}]};function d(){window.innerWidth<=e?t||(r.find(".slider").slick(n),t=!0):t=!1}return d(),v.on("resize",function(){d()}),this}},{"../services/browser-events":160}],134:[function(t,e,n){var r;(r=jQuery).fn.footer=function(){return this.find("h2 a").on("click",function(t){t.preventDefault(),r(this).toggleClass("open").closest("h2").next(".listing").toggleClass("open")}),this}},{}],135:[function(t,e,n){{var r=jQuery;class i{constructor(t){this._$element=t,this._initialize()}_initialize(){this._autocomplete=this._$element.find(".component-autocomplete").get(0),this._$searchFlyover=this._$element.find(".search-flyover"),this._$secondary=this._$element.find(".header2-secondary"),this._$groups=this._$secondary.find(".nav-group"),this._$links=this._$element.find(".main-navigation .nav-link"),this._$initialActiveLink=this._$element.find(".main-navigation .nav-link.active"),this._hideSecondLevelIfExter
1nLink(),this._registerListeners()}_hideSecondLevelIfExternLink(){this._$element.find(".main-navigation .nav-link").each(function(){""==r(this).data("targetId")&&r(this).addClass("external_link")})}_registerListeners(){this._$element.find(".action-open-search").on("click",()=>{this._showSearch()}),this._$element.find(".action-close-search").on("click",()=>{this._hideSearch()}),this._$element.find(".main-navigation .nav-link").on("click",t=>{var e=r(t.delegateTarget),n=e.data("targetId");""!==n&&(t.preventDefault(),this._tryHideSecondary(n)?(this._hideGroups(),this._setActiveLink(),this._tryRestoreInitialGroup()):(this._showSecondary(),this._hideGroups(),this._showGroup(n),this._setActiveLink(e)))})}_showSearch(){this._$searchFlyover.addClass("show"),window.setTimeout(()=>{this._autocomplete.plugin.focus()},0)}_isSecondaryOpen(){return this._$secondary.hasClass("show")}_hideSearch(){this._$searchFlyover.removeClass("show")}_showSecondary(){this._$secondary.addClass("show")}_tryHideSecondary(t){var e;return!!this._isSecondaryOpen()&&!!(e=this._getActiveGroup())&&t===e.attr("id")&&(this._$secondary.removeClass("show"),!0)}_setActiveLink(t){this._$links.removeClass("active"),t&&t.addClass("active")}_getActiveGroup(){var t=this._$groups.filter(".show");return 0===t.length?void 0:r(t[0])}_tryRestoreInitialGroup(){return 0!==this._$initialActiveLink.length&&(this._$initialActiveLink.click(),!0)}_showGroup(t){this._$groups.filter("#"+t).addClass("show")}_hideGroups(){this._$groups.removeClass("show")}}r.fn.header2Desktop=function(){new i(this)}}},{}],136:[function(t,e,n){var r=(t=t("../../services/browser-events"))&&t.__esModule?t:{default:t};{class i{constructor(t){this._$element=t,this._initialize()}_initialize(){this._$navigationBlock=this._$element.find(".navigation-block"),this._$navGroupsLevel2=this._$element.find(".nav-group.level-2"),r.default.on("resize",()=>{this._close()}),this._registerListeners()}_registerListeners(){let n=this;this._$element.find(".action-open-navigation").on("click",()=>{this._open()}),this._$element.find(".action-close-navigation").on("click",()=>{this._close()}),this._$element.find(".nav-link").on("click",function(t){var e=this.dataset.targetId;e?(n._showLevel2(e),t.preventDefault()):this.classList.contains("nav-back")&&(n._showLevel1(),t.preventDefault())})}_open(){this._$element.addClass("open")}_close(){this._$element.removeClass("open"),this._showLevel1()}_showLevel2(t){t=this._$element.find("#"+t);this._$navGroupsLevel2.removeClass("show"),t.addClass("show"),this._$navigationBlock.addClass("show-level-2")}_showLevel1(){this._$navigationBlock.removeClass("show-level-2")}}jQuery.fn.header2Mobile=function(){new i(this)}}},{"../../services/browser-events":160}],137:[function(t,e,n){var r;(r=jQuery).fn.heroStageHome=function(){return this.each(function(t,e){e=r(e);e.find(".slider").slick({prevArrow:e.find(".btn-prev"),nextArrow:e.find(".btn-next"),arrows:!1,draggable:!1,swipe:!1,infinite:!0,dots:!1,slidesToScroll:1,slidesToShow:3,responsive:[{breakpoint:991,settings:{slidesToShow:2,arrows:!0,dots:!0,swipe:!0}},{breakpoint:768,settings:{slidesToShow:1,arrows:!0,dots:!0,swipe:!0}}]})}),this}},{}],138:[function(t,e,n){var r,i=t("../services/scroll-animations.js");t("../services/browser-events");function o(t){var e=(window.pageYOffset||document.documentElement.scrollTop)+window.innerHeight;t.offset().top+100<e&&(r(window).off("scroll",o),t.addClass("zoom"))}(r=jQuery).fn.imageFull=function(){var t;return this.hasClass("zoom-animation")&&r(window).scroll(()=>o(t)),this.hasClass("scroll-animation")&&this.each(function(t,e){console.log("init image full scroll animation",e),console.log("animate!"),e=e,(0,i.initGsap)(),(0,i.initTextBoxAnimation)(e,".image-full__wrapper")}),this}},{"../services/browser-events":160,"../services/scroll-animations.js":164}],139:[function(t,e,n){var l=(t=t("chart.js/auto"))&&t.__esModule?t:{default:t};jQuery.fn.infographic=function(){var n;if(this.find("#infographic")){n=this.find("#infographic");let r=this.attr("data-delimiter");var o=JSON.parse(this.find(".chart-data").text()),a=o.map(t=>{t=t.label;return t}),s=o.map(t=>{t=t.background;return t}),u=o.map(t=>{t=t.value;return t});let t=new l.default(n,{type:"doughnut",data:{labels:a,datasets:[{backgroundColor:s,data:u}]},options:{elements:{arc:{borderWidth:0}},animation:{duration:0},responsive:!0,maintainAspectRatio:!1,cutout:115,events:[],plugins:{legend:{dis
1play:!1}}}}),e=window.matchMedia("(max-width: 340px)"),i=(e.addEventListener("change",()=>{e.matches?t.options.cutout=103:t.options.cutout=115}),this.find("#legend"));return o.forEach(t=>{var e,n;i.append('<li class="infographic-item"><span class="item-value">'+(e=t.value,"."===r?((n=e.toString().split("."))[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")):((n=e.toString().split("."))[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),n.join(",")))+" "+t.unit+'</span><span class="item-color" style="background:'+t.background+'"></span><span class="item-label">'+t.label+"</span></li>")}),this}}},{"chart.js/auto":1}],140:[function(t,e,n){var i,o=(t=t("../services/cookie"))&&t.__esModule?t:{default:t};(i=jQuery).fn.mediaAndDownloads=function(){let e=i(".tab-links a"),n=i(".tab"),t=i(this).data("active-tab");function r(t){n.hide(),i("#"+t).show(),e.removeClass("active"),i("[data-tab-id='".concat(t,"']")).addClass("active"),o.default.set("active-tab",t,365)}r(t=o.default.has("active-tab")?o.default.get("active-tab"):t),e.on("click",function(t){t.preventDefault(),r(i(this).data("tab-id"))})}},{"../services/cookie":161}],141:[function(t,e,n){var j,R=o(t("../services/cookie")),r=o(t("../vendor/waterfall.min")),i=o(t("../services/browser-events"));function o(t){return t&&t.__esModule?t:{default:t}}(j=jQuery).fn.newsAndStories=function(){let m=new URL(window.location.href),_=this,y=j(this).find(".element-loader"),t=this.find(".grid"),b=j(this).data("teaser-number");var e=j(this).data("source");let x=j(".tab-links a"),w,S=[],k,P=[],M,E=j(".tab"),A=j(".grid-item-template").html(),O=j(".list-item-template").html(),C=j(".tag-template").html(),D=j(".load-more"),I=j(".tag-button"),T=j(this).data("active-tab");function L(){window.setTimeout(function(){(0,r.default)(t.get(0))},0)}R.default.has("active-tab")&&(T=R.default.get("active-tab")),y.show(),j.getJSON(e,function(t){let e=m.searchParams.get("tag"),n=m.searchParams.get("pagetype"),r=m.searchParams.get("year");let i=[],o,a,s,u;var l=t;function c(){0!==P.length||0!==S.length||0!==i.length?_.find(".reset-filters").addClass("visible"):_.find(".reset-filters").removeClass("visible")}function h(){o=t.results,a=o.length,s=0,u=s+12,j(".news-grid").empty(),j(".news-list").empty()}function f(t){E.hide(),j("#"+t).show(),x.removeClass("active"),j("[data-tab-id='".concat(t,"']")).addClass("active"),R.default.set("active-tab",t,365),void 0!==o&&0!==o.length&&L()}function p(){y.show(),o.sort(function(t,e){return new Date(e.release_date)-new Date(t.release_date)});let e=o.slice(s,u),n=o.slice(s,u+3);0===(a=o.length)?j(".no-results").css("display","block"):j(".no-results").css("display","none"),document.querySelector("#num-rows").innerHTML=a+" ",j.each(e,function(t){t=e[t],t=g(A,t);j(".news-grid").append(t)}),j.each(n,function(t){t=n[t],t=g(O,t);j(".news-list").append(t)}),u>=o.length?D.hide():D.show(),s=u,u+=b,0!==o.length&&L(),y.hide()}function d(){h(),0!==i.length&&(o=j.grep(o,function(e,t){return i.some(t=>e.tag_keyword.includes(t))})),S.length&&(o=o.filter(t=>S.includes(new Date(t.release_date).getFullYear().toString()))),P.length&&(o=o.filter(t=>P.includes(t.page_type_keyword.toString())))}function g(t,e){let r=t,i=Object.assign({},e);j.each(["lang","link","link_target","release_date","page_type_keyword","title","description","teaser_image_640w_stored_only","teaser_image_960w_stored_only","teaser_image_1280w_stored_only","teaser_image_1600w_stored_only"],function(t,e){var n;void 0===i[e]&&(i[e]=""),"lang"===e&&("de"===M?i[e]=M:i[e]="en-us"),"release_date"===e&&("de"===M?i[e]=(n=i[e],moment(new Date(n)).format("DD.MM.YYYY")):i[e]=(n=i[e],moment(new Date(n)).format("DD/MM/YYYY"))),r=r.replaceAll("{".concat(e,"}"),i[e])});t=j(r);t.find(".element-image img").each(function(){var t=j(this);""===t.attr("src")&&t.closest("div.element-image").remove()});let n=t.find(".tags");return j.each(e.tag_keyword,function(t,e){e=C.replace("{tag_keyword}",e);n.append(e)}),t}function v(){var t=new URLSearchParams({tag:i,pagetype:P,year:S});m.search=t,window.history.replaceState(null,null,m.href),sessionStorage.setItem("filter-url",m.href)}(l=l.results[0]).language_keyword&&(M=l.language_keyword.toString()),f(T),h(),p(),c(),setTimeout(function(){e&&e.split(",").forEach(t=>{j(".tag-button:contains("+t+")").click()}),n&&n.split(",").forEach(t=>{j(".pagetype").each(function(){j(this).attr("data-page-type")==t&&j(this).click()})}),r&&r.split(",").forEach(t=>{j(".year:contains("+t+")").click()})},100),j(document).on("click",function(t){var e;t=t,(e=j(".dropdown"))===t.target||e.has(t.target).length||e.removeClass("open")}),j(".reset-filters").on("click",function(t){t.preventDefault(),P.length=0,S.length=0,i.length=0,_.find(".pagetype, .year").removeClass("active"),I.removeClass("active"),d(),p(),c(),window.history.replaceState(null,null,window.location.href.replace(window.location.search,"")),v()}),j(".dropdown a").on("click",function(t){t.preventDefault(),j(this).parent().toggleClass("open")}),j(".dropdown .year").on("click",function(t){t.preventDefault();var e,t=j(this).text();w=w===t?void 0:t,S.includes(t)?(e=S.indexOf(t),S.splice(e,1)):S.push(t),e=j(this),S.includes(e.text())?e.addClass("active"):e.removeClass("active"),d(),p(),c(),v()}),j(".dropdown .pagetype").on("click",function(t){t.preventDefault();var e,t=j(this).attr("data-page-type");k=k===t?void 0:t,P.includes(t)?(e=P.indexOf(t),P.splice(e,1)):P.push(t),e=j(this),P.includes(e.attr("data-page-type"))?e.addClass("active"):e.removeClass("active"),d(),p(),c(),v()}),x.on("click",function(t){t.preventDefault(),f(j(this).data("tab-id"))}),I.on("click",function(t){t.preventDefault();var t=j(this),e=t.text(),n=i.indexOf(e);-1===n?(i.push(e),t.addClass("active")):(i.splice(n,1),t.removeClass("active")),c(),d(),p(),v()}),D.on("click",function(){p()})}).always(function(){y.hide()}),i.default.on("resize",L)}},{"../services/browser-events":160,"../services/cookie":161,"../vendor/waterfall.min":170}],142:[function(t,e,n){var a=t("../services/scroll-animations.js");jQuery.fn.overscrollingSlider=function(){return gsap&&ScrollTrigger&&this.each(function(t,e){(0,a.initGsap)();e.querySelector(".overscrolling-slider");var n=e.querySelector(".overscrolling-slider__background-images"),r=(gsap.timeline({scrollTrigger:{trigger:e,pin:n,pinSpacer:!0,scrub:!0,start:()=>{var t=gsap.getProperty("html","--header-height")||0;return"top ".concat(t)},end:"bottom bottom"}}),Array.from(e.querySelectorAll(".overscrolling-slider__image-container"))),i=Array.from(e.querySelectorAll(".overscrolling-slider__slide"));for(let e=0;e<r.length;e++){let t=r[e];var o=i[e];ScrollTrigger.create({trigger:o,start:"top 75%",end:"top 75%",scrub:.5,onEnter:()=>{gsap.set(t,{opacity:1})},onEnterBack:()=>{0!==e&&gsap.set(t,{opacity:0}
1)}})}}),this}},{"../services/scroll-animations.js":164}],143:[function(t,e,n){var r=t("../services/scroll-animations.js");jQuery.fn.pageNewsStories=function(){var t;return(gsap||ScrollTrigger)&&"true"===(t=this[0]).getAttribute("data-animate-text")&&((0,r.initGsap)(),t=(t=t).querySelectorAll([".component-topic-teaser-home h2",".component-topic-teaser-home h2 ~ p",".component-topic-teaser-recommendations h2",".component-topic-teaser-recommendations h2 ~ p",".component-brand .h2",".component-brand .h2 ~ p",".h2:not(.element-text-box .h2)",".h2:not(.element-text-box .h2) ~ p","blockquote:not(.element-text-box blockquote)",".element-text > *"]),gsap.set(t,{autoAlpha:0,y:70}),t.forEach(t=>{t&&gsap.to(t,{duration:1.5,autoAlpha:1,y:0,ease:"power2.out",scrollTrigger:{trigger:t,start:"top 80%",end:"top 50%",toggleActions:"play none none none",once:!0}})})),this}},{"../services/scroll-animations.js":164}],144:[function(t,e,n){jQuery.fn.popup=function(){var t=this.find(".link-list-button"),e=this.find(".infobox");return t.magnificPopup({type:"inline",midClick:!0,closeMarkup:'<span class="custom-close-btn-link-list"><button class="mfp-close">×</button></span>'}),e.magnificPopup({type:"inline",midClick:!0,closeMarkup:'<span class="custom-close-btn-link-list"><button class="mfp-close">×</button></span>'}),this}},{}],145:[function(t,e,n){var r=a(t("../vendor/handlebars-v4.7.8")),i=t("../vendor/smartsearch.bundle"),o=a(t("../services/url-params"));function a(t){return t&&t.__esModule?t:{default:t}}{var s=jQuery;class u{constructor(t,e){this._$element=t,this._element=e,this._initialize()}_initialize(){this._prepareCategories(),this._prepareTags(),this._resultsContainer=this._element.querySelector(".search-result-items"),this._resultsTemplateHtml=this._$element.find(".search-result-item-template").html(),this._resultsHandlebars=r.default.compile(this._resultsTemplateHtml),this._$loadMore=this._$element.find(".load-more"),this._loader=this._element.querySelector(".loader"),this._loadSteps=this._element.dataset.loadSteps,this._insertSearchTerm(),this._registerListeners(),this._createSmartSearch()}_prepareCategories(){var t=this._element.querySelector(".filter-data").innerText,e=this._$element.find(".search-result-categories-template").html();this._categories={$container:this._$element.find(".search-filter"),handlebars:r.default.compile(e),data:JSON.parse(t)}}_prepareTags(){var t=this._$element.find(".search-result-tag-template").html(),e=this._$element.find(".element-tag-button-list");this._tags={$container:e,handlebars:r.default.compile(t),data:void 0,preflightHtml:e.html()}}_insertSearchTerm(){let t=this._getSearchTerm(),e,n;n=(e=this._$element.find(".no-results-message")).text().replace("{searchTerm}",t),e.text(n),n=(e=this._$element.find(".search-headline")).text().replace("{searchTerm}",t),e.text(n)}_registerListeners(){this._$loadMore.on("click",()=>{this._renderResults(this._loadSteps)})}_createSmartSearch(){var t=this._element.dataset.fsssHost,e=this._element.dataset.fsssEndpoint,n=this._element.dataset.fsssPreparedSearch,r=this._getSearchTerm(),t=new i.SmartSearch(t,n,{endpoint:e,customParams:this._getCustomParams()});this._fsss={smartSearch:t,basePage:void 0,categoriesPage:void 0,tagsPage:void 0,resultData:[]},t.search(r).then(t=>{console.log("Base page:",t),this._updateBaseFilter(t),this._hideLoader()}).catch(t=>{console.log(t.message),this._showNoResults()}).finally(()=>{this._hideLoader()})}_getCustomParams(){var t=[],e={},n=document.documentElement.lang;let r;return r="de-DE"===n?"de":"en",t.push({language:r}),e[this._element.dataset.initialFacetParameter]=this._element.dataset.initialFacetValue,t.push(e),t}_getSearchTerm(){let t=new o.default(document.location.href),e=t.getParameter("search-term"),n=""===e.replaceAll(" ","");return e=n?"*":e}_updateBaseFilter(t){this._fsss.basePage=t,this._fsss.categoriesPage=t,this._fsss.tagsPage=t,this._renderCategories(t),this._renderTags(t),this._renderResults(this._loadSteps,t),this._reFilterCategoryWhenEmpty(t)}_reFilterCategoryWhenEmpty(t){var e=t.getFacet(this._categories.data.facetName),e=this._getFirstCategoryWithResults(e);e!==this._element.dataset.initialFacetValue&&this._activateCategory(t,e)}_updateCategoriesFilter(t){this._fsss.categoriesPage=t,this._fsss.tagsPage=t,this._renderTags(),this._renderResults(this._loadSteps,t)}_updateTagsFilter(t){this._fsss.tagsPage=t,this._fsss.resultData=this._getResultData(t),this._renderResults(this._loadSteps,t)}_filterByCategory(t){this._filter(this._fsss.basePage,this._categories.data.facetName,t,(t,e)=>{this._updateCategoriesFilter(t)},t=>{this._renderPreflightTags()})}_filterByTag(t,e){e?this._filter(this._fsss.categoriesPage,t,e,(t,e)=>{this._updateTagsFilter(t),e.filter()}):this._resetFilter(this._fsss.categoriesPage,t,(t,e)=>{this._updateTagsFilter(t)})}_resetFilter(t,e,n){let r=t.getFacet(e);this._showLoader(),r.filter().then(t=>{n(t,r),this._updateShowResults(t.searchResults)}).finally(()=>{this._hideLoader()})}_filter(t,e,n,r,i){let o=t.getFacet(e);i=i||function(){},this._showLoader(),o.filter(n).then(t=>{r(t,o),this._updateShowResults(t.searchResults)}).catch(t=>{console.log(t.message),i(o),this._showNoResults()}).finally(()=>{this._hideLoader()})}_showLoader(){this._loader.classList.add("show")}_hideLoader(){this._loader.classList.remove("show")}_updateShowResults(t){0<t.length?this._hideNoResults():this._showNoResults()}_showNoResults(){this._resultsContainer.classList.add("hide")}_hideNoResults(){this._resultsContainer.classList.remove("hide")}_activateCategory(t,n){let e=t.getFacet(this._categories.data.facetName),r=this._categories.$container.find(".category-link"),i;r.each((t,e)=>{e.dataset.facetValue===n&&(i=e)}),i.classList.contains("active")||(this._updateActiveFacet(e,n),this._filterByCategory(n),r.removeClass("active"),i.classList.add("active"))}_renderCategories(e){let n=this,t=e.getFacet(this._categories.data.facetName),r;this._updateActiveFacet(t,this._element.dataset.initialFacetValue),r=this._categories.handlebars(this._categories.data.facets),this._categories.$container.html(r),this._categories.$container.find(".category-link").on("click",function(t){t.preventDefault(),n._activateCategory(e,this.dataset.facetValue)})}_getFirstCategoryWithResults(t){let e=this._element.dataset.initialFacetValue,n=[];
1return 0===t.counts.length||(t.counts.forEach(t=>{n.push(t.value)}),-1<n.indexOf(e))?e:n[0]}_updateActiveFacet(t,r){let i;this._tags.data=void 0,this._categories.data.facets.forEach(n=>{n.count=0,t.counts.forEach(t=>{var e=t.value===r;n.value===t.value&&(n.count=t.count,e)&&((i=n).active=!0,this._tags.data=n.tags)})})}_renderTags(){let i=this,t,o;this._tags.data?(t=this._tags.handlebars(this._tags.data),this._tags.$container.html(t),(o=this._tags.$container.find(".tag-button")).on("click",function(t){let e=this.classList.contains("active"),n=this.dataset.facetValue,r=this.dataset.facetName;t.preventDefault(),e&&(n=void 0),i._filterByTag(r,n),o.removeClass("active"),e||this.classList.add("active")})):(this._renderPreflightTags(!0),this._showNoResults())}_renderPreflightTags(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0]?"":this._tags.preflightHtml;this._tags.$container.html(t)}_getResultData(t){let i=[],e=this._fsss.smartSearch.getPageRenderer(t),o="".concat(this._tags.data.facetName,"_keyword");return e.searchResultTemplate.templateFunction=(t,e)=>{var n=t.title[0],r=t.page_type_keyword[0];return i.push({url:t.link,title:n,priorityTag:r,tags:t[o]}),""}
1,e.renderSearchResultsToHTMLElement(this._resultsContainer),i}_renderResults(t,e){var n=s(this._resultsContainer);this._tags.data&&(e&&(this._fsss.resultData=this._getResultData(e),n.html("")),e=this._fsss.resultData.splice(0,t),t=this._resultsHandlebars(e),n.append(t),0<this._fsss.resultData.length?this._$loadMore.addClass("show"):this._$loadMore.removeClass("show"))}}s.fn.searchResult=function(){var t=this.get(0);t.plugin=new u(this,t)}}},{"../services/url-params":166,"../vendor/handlebars-v4.7.8":168,"../vendor/smartsearch.bundle":169}],146:[function(t,e,n){var r;(r=jQuery).fn.slider=function(){return this.each(function(t,e){e=r(e);e.find(".slider").slick({prevArrow:e.find(".btn-prev"),nextArrow:e.find(".btn-next"),infinite:!0,dots:!0,fade:!0})}),this}},{}],147:[function(t,e,n){jQuery.fn.stage=function(){let s=this.find("video");function t(){for(let t=0;t<s.length;t++){var e=s[t],n=e.offsetLeft,r=e.offsetTop,i=e.offsetWidth,o=e.offsetHeight,a=r+o;.4<Math.max(0,Math.min(i,window.pageXOffset+window.innerWidth-n,n+i-window.pageXOffset))*Math.max(0,Math.min(o,window.pageYOffset+window.innerHeight-r,a-window.pageYOffset))/(i*o)?e.play():e.pause()}}window.addEventListener("scroll",t,!1),window.addEventListener("resize",t,!1)}},{}],148:[function(t,e,n){var r;(r=jQuery).fn.stickyBackButton=function(){var t=this.find(".back-to-filter");this.find(".back-to-filter").attr("href");sessionStorage.getItem("filter-url")&&t.attr("href",sessionStorage.getItem("filter-url")),this.on("click",function(){r(this).toggleClass("active")})}},{}],149:[function(t,e,n){var r;(r=jQuery).fn.stickyBar=function(){let i=this;let o=i.find(".list-template").html();r("[data-scroll-topic]").each(function(t){var e=this.dataset.scrollTopic,n=i.find(".content-list"),r=this.id;r&&(t++,r=o.replace("{id}",r).replace("{index}",t).replace("{title}",e),n.append(r))}),i.on("click",function(){i.toggleClass("active")}),sessionStorage.getItem("sticky-bar")||setTimeout(function(){i.addClass("active"),setTimeout(function(){i.removeClass("active"),sessionStorage.setItem("sticky-bar","sticky-bar-session")},2e3)},4e3),r('.component-sticky-bar a[href^="#"]').on("click",function(t){t.preventDefault();var t=this.hash,e=r(t);r("html, body").stop().animate({scrollTop:e.offset().top-200}),window.location.hash=t})}},{}],150:[function(t,e,n){var r;(r=jQuery).fn.teaserSlider=function(){return this.each(function(t,e){e=r(e);e.find(".slider").slick({prevArrow:e.find(".btn-prev"),nextArrow:e.find(".btn-next"),infinite:!0,dots:!0,slidesToScroll:1,slidesToShow:e.data("slidesToShow"),responsive:[{breakpoint:768,settings:{slidesToShow:1,dots:!0}}]})}),this}},{}],151:[function(t,e,n){var r,h,f=(r=t("../vendor/handlebars-v4.7.8.js"))&&r.__esModule?r:{default:r};t("lodash/seq");(h=jQuery).fn.topicTeaserHome=function(){let r=document.documentElement.lang;var t=h(this).find(".date");let c=991<window.innerWidth;return this.each(function(t,e){let i=h(e),o=i.find(".slider"),a,s=i.attr("data-cycle-interval"),u;var e=i.find(".tab"),n=(a=i.attr("data-url"),i.find(".tab-navigation li a").attr("data-facet"));function l(){if(c){var e=i.find(".tab-navigation li a.active").parent();let t;(t=(e.next().length?e.next():i.find(".tab-navigation li:first-child")).find("a")).click()}}i.find(".tab-navigation li a").attr("data-facet")&&(n=a+n,i.find(".tab-navigation li a").attr("data-facet"))&&h.get(n,function(t){var e=i.find("#json-content").html(),e=f.default.compile(e);i.find(".slider").slick("unslick"),i.find(".slider").eq(0).html(e(t)),i.find(".component-topic-teaser-slider").topicTeaserSlider()}).fail(function(){console.error("error fetching data")}),i.find(".tab-navigation li a").on("click",function(t){var e;{var n,r;clearInterval(u),t.preventDefault(),t=h(this),i.find(".tab-navigation li a").removeClass("active"),t.addClass("active"),t=h(this),e=t.data("tab-id"),e=i.find("#tab-"+e),i.find(".tab").removeClass("active"),e.addClass("active"),i.find(".slider.slick-initialized").slick("setPosition"),t.attr("data-facet")&&(t=t.attr("data-facet"),n=a,r=e,n+=t,h.get(n,function(t){var e=h("#json-content").html(),e=f.default.compile(e);o.slick("unslick"),r.find(".slider").html(e(t)),i.find(".component-topic-teaser-slider").topicTeaserSlider()}).fail(function(){console.log("error fetching data")}))}u=setInterval(l,s)}),h(window).scroll(function(){var t,e,n,r;clearInterval(u),t=i.offset().top+150,e=i.offset().top+i.outerHeight()-500,n=h(window).scrollTop()+h(window).innerHeight(),r=h(window).scrollTop(),t<n&&r<e?u=setInterval(l,s):clearInterval(u)}),e.each(function(){h(this).on({mouseenter:function(){clearInterval(u)},mouseleave:function(){clearInterval(u),u=setInterval(l,s)},mousemove:function(){clearInterval(u)},mouseover:function(){clearInterval(u)}}),i.is(":hover")&&clearInterval(u)}),f.default.registerHelper("dateFormat",function(t,e){e=e&&e.hash&&e.hash.format||"DD.MM.YYYY";return moment(t).format(e)})}),t.each(function(){var t=h(this).text();"de"===r||"de-DE"===r?h(this).text(moment(new Date(t)).format("DD.MM.YYYY")):h(this).text(moment(new Date(t)).format("DD/MM/YYYY"))}),f.default.registerHelper("dateFormat",function(t,e){let n;return n="de-DE"===r||"de"===r?e&&e.hash&&e.hash.format||"DD.MM.YYYY":e&&e.hash&&e.hash.format||"DD/MM/YYYY",moment(t).format(n)}),f.default.registerHelper("hyphenopolyFormatLang",function(t){return"en"===t.toString()?"en-us":"de"}),f.default.registerHelper("each_upto",function(t,e){var n=h("#json-content").attr("data-teaser-number");if(!t||0===t.length)return e.inverse(this);for(var r=[],i=0;i<n&&i<t.length;++i)r.push(e.fn(t[i]));return r.join("")}),this}},{"../vendor/handlebars-v4.7.8.js":168,"lodash/seq":113}],152:[function(t,e,n){var a,s=(t=t("../vendor/handlebars-v4.7.8.js"))&&t.__esModule?t:{default:t};(a=jQuery).fn.topicTeaserRecommendations=function(){let i=a(this).find(".element-loader"),o;return this.each(function(t,e){let n=a(e),r=n.find(".slider");e=n.attr("data-url");e&&(i.show(),a.get(e,function(t){o=t.results[0].language_keyword.toString(),s.default.registerHelper("dateFormat",function(t,e){let n;return n="de-DE"===o||"de"===o?e&&e.hash&&e.hash.format||"DD.MM.YYYY":e&&e.hash&&e.hash.format||"DD/MM/YYYY",moment(t).format(n)}),s.default.registerHelper("hyphenopolyFormatLang",function(t){return"en"===t.toString()?"en-us":"de"});var e=n.find("#recommendations-json-content").html(),e=s.default.compile(e);r.slick("unslick"),r.html(e(t)),n.find(".component-topic-teaser-slider").topicTeaserSlider()}).fail(function(){console.log("error fetching data")}).always(function(){i.hide()})),s.default.registerHelper("each_upto",function(t,e){var n=a("#recommendations-json-content").attr("data-teaser-number");if(!t||0===t.length)return e.inverse(this);for(var r=[],i=0;i<n&&i<t.length;++i)r.push(e.fn(t[i]));return r.join("")})}),this}},{"../vendor/handlebars-v4.7.8.js":168}],153:[function(t,e,n){var r;(r=jQuery).fn.topicTeaserSlider=function(){return this.each(function(t,e){e=r(e);e.find(".slider-item").length&&e.find(".slider").slick({prevArrow:e.find(".btn-prev"),nextArrow:e.find(".btn-next"),infinite:!0,dots:!0,slidesToScroll:1,slidesToShow:e.data("slidesToShow"),responsive:[{breakpoint:992,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1}}]})}),this}},{}],154:[function(t,e,n){var r=t("../services/scroll-animations.js");jQuery.fn.videoLoop=function(){return(gsap||ScrollTrigger)&&((0,r.initGsap)(),this.each(function(t,e){(0,r.initTextBoxAnimation)(e,".video-loop__wrapper",".element-text-box, .video-loop__cover-headline")})),this}},{"../services/scroll-animations.js":164}],155:[function(t,e,n){jQuery.fn.video=function(){let t=this;var e=t.find(".video"),n=t.find(".video a");let r=t.find("a").attr("href"),i,o;return 767<=window.innerWidth?e.magnificPopup({items:{src:r},type:"iframe",closeBtnInside:!0,closeMarkup:'<span class="custom-close-btn"><button class="mfp-close">×</button></span>',iframe:{markup:'<div class="mfp-iframe-scaler magnific-popup"><div class="mfp-close"></div>
1<iframe class="mfp-iframe" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>',patterns:{youtube:{src:r}},srcAction:"iframe_src"}}):(i=n.children().clone(),o=n.parent(),n.remove(),i.appendTo(o),t.find("img").click(function(){t.find(".mobile-iframe-container").html('<iframe src="'+r+'" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen wmode="Opaque"></iframe>')})),this}},{}],156:[function(t,e,n){var r=(r=t("./services/app"))&&r.__esModule?r:{default:r};t("./plugins/header2/header2-mobile"),t("./plugins/header2/header2-desktop"),t("./plugins/autocomplete"),t("./plugins/accordion"),t("./plugins/stage"),t("./plugins/slider"),t("./plugins/footer"),t("./plugins/teaser-slider"),t("./plugins/topic-teaser-home"),t("./plugins/topic-teaser-recommendations"),t("./plugins/topic-teaser-slider"),t("./plugins/sticky-bar"),t("./plugins/infographic"),t("./plugins/news-and-stories"),t("./plugins/cards"),t("./plugins/collage"),t("./plugins/facts-and-figures"),t("./plugins/hero-stage-home"),t("./plugins/video"),t("./plugins/video-loop"),t("./plugins/search-result"),t("./plugins/media-and-downloads"),t("./plugins/popup"),t("./plugins/image-full"),t("./plugins/sticky-back-button"),t("./plugins/content-type-and-tags"),t("./plugins/overscrolling-slider"),t("./plugins/page-news-stories.js"),window.app=r.default,window.app.bootstrap()},{"./plugins/accordion":128,"./plugins/autocomplete":129,"./plugins/cards":130,"./plugins/collage":131,"./plugins/content-type-and-tags":132,"./plugins/facts-and-figures":133,"./plugins/footer":134,"./plugins/header2/header2-desktop":135,"./plugins/header2/header2-mobile":136,"./plugins/hero-stage-home":137,"./plugins/image-full":138,"./plugins/infographic":139,"./plugins/media-and-downloads":140,"./plugins/news-and-stories":141,"./plugins/overscrolling-slider":142,"./plugins/page-news-stories.js":143,"./plugins/popup":144,"./plugins/search-result":145,"./plugins/slider":146,"./plugins/stage":147,"./plugins/sticky-back-button":148,"./plugins/sticky-bar":149,"./plugins/teaser-slider":150,"./plugins/topic-teaser-home":151,"./plugins/topic-teaser-recommendations":152,"./plugins/topic-teaser-slider":153,"./plugins/video":155,"./plugins/video-loop":154,"./services/app":157}],157:[function(t,e,n){var r=(r=t("./event-hub"))&&r.__esModule?r:{default:r};var i,o=t("./body-scrolling"),a=t("./breakpoint"),s=t("./browser-events"),u=t("./event-bubbling"),l=t("./secure-external-links");e.exports=(i=jQuery,{bodyScrolling:o,eventHub:r.default,browserEvents:s,eventBubbling:u,breakpoint:a,bootstrap:function(){i(function(){a.initialize(),u.initialize(),l.initialize()}),i(function(){i("[data-plugin]").each(function(t,e){var n=i(e),r=n.data("plugin");i.fn[r]?n[r]():console.error("Unavailable plugin detected:",r,e)})})}})},{"./body-scrolling":158,"./breakpoint":159,"./browser-events":160,"./event-bubbling":162,"./event-hub":163,"./secure-external-links":165}],158:[function(t,e,n){var r,i,o;e.exports=(o=jQuery("body"),{disable:function(){this._delay(),i=!1},enable:function(){this._delay(),void 0===i&&(i=!0)},_delay:function(){r=r||window.setTimeout(this._commit,0)},_commit:function(){o.toggleClass("body-no-scroll",!i),r=i=void 0}})},{}],159:[function(t,e,n){var r=o(t("lodash")),i=o(t("./event-hub"));function o(t){return t&&t.__esModule?t:{default:t}}var a,s,u,l,c,h=t("./browser-events");e.exports=(a=jQuery,u=a(".element-breakpoint .breakpoint"),l={xs:".breakpoint-xs",sm:".breakpoint-sm",md:".breakpoint-md",lg:".breakpoint-lg",xl:".breakpoint-xl"},c=Object.keys(l),{initialize:function(){h.on("resize",()=>{this._hasBreakPointChanged()&&i.default.trigger("break-point","change")})},is:function(t){return u.filter(l[t]).is(":visible")},from:function(t){var t=c.indexOf(t),t=c.slice(t),e=[];return r.default.each(t,function(t){e.push(l[t])}),t=e.join(","),u.filter(t).is(":visible")},to:function(t){return!this.from(t)},fromTo:function(t,e){return this.from(t)&&this.to(e)},getCurrentBreakpoint:function(){return a(".element-breakpoint .breakpoint:visible").data("breakpoint")},_hasBreakPointChanged:function(){var t=this.getCurrentBreakpoint();return t!==s&&(s=t,!0)},onBreakPointChange:function(t){i.default.on("break-point","change",t)}})},{"./browser-events":160,"./event-hub":163,lodash:108}],160:[function(t,e,n){var r,i,o,a=(t=t("lodash"))&&t.__esModule?t:{default:t};
1e.exports=(t=jQuery,r=t(document),i=t(window),o=window.innerWidth,{on:function(t,e){var n;return"scroll"===t?(n=a.default.throttle(e,250,{leading:!1}),r.on("scroll",n)):"resize"===t&&(n=this._getResizeHandle(e),i.on("resize",n)),n},off:function(t,e){"scroll"===t?r.off("scroll",e):"resize"===t&&i.off("resize",e)},_getResizeHandle(t){return a.default.debounce(()=>{o!==window.innerWidth&&(window.setTimeout(()=>{o=window.innerWidth},0),t())},100)}})},{lodash:108}],161:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={set:function(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),n=r.toUTCString(),document.cookie="{name}={value};expires={expires};path=/".replace("{name}",t).replace("{value}",e).replace("{expires}",n)},get:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return""},has:function(t){return""!==this.get(t)}}},{}],162:[function(t,e,n){var r,i=(t=t("lodash"))&&t.__esModule?t:{default:t};e.exports=(r=jQuery,{_callbacks:{},initialize:function(){let e=this;r("[data-event-bubbling]").on("click touch",this.trigger.bind(this)),r("[data-event-bubbling-intercept]").on("click touch",function(){var t=this.dataset.eventBubblingIntercept;e.intercept(t)})},on:function(t,e){this._callbacks[t]&&console.log('Callback "{namespace}" already registered. Forgot to release it previously?'.replace("{namespace}",t)),this._callbacks[t]=e},off:function(t){delete this._callbacks[t]},has:function(t){return!!this._callbacks[t]},trigger:function(e){i.default.forEach(this._callbacks,function(t){t.eventBubblingIntercept?delete t.eventBubblingIntercept:t(e)})},intercept:function(t){this._callbacks[t]?this._callbacks[t].eventBubblingIntercept=!0:console.log('No callback registered for namespace "{namespace}" and thus cannot be intercepted.'.replace("{namespace}",t))}})},{lodash:108}],163:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=(t=t("lodash"))&&t.__esModule?t:{default:t};n.default={_listeners:{},on:function(t,e,n,r){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push({token:e,truePart:n||function(){},falsePart:r||function(){}})},trigger:function(t,e,n){r.default.forEach(this._listeners[t],function(t){t.token===e?t.truePart(n):t.falsePart(n)})}}},{lodash:108}],164:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initTextBoxAnimation=n.initGsap=void 0;n.initGsap=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"restart none resume reverse";gsap.registerPlugin(ScrollTrigger),gsap.defaults({ease:"none.none"}),ScrollTrigger.config({ignoreMobileResize:!0}),ScrollTrigger.defaults({toggleActions:t})};n.initTextBoxAnimation=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:".element-text-box",e=t.querySelector(e),n=t.querySelector(n);n&&(gsap.set(e,{overflowY:"hidden"}),gsap.set(n,{autoAlpha:0,y:"".concat(1/3*100,"vw")}),gsap.timeline({paused:!0,scrollTrigger:{trigger:t,start:"top 50%",end:"bottom top",toggleActions:"play none none none",once:!0}}).to(n,{autoAlpha:1,y:0,duration:1,ease:"power2.out"},0))}},{}],165:[function(t,e,n){e.exports={_getPath:function(t){return t.parentElement?[t].concat(this._getPath(t.parentElement)):[t]},_getAnchor:function(t){return t.filter(t=>/^a$/i.test(t.nodeName)).shift()},initialize:function(){document.addEventListener("click",t=>{var e=t.target,t=this._getPath(t.target),t=this._getAnchor(t);t&&e.hostname!==location.hostname&&(t.rel="noreferrer")})}}},{}],166:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=class r{constructor(t,e){this.url=t,this._formEncoding=void 0===e||!!e}static createDefault(t){return new r(window.location.href,t)}encodeUriComponent(t){let e=encodeURIComponent(t);return e=this._formEncoding?e.replace(/%20/g,"+"):e}decodeUriComponent(t){let e=t;return this._formEncoding&&(e=e.replace(/\+/g,"%20")),decodeURIComponent(e)}getParameter(t){return t=t.replace(/[\[\]]/g,"\\$&"),(t=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(this.url))&&t[2]?this.decodeUriComponent(t[2]):""}setParameter(t,e){let n,r,i,o,a,s,u;n=this.encodeUriComponent(t),r=this.encodeUriComponent(e),o=(i=this.url.split("?"))[0],a=i[1],s=n+"="+r,u="?"+s,(a=void 0===a?"":"?"+a)&&(t=new RegExp("([?&])"+n+"[^&]*"),e=new RegExp("([?&])"+n+"=[^&;]+[&;]?"),u=null==r||""===r?(u=a.replace(e,"$1")).replace(/[&;]$/,""):null!==a.match(t)?a.replace(t,"$1"+s):""===a?"?"+s:a+"&"+s),u="?"===u?"":u,this.url=o+u}}},{}],167:[function(t,e,n){function r(t){function o(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function n(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)}function r(t,e,n){t.detachEvent?t.detachEvent("on"+e,n):t.removeEventListener(e,n)}function e(r,t,i,e){n(e||document,t,function(t){for(var e,n=t.target||t.srcElement;n&&!(e=o(n,r));)n=n.parentElement;e&&i.call(n,t)})}if(document.querySelector){var i,a={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");e=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t+'">'+t.replace(e,"<b>$1</b>")+"</div>"},onSelect:function(){}};for(i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);for(var s="object"==typeof a.selector?[a.selector]:document.querySelectorAll(a.selector),u=0;u<s.length;u++){var l=s[u],c=(l.sc=document.createElement("div"),l.sc.className="autocomplete-suggestions "+a.menuClass,l.autocompleteAttr=l.getAttribute("autocomplete"),l.setAttribute("autocomplete","off"),l.cache={},l.last_val="",l.updateSC=function(t,e){var n=l.getBoundingClientRect();l.sc.style.left=Math.round(n.left+(window.pageXOffset||document.documentElement.scrollLeft)+a.offsetLeft)+"px",l.sc.style.top=Math.round(n.bottom+(window.pageYOffset||document.documentElement.scrollTop)+a.offsetTop)+"px",l.sc.style.width=Math.round(n.right-n.left)+"px",!t&&(l.sc.style.display="block",l.sc.maxHeight||(l.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(l.sc,null):l.sc.currentStyle).maxHeight)),l.sc.suggestionHeight||(l.sc.suggestionHeight=l.sc.querySelector(".autocomplete-suggestion").offsetHeight),l.sc.suggestionHeight)&&(e?(n=l.sc.scrollTop,0<(t=e.getBoundingClientRect().top-l.sc.getBoundingClientRect().top)+l.sc.suggestionHeight-l.sc.maxHeight?l.sc.scrollTop=t+l.sc.suggestionHeight+n-l.sc.maxHeight:t<0&&(l.sc.scrollTop=t+n)):l.sc.scrollTop=0)},n(window,"resize",l.updateSC),document.body.appendChild(l.sc),e("autocomplete-suggestion","mouseleave",function(){var t=l.sc.querySelector(".autocomplete-suggestion.selected");t&&setTimeout(function(){t.className=t.className.replace("selected","")},20)},l.sc),e("autocomplete-suggestion","mouseover",function(){var t=l.sc.querySelector(".autocomplete-suggestion.selected");t&&(t.className=t.className.replace("selected","")),this.className+=" selected"},l.sc),e("autocomplete-suggestion","mousedown",function(t){var e;o(this,"autocomplete-suggestion")&&(e=this.getAttribute("data-val"),l.value=e,a.onSelect(t,e,this),l.sc.style.display="none")},l.sc),l.blurHandler=function(){try{var e=document.querySelector(".autocomplete-suggestions:hover")}catch(t){e=0}e?l!==document.activeElement&&setTimeout(function(){l.focus()},20):(l.last_val=l.value,l.sc.style.display="none",setTimeout(function(){l.
1sc.style.display="none"},350))},n(l,"blur",l.blurHandler),function(t){var e=l.value;if((l.cache[e]=t).length&&e.length>=a.minChars){for(var n="",r=0;r<t.length;r++)n+=a.renderItem(t[r],e);l.sc.innerHTML=n,l.updateSC(0)}else l.sc.style.display="none"});l.keydownHandler=function(t){var e,n,r=window.event?t.keyCode:t.which;if((40==r||38==r)&&l.sc.innerHTML)return(n=l.sc.querySelector(".autocomplete-suggestion.selected"))?(e=40==r?n.nextSibling:n.previousSibling)?(n.className=n.className.replace("selected",""),e.className+=" selected",l.value=e.getAttribute("data-val")):(n.className=n.className.replace("selected",""),l.value=l.last_val,e=0):((e=40==r?l.sc.querySelector(".autocomplete-suggestion"):l.sc.childNodes[l.sc.childNodes.length-1]).className+=" selected",l.value=e.getAttribute("data-val")),l.updateSC(0,e),!1;27==r?(l.value=l.last_val,l.sc.style.display="none"):13!=r&&9!=r||(n=l.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=l.sc.style.display&&(a.onSelect(t,n.getAttribute("data-val"),n),setTimeout(function(){l.sc.style.display="none"},20))},n(l,"keydown",l.keydownHandler),l.keyupHandler=function(t){t=window.event?t.keyCode:t.which;if(!t||(t<35||40<t)&&13!=t&&27!=t){var e=l.value;if(e.length>=a.minChars){if(e!=l.last_val){if(l.last_val=e,clearTimeout(l.timer),a.cache){if(e in l.cache)return void c(l.cache[e]);for(var n=1;n<e.length-a.minChars;n++){var r=e.slice(0,e.length-n);if(r in l.cache&&!l.cache[r].length)return void c([])}}l.timer=setTimeout(function(){a.source(e,c)},a.delay)}}else l.last_val=e,l.sc.style.display="none"}},n(l,"keyup",l.keyupHandler),l.focusHandler=function(t){l.last_val="\n",l.keyupHandler(t)},a.minChars||n(l,"focus",l.focusHandler)}this.destroy=function(){for(var t=0;t<s.length;t++){var e=s[t];r(window,"resize",e.updateSC),r(e,"blur",e.blurHandler),r(e,"focus",e.focusHandler),r(e,"keydown",e.keydownHandler),r(e,"keyup",e.keyupHandler),e.autocompleteAttr?e.setAttribute("autocomplete",e.autocompleteAttr):e.removeAttribute("autocomplete"),document.body.removeChild(e.sc),e=null}}}}"function"==typeof define&&define.amd?define("autoComplete",function(){return r}):void 0!==e&&e.exports?e.exports=r:window.autoComplete=r},{}],168:[function(t,e,n){var r;r=function(){return r=[function(t,e,n){function r(){var n=h();return n.compile=function(t,e){return u.compile(t,e,n)},n.precompile=function(t,e){return u.precompile(t,e,n)},n.AST=a.default,n.Compiler=u.Compiler,n.JavaScriptCompiler=l.default,n.Parser=s.parser,n.parse=s.parse,n.parseWithoutProcessing=s.parseWithoutProcessing,n}var i=n(1).default;e.__esModule=!0;var o=i(n(2)),a=i(n(84)),s=n(85),u=n(90),l=i(n(91)),c=i(n(88)),i=i(n(83)),h=o.default.create,n=r();n.create=r,i.default(n),n.Visitor=c.default,n.default=n,e.default=n,t.exports=e.default},function(t,e){e.default=function(t){return t&&t.__esModule?t:{default:t}},e.__esModule=!0},function(t,e,n){function r(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=s.default,e.Exception=u.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var i=n(3).default,o=n(1).default;e.__esModule=!0;var a=i(n(4)),s=o(n(77)),u=o(n(6)),l=i(n(5)),c=i(n(78)),i=o(n(83)),o=r();o.create=r,i.default(o),o.default=o,e.default=o,t.exports=e.default},function(t,e){e.default=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__esModule=!0},function(t,e,n){function r(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},s.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}var i=n(1).default,o=(e.__esModule=!0,e.HandlebarsEnvironment=r,n(5)),a=i(n(6)),s=n(10),u=n(70),i=i(n(72)),l=n(73),c=(e.VERSION="4.7.8",e.COMPILER_REVISION=8,e.LAST_COMPATIBLE_COMPILER_REVISION=7,e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},"[object Object]"),n=(r.prototype={constructor:r,logger:i.default,log:i.default.log,registerHelper:function(t,e){if(o.toString.call(t)===c){if(e)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(o.toString.call(t)===c)o.extend(this.partials,t);else{if(void 0===e)throw new a.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(o.toString.call(t)===c){if(e)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}},i.default.log);e.log=n,e.createFrame=o.createFrame,e.logger=i.default},function(t,e){function n(t){return i[t]}function r(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}e.__esModule=!0,e.extend=r,e.indexOf=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return a.test(t)?t.replace(o,n):t},e.isEmpty=function(t){return!t&&0!==t||!(!l(t)||0!==t.length)},e.createFrame=function(t){var e=r({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},o=/[&<>"'`=]/g,a=/[&<>"'`=]/,s=Object.prototype.toString,u=(e.toString=s,function(t){return"function"==typeof t}),l=(u(/x/)&&(e.isFunction=u=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)}),e.isFunction=u,Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===s.call(t)});e.isArray=l},function(t,e,n){function u(t,e){var e=e&&e.loc,n=void 0,r=void 0,i=void 0,o=void 0;e&&(n=e.start.line,r=e.end.line,i=e.start.column,o=e.end.column,t+=" - "+n+":"+i);for(var a=Error.prototype.constructor.call(this,t),s=0;s<c.length;s++)this[c[s]]=a[c[s]];Error.captureStackTrace&&Error.captureStackTrace(this,u);try{e&&(this.lineNumber=n,this.endLineNumber=r,l?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:o,enumerable:!0})):(this.column=i,this.endColumn=o))}catch(t){}}var l=n(7).default,c=(e.__esModule=!0,["description","fileName","lineNumber","endLineNumber","message","name","number","stack"]);u.prototype=new Error,e.default=u,t.exports=e.default},function(t,e,n){t.exports={default:n(8),__esModule:!0}},function(t,e,n){var r=n(9);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var r=n(1).default;
1e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),o.default(t),a.default(t),s.default(t),u.default(t),l.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var i=r(n(11)),o=r(n(12)),a=r(n(65)),s=r(n(66)),u=r(n(67)),l=r(n(68)),c=r(n(69))},function(t,e,n){e.__esModule=!0;var o=n(5);e.default=function(i){i.registerHelper("blockHelperMissing",function(t,e){var n=e.inverse,r=e.fn;return!0===t?r(this):!1===t||null==t?n(this):o.isArray(t)?0<t.length?(e.ids&&(e.ids=[e.name]),i.helpers.each(t,e)):n(this):(e.data&&e.ids&&((n=o.createFrame(e.data)).contextPath=o.appendContextPath(e.data.contextPath,e.name),e={data:n}),r(t,e))})},t.exports=e.default},function(t,e,n){var d=n(13).default,g=n(43).default,v=n(55).default,m=n(60).default,r=n(1).default,_=(e.__esModule=!0,n(5)),y=r(n(6));e.default=function(t){t.registerHelper("each",function(r,t){function e(t,e,n){u&&(u.key=t,u.index=e,u.first=0===e,u.last=!!n,l)&&(u.contextPath=l+t),s+=i(r[t],{data:u,blockParams:_.blockParams([r[t],t],[l+t,null])})}if(!t)throw new y.default("Must pass iterator to #each");var n,i=t.fn,o=t.inverse,a=0,s="",u=void 0,l=void 0;if(t.data&&t.ids&&(l=_.appendContextPath(t.data.contextPath,t.ids[0])+"."),_.isFunction(r)&&(r=r.call(this)),t.data&&(u=_.createFrame(t.data)),r&&"object"==typeof r)if(_.isArray(r))for(var c=r.length;a<c;a++)a in r&&e(a,a,a===r.length-1);else if("function"==typeof d&&r[g]){for(var h=[],f=v(r),p=f.next();!p.done;p=f.next())h.push(p.value);for(c=(r=h).length;a<c;a++)e(a,a,a===r.length-1)}else n=void 0,m(r).forEach(function(t){void 0!==n&&e(n,a-1),n=t,a++}),void 0!==n&&e(n,a-1,!0);return s=0===a?o(this):s})},t.exports=e.default},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){n(15),n(42),t.exports=n(21).Symbol},function(R,z,t){function n(e){var t=C[e]=S(k.prototype);return t._k=e,h&&E&&T(I,e,{configurable:!0,set:function(t){c(this,A)&&c(this[A],e)&&(this[A][e]=!1),T(this,e,b(1,t))}}),t}function r(t,e){W(t);for(var n,r=F(e=y(e)),i=0,o=r.length;i<o;)j(t,n=r[i++],e[n]);return t}function e(t,e){return void 0===e?S(t):r(S(t),e)}function i(t){var e=$.call(this,t);return!(e||!c(this,t)||!c(C,t)||c(this,A)&&this[A][t])||e}function o(t,e){var n=x(t=y(t),e);return!n||!c(C,e)||c(t,A)&&t[A][e]||(n.enumerable=!0),n}function a(t){for(var e,n=V(y(t)),r=[],i=0;n.length>i;)c(C,e=n[i++])||e==A||r.push(e);return r}function s(t){for(var e,n=V(y(t)),r=[],i=0;n.length>i;)c(C,e=n[i++])&&r.push(C[e]);return r}var u=t(9),l=t(16),c=t(17),h=t(18),f=t(20),p=t(24),d=t(19),g=t(27),v=t(28),N=t(30),m=t(29),B=t(31),_=t(36),F=t(37),H=t(38),W=t(39),y=t(32),b=t(26),x=u.getDesc,w=u.setDesc,S=u.create,V=_.get,k=l.Symbol,P=l.JSON,M=P&&P.stringify,E=!1,A=m("_hidden"),$=u.isEnum,O=g("symbol-registry"),C=g("symbols"),D="function"==typeof k,I=Object.prototype,T=h&&d(function(){return 7!=S(w({},"a",{get:function(){return w(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=x(I,e);r&&delete I[e],w(t,e,n),r&&t!==I&&w(I,e,r)}:w,L=function(t){return"symbol"==typeof t},j=function(t,e,n){return(n&&c(C,e)?(n.enumerable?(c(t,A)&&t[A][e]&&(t[A][e]=!1),n=S(n,{enumerable:b(0,!1)})):(c(t,A)||w(t,A,b(1,{})),t[A][e]=!0),T):w)(t,e,n)},g=d(function(){var t=k();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))}),q=(D||(p((k=function(){if(L(this))throw TypeError("Symbol is not a constructor");return n(N(0<arguments.length?arguments[0]:void 0))}).prototype,"toString",function(){return this._k}),L=function(t){return t instanceof k},u.create=e,u.isEnum=i,u.getDesc=o,u.setDesc=j,u.setDescs=r,u.getNames=_.get=a,u.getSymbols=s,h&&!t(41)&&p(I,"propertyIsEnumerable",i,!0)),{for:function(t){return c(O,t+="")?O[t]:O[t]=k(t)},keyFor:function(t){return B(O,t)},useSetter:function(){E=!0},useSimple:function(){E=!1}});u.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=m(t);q[t]=D?e:n(e)}),E=!0,f(f.G+f.W,{Symbol:k}),f(f.S,"Symbol",q),f(f.S+f.F*!D,"Object",{create:e,defineProperty:j,defineProperties:r,getOwnPropertyDescriptor:o,getOwnPropertyNames:a,getOwnPropertySymbols:s}),P&&f(f.S+f.F*(!D||g),"JSON",{stringify:function(t){if(void 0!==t&&!L(t)){for(var n,e=[t],r=1,i=arguments;r<i.length;)e.push(i[r++]);return!(n="function"==typeof(t=e[1])?t:n)&&H(t)||(t=function(t,e){if(n&&(e=n.call(this,t,e)),!L(e))return e}),e[1]=t,M.apply(P,e)}}}),v(k,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},function(t,e){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){function d(t,e,n){var r,i,o,a=t&d.F,s=t&d.G,u=t&d.S,l=t&d.P,c=t&d.B,h=t&d.W,f=s?v:v[e]||(v[e]={}),p=s?g:u?g[e]:(g[e]||{})[_];for(r in n=s?e:n)i=!a&&p&&r in p,i&&r in f||(o=(i?p:n)[r],f[r]=s&&"function"!=typeof p[r]?n[r]:c&&i?m(o,g):h&&p[r]==o?(e=>{function t(t){return this instanceof e?new e(t):e(t)}return t[_]=e[_],t})(o):l&&"function"==typeof o?m(Function.call,o):o,l&&((f[_]||(f[_]={}))[r]=o))}var g=n(16),v=n(21),m=n(22),_="prototype";d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,t.exports=d},function(t,e){t=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=t)},function(t,e,n){var o=n(23);t.exports=function(r,i,t){if(o(r),void 0===i)return r;switch(t){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=n(25)},function(t,e,n){var r=n(9),i=n(26);t.exports=n(18)?function(t,e,n){return r.setDesc(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var n=n(16),r="__core-js_shared__",i=n[r]||(n[r]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(9).setDesc,i=n(17),o=n(29)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(27)("wks"),i=n(30),o=n(16).Symbol;t.exports=function(t){return r[t]||(r[t]=o&&o[t]||(o||i)("Symbol."+t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var s=n(9),u=n(32);t.exports=function(t,e){for(var n,r=u(t),i=s.getKeys(r),o=i.length,a=0;a<o;)if(r[n=i[a++]]===e)return n}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var r=n(32),i=n(9).getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(t){if(!a||"[object Window]"!=o.call(t))return i(r(t));try{return i(t)}catch(t){return a.slice()}}},function(t,e,n){var s=n(9);t.exports=function(t){var e=s.getKeys(t),n=s.getSymbols;if(n)for(var r,i=n(t),o=s.isEnum,a=0;i.length>a;)o.call(t,r=i[a++])&&e.push(r);return e}},function(t,e,n){var r=n(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(40);t.exports=function(t){if(r(t))return t;throw TypeError(t+" is not an object!")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=!0},function(t,e){},function(t,e,n){t.exports={default:n(44),__esModule:!0}},function(t,e,n){n(45),n(51),t.exports=n(29)("iterator")},function(t,e,n){var r=n(46)(!0);n(48)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(t=r(t,e),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var o=n(47),a=n(35);t.exports=function(i){return function(t,e){var n,t=String(a(t)),e=o(e),r=t.length;return e<0||r<=e?i?"":void 0:(n=t.charCodeAt(e))<55296||56319<n||e+1===r||(r=t.charCodeAt(e+1))<56320||57343<r?i?t.charAt(e):n:i?t.slice(e,e+2):r-56320+(n-55296<<10)+65536}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:n)(t)}},function(t,e,n){function g(){return this}
1var v=n(41),m=n(20),_=n(24),y=n(25),b=n(17),x=n(49),w=n(50),S=n(28),k=n(9).getProto,P=n(29)("iterator"),M=!([].keys&&"next"in[].keys()),E="@@iterator",A="values";t.exports=function(t,e,n,r,i,o,a){w(n,e,r);function s(t){if(!M&&t in f)return f[t];switch(t){case"keys":case A:return function(){return new n(this,t)}}return function(){return new n(this,t)}}var u,l,r=e+" Iterator",c=i==A,h=!1,f=t.prototype,p=f[P]||f[E]||i&&f[i],d=p||s(i);if(p&&(t=k(d.call(new t)),S(t,r,!0),!v&&b(f,E)&&y(t,P,g),c)&&p.name!==A&&(h=!0,d=function(){return p.call(this)}),v&&!a||!M&&!h&&f[P]||y(f,P,d),x[e]=d,x[r]=g,i)if(u={values:c?d:s(A),keys:o?d:s("keys"),entries:c?s("entries"):d},a)for(l in u)l in f||_(f,l,u[l]);else m(m.P+m.F*(M||h),e,u);return u}},function(t,e){t.exports={}},function(t,e,n){var r=n(9),i=n(26),o=n(28),a={};n(25)(a,n(29)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r.create(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){n(52);n=n(49);n.NodeList=n.HTMLCollection=n.Array},function(t,e,n){var r=n(53),i=n(54),o=n(49),a=n(32);t.exports=n(48)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(56),__esModule:!0}},function(t,e,n){n(51),n(45),t.exports=n(57)},function(t,e,n){var r=n(39),i=n(58);t.exports=n(21).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(59),i=n(29)("iterator"),o=n(49);t.exports=n(21).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(34),i=n(29)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(t=Object(t))[i])?e:o?r(t):"Object"==(e=r(t))&&"function"==typeof t.callee?"Arguments":e}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){n(62),t.exports=n(21).Object.keys},function(t,e,n){var r=n(63);n(64)("keys",function(e){return function(t){return e(r(t))}})},function(t,e,n){var r=n(35);t.exports=function(t){return Object(r(t))}},function(t,e,n){var i=n(20),o=n(21),a=n(19);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],r={};r[t]=e(n),i(i.S+i.F*a(function(){n(1)}),"Object",r)}},function(t,e,n){var r=n(1).default;e.__esModule=!0;var i=r(n(6));e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},function(t,e,n){var r=n(1).default,i=(e.__esModule=!0,n(5)),o=r(n(6));e.default=function(n){n.registerHelper("if",function(t,e){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return i.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)}),n.registerHelper("unless",function(t,e){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return n.helpers.if.call(this,t,{fn:e.inverse,inverse:e.fn,hash:e.hash})})},t.exports=e.default},function(t,e){e.__esModule=!0,e.default=function(i){i.registerHelper("log",function(){for(var t=[void 0],e=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var r=1;null!=e.hash.level?r=e.hash.level:e.data&&null!=e.data.level&&(r=e.data.level),t[0]=r,i.log.apply(i,t)})},t.exports=e.default},function(t,e){e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e,n){return t&&n.lookupProperty(t,e)})},t.exports=e.default},function(t,e,n){var r=n(1).default,i=(e.__esModule=!0,n(5)),o=r(n(6));e.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");i.isFunction(t)&&(t=t.call(this));var n,r=e.fn;return i.isEmpty(t)?e.inverse(this):(n=e.data,e.data&&e.ids&&((n=i.createFrame(e.data)).contextPath=i.appendContextPath(e.data.contextPath,e.ids[0])),r(t,{data:n,blockParams:i.blockParams([t],[n&&n.contextPath])}
vendor: 9,168 bytes, line 1
1))})},t.exports=e.default},function(t,e,n){var r=n(1).default;e.__esModule=!0,e.registerDefaultDecorators=function(t){i.default(t)};var i=r(n(71))},function(t,e,n){e.__esModule=!0;var a=n(5);e.default=function(t){t.registerDecorator("inline",function(r,i,o,t){var e=r;return i.partials||(i.partials={},e=function(t,e){var n=o.partials,t=(o.partials=a.extend({},n,i.partials),r(t,e));return o.partials=n,t}),i.partials[t.args[0]]=t.fn,e})},t.exports=e.default},function(t,e,n){e.__esModule=!0;var r=n(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){var e;return t="string"==typeof t?0<=(e=r.indexOf(i.methodMap,t.toLowerCase()))?e:parseInt(t,10):t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){t=i.methodMap[t];console[t]||(t="log");for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}}};e.default=i,t.exports=e.default},function(t,e,n){function r(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(!0!==l[t=e]&&(l[t]=!0,u.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}var i=n(74).default,o=n(60).default,a=n(1).default,s=(e.__esModule=!0,e.createProtoAccessControl=function(t){var e=i(null),n=(e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1,i(null));return n.__proto__=!1,{properties:{whitelist:s.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:s.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,n){return r("function"==typeof t?e.methods:e.properties,n)},e.resetLoggedProperties=function(){o(l).forEach(function(t){delete l[t]})},n(76)),u=a(n(72)),l=i(null)},function(t,e,n){t.exports={default:n(75),__esModule:!0}},function(t,e,n){var r=n(9);t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(74).default,i=(e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.extend.apply(void 0,[r(null)].concat(e))},n(5))},function(t,e){function n(t){this.string=t}e.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},e.default=n,t.exports=e.default},function(t,e,n){function s(r,t,i,o,e,a,s){function n(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=s;return!s||t==s[0]||t===r.nullContext&&null===s[0]||(n=[t].concat(s)),i(r,t,r.helpers,r.partials,e.data||o,a&&[e.blockParams].concat(a),n)}return(n=f(i,n,r,s,o,a)).program=t,n.depth=s?s.length:0,n.blockParams=e||0,n}function a(){return""}function f(t,e,n,r,i,o){return t.decorator&&(e=t.decorator(e,t={},n,r&&r[0],i,o,r),p.extend(e,t)),e}var r=n(79).default,o=n(60).default,i=n(3).default,u=n(1).default;e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=g.COMPILER_REVISION;if(!(g.LAST_COMPATIBLE_COMPILER_REVISION<=e&&e<=g.COMPILER_REVISION)){if(e<g.LAST_COMPATIBLE_COMPILER_REVISION)throw n=g.REVISION_CHANGES[n],e=g.REVISION_CHANGES[e],new d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+e+").");throw new d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},e.template=function(u,l){function c(t){function e(t){return""+u.main(h,t,h.helpers,h.partials,o,s,a)}var n,r,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=i.data,a=(c._setup(i),!i.partial&&u.useData&&(n=t,(r=o)&&"root"in r||((r=r?g.createFrame(r):{}).root=n),o=r),void 0),s=u.useBlockParams?[]:void 0;return u.useDepths&&(a=i.depths?t!=i.depths[0]?[t].concat(i.depths):i.depths:[t]),(e=f(u.main,e,h,i.depths||[],o,s))(t,i)}if(!l)throw new d.default("No environment passed to template");if(!u||!u.main)throw new d.default("Unknown template object: "+typeof u);u.main.decorator=u.main_d,l.VM.checkRevision(u.compiler);var n=u.compiler&&7===u.compiler[0],h={strict:function(t,e,n){if(t&&e in t)return h.lookupProperty(t,e);throw new d.default('"'+e+'" not defined in '+t,{loc:n})},lookupProperty:function(t,e){var n=t[e];return null==n||Object.prototype.hasOwnProperty.call(t,e)||_.resultIsAllowed(n,h.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,r=0;r<n;r++)if(null!=(t[r]&&h.lookupProperty(t[r],e)))return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:p.escapeExpression,invokePartial:function(t,e,n){n.hash&&(e=p.extend({},e,n.hash),n.ids)&&(n.ids[0]=!0),t=l.VM.resolvePartial.call(this,t,e,n);var r=p.extend({},n,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=l.VM.invokePartial.call(this,t,e,r);if(null==i&&l.compile&&(n.partials[n.name]=l.compile(t,u.compilerOptions,l),i=n.partials[n.name](e,r)),null==i)throw new d.default("The partial "+n.name+" could not be compiled when running in runtime-only mode");if(n.indent){for(var o=i.split("\n"),a=0,s=o.length;a<s&&(o[a]||a+1!==s);a++)o[a]=n.indent+o[a];i=o.join("\n")}return i},fn:function(t){var e=u[t];return e.decorator=u[t+"_d"],e},programs:[],program:function(t,e,n,r,i){var o=this.programs[t],a=this.fn(t);return o=e||i||r||n?s(this,t,a,e,n,r,i):o||(this.programs[t]=s(this,t,a))},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return n=t&&e&&t!==e?p.extend({},e,t):n},nullContext:r({}),noop:l.VM.noop,compilerInfo:u.compiler};return c.isTop=!0,c._setup=function(t){var e,r,i;t.partial?(h.protoAccessControl=t.protoAccessControl,h.helpers=t.helpers,h.partials=t.partials,h.decorators=t.decorators,h.hooks=t.hooks):(e=p.extend({},l.helpers,t.helpers),i=h,o(r=e).forEach(function(t){var e,n=r[t];r[t]=(e=i.lookupProperty,m.wrapHelper(n,function(t){return p.extend({lookupProperty:e},t)}))}),h.helpers=e,u.usePartial&&(h.partials=h.mergeIfNeeded(t.partials,l.partials)),(u.usePartial||u.useDecorators)&&(h.decorators=p.extend({},l.decorators,t.decorators)),h.hooks={},h.protoAccessControl=_.createProtoAccessControl(t),e=t.allowCallsToHelperMissing||n,v.moveHelperToHooks(h,"helperMissing",e),v.moveHelperToHooks(h,"blockHelperMissing",e))},c._child=function(t,e,n,r){if(u.useBlockParams&&!n)throw new d.default("must pass block params");if(u.useDepths&&!r)throw new d.default("must pass parent depths");return s(h,t,u[t],e,0,n,r)},c},e.wrapProgram=s,e.resolvePartial=function(t,e,n){return t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],t},e.invokePartial=function(t,e,n){var r,i=n.data&&n.data["partial-block"],o=(n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath),void 0);if(n.fn&&n.fn!==a&&(n.data=g.createFrame(n.data),r=n.fn,o=n.data["partial-block"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.data=g.createFrame(e.data),e.data["partial-block"]=i,r(t,e)},r.partials&&(n.partials=p.extend({},n.partials,r.partials))),void 0===(t=void 0===t&&o?o:t))throw new d.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=a;var p=i(n(5)),d=u(n(6)),g=n(4),v=n(10),m=n(82),_=n(73)},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){n(81),t.exports=n(21).Object.seal},function(t,e,n){var r=n(40);n(64)("seal",function(e){return function(t){return e&&r(t)?e(t):t}})},function(t,e){e.__esModule=!0,e.wrapHelper=function(e,n){return"function"!=typeof e?e:function(){var t=arguments[arguments.length-1];return arguments[arguments.length-1]=n(t),e.apply(this,arguments)}}},function(t,e){e.__esModule=!0,e.default=function(t){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}},t.exports=e.default},function(t,e){e.__esModule=!0;var n={helpers:{helperExpression:function(t){return"SubExpression"===t.type||("MustacheStatement"===t.type||"BlockStatement"===t.type)&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return 1===t.parts.length&&!n.helpers.scopedId(t)&&!t.depth}}};e.default=n,t.exports=e.default},function(t,e,n){function r(t,e){return"Program"===t.type?t:((a.default.yy=u).locInfo=function(t){return new u.SourceLocation(e&&e.srcName,t)},a.default.parse(t))}var i=n(1).default,o=n(3).default;e.__esModule=!0,e.parseWithoutProcessing=r,e.parse=function(t,e){return t=r(t,e),new s.default(e).accept(t)};var a=i(n(86)),s=i(n(87)),i=o(n(89)),o=n(5),u=(e.parser=a.default,{});o.extend(u,i)}
1,function(t,e){e.__esModule=!0;(n={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,
vendor: 4,983 bytes, line 1
1EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:this.$=r.prepareProgram(o[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=o[s];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(o[s]),strip:r.stripFlags(o[s],o[s]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[s],value:o[s],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(o[s-2],o[s-1],o[s],this._$);break;case 12:this.$={path:o[s-3],params:o[s-2],hash:o[s-1]};break;case 13:this.$=r.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!1,this._$);break;case 14:this.$=r.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!0,this._$);break;case 15:this.$={open:o[s-5],path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:r.stripFlags(o[s-5],o[s])};break;case 16:case 17:this.$={path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:r.stripFlags(o[s-5],o[s])};break;case 18:this.$={strip:r.stripFlags(o[s-1],o[s-1]),program:o[s]};break;case 19:var u=r.prepareBlock(o[s-2],o[s-1],o[s],o[s],!1,this._$),u=r.prepareProgram([u],o[s-1].loc);u.chained=!0,this.$={strip:o[s-2].strip,program:u,chain:!0};break;case 20:this.$=o[s];break;case 21:this.$={path:o[s-1],strip:r.stripFlags(o[s-2],o[s])};break;case 22:case 23:this.$=r.prepareMustache(o[s-3],o[s-2],o[s-1],o[s-4],r.stripFlags(o[s-4],o[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[s-3],params:o[s-2],hash:o[s-1],indent:"",strip:r.stripFlags(o[s-4],o[s]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(o[s-2],o[s-1],o[s],this._$);break;case 26:this.$={path:o[s-3],params:o[s-2],hash:o[s-1],strip:r.stripFlags(o[s-4],o[s])};break;case 27:case 28:this.$=o[s];break;case 29:this.$={type:"SubExpression",path:o[s-3],params:o[s-2],hash:o[s-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[s],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(o[s-2]),value:o[s],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(o[s-1]);break;case 33:case 34:this.$=o[s];break;case 35:this.$={type:"StringLiteral",value:o[s],original:o[s],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[s]),original:Number(o[s]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===o[s],original:"true"===o[s],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 40:case 41:this.$=o[s];break;case 42:this.$=r.preparePath(!0,o[s],this._$);break;case 43:this.$=r.preparePath(!1,o[s],this._$);break;case 44:o[s-2].push({part:r.id(o[s]),original:o[s],separator:o[s-1]}),this.$=o[s-2];break;case 45:this.$=[{part:r.id(o[s]),original:o[s]}];break;case 46:this.$=[];break;case 47:o[s-1].push(o[s]);break;case 48:this.$=[];break;case 49:o[s-1].push(o[s]);break;case 50:this.$=[];break;case 51:o[s-1].push(o[s]);break;case 58:this.$=[];break;case 59:o[s-1].push(o[s]);break;case 64:this.$=[];break;case 65:o[s-1].push(o[s]);break;case 70:this.$=[];break;case 71:o[s-1].push(o[s]);break;case 78:this.$=[];break;case 79:o[s-1].push(o[s]);break;case 82:this.$=[];break;case 83:o[s-1].push(o[s]);break;case 86:this.$=[];break;case 87:o[s-1].push(o[s]);break;case 90:this.$=[];break;case 91:o[s-1].push(o[s]);break;case 94:this.$=[];break;case 95:o[s-1].push(o[s]);break;case 98:this.$=[o[s]];break;case 99:o[s-1].push(o[s]);break;case 100:this.$=[o[s]];break;case 101:o[s-1].push(o[s
vendor: 11,536 bytes, line 1
1])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,
vendor: 25,392 bytes, line 1
1n=[0],r=[null],i=[],o=this.table,a="",s=0,u=0,l=0,c=(this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===(this.yy.parser=this).lexer.yylloc&&(this.lexer.yylloc={}),this.lexer.yylloc),h=(i.push(c),this.lexer.options&&this.lexer.options.ranges);"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,p,d,g,v,m,_,y,b={};;){if(d=n[n.length-1],void 0===(g=this.defaultActions[d]||(null==f&&(x=void 0,f=x="number"!=typeof(x=e.lexer.lex()||1)&&e.symbols_[x]||x),o[d]&&o[d][f]))||!g.length||!g[0]){var x;if(!l){for(v in y=[],o[d])this.terminals_[v]&&2<v&&y.push("'"+this.terminals_[v]+"'");x=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:c,expected:y})}}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+f);switch(g[0]){case 1:n.push(f),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),f=null,p?(f=p,p=null):(u=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,0<l&&l--);break;case 2:if(m=this.productions_[g[1]][1],b.$=r[r.length-m],b._$={first_line:i[i.length-(m||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(m||1)].first_column,last_column:i[i.length-1].last_column},h&&(b._$.range=[i[i.length-(m||1)].range[0],i[i.length-1].range[1]]),void 0!==(_=this.performAction.call(b,a,u,s,this.yy,g[1],r,i)))return _;m&&(n=n.slice(0,-1*m*2),r=r.slice(0,-1*m),i=i.slice(0,-1*m)),n.push(this.productions_[g[1]][0]),r.push(b.$),i.push(b._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),r=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===t.length?this.yylloc.first_column:0)+t[t.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length&&(!(e=this._input.match(this.rules[i[o]]))||t&&!(e[0].length>t[0].length)||(t=e,n=o,this.options.flex));o++);return t?((r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,i[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,n,e,r){function i(t,e){return n.yytext=n.yytext.substring(t,n.yyleng-e+t)}switch(e){case 0:if("\\\\"===n.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===n.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),n.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(n.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return n.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return n.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return n.yytext=n.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[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],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};var n=new((r.prototype=n).Parser=r);function r(){this.yy={}}e.default=n,t.exports=e.default},function(t,e,n){function r(){this.options=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]}function f(t,e,n){var r=t[(e=void 0===e?t.length:e)-1];return r?"ContentStatement"===r.type?(t[e-2]||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function p(t,e,n){var r=t[(e=void 0===e?-1:e)+1];return r?"ContentStatement"===r.type?(t[e+2]||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function d(t,e,n){t=t[null==e?0:e+1];!t||"ContentStatement"!==t.type||!n&&t.rightStripped||(e=t.value,t.value=t.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),t.rightStripped=t.value!==e)}function g(t,e,n){t=t[null==e?t.length-1:e-1];if(t&&"ContentStatement"===t.type&&(n||!t.leftStripped))return e=t.value,t.value=t.value.replace(n?/\s+$/:/[ \t]+$/,""),t.leftStripped=t.value!==e,t.leftStripped}var i=n(1).default;e.__esModule=!0;i=i(n(88));(r.prototype=new i.default).Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=t.body,i=0,o=r.length;i<o;i++){var a,s,u,l,c=r[i],h=this.accept(c);h&&(l=f(r,i,n),a=p(r,i,n),s=h.openStandalone&&l,u=h.closeStandalone&&a,l=h.inlineStandalone&&l&&a,h.close&&d(r,i,!0),h.open&&g(r,i,!0),e&&l&&(d(r,i),g(r,i))&&"PartialStatement"===c.type&&(c.indent=/([ \t]+$)/.exec(r[i-1].original)[1]),e&&s&&(d((c.program||c.inverse).body),g(r,i)),e)&&u&&(d(r,i),g((c.inverse||c.program).body))}return t},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,n=t.program&&t.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:p(e.body),closeStandalone:f((r||e).body)};return t.openStrip.close&&d(e.body,null,!0),n?((n=t.inverseStrip).open&&g(e.body,null,!0),n.close&&d(r.body,null,!0),t.closeStrip.open&&g(i.body,null,!0),!this.options.ignoreStandalone&&f(e.body)&&p(r.body)&&(g(e.body),d(r.body))):t.closeStrip.open&&g(e.body,null,!0),o},r.prototype.Decorator=r.prototype.MustacheStatement=function(t){return t.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(t){t=t.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},e.default=r,t.exports=e.default},function(t,e,n){function r(){this.parents=[]}function i(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function o(t){i.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function a(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}var s=n(1).default;e.__esModule=!0;var u=s(n(6));r.prototype={constructor:r,mutating:!1,acceptKey:function(t,e){var n=this.accept(t[e]);if(this.mutating){if(n&&!r.prototype[n.type])throw new u.default('Unexpected node type "'+n.type+'" found when accepting '+e+" on "+t.type);t[e]=n}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new u.default(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,n=t.length;e<n;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,n--)},accept:function(t){if(t){if(!this[t.type])throw new u.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:i,Decorator:i,BlockStatement:o,DecoratorBlock:o,PartialStatement:a,PartialBlockStatement:function(t){a.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},e.default=r,t.exports=e.default},function(t,e,n){function l(t,e){var n;if(e=e.path?e.path.original:e,t.path.original!==e)throw n={loc:t.path.loc},new c.default(t.path.original+" doesn't match "+e,n)}var r=n(1).default;e.__esModule=!0,e.SourceLocation=function(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}},e.id=function(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t},e.stripFlags=function(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}},e.stripComment=function(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},e.preparePath=function(t,e,n){n=this.locInfo(n);for(var r=t?"@":"",i=[],o=0,a=0,s=e.length;a<s;a++){var u=e[a].part,l=e[a].original!==u;if(r+=(e[a].separator||"")+u,l||".."!==u&&"."!==u&&"this"!==u)i.push(u);else{if(0<i.length)throw new c.default("Invalid path: "+r,{loc:n});".."===u&&o++}}return{type:"PathExpression",data:t,depth:o,parts:i,original:r,loc:n}},e.prepareMustache=function(t,e,n,r,i,o){var a="{"!==(a=r.charAt(3)||r.charAt(2))&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:a,strip:i,loc:this.locInfo(o)}},e.prepareRawBlock=function(t,e,n,r){return l(t,n),r=this.locInfo(r),{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:{type:"Program",body:e,strip:{},loc:r},openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},e.prepareBlock=function(t,e,n,r,i,o){r&&r.path&&l(t,r);var a=/\*/.test(t.open),s=(e.blockParams=t.blockParams,void 0),u=void 0;if(n){if(a)throw new c.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,s=n.program}return i&&(i=s,s=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:s,openStrip:t.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(o)}},e.prepareProgram=function(t,e){var n;return{type:"Program",body:t,strip:{},loc:e=!e&&t.length&&(n=t[0].loc,t=t[t.length-1].loc,n)&&t?{source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:t.end.line,column:t.end.column}}:e}},e.preparePartialBlock=function(t,e,n,r){return l(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var c=r(n(6))},function(t,e,n){function r(){}function i(t){var e;t.path.parts||(e=t.path,t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc})}var o=n(74).default,a=n(1).default;e.__esModule=!0,e.Compiler=r,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);return"data"in(e=e||{})||(e.data=!0),e.compat&&(e.useDepths=!0),t=n.parse(t,e),t=(new n.Compiler).compile(t,e),(new n.JavaScriptCompiler).compile(t,e)},e.compile=function(e,n,r){function i(){var t=r.parse(e,n),t=(new r.Compiler).compile(t,n),t=(new r.JavaScriptCompiler).compile(t,n,void 0,!0);return r.template(t)}function t(t,e){return(o=o||i()).call(this,t,e)}if(void 0===n&&(n={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(n=u.extend({},n))||(n.data=!0),n.compat&&(n.useDepths=!0);var o=void 0;return t._setup=function(t){return(o=o||i())._setup(t)},t._child=function(t,e,n,r){return(o=o||i())._child(t,e,n,r)},t};var s=a(n(6)),u=n(5),l=a(n(84)),c=[].slice;r.prototype={compiler:r,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var n=0;n<e;n++){var r=this.opcodes[n],i=t.opcodes[n];if(r.opcode!==i.opcode||!function t(e,n){if(e===n)return 1;if(u.isArray(e)&&u.isArray(n)&&e.length===n.length){for(var r=0;r<e.length;r++)if(!t(e[r],n[r]))return;return 1}}(r.args,i.args))return!1}for(e=this.children.length,n=0;n<e;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},guid:0,compile:function(t,e){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds,e.blockParams=e.blockParams||[],e.knownHelpers=u.extend(o(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},e.knownHelpers),this.accept(t)},compileProgram:function(t){var t=(new this.compiler).compile(t,this.options),e=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[e]=t,this.useDepths=this.useDepths||t.useDepths,e},accept:function(t){if(!this[t.type])throw new s.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);t=this[t.type](t);return this.sourceNode.shift(),t},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var e=t.body,n=e.length,r=0;r<n;r++)this.accept(e[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){i(t);var e=t.program,n=t.inverse,e=e&&this.compileProgram(e),n=n&&this.compileProgram(n),r=this.classifySexpr(t);"helper"===r?this.helperSexpr(t,e,n):"simple"===r?(this.simpleSexpr(t),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,e,n),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var e=t.program&&this.compileProgram(t.program),e=this.setupFullMustacheParams(t,e,void 0),t=t.path;this.useDecorators=!0,this.opcode("registerDecorator",e.length,t.original)},PartialStatement:function(t){this.usePartial=!0;var e=(e=t.program)&&this.compileProgram(t.program),n=t.params;if(1<n.length)throw new s.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var n=t.name.original,r="SubExpression"===t.name.type,e=(r&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0),t.indent||"");this.options.preventIndent&&e&&(this.opcode("appendContent",e),e=""),this.opcode("invokePartial",r,n,e),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){i(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var t=t.path,r=t.parts[0],i=null!=e||null!=n;this.opcode("getContext",t.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),t.strict=!0,this.accept(t),this.opcode("invokeAmbiguous",r,i)},simpleSexpr:function(t){t=t.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var e=this.setupFullMustacheParams(t,e,n),n=t.path,r=n.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",e.length,r);else{if(this.options.knownHelpersOnly)throw new s.default("You specified knownHelpersOnly, but used the unknown helper "+r,t);n.strict=!0,n.falsy=!0,this.accept(n),this.opcode("invokeHelper",e.length,n.original,l.default.helpers.simpleId(n))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=l.default.helpers.scopedId(t),r=!t.depth&&!n&&this.blockParamIndex(e);r?this.opcode("lookupBlockParam",r,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,r=e.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(e[n].value);for(;n--;)this.opcode("assignToHash",e[n].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:c.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var e=l.default.helpers.simpleId(t.path),n=e&&!!this.blockParamIndex(t.path.parts[0]),r=!n&&l.default.helpers.helperExpression(t),n=!n&&(r||e);return n&&!r&&(e=t.path.parts[0],(t=this.options).knownHelpers[e]?r=!0:t.knownHelpersOnly&&(n=!1)),r?"helper":n?"ambiguous":"simple"},pushParams:function(t){for(var e=0,n=t.length;e<n;e++)this.pushParam(t[e])},pushParam:function(t){var e,n,r=null!=t.value?t.value:t.original||"";this.stringParams?(r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),"SubExpression"===t.type&&this.accept(t)):(this.trackIds&&(e=void 0,(e=!t.parts||l.default.helpers.scopedId(t)||t.depth?e:this.blockParamIndex(t.parts[0]))?(n=t.parts.slice(1).join("."),this.opcode("pushId","BlockParam",e,n)):((r=t.original||r).replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r))),this.accept(t))},setupFullMustacheParams:function(t,e,n,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",e),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var e=0,n=this.options.blockParams.length;e<n;e++){var r=this.options.blockParams[e],i=r&&u.indexOf(r,t);if(r&&0<=i)return[e,i]}}}},function(t,e,n){function s(t){this.value=t}function r(){}var a=n(60).default,i=n(1).default,o=(e.__esModule=!0,n(4)),f=i(n(6)),u=n(5),l=i(n(92));r.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=o.COMPILER_REVISION;return[t,o.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return u.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,r){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;for(var i,o=t.opcodes,a=void 0,s=void 0,u=void 0,s=0,u=o.length;s<u;s++)i=o[s],this.source.currentLocation=i.loc,a=a||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new f.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));n=this.createFunctionContext(r);if(this.isChild)return n;var l={compiler:this.compilerInfo(),main:n},t=(this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0),this.context),c=t.programs,h=t.decorators;for(s=0,u=c.length;s<u;s++)c[s]&&(l[s]=c[s],h[s])&&(l[s+"_d"]=h[s],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),r?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),e.srcName?(l=l.toStringWithSourceMap({file:e.destName})).map=l.map&&l.map.toString():l=l.toString()),l},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(t){var n=this,r="",e=this.stackVars.concat(this.registers.list),i=(0<e.length&&(r+=", "+e.join(", ")),0),e=(a(this.aliases).forEac
vendor: 4,797 bytes, line 1
1h(function(t){var e=n.aliases[t];e.children&&1<e.referenceCount&&(r+=", alias"+ ++i+"="+t,e.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(r+=", "+this.lookupPropertyFunctionVarDeclaration()),["container","depth0","helpers","partials","data"]),o=((this.useBlockParams||this.useDepths)&&e.push("blockParams"),this.useDepths&&e.push("depths"),this.mergeSource(r));return t?(e.push(o),Function.apply(this,e)):this.source.wrap(["function(",e.join(","),") {\n  ",o,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(t){t.appendToBuffer?(o?t.prepend("  + "):o=t,a=t):(o&&(i?o.prepend("buffer += "):r=!0,a.add(";"),o=a=void 0),i=!0,e||(n=!1))}),n?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(r?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n      lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    }\n    ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)],t=(this.setupHelperArgs(t,0,n),this.popStack());n.splice(1,0,t),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)],n=(this.setupHelperArgs("",0,e,!0),this.flushInline(),this.topStack());e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){var t;this.isInline()?(this.replaceStack(function(t){return[" != null ? ",t,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()))):(t=this.popStack(),this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"]))},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[i++])),this.resolvePath("context",t,i,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(n,r,i,o,t){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(((t,e,n,r,i)=>{var o=e.popStack(),a=n.length;for(t&&a--;r<a;r++)o=e.nameLookup(o,n[r],i);return t?[e.aliasable("container.strict"),"(",o,", ",e.quotedString(n[r]),", ",JSON.stringify(e.source.currentLocation)," )"]:o})(this.options.strict&&t,this,r,i,n));else for(var e=r.length;i<e;i++)this.replaceStack(function(t){var e=a.nameLookup(t,r[i],n);return o?[" && ",e]:[" != null ? ",e," : ",t]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"SubExpression"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){null!=t?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,e){var n=this.nameLookup("decorators",e,"decorator"),e=this.setupHelperArgs(e,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["f
1n","props","container",e])," || fn;"])},invokeHelper:function(t,e,n){var r=this.popStack(),t=this.setupHelper(t,e),e=[],n=(n&&e.push(t.name),e.push(r),this.options.strict||e.push(this.aliasable("container.hooks.helperMissing")),["(",this.itemsSeparatedBy(e,"||"),")"]),r=this.source.functionCall(n,"call",t.callParams);this.push(r)},itemsSeparatedBy:function(t,e){var n=[];n.push(t[0]);for(var r=1;r<t.length;r++)n.push(e,t[r]);return n},invokeKnownHelper:function(t,e){t=this.setupHelper(t,e);this.push(this.source.functionCall(t.name,"call",t.callParams))},invokeAmbiguous:function(t,e){this.useRegister("helper");var n=this.popStack(),e=(this.emptyHash(),this.setupHelper(0,t,e)),t=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",t,"helper")," || ",n,")"];this.options.strict||(t[0]="(helper = ",t.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",t,e.paramsInit?["),(",e.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",e.callParams)," : helper))"])},invokePartial:function(t,e,n){var r=[],i=this.setupParams(e,1,r);t&&(e=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",t?r.unshift(e):r.unshift(this.nameLookup("partials",e,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(t){var e=this.popStack(),n=void 0,r=void 0,i=void 0,o=(this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack()),this.hash);n&&(o.contexts[t]=n),r&&(o.types[t]=r),i&&(o.ids[t]=i),o.values[t]=e},pushId:function(t,e,n){"BlockParam"===t?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===t?this.pushString(e):"SubExpression"===t?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:r,compileChildren:function(t,e){for(var n=t.children,r=void 0,i=void 0,o=0,a=n.length;o<a;o++){var s,r=n[o],i=new this.compiler,u=this.matchExistingProgram(r);null==u?(this.context.programs.push(""),s=this.context.programs.length,r.index=s,r.name="program"+s,this.context.programs[s]=i.compile(r,e,this.context,!this.precompile),this.context.decorators[s]=i.decorators,this.context.environments[s]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams):(r.index=u.index,r.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams)}},matchExistingProgram:function(t){for(var e=0,n=this.context.environments.length;e<n;e++){var r=this.context.environments[e];if(r&&r.equals(t))return r}},programExpression:function(t){t=this.environment.children[t],t=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),"container.program("+t.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof s||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new s(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var e=["("],n=void 0,r=void 0,i=void 0;if(!this.isInline())throw new f.default("replaceStack on non-inline");var o=this.popStack(!0),a=(o instanceof s?(e=["(",n=[o.value]],i=!0):(r=!0,a=this.incrStack(),e=["((",this.push(a)," = ",o,")"],n=this.topStack()),t.call(this,n));i||this.popStack(),r&&this.stackSlot--,this.push(e.concat(a,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot}
vendor: 4,385 bytes, line 1
1,flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;e<n;e++){var r,i=t[e];i instanceof s?this.compileStack.push(i):(r=this.incrStack(),this.pushSource([r," = ",i,";"]),this.compileStack.push(r))}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),n=(e?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof s)return n.value;if(!e){if(!this.stackSlot)throw new f.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,t=t[t.length-1];return t instanceof s?t.value:t},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var e=this.aliases[t];return e?e.referenceCount++:((e=this.aliases[t]=this.source.wrap(t)).aliasable=!0,e.referenceCount=1),e},setupHelper:function(t,e,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(e,t,r,n),name:this.nameLookup("helpers",e,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(t,e,n){var r,i={},o=[],a=[],s=[],u=!n,t=(u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack()),this.popStack()),l=this.popStack();(l||t)&&(i.fn=l||"container.noop",i.inverse=t||"container.noop");for(var c=e;c--;)r=this.popStack(),n[c]=r,this.trackIds&&(s[c]=this.popStack()),this.stringParams&&(a[c]=this.popStack(),o[c]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(s)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},setupHelperArgs:function(t,e,n,r){t=this.setupParams(t,e,n);return t.loc=JSON.stringify(this.source.currentLocation),t=this.objectLiteral(t),r?(this.useRegister("options"),n.push("options"),["options=",t]):n?(n.push(t),""):t}};for(var c="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=r.RESERVED_WORDS={},p=0,d=c.length;p<d;p++)h[c[p]]=!0;r.isValidJavaScriptVariableName=function(t){return!r.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},e.default=r,t.exports=e.default},function(t,e,n){function o(t,e,n){if(s.isArray(t)){for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.wrap(t[i],n));return r}return"boolean"==typeof t||"number"==typeof t?t+"":t}function r(t){this.srcFile=t,this.source=[]}var a=n(60).default,s=(e.__esModule=!0,n(5)),i=void 0;i||((i=function(t,e,n,r){this.src="",r&&this.add(r)}).prototype={add:function(t){s.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){s.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),r.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){var e=this.empty();return this.each(function(t){e.add(["  ",t,"\n"])}),e},each:function(t){for(var e=0,n=this.source.length;e<n;e++)t(this.source[e])},empty:function(){var t=this.currentLocation||{start:{}};return new i(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var e=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return t instanceof i?t:(t=o(t,this,e),new i(e.start.line,e.start.column,this.srcFile,t))},functionCall:function(t,e,n){return n=this.generateList(n),this.wrap([t,e?"."+e+"(":"(",n,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'}
1,objectLiteral:function(n){var r=this,i=[],t=(a(n).forEach(function(t){var e=o(n[t],r);"undefined"!==e&&i.push([r.quotedString(t),":",e])}),this.generateList(i));return t.prepend("{"),t.add("}"),t},generateList:function(t){for(var e=this.empty(),n=0,r=t.length;n<r;n++)n&&e.add(","),e.add(o(t[n],this));return e},generateArray:function(t){t=this.generateList(t);return t.prepend("["),t.add("]"),t}},e.default=r,t.exports=e.default}],i={},n.m=r,n.c=i,n.p="",n(0);function n(t){var e;return(i[t]||(e=i[t]={exports:{},id:t,loaded:!1},r[t].call(e.exports,e,e.exports,n),e.loaded=!0,e)).exports}var r,i},"object"==typeof n&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof n?n.Handlebars=r():(void 0).Handlebars=r()},{}],169:[function(t,e,n){var r;r=function(){return n=[function(R,t,z){var N=function(t,e){return(N=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};function e(t,e){function n(){this.constructor=t}N(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(){}var d=Array.isArray||function(t){return t instanceof Array};function g(t){return t&&t._isObservable}function B(t,e){for(var n=0;n<t.length;n++)if(!e(t[n]))return!1;return!0}function F(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return!0;return!1}function H(t,e){return-1!==U(t,e)}function W(t,e){for(var n,r=[],i=0;i<e.length;i++)t(n=e[i])&&r.push(n);return r}function V(n){return function(t,e){return n(e,t)}}function $(t,e,n){for(var r=0;r<t.length;r++)e=n(e,t[r]);return e}function q(t){return t[0]}var U=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n=0;n<t.length;n++)if(e===t[n])return n;return-1};function Y(t){return"function"==typeof t}function v(t,e){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r]));return n}function K(t){return t.slice(1,t.length)}function G(t){return d(t)?t:[t]}function Q(e){return"function"==typeof e?e:function(t){return e}}var m={indexOf:U,indexWhere:function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return-1},head:q,always:function(t){return function(){return t}},negate:function(e){return function(t){return!e(t)}},empty:function(t){return 0===t.length},tail:K,filter:W,map:v,each:function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},toArray:G,contains:H,id:function(t){return t},last:function(t){return t[t.length-1]},all:B,any:F,without:function(e,t){return W(function(t){return t!==e},t)},remove:function(t,e){t=U(e,t);if(0<=t)return e.splice(t,1)},fold:$,flatMap:function(n,t){return $(t,[],function(t,e){return t.concat(n(e))})},bind:function(t,e){return function(){return t.apply(e,arguments)}},isFunction:Y,toFunction:Q,toString:function t(e){var n={}.hasOwnProperty;try{if(X++,null==e)return"undefined";if(Y(e))return"function";if(d(e))return 5<X?"[..]":"["+v(t,e).toString()+"]";if(null!=(null!=e?e.toString:void 0)&&e.toString!==Object.prototype.toString)return e.toString();if("object"!=typeof e)return e;if(5<X)return"{..}";var r,i,o=[];for(r in e)n.call(e,r)&&(i=(()=>{try{return e[r]}catch(t){return t}})(),o.push(t(r)+":"+t(i)));return"{"+o+"}"}finally{X--}}},X=0,_=void 0,y="<no-more>";function J(t,e){if(!e)throw new Error(t)}function Z(t){J("not a function : "+t,m.isFunction(t))}var l={scheduler:{setTimeout:function(t,e){return setTimeout(t,e)},setInterval:function(t,e){return setInterval(t,e)},clearInterval:function(t){return clearInterval(t)},clearTimeout:function(t){return clearTimeout(t)},now:function(){return(new Date).getTime()}}},o=void 0,s=[],tt={},u=[],h=0,et={},nt=!1;function rt(t){t<=h||(u[t-1]||(u[t-1]=[[],0]),h=t)}function it(t,e){if(!o&&!nt)return e();rt(1);for(var n=0;n<h-1&&!((t,e)=>{for(var n=0;n<e.length;n++)if(e[n][0].id==t.id)return 1})(t,u[n][0]);)n++;u[n][0].push([t,e]),o||ot()}function ot(){var t=h;if(t){var e=!nt;nt=!0;try{for(;t<=h;){var n=u[h-1];if(!n)throw new Error("Unexpected stack top: "+n);var r=n[0],i=n[1];if(!(i<r.length)){n[0]=[],n[1]=0;break}var o=r[i][1],a=(n[1]++,rt(h+1),!1);try{for(o(),a=!0;t<h&&0==u[h-1][0].length;)h--}finally{a||(u=[],h=0)}}}finally{e&&(nt=!1)}}}function at(t,e){var n;return o?void 0===(n=tt[t.id])?(n=tt[t.id]=[e],s.push(t)):n.push(e):e()}var b={toString:function(){return m.toString({rootEvent:o,processingAfters:nt,waiterObs:s,waiters:tt,aftersStack:u,aftersStackHeight:h,flushed:et})},whenDoneWith:at,hasWaiters:function(){return 0<s.length},inTransaction:function(t,e,n,r){if(o)return n.apply(e,r);o=t;try{for(var i=n.apply(e,r);0<s.length;)!function o(t,e){var n=s[t],r=n.id,i=tt[r];s.splice(t,1),delete tt[r],e&&0<s.length&&function t(e){if(!et[e.id]){for(var n,r=e.internalDeps(),i=0;i<r.length;i++)t(n=r[i]),tt[n.id]&&o(m.indexOf(s,n),!1);et[e.id]=!0}}(n);for(var a=0;a<i.length;a++)(0,i[a])()}(0,!0);et={}}finally{o=void 0,ot()}return i},currentEventId:function(){return o?o.id:void 0},wrappedSubscribe:function(e,t,n){Z(n);function r(){i=!0,a()}var i=!1,o=!1,a=function(){o=!0},a=t(function(t){return it(e,function(){i||n(t)===y&&r()}),_});return o&&a(),r},afterTransaction:it,soonButNotYet:function(t,e){o?at(t,e):l.scheduler.setTimeout(e,0)},isInTransaction:function(){return void 0!==o}},x=(st.prototype.deps=function(){return this.cachedDeps||(this.cachedDeps=lt([this.context].concat(this.args))),this.cachedDeps},st.prototype.toString=function(){var t=m.map(m.toString,this.args);return m.toString(this.context)+"."+m.toString(this.method)+"("+t+")"},st);function st(t,e,n){void 0===n&&(n=[]),this._isDesc=!0,this.context=t,this.method=e,this.args=n}function ut(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t||e;return i&&i._isDesc?t||e:new x(t,e,n)}function lt(t){return d(t)?m.flatMap(lt,t):g(t)?[t]:null!=t&&t._isSource?[t.obs]:[]}function n(){return _}function ct(){return _}function ht(t,e,n){return n.transform(function(t,e){var t=a(s,t),n=t[0],r=t[1];s=n;for(var i=_,o=0;o<r.length;
1o++)if((i=e(r[o]))===y)return i;return i},new x(n,"withStateMachine",[s=t,a=e]));var a,s}i.prototype.getOrElse=function(t){return this.value},i.prototype.get=function(){return this.value},i.prototype.filter=function(t){return t(this.value)?new i(this.value):r},i.prototype.map=function(t){return new i(t(this.value))},i.prototype.forEach=function(t){t(this.value)},i.prototype.toArray=function(){return[this.value]},i.prototype.inspect=function(){return"Some("+this.value+")"},i.prototype.toString=function(){return this.inspect()};var ft=i,r={_isNone:!0,getOrElse:function(t){return t},get:function(){throw new Error("None.get()")},filter:function(){return r},map:function(){return r},forEach:function(){},isDefined:!1,toArray:function(){return[]},inspect:function(){return"None"},toString:function(){return this.inspect()}};function i(t){this._isSome=!0,this.isDefined=!0,this.value=t}var pt,dt,gt,vt,mt,_t,yt=0,bt=(Dt.prototype.filter=function(t){return!0},Dt.prototype.inspect=function(){return this.toString()},Dt.prototype.log=function(){return this.toString()},Dt.prototype.toNext=function(){return this},Dt),xt=(e(Ct,_t=bt),Ct.prototype.fmap=function(t){return this.apply(t(this.value))},Ct.prototype.filter=function(t){return t(this.value)},Ct.prototype.toString=function(){return m.toString(this.value)},Ct.prototype.log=function(){return this.value},Ct),wt=(e(Ot,mt=xt),Ot.prototype.apply=function(t){return new Ot(t)},Ot),St=(e(At,vt=xt),At.prototype.apply=function(t){return new At(t)},At.prototype.toNext=function(){return new wt(this.value)},At),a=(e(Et,gt=bt),Et.prototype.fmap=function(t){return this},Et),kt=(e(Mt,dt=a),Mt.prototype.toString=function(){return"<end>"},Mt),f=(e(Pt,pt=a),Pt.prototype.toString=function(){return"<error> "+m.toString(this.error)},Pt);function Pt(t){var e=pt.call(this)||this;return e.isError=!0,e.error=t,e}function Mt(){var t=null!==dt&&dt.apply(this,arguments)||this;return t.isEnd=!0,t}function Et(){var t=null!==gt&&gt.apply(this,arguments)||this;return t.hasValue=!1,t}function At(t){t=vt.call(this,t)||this;return t.isInitial=!0,t._isInitial=!0,t}function Ot(t){t=mt.call(this,t)||this;return t.isNext=!0,t._isNext=!0,t}function Ct(t){var e=_t.call(this)||this;if(e.hasValue=!0,t instanceof bt)throw new f("Wrapping an event inside other event");return e.value=t,e}function Dt(){this.id=++yt,this.isEvent=!0,this._isEvent=!0,this.isEnd=!1,this.isInitial=!1,this.isNext=!1,this.isError=!1,this.hasValue=!1}function It(t){return new St(t)}function p(t){return new wt(t)}function w(){return new kt}function Tt(t){return t&&t._isEvent?t:p(t)}function Lt(t){return t&&t._isEvent}function jt(t){return t&&t._isInitial}function S(t){return t.isError}function k(t){return t.hasValue}function Rt(t){return t.isEnd}function zt(t,e){return t===e}function Nt(t,e,n){return e.transform(Bt(t),n||new x(e,"take",[t]))}function Bt(n){return function(t,e){return!t.hasValue||0<--n?e(t):(0===n&&e(t),e(w()),y)}}function Ft(e,t,a){var s,u=t,l=!1;return s=new O(new x(e,"scan",[t,a]),function(n){function r(){return i||(i=l=!0,(o=n(new St(u)))===y&&(t(),t=c)),o}var i=!1,t=c,o=_,t=e.subscribeInternal(function(t){if(k(t)){if(l&&t.isInitial)return _;t.isInitial||r(),i=l=!0;var e=a(u,t.value);return u=e,n(t.apply(e))}return(o=t.isEnd?r():o)!==y?n(t):o});return b.whenDoneWith(s,r),t})}Wt.prototype.add=function(t){var e,n,r=this;this.unsubscribed||(e=!1,n=c,this.starting.push(t),n=t(this.unsubscribe,function(){r.unsubscribed||(e=!0,r.remove(n),m.remove(t,r.starting))}),this.unsubscribed||e?n():this.subscriptions.push(n),m.remove(t,this.starting))},Wt.prototype.remove=function(t){return!this.unsubscribed&&void 0!==m.remove(t,this.subscriptions)?t():void 0},Wt.prototype.unsubscribe=function(){if(!this.unsubscribed){this.unsubscribed=!0;for(var t=this.subscriptions,e=0;e<t.length;e++)t[e]();this.subscriptions=[],this.starting=[]}},Wt.prototype.count=function(){return this.unsubscribed?0:this.subscriptions.length+this.starting.length},Wt.prototype.empty=function(){return 0===this.count()};var Ht=Wt;function Wt(t){void 0===t&&(t=[]),this.unsubscribed=!1,this.unsubscribe=m.bind(this.unsubscribe,this),this.unsubscribed=!1,this.subscriptions=[],this.starting=[];for(var e,n=0;n<t.length;n++)e=t[n],this.add(e)}function Vt(s,t){return function(e){function n(){if(!r)return s.forEac
1h(function(t){if(r=!0,(a=e(new St(t)))===y)return o(),o=c})}var r=!1,i=!1,o=c,a=_,o=t(function(t){return t instanceof xt?t.isInitial&&!i?(s=new ft(t.value),_):(t.isInitial||n(),r=!0,s=new ft(t.value),e(t)):(a=t.isEnd?n():a)!==y?e(t):a}),i=!0;return n(),o}}function $t(t,e){return Z(e),new O(t,Vt(r,e))}function P(e){var n=new T(new x("Bacon","once",[e]),function(t){return b.soonButNotYet(n,function(){t(Tt(e)),t(w())}),c});return n}function qt(e,t,r){void 0===r&&(r={});var i=t,n=[i],l=[],c=t._isProperty,h=!1,t=(c?$t:function(t,e){return new T(t,e,void 0,I)})(r.desc||new x(t,"flatMap_",[e]),function(o){var n=new Ht,a=[];function s(t){if(c&&t.isInitial){if(h)return;h=!0}var i=Yt(e(t));l.push(i),n.add(function(n,r){return i.subscribeInternal(function(t){var e;return t.isEnd?(m.remove(i,l),(e=a.shift())&&s(e),u(r),y):(t=t.toNext(),(e=o(t))===y&&n(),e)})})}function u(t){return t(),n.empty()?o(w()):_}return n.add(function(t,e){return i.subscribeInternal(function(t){return t.isEnd?u(e):t.isError&&!r.mapError?o(t):r.firstOnly&&1<n.count()?_:n.unsubscribed?y:(r.limit&&n.count()>r.limit?a.push(t):s(t),_)})}),n.unsubscribe});return t.internalDeps=function(){return l.length?n.concat(l):n},t}function Ut(e){return"function"==typeof e?function(t){return k(t)?e(t.value):t}:function(t){return e}}function Yt(t){return g(t)?t:P(t)}function Kt(t,e){return qt(e,t,{mapError:!0,desc:new x(t,"flatMapEvent",[e])})}ie.prototype.subscribe=function(t){return this.obs.subscribeInternal(t)},ie.prototype.toString=function(){return this.obs.toString()},ie.prototype.markEnded=function(){this.ended=!0},ie.prototype.mayHave=function(t){return!0},e(re,Xt=a=ie),re.prototype.consume=function(){return this.value},re.prototype.push=function(t){this.value=t},re.prototype.hasAtLeast=function(t){return!!this.value};var Gt,Qt,Xt,Jt=re,Zt=(e(ne,Qt=a),ne.prototype.consume=function(){return this.queue.shift()},ne.prototype.push=function(t){this.queue.push(t)},ne.prototype.mayHave=function(t){return!this.ended||this.queue.length>=t},ne.prototype.hasAtLeast=function(t){return this.queue.length>=t},ne),te=(e(ee,Gt=a),ee.prototype.consume=function(){var t=this.queue;return this.queue=[],{value:t}},ee.prototype.push=function(t){return this.queue.push(t.value)},ee.prototype.hasAtLeast=function(t){return!0},ee);function ee(t){t=Gt.call(this,t,!0)||this;return t.queue=[],t}function ne(t,e){t=Qt.call(this,t,e)||this;return t.flatten=!1,t.queue=[],t}function re(){return null!==Xt&&Xt.apply(this,arguments)||this}function ie(t,e){this._isSource=!0,this.flatten=!0,this.ended=!1,this.obs=t,this.sync=e}function oe(t){return null!=t&&t._isSource?t:null!=t&&t._isProperty?new Jt(t,!1):new Zt(t,!0)}function ae(){return new T(ut("Bacon","never"),function(t){return t(w()),c})}function se(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return le(cn,t)}function ue(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return le($t,t)}function le(t,e){var h,f,n,r,s,p;return 0!==e.length&&(n=(t=>{for(var e,n=[],r=[],i=0;i<t.length;i++){for(var o=t[i],a=o[0],s={f:o[1],ixs:[]},u=!1,l=0;l<a.length;l++){var c=a[l],h=U(n,c);u||(u=null!=(e=c)&&(e._isSource?e.sync:e._isEventStream)),h<0&&(n.push(c),h=n.length-1);for(var f=0;f<s.ixs.length;f++){var p=s.ixs[f];p.index===h&&p.count++}s.ixs.push({index:h,count:1})}if(0<a.length&&!u)throw new Error("At least one EventStream required, none found in "+a);0<a.length&&r.push(s)}return[v(oe,n),r]})(ce(e)),h=n[0],f=n[1],h.length)?(s=F(h,function(t){return t.flatten})&&(n=v(function(t){return t.obs},h),void 0===r&&(r=[]),F(n,function t(e){var n;return!!H(r,e)||((n=e.internalDeps()).length?(r.push(e),F(n,t)):(r.push(e),!1))})),p=t(new x("Bacon","when",Array.prototype.slice.call(e)),function(u){var l=[],a=!1;function e(t){for(var e=0;e<t.ixs.length;e++){var n=t.ixs[e];if(!h[n.index].mayHave(n.count))return!0}return!1}function c(t){return!t.source.flatten}return new Ht(v(function(o){return function(n){function r(){b.whenDoneWith(p,i)}function i(){var t=function t(){var e;if(void 0!==(e=l.pop()))for(var n,r=0;r<f.length;r++)if((t=>{for(var e=0;e<t.ixs.length;e++){var n=t.ixs[e];if(!h[n.index].hasAtLeast(n.count))return}return 1})(n=f[r])){for(var i=[],o=0;o<n.ixs.length;o++){var a=h[n.ixs[o].index].consume();if(!a)throw new Error("Event was undefined");i.push(a.value)}var s=n.f.apply(null,i),s=u(e.e.apply(s));return l.length&&(l=W(c,l)),s===y?s:t()}return _}();a&&(B(h,he)||B(f,e))&&(t=y,u(w())),t===y&&n()}return o.subscribe(function(t){var e=_;
1return t.isEnd?(a=!0,o.markEnded(),r()):t.isError?e=u(t):(o.push(t=t),o.sync&&(l.push({source:o,e:t}),(s||b.hasWaiters()?r:i)())),e===y&&n(),e})}},h)).unsubscribe})):ae()}function ce(t){for(var e=[],n=0;n<t.length;n++){var r,i=t[n];if(!((r=i)instanceof Array)||g(r[r.length-1])){var o=t;for(var a=0,s=o.length,u=[];a<s;){var l=G(o[a++]),c=Q(o[a++]);u.push([l,c])}return J("when: expecting arguments in the form (Observable+,function)+",s%2==0),u;return}i[0]instanceof Array?e.push([i[0],Q(i[1])]):(r=i.slice(0,i.length-1),i=Q(i[i.length-1]),e.push([r,i]))}return e}function he(t){return!t.sync||t.ended}function fe(t,e,n){return se([new Jt(e.toProperty(),!1),new Jt(t,!0),V(n)]).withDesc(new x(t,"withLatestFrom",[e,n]))}function pe(t,e,n){return ue([new Jt(e.toProperty(),!1),new Jt(t,!0),V(n)]).withDesc(new x(t,"withLatestFrom",[e,n]))}function de(t,e,n){if(t instanceof O)return pe(t,e,n);if(t instanceof T)return fe(t,e,n);throw new Error("Unknown observable: "+t)}function ge(t,e){return e instanceof O?de(t,e,function(t,e){return e}):t.transform(ve(e),new x(t,"map",[e]))}function ve(t){var n=m.toFunction(t);return function(t,e){return e(t.fmap(n))}}function me(e){return new O(new x("Bacon","constant",[e]),function(t){return t(It(e)),t(w()),c})}function M(t){return t=Array.prototype.slice.call(t),m.flatMap(_e,t)}function _e(t){return g(t)?[t]:d(t)?M(t):[me(t)]}function ye(t){return m.isFunction(t[0])?[M(Array.prototype.slice.call(t,1)),t[0]]:[M(Array.prototype.slice.call(t,0,t.length-1)),m.last(t)]}function be(t,n){return le(function(t,e){return new T(t,e,void 0,n)},[m.map(function(t){return new te(t)},t),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t}]).withDesc(new x("Bacon","groupSimultaneous",t))}function xe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if((t=M(t)).length){for(var n=[],r=0;r<t.length;r++){var i=g(t[r])?t[r]:me(t[r]);n.push(Se(i))}return ue([n,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t}]).withDesc(new x("Bacon","combineAsArray",t))}return me([])}function we(t,e,n){return ue([[Se(t),Se(e)],n]).withDesc(new x(t,"combine",[e,n]))}function Se(t){return new Jt(t,!0)}function ke(t,e){return qt(Ut(e),t,{desc:new x(t,"flatMapConcat",[e]),limit:1})}function E(r,l){void 0===l&&(l=m.id);var t=new x("Bacon","fromBinder",[r,l]);return new T(t,function(s){function u(){if(!t)return null!=n?(n(),t=!0):e=!0}var t=!1,e=!1,n=r(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=l.apply(void 0,t),r=d(n)&&Lt(m.last(n))?n:[n],i=_,o=0;o<r.length;o++){var a=Tt(r[o]);if((i=s(a))===y||a.isEnd)return u(),i}return i});return e&&u(),u})}function Pe(n,t){var e=new x("Bacon","fromPoll",[n,t]);return E(function(t){var e=l.scheduler.setInterval(t,n);return function(){return l.scheduler.clearInterval(e)}},t).withDesc(e)}function Me(t,e){return Pe(t,function(){return p(e)}).withDesc(new x("Bacon","interval",[t,e]))}function Ee(t,e,n){return de(e,t,V("function"==typeof n?n:m.id)).withDesc(new x(t,"sampledBy",[e]))}function Ae(t,n,e){return new O(new x(t,"transform",[n]),function(e){return t.subscribeInternal(function(t){return n(t,e)})}).withDesc(e)}function Oe(n,e){function r(t){return e(t,i)}var i;return function(t,e){return i=e,n(t,r)}}function Ce(t,e,n,r){return e instanceof O?de(t,e,function(t,e){return[t,e]}).transform(Oe(n(function(t){return t[1]}),ve(function(t){return t[0]})),r):t.transform(n((t=>{if("boolean"==typeof t)return m.always(t);if("function"!=typeof t)throw new Error("Not a function: "+t);return t})(e)),r)}function De(n){return function(t,e){return t.filter(n)?e(t):_}}function Ie(t){return t.map(function(t){return!t}).withDesc(new x(t,"not",[]))}function Te(t){return un(t)?t:me(t)}function Le(t,e){return qt(Ut(e),t,{firstOnly:!0,desc:new x(t,"flatMapFirst",[e])})}function je(t,e,n){return t.scan(e,n).last().withDesc(new x(t,"fold",[e,n]))}var Re={};function ze(t,e){return qt(Ut(e),t,{desc:new x(t,"flatMap",[e])})}function Ne(t,n){return qt(function(t){var e;return t instanceof f?(e=t.error,n(e)):t},t,{mapError:!0,desc:new x(t,"flatMapError",[n])})}var Be=[],Fe=!1;function He(e){if(Be.length&&!Fe)try{Fe=!0,Be.forEach(function(t){t(e)})}finally{Fe=!1}}function We(t,e){var n=m.toFunction(e),r=un(t)?t.toEventStream(I):t,e=ze(r,function(t){return Yt(n(t)).takeUntil(r)});return(e=un(t)?e.toProperty():e).withDesc(new x(t,"flatMapLatest",[n]))}A.prototype.hasSubscribers=function(){return 0<this.subscriptions.length},A.prototype.removeSub=function(t){return this.subscriptions=m.without(t,this.subscriptions),this.subscriptions},A.prototype.push=function(t){return t.isEnd&&(this.ended=!0),b.inTransaction(t,this,this.pushIt,[t])},A.prototype.pushToSubscriptions=function(t){try{for(var e=this.subscriptions,n=e.length,r=0;r<n;r++){var i=e[r];i.sink(t)!==y&&!t.isEnd||this.removeSub(i)}return!0}catch(t){throw this.pushing=!1,this.queue=[],t}},A.prototype.pushIt=function(t){if(this.pushing)return this.queue.push(t),_;if(t!==this.prevError){for(t.isError&&(this.prevError=t),this.pushing=!0,this.pushToSubscriptions(t),this.pushing=!1;;){var e=this.queue.shift();if(!e)break;this.push(e)}return this.hasSubscribers()?_:(this.unsubscribeFromSource(),y)}},A.prototype.handleEvent=function(t){return this._handleEvent?this._handleEvent(t):this.push(t)},A.prototype.unsubscribeFromSource=function(){this.unsubSrc&&this.unsubSrc(),this.unsubSrc=void 0},A.prototype.subscribe=function(t){var e=this;if(this.ended)return t(w()),c;Z(t);var n={sink:t};return this.subscriptions.push(n),1===this.subscriptions.length&&(this.unsubSrc=this._subscribe(this.handleEvent),Z(this.unsubSrc)),function(){if(e.removeSub(n),!e.hasSubscribers())return e.unsubscribeFromSource()}},A.prototype.inspect=function(){return this.observable.toString()};var Ve,$e=A,qe=(e(Ue,Ve=$e),Ue.prototype.push=function(t){return t.isEnd&&(this.propertyEnded=!0),t instanceof xt?(this.current=ne
1w ft(t),this.currentValueRootId=b.currentEventId()):t.hasValue&&console.error("Unknown event, two Bacons loaded?",t.constructor),Ve.prototype.push.call(this,t)},Ue.prototype.maybeSubSource=function(t,e){return e===y?c:this.propertyEnded?(t(w()),c):Ve.prototype.subscribe.call(this,t)},Ue.prototype.subscribe=function(t){var e,n,r=this,i=_;return this.current.isDefined&&(this.hasSubscribers()||this.propertyEnded)&&(e=b.currentEventId(),n=this.currentValueRootId,!this.propertyEnded&&n&&e&&e!==n?b.whenDoneWith(this.observable,function(){if(r.currentValueRootId===n)return t(It(r.current.get().value))}):b.inTransaction(void 0,this,function(){return i=t(It(r.current.get().value))},[])),this.maybeSubSource(t,i)},Ue.prototype.inspect=function(){return this.observable+" current= "+this.current},Ue);function Ue(t,e,n){t=Ve.call(this,t,e,n)||this;return t.current=r,t.propertyEnded=!1,t.subscribe=m.bind(t.subscribe,t),t}function A(t,e,n){this.pushing=!1,this.ended=!1,this.prevError=void 0,this.unsubSrc=void 0,this._subscribe=e,this._handleEvent=n,this.subscribe=m.bind(this.subscribe,this),this.handleEvent=m.bind(this.handleEvent,this),this.subscriptions=[],this.observable=t,this.queue=[]}function Ye(t,e,n){return qt(Ut(n),t,{desc:new x(t,"flatMapWithConcurrencyLimit",[e,n]),limit:e})}function Ke(t,n,e){var r=(()=>{var e;if(void 0!==n)return"number"==typeof n?(e=n,function(t){return l.scheduler.setTimeout(t,e)}):n})();function i(t){return t.values.length===e?t.flush():void 0!==r?t.schedule(r):void 0}var o,a,s,u=new x(t,"bufferWithTimeOrCount",[n,e]);return t=t,a=_,s=new Ge(void 0===(o=i)?c:i,o=void 0===i?c:i),t.transform(function(t,e){return s.push=e,k(t)?(s.values.push(t.value),o(s)):S(t)?a=e(t):Rt(t)&&(s.end=t,s.scheduled||s.flush()),a}).withDesc(new x(t,"buffer",[])).withDesc(u)}Qe.prototype.flush=function(){var t;return this.scheduled&&(l.scheduler.clearTimeout(this.scheduled),this.scheduled=null),0<this.values.length?(t=this.values,this.values=[],t=this.push(p(t)),null!=this.end?this.push(this.end):t!==y?this.onFlush(this):void 0):null!=this.end?this.push(this.end):void 0},Qe.prototype.schedule=function(t){var e=this;if(!this.scheduled)return this.scheduled=t(function(){return e.flush()})};var Ge=Qe;function Qe(t,e){this.push=function(t){return _},this.scheduled=null,this.end=void 0,this.values=[],this.onFlush=t,this.onInput=e}function Xe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=M(t);return i.length?new T(new x("Bacon","mergeAll",i),function(n){var r=0,t=v(function(t){return function(e){return t.subscribeInternal(function(t){if(t.isEnd)return++r===i.length?n(w()):_;t=t.toNext();t=n(t);return t===y&&e(),t})}},i);return new Ht(t).unsubscribe}):ae()}function Je(n,r){return E(function(t){var e=l.scheduler.setTimeout(function(){return t([Tt(r),w()])},n);return function(){return l.scheduler.clearTimeout(e)}}).withDesc(new x("Bacon","later",[n,r]))}function Ze(n){return function(t,e){return t.filter(n)?e(t):(e(w()),y)}}function tn(n){var r=!1;return function(t,e){return!r&&k(t)&&n(t.value)?_:(t.hasValue&&(r=!0),e(t))}}function en(r,i,o){void 0===o&&(o=m.id);var a={};return r.transform(Oe(De(function(t){return!a[i(t)]}),ve(function(t){var n=i(t),e=r.changes().filter(function(t){return i(t)===n}),e=P(t).concat(e),e=o(e,t).toEventStream().transform(function(t,e){e=e(t);return t.isEnd&&delete a[n],e});return a[n]=e})))}var nn={};function rn(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=ye(arguments),e=r[0];return t=r[1],se([e=m.map(function(t){return t.toEventStream()},e),t]).withDesc(new x("Bacon","zipWith",[t].concat(e)))}function on(i){function u(t,e,n){t[t.length-1][e]=n}function l(t){return d(t)?[]:{}}function c(t){if(g(t))return 1;if(t&&(t.constructor==Object||t.constructor==Array))for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&c(t[e]))return 1}function e(t,e){var n,r,i,o,a,s;g(e)?(p.push(e),f.push((a=t,s=p.length-1,function(t,e){u(t,a,e[s])}))):c(e)?(f.push((i=t,o=e,function(t){var e=l(o);u(t,i,e),t.push(e)})),h(e),f.push(function(t){t.pop()})):f.push((n=t,r=e,function(t){u(t,n,r)}))}function h(t){m.each(t,e)}var f=[],p=[];return(c(i)?(h(i),xe(p).map(function(t){for(var e=l(i),n=[e],r=0;r<f.length;r++)(0,f[r])(n,t);return e})):me(i)).withDesc(new x("Bacon","combineTemplate",[i]))}var an,sn=0,O=(D.prototype.awaiting=function(t){return be([e=this,t=t],I).map(function(t){return 0===t[1].length}).toProperty(!1).skipDuplicates().withDesc(new x(e,"awaiting",[t]));var e},D.prototype.bufferingThrottle=function(t){return t=new x(e=this,"bufferingThrottle",[n=t]),e.transformChanges(t,function(t){return t.flatMapConcat(function(t){return P(t).concat(Je(n,t).errors())})});var e,n},D.prototype.combine=function(t,e){return we(this,t,e)},D.prototype.debounce=function(t){return e=t,(t=this).transformChanges(new x(t,"debounce",[e]),function(t){return t.flatMapLatest(function(t){return Je(e,t)})});var e},D.prototype.debounceImmediate=function(t){return e=t,(t=this).transformChanges(new x(t,"debounceImmediate",[e]),function(t){return t.flatMapFirst(function(t){return P(t).concat(Je(e,t).errors())})});var e},D.prototype.decode=function(t){return t=t,(e=this).combine(on(t),function(t,e){return e[t]}).withDesc(new x(e,"decode",[t]));var e},D.prototype.delay=function(t){return e=t,(t=this).transformChanges(new x(t,"delay",[e]),function(t){return t.flatMap(function(t){return Je(e,t)})});var e},D.prototype.deps=function(){return this.desc.deps()},D.prototype.diff=function(t,e){return n=e,Ae(Ft(e=this,[t=t,nn],function(t,e){return[e,n(t[0],e)]}),Oe(De(function(t){return t[1]!==nn}),ve(function(t){return t[1]})),new x(e,"diff",[t,n]));var n},D.prototype.doAction=function(t){return this.transform(function(t,e){return k(t)&&n(t.value),e(t)},new x(this,"doAction",[n=t]));var n},D.prototype.doEnd=function(t){return this.transform(function(t,e){return Rt(t)&&n(),e(t)},new x(this,"doEnd",[n=t]));var n},D.prototype.doError=function(t){return this.transform(function(t,e){return S(t)&&n(t.error),e(t)},new x(this,"doError",[n=t]));var n},D.prototype.doLog=function(){for(var n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.transform(function(t,e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log&&console.log.apply(console,n.concat([t.log()])),e(t)},new x(this,"doLog",n=t))},D.prototype.endAsValue=function(){return this.transform(function(t,e){return Rt(t)?(e(p({})),e(w()),y):_})},D.prototype.endOnError=function(t){return n=void 0===(t=void 0===t?function(t){return!0}:t)?function(t){return!0}:t,(t=this).transform(function(t,e){return S(t)&&n(t.error)?(e(t),e(w())):e(t)},new x(t,"endOnError",[]));var n},D.prototype.errors=function(){return this.filter(function(t){return!1}).withDesc(new x(this,"errors"))},D.prototype.filter=function(t){return Ce(e=this,t,De,new x(e,"filter",[t]));var e},D.prototype.first=function(){return Nt(1,this,new x(this,"first"))},D.prototype.firstToPromise=function(t){var r=this;if("function"!=typeof t){if("function"!=typeof Promise)throw new Error("There isn't default Promise, use shim or parameter");t=function(t){return new Promise(t)}}return new t(function(e,n){return r.subscribe(function(t){return k(t)&&e(t.value),S(t)&&n(t.error),y})})},D.prototype.fold=function(t,e){return je(this,t,e)},D.prototype.forEach=function(t){return this.onValue(t=void 0===t?n:t)},D.prototype.holdWhen=function(t){return u=!1,c=!(l=[]),new T(new x(r=this,"holdWhen",[s=t]),function(o){function a(t){return t&&t(),e.empty()&&n?o(w()):_}var e=new Ht,n=!1;return e.add(function(t,i){return s.subscribeInternal(function(t){if(k(t)){u=t.value;var e=_;if(!u){var n=l;l=[];for(var r=0;r<n.length;r++)e=o(p(n[r]));c&&(o(w()),i(),e=y)}return e}return t.isEnd?a(i):o(t)})}),e.add(function(t,e){return r.subscribeInternal(function(t){return u&&k(t)?(l.push(t.value),_):t.isEnd&&l.length?(c=!0,a(e)):o(t)})}),n=!0,a(),e.unsubscribe});var r,s,u,l,c},D.prototype.inspect=function(){return this.toString()},D.prototype.internalDeps=function(){return this.initialDesc.deps()},D.prototype.last=function(){return this.transform(function(t,e){return Rt(t)?(n&&e(n),e(w()),y):k(t)?(n=t,_):e(t)}).withDesc(new x(this,"last",[]));var n},D.prototype.log=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e=t,this.subscribe(function(t){return"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,e.concat([t.log()])),_}),this},D.prototype.mapEnd=function(t){return this.transform((n=m.toFunction(t),function(t,e){return Rt(t)?(e(p(n(t))),e(w()),y):e(t)}),new x(this,"mapEnd",[t]));var n},D.prototype.mapError=function(t){return this.transform((n=m.toFunction(t),function(t,e){return S(t)?e(p(n(t.error))):e(t)}),new x(this,"mapError",[t]));var n},D.prototype.name=function(t){return this._name=t,this},D.prototype.onEnd=function(e){return void 0===e&&(e=ct),this.subscribe(function(t){return t.isEnd?e():_})},D.prototype.onError=function(e){return void 0===e&&(e=n),this.subscribe(function(t){return S(t)?e(t.error):_})},D.prototype.onValue=function(e){return void 0===e&&(e=n),this.subscribe(function(t){return k(t)?e(t.value):_})},D.prototype.onValues=function(e){return this.onValue(function(t){return e.apply(void 0,t)})},D.prototype.reduce=function(t,e){return je(this,t,e)},D.prototype.sampledBy=function(t){return e=this,t=t,n=arguments[1],e instanceof T?(i=t,o=n,Ee((r=e).toProperty(),i,o).withDesc(new x(r,"sampledBy",[
1i]))):Ee(e,t,n);var e,n,r,i,o},D.prototype.scan=function(t,e){return Ft(this,t,e)},D.prototype.skip=function(t){return n=t,(t=this).transform(function(t,e){return t.hasValue&&0<n?(n--,_):e(t)},new x(t,"skip",[n]));var n},D.prototype.skipDuplicates=function(t){return void 0===(n=t)&&(n=zt),e=new x(t=this,"skipDuplicates",[]),ht(r,function(t,e){return k(e)?e.isInitial||null!=t&&t._isNone||!n(t.get(),e.value)?[new ft(e.value),[e]]:[t,[]]:[t,[e]]},t).withDesc(e);var n,e},D.prototype.skipErrors=function(){return this.transform(function(t,e){return S(t)?_:e(t)},new x(this,"skipErrors",[]))},D.prototype.skipUntil=function(t){return e=this,n=(t=t).transform(Oe(Bt(1),ve(!0))).toProperty().startWith(!1),e.filter(n).withDesc(new x(e,"skipUntil",[t]));var e,n},D.prototype.skipWhile=function(t){return Ce(e=this,t,tn,new x(e,"skipWhile",[t]));var e},D.prototype.slidingWindow=function(t,e){return n=t,void 0===(r=e=void 0===e?0:e)&&(r=0),(t=this).scan([],function(t,e){return t.concat([e]).slice(-n)}).filter(function(t){return t.length>=r}).withDesc(new x(t,"slidingWindow",[n,r]));var n,r},D.prototype.subscribe=function(t){var e=this;return b.wrappedSubscribe(this,function(t){return e.subscribeInternal(t)},t=void 0===t?n:t)},D.prototype.take=function(t){return Nt(t,this)},D.prototype.takeUntil=function(t){return t=t,n=be([(e=this).mapEnd(Re),t.skipErrors()],I),(n=e instanceof O?n.toProperty():n).transform(function(t,e){if(k(t)){var n=t.value,r=n[0];if(n[1].length)return e(w());for(var i=_,o=0;o<r.length;o++){var a=r[o];if(a===Re)return e(w());i=e(p(a))}return i}return e(t)},new x(e,"takeUntil",[t]));var e,n},D.prototype.takeWhile=function(t){return Ce(e=this,t,Ze,new x(e,"takeWhile",[t]));var e},D.prototype.throttle=function(t){return e=t,(t=this).transformChanges(new x(t,"throttle",[e]),function(t){return t.bufferWithTime(e).map(function(t){return t[t.length-1]})});var e},D.prototype.toPromise=function(t){return t=t,this.last().firstToPromise(t)},D.prototype.toString=function(){return this._name||this.desc.toString()},D.prototype.withDesc=function(t){return t&&(this.desc=t),this},D.prototype.withDescription=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.desc=ut.apply(void 0,[t,e].concat(n)),this},D.prototype.zip=function(t,e){return n=this,t=t,rn(e||Array,n,t).withDesc(new x(n,"zip",[t]));var n},e(C,an=a=D),C.prototype.and=function(t){return this.combine(Te(t=t),function(t,e){return!(!t||!e)}).withDesc(new x(this,"and",[t]))},C.prototype.changes=function(){var t=this;return new T(new x(this,"changes",[]),function(e){return t.dispatcher.subscribe(function(t){return t.isInitial?_:e(t)})})},C.prototype.concat=function(e){return this.transformChanges(ut(this,"concat",e),function(t){return t.concat(e)})},C.prototype.transformChanges=function(t,e){return t=t,o=e(new T(ut(n=this,"changes",[]),function(e){return n.dispatcher.subscribe(function(t){return!r&&jt(t)&&(r=t,b.whenDoneWith(a,function(){if(!i)throw new Error("Init sequence fail");i(r)})),t.isInitial?_:e(t)})},void 0,I)),a=$t(t,function(e){return i=e,o.dispatcher.subscribe(function(t){e(t)})});var n,r,i,o,a},C.prototype.flatMap=function(t){return ze(this,t)},C.prototype.flatMapConcat=function(t){return ke(this,t)},C.prototype.flatMapError=function(t){return Ne(this,t)},C.prototype.flatMapEvent=function(t){return Kt(this,t)},C.prototype.flatMapFirst=function(t){return Le(this,t)},C.prototype.flatMapLatest=function(t){return We(this,t)},C.prototype.flatMapWithConcurrencyLimit=function(t,e){return Ye(this,t,e)},C.prototype.groupBy=function(t,e){return en(this,t,e)},C.prototype.map=function(t){return ge(this,t)},C.prototype.not=function(){return Ie(this)},C.prototype.or=function(t){return this.combine(Te(t=t),function(t,e){return t||e}).withDesc(new x(this,"or",[t]))},C.prototype.sample=function(t){return Ee(e=this,Me(t=t,{}),function(t,e){return t}).withDesc(new x(e,"sample",[t]));var e},C.prototype.startWith=function(t){return t=t,(e=this).scan(t,function(t,e){return e}).withDesc(new x(e,"startWith",[t]));var e},C.prototype.subscribeInternal=function(t){return this.dispatcher.subscribe(t=void 0===t?n:t)}
1,C.prototype.toEventStream=function(t){var n=this;return new T(new x(this,"toEventStream",[]),function(e){return n.subscribeInternal(function(t){return e(t.toNext())})},void 0,t)},C.prototype.toProperty=function(){return J("no arguments supported",0===arguments.length),this},C.prototype.transform=function(t,e){return Ae(this,t,e)},C.prototype.withLatestFrom=function(t,e){return pe(this,t,e)},C.prototype.withStateMachine=function(t,e){return ht(t,e,this)},C);function C(t,e,n){t=an.call(this,t)||this;return t._isProperty=!0,Z(e),t.dispatcher=new qe(t,e,n),He(t),t}function D(t){this.id=++sn,this._isObservable=!0,this.desc=t,this.initialDesc=t}function un(t){return t._isProperty}var ln,I={forceAsync:!1},T=(e(L,ln=a),L.prototype.bufferWithTime=function(t){return Ke(e=this,t=t,Number.MAX_VALUE).withDesc(new x(e,"bufferWithTime",[t]));var e},L.prototype.bufferWithCount=function(t){return Ke(e=this,void 0,t=t).withDesc(new x(e,"bufferWithCount",[t]));var e},L.prototype.bufferWithTimeOrCount=function(t,e){return Ke(this,t,e)},L.prototype.changes=function(){return this},L.prototype.concat=function(t,e){return e=e,new T(new x(r=this,"concat",[i=t]),function(e){var n=c,t=r.dispatcher.subscribe(function(t){return t.isEnd?(n=i.toEventStream().dispatcher.subscribe(e),_):e(t)});return function(){return t(),n()}},void 0,e);var r,i},L.prototype.transformChanges=function(t,e){return e(this).withDesc(t)},L.prototype.flatMap=function(t){return ze(this,t)},L.prototype.flatMapConcat=function(t){return ke(this,t)},L.prototype.flatMapError=function(t){return Ne(this,t)},L.prototype.flatMapFirst=function(t){return Le(this,t)},L.prototype.flatMapLatest=function(t){return We(this,t)},L.prototype.flatMapWithConcurrencyLimit=function(t,e){return Ye(this,t,e)},L.prototype.flatMapEvent=function(t){return Kt(this,t)},L.prototype.flatScan=function(t,e){return n=e,r=e=t,(t=this).flatMapConcat(function(t){return Yt(n(r,t)).doAction(function(t){return r=t})}).toProperty().startWith(e).withDesc(new x(t,"flatScan",[e,n]));var n,r},L.prototype.groupBy=function(t,e){return en(this,t,e)},L.prototype.map=function(t){return ge(this,t)},L.prototype.merge=function(t){if(null!=t&&t._isEventStream)return Xe(this,t).withDesc(new x(this,"merge",[t]));throw new Error("not an EventStream : "+t)},L.prototype.not=function(){return Ie(this)},L.prototype.startWith=function(t){return e=this,P(t=t).concat(e).withDesc(new x(e,"startWith",[t]));var e},L.prototype.subscribeInternal=function(t){return this.dispatcher.subscribe(t=void 0===t?n:t)},L.prototype.toEventStream=function(){return this},L.prototype.toProperty=function(t){var t=arguments.length?(t=t)&&(t._isSome||t._isNone)?t:new ft(t):r,e=this.dispatcher,n=new x(this,"toProperty",Array.prototype.slice.apply(arguments)),e=e.subscribe;return new O(n,Vt(t,e))},L.prototype.transform=function(t,e){return e=e,new T(new x(n=this,"transform",[r=t]),function(e){return n.subscribeInternal(function(t){return r(t,e)})},void 0,I).withDesc(e);var n,r},L.prototype.withLatestFrom=function(t,e){return fe(this,t,e)},L.prototype.withStateMachine=function(t,e){return ht(t,e,this)},L);function L(t,e,n,r){var o,a,s,t=ln.call(this,t)||this;return t._isEventStream=!0,r!==I&&(o=t,a=e,s=!1,e=function(r){var i,e=b.isInTransaction();function n(){var t=i||[];i=void 0;for(var e=0;e<t.length;e++){var n=t[e];r(n)}}s=!0;try{return a(function(t){return s||i?(i?i.push(t):(i=[t],e?b.soonButNotYet(o,n):l.scheduler.setTimeout(n,0)),_):r(t)})}finally{s=!1}}),t.dispatcher=new $e(t,e,n),He(t),t}function cn(t,e){return new T(t,e)}function hn(t){return"undefined"!=typeof Symbol&&Symbol[t]?Symbol[t]:"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol[t]=Symbol.for(t):"@@"+t}pn.prototype.subscribe=function(t,e,n){var r="function"==typeof t?{next:t,error:e,complete:n}:t,i={closed:!1,unsubscribe:function(){i.closed=!0,o()}},o=this.observable.subscribe(function(t){k(t)&&r.next?r.next(t.value):S(t)?(r.error&&r.error(t.error),i.unsubscribe()):t.isEnd&&(i.closed=!0,r.complete)&&r.complete()});return i};var fn=pn;function pn(t){this.observable=t}fn.prototype[hn("observable")]=function(){return this},a.prototype.toESObservable=function(){return new fn(this)},a.prototype[hn("observable")]=a.prototype.toESObservable;var dn,gn=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"],["bind","unbind"]];function vn(e,n,t){var r=(t=>{for(var e,n=0;n<gn.length;n++){var r=[t[(e=gn[n])[0]],t[e[1]]];if(r[0]&&r[1])return r}for(var i=0;i<gn.length;i++){var o=t[(e=gn[i])[0]];if(o)return[o,function(){}]}throw new Error("No suitable event methods in "+t)})(e),i=r[0],o=r[1],r=new x("Bacon","fromEvent",[e,n]);return E(function(t){return m.isFunction(n)?(n(i.bind(e),t),function(){return n(o.bind(e),t)}):(i.call(e,n,t),function(){return o.call(e,n,t)})},t).withDesc(r)}function mn(s){var u=0;return E(function(e){var n=!1,r=_,i=function(){};function o(t){return t.isEnd?(n?a():n=!0,_):r=e(t)}function a(){var t;for(n=!0;n&&r!==y;)t=s(u++),n=!1,t?i=t.subscribeInternal(o):e(w());n=!0}return a(),function(){return i()}}).withDesc(new x("Bacon","repeat",[s]))}function _n(t){return Je(t,"").filter(!1).withDesc(new x("Bacon","silence",[t]))}function yn(t){return[Tt(t),w()]}function bn(t,e){return function(t){for(var n,r,e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return"object"==typeof t&&e.length&&(n=t,r=e[0],t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n[r].apply(n,t)},e=e.slice(1)),dn.apply(void 0,[t].concat(e))}.apply(void 0,[t].concat(e))}dn=function(t){for(var n,r,e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return m.isFunction(t)?e.length?(n=t,r=e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.apply(void 0,r.concat(t))}):t:m.always(t)},e(j,xn=T),j.prototype.plug=function(t){var e,n=this;if(null==t||!t._isObservable)throw new Error("not an Observable : "+t);if(!this.ended)return this.subscriptions.push(e={input:t,unsub:void 0}),void 0!==this.sink&&this.subscribeInput(e),function(){return n.unsubscribeInput(t)}},j.prototype.end=function(){if(this.ended=!0,this.unsubAll(),"function"==typeof this.sink)return this.sink(w())},j.prototype.push=function(t){if(!this.ended&&"function"==typeof this.sink){var e=!this.pushing;if(e){this.pushing=!0;try{return this.sink(p(t))}finally{if(e&&this.pushQueue){for(var n=0;n<this.pushQueue.length;){var r=this.pushQueue[n];this.sink(p(r)),n++}this.pushQueue=void 0}this.pushing=!1}}else this.pushQueue||(this.pushQueue=[]),this.pushQueue.push(t)}},j.prototype.error=function(t){if("function"==typeof this.sink)return this.sink(new f(t))},j.prototype.unsubAll=function(){for(var t,e=this.subscriptions,n=0;n<e.length;n++)"function"==typeof(t=e[n]).unsub&&t.unsub()},j.prototype.subscribeAll=function(t){if(this.ended)t(w());else{this.sink=t;for(var e,n=this.subscriptions.slice(),r=0;r<n.length;r++)e=n[r],this.subscribeInput(e)}return this.unsubAll},j.prototype.guardedSink=function(e){var n=this;return function(t){return t.isEnd?(n.unsubscribeInput(e),y):n.sink?n.sink(t):_}},j.prototype.subscribeInput=function(t){return t.unsub=t.input.subscribeInternal(this.guardedSink(t.
1input)),t.unsub},j.prototype.unsubscribeInput=function(t){for(var e,n=this.subscriptions,r=0;r<n.length;r++)if((e=n[r]).input===t)return"function"==typeof e.unsub&&e.unsub(),void this.subscriptions.splice(r,1)};var xn,wn=j,Sn={asEventStream:function(e,n,t){var r=this;return m.isFunction(n)&&(t=n,n=void 0),E(function(t){return r.on(e,n,t),function(){return r.off(e,n,t)}},t).withDesc(new x(this.selector||this,"asEventStream",[e]))},init:function(t){t.fn.asEventStream=Sn.asEventStream}};function j(){var e=xn.call(this,new x("Bacon","Bus",[]),function(t){return e.subscribeAll(t)})||this;return e.pushing=!1,e.pushQueue=void 0,e.ended=!1,e.subscriptions=[],e.unsubAll=m.bind(e.unsubAll,e),e.subscriptions=[],e.ended=!1,e}t.$=Sn,t.Bus=wn,t.CompositeUnsubscribe=Ht,t.Desc=x,t.End=kt,t.Error=f,t.Event=bt,t.EventStream=T,t.Initial=St,t.Next=wt,t.Observable=a,t.Property=O,t.Value=xt,t._=m,t.combine=we,t.combineAsArray=xe,t.combineTemplate=on,t.combineWith=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ye(arguments),r=(t=r[0],new x("Bacon","combineWith",[e=r[1]].concat(t)));return xe(t).map(function(t){return e.apply(void 0,t)}).withDesc(r)},t.concatAll=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=M(t);return(n.length?$(K(n),n[0].toEventStream(),function(t,e){return t.concat(e)}):ae()).withDesc(new x("Bacon","concatAll",n))},t.constant=me,t.fromArray=function(s){var u,l,t=s;if(d(t))return s.length?(u=0,l=new T(new x("Bacon","fromArray",[s]),function(n){var r=!1,i=_,o=!1,a=!1;return b.soonButNotYet(l,function t(){if(a=!0,!o){if(u===s.length)return n(w()),!1;for(o=!0;a;){var e;a=!1,i===y||r||(e=s[u++],(i=n(Tt(e)))!==y&&(u===s.length?n(w()):b.afterTransaction(l,t)))}return o=!1}}),function(){return r=!0}})):ae().withDesc(new x("Bacon","fromArray",s));throw new Error("not an array : "+t)},t.fromBinder=E,t.fromCallback=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return E(function(t){return bn(e,n)(t),c},function(t){return[t,w()]}).withDesc(new x("Bacon","fromCallback",[e].concat(n)))},t.fromESObservable=function(t){var n=t[hn("observable")]?t[hn("observable")]():t,t=new x("Bacon","fromESObservable",[n]);return new T(t,function(e){var t=n.subscribe({error:function(t){e(new f(t)),e(new kt)},next:function(t){e(new wt(t))},complete:function(){e(new kt)}});return t.unsubscribe?function(){t.unsubscribe()}:t})},t.fromEvent=vn,t.fromEventTarget=vn,t.fromNodeCallback=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return E(function(t){return bn(e,n)(t),c},function(t,e){return t?[new f(t),w()]:[e,w()]}).withDesc(new x("Bacon","fromNodeCallback",[e].concat(n)))},t.fromPoll=Pe,t.fromPromise=function(n,r,t){return E(function(e){var t=n.then(e,function(t){return e(new f(t))});return t&&"function"==typeof t.done&&t.done(),r?function(){if("function"==typeof n.abort)return n.abort()}:function(){}},t=void 0===t?yn:t).withDesc(new x("Bacon","fromPromise",[n]))},t.getScheduler=function(){return l.scheduler},t.groupSimultaneous=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return be(M(t))},t.hasValue=k,t.interval=Me,t.isEnd=Rt,t.isError=S,t.isEvent=Lt,t.isInitial=jt,t.isNext=function(t){return t.isNext},t.later=Je,t.mergeAll=Xe,t.more=_,t.never=ae,t.noMore=y,t.nullSink=n,t.nullVoidSink=ct,t.onValues=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xe(t.slice(0,t.length-1)).onValues(t[arguments.length-1])},t.once=P,t.repeat=mn,t.repeatedly=function(t,e){var n=0;return Pe(t,function(){return e[n++%e.length]}).withDesc(new x("Bacon","repeatedly",[t,e]))},t.retry=function(t){var r,i,o,a,s,u,l;if(m.isFunction(t.source))return r=t.source,i=t.retries||0,o=0,a=t.delay||function(){return 0},s=t.isRetryable||function(){return!0},u=!1,l=null,mn(function(t){function e(){return r(t).endOnError().transform(function(t,e){return S(t)?s((l=t).error)&&(0===i||o<i)?_:(u=!0,e(t)):(k(t)&&(u=!(l=null)),e(t))})}var n;if(!u)return l?(n={error:l.error,retriesDone:o},n=_n(a(n)),o++,n.concat(P(null).flatMap(e))):e()}).withDesc(new x("Bacon","retry",[t]));throw new Error("'source' option has to be a function")},t.sequentially=function(t,e){var n=0;return Pe(t,function(){var t=e[n++];return n<e.length?t:n===e.length?[Tt(t),w()]:w()}).withDesc(new x("Bacon","sequentially",[t,e]))}
1,t.setScheduler=function(t){l.scheduler=t},t.silence=_n,t.spy=function(t){return Be.push(t)},t.try=function(e){return function(t){try{return P(e(t))}catch(t){return P(new f(t))}}},t.update=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=ce(e),i=0;i<r.length;i++){var o=r[i];o[1]=(n=>function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return n.apply(void 0,[t].concat(e))}})(o[1])}return se.apply(void 0,r).scan(t,function(t,e){return e(t)}).withDesc(new x("Bacon","update",[t].concat(e)))},t.version="3.0.12",t.when=se,t.zipAsArray=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return se([m.map(function(t){return t.toEventStream()},M(t)),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t}]).withDesc(new x("Bacon","zipAsArray",t))},t.zipWith=rn,Object.defineProperty(t,"__esModule",{value:!0})},function(R,z,N){N.r(z);function B(t,a,s,u){return new(s=s||Promise)(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((u=u.apply(t,a||[])).next())})}function F(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,a=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))u.label=e[1];else if(6===e[0]&&u.label<s[1])u.label=s[1],s=e;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(e)}}e=i.call(r,u)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}V.prototype.render=function(t){return t(this.result,this.highlights)};var H=V,W=(Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counts",{get:function(){return this._counts},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterClient",{get:function(){return this._filterClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return this._displayName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedValues",{get:function(){return this._selectedValues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t.prototype.getQueryParam=function(t){var e={};return e[this.getFilterParamName()]='"'+t+'"',e},t.prototype.getFilterParamName=function(){return"facet.filter."+this.config.baseName},t.prototype.getSelectedParameters=function(){var t,e=this;return(null==(t=this.selectedValues)?void 0:t.map(function(t){return e.getQueryParam(t)}))||[]},t.prototype.isValueAllowed=function(t){return this.counts.map(function(t){return t.value}).includes(t)},t.prototype.setSelectedValues=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._selectedValues=t,this},t.prototype.setDisplayName=function(t){return this._displayName=t,this},t.prototype.reset=function(){var t=this.filterClient.parameterList.deleteAll(this.getFilterParamName());return this.filterClient.parameterList=t,this.setSelectedValues.apply(this,[]),this},t.prototype.filter=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return B(this,void 0,void 0,function(){var e,n,r=this;return F(this,function(t){if(!this.config.multiSelect&&1<i.length)throw new Error("This is not a multi value facet. You can only pass one value to filter().");
1return i.forEach(function(t){if(r.type!==typeof t)throw new Error("The facet "+r.config.baseName+" is of type "+r.type+", but the value that was passed ("+t+") is of type "+typeof t);if(!r.isValueAllowed(t))throw new Error("The passed value "+t+" is not allowed in this facette")}),e=i.map(function(t){return r.getQueryParam(t)}),n=(n=this.filterClient.parameterList.deleteAll(this.getFilterParamName())).add.apply(n,e),this.filterClient.parameterList=n.updateFirst({haupia_start:"0"}).updateFirst({haupia_pageNumber:"0"}),[2,this.search()]})})},t.prototype.search=function(){return B(this,void 0,void 0,function(){var e;return F(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.filterClient.fetch()];case 1:return e=t.sent(),[2,new Ir(this.filterClient,e)];case 2:throw e=t.sent(),new Error(e);case 3:return[2]}})})},t),b={};function t(t,e,n){var r=this;this.data=e,this.config=n,this._filterClient=t,this._name=n.baseName,this._type=e.name.split("_").pop(),this._counts=this.data.counts.map(function(t){return t.filterQuery=r.getFilterParamName(),t})}function V(t,e){this.result=t,this.highlights=e[t.id]}function m(t){t&&(t.value=!0)}function $(){}function q(t){return void 0===t.size&&(t.size=t.__iterate(Y)),t.size}function U(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295==n)return NaN;e=n}return e<0?q(t)+e:e}function Y(){return!0}function K(t,e,n){return(0===t&&!J(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&n<=e)}function G(t,e){return X(t,e,0)}function Q(t,e){return X(t,e,e)}function X(t,e,n){return void 0===t?n:J(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function J(t){return t<0||0===t&&1/t==-1/0}function c(t){return Boolean(t&&t["@@__IMMUTABLE_ITERABLE__@@"])}function u(t){return Boolean(t&&t["@@__IMMUTABLE_KEYED__@@"])}function s(t){return Boolean(t&&t["@@__IMMUTABLE_INDEXED__@@"])}function Z(t){return u(t)||s(t)}function l(t){return c(t)?t:r(t)}it.__proto__=e=l;var h=(it.prototype=Object.create(e.prototype)).constructor=it,tt=(rt.__proto__=e=l,(rt.prototype=Object.create(e.prototype)).constructor=rt),et=(nt.__proto__=e=l,(nt.prototype=Object.create(e.prototype)).constructor=nt);function nt(t){return c(t)&&!Z(t)?t:_t(t)}function rt(t){return s(t)?t:g(t)}function it(t){return u(t)?t:mt(t)}function ot(t){return Boolean(t&&t["@@__IMMUTABLE_SEQ__@@"])}function at(t){return Boolean(t&&t["@@__IMMUTABLE_RECORD__@@"])}function st(t){return c(t)||at(t)}l.Keyed=h,l.Indexed=tt,l.Set=et;var ut="@@__IMMUTABLE_ORDERED__@@";function f(t){return Boolean(t&&t[ut])}var lt="function"==typeof Symbol&&Symbol.iterator,e=lt||"@@iterator",p=function(t){this.next=t};function d(t,e,n,r){t=0===t?e:1===t?n:[e,n];return r?r.value=t:r={value:t,done:!1},r}function ct(){return{value:void 0,done:!0}}function ht(t){return dt(t)}function ft(t){return t&&"function"==typeof t.next}function pt(t){var e=dt(t);return e&&e.call(t)}function dt(t){t=t&&(lt&&t[lt]||t["@@iterator"]);if("function"==typeof t)return t}p.prototype.toString=function(){return"[Iterator]"},p.KEYS=0,p.VALUES=1,p.ENTRIES=2,p.prototype.inspect=p.prototype.toSource=function(){return this.toString()},p.prototype[e]=function(){return this};var gt=Object.prototype.hasOwnProperty;function vt(t){return Array.isArray(t)||"string"==typeof t||t&&"object"==typeof t&&Number.isInteger(t.length)&&0<=t.length&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}wt.__proto__=O=l,((wt.prototype=Object.create(O.prototype)).constructor=wt).prototype.toSeq=function(){return this},wt.prototype.toString=function(){return this.__toString("Seq {","}")},wt.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},wt.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[e?r-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},wt.prototype.__iterator=function(e,n){var r,i,o=this._cache;return o?(r=o.length,i=0,new p(function(){var t;return i===r?{value:void 0,done:!0}:(t=o[n?r-++i:i++],d(e,t[0],t[1]))})):this.__iteratorUncached(e,n)};var r=wt,mt=((O=r)&&(xt.__proto__=O),((xt.prototype=Object.create(O&&O.prototype)).constructor=xt).prototype.toKeyedSeq=function(){return this},xt),g=((O=r)&&(bt.__proto__=O),((bt.prototype=Object.create(O&&O.prototype)).constructor=bt).of=function(){return bt(arguments)},bt.prototype.toIndexedSeq=function(){return this},bt.prototype.toString=function(){return this.__toString("Seq [","]")},bt),_t=((O=r)&&(yt.__proto__=O),((yt.prototype=Object.create(O&&O.prototype)).constructor=yt).of=function(){return yt(arguments)},yt.prototype.toSetSeq=function(){return this},yt);function yt(t){return(c(t)&&!Z(t)?t:g(t)).toSetSeq()}function bt(t){return null==t?Ct():c(t)?u(t)?t.entrySeq():t.toIndexedSeq():at(t)?t.toSeq().entrySeq():It(t)}function xt(t){return null==t?Ct().toKeyedSeq():c(t)?u(t)?t.toSeq():t.fromEntrySeq():at(t)?t.toSeq():Dt(t)}function wt(t){{if(null==t)return Ct();if(st(t))return t.toSeq();var e=Tt(t);if(e)return e;if("object"==typeof t)return new kt(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}}r.isSeq=ot,r.Keyed=mt,r.Set=_t,r.Indexed=g,r.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;(O=g)&&(Mt.__proto__=O),((Mt.prototype=Object.create(O&&O.prototype)).constructor=Mt).prototype.get=function(t,e){return this.has(t)?this._array[U(this,t)]:e},Mt.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,i=0;i!==r;){var o=e?r-++i:i++;if(!1===t(n[o],o,this))break}return i},Mt.prototype.__iterator=function(e,n){var r=this._array,i=r.length,o=0;return new p(function(){var t;return o===i?{value:void 0,done:!0}:(t=n?i-++o:o++,d(e,t,r[t]))})};var St=Mt,kt=((O=mt)&&(Pt.__proto__=O),((Pt.prototype=Object.create(O&&O.prototype)).constructor=Pt).prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},Pt.prototype.has=function(t){return gt.call(this._object,t)},Pt.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[e?i-++o:o++];if(!1===t(n[a],a,this))break}return o},Pt.prototype.__iterator=function(e,n){var r=this._object,i=this._keys,o=i.length,a=0;return new p(function(){var t;return a===o?{value:void 0,done:!0}:(t=i[n?o-++a:a++],d(e,t,r[t]))})},Pt);function Pt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function Mt(t){this._array=t,this.size=t.length}kt.prototype[ut]=!0;(O=g)&&(Ot.__proto__=O),((Ot.prototype=Object.create(O&&O.prototype)).constructor=Ot).prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n,r=pt(this._collection),i=0;if(ft(r))for(;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},Ot.prototype.__iteratorUncached=function(e,t){var n,r;return t?this.cacheResult().__iterator(e,t):ft(n=pt(this._collection))?(r=0,new p(function(){var t=n.next();return t.done?t:d(e,r++,t.value)})):new p(ct)};var Et,At=Ot;function Ot(t){this._collection=t,this.size=t.length||t.size}function Ct(){return Et=Et||new St([])}function Dt(t){var e=Array.isArray(t)?new St(t):ht(t)?new At(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new kt(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function It(t){var e=Tt(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Tt(t){return vt(t)?new St(t):ht(t)?new At(t):void 0}function Lt(t){return Boolean(t&&t["@@__IMMUTABLE_MAP__@@"])}function jt(t){return Lt(t)&&f(t)}function Rt(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function _(t,e){if(t===e||t!=t&&e!=e)return!0;
1if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(Rt(t)&&Rt(e)&&t.equals(e))}var zt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Nt(t){return t>>>1&1073741824|3221225471&t}var Bt=Object.prototype.valueOf;function x(t){switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":var e=t;if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);4294967295<e;)n^=e/=4294967295;return Nt(n);case"string":return 16<t.length?(void 0===(o=Kt[i=t])&&(o=Ft(i),255===Yt&&(Yt=0,Kt={}),Yt++,Kt[i]=o),o):Ft(t);case"object":case"function":if(null===t)return 1108378658;else if("function"==typeof t.hashCode)return Nt(t.hashCode(t));else{t.valueOf!==Bt&&"function"==typeof t.valueOf&&(t=t.valueOf(t));{i=t;var r;if((!$t||void 0===(r=Ht.get(i)))&&void 0===(r=i[Ut])){if(!Vt){if(void 0!==(r=i.propertyIsEnumerable&&i.propertyIsEnumerable[Ut]))return r;if(void 0!==(r=(t=>{if(t&&0<t.nodeType)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}})(i)))return r}if(r=++qt,1073741824&qt&&(qt=0),$t)Ht.set(i,r);else{if(void 0!==Wt&&!1===Wt(i))throw new Error("Non-extensible objects are not allowed as keys.");
1if(Vt)Object.defineProperty(i,Ut,{enumerable:!1,configurable:!1,writable:!1,value:r});else if(void 0!==i.propertyIsEnumerable&&i.propertyIsEnumerable===i.constructor.prototype.propertyIsEnumerable)i.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},i.propertyIsEnumerable[Ut]=r;else{if(void 0===i.nodeType)throw new Error("Unable to set a non-enumerable property on object.");i[Ut]=r}}}return r;return}}case"undefined":return 1108378659;default:if("function"==typeof t.toString)return Ft(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}var i,o}function Ft(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return Nt(e)}var Ht,Wt=Object.isExtensible,Vt=(()=>{try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}})(),$t="function"==typeof WeakMap,qt=($t&&(Ht=new WeakMap),0),Ut="__immutablehash__",Yt=("function"==typeof Symbol&&(Ut=Symbol(Ut)),0),Kt={},Gt=((O=mt)&&(Qt.__proto__=O),((Qt.prototype=Object.create(O&&O.prototype)).constructor=Qt).prototype.get=function(t,e){return this._iter.get(t,e)},Qt.prototype.has=function(t){return this._iter.has(t)},Qt.prototype.valueSeq=function(){return this._iter.valueSeq()},Qt.prototype.reverse=function(){var t=this,e=oe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Qt.prototype.map=function(t,e){var n=this,r=ie(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Qt.prototype.__iterate=function(n,t){var r=this;return this._iter.__iterate(function(t,e){return n(t,e,r)},t)},Qt.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},Qt);function Qt(t,e){this._iter=t,this._useKeys=e,this.size=t.size}Gt.prototype[ut]=!0;(O=g)&&(ne.__proto__=O),((ne.prototype=Object.create(O&&O.prototype)).constructor=ne).prototype.includes=function(t){return this._iter.includes(t)},ne.prototype.__iterate=function(e,n){var r=this,i=0;return n&&q(this),this._iter.__iterate(function(t){return e(t,n?r.size-++i:i++,r)},n)},ne.prototype.__iterator=function(e,n){var r=this,i=this._iter.__iterator(1,n),o=0;return n&&q(this),new p(function(){var t=i.next();return t.done?t:d(e,n?r.size-++o:o++,t.value,t)})};var Xt=ne,Jt=((O=_t)&&(ee.__proto__=O),((ee.prototype=Object.create(O&&O.prototype)).constructor=ee).prototype.has=function(t){return this._iter.includes(t)},ee.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ee.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new p(function(){var t=n.next();return t.done?t:d(e,t.value,t.value,t)})},ee),Zt=((O=mt)&&(te.__proto__=O),((te.prototype=Object.create(O&&O.prototype)).constructor=te).prototype.entrySeq=function(){return this._iter.toSeq()},te.prototype.__iterate=function(n,t){var r=this;return this._iter.__iterate(function(t){var e;if(t)return de(t),e=c(t),n(e?t.get(1):t[1],e?t.get(0):t[0],r)},t)},te.prototype.__iterator=function(r,t){var i=this._iter.__iterator(1,t);return new p(function(){for(;;){var t=i.next();if(t.done)return t;var e,n=t.value;if(n)return de(n),e=c(n),d(r,e?n.get(0):n[0],e?n.get(1):n[1],t)}})},te);function te(t){this._iter=t,this.size=t.size}function ee(t){this._iter=t,this.size=t.size}function ne(t){this._iter=t,this.size=t.size}function re(i){var t=ve(i);return t._iter=i,t.size=i.size,t.flip=function(){return i},t.reverse=function(){var t=i.reverse.apply(this);return t.flip=function(){return i.reverse()},t},t.has=function(t){return i.includes(t)},t.includes=function(t){return i.has(t)},t.cacheResult=me,t.__iterateUncached=function(n,t){var r=this;return i.__iterate(function(t,e){return!1!==n(e,t,r)},t)},t.__iteratorUncached=function(t,e){var n;return 2===t?(n=i.__iterator(t,e),new p(function(){var t,e=n.next();return e.done||(t=e.value[0],e.value[0]=e.value[1],e.value[1]=t),e})):i.__iterator(1===t?0:1,e)},t}function ie(o,a,s){var t=ve(o);return t.size=o.size,t.has=function(t){return o.has(t)},t.get=function(t,e){var n=o.get(t,b);return n===b?e:a.call(s,n,t,o)},t.__iterateUncached=function(r,t){var i=this;return o.__iterate(function(t,e,n){return!1!==r(a.call(s,t,e,n),e,i)},t)},t.__iteratorUncached=function(r,t){var i=o.__iterator(2,t);return new p(function(){var t,e,n=i.next();return n.done?n:(e=(t=n.value)[0],d(r,e,a.call(s,t[1],e,o),n))})},t}function oe(a,s){var u=this,t=ve(a);
1return t._iter=a,t.size=a.size,t.reverse=function(){return a},a.flip&&(t.flip=function(){var t=re(a);return t.reverse=function(){return a.flip()},t}),t.get=function(t,e){return a.get(s?t:-1-t,e)},t.has=function(t){return a.has(s?t:-1-t)},t.includes=function(t){return a.includes(t)},t.cacheResult=me,t.__iterate=function(n,r){var i=this,o=0;return r&&q(a),a.__iterate(function(t,e){return n(t,s?e:r?i.size-++o:o++,i)},!r)},t.__iterator=function(n,r){var i=0,o=(r&&q(a),a.__iterator(2,!r));return new p(function(){var t,e=o.next();return e.done?e:(t=e.value,d(n,s?t[0]:r?u.size-++i:i++,t[1],e))})},t}function ae(a,s,u,l){var t=ve(a);return l&&(t.has=function(t){var e=a.get(t,b);return e!==b&&!!s.call(u,e,t,a)},t.get=function(t,e){var n=a.get(t,b);return n!==b&&s.call(u,n,t,a)?n:e}),t.__iterateUncached=function(r,t){var i=this,o=0;return a.__iterate(function(t,e,n){if(s.call(u,t,e,n))return o++,r(t,l?e:o-1,i)},t),o},t.__iteratorUncached=function(r,t){var i=a.__iterator(2,t),o=0;return new p(function(){for(;;){var t=i.next();if(t.done)return t;var e=t.value,n=e[0],e=e[1];if(s.call(u,e,n,a))return d(r,l?n:o++,e,t)}})},t}function se(s,t,e,u){var l,c,n=s.size;return K(t,e,n)?s:(l=G(t,n),n=Q(e,n),l!=l||n!=n?se(s.toSeq().cacheResult(),t,e,u):((t=n-l)==t&&(c=t<0?0:t),(e=ve(s)).size=0===c?c:s.size&&c||void 0,!u&&ot(s)&&0<=c&&(e.get=function(t,e){return 0<=(t=U(this,t))&&t<c?s.get(t+l,e):e}),e.__iterateUncached=function(n,t){var r,i,o,a=this;return 0===c?0:t?this.cacheResult().__iterate(n,t):(i=!(r=0),o=0,s.__iterate(function(t,e){if(!i||!(i=r++<l))return o++,!1!==n(t,u?e:o-1,a)&&o!==c}),o)},e.__iteratorUncached=function(e,t){var n,r,i;return 0!==c&&t?this.cacheResult().__iterator(e,t):0===c?new p(ct):(n=s.__iterator(e,t),i=r=0,new p(function(){for(;r++<l;)n.next();var t;return++i>c?{value:void 0,done:!0}:(t=n.next(),u||1===e||t.done?t:d(e,i-1,0===e?void 0:t.value[1],t))}))},e))}function ue(e,l,c,h){var t=ve(e);return t.__iterateUncached=function(r,t){var i,o,a=this;return t?this.cacheResult().__iterate(r,t):(i=!0,o=0,e.__iterate(function(t,e,n){if(!i||!(i=l.call(c,t,e,n)))return o++,r(t,h?e:o-1,a)}),o)},t.__iteratorUncached=function(i,t){var o,a,s,u=this;return t?this.cacheResult().__iterator(i,t):(o=e.__iterator(2,t),a=!0,s=0,new p(function(){var t;do{if((t=o.next()).done)return h||1===i?t:d(i,s++,0===i?void 0:t.value[1],t);var e=t.value,n=e[0],r=e[1]}while(a=a&&l.call(c,r,n,u));return 2===i?t:d(i,n,r,t)}))},t}function le(t,s,u){var l=ve(t);return l.__iterateUncached=function(i,e){var o,a;return e?this.cacheResult().__iterate(i,e):(a=!1,function n(t,r){t.__iterate(function(t,e){return(!s||r<s)&&c(t)?n(t,r+1):(o++,!1===i(t,u?e:o-1,l)&&(a=!0)),!a},e)}(t,o=0),o)},l.__iteratorUncached=function(n,r){var i,o,a;return r?this.cacheResult().__iterator(n,r):(i=t.__iterator(n,r),o=[],a=0,new p(function(){for(;i;){var t=i.next();if(!1===t.done){var e=t.value;if(2===n&&(e=e[1]),s&&!(o.length<s)||!c(e))return u?t:d(n,a++,e,t);o.push(i),i=e.__iterator(n,r)}else i=o.pop()}return{value:void 0,done:!0}}))},l}function ce(n,r,i){r=r||_e;var t=u(n),o=0,a=n.toSeq().map(function(t,e){return[e,t,o++,i?i(t,e,n):t]}).valueSeq().toArray();return a.sort(function(t,e){return r(t[3],e[3])||t[2]-e[2]}).forEach(t?function(t,e){a[e].length=2}:function(t,e){a[e]=t[1]}),(t?mt:s(n)?g:_t)(a)}function he(n,r,i){var t;return r=r||_e,i?(t=n.toSeq().map(function(t,e){return[t,i(t,e,n)]}).reduce(function(t,e){return fe(r,t[1],e[1])?e:t}))&&t[0]:n.reduce(function(t,e){return fe(r,t,e)?e:t})}function fe(t,e,n){t=t(n,e);return 0===t&&n!==e&&(null==n||n!=n)||0<t}function pe(t,a,s,u){var t=ve(t),e=new St(s).map(function(t){return t.size});return t.size=u?e.max():e.min(),t.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},t.__iteratorUncached=function(e,n){var r=s.map(function(t){return t=l(t),pt(n?t.reverse():t)}),i=0,o=!1;return new p(function(){var t;return o||(t=r.map(function(t){return t.next()}),o=u?t.every(function(t){return t.done}):t.some(function(t){return t.done})),o?{value:void 0,done:!0}:d(e,i++,a.apply(null,t.map(function(t){return t.value})))})},t}function v(t,e){return t===e?t:ot(t)?e:t.constructor(e)}function de(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ge(t){return u(t)?h:s(t)?tt:et}function ve(t){return Object.create((u(t)?mt:s(t)?g:_t).prototype)}function me(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):r.prototype.cacheResult.call(this)}function _e(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:e<t?1:t<e?-1:0}function ye(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function be(t,e){if(!t)throw new Error(e)}function y(t){be(t!==1/0,"Cannot perform this action with an infinite size.")}function xe(t){if(vt(t)&&"string"!=typeof t)return t;if(f(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function we(t){return"object"==typeof t&&(st(t)||Array.isArray(t)||(t=t)&&("function"!=typeof t.constructor||"Object"===t.constructor.name))}function Se(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function ke(t,e,n){return st(t)?t.get(e,n):(i=e,(st(r=t)?r.has(i):we(r)&&gt.call(r,i))?"function"==typeof t.get?t.get(e):t[e]:n);var r,i}function Pe(t){if(Array.isArray(t))return ye(t);var e,n={};for(e in t)gt.call(t,e)&&(n[e]=t[e]);return n}function Me(t,e,n,r){r||(r=n,n=void 0);t=function t(e,n,r,i,o,a){var s=n===b;if(i===r.length)return(l=a(u=s?o:n))===u?n:l;if(s||we(n)){var u=r[i],l=s?b:ke(n,u,b),o=t(l===b?e:st(l),l,r,i+1,o,a);if(o===l)return n;else if(o===b){a=n;l=u;if(!we(a))throw new TypeError("Cannot update non-data-structure value: "+a);if(st(a)){if(a.remove)return a.remove(l);throw new TypeError("Cannot update immutable value without .remove() method: "+a)}return gt.call(a,l)?(c=Pe(a),Array.isArray(c)?c.splice(l,1):delete c[l],c):a;return}else{var c=s?e?w():{}:n;a=u;s=o;if(!we(c))throw new TypeError("Cannot update non-data-structure value: "+c);if(st(c)){if(c.set)return c.set(a,s);throw new TypeError("Cannot update immutable value without .set() method: "+c)}return gt.call(c,a)&&s===c[a]||((c=Pe(c))[a]=s),c;return}}throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,i).map(Se)+"]: "+n)}(st(t),t,xe(e),0,n,r);return t===b?n:t}function Ee(t,e){return n=e,Me(this,t,b,function(){return n});var n}function Ae(t){return Me(this,t,function(){return b})}function Oe(t,e,n,r){return Me(t,[e],n,r)}function Ce(t,e,n){return 1===arguments.length?t(this):Oe(this,t,e,n)}function De(t,e,n){return Me(this,t,e,n)}function Ie(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Le(this,t)}function Te(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Le(this,e,t)}function Le(t,e,i){for(var n=[],r=0;r<e.length;r++){var o=h(e[r]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations(function(r){for(var t=i?function(e,n){Oe(r,n,b,function(t){return t===b?e:i(t,e,n)})}:function(t,e){r.set(e,t)},e=0;e<n.length;e++)n[e].forEach(t)}):t.constructor(n[0])}function je(t,e,n){return Re(t,e,(i=n,function t(e,n,r){return we(e)&&we(n)?Re(e,[n],t):i?i(e,n,r):n}));var i}function Re(r,t,i){if(!we(r))throw new TypeError("Cannot merge into non-data-structure value: "+r);if(st(r))return"function"==typeof i&&r.mergeWith?r.mergeWith.apply(r,[i].c
1oncat(t)):(r.merge||r.concat).apply(r,t);for(var e=Array.isArray(r),o=r,n=e?tt:h,a=e?function(t){(o=o===r?Pe(o):o).push(t)}:function(t,e){var n=gt.call(o,e),t=n&&i?i(o[e],t,e):t;n&&t===o[e]||((o=o===r?Pe(o):o)[e]=t)},s=0;s<t.length;s++)n(t[s]).forEach(a);return o}function ze(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return je(this,t)}function Ne(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];return je(this,e,t)}function Be(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];return Me(this,t,w(),function(t){return Re(t,e)})}function Fe(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];return Me(this,t,w(),function(t){return je(t,e)})}function He(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function We(){return this.__ownerID?this:this.__ensureOwner(new $)}function Ve(){return this.__ensureOwner()}function $e(){return this.__altered}Xt.prototype.cacheResult=Gt.prototype.cacheResult=Jt.prototype.cacheResult=Zt.prototype.cacheResult=me;(qe=h)&&(n.__proto__=qe),((n.prototype=Object.create(qe&&qe.prototype)).constructor=n).of=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return w().withMutations(function(t){for(var e=0;e<n.length;e+=2){if(n.length<=e+1)throw new Error("Missing value for key: "+n[e]);t.set(n[e],n[e+1])}})},n.prototype.toString=function(){return this.__toString("Map {","}")},n.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},n.prototype.set=function(t,e){return on(this,t,e)},n.prototype.remove=function(t){return on(this,t,b)},n.prototype.deleteAll=function(t){var n=l(t);return 0===n.size?this:this.withMutations(function(e){n.forEach(function(t){return e.remove(t)})})},n.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):w()},n.prototype.sort=function(t){return On(ce(this,t))},n.prototype.sortBy=function(t,e){return On(ce(this,e,t))},n.prototype.map=function(r,i){return this.withMutations(function(n){n.forEach(function(t,e){n.set(e,r.call(i,t,e,n))})})},n.prototype.__iterator=function(t,e){return new Ze(this,t,e)},n.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},n.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?rn(this.size,this._root,t,this.__hash):0===this.size?w():(this.__ownerID=t,this.__altered=!1,this)};var qe,Ue=n;function n(e){return null==e?w():Lt(e)&&!f(e)?e:w().withMutations(function(n){var t=qe(e);y(t.size),t.forEach(function(t,e){return n.set(e,t)})})}Ue.isMap=Lt;function Ye(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}var o=Ue.prototype,Ke=(o["@@__IMMUTABLE_MAP__@@"]=!0,o.delete=o.remove,o.removeAll=o.deleteAll,o.setIn=Ee,o.removeIn=o.deleteIn=Ae,o.update=Ce,o.updateIn=De,o.merge=o.concat=Ie,o.mergeWith=Te,o.mergeDeep=ze,o.mergeDeepWith=Ne,o.mergeIn=Be,o.mergeDeepIn=Fe,o.withMutations=He,o.wasAltered=$e,o.asImmutable=Ve,o["@@transducer/init"]=o.asMutable=We,o["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},o["@@transducer/result"]=function(t){return t.asImmutable()},function(t,e){this.ownerID=t,this.entries=e}),Ge=(Ke.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(_(n,i[o][0]))return i[o][1];return r},Ke.prototype.update=function(t,e,n,r,i,o,a){for(var s=i===b,u=this.entries,l=0,c=u.length;l<c&&!_(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(m(a),!s&&h||m(o),!s||1!==u.length){if(!h&&!s&&u.length>=hn){var f=t,p=u,a=r,o=i;f=f||new $;for(var d=new Xe(f,x(a),[a,o]),g=0;g<p.length;g++)var v=p[g],d=d.update(f,0,void 0,v[0],v[1]);return d}return o=(a=t&&t===this.ownerID)?u:ye(u),h?s?l===c-1?o.pop():o[l]=o.pop():o[l]=[r,i]:o.push([r,i]),a?(this.entries=o,this):new Ke(t,o)}},Ye.prototype.get=function(t,e,n,r){void 0===e&&(e=x(n));var i=1<<(31&(0===t?e:e>>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[ln(o&i-1)].get(t+5,e,n,r)},Ye.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=x(r));var s=31&(0===e?n:n>>>e),u=1<<s,l=this.bitmap,c=0!=(l&u);if(!c&&i===b)return this;var h,f=ln(l&u-1),p=this.nodes,d=c?p[f]:void 0,e=an(d,t,e+5,n,r,i,o,a);if(e===d)return this;if(!c&&e&&p.length>=fn){for(var n=t,g=p,v=l,r=s,i=e,m=0,_=new Array(32),y=0;0!==v;y++,v>>>
1=1)_[y]=1&v?g[m++]:void 0;return _[r]=i,new Ge(n,m+1,_)}return c&&!e&&2===p.length&&sn(p[1^f])?p[1^f]:c&&e&&1===p.length&&sn(e)?e:(h=t&&t===this.ownerID,o=c?e?l:l^u:l|u,a=c?e?cn(p,f,e,h):((t,e)=>{var n=t.length-1;if(h&&e===n)return t.pop(),t;for(var r=new Array(n),i=0,o=0;o<n;o++)r[o]=t[o+(i=o===e?1:i)];return r})(p,f):((t,e,n)=>{var r=t.length+1;if(h&&e+1===r)return t[e]=n,t;for(var i=new Array(r),o=0,a=0;a<r;a++)a===e?(i[a]=n,o=-1):i[a]=t[a+o];return i})(p,f,e),h?(this.bitmap=o,this.nodes=a,this):new Ye(t,o,a))},function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}),Qe=(Ge.prototype.get=function(t,e,n,r){void 0===e&&(e=x(n));var i=this.nodes[31&(0===t?e:e>>>t)];return i?i.get(t+5,e,n,r):r},Ge.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=x(r));var s=31&(0===e?n:n>>>e),u=i===b,l=this.nodes,c=l[s];if(u&&!c)return this;u=an(c,t,e+5,n,r,i,o,a);if(u===c)return this;e=this.count;if(c){if(!u&&--e<pn){n=t;var h=l;var f=s;for(var p=0,d=0,g=new Array(e),v=0,m=1,_=h.length;v<_;v++,m<<=1){var y=h[v];void 0!==y&&v!==f&&(p|=m,g[d++]=y)}return new Ye(n,p,g);return}}else e++;r=t&&t===this.ownerID,i=cn(l,s,u,r);return r?(this.count=e,this.nodes=i,this):new Ge(t,e,i)},function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}),Xe=(Qe.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(_(n,i[o][0]))return i[o][1];return r},Qe.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=x(r));var s=i===b;if(n!==this.keyHash)return s?this:(m(a),m(o),un(this,t,e,n,[r,i]));for(var u=this.entries,l=0,c=u.length;l<c&&!_(r,u[l][0]);l++);e=l<c;return(e?u[l][1]===i:s)?this:(m(a),!s&&e||m(o),s&&2===c?new Xe(t,this.keyHash,u[1^l]):(a=(n=t&&t===this.ownerID)?u:ye(u),e?s?l===c-1?a.pop():a[l]=a.pop():a[l]=[r,i]:a.push([r,i]),n?(this.entries=a,this):new Qe(t,this.keyHash,a)))},function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n});Xe.prototype.get=function(t,e,n,r){return _(n,this.entry[0])?this.entry[1]:r},Xe.prototype.update=function(t,e,n,r,i,o,a){var s=i===b,u=_(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(m(a),s?void m(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new Xe(t,this.keyHash,[r,i]):(m(o),un(this,t,e,x(r),[r,i])))},Ke.prototype.iterate=Qe.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},Ye.prototype.iterate=Ge.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},Xe.prototype.iterate=function(t,e){return t(this.entry)};(O=p)&&(tn.__proto__=O),((tn.prototype=Object.create(O&&O.prototype)).constructor=tn).prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,i=void 0;if(n.entry){if(0==r)return en(t,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return en(t,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){n=n.nodes[this._reverse?i-r:r];if(n){if(n.entry)return en(t,n.entry);e=this._stack=nn(n,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var Je,Ze=tn;function tn(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&nn(t._root)}function en(t,e){return d(t,e[0],e[1])}function nn(t,e){return{node:t,index:0,__prev:e}}function rn(t,e,n,r){var i=Object.create(o);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function w(){return Je=Je||rn(0)}function on(t,e,n){if(t._root){var r={value:!1},i={value:!1},o=an(t._root,t.__ownerID,0,void 0,e,n,r,i);if(!i.value)return t;i=t.size+(r.value?n===b?-1:1:0)}else{if(n===b)return t;i=1,o=new Ke(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?rn(i,o):w()}function an(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===b?t:(m(s),m(a),new Xe(e,r,[i,o]))}function sn(t){return t.constructor===Xe||t.constructor===Qe}function un(t,e,n,r,i){var o,a;return t.keyHash===r?new Qe(e,r,[t.entry,i]):(r=(o=31&(0===n?t.keyHash:t.keyHash>>>n))==(a=31&(0===n?r:r>>>n))?[un(t,e,n+5,r,i)]:(n=new Xe(e,r,i),o<a?[t,n]:[n,t]),new Ye(e,1<<o|1<<a,r))}function ln(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function cn(t,e,n,r){r=r?t:ye(t);return r[e]=n,r}var hn=8,fn=16,pn=8;
1function dn(t){return Boolean(t&&t["@@__IMMUTABLE_LIST__@@"])}(gn=tt)&&(i.__proto__=gn),((i.prototype=Object.create(gn&&gn.prototype)).constructor=i).of=function(){return this(arguments)},i.prototype.toString=function(){return this.__toString("List [","]")},i.prototype.get=function(t,e){var n;return 0<=(t=U(this,t))&&t<this.size?(n=Pn(this,t+=this._origin))&&n.array[31&t]:e},i.prototype.set=function(t,e){var n=this,r=t,i=e;if((r=U(n,r))!=r)return n;if(r>=n.size||r<0)return n.withMutations(function(t){r<0?Mn(t,r).set(0,i):Mn(t,0,r+1).set(r,i)});r+=n._origin;var t=n._tail,e=n._root,o={value:!1};return r>=En(n._capacity)?t=Sn(t,n.__ownerID,0,r,i,o):e=Sn(e,n.__ownerID,n._level,r,i,o),o.value?n.__ownerID?(n._root=e,n._tail=t,n.__hash=void 0,n.__altered=!0,n):xn(n._origin,n._capacity,n._level,e,t):n},i.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},i.prototype.insert=function(t,e){return this.splice(t,0,e)},i.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):wn()},i.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(t){Mn(t,0,r+n.length);for(var e=0;e<n.length;e++)t.set(r+e,n[e])})},i.prototype.pop=function(){return Mn(this,0,-1)},i.prototype.unshift=function(){var n=arguments;return this.withMutations(function(t){Mn(t,-n.length);for(var e=0;e<n.length;e++)t.set(e,n[e])})},i.prototype.shift=function(){return Mn(this,1)},i.prototype.concat=function(){for(var t=arguments,n=[],e=0;e<arguments.length;e++){var r=t[e],r=gn("string"!=typeof r&&ht(r)?r:[r]);0!==r.size&&n.push(r)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},i.prototype.setSize=function(t){return Mn(this,0,t)},i.prototype.map=function(n,r){var i=this;return this.withMutations(function(t){for(var e=0;e<i.size;e++)t.set(e,n.call(r,t.get(e),e,t))})},i.prototype.slice=function(t,e){var n=this.size;return K(t,e,n)?this:Mn(this,G(t,n),Q(e,n))},i.prototype.__iterator=function(e,n){var r=n?this.size:0,i=bn(this,n);return new p(function(){var t=i();return t===yn?{value:void 0,done:!0}:d(e,n?--r:r++,t)})},i.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,i=bn(this,e);(n=i())!==yn&&!1!==t(n,e?--r:r++,this););return r},i.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xn(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?wn():(this.__ownerID=t,this.__altered=!1,this)};var gn,vn=i;function i(t){var e,r,n=wn();return null==t?n:dn(t)?t:(e=gn(t),0===(r=e.size)?n:(y(r),0<r&&r<32?xn(0,r,5,null,new mn(e.toArray())):n.withMutations(function(n){n.setSize(r),e.forEach(function(t,e){return n.set(e,t)})})))}vn.isList=dn;
1var S=vn.prototype,mn=(S["@@__IMMUTABLE_LIST__@@"]=!0,S.delete=S.remove,S.merge=S.concat,S.setIn=Ee,S.deleteIn=S.removeIn=Ae,S.update=Ce,S.updateIn=De,S.mergeIn=Be,S.mergeDeepIn=Fe,S.withMutations=He,S.wasAltered=$e,S.asImmutable=Ve,S["@@transducer/init"]=S.asMutable=We,S["@@transducer/step"]=function(t,e){return t.push(e)},S["@@transducer/result"]=function(t){return t.asImmutable()},function(t,e){this.array=t,this.ownerID=e});mn.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new mn([],t);var i,o=0==r;if(0<e){var a=this.array[r];if((i=a&&a.removeBefore(t,e-5,n))===a&&o)return this}if(o&&!i)return this;var s=kn(this,t);if(!o)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},mn.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&31;if(i>=this.array.length)return this;if(0<e){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i==this.array.length-1)return this}e=kn(this,t);return e.array.splice(1+i),r&&(e.array[i]=r),e};var _n,yn={};function bn(t,u){var l=t._origin,c=t._capacity,o=En(c),a=t._tail;return function s(t,e,n){return 0===e?((t,e)=>{var n=e===o?a&&a.array:t&&t.array,r=l<e?0:l-e,i=c-e;return 32<i&&(i=32),function(){var t;return r===i?yn:(t=u?--i:r++,n&&n[t])}})(t,n):((t,e,n)=>{var r,i=t&&t.array,o=l<n?0:l-n>>e,a=1+(c-n>>e);return 32<a&&(a=32),function(){for(;;){if(r){var t=r();if(t!==yn)return t;r=null}if(o===a)return yn;t=u?--a:o++;r=s(i&&i[t],e-5,n+(t<<e))}}})(t,e,n)}(t._root,t._level,0)}function xn(t,e,n,r,i,o,a){var s=Object.create(S);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function wn(){return _n=_n||xn(0,0,5)}function Sn(t,e,n,r,i,o){var a,s,u=r>>>n&31,l=t&&u<t.array.length;return l||void 0!==i?0<n?(n=Sn(s=t&&t.array[u],e,n-5,r,i,o))===s?t:((a=kn(t,e)).array[u]=n,a):l&&t.array[u]===i?t:(o&&m(o),a=kn(t,e),void 0===i&&u==a.array.length-1?a.array.pop():a.array[u]=i,a):t}function kn(t,e){return e&&t&&e===t.ownerID?t:new mn(t?t.array.slice():[],e)}function Pn(t,e){if(e>=En(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&0<r;)n=n.array[e>>>r&31],r-=5;return n}}function Mn(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new $,i=t._origin,o=t._capacity,a=i+e,e=void 0===n?o:n<0?o+n:i+n;if(a===i&&e===o)return t;if(e<=a)return t.clear();for(var s=t._level,u=t._root,l=0;a+l<0;)u=new mn(u&&u.array.length?[void 0,u]:[],r),l+=1<<(s+=5);l&&(a+=l,i+=l,e+=l,o+=l);for(var c=En(o),h=En(e);1<<s+5<=h;)u=new mn(u&&u.array.length?[u]:[],r),s+=5;var n=t._tail,f=h<c?Pn(t,e-1):c<h?new mn([],r):n;if(n&&c<h&&a<o&&n.array.length){for(var p=u=kn(u,r),d=s;5<d;d-=5)var g=c>>>d&31,p=p.array[g]=kn(p.array[g],r);p.array[c>>>5&31]=n}if(e<o&&(f=f&&f.removeAfter(r,0,e)),h<=a)a-=h,e-=h,s=5,u=null,f=f&&f.removeBefore(r,0,a);else if(i<a||h<c){for(l=0;u;){var v=a>>>s&31;if(v!=h>>>s&31)break;v&&(l+=(1<<s)*v),s-=5,u=u.array[v]}(u=u&&i<a?u.removeBefore(r,s,a-l):u)&&h<c&&(u=u.removeAfter(r,s,h-l)),l&&(a-=l,e-=l)}return t.__ownerID?(t.size=e-a,t._origin=a,t._capacity=e,t._level=s,t._root=u,t._tail=f,t.__hash=void 0,t.__altered=!0,t):xn(a,e,s,u,f)}function En(t){return t<32?0:t-1>>>5<<5}(O=Ue)&&(a.__proto__=O),((a.prototype=Object.create(O&&O.prototype)).constructor=a).of=function(){return this(arguments)},a.prototype.toString=function(){return this.__toString("OrderedMap {","}")},a.prototype.get=function(t,e){t=this._map.get(t);return void 0!==t?this._list.get(t)[1]:e},a.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Dn()},a.prototype.set=function(t,e){return In(this,t,e)},a.prototype.remove=function(t){return In(this,t,b)},a.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},a.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},a.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},a.prototype.__ensureOwner=function(t){var e,n;return t===this.__ownerID?this:(e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t),t?Cn(e,n,t,this.__hash):0===this.size?Dn():(this.__ownerID=t,this._map=e,this._list=n,this))};var An,On=a;function a(e){return null==e?Dn():jt(e)?e:Dn().withMutations(function(n){var t=h(e);y(t.size),t.forEach(function(t,e){return n.set(e,t)})})}function Cn(t,e,n,r){var i=Object.create(On.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Dn(){return An=An||Cn(w(),wn())}function In(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===b){if(!u)return t;32<=a.size&&a.size>=2*o.size?(r=(i=a.filter(function(t,e){return void 0!==t&&s!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);
1return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Cn(r,i)}function Tn(t){return Boolean(t&&t["@@__IMMUTABLE_STACK__@@"])}On.isOrderedMap=jt,On.prototype[ut]=!0,On.prototype.delete=On.prototype.remove;(Ln=tt)&&(k.__proto__=Ln),((k.prototype=Object.create(Ln&&Ln.prototype)).constructor=k).of=function(){return this(arguments)},k.prototype.toString=function(){return this.__toString("Stack [","]")},k.prototype.get=function(t,e){var n=this._head;for(t=U(this,t);n&&t--;)n=n.next;return n?n.value:e},k.prototype.peek=function(){return this._head&&this._head.value},k.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;0<=r;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):zn(e,n)},k.prototype.pushAll=function(t){if(0===(t=Ln(t)).size)return this;if(0===this.size&&Tn(t))return t;y(t.size);var e=this.size,n=this._head;return t.__iterate(function(t){e++,n={value:t,next:n}},!0),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):zn(e,n)},k.prototype.pop=function(){return this.slice(1)},k.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Nn()},k.prototype.slice=function(t,e){if(K(t,e,this.size))return this;var n=G(t,this.size);if(Q(e,this.size)!==this.size)return Ln.prototype.slice.call(this,t,e);for(var t=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):zn(t,r)},k.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?zn(this.size,this._head,t,this.__hash):0===this.size?Nn():(this.__ownerID=t,this.__altered=!1,this)},k.prototype.__iterate=function(n,t){var r=this;if(t)return new St(this.toArray()).__iterate(function(t,e){return n(t,e,r)},t);for(var e=0,i=this._head;i&&!1!==n(i.value,e++,this);)i=i.next;return e},k.prototype.__iterator=function(e,t){var n,r;return t?new St(this.toArray()).__iterator(e,t):(n=0,r=this._head,new p(function(){var t;return r?(t=r.value,r=r.next,d(e,n++,t)):{value:void 0,done:!0}}))};var Ln,jn=k;function k(t){return null==t?Nn():Tn(t)?t:Nn().pushAll(t)}jn.isStack=Tn;var Rn,P=jn.prototype;function zn(t,e,n,r){var i=Object.create(P);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Nn(){return Rn=Rn||zn(0)}function Bn(t){return Boolean(t&&t["@@__IMMUTABLE_SET__@@"])}function Fn(t){return Bn(t)&&f(t)}function Hn(n,t){var r,i,o,a,e;return n===t||!(!c(t)||void 0!==n.size&&void 0!==t.size&&n.size!==t.size||void 0!==n.__hash&&void 0!==t.__hash&&n.__hash!==t.__hash||u(n)!==u(t)||s(n)!==s(t)||f(n)!==f(t))&&(0===n.size&&0===t.size||(r=!Z(n),f(n)?(i=n.entries(),t.every(function(t,e){var n=i.next().value;return n&&_(n[1],t)&&(r||_(n[0],e))})&&i.next().done):(o=!1,void 0===n.size&&(void 0===t.size?"function"==typeof n.cacheResult&&n.cacheResult():(o=!0,e=n,n=t,t=e)),a=!0,e=t.__iterate(function(t,e){if(r?!n.has(t):o?!_(t,n.get(e,b)):!_(n.get(e,b),t))return a=!1}),a&&n.size===e)))}function Wn(e,n){function t(t){e.prototype[t]=n[t]}Object.keys(n).forEach(t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(t)}function Vn(t){if(!t||"object"!=typeof t)return t;if(!c(t)){if(!we(t))return t;t=r(t)}var n,e;return u(t)?(n={},t.__iterate(function(t,e){n[e]=Vn(t)}),n):(e=[],t.__iterate(function(t){e.push(Vn(t))}),e)}P["@@__IMMUTABLE_STACK__@@"]=!0,P.shift=P.pop,P.unshift=P.push,P.unshiftAll=P.pushAll,P.withMutations=He,P.wasAltered=$e,P.asImmutable=Ve,P["@@transducer/init"]=P.asMutable=We,P["@@transducer/step"]=function(t,e){return t.unshift(e)},P["@@transducer/result"]=function(t){return t.asImmutable()};($n=et)&&(M.__proto__=$n),((M.prototype=Object.create($n&&$n.prototype)).constructor=M).of=function(){return this(arguments)},M.fromKeys=function(t){return this(h(t).keySeq())},M.intersect=function(t){return(t=l(t).toArray()).length?E.intersect.apply(M(t.pop()),t):Gn()},M.union=function(t){return(t=l(t).toArray()).length?E.union.apply(M(t.pop()),t):Gn()},M.prototype.toString=function(){return this.__toString("Set {","}")},M.prototype.has=function(t){return this._map.has(t)},M.prototype.add=function(t){return Yn(this,this._map.set(t,t))},M.prototype.remove=function(t){return Yn(this,this._map.remove(t))},M.prototype.clear=function(){return Yn(this,this._map.clear())},M.prototype.map=function(n,r){var i=this,o=[],a=[];return this.forEach(function(t){var e=n.call(r,t,t,i);e!==t&&(o.push(t),a.push(e))}),this.withMutations(function(e){o.forEach(function(t){return e.remove(t)}),a.forEach(function(t){return e.add(t)})})},M.prototype.union=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return 0===(n=n.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){for(var t=0;t<n.length;
1t++)$n(n[t]).forEach(function(t){return e.add(t)})}):this.constructor(n[0])},M.prototype.intersect=function(){for(var t,n=[],e=arguments.length;e--;)n[e]=arguments[e];return 0===n.length?this:(n=n.map(function(t){return $n(t)}),t=[],this.forEach(function(e){n.every(function(t){return t.includes(e)})||t.push(e)}),this.withMutations(function(e){t.forEach(function(t){e.remove(t)})}))},M.prototype.subtract=function(){for(var t,n=[],e=arguments.length;e--;)n[e]=arguments[e];return 0===n.length?this:(n=n.map(function(t){return $n(t)}),t=[],this.forEach(function(e){n.some(function(t){return t.includes(e)})&&t.push(e)}),this.withMutations(function(e){t.forEach(function(t){e.remove(t)})}))},M.prototype.sort=function(t){return hr(ce(this,t))},M.prototype.sortBy=function(t,e){return hr(ce(this,e,t))},M.prototype.wasAltered=function(){return this._map.wasAltered()},M.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},M.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},M.prototype.__ensureOwner=function(t){var e;return t===this.__ownerID?this:(e=this._map.__ensureOwner(t),t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this))};var $n,qn=M;function M(n){return null==n?Gn():Bn(n)&&!f(n)?n:Gn().withMutations(function(e){var t=$n(n);y(t.size),t.forEach(function(t){return e.add(t)})})}qn.isSet=Bn;var Un,E=qn.prototype;function Yn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Kn(t,e){var n=Object.create(E);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Gn(){return Un=Un||Kn(w())}E["@@__IMMUTABLE_SET__@@"]=!0,E.delete=E.remove,E.merge=E.concat=E.union,E.withMutations=He,E.asImmutable=Ve,E["@@transducer/init"]=E.asMutable=We,E["@@transducer/step"]=function(t,e){return t.add(e)},E["@@transducer/result"]=function(t){return t.asImmutable()},E.__empty=Gn,E.__make=Kn;(O=g)&&(A.__proto__=O),((A.prototype=Object.create(O&&O.prototype)).constructor=A).prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},A.prototype.get=function(t,e){return this.has(t)?this._start+U(this,t)*this._step:e},A.prototype.includes=function(t){t=(t-this._start)/this._step;return 0<=t&&t<this.size&&t===Math.floor(t)},A.prototype.slice=function(t,e){return K(t,e,this.size)?this:(t=G(t,this.size),(e=Q(e,this.size))<=t?new A(0,0):new A(this.get(t,this._end),this.get(e,this._end),this._step))},A.prototype.indexOf=function(t){t-=this._start;if(t%this._step==0){t=t/this._step;if(0<=t&&t<this.size)return t}return-1},A.prototype.lastIndexOf=function(t){return this.indexOf(t)},A.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,i=e?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==t(i,e?n-++o:o++,this);)i+=e?-r:r;return o},A.prototype.__iterator=function(e,n){var r=this.size,i=this._step,o=n?this._start+(r-1)*i:this._start,a=0;return new p(function(){var t;return a===r?{value:void 0,done:!0}:(t=o,o+=n?-i:i,d(e,n?r-++a:a++,t))})},A.prototype.equals=function(t){return t instanceof A?this._start===t._start&&this._end===t._end&&this._step===t._step:Hn(this,t)};var Qn,Xn=A;function A(t,e,n){if(!(this instanceof A))return new A(t,e,n);if(be(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Qn)return Qn;Qn=this}}function Jn(t,e,n){for(var r=xe(e),i=0;i!==r.length;)if((t=ke(t,r[i++],b))===b)return n;return t}function Zn(t,e){return Jn(this,t,e)}function tr(){y(this.size);var n={};return this.__iterate(function(t,e){n[e]=t}),n}l.isIterable=c,l.isKeyed=u,l.isIndexed=s,l.isAssociative=Z,l.isOrdered=f,l.Iterator=p,Wn(l,{toArray:function(){y(this.size);var n=new Array(this.size||0),r=u(this),i=0;return this.__iterate(function(t,e){n[i++]=r?[e,t]:t}),n},toIndexedSeq:function(){return new Xt(this)},toJS:function(){return Vn(this)},toKeyedSeq:function(){return new Gt(this,!0)},toMap:function(){return Ue(this.toKeyedSeq())},toObject:tr,toOrderedMap:function(){return On(this.toKeyedSeq())},toOrderedSet:function(){return hr(u(this)?this.valueSeq():this)},toSet:function(){return qn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Jt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return jn(u(this)?this.valueSeq():this)},toList:function(){return vn(u(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return v(this,((t,e)=>{var n=u(t);
1if(0===(e=[t].concat(e).map(function(t){return c(t)?n&&(t=h(t)):t=n?Dt(t):It(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size})).length)return t;if(1===e.length){var r=e[0];if(r===t||n&&u(r)||s(t)&&s(r))return r}return r=new St(e),n?r=r.toKeyedSeq():s(t)||(r=r.toSetSeq()),(r=r.flatten(!0)).size=e.reduce(function(t,e){if(void 0!==t){e=e.size;if(void 0!==e)return t+e}},0),r})(this,t))},includes:function(e){return this.some(function(t){return _(t,e)})},entries:function(){return this.__iterator(2)},every:function(r,i){y(this.size);var o=!0;return this.__iterate(function(t,e,n){if(!r.call(i,t,e,n))return o=!1}),o},filter:function(t,e){return v(this,ae(this,t,e,!0))},find:function(t,e,n){t=this.findEntry(t,e);return t?t[1]:n},forEach:function(t,e){return y(this.size),this.__iterate(e?t.bind(e):t)},join:function(e){y(this.size),e=void 0!==e?""+e:",";var n="",r=!0;return this.__iterate(function(t){r?r=!1:n+=e,n+=null!=t?t.toString():""}),n},keys:function(){return this.__iterator(0)},map:function(t,e){return v(this,ie(this,t,e))},reduce:function(t,e,n){return nr(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return nr(this,t,e,n,arguments.length<2,!0)},reverse:function(){return v(this,oe(this,!0))},slice:function(t,e){return v(this,se(this,t,e,!0))},some:function(t,e){return!this.every(or(t),e)},sort:function(t){return v(this,ce(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return q(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return n=this,r=t,i=e,o=Ue().asMutable(),n.__iterate(function(t,e){o.update(r.call(i,t,e,n),0,function(t){return t+1})}),o.asImmutable();var n,r,i,o},equals:function(t){return Hn(this,t)},entrySeq:function(){var t,e=this;return e._cache?new St(e._cache):((t=e.toSeq().map(ir).toIndexedSeq()).fromEntrySeq=function(){return e.toSeq()},t)},filterNot:function(t,e){return this.filter(or(t),e)},findEntry:function(r,i,t){var o=t;return this.__iterate(function(t,e,n){if(r.call(i,t,e,n))return!(o=[e,t])}),o},findKey:function(t,e){t=this.findEntry(t,e);return t&&t[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(Y,null,t)},flatMap:function(t,e){return v(this,(r=t,i=e,o=ge(n=this),n.toSeq().map(function(t,e){return o(r.call(i,t,e,n))}).flatten(!0)));var n,r,i,o},flatten:function(t){return v(this,le(this,t,!0))},fromEntrySeq:function(){return new Zt(this)},get:function(n,t){return this.find(function(t,e){return _(e,n)},void 0,t)},getIn:Zn,groupBy:function(t,e){return i=t,o=e,a=u(r=this),s=(f(r)?On:Ue)().asMutable(),r.__iterate(function(e,n){s.update(i.call(o,e,n,r),function(t){return(t=t||[]).push(a?[n,e]:e),t})}),n=ge(r),s.map(function(t){return v(r,n(t))}).asImmutable();var r,i,o,a,s,n},has:function(t){return this.get(t,b)!==b},hasIn:function(t){return Jn(this,t,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:l(e),this.every(function(t){return e.includes(t)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:l(t)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return _(t,e)})},keySeq:function(){return this.toSeq().map(rr).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return he(this,t)},maxBy:function(t,e){return he(this,e,t)},min:function(t){return he(this,t?ar(t):ur)},minBy:function(t,e){return he(this,e?ar(e):ur,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return v(this,ue(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(or(t),e)},sortBy:function(t,e){return v(this,ce(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return v(this,(s=t,u=e,(t=ve(n=this)).__iterateUncached=function(r,t){var i,o=this;return t?this.cacheResult().__iterate(r,t):(i=0,n.__iterate(function(t,e,n){return s.call(u,t,e,n)&&++i&&r(t,e,o)}),i)},t.__iteratorUncached=function(r,t){var i,o,a=this;return t?this.cacheResult().__iterator(r,t):(i=n.__iterator(2,t),o=!0,new p(function(){var t,e,n;return o?(t=i.next()).done?t:(e=(n=t.value)[0],s.call(u,n=n[1],e,a)?2===r?t:d(r,e,n,t):{value:void 0,done:!(o=!1)}):{value:void 0,done:!0}}))},t));var n,s,u},takeUntil:function(t,e){return this.takeWhile(or(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=(t=this).size===1/0?0:(e=f(t),r=u(t),n=e?1:0,t=t.__iterate(r?e?function(t,e){n=31*n+lr(x(t),x(e))|0}:function(t,e){n=n+lr(x(t),x(e))|0}:e?function(t){n=31*n+x(t)|0}:function(t){n=n+x(t)|0}
1),r=zt(r=n,3432918353),r=zt(r<<15|r>>>-15,461845907),r=zt(r<<13|r>>>-13,5),r=zt((r=(r+3864292196|0)^t)^r>>>16,2246822507),Nt((r=zt(r^r>>>13,3266489909))^r>>>16)));var t,e,n,r}});var O=l.prototype,er=(O["@@__IMMUTABLE_ITERABLE__@@"]=!0,O[e]=O.values,O.toJSON=O.toArray,O.__toStringMapper=Se,O.inspect=O.toSource=function(){return this.toString()},O.chain=O.flatMap,O.contains=O.includes,Wn(h,{flip:function(){return v(this,re(this))},mapEntries:function(n,r){var i=this,o=0;return v(this,this.toSeq().map(function(t,e){return n.call(r,[e,t],o++,i)}).fromEntrySeq())},mapKeys:function(n,r){var i=this;return v(this,this.toSeq().flip().map(function(t,e){return n.call(r,t,e,i)}).flip())}}),h.prototype),er=(er["@@__IMMUTABLE_KEYED__@@"]=!0,er[e]=O.entries,er.toJSON=tr,er.__toStringMapper=function(t,e){return Se(e)+": "+Se(t)},Wn(tt,{toKeyedSeq:function(){return new Gt(this,!1)},filter:function(t,e){return v(this,ae(this,t,e,!1))},findIndex:function(t,e){t=this.findEntry(t,e);return t?t[0]:-1},indexOf:function(t){t=this.keyOf(t);return void 0===t?-1:t},lastIndexOf:function(t){t=this.lastKeyOf(t);return void 0===t?-1:t},reverse:function(){return v(this,oe(this,!1))},slice:function(t,e){return v(this,se(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=G(t,t<0?this.count():this.size);var r=this.slice(0,t);return v(this,1===n?r:r.concat(ye(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){t=this.findLastEntry(t,e);return t?t[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return v(this,le(this,t,!1))},get:function(n,t){return(n=U(this,n))<0||this.size===1/0||void 0!==this.size&&n>this.size?t:this.find(function(t,e){return e===n},void 0,t)},has:function(t){return 0<=(t=U(this,t))&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return v(this,(a=t,(t=ve(o=this)).size=o.size&&2*o.size-1,t.__iterateUncached=function(e,t){var n=this,r=0;return o.__iterate(function(t){return(!r||!1!==e(a,r++,n))&&!1!==e(t,r++,n)},t),r},t.__iteratorUncached=function(t,e){var n,r=o.__iterator(1,e),i=0;return new p(function(){return(!n||i%2)&&(n=r.next()).done?n:i%2?d(t,i++,a):d(t,i++,n.value,n)})},t));var o,a},interleave:function(){var t=[this].concat(ye(arguments)),e=pe(this.toSeq(),g.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),v(this,n)},keySeq:function(){return Xn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return v(this,ue(this,t,e,!1))},zip:function(){var t=[this].concat(ye(arguments));return v(this,pe(this,sr,t))},zipAll:function(){var t=[this].concat(ye(arguments));return v(this,pe(this,sr,t,!0))},zipWith:function(t){var e=ye(arguments);return v(e[0]=this,pe(this,t,e))}}),tt.prototype);function nr(t,r,i,o,a,e){return y(t.size),t.__iterate(function(t,e,n){i=a?(a=!1,t):r.call(o,i,t,e,n)},e),i}function rr(t,e){return e}function ir(t,e){return[e,t]}function or(t){return function(){return!t.apply(this,arguments)}}function ar(t){return function(){return-t.apply(this,arguments)}}function sr(){return ye(arguments)}function ur(t,e){return t<e?1:e<t?-1:0}function lr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}er["@@__IMMUTABLE_INDEXED__@@"]=!0,er[ut]=!0,Wn(et,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),et.prototype.has=O.includes,et.prototype.contains=et.prototype.includes,Wn(mt,h.prototype),Wn(g,tt.prototype),Wn(_t,et.prototype);(cr=qn)&&(fr.__proto__=cr),((fr.prototype=Object.create(cr&&cr.prototype)).constructor=fr).of=function(){return this(arguments)},fr.fromKeys=function(t){return this(h(t).keySeq())},fr.prototype.toString=function(){return this.__toString("OrderedSet {","}")};var cr,hr=fr;function fr(n){return null==n?vr():Fn(n)?n:vr().withMutations(function(e){var t=et(n);y(t.size),t.forEach(function(t){return e.add(t)})})}hr.isOrderedSet=Fn;var pr,dr=hr.prototype;function gr(t,e){var n=Object.create(dr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function vr(){return pr=pr||gr(Dn())}dr[ut]=!0,dr.zip=er.zip,dr.zipWith=er.zipWith,dr.__empty=vr,dr.__make=gr;function C(a,s){function u(t){var r=this;if(t instanceof u)return t;if(!(this instanceof u))return new u(t);if(!l){l=!0;var e=Object.keys(a),n=c._indices={};c._name=s,c._keys=e,c._defaultValues=a;for(var i=0;i<e.length;i++){var o=e[i];n[o]=i,c[o]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+_r(this)+' with property "'+o+'" since that property name is part of the Record API.'):((t,e)=>{try{Object.defineProperty(t,e,{get:function(){return this.get(e)}
1,set:function(t){be(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}})(c,o)}}this.__ownerID=void 0,this._values=vn().withMutations(function(n){n.setSize(r._keys.length),h(t).forEach(function(t,e){n.set(r._indices[e],t===r._defaultValues[e]?void 0:t)})})}var l,c=u.prototype=Object.create(D);return c.constructor=u,s&&(u.displayName=s),u}C.prototype.toString=function(){for(var t,e=_r(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)e+=(r?", ":"")+(t=n[r])+": "+Se(this.get(t));return e+" }"},C.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&yr(this).equals(yr(t))},C.prototype.hashCode=function(){return yr(this).hashCode()},C.prototype.has=function(t){return this._indices.hasOwnProperty(t)},C.prototype.get=function(t,e){var n;return this.has(t)?(n=this._indices[t],void 0===(n=this._values.get(n))?this._defaultValues[t]:n):e},C.prototype.set=function(t,e){if(this.has(t)){t=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(t!==this._values&&!this.__ownerID)return mr(this,t)}return this},C.prototype.remove=function(t){return this.set(t)},C.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:mr(this,t)},C.prototype.wasAltered=function(){return this._values.wasAltered()},C.prototype.toSeq=function(){return yr(this)},C.prototype.toJS=function(){return Vn(this)},C.prototype.entries=function(){return this.__iterator(2)},C.prototype.__iterator=function(t,e){return yr(this).__iterator(t,e)},C.prototype.__iterate=function(t,e){return yr(this).__iterate(t,e)},C.prototype.__ensureOwner=function(t){var e;return t===this.__ownerID?this:(e=this._values.__ensureOwner(t),t?mr(this,e,t):(this.__ownerID=t,this._values=e,this))},C.isRecord=at,C.getDescriptiveName=_r;var D=C.prototype;function mr(t,e,n){t=Object.create(Object.getPrototypeOf(t));return t._values=e,t.__ownerID=n,t}function _r(t){return t.constructor.displayName||t.constructor.name||"Record"}function yr(e){return Dt(e._keys.map(function(t){return[t,e.get(t)]}))}D["@@__IMMUTABLE_RECORD__@@"]=!0,D.delete=D.remove,D.deleteIn=D.removeIn=Ae,D.getIn=Zn,D.hasIn=O.hasIn,D.merge=Ie,D.mergeWith=Te,D.mergeIn=Be,D.mergeDeep=ze,D.mergeDeepWith=Ne,D.mergeDeepIn=Fe,D.setIn=Ee,D.update=Ce,D.updateIn=De,D.withMutations=He,D.asMutable=We,D.asImmutable=Ve,D[e]=D.entries,D.toJSON=D.toObject=O.toObject,D.inspect=D.toSource=function(){return this.toString()};function br(t,a,s,u){return new(s=s||Promise)(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((u=u.apply(t,a||[])).next())})}function xr(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,a=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))u.label=e[1];else if(6===e[0]&&u.label<s[1])u.label=s[1],s=e;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(e)}}e=i.call(r,u)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}function wr(t){return t}function Sr(t,e){return'<a href="'+t.link+'"><h1>'+t.title+"</h1><p>"+e.content+"</p></a>"}function kr(t){return"<span>"+t+"</span>"}function Pr(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,a=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))u.label=e[1];else if(6===e[0]&&u.label<s[1])u.label=s[1],s=e;
1else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(e)}}e=i.call(r,u)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}function Mr(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,a=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))u.label=e[1];else if(6===e[0]&&u.label<s[1])u.label=s[1],s=e;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(e)}}e=i.call(r,u)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}function Er(t,a,s,u){return new(s=s||Promise)(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((u=u.apply(t,a||[])).next())})}function Ar(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,a=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))u.label=e[1];else if(6===e[0]&&u.label<s[1])u.label=s[1],s=e;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(e)}}e=i.call(r,u)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}Object.defineProperty(j.prototype,"list",{get:function(){return this._list},enumerable:!0,configurable:!0}),j.prototype.addOrUpdate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=new j(this.list),r=0,i=t;r<i.length;r++)var o=i[r],a=this.convert(o)[0],a=n.getIndexForKey(a),n=-1!==a?new j(n.list.set(a,o)):n.add(o);return n},j.prototype.addOrUpdateSearchTerm=function(t){var e=this.list;return t?this.addOrUpdate({query:t}):new j(e)},j.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new j(this.list.concat(t))},j.prototype.convert=function(t){var e=Object.keys(t)[0];return[e,t[e]]},j.prototype.getOne=function(e){return this.list.find(function(t){return Object.keys(t)[0]===e})||null},j.prototype.getMany=function(e){var n=this;return this.list.filter(function(t){t=n.convert(t)[0];return e===t})},j.prototype.deleteAll=function(e){return new j(this.list.filter(function(t){return Object.keys(t)[0]!==e}))},j.prototype.delete=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new j(this.list);return t.forEach(function(t){t=n.getIndexForParameter(t);n=new j(n.list.delete(t))}),n},j.prototype.toString=function(){var n=this,r=new URLSearchParams;return this.list.forEach(function(t){var e=n.convert(t)[0];r.append(e,t[e])}),r.toString()},j.prototype.toArray=function(){return this.list.toArray()},j.prototype.updateFirst=function(t){var e=this.list,n=this.convert(t)[0],n=this.getIndexForKey(n);return new j(-1!==n?e.set(n,t):e)},j.prototype.update=function(t,e){var n=this.list,t=this.getIndexForParameter(t);return new j(n.set(t,e))},j.prototype.getIndexForKey=function(e){return this.list.findIndex(function(t){return Object.keys(t)[0]===e})},j.prototype.getIndexForParameter=function(r){var i=this;return this.list.findIndex(function(t){var t=i.convert(t),e=t[0],t=t[1],n=i.
1convert(r);return e===n[0]&&t===n[1]})};var Or=j,Cr=function(){return(Cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Dr="Invalid pagination parameters defined. Static pagination parameters are required.",Ir=(Object.defineProperty(L.prototype,"numberOfResults",{get:function(){return this.responseData.numRows},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"didYouMean",{get:function(){return this.responseData.didYouMean},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"fetchClient",{get:function(){return this._fetchClient},enumerable:!0,configurable:!0}),L.prototype.hasFacets=function(t){return 0<t.facets.length&&0<t.facetConfigs.length},L.prototype.extractFacets=function(i,o){return i.facets.map(function(t,e){var n=i.facetConfigs[e].baseName,r=Object.keys(i.requestParameters).find(function(t){return t.includes(n)}),t=new W(o,t,i.facetConfigs[e]);return r?(e=i.requestParameters[r].map(function(t){return t.replace(/"/g,"")}),t.setSelectedValues.apply(t,e)):t})},L.prototype.extractPaginationParams=function(t){var e=t.requestParameters;return this.hasDynamicPaginationParams(e)?this.extractDynamicPaginationParams(e):this.hasStaticPaginationParams(e)?this.extractStaticPaginationParams(e):this.setDefaultStaticPaginationParams(t.rows)},L.prototype.hasDynamicPaginationParams=function(t){var e=Object.prototype.hasOwnProperty.call(t,"haupia_rows"),t=Object.prototype.hasOwnProperty.call(t,"haupia_start");return e&&t},L.prototype.extractDynamicPaginationParams=function(t){var e=Number(t.haupia_rows),t=Number(t.haupia_start);if(isNaN(e)||isNaN(t))throw Error("Invalid pagination parameters.");return{rows:e,start:t}},L.prototype.hasStaticPaginationParams=function(t){var e=Object.prototype.hasOwnProperty.call(t,"haupia_pageNumber"),t=Object.prototype.hasOwnProperty.call(t,"haupia_pageSize");return e&&t},L.prototype.extractStaticPaginationParams=function(t){var e=Number(t.haupia_pageNumber),t=Number(t.haupia_pageSize);if(isNaN(e)||isNaN(t))throw Error("Invalid pagination parameters.");return{pageNumber:e,pageSize:t}},L.prototype.setDefaultStaticPaginationParams=function(t){return{pageNumber:0,pageSize:t}},L.prototype.getNumberOfPages=function(){if(this.isStaticPagination(this.paginationParams))return Math.ceil(this.responseData.numRows/this.paginationParams.pageSize);throw Error(Dr)},L.prototype.getFacet=function(e){return this.facets.find(function(t){return t.name===e})||null},L.prototype.resetFacets=function(n){return br(this,void 0,void 0,function(){return xr(this,function(t){return this.facets=this.facets.map(function(t){var e;return!n||null!=(e=n)&&e.includes(t.name)?t.reset():t}),this.isDynamicPagination(this.paginationParams)?[2,this.search({start:0,rows:this.paginationParams.rows})]:[2,this.getFirstPage()]})})},L.prototype.getFirstPage=function(){if(this.isStaticPagination(this.paginationParams))return this.getPage(0);throw Error(Dr)},L.prototype.getLastPage=function(){var t=this.getNumberOfPages()-1;return this.getPage(t)},L.prototype.getPage=function(n){return br(this,void 0,void 0,function(){var e;return xr(this,function(t){if(!this.isStaticPagination(this.paginationParams))throw Error(Dr);if((e=this.paginationParams).pageNumber=n,this.hasPage(n))return[2,this.search(e)];throw Error("There is no page number: "+n)})})},L.prototype.hasPage=function(t){var e=this.paginationParams;return Math.ceil(this.responseData.numRows/e.pageSize)>t&&0<=t},L.prototype.hasNext=function(){return!!(this.isDynamicPagination(this.paginationParams)&&this.paginationParams.start+this.paginationParams.rows<this.responseData.numRows)||!!(this.isStaticPagination(this.paginationParams)&&this.paginationParams.pageSize*(this.paginationParams.pageNumber+1)<this.responseData.numRows)},L.prototype.hasPrev=function(){return!!(this.isStaticPagination(this.paginationParams)&&0<this.paginationParams.pageNumber)||!!(this.isDynamicPagination(this.paginationParams)&&this.paginationParams.start>=this.paginationParams.rows)},L.prototype.next=function(){return br(this,void 0,void 0,function(){var e;return xr(this,function(t){if(this.hasNext())return e={}
1,this.isDynamicPagination(this.paginationParams)&&((e=Cr({},this.paginationParams)).start+=this.paginationParams.rows),this.isStaticPagination(this.paginationParams)&&(e=this.paginationParams).pageNumber++,[2,this.search(e)];throw Error("There is no next page.")})})},L.prototype.prev=function(){return br(this,void 0,void 0,function(){var e;return xr(this,function(t){if(this.hasPrev())return e={},this.isStaticPagination(this.paginationParams)&&(e=this.paginationParams).pageNumber--,this.isDynamicPagination(this.paginationParams)&&((e=this.paginationParams).start-=e.rows),[2,this.search(e)];throw Error("There is no previous page.")})})},L.prototype.addOrUpdateFacetParams=function(t){var n=new Or(t.list);return this.facets.forEach(function(t){var e=t.getSelectedParameters();n=(t=n.deleteAll(t.getFilterParamName())).add.apply(t,e)}),n},L.prototype.search=function(r){return br(this,void 0,void 0,function(){var e,n;return xr(this,function(t){switch(t.label){case 0:e=this.buildFetchParams(r),n=(n=this.fetchClient.parameterList).addOrUpdate.apply(n,e),this.fetchClient.parameterList=this.addOrUpdateFacetParams(n),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.fetchClient.fetch()];case 2:return e=t.sent(),[2,new L(this.fetchClient,e)];case 3:throw n=t.sent(),new Error(n);case 4:return[2]}})})},L.prototype.buildFetchParams=function(t){var e=[],t=this.transformPaginationParamsToFetchParams(t);return e.concat(t)},L.prototype.transformPaginationParamsToFetchParams=function(t){var e=[];return this.isDynamicPagination(t)&&(e=this.buildDynamicPaginationParams(t)),e=this.isStaticPagination(t)?this.buildStaticPaginationParams(t):e},L.prototype.buildDynamicPaginationParams=function(t){var e=[];return e.push({haupia_rows:t.rows.toString()}),e.push({haupia_start:t.start.toString()}),e},L.prototype.buildStaticPaginationParams=function(t){var e=[];return e.push({haupia_pageNumber:t.pageNumber.toString()}),e.push({haupia_pageSize:t.pageSize.toString()}),e},L.prototype.isDynamicPagination=function(t){return void 0!==t.rows},L.prototype.isStaticPagination=function(t){return void 0!==t.pageNumber},L),Tr=N(0),Lr=["Enter","ArrowUp","ArrowDown"],jr=new CustomEvent("smart-search-widget-appeared",{bubbles:!0,cancelable:!0}),Rr=new CustomEvent("smart-search-widget-hidden",{bubbles:!0,cancelable:!0}),zr=new CustomEvent("smart-search-input-empty",{bubbles:!0,cancelable:!0}),Nr=(T.prototype.getAutocompleteList=function(i,o){var a,t,s,u,l;return t=this,l=function(){var e,n,r=this;return Pr(this,function(t){switch(t.label){case 0:o=o||this.options,t.label=1;case 1:return t.trys.push([1,3,,4]),e=[{prefix:i.toLowerCase()}],null!=(a=o)&&a.language&&e.push({language:o.language}),this.autocompleteClient.parameterList=(n=this.autocompleteClient.parameterList).addOrUpdate.apply(n,e),[4,this.autocompleteClient.fetch()];case 2:return n=t.sent(),null!=(a=o)&&a.highlight?[2,n.map(function(t){return r.highlightPrefix(t,i)})]:[2,n];case 3:return e=t.sent(),console.error("Error fetching autocomplete suggestions",e),[3,4];case 4:return[2,[""]]}})},new(u=(u=s=void 0)||Promise)(function(n,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function i(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(r,i)}o((l=l.apply(t,s||[])).next())})},T.prototype.highlightPrefix=function(t,e){return"<strong>"+e+"</strong>"+t.substr(t.indexOf(e)+e.length)},T.prototype.showBox=function(t){"hidden"===t.style.visibility&&(t.style.visibility="visible",t.dispatchEvent(jr))},T.prototype.hideBox=function(t){t.style.visibility="hidden",t.dispatchEvent(Rr)},T.prototype.clearAutocompleteBox=function(t){this.hideBox(t),t.querySelectorAll(".smart-search-autocomplete-item").forEach(function(t){return t.remove()})},T.prototype.createAutocompleteBox=function(t){var e=document.createElement("div");return e.setAttribute("id",t+" autocomplete-widget"),e.setAttribute("class","smart-search-autocomplete-widget"),e},T.prototype.removeHighlights=function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||""},T.prototype.markActiveItem=function(t,n){var t=Array.from(t.querySelectorAll(".smart-search-autocomplete-item")),e=t.filter(function(t,e){return e===n}).map(function(t){return t.classList.add("smart-search-autocomplete-active"),t}).pop();return t.filter(function(t,e){return e!==n}
1).forEach(function(t){return t.classList.remove("smart-search-autocomplete-active")}),e},T.prototype.renderItem=function(t){var e=document.createElement("div");return e.setAttribute("class","smart-search-autocomplete-item"),e.innerHTML=t,e},T.prototype.initializeAndAttach=function(n,t){var r=this,i=this.createAutocompleteBox(n.id);if(t)t.appendChild(i);else{if(!n.parentNode)throw new Error("Given input element has no parent. Please attach it to an element in the DOM tree.");n.parentNode.appendChild(i)}this.hideBox(i),Tr.fromEvent(n,"keydown").debounce(300).filter(function(t){return!Lr.includes(t.key)}).map(function(t){return t.target.value}).skipDuplicates().flatMapLatest(function(t){n.addEventListener("smart-search-input-empty",function(){return r.clearAutocompleteBox(i)},{once:!0});var e=(null==(e=r.options)?void 0:e.prefixThreshold)||0;if(0===t.length)dispatchEvent(zr);else if(t.length>e)return Tr.fromPromise(r.getAutocompleteList(t));return[]}).onValue(function(t){r.clearAutocompleteBox(i),t.forEach(function(t){r.showBox(i);var e=r.renderItem(t);e.addEventListener("click",function(){n.value=r.removeHighlights(t),n.focus(),r.clearAutocompleteBox(i)}),i.appendChild(e)})});var t=Tr.fromEvent(n,"keydown").filter(function(t){return"ArrowUp"===t.key}),e=Tr.fromEvent(n,"keydown").filter(function(t){return"ArrowDown"===t.key}),o=Tr.fromEvent(n,"keydown").filter(function(t){return"Enter"===t.key}),a=Tr.fromEvent(i,"smart-search-widget-appeared");Tr.update(-1,[e,function(t){return Math.min(t+1,4)}],[t,function(t){return Math.max(t-1,-1)}],[a,function(){return-1}],[o,function(){return-1}]).onValue(function(t){var e=r.markActiveItem(i,t);n.addEventListener("keydown",function(t){"Enter"===t.key&&null!=(t=e)&&t.click()})})},T),Br={cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},method:"GET",mode:"cors",redirect:"follow",referrerPolicy:"no-referrer"},Fr=(Object.defineProperty(Qr.prototype,"autocomplete",{get:function(){return this._autocomplete},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"parameterList",{get:function(){return this._parameterList},set:function(t){this._parameterList=t},enumerable:!0,configurable:!0}),Qr.prototype.getUrlWithPath=function(t){return t.endsWith("/")||(t+="/"),this.autocomplete?t+"autocomplete":t+"execute"},Qr.prototype.buildRequest=function(t){var e;return t!==this.url||(t=this.getUrlWithPath(t),e=this.parameterList.toString(),t=new URL(t+"/?"+e).toString()),new Request(t,Br)},Qr.prototype.handleStatus=function(t){if(t.ok)return t;throw new Error(t.statusText)},Qr.prototype.fetch=function(r){return void 0===r&&(r=this.url),t=this,u=function(){var e,n;return Mr(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),e=this.buildRequest(r),[4,fetch(e)];case 1:return e=t.sent(),[4,this.handleStatus(e).json()];case 2:return[2,t.sent()];case 3:throw n=t.sent(),new Error(n);case 4:return[2]}})},new(s=(s=a=void 0)||Promise)(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((u=u.apply(t,a||[])).next())});var t,a,s,u},Qr),Hr=(Gr.prototype.initDefaultClasses=function(){return{wrapper:["smart-search-did-you-mean-wrapper"],element:["smart-search-did-you-mean-element"]}},Gr),Wr=(Kr.prototype.initDefaultClasses=function(){return{pagination:["smart-search-pagination"],nextButton:["smart-search-pagination-next"],prevButton:["smart-search-pagination-prev"],pageButton:["smart-search-pagination-page"],currentPage:["smart-search-pagination-current"]}},Kr),Vr=(Yr.prototype.initDefaultClasses=function(){return{wrapper:["smart-search-search-results"],element:["smart-search-search-result"]}},Yr),$r=(Object.defineProperty(I.prototype,"didYouMeanTemplate",{get:function(){return this._didYouMeanTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"paginationTemplate",{get:function(){return this._paginationTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"searchResultTemplate",{get:function(){return this._searchResultTemplate},enumerable:!0,configurable:!0}),I.prototype.renderNextButton=function(t){if(void 0===t&&(t="Next"),!this.page.isStaticPagination(this.page.paginationParams))throw Error("Static pagination parameters are expected.");var e;if(this.page.hasNext())return e=this.page.paginationParams.pageNumber+1,this.renderPaginationElement(this._paginationTemplate.cssClasse
1s.nextButton,e,this._paginationTemplate.renderNext,t)},I.prototype.renderNextButtonToHTMLElement=function(t,e){e=this.renderNextButton(e=void 0===e?"Next":e);e&&t.append(e)},I.prototype.renderPrevButton=function(t){if(void 0===t&&(t="Prev"),!this.page.isStaticPagination(this.page.paginationParams))throw Error("Static pagination parameters are expected.");var e;if(this.page.hasPrev())return e=this.page.paginationParams.pageNumber-1,this.renderPaginationElement(this._paginationTemplate.cssClasses.prevButton,e,this._paginationTemplate.renderPrev,t)},I.prototype.renderPrevButtonToHTMLElement=function(t,e){e=this.renderPrevButton(e=void 0===e?"Prev":e);e&&t.append(e)},I.prototype.renderPageButtons=function(t){if(!this.page.isStaticPagination(this.page.paginationParams))throw Error("Static pagination parameters are expected.");for(var e=this.page.paginationParams,n=Math.ceil(this.page.numberOfResults/e.pageSize),r=this.calculateFirstPageNumber(t,n),i=[],o=0;o<t;o++){var a=this.renderPaginationElement(this._paginationTemplate.cssClasses.pageButton,r+o,this._paginationTemplate.renderPage);if(i.push(a),r+o+1===n)break}e=e.pageNumber;return this.highlightCurrentPage(i,e),i},I.prototype.calculateFirstPageNumber=function(t,e){var n=this.page.paginationParams.pageNumber,r=n-Math.floor(t/2);return Math.ceil(t/2)>e-n&&(r-=Math.ceil(t/2)-(e-n)),Math.max(0,r)},I.prototype.highlightCurrentPage=function(t,e){var n=this;t.filter(function(t){return t.getAttribute("smart-search-page-value")===e.toString()}).forEach(function(t){return(t=t.classList).add.apply(t,n._paginationTemplate.cssClasses.currentPage)})},I.prototype.renderPageButtonsToHTMLElement=function(t,e){t.append.apply(t,this.renderPageButtons(e))},I.prototype.renderPagination=function(t){var e=document.createElement("ul");return this.renderPrevButtonToHTMLElement(e),this.renderPageButtonsToHTMLElement(e,t),this.renderNextButtonToHTMLElement(e),(t=e.classList).add.apply(t,this._paginationTemplate.cssClasses.pagination),e},I.prototype.renderPaginationToHTMLElement=function(t,e){t.append(this.renderPagination(e))},I.prototype.renderPaginationElement=function(t,e,n,r){var i,o=document.createElement("li");return(i=o.classList).add.apply(i,t),o.setAttribute("smart-search-page-value",e.toString()),o.innerHTML=n(r||(e+1).toString()),o},I.prototype.renderSearchResults=function(){var t,n=this,e=this.page.searchResults.map(function(t){var e=document.createElement("div");return e.innerHTML=t.render(n._searchResultTemplate.templateFunction),(t=e.classList).add.apply(t,n._searchResultTemplate.cssClasses.element),e}),r=document.createElement("div");return(t=r.classList).add.apply(t,this._searchResultTemplate.cssClasses.wrapper),r.append.apply(r,e),r},I.prototype.renderSearchResultsToHTMLElement=function(t){t.appendChild(this.renderSearchResults())},I.prototype.renderDidYouMean=function(){var t,e=this;if(0===this.page.didYouMean.length)throw Error("There are no search query suggestions.");var n=this.page.didYouMean.map(function(t){return e._didYouMeanTemplate.renderDidYouMean(t)}),r=document.createElement("div");return(t=r.classList).add.apply(t,this._didYouMeanTemplate.cssClasses.wrapper),r.insertAdjacentHTML("afterbegin",n.join("")),Array.from(r.children).forEach(function(t){return(t=t.classList).add.apply(t,e._didYouMeanTemplate.cssClasses.element)}),r},I.prototype.renderDidYouMeanToHTMLElement=function(t){t.appendChild(this.renderDidYouMean())},I),qr=(Object.defineProperty(Ur.prototype,"searchClient",{get:function(){return this._searchClient},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"autocompleteWidget",{get:function(){return this._autocompleteWidget},enumerable:!0,configurable:!0}),Ur.version=function(){return"1.1.1"},Ur.prototype.search=function(r){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return Er(this,void 0,void 0,function(){var e,n;return Ar(this,function(t){switch(t.label){case 0:n=(n=this.searchClient.parameterList.addOrUpdateSearchTerm(r)).add.apply(n,i),this.searchClient.parameterList=n,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.searchClient.fetch()];case 2:return e=t.sent(),this.searchClient.parameterList=n.delete.apply(n,i),[2,new Ir(this.searchClient,e)];case 3:throw e=t.sent(),this.searchClient.parameterList=n.delete.apply(n,i),new Error(e);case 4:return[2]}})})},Ur.prototype.mapPages=function(t,e,n){var r=t.groups.find(function(t){return t.name===e});if(void 0===r)throw Error("Searched group not found!");var i=new Map,n=this.searchClient.parameterList.addOrUpdateSearchTerm(n);this.searchClient.parameterList=n;for(var o=0,a=r.groups;o<a.length;o++){var s=a[o],u=JSON.parse(JSON.stringify(t)),u=(u.results=s.results,u.numRows=s.numRows,new Ir(this.searchClient,u));i.set(s.value,u)}return i},Ur.prototype.searchWithGroup=function(i,o,a){for(var s=[],t=3;t<arguments.length;t++)s[t-3]=arguments[t];return Er(this,void 0,void 0,function(){var e,n,r;return Ar(this,function(t){switch(t.label){case 0:e=[{query:i},{grouping:"on"},{groupField:o},{groupLimit:a.toString()}],e=(r=(r=this.searchClient.parameterList).addOrUpdate.apply(r,e)).add.apply(r,s),this.searchClient.parameterList=e,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.searchClient.fetch()];case 2:return r=t.sent(),this.searchClient.parameterList=e.delete.apply(e,s),[2,this.mapPages(r,o,i)];case 3:throw n=t.sent(),this.searchClient.parameterList=e.delete.apply(e,s),new Error(n);case 4:return[2]}})})},Ur.prototype.fetchAutocompleteList=function(t,e){return this.autocompleteWidget.getAutocompleteList(t,e)},Ur.prototype.attachAutocompleteWidget=function(t,e){this.autocompleteWidget.initializeAndAttach(t,e)},Ur.prototype.getPageRenderer=function(t){return new $r(t)},Ur);function Ur(t,e,n){this.host=t,this.preparedSearch=e,this.options=n,this.apiEndpoint=(null==(t=n)?void 0:t.apiEndpoint)||"/v1/prepared_search";e=""+this.host+this.apiEndpoint+"/"+this.preparedSearch+"/",t={};if(null!=(r=n)&&r.customParams){if(!Array.isArray(n.customParams))throw new Error("The customParams property must be an Array");t.customParams=n.customParams}this._searchClient=new Fr(e,t);var n=null==(r=n)?void 0:r.autocompleteOptions,r=t,t=(r.autocomplete=!0,new Fr(e,r));this._autocompleteWidget=new Nr(t,n)}function I(t){this.page=t,this._didYouMeanTemplate=new Hr,this._paginationTemplate=new Wr,this._searchResultTemplate=new Vr}
1function Yr(){this.cssClasses=this.initDefaultClasses(),this.templateFunction=Sr}function Kr(){this.cssClasses=this.initDefaultClasses(),this.renderNext=wr,this.renderPage=wr,this.renderPrev=wr}function Gr(){this.cssClasses=this.initDefaultClasses(),this.renderDidYouMean=kr}function Qr(t,e){this.url=t,this._parameterList=new Or,this._autocomplete=(null==(t=e)?void 0:t.autocomplete)||!1,e&&(this.parameterList=(t=this.parameterList.addOrUpdateSearchTerm(e.searchTerm||"")).add.apply(t,e.customParams||[]))}function T(t,e){this.autocompleteClient=t,this.options=e}function L(t,e){var n=this;this.responseData=e,this._fetchClient=t,this.responseData=e,this.searchResults=e.results.map(function(t){var e=n.responseData.highlighting;return new H(t,e)}),this.paginationParams=this.extractPaginationParams(this.responseData),this.facets=this.hasFacets(e)?this.extractFacets(e,t):[]}function j(t){this._list=vn([]).concat(t||[])}N.d(z,"SmartSearch",function(){return qr}),N.d(z,"Page",function(){return Ir}),N.d(z,"Facet",function(){return W}),N.d(z,"SearchResult",function(){return H}),N.d(z,"PageRenderer",function(){return $r})}],r={},i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1);function i(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,i),e.l=!0,e)).exports}var n,r},"object"==typeof n&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define("SmartSearch",[],r):"object"==typeof n?n.SmartSearch=r():(void 0).SmartSearch=r().SmartSearch},{}],170:[function(t,e,n){var r;r=function(t){function n(t){return window.getComputedStyle(t)}function e(t,e){return parseFloat(n(e)["margin"+t])||0}function r(t){return parseFloat(t)+"px"}function i(t){return parseFloat(t.style.left)}function o(t){return parseFloat(n(t).width)}function a(t){return parseFloat(t.style.top)+parseFloat(n(t).height)+e("Bottom",t)}function s(t){return i(t)+o(t)+e("Right",t)}function u(t){t.sort(function(t,e){return a(e)-a(t)||i(e)-i(t)})}function l(t,e,n){t.style.position="absolute",t.style.top=r(e),t.style.left=r(n)}var c=(t="string"==typeof t?document.querySelector(t):t).children;c.length&&l(v=c[0],0,e("Left",v));for(var h,f,p=1;p<c.length&&s((h=c)[(f=p)-1])+o(h[f])<=o(t);p++)h=c[p-1],l(f=c[p],h.style.top,s(h)+e("Left",f));for(var d,g,v,m,_=new function(t){var e=t;u(e),this.add=function(t){e.push(t),u(e),e.pop()},this.min=function(){return e[e.length-1]},this.max=function(){return e[0]}}([].slice.call(c,0,p));p<c.length;p++)d=_.min(),l(g=c[p],a(d)+e("Top",g),i(d)),_.add(c[p]);v=t,m=_.max(),v.style.position="relative",v.style.height=r(a(m)+e("Bottom",m))},"function"==typeof define&&define.amd?define("waterfall",function(){return r}):"object"==typeof e&&e.exports?e.exports=r:(void 0).waterfall=r},{}]},{},[156]);
2//# sourceMappingURL=script.min.js.map

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