diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index b245340b13..b9d44dd053 100644 --- a/src/evidently/nbextension/static/index.js +++ b/src/evidently/nbextension/static/index.js @@ -355,7 +355,7 @@ should equal `).slice(2):` `+H.split(` `).map(function(te){return" "+te}).join(` -`)):H=z.stylize("[Circular]","special")),C(W)){if(L&&Y.match(/^\d+$/))return H;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=z.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=z.stylize(W,"string"))}return W+": "+H}function x(z){return Array.isArray(z)}function _(z){return typeof z=="boolean"}function w(z){return z===null}function S(z){return typeof z=="number"}function k(z){return typeof z=="string"}function C(z){return z===void 0}function T(z){return M(z)&&E(z)==="[object RegExp]"}function M(z){return typeof z=="object"&&z!==null}function O(z){return M(z)&&E(z)==="[object Date]"}function D(z){return M(z)&&(E(z)==="[object Error]"||z instanceof Error)}function P(z){return typeof z=="function"}function E(z){return Object.prototype.toString.call(z)}function I(z){return z<10?"0"+z.toString(10):z.toString(10)}o.debuglog=function(z){if(z=z.toUpperCase(),!d[z])if(f.test(z)){var N=s.pid;d[z]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",z,N,R)}}else d[z]=function(){};return d[z]},o.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=x,o.isBoolean=_,o.isNull=w,o.isNullOrUndefined=function(z){return z==null},o.isNumber=S,o.isString=k,o.isSymbol=function(z){return typeof z=="symbol"},o.isUndefined=C,o.isRegExp=T,o.types.isRegExp=T,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"||typeof z=="symbol"||z===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(z,N){return Object.prototype.hasOwnProperty.call(z,N)}o.log=function(){var z,N;console.log("%s - %s",(N=[I((z=new Date).getHours()),I(z.getMinutes()),I(z.getSeconds())].join(":"),[z.getDate(),A[z.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(z,N){if(!N||!M(N))return z;for(var R=Object.keys(N),q=R.length;q--;)z[R[q]]=N[R[q]];return z};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(z,N){if(!z){var R=new Error("Promise was rejected with a falsy value");R.reason=z,z=R}return N(z)}o.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&z[j]){var N;if(typeof(N=z[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(H,G){R=H,q=G}),L=[],W=0;W<arguments.length;W++)L.push(arguments[W]);L.push(function(H,G){H?q(H):R(G)});try{z.apply(this,L)}catch(H){q(H)}return Y}return Object.setPrototypeOf(N,Object.getPrototypeOf(z)),j&&Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,u(z))},o.promisify.custom=j,o.callbackify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var R=[],q=0;q<arguments.length;q++)R.push(arguments[q]);var Y=R.pop();if(typeof Y!="function")throw new TypeError("The last argument must be of type Function");var L=this,W=function(){return Y.apply(L,arguments)};z.apply(this,R).then(function(H){s.nextTick(W.bind(null,null,H))},function(H){s.nextTick(B.bind(null,H,W))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(z)),Object.defineProperties(N,u(z)),N}},21099:function(i,o,a){var s=a(31353),u=a(72077),c=a(6614),d=a(40383),f=c("Object.prototype.toString"),p=a(84543)(),h=typeof globalThis>"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},m=Object.getPrototypeOf;p&&d&&m&&s(g,function(x){if(typeof h[x]=="function"){var _=new h[x];if(Symbol.toStringTag in _){var w=m(_),S=d(w,Symbol.toStringTag);if(!S){var k=m(w);S=d(k,Symbol.toStringTag)}v[x]=S.get}}});var y=a(9187);i.exports=function(x){return!!y(x)&&(p&&Symbol.toStringTag in x?function(_){var w=!1;return s(v,function(S,k){if(!w)try{var C=S.call(_);C===k&&(w=C)}catch{}}),w}(x):b(f(x),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,y){if(typeof m=="string"){var x=m.match(p);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),S=""+this.toChineseMonth(_,w);return y&&S.length<2&&(S="0"+S),this.isIntercalaryMonth(_,w)&&(S+="i"),S},monthNames:function(m){if(typeof m=="string"){var y=m.match(h);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var y=m.match(g);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,y){m=this._validateYear(m);var x,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(x=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var w=y[y.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,y){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw y.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,y,x){var _=this.intercalaryMonth(m);if(x&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&y<=_?y-1:y:y-1},toChineseMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);if(y<0||y>(x?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?y<x?y+1:y:y+1},intercalaryMonth:function(m){return m=this._validateYear(m),b[m-b[0]]>>13},isIntercalaryMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===y},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,y,x){var _,w=this._validateYear(m,s.local.invalidyear),S=v[w-v[0]],k=S>>9&4095,C=S>>5&15,T=31&S;(_=c.newDate(k,C,T)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(m,y,x)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,y){m.year&&(y=m.month(),m=m.year()),m=this._validateYear(m);var x=b[m-b[0]];if(y>(x>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-y?30:29},weekDay:function(m,y,x){return(this.dayOfWeek(m,y,x)||7)<6},toJD:function(m,y,x){var _=this._validate(m,S,x,s.local.invalidDate);m=this._validateYear(_.year()),y=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,y),S=this.toChineseMonth(m,y),k=function(C,T,M,O,D){var P,E,I;if(typeof C=="object")E=C,P=T||{};else{var A;if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:C,month:T,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],B=j>>13;F=B&&(E.month>B||E.isIntercalary)?E.month:E.month-1;for(var z=0;z<F;z++)I+=j&1<<12-z?30:29;var N=v[E.year-v[0]],R=new Date(N>>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(m,S,x,w);return c.toJD(k.year,k.month,k.day)},fromJD:function(m){var y=c.fromJD(m),x=function(w,S,k,C){var T,M;if(typeof w=="object")T=w,M=S||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:S,day:k},M={}}var O=v[T.year-v[0]],D=T.year<<9|T.month<<5|T.day;M.year=D>=O?T.year:T.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(T.year,T.month-1,T.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P<j)break;P-=j}var B=F>>13;return!B||A<B?(M.isIntercalary=!1,M.month=1+A):A===B?(M.isIntercalary=!0,M.month=A):(M.isIntercalary=!1,M.month=A),M.day=1+P,M}(y.year(),y.month(),y.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(m){var y=m.match(f),x=this._validateYear(+y[1]),_=+y[2],w=!!y[3],S=this.toMonthIndex(x,_,w),k=+y[4];return this.newDate(x,S,k)},add:function(m,y,x){var _=m.year(),w=m.month(),S=this.isIntercalaryMonth(_,w),k=this.toChineseMonth(_,w),C=Object.getPrototypeOf(d.prototype).add.call(this,m,y,x);if(x==="y"){var T=C.year(),M=C.month(),O=this.isIntercalaryMonth(T,k),D=S&&O?this.toMonthIndex(T,k,!0):this.toMonthIndex(T,k,!1);D!==M&&C.month(D)}return C}});var f=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,p=/^\d?\d[iI]?/m,h=/^闰?十?[一二三四五六七八九]?月/m,g=/^闰?十?[一二三四五六七八九]?/m;s.calendars.chinese=d;var b=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.coptic=c},86825:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),!1},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),13},daysInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),400},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/8)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(f,p,h){return(this._validate(f,p,h,s.local.invalidDate).day()+1)%8},weekDay:function(f,p,h){var g=this.dayOfWeek(f,p,h);return g>=2&&g<=6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(h=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var h=Math.floor(f/32)+1,g=f-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+h+1;if(p<7){for(var m=7;m<=this.monthsInYear(f);m++)v+=this.daysInMonth(f,m);for(m=1;m<p;m++)v+=this.daysInMonth(f,m)}else for(m=7;m<p;m++)v+=this.daysInMonth(f,m);return v},_delay1:function(f){var p=Math.floor((235*f-234)/19),h=12084+13753*p,g=29*p+Math.floor(h/25920);return d(3*(g+1),7)<3&&g++,g},_delay2:function(f){var p=this._delay1(f-1),h=this._delay1(f);return this._delay1(f+1)-h==356?2:h-p==382?1:0},fromJD:function(f){f=Math.floor(f)+.5;for(var p=Math.floor(98496*(f-this.jdEpoch)/35975351)-1;f>=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=f<this.toJD(p,1,1)?7:1;f>this.toJD(p,h,this.daysInMonth(p,h));)h++;var g=f-this.toJD(p,h,1)+1;return this.newDate(p,h,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),d=d<=0?d+1:d,(p=h.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),h=d-this.toJD(f,p,1)+1;return this.newDate(f,p,h)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),p=h.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),h=Math.floor(365.25*p),g=Math.floor((f-h)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),m=f-h-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,m)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,h){return p-h*Math.floor(p/h)}function f(p,h){return d(p-1,h)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,g=0;g<p.length;g++){var b=parseInt(p[g],10);if(Math.abs(b)>19||g>0&&b<0)throw"Invalid Mayan year";h=20*h+b}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate).day()},weekDay:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),!0},extraInfo:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate).toJD(),v=this._toHaab(b),m=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(p){var h=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,d(h,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(h,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v<g.month();v++)b+=this.daysPerMonth[v-1];return b+d.toJD(f+1468,3,13)},fromJD:function(f){f=Math.floor(f+.5);for(var p=Math.floor((f-(this.jdEpoch-1))/366);f>=this.toJD(p+1,1,1);)p++;for(var h=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;h>this.daysInMonth(p,g);)h-=this.daysInMonth(p,g),g++;return this.newDate(p,g,h)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);d=h.year(),f=h.month(),p=h.day();var g=s.instance(),b=0,v=f,m=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,m--),b+=this.NEPALI_CALENDAR_DATA[m][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[m][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),h=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][b]-v+1;h>m;)++b>12&&(b=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(m-h);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p<d+2;p++)this.NEPALI_CALENDAR_DATA[p]===void 0&&(this.NEPALI_CALENDAR_DATA[p]=f)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),s.calendars.nepali=c},94320:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return 682*((p.year()-(p.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),m=d(g,366);b=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var y=b+2820*h+474;y=y<=0?y-1:y;var x=f-this.toJD(y,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=f-this.toJD(y,_,1)+1;return this.newDate(y,_,w)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(f,h);return p},daysInMonth:function(f,p){for(var h=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;b<d.length;b++){if(d[b]>h)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,h=0,g=0;g<d.length&&!(d[g]>p);g++)h++;var b=h+15292,v=Math.floor((b-1)/12),m=v+1,y=b-12*v,x=p-d[h-1]+1;return this.newDate(m,y,x)},isValid:function(f,p,h){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,h,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,m){if(this._calendar=g,this._year=b,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,m,y){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,y):m)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var m="",y=0;v>0;){var x=v%10;m=(x===0?"":g[x]+b[y])+m,y++,v=Math.floor(v/10)}return m.indexOf(g[1]+b[1])===0&&(m=m.substr(1)),m||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(m);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var x=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(S){for(;_<S.minMonth;)x--,_+=S.monthsInYear(x);for(var k=S.monthsInYear(x);_>k-1+S.minMonth;)x++,_-=k,k=S.monthsInYear(x)}(this),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),y];return this._validateLevel--,w}catch(S){throw this._validateLevel--,S}},_correctAdd:function(g,b,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;b=this._add(g,v*y[0]+x*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var m=v==="y"?b:g.year(),y=v==="m"?b:g.month(),x=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,y))),g.date(m,y,x)},isValid:function(g,b,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var y=this.newDate(g,b,this.minDay);m=b>=this.minMonth&&b-this.minMonth<this.monthsInYear(y)&&v>=this.minDay&&v-this.minDay<this.daysInMonth(y)}return this._validateLevel--,m},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return h.instance().fromJD(this.toJD(m)).toJSDate()},fromJSDate:function(g){return this.fromJD(h.instance().fromJSDate(g).toJD())},_validate:function(g,b,v,m){if(g.year){if(this._validateLevel===0&&this.name!==g.calendar().name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,g.calendar().local.name);return g}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(g,b,v))throw m.replace(/\{0\}/,this.local.name);var y=this.newDate(g,b,v);return this._validateLevel--,y}catch(x){throw this._validateLevel--,x}}}),p.prototype=new f,s(p.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(g=b.year()+(b.year()<0?1:0))%4==0&&(g%100!=0||g%400==0)},weekOfYear:function(g,b,v){var m=this.newDate(g,b,v);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(g,b,v){return(this.dayOfWeek(g,b,v)||7)<6},toJD:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);g=m.year(),b=m.month(),v=m.day(),g<0&&g++,b<3&&(b+=12,g--);var y=Math.floor(g/100),x=2-y+Math.floor(y/4);return Math.floor(365.25*(g+4716))+Math.floor(30.6001*(b+1))+v+x-1524.5},fromJD:function(g){var b=Math.floor(g+.5),v=Math.floor((b-186721625e-2)/36524.25),m=1524+(v=b+1+v-Math.floor(v/4)),y=Math.floor((m-122.1)/365.25),x=Math.floor(365.25*y),_=Math.floor((m-x)/30.6001),w=m-x-Math.floor(30.6001*_),S=_-(_>13.5?13:1),k=y-(S>2.5?4716:4715);return k<=0&&k--,this.newDate(k,S,w)},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),y=new Date(m.year(),m.month()-1,m.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var h=i.exports=new u;h.cdate=c,h.baseCalendar=f,h.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,h,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,m=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,x=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A<c.length&&c.charAt(P+A)===E;)A++;return P+=A-1,Math.floor(A/(I||1))>1}),w=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length<A;)j="0"+j;return j},S=this,k=function(E){return typeof m=="function"?m.call(S,E,_("m")):M(w("m",E.month(),2))},C=function(E,I){return I?typeof x=="function"?x.call(S,E):x[E.month()-S.minMonth]:typeof y=="function"?y.call(S,E):y[E.month()-S.minMonth]},T=this.local.digits,M=function(E){return f.localNumbers&&T?T(E):E},O="",D=!1,P=0;P<c.length;P++)if(D)c.charAt(P)!=="'"||_("'")?O+=c.charAt(P):D=!1;else switch(c.charAt(P)){case"d":O+=M(w("d",d.day(),2));break;case"D":O+=(p=d.dayOfWeek(),h=b,g=v,_("D")?g[p]:h[p]);break;case"o":O+=w("o",d.dayOfYear(),3);break;case"w":O+=w("w",d.weekOfYear(),2);break;case"m":O+=k(d);break;case"M":O+=C(d,_("M"));break;case"y":O+=_("y",2)?d.year():(d.year()%100<10?"0":"")+d.year()%100;break;case"Y":_("Y",2),O+=d.formatYear();break;case"J":O+=d.toJD();break;case"@":O+=(d.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":O+=(d.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":_("'")?O+="'":D=!0;break;default:O+=c.charAt(P)}return O},parseDate:function(c,d,f){if(d==null)throw u.local.invalidArguments||u.regionalOptions[""].invalidArguments;if((d=typeof d=="object"?d.toString():d+"")==="")return null;c=c||this.local.dateFormat;var p=(f=f||{}).shortYearCutoff||this.shortYearCutoff;p=typeof p!="string"?p:this.today().year()%100+parseInt(p,10);for(var h=f.dayNamesShort||this.local.dayNamesShort,g=f.dayNames||this.local.dayNames,b=f.parseMonth||this.local.parseMonth,v=f.monthNumbers||this.local.monthNumbers,m=f.monthNamesShort||this.local.monthNamesShort,y=f.monthNames||this.local.monthNames,x=-1,_=-1,w=-1,S=-1,k=-1,C=!1,T=!1,M=function(N,R){for(var q=1;j+q<c.length&&c.charAt(j+q)===N;)q++;return j+=q-1,Math.floor(q/(R||1))>1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W<L.length;W++)if(d.substr(F,L[W].length).toLowerCase()===L[W].toLowerCase())return F+=L[W].length,W+D.minMonth;throw(u.local.unknownNameAt||u.regionalOptions[""].unknownNameAt).replace(/\{0\}/,F)},I=function(){if(typeof y=="function"){var N=M("M")?y.call(D,d.substring(F)):m.call(D,d.substring(F));return F+=N.length,N}return E("M",m,y)},A=function(){if(d.charAt(F)!==c.charAt(j))throw(u.local.unexpectedLiteralAt||u.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,F);F++},F=0,j=0;j<c.length;j++)if(T)c.charAt(j)!=="'"||M("'")?A():T=!1;else switch(c.charAt(j)){case"d":S=O("d");break;case"D":E("D",h,g);break;case"o":k=O("o");break;case"w":O("w");break;case"m":w=P();break;case"M":w=I();break;case"y":var B=j;C=!M("y",2),j=B,_=O("y",2);break;case"Y":_=O("Y",2);break;case"J":x=O("J")+.5,d.charAt(F)==="."&&(F++,O("J"));break;case"@":x=O("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":x=O("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":F=d.length;break;case"'":M("'")?A():T=!0;break;default:A()}if(F<d.length)throw u.local.unexpectedText||u.regionalOptions[""].unexpectedText;if(_===-1?_=this.today().year():_<100&&C&&(_+=p===-1?1900:this.today().year()-this.today().year()%100-(_<=p?0:100)),typeof w=="string"&&(w=b.call(this,_,w)),k>-1){w=1,S=k;for(var z=this.daysInMonth(_,w);S>z;z=this.daysInMonth(_,w))w++,S-=z}return x>-1?this.fromJD(x):this.newDate(_,w,S)},determineDate:function(c,d,f,p,h){f&&typeof f!="object"&&(h=p,p=f,f=null),typeof p!="string"&&(h=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,h)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=m.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=m.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d<s.length;d++)typeof u[s[d]]=="function"&&(c[c.length]=s[d]);return c}}},r={};function l(i){var o=r[i];if(o!==void 0)return o.exports;var a=r[i]={exports:{}};return n[i].call(a.exports,a,a.exports,l),a.exports}return l.d=function(i,o){for(var a in o)l.o(o,a)&&!l.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},l.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l(760)}()})})(kB);var ope=kB.exports;const ipe=dr(ope);var CB={};(function(e){function t(_){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=x;var n=o(ge),r=l(Kr);function l(_){return _&&_.__esModule?_:{default:_}}function i(_){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(i=function(C){return C?S:w})(_)}function o(_,w){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var S=i(w);if(S&&S.has(_))return S.get(_);var k={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in _)if(T!=="default"&&Object.prototype.hasOwnProperty.call(_,T)){var M=C?Object.getOwnPropertyDescriptor(_,T):null;M&&(M.get||M.set)?Object.defineProperty(k,T,M):k[T]=_[T]}return k.default=_,S&&S.set(_,k),k}function a(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function s(_,w){for(var S=0;S<w.length;S++){var k=w[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function u(_,w,S){return w&&s(_.prototype,w),Object.defineProperty(_,"prototype",{writable:!1}),_}function c(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&d(_,w)}function d(_,w){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,C){return k.__proto__=C,k},d(_,w)}function f(_){var w=g();return function(){var k=b(_),C;if(w){var T=b(this).constructor;C=Reflect.construct(k,arguments,T)}else C=k.apply(this,arguments);return p(this,C)}}function p(_,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function x(_){var w=function(S){c(C,S);var k=f(C);function C(T){var M;return a(this,C),M=k.call(this,T),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(h(M)),M.syncEventHandlers=M.syncEventHandlers.bind(h(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(h(M)),M.getRef=M.getRef.bind(h(M)),M.handleUpdate=M.handleUpdate.bind(h(M)),M.figureCallback=M.figureCallback.bind(h(M)),M.updatePlotly=M.updatePlotly.bind(h(M)),M}return u(C,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),C}(n.Component);return w.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(S){w.propTypes["on"+S]=r.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(CB);const lpe=dr(CB),MB=lpe(ipe),Rd={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},spe=Xe.createContext(null),upe=()=>ge.useContext(spe),cpe=e=>typeof e=="number"?Math.round(e*100)/100:e,Db=e=>{var b,v,m,y;const t=upe(),n=hg(),r=e.data.some(({type:x})=>x==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!r,i=t==null?void 0:t.OnClickedPointComponent,o=t==null?void 0:t.OnHoveredPlotComponent,[a,s]=ge.useState(null),[u,c]=ge.useState(!1),d=i&&a?[{type:"line",x0:a.points[0].x,x1:a.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:n==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],f=i&&a&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[a.points[0].x],y:[a.points[0].y],mode:"markers",marker:{size:8,color:n==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point <br>${a.points[0].x}: ${cpe(a.points[0].y)}`}]:[],p=[...e.layout.shapes??[],...d],h=n==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((v=(b=e.layout.template)==null?void 0:b.layout)==null?void 0:v.colorway)||((m=Rd.layout)==null?void 0:m.colorway)}}}:void 0,g=l?{type:"category",categoryorder:"category ascending"}:void 0;return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{position:"relative",children:[Te.jsx(MB,{onHover:()=>!u&&c(!0),onClick:i?x=>s(x):void 0,data:[...e.data,...f],layout:{...e.layout,...h,title:void 0,shapes:p,xaxis:{...(y=e.layout)==null?void 0:y.xaxis,...g}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),a&&i&&Te.jsx(i,{event:a}),u&&o&&Te.jsx(o,{})]})})};var PB={},OB={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OB);var Hn=OB.exports,n_={exports:{}},O7;function jr(){return O7||(O7=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n[i]=l[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n_)),n_.exports}var vp={},r_={};const dpe=er(vfe);var a_={},o_={};const AB=er(Fle),Sf=er(Vre);var A7;function fpe(){return A7||(A7=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(AB),l=t(ge),i=t(Kr),o=Sf;function a(u){var c=(0,o.useTheme)();return l.default.createElement("div",{ref:u.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:c.palette.background.paper,opacity:.7}},l.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},l.default.createElement(r.default,null)))}a.propTypes={theme:i.default.any};var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,n.default)({},c,{forwardedRef:d}))});e.default=s}(o_)),o_}var i_={},l_={},Zi={},s_={exports:{}},u_={exports:{}},c_={exports:{}},D7;function Pa(){return D7||(D7=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c_)),c_.exports}var d_={exports:{}},E7;function ppe(){return E7||(E7=1,function(e){var t=Pa().default;function n(r,l){if(t(r)!=="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var o=i.call(r,l||"default");if(t(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(d_)),d_.exports}var R7;function DB(){return R7||(R7=1,function(e){var t=Pa().default,n=ppe();function r(l){var i=n(l,"string");return t(i)==="symbol"?i:String(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(u_)),u_.exports}var L7;function za(){return L7||(L7=1,function(e){var t=DB();function n(r,l,i){return l=t(l),l in r?Object.defineProperty(r,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[l]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s_)),s_.exports}var hpe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const I7=e=>{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(hpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},EB=e=>e?I7(e):I7;var RB={exports:{}},LB={},IB={exports:{}},$B={};/** +`)):H=z.stylize("[Circular]","special")),C(W)){if(L&&Y.match(/^\d+$/))return H;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=z.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=z.stylize(W,"string"))}return W+": "+H}function x(z){return Array.isArray(z)}function _(z){return typeof z=="boolean"}function w(z){return z===null}function S(z){return typeof z=="number"}function k(z){return typeof z=="string"}function C(z){return z===void 0}function T(z){return M(z)&&E(z)==="[object RegExp]"}function M(z){return typeof z=="object"&&z!==null}function O(z){return M(z)&&E(z)==="[object Date]"}function D(z){return M(z)&&(E(z)==="[object Error]"||z instanceof Error)}function P(z){return typeof z=="function"}function E(z){return Object.prototype.toString.call(z)}function I(z){return z<10?"0"+z.toString(10):z.toString(10)}o.debuglog=function(z){if(z=z.toUpperCase(),!d[z])if(f.test(z)){var N=s.pid;d[z]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",z,N,R)}}else d[z]=function(){};return d[z]},o.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=x,o.isBoolean=_,o.isNull=w,o.isNullOrUndefined=function(z){return z==null},o.isNumber=S,o.isString=k,o.isSymbol=function(z){return typeof z=="symbol"},o.isUndefined=C,o.isRegExp=T,o.types.isRegExp=T,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"||typeof z=="symbol"||z===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(z,N){return Object.prototype.hasOwnProperty.call(z,N)}o.log=function(){var z,N;console.log("%s - %s",(N=[I((z=new Date).getHours()),I(z.getMinutes()),I(z.getSeconds())].join(":"),[z.getDate(),A[z.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(z,N){if(!N||!M(N))return z;for(var R=Object.keys(N),q=R.length;q--;)z[R[q]]=N[R[q]];return z};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(z,N){if(!z){var R=new Error("Promise was rejected with a falsy value");R.reason=z,z=R}return N(z)}o.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&z[j]){var N;if(typeof(N=z[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(H,G){R=H,q=G}),L=[],W=0;W<arguments.length;W++)L.push(arguments[W]);L.push(function(H,G){H?q(H):R(G)});try{z.apply(this,L)}catch(H){q(H)}return Y}return Object.setPrototypeOf(N,Object.getPrototypeOf(z)),j&&Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,u(z))},o.promisify.custom=j,o.callbackify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var R=[],q=0;q<arguments.length;q++)R.push(arguments[q]);var Y=R.pop();if(typeof Y!="function")throw new TypeError("The last argument must be of type Function");var L=this,W=function(){return Y.apply(L,arguments)};z.apply(this,R).then(function(H){s.nextTick(W.bind(null,null,H))},function(H){s.nextTick(B.bind(null,H,W))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(z)),Object.defineProperties(N,u(z)),N}},21099:function(i,o,a){var s=a(31353),u=a(72077),c=a(6614),d=a(40383),f=c("Object.prototype.toString"),p=a(84543)(),h=typeof globalThis>"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},m=Object.getPrototypeOf;p&&d&&m&&s(g,function(x){if(typeof h[x]=="function"){var _=new h[x];if(Symbol.toStringTag in _){var w=m(_),S=d(w,Symbol.toStringTag);if(!S){var k=m(w);S=d(k,Symbol.toStringTag)}v[x]=S.get}}});var y=a(9187);i.exports=function(x){return!!y(x)&&(p&&Symbol.toStringTag in x?function(_){var w=!1;return s(v,function(S,k){if(!w)try{var C=S.call(_);C===k&&(w=C)}catch{}}),w}(x):b(f(x),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,y){if(typeof m=="string"){var x=m.match(p);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),S=""+this.toChineseMonth(_,w);return y&&S.length<2&&(S="0"+S),this.isIntercalaryMonth(_,w)&&(S+="i"),S},monthNames:function(m){if(typeof m=="string"){var y=m.match(h);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var y=m.match(g);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,y){m=this._validateYear(m);var x,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(x=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var w=y[y.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,y){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw y.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,y,x){var _=this.intercalaryMonth(m);if(x&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&y<=_?y-1:y:y-1},toChineseMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);if(y<0||y>(x?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?y<x?y+1:y:y+1},intercalaryMonth:function(m){return m=this._validateYear(m),b[m-b[0]]>>13},isIntercalaryMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===y},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,y,x){var _,w=this._validateYear(m,s.local.invalidyear),S=v[w-v[0]],k=S>>9&4095,C=S>>5&15,T=31&S;(_=c.newDate(k,C,T)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(m,y,x)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,y){m.year&&(y=m.month(),m=m.year()),m=this._validateYear(m);var x=b[m-b[0]];if(y>(x>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-y?30:29},weekDay:function(m,y,x){return(this.dayOfWeek(m,y,x)||7)<6},toJD:function(m,y,x){var _=this._validate(m,S,x,s.local.invalidDate);m=this._validateYear(_.year()),y=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,y),S=this.toChineseMonth(m,y),k=function(C,T,M,O,D){var P,E,I;if(typeof C=="object")E=C,P=T||{};else{var A;if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:C,month:T,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],B=j>>13;F=B&&(E.month>B||E.isIntercalary)?E.month:E.month-1;for(var z=0;z<F;z++)I+=j&1<<12-z?30:29;var N=v[E.year-v[0]],R=new Date(N>>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(m,S,x,w);return c.toJD(k.year,k.month,k.day)},fromJD:function(m){var y=c.fromJD(m),x=function(w,S,k,C){var T,M;if(typeof w=="object")T=w,M=S||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:S,day:k},M={}}var O=v[T.year-v[0]],D=T.year<<9|T.month<<5|T.day;M.year=D>=O?T.year:T.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(T.year,T.month-1,T.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P<j)break;P-=j}var B=F>>13;return!B||A<B?(M.isIntercalary=!1,M.month=1+A):A===B?(M.isIntercalary=!0,M.month=A):(M.isIntercalary=!1,M.month=A),M.day=1+P,M}(y.year(),y.month(),y.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(m){var y=m.match(f),x=this._validateYear(+y[1]),_=+y[2],w=!!y[3],S=this.toMonthIndex(x,_,w),k=+y[4];return this.newDate(x,S,k)},add:function(m,y,x){var _=m.year(),w=m.month(),S=this.isIntercalaryMonth(_,w),k=this.toChineseMonth(_,w),C=Object.getPrototypeOf(d.prototype).add.call(this,m,y,x);if(x==="y"){var T=C.year(),M=C.month(),O=this.isIntercalaryMonth(T,k),D=S&&O?this.toMonthIndex(T,k,!0):this.toMonthIndex(T,k,!1);D!==M&&C.month(D)}return C}});var f=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,p=/^\d?\d[iI]?/m,h=/^闰?十?[一二三四五六七八九]?月/m,g=/^闰?十?[一二三四五六七八九]?/m;s.calendars.chinese=d;var b=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.coptic=c},86825:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),!1},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),13},daysInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),400},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/8)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(f,p,h){return(this._validate(f,p,h,s.local.invalidDate).day()+1)%8},weekDay:function(f,p,h){var g=this.dayOfWeek(f,p,h);return g>=2&&g<=6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(h=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var h=Math.floor(f/32)+1,g=f-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+h+1;if(p<7){for(var m=7;m<=this.monthsInYear(f);m++)v+=this.daysInMonth(f,m);for(m=1;m<p;m++)v+=this.daysInMonth(f,m)}else for(m=7;m<p;m++)v+=this.daysInMonth(f,m);return v},_delay1:function(f){var p=Math.floor((235*f-234)/19),h=12084+13753*p,g=29*p+Math.floor(h/25920);return d(3*(g+1),7)<3&&g++,g},_delay2:function(f){var p=this._delay1(f-1),h=this._delay1(f);return this._delay1(f+1)-h==356?2:h-p==382?1:0},fromJD:function(f){f=Math.floor(f)+.5;for(var p=Math.floor(98496*(f-this.jdEpoch)/35975351)-1;f>=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=f<this.toJD(p,1,1)?7:1;f>this.toJD(p,h,this.daysInMonth(p,h));)h++;var g=f-this.toJD(p,h,1)+1;return this.newDate(p,h,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),d=d<=0?d+1:d,(p=h.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),h=d-this.toJD(f,p,1)+1;return this.newDate(f,p,h)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),p=h.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),h=Math.floor(365.25*p),g=Math.floor((f-h)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),m=f-h-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,m)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,h){return p-h*Math.floor(p/h)}function f(p,h){return d(p-1,h)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,g=0;g<p.length;g++){var b=parseInt(p[g],10);if(Math.abs(b)>19||g>0&&b<0)throw"Invalid Mayan year";h=20*h+b}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate).day()},weekDay:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),!0},extraInfo:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate).toJD(),v=this._toHaab(b),m=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(p){var h=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,d(h,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(h,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v<g.month();v++)b+=this.daysPerMonth[v-1];return b+d.toJD(f+1468,3,13)},fromJD:function(f){f=Math.floor(f+.5);for(var p=Math.floor((f-(this.jdEpoch-1))/366);f>=this.toJD(p+1,1,1);)p++;for(var h=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;h>this.daysInMonth(p,g);)h-=this.daysInMonth(p,g),g++;return this.newDate(p,g,h)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);d=h.year(),f=h.month(),p=h.day();var g=s.instance(),b=0,v=f,m=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,m--),b+=this.NEPALI_CALENDAR_DATA[m][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[m][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),h=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][b]-v+1;h>m;)++b>12&&(b=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(m-h);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p<d+2;p++)this.NEPALI_CALENDAR_DATA[p]===void 0&&(this.NEPALI_CALENDAR_DATA[p]=f)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),s.calendars.nepali=c},94320:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return 682*((p.year()-(p.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),m=d(g,366);b=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var y=b+2820*h+474;y=y<=0?y-1:y;var x=f-this.toJD(y,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=f-this.toJD(y,_,1)+1;return this.newDate(y,_,w)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(f,h);return p},daysInMonth:function(f,p){for(var h=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;b<d.length;b++){if(d[b]>h)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,h=0,g=0;g<d.length&&!(d[g]>p);g++)h++;var b=h+15292,v=Math.floor((b-1)/12),m=v+1,y=b-12*v,x=p-d[h-1]+1;return this.newDate(m,y,x)},isValid:function(f,p,h){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,h,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,m){if(this._calendar=g,this._year=b,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,m,y){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,y):m)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var m="",y=0;v>0;){var x=v%10;m=(x===0?"":g[x]+b[y])+m,y++,v=Math.floor(v/10)}return m.indexOf(g[1]+b[1])===0&&(m=m.substr(1)),m||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(m);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var x=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(S){for(;_<S.minMonth;)x--,_+=S.monthsInYear(x);for(var k=S.monthsInYear(x);_>k-1+S.minMonth;)x++,_-=k,k=S.monthsInYear(x)}(this),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),y];return this._validateLevel--,w}catch(S){throw this._validateLevel--,S}},_correctAdd:function(g,b,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;b=this._add(g,v*y[0]+x*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var m=v==="y"?b:g.year(),y=v==="m"?b:g.month(),x=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,y))),g.date(m,y,x)},isValid:function(g,b,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var y=this.newDate(g,b,this.minDay);m=b>=this.minMonth&&b-this.minMonth<this.monthsInYear(y)&&v>=this.minDay&&v-this.minDay<this.daysInMonth(y)}return this._validateLevel--,m},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return h.instance().fromJD(this.toJD(m)).toJSDate()},fromJSDate:function(g){return this.fromJD(h.instance().fromJSDate(g).toJD())},_validate:function(g,b,v,m){if(g.year){if(this._validateLevel===0&&this.name!==g.calendar().name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,g.calendar().local.name);return g}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(g,b,v))throw m.replace(/\{0\}/,this.local.name);var y=this.newDate(g,b,v);return this._validateLevel--,y}catch(x){throw this._validateLevel--,x}}}),p.prototype=new f,s(p.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(g=b.year()+(b.year()<0?1:0))%4==0&&(g%100!=0||g%400==0)},weekOfYear:function(g,b,v){var m=this.newDate(g,b,v);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(g,b,v){return(this.dayOfWeek(g,b,v)||7)<6},toJD:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);g=m.year(),b=m.month(),v=m.day(),g<0&&g++,b<3&&(b+=12,g--);var y=Math.floor(g/100),x=2-y+Math.floor(y/4);return Math.floor(365.25*(g+4716))+Math.floor(30.6001*(b+1))+v+x-1524.5},fromJD:function(g){var b=Math.floor(g+.5),v=Math.floor((b-186721625e-2)/36524.25),m=1524+(v=b+1+v-Math.floor(v/4)),y=Math.floor((m-122.1)/365.25),x=Math.floor(365.25*y),_=Math.floor((m-x)/30.6001),w=m-x-Math.floor(30.6001*_),S=_-(_>13.5?13:1),k=y-(S>2.5?4716:4715);return k<=0&&k--,this.newDate(k,S,w)},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),y=new Date(m.year(),m.month()-1,m.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var h=i.exports=new u;h.cdate=c,h.baseCalendar=f,h.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,h,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,m=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,x=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A<c.length&&c.charAt(P+A)===E;)A++;return P+=A-1,Math.floor(A/(I||1))>1}),w=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length<A;)j="0"+j;return j},S=this,k=function(E){return typeof m=="function"?m.call(S,E,_("m")):M(w("m",E.month(),2))},C=function(E,I){return I?typeof x=="function"?x.call(S,E):x[E.month()-S.minMonth]:typeof y=="function"?y.call(S,E):y[E.month()-S.minMonth]},T=this.local.digits,M=function(E){return f.localNumbers&&T?T(E):E},O="",D=!1,P=0;P<c.length;P++)if(D)c.charAt(P)!=="'"||_("'")?O+=c.charAt(P):D=!1;else switch(c.charAt(P)){case"d":O+=M(w("d",d.day(),2));break;case"D":O+=(p=d.dayOfWeek(),h=b,g=v,_("D")?g[p]:h[p]);break;case"o":O+=w("o",d.dayOfYear(),3);break;case"w":O+=w("w",d.weekOfYear(),2);break;case"m":O+=k(d);break;case"M":O+=C(d,_("M"));break;case"y":O+=_("y",2)?d.year():(d.year()%100<10?"0":"")+d.year()%100;break;case"Y":_("Y",2),O+=d.formatYear();break;case"J":O+=d.toJD();break;case"@":O+=(d.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":O+=(d.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":_("'")?O+="'":D=!0;break;default:O+=c.charAt(P)}return O},parseDate:function(c,d,f){if(d==null)throw u.local.invalidArguments||u.regionalOptions[""].invalidArguments;if((d=typeof d=="object"?d.toString():d+"")==="")return null;c=c||this.local.dateFormat;var p=(f=f||{}).shortYearCutoff||this.shortYearCutoff;p=typeof p!="string"?p:this.today().year()%100+parseInt(p,10);for(var h=f.dayNamesShort||this.local.dayNamesShort,g=f.dayNames||this.local.dayNames,b=f.parseMonth||this.local.parseMonth,v=f.monthNumbers||this.local.monthNumbers,m=f.monthNamesShort||this.local.monthNamesShort,y=f.monthNames||this.local.monthNames,x=-1,_=-1,w=-1,S=-1,k=-1,C=!1,T=!1,M=function(N,R){for(var q=1;j+q<c.length&&c.charAt(j+q)===N;)q++;return j+=q-1,Math.floor(q/(R||1))>1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W<L.length;W++)if(d.substr(F,L[W].length).toLowerCase()===L[W].toLowerCase())return F+=L[W].length,W+D.minMonth;throw(u.local.unknownNameAt||u.regionalOptions[""].unknownNameAt).replace(/\{0\}/,F)},I=function(){if(typeof y=="function"){var N=M("M")?y.call(D,d.substring(F)):m.call(D,d.substring(F));return F+=N.length,N}return E("M",m,y)},A=function(){if(d.charAt(F)!==c.charAt(j))throw(u.local.unexpectedLiteralAt||u.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,F);F++},F=0,j=0;j<c.length;j++)if(T)c.charAt(j)!=="'"||M("'")?A():T=!1;else switch(c.charAt(j)){case"d":S=O("d");break;case"D":E("D",h,g);break;case"o":k=O("o");break;case"w":O("w");break;case"m":w=P();break;case"M":w=I();break;case"y":var B=j;C=!M("y",2),j=B,_=O("y",2);break;case"Y":_=O("Y",2);break;case"J":x=O("J")+.5,d.charAt(F)==="."&&(F++,O("J"));break;case"@":x=O("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":x=O("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":F=d.length;break;case"'":M("'")?A():T=!0;break;default:A()}if(F<d.length)throw u.local.unexpectedText||u.regionalOptions[""].unexpectedText;if(_===-1?_=this.today().year():_<100&&C&&(_+=p===-1?1900:this.today().year()-this.today().year()%100-(_<=p?0:100)),typeof w=="string"&&(w=b.call(this,_,w)),k>-1){w=1,S=k;for(var z=this.daysInMonth(_,w);S>z;z=this.daysInMonth(_,w))w++,S-=z}return x>-1?this.fromJD(x):this.newDate(_,w,S)},determineDate:function(c,d,f,p,h){f&&typeof f!="object"&&(h=p,p=f,f=null),typeof p!="string"&&(h=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,h)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=m.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=m.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d<s.length;d++)typeof u[s[d]]=="function"&&(c[c.length]=s[d]);return c}}},r={};function l(i){var o=r[i];if(o!==void 0)return o.exports;var a=r[i]={exports:{}};return n[i].call(a.exports,a,a.exports,l),a.exports}return l.d=function(i,o){for(var a in o)l.o(o,a)&&!l.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},l.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l(760)}()})})(kB);var ope=kB.exports;const ipe=dr(ope);var CB={};(function(e){function t(_){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=x;var n=o(ge),r=l(Kr);function l(_){return _&&_.__esModule?_:{default:_}}function i(_){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(i=function(C){return C?S:w})(_)}function o(_,w){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var S=i(w);if(S&&S.has(_))return S.get(_);var k={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in _)if(T!=="default"&&Object.prototype.hasOwnProperty.call(_,T)){var M=C?Object.getOwnPropertyDescriptor(_,T):null;M&&(M.get||M.set)?Object.defineProperty(k,T,M):k[T]=_[T]}return k.default=_,S&&S.set(_,k),k}function a(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function s(_,w){for(var S=0;S<w.length;S++){var k=w[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function u(_,w,S){return w&&s(_.prototype,w),Object.defineProperty(_,"prototype",{writable:!1}),_}function c(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&d(_,w)}function d(_,w){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,C){return k.__proto__=C,k},d(_,w)}function f(_){var w=g();return function(){var k=b(_),C;if(w){var T=b(this).constructor;C=Reflect.construct(k,arguments,T)}else C=k.apply(this,arguments);return p(this,C)}}function p(_,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function x(_){var w=function(S){c(C,S);var k=f(C);function C(T){var M;return a(this,C),M=k.call(this,T),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(h(M)),M.syncEventHandlers=M.syncEventHandlers.bind(h(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(h(M)),M.getRef=M.getRef.bind(h(M)),M.handleUpdate=M.handleUpdate.bind(h(M)),M.figureCallback=M.figureCallback.bind(h(M)),M.updatePlotly=M.updatePlotly.bind(h(M)),M}return u(C,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),C}(n.Component);return w.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(S){w.propTypes["on"+S]=r.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(CB);const lpe=dr(CB),MB=lpe(ipe),Rd={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},spe=Xe.createContext(null),upe=()=>ge.useContext(spe),cpe=e=>typeof e=="number"?Math.round(e*100)/100:e,Db=e=>{var b,v,m,y;const t=upe(),n=hg(),r=e.data.some(({type:x})=>x==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!r,i=t==null?void 0:t.OnClickedPointComponent,o=t==null?void 0:t.OnHoveredPlotComponent,[a,s]=ge.useState(null),[u,c]=ge.useState(!1),d=i&&a?[{type:"line",x0:a.points[0].x,x1:a.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:n==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],f=i&&a&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[a.points[0].x],y:[a.points[0].y],mode:"markers",marker:{size:8,color:n==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point <br>${a.points[0].x}${e.data.every(x=>x.type!=="heatmap")?`: ${cpe(a.points[0].y)}`:""}`,hoverinfo:"skip"}]:[],p=[...e.layout.shapes??[],...d],h=n==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((v=(b=e.layout.template)==null?void 0:b.layout)==null?void 0:v.colorway)||((m=Rd.layout)==null?void 0:m.colorway)}}}:void 0,g=l?{type:"category",categoryorder:"category ascending"}:void 0;return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{position:"relative",children:[Te.jsx(MB,{onHover:()=>!u&&c(!0),onClick:i?x=>s(x):void 0,data:[...e.data,...f],layout:{...e.layout,...h,title:void 0,shapes:p,xaxis:{...(y=e.layout)==null?void 0:y.xaxis,...g}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),a&&i&&Te.jsx(i,{event:a}),u&&o&&Te.jsx(o,{})]})})};var PB={},OB={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OB);var Hn=OB.exports,n_={exports:{}},O7;function jr(){return O7||(O7=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n[i]=l[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n_)),n_.exports}var vp={},r_={};const dpe=er(vfe);var a_={},o_={};const AB=er(Fle),Sf=er(Vre);var A7;function fpe(){return A7||(A7=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(AB),l=t(ge),i=t(Kr),o=Sf;function a(u){var c=(0,o.useTheme)();return l.default.createElement("div",{ref:u.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:c.palette.background.paper,opacity:.7}},l.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},l.default.createElement(r.default,null)))}a.propTypes={theme:i.default.any};var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,n.default)({},c,{forwardedRef:d}))});e.default=s}(o_)),o_}var i_={},l_={},Zi={},s_={exports:{}},u_={exports:{}},c_={exports:{}},D7;function Pa(){return D7||(D7=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c_)),c_.exports}var d_={exports:{}},E7;function ppe(){return E7||(E7=1,function(e){var t=Pa().default;function n(r,l){if(t(r)!=="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var o=i.call(r,l||"default");if(t(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(d_)),d_.exports}var R7;function DB(){return R7||(R7=1,function(e){var t=Pa().default,n=ppe();function r(l){var i=n(l,"string");return t(i)==="symbol"?i:String(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(u_)),u_.exports}var L7;function za(){return L7||(L7=1,function(e){var t=DB();function n(r,l,i){return l=t(l),l in r?Object.defineProperty(r,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[l]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s_)),s_.exports}var hpe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const I7=e=>{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(hpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},EB=e=>e?I7(e):I7;var RB={exports:{}},LB={},IB={exports:{}},$B={};/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index 83e188f6cb..531ab25fca 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,7 +11,7 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> <title>Evidently - ML Monitoring Demo</title> - <script type="module" crossorigin src="/static/js/index-Bk_zDyHx.js"></script> + <script type="module" crossorigin src="/static/js/index-CpD9nDs7.js"></script> <link rel="modulepreload" crossorigin href="/static/js/vendor-C2GWNUp2.js"> <link rel="stylesheet" crossorigin href="/static/css/index-CJbKDbyR.css"> </head> diff --git a/src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js b/src/evidently/ui/assets/static/js/DashboardContent-BM760KWh.js similarity index 99% rename from src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js rename to src/evidently/ui/assets/static/js/DashboardContent-BM760KWh.js index 166b68c70f..28de74b913 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-BM760KWh.js @@ -1,4 +1,4 @@ -var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,B as Kr,aA as qn,aB as e9,aC as t9,aD as n9,aE as Sa,aF as r9,aG as a9,aH as i9,aI as o9,aJ as l9,aK as s9,aL as u9,aM as c9,aN as f9,aO as d9,aP as h9,aQ as p9,aR as g9,aS as m9,aT as v9,aU as y9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as b9,b1 as Tr,b2 as fr,b3 as x9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as w9,b9 as _l,ba as my,bb as _9,ah as Ad,bc as ro,I as jl,bd as T9,be as k9,bf as nS,bg as M9,bh as oe,bi as S9,G as Jn,p as hi,bj as C9,al as O9,P as rS,bk as A9,bl as sg,am as P9,bm as D9,bn as E9,bo as z2,bp as R9,a as vy,a9 as aS,bq as L9,aa as A0,br as I9,bs as F9,bt as N9,bu as j9,bv as $9,bw as B9,bx as z9,by as q9,bz as W9,bA as q2,bB as U9,bC as yy,m as H9,R as et,bD as V9,bE as Y9,bF as G9,bG as X9,bH as Z9,bI as K9,bJ as J9,bK as Q9,bL as eE,d as by,bM as tE,bN as nE,a2 as iS,$ as rE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as aE,bP as iE,H as xy,bQ as oE,D as lE,bR as uS,bS as cS,bT as sE,bU as uE,bV as cE,bW as fE}from"./vendor-C2GWNUp2.js";import{u as dE}from"./DashboardViewParams-D9XhJzJS.js";import{u as fS,A as wy,a as _y}from"./index-Bk_zDyHx.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),dS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var c=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(c,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),c=n(44467).templatedArray;n(24695),o.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function c(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,c],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function c(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m<w.length;m++)if(g=(v=w[m]).clicktoshow){for(y=0;y<S;y++)if(x=(b=p[y]).xaxis,_=b.yaxis,x._id===v.xref&&_._id===v.yref&&x.d2r(b.x)===d(v._xclick,x)&&_.d2r(b.y)===d(v._yclick,_)){(v.visible?g==="onout"?T:M:k).push(m);break}y===S&&v.visible&&g==="onout"&&T.push(m)}return{on:k,off:T,explicitOff:M}}function d(h,p){return p.type==="log"?p.l2r(h):p.d2r(h)}o.exports={hasClickToShow:function(h,p){var m=c(h,p);return m.on.length>0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=c(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m<g.length;m++)(y=s(h.layout,"annotations",_[g[m]])).modifyItem("visible",!0),l.extendFlat(x,y.getUpdateObj());for(m=0;m<b.length;m++)(y=s(h.layout,"annotations",_[b[m]])).modifyItem("visible",!1),l.extendFlat(x,y.getUpdateObj());return f.call("update",h,{},x)}}}},25625:function(o,a,n){var l=n(71828),f=n(7901);o.exports=function(s,c,d,h){h("opacity");var p=h("bgcolor"),m=h("bordercolor"),y=f.opacity(m);h("borderpad");var v=h("borderwidth"),g=h("showarrow");if(h("text",g?" ":d._dfltTitle.annotation),h("textangle"),l.coerceFont(h,"font",d.font),h("width"),h("align"),h("height")&&h("valign"),g){var b,x,_=h("arrowside");_.indexOf("end")!==-1&&(b=h("arrowhead"),x=h("arrowsize")),_.indexOf("start")!==-1&&(h("startarrowhead",b),h("startarrowsize",x)),h("arrowcolor",y?c.bordercolor:f.defaultLine),h("arrowwidth",2*(y&&v||1)),h("standoff"),h("startstandoff")}var w=h("hovertext"),k=d.hoverlabel||{};if(w){var T=h("hoverlabel.bgcolor",k.bgcolor||(f.opacity(p)?f.rgb(p):f.defaultLine)),M=h("hoverlabel.bordercolor",k.bordercolor||f.contrast(T));l.coerceFont(h,"hoverlabel.font",{family:k.font.family,size:k.font.size,color:k.font.color||M})}h("captureevents",!!w)}},94128:function(o,a,n){var l=n(92770),f=n(58163);o.exports=function(s,c,d,h){c=c||{};var p=d==="log"&&c.type==="linear",m=d==="linear"&&c.type==="log";if(p||m)for(var y,v,g=s._fullLayout.annotations,b=c._id.charAt(0),x=0;x<g.length;x++)y=g[x],v="annotations["+x+"].",y[b+"ref"]===c._id&&_(b),y["a"+b+"ref"]===c._id&&_("a"+b);function _(w){var k=y[w],T=null;T=p?f(k,c.range):Math.pow(10,k),l(T)||(T=null),h(v+w,T)}}},84046:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(25625),d=n(50215);function h(p,m,y){function v(F,A){return l.coerce(p,m,d,F,A)}var g=v("visible"),b=v("clicktoshow");if(g||b){c(p,m,y,v);for(var x=m.showarrow,_=["x","y"],w=[-10,-30],k={_fullLayout:y},T=0;T<2;T++){var M=_[T],S=f.coerceRef(p,m,k,M,"","paper");if(S!=="paper"&&f.getFromId(k,S)._annIndices.push(m._index),f.coercePosition(m,k,v,S,M,.5),x){var C="a"+M,P=f.coerceRef(p,m,k,C,"pixel",["pixel","paper"]);P!=="pixel"&&P!==S&&(P=m[C]="pixel");var D=P==="pixel"?w[T]:.4;f.coercePosition(m,k,v,P,C,D)}v(M+"anchor"),v(M+"shift")}if(l.noneOrAll(p,m,["x","y"]),x&&l.noneOrAll(p,m,["ax","ay"]),b){var O=v("xclick"),R=v("yclick");m._xclick=O===void 0?m.x:f.cleanPosition(O,k,m.xref),m._yclick=R===void 0?m.y:f.cleanPosition(R,k,m.yref)}}}o.exports=function(p,m){s(p,m,{name:"annotations",handleItemDefaults:h})}},92605:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=c.strTranslate,h=n(89298),p=n(7901),m=n(91424),y=n(30211),v=n(63893),g=n(6964),b=n(28569),x=n(44467).arrayEditor,_=n(13011);function w(M,S){var C=M._fullLayout.annotations[S]||{},P=h.getFromId(M,C.xref),D=h.getFromId(M,C.yref);P&&P.setScale(),D&&D.setScale(),T(M,C,S,!1,P,D)}function k(M,S,C,P,D){var O=D[C],R=D[C+"ref"],F=C.indexOf("y")!==-1,A=h.getRefType(R)==="domain",z=F?P.h:P.w;return M?A?O+(F?-S:S)/M._length:M.p2r(M.r2p(O)+S):O+(F?-S:S)/z}function T(M,S,C,P,D,O){var R,F,A=M._fullLayout,z=M._fullLayout._size,B=M._context.edits;P?(R="annotation-"+P,F=P+".annotations"):(R="annotation",F="annotations");var $=x(M.layout,F,S),j=$.modifyBase,N=$.modifyItem,E=$.getUpdateObj;A._infolayer.selectAll("."+R+'[data-index="'+C+'"]').remove();var W="clip"+A._uid+"_ann"+C;if(S._input&&S.visible!==!1){var G={x:{},y:{}},L=+S.textangle||0,q=A._infolayer.append("g").classed(R,!0).attr("data-index",String(C)).style("opacity",S.opacity),H=q.append("g").classed("annotation-text-g",!0),V=B[S.showarrow?"annotationTail":"annotationPosition"],te=S.captureevents||B.annotationText||V,ee=H.append("g").style("pointer-events",te?"all":null).call(g,"pointer").on("click",function(){M._dragging=!1,M.emit("plotly_clickannotation",pe(l.event))});S.hovertext&&ee.on("mouseover",function(){var Oe=S.hoverlabel,Me=Oe.font,ce=this.getBoundingClientRect(),ye=M.getBoundingClientRect();y.loneHover({x0:ce.left-ye.left,x1:ce.right-ye.left,y:(ce.top+ce.bottom)/2-ye.top,text:S.hovertext,color:Oe.bgcolor,borderColor:Oe.bordercolor,fontFamily:Me.family,fontSize:Me.size,fontColor:Me.color},{container:A._hoverlayer.node(),outerContainer:A._paper.node(),gd:M})}).on("mouseout",function(){y.loneUnhover(A._hoverlayer.node())});var U=S.borderwidth,Q=S.borderpad,Y=U+Q,Z=ee.append("rect").attr("class","bg").style("stroke-width",U+"px").call(p.stroke,S.bordercolor).call(p.fill,S.bgcolor),X=S.width||S.height,re=A._topclips.selectAll("#"+W).data(X?[0]:[]);re.enter().append("clipPath").classed("annclip",!0).attr("id",W).append("rect"),re.exit().remove();var ie=S.font,le=A._meta?c.templateString(S.text,A._meta):S.text,se=ee.append("text").classed("annotation-text",!0).text(le);B.annotationText?se.call(v.makeEditable,{delegate:ee,gd:M}).call(Te).on("edit",function(Oe){S.text=Oe,this.call(Te),N("text",Oe),D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0),f.call("_guiRelayout",M,E())}):se.call(Te)}else l.selectAll("#"+W).remove();function pe(Oe){var Me={index:C,annotation:S._input,fullAnnotation:S,event:Oe};return P&&(Me.subplotId=P),Me}function Te(Oe){return Oe.call(m.font,ie).attr({"text-anchor":{left:"start",right:"end"}[S.align]||"middle"}),v.convertToTspans(Oe,M,Se),Oe}function Se(){var Oe=se.selectAll("a");Oe.size()===1&&Oe.text()===se.text()&&ee.insert("a",":first-child").attr({"xlink:xlink:href":Oe.attr("xlink:href"),"xlink:xlink:show":Oe.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(Z.node());var Me=ee.select(".annotation-text-math-group"),ce=!Me.empty(),ye=m.bBox((ce?Me:se).node()),J=ye.width,ne=ye.height,de=S.width||J,xe=S.height||ne,ue=Math.round(de+2*Y),ge=Math.round(xe+2*Y);function be(Ke,nt){return nt==="auto"&&(nt=Ke<.3333333333333333?"left":Ke>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae<ke.length;Ae++){var Ee,De,Re,Ie,Be,Ue=ke[Ae],qe=S[Ue+"ref"]||Ue,Ye=S["a"+Ue+"ref"],at={x:D,y:O}[Ue],lt=(L+(Ue==="x"?0:-90))*Math.PI/180,ct=ue*Math.cos(lt),bt=ge*Math.sin(lt),ze=Math.abs(ct)+Math.abs(bt),Ne=S[Ue+"anchor"],Qe=S[Ue+"shift"]*(Ue==="x"?1:-1),it=G[Ue],kt=h.getRefType(qe);if(at&&kt!=="domain"){var Je=at.r2fraction(S[Ue]);(Je<0||Je>1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=c.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=c.rotationXYMatrix(L,Vt,St),Dt=c.apply2DTransform(Nt),gt=c.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!c.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=c.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C<S.annotations.length;C++)S.annotations[C].visible&&w(M,C);return s.previousPromises(M)},drawOne:w,drawRaw:T}},13011:function(o,a,n){var l=n(39898),f=n(7901),s=n(82884),c=n(71828),d=c.strScale,h=c.strRotate,p=c.strTranslate;o.exports=function(m,y,v){var g,b,x,_,w=m.node(),k=s[v.arrowhead||0],T=s[v.startarrowhead||0],M=(v.arrowwidth||1)*(v.arrowsize||1),S=(v.arrowwidth||1)*(v.startarrowsize||1),C=y.indexOf("start")>=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j<D+O)return void q();var E=w.getPointAtLength(0),W=w.getPointAtLength(.1);x=Math.atan2(E.y-W.y,E.x-W.x),g=w.getPointAtLength(Math.min(O,j)),N="0px,"+O+"px,";var G=w.getPointAtLength(j),L=w.getPointAtLength(j-.1);_=Math.atan2(G.y-L.y,G.x-L.x),b=w.getPointAtLength(Math.max(0,j-D)),N+=j-(N?O+D:D)+"px,"+j+"px",m.style("stroke-dasharray",N)}function q(){m.style("stroke-dasharray","0px,100px")}function H(V,te,ee,U){V.path&&(V.noRotate&&(ee=0),l.select(w.parentNode).append("path").attr({class:m.attr("class"),d:V.path,transform:p(te.x,te.y)+h(180*ee/Math.PI)+d(U)}).style({fill:f.rgb(v.arrowcolor),"stroke-width":0}))}C&&H(T,g,x,S),P&&H(k,b,_,M)}},32745:function(o,a,n){var l=n(92605),f=n(44317);o.exports={moduleType:"component",name:"annotations",layoutAttributes:n(50215),supplyLayoutDefaults:n(84046),includeBasePlot:n(76325)("annotations"),calcAutorange:n(3749),draw:l.draw,drawOne:l.drawOne,drawRaw:l.drawRaw,hasClickToShow:f.hasClickToShow,onClick:f.onClick,convertCoords:n(94128)}},26997:function(o,a,n){var l=n(50215),f=n(30962).overrideAll,s=n(44467).templatedArray;o.exports=f(s("annotation",{visible:l.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:l.xanchor,xshift:l.xshift,yanchor:l.yanchor,yshift:l.yshift,text:l.text,textangle:l.textangle,font:l.font,width:l.width,height:l.height,opacity:l.opacity,align:l.align,valign:l.valign,bgcolor:l.bgcolor,bordercolor:l.bordercolor,borderpad:l.borderpad,borderwidth:l.borderwidth,showarrow:l.showarrow,arrowcolor:l.arrowcolor,arrowhead:l.arrowhead,startarrowhead:l.startarrowhead,arrowside:l.arrowside,arrowsize:l.arrowsize,startarrowsize:l.startarrowsize,arrowwidth:l.arrowwidth,standoff:l.standoff,startstandoff:l.startstandoff,hovertext:l.hovertext,hoverlabel:l.hoverlabel,captureevents:l.captureevents}),"calc","from-root")},5485:function(o,a,n){var l=n(71828),f=n(89298);function s(c,d){var h=d.fullSceneLayout.domain,p=d.fullLayout._size,m={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};c._xa={},l.extendFlat(c._xa,m),f.setConvert(c._xa),c._xa._offset=p.l+h.x[0]*p.w,c._xa.l2p=function(){return .5*(1+c._pdata[0]/c._pdata[3])*p.w*(h.x[1]-h.x[0])},c._ya={},l.extendFlat(c._ya,m),f.setConvert(c._ya),c._ya._offset=p.t+(1-h.y[1])*p.h,c._ya.l2p=function(){return .5*(1-c._pdata[1]/c._pdata[3])*p.h*(h.y[1]-h.y[0])}}o.exports=function(c){for(var d=c.fullSceneLayout.annotations,h=0;h<d.length;h++)s(d[h],c);c.fullLayout._infolayer.selectAll(".annotation-"+c.id).remove()}},20226:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(25625),d=n(26997);function h(p,m,y,v){function g(x,_){return l.coerce(p,m,d,x,_)}function b(x){var _=x+"axis",w={_fullLayout:{}};return w._fullLayout[_]=y[_],f.coercePosition(m,w,g,x,x,.5)}g("visible")&&(c(p,m,v.fullLayout,g),b("x"),b("y"),b("z"),l.noneOrAll(p,m,["x","y","z"]),m.xref="x",m.yref="y",m.zref="z",g("xanchor"),g("yanchor"),g("xshift"),g("yshift"),m.showarrow&&(m.axref="pixel",m.ayref="pixel",g("ax",-10),g("ay",-30),l.noneOrAll(p,m,["ax","ay"])))}o.exports=function(p,m,y){s(p,m,{name:"annotations",handleItemDefaults:h,fullLayout:y.fullLayout})}},82188:function(o,a,n){var l=n(92605).drawRaw,f=n(63538),s=["x","y","z"];o.exports=function(c){for(var d=c.fullSceneLayout,h=c.dataScale,p=d.annotations,m=0;m<p.length;m++){for(var y=p[m],v=!1,g=0;g<3;g++){var b=s[g],x=y[b],_=d[b+"axis"].r2fraction(x);if(_<0||_>1){v=!0;break}}v?c.fullLayout._infolayer.select(".annotation-"+c.id+'[data-index="'+m+'"]').remove():(y._pdata=f(c.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(c.graphDiv,y,m,c.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,c){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m<p.length;m++){var y=p[m];h.test(y)&&(s[y].annotations||[]).length&&(f.pushUnique(c._basePlotModules,d),f.pushUnique(c._subplots.gl3d,y))}},convert:n(5485),draw:n(82188)}},7561:function(o,a,n){o.exports=n(63489),n(94338),n(3961),n(38751),n(86825),n(37715),n(99384),n(43805),n(88874),n(83290),n(29108),n(55422),n(94320),n(31320),n(51367),n(21457)},72201:function(o,a,n){var l=n(7561),f=n(71828),s=n(50606),c=s.EPOCHJD,d=s.ONEDAY,h={valType:"enumerated",values:f.sortObjectKeys(l.calendars),editType:"calc",dflt:"gregorian"},p=function(M,S,C,P){var D={};return D[C]=h,f.coerce(M,S,D,C,P)},m="##",y={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:m,w:m,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},v={};function g(M){var S=v[M];return S||(v[M]=l.instance(M))}function b(M){return f.extendFlat({},h,{description:M})}function x(M){return"Sets the calendar system to use with `"+M+"` date data."}var _={xcalendar:b(x("x"))},w=f.extendFlat({},_,{ycalendar:b(x("y"))}),k=f.extendFlat({},w,{zcalendar:b(x("z"))}),T=b(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));o.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:k,surface:k,mesh3d:k,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:b(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:T},yaxis:{calendar:T},scene:{xaxis:{calendar:T},yaxis:{calendar:T},zaxis:{calendar:T}},polar:{radialaxis:{calendar:T}}},transforms:{filter:{valuecalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:h,handleDefaults:p,handleTraceDefaults:function(M,S,C,P){for(var D=0;D<C.length;D++)p(M,S,C[D]+"calendar",P.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:g,worldCalFmt:function(M,S,C){for(var P,D,O,R,F,A=Math.floor((S+.05)/d)+c,z=g(C).fromJD(A),B=0;(B=M.indexOf("%",B))!==-1;)(P=M.charAt(B+1))==="0"||P==="-"||P==="_"?(O=3,D=M.charAt(B+2),P==="_"&&(P="-")):(D=P,P="0",O=2),(R=y[D])?(F=R===m?m:z.formatDate(R[P]),M=M.substr(0,B)+F+M.substr(B+O),B+=F.length):B+=O;return M}}},22399:function(o,a){a.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],a.defaultLine="#444",a.lightLine="#eee",a.background="#fff",a.borderLine="#BEC8D9",a.lightFraction=90.9090909090909},7901:function(o,a,n){var l=n(84267),f=n(92770),s=n(73627).isTypedArray,c=o.exports={},d=n(22399);c.defaults=d.defaults;var h=c.defaultLine=d.defaultLine;c.lightLine=d.lightLine;var p=c.background=d.background;function m(y){if(f(y)||typeof y!="string")return y;var v=y.trim();if(v.substr(0,3)!=="rgb")return y;var g=v.match(/^rgba?\s*\(([^()]*)\)$/);if(!g)return y;var b=g[1].trim().split(/\s*[\s,]\s*/),x=v.charAt(3)==="a"&&b.length===4;if(!x&&b.length!==3)return y;for(var _=0;_<b.length;_++){if(!b[_].length||(b[_]=Number(b[_]),!(b[_]>=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}c.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},c.rgb=function(y){return c.tinyRGB(l(y))},c.opacity=function(y){return y?l(y).getAlpha():0},c.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},c.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},c.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(c.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},c.stroke=function(y,v){var g=l(v);y.style({stroke:c.tinyRGB(g),"stroke-opacity":g.getAlpha()})},c.fill=function(y,v){var g=l(v);y.style({fill:c.tinyRGB(g),"fill-opacity":g.getAlpha()})},c.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g<x.length;g++)x[g]=m(x[g]);else y[b]=m(x);else if(b.substr(b.length-10)==="colorscale"&&Array.isArray(x))for(g=0;g<x.length;g++)Array.isArray(x[g])&&(x[g][1]=m(x[g][1]));else if(Array.isArray(x)){var w=x[0];if(!Array.isArray(w)&&w&&typeof w=="object")for(g=0;g<x.length;g++)c.clean(x[g])}else x&&typeof x=="object"&&!s(x)&&c.clean(x)}}},63583:function(o,a,n){var l=n(13838),f=n(41940),s=n(1426).extendFlat,c=n(30962).overrideAll;o.exports=c({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:l.linecolor,outlinewidth:l.linewidth,bordercolor:l.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:s({},l.ticks,{dflt:""}),ticklabeloverflow:s({},l.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:f({}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,title:{text:{valType:"string"},font:f({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:f({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},30939:function(o){o.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},62499:function(o,a,n){var l=n(71828),f=n(44467),s=n(26218),c=n(38701),d=n(96115),h=n(89426),p=n(63583);o.exports=function(m,y,v){var g=f.newContainer(y,"colorbar"),b=m.colorbar||{};function x(N,E){return l.coerce(b,g,p,N,E)}var _=v.margin||{t:0,b:0,l:0,r:0},w=v.width-_.l-_.r,k=v.height-_.t-_.b,T=x("orientation")==="v",M=x("thicknessmode");x("thickness",M==="fraction"?30/(T?w:k):30);var S=x("lenmode");x("len",S==="fraction"?1:T?k:w);var C,P,D,O=x("yref")==="paper",R=x("xref")==="paper",F="left";T?(D="middle",F=R?"left":"right",C=R?1.02:1,P=.5):(D=O?"bottom":"top",F="center",C=.5,P=O?1.02:1),l.coerce(b,g,{x:{valType:"number",min:R?-2:0,max:R?3:1,dflt:C}},"x"),l.coerce(b,g,{y:{valType:"number",min:O?-2:0,max:O?3:1,dflt:P}},"y"),x("xanchor",F),x("xpad"),x("yanchor",D),x("ypad"),l.noneOrAll(b,g,["x","y"]),x("outlinecolor"),x("outlinewidth"),x("bordercolor"),x("borderwidth"),x("bgcolor");var A=l.coerce(b,g,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");x("ticklabeloverflow",A.indexOf("inside")!==-1?"hide past domain":"hide past div"),s(b,g,x,"linear");var z=v.font,B={outerTicks:!1,font:z};A.indexOf("inside")!==-1&&(B.bgColor="black"),h(b,g,x,"linear",B),d(b,g,x,"linear",B),c(b,g,x,"linear",B),x("title.text",v._dfltTitle.colorbar);var $=g.showticklabels?g.tickfont:z,j=l.extendFlat({},$,{color:z.color,size:l.bigFont($.size)});l.coerceFont(x,"title.font",j),x("title.side",T?"top":"right")}},98981:function(o,a,n){var l=n(39898),f=n(84267),s=n(74875),c=n(73972),d=n(89298),h=n(28569),p=n(71828),m=p.strTranslate,y=n(1426).extendFlat,v=n(6964),g=n(91424),b=n(7901),x=n(92998),_=n(63893),w=n(52075).flipScale,k=n(71453),T=n(52830),M=n(13838),S=n(18783),C=S.LINE_SPACING,P=S.FROM_TL,D=S.FROM_BR,O=n(30939).cn;o.exports={draw:function(R){var F=R._fullLayout._infolayer.selectAll("g."+O.colorbar).data(function(A){var z,B,$,j,N=A._fullLayout,E=A.calcdata,W=[];function G(X){return y(X,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function L(){typeof j.calc=="function"?j.calc(A,$,z):(z._fillgradient=B.reversescale?w(B.colorscale):B.colorscale,z._zrange=[B[j.min],B[j.max]])}for(var q=0;q<E.length;q++){var H=E[q];if(($=H[0].trace)._module){var V=$._module.colorbar;if($.visible===!0&&V)for(var te=Array.isArray(V),ee=te?V:[V],U=0;U<ee.length;U++){var Q=(j=ee[U]).container;(B=Q?$[Q]:$)&&B.showscale&&((z=G(B.colorbar))._id="cb"+$.uid+(te&&Q?"-"+Q:""),z._traceIndex=$.index,z._propPrefix=(Q?Q+".":"")+"colorbar.",z._meta=$._meta,L(),W.push(z))}}}for(var Y in N._colorAxes)if((B=N[Y]).showscale){var Z=N._colorAxes[Y];(z=G(B.colorbar))._id="cb"+Y,z._propPrefix=Y+".colorbar.",z._meta=N._meta,j={min:"cmin",max:"cmax"},Z[0]!=="heatmap"&&($=Z[1],j.calc=$._module.colorbar.calc),L(),W.push(z)}return W}(R),function(A){return A._id});F.enter().append("g").attr("class",function(A){return A._id}).classed(O.colorbar,!0),F.each(function(A){var z=l.select(this);p.ensureSingle(z,"rect",O.cbbg),p.ensureSingle(z,"g",O.cbfills),p.ensureSingle(z,"g",O.cblines),p.ensureSingle(z,"g",O.cbaxis,function($){$.classed(O.crisp,!0)}),p.ensureSingle(z,"g",O.cbtitleunshift,function($){$.append("g").classed(O.cbtitle,!0)}),p.ensureSingle(z,"rect",O.cboutline);var B=function($,j,N){var E=j.orientation==="v",W=j.len,G=j.lenmode,L=j.thickness,q=j.thicknessmode,H=j.outlinewidth,V=j.borderwidth,te=j.bgcolor,ee=j.xanchor,U=j.yanchor,Q=j.xpad,Y=j.ypad,Z=j.x,X=E?j.y:1-j.y,re=j.yref==="paper",ie=j.xref==="paper",le=N._fullLayout,se=le._size,pe=j._fillcolor,Te=j._line,Se=j.title,Oe=Se.side,Me=j._zrange||l.extent((typeof pe=="function"?pe:Te.color).domain()),ce=typeof Te.color=="function"?Te.color:function(){return Te.color},ye=typeof pe=="function"?pe:function(){return pe},J=j._levels,ne=function(It,Mt,zt){var wt,ve,_e=Mt._levels,Ve=[],We=[],Ze=_e.end+_e.size/100,Ge=_e.size,Ke=1.001*zt[0]-.001*zt[1],nt=1.001*zt[1]-.001*zt[0];for(ve=0;ve<1e5&&(wt=_e.start+ve*Ge,!(Ge>0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt<nt&&Ve.push(wt);if(Mt._fillgradient)We=[0];else if(typeof Mt._fillcolor=="function"){var st=Mt._filllevels;if(st)for(Ze=st.end+st.size/100,Ge=st.size,ve=0;ve<1e5&&(wt=st.start+ve*Ge,!(Ge>0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt<zt[1]&&We.push(wt);else(We=Ve.map(function(mt){return mt-_e.size/2})).push(We[We.length-1]+_e.size)}else Mt._fillcolor&&typeof Mt._fillcolor=="string"&&(We=[0]);return _e.size<0&&(Ve.reverse(),We.reverse()),{line:Ve,fill:We}}(0,j,Me),de=ne.fill,xe=ne.line,ue=Math.round(L*(q==="fraction"?E?se.w:se.h:1)),ge=ue/(E?se.w:se.h),be=Math.round(W*(G==="fraction"?E?se.h:se.w:1)),we=be/(E?se.h:se.w),ke=ie?se.w:N._fullLayout.width,Ae=re?se.h:N._fullLayout.height,Ee=Math.round(E?Z*ke+Q:X*Ae+Y),De={center:.5,right:1}[ee]||0,Re={top:1,middle:.5}[U]||0,Ie=E?Z-De*ge:X-Re*ge,Be=E?X-Re*we:Z-De*we,Ue=Math.round(E?Ae*(1-Be):ke*Be);j._lenFrac=we,j._thickFrac=ge,j._uFrac=Ie,j._vFrac=Be;var qe=j._axis=function(It,Mt,zt){var wt=It._fullLayout,ve=Mt.orientation==="v",_e={type:"linear",range:zt,tickmode:Mt.tickmode,nticks:Mt.nticks,tick0:Mt.tick0,dtick:Mt.dtick,tickvals:Mt.tickvals,ticktext:Mt.ticktext,ticks:Mt.ticks,ticklen:Mt.ticklen,tickwidth:Mt.tickwidth,tickcolor:Mt.tickcolor,showticklabels:Mt.showticklabels,labelalias:Mt.labelalias,ticklabelposition:Mt.ticklabelposition,ticklabeloverflow:Mt.ticklabeloverflow,ticklabelstep:Mt.ticklabelstep,tickfont:Mt.tickfont,tickangle:Mt.tickangle,tickformat:Mt.tickformat,exponentformat:Mt.exponentformat,minexponent:Mt.minexponent,separatethousands:Mt.separatethousands,showexponent:Mt.showexponent,showtickprefix:Mt.showtickprefix,tickprefix:Mt.tickprefix,showticksuffix:Mt.showticksuffix,ticksuffix:Mt.ticksuffix,title:Mt.title,showline:!0,anchor:"free",side:ve?"right":"bottom",position:1},Ve=ve?"y":"x",We={type:"linear",_id:Ve+Mt._id},Ze={letter:Ve,font:wt.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:wt.calendar};function Ge(Ke,nt){return p.coerce(_e,We,M,Ke,nt)}return k(_e,We,Ge,Ze,wt),T(_e,We,Ge,Ze),We}(N,j,Me);qe.position=ge+(E?Z+Q/se.w:X+Y/se.h);var Ye=["top","bottom"].indexOf(Oe)!==-1;if(E&&Ye&&(qe.title.side=Oe,qe.titlex=Z+Q/se.w,qe.titley=Be+(Se.side==="top"?we-Y/se.h:Y/se.h)),E||Ye||(qe.title.side=Oe,qe.titley=X+Y/se.h,qe.titlex=Be+Q/se.w),Te.color&&j.tickmode==="auto"){qe.tickmode="linear",qe.tick0=J.start;var at=J.size,lt=p.constrain(be/50,4,15)+1,ct=(Me[1]-Me[0])/((j.nticks||lt)*at);if(ct>1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("<br>").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?c.call("_guiRestyle",N,H,j._traceIndex):c.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),c=n(63282).scales;function d(h){return"`"+h+"`"}s(c),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?c[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(c,d,h){var p,m=c._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k<k-_&&(w=k+(k-_))),_===w&&(_-=.5,w+=.5),b._sync("min",_),b._sync("max",w),b.autocolorscale&&(p=_*w<0?m.colorscale.diverging:_>=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(c,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m<c.length;m++){var y=c[m],v=y._module.colorbar;if(v)if(Array.isArray(v))for(var g=0;g<v.length;g++)p(y,v[g]);else p(y,v);f(y,"marker.line")&&p(y,{container:"marker.line",min:"cmin",max:"cmax"})}for(var b in d._colorAxes)p(d[b],{min:"cmin",max:"cmax"})}},1586:function(o,a,n){var l=n(92770),f=n(71828),s=n(76228),c=n(62499),d=n(63282).isValid,h=n(73972).traceIs;function p(m,y){var v=y.slice(0,y.length-1);return y?f.nestedProperty(m,v).get()||{}:m}o.exports=function m(y,v,g,b,x){var _=x.prefix,w=x.cLetter,k="_module"in v,T=p(y,_),M=p(v,_),S=p(v._template||{},_)||{},C=function(){return delete y.coloraxis,delete v.coloraxis,m(y,v,g,b,x)};if(k){var P=g._colorAxes||{},D=b(_+"coloraxis");if(D){var O=h(v,"contour")&&f.nestedProperty(v,"contours.coloring").get()||"heatmap",R=P[D];return void(R?(R[2].push(C),R[0]!==O&&(R[0]=!1,f.warn(["Ignoring coloraxis:",D,"setting","as it is linked to incompatible colorscales."].join(" ")))):P[D]=[O,v,[C]])}}var F=T[w+"min"],A=T[w+"max"],z=l(F)&&l(A)&&F<A;b(_+w+"auto",!z)?b(_+w+"mid"):(b(_+w+"min"),b(_+w+"max"));var B,$,j=T.colorscale,N=S.colorscale;j!==void 0&&(B=!d(j)),N!==void 0&&(B=!d(N)),b(_+"autocolorscale",B),b(_+"colorscale"),b(_+"reversescale"),_!=="marker.line."&&(_&&k&&($=s(T)),b(_+"showscale",$)&&(_&&S&&(M._template=S),c(T,M,g)))}},52075:function(o,a,n){var l=n(39898),f=n(84267),s=n(92770),c=n(71828),d=n(7901),h=n(63282).isValid,p=["showscale","autocolorscale","colorscale","reversescale","colorbar"],m=["min","max","mid","auto"];function y(_){var w,k,T,M=_._colorAx,S=M||_,C={};for(k=0;k<p.length;k++)C[T=p[k]]=S[T];if(M)for(w="c",k=0;k<m.length;k++)C[T=m[k]]=S["c"+T];else{var P;for(k=0;k<m.length;k++)((P="c"+(T=m[k]))in S||(P="z"+T)in S)&&(C[T]=S[P]);w=P.charAt(0)}return C._sync=function(D,O){var R=m.indexOf(D)!==-1?w+D:D;S[R]=S["_"+R]=O},C}function v(_){for(var w=y(_),k=w.min,T=w.max,M=w.reversescale?g(w.colorscale):w.colorscale,S=M.length,C=new Array(S),P=new Array(S),D=0;D<S;D++){var O=M[D];C[D]=k+O[0]*(T-k),P[D]=O[1]}return{domain:C,range:P}}function g(_){for(var w=_.length,k=new Array(w),T=w-1,M=0;T>=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C<M;C++){var P=f(T[C]).toRgb();S[C]=[P.r,P.g,P.b,P.a]}var D,O=l.scale.linear().domain(k).range(S).clamp(!0),R=w.noNumericCheck,F=w.returnArray;return(D=R&&F?O:R?function(A){return x(O(A))}:F?function(A){return s(A)?O(A):f(A).isValid()?A:d.defaultLine}:function(A){return s(A)?x(O(A)):f(A).isValid()?A:d.defaultLine}).domain=O.domain,D.range=function(){return T},D}function x(_){var w={r:_[0],g:_[1],b:_[2],a:_[3]};return f(w).toRgbString()}o.exports={hasColorscale:function(_,w,k){var T=w?c.nestedProperty(_,w).get()||{}:_,M=T[k||"color"],S=!1;if(c.isArrayOrTypedArray(M)){for(var C=0;C<M.length;C++)if(s(M[C])){S=!0;break}}return c.isPlainObject(T)&&(S||T.showscale===!0||s(T.cmin)&&s(T.cmax)||h(T.colorscale)||c.isPlainObject(T.colorbar))},extractOpts:y,extractScale:v,flipScale:g,makeColorScaleFunc:b,makeColorScaleFuncFromTrace:function(_,w){return b(v(_),w)}}},21081:function(o,a,n){var l=n(63282),f=n(52075);o.exports={moduleType:"component",name:"colorscale",attributes:n(50693),layoutAttributes:n(72673),supplyLayoutDefaults:n(30959),handleDefaults:n(1586),crossTraceDefaults:n(33046),calc:n(78803),scales:l.scales,defaultScale:l.defaultScale,getScale:l.get,isValidScale:l.isValid,hasColorscale:f.hasColorscale,extractOpts:f.extractOpts,extractScale:f.extractScale,flipScale:f.flipScale,makeColorScaleFunc:f.makeColorScaleFunc,makeColorScaleFuncFromTrace:f.makeColorScaleFuncFromTrace}},72673:function(o,a,n){var l=n(1426).extendFlat,f=n(50693),s=n(63282).scales;o.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:s.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:s.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:s.RdBu,editType:"calc"}},coloraxis:l({_isSubplotObj:!0,editType:"calc"},f("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},30959:function(o,a,n){var l=n(71828),f=n(44467),s=n(72673),c=n(1586);o.exports=function(d,h){function p(w,k){return l.coerce(d,h,s,w,k)}p("colorscale.sequential"),p("colorscale.sequentialminus"),p("colorscale.diverging");var m,y,v=h._colorAxes;function g(w,k){return l.coerce(m,y,s.coloraxis,w,k)}for(var b in v){var x=v[b];if(x[0])m=d[b]||{},(y=f.newContainer(h,b,"coloraxis"))._name=b,c(m,y,h,g,{prefix:"",cLetter:"c"});else{for(var _=0;_<x[2].length;_++)x[2][_]();delete h._colorAxes[b]}}}},63282:function(o,a,n){var l=n(84267),f={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},s=f.RdBu;function c(d){var h=0;if(!Array.isArray(d)||d.length<2||!d[0]||!d[d.length-1]||+d[0][0]!=0||+d[d.length-1][0]!=1)return!1;for(var p=0;p<d.length;p++){var m=d[p];if(m.length!==2||+m[0]<h||!l(m[1]).isValid())return!1;h=+m[0]}return!0}o.exports={scales:f,defaultScale:s,get:function(d,h){if(h||(h=s),!d)return h;function p(){try{d=f[d]||JSON.parse(d)}catch{d=h}}return typeof d=="string"&&(p(),typeof d=="string"&&p()),c(d)?d:h},isValid:function(d){return f[d]!==void 0||c(d)}}},92807:function(o){o.exports=function(a,n,l,f,s){var c=(a-l)/(f-l),d=c+n/(f-l),h=(c+d)/2;return s==="left"||s==="bottom"?c:s==="center"||s==="middle"?h:s==="right"||s==="top"?d:c<.6666666666666666-h?c:d>1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,c,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),c=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*c),0,2),f[c][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),c=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTime<P?C+=1:(C=1,S._mouseDownTime=x),v.prepFn&&v.prepFn(z,g,b),f&&!M?(w=m()).style.cursor=window.getComputedStyle(D).cursor:f||(w=document,_=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(D).cursor),document.addEventListener("mouseup",A),document.addEventListener("touchend",A),v.dragmode!==!1&&(z.preventDefault(),document.addEventListener("mousemove",F),document.addEventListener("touchmove",F,{passive:!1}))}function F(z){z.preventDefault();var B=y(z),$=v.minDrag||d.MINDRAG,j=O(B[0]-g,B[1]-b,$),N=j[0],E=j[1];(N||E)&&(S._dragged=!0,h.unhover(S,z)),S._dragged&&v.moveFn&&!M&&(S._dragdata={element:D,dx:N,dy:E},v.moveFn(N,E))}function A(z){if(delete S._dragdata,v.dragmode!==!1&&(z.preventDefault(),document.removeEventListener("mousemove",F),document.removeEventListener("touchmove",F)),document.removeEventListener("mouseup",A),document.removeEventListener("touchend",A),f?c(w):_&&(w.documentElement.style.cursor=_,_=null),S._dragging){if(S._dragging=!1,new Date().getTime()-S._mouseDownTime>P&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,c=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+c.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(c(de)&&c(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&c(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(c(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we<ue;we++)ge.reversed?be[ue-1-we]=[R(100*(1-de[we][0])),de[we][1]]:be[we]=[R(100*de[we][0]),de[we][1]];var ke=ye._fullLayout,Ae="g"+ke._uid+"-"+J,Ee=ke._defs.select(".gradients").selectAll("#"+Ae).data([ne+be.join(";")],f.identity);Ee.exit().remove(),Ee.enter().append(ge.node).each(function(){var De=l.select(this);ge.attrs&&De.attr(ge.attrs),De.attr("id",Ae);var Re=De.selectAll("stop").data(be);Re.exit().remove(),Re.enter().append("stop"),Re.each(function(Ie){var Be=d(Ie[1]);l.select(this).attr({offset:Ie[0]+"%","stop-color":p.tinyRGB(Be),"stop-opacity":Be.getAlpha()})})}),ce.style(xe,ee(Ae,ye)).style(xe+"-opacity",null),ce.classed("gradient_filled",!0)},T.pattern=function(ce,ye,J,ne,de,xe,ue,ge,be,we,ke,Ae){var Ee=ye==="legend";ge&&(be==="overlay"?(we=ge,ke=p.contrast(we)):(we=void 0,ke=ge));var De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct=J._fullLayout,bt="p"+ct._uid+"-"+ne,ze={},Ne=d(ke),Qe=p.tinyRGB(Ne),it=Ae*Ne.getAlpha();switch(de){case"/":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),qe="path",ze={d:Ie="M-"+De/4+","+Re/4+"l"+De/2+",-"+Re/2+"M0,"+Re+"L"+De+",0M"+De/4*3+","+Re/4*5+"l"+De/2+",-"+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"\\":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),qe="path",ze={d:Ie="M"+De/4*3+",-"+Re/4+"l"+De/2+","+Re/2+"M0,0L"+De+","+Re+"M-"+De/4+","+Re/4*3+"l"+De/2+","+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"x":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),Ie="M-"+De/4+","+Re/4+"l"+De/2+",-"+Re/2+"M0,"+Re+"L"+De+",0M"+De/4*3+","+Re/4*5+"l"+De/2+",-"+Re/2+"M"+De/4*3+",-"+Re/4+"l"+De/2+","+Re/2+"M0,0L"+De+","+Re+"M-"+De/4+","+Re/4*3+"l"+De/2+","+Re/2,Be=xe-xe*Math.sqrt(1-ue),qe="path",ze={d:Ie,opacity:it,stroke:Qe,"stroke-width":Be+"px"};break;case"|":qe="path",qe="path",ze={d:Ie="M"+(De=xe)/2+",0L"+De/2+","+(Re=xe),opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"-":qe="path",qe="path",ze={d:Ie="M0,"+(Re=xe)/2+"L"+(De=xe)+","+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"+":qe="path",Ie="M"+(De=xe)/2+",0L"+De/2+","+(Re=xe)+"M0,"+Re/2+"L"+De+","+Re/2,Be=xe-xe*Math.sqrt(1-ue),qe="path",ze={d:Ie,opacity:it,stroke:Qe,"stroke-width":Be+"px"};break;case".":De=xe,Re=xe,ue<Math.PI/4?Ue=Math.sqrt(ue*xe*xe/Math.PI):(Ye=ue,at=Math.PI/4,Ue=(lt=xe/2)+(xe/Math.sqrt(2)-lt)*(Ye-at)/(1-at)),qe="circle",ze={cx:De/2,cy:Re/2,r:Ue,opacity:it,fill:Qe}}var kt=[de||"noSh",we||"noBg",ke||"noFg",xe,ue].join(";"),Je=ct._defs.select(".patterns").selectAll("#"+bt).data([kt],f.identity);Je.exit().remove(),Je.enter().append("pattern").each(function(){var ut=l.select(this);if(ut.attr({id:bt,width:De+"px",height:Re+"px",patternUnits:"userSpaceOnUse",patternTransform:Ee?"scale(0.8)":""}),we){var pt=d(we),It=p.tinyRGB(pt),Mt=pt.getAlpha(),zt=ut.selectAll("rect").data([0]);zt.exit().remove(),zt.enter().append("rect").attr({width:De+"px",height:Re+"px",fill:It,"fill-opacity":Mt})}var wt=ut.selectAll(qe).data([0]);wt.exit().remove(),wt.enter().append(qe).attr(ze)}),ce.style("fill",ee(bt,J)).style("fill-opacity",null),ce.classed("pattern_filled",!0)},T.initGradients=function(ce){var ye=ce._fullLayout;f.ensureSingle(ye._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),l.select(ce).selectAll(".gradient_filled").classed("gradient_filled",!1)},T.initPatterns=function(ce){var ye=ce._fullLayout;f.ensureSingle(ye._defs,"g","patterns").selectAll("pattern").remove(),l.select(ce).selectAll(".pattern_filled").classed("pattern_filled",!1)},T.getPatternAttr=function(ce,ye,J){return ce&&f.isArrayOrTypedArray(ce)?ye<ce.length?ce[ye]:J:ce},T.pointStyle=function(ce,ye,J,ne){if(ce.size()){var de=T.makePointStyleFns(ye);ce.each(function(xe){T.singlePointStyle(xe,l.select(this),ye,de,J,ne)})}},T.singlePointStyle=function(ce,ye,J,ne,de,xe){var ue=J.marker,ge=ue.line;if(xe&&xe.i>=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge<de.length;ge++)de[ge](ue,xe)})}},T.tryColorscale=function(ce,ye){var J=ye?f.nestedProperty(ce,ye).get():ce;if(J){var ne=J.color;if((J.colorscale||J._colorAx)&&f.isArrayOrTypedArray(ne))return m.makeColorScaleFuncFromTrace(J)}return f.identity};var A,z,B={start:1,end:-1,middle:0,bottom:1,top:-1};function $(ce,ye,J,ne,de){var xe=l.select(ce.node().parentNode),ue=ye.indexOf("top")!==-1?"top":ye.indexOf("bottom")!==-1?"bottom":"middle",ge=ye.indexOf("left")!==-1?"end":ye.indexOf("right")!==-1?"start":"middle",be=ne?ne/.8+1:0,we=(v.lineCount(ce)-1)*b+1,ke=B[ge]*be,Ae=.75*J+B[ue]*be+(B[ue]-1)*we*J/2;ce.attr("text-anchor",ge),de||xe.attr("transform",y(ke,Ae))}function j(ce,ye){var J=ce.ts||ye.textfont.size;return c(J)&&J>0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J<ce.length-1;J++)de.push(G(ce[J-1],ce[J],ce[J+1],ye));for(ne+="Q"+de[0][0]+" "+ce[1],J=2;J<ce.length-1;J++)ne+="C"+de[J-2][1]+" "+de[J-1][0]+" "+ce[J];return ne+"Q"+de[ce.length-3][1]+" "+ce[ce.length-1]},T.smoothclosed=function(ce,ye){if(ce.length<3)return"M"+ce.join("L")+"Z";var J,ne="M"+ce[0],de=ce.length-1,xe=[G(ce[de],ce[0],ce[1],ye)];for(J=1;J<de;J++)xe.push(G(ce[J-1],ce[J],ce[J+1],ye));for(xe.push(G(ce[de-1],ce[de],ce[0],ye)),J=1;J<=de;J++)ne+="C"+xe[J-1][1]+" "+xe[J][0]+" "+ce[J];return ne+"C"+xe[de][1]+" "+xe[0][0]+" "+ce[0]+"Z"};var L={hv:function(ce,ye,J){return"H"+E(ye[0])+"V"+N(ye,1,J)},vh:function(ce,ye,J){return"V"+W(ye[1])+"H"+N(ye,0,J)},hvh:function(ce,ye,J){return"H"+E((ce[0]+ye[0])/2)+"V"+W(ye[1])+"H"+N(ye,0,J)},vhv:function(ce,ye,J){return"V"+W((ce[1]+ye[1])/2)+"H"+E(ye[0])+"V"+N(ye,1,J)}},q=function(ce,ye,J){return"L"+N(ye,0,J)+","+N(ye,1,J)};function H(ce,ye){var J=ce.backoff,ne=ce.trace,de=ce.d,xe=ce.i;if(J&&ne&&ne.marker&&ne.marker.angle%360==0&&ne.line&&ne.line.shape!=="spline"){var ue=f.isArrayOrTypedArray(J),ge=ce,be=ye?ye[0]:A||0,we=ye?ye[1]:z||0,ke=ge[0],Ae=ge[1],Ee=ke-be,De=Ae-we,Re=Math.atan2(De,Ee),Ie=ue?J[xe]:J;if(Ie==="auto"){var Be=ge.i;ne.type==="scatter"&&Be--;var Ue=ge.marker,qe=Ue.symbol;f.isArrayOrTypedArray(qe)&&(qe=qe[Be]);var Ye=Ue.size;f.isArrayOrTypedArray(Ye)&&(Ye=Ye[Be]),Ie=Ue?T.symbolBackOffs[T.symbolNumber(qe)]*Ye:0,Ie+=T.getMarkerStandoff(de[Be],ne)||0}var at=ke-Ie*Math.cos(Re),lt=Ae-Ie*Math.sin(Re);(at<=ke&&at>=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe<de;xe++)ne+=ye(J[xe-1],J[xe],xe===de-1);return ne}},T.applyBackoff=H,T.makeTester=function(){var ce=f.ensureSingleById(l.select("body"),"svg","js-plotly-tester",function(J){J.attr(g.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),ye=f.ensureSingle(ce,"path","js-reference-point",function(J){J.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});T.tester=ce,T.testref=ye},T.savedBBoxes={};var V=0;function te(ce){var ye=ce.getAttribute("data-unformatted");if(ye!==null)return ye+ce.getAttribute("data-math")+ce.getAttribute("text-anchor")+ce.getAttribute("style")}function ee(ce,ye){if(!ce)return null;var J=ye._context,ne=J._exportedPlot?"":J._baseUrl||"";return ne?"url('"+ne+"#"+ce+"')":"url(#"+ce+")"}T.bBox=function(ce,ye,J){var ne,de,xe;if(J||(J=te(ce)),J){if(ne=T.savedBBoxes[J])return f.extendFlat({},ne)}else if(ce.childNodes.length===1){var ue=ce.childNodes[0];if(J=te(ue)){var ge=+ue.getAttribute("x")||0,be=+ue.getAttribute("y")||0,we=ue.getAttribute("transform");if(!we){var ke=T.bBox(ue,!1,J);return ge&&(ke.left+=ge,ke.right+=ge),be&&(ke.top+=be,ke.bottom+=be),ke}if(J+="~"+ge+"~"+be+"~"+we,ne=T.savedBBoxes[J])return f.extendFlat({},ne)}}ye?de=ce:(xe=T.tester.node(),de=ce.cloneNode(!0),xe.appendChild(de)),l.select(de).attr("transform",null).call(v.positionText,0,0);var Ae=de.getBoundingClientRect(),Ee=T.testref.node().getBoundingClientRect();ye||xe.removeChild(de);var De={height:Ae.height,width:Ae.width,left:Ae.left-Ee.left,top:Ae.top-Ee.top,right:Ae.right-Ee.left,bottom:Ae.bottom-Ee.top};return V>=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&c(J)&&c(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,c,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&c===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,c=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R<D.length;R++){var F=D[R],A=F[0],z=C,B=P;if(A==="M"||A==="L")C=+F[1],P=+F[2];else if(A==="m"||A==="l")C+=+F[1],P+=+F[2];else if(A==="H")C=+F[1];else if(A==="h")C+=+F[1];else if(A==="V")P=+F[1];else if(A==="v")P+=+F[1];else if(A==="A"){C=+F[1],P=+F[2];var $=M(S,[+F[6],+F[7]]);F[6]=$[0],F[7]=$[1],F[3]=+F[3]+w}A!=="H"&&A!=="V"||(A="L"),A!=="h"&&A!=="v"||(A="l"),A!=="m"&&A!=="l"||(C-=z,P-=B);var j=M(S,[C,P]);A!=="H"&&A!=="V"||(A="L"),A!=="M"&&A!=="L"&&A!=="m"&&A!=="l"||(F[1]=j[0],F[2]=j[1]),F[0]=A,O+=F[0]+F.slice(1).join(",")}return f=O,O}o.exports={circle:{n:0,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S="M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z";return T?_(k,T,S):S}},square:{n:1,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")}},diamond:{n:2,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"Z")}},cross:{n:3,f:function(w,k,T){if(x(k))return p;var M=h(.4*w,2),S=h(1.2*w,2);return _(k,T,"M"+S+","+M+"H"+M+"V"+S+"H-"+M+"V"+M+"H-"+S+"V-"+M+"H-"+M+"V-"+S+"H"+M+"V-"+M+"H"+S+"Z")}},x:{n:4,f:function(w,k,T){if(x(k))return p;var M=h(.8*w/m,2),S="l"+M+","+M,C="l"+M+",-"+M,P="l-"+M+",-"+M,D="l-"+M+","+M;return _(k,T,"M0,"+M+S+C+P+C+P+D+P+D+S+D+S+"Z")}},"triangle-up":{n:5,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+M+","+h(w/2,2)+"H"+M+"L0,-"+h(w,2)+"Z")}},"triangle-down":{n:6,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+M+",-"+h(w/2,2)+"H"+M+"L0,"+h(w,2)+"Z")}},"triangle-left":{n:7,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M"+h(w/2,2)+",-"+M+"V"+M+"L-"+h(w,2)+",0Z")}},"triangle-right":{n:8,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+h(w/2,2)+",-"+M+"V"+M+"L"+h(w,2)+",0Z")}},"triangle-ne":{n:9,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M-"+S+",-"+M+"H"+M+"V"+S+"Z")}},"triangle-se":{n:10,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M"+M+",-"+S+"V"+M+"H-"+S+"Z")}},"triangle-sw":{n:11,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M"+S+","+M+"H-"+M+"V-"+S+"Z")}},"triangle-nw":{n:12,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M-"+M+","+S+"V-"+M+"H"+S+"Z")}},pentagon:{n:13,f:function(w,k,T){if(x(k))return p;var M=h(.951*w,2),S=h(.588*w,2),C=h(-w,2),P=h(-.309*w,2);return _(k,T,"M"+M+","+P+"L"+S+","+h(.809*w,2)+"H-"+S+"L-"+M+","+P+"L0,"+C+"Z")}},hexagon:{n:14,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/2,2),C=h(w*y/2,2);return _(k,T,"M"+C+",-"+S+"V"+S+"L0,"+M+"L-"+C+","+S+"V-"+S+"L0,-"+M+"Z")}},hexagon2:{n:15,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/2,2),C=h(w*y/2,2);return _(k,T,"M-"+S+","+C+"H"+S+"L"+M+",0L"+S+",-"+C+"H-"+S+"L-"+M+",0Z")}},octagon:{n:16,f:function(w,k,T){if(x(k))return p;var M=h(.924*w,2),S=h(.383*w,2);return _(k,T,"M-"+S+",-"+M+"H"+S+"L"+M+",-"+S+"V"+S+"L"+S+","+M+"H-"+S+"L-"+M+","+S+"V-"+S+"Z")}},star:{n:17,f:function(w,k,T){if(x(k))return p;var M=1.4*w,S=h(.225*M,2),C=h(.951*M,2),P=h(.363*M,2),D=h(.588*M,2),O=h(-M,2),R=h(-.309*M,2),F=h(.118*M,2),A=h(.809*M,2);return _(k,T,"M"+S+","+R+"H"+C+"L"+P+","+F+"L"+D+","+A+"L0,"+h(.382*M,2)+"L-"+D+","+A+"L-"+P+","+F+"L-"+C+","+R+"H-"+S+"L0,"+O+"Z")}},hexagram:{n:18,f:function(w,k,T){if(x(k))return p;var M=h(.66*w,2),S=h(.38*w,2),C=h(.76*w,2);return _(k,T,"M-"+C+",0l-"+S+",-"+M+"h"+C+"l"+S+",-"+M+"l"+S+","+M+"h"+C+"l-"+S+","+M+"l"+S+","+M+"h-"+C+"l-"+S+","+M+"l-"+S+",-"+M+"h-"+C+"Z")}},"star-triangle-up":{n:19,f:function(w,k,T){if(x(k))return p;var M=h(w*y*.8,2),S=h(.8*w,2),C=h(1.6*w,2),P=h(4*w,2),D="A "+P+","+P+" 0 0 1 ";return _(k,T,"M-"+M+","+S+D+M+","+S+D+"0,-"+C+D+"-"+M+","+S+"Z")}},"star-triangle-down":{n:20,f:function(w,k,T){if(x(k))return p;var M=h(w*y*.8,2),S=h(.8*w,2),C=h(1.6*w,2),P=h(4*w,2),D="A "+P+","+P+" 0 0 1 ";return _(k,T,"M"+M+",-"+S+D+"-"+M+",-"+S+D+"0,"+C+D+M+",-"+S+"Z")}},"star-square":{n:21,f:function(w,k,T){if(x(k))return p;var M=h(1.1*w,2),S=h(2*w,2),C="A "+S+","+S+" 0 0 1 ";return _(k,T,"M-"+M+",-"+M+C+"-"+M+","+M+C+M+","+M+C+M+",-"+M+C+"-"+M+",-"+M+"Z")}},"star-diamond":{n:22,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2),S=h(1.9*w,2),C="A "+S+","+S+" 0 0 1 ";return _(k,T,"M-"+M+",0"+C+"0,"+M+C+M+",0"+C+"0,-"+M+C+"-"+M+",0Z")}},"diamond-tall":{n:23,f:function(w,k,T){if(x(k))return p;var M=h(.7*w,2),S=h(1.4*w,2);return _(k,T,"M0,"+S+"L"+M+",0L0,-"+S+"L-"+M+",0Z")}},"diamond-wide":{n:24,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2),S=h(.7*w,2);return _(k,T,"M0,"+S+"L"+M+",0L0,-"+S+"L-"+M+",0Z")}},hourglass:{n:25,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"H-"+M+"L"+M+",-"+M+"H-"+M+"Z")},noDot:!0},bowtie:{n:26,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"V-"+M+"L-"+M+","+M+"V-"+M+"Z")},noDot:!0},"circle-cross":{n:27,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/m,2);return _(k,T,"M"+S+","+S+"L-"+S+",-"+S+"M"+S+",-"+S+"L-"+S+","+S+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM0,-"+M+"V"+M+"M-"+M+",0H"+M)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2),S=h(.65*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM-"+S+",-"+S+"L"+S+","+S+"M-"+S+","+S+"L"+S+",-"+S)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(.85*w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+S+","+S+"L-"+S+",-"+S+"M"+S+",-"+S+"L-"+S+","+S)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(w,k,T){if(x(k))return p;var M=h(w/2,2),S=h(w,2);return _(k,T,"M"+M+","+S+"V-"+S+"M"+(M-S)+",-"+S+"V"+S+"M"+S+","+M+"H-"+S+"M-"+S+","+(M-S)+"H"+S)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+M+","+C+"L0,0M"+M+","+C+"L0,0M0,-"+S+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+M+",-"+C+"L0,0M"+M+",-"+C+"L0,0M0,"+S+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M"+C+","+M+"L0,0M"+C+",-"+M+"L0,0M-"+S+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+C+","+M+"L0,0M-"+C+",-"+M+"L0,0M"+S+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M0,"+M+"V-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,0L-"+M+","+h(2*w,2)+"H"+M+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,0L-"+M+",-"+h(2*w,2)+"H"+M+"Z")},noDot:!0},"arrow-left":{n:47,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,0L"+M+",-"+S+"V"+S+"Z")},noDot:!0},"arrow-right":{n:48,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,0L-"+M+",-"+S+"V"+S+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M-"+M+",0H"+M+"M0,0L-"+M+","+h(2*w,2)+"H"+M+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M-"+M+",0H"+M+"M0,0L-"+M+",-"+h(2*w,2)+"H"+M+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,-"+S+"V"+S+"M0,0L"+M+",-"+S+"V"+S+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,-"+S+"V"+S+"M0,0L-"+M+",-"+S+"V"+S+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(w,k,T){if(x(k))return p;var M=v/2.5,S=2*w*g(M),C=2*w*b(M);return _(k,T,"M0,0L"+-S+","+C+"L"+S+","+C+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(w,k,T){if(x(k))return p;var M=v/4,S=2*w*g(M),C=2*w*b(M);return _(k,T,"M0,0L"+-S+","+C+"A "+2*w+","+2*w+" 0 0 1 "+S+","+C+"Z")},backoff:.4,noDot:!0}}},25673:function(o){o.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},84532:function(o,a,n){var l=n(92770),f=n(73972),s=n(89298),c=n(71828),d=n(45827);function h(p,m,y,v){var g=m["error_"+v]||{},b=[];if(g.visible&&["linear","log"].indexOf(y.type)!==-1){for(var x=d(g),_=0;_<p.length;_++){var w=p[_],k=w.i;if(k===void 0)k=_;else if(k===null)continue;var T=w[v];if(l(y.c2l(T))){var M=x(T,k);if(l(M[0])&&l(M[1])){var S=w[v+"s"]=T-M[0],C=w[v+"h"]=T+M[1];b.push(S,C)}}}var P=y._id,D=m._extremes[P],O=s.findExtremes(y,b,c.extendFlat({tozero:D.opts.tozero},{padded:!0}));D.min=D.min.concat(O.min),D.max=D.max.concat(O.max)}}o.exports=function(p){for(var m=p.calcdata,y=0;y<m.length;y++){var v=m[y],g=v[0].trace;if(g.visible===!0&&f.traceIs(g,"errorBarsOK")){var b=s.getFromId(p,g.xaxis),x=s.getFromId(p,g.yaxis);h(v,g,b,"x"),h(v,g,x,"y")}}}},45827:function(o){function a(n,l){return n==="percent"?function(f){return Math.abs(f*l/100)}:n==="constant"?function(){return Math.abs(l)}:n==="sqrt"?function(f){return Math.sqrt(Math.abs(f))}:void 0}o.exports=function(n){var l=n.type,f=n.symmetric;if(l==="data"){var s=n.array||[];if(f)return function(p,m){var y=+s[m];return[y,y]};var c=n.arrayminus||[];return function(p,m){var y=+s[m],v=+c[m];return isNaN(y)&&isNaN(v)?[NaN,NaN]:[v||0,y||0]}}var d=a(l,n.value),h=a(l,n.valueminus);return f||n.valueminus===void 0?function(p){var m=d(p);return[m,m]}:function(p){return[h(p),d(p)]}}},97587:function(o,a,n){var l=n(92770),f=n(73972),s=n(71828),c=n(44467),d=n(25673);o.exports=function(h,p,m,y){var v="error_"+y.axis,g=c.newContainer(p,v),b=h[v]||{};function x(T,M){return s.coerce(b,g,d,T,M)}if(x("visible",b.array!==void 0||b.value!==void 0||b.type==="sqrt")!==!1){var _=x("type","array"in b?"data":"percent"),w=!0;_!=="sqrt"&&(w=x("symmetric",!((_==="data"?"arrayminus":"valueminus")in b))),_==="data"?(x("array"),x("traceref"),w||(x("arrayminus"),x("tracerefminus"))):_!=="percent"&&_!=="constant"||(x("value"),w||x("valueminus"));var k="copy_"+y.inherit+"style";y.inherit&&(p["error_"+y.inherit]||{}).visible&&x(k,!(b.color||l(b.thickness)||l(b.width))),y.inherit&&g[k]||(x("color",m),x("thickness"),x("width",f.traceIs(p,"gl3d")?0:4))}}},37369:function(o,a,n){var l=n(71828),f=n(30962).overrideAll,s=n(25673),c={error_x:l.extendFlat({},s),error_y:l.extendFlat({},s)};delete c.error_x.copy_zstyle,delete c.error_y.copy_zstyle,delete c.error_y.copy_ystyle;var d={error_x:l.extendFlat({},s),error_y:l.extendFlat({},s),error_z:l.extendFlat({},s)};delete d.error_x.copy_ystyle,delete d.error_y.copy_ystyle,delete d.error_z.copy_ystyle,delete d.error_z.copy_zstyle,o.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:c,bar:c,histogram:c,scatter3d:f(d,"calc","nested"),scattergl:f(c,"calc","nested")}},supplyDefaults:n(97587),calc:n(84532),makeComputeError:n(45827),plot:n(19398),style:n(62662),hoverInfo:function(h,p,m){(p.error_y||{}).visible&&(m.yerr=h.yh-h.y,p.error_y.symmetric||(m.yerrneg=h.y-h.ys)),(p.error_x||{}).visible&&(m.xerr=h.xh-h.x,p.error_x.symmetric||(m.xerrneg=h.x-h.xs))}}},19398:function(o,a,n){var l=n(39898),f=n(92770),s=n(91424),c=n(34098);o.exports=function(d,h,p,m){var y=p.xaxis,v=p.yaxis,g=m&&m.duration>0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=c.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(c){var d=c[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(c,d,h,p){p=p||l.identity,Array.isArray(c)&&(d[0][h]=p(c))}o.exports=function(c){var d=c.calcdata,h=c._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m<d.length;m++){var y=d[m],v=y[0].trace;if(!f.traceIs(v,"pie-like")){var g=f.traceIs(v,"2dMap")?s:l.fillArray;g(v.hoverinfo,y,"hi",p(v)),v.hovertemplate&&g(v.hovertemplate,y,"ht"),v.hoverlabel&&(g(v.hoverlabel.bgcolor,y,"hbg"),g(v.hoverlabel.bordercolor,y,"hbc"),g(v.hoverlabel.font.size,y,"hts"),g(v.hoverlabel.font.color,y,"htc"),g(v.hoverlabel.font.family,y,"htf"),g(v.hoverlabel.namelength,y,"hnl"),g(v.hoverlabel.align,y,"hta"))}}}},75914:function(o,a,n){var l=n(73972),f=n(88335).hover;o.exports=function(s,c,d){var h=l.getComponentMethod("annotations","onClick")(s,s._hoverdata);function p(){s.emit("plotly_click",{points:s._hoverdata,event:c})}d!==void 0&&f(s,c,d,!0),s._hoverdata&&c&&c.target&&(h&&h.then?h.then(p):p(),c.stopImmediatePropagation&&c.stopImmediatePropagation())}},26675:function(o){o.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},54268:function(o,a,n){var l=n(71828),f=n(77914),s=n(38048);o.exports=function(c,d,h,p){var m=l.extendFlat({},p.hoverlabel);d.hovertemplate&&(m.namelength=-1),s(c,d,function(y,v){return l.coerce(c,d,f,y,v)},m)}},23469:function(o,a,n){var l=n(71828);a.getSubplot=function(p){return p.subplot||p.xaxis+p.yaxis||p.geo},a.isTraceInSubplots=function(p,m){if(p.type==="splom"){for(var y=p.xaxes||[],v=p.yaxes||[],g=0;g<y.length;g++)for(var b=0;b<v.length;b++)if(m.indexOf(y[g]+v[b])!==-1)return!0;return!1}return m.indexOf(a.getSubplot(p))!==-1},a.flat=function(p,m){for(var y=new Array(p.length),v=0;v<p.length;v++)y[v]=m;return y},a.p2c=function(p,m){for(var y=new Array(p.length),v=0;v<p.length;v++)y[v]=p[v].p2c(m);return y},a.getDistanceFunction=function(p,m,y,v){return p==="closest"?v||a.quadrature(m,y):p.charAt(0)==="x"?m:y},a.getClosest=function(p,m,y){if(y.index!==!1)y.index>=0&&y.index<p.length?y.distance=0:y.index=!1;else for(var v=0;v<p.length;v++){var g=m(p[v]);g<=y.distance&&(y.index=v,y.distance=g)}return y},a.inbox=function(p,m,y){return p*m<0||p===0?y:1/0},a.quadrature=function(p,m){return function(y){var v=p(y),g=m(y);return Math.sqrt(v*v+g*g)}},a.makeEventData=function(p,m,y){var v="index"in p?p.index:p.pointNumber,g={data:m._input,fullData:m,curveNumber:m.index,pointNumber:v};if(m._indexToPoints){var b=m._indexToPoints[v];b.length===1?g.pointIndex=b[0]:g.pointIndices=b}else g.pointIndex=v;return m._module.eventData?g=m._module.eventData(g,p,m,y,v):("xVal"in p?g.x=p.xVal:"x"in p&&(g.x=p.x),"yVal"in p?g.y=p.yVal:"y"in p&&(g.y=p.y),p.xa&&(g.xaxis=p.xa),p.ya&&(g.yaxis=p.ya),p.zLabelVal!==void 0&&(g.z=p.zLabelVal)),a.appendArrayPointValue(g,m,v),g},a.appendArrayPointValue=function(p,m,y){var v=m._arrayAttrs;if(v)for(var g=0;g<v.length;g++){var b=v[g],x=s(b);if(p[x]===void 0){var _=c(l.nestedProperty(m,b).get(),y);_!==void 0&&(p[x]=_)}}},a.appendArrayMultiPointValues=function(p,m,y){var v=m._arrayAttrs;if(v)for(var g=0;g<v.length;g++){var b=v[g],x=s(b);if(p[x]===void 0){for(var _=l.nestedProperty(m,b).get(),w=new Array(y.length),k=0;k<y.length;k++)w[k]=c(_,y[k]);p[x]=w}}};var f={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function s(p){return f[p]||p}function c(p,m){return Array.isArray(m)?Array.isArray(p)&&Array.isArray(p[m[0]])?p[m[0]][m[1]]:void 0:p[m]}var d={x:!0,y:!0},h={"x unified":!0,"y unified":!0};a.isUnifiedHover=function(p){return typeof p=="string"&&!!h[p]},a.isXYhover=function(p){return typeof p=="string"&&!!d[p]}},88335:function(o,a,n){var l=n(39898),f=n(92770),s=n(84267),c=n(71828),d=c.strTranslate,h=c.strRotate,p=n(11086),m=n(63893),y=n(39918),v=n(91424),g=n(7901),b=n(28569),x=n(89298),_=n(73972),w=n(23469),k=n(26675),T=n(99017),M=n(43969),S=k.YANGLE,C=Math.PI*S/180,P=1/Math.sin(C),D=Math.cos(C),O=Math.sin(C),R=k.HOVERARROWSIZE,F=k.HOVERTEXTPAD,A={box:!0,ohlc:!0,violin:!0,candlestick:!0},z={scatter:!0,scattergl:!0,splom:!0};function B(Q){return[Q.trace.index,Q.index,Q.x0,Q.y0,Q.name,Q.attr,Q.xa?Q.xa._id:"",Q.ya?Q.ya._id:""].join(",")}a.hover=function(Q,Y,Z,X){Q=c.getGraphDiv(Q);var re=Y.target;c.throttle(Q._fullLayout._uid+k.HOVERID,k.HOVERMINTIME,function(){(function(ie,le,se,pe,Te){se||(se="xy");var Se=Array.isArray(se)?se:[se],Oe=ie._fullLayout,Me=Oe._plots||[],ce=Me[se],ye=Oe._has("cartesian");if(ce){var J=ce.overlays.map(function(Zt){return Zt.id});Se=Se.concat(J)}for(var ne=Se.length,de=new Array(ne),xe=new Array(ne),ue=!1,ge=0;ge<ne;ge++){var be=Se[ge];if(Me[be])ue=!0,de[ge]=Me[be].xaxis,xe[ge]=Me[be].yaxis;else{if(!Oe[be]||!Oe[be]._subplot)return void c.warn("Unrecognized subplot: "+be);var we=Oe[be]._subplot;de[ge]=we.xaxis,xe[ge]=we.yaxis}}var ke=le.hovermode||Oe.hovermode;if(ke&&!ue&&(ke="closest"),["x","y","closest","x unified","y unified"].indexOf(ke)===-1||!ie.calcdata||ie.querySelector(".zoombox")||ie._dragging)return b.unhoverRaw(ie,le);var Ae=Oe.hoverdistance;Ae===-1&&(Ae=1/0);var Ee=Oe.spikedistance;Ee===-1&&(Ee=1/0);var De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt,ze,Ne,Qe=[],it=[],kt={hLinePoint:null,vLinePoint:null},Je=!1;if(Array.isArray(le))for(ke="array",Ie=0;Ie<le.length;Ie++)(Ue=ie.calcdata[le[Ie].curveNumber||0])&&(qe=Ue[0].trace,Ue[0].trace.hoverinfo!=="skip"&&(it.push(Ue),qe.orientation==="h"&&(Je=!0)));else{for(Be=0;Be<ie.calcdata.length;Be++)Ue=ie.calcdata[Be],(qe=Ue[0].trace).hoverinfo!=="skip"&&w.isTraceInSubplots(qe,Se)&&(it.push(Ue),qe.orientation==="h"&&(Je=!0));var ut,pt;if(Te){if(p.triggerHandler(ie,"plotly_beforehover",le)===!1)return;var It=Te.getBoundingClientRect();ut=le.clientX-It.left,pt=le.clientY-It.top,Oe._calcInverseTransform(ie);var Mt=c.apply3DTransform(Oe._invTransform)(ut,pt);if(ut=Mt[0],pt=Mt[1],ut<0||ut>de[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return c.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;Be<it.length;Be++)if((Ue=it[Be])&&Ue[0]&&Ue[0].trace&&(qe=Ue[0].trace).visible===!0&&qe._length!==0&&["carpet","contourcarpet"].indexOf(qe._module.name)===-1){if(qe.type==="splom"?Ye=Se[at=0]:(Ye=w.getSubplot(qe),at=Se.indexOf(Ye)),lt=ke,w.isUnifiedHover(lt)&&(lt=lt.charAt(0)),ze={cd:Ue,trace:qe,xa:de[at],ya:xe[at],maxHoverDistance:Ae,maxSpikeDistance:Ee,index:!1,distance:Math.min(zt,Ae),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:g.defaultLine,name:qe.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},Oe[Ye]&&(ze.subplot=Oe[Ye]._subplot),Oe._splomScenes&&Oe._splomScenes[qe.uid]&&(ze.scene=Oe._splomScenes[qe.uid]),Ne=Qe.length,lt==="array"){var nn=le[Be];"pointNumber"in nn?(ze.index=nn.pointNumber,lt="closest"):(lt="","xval"in nn&&(ct=nn.xval,lt="x"),"yval"in nn&&(bt=nn.yval,lt=lt?"closest":"y"))}else Zt!==void 0&&pn!==void 0?(ct=Zt,bt=pn):(ct=De[at],bt=Re[at]);if(Ae!==0)if(qe._module&&qe._module.hoverPoints){var Kt=qe._module.hoverPoints(ze,ct,bt,lt,{finiteRange:!0,hoverLayer:Oe._hoverlayer});if(Kt)for(var Cn,_n=0;_n<Kt.length;_n++)Cn=Kt[_n],f(Cn.x0)&&f(Cn.y0)&&Qe.push(G(Cn,ke))}else c.log("Unrecognized trace type in hover:",qe);if(ke==="closest"&&Qe.length>Ne&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn<Zt.length;Pn++)Kt=Zt[Pn].spikeDistance,nn&&Pn===0&&(Kt=-1/0),Kt<=_n&&Kt<=pn&&(Cn=Zt[Pn],_n=Kt);return Cn}function _e(Zt){return Zt?{xa:Zt.xa,ya:Zt.ya,x:Zt.xSpike!==void 0?Zt.xSpike:(Zt.x0+Zt.x1)/2,y:Zt.ySpike!==void 0?Zt.ySpike:(Zt.y0+Zt.y1)/2,distance:Zt.distance,spikeDistance:Zt.spikeDistance,curveNumber:Zt.trace.index,color:Zt.color,pointNumber:Zt.index}:null}wt();var Ve={fullLayout:Oe,container:Oe._hoverlayer,event:le};ie._spikepoints;var We={vLinePoint:kt.vLinePoint,hLinePoint:kt.hLinePoint};ie._spikepoints=We;var Ze=function(){Qe.sort(function(Zt,pn){return Zt.distance-pn.distance}),Qe=function(Zt,pn){for(var nn=pn.charAt(0),Kt=[],Cn=[],_n=[],Pn=0;Pn<Zt.length;Pn++){var xn=Zt[Pn];_.traceIs(xn.trace,"bar-like")||_.traceIs(xn.trace,"box-violin")?_n.push(xn):xn.trace[nn+"period"]?Cn.push(xn):Kt.push(xn)}return Kt.concat(Cn).concat(_n)}(Qe,ke)};Ze();var Ge=ke.charAt(0),Ke=(Ge==="x"||Ge==="y")&&Qe[0]&&z[Qe[0].trace.type];if(ye&&Ee!==0&&Qe.length!==0){var nt=ve(Qe.filter(function(Zt){return Zt.ya.showspikes}),Ee,Ke);kt.hLinePoint=_e(nt);var st=ve(Qe.filter(function(Zt){return Zt.xa.showspikes}),Ee,Ke);kt.vLinePoint=_e(st)}if(Qe.length===0){var mt=b.unhoverRaw(ie,le);return!ye||kt.hLinePoint===null&&kt.vLinePoint===null||L(ie,kt,Ve),mt}if(ye&&q()&&L(ie,kt,Ve),w.isXYhover(lt)&&Qe[0].length!==0&&Qe[0].trace.type!=="splom"){var tt=Qe[0],Ft=(Qe=A[tt.trace.type]?Qe.filter(function(Zt){return Zt.trace.index===tt.trace.index}):[tt]).length;wt(V("x",tt,Oe),V("y",tt,Oe));var Vt,St=[],Nt={},Dt=0,gt=function(Zt){var pn=A[Zt.trace.type]?B(Zt):Zt.trace.index;if(Nt[pn]){var nn=Nt[pn]-1,Kt=St[nn];nn>0&&Math.abs(Zt.distance)<Math.abs(Kt.distance)&&(St[nn]=Zt)}else Dt++,Nt[pn]=Dt,St.push(Zt)};for(Vt=0;Vt<Ft;Vt++)gt(Qe[Vt]);for(Vt=Qe.length-1;Vt>Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie<Qe.length;Ie++){var jt=Qe[Ie],Tt=w.makeEventData(jt,jt.trace,jt.cd);if(jt.hovertemplate!==!1){var Ot=!1;jt.cd[jt.index]&&jt.cd[jt.index].ht&&(Ot=jt.cd[jt.index].ht),jt.hovertemplate=Ot||jt.trace.hovertemplate||!1}if(jt.xa&&jt.ya){var At=jt.x0+jt.xa._offset,Lt=jt.x1+jt.xa._offset,Rt=jt.y0+jt.ya._offset,$t=jt.y1+jt.ya._offset,Yt=Math.min(At,Lt),Xt=Math.max(At,Lt),Bt=Math.min(Rt,$t),Wt=Math.max(Rt,$t);Tt.bbox={x0:Yt+Et,x1:Xt+Et,y0:Bt+qt,y1:Wt+qt}}jt.eventData=[Tt],yt.push(Tt)}ie._hoverdata=yt;var tn=ke==="y"&&(it.length>1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xn<Tn.length;xn++)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn<Tn.length&&!(Br<=0);xn++)if((tr=Tn[xn]).pos<Dr.pmin+1)for(tr.del=!0,Br--,Pn=2*tr.size,Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn<kr.length-1;){var Un=kr[xn],Lr=kr[xn+1],br=Un[Un.length-1],Mr=Lr[0];if((_n=br.pos+br.dp+br.size-Mr.pos-Mr.dp+Mr.size)>.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5<se?se-Oe+5:0,se=Oe+Te.by+Te.offset,Se===Y.anchorIndex&&(pe=Te.offset)}).each(function(Te){Te.offset-=pe}),W(le,!1,X._fullLayout._invScaleX,X._fullLayout._invScaleY),Z?le:le.node()};var $=/<extra>([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xe<Q.length&&(de=Q[xe][ne])===void 0;xe++);var ue=U(Z,pe),ge=ue.top,be=ue.width,we=ue.height,ke=de!==void 0&&Me.distance<=Y.hoverdistance&&(re==="x"||re==="y");if(ke){var Ae,Ee,De=!0;for(Ae=0;Ae<Q.length;Ae++)if(De&&Q[Ae].zLabel===void 0&&(De=!1),Ee=Q[Ae].hoverinfo||Q[Ae].trace.hoverinfo){var Re=Array.isArray(Ee)?Ee:Ee.split("+");if(Re.indexOf("all")===-1&&Re.indexOf(re)===-1){ke=!1;break}}De&&(ke=!1)}var Ie=se.selectAll("g.axistext").data(ke?[0]:[]);Ie.enter().append("g").classed("axistext",!0),Ie.exit().remove();var Be={minX:0,maxX:0,minY:0,maxY:0};if(Ie.each(function(){var tt=l.select(this),Ft=c.ensureSingle(tt,"path","",function(Wt){Wt.style({"stroke-width":"1px"})}),Vt=c.ensureSingle(tt,"text","",function(Wt){Wt.attr("data-notex",1)}),St=Te.bgcolor||g.defaultLine,Nt=Te.bordercolor||g.contrast(St),Dt=g.contrast(St),gt={family:Te.font.family||Se,size:Te.font.size||Oe,color:Te.font.color||Dt};Ft.style({fill:St,stroke:Nt}),Vt.text(de).call(v.font,gt).call(m.positionText,0,0).call(m.convertToTspans,Z),tt.attr("transform","");var ht,yt,qt=U(Z,Vt.node());if(re==="x"){var Et=ce.side==="top"?"-":"";Vt.attr("text-anchor","middle").call(m.positionText,0,ce.side==="top"?ge-qt.bottom-R-F:ge-qt.top+R+F),ht=ce._offset+(Me.x0+Me.x1)/2,yt=ye._offset+(ce.side==="top"?0:ye._length);var jt=qt.width/2+F;ht<jt?(ht=jt,Ft.attr("d","M-"+(jt-R)+",0L-"+(jt-2*R)+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"Z")):ht>X.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht<qt.width+2*F+R){Lt="M-"+(R+F)+"-"+Rt+"h-"+(qt.width-F)+"V"+Rt+"h"+(qt.width-F)+"Z";var Xt=qt.width-ht+F;m.positionText(Vt,Xt,$t),Tt==="end"&&Vt.selectAll("tspan").each(function(){var Wt=l.select(this),tn=v.tester.append("text").text(Wt.text()).call(v.font,gt),cn=U(Z,tn.node());Math.round(cn.width)<Math.round(qt.width)&&Wt.attr("x",Xt-cn.width),tn.remove()})}else m.positionText(Vt,Ot*(F+R),$t),Lt=null;var Bt=X._topclips.selectAll("#"+Yt).data(Lt?[0]:[]);Bt.enter().append("clipPath").attr("id",Yt).append("path"),Bt.exit().remove(),Bt.select("path").attr("d",Lt),v.setClipUrl(Vt,Lt?Yt:null,Z)}tt.attr("transform",d(ht,yt))}),w.isUnifiedHover(re)){se.selectAll("g.hovertext").remove();var Ue=Q.filter(function(tt){return tt.hoverinfo!=="none"});if(Ue.length===0)return[];var qe=X.hoverlabel,Ye=qe.font,at={showlegend:!0,legend:{title:{text:de,font:Ye},font:Ye,bgcolor:qe.bgcolor,bordercolor:qe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:X.legend?X.legend.traceorder:void 0,orientation:"v"}},lt={font:Ye};T(at,lt,Z._fullData);var ct=lt.legend;ct.entries=[];for(var bt=0;bt<Ue.length;bt++){var ze=Ue[bt];if(ze.hoverinfo!=="none"){var Ne=N(ze,!0,re,X,de),Qe=Ne[0],it=Ne[1];ze.name=it,ze.text=it!==""?it+" : "+Qe:Qe;var kt=ze.cd[ze.index];kt&&(kt.mc&&(ze.mc=kt.mc),kt.mcc&&(ze.mc=kt.mcc),kt.mlc&&(ze.mlc=kt.mlc),kt.mlcc&&(ze.mlc=kt.mlcc),kt.mlw&&(ze.mlw=kt.mlw),kt.mrc&&(ze.mrc=kt.mrc),kt.dir&&(ze.dir=kt.dir)),ze._distinct=!0,ct.entries.push([ze])}}ct.entries.sort(function(tt,Ft){return tt[0].trace.index-Ft[0].trace.index}),ct.layer=se,ct._inHover=!0,ct._groupTitleFont=qe.grouptitlefont,M(Z,ct);var Je,ut,pt,It,Mt=se.select("g.legend"),zt=U(Z,Mt.node()),wt=zt.width+2*F,ve=zt.height+2*F,_e=Ue[0],Ve=(_e.x0+_e.x1)/2,We=(_e.y0+_e.y1)/2,Ze=!(_.traceIs(_e.trace,"bar-like")||_.traceIs(_e.trace,"box-violin"));J==="y"?Ze?(ut=We-F,Je=We+F):(ut=Math.min.apply(null,Ue.map(function(tt){return Math.min(tt.y0,tt.y1)})),Je=Math.max.apply(null,Ue.map(function(tt){return Math.max(tt.y0,tt.y1)}))):ut=Je=c.mean(Ue.map(function(tt){return(tt.y0+tt.y1)/2}))-ve/2,J==="x"?Ze?(pt=Ve+F,It=Ve-F):(pt=Math.max.apply(null,Ue.map(function(tt){return Math.max(tt.x0,tt.x1)})),It=Math.min.apply(null,Ue.map(function(tt){return Math.min(tt.x0,tt.x1)}))):pt=It=c.mean(Ue.map(function(tt){return(tt.x0+tt.x1)/2}))-wt/2;var Ge,Ke,nt=ce._offset,st=ye._offset;return It+=nt-wt,ut+=st-ve,Ge=(pt+=nt)+wt<be&&pt>=0?pt:It+wt<be&&It>=0?It:nt+wt<be?nt:pt-Ve<Ve-It+wt?be-wt:0,Ge+=F,Ke=(Je+=st)+ve<we&&Je>=0?Je:ut+ve<we&&ut>=0?ut:st+ve<we?st:Je-We<We-ut+ve?we-ve:0,Ke+=F,Mt.attr("transform",d(Ge-1,Ke-1)),Mt}var mt=se.selectAll("g.hovertext").data(Q,function(tt){return B(tt)});return mt.enter().append("g").classed("hovertext",!0).each(function(){var tt=l.select(this);tt.append("rect").call(g.fill,g.addOpacity(le,.8)),tt.append("text").classed("name",!0),tt.append("path").style("stroke-width","1px"),tt.append("text").classed("nums",!0).call(v.font,Se,Oe)}),mt.exit().remove(),mt.each(function(tt){var Ft=l.select(this).attr("transform",""),Vt=tt.color;Array.isArray(Vt)&&(Vt=Vt[tt.eventData[0].pointNumber]);var St=tt.bgcolor||Vt,Nt=g.combine(g.opacity(St)?St:g.defaultLine,le),Dt=g.combine(g.opacity(Vt)?Vt:g.defaultLine,le),gt=tt.borderColor||g.contrast(Nt),ht=N(tt,ke,re,X,de,Ft),yt=ht[0],qt=ht[1],Et=Ft.select("text.nums").call(v.font,tt.fontFamily||Se,tt.fontSize||Oe,tt.fontColor||gt).text(yt).attr("data-notex",1).call(m.positionText,0,0).call(m.convertToTspans,Z),jt=Ft.select("text.name"),Tt=0,Ot=0;if(qt&&qt!==yt){jt.call(v.font,tt.fontFamily||Se,tt.fontSize||Oe,Dt).text(qt).attr("data-notex",1).call(m.positionText,0,0).call(m.convertToTspans,Z);var At=U(Z,jt.node());Tt=At.width+2*F,Ot=At.height+2*F}else jt.remove(),Ft.select("rect").remove();Ft.select("path").style({fill:Nt,stroke:gt});var Lt=tt.xa._offset+(tt.x0+tt.x1)/2,Rt=tt.ya._offset+(tt.y0+tt.y1)/2,$t=Math.abs(tt.x1-tt.x0),Yt=Math.abs(tt.y1-tt.y0),Xt=U(Z,Et.node()),Bt=Xt.width/X._invScaleX,Wt=Xt.height/X._invScaleY;tt.ty0=(ge-Xt.top)/X._invScaleY,tt.bx=Bt+2*F,tt.by=Math.max(Wt+2*F,Ot),tt.anchor="start",tt.txwidth=Bt,tt.tx2width=Tt,tt.offset=0;var tn,cn,ln=(Bt+R+F+Tt)*X._invScaleX;if(ie)tt.pos=Lt,tn=Rt+Yt/2+ln<=we,cn=Rt-Yt/2-ln>=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=c.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"<br>"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"<br>"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"<br>":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"<br>":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=c.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=c.castOption(re,Z,Me);return le(ye)?ye:c.extractOption({},X,"",ce)}:function(Me,ce){return c.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=c.constrain(Q.x0,0,Q.xa._length),Q.x1=c.constrain(Q.x1,0,Q.xa._length),Q.y0=c.constrain(Q.y0,0,Q.ya._length),Q.y1=c.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=c.apply3DTransform(Z._invTransform)(re,ie),Te=c.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(c,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,c){function d(h,p){return c[h]!==void 0?c[h]:l.coerce(s,c,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),c=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,quadrature:c.quadrature,appendArrayPointValue:c.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),c=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),c(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(c,d){f(c,d,function(h,p){return l.coerce(c,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,c=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w<b;w++)T(w,v[w]);else for(T(0,_),w=1;w<b;w++)T(w,_+(w+1));return k}o.exports={moduleType:"component",name:"grid",schema:{layout:{grid:h}},layoutAttributes:h,sizeDefaults:function(v,g){var b=v.grid||{},x=p(g,b,"x"),_=p(g,b,"y");if(v.grid||x||_){var w,k,T=Array.isArray(b.subplots)&&Array.isArray(b.subplots[0]),M=Array.isArray(x),S=Array.isArray(_),C=M&&x!==b.xaxes&&S&&_!==b.yaxes;T?(w=b.subplots.length,k=b.subplots[0].length):(S&&(w=_.length),M&&(k=x.length));var P=d.newContainer(g,"grid"),D=$("rows",w),O=$("columns",k);if(D*O>1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x<O;x++){var $=M[x]=new Array(R),j=z[x]||[];for(_=0;_<R;_++)if(F?(T=B===1?"xy":"x"+B+"y"+B,B++):T=j[_],$[_]="",P.cartesian.indexOf(T)!==-1){if(S=T.indexOf("y"),w=T.slice(0,S),k=T.slice(S),A[w]!==void 0&&A[w]!==_||A[k]!==void 0&&A[k]!==x)continue;$[_]=T,A[w]=_,A[k]=x}}}else{var N=p(g,C,"x"),E=p(g,C,"y");b.xaxes=y(N,P.xaxis,R,A,"x"),b.yaxes=y(E,P.yaxis,O,A,"y")}var W=b._anchors={},G=b.roworder==="top to bottom";for(var L in A){var q,H,V,te=L.charAt(0),ee=b[te+"side"];if(ee.length<8)W[L]="free";else if(te==="x"){if(ee.charAt(0)==="t"===G?(q=0,H=1,V=O):(q=O-1,H=-1,V=-1),D){var U=A[L];for(x=q;x!==V;x+=H)if((T=M[x][U])&&(S=T.indexOf("y"),T.slice(0,S)===L)){W[L]=T.slice(S);break}}else for(x=q;x!==V;x+=H)if(k=b.yaxes[x],P.cartesian.indexOf(L+k)!==-1){W[L]=k;break}}else if(ee.charAt(0)==="l"?(q=0,H=1,V=R):(q=R-1,H=-1,V=-1),D){var Q=A[L];for(x=q;x!==V;x+=H)if((T=M[Q][x])&&(S=T.indexOf("y"),T.slice(S)===L)){W[L]=T.slice(0,S);break}}else for(x=q;x!==V;x+=H)if(w=b.xaxes[x],P.cartesian.indexOf(w+L)!==-1){W[L]=w;break}}}}}},69819:function(o,a,n){var l=n(85555),f=n(44467).templatedArray;n(24695),o.exports=f("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},75378:function(o,a,n){var l=n(92770),f=n(58163);o.exports=function(s,c,d,h){c=c||{};var p=d==="log"&&c.type==="linear",m=d==="linear"&&c.type==="log";if(p||m){for(var y,v,g=s._fullLayout.images,b=c._id.charAt(0),x=0;x<g.length;x++)if(v="images["+x+"].",(y=g[x])[b+"ref"]===c._id){var _=y[b],w=y["size"+b],k=null,T=null;if(p){k=f(_,c.range);var M=w/Math.pow(10,k)/2;T=2*Math.log(M+Math.sqrt(1+M*M))/Math.LN10}else T=(k=Math.pow(10,_))*(Math.pow(10,w/2)-Math.pow(10,-w/2));l(k)?l(T)||(T=null):(k=null,T=null),h(v+b,k),h(v+"size"+b,T)}}}},81603:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(69819);function d(h,p,m){function y(k,T){return l.coerce(h,p,c,k,T)}var v=y("source");if(!y("visible",!!v))return p;y("layer"),y("xanchor"),y("yanchor"),y("sizex"),y("sizey"),y("sizing"),y("opacity");for(var g={_fullLayout:m},b=["x","y"],x=0;x<2;x++){var _=b[x],w=f.coerceRef(h,p,g,_,"paper",void 0);w!=="paper"&&f.getFromId(g,w)._imgIndices.push(p._index),f.coercePosition(p,g,y,w,_,0)}return p}o.exports=function(h,p){s(h,p,{name:"images",handleItemDefaults:d})}},80750:function(o,a,n){var l=n(39898),f=n(91424),s=n(89298),c=n(41675),d=n(77922);o.exports=function(h){var p,m,y=h._fullLayout,v=[],g={},b=[];for(m=0;m<y.images.length;m++){var x=y.images[m];if(x.visible)if(x.layer==="below"&&x.xref!=="paper"&&x.yref!=="paper"){p=c.ref2id(x.xref)+c.ref2id(x.yref);var _=y._plots[p];if(!_){b.push(x);continue}_.mainplot&&(p=_.mainplot.id),g[p]||(g[p]=[]),g[p].push(x)}else x.layer==="above"?v.push(x):b.push(x)}var w={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},k={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function T(R){var F=l.select(this);if(this._imgSrc!==R.source)if(F.attr("xmlns",d.svg),R.source&&R.source.slice(0,5)==="data:")F.attr("xlink:href",R.source),this._imgSrc=R.source;else{var A=new Promise((function(z){var B=new Image;function $(){F.remove(),z()}this.img=B,B.setAttribute("crossOrigin","anonymous"),B.onerror=$,B.onload=function(){var j=document.createElement("canvas");j.width=this.width,j.height=this.height,j.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var N=j.toDataURL("image/png");F.attr("xlink:href",N),z()},F.on("error",$),B.src=R.source,this._imgSrc=R.source}).bind(this));h._promises.push(A)}}function M(R){var F,A,z=l.select(this),B=s.getFromId(h,R.xref),$=s.getFromId(h,R.yref),j=s.getRefType(R.xref)==="domain",N=s.getRefType(R.yref)==="domain",E=y._size;F=B!==void 0?typeof R.xref=="string"&&j?B._length*R.sizex:Math.abs(B.l2p(R.sizex)-B.l2p(0)):R.sizex*E.w,A=$!==void 0?typeof R.yref=="string"&&N?$._length*R.sizey:Math.abs($.l2p(R.sizey)-$.l2p(0)):R.sizey*E.h;var W,G,L=F*w[R.xanchor].offset,q=A*k[R.yanchor].offset,H=w[R.xanchor].sizing+k[R.yanchor].sizing;switch(W=B!==void 0?typeof R.xref=="string"&&j?B._length*R.x+B._offset:B.r2p(R.x)+B._offset:R.x*E.w+E.l,W+=L,G=$!==void 0?typeof R.yref=="string"&&N?$._length*(1-R.y)+$._offset:$.r2p(R.y)+$._offset:E.h-R.y*E.h+E.t,G+=q,R.sizing){case"fill":H+=" slice";break;case"stretch":H="none"}z.attr({x:W,y:G,width:F,height:A,preserveAspectRatio:H,opacity:R.opacity});var V=(B&&s.getRefType(R.xref)!=="domain"?B._id:"")+($&&s.getRefType(R.yref)!=="domain"?$._id:"");f.setClipUrl(z,V?"clip"+y._uid+V:null,h)}var S=y._imageLowerLayer.selectAll("image").data(b),C=y._imageUpperLayer.selectAll("image").data(v);S.enter().append("image"),C.enter().append("image"),S.exit().remove(),C.exit().remove(),S.each(function(R){T.bind(this)(R),M.bind(this)(R)}),C.each(function(R){T.bind(this)(R),M.bind(this)(R)});var P=Object.keys(y._plots);for(m=0;m<P.length;m++){p=P[m];var D=y._plots[p];if(D.imagelayer){var O=D.imagelayer.selectAll("image").data(g[p]||[]);O.enter().append("image"),O.exit().remove(),O.each(function(R){T.bind(this)(R),M.bind(this)(R)})}}}},68804:function(o,a,n){o.exports={moduleType:"component",name:"images",layoutAttributes:n(69819),supplyLayoutDefaults:n(81603),includeBasePlot:n(76325)("images"),draw:n(80750),convertCoords:n(75378)}},33030:function(o,a,n){var l=n(41940),f=n(22399);o.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:l({editType:"legend"}),grouptitlefont:l({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:l({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},14928:function(o){o.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},99017:function(o,a,n){var l=n(73972),f=n(71828),s=n(44467),c=n(9012),d=n(33030),h=n(10820),p=n(10130);function m(y,v,g,b){var x=v[y]||{},_=s.newContainer(g,y);function w(H,V){return f.coerce(x,_,d,H,V)}var k=f.coerceFont(w,"font",g.font);if(w("bgcolor",g.paper_bgcolor),w("bordercolor"),w("visible")){for(var T,M=function(H,V){var te=T._input,ee=T;return f.coerce(te,ee,c,H,V)},S=g.font||{},C=f.coerceFont(w,"grouptitlefont",f.extendFlat({},S,{size:Math.round(1.1*S.size)})),P=0,D=!1,O="normal",R=(g.shapes||[]).filter(function(H){return H.showlegend}),F=b.concat(R).filter(function(H){return y===(H.legend||"legend")}),A=0;A<F.length;A++)if((T=F[A]).visible){var z=T._isShape;(T.showlegend||T._dfltShowLegend&&!(T._module&&T._module.attributes&&T._module.attributes.showlegend&&T._module.attributes.showlegend.dflt===!1))&&(P++,T.showlegend&&(D=!0,(!z&&l.traceIs(T,"pie-like")||T._input.showlegend===!0)&&P++),f.coerceFont(M,"legendgrouptitle.font",C)),(!z&&l.traceIs(T,"bar")&&g.barmode==="stack"||["tonextx","tonexty"].indexOf(T.fill)!==-1)&&(O=p.isGrouped({traceorder:O})?"grouped+reversed":"reversed"),T.legendgroup!==void 0&&T.legendgroup!==""&&(O=p.isReversed({traceorder:O})?"reversed+grouped":"grouped")}var B=f.coerce(v,g,h,"showlegend",D&&P>(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b<x.length;b++)f.pushUnique(T,x[b].legend);for(v._legends=[],b=0;b<T.length;b++){var M=T[b];m(M,y,v,x),v[M]&&v[M].visible&&(v[M]._id=M),v._legends.push(M)}}},43969:function(o,a,n){var l=n(39898),f=n(71828),s=n(74875),c=n(73972),d=n(11086),h=n(28569),p=n(91424),m=n(7901),y=n(63893),v=n(85167),g=n(14928),b=n(18783),x=b.LINE_SPACING,_=b.FROM_TL,w=b.FROM_BR,k=n(82424),T=n(53630),M=n(10130),S=1,C=/^legend[0-9]*$/;function P(N,E){var W,G,L=E||{},q=N._fullLayout,H=j(L),V=L._inHover;if(V?(G=L.layer,W="hover"):(G=q._infolayer,W=H),G){var te;if(W+=q._uid,N._legendMouseDownTime||(N._legendMouseDownTime=0),V){if(!L.entries)return;te=k(L.entries,L)}else{for(var ee=(N.calcdata||[]).slice(),U=q.shapes,Q=0;Q<U.length;Q++){var Y=U[Q];if(Y.showlegend){var Z={_isShape:!0,_fullInput:Y,index:Y._index,name:Y.name||Y.label.text||"shape "+Y._index,legend:Y.legend,legendgroup:Y.legendgroup,legendgrouptitle:Y.legendgrouptitle,legendrank:Y.legendrank,legendwidth:Y.legendwidth,showlegend:Y.showlegend,visible:Y.visible,opacity:Y.opacity,mode:Y.type==="line"?"lines":"markers",line:Y.line,marker:{line:Y.line,color:Y.fillcolor,size:12,symbol:Y.type==="rect"?"square":Y.type==="circle"?"circle":"hexagon2"}};ee.push([{trace:Z}])}}te=q.showlegend&&k(ee,L,q._legends.length>1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return c.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee<ne._maxWidth,wt=0,ve=0,_e=0,Ve=0;J.each(function(Ge){var Ke=Ge[0].height,nt=D(Ge,ne,De),st=zt?nt:it;we||(st+=Ee),st+ke+ve-Ee>=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,c.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),c.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=c.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(c.hasTransform(X,"groupby")){var ie=c.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?c.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):c.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTime<L?q+=1:(q=1,E._legendMouseDownTime=G)}),H.on("mouseup",function(){if(!E._dragged&&!E._editing){var V=E._fullLayout[W];new Date().getTime()-E._legendMouseDownTime>L&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;L<G.length;L++){var q=G[L];P(N,N._fullLayout[q])}}}},82424:function(o,a,n){var l=n(73972),f=n(10130);o.exports=function(s,c,d){var h,p,m=c._inHover,y=f.isGrouped(c),v=f.isReversed(c),g={},b=[],x=!1,_={},w=0,k=0;function T(G,L,q){if(c.visible!==!1&&(!d||G===c._id))if(L!==""&&f.isGrouped(c))b.indexOf(L)===-1?(b.push(L),x=!0,g[L]=[q]):g[L].push(q);else{var H="~~i"+w;b.push(H),g[H]=[q],w++}}for(h=0;h<s.length;h++){var M=s[h],S=M[0],C=S.trace,P=C.legend,D=C.legendgroup;if(m||C.visible&&C.showlegend)if(l.traceIs(C,"pie-like"))for(_[D]||(_[D]={}),p=0;p<M.length;p++){var O=M[p].label;_[D][O]||(T(P,D,{label:O,color:M[p].color,i:M[p].i,trace:C,pts:M[p].pts}),_[D][O]=!0,k=Math.max(k,(O||"").length))}else T(P,D,S),k=Math.max(k,(C.name||"").length)}if(!b.length)return[];var R=!x||!y,F=[];for(h=0;h<b.length;h++){var A=g[b[h]];R?F.push(A[0]):F.push(A)}for(R&&(F=[F]),h=0;h<F.length;h++){var z=1/0;for(p=0;p<F[h].length;p++){var B=F[h][p].trace.legendrank;z>B&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;h<F.length;h++){F[h].forEach(function(G,L){G._preSort=L}),F[h].sort($);var j=F[h][0].trace,N=null;for(p=0;p<F[h].length;p++){var E=F[h][p].trace.legendgrouptitle;if(E&&E.text){N=E,m&&(E.font=c._groupTitleFont);break}}if(v&&F[h].reverse(),N){var W=!1;for(p=0;p<F[h].length;p++)if(l.traceIs(F[h][p].trace,"pie-like")){W=!0;break}F[h].unshift({i:-1,groupTitle:N,noClick:W,trace:{showlegend:j.showlegend,legendgroup:j.legendgroup,visible:c.groupclick==="toggleitem"||j.visible}})}for(p=0;p<F[h].length;p++)F[h][p]=[F[h][p]]}return c._lgroupsLength=F.length,c._maxNameLength=k,F}},85167:function(o,a,n){var l=n(73972),f=n(71828),s=f.pushUnique,c=!0;o.exports=function(d,h,p){var m=h._fullLayout;if(!h._dragged&&!h._editing){var y,v=m.legend.itemclick,g=m.legend.itemdoubleclick,b=m.legend.groupclick;if(p===1&&v==="toggle"&&g==="toggleothers"&&c&&h.data&&h._context.showTips&&f.notifier(f._(h,"Double-click on legend to isolate one trace"),"long"),c=!1,p===1?y=v:p===2&&(y=g),y){var x=b==="togglegroup",_=m.hiddenlabels?m.hiddenlabels.slice():[],w=d.data()[0][0];if(!w.groupTitle||!w.noClick){var k=h._fullData,T=(m.shapes||[]).filter(function(ye){return ye.showlegend}),M=k.concat(T),S=w.trace;S._isShape&&(S=S._fullInput);var C,P,D,O,R,F=S.legendgroup,A={},z=[],B=[],$=[],j=(m.shapes||[]).map(function(ye){return ye._input}),N=!1,E=S.legend,W=S._fullInput;if(W&&W._isShape||!l.traceIs(S,"pie-like")){var G,L=F&&F.length,q=[];if(L)for(C=0;C<M.length;C++)(G=M[C]).visible&&G.legendgroup===F&&q.push(C);if(y==="toggle"){var H;switch(S.visible){case!0:H="legendonly";break;case!1:H=!1;break;case"legendonly":H=!0}if(L)if(x)for(C=0;C<M.length;C++){var V=M[C];V.visible!==!1&&V.legendgroup===F&&ce(V,H)}else ce(S,H);else ce(S,H)}else if(y==="toggleothers"){var te,ee,U,Q,Y=!0;for(C=0;C<M.length;C++)if(te=(Q=M[C])===S,ee=Q.showlegend!==!0,!(te||ee||L&&Q.legendgroup===F||Q.legend!==E||Q.visible!==!0||l.traceIs(Q,"notLegendIsolatable"))){Y=!1;break}for(C=0;C<M.length;C++)if((Q=M[C]).visible!==!1&&Q.legend===E&&!l.traceIs(Q,"notLegendIsolatable"))switch(S.visible){case"legendonly":ce(Q,!0);break;case!0:U=!!Y||"legendonly",te=Q===S,ee=Q.showlegend!==!0&&!Q.legendgroup,ce(Q,!!(te||L&&Q.legendgroup===F||ee)||U)}}for(C=0;C<B.length;C++)if(D=B[C]){var Z=D.constructUpdate(),X=Object.keys(Z);for(P=0;P<X.length;P++)O=X[P],(A[O]=A[O]||[])[$[C]]=Z[O]}for(R=Object.keys(A),C=0;C<R.length;C++)for(O=R[C],P=0;P<z.length;P++)A[O].hasOwnProperty(P)||(A[O][P]=void 0);N?l.call("_guiUpdate",h,A,{shapes:j},z):l.call("_guiRestyle",h,A,z)}else{var re=w.label,ie=_.indexOf(re);if(y==="toggle")ie===-1?_.push(re):_.splice(ie,1);else if(y==="toggleothers"){var le=ie!==-1,se=[];for(C=0;C<h.calcdata.length;C++){var pe=h.calcdata[C];for(P=0;P<pe.length;P++){var Te=pe[P].label;E===pe[0].trace.legend&&re!==Te&&(_.indexOf(Te)===-1&&(le=!0),s(_,Te),se.push(Te))}}if(!le)for(var Se=0;Se<se.length;Se++){var Oe=_.indexOf(se[Se]);Oe!==-1&&_.splice(Oe,1)}}l.call("_guiRelayout",h,"hiddenlabels",_)}}}}function Me(ye,J){var ne=z.indexOf(ye),de=A.visible;return de||(de=A.visible=[]),z.indexOf(ye)===-1&&(z.push(ye),ne=z.length-1),de[ne]=J,ne}function ce(ye,J){if(!w.groupTitle||x){var ne,de=ye._fullInput||ye,xe=de._isShape,ue=de.index;if(ue===void 0&&(ue=de._index),l.hasTransform(de,"groupby")){var ge=B[ue];if(!ge){var be=l.getTransformIndices(de,"groupby"),we=be[be.length-1];ge=f.keyedContainer(de,"transforms["+we+"].styles","target","value.visible"),B[ue]=ge}var ke=ge.get(ye._group);ke===void 0&&(ke=!0),ke!==!1&&ge.set(ye._group,J),$[ue]=Me(ue,de.visible!==!1)}else{var Ae=de.visible!==!1&&J;xe?(ne=Ae,j[ue].visible=ne,N=!0):Me(ue,Ae)}}}}},10130:function(o,a){a.isGrouped=function(n){return(n.traceorder||"").indexOf("grouped")!==-1},a.isVertical=function(n){return n.orientation!=="h"},a.isReversed=function(n){return(n.traceorder||"").indexOf("reversed")!==-1}},2199:function(o,a,n){o.exports={moduleType:"component",name:"legend",layoutAttributes:n(33030),supplyLayoutDefaults:n(99017),draw:n(43969),style:n(53630)}},53630:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=s.strTranslate,d=n(91424),h=n(7901),p=n(52075).extractOpts,m=n(34098),y=n(63463),v=n(53581).castOption,g=n(14928);function b(w,k){return(k?"radial":"horizontal")+(w?"":"reversed")}function x(w){var k=w[0].trace,T=k.contours,M=m.hasLines(k),S=m.hasMarkers(k),C=k.visible&&k.fill&&k.fill!=="none",P=!1,D=!1;if(T){var O=T.coloring;O==="lines"?P=!0:M=O==="none"||O==="heatmap"||T.showlines,T.type==="constraint"?C=T._operation!=="=":O!=="fill"&&O!=="heatmap"||(D=!0)}return{showMarker:S,showLine:M,showFill:C,showGradientLine:P,showGradientFill:D,anyLine:M||P,anyFill:C||D}}function _(w,k,T){return w&&s.isArrayOrTypedArray(w)?k:w>T?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=c(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",c(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(pe<ie[0])return ie[0];if(pe>ie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),c=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P<z.length;P++)if(!(C=z[P]).fixedrange)if($=C._name,R==="auto")A[$+".autorange"]=!0;else if(R==="reset")C._rangeInitial0===void 0&&C._rangeInitial1===void 0?A[$+".autorange"]=!0:C._rangeInitial0===void 0?(A[$+".autorange"]=C._autorangeInitial,A[$+".range"]=[null,C._rangeInitial1]):C._rangeInitial1===void 0?(A[$+".range"]=[C._rangeInitial0,null],A[$+".autorange"]=C._autorangeInitial):A[$+".range"]=[C._rangeInitial0,C._rangeInitial1],C._showSpikeInitial!==void 0&&(A[$+".showspikes"]=C._showSpikeInitial,B!=="on"||C._showSpikeInitial||(B="off"));else{var W=[C.r2l(C.range[0]),C.r2l(C.range[1])],G=[N*W[0]+E*W[1],N*W[1]+E*W[0]];A[$+".range[0]"]=C.l2r(G[0]),A[$+".range[1]"]=C.l2r(G[1])}}else O!=="hovermode"||R!=="x"&&R!=="y"||(R=F._isHoriz?"y":"x",D.setAttribute("data-val",R)),A[O]=R;F._cartesianSpikesEnabled=B,l.call("_guiRelayout",M,A)}function v(M,S){for(var C=S.currentTarget,P=C.getAttribute("data-attr"),D=C.getAttribute("data-val")||!0,O=M._fullLayout._subplots.gl3d||[],R={},F=P.split("."),A=0;A<O.length;A++)R[O[A]+"."+F[1]]=D;var z=D==="pan"?D:"zoom";R.dragmode=z,l.call("_guiRelayout",M,R)}function g(M,S){for(var C=S.currentTarget.getAttribute("data-attr"),P=C==="resetLastSave",D=C==="resetDefault",O=M._fullLayout,R=O._subplots.gl3d||[],F={},A=0;A<R.length;A++){var z,B=R[A],$=B+".camera",j=B+".aspectratio",N=B+".aspectmode",E=O[B]._scene;P?(F[$+".up"]=E.viewInitial.up,F[$+".eye"]=E.viewInitial.eye,F[$+".center"]=E.viewInitial.center,z=!0):D&&(F[$+".up"]=null,F[$+".eye"]=null,F[$+".center"]=null,z=!0),z&&(F[j+".x"]=E.viewInitial.aspectratio.x,F[j+".y"]=E.viewInitial.aspectratio.y,F[j+".z"]=E.viewInitial.aspectratio.z,F[N]=E.viewInitial.aspectmode)}l.call("_guiRelayout",M,F)}function b(M,S){var C=S.currentTarget,P=C._previousVal,D=M._fullLayout,O=D._subplots.gl3d||[],R=["xaxis","yaxis","zaxis"],F={},A={};if(P)A=P,C._previousVal=null;else{for(var z=0;z<O.length;z++){var B=O[z],$=D[B],j=B+".hovermode";F[j]=$.hovermode,A[j]=!1;for(var N=0;N<3;N++){var E=R[N],W=B+"."+E+".showspikes";A[W]=!1,F[W]=$[E].showspikes}}C._previousVal=F}return A}function x(M,S){for(var C=S.currentTarget,P=C.getAttribute("data-attr"),D=C.getAttribute("data-val")||!0,O=M._fullLayout,R=O._subplots.geo||[],F=0;F<R.length;F++){var A=R[F],z=O[A];if(P==="zoom"){var B=z.projection.scale,$=D==="in"?2*B:.5*B;l.call("_guiRelayout",M,A+".projection.scale",$)}}P==="reset"&&T(M,"geo")}function _(M){var S=M._fullLayout;return!S.hovermode&&(S._has("cartesian")?S._isHoriz?"y":"x":"closest")}function w(M){var S=_(M);l.call("_guiRelayout",M,"hovermode",S)}function k(M,S){for(var C=S.currentTarget.getAttribute("data-val"),P=M._fullLayout,D=P._subplots.mapbox||[],O={},R=0;R<D.length;R++){var F=D[R],A=P[F].zoom,z=C==="in"?1.05*A:A/1.05;O[F+".zoom"]=z}l.call("_guiRelayout",M,O)}function T(M,S){for(var C=M._fullLayout,P=C._subplots[S]||[],D={},O=0;O<P.length;O++)for(var R=P[O],F=C[R]._subplot.viewInitial,A=Object.keys(F),z=0;z<A.length;z++){var B=A[z];D[R+"."+B]=F[B]}l.call("_guiRelayout",M,D)}m.toImage={name:"toImage",title:function(M){var S=(M._context.toImageButtonOptions||{}).format||"png";return p(M,S==="png"?"Download plot as a png":"Download plot")},icon:c.camera,click:function(M){var S=M._context.toImageButtonOptions,C={format:S.format||"png"};h.notifier(p(M,"Taking snapshot - this may take a few seconds"),"long"),C.format!=="svg"&&h.isIE()&&(h.notifier(p(M,"IE only supports svg. Changing format to svg."),"long"),C.format="svg"),["filename","width","height","scale"].forEach(function(P){P in S&&(C[P]=S[P])}),l.call("downloadImage",M,C).then(function(P){h.notifier(p(M,"Snapshot succeeded")+" - "+P,"long")}).catch(function(){h.notifier(p(M,"Sorry, there was a problem downloading your snapshot!"),"long")})}},m.sendDataToCloud={name:"sendDataToCloud",title:function(M){return p(M,"Edit in Chart Studio")},icon:c.disk,click:function(M){f.sendDataToCloud(M)}},m.editInChartStudio={name:"editInChartStudio",title:function(M){return p(M,"Edit in Chart Studio")},icon:c.pencil,click:function(M){f.sendDataToCloud(M)}},m.zoom2d={name:"zoom2d",_cat:"zoom",title:function(M){return p(M,"Zoom")},attr:"dragmode",val:"zoom",icon:c.zoombox,click:y},m.pan2d={name:"pan2d",_cat:"pan",title:function(M){return p(M,"Pan")},attr:"dragmode",val:"pan",icon:c.pan,click:y},m.select2d={name:"select2d",_cat:"select",title:function(M){return p(M,"Box Select")},attr:"dragmode",val:"select",icon:c.selectbox,click:y},m.lasso2d={name:"lasso2d",_cat:"lasso",title:function(M){return p(M,"Lasso Select")},attr:"dragmode",val:"lasso",icon:c.lasso,click:y},m.drawclosedpath={name:"drawclosedpath",title:function(M){return p(M,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:c.drawclosedpath,click:y},m.drawopenpath={name:"drawopenpath",title:function(M){return p(M,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:c.drawopenpath,click:y},m.drawline={name:"drawline",title:function(M){return p(M,"Draw line")},attr:"dragmode",val:"drawline",icon:c.drawline,click:y},m.drawrect={name:"drawrect",title:function(M){return p(M,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:c.drawrect,click:y},m.drawcircle={name:"drawcircle",title:function(M){return p(M,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:c.drawcircle,click:y},m.eraseshape={name:"eraseshape",title:function(M){return p(M,"Erase active shape")},icon:c.eraseshape,click:d},m.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:y},m.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:y},m.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(M){return p(M,"Autoscale")},attr:"zoom",val:"auto",icon:c.autoscale,click:y},m.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(M){return p(M,"Reset axes")},attr:"zoom",val:"reset",icon:c.home,click:y},m.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(M){return p(M,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:y},m.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(M){return p(M,"Compare data on hover")},attr:"hovermode",val:function(M){return M._fullLayout._isHoriz?"y":"x"},icon:c.tooltip_compare,gravity:"ne",click:y},m.zoom3d={name:"zoom3d",_cat:"zoom",title:function(M){return p(M,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:c.zoombox,click:v},m.pan3d={name:"pan3d",_cat:"pan",title:function(M){return p(M,"Pan")},attr:"scene.dragmode",val:"pan",icon:c.pan,click:v},m.orbitRotation={name:"orbitRotation",title:function(M){return p(M,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:c["3d_rotate"],click:v},m.tableRotation={name:"tableRotation",title:function(M){return p(M,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:c["z-axis"],click:v},m.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(M){return p(M,"Reset camera to default")},attr:"resetDefault",icon:c.home,click:g},m.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(M){return p(M,"Reset camera to last save")},attr:"resetLastSave",icon:c.movie,click:g},m.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:function(M,S){var C=b(M,S);l.call("_guiRelayout",M,C)}},m.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:x},m.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:x},m.resetGeo={name:"resetGeo",_cat:"reset",title:function(M){return p(M,"Reset")},attr:"reset",val:null,icon:c.autoscale,click:x},m.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:w},m.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:w},m.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:w},m.resetViewSankey={name:"resetSankeyGroup",title:function(M){return p(M,"Reset view")},icon:c.home,click:function(M){for(var S={"node.groups":[],"node.x":[],"node.y":[]},C=0;C<M._fullData.length;C++){var P=M._fullData[C]._viewInitial;S["node.groups"].push(P.node.groups.slice()),S["node.x"].push(P.node.x.slice()),S["node.y"].push(P.node.y.slice())}l.call("restyle",M,S)}},m.toggleHover={name:"toggleHover",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:function(M,S){var C=b(M,S);C.hovermode=_(M),l.call("_guiRelayout",M,C)}},m.resetViews={name:"resetViews",title:function(M){return p(M,"Reset views")},icon:c.home,click:function(M,S){var C=S.currentTarget;C.setAttribute("data-attr","zoom"),C.setAttribute("data-val","reset"),y(M,S),C.setAttribute("data-attr","resetLastSave"),g(M,S),T(M,"geo"),T(M,"mapbox")}},m.toggleSpikelines={name:"toggleSpikelines",title:function(M){return p(M,"Toggle Spike Lines")},icon:c.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(M){var S=M._fullLayout,C=S._cartesianSpikesEnabled;S._cartesianSpikesEnabled=C==="on"?"off":"on",l.call("_guiRelayout",M,function(P){for(var D=P._fullLayout._cartesianSpikesEnabled==="on",O=s.list(P,null,!0),R={},F=0;F<O.length;F++){var A=O[F];R[A._name+".showspikes"]=!!D||A._showSpikeInitial}return R}(M))}},m.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(M){return p(M,"Reset view")},attr:"reset",icon:c.home,click:function(M){T(M,"mapbox")}},m.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:k},m.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:k}},93348:function(o,a,n){var l=n(26023),f=Object.keys(l),s=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],c=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(s),d=[];f.forEach(function(h){(function(p){if(c.indexOf(p._cat||p.name)===-1){var m=p.name,y=(p._cat||p.name).toLowerCase();d.indexOf(m)===-1&&d.push(m),d.indexOf(y)===-1&&d.push(y)}})(l[h])}),d.sort(),o.exports={DRAW_MODES:s,backButtons:c,foreButtons:d}},35750:function(o,a,n){var l=n(71828),f=n(7901),s=n(44467),c=n(42068);o.exports=function(d,h){var p=d.modebar||{},m=s.newContainer(h,"modebar");function y(g,b){return l.coerce(p,m,c,g,b)}y("orientation"),y("bgcolor",f.addOpacity(h.paper_bgcolor,.5));var v=f.contrast(f.rgb(h.modebar.bgcolor));y("color",f.addOpacity(v,.3)),y("activecolor",f.addOpacity(v,.7)),y("uirevision",h.uirevision),y("add"),y("remove")}},64168:function(o,a,n){o.exports={moduleType:"component",name:"modebar",layoutAttributes:n(42068),supplyLayoutDefaults:n(35750),manage:n(14192)}},14192:function(o,a,n){var l=n(41675),f=n(34098),s=n(73972),c=n(23469).isUnifiedHover,d=n(37676),h=n(26023),p=n(93348).DRAW_MODES,m=n(71828).extendDeep;o.exports=function(y){var v=y._fullLayout,g=y._context,b=v._modeBar;if(g.displayModeBar||g.watermark){if(!Array.isArray(g.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(g.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var x,_=g.modeBarButtons;x=Array.isArray(_)&&_.length?function(w){for(var k=m([],w),T=0;T<k.length;T++)for(var M=k[T],S=0;S<M.length;S++){var C=M[S];if(typeof C=="string"){if(h[C]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));k[T][S]=h[C]}}return k}(_):!g.displayModeBar&&g.watermark?[]:function(w){var k=w._fullLayout,T=w._fullData,M=w._context;function S(se,pe){if(typeof pe=="string"){if(pe.toLowerCase()===se.toLowerCase())return!0}else{var Te=pe.name,Se=pe._cat||pe.name;if(Te===se||Se===se.toLowerCase())return!0}return!1}var C=k.modebar.add;typeof C=="string"&&(C=[C]);var P=k.modebar.remove;typeof P=="string"&&(P=[P]);var D=M.modeBarButtonsToAdd.concat(C.filter(function(se){for(var pe=0;pe<M.modeBarButtonsToRemove.length;pe++)if(S(se,M.modeBarButtonsToRemove[pe]))return!1;return!0})),O=M.modeBarButtonsToRemove.concat(P.filter(function(se){for(var pe=0;pe<M.modeBarButtonsToAdd.length;pe++)if(S(se,M.modeBarButtonsToAdd[pe]))return!1;return!0})),R=k._has("cartesian"),F=k._has("gl3d"),A=k._has("geo"),z=k._has("pie"),B=k._has("funnelarea"),$=k._has("gl2d"),j=k._has("ternary"),N=k._has("mapbox"),E=k._has("polar"),W=k._has("smith"),G=k._has("sankey"),L=function(se){for(var pe=l.list({_fullLayout:se},null,!0),Te=0;Te<pe.length;Te++)if(!pe[Te].fixedrange)return!1;return!0}(k),q=c(k.hovermode),H=[];function V(se){if(se.length){for(var pe=[],Te=0;Te<se.length;Te++){for(var Se=se[Te],Oe=h[Se],Me=Oe.name.toLowerCase(),ce=(Oe._cat||Oe.name).toLowerCase(),ye=!1,J=0;J<O.length;J++){var ne=O[J].toLowerCase();if(ne===Me||ne===ce){ye=!0;break}}ye||pe.push(h[Se])}H.push(pe)}}var te=["toImage"];M.showEditInChartStudio?te.push("editInChartStudio"):M.showSendToCloud&&te.push("sendDataToCloud"),V(te);var ee=[],U=[],Q=[],Y=[];(R||$||z||B||j)+A+F+N+E+W>1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe<se.length;pe++)if(!s.traceIs(se[pe],"noHover"))return!1;return!0}(T)||q)&&(U=[]),!R&&!$||L||(ee=["zoomIn2d","zoomOut2d","autoScale2d"],Q[0]!=="resetViews"&&(Q=["resetScale2d"])),F?Y=["zoom3d","pan3d","orbitRotation","tableRotation"]:(R||$)&&!L||j?Y=["zoom2d","pan2d"]:N||A?Y=["pan2d"]:E&&(Y=["zoom2d"]),function(se){for(var pe=!1,Te=0;Te<se.length&&!pe;Te++){var Se=se[Te];Se._module&&Se._module.selectPoints&&(s.traceIs(Se,"scatter-like")?(f.hasMarkers(Se)||f.hasText(Se))&&(pe=!0):s.traceIs(Se,"box-violin")&&Se.boxpoints!=="all"&&Se.points!=="all"||(pe=!0))}return pe}(T)&&Y.push("select2d","lasso2d");var Z=[],X=function(se){Z.indexOf(se)===-1&&U.indexOf(se)!==-1&&Z.push(se)};if(Array.isArray(D)){for(var re=[],ie=0;ie<D.length;ie++){var le=D[ie];typeof le=="string"?(le=le.toLowerCase(),p.indexOf(le)!==-1?(k._has("mapbox")||k._has("cartesian"))&&Y.push(le):le==="togglespikelines"?X("toggleSpikelines"):le==="togglehover"?X("toggleHover"):le==="hovercompare"?X("hoverCompareCartesian"):le==="hoverclosest"?(X("hoverClosestCartesian"),X("hoverClosestGeo"),X("hoverClosest3d"),X("hoverClosestGl2d"),X("hoverClosestPie")):le==="v1hovermode"&&(X("toggleHover"),X("hoverClosestCartesian"),X("hoverCompareCartesian"),X("hoverClosestGeo"),X("hoverClosest3d"),X("hoverClosestGl2d"),X("hoverClosestPie"))):re.push(le)}D=re}return V(Y),V(ee.concat(Q)),V(Z),function(se,pe){if(pe.length)if(Array.isArray(pe[0]))for(var Te=0;Te<pe.length;Te++)se.push(pe[Te]);else se.push(pe);return se}(H,D)}(y),b?b.update(y,x):v._modeBar=d(y,x)}else b&&(b.destroy(),delete v._modeBar)}},37676:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(24255),d=n(11506).version,h=new DOMParser;function p(y){this.container=y.container,this.element=document.createElement("div"),this.update(y.graphInfo,y.buttons),this.container.appendChild(this.element)}var m=p.prototype;m.update=function(y,v){this.graphInfo=y;var g=this.graphInfo._context,b=this.graphInfo._fullLayout,x="modebar-"+b._uid;this.element.setAttribute("id",x),this._uid=x,this.element.className="modebar",g.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),b.modebar.orientation==="v"&&(this.element.className+=" vertical",v=v.reverse());var _=b.modebar,w=g.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";s.deleteRelatedStyleRule(x),s.addRelatedStyleRule(x,w+"#"+x+" .modebar-group","background-color: "+_.bgcolor),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn .icon path","fill: "+_.color),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn:hover .icon path","fill: "+_.activecolor),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn.active .icon path","fill: "+_.activecolor);var k=!this.hasButtons(v),T=this.hasLogo!==g.displaylogo,M=this.locale!==g.locale;if(this.locale=g.locale,(k||T||M)&&(this.removeAllButtons(),this.updateButtons(v),g.watermark||g.displaylogo)){var S=this.getLogo();g.watermark&&(S.className=S.className+" watermark"),b.modebar.orientation==="v"?this.element.insertBefore(S,this.element.childNodes[0]):this.element.appendChild(S),this.hasLogo=!0}this.updateActiveButton()},m.updateButtons=function(y){var v=this;this.buttons=y,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(g){var b=v.createGroup();g.forEach(function(x){var _=x.name;if(!_)throw new Error("must provide button 'name' in button config");if(v.buttonsNames.indexOf(_)!==-1)throw new Error("button name '"+_+"' is taken");v.buttonsNames.push(_);var w=v.createButton(x);v.buttonElements.push(w),b.appendChild(w)}),v.element.appendChild(b)})},m.createGroup=function(){var y=document.createElement("div");return y.className="modebar-group",y},m.createButton=function(y){var v=this,g=document.createElement("a");g.setAttribute("rel","tooltip"),g.className="modebar-btn";var b=y.title;b===void 0?b=y.name:typeof b=="function"&&(b=b(this.graphInfo)),(b||b===0)&&g.setAttribute("data-title",b),y.attr!==void 0&&g.setAttribute("data-attr",y.attr);var x=y.val;if(x!==void 0&&(typeof x=="function"&&(x=x(this.graphInfo)),g.setAttribute("data-val",x)),typeof y.click!="function")throw new Error("must provide button 'click' function in button config");g.addEventListener("click",function(w){y.click(v.graphInfo,w),v.updateActiveButton(w.currentTarget)}),g.setAttribute("data-toggle",y.toggle||!1),y.toggle&&l.select(g).classed("active",!0);var _=y.icon;return typeof _=="function"?g.appendChild(_()):g.appendChild(this.createIcon(_||c.question)),g.setAttribute("data-gravity",y.gravity||"n"),g},m.createIcon=function(y){var v,g=f(y.height)?Number(y.height):y.ascent-y.descent,b="http://www.w3.org/2000/svg";if(y.path){(v=document.createElementNS(b,"svg")).setAttribute("viewBox",[0,0,y.width,g].join(" ")),v.setAttribute("class","icon");var x=document.createElementNS(b,"path");x.setAttribute("d",y.path),y.transform?x.setAttribute("transform",y.transform):y.ascent!==void 0&&x.setAttribute("transform","matrix(1 0 0 -1 0 "+y.ascent+")"),v.appendChild(x)}return y.svg&&(v=h.parseFromString(y.svg,"application/xml").childNodes[0]),v.setAttribute("height","1em"),v.setAttribute("width","1em"),v},m.updateActiveButton=function(y){var v=this.graphInfo._fullLayout,g=y!==void 0?y.getAttribute("data-attr"):null;this.buttonElements.forEach(function(b){var x=b.getAttribute("data-val")||!0,_=b.getAttribute("data-attr"),w=b.getAttribute("data-toggle")==="true",k=l.select(b);if(w)_===g&&k.classed("active",!k.classed("active"));else{var T=_===null?_:s.nestedProperty(v,_).get();k.classed("active",T===x)}})},m.hasButtons=function(y){var v=this.buttons;if(!v||y.length!==v.length)return!1;for(var g=0;g<y.length;++g){if(y[g].length!==v[g].length)return!1;for(var b=0;b<y[g].length;b++)if(y[g][b].name!==v[g][b].name)return!1}return!0},m.getLogo=function(){var y=this.createGroup(),v=document.createElement("a");return v.href="https://plotly.com/",v.target="_blank",v.setAttribute("data-title",s._(this.graphInfo,"Produced with Plotly.js")+" (v"+d+")"),v.className="modebar-btn plotlyjsicon modebar-btn--logo",v.appendChild(this.createIcon(c.newplotlylogo)),y.appendChild(v),y},m.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},m.destroy=function(){s.removeElement(this.container.querySelector(".modebar")),s.deleteRelatedStyleRule(this._uid)},o.exports=function(y,v){var g=y._fullLayout,b=new p({graphInfo:y,container:g._modebardiv.node(),buttons:v});return g._privateplot&&l.select(b.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),b}},37113:function(o,a,n){var l=n(41940),f=n(22399),s=(0,n(44467).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});o.exports={visible:{valType:"boolean",editType:"plot"},buttons:s,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:l({editType:"plot"}),bgcolor:{valType:"color",dflt:f.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},89573:function(o){o.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},28674:function(o,a,n){var l=n(71828),f=n(7901),s=n(44467),c=n(85501),d=n(37113),h=n(89573);function p(m,y,v,g){var b=g.calendar;function x(w,k){return l.coerce(m,y,d.buttons,w,k)}if(x("visible")){var _=x("step");_!=="all"&&(!b||b==="gregorian"||_!=="month"&&_!=="year"?x("stepmode"):y.stepmode="backward",x("count")),x("label")}}o.exports=function(m,y,v,g,b){var x=m.rangeselector||{},_=s.newContainer(y,"rangeselector");function w(M,S){return l.coerce(x,_,d,M,S)}if(w("visible",c(x,_,{name:"buttons",handleItemDefaults:p,calendar:b}).length>0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O<P.length;O++){var R=S[P[O]].domain;R&&(D=Math.max(R[1],D))}return[M.domain[0],D+h.yPad]}(y,v,g);w("x",k[0]),w("y",k[1]),l.noneOrAll(m,y,["x","y"]),w("xanchor"),w("yanchor"),l.coerceFont(w,"font",v.font);var T=w("bgcolor");w("activecolor",f.contrast(T,h.lightAmount,h.darkAmount)),w("bordercolor"),w("borderwidth")}}},21598:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(7901),d=n(91424),h=n(71828),p=h.strTranslate,m=n(63893),y=n(41675),v=n(18783),g=v.LINE_SPACING,b=v.FROM_TL,x=v.FROM_BR,_=n(89573),w=n(70565);function k(S){return S._id}function T(S,C,P){var D=h.ensureSingle(S,"rect","selector-rect",function(O){O.attr("shape-rendering","crispEdges")});D.attr({rx:_.rx,ry:_.ry}),D.call(c.stroke,C.bordercolor).call(c.fill,function(O,R){return R._isActive||R._isHovered?O.activecolor:O.bgcolor}(C,P)).style("stroke-width",C.borderwidth+"px")}function M(S,C,P,D){var O,R;h.ensureSingle(S,"text","selector-text",function(F){F.attr("text-anchor","middle")}).call(d.font,C.font).text((O=P,R=D._fullLayout._meta,O.label?R?h.templateString(O.label,R):O.label:O.step==="all"?"all":O.count+O.step.charAt(0))).call(function(F){m.convertToTspans(F,D)})}o.exports=function(S){var C=S._fullLayout._infolayer.selectAll(".rangeselector").data(function(P){for(var D=y.list(P,"x",!0),O=[],R=0;R<D.length;R++){var F=D[R];F.rangeselector&&F.rangeselector.visible&&O.push(F)}return O}(S),k);C.enter().append("g").classed("rangeselector",!0),C.exit().remove(),C.style({cursor:"pointer","pointer-events":"all"}),C.each(function(P){var D=l.select(this),O=P,R=O.rangeselector,F=D.selectAll("g.button").data(h.filterVisible(R.buttons));F.enter().append("g").classed("button",!0),F.exit().remove(),F.each(function(A){var z=l.select(this),B=w(O,A);A._isActive=function($,j,N){if(j.step==="all")return $.autorange===!0;var E=Object.keys(N);return $.range[0]===N[E[0]]&&$.range[1]===N[E[1]]}(O,A,B),z.call(T,R,A),z.call(M,R,A,S),z.on("click",function(){S._dragged||f.call("_guiRelayout",S,B)}),z.on("mouseover",function(){A._isHovered=!0,z.call(T,R,A)}),z.on("mouseout",function(){A._isHovered=!1,z.call(T,R,A)})}),function(A,z,B,$,j){var N=0,E=0,W=B.borderwidth;z.each(function(){var te=l.select(this).select(".selector-text"),ee=B.font.size*g,U=Math.max(ee*m.lineCount(te),16)+3;E=Math.max(E,U)}),z.each(function(){var te=l.select(this),ee=te.select(".selector-rect"),U=te.select(".selector-text"),Q=U.node()&&d.bBox(U.node()).width,Y=B.font.size*g,Z=m.lineCount(U),X=Math.max(Q+10,_.minButtonWidth);te.attr("transform",p(W+N,W)),ee.attr({x:0,y:0,width:X,height:E}),m.positionText(U,X/2,E/2-(Z-1)*Y/2+3),N+=X+5});var G=A._fullLayout._size,L=G.l+G.w*B.x,q=G.t+G.h*(1-B.y),H="left";h.isRightAnchor(B)&&(L-=N,H="right"),h.isCenterAnchor(B)&&(L-=N/2,H="center");var V="top";h.isBottomAnchor(B)&&(q-=E,V="bottom"),h.isMiddleAnchor(B)&&(q-=E/2,V="middle"),N=Math.ceil(N),E=Math.ceil(E),L=Math.round(L),q=Math.round(q),s.autoMargin(A,$+"-range-selector",{x:B.x,y:B.y,l:N*b[H],r:N*x[H],b:E*x[V],t:E*b[V]}),j.attr("transform",p(L,q))}(S,F,R,O._name,D)})}},70565:function(o,a,n){var l=n(81041),f=n(71828).titleCase;o.exports=function(s,c){var d=s._name,h={};if(c.step==="all")h[d+".autorange"]=!0;else{var p=function(m,y){var v,g=m.range,b=new Date(m.r2l(g[1])),x=y.step,_=l["utc"+f(x)],w=y.count;switch(y.stepmode){case"backward":v=m.l2r(+_.offset(b,-w));break;case"todate":var k=_.offset(b,-w);v=m.l2r(+_.ceil(k))}return[v,g[1]]}(s,c);h[d+".range[0]"]=p[0],h[d+".range[1]"]=p[1]}return h}},97218:function(o,a,n){o.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:n(37113)}}},layoutAttributes:n(37113),handleDefaults:n(28674),draw:n(21598)}},75148:function(o,a,n){var l=n(22399);o.exports={bgcolor:{valType:"color",dflt:l.background,editType:"plot"},bordercolor:{valType:"color",dflt:l.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},88443:function(o,a,n){var l=n(41675).list,f=n(71739).getAutoRange,s=n(73251);o.exports=function(c){for(var d=l(c,"x",!0),h=0;h<d.length;h++){var p=d[h],m=p[s.name];m&&m.visible&&m.autorange&&(m._input.autorange=!0,m._input.range=m.range=f(c,p))}}},73251:function(o){o.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},26377:function(o,a,n){var l=n(71828),f=n(44467),s=n(41675),c=n(75148),d=n(47850);o.exports=function(h,p,m){var y=h[m],v=p[m];if(y.rangeslider||p._requestRangeslider[v._id]){l.isPlainObject(y.rangeslider)||(y.rangeslider={});var g,b,x=y.rangeslider,_=f.newContainer(v,"rangeslider");if(D("visible")){D("bgcolor",p.plot_bgcolor),D("bordercolor"),D("borderwidth"),D("thickness"),D("autorange",!v.isValidRange(x.range)),D("range");var w=p._subplots;if(w)for(var k=w.cartesian.filter(function(R){return R.substr(0,R.indexOf("y"))===s.name2id(m)}).map(function(R){return R.substr(R.indexOf("y"),R.length)}),T=l.simpleMap(k,s.id2name),M=0;M<T.length;M++){var S=T[M];g=x[S]||{},b=f.newContainer(_,S,"yaxis");var C,P=p[S];g.range&&P.isValidRange(g.range)&&(C="fixed"),O("rangemode",C)!=="match"&&O("range",P.range.slice())}_._input=x}}function D(R,F){return l.coerce(x,_,c,R,F)}function O(R,F){return l.coerce(g,b,d,R,F)}}},72413:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=c.strTranslate,h=n(91424),p=n(7901),m=n(92998),y=n(93612),v=n(41675),g=n(28569),b=n(6964),x=n(73251);function _(C,P,D,O){var R=c.ensureSingle(C,"rect",x.bgClassName,function(B){B.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),F=O.borderwidth%2==0?O.borderwidth:O.borderwidth-1,A=-O._offsetShift,z=h.crispRound(P,O.borderwidth);R.attr({width:O._width+F,height:O._height+F,transform:d(A,A),"stroke-width":z}).call(p.stroke,O.bordercolor).call(p.fill,O.bgcolor)}function w(C,P,D,O){var R=P._fullLayout;c.ensureSingleById(R._topdefs,"clipPath",O._clipId,function(F){F.append("rect").attr({x:0,y:0})}).select("rect").attr({width:O._width,height:O._height})}function k(C,P,D,O){var R,F=P.calcdata,A=C.selectAll("g."+x.rangePlotClassName).data(D._subplotsWith,c.identity);A.enter().append("g").attr("class",function(z){return x.rangePlotClassName+" "+z}).call(h.setClipUrl,O._clipId,P),A.order(),A.exit().remove(),A.each(function(z,B){var $=l.select(this),j=B===0,N=v.getFromId(P,z,"y"),E=N._name,W=O[E],G={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:O.range.slice(),calendar:D.calendar},width:O._width,height:O._height,margin:{t:0,b:0,l:0,r:0}},_context:P._context};D.rangebreaks&&(G.layout.xaxis.rangebreaks=D.rangebreaks),G.layout[E]={type:N.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():N.range.slice(),calendar:N.calendar},N.rangebreaks&&(G.layout[E].rangebreaks=N.rangebreaks),s.supplyDefaults(G);var L=G._fullLayout.xaxis,q=G._fullLayout[E];L.clearCalc(),L.setScale(),q.clearCalc(),q.setScale();var H={id:z,plotgroup:$,xaxis:L,yaxis:q,isRangePlot:!0};j?R=H:(H.mainplot="xy",H.mainplotinfo=R),y.rangePlot(P,H,function(V,te){for(var ee=[],U=0;U<V.length;U++){var Q=V[U],Y=Q[0].trace;Y.xaxis+Y.yaxis===te&&ee.push(Q)}return ee}(F,z))})}function T(C,P,D,O,R){c.ensureSingle(C,"rect",x.maskMinClassName,function(F){F.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",O._height).call(p.fill,x.maskColor),c.ensureSingle(C,"rect",x.maskMaxClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",O._height).call(p.fill,x.maskColor),R.rangemode!=="match"&&(c.ensureSingle(C,"rect",x.maskMinOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",O._width).call(p.fill,x.maskOppAxisColor),c.ensureSingle(C,"rect",x.maskMaxOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",O._width).style("border-top",x.maskOppBorder).call(p.fill,x.maskOppAxisColor))}function M(C,P,D,O){P._context.staticPlot||c.ensureSingle(C,"rect",x.slideBoxClassName,function(R){R.attr({y:0,cursor:x.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:O._height,fill:x.slideBoxFill})}function S(C,P,D,O){var R=c.ensureSingle(C,"g",x.grabberMinClassName),F=c.ensureSingle(C,"g",x.grabberMaxClassName),A={x:0,width:x.handleWidth,rx:x.handleRadius,fill:p.background,stroke:p.defaultLine,"stroke-width":x.handleStrokeWidth,"shape-rendering":"crispEdges"},z={y:Math.round(O._height/4),height:Math.round(O._height/2)};c.ensureSingle(R,"rect",x.handleMinClassName,function($){$.attr(A)}).attr(z),c.ensureSingle(F,"rect",x.handleMaxClassName,function($){$.attr(A)}).attr(z);var B={width:x.grabAreaWidth,x:0,y:0,fill:x.grabAreaFill,cursor:P._context.staticPlot?void 0:x.grabAreaCursor};c.ensureSingle(R,"rect",x.grabAreaMinClassName,function($){$.attr(B)}).attr("height",O._height),c.ensureSingle(F,"rect",x.grabAreaMaxClassName,function($){$.attr(B)}).attr("height",O._height)}o.exports=function(C){for(var P=C._fullLayout,D=P._rangeSliderData,O=0;O<D.length;O++){var R=D[O][x.name];R._clipId=R._id+"-"+P._uid}var F=P._infolayer.selectAll("g."+x.containerClassName).data(D,function(A){return A._name});F.exit().each(function(A){var z=A[x.name];P._topdefs.select("#"+z._clipId).remove()}).remove(),D.length!==0&&(F.enter().append("g").classed(x.containerClassName,!0).attr("pointer-events","all"),F.each(function(A){var z=l.select(this),B=A[x.name],$=P[v.id2name(A.anchor)],j=B[v.id2name(A.anchor)];if(B.range){var N,E=c.simpleMap(B.range,A.r2l),W=c.simpleMap(A.range,A.r2l);N=W[0]<W[1]?[Math.min(E[0],W[0]),Math.max(E[1],W[1])]:[Math.max(E[0],W[0]),Math.min(E[1],W[1])],B.range=B._input.range=c.simpleMap(N,A.l2r)}A.cleanRange("rangeslider.range");var G=P._size,L=A.domain;B._width=G.w*(L[1]-L[0]);var q=Math.round(G.l+G.w*L[0]),H=Math.round(G.t+G.h*(1-A._counterDomainMin)+(A.side==="bottom"?A._depth:0)+B._offsetShift+x.extraPad);z.attr("transform",d(q,H)),B._rl=c.simpleMap(B.range,A.r2l);var V=B._rl[0],te=B._rl[1],ee=te-V;if(B.p2d=function(se){return se/B._width*ee+V},B.d2p=function(se){return(se-V)/ee*B._width},A.rangebreaks){var U=A.locateBreaks(V,te);if(U.length){var Q,Y,Z=0;for(Q=0;Q<U.length;Q++)Z+=(Y=U[Q]).max-Y.min;var X=B._width/(te-V-Z),re=[-X*V];for(Q=0;Q<U.length;Q++)Y=U[Q],re.push(re[re.length-1]-X*(Y.max-Y.min));for(B.d2p=function(se){for(var pe=re[0],Te=0;Te<U.length;Te++){var Se=U[Te];if(se>=Se.max)pe=re[Te+1];else if(se<Se.min)break}return pe+X*se},Q=0;Q<U.length;Q++)(Y=U[Q]).pmin=B.d2p(Y.min),Y.pmax=B.d2p(Y.max);B.p2d=function(se){for(var pe=re[0],Te=0;Te<U.length;Te++){var Se=U[Te];if(se>=Se.pmax)pe=re[Te+1];else if(se<Se.pmin)break}return(se-pe)/X}}}if(j.rangemode!=="match"){var ie=$.r2l(j.range[0]),le=$.r2l(j.range[1])-ie;B.d2pOppAxis=function(se){return(se-ie)/le*B._height}}z.call(_,C,A,B).call(w,C,A,B).call(k,C,A,B).call(T,C,A,B,j).call(M,C,A,B).call(S,C,A,B),function(se,pe,Te,Se){if(!pe._context.staticPlot){var Oe=se.select("rect."+x.slideBoxClassName).node(),Me=se.select("rect."+x.grabAreaMinClassName).node(),ce=se.select("rect."+x.grabAreaMaxClassName).node();se.on("mousedown",ye),se.on("touchstart",ye)}function ye(){var J=l.event,ne=J.target,de=J.clientX||J.touches[0].clientX,xe=de-se.node().getBoundingClientRect().left,ue=Se.d2p(Te._rl[0]),ge=Se.d2p(Te._rl[1]),be=g.coverSlip();function we(Ae){var Ee,De,Re,Ie=+(Ae.clientX||Ae.touches[0].clientX)-de;switch(ne){case Oe:if(Re="ew-resize",ue+Ie>Te._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De<Ee){var Be=De;De=Ee,Ee=Be}Se._pixelMin=Ee,Se._pixelMax=De,b(l.select(be),Re),function(Ue,qe,Ye,at){function lt(ze){return Ye.l2r(c.constrain(ze,at._rl[0],at._rl[1]))}var ct=lt(at.p2d(at._pixelMin)),bt=lt(at.p2d(at._pixelMax));window.requestAnimationFrame(function(){f.call("_guiRelayout",qe,Ye._name+".range",[ct,bt])})}(0,pe,Te,Se)}function ke(){be.removeEventListener("mousemove",we),be.removeEventListener("mouseup",ke),this.removeEventListener("touchmove",we),this.removeEventListener("touchend",ke),c.removeElement(be)}this.addEventListener("touchmove",we),this.addEventListener("touchend",ke),be.addEventListener("mousemove",we),be.addEventListener("mouseup",ke)}}(z,C,A,B),function(se,pe,Te,Se,Oe,Me){var ce=x.handleWidth/2;function ye(Ae){return c.constrain(Ae,0,Se._width)}function J(Ae){return c.constrain(Ae,0,Se._height)}function ne(Ae){return c.constrain(Ae,-ce,Se._width+ce)}var de=ye(Se.d2p(Te._rl[0])),xe=ye(Se.d2p(Te._rl[1]));if(se.select("rect."+x.slideBoxClassName).attr("x",de).attr("width",xe-de),se.select("rect."+x.maskMinClassName).attr("width",de),se.select("rect."+x.maskMaxClassName).attr("x",xe).attr("width",Se._width-xe),Me.rangemode!=="match"){var ue=Se._height-J(Se.d2pOppAxis(Oe._rl[1])),ge=Se._height-J(Se.d2pOppAxis(Oe._rl[0]));se.select("rect."+x.maskMinOppAxisClassName).attr("x",de).attr("height",ue).attr("width",xe-de),se.select("rect."+x.maskMaxOppAxisClassName).attr("x",de).attr("y",ge).attr("height",Se._height-ge).attr("width",xe-de),se.select("rect."+x.slideBoxClassName).attr("y",ue).attr("height",ge-ue)}var be=.5,we=Math.round(ne(de-ce))-be,ke=Math.round(ne(xe-ce))+be;se.select("g."+x.grabberMinClassName).attr("transform",d(we,be)),se.select("g."+x.grabberMaxClassName).attr("transform",d(ke,be))}(z,0,A,B,$,j),A.side==="bottom"&&m.draw(C,A._id+"title",{propContainer:A,propName:A._name+".title",placeholder:P._dfltTitle.x,attributes:{x:A._offset+A._length/2,y:H+B._height+B._offsetShift+10+1.5*A.title.font.size,"text-anchor":"middle"}})}))}},549:function(o,a,n){var l=n(41675),f=n(63893),s=n(73251),c=n(18783).LINE_SPACING,d=s.name;function h(p){var m=p&&p[d];return m&&m.visible}a.isVisible=h,a.makeData=function(p){var m=l.list({_fullLayout:p},"x",!0),y=p.margin,v=[];if(!p._has("gl2d"))for(var g=0;g<m.length;g++){var b=m[g];if(h(b)){v.push(b);var x=b[d];x._id=d+b._id,x._height=(p.height-y.b-y.t)*x.thickness,x._offsetShift=Math.floor(x.borderwidth/2)}}p._rangeSliderData=v},a.autoMarginOpts=function(p,m){var y=p._fullLayout,v=m[d],g=m._id.charAt(0),b=0,x=0;return m.side==="bottom"&&(b=m._depth,m.title.text!==y._dfltTitle[g]&&(x=1.5*m.title.font.size+10+v._offsetShift,x+=(m.title.text.match(f.BR_TAG_ALL)||[]).length*m.title.font.size*c)),{x:0,y:m._counterDomainMin,l:0,r:0,t:0,b:v._height+b+Math.max(y.margin.b,x),pad:s.extraPad+2*v._offsetShift}}},13137:function(o,a,n){var l=n(71828),f=n(75148),s=n(47850),c=n(549);o.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:l.extendFlat({},f,{yaxis:s})}}},layoutAttributes:n(75148),handleDefaults:n(26377),calcAutorange:n(88443),draw:n(72413),isVisible:c.isVisible,makeData:c.makeData,autoMarginOpts:c.autoMarginOpts}},47850:function(o){o.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},8389:function(o,a,n){var l=n(50215),f=n(82196).line,s=n(79952).P,c=n(1426).extendFlat,d=n(30962).overrideAll,h=n(44467).templatedArray;n(24695),o.exports=d(h("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:c({},l.xref,{}),yref:c({},l.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:f.color,width:c({},f.width,{min:1,dflt:1}),dash:c({},s,{dflt:"dot"})}}),"arraydraw","from-root")},34122:function(o){o.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},59402:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(8389),d=n(30477);function h(p,m,y){function v(z,B){return l.coerce(p,m,c,z,B)}var g=v("path"),b=v("type",g?"path":"rect")!=="path";b&&delete m.path,v("opacity"),v("line.color"),v("line.width"),v("line.dash");for(var x=["x","y"],_=0;_<2;_++){var w,k,T,M=x[_],S={_fullLayout:y},C=f.coerceRef(p,m,S,M);if((w=f.getFromId(S,C))._selectionIndices.push(m._index),T=d.rangeToShapePosition(w),k=d.shapePositionToRange(w),b){var P=M+"0",D=M+"1",O=p[P],R=p[D];p[P]=k(p[P],!0),p[D]=k(p[D],!0),f.coercePosition(m,S,v,C,P),f.coercePosition(m,S,v,C,D);var F=m[P],A=m[D];F!==void 0&&A!==void 0&&(m[P]=T(F),m[D]=T(A),p[P]=O,p[D]=R)}}b&&l.noneOrAll(p,m,["x0","x1","y0","y1"])}o.exports=function(p,m){s(p,m,{name:"selections",handleItemDefaults:h});for(var y=m.selections,v=0;v<y.length;v++){var g=y[v];g&&g.path===void 0&&(g.x0!==void 0&&g.x1!==void 0&&g.y0!==void 0&&g.y1!==void 0||(m.selections[v]=null))}}},32485:function(o,a,n){var l=n(60165).readPaths,f=n(42359),s=n(51873).clearOutlineControllers,c=n(7901),d=n(91424),h=n(44467).arrayEditor,p=n(30477),m=p.getPathString;function y(_){var w=_._fullLayout;for(var k in s(_),w._selectionLayer.selectAll("path").remove(),w._plots){var T=w._plots[k].selectionLayer;T&&T.selectAll("path").remove()}for(var M=0;M<w.selections.length;M++)g(_,M)}function v(_){return _._context.editSelection}function g(_,w){_._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+w+'"]').remove();var k=p.makeSelectionsOptionsAndPlotinfo(_,w),T=k.options,M=k.plotinfo;T._input&&function(S){var C=m(_,T),P={"data-index":w,"fill-rule":"evenodd",d:C},D=T.opacity,O="rgba(0,0,0,0)",R=T.line.color||c.contrast(_._fullLayout.plot_bgcolor),F=T.line.width,A=T.line.dash;F||(F=5,A="solid");var z=v(_)&&_._fullLayout._activeSelectionIndex===w;z&&(O=_._fullLayout.activeselection.fillcolor,D=_._fullLayout.activeselection.opacity);for(var B=[],$=1;$>=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(c.stroke,R).call(c.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),c=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S<M.length)switch(g._fullLayout.selections[S].type){case"rect":T="select";break;case"path":T="lasso"}}var C,P=c(v,g,x,k),D={xref:_._id,yref:w._id,opacity:b.opacity,line:{color:b.line.color,width:b.line.width,dash:b.line.dash}};P.length===1&&(C=P[0]),C&&C.length===5&&T==="select"?(D.type="rect",D.x0=C[0][1],D.y0=C[0][2],D.x1=C[2][1],D.y1=C[2][2]):(D.type="path",_&&w&&h(P,_,w),D.path=d(P),C=null),f(g);for(var O=m.editHelpers,R=(O||{}).modifyItem,F=[],A=0;A<M.length;A++){var z=g._fullLayout.selections[A];if(z){if(F[A]=z._input,k!==void 0&&A===g._fullLayout._activeSelectionIndex){var B=D;switch(z.type){case"rect":R("x0",B.x0),R("x1",B.x1),R("y0",B.y0),R("y1",B.y1);break;case"path":R("path",B.path)}}}else F[A]=z}return k===void 0?(F.push(D),F):O?O.getUpdateObj():{}}}}},75549:function(o,a,n){var l=n(71828).strTranslate;function f(s,c){switch(s.type){case"log":return s.p2d(c);case"date":return s.p2r(c,0,s.calendar);default:return s.p2r(c)}}o.exports={p2r:f,r2p:function(s,c){switch(s.type){case"log":return s.d2p(c);case"date":return s.r2p(c,0,s.calendar);default:return s.r2p(c)}},axValue:function(s){var c=s._id.charAt(0)==="y"?1:0;return function(d){return f(s,d[c])}},getTransform:function(s){return l(s.xaxis._offset,s.yaxis._offset)}}},47322:function(o,a,n){var l=n(32485),f=n(3937);o.exports={moduleType:"component",name:"selections",layoutAttributes:n(8389),supplyLayoutDefaults:n(59402),supplyDrawNewSelectionDefaults:n(90849),includeBasePlot:n(76325)("selections"),draw:l.draw,drawOne:l.drawOne,reselect:f.reselect,prepSelect:f.prepSelect,clearOutline:f.clearOutline,clearSelectionsCache:f.clearSelectionsCache,selectOnClick:f.selectOnClick}},3937:function(o,a,n){var l=n(52142),f=n(38258),s=n(73972),c=n(91424).dashStyle,d=n(7901),h=n(30211),p=n(23469).makeEventData,m=n(64505),y=m.freeMode,v=m.rectMode,g=m.drawMode,b=m.openMode,x=m.selectMode,_=n(30477),w=n(21459),k=n(42359),T=n(51873).clearOutline,M=n(60165),S=M.handleEllipse,C=M.readPaths,P=n(90551).newShapes,D=n(35855),O=n(32485).activateLastSelection,R=n(71828),F=R.sorterAsc,A=n(61082),z=n(79990),B=n(41675).getFromId,$=n(33306),j=n(61549).redrawReglTraces,N=n(34122),E=N.MINSELECT,W=A.filter,G=A.tester,L=n(75549),q=L.p2r,H=L.axValue,V=L.getTransform;function te(ke){return ke.subplot!==void 0}function ee(ke,Ae,Ee,De,Re,Ie,Be){var Ue,qe,Ye,at,lt,ct,bt,ze,Ne,Qe=Ae._hoverdata,it=Ae._fullLayout.clickmode.indexOf("event")>-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve<zt.length;ve++)if(wt=zt[ve],_e.fullData._expandedIndex===wt.cd[0].trace._expandedIndex){if(_e.hoverOnBox===!0)break;_e.pointNumber!==void 0?Ve=_e.pointNumber:_e.binNumber!==void 0&&(Ve=_e.binNumber,We=_e.pointNumbers);break}return{pointNumber:Ve,pointNumbers:We,searchInfo:wt}}(Qe,Ue=ie(Ae,Ee,De,Re));if(Je.pointNumbers.length>0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e<Mt.length;_e++)(wt=Mt[_e]).cd[0].trace.selectedpoints&&wt.cd[0].trace.selectedpoints.length>0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e<zt.pointNumbers.length;_e++)if(ve.selectedpoints.indexOf(zt.pointNumbers[_e])<0)return!1;return!0}return!1}(Ue,Je):function(Mt){var zt,wt,ve=0;for(wt=0;wt<Mt.length;wt++)if((zt=Mt[wt].cd[0].trace).selectedpoints&&(zt.selectedpoints.length>1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne<Ue.length;Ne++)(qe=Ue[Ne])._module.selectPoints(qe,!1);pe(Ae,Ue),X(Ie),it&&we(Ae)}else{for(bt=ke.shiftKey&&(ct!==void 0?ct:se(Je)),Ye=function(Mt,zt,wt){return{pointNumber:Mt,searchInfo:zt,subtract:!!wt}}(Je.pointNumber,Je.searchInfo,bt),at=Y(Ie.selectionDefs.concat([Ye])),Ne=0;Ne<Ue.length;Ne++)if(lt=Se(Ue[Ne]._module.selectPoints(Ue[Ne],at),Ue[Ne]),kt.length)for(var ut=0;ut<lt.length;ut++)kt.push(lt[ut]);else kt=lt;if(pe(Ae,Ue,ze={points:kt}),Ye&&Ie&&Ie.selectionDefs.push(Ye),Be){var pt=Ie.mergedPolygons,It=b(Ie.dragmode);k(Oe(pt,It),Be,Ie)}it&&be(Ae,ze)}}}function U(ke){return"pointNumber"in ke&&"searchInfo"in ke}function Q(ke){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ae,Ee,De,Re){var Ie=ke.searchInfo.cd[0].trace._expandedIndex;return Re.cd[0].trace._expandedIndex===Ie&&De===ke.pointNumber},isRect:!1,degenerate:!1,subtract:!!ke.subtract}}function Y(ke){if(ke.length){for(var Ae=[],Ee=U(ke[0])?0:ke[0][0][0],De=Ee,Re=U(ke[0])?0:ke[0][0][1],Ie=Re,Be=0;Be<ke.length;Be++)if(U(ke[Be]))Ae.push(Q(ke[Be]));else{var Ue=G(ke[Be]);Ue.subtract=!!ke[Be].subtract,Ae.push(Ue),Ee=Math.min(Ee,Ue.xmin),De=Math.max(De,Ue.xmax),Re=Math.min(Re,Ue.ymin),Ie=Math.max(Ie,Ue.ymax)}return{xmin:Ee,xmax:De,ymin:Re,ymax:Ie,pts:[],contains:function(qe,Ye,at,lt){for(var ct=!1,bt=0;bt<Ae.length;bt++)Ae[bt].contains(qe,Ye,at,lt)&&(ct=!Ae[bt].subtract);return ct},isRect:!1,degenerate:!1}}}function Z(ke,Ae,Ee){var De=Ae._fullLayout,Re=Ee.plotinfo,Ie=Ee.dragmode,Be=De._lastSelectedSubplot&&De._lastSelectedSubplot===Re.id,Ue=(ke.shiftKey||ke.altKey)&&!(g(Ie)&&b(Ie));Be&&Ue&&Re.selection&&Re.selection.selectionDefs&&!Ee.selectionDefs?(Ee.selectionDefs=Re.selection.selectionDefs,Ee.mergedPolygons=Re.selection.mergedPolygons):Ue&&Re.selection||X(Ee),Be||(T(Ae),De._lastSelectedSubplot=Re.id)}function X(ke,Ae){var Ee=ke.dragmode,De=ke.plotinfo,Re=ke.gd;(function(lt){return lt._fullLayout._activeShapeIndex>=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be<ke.calcdata.length;Be++)if((Ie=(Re=ke.calcdata[Be])[0].trace).visible===!0&&Ie._module&&Ie._module.selectPoints)if(!te({subplot:De})||Ie.subplot!==De&&Ie.geo!==De)if(Ie.type==="splom"){if(Ie._xaxes[qe[0]]&&Ie._yaxes[Ye[0]]){var at=le(Ie._module,Re,Ae[0],Ee[0]);at.scene=ke._fullLayout._splomScenes[Ie.uid],Ue.push(at)}}else if(Ie.type==="sankey"){var lt=le(Ie._module,Re,Ae[0],Ee[0]);Ue.push(lt)}else{if(qe.indexOf(Ie.xaxis)===-1||Ye.indexOf(Ie.yaxis)===-1)continue;Ue.push(le(Ie._module,Re,B(ke,Ie.xaxis),B(ke,Ie.yaxis)))}else Ue.push(le(Ie._module,Re,Ae[0],Ee[0]));return Ue}function le(ke,Ae,Ee,De){return{_module:ke,cd:Ae,xaxis:Ee,yaxis:De}}function se(ke){var Ae=ke.searchInfo.cd[0].trace,Ee=ke.pointNumber,De=ke.pointNumbers,Re=De.length>0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De<Ae.length;De++){var Ie=Ae[De].cd[0].trace._fullInput,Be=ke._fullLayout._tracePreGUI[Ie.uid]||{};Be.selectedpoints===void 0&&(Be.selectedpoints=Ie._input.selectedpoints||null)}if(Ee){var Ue=Ee.points||[];for(De=0;De<Ae.length;De++)(Re=Ae[De].cd[0].trace)._input.selectedpoints=Re._fullInput.selectedpoints=[],Re._fullInput!==Re&&(Re.selectedpoints=[]);for(var qe=0;qe<Ue.length;qe++){var Ye=Ue[qe],at=Ye.data,lt=Ye.fullData,ct=Ye.pointIndex,bt=Ye.pointIndices;bt?([].push.apply(at.selectedpoints,bt),Re._fullInput!==Re&&[].push.apply(lt.selectedpoints,bt)):(at.selectedpoints.push(ct),Re._fullInput!==Re&<.selectedpoints.push(ct))}}else for(De=0;De<Ae.length;De++)delete(Re=Ae[De].cd[0].trace).selectedpoints,delete Re._input.selectedpoints,Re._fullInput!==Re&&delete Re._fullInput.selectedpoints;(function(ze,Ne){for(var Qe=!1,it=0;it<Ne.length;it++){var kt=Ne[it],Je=kt.cd;s.traceIs(Je[0].trace,"regl")&&(Qe=!0);var ut=kt._module,pt=ut.styleOnSelect||ut.style;pt&&(pt(ze,Je,Je[0].node3),Je[0].nodeRangePlot3&&pt(ze,Je,Je[0].nodeRangePlot3))}Qe&&($(ze),j(ze))})(ke,Ae)}function Te(ke,Ae,Ee){for(var De=(Ee?l.difference:l.union)({regions:ke},{regions:[Ae]}).regions.reverse(),Re=0;Re<De.length;Re++){var Ie=De[Re];Ie.subtract=de(Ie,De.slice(0,Re))}return De}function Se(ke,Ae){if(Array.isArray(ke))for(var Ee=Ae.cd,De=Ae.cd[0].trace,Re=0;Re<ke.length;Re++)ke[Re]=p(ke[Re],De,Ee);return ke}function Oe(ke,Ae){for(var Ee=[],De=0;De<ke.length;De++){Ee[De]=[];for(var Re=0;Re<ke[De].length;Re++){Ee[De][Re]=[],Ee[De][Re][0]=Re?"L":"M";for(var Ie=0;Ie<ke[De][Re].length;Ie++)Ee[De][Re].push(ke[De][Re][Ie])}Ae||Ee[De].push(["Z",Ee[De][0][1],Ee[De][0][2]])}return Ee}function Me(ke,Ae){for(var Ee,De,Re=[],Ie=[],Be=0;Be<Ae.length;Be++){var Ue=Ae[Be];De=Ue._module.selectPoints(Ue,ke),Ie.push(De),Ee=Se(De,Ue),Re=Re.concat(Ee)}return Re}function ce(ke,Ae,Ee,De,Re){var Ie,Be,Ue,qe=!!De;Re&&(Ie=Re.plotinfo,Be=Re.xaxes[0]._id,Ue=Re.yaxes[0]._id);var Ye=[],at=[],lt=ne(ke),ct=ke._fullLayout;if(Ie){var bt=ct._zoomlayer,ze=ct.dragmode,Ne=g(ze),Qe=x(ze);if(Ne||Qe){var it=B(ke,Be,"x"),kt=B(ke,Ue,"y");if(it&&kt){var Je=bt.selectAll(".select-outline-"+Ie.id);if(Je&&ke._fullLayout._outlining&&Je.length){for(var ut=Je[0][0].getAttribute("d"),pt=C(ut,ke,Ie),It=[],Mt=0;Mt<pt.length;Mt++){for(var zt=pt[Mt],wt=[],ve=0;ve<zt.length;ve++)wt.push([xe(it,zt[ve][1]),xe(kt,zt[ve][2])]);wt.xref=Be,wt.yref=Ue,wt.subtract=de(wt,It),It.push(wt)}lt=lt.concat(It)}}}}var _e=Be&&Ue?[Be+Ue]:ct._subplots.cartesian;(function(Yt){var Xt=Yt.calcdata;if(Xt)for(var Bt=0;Bt<Xt.length;Bt++){var Wt=Xt[Bt][0].trace,tn=Yt._fullLayout._splomScenes;if(tn){var cn=tn[Wt.uid];cn&&(cn.selectBatch=[])}}})(ke);for(var Ve={},We=0;We<_e.length;We++){var Ze=_e[We],Ge=Ze.indexOf("y"),Ke=Ze.slice(0,Ge),nt=Ze.slice(Ge),st=Be&&Ue?Ee:void 0;if(st=J(lt,Ke,nt,st)){var mt=De;if(!qe){var tt=B(ke,Ke,"x"),Ft=B(ke,nt,"y");mt=ie(ke,[tt],[Ft],Ze);for(var Vt=0;Vt<mt.length;Vt++){var St=mt[Vt],Nt=St.cd[0],Dt=Nt.trace;if(St._module.name==="scattergl"&&!Nt.t.xpx){var gt=Dt.x,ht=Dt.y,yt=Dt._length;Nt.t.xpx=[],Nt.t.ypx=[];for(var qt=0;qt<yt;qt++)Nt.t.xpx[qt]=tt.c2p(gt[qt]),Nt.t.ypx[qt]=Ft.c2p(ht[qt])}St._module.name==="splom"&&(Ve[Dt.uid]||(Ve[Dt.uid]=!0))}}var Et=Me(st,mt);Ye=Ye.concat(Et),at=at.concat(mt)}}var jt={points:Ye};pe(ke,at,jt);var Tt=ct.clickmode.indexOf("event")>-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt<Bt.length;Wt++){var tn=Bt[Wt];if(tn.xaxis&&tn.xaxis._id===Yt&&tn.yaxis&&tn.yaxis._id===Xt)return!0}return!1})(Be=$t.xref,Ue=$t.yref,at)||ye(ke,Be,Ue,De),Tt&&(jt.points.length?be(ke,jt):we(ke)),ct._deselect=!1}return{eventData:jt,selectionTesters:Ee}}function ye(ke,Ae,Ee,De){De=ie(ke,[B(ke,Ae,"x")],[B(ke,Ee,"y")],Ae+Ee);for(var Re=0;Re<De.length;Re++){var Ie=De[Re];Ie._module.selectPoints(Ie,!1)}pe(ke,De)}function J(ke,Ae,Ee,De){for(var Re,Ie=0;Ie<ke.length;Ie++){var Be=ke[Ie];Ae===Be.xref&&Ee===Be.yref&&(Re?De=Y(Re=Te(Re,Be,!!Be.subtract)):(Re=[Be],De=G(Be)))}return De}function ne(ke,Ae){for(var Ee=[],De=ke._fullLayout,Re=De.selections,Ie=Re.length,Be=0;Be<Ie;Be++)if(!Ae||Be===De._activeSelectionIndex){var Ue=Re[Be];if(Ue){var qe,Ye,at,lt,ct,bt=Ue.xref,ze=Ue.yref,Ne=B(ke,bt,"x"),Qe=B(ke,ze,"y");if(Ue.type==="rect"){ct=[];var it=xe(Ne,Ue.x0),kt=xe(Ne,Ue.x1),Je=xe(Qe,Ue.y0),ut=xe(Qe,Ue.y1);ct=[[it,Je],[it,ut],[kt,ut],[kt,Je]],qe=Math.min(it,kt),Ye=Math.max(it,kt),at=Math.min(Je,ut),lt=Math.max(Je,ut),ct.xmin=qe,ct.xmax=Ye,ct.ymin=at,ct.ymax=lt,ct.xref=bt,ct.yref=ze,ct.subtract=!1,ct.isRect=!0,Ee.push(ct)}else if(Ue.type==="path")for(var pt=Ue.path.split("Z"),It=[],Mt=0;Mt<pt.length;Mt++){var zt=pt[Mt];if(zt){zt+="Z";var wt=_.extractPathCoords(zt,w.paramIsX,"raw"),ve=_.extractPathCoords(zt,w.paramIsY,"raw");qe=1/0,Ye=-1/0,at=1/0,lt=-1/0,ct=[];for(var _e=0;_e<wt.length;_e++){var Ve=xe(Ne,wt[_e]),We=xe(Qe,ve[_e]);ct.push([Ve,We]),qe=Math.min(Ve,qe),Ye=Math.max(Ve,Ye),at=Math.min(We,at),lt=Math.max(We,lt)}ct.xmin=qe,ct.xmax=Ye,ct.ymin=at,ct.ymax=lt,ct.xref=bt,ct.yref=ze,ct.subtract=de(ct,It),It.push(ct),Ee.push(ct)}}}}return Ee}function de(ke,Ae){for(var Ee=!1,De=0;De<Ae.length;De++)for(var Re=Ae[De],Ie=0;Ie<ke.length;Ie++)if(f(ke[Ie],Re)){Ee=!Ee;break}return Ee}function xe(ke,Ae){return ke.type==="date"&&(Ae=Ae.replace("_"," ")),ke.type==="log"?ke.c2p(Ae):ke.r2p(Ae,null,ke.calendar)}function ue(ke){for(var Ae=ke.length,Ee=[],De=0;De<Ae;De++){var Re=ke[De];Ee=(Ee=Ee.concat(Re)).concat([Re[0]])}return(Ie=Ee).isRect=Ie.length===5&&Ie[0][0]===Ie[4][0]&&Ie[0][1]===Ie[4][1]&&Ie[0][0]===Ie[1][0]&&Ie[2][0]===Ie[3][0]&&Ie[0][1]===Ie[3][1]&&Ie[1][1]===Ie[2][1]||Ie[0][1]===Ie[1][1]&&Ie[2][1]===Ie[3][1]&&Ie[0][0]===Ie[3][0]&&Ie[1][0]===Ie[2][0],Ie.isRect&&(Ie.xmin=Math.min(Ie[0][0],Ie[2][0]),Ie.xmax=Math.max(Ie[0][0],Ie[2][0]),Ie.ymin=Math.min(Ie[0][1],Ie[2][1]),Ie.ymax=Math.max(Ie[0][1],Ie[2][1])),Ie;var Ie}function ge(ke){return function(Ae,Ee){for(var De,Re,Ie=0;Ie<ke.length;Ie++){var Be=ke[Ie],Ue=Be._id,qe=Ue.charAt(0);if(Ee.isRect){De||(De={});var Ye=Ee[qe+"min"],at=Ee[qe+"max"];Ye!==void 0&&at!==void 0&&(De[Ue]=[q(Be,Ye),q(Be,at)].sort(F))}else Re||(Re={}),Re[Ue]=Ee.map(H(Be))}De&&(Ae.range=De),Re&&(Ae.lassoPoints=Re)}}function be(ke,Ae){Ae&&(Ae.selections=(ke.layout||{}).selections||[]),ke.emit("plotly_selected",Ae)}function we(ke){ke.emit("plotly_deselect",null)}o.exports={reselect:ce,prepSelect:function(ke,Ae,Ee,De,Re){var Ie=!te(De),Be=y(Re),Ue=v(Re),qe=b(Re),Ye=g(Re),at=x(Re),lt=Re==="drawcircle",ct=Re==="drawline"||lt,bt=De.gd,ze=bt._fullLayout,Ne=at&&ze.newselection.mode==="immediate"&&Ie,Qe=ze._zoomlayer,it=De.element.getBoundingClientRect(),kt=De.plotinfo,Je=V(kt),ut=Ae-it.left,pt=Ee-it.top;ze._calcInverseTransform(bt);var It=R.apply3DTransform(ze._invTransform)(ut,pt);ut=It[0],pt=It[1];var Mt,zt,wt,ve,_e,Ve,We,Ze=ze._invScaleX,Ge=ze._invScaleY,Ke=ut,nt=pt,st="M"+ut+","+pt,mt=De.xaxes[0],tt=De.yaxes[0],Ft=mt._length,Vt=tt._length,St=ke.altKey&&!(g(Re)&&qe);Z(ke,bt,De),Be&&(Mt=W([[ut,pt]],N.BENDPX));var Nt=Qe.selectAll("path.select-outline-"+kt.id).data([1]),Dt=Ye?ze.newshape:ze.newselection;Ye&&(De.hasText=Dt.label.text||Dt.label.texttemplate);var gt=Ye&&!qe?Dt.fillcolor:"rgba(0,0,0,0)",ht=Dt.line.color||(Ie?d.contrast(bt._fullLayout.plot_bgcolor):"#7f7f7f");Nt.enter().append("path").attr("class","select-outline select-outline-"+kt.id).style({opacity:Ye?Dt.opacity/2:1,"stroke-dasharray":c(Dt.line.dash,Dt.line.width),"stroke-width":Dt.line.width+"px","shape-rendering":"crispEdges"}).call(d.stroke,ht).call(d.fill,gt).attr("fill-rule","evenodd").classed("cursor-move",!!Ye).attr("transform",Je).attr("d",st+"Z");var yt=Qe.append("path").attr("class","zoombox-corners").style({fill:d.background,stroke:d.defaultLine,"stroke-width":1}).attr("transform",Je).attr("d","M0,0Z");if(Ye&&De.hasText){var qt=Qe.select(".label-temp");qt.empty()&&(qt=Qe.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Et=ze._uid+N.SELECTID,jt=[],Tt=ie(bt,De.xaxes,De.yaxes,De.subplot);Ne&&!ke.shiftKey&&(De._clearSubplotSelections=function(){if(Ie){var At=mt._id,Lt=tt._id;ye(bt,At,Lt,Tt);for(var Rt=(bt.layout||{}).selections||[],$t=[],Yt=!1,Xt=0;Xt<Rt.length;Xt++){var Bt=ze.selections[Xt];Bt.xref!==At||Bt.yref!==Lt?$t.push(Rt[Xt]):Yt=!0}Yt&&(bt._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",bt,{selections:$t}))}});var Ot=function(At){return At.plotinfo.fillRangeItems||ge(At.xaxes.concat(At.yaxes))}(De);De.moveFn=function(At,Lt){De._clearSubplotSelections&&(De._clearSubplotSelections(),De._clearSubplotSelections=void 0),Ke=Math.max(0,Math.min(Ft,Ze*At+ut)),nt=Math.max(0,Math.min(Vt,Ge*Lt+pt));var Rt=Math.abs(Ke-ut),$t=Math.abs(nt-pt);if(Ue){var Yt,Xt,Bt;if(at){var Wt=ze.selectdirection;switch(Yt=Wt==="any"?$t<Math.min(.6*Rt,E)?"h":Rt<Math.min(.6*$t,E)?"v":"d":Wt){case"h":Xt=lt?Vt/2:0,Bt=Vt;break;case"v":Xt=lt?Ft/2:0,Bt=Ft}}if(Ye)switch(ze.newshape.drawdirection){case"vertical":Yt="h",Xt=lt?Vt/2:0,Bt=Vt;break;case"horizontal":Yt="v",Xt=lt?Ft/2:0,Bt=Ft;break;case"ortho":Rt<$t?(Yt="h",Xt=pt,Bt=nt):(Yt="v",Xt=ut,Bt=Ke);break;default:Yt="d"}Yt==="h"?((ve=ct?S(lt,[Ke,Xt],[Ke,Bt]):[[ut,Xt],[ut,Bt],[Ke,Bt],[Ke,Xt]]).xmin=ct?Ke:Math.min(ut,Ke),ve.xmax=ct?Ke:Math.max(ut,Ke),ve.ymin=Math.min(Xt,Bt),ve.ymax=Math.max(Xt,Bt),yt.attr("d","M"+ve.xmin+","+(pt-E)+"h-4v"+2*E+"h4ZM"+(ve.xmax-1)+","+(pt-E)+"h4v"+2*E+"h-4Z")):Yt==="v"?((ve=ct?S(lt,[Xt,nt],[Bt,nt]):[[Xt,pt],[Xt,nt],[Bt,nt],[Bt,pt]]).xmin=Math.min(Xt,Bt),ve.xmax=Math.max(Xt,Bt),ve.ymin=ct?nt:Math.min(pt,nt),ve.ymax=ct?nt:Math.max(pt,nt),yt.attr("d","M"+(ut-E)+","+ve.ymin+"v-4h"+2*E+"v4ZM"+(ut-E)+","+(ve.ymax-1)+"v4h"+2*E+"v-4Z")):Yt==="d"&&((ve=ct?S(lt,[ut,pt],[Ke,nt]):[[ut,pt],[ut,nt],[Ke,nt],[Ke,pt]]).xmin=Math.min(ut,Ke),ve.xmax=Math.max(ut,Ke),ve.ymin=Math.min(pt,nt),ve.ymax=Math.max(pt,nt),yt.attr("d","M0,0Z"))}else Be&&(Mt.addPt([Ke,nt]),ve=Mt.filtered);if(De.selectionDefs&&De.selectionDefs.length?(wt=Te(De.mergedPolygons,ve,St),ve.subtract=St,zt=Y(De.selectionDefs.concat([ve]))):(wt=[ve],zt=G(ve)),k(Oe(wt,qe),Nt,De),at){var tn,cn=ce(bt,!1),ln=cn.eventData?cn.eventData.points.slice():[];cn=ce(bt,!1,zt,Tt,De),zt=cn.selectionTesters,We=cn.eventData,tn=Mt?Mt.filtered:ue(wt),z.throttle(Et,N.SELECTDELAY,function(){for(var an=(jt=Me(zt,Tt)).slice(),sn=0;sn<ln.length;sn++){for(var Zt=ln[sn],pn=!1,nn=0;nn<an.length;nn++)if(an[nn].curveNumber===Zt.curveNumber&&an[nn].pointNumber===Zt.pointNumber){pn=!0;break}pn||an.push(Zt)}an.length&&(We||(We={}),We.points=an),Ot(We,tn),function(Kt,Cn){Kt.emit("plotly_selecting",Cn)}(bt,We)})}},De.clickFn=function(At,Lt){if(yt.remove(),bt._fullLayout._activeShapeIndex>=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e<Tt.length;_e++)(Ve=Tt[_e])._module.selectPoints(Ve,!1);if(pe(bt,Tt),X(De),we(bt),Tt.length){var $t=Tt[0].xaxis,Yt=Tt[0].yaxis;if($t&&Yt){for(var Xt=[],Bt=bt._fullLayout.selections,Wt=0;Wt<Bt.length;Wt++){var tn=Bt[Wt];tn&&(tn.xref===$t._id&&tn.yref===Yt._id||Xt.push(tn))}Xt.length<Bt.length&&(bt._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",bt,{selections:Xt}))}}}else Rt.indexOf("select")>-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,c=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},c,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),c=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?c.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=c.decodeDate(_)),w=0;w<P.length;w++)(k=x[P[w].charAt(0)].drawn)!==void 0&&(!(T=P[w].substr(1).match(s.paramRE))||T.length<k||((M=_(T[k]))<S&&(S=M),M>C&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b<g.length;b++){var x,_,w=g[b];w._extremes={};var k=f.getRefType(w.xref),T=f.getRefType(w.yref);if(w.xref!=="paper"&&k!=="domain"){var M=w.xsizemode==="pixel"?w.xanchor:w.x0,S=w.xsizemode==="pixel"?w.xanchor:w.x1;(_=m(x=f.getFromId(y,w.xref),M,S,w.path,s.paramIsX))&&(w._extremes[x._id]=f.findExtremes(x,_,d(w)))}if(w.yref!=="paper"&&T!=="domain"){var C=w.ysizemode==="pixel"?w.yanchor:w.y0,P=w.ysizemode==="pixel"?w.yanchor:w.y1;(_=m(x=f.getFromId(y,w.yref),C,P,w.path,s.paramIsY))&&(w._extremes[x._id]=f.findExtremes(x,_,h(w)))}}}},21459:function(o){o.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},84726:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(89827),d=n(30477);function h(p,m,y){function v(L,q){return l.coerce(p,m,c,L,q)}if(m._isShape=!0,v("visible")){v("showlegend")&&(v("legend"),v("legendwidth"),v("legendgroup"),v("legendgrouptitle.text"),l.coerceFont(v,"legendgrouptitle.font"),v("legendrank"));var g=v("path"),b=v("type",g?"path":"rect"),x=b!=="path";x&&delete m.path,v("editable"),v("layer"),v("opacity"),v("fillcolor"),v("fillrule"),v("line.width")&&(v("line.color"),v("line.dash"));for(var _=v("xsizemode"),w=v("ysizemode"),k=["x","y"],T=0;T<2;T++){var M,S,C,P=k[T],D=P+"anchor",O=P==="x"?_:w,R={_fullLayout:y},F=f.coerceRef(p,m,R,P,void 0,"paper");if(f.getRefType(F)==="range"?((M=f.getFromId(R,F))._shapeIndices.push(m._index),C=d.rangeToShapePosition(M),S=d.shapePositionToRange(M)):S=C=l.identity,x){var A=P+"0",z=P+"1",B=p[A],$=p[z];p[A]=S(p[A],!0),p[z]=S(p[z],!0),O==="pixel"?(v(A,0),v(z,10)):(f.coercePosition(m,R,v,F,A,.25),f.coercePosition(m,R,v,F,z,.75)),m[A]=C(m[A]),m[z]=C(m[z]),p[A]=B,p[z]=$}if(O==="pixel"){var j=p[D];p[D]=S(p[D],!0),f.coercePosition(m,R,v,F,D,.25),m[D]=C(m[D]),p[D]=j}}x&&l.noneOrAll(p,m,["x0","x1","y0","y1"]);var N,E,W=b==="line";if(x&&(N=v("label.texttemplate")),N||(E=v("label.text")),E||N){v("label.textangle");var G=v("label.textposition",W?"middle":"middle center");v("label.xanchor"),v("label.yanchor",function(L,q){return L?"bottom":q.indexOf("top")!==-1?"top":q.indexOf("bottom")!==-1?"bottom":"middle"}(W,G)),v("label.padding"),l.coerceFont(v,"label.font",y.font)}}}o.exports=function(p,m){s(p,m,{name:"shapes",handleItemDefaults:h})}},48100:function(o,a,n){var l=n(71828),f=n(89298),s=n(63893),c=n(91424),d=n(60165).readPaths,h=n(30477),p=h.getPathString,m=n(37281),y=n(18783).FROM_TL;o.exports=function(v,g,b,x){if(x.selectAll(".shape-label").remove(),b.label.text||b.label.texttemplate){var _;if(b.label.texttemplate){var w={};if(b.type!=="path"){var k=f.getFromId(v,b.xref),T=f.getFromId(v,b.yref);for(var M in m){var S=m[M](b,k,T);S!==void 0&&(w[M]=S)}}_=l.texttemplateStringForShapes(b.label.texttemplate,{},v._fullLayout._d3locale,w)}else _=b.label.text;var C,P,D,O,R={"data-index":g},F=b.label.font,A=x.append("g").attr(R).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(_);if(b.path){var z=p(v,b),B=d(z,v);C=1/0,D=1/0,P=-1/0,O=-1/0;for(var $=0;$<B.length;$++)for(var j=0;j<B[$].length;j++)for(var N=B[$][j],E=1;E<N.length;E+=2){var W=N[E],G=N[E+1];C=Math.min(C,W),P=Math.max(P,W),D=Math.min(D,G),O=Math.max(O,G)}}else{var L=f.getFromId(v,b.xref),q=f.getRefType(b.xref),H=f.getFromId(v,b.yref),V=f.getRefType(b.yref),te=h.getDataToPixel(v,L,!1,q),ee=h.getDataToPixel(v,H,!0,V);C=te(b.x0),P=te(b.x1),D=ee(b.y0),O=ee(b.y1)}var U=b.label.textangle;U==="auto"&&(U=b.type==="line"?function(re,ie,le,se){var pe,Te;return Te=Math.abs(le-re),pe=le>=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(c.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":le<re?"right":"center":le>re?"right":le<re?"left":"center":J==="end"?ne==="auto"?le>re?"right":le<re?"left":"center":le>re?"left":le<re?"right":"center":"center");var Ae={bottom:-1,middle:0,top:1};if(ne==="auto"){var Ee=Ae[ke];ce=-de*ge*Ee,ye=de*be*Ee}else ce=de*{left:1,center:0,right:-1}[we],ye=de*Ae[ke];Oe+=ce,Me+=ye}else ce=de+3,J.indexOf("right")!==-1?(Oe=Math.max(re,le)-ce,we==="auto"&&(we="right")):J.indexOf("left")!==-1?(Oe=Math.min(re,le)+ce,we==="auto"&&(we="left")):(Oe=(re+le)/2,we==="auto"&&(we="center")),Me=J.indexOf("top")!==-1?Math.min(ie,se):J.indexOf("bottom")!==-1?Math.max(ie,se):(ie+se)/2,ye=de,ke==="bottom"?Me-=ye:ke==="top"&&(Me+=ye);var De=y[ke],Re=pe.label.font.size,Ie=Se.height;return{textx:Oe+(Ie*De-Re)*ge,texty:Me+-(Ie*De-Re)*be,xanchor:we}}(C,D,P,O,b,U,c.bBox(A.node())),Y=Q.textx,Z=Q.texty,X=Q.xanchor;A.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[X],y:Z,x:Y,transform:"rotate("+U+","+Y+","+Z+")"}).call(s.positionText,Y,Z)}}},42359:function(o,a,n){var l=n(71828).strTranslate,f=n(28569),s=n(64505),c=s.drawMode,d=s.selectMode,h=n(73972),p=n(7901),m=n(89995),y=m.i000,v=m.i090,g=m.i180,b=m.i270,x=n(51873).clearOutlineControllers,_=n(60165),w=_.pointsOnRectangle,k=_.pointsOnEllipse,T=_.writePaths,M=n(90551).newShapes,S=n(90551).createShapeObj,C=n(35855),P=n(48100);function D(O,R){var F,A,z,B=O[R][1],$=O[R][2],j=O.length;return A=O[F=(R+1)%j][1],z=O[F][2],A===B&&z===$&&(A=O[F=(R+2)%j][1],z=O[F][2]),[F,A,z]}o.exports=function O(R,F,A,z){z||(z=0);var B=A.gd;function $(){O(R,F,A,z++),(k(R[0])||A.hasText)&&j({redrawing:!0})}function j(pe){var Te={};A.isActiveShape!==void 0&&(A.isActiveShape=!1,Te=M(F,A)),A.isActiveSelection!==void 0&&(A.isActiveSelection=!1,Te=C(F,A),B._fullLayout._reselect=!0),Object.keys(Te).length&&h.call((pe||{}).redrawing?"relayout":"_guiRelayout",B,Te)}var N,E,W,G,L,q=B._fullLayout._zoomlayer,H=A.dragmode,V=c(H),te=d(H);if((V||te)&&(B._fullLayout._outlining=!0),x(B),F.attr("d",T(R)),z||!A.isActiveShape&&!A.isActiveSelection||(L=function(pe,Te){for(var Se=0;Se<Te.length;Se++){var Oe=Te[Se];pe[Se]=[];for(var Me=0;Me<Oe.length;Me++){pe[Se][Me]=[];for(var ce=0;ce<Oe[Me].length;ce++)pe[Se][Me][ce]=Oe[Me][ce]}}return pe}([],R),function(pe){N=[];for(var Te=0;Te<R.length;Te++){var Se=R[Te],Oe=w(Se),Me=!Oe&&k(Se);N[Te]=[];for(var ce=Se.length,ye=0;ye<ce;ye++)if(Se[ye][0]!=="Z"&&(!Me||ye===y||ye===v||ye===g||ye===b)){var J,ne=Oe&&A.isActiveSelection;ne&&(J=D(Se,ye));var de=Se[ye][1],xe=Se[ye][2],ue=pe.append(ne?"rect":"circle").attr("data-i",Te).attr("data-j",ye).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ne){var ge=J[1]-de,be=J[2]-xe,we=be?5:Math.max(Math.min(25,Math.abs(ge)-5),5),ke=ge?5:Math.max(Math.min(25,Math.abs(be)-5),5);ue.classed(be?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",we).attr("height",ke).attr("x",de-we/2).attr("y",xe-ke/2).attr("transform",l(ge/2,be/2))}else ue.classed("cursor-grab",!0).attr("r",5).attr("cx",de).attr("cy",xe);N[Te][ye]={element:ue.node(),gd:B,prepFn:Q,doneFn:Z,clickFn:X},f.init(N[Te][ye])}}}(q.append("g").attr("class","outline-controllers")),function(){E=[],R.length&&(E[0]={element:F[0][0],gd:B,prepFn:ie,doneFn:le,clickFn:se},f.init(E[0]))}()),V&&A.hasText){var ee=q.select(".label-temp"),U=S(F,A,A.dragmode);P(B,"label-temp",U,ee)}function Q(pe){W=+pe.srcElement.getAttribute("data-i"),G=+pe.srcElement.getAttribute("data-j"),N[W][G].moveFn=Y}function Y(pe,Te){if(R.length){var Se=L[W][G][1],Oe=L[W][G][2],Me=R[W],ce=Me.length;if(w(Me)){var ye=pe,J=Te;A.isActiveSelection&&(D(Me,G)[1]===Me[G][1]?J=0:ye=0);for(var ne=0;ne<ce;ne++)if(ne!==G){var de=Me[ne];de[1]===Me[G][1]&&(de[1]=Se+ye),de[2]===Me[G][2]&&(de[2]=Oe+J)}if(Me[G][1]=Se+ye,Me[G][2]=Oe+J,!w(Me))for(var xe=0;xe<ce;xe++)for(var ue=0;ue<Me[xe].length;ue++)Me[xe][ue]=L[W][xe][ue]}else Me[G][1]=Se+pe,Me[G][2]=Oe+Te;$()}}function Z(){j()}function X(pe,Te){if(pe===2){W=+Te.srcElement.getAttribute("data-i"),G=+Te.srcElement.getAttribute("data-j");var Se=R[W];w(Se)||k(Se)||function(){if(R.length&&R[W]&&R[W].length){for(var Oe=[],Me=0;Me<R[W].length;Me++)Me!==G&&Oe.push(R[W][Me]);Oe.length>1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;Me<R.length;Me++)for(var ce=0;ce<R[Me].length;ce++)for(var ye=0;ye+2<R[Me][ce].length;ye+=2)R[Me][ce][ye+1]=L[Me][ce][ye+1]+Se,R[Me][ce][ye+2]=L[Me][ce][ye+2]+Oe})(pe,Te),$()}function ie(pe){(W=+pe.srcElement.getAttribute("data-i"))||(W=0),E[W].moveFn=re}function le(){j()}function se(pe){pe===2&&function(Te){if(d(Te._fullLayout.dragmode)){x(Te);var Se=Te._fullLayout._activeSelectionIndex,Oe=(Te.layout||{}).selections||[];if(Se<Oe.length){for(var Me=[],ce=0;ce<Oe.length;ce++)ce!==Se&&Me.push(Oe[ce]);delete Te._fullLayout._activeSelectionIndex;var ye=Te._fullLayout.selections[Se];Te._fullLayout._deselect={xref:ye.xref,yref:ye.yref},h.call("_guiRelayout",Te,{selections:Me})}}}(B)}}},34031:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=n(89298),d=n(60165).readPaths,h=n(42359),p=n(48100),m=n(51873).clearOutlineControllers,y=n(7901),v=n(91424),g=n(44467).arrayEditor,b=n(28569),x=n(6964),_=n(21459),w=n(30477),k=w.getPathString;function T(R){var F=R._fullLayout;for(var A in F._shapeUpperLayer.selectAll("path").remove(),F._shapeLowerLayer.selectAll("path").remove(),F._shapeUpperLayer.selectAll("text").remove(),F._shapeLowerLayer.selectAll("text").remove(),F._plots){var z=F._plots[A].shapelayer;z&&(z.selectAll("path").remove(),z.selectAll("text").remove())}for(var B=0;B<F.shapes.length;B++)F.shapes[B].visible===!0&&C(R,B)}function M(R){return!!R._fullLayout._outlining}function S(R){return!R._context.edits.shapePosition}function C(R,F){R._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+F+'"]').remove();var A=w.makeShapesOptionsAndPlotinfo(R,F),z=A.options,B=A.plotinfo;function $(j){var N=k(R,z),E={"data-index":F,"fill-rule":z.fillrule,d:N},W=z.opacity,G=z.fillcolor,L=z.line.width?z.line.color:"rgba(0,0,0,0)",q=z.line.width,H=z.line.dash;q||z.editable!==!0||(q=5,H="solid");var V=N[N.length-1]!=="Z",te=S(R)&&z.editable&&R._fullLayout._activeShapeIndex===F;te&&(G=V?"rgba(0,0,0,0)":R._fullLayout.activeshape.fillcolor,W=R._fullLayout.activeshape.opacity);var ee,U=j.append("g").classed("shape-group",!0).attr({"data-index":F}),Q=U.append("path").attr(E).style("opacity",W).call(y.stroke,L).call(y.fill,G).call(v.dashLine,H,q);if(P(U,R,z),p(R,F,z,U),(te||R._context.edits.shapePosition)&&(ee=g(R.layout,"shapes",z)),te){Q.style({cursor:"move"});var Y={element:Q.node(),plotinfo:B,gd:R,editHelpers:ee,hasText:z.label.text||z.label.texttemplate,isActiveShape:!0},Z=d(N,R);h(Z,Q,Y)}else R._context.edits.shapePosition?function(X,re,ie,le,se,pe){var Te,Se,Oe,Me,ce,ye,J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee=10,De=10,Re=ie.xsizemode==="pixel",Ie=ie.ysizemode==="pixel",Be=ie.type==="line",Ue=ie.type==="path",qe=pe.modifyItem,Ye=l.select(re.node().parentNode),at=c.getFromId(X,ie.xref),lt=c.getRefType(ie.xref),ct=c.getFromId(X,ie.yref),bt=c.getRefType(ie.yref),ze=w.getDataToPixel(X,at,!1,lt),Ne=w.getDataToPixel(X,ct,!0,bt),Qe=w.getPixelToData(X,at,!1,lt),it=w.getPixelToData(X,ct,!0,bt),kt=Be?function(){var wt=10,ve=Math.max(ie.line.width,wt),_e=se.append("g").attr("data-index",le).attr("drag-helper",!0);_e.append("path").attr("d",re.attr("d")).style({cursor:"move","stroke-width":ve,"stroke-opacity":"0"});var Ve={"fill-opacity":"0"},We=Math.max(ve/2,wt);return _e.append("circle").attr({"data-line-point":"start-point",cx:Re?ze(ie.xanchor)+ie.x0:ze(ie.x0),cy:Ie?Ne(ie.yanchor)-ie.y0:Ne(ie.y0),r:We}).style(Ve).classed("cursor-grab",!0),_e.append("circle").attr({"data-line-point":"end-point",cx:Re?ze(ie.xanchor)+ie.x1:ze(ie.x1),cy:Ie?Ne(ie.yanchor)-ie.y1:Ne(ie.y1),r:We}).style(Ve).classed("cursor-grab",!0),_e}():re,Je={element:kt.node(),gd:X,prepFn:function(wt){M(X)||(Re&&(ce=ze(ie.xanchor)),Ie&&(ye=Ne(ie.yanchor)),ie.type==="path"?ke=ie.path:(Te=Re?ie.x0:ze(ie.x0),Se=Ie?ie.y0:Ne(ie.y0),Oe=Re?ie.x1:ze(ie.x1),Me=Ie?ie.y1:Ne(ie.y1)),Te<Oe?(de=Te,be="x0",xe=Oe,we="x1"):(de=Oe,be="x1",xe=Te,we="x0"),!Ie&&Se<Me||Ie&&Se>Me?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=c.getFromId(Ve,We),Ke=c.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F<A.length){for(var z=[],B=0;B<A.length;B++)B!==F&&z.push(A[B]);return delete R._fullLayout._activeShapeIndex,f.call("_guiRelayout",R,{shapes:z})}}},drawLabel:p}},29241:function(o,a,n){var l=n(30962).overrideAll,f=n(9012),s=n(41940),c=n(79952).P,d=n(1426).extendFlat,h=n(5386).R,p=n(37281);o.exports=l({newshape:{visible:d({},f.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:d({},f.legend,{}),legendgroup:d({},f.legendgroup,{}),legendgrouptitle:{text:d({},f.legendgrouptitle.text,{}),font:s({})},legendrank:d({},f.legendrank,{}),legendwidth:d({},f.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:d({},c,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:d({},f.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:h({newshape:!0},{keys:Object.keys(p)}),font:s({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},89995:function(o){o.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},45547:function(o,a,n){var l=n(7901),f=n(71828);o.exports=function(s,c,d){if(d("newshape.visible"),d("newshape.name"),d("newshape.showlegend"),d("newshape.legend"),d("newshape.legendwidth"),d("newshape.legendgroup"),d("newshape.legendgrouptitle.text"),f.coerceFont(d,"newshape.legendgrouptitle.font"),d("newshape.legendrank"),d("newshape.drawdirection"),d("newshape.layer"),d("newshape.fillcolor"),d("newshape.fillrule"),d("newshape.opacity"),d("newshape.line.width")){var h=(s||{}).plot_bgcolor||"#FFF";d("newshape.line.color",l.contrast(h)),d("newshape.line.dash")}var p=s.dragmode==="drawline",m=d("newshape.label.text"),y=d("newshape.label.texttemplate");if(m||y){d("newshape.label.textangle");var v=d("newshape.label.textposition",p?"middle":"middle center");d("newshape.label.xanchor"),d("newshape.label.yanchor",function(g,b){return g?"bottom":b.indexOf("top")!==-1?"top":b.indexOf("bottom")!==-1?"bottom":"middle"}(p,v)),d("newshape.label.padding"),f.coerceFont(d,"newshape.label.font",c.font)}d("activeshape.fillcolor"),d("activeshape.opacity")}},60165:function(o,a,n){var l=n(95616),f=n(89995),s=f.CIRCLE_SIDES,c=f.SQRT2,d=n(75549),h=d.p2r,p=d.r2p,m=[0,3,4,5,6,1,2],y=[0,3,4,1,2];function v(b,x){return Math.abs(b-x)<=1e-6}function g(b,x){var _=x[1]-b[1],w=x[2]-b[2];return Math.sqrt(_*_+w*w)}a.writePaths=function(b){var x=b.length;if(!x)return"M0,0Z";for(var _="",w=0;w<x;w++)for(var k=b[w].length,T=0;T<k;T++){var M=b[w][T][0];if(M==="Z")_+="Z";else for(var S=b[w][T].length,C=0;C<S;C++){var P=C;M==="Q"||M==="S"?P=y[C]:M==="C"&&(P=m[C]),_+=b[w][T][P],C>0&&C<S-1&&(_+=",")}}return _},a.readPaths=function(b,x,_,w){var k,T,M,S=l(b),C=[],P=-1,D=0,O=0,R=function(){T=D,M=O};R();for(var F=0;F<S.length;F++){var A,z,B,$,j=[],N=S[F][0],E=N;switch(N){case"M":C[++P]=[],D=+S[F][1],O=+S[F][2],j.push([E,D,O]),R();break;case"Q":case"S":A=+S[F][1],B=+S[F][2],D=+S[F][3],O=+S[F][4],j.push([E,D,O,A,B]);break;case"C":A=+S[F][1],B=+S[F][2],z=+S[F][3],$=+S[F][4],D=+S[F][5],O=+S[F][6],j.push([E,D,O,A,B,z,$]);break;case"T":case"L":D=+S[F][1],O=+S[F][2],j.push([E,D,O]);break;case"H":E="L",D=+S[F][1],j.push([E,D,O]);break;case"V":E="L",O=+S[F][1],j.push([E,D,O]);break;case"A":E="L";var W=+S[F][1],G=+S[F][2];+S[F][4]||(W=-W,G=-G);var L=D-W,q=O;for(k=1;k<=s/2;k++){var H=2*Math.PI*k/s;j.push([E,L+W*Math.cos(H),q+G*Math.sin(H)])}break;case"Z":D===T&&O===M||(D=T,O=M,j.push([E,D,O]))}for(var V=(_||{}).domain,te=x._fullLayout._size,ee=_&&_.xsizemode==="pixel",U=_&&_.ysizemode==="pixel",Q=w===!1,Y=0;Y<j.length;Y++){for(k=0;k+2<7;k+=2){var Z=j[Y][k+1],X=j[Y][k+2];Z!==void 0&&X!==void 0&&(D=Z,O=X,_&&(_.xaxis&&_.xaxis.p2r?(Q&&(Z-=_.xaxis._offset),Z=ee?p(_.xaxis,_.xanchor)+Z:h(_.xaxis,Z)):(Q&&(Z-=te.l),V?Z=V.x[0]+Z/te.w:Z/=te.w),_.yaxis&&_.yaxis.p2r?(Q&&(X-=_.yaxis._offset),X=U?p(_.yaxis,_.yanchor)-X:h(_.yaxis,X)):(Q&&(X-=te.t),X=V?V.y[1]-X/te.h:1-X/te.h)),j[Y][k+1]=Z,j[Y][k+2]=X)}C[P].push(j[Y].slice())}}return C},a.pointsOnRectangle=function(b){if(b.length!==5)return!1;for(var x=1;x<3;x++)if(!v(b[0][x]-b[1][x],b[3][x]-b[2][x])||!v(b[0][x]-b[3][x],b[1][x]-b[2][x]))return!1;return!(!v(b[0][1],b[1][1])&&!v(b[0][1],b[3][1])||!(g(b[0],b[1])*g(b[0],b[3])))},a.pointsOnEllipse=function(b){var x=b.length;if(x!==s+1)return!1;x=s;for(var _=0;_<x;_++){var w=(2*x-_)%x,k=(x/2+w)%x,T=(x/2+_)%x;if(!v(g(b[_],b[T]),g(b[w],b[k])))return!1}return!0},a.handleEllipse=function(b,x,_){if(!b)return[x,_];var w=a.ellipseOver({x0:x[0],y0:x[1],x1:_[0],y1:_[1]}),k=(w.x1+w.x0)/2,T=(w.y1+w.y0)/2,M=(w.x1-w.x0)/2,S=(w.y1-w.y0)/2;M||(M=S/=c),S||(S=M/=c);for(var C=[],P=0;P<s;P++){var D=2*P*Math.PI/s;C.push([k+M*Math.cos(D),T+S*Math.sin(D)])}return C},a.ellipseOver=function(b){var x=b.x0,_=b.y0,w=b.x1,k=b.y1,T=w-x,M=k-_,S=((x-=T)+w)/2,C=((_-=M)+k)/2;return{x0:S-(T*=c),y0:C-(M*=c),x1:S+T,y1:C+M}},a.fixDatesForPaths=function(b,x,_){var w=x.type==="date",k=_.type==="date";if(!w&&!k)return b;for(var T=0;T<b.length;T++)for(var M=0;M<b[T].length;M++)for(var S=0;S+2<b[T][M].length;S+=2)w&&(b[T][M][S+1]=b[T][M][S+1].replace(" ","_")),k&&(b[T][M][S+2]=b[T][M][S+2].replace(" ","_"));return b}},90551:function(o,a,n){var l=n(64505),f=l.drawMode,s=l.openMode,c=n(89995),d=c.i000,h=c.i090,p=c.i180,m=c.i270,y=c.cos45,v=c.sin45,g=n(75549),b=g.p2r,x=g.r2p,_=n(51873).clearOutline,w=n(60165),k=w.readPaths,T=w.writePaths,M=w.ellipseOver,S=w.fixDatesForPaths;function C(P,D,O){var R,F=P[0][0],A=D.gd,z=F.getAttribute("d"),B=A._fullLayout.newshape,$=D.plotinfo,j=D.isActiveShape,N=$.xaxis,E=$.yaxis,W=!!$.domain||!$.xaxis,G=!!$.domain||!$.yaxis,L=s(O),q=k(z,A,$,j),H={editable:!0,visible:B.visible,name:B.name,showlegend:B.showlegend,legend:B.legend,legendwidth:B.legendwidth,legendgroup:B.legendgroup,legendgrouptitle:{text:B.legendgrouptitle.text,font:B.legendgrouptitle.font},legendrank:B.legendrank,label:B.label,xref:W?"paper":N._id,yref:G?"paper":E._id,layer:B.layer,opacity:B.opacity,line:{color:B.line.color,width:B.line.width,dash:B.line.dash}};if(L||(H.fillcolor=B.fillcolor,H.fillrule=B.fillrule),q.length===1&&(R=q[0]),R&&R.length===5&&O==="drawrect")H.type="rect",H.x0=R[0][1],H.y0=R[0][2],H.x1=R[2][1],H.y1=R[2][2];else if(R&&O==="drawline")H.type="line",H.x0=R[0][1],H.y0=R[0][2],H.x1=R[1][1],H.y1=R[1][2];else if(R&&O==="drawcircle"){H.type="circle";var V=R[d][1],te=R[h][1],ee=R[p][1],U=R[m][1],Q=R[d][2],Y=R[h][2],Z=R[p][2],X=R[m][2],re=$.xaxis&&($.xaxis.type==="date"||$.xaxis.type==="log"),ie=$.yaxis&&($.yaxis.type==="date"||$.yaxis.type==="log");re&&(V=x($.xaxis,V),te=x($.xaxis,te),ee=x($.xaxis,ee),U=x($.xaxis,U)),ie&&(Q=x($.yaxis,Q),Y=x($.yaxis,Y),Z=x($.yaxis,Z),X=x($.yaxis,X));var le=(te+U)/2,se=(Q+Z)/2,pe=M({x0:le,y0:se,x1:le+(U-te+ee-V)/2*y,y1:se+(X-Y+Z-Q)/2*v});re&&(pe.x0=b($.xaxis,pe.x0),pe.x1=b($.xaxis,pe.x1)),ie&&(pe.y0=b($.yaxis,pe.y0),pe.y1=b($.yaxis,pe.y1)),H.x0=pe.x0,H.y0=pe.y0,H.x1=pe.x1,H.y1=pe.y1}else H.type="path",N&&E&&S(q,N,E),H.path=T(q),R=null;return H}o.exports={newShapes:function(P,D){if(P.length&&P[0][0]){var O=D.gd,R=D.isActiveShape,F=D.dragmode,A=(O.layout||{}).shapes||[];if(!f(F)&&R!==void 0){var z=O._fullLayout._activeShapeIndex;if(z<A.length)switch(O._fullLayout.shapes[z].type){case"rect":F="drawrect";break;case"circle":F="drawcircle";break;case"line":F="drawline";break;case"path":var B=A[z].path||"";F=B[B.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var $=C(P,D,F);_(O);for(var j=D.editHelpers,N=(j||{}).modifyItem,E=[],W=0;W<A.length;W++){var G=O._fullLayout.shapes[W];if(E[W]=G._input,R!==void 0&&W===O._fullLayout._activeShapeIndex){var L=$;switch(G.type){case"line":case"rect":case"circle":N("x0",L.x0),N("x1",L.x1),N("y0",L.y0),N("y1",L.y1);break;case"path":N("path",L.path)}}}return R===void 0?(E.push($),E):j?j.getUpdateObj():{}}},createShapeObj:C}},51873:function(o){o.exports={clearOutlineControllers:function(a){var n=a._fullLayout._zoomlayer;n&&n.selectAll(".outline-controllers").remove()},clearOutline:function(a){var n=a._fullLayout._zoomlayer;n&&n.selectAll(".select-outline").remove(),a._fullLayout._outlining=!1}}},30477:function(o,a,n){var l=n(21459),f=n(71828),s=n(89298);a.rangeToShapePosition=function(c){return c.type==="log"?c.r2d:function(d){return d}},a.shapePositionToRange=function(c){return c.type==="log"?c.d2r:function(d){return d}},a.decodeDate=function(c){return function(d){return d.replace&&(d=d.replace("_"," ")),c(d)}},a.encodeDate=function(c){return function(d){return c(d).replace(" ","_")}},a.extractPathCoords=function(c,d,h){var p=[];return c.match(l.segmentRE).forEach(function(m){var y=d[m.charAt(0)].drawn;if(y!==void 0){var v=m.substr(1).match(l.paramRE);if(v&&!(v.length<y)){var g=v[y],b=h?g:f.cleanNumber(g);p.push(b)}}}),p},a.getDataToPixel=function(c,d,h,p){var m,y=c._fullLayout._size;if(d)if(p==="domain")m=function(g){return d._length*(h?1-g:g)+d._offset};else{var v=a.shapePositionToRange(d);m=function(g){return d._offset+d.r2p(v(g,!0))},d.type==="date"&&(m=a.decodeDate(m))}else m=h?function(g){return y.t+y.h*(1-g)}:function(g){return y.l+y.w*g};return m},a.getPixelToData=function(c,d,h,p){var m,y=c._fullLayout._size;if(d)if(p==="domain")m=function(g){var b=(g-d._offset)/d._length;return h?1-b:b};else{var v=a.rangeToShapePosition(d);m=function(g){return v(d.p2r(g-d._offset))}}else m=h?function(g){return 1-(g-y.t)/y.h}:function(g){return(g-y.l)/y.w};return m},a.roundPositionForSharpStrokeRendering=function(c,d){var h=Math.round(d%2)===1,p=Math.round(c);return h?p+.5:p},a.makeShapesOptionsAndPlotinfo=function(c,d){var h=c._fullLayout.shapes[d]||{},p=c._fullLayout._plots[h.xref+h.yref];return p?p._hadPlotinfo=!0:(p={},h.xref&&h.xref!=="paper"&&(p.xaxis=c._fullLayout[h.xref+"axis"]),h.yref&&h.yref!=="paper"&&(p.yaxis=c._fullLayout[h.yref+"axis"])),p.xsizemode=h.xsizemode,p.ysizemode=h.ysizemode,p.xanchor=h.xanchor,p.yanchor=h.yanchor,{options:h,plotinfo:p}},a.makeSelectionsOptionsAndPlotinfo=function(c,d){var h=c._fullLayout.selections[d]||{},p=c._fullLayout._plots[h.xref+h.yref];return p?p._hadPlotinfo=!0:(p={},h.xref&&(p.xaxis=c._fullLayout[h.xref+"axis"]),h.yref&&(p.yaxis=c._fullLayout[h.yref+"axis"])),{options:h,plotinfo:p}},a.getPathString=function(c,d){var h,p,m,y,v,g,b,x,_=d.type,w=s.getRefType(d.xref),k=s.getRefType(d.yref),T=s.getFromId(c,d.xref),M=s.getFromId(c,d.yref),S=c._fullLayout._size;if(T?w==="domain"?p=function(B){return T._offset+T._length*B}:(h=a.shapePositionToRange(T),p=function(B){return T._offset+T.r2p(h(B,!0))}):p=function(B){return S.l+S.w*B},M?k==="domain"?y=function(B){return M._offset+M._length*(1-B)}:(m=a.shapePositionToRange(M),y=function(B){return M._offset+M.r2p(m(B,!0))}):y=function(B){return S.t+S.h*(1-B)},_==="path")return T&&T.type==="date"&&(p=a.decodeDate(p)),M&&M.type==="date"&&(y=a.decodeDate(y)),function(B,$,j){var N=B.path,E=B.xsizemode,W=B.ysizemode,G=B.xanchor,L=B.yanchor;return N.replace(l.segmentRE,function(q){var H=0,V=q.charAt(0),te=l.paramIsX[V],ee=l.paramIsY[V],U=l.numParams[V],Q=q.substr(1).replace(l.paramRE,function(Y){return te[H]?Y=E==="pixel"?$(G)+Number(Y):$(Y):ee[H]&&(Y=W==="pixel"?j(L)-Number(Y):j(Y)),++H>U&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,c){return c?c.d2l(s):s}function n(s,c){return c?c.l2d(s):s}function l(s,c){return a(s.x1,c)-a(s.x0,c)}function f(s,c,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,c,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,c)},dx:l,dy:f,width:function(s,c){return Math.abs(l(s,c))},height:function(s,c,d){return Math.abs(f(s,0,d))},length:function(s,c,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,c),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,c){return n((a(s.x1,c)+a(s.x0,c))/2,c)},ycenter:function(s,c,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,c=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),c=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_<b.length;_++)b[_].visible&&x++;if(x<2?y.visible=!1:g("visible")){y._stepCount=x;var w=y._visibleSteps=l.filterVisible(b);(b[g("active")]||{}).visible||(y.active=w[0]._index),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("len"),g("lenmode"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("currentvalue.visible")&&(g("currentvalue.xanchor"),g("currentvalue.prefix"),g("currentvalue.suffix"),g("currentvalue.offset"),l.coerceFont(g,"currentvalue.font",y.font)),g("transition.duration"),g("transition.easing"),g("bgcolor"),g("activebgcolor"),g("bordercolor"),g("borderwidth"),g("ticklen"),g("tickwidth"),g("tickcolor"),g("minorticklen")}}function p(m,y){function v(b,x){return l.coerce(m,y,d,b,x)}if(m.method==="skip"||Array.isArray(m.args)?v("visible"):y.visible=!1){v("method"),v("args");var g=v("label","step-"+y._index);v("value",g),v("execute")}}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},44504:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=d.strTranslate,p=n(63893),m=n(44467).arrayEditor,y=n(98292),v=n(18783),g=v.LINE_SPACING,b=v.FROM_TL,x=v.FROM_BR;function _(j){return y.autoMarginIdRoot+j._index}function w(j){return j._index}function k(j,N){var E=c.tester.selectAll("g."+y.labelGroupClass).data(N._visibleSteps);E.enter().append("g").classed(y.labelGroupClass,!0);var W=0,G=0;E.each(function(Y){var Z=S(l.select(this),{step:Y},N).node();if(Z){var X=c.bBox(Z);G=Math.max(G,X.height),W=Math.max(W,X.width)}}),E.remove();var L=N._dims={};L.inputAreaWidth=Math.max(y.railWidth,y.gripHeight);var q=j._fullLayout._size;L.lx=q.l+q.w*N.x,L.ly=q.t+q.h*(1-N.y),N.lenmode==="fraction"?L.outerLength=Math.round(q.w*N.len):L.outerLength=N.len,L.inputAreaStart=0,L.inputAreaLength=Math.round(L.outerLength-N.pad.l-N.pad.r);var H=(L.inputAreaLength-2*y.stepInset)/(N._stepCount-1),V=W+y.labelPadding;if(L.labelStride=Math.max(1,Math.ceil(V/H)),L.labelHeight=G,L.currentValueMaxWidth=0,L.currentValueHeight=0,L.currentValueTotalHeight=0,L.currentValueMaxLines=1,N.currentvalue.visible){var te=c.tester.append("g");E.each(function(Y){var Z=T(te,N,Y.label),X=Z.node()&&c.bBox(Z.node())||{width:0,height:0},re=p.lineCount(Z);L.currentValueMaxWidth=Math.max(L.currentValueMaxWidth,Math.ceil(X.width)),L.currentValueHeight=Math.max(L.currentValueHeight,Math.ceil(X.height)),L.currentValueMaxLines=Math.max(L.currentValueMaxLines,re)}),L.currentValueTotalHeight=L.currentValueHeight+N.currentvalue.offset,te.remove()}L.height=L.currentValueTotalHeight+y.tickOffset+N.ticklen+y.labelOffset+L.labelHeight+N.pad.t+N.pad.b;var ee="left";d.isRightAnchor(N)&&(L.lx-=L.outerLength,ee="right"),d.isCenterAnchor(N)&&(L.lx-=L.outerLength/2,ee="center");var U="top";d.isBottomAnchor(N)&&(L.ly-=L.height,U="bottom"),d.isMiddleAnchor(N)&&(L.ly-=L.height/2,U="middle"),L.outerLength=Math.ceil(L.outerLength),L.height=Math.ceil(L.height),L.lx=Math.round(L.lx),L.ly=Math.round(L.ly);var Q={y:N.y,b:L.height*x[U],t:L.height*b[U]};N.lenmode==="fraction"?(Q.l=0,Q.xl=N.x-N.len*b[ee],Q.r=0,Q.xr=N.x+N.len*x[ee]):(Q.x=N.x,Q.l=L.outerLength*b[ee],Q.r=L.outerLength*x[ee]),f.autoMargin(j,_(N),Q)}function T(j,N,E){if(N.currentvalue.visible){var W,G,L=N._dims;switch(N.currentvalue.xanchor){case"right":W=L.inputAreaLength-y.currentValueInset-L.currentValueMaxWidth,G="left";break;case"center":W=.5*L.inputAreaLength,G="middle";break;default:W=y.currentValueInset,G="left"}var q=d.ensureSingle(j,"text",y.labelClass,function(Q){Q.attr({"text-anchor":G,"data-notex":1})}),H=N.currentvalue.prefix?N.currentvalue.prefix:"";if(typeof E=="string")H+=E;else{var V=N.steps[N.active].label,te=N._gd._fullLayout._meta;te&&(V=d.templateString(V,te)),H+=V}N.currentvalue.suffix&&(H+=N.currentvalue.suffix),q.call(c.font,N.currentvalue.font).text(H).call(p.convertToTspans,N._gd);var ee=p.lineCount(q),U=(L.currentValueMaxLines+1-ee)*N.currentvalue.font.size*g;return p.positionText(q,W,U),q}}function M(j,N,E){d.ensureSingle(j,"rect",y.gripRectClass,function(W){W.call(O,N,j,E).style("pointer-events","all")}).attr({width:y.gripWidth,height:y.gripHeight,rx:y.gripRadius,ry:y.gripRadius}).call(s.stroke,E.bordercolor).call(s.fill,E.bgcolor).style("stroke-width",E.borderwidth+"px")}function S(j,N,E){var W=d.ensureSingle(j,"text",y.labelClass,function(q){q.attr({"text-anchor":"middle","data-notex":1})}),G=N.step.label,L=E._gd._fullLayout._meta;return L&&(G=d.templateString(G,L)),W.call(c.font,E.font).text(G).call(p.convertToTspans,E._gd),W}function C(j,N){var E=d.ensureSingle(j,"g",y.labelsClass),W=N._dims,G=E.selectAll("g."+y.labelGroupClass).data(W.labelSteps);G.enter().append("g").classed(y.labelGroupClass,!0),G.exit().remove(),G.each(function(L){var q=l.select(this);q.call(S,L,N),c.setTranslate(q,A(N,L.fraction),y.tickOffset+N.ticklen+N.font.size*g+y.labelOffset+W.currentValueTotalHeight)})}function P(j,N,E,W,G){var L=Math.round(W*(E._stepCount-1)),q=E._visibleSteps[L]._index;q!==E.active&&D(j,N,E,q,!0,G)}function D(j,N,E,W,G,L){var q=E.active;E.active=W,m(j.layout,y.name,E).applyUpdate("active",W);var H=E.steps[E.active];N.call(F,E,L),N.call(T,E),j.emit("plotly_sliderchange",{slider:E,step:E.steps[E.active],interaction:G,previousActive:q}),H&&H.method&&G&&(N._nextMethod?(N._nextMethod.step=H,N._nextMethod.doCallback=G,N._nextMethod.doTransition=L):(N._nextMethod={step:H,doCallback:G,doTransition:L},N._nextMethodRaf=window.requestAnimationFrame(function(){var V=N._nextMethod.step;V.method&&(V.execute&&f.executeAPICommand(j,V.method,V.args),N._nextMethod=null,N._nextMethodRaf=null)})))}function O(j,N,E){if(!N._context.staticPlot){var W=E.node(),G=l.select(N);j.on("mousedown",q),j.on("touchstart",q)}function L(){return E.data()[0]}function q(){var H=L();N.emit("plotly_sliderstart",{slider:H});var V=E.select("."+y.gripRectClass);l.event.stopPropagation(),l.event.preventDefault(),V.call(s.fill,H.activebgcolor);var te=z(H,l.mouse(W)[0]);function ee(){var Q=L(),Y=z(Q,l.mouse(W)[0]);P(N,E,Q,Y,!1)}function U(){var Q=L();Q._dragging=!1,V.call(s.fill,Q.bgcolor),G.on("mouseup",null),G.on("mousemove",null),G.on("touchend",null),G.on("touchmove",null),N.emit("plotly_sliderend",{slider:Q,step:Q.steps[Q.active]})}P(N,E,H,te,!0),H._dragging=!0,G.on("mousemove",ee),G.on("touchmove",ee),G.on("mouseup",U),G.on("touchend",U)}}function R(j,N){var E=j.selectAll("rect."+y.tickRectClass).data(N._visibleSteps),W=N._dims;E.enter().append("rect").classed(y.tickRectClass,!0),E.exit().remove(),E.attr({width:N.tickwidth+"px","shape-rendering":"crispEdges"}),E.each(function(G,L){var q=L%W.labelStride==0,H=l.select(this);H.attr({height:q?N.ticklen:N.minorticklen}).call(s.fill,N.tickcolor),c.setTranslate(H,A(N,L/(N._stepCount-1))-.5*N.tickwidth,(q?y.tickOffset:y.minorTickOffset)+W.currentValueTotalHeight)})}function F(j,N,E){for(var W=j.select("rect."+y.gripRectClass),G=0,L=0;L<N._stepCount;L++)if(N._visibleSteps[L]._index===N.active){G=L;break}var q=A(N,G/(N._stepCount-1));if(!N._invokingCommand){var H=W;E&&N.transition.duration>0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),c.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),c.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y<U.length;Y++){var Z=U[Y];Z.visible&&(Z._gd=ee,Q.push(Z))}return Q}(E,j),G=E._infolayer.selectAll("g."+y.containerClassName).data(W.length>0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H<W.length;H++){var V=W[H];k(j,V)}q.each(function(te){var ee=l.select(this);(function(U){var Q=U._dims;Q.labelSteps=[];for(var Y=U._stepCount,Z=0;Z<Y;Z+=Q.labelStride)Q.labelSteps.push({fraction:Z/(Y-1),step:U._visibleSteps[Z]})})(te),f.manageCommandObserver(j,te,te._visibleSteps,function(U){var Q=ee.data()[0];Q.active!==U.index&&(Q._dragging||D(j,ee,Q,U.index,!1,!0))}),function(U,Q,Y){(Y.steps[Y.active]||{}).visible||(Y.active=Y._visibleSteps[0]._index),Q.call(T,Y).call($,Y).call(C,Y).call(R,Y).call(B,U,Y).call(M,U,Y);var Z=Y._dims;c.setTranslate(Q,Z.lx+Y.pad.l,Z.ly+Y.pad.t),Q.call(F,Y,!1),Q.call(T,Y)}(j,l.select(this),te)})}}},23243:function(o,a,n){var l=n(98292);o.exports={moduleType:"component",name:l.name,layoutAttributes:n(75067),supplyLayoutDefaults:n(12343),draw:n(44504)}},92998:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(91424),m=n(7901),y=n(63893),v=n(37822),g=n(18783).OPPOSITE_SIDE,b=/ [XY][0-9]* /;o.exports={draw:function(x,_,w){var k,T=w.propContainer,M=w.propName,S=w.placeholder,C=w.traceIndex,P=w.avoid||{},D=w.attributes,O=w.transform,R=w.containerGroup,F=x._fullLayout,A=1,z=!1,B=T.title,$=(B&&B.text?B.text:"").trim(),j=B&&B.font?B.font:{},N=j.family,E=j.size,W=j.color;M==="title.text"?k="titleText":M.indexOf("axis")!==-1?k="axisTitleText":M.indexOf(!0)&&(k="colorbarTitleText");var G=x._context.edits[k];$===""?A=0:$.replace(b," % ")===S.replace(b," % ")&&(A=.2,z=!0,G||($="")),w._meta?$=d.templateString($,w._meta):F._meta&&($=d.templateString($,F._meta));var L,q=$||G;R||(R=d.ensureSingle(F._infolayer,"g","g-"+_),L=F._hColorbarMoveTitle);var H=R.selectAll("text").data(q?[0]:[]);if(H.enter().append("text"),H.text($).attr("class",_),H.exit().remove(),!q)return R;function V(U){d.syncOrAsync([te,ee],U)}function te(U){var Q;return!O&&L&&(O={}),O?(Q="",O.rotate&&(Q+="rotate("+[O.rotate,D.x,D.y]+")"),(O.offset||L)&&(Q+=h(0,(O.offset||0)-(L||0)))):Q=null,U.attr("transform",Q),U.style({"font-family":N,"font-size":l.round(E,2)+"px",fill:m.rgb(W),opacity:A*m.opacity(W),"font-weight":s.fontWeight}).attr(D).call(y.convertToTspans,x),s.previousPromises(x)}function ee(U){var Q=l.select(U.node().parentNode);if(P&&P.selection&&P.side&&$){Q.attr("transform",null);var Y=g[P.side],Z=P.side==="left"||P.side==="top"?-1:1,X=f(P.pad)?P.pad:2,re=p.bBox(Q.node()),ie={t:0,b:0,l:0,r:0},le=x._fullLayout._reservedMargin;for(var se in le)for(var pe in le[se]){var Te=le[se][pe];ie[pe]=Math.max(ie[pe],Te)}var Se={left:ie.l,top:ie.t,right:F.width-ie.r,bottom:F.height-ie.b},Oe=P.maxShift||Z*(Se[P.side]-re[P.side]),Me=0;if(Oe<0)Me=Oe;else{var ce=P.offsetLeft||0,ye=P.offsetTop||0;re.left-=ce,re.right-=ce,re.top-=ye,re.bottom-=ye,P.selection.each(function(){var ne=p.bBox(this);d.bBoxIntersect(re,ne,X)&&(Me=Math.max(Me,Z*(ne[P.side]-re[Y])+X))}),Me=Math.min(Oe,Me),T._titleScoot=Math.abs(Me)}if(Me>0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?c.call("_guiRestyle",x,M,U,C):c.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,c=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),c=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(c.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),c.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe<Me;pe++)se+=Oe.heights[pe]+y.gapButton;else for(le=0,pe=0;pe<Me;pe++)le+=Oe.widths[pe]+y.gapButton;X.enable(ie,le,se),X.hbar&&X.hbar.attr("opacity","0").transition().attr("opacity","1"),X.vbar&&X.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,$,j,U):function(Q){var Y=!!Q.hbar,Z=!!Q.vbar;Y&&Q.hbar.transition().attr("opacity","0").each("end",function(){Y=!1,Z||Q.disable()}),Z&&Q.vbar.transition().attr("opacity","0").each("end",function(){Z=!1,Y||Q.disable()})}($))}function k(A,z,B,$){A.call(T,z).call(M,z,B,$)}function T(A,z){d.ensureSingle(A,"rect",y.itemRectClassName,function(B){B.attr({rx:y.rx,ry:y.ry,"shape-rendering":"crispEdges"})}).call(s.stroke,z.bordercolor).call(s.fill,z.bgcolor).style("stroke-width",z.borderwidth+"px")}function M(A,z,B,$){var j=d.ensureSingle(A,"text",y.itemTextClassName,function(W){W.attr({"text-anchor":"start","data-notex":1})}),N=B.label,E=$._fullLayout._meta;E&&(N=d.templateString(N,E)),j.call(c.font,z.font).text(N).call(h.convertToTspans,$)}function S(A,z){var B=z.active;A.each(function($,j){var N=l.select(this);j===B&&z.showactive&&N.select("rect."+y.itemRectClassName).call(s.fill,y.activeColor)})}function C(A){A.select("rect."+y.itemRectClassName).call(s.fill,y.hoverColor)}function P(A,z){A.select("rect."+y.itemRectClassName).call(s.fill,z.bgcolor)}function D(A,z){var B=z._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},$=c.tester.selectAll("g."+y.dropdownButtonClassName).data(d.filterVisible(z.buttons));$.enter().append("g").classed(y.dropdownButtonClassName,!0);var j=["up","down"].indexOf(z.direction)!==-1;$.each(function(q,H){var V=l.select(this);V.call(k,z,q,A);var te=V.select("."+y.itemTextClassName),ee=te.node()&&c.bBox(te.node()).width,U=Math.max(ee+y.textPadX,y.minWidth),Q=z.font.size*m,Y=h.lineCount(te),Z=Math.max(Q*Y,y.minHeight)+y.textOffsetY;Z=Math.ceil(Z),U=Math.ceil(U),B.widths[H]=U,B.heights[H]=Z,B.height1=Math.max(B.height1,Z),B.width1=Math.max(B.width1,U),j?(B.totalWidth=Math.max(B.totalWidth,U),B.openWidth=B.totalWidth,B.totalHeight+=Z+y.gapButton,B.openHeight+=Z+y.gapButton):(B.totalWidth+=U+y.gapButton,B.openWidth+=U+y.gapButton,B.totalHeight=Math.max(B.totalHeight,Z),B.openHeight=B.totalHeight)}),j?B.totalHeight-=y.gapButton:B.totalWidth-=y.gapButton,B.headerWidth=B.width1+y.arrowPadX,B.headerHeight=B.height1,z.type==="dropdown"&&(j?(B.width1+=y.arrowPadX,B.totalHeight=B.height1):B.totalWidth=B.width1,B.totalWidth+=y.arrowPadX),$.remove();var N=B.totalWidth+z.pad.l+z.pad.r,E=B.totalHeight+z.pad.t+z.pad.b,W=A._fullLayout._size;B.lx=W.l+W.w*z.x,B.ly=W.t+W.h*(1-z.y);var G="left";d.isRightAnchor(z)&&(B.lx-=N,G="right"),d.isCenterAnchor(z)&&(B.lx-=N/2,G="center");var L="top";d.isBottomAnchor(z)&&(B.ly-=E,L="bottom"),d.isMiddleAnchor(z)&&(B.ly-=E/2,L="middle"),B.totalWidth=Math.ceil(B.totalWidth),B.totalHeight=Math.ceil(B.totalHeight),B.lx=Math.round(B.lx),B.ly=Math.round(B.ly),f.autoMargin(A,O(z),{x:z.x,y:z.y,l:N*({right:1,center:.5}[G]||0),r:N*({left:1,center:.5}[G]||0),b:E*({top:1,middle:.5}[L]||0),t:E*({bottom:1,middle:.5}[L]||0)})}function O(A){return y.autoMarginIdRoot+A._index}function R(A,z,B,$){$=$||{};var j=A.select("."+y.itemRectClassName),N=A.select("."+y.itemTextClassName),E=z.borderwidth,W=B.index,G=z._dims;c.setTranslate(A,E+B.x,E+B.y);var L=["up","down"].indexOf(z.direction)!==-1,q=$.height||(L?G.heights[W]:G.height1);j.attr({x:0,y:0,width:$.width||(L?G.width1:G.widths[W]),height:q});var H=z.font.size*m,V=(h.lineCount(N)-1)*H/2;h.positionText(N,y.textOffsetX,q/2-V+y.textOffsetY),L?B.y+=G.heights[W]+B.yPad:B.x+=G.widths[W]+B.xPad,B.index++}function F(A,z){A.attr(y.menuIndexAttrName,z||"-1").selectAll("g."+y.dropdownButtonClassName).remove()}o.exports=function(A){var z=A._fullLayout,B=d.filterVisible(z[y.name]);function $(H){f.autoMargin(A,O(H))}var j=z._menulayer.selectAll("g."+y.containerClassName).data(B.length>0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;W<B.length;W++){var G=B[W];D(A,G)}var L="updatemenus"+z._uid,q=new v(A,E,L);N.enter().size()&&(E.node().parentNode.appendChild(E.node()),E.call(F)),N.exit().each(function(H){E.call(F),$(H)}).remove(),N.each(function(H){var V=l.select(this),te=H.type==="dropdown"?E:null;f.manageCommandObserver(A,H,H.buttons,function(ee){x(A,H,H.buttons[ee.index],V,te,q,ee.index,!0)}),H.type==="dropdown"?(_(A,V,E,q,H),b(E,H)&&w(A,V,E,q,H)):w(A,V,null,null,H)})}}},20763:function(o,a,n){var l=n(75909);o.exports={moduleType:"component",name:l.name,layoutAttributes:n(7163),supplyLayoutDefaults:n(64897),draw:n(13689)}},25849:function(o,a,n){o.exports=d;var l=n(39898),f=n(7901),s=n(91424),c=n(71828);function d(h,p,m){this.gd=h,this.container=p,this.id=m,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}d.barWidth=2,d.barLength=20,d.barRadius=2,d.barPad=1,d.barColor="#808BA4",d.prototype.enable=function(h,p,m){var y=this.gd._fullLayout,v=y.width,g=y.height;this.position=h;var b,x,_,w,k=this.position.l,T=this.position.w,M=this.position.t,S=this.position.h,C=this.position.direction,P=C==="down",D=C==="left",O=C==="up",R=T,F=S;P||D||C==="right"||O||(this.position.direction="down",P=!0),P||O?(x=(b=k)+R,P?(_=M,F=(w=Math.min(_+F,g))-_):F=(w=M+F)-(_=Math.max(w-F,0))):(w=(_=M)+F,D?R=(x=k+R)-(b=Math.max(x-R,0)):(b=k,R=(x=Math.min(b+R,v))-b)),this._box={l:b,t:_,w:R,h:F};var A=T>R,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(c.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(c.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=c.constrain(h||0,0,m),p=c.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),c=Object.keys(s),d=0;d<c.length;d++){var h=c[d];h.charAt(0)!=="_"&&(a[h]=s[h]),f({moduleType:"apiMethod",name:h,fn:s[h]})}f(n(67368)),f([n(32745),n(2468),n(47322),n(89853),n(68804),n(20763),n(23243),n(13137),n(97218),n(83312),n(37369),n(21081),n(12311),n(2199),n(30211),n(64168)]),f([n(92177),n(37815)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(f(window.PlotlyLocales),delete window.PlotlyLocales),a.Icons=n(24255);var p=n(30211),m=n(74875);a.Plots={resize:m.resize,graphJson:m.graphJson,sendDataToCloud:m.sendDataToCloud},a.Fx={hover:p.hover,unhover:p.unhover,loneHover:p.loneHover,loneUnhover:p.loneUnhover},a.Snapshot=n(44511),a.PlotSchema=n(86281)},24255:function(o){o.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,c=Math.PI,d=2*c;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0]<g[1]?(b=g[0],x=g[1]):(b=g[1],x=g[0]),(b=f(b,d))>(x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=c,S=d):b<x?(T=b,S=x):(T=x,S=b),v<g?(C=v,P=g):(C=g,P=v);var R,F=Math.abs(S-T)<=c?0:1;function A(z,B,$){return"A"+[z,z]+" "+[0,F,$]+" "+O(z,B)}return D?R=C===null?"M"+O(P,T)+A(P,M,0)+A(P,S,0)+"Z":"M"+O(C,T)+A(C,M,0)+A(C,S,0)+"ZM"+O(P,T)+A(P,M,1)+A(P,S,1)+"Z":C===null?(R="M"+O(P,T)+A(P,S,0),k&&(R+="L0,0Z")):R="M"+O(C,T)+"L"+O(P,T)+A(P,S,0)+"L"+O(C,S)+A(C,T,1)+"Z",R}o.exports={deg2rad:function(v){return v/180*c},rad2deg:function(v){return v/c*180},angleDelta:p,angleDist:function(v,g){return Math.abs(p(v,g))},isFullCircle:h,isAngleInsideSector:m,isPtInsideSector:function(v,g,b,x){return!!m(g,x)&&(b[0]<b[1]?(_=b[0],w=b[1]):(_=b[1],w=b[0]),v>=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function c(h){return n(h)||s(h)}function d(h,p,m){if(c(h)){if(c(h[0])){for(var y=m,v=0;v<h.length;v++)y=p(y,h[v].length);return y}return h.length}return 0}a.isTypedArray=s,a.isArrayOrTypedArray=c,a.isArray1D=function(h){return!c(h[0])},a.ensureArray=function(h,p){return n(h)||(h=[]),h.length=p,h},a.concat=function(){var h,p,m,y,v,g,b,x,_=[],w=!0,k=0;for(m=0;m<arguments.length;m++)(g=(y=arguments[m]).length)&&(p?_.push(y):(p=y,v=g),n(y)?h=!1:(w=!1,k?h!==y.constructor&&(h=!1):h=y.constructor),k+=g);if(!k)return[];if(!_.length)return p;if(w)return p.concat.apply(p,_);if(h){for((b=new h(k)).set(p),m=0;m<_.length;m++)y=_[m],b.set(y,v),v+=y.length;return b}for(b=new Array(k),x=0;x<p.length;x++)b[x]=p[x];for(m=0;m<_.length;m++){for(y=_[m],x=0;x<y.length;x++)b[v+x]=y[x];v+=x}return b},a.maxRowLength=function(h){return d(h,Math.max,0)},a.minRowLength=function(h){return d(h,Math.min,1/0)}},95218:function(o,a,n){var l=n(92770),f=n(50606).BADNUM,s=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;o.exports=function(c){return typeof c=="string"&&(c=c.replace(s,"")),l(c)?Number(c):f}},33306:function(o){o.exports=function(a){var n=a._fullLayout;n._glcanvas&&n._glcanvas.size()&&n._glcanvas.each(function(l){l.regl&&l.regl.clear({color:!0,depth:!0})})}},86367:function(o){o.exports=function(a){a._responsiveChartHandler&&(window.removeEventListener("resize",a._responsiveChartHandler),delete a._responsiveChartHandler)}},96554:function(o,a,n){var l=n(92770),f=n(84267),s=n(9012),c=n(63282),d=n(7901),h=n(37822).DESELECTDIM,p=n(65487),m=n(30587).counter,y=n(64872).modHalf,v=n(73627).isArrayOrTypedArray;function g(b,x){var _=a.valObjectMeta[x.valType];if(x.arrayOk&&v(b))return!0;if(_.validateFunction)return _.validateFunction(b,x);var w={},k=w,T={set:function(M){k=M}};return _.coerceFunction(b,T,w,x),k!==w}a.valObjectMeta={data_array:{coerceFunction:function(b,x,_){v(b)?x.set(b):_!==void 0&&x.set(_)}},enumerated:{coerceFunction:function(b,x,_,w){w.coerceNumber&&(b=+b),w.values.indexOf(b)===-1?x.set(_):x.set(b)},validateFunction:function(b,x){x.coerceNumber&&(b=+b);for(var _=x.values,w=0;w<_.length;w++){var k=String(_[w]);if(k.charAt(0)==="/"&&k.charAt(k.length-1)==="/"){if(new RegExp(k.substr(1,k.length-2)).test(b))return!0}else if(b===_[w])return!0}return!1}},boolean:{coerceFunction:function(b,x,_){b===!0||b===!1?x.set(b):x.set(_)}},number:{coerceFunction:function(b,x,_,w){!l(b)||w.min!==void 0&&b<w.min||w.max!==void 0&&b>w.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&b<w.min||w.max!==void 0&&b>w.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(c.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T<k.length;){var M=k[T];w.flags.indexOf(M)===-1||k.indexOf(M)<T?k.splice(T,1):T++}k.length?x.set(k.join("+")):x.set(_)}else x.set(_);else x.set(b)}},any:{coerceFunction:function(b,x,_){b===void 0?x.set(_):x.set(b)}},info_array:{coerceFunction:function(b,x,_,w){function k(j,N,E){var W,G={set:function(L){W=L}};return E===void 0&&(E=N.dflt),a.valObjectMeta[N.valType].coerceFunction(j,G,E,N),W}var T=w.dimensions===2||w.dimensions==="1-2"&&Array.isArray(b)&&Array.isArray(b[0]);if(Array.isArray(b)){var M,S,C,P,D,O,R=w.items,F=[],A=Array.isArray(R),z=A&&T&&Array.isArray(R[0]),B=T&&A&&!z,$=A&&!B?R.length:b.length;if(_=Array.isArray(_)?_:[],T)for(M=0;M<$;M++)for(F[M]=[],C=Array.isArray(b[M])?b[M]:[],D=B?R.length:A?R[M].length:C.length,S=0;S<D;S++)P=B?R[S]:A?R[M][S]:R,(O=k(C[S],P,(_[M]||[])[S]))!==void 0&&(F[M][S]=O);else for(M=0;M<$;M++)(O=k(b[M],A?R[M]:R,_[M]))!==void 0&&(F[M]=O);x.set(F)}else x.set(_)},validateFunction:function(b,x){if(!Array.isArray(b))return!1;var _=x.items,w=Array.isArray(_),k=x.dimensions===2;if(!x.freeLength&&b.length!==_.length)return!1;for(var T=0;T<b.length;T++)if(k){if(!Array.isArray(b[T])||!x.freeLength&&b[T].length!==_[T].length)return!1;for(var M=0;M<b[T].length;M++)if(!g(b[T][M],w?_[T][M]:_))return!1}else if(!g(b[T],w?_[T]:_))return!1;return!0}}},a.coerce=function(b,x,_,w,k){var T=p(_,w).get(),M=p(b,w),S=p(x,w),C=M.get(),P=x._template;if(C===void 0&&P&&(C=p(P,w).get(),P=0),k===void 0&&(k=T.dflt),T.arrayOk&&v(C))return S.set(C),C;var D=a.valObjectMeta[T.valType].coerceFunction;D(C,S,k,T);var O=S.get();return P&&O===k&&!g(C,T)&&(D(C=p(P,w).get(),S,k,T),O=S.get()),O},a.coerce2=function(b,x,_,w,k){var T=p(b,w),M=a.coerce(b,x,_,w,k);return T.get()!=null&&M},a.coerceFont=function(b,x,_){var w={};return _=_||{},w.family=b(x+".family",_.family),w.size=b(x+".size",_.size),w.color=b(x+".color",_.color),w},a.coercePattern=function(b,x,_,w){if(b(x+".shape")){b(x+".solidity"),b(x+".size");var k=b(x+".fillmode")==="overlay";if(!w){var T=b(x+".bgcolor",k?_:void 0);b(x+".fgcolor",k?d.contrast(T):_)}b(x+".fgopacity",k?.5:1)}},a.coerceHoverinfo=function(b,x,_){var w,k=x._module.attributes,T=k.hoverinfo?k:s,M=T.hoverinfo;if(_._dataLength===1){var S=M.dflt==="all"?M.flags.slice():M.dflt.split("+");S.splice(S.indexOf("name"),1),w=S.join("+")}return a.coerce(b,x,T,"hoverinfo",w)},a.coerceSelectionMarkerOpacity=function(b,x){if(b.marker){var _,w,k=b.marker.opacity;k!==void 0&&(v(k)||b.selected||b.unselected||(_=k,w=h*k),x("selected.marker.opacity",_),x("unselected.marker.opacity",w))}},a.validate=g},41631:function(o,a,n){var l,f,s=n(84096).i$,c=n(92770),d=n(47769),h=n(64872).mod,p=n(50606),m=p.BADNUM,y=p.ONEDAY,v=p.ONEHOUR,g=p.ONEMIN,b=p.ONESEC,x=p.EPOCHJD,_=n(73972),w=n(84096).g0,k=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,T=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,M=new Date().getFullYear()-70;function S(N){return N&&_.componentsRegistry.calendars&&typeof N=="string"&&N!=="gregorian"}function C(N,E){return String(N+Math.pow(10,E)).substr(1)}a.dateTick0=function(N,E){var W=function(L,q){return S(L)?q?_.getComponentMethod("calendars","CANONICAL_SUNDAY")[L]:_.getComponentMethod("calendars","CANONICAL_TICK")[L]:q?"2000-01-02":"2000-01-01"}(N,!!E);if(E<2)return W;var G=a.dateTime2ms(W,N);return G+=y*(E-1),a.ms2DateTime(G,0,N)},a.dfltRange=function(N){return S(N)?_.getComponentMethod("calendars","DFLTRANGE")[N]:["2000-01-01","2001-01-01"]},a.isJSDate=function(N){return typeof N=="object"&&N!==null&&typeof N.getTime=="function"},a.dateTime2ms=function(N,E){if(a.isJSDate(N)){var W=N.getTimezoneOffset()*g,G=(N.getUTCMinutes()-N.getMinutes())*g+(N.getUTCSeconds()-N.getSeconds())*b+(N.getUTCMilliseconds()-N.getMilliseconds());if(G){var L=3*g;W=W-L/2+h(G-W+L/2,L)}return(N=Number(N)-W)>=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E<P?Math.floor(Y/v):0,q=E<P?Math.floor(Y%v/g):0,H=E<D?Math.floor(Y%g/b):0,V=E<O?Y%b*10+ee:0}else te=new Date(U),G=w("%Y-%m-%d")(te),L=E<P?te.getUTCHours():0,q=E<P?te.getUTCMinutes():0,H=E<D?te.getUTCSeconds():0,V=E<O?10*te.getUTCMilliseconds()+ee:0;return R(G,L,q,H,V)},a.ms2DateTimeLocal=function(N){if(!(N>=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){c(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` +var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,B as Kr,aA as qn,aB as e9,aC as t9,aD as n9,aE as Sa,aF as r9,aG as a9,aH as i9,aI as o9,aJ as l9,aK as s9,aL as u9,aM as c9,aN as f9,aO as d9,aP as h9,aQ as p9,aR as g9,aS as m9,aT as v9,aU as y9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as b9,b1 as Tr,b2 as fr,b3 as x9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as w9,b9 as _l,ba as my,bb as _9,ah as Ad,bc as ro,I as jl,bd as T9,be as k9,bf as nS,bg as M9,bh as oe,bi as S9,G as Jn,p as hi,bj as C9,al as O9,P as rS,bk as A9,bl as sg,am as P9,bm as D9,bn as E9,bo as z2,bp as R9,a as vy,a9 as aS,bq as L9,aa as A0,br as I9,bs as F9,bt as N9,bu as j9,bv as $9,bw as B9,bx as z9,by as q9,bz as W9,bA as q2,bB as U9,bC as yy,m as H9,R as et,bD as V9,bE as Y9,bF as G9,bG as X9,bH as Z9,bI as K9,bJ as J9,bK as Q9,bL as eE,d as by,bM as tE,bN as nE,a2 as iS,$ as rE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as aE,bP as iE,H as xy,bQ as oE,D as lE,bR as uS,bS as cS,bT as sE,bU as uE,bV as cE,bW as fE}from"./vendor-C2GWNUp2.js";import{u as dE}from"./DashboardViewParams-D9XhJzJS.js";import{u as fS,A as wy,a as _y}from"./index-CpD9nDs7.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),dS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var c=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(c,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),c=n(44467).templatedArray;n(24695),o.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function c(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,c],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function c(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m<w.length;m++)if(g=(v=w[m]).clicktoshow){for(y=0;y<S;y++)if(x=(b=p[y]).xaxis,_=b.yaxis,x._id===v.xref&&_._id===v.yref&&x.d2r(b.x)===d(v._xclick,x)&&_.d2r(b.y)===d(v._yclick,_)){(v.visible?g==="onout"?T:M:k).push(m);break}y===S&&v.visible&&g==="onout"&&T.push(m)}return{on:k,off:T,explicitOff:M}}function d(h,p){return p.type==="log"?p.l2r(h):p.d2r(h)}o.exports={hasClickToShow:function(h,p){var m=c(h,p);return m.on.length>0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=c(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m<g.length;m++)(y=s(h.layout,"annotations",_[g[m]])).modifyItem("visible",!0),l.extendFlat(x,y.getUpdateObj());for(m=0;m<b.length;m++)(y=s(h.layout,"annotations",_[b[m]])).modifyItem("visible",!1),l.extendFlat(x,y.getUpdateObj());return f.call("update",h,{},x)}}}},25625:function(o,a,n){var l=n(71828),f=n(7901);o.exports=function(s,c,d,h){h("opacity");var p=h("bgcolor"),m=h("bordercolor"),y=f.opacity(m);h("borderpad");var v=h("borderwidth"),g=h("showarrow");if(h("text",g?" ":d._dfltTitle.annotation),h("textangle"),l.coerceFont(h,"font",d.font),h("width"),h("align"),h("height")&&h("valign"),g){var b,x,_=h("arrowside");_.indexOf("end")!==-1&&(b=h("arrowhead"),x=h("arrowsize")),_.indexOf("start")!==-1&&(h("startarrowhead",b),h("startarrowsize",x)),h("arrowcolor",y?c.bordercolor:f.defaultLine),h("arrowwidth",2*(y&&v||1)),h("standoff"),h("startstandoff")}var w=h("hovertext"),k=d.hoverlabel||{};if(w){var T=h("hoverlabel.bgcolor",k.bgcolor||(f.opacity(p)?f.rgb(p):f.defaultLine)),M=h("hoverlabel.bordercolor",k.bordercolor||f.contrast(T));l.coerceFont(h,"hoverlabel.font",{family:k.font.family,size:k.font.size,color:k.font.color||M})}h("captureevents",!!w)}},94128:function(o,a,n){var l=n(92770),f=n(58163);o.exports=function(s,c,d,h){c=c||{};var p=d==="log"&&c.type==="linear",m=d==="linear"&&c.type==="log";if(p||m)for(var y,v,g=s._fullLayout.annotations,b=c._id.charAt(0),x=0;x<g.length;x++)y=g[x],v="annotations["+x+"].",y[b+"ref"]===c._id&&_(b),y["a"+b+"ref"]===c._id&&_("a"+b);function _(w){var k=y[w],T=null;T=p?f(k,c.range):Math.pow(10,k),l(T)||(T=null),h(v+w,T)}}},84046:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(25625),d=n(50215);function h(p,m,y){function v(F,A){return l.coerce(p,m,d,F,A)}var g=v("visible"),b=v("clicktoshow");if(g||b){c(p,m,y,v);for(var x=m.showarrow,_=["x","y"],w=[-10,-30],k={_fullLayout:y},T=0;T<2;T++){var M=_[T],S=f.coerceRef(p,m,k,M,"","paper");if(S!=="paper"&&f.getFromId(k,S)._annIndices.push(m._index),f.coercePosition(m,k,v,S,M,.5),x){var C="a"+M,P=f.coerceRef(p,m,k,C,"pixel",["pixel","paper"]);P!=="pixel"&&P!==S&&(P=m[C]="pixel");var D=P==="pixel"?w[T]:.4;f.coercePosition(m,k,v,P,C,D)}v(M+"anchor"),v(M+"shift")}if(l.noneOrAll(p,m,["x","y"]),x&&l.noneOrAll(p,m,["ax","ay"]),b){var O=v("xclick"),R=v("yclick");m._xclick=O===void 0?m.x:f.cleanPosition(O,k,m.xref),m._yclick=R===void 0?m.y:f.cleanPosition(R,k,m.yref)}}}o.exports=function(p,m){s(p,m,{name:"annotations",handleItemDefaults:h})}},92605:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=c.strTranslate,h=n(89298),p=n(7901),m=n(91424),y=n(30211),v=n(63893),g=n(6964),b=n(28569),x=n(44467).arrayEditor,_=n(13011);function w(M,S){var C=M._fullLayout.annotations[S]||{},P=h.getFromId(M,C.xref),D=h.getFromId(M,C.yref);P&&P.setScale(),D&&D.setScale(),T(M,C,S,!1,P,D)}function k(M,S,C,P,D){var O=D[C],R=D[C+"ref"],F=C.indexOf("y")!==-1,A=h.getRefType(R)==="domain",z=F?P.h:P.w;return M?A?O+(F?-S:S)/M._length:M.p2r(M.r2p(O)+S):O+(F?-S:S)/z}function T(M,S,C,P,D,O){var R,F,A=M._fullLayout,z=M._fullLayout._size,B=M._context.edits;P?(R="annotation-"+P,F=P+".annotations"):(R="annotation",F="annotations");var $=x(M.layout,F,S),j=$.modifyBase,N=$.modifyItem,E=$.getUpdateObj;A._infolayer.selectAll("."+R+'[data-index="'+C+'"]').remove();var W="clip"+A._uid+"_ann"+C;if(S._input&&S.visible!==!1){var G={x:{},y:{}},L=+S.textangle||0,q=A._infolayer.append("g").classed(R,!0).attr("data-index",String(C)).style("opacity",S.opacity),H=q.append("g").classed("annotation-text-g",!0),V=B[S.showarrow?"annotationTail":"annotationPosition"],te=S.captureevents||B.annotationText||V,ee=H.append("g").style("pointer-events",te?"all":null).call(g,"pointer").on("click",function(){M._dragging=!1,M.emit("plotly_clickannotation",pe(l.event))});S.hovertext&&ee.on("mouseover",function(){var Oe=S.hoverlabel,Me=Oe.font,ce=this.getBoundingClientRect(),ye=M.getBoundingClientRect();y.loneHover({x0:ce.left-ye.left,x1:ce.right-ye.left,y:(ce.top+ce.bottom)/2-ye.top,text:S.hovertext,color:Oe.bgcolor,borderColor:Oe.bordercolor,fontFamily:Me.family,fontSize:Me.size,fontColor:Me.color},{container:A._hoverlayer.node(),outerContainer:A._paper.node(),gd:M})}).on("mouseout",function(){y.loneUnhover(A._hoverlayer.node())});var U=S.borderwidth,Q=S.borderpad,Y=U+Q,Z=ee.append("rect").attr("class","bg").style("stroke-width",U+"px").call(p.stroke,S.bordercolor).call(p.fill,S.bgcolor),X=S.width||S.height,re=A._topclips.selectAll("#"+W).data(X?[0]:[]);re.enter().append("clipPath").classed("annclip",!0).attr("id",W).append("rect"),re.exit().remove();var ie=S.font,le=A._meta?c.templateString(S.text,A._meta):S.text,se=ee.append("text").classed("annotation-text",!0).text(le);B.annotationText?se.call(v.makeEditable,{delegate:ee,gd:M}).call(Te).on("edit",function(Oe){S.text=Oe,this.call(Te),N("text",Oe),D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0),f.call("_guiRelayout",M,E())}):se.call(Te)}else l.selectAll("#"+W).remove();function pe(Oe){var Me={index:C,annotation:S._input,fullAnnotation:S,event:Oe};return P&&(Me.subplotId=P),Me}function Te(Oe){return Oe.call(m.font,ie).attr({"text-anchor":{left:"start",right:"end"}[S.align]||"middle"}),v.convertToTspans(Oe,M,Se),Oe}function Se(){var Oe=se.selectAll("a");Oe.size()===1&&Oe.text()===se.text()&&ee.insert("a",":first-child").attr({"xlink:xlink:href":Oe.attr("xlink:href"),"xlink:xlink:show":Oe.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(Z.node());var Me=ee.select(".annotation-text-math-group"),ce=!Me.empty(),ye=m.bBox((ce?Me:se).node()),J=ye.width,ne=ye.height,de=S.width||J,xe=S.height||ne,ue=Math.round(de+2*Y),ge=Math.round(xe+2*Y);function be(Ke,nt){return nt==="auto"&&(nt=Ke<.3333333333333333?"left":Ke>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae<ke.length;Ae++){var Ee,De,Re,Ie,Be,Ue=ke[Ae],qe=S[Ue+"ref"]||Ue,Ye=S["a"+Ue+"ref"],at={x:D,y:O}[Ue],lt=(L+(Ue==="x"?0:-90))*Math.PI/180,ct=ue*Math.cos(lt),bt=ge*Math.sin(lt),ze=Math.abs(ct)+Math.abs(bt),Ne=S[Ue+"anchor"],Qe=S[Ue+"shift"]*(Ue==="x"?1:-1),it=G[Ue],kt=h.getRefType(qe);if(at&&kt!=="domain"){var Je=at.r2fraction(S[Ue]);(Je<0||Je>1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=c.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=c.rotationXYMatrix(L,Vt,St),Dt=c.apply2DTransform(Nt),gt=c.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!c.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=c.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C<S.annotations.length;C++)S.annotations[C].visible&&w(M,C);return s.previousPromises(M)},drawOne:w,drawRaw:T}},13011:function(o,a,n){var l=n(39898),f=n(7901),s=n(82884),c=n(71828),d=c.strScale,h=c.strRotate,p=c.strTranslate;o.exports=function(m,y,v){var g,b,x,_,w=m.node(),k=s[v.arrowhead||0],T=s[v.startarrowhead||0],M=(v.arrowwidth||1)*(v.arrowsize||1),S=(v.arrowwidth||1)*(v.startarrowsize||1),C=y.indexOf("start")>=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j<D+O)return void q();var E=w.getPointAtLength(0),W=w.getPointAtLength(.1);x=Math.atan2(E.y-W.y,E.x-W.x),g=w.getPointAtLength(Math.min(O,j)),N="0px,"+O+"px,";var G=w.getPointAtLength(j),L=w.getPointAtLength(j-.1);_=Math.atan2(G.y-L.y,G.x-L.x),b=w.getPointAtLength(Math.max(0,j-D)),N+=j-(N?O+D:D)+"px,"+j+"px",m.style("stroke-dasharray",N)}function q(){m.style("stroke-dasharray","0px,100px")}function H(V,te,ee,U){V.path&&(V.noRotate&&(ee=0),l.select(w.parentNode).append("path").attr({class:m.attr("class"),d:V.path,transform:p(te.x,te.y)+h(180*ee/Math.PI)+d(U)}).style({fill:f.rgb(v.arrowcolor),"stroke-width":0}))}C&&H(T,g,x,S),P&&H(k,b,_,M)}},32745:function(o,a,n){var l=n(92605),f=n(44317);o.exports={moduleType:"component",name:"annotations",layoutAttributes:n(50215),supplyLayoutDefaults:n(84046),includeBasePlot:n(76325)("annotations"),calcAutorange:n(3749),draw:l.draw,drawOne:l.drawOne,drawRaw:l.drawRaw,hasClickToShow:f.hasClickToShow,onClick:f.onClick,convertCoords:n(94128)}},26997:function(o,a,n){var l=n(50215),f=n(30962).overrideAll,s=n(44467).templatedArray;o.exports=f(s("annotation",{visible:l.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:l.xanchor,xshift:l.xshift,yanchor:l.yanchor,yshift:l.yshift,text:l.text,textangle:l.textangle,font:l.font,width:l.width,height:l.height,opacity:l.opacity,align:l.align,valign:l.valign,bgcolor:l.bgcolor,bordercolor:l.bordercolor,borderpad:l.borderpad,borderwidth:l.borderwidth,showarrow:l.showarrow,arrowcolor:l.arrowcolor,arrowhead:l.arrowhead,startarrowhead:l.startarrowhead,arrowside:l.arrowside,arrowsize:l.arrowsize,startarrowsize:l.startarrowsize,arrowwidth:l.arrowwidth,standoff:l.standoff,startstandoff:l.startstandoff,hovertext:l.hovertext,hoverlabel:l.hoverlabel,captureevents:l.captureevents}),"calc","from-root")},5485:function(o,a,n){var l=n(71828),f=n(89298);function s(c,d){var h=d.fullSceneLayout.domain,p=d.fullLayout._size,m={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};c._xa={},l.extendFlat(c._xa,m),f.setConvert(c._xa),c._xa._offset=p.l+h.x[0]*p.w,c._xa.l2p=function(){return .5*(1+c._pdata[0]/c._pdata[3])*p.w*(h.x[1]-h.x[0])},c._ya={},l.extendFlat(c._ya,m),f.setConvert(c._ya),c._ya._offset=p.t+(1-h.y[1])*p.h,c._ya.l2p=function(){return .5*(1-c._pdata[1]/c._pdata[3])*p.h*(h.y[1]-h.y[0])}}o.exports=function(c){for(var d=c.fullSceneLayout.annotations,h=0;h<d.length;h++)s(d[h],c);c.fullLayout._infolayer.selectAll(".annotation-"+c.id).remove()}},20226:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(25625),d=n(26997);function h(p,m,y,v){function g(x,_){return l.coerce(p,m,d,x,_)}function b(x){var _=x+"axis",w={_fullLayout:{}};return w._fullLayout[_]=y[_],f.coercePosition(m,w,g,x,x,.5)}g("visible")&&(c(p,m,v.fullLayout,g),b("x"),b("y"),b("z"),l.noneOrAll(p,m,["x","y","z"]),m.xref="x",m.yref="y",m.zref="z",g("xanchor"),g("yanchor"),g("xshift"),g("yshift"),m.showarrow&&(m.axref="pixel",m.ayref="pixel",g("ax",-10),g("ay",-30),l.noneOrAll(p,m,["ax","ay"])))}o.exports=function(p,m,y){s(p,m,{name:"annotations",handleItemDefaults:h,fullLayout:y.fullLayout})}},82188:function(o,a,n){var l=n(92605).drawRaw,f=n(63538),s=["x","y","z"];o.exports=function(c){for(var d=c.fullSceneLayout,h=c.dataScale,p=d.annotations,m=0;m<p.length;m++){for(var y=p[m],v=!1,g=0;g<3;g++){var b=s[g],x=y[b],_=d[b+"axis"].r2fraction(x);if(_<0||_>1){v=!0;break}}v?c.fullLayout._infolayer.select(".annotation-"+c.id+'[data-index="'+m+'"]').remove():(y._pdata=f(c.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(c.graphDiv,y,m,c.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,c){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m<p.length;m++){var y=p[m];h.test(y)&&(s[y].annotations||[]).length&&(f.pushUnique(c._basePlotModules,d),f.pushUnique(c._subplots.gl3d,y))}},convert:n(5485),draw:n(82188)}},7561:function(o,a,n){o.exports=n(63489),n(94338),n(3961),n(38751),n(86825),n(37715),n(99384),n(43805),n(88874),n(83290),n(29108),n(55422),n(94320),n(31320),n(51367),n(21457)},72201:function(o,a,n){var l=n(7561),f=n(71828),s=n(50606),c=s.EPOCHJD,d=s.ONEDAY,h={valType:"enumerated",values:f.sortObjectKeys(l.calendars),editType:"calc",dflt:"gregorian"},p=function(M,S,C,P){var D={};return D[C]=h,f.coerce(M,S,D,C,P)},m="##",y={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:m,w:m,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},v={};function g(M){var S=v[M];return S||(v[M]=l.instance(M))}function b(M){return f.extendFlat({},h,{description:M})}function x(M){return"Sets the calendar system to use with `"+M+"` date data."}var _={xcalendar:b(x("x"))},w=f.extendFlat({},_,{ycalendar:b(x("y"))}),k=f.extendFlat({},w,{zcalendar:b(x("z"))}),T=b(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));o.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:k,surface:k,mesh3d:k,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:b(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:T},yaxis:{calendar:T},scene:{xaxis:{calendar:T},yaxis:{calendar:T},zaxis:{calendar:T}},polar:{radialaxis:{calendar:T}}},transforms:{filter:{valuecalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:h,handleDefaults:p,handleTraceDefaults:function(M,S,C,P){for(var D=0;D<C.length;D++)p(M,S,C[D]+"calendar",P.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:g,worldCalFmt:function(M,S,C){for(var P,D,O,R,F,A=Math.floor((S+.05)/d)+c,z=g(C).fromJD(A),B=0;(B=M.indexOf("%",B))!==-1;)(P=M.charAt(B+1))==="0"||P==="-"||P==="_"?(O=3,D=M.charAt(B+2),P==="_"&&(P="-")):(D=P,P="0",O=2),(R=y[D])?(F=R===m?m:z.formatDate(R[P]),M=M.substr(0,B)+F+M.substr(B+O),B+=F.length):B+=O;return M}}},22399:function(o,a){a.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],a.defaultLine="#444",a.lightLine="#eee",a.background="#fff",a.borderLine="#BEC8D9",a.lightFraction=90.9090909090909},7901:function(o,a,n){var l=n(84267),f=n(92770),s=n(73627).isTypedArray,c=o.exports={},d=n(22399);c.defaults=d.defaults;var h=c.defaultLine=d.defaultLine;c.lightLine=d.lightLine;var p=c.background=d.background;function m(y){if(f(y)||typeof y!="string")return y;var v=y.trim();if(v.substr(0,3)!=="rgb")return y;var g=v.match(/^rgba?\s*\(([^()]*)\)$/);if(!g)return y;var b=g[1].trim().split(/\s*[\s,]\s*/),x=v.charAt(3)==="a"&&b.length===4;if(!x&&b.length!==3)return y;for(var _=0;_<b.length;_++){if(!b[_].length||(b[_]=Number(b[_]),!(b[_]>=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}c.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},c.rgb=function(y){return c.tinyRGB(l(y))},c.opacity=function(y){return y?l(y).getAlpha():0},c.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},c.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},c.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(c.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},c.stroke=function(y,v){var g=l(v);y.style({stroke:c.tinyRGB(g),"stroke-opacity":g.getAlpha()})},c.fill=function(y,v){var g=l(v);y.style({fill:c.tinyRGB(g),"fill-opacity":g.getAlpha()})},c.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g<x.length;g++)x[g]=m(x[g]);else y[b]=m(x);else if(b.substr(b.length-10)==="colorscale"&&Array.isArray(x))for(g=0;g<x.length;g++)Array.isArray(x[g])&&(x[g][1]=m(x[g][1]));else if(Array.isArray(x)){var w=x[0];if(!Array.isArray(w)&&w&&typeof w=="object")for(g=0;g<x.length;g++)c.clean(x[g])}else x&&typeof x=="object"&&!s(x)&&c.clean(x)}}},63583:function(o,a,n){var l=n(13838),f=n(41940),s=n(1426).extendFlat,c=n(30962).overrideAll;o.exports=c({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:l.linecolor,outlinewidth:l.linewidth,bordercolor:l.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:s({},l.ticks,{dflt:""}),ticklabeloverflow:s({},l.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:f({}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,title:{text:{valType:"string"},font:f({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:f({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},30939:function(o){o.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},62499:function(o,a,n){var l=n(71828),f=n(44467),s=n(26218),c=n(38701),d=n(96115),h=n(89426),p=n(63583);o.exports=function(m,y,v){var g=f.newContainer(y,"colorbar"),b=m.colorbar||{};function x(N,E){return l.coerce(b,g,p,N,E)}var _=v.margin||{t:0,b:0,l:0,r:0},w=v.width-_.l-_.r,k=v.height-_.t-_.b,T=x("orientation")==="v",M=x("thicknessmode");x("thickness",M==="fraction"?30/(T?w:k):30);var S=x("lenmode");x("len",S==="fraction"?1:T?k:w);var C,P,D,O=x("yref")==="paper",R=x("xref")==="paper",F="left";T?(D="middle",F=R?"left":"right",C=R?1.02:1,P=.5):(D=O?"bottom":"top",F="center",C=.5,P=O?1.02:1),l.coerce(b,g,{x:{valType:"number",min:R?-2:0,max:R?3:1,dflt:C}},"x"),l.coerce(b,g,{y:{valType:"number",min:O?-2:0,max:O?3:1,dflt:P}},"y"),x("xanchor",F),x("xpad"),x("yanchor",D),x("ypad"),l.noneOrAll(b,g,["x","y"]),x("outlinecolor"),x("outlinewidth"),x("bordercolor"),x("borderwidth"),x("bgcolor");var A=l.coerce(b,g,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");x("ticklabeloverflow",A.indexOf("inside")!==-1?"hide past domain":"hide past div"),s(b,g,x,"linear");var z=v.font,B={outerTicks:!1,font:z};A.indexOf("inside")!==-1&&(B.bgColor="black"),h(b,g,x,"linear",B),d(b,g,x,"linear",B),c(b,g,x,"linear",B),x("title.text",v._dfltTitle.colorbar);var $=g.showticklabels?g.tickfont:z,j=l.extendFlat({},$,{color:z.color,size:l.bigFont($.size)});l.coerceFont(x,"title.font",j),x("title.side",T?"top":"right")}},98981:function(o,a,n){var l=n(39898),f=n(84267),s=n(74875),c=n(73972),d=n(89298),h=n(28569),p=n(71828),m=p.strTranslate,y=n(1426).extendFlat,v=n(6964),g=n(91424),b=n(7901),x=n(92998),_=n(63893),w=n(52075).flipScale,k=n(71453),T=n(52830),M=n(13838),S=n(18783),C=S.LINE_SPACING,P=S.FROM_TL,D=S.FROM_BR,O=n(30939).cn;o.exports={draw:function(R){var F=R._fullLayout._infolayer.selectAll("g."+O.colorbar).data(function(A){var z,B,$,j,N=A._fullLayout,E=A.calcdata,W=[];function G(X){return y(X,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function L(){typeof j.calc=="function"?j.calc(A,$,z):(z._fillgradient=B.reversescale?w(B.colorscale):B.colorscale,z._zrange=[B[j.min],B[j.max]])}for(var q=0;q<E.length;q++){var H=E[q];if(($=H[0].trace)._module){var V=$._module.colorbar;if($.visible===!0&&V)for(var te=Array.isArray(V),ee=te?V:[V],U=0;U<ee.length;U++){var Q=(j=ee[U]).container;(B=Q?$[Q]:$)&&B.showscale&&((z=G(B.colorbar))._id="cb"+$.uid+(te&&Q?"-"+Q:""),z._traceIndex=$.index,z._propPrefix=(Q?Q+".":"")+"colorbar.",z._meta=$._meta,L(),W.push(z))}}}for(var Y in N._colorAxes)if((B=N[Y]).showscale){var Z=N._colorAxes[Y];(z=G(B.colorbar))._id="cb"+Y,z._propPrefix=Y+".colorbar.",z._meta=N._meta,j={min:"cmin",max:"cmax"},Z[0]!=="heatmap"&&($=Z[1],j.calc=$._module.colorbar.calc),L(),W.push(z)}return W}(R),function(A){return A._id});F.enter().append("g").attr("class",function(A){return A._id}).classed(O.colorbar,!0),F.each(function(A){var z=l.select(this);p.ensureSingle(z,"rect",O.cbbg),p.ensureSingle(z,"g",O.cbfills),p.ensureSingle(z,"g",O.cblines),p.ensureSingle(z,"g",O.cbaxis,function($){$.classed(O.crisp,!0)}),p.ensureSingle(z,"g",O.cbtitleunshift,function($){$.append("g").classed(O.cbtitle,!0)}),p.ensureSingle(z,"rect",O.cboutline);var B=function($,j,N){var E=j.orientation==="v",W=j.len,G=j.lenmode,L=j.thickness,q=j.thicknessmode,H=j.outlinewidth,V=j.borderwidth,te=j.bgcolor,ee=j.xanchor,U=j.yanchor,Q=j.xpad,Y=j.ypad,Z=j.x,X=E?j.y:1-j.y,re=j.yref==="paper",ie=j.xref==="paper",le=N._fullLayout,se=le._size,pe=j._fillcolor,Te=j._line,Se=j.title,Oe=Se.side,Me=j._zrange||l.extent((typeof pe=="function"?pe:Te.color).domain()),ce=typeof Te.color=="function"?Te.color:function(){return Te.color},ye=typeof pe=="function"?pe:function(){return pe},J=j._levels,ne=function(It,Mt,zt){var wt,ve,_e=Mt._levels,Ve=[],We=[],Ze=_e.end+_e.size/100,Ge=_e.size,Ke=1.001*zt[0]-.001*zt[1],nt=1.001*zt[1]-.001*zt[0];for(ve=0;ve<1e5&&(wt=_e.start+ve*Ge,!(Ge>0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt<nt&&Ve.push(wt);if(Mt._fillgradient)We=[0];else if(typeof Mt._fillcolor=="function"){var st=Mt._filllevels;if(st)for(Ze=st.end+st.size/100,Ge=st.size,ve=0;ve<1e5&&(wt=st.start+ve*Ge,!(Ge>0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt<zt[1]&&We.push(wt);else(We=Ve.map(function(mt){return mt-_e.size/2})).push(We[We.length-1]+_e.size)}else Mt._fillcolor&&typeof Mt._fillcolor=="string"&&(We=[0]);return _e.size<0&&(Ve.reverse(),We.reverse()),{line:Ve,fill:We}}(0,j,Me),de=ne.fill,xe=ne.line,ue=Math.round(L*(q==="fraction"?E?se.w:se.h:1)),ge=ue/(E?se.w:se.h),be=Math.round(W*(G==="fraction"?E?se.h:se.w:1)),we=be/(E?se.h:se.w),ke=ie?se.w:N._fullLayout.width,Ae=re?se.h:N._fullLayout.height,Ee=Math.round(E?Z*ke+Q:X*Ae+Y),De={center:.5,right:1}[ee]||0,Re={top:1,middle:.5}[U]||0,Ie=E?Z-De*ge:X-Re*ge,Be=E?X-Re*we:Z-De*we,Ue=Math.round(E?Ae*(1-Be):ke*Be);j._lenFrac=we,j._thickFrac=ge,j._uFrac=Ie,j._vFrac=Be;var qe=j._axis=function(It,Mt,zt){var wt=It._fullLayout,ve=Mt.orientation==="v",_e={type:"linear",range:zt,tickmode:Mt.tickmode,nticks:Mt.nticks,tick0:Mt.tick0,dtick:Mt.dtick,tickvals:Mt.tickvals,ticktext:Mt.ticktext,ticks:Mt.ticks,ticklen:Mt.ticklen,tickwidth:Mt.tickwidth,tickcolor:Mt.tickcolor,showticklabels:Mt.showticklabels,labelalias:Mt.labelalias,ticklabelposition:Mt.ticklabelposition,ticklabeloverflow:Mt.ticklabeloverflow,ticklabelstep:Mt.ticklabelstep,tickfont:Mt.tickfont,tickangle:Mt.tickangle,tickformat:Mt.tickformat,exponentformat:Mt.exponentformat,minexponent:Mt.minexponent,separatethousands:Mt.separatethousands,showexponent:Mt.showexponent,showtickprefix:Mt.showtickprefix,tickprefix:Mt.tickprefix,showticksuffix:Mt.showticksuffix,ticksuffix:Mt.ticksuffix,title:Mt.title,showline:!0,anchor:"free",side:ve?"right":"bottom",position:1},Ve=ve?"y":"x",We={type:"linear",_id:Ve+Mt._id},Ze={letter:Ve,font:wt.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:wt.calendar};function Ge(Ke,nt){return p.coerce(_e,We,M,Ke,nt)}return k(_e,We,Ge,Ze,wt),T(_e,We,Ge,Ze),We}(N,j,Me);qe.position=ge+(E?Z+Q/se.w:X+Y/se.h);var Ye=["top","bottom"].indexOf(Oe)!==-1;if(E&&Ye&&(qe.title.side=Oe,qe.titlex=Z+Q/se.w,qe.titley=Be+(Se.side==="top"?we-Y/se.h:Y/se.h)),E||Ye||(qe.title.side=Oe,qe.titley=X+Y/se.h,qe.titlex=Be+Q/se.w),Te.color&&j.tickmode==="auto"){qe.tickmode="linear",qe.tick0=J.start;var at=J.size,lt=p.constrain(be/50,4,15)+1,ct=(Me[1]-Me[0])/((j.nticks||lt)*at);if(ct>1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("<br>").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?c.call("_guiRestyle",N,H,j._traceIndex):c.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),c=n(63282).scales;function d(h){return"`"+h+"`"}s(c),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?c[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(c,d,h){var p,m=c._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k<k-_&&(w=k+(k-_))),_===w&&(_-=.5,w+=.5),b._sync("min",_),b._sync("max",w),b.autocolorscale&&(p=_*w<0?m.colorscale.diverging:_>=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(c,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m<c.length;m++){var y=c[m],v=y._module.colorbar;if(v)if(Array.isArray(v))for(var g=0;g<v.length;g++)p(y,v[g]);else p(y,v);f(y,"marker.line")&&p(y,{container:"marker.line",min:"cmin",max:"cmax"})}for(var b in d._colorAxes)p(d[b],{min:"cmin",max:"cmax"})}},1586:function(o,a,n){var l=n(92770),f=n(71828),s=n(76228),c=n(62499),d=n(63282).isValid,h=n(73972).traceIs;function p(m,y){var v=y.slice(0,y.length-1);return y?f.nestedProperty(m,v).get()||{}:m}o.exports=function m(y,v,g,b,x){var _=x.prefix,w=x.cLetter,k="_module"in v,T=p(y,_),M=p(v,_),S=p(v._template||{},_)||{},C=function(){return delete y.coloraxis,delete v.coloraxis,m(y,v,g,b,x)};if(k){var P=g._colorAxes||{},D=b(_+"coloraxis");if(D){var O=h(v,"contour")&&f.nestedProperty(v,"contours.coloring").get()||"heatmap",R=P[D];return void(R?(R[2].push(C),R[0]!==O&&(R[0]=!1,f.warn(["Ignoring coloraxis:",D,"setting","as it is linked to incompatible colorscales."].join(" ")))):P[D]=[O,v,[C]])}}var F=T[w+"min"],A=T[w+"max"],z=l(F)&&l(A)&&F<A;b(_+w+"auto",!z)?b(_+w+"mid"):(b(_+w+"min"),b(_+w+"max"));var B,$,j=T.colorscale,N=S.colorscale;j!==void 0&&(B=!d(j)),N!==void 0&&(B=!d(N)),b(_+"autocolorscale",B),b(_+"colorscale"),b(_+"reversescale"),_!=="marker.line."&&(_&&k&&($=s(T)),b(_+"showscale",$)&&(_&&S&&(M._template=S),c(T,M,g)))}},52075:function(o,a,n){var l=n(39898),f=n(84267),s=n(92770),c=n(71828),d=n(7901),h=n(63282).isValid,p=["showscale","autocolorscale","colorscale","reversescale","colorbar"],m=["min","max","mid","auto"];function y(_){var w,k,T,M=_._colorAx,S=M||_,C={};for(k=0;k<p.length;k++)C[T=p[k]]=S[T];if(M)for(w="c",k=0;k<m.length;k++)C[T=m[k]]=S["c"+T];else{var P;for(k=0;k<m.length;k++)((P="c"+(T=m[k]))in S||(P="z"+T)in S)&&(C[T]=S[P]);w=P.charAt(0)}return C._sync=function(D,O){var R=m.indexOf(D)!==-1?w+D:D;S[R]=S["_"+R]=O},C}function v(_){for(var w=y(_),k=w.min,T=w.max,M=w.reversescale?g(w.colorscale):w.colorscale,S=M.length,C=new Array(S),P=new Array(S),D=0;D<S;D++){var O=M[D];C[D]=k+O[0]*(T-k),P[D]=O[1]}return{domain:C,range:P}}function g(_){for(var w=_.length,k=new Array(w),T=w-1,M=0;T>=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C<M;C++){var P=f(T[C]).toRgb();S[C]=[P.r,P.g,P.b,P.a]}var D,O=l.scale.linear().domain(k).range(S).clamp(!0),R=w.noNumericCheck,F=w.returnArray;return(D=R&&F?O:R?function(A){return x(O(A))}:F?function(A){return s(A)?O(A):f(A).isValid()?A:d.defaultLine}:function(A){return s(A)?x(O(A)):f(A).isValid()?A:d.defaultLine}).domain=O.domain,D.range=function(){return T},D}function x(_){var w={r:_[0],g:_[1],b:_[2],a:_[3]};return f(w).toRgbString()}o.exports={hasColorscale:function(_,w,k){var T=w?c.nestedProperty(_,w).get()||{}:_,M=T[k||"color"],S=!1;if(c.isArrayOrTypedArray(M)){for(var C=0;C<M.length;C++)if(s(M[C])){S=!0;break}}return c.isPlainObject(T)&&(S||T.showscale===!0||s(T.cmin)&&s(T.cmax)||h(T.colorscale)||c.isPlainObject(T.colorbar))},extractOpts:y,extractScale:v,flipScale:g,makeColorScaleFunc:b,makeColorScaleFuncFromTrace:function(_,w){return b(v(_),w)}}},21081:function(o,a,n){var l=n(63282),f=n(52075);o.exports={moduleType:"component",name:"colorscale",attributes:n(50693),layoutAttributes:n(72673),supplyLayoutDefaults:n(30959),handleDefaults:n(1586),crossTraceDefaults:n(33046),calc:n(78803),scales:l.scales,defaultScale:l.defaultScale,getScale:l.get,isValidScale:l.isValid,hasColorscale:f.hasColorscale,extractOpts:f.extractOpts,extractScale:f.extractScale,flipScale:f.flipScale,makeColorScaleFunc:f.makeColorScaleFunc,makeColorScaleFuncFromTrace:f.makeColorScaleFuncFromTrace}},72673:function(o,a,n){var l=n(1426).extendFlat,f=n(50693),s=n(63282).scales;o.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:s.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:s.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:s.RdBu,editType:"calc"}},coloraxis:l({_isSubplotObj:!0,editType:"calc"},f("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},30959:function(o,a,n){var l=n(71828),f=n(44467),s=n(72673),c=n(1586);o.exports=function(d,h){function p(w,k){return l.coerce(d,h,s,w,k)}p("colorscale.sequential"),p("colorscale.sequentialminus"),p("colorscale.diverging");var m,y,v=h._colorAxes;function g(w,k){return l.coerce(m,y,s.coloraxis,w,k)}for(var b in v){var x=v[b];if(x[0])m=d[b]||{},(y=f.newContainer(h,b,"coloraxis"))._name=b,c(m,y,h,g,{prefix:"",cLetter:"c"});else{for(var _=0;_<x[2].length;_++)x[2][_]();delete h._colorAxes[b]}}}},63282:function(o,a,n){var l=n(84267),f={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},s=f.RdBu;function c(d){var h=0;if(!Array.isArray(d)||d.length<2||!d[0]||!d[d.length-1]||+d[0][0]!=0||+d[d.length-1][0]!=1)return!1;for(var p=0;p<d.length;p++){var m=d[p];if(m.length!==2||+m[0]<h||!l(m[1]).isValid())return!1;h=+m[0]}return!0}o.exports={scales:f,defaultScale:s,get:function(d,h){if(h||(h=s),!d)return h;function p(){try{d=f[d]||JSON.parse(d)}catch{d=h}}return typeof d=="string"&&(p(),typeof d=="string"&&p()),c(d)?d:h},isValid:function(d){return f[d]!==void 0||c(d)}}},92807:function(o){o.exports=function(a,n,l,f,s){var c=(a-l)/(f-l),d=c+n/(f-l),h=(c+d)/2;return s==="left"||s==="bottom"?c:s==="center"||s==="middle"?h:s==="right"||s==="top"?d:c<.6666666666666666-h?c:d>1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,c,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),c=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*c),0,2),f[c][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),c=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTime<P?C+=1:(C=1,S._mouseDownTime=x),v.prepFn&&v.prepFn(z,g,b),f&&!M?(w=m()).style.cursor=window.getComputedStyle(D).cursor:f||(w=document,_=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(D).cursor),document.addEventListener("mouseup",A),document.addEventListener("touchend",A),v.dragmode!==!1&&(z.preventDefault(),document.addEventListener("mousemove",F),document.addEventListener("touchmove",F,{passive:!1}))}function F(z){z.preventDefault();var B=y(z),$=v.minDrag||d.MINDRAG,j=O(B[0]-g,B[1]-b,$),N=j[0],E=j[1];(N||E)&&(S._dragged=!0,h.unhover(S,z)),S._dragged&&v.moveFn&&!M&&(S._dragdata={element:D,dx:N,dy:E},v.moveFn(N,E))}function A(z){if(delete S._dragdata,v.dragmode!==!1&&(z.preventDefault(),document.removeEventListener("mousemove",F),document.removeEventListener("touchmove",F)),document.removeEventListener("mouseup",A),document.removeEventListener("touchend",A),f?c(w):_&&(w.documentElement.style.cursor=_,_=null),S._dragging){if(S._dragging=!1,new Date().getTime()-S._mouseDownTime>P&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,c=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+c.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(c(de)&&c(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&c(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(c(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we<ue;we++)ge.reversed?be[ue-1-we]=[R(100*(1-de[we][0])),de[we][1]]:be[we]=[R(100*de[we][0]),de[we][1]];var ke=ye._fullLayout,Ae="g"+ke._uid+"-"+J,Ee=ke._defs.select(".gradients").selectAll("#"+Ae).data([ne+be.join(";")],f.identity);Ee.exit().remove(),Ee.enter().append(ge.node).each(function(){var De=l.select(this);ge.attrs&&De.attr(ge.attrs),De.attr("id",Ae);var Re=De.selectAll("stop").data(be);Re.exit().remove(),Re.enter().append("stop"),Re.each(function(Ie){var Be=d(Ie[1]);l.select(this).attr({offset:Ie[0]+"%","stop-color":p.tinyRGB(Be),"stop-opacity":Be.getAlpha()})})}),ce.style(xe,ee(Ae,ye)).style(xe+"-opacity",null),ce.classed("gradient_filled",!0)},T.pattern=function(ce,ye,J,ne,de,xe,ue,ge,be,we,ke,Ae){var Ee=ye==="legend";ge&&(be==="overlay"?(we=ge,ke=p.contrast(we)):(we=void 0,ke=ge));var De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct=J._fullLayout,bt="p"+ct._uid+"-"+ne,ze={},Ne=d(ke),Qe=p.tinyRGB(Ne),it=Ae*Ne.getAlpha();switch(de){case"/":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),qe="path",ze={d:Ie="M-"+De/4+","+Re/4+"l"+De/2+",-"+Re/2+"M0,"+Re+"L"+De+",0M"+De/4*3+","+Re/4*5+"l"+De/2+",-"+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"\\":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),qe="path",ze={d:Ie="M"+De/4*3+",-"+Re/4+"l"+De/2+","+Re/2+"M0,0L"+De+","+Re+"M-"+De/4+","+Re/4*3+"l"+De/2+","+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"x":De=xe*Math.sqrt(2),Re=xe*Math.sqrt(2),Ie="M-"+De/4+","+Re/4+"l"+De/2+",-"+Re/2+"M0,"+Re+"L"+De+",0M"+De/4*3+","+Re/4*5+"l"+De/2+",-"+Re/2+"M"+De/4*3+",-"+Re/4+"l"+De/2+","+Re/2+"M0,0L"+De+","+Re+"M-"+De/4+","+Re/4*3+"l"+De/2+","+Re/2,Be=xe-xe*Math.sqrt(1-ue),qe="path",ze={d:Ie,opacity:it,stroke:Qe,"stroke-width":Be+"px"};break;case"|":qe="path",qe="path",ze={d:Ie="M"+(De=xe)/2+",0L"+De/2+","+(Re=xe),opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"-":qe="path",qe="path",ze={d:Ie="M0,"+(Re=xe)/2+"L"+(De=xe)+","+Re/2,opacity:it,stroke:Qe,"stroke-width":(Be=ue*xe)+"px"};break;case"+":qe="path",Ie="M"+(De=xe)/2+",0L"+De/2+","+(Re=xe)+"M0,"+Re/2+"L"+De+","+Re/2,Be=xe-xe*Math.sqrt(1-ue),qe="path",ze={d:Ie,opacity:it,stroke:Qe,"stroke-width":Be+"px"};break;case".":De=xe,Re=xe,ue<Math.PI/4?Ue=Math.sqrt(ue*xe*xe/Math.PI):(Ye=ue,at=Math.PI/4,Ue=(lt=xe/2)+(xe/Math.sqrt(2)-lt)*(Ye-at)/(1-at)),qe="circle",ze={cx:De/2,cy:Re/2,r:Ue,opacity:it,fill:Qe}}var kt=[de||"noSh",we||"noBg",ke||"noFg",xe,ue].join(";"),Je=ct._defs.select(".patterns").selectAll("#"+bt).data([kt],f.identity);Je.exit().remove(),Je.enter().append("pattern").each(function(){var ut=l.select(this);if(ut.attr({id:bt,width:De+"px",height:Re+"px",patternUnits:"userSpaceOnUse",patternTransform:Ee?"scale(0.8)":""}),we){var pt=d(we),It=p.tinyRGB(pt),Mt=pt.getAlpha(),zt=ut.selectAll("rect").data([0]);zt.exit().remove(),zt.enter().append("rect").attr({width:De+"px",height:Re+"px",fill:It,"fill-opacity":Mt})}var wt=ut.selectAll(qe).data([0]);wt.exit().remove(),wt.enter().append(qe).attr(ze)}),ce.style("fill",ee(bt,J)).style("fill-opacity",null),ce.classed("pattern_filled",!0)},T.initGradients=function(ce){var ye=ce._fullLayout;f.ensureSingle(ye._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),l.select(ce).selectAll(".gradient_filled").classed("gradient_filled",!1)},T.initPatterns=function(ce){var ye=ce._fullLayout;f.ensureSingle(ye._defs,"g","patterns").selectAll("pattern").remove(),l.select(ce).selectAll(".pattern_filled").classed("pattern_filled",!1)},T.getPatternAttr=function(ce,ye,J){return ce&&f.isArrayOrTypedArray(ce)?ye<ce.length?ce[ye]:J:ce},T.pointStyle=function(ce,ye,J,ne){if(ce.size()){var de=T.makePointStyleFns(ye);ce.each(function(xe){T.singlePointStyle(xe,l.select(this),ye,de,J,ne)})}},T.singlePointStyle=function(ce,ye,J,ne,de,xe){var ue=J.marker,ge=ue.line;if(xe&&xe.i>=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge<de.length;ge++)de[ge](ue,xe)})}},T.tryColorscale=function(ce,ye){var J=ye?f.nestedProperty(ce,ye).get():ce;if(J){var ne=J.color;if((J.colorscale||J._colorAx)&&f.isArrayOrTypedArray(ne))return m.makeColorScaleFuncFromTrace(J)}return f.identity};var A,z,B={start:1,end:-1,middle:0,bottom:1,top:-1};function $(ce,ye,J,ne,de){var xe=l.select(ce.node().parentNode),ue=ye.indexOf("top")!==-1?"top":ye.indexOf("bottom")!==-1?"bottom":"middle",ge=ye.indexOf("left")!==-1?"end":ye.indexOf("right")!==-1?"start":"middle",be=ne?ne/.8+1:0,we=(v.lineCount(ce)-1)*b+1,ke=B[ge]*be,Ae=.75*J+B[ue]*be+(B[ue]-1)*we*J/2;ce.attr("text-anchor",ge),de||xe.attr("transform",y(ke,Ae))}function j(ce,ye){var J=ce.ts||ye.textfont.size;return c(J)&&J>0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J<ce.length-1;J++)de.push(G(ce[J-1],ce[J],ce[J+1],ye));for(ne+="Q"+de[0][0]+" "+ce[1],J=2;J<ce.length-1;J++)ne+="C"+de[J-2][1]+" "+de[J-1][0]+" "+ce[J];return ne+"Q"+de[ce.length-3][1]+" "+ce[ce.length-1]},T.smoothclosed=function(ce,ye){if(ce.length<3)return"M"+ce.join("L")+"Z";var J,ne="M"+ce[0],de=ce.length-1,xe=[G(ce[de],ce[0],ce[1],ye)];for(J=1;J<de;J++)xe.push(G(ce[J-1],ce[J],ce[J+1],ye));for(xe.push(G(ce[de-1],ce[de],ce[0],ye)),J=1;J<=de;J++)ne+="C"+xe[J-1][1]+" "+xe[J][0]+" "+ce[J];return ne+"C"+xe[de][1]+" "+xe[0][0]+" "+ce[0]+"Z"};var L={hv:function(ce,ye,J){return"H"+E(ye[0])+"V"+N(ye,1,J)},vh:function(ce,ye,J){return"V"+W(ye[1])+"H"+N(ye,0,J)},hvh:function(ce,ye,J){return"H"+E((ce[0]+ye[0])/2)+"V"+W(ye[1])+"H"+N(ye,0,J)},vhv:function(ce,ye,J){return"V"+W((ce[1]+ye[1])/2)+"H"+E(ye[0])+"V"+N(ye,1,J)}},q=function(ce,ye,J){return"L"+N(ye,0,J)+","+N(ye,1,J)};function H(ce,ye){var J=ce.backoff,ne=ce.trace,de=ce.d,xe=ce.i;if(J&&ne&&ne.marker&&ne.marker.angle%360==0&&ne.line&&ne.line.shape!=="spline"){var ue=f.isArrayOrTypedArray(J),ge=ce,be=ye?ye[0]:A||0,we=ye?ye[1]:z||0,ke=ge[0],Ae=ge[1],Ee=ke-be,De=Ae-we,Re=Math.atan2(De,Ee),Ie=ue?J[xe]:J;if(Ie==="auto"){var Be=ge.i;ne.type==="scatter"&&Be--;var Ue=ge.marker,qe=Ue.symbol;f.isArrayOrTypedArray(qe)&&(qe=qe[Be]);var Ye=Ue.size;f.isArrayOrTypedArray(Ye)&&(Ye=Ye[Be]),Ie=Ue?T.symbolBackOffs[T.symbolNumber(qe)]*Ye:0,Ie+=T.getMarkerStandoff(de[Be],ne)||0}var at=ke-Ie*Math.cos(Re),lt=Ae-Ie*Math.sin(Re);(at<=ke&&at>=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe<de;xe++)ne+=ye(J[xe-1],J[xe],xe===de-1);return ne}},T.applyBackoff=H,T.makeTester=function(){var ce=f.ensureSingleById(l.select("body"),"svg","js-plotly-tester",function(J){J.attr(g.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),ye=f.ensureSingle(ce,"path","js-reference-point",function(J){J.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});T.tester=ce,T.testref=ye},T.savedBBoxes={};var V=0;function te(ce){var ye=ce.getAttribute("data-unformatted");if(ye!==null)return ye+ce.getAttribute("data-math")+ce.getAttribute("text-anchor")+ce.getAttribute("style")}function ee(ce,ye){if(!ce)return null;var J=ye._context,ne=J._exportedPlot?"":J._baseUrl||"";return ne?"url('"+ne+"#"+ce+"')":"url(#"+ce+")"}T.bBox=function(ce,ye,J){var ne,de,xe;if(J||(J=te(ce)),J){if(ne=T.savedBBoxes[J])return f.extendFlat({},ne)}else if(ce.childNodes.length===1){var ue=ce.childNodes[0];if(J=te(ue)){var ge=+ue.getAttribute("x")||0,be=+ue.getAttribute("y")||0,we=ue.getAttribute("transform");if(!we){var ke=T.bBox(ue,!1,J);return ge&&(ke.left+=ge,ke.right+=ge),be&&(ke.top+=be,ke.bottom+=be),ke}if(J+="~"+ge+"~"+be+"~"+we,ne=T.savedBBoxes[J])return f.extendFlat({},ne)}}ye?de=ce:(xe=T.tester.node(),de=ce.cloneNode(!0),xe.appendChild(de)),l.select(de).attr("transform",null).call(v.positionText,0,0);var Ae=de.getBoundingClientRect(),Ee=T.testref.node().getBoundingClientRect();ye||xe.removeChild(de);var De={height:Ae.height,width:Ae.width,left:Ae.left-Ee.left,top:Ae.top-Ee.top,right:Ae.right-Ee.left,bottom:Ae.bottom-Ee.top};return V>=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&c(J)&&c(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,c,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&c===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,c=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R<D.length;R++){var F=D[R],A=F[0],z=C,B=P;if(A==="M"||A==="L")C=+F[1],P=+F[2];else if(A==="m"||A==="l")C+=+F[1],P+=+F[2];else if(A==="H")C=+F[1];else if(A==="h")C+=+F[1];else if(A==="V")P=+F[1];else if(A==="v")P+=+F[1];else if(A==="A"){C=+F[1],P=+F[2];var $=M(S,[+F[6],+F[7]]);F[6]=$[0],F[7]=$[1],F[3]=+F[3]+w}A!=="H"&&A!=="V"||(A="L"),A!=="h"&&A!=="v"||(A="l"),A!=="m"&&A!=="l"||(C-=z,P-=B);var j=M(S,[C,P]);A!=="H"&&A!=="V"||(A="L"),A!=="M"&&A!=="L"&&A!=="m"&&A!=="l"||(F[1]=j[0],F[2]=j[1]),F[0]=A,O+=F[0]+F.slice(1).join(",")}return f=O,O}o.exports={circle:{n:0,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S="M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z";return T?_(k,T,S):S}},square:{n:1,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")}},diamond:{n:2,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"Z")}},cross:{n:3,f:function(w,k,T){if(x(k))return p;var M=h(.4*w,2),S=h(1.2*w,2);return _(k,T,"M"+S+","+M+"H"+M+"V"+S+"H-"+M+"V"+M+"H-"+S+"V-"+M+"H-"+M+"V-"+S+"H"+M+"V-"+M+"H"+S+"Z")}},x:{n:4,f:function(w,k,T){if(x(k))return p;var M=h(.8*w/m,2),S="l"+M+","+M,C="l"+M+",-"+M,P="l-"+M+",-"+M,D="l-"+M+","+M;return _(k,T,"M0,"+M+S+C+P+C+P+D+P+D+S+D+S+"Z")}},"triangle-up":{n:5,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+M+","+h(w/2,2)+"H"+M+"L0,-"+h(w,2)+"Z")}},"triangle-down":{n:6,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+M+",-"+h(w/2,2)+"H"+M+"L0,"+h(w,2)+"Z")}},"triangle-left":{n:7,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M"+h(w/2,2)+",-"+M+"V"+M+"L-"+h(w,2)+",0Z")}},"triangle-right":{n:8,f:function(w,k,T){if(x(k))return p;var M=h(2*w/y,2);return _(k,T,"M-"+h(w/2,2)+",-"+M+"V"+M+"L"+h(w,2)+",0Z")}},"triangle-ne":{n:9,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M-"+S+",-"+M+"H"+M+"V"+S+"Z")}},"triangle-se":{n:10,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M"+M+",-"+S+"V"+M+"H-"+S+"Z")}},"triangle-sw":{n:11,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M"+S+","+M+"H-"+M+"V-"+S+"Z")}},"triangle-nw":{n:12,f:function(w,k,T){if(x(k))return p;var M=h(.6*w,2),S=h(1.2*w,2);return _(k,T,"M-"+M+","+S+"V-"+M+"H"+S+"Z")}},pentagon:{n:13,f:function(w,k,T){if(x(k))return p;var M=h(.951*w,2),S=h(.588*w,2),C=h(-w,2),P=h(-.309*w,2);return _(k,T,"M"+M+","+P+"L"+S+","+h(.809*w,2)+"H-"+S+"L-"+M+","+P+"L0,"+C+"Z")}},hexagon:{n:14,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/2,2),C=h(w*y/2,2);return _(k,T,"M"+C+",-"+S+"V"+S+"L0,"+M+"L-"+C+","+S+"V-"+S+"L0,-"+M+"Z")}},hexagon2:{n:15,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/2,2),C=h(w*y/2,2);return _(k,T,"M-"+S+","+C+"H"+S+"L"+M+",0L"+S+",-"+C+"H-"+S+"L-"+M+",0Z")}},octagon:{n:16,f:function(w,k,T){if(x(k))return p;var M=h(.924*w,2),S=h(.383*w,2);return _(k,T,"M-"+S+",-"+M+"H"+S+"L"+M+",-"+S+"V"+S+"L"+S+","+M+"H-"+S+"L-"+M+","+S+"V-"+S+"Z")}},star:{n:17,f:function(w,k,T){if(x(k))return p;var M=1.4*w,S=h(.225*M,2),C=h(.951*M,2),P=h(.363*M,2),D=h(.588*M,2),O=h(-M,2),R=h(-.309*M,2),F=h(.118*M,2),A=h(.809*M,2);return _(k,T,"M"+S+","+R+"H"+C+"L"+P+","+F+"L"+D+","+A+"L0,"+h(.382*M,2)+"L-"+D+","+A+"L-"+P+","+F+"L-"+C+","+R+"H-"+S+"L0,"+O+"Z")}},hexagram:{n:18,f:function(w,k,T){if(x(k))return p;var M=h(.66*w,2),S=h(.38*w,2),C=h(.76*w,2);return _(k,T,"M-"+C+",0l-"+S+",-"+M+"h"+C+"l"+S+",-"+M+"l"+S+","+M+"h"+C+"l-"+S+","+M+"l"+S+","+M+"h-"+C+"l-"+S+","+M+"l-"+S+",-"+M+"h-"+C+"Z")}},"star-triangle-up":{n:19,f:function(w,k,T){if(x(k))return p;var M=h(w*y*.8,2),S=h(.8*w,2),C=h(1.6*w,2),P=h(4*w,2),D="A "+P+","+P+" 0 0 1 ";return _(k,T,"M-"+M+","+S+D+M+","+S+D+"0,-"+C+D+"-"+M+","+S+"Z")}},"star-triangle-down":{n:20,f:function(w,k,T){if(x(k))return p;var M=h(w*y*.8,2),S=h(.8*w,2),C=h(1.6*w,2),P=h(4*w,2),D="A "+P+","+P+" 0 0 1 ";return _(k,T,"M"+M+",-"+S+D+"-"+M+",-"+S+D+"0,"+C+D+M+",-"+S+"Z")}},"star-square":{n:21,f:function(w,k,T){if(x(k))return p;var M=h(1.1*w,2),S=h(2*w,2),C="A "+S+","+S+" 0 0 1 ";return _(k,T,"M-"+M+",-"+M+C+"-"+M+","+M+C+M+","+M+C+M+",-"+M+C+"-"+M+",-"+M+"Z")}},"star-diamond":{n:22,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2),S=h(1.9*w,2),C="A "+S+","+S+" 0 0 1 ";return _(k,T,"M-"+M+",0"+C+"0,"+M+C+M+",0"+C+"0,-"+M+C+"-"+M+",0Z")}},"diamond-tall":{n:23,f:function(w,k,T){if(x(k))return p;var M=h(.7*w,2),S=h(1.4*w,2);return _(k,T,"M0,"+S+"L"+M+",0L0,-"+S+"L-"+M+",0Z")}},"diamond-wide":{n:24,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2),S=h(.7*w,2);return _(k,T,"M0,"+S+"L"+M+",0L0,-"+S+"L-"+M+",0Z")}},hourglass:{n:25,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"H-"+M+"L"+M+",-"+M+"H-"+M+"Z")},noDot:!0},bowtie:{n:26,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"V-"+M+"L-"+M+","+M+"V-"+M+"Z")},noDot:!0},"circle-cross":{n:27,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(w,k,T){if(x(k))return p;var M=h(w,2),S=h(w/m,2);return _(k,T,"M"+S+","+S+"L-"+S+",-"+S+"M"+S+",-"+S+"L-"+S+","+S+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM0,-"+M+"V"+M+"M-"+M+",0H"+M)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(w,k,T){if(x(k))return p;var M=h(1.3*w,2),S=h(.65*w,2);return _(k,T,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM-"+S+",-"+S+"L"+S+","+S+"M-"+S+","+S+"L"+S+",-"+S)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(.85*w,2);return _(k,T,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+S+","+S+"L-"+S+",-"+S+"M"+S+",-"+S+"L-"+S+","+S)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(w,k,T){if(x(k))return p;var M=h(w/2,2),S=h(w,2);return _(k,T,"M"+M+","+S+"V-"+S+"M"+(M-S)+",-"+S+"V"+S+"M"+S+","+M+"H-"+S+"M-"+S+","+(M-S)+"H"+S)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+M+","+C+"L0,0M"+M+","+C+"L0,0M0,-"+S+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+M+",-"+C+"L0,0M"+M+",-"+C+"L0,0M0,"+S+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M"+C+","+M+"L0,0M"+C+",-"+M+"L0,0M-"+S+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(w,k,T){if(x(k))return p;var M=h(1.2*w,2),S=h(1.6*w,2),C=h(.8*w,2);return _(k,T,"M-"+C+","+M+"L0,0M-"+C+",-"+M+"L0,0M"+S+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(w,k,T){if(x(k))return p;var M=h(1.4*w,2);return _(k,T,"M0,"+M+"V-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M"+M+","+M+"L-"+M+",-"+M)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,0L-"+M+","+h(2*w,2)+"H"+M+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M0,0L-"+M+",-"+h(2*w,2)+"H"+M+"Z")},noDot:!0},"arrow-left":{n:47,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,0L"+M+",-"+S+"V"+S+"Z")},noDot:!0},"arrow-right":{n:48,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,0L-"+M+",-"+S+"V"+S+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M-"+M+",0H"+M+"M0,0L-"+M+","+h(2*w,2)+"H"+M+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(w,k,T){if(x(k))return p;var M=h(w,2);return _(k,T,"M-"+M+",0H"+M+"M0,0L-"+M+",-"+h(2*w,2)+"H"+M+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,-"+S+"V"+S+"M0,0L"+M+",-"+S+"V"+S+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(w,k,T){if(x(k))return p;var M=h(2*w,2),S=h(w,2);return _(k,T,"M0,-"+S+"V"+S+"M0,0L-"+M+",-"+S+"V"+S+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(w,k,T){if(x(k))return p;var M=v/2.5,S=2*w*g(M),C=2*w*b(M);return _(k,T,"M0,0L"+-S+","+C+"L"+S+","+C+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(w,k,T){if(x(k))return p;var M=v/4,S=2*w*g(M),C=2*w*b(M);return _(k,T,"M0,0L"+-S+","+C+"A "+2*w+","+2*w+" 0 0 1 "+S+","+C+"Z")},backoff:.4,noDot:!0}}},25673:function(o){o.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},84532:function(o,a,n){var l=n(92770),f=n(73972),s=n(89298),c=n(71828),d=n(45827);function h(p,m,y,v){var g=m["error_"+v]||{},b=[];if(g.visible&&["linear","log"].indexOf(y.type)!==-1){for(var x=d(g),_=0;_<p.length;_++){var w=p[_],k=w.i;if(k===void 0)k=_;else if(k===null)continue;var T=w[v];if(l(y.c2l(T))){var M=x(T,k);if(l(M[0])&&l(M[1])){var S=w[v+"s"]=T-M[0],C=w[v+"h"]=T+M[1];b.push(S,C)}}}var P=y._id,D=m._extremes[P],O=s.findExtremes(y,b,c.extendFlat({tozero:D.opts.tozero},{padded:!0}));D.min=D.min.concat(O.min),D.max=D.max.concat(O.max)}}o.exports=function(p){for(var m=p.calcdata,y=0;y<m.length;y++){var v=m[y],g=v[0].trace;if(g.visible===!0&&f.traceIs(g,"errorBarsOK")){var b=s.getFromId(p,g.xaxis),x=s.getFromId(p,g.yaxis);h(v,g,b,"x"),h(v,g,x,"y")}}}},45827:function(o){function a(n,l){return n==="percent"?function(f){return Math.abs(f*l/100)}:n==="constant"?function(){return Math.abs(l)}:n==="sqrt"?function(f){return Math.sqrt(Math.abs(f))}:void 0}o.exports=function(n){var l=n.type,f=n.symmetric;if(l==="data"){var s=n.array||[];if(f)return function(p,m){var y=+s[m];return[y,y]};var c=n.arrayminus||[];return function(p,m){var y=+s[m],v=+c[m];return isNaN(y)&&isNaN(v)?[NaN,NaN]:[v||0,y||0]}}var d=a(l,n.value),h=a(l,n.valueminus);return f||n.valueminus===void 0?function(p){var m=d(p);return[m,m]}:function(p){return[h(p),d(p)]}}},97587:function(o,a,n){var l=n(92770),f=n(73972),s=n(71828),c=n(44467),d=n(25673);o.exports=function(h,p,m,y){var v="error_"+y.axis,g=c.newContainer(p,v),b=h[v]||{};function x(T,M){return s.coerce(b,g,d,T,M)}if(x("visible",b.array!==void 0||b.value!==void 0||b.type==="sqrt")!==!1){var _=x("type","array"in b?"data":"percent"),w=!0;_!=="sqrt"&&(w=x("symmetric",!((_==="data"?"arrayminus":"valueminus")in b))),_==="data"?(x("array"),x("traceref"),w||(x("arrayminus"),x("tracerefminus"))):_!=="percent"&&_!=="constant"||(x("value"),w||x("valueminus"));var k="copy_"+y.inherit+"style";y.inherit&&(p["error_"+y.inherit]||{}).visible&&x(k,!(b.color||l(b.thickness)||l(b.width))),y.inherit&&g[k]||(x("color",m),x("thickness"),x("width",f.traceIs(p,"gl3d")?0:4))}}},37369:function(o,a,n){var l=n(71828),f=n(30962).overrideAll,s=n(25673),c={error_x:l.extendFlat({},s),error_y:l.extendFlat({},s)};delete c.error_x.copy_zstyle,delete c.error_y.copy_zstyle,delete c.error_y.copy_ystyle;var d={error_x:l.extendFlat({},s),error_y:l.extendFlat({},s),error_z:l.extendFlat({},s)};delete d.error_x.copy_ystyle,delete d.error_y.copy_ystyle,delete d.error_z.copy_ystyle,delete d.error_z.copy_zstyle,o.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:c,bar:c,histogram:c,scatter3d:f(d,"calc","nested"),scattergl:f(c,"calc","nested")}},supplyDefaults:n(97587),calc:n(84532),makeComputeError:n(45827),plot:n(19398),style:n(62662),hoverInfo:function(h,p,m){(p.error_y||{}).visible&&(m.yerr=h.yh-h.y,p.error_y.symmetric||(m.yerrneg=h.y-h.ys)),(p.error_x||{}).visible&&(m.xerr=h.xh-h.x,p.error_x.symmetric||(m.xerrneg=h.x-h.xs))}}},19398:function(o,a,n){var l=n(39898),f=n(92770),s=n(91424),c=n(34098);o.exports=function(d,h,p,m){var y=p.xaxis,v=p.yaxis,g=m&&m.duration>0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=c.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(c){var d=c[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(c,d,h,p){p=p||l.identity,Array.isArray(c)&&(d[0][h]=p(c))}o.exports=function(c){var d=c.calcdata,h=c._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m<d.length;m++){var y=d[m],v=y[0].trace;if(!f.traceIs(v,"pie-like")){var g=f.traceIs(v,"2dMap")?s:l.fillArray;g(v.hoverinfo,y,"hi",p(v)),v.hovertemplate&&g(v.hovertemplate,y,"ht"),v.hoverlabel&&(g(v.hoverlabel.bgcolor,y,"hbg"),g(v.hoverlabel.bordercolor,y,"hbc"),g(v.hoverlabel.font.size,y,"hts"),g(v.hoverlabel.font.color,y,"htc"),g(v.hoverlabel.font.family,y,"htf"),g(v.hoverlabel.namelength,y,"hnl"),g(v.hoverlabel.align,y,"hta"))}}}},75914:function(o,a,n){var l=n(73972),f=n(88335).hover;o.exports=function(s,c,d){var h=l.getComponentMethod("annotations","onClick")(s,s._hoverdata);function p(){s.emit("plotly_click",{points:s._hoverdata,event:c})}d!==void 0&&f(s,c,d,!0),s._hoverdata&&c&&c.target&&(h&&h.then?h.then(p):p(),c.stopImmediatePropagation&&c.stopImmediatePropagation())}},26675:function(o){o.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},54268:function(o,a,n){var l=n(71828),f=n(77914),s=n(38048);o.exports=function(c,d,h,p){var m=l.extendFlat({},p.hoverlabel);d.hovertemplate&&(m.namelength=-1),s(c,d,function(y,v){return l.coerce(c,d,f,y,v)},m)}},23469:function(o,a,n){var l=n(71828);a.getSubplot=function(p){return p.subplot||p.xaxis+p.yaxis||p.geo},a.isTraceInSubplots=function(p,m){if(p.type==="splom"){for(var y=p.xaxes||[],v=p.yaxes||[],g=0;g<y.length;g++)for(var b=0;b<v.length;b++)if(m.indexOf(y[g]+v[b])!==-1)return!0;return!1}return m.indexOf(a.getSubplot(p))!==-1},a.flat=function(p,m){for(var y=new Array(p.length),v=0;v<p.length;v++)y[v]=m;return y},a.p2c=function(p,m){for(var y=new Array(p.length),v=0;v<p.length;v++)y[v]=p[v].p2c(m);return y},a.getDistanceFunction=function(p,m,y,v){return p==="closest"?v||a.quadrature(m,y):p.charAt(0)==="x"?m:y},a.getClosest=function(p,m,y){if(y.index!==!1)y.index>=0&&y.index<p.length?y.distance=0:y.index=!1;else for(var v=0;v<p.length;v++){var g=m(p[v]);g<=y.distance&&(y.index=v,y.distance=g)}return y},a.inbox=function(p,m,y){return p*m<0||p===0?y:1/0},a.quadrature=function(p,m){return function(y){var v=p(y),g=m(y);return Math.sqrt(v*v+g*g)}},a.makeEventData=function(p,m,y){var v="index"in p?p.index:p.pointNumber,g={data:m._input,fullData:m,curveNumber:m.index,pointNumber:v};if(m._indexToPoints){var b=m._indexToPoints[v];b.length===1?g.pointIndex=b[0]:g.pointIndices=b}else g.pointIndex=v;return m._module.eventData?g=m._module.eventData(g,p,m,y,v):("xVal"in p?g.x=p.xVal:"x"in p&&(g.x=p.x),"yVal"in p?g.y=p.yVal:"y"in p&&(g.y=p.y),p.xa&&(g.xaxis=p.xa),p.ya&&(g.yaxis=p.ya),p.zLabelVal!==void 0&&(g.z=p.zLabelVal)),a.appendArrayPointValue(g,m,v),g},a.appendArrayPointValue=function(p,m,y){var v=m._arrayAttrs;if(v)for(var g=0;g<v.length;g++){var b=v[g],x=s(b);if(p[x]===void 0){var _=c(l.nestedProperty(m,b).get(),y);_!==void 0&&(p[x]=_)}}},a.appendArrayMultiPointValues=function(p,m,y){var v=m._arrayAttrs;if(v)for(var g=0;g<v.length;g++){var b=v[g],x=s(b);if(p[x]===void 0){for(var _=l.nestedProperty(m,b).get(),w=new Array(y.length),k=0;k<y.length;k++)w[k]=c(_,y[k]);p[x]=w}}};var f={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function s(p){return f[p]||p}function c(p,m){return Array.isArray(m)?Array.isArray(p)&&Array.isArray(p[m[0]])?p[m[0]][m[1]]:void 0:p[m]}var d={x:!0,y:!0},h={"x unified":!0,"y unified":!0};a.isUnifiedHover=function(p){return typeof p=="string"&&!!h[p]},a.isXYhover=function(p){return typeof p=="string"&&!!d[p]}},88335:function(o,a,n){var l=n(39898),f=n(92770),s=n(84267),c=n(71828),d=c.strTranslate,h=c.strRotate,p=n(11086),m=n(63893),y=n(39918),v=n(91424),g=n(7901),b=n(28569),x=n(89298),_=n(73972),w=n(23469),k=n(26675),T=n(99017),M=n(43969),S=k.YANGLE,C=Math.PI*S/180,P=1/Math.sin(C),D=Math.cos(C),O=Math.sin(C),R=k.HOVERARROWSIZE,F=k.HOVERTEXTPAD,A={box:!0,ohlc:!0,violin:!0,candlestick:!0},z={scatter:!0,scattergl:!0,splom:!0};function B(Q){return[Q.trace.index,Q.index,Q.x0,Q.y0,Q.name,Q.attr,Q.xa?Q.xa._id:"",Q.ya?Q.ya._id:""].join(",")}a.hover=function(Q,Y,Z,X){Q=c.getGraphDiv(Q);var re=Y.target;c.throttle(Q._fullLayout._uid+k.HOVERID,k.HOVERMINTIME,function(){(function(ie,le,se,pe,Te){se||(se="xy");var Se=Array.isArray(se)?se:[se],Oe=ie._fullLayout,Me=Oe._plots||[],ce=Me[se],ye=Oe._has("cartesian");if(ce){var J=ce.overlays.map(function(Zt){return Zt.id});Se=Se.concat(J)}for(var ne=Se.length,de=new Array(ne),xe=new Array(ne),ue=!1,ge=0;ge<ne;ge++){var be=Se[ge];if(Me[be])ue=!0,de[ge]=Me[be].xaxis,xe[ge]=Me[be].yaxis;else{if(!Oe[be]||!Oe[be]._subplot)return void c.warn("Unrecognized subplot: "+be);var we=Oe[be]._subplot;de[ge]=we.xaxis,xe[ge]=we.yaxis}}var ke=le.hovermode||Oe.hovermode;if(ke&&!ue&&(ke="closest"),["x","y","closest","x unified","y unified"].indexOf(ke)===-1||!ie.calcdata||ie.querySelector(".zoombox")||ie._dragging)return b.unhoverRaw(ie,le);var Ae=Oe.hoverdistance;Ae===-1&&(Ae=1/0);var Ee=Oe.spikedistance;Ee===-1&&(Ee=1/0);var De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt,ze,Ne,Qe=[],it=[],kt={hLinePoint:null,vLinePoint:null},Je=!1;if(Array.isArray(le))for(ke="array",Ie=0;Ie<le.length;Ie++)(Ue=ie.calcdata[le[Ie].curveNumber||0])&&(qe=Ue[0].trace,Ue[0].trace.hoverinfo!=="skip"&&(it.push(Ue),qe.orientation==="h"&&(Je=!0)));else{for(Be=0;Be<ie.calcdata.length;Be++)Ue=ie.calcdata[Be],(qe=Ue[0].trace).hoverinfo!=="skip"&&w.isTraceInSubplots(qe,Se)&&(it.push(Ue),qe.orientation==="h"&&(Je=!0));var ut,pt;if(Te){if(p.triggerHandler(ie,"plotly_beforehover",le)===!1)return;var It=Te.getBoundingClientRect();ut=le.clientX-It.left,pt=le.clientY-It.top,Oe._calcInverseTransform(ie);var Mt=c.apply3DTransform(Oe._invTransform)(ut,pt);if(ut=Mt[0],pt=Mt[1],ut<0||ut>de[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return c.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;Be<it.length;Be++)if((Ue=it[Be])&&Ue[0]&&Ue[0].trace&&(qe=Ue[0].trace).visible===!0&&qe._length!==0&&["carpet","contourcarpet"].indexOf(qe._module.name)===-1){if(qe.type==="splom"?Ye=Se[at=0]:(Ye=w.getSubplot(qe),at=Se.indexOf(Ye)),lt=ke,w.isUnifiedHover(lt)&&(lt=lt.charAt(0)),ze={cd:Ue,trace:qe,xa:de[at],ya:xe[at],maxHoverDistance:Ae,maxSpikeDistance:Ee,index:!1,distance:Math.min(zt,Ae),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:g.defaultLine,name:qe.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},Oe[Ye]&&(ze.subplot=Oe[Ye]._subplot),Oe._splomScenes&&Oe._splomScenes[qe.uid]&&(ze.scene=Oe._splomScenes[qe.uid]),Ne=Qe.length,lt==="array"){var nn=le[Be];"pointNumber"in nn?(ze.index=nn.pointNumber,lt="closest"):(lt="","xval"in nn&&(ct=nn.xval,lt="x"),"yval"in nn&&(bt=nn.yval,lt=lt?"closest":"y"))}else Zt!==void 0&&pn!==void 0?(ct=Zt,bt=pn):(ct=De[at],bt=Re[at]);if(Ae!==0)if(qe._module&&qe._module.hoverPoints){var Kt=qe._module.hoverPoints(ze,ct,bt,lt,{finiteRange:!0,hoverLayer:Oe._hoverlayer});if(Kt)for(var Cn,_n=0;_n<Kt.length;_n++)Cn=Kt[_n],f(Cn.x0)&&f(Cn.y0)&&Qe.push(G(Cn,ke))}else c.log("Unrecognized trace type in hover:",qe);if(ke==="closest"&&Qe.length>Ne&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn<Zt.length;Pn++)Kt=Zt[Pn].spikeDistance,nn&&Pn===0&&(Kt=-1/0),Kt<=_n&&Kt<=pn&&(Cn=Zt[Pn],_n=Kt);return Cn}function _e(Zt){return Zt?{xa:Zt.xa,ya:Zt.ya,x:Zt.xSpike!==void 0?Zt.xSpike:(Zt.x0+Zt.x1)/2,y:Zt.ySpike!==void 0?Zt.ySpike:(Zt.y0+Zt.y1)/2,distance:Zt.distance,spikeDistance:Zt.spikeDistance,curveNumber:Zt.trace.index,color:Zt.color,pointNumber:Zt.index}:null}wt();var Ve={fullLayout:Oe,container:Oe._hoverlayer,event:le};ie._spikepoints;var We={vLinePoint:kt.vLinePoint,hLinePoint:kt.hLinePoint};ie._spikepoints=We;var Ze=function(){Qe.sort(function(Zt,pn){return Zt.distance-pn.distance}),Qe=function(Zt,pn){for(var nn=pn.charAt(0),Kt=[],Cn=[],_n=[],Pn=0;Pn<Zt.length;Pn++){var xn=Zt[Pn];_.traceIs(xn.trace,"bar-like")||_.traceIs(xn.trace,"box-violin")?_n.push(xn):xn.trace[nn+"period"]?Cn.push(xn):Kt.push(xn)}return Kt.concat(Cn).concat(_n)}(Qe,ke)};Ze();var Ge=ke.charAt(0),Ke=(Ge==="x"||Ge==="y")&&Qe[0]&&z[Qe[0].trace.type];if(ye&&Ee!==0&&Qe.length!==0){var nt=ve(Qe.filter(function(Zt){return Zt.ya.showspikes}),Ee,Ke);kt.hLinePoint=_e(nt);var st=ve(Qe.filter(function(Zt){return Zt.xa.showspikes}),Ee,Ke);kt.vLinePoint=_e(st)}if(Qe.length===0){var mt=b.unhoverRaw(ie,le);return!ye||kt.hLinePoint===null&&kt.vLinePoint===null||L(ie,kt,Ve),mt}if(ye&&q()&&L(ie,kt,Ve),w.isXYhover(lt)&&Qe[0].length!==0&&Qe[0].trace.type!=="splom"){var tt=Qe[0],Ft=(Qe=A[tt.trace.type]?Qe.filter(function(Zt){return Zt.trace.index===tt.trace.index}):[tt]).length;wt(V("x",tt,Oe),V("y",tt,Oe));var Vt,St=[],Nt={},Dt=0,gt=function(Zt){var pn=A[Zt.trace.type]?B(Zt):Zt.trace.index;if(Nt[pn]){var nn=Nt[pn]-1,Kt=St[nn];nn>0&&Math.abs(Zt.distance)<Math.abs(Kt.distance)&&(St[nn]=Zt)}else Dt++,Nt[pn]=Dt,St.push(Zt)};for(Vt=0;Vt<Ft;Vt++)gt(Qe[Vt]);for(Vt=Qe.length-1;Vt>Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie<Qe.length;Ie++){var jt=Qe[Ie],Tt=w.makeEventData(jt,jt.trace,jt.cd);if(jt.hovertemplate!==!1){var Ot=!1;jt.cd[jt.index]&&jt.cd[jt.index].ht&&(Ot=jt.cd[jt.index].ht),jt.hovertemplate=Ot||jt.trace.hovertemplate||!1}if(jt.xa&&jt.ya){var At=jt.x0+jt.xa._offset,Lt=jt.x1+jt.xa._offset,Rt=jt.y0+jt.ya._offset,$t=jt.y1+jt.ya._offset,Yt=Math.min(At,Lt),Xt=Math.max(At,Lt),Bt=Math.min(Rt,$t),Wt=Math.max(Rt,$t);Tt.bbox={x0:Yt+Et,x1:Xt+Et,y0:Bt+qt,y1:Wt+qt}}jt.eventData=[Tt],yt.push(Tt)}ie._hoverdata=yt;var tn=ke==="y"&&(it.length>1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xn<Tn.length;xn++)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn<Tn.length&&!(Br<=0);xn++)if((tr=Tn[xn]).pos<Dr.pmin+1)for(tr.del=!0,Br--,Pn=2*tr.size,Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn<kr.length-1;){var Un=kr[xn],Lr=kr[xn+1],br=Un[Un.length-1],Mr=Lr[0];if((_n=br.pos+br.dp+br.size-Mr.pos-Mr.dp+Mr.size)>.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5<se?se-Oe+5:0,se=Oe+Te.by+Te.offset,Se===Y.anchorIndex&&(pe=Te.offset)}).each(function(Te){Te.offset-=pe}),W(le,!1,X._fullLayout._invScaleX,X._fullLayout._invScaleY),Z?le:le.node()};var $=/<extra>([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xe<Q.length&&(de=Q[xe][ne])===void 0;xe++);var ue=U(Z,pe),ge=ue.top,be=ue.width,we=ue.height,ke=de!==void 0&&Me.distance<=Y.hoverdistance&&(re==="x"||re==="y");if(ke){var Ae,Ee,De=!0;for(Ae=0;Ae<Q.length;Ae++)if(De&&Q[Ae].zLabel===void 0&&(De=!1),Ee=Q[Ae].hoverinfo||Q[Ae].trace.hoverinfo){var Re=Array.isArray(Ee)?Ee:Ee.split("+");if(Re.indexOf("all")===-1&&Re.indexOf(re)===-1){ke=!1;break}}De&&(ke=!1)}var Ie=se.selectAll("g.axistext").data(ke?[0]:[]);Ie.enter().append("g").classed("axistext",!0),Ie.exit().remove();var Be={minX:0,maxX:0,minY:0,maxY:0};if(Ie.each(function(){var tt=l.select(this),Ft=c.ensureSingle(tt,"path","",function(Wt){Wt.style({"stroke-width":"1px"})}),Vt=c.ensureSingle(tt,"text","",function(Wt){Wt.attr("data-notex",1)}),St=Te.bgcolor||g.defaultLine,Nt=Te.bordercolor||g.contrast(St),Dt=g.contrast(St),gt={family:Te.font.family||Se,size:Te.font.size||Oe,color:Te.font.color||Dt};Ft.style({fill:St,stroke:Nt}),Vt.text(de).call(v.font,gt).call(m.positionText,0,0).call(m.convertToTspans,Z),tt.attr("transform","");var ht,yt,qt=U(Z,Vt.node());if(re==="x"){var Et=ce.side==="top"?"-":"";Vt.attr("text-anchor","middle").call(m.positionText,0,ce.side==="top"?ge-qt.bottom-R-F:ge-qt.top+R+F),ht=ce._offset+(Me.x0+Me.x1)/2,yt=ye._offset+(ce.side==="top"?0:ye._length);var jt=qt.width/2+F;ht<jt?(ht=jt,Ft.attr("d","M-"+(jt-R)+",0L-"+(jt-2*R)+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"Z")):ht>X.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht<qt.width+2*F+R){Lt="M-"+(R+F)+"-"+Rt+"h-"+(qt.width-F)+"V"+Rt+"h"+(qt.width-F)+"Z";var Xt=qt.width-ht+F;m.positionText(Vt,Xt,$t),Tt==="end"&&Vt.selectAll("tspan").each(function(){var Wt=l.select(this),tn=v.tester.append("text").text(Wt.text()).call(v.font,gt),cn=U(Z,tn.node());Math.round(cn.width)<Math.round(qt.width)&&Wt.attr("x",Xt-cn.width),tn.remove()})}else m.positionText(Vt,Ot*(F+R),$t),Lt=null;var Bt=X._topclips.selectAll("#"+Yt).data(Lt?[0]:[]);Bt.enter().append("clipPath").attr("id",Yt).append("path"),Bt.exit().remove(),Bt.select("path").attr("d",Lt),v.setClipUrl(Vt,Lt?Yt:null,Z)}tt.attr("transform",d(ht,yt))}),w.isUnifiedHover(re)){se.selectAll("g.hovertext").remove();var Ue=Q.filter(function(tt){return tt.hoverinfo!=="none"});if(Ue.length===0)return[];var qe=X.hoverlabel,Ye=qe.font,at={showlegend:!0,legend:{title:{text:de,font:Ye},font:Ye,bgcolor:qe.bgcolor,bordercolor:qe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:X.legend?X.legend.traceorder:void 0,orientation:"v"}},lt={font:Ye};T(at,lt,Z._fullData);var ct=lt.legend;ct.entries=[];for(var bt=0;bt<Ue.length;bt++){var ze=Ue[bt];if(ze.hoverinfo!=="none"){var Ne=N(ze,!0,re,X,de),Qe=Ne[0],it=Ne[1];ze.name=it,ze.text=it!==""?it+" : "+Qe:Qe;var kt=ze.cd[ze.index];kt&&(kt.mc&&(ze.mc=kt.mc),kt.mcc&&(ze.mc=kt.mcc),kt.mlc&&(ze.mlc=kt.mlc),kt.mlcc&&(ze.mlc=kt.mlcc),kt.mlw&&(ze.mlw=kt.mlw),kt.mrc&&(ze.mrc=kt.mrc),kt.dir&&(ze.dir=kt.dir)),ze._distinct=!0,ct.entries.push([ze])}}ct.entries.sort(function(tt,Ft){return tt[0].trace.index-Ft[0].trace.index}),ct.layer=se,ct._inHover=!0,ct._groupTitleFont=qe.grouptitlefont,M(Z,ct);var Je,ut,pt,It,Mt=se.select("g.legend"),zt=U(Z,Mt.node()),wt=zt.width+2*F,ve=zt.height+2*F,_e=Ue[0],Ve=(_e.x0+_e.x1)/2,We=(_e.y0+_e.y1)/2,Ze=!(_.traceIs(_e.trace,"bar-like")||_.traceIs(_e.trace,"box-violin"));J==="y"?Ze?(ut=We-F,Je=We+F):(ut=Math.min.apply(null,Ue.map(function(tt){return Math.min(tt.y0,tt.y1)})),Je=Math.max.apply(null,Ue.map(function(tt){return Math.max(tt.y0,tt.y1)}))):ut=Je=c.mean(Ue.map(function(tt){return(tt.y0+tt.y1)/2}))-ve/2,J==="x"?Ze?(pt=Ve+F,It=Ve-F):(pt=Math.max.apply(null,Ue.map(function(tt){return Math.max(tt.x0,tt.x1)})),It=Math.min.apply(null,Ue.map(function(tt){return Math.min(tt.x0,tt.x1)}))):pt=It=c.mean(Ue.map(function(tt){return(tt.x0+tt.x1)/2}))-wt/2;var Ge,Ke,nt=ce._offset,st=ye._offset;return It+=nt-wt,ut+=st-ve,Ge=(pt+=nt)+wt<be&&pt>=0?pt:It+wt<be&&It>=0?It:nt+wt<be?nt:pt-Ve<Ve-It+wt?be-wt:0,Ge+=F,Ke=(Je+=st)+ve<we&&Je>=0?Je:ut+ve<we&&ut>=0?ut:st+ve<we?st:Je-We<We-ut+ve?we-ve:0,Ke+=F,Mt.attr("transform",d(Ge-1,Ke-1)),Mt}var mt=se.selectAll("g.hovertext").data(Q,function(tt){return B(tt)});return mt.enter().append("g").classed("hovertext",!0).each(function(){var tt=l.select(this);tt.append("rect").call(g.fill,g.addOpacity(le,.8)),tt.append("text").classed("name",!0),tt.append("path").style("stroke-width","1px"),tt.append("text").classed("nums",!0).call(v.font,Se,Oe)}),mt.exit().remove(),mt.each(function(tt){var Ft=l.select(this).attr("transform",""),Vt=tt.color;Array.isArray(Vt)&&(Vt=Vt[tt.eventData[0].pointNumber]);var St=tt.bgcolor||Vt,Nt=g.combine(g.opacity(St)?St:g.defaultLine,le),Dt=g.combine(g.opacity(Vt)?Vt:g.defaultLine,le),gt=tt.borderColor||g.contrast(Nt),ht=N(tt,ke,re,X,de,Ft),yt=ht[0],qt=ht[1],Et=Ft.select("text.nums").call(v.font,tt.fontFamily||Se,tt.fontSize||Oe,tt.fontColor||gt).text(yt).attr("data-notex",1).call(m.positionText,0,0).call(m.convertToTspans,Z),jt=Ft.select("text.name"),Tt=0,Ot=0;if(qt&&qt!==yt){jt.call(v.font,tt.fontFamily||Se,tt.fontSize||Oe,Dt).text(qt).attr("data-notex",1).call(m.positionText,0,0).call(m.convertToTspans,Z);var At=U(Z,jt.node());Tt=At.width+2*F,Ot=At.height+2*F}else jt.remove(),Ft.select("rect").remove();Ft.select("path").style({fill:Nt,stroke:gt});var Lt=tt.xa._offset+(tt.x0+tt.x1)/2,Rt=tt.ya._offset+(tt.y0+tt.y1)/2,$t=Math.abs(tt.x1-tt.x0),Yt=Math.abs(tt.y1-tt.y0),Xt=U(Z,Et.node()),Bt=Xt.width/X._invScaleX,Wt=Xt.height/X._invScaleY;tt.ty0=(ge-Xt.top)/X._invScaleY,tt.bx=Bt+2*F,tt.by=Math.max(Wt+2*F,Ot),tt.anchor="start",tt.txwidth=Bt,tt.tx2width=Tt,tt.offset=0;var tn,cn,ln=(Bt+R+F+Tt)*X._invScaleX;if(ie)tt.pos=Lt,tn=Rt+Yt/2+ln<=we,cn=Rt-Yt/2-ln>=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=c.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"<br>"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"<br>"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"<br>":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"<br>":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=c.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=c.castOption(re,Z,Me);return le(ye)?ye:c.extractOption({},X,"",ce)}:function(Me,ce){return c.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=c.constrain(Q.x0,0,Q.xa._length),Q.x1=c.constrain(Q.x1,0,Q.xa._length),Q.y0=c.constrain(Q.y0,0,Q.ya._length),Q.y1=c.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=c.apply3DTransform(Z._invTransform)(re,ie),Te=c.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(c,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,c){function d(h,p){return c[h]!==void 0?c[h]:l.coerce(s,c,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),c=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,quadrature:c.quadrature,appendArrayPointValue:c.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),c=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),c(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(c,d){f(c,d,function(h,p){return l.coerce(c,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,c=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w<b;w++)T(w,v[w]);else for(T(0,_),w=1;w<b;w++)T(w,_+(w+1));return k}o.exports={moduleType:"component",name:"grid",schema:{layout:{grid:h}},layoutAttributes:h,sizeDefaults:function(v,g){var b=v.grid||{},x=p(g,b,"x"),_=p(g,b,"y");if(v.grid||x||_){var w,k,T=Array.isArray(b.subplots)&&Array.isArray(b.subplots[0]),M=Array.isArray(x),S=Array.isArray(_),C=M&&x!==b.xaxes&&S&&_!==b.yaxes;T?(w=b.subplots.length,k=b.subplots[0].length):(S&&(w=_.length),M&&(k=x.length));var P=d.newContainer(g,"grid"),D=$("rows",w),O=$("columns",k);if(D*O>1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x<O;x++){var $=M[x]=new Array(R),j=z[x]||[];for(_=0;_<R;_++)if(F?(T=B===1?"xy":"x"+B+"y"+B,B++):T=j[_],$[_]="",P.cartesian.indexOf(T)!==-1){if(S=T.indexOf("y"),w=T.slice(0,S),k=T.slice(S),A[w]!==void 0&&A[w]!==_||A[k]!==void 0&&A[k]!==x)continue;$[_]=T,A[w]=_,A[k]=x}}}else{var N=p(g,C,"x"),E=p(g,C,"y");b.xaxes=y(N,P.xaxis,R,A,"x"),b.yaxes=y(E,P.yaxis,O,A,"y")}var W=b._anchors={},G=b.roworder==="top to bottom";for(var L in A){var q,H,V,te=L.charAt(0),ee=b[te+"side"];if(ee.length<8)W[L]="free";else if(te==="x"){if(ee.charAt(0)==="t"===G?(q=0,H=1,V=O):(q=O-1,H=-1,V=-1),D){var U=A[L];for(x=q;x!==V;x+=H)if((T=M[x][U])&&(S=T.indexOf("y"),T.slice(0,S)===L)){W[L]=T.slice(S);break}}else for(x=q;x!==V;x+=H)if(k=b.yaxes[x],P.cartesian.indexOf(L+k)!==-1){W[L]=k;break}}else if(ee.charAt(0)==="l"?(q=0,H=1,V=R):(q=R-1,H=-1,V=-1),D){var Q=A[L];for(x=q;x!==V;x+=H)if((T=M[Q][x])&&(S=T.indexOf("y"),T.slice(S)===L)){W[L]=T.slice(0,S);break}}else for(x=q;x!==V;x+=H)if(w=b.xaxes[x],P.cartesian.indexOf(w+L)!==-1){W[L]=w;break}}}}}},69819:function(o,a,n){var l=n(85555),f=n(44467).templatedArray;n(24695),o.exports=f("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},75378:function(o,a,n){var l=n(92770),f=n(58163);o.exports=function(s,c,d,h){c=c||{};var p=d==="log"&&c.type==="linear",m=d==="linear"&&c.type==="log";if(p||m){for(var y,v,g=s._fullLayout.images,b=c._id.charAt(0),x=0;x<g.length;x++)if(v="images["+x+"].",(y=g[x])[b+"ref"]===c._id){var _=y[b],w=y["size"+b],k=null,T=null;if(p){k=f(_,c.range);var M=w/Math.pow(10,k)/2;T=2*Math.log(M+Math.sqrt(1+M*M))/Math.LN10}else T=(k=Math.pow(10,_))*(Math.pow(10,w/2)-Math.pow(10,-w/2));l(k)?l(T)||(T=null):(k=null,T=null),h(v+b,k),h(v+"size"+b,T)}}}},81603:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(69819);function d(h,p,m){function y(k,T){return l.coerce(h,p,c,k,T)}var v=y("source");if(!y("visible",!!v))return p;y("layer"),y("xanchor"),y("yanchor"),y("sizex"),y("sizey"),y("sizing"),y("opacity");for(var g={_fullLayout:m},b=["x","y"],x=0;x<2;x++){var _=b[x],w=f.coerceRef(h,p,g,_,"paper",void 0);w!=="paper"&&f.getFromId(g,w)._imgIndices.push(p._index),f.coercePosition(p,g,y,w,_,0)}return p}o.exports=function(h,p){s(h,p,{name:"images",handleItemDefaults:d})}},80750:function(o,a,n){var l=n(39898),f=n(91424),s=n(89298),c=n(41675),d=n(77922);o.exports=function(h){var p,m,y=h._fullLayout,v=[],g={},b=[];for(m=0;m<y.images.length;m++){var x=y.images[m];if(x.visible)if(x.layer==="below"&&x.xref!=="paper"&&x.yref!=="paper"){p=c.ref2id(x.xref)+c.ref2id(x.yref);var _=y._plots[p];if(!_){b.push(x);continue}_.mainplot&&(p=_.mainplot.id),g[p]||(g[p]=[]),g[p].push(x)}else x.layer==="above"?v.push(x):b.push(x)}var w={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},k={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function T(R){var F=l.select(this);if(this._imgSrc!==R.source)if(F.attr("xmlns",d.svg),R.source&&R.source.slice(0,5)==="data:")F.attr("xlink:href",R.source),this._imgSrc=R.source;else{var A=new Promise((function(z){var B=new Image;function $(){F.remove(),z()}this.img=B,B.setAttribute("crossOrigin","anonymous"),B.onerror=$,B.onload=function(){var j=document.createElement("canvas");j.width=this.width,j.height=this.height,j.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var N=j.toDataURL("image/png");F.attr("xlink:href",N),z()},F.on("error",$),B.src=R.source,this._imgSrc=R.source}).bind(this));h._promises.push(A)}}function M(R){var F,A,z=l.select(this),B=s.getFromId(h,R.xref),$=s.getFromId(h,R.yref),j=s.getRefType(R.xref)==="domain",N=s.getRefType(R.yref)==="domain",E=y._size;F=B!==void 0?typeof R.xref=="string"&&j?B._length*R.sizex:Math.abs(B.l2p(R.sizex)-B.l2p(0)):R.sizex*E.w,A=$!==void 0?typeof R.yref=="string"&&N?$._length*R.sizey:Math.abs($.l2p(R.sizey)-$.l2p(0)):R.sizey*E.h;var W,G,L=F*w[R.xanchor].offset,q=A*k[R.yanchor].offset,H=w[R.xanchor].sizing+k[R.yanchor].sizing;switch(W=B!==void 0?typeof R.xref=="string"&&j?B._length*R.x+B._offset:B.r2p(R.x)+B._offset:R.x*E.w+E.l,W+=L,G=$!==void 0?typeof R.yref=="string"&&N?$._length*(1-R.y)+$._offset:$.r2p(R.y)+$._offset:E.h-R.y*E.h+E.t,G+=q,R.sizing){case"fill":H+=" slice";break;case"stretch":H="none"}z.attr({x:W,y:G,width:F,height:A,preserveAspectRatio:H,opacity:R.opacity});var V=(B&&s.getRefType(R.xref)!=="domain"?B._id:"")+($&&s.getRefType(R.yref)!=="domain"?$._id:"");f.setClipUrl(z,V?"clip"+y._uid+V:null,h)}var S=y._imageLowerLayer.selectAll("image").data(b),C=y._imageUpperLayer.selectAll("image").data(v);S.enter().append("image"),C.enter().append("image"),S.exit().remove(),C.exit().remove(),S.each(function(R){T.bind(this)(R),M.bind(this)(R)}),C.each(function(R){T.bind(this)(R),M.bind(this)(R)});var P=Object.keys(y._plots);for(m=0;m<P.length;m++){p=P[m];var D=y._plots[p];if(D.imagelayer){var O=D.imagelayer.selectAll("image").data(g[p]||[]);O.enter().append("image"),O.exit().remove(),O.each(function(R){T.bind(this)(R),M.bind(this)(R)})}}}},68804:function(o,a,n){o.exports={moduleType:"component",name:"images",layoutAttributes:n(69819),supplyLayoutDefaults:n(81603),includeBasePlot:n(76325)("images"),draw:n(80750),convertCoords:n(75378)}},33030:function(o,a,n){var l=n(41940),f=n(22399);o.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:l({editType:"legend"}),grouptitlefont:l({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:l({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},14928:function(o){o.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},99017:function(o,a,n){var l=n(73972),f=n(71828),s=n(44467),c=n(9012),d=n(33030),h=n(10820),p=n(10130);function m(y,v,g,b){var x=v[y]||{},_=s.newContainer(g,y);function w(H,V){return f.coerce(x,_,d,H,V)}var k=f.coerceFont(w,"font",g.font);if(w("bgcolor",g.paper_bgcolor),w("bordercolor"),w("visible")){for(var T,M=function(H,V){var te=T._input,ee=T;return f.coerce(te,ee,c,H,V)},S=g.font||{},C=f.coerceFont(w,"grouptitlefont",f.extendFlat({},S,{size:Math.round(1.1*S.size)})),P=0,D=!1,O="normal",R=(g.shapes||[]).filter(function(H){return H.showlegend}),F=b.concat(R).filter(function(H){return y===(H.legend||"legend")}),A=0;A<F.length;A++)if((T=F[A]).visible){var z=T._isShape;(T.showlegend||T._dfltShowLegend&&!(T._module&&T._module.attributes&&T._module.attributes.showlegend&&T._module.attributes.showlegend.dflt===!1))&&(P++,T.showlegend&&(D=!0,(!z&&l.traceIs(T,"pie-like")||T._input.showlegend===!0)&&P++),f.coerceFont(M,"legendgrouptitle.font",C)),(!z&&l.traceIs(T,"bar")&&g.barmode==="stack"||["tonextx","tonexty"].indexOf(T.fill)!==-1)&&(O=p.isGrouped({traceorder:O})?"grouped+reversed":"reversed"),T.legendgroup!==void 0&&T.legendgroup!==""&&(O=p.isReversed({traceorder:O})?"reversed+grouped":"grouped")}var B=f.coerce(v,g,h,"showlegend",D&&P>(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b<x.length;b++)f.pushUnique(T,x[b].legend);for(v._legends=[],b=0;b<T.length;b++){var M=T[b];m(M,y,v,x),v[M]&&v[M].visible&&(v[M]._id=M),v._legends.push(M)}}},43969:function(o,a,n){var l=n(39898),f=n(71828),s=n(74875),c=n(73972),d=n(11086),h=n(28569),p=n(91424),m=n(7901),y=n(63893),v=n(85167),g=n(14928),b=n(18783),x=b.LINE_SPACING,_=b.FROM_TL,w=b.FROM_BR,k=n(82424),T=n(53630),M=n(10130),S=1,C=/^legend[0-9]*$/;function P(N,E){var W,G,L=E||{},q=N._fullLayout,H=j(L),V=L._inHover;if(V?(G=L.layer,W="hover"):(G=q._infolayer,W=H),G){var te;if(W+=q._uid,N._legendMouseDownTime||(N._legendMouseDownTime=0),V){if(!L.entries)return;te=k(L.entries,L)}else{for(var ee=(N.calcdata||[]).slice(),U=q.shapes,Q=0;Q<U.length;Q++){var Y=U[Q];if(Y.showlegend){var Z={_isShape:!0,_fullInput:Y,index:Y._index,name:Y.name||Y.label.text||"shape "+Y._index,legend:Y.legend,legendgroup:Y.legendgroup,legendgrouptitle:Y.legendgrouptitle,legendrank:Y.legendrank,legendwidth:Y.legendwidth,showlegend:Y.showlegend,visible:Y.visible,opacity:Y.opacity,mode:Y.type==="line"?"lines":"markers",line:Y.line,marker:{line:Y.line,color:Y.fillcolor,size:12,symbol:Y.type==="rect"?"square":Y.type==="circle"?"circle":"hexagon2"}};ee.push([{trace:Z}])}}te=q.showlegend&&k(ee,L,q._legends.length>1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return c.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee<ne._maxWidth,wt=0,ve=0,_e=0,Ve=0;J.each(function(Ge){var Ke=Ge[0].height,nt=D(Ge,ne,De),st=zt?nt:it;we||(st+=Ee),st+ke+ve-Ee>=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,c.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),c.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=c.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(c.hasTransform(X,"groupby")){var ie=c.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?c.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):c.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTime<L?q+=1:(q=1,E._legendMouseDownTime=G)}),H.on("mouseup",function(){if(!E._dragged&&!E._editing){var V=E._fullLayout[W];new Date().getTime()-E._legendMouseDownTime>L&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;L<G.length;L++){var q=G[L];P(N,N._fullLayout[q])}}}},82424:function(o,a,n){var l=n(73972),f=n(10130);o.exports=function(s,c,d){var h,p,m=c._inHover,y=f.isGrouped(c),v=f.isReversed(c),g={},b=[],x=!1,_={},w=0,k=0;function T(G,L,q){if(c.visible!==!1&&(!d||G===c._id))if(L!==""&&f.isGrouped(c))b.indexOf(L)===-1?(b.push(L),x=!0,g[L]=[q]):g[L].push(q);else{var H="~~i"+w;b.push(H),g[H]=[q],w++}}for(h=0;h<s.length;h++){var M=s[h],S=M[0],C=S.trace,P=C.legend,D=C.legendgroup;if(m||C.visible&&C.showlegend)if(l.traceIs(C,"pie-like"))for(_[D]||(_[D]={}),p=0;p<M.length;p++){var O=M[p].label;_[D][O]||(T(P,D,{label:O,color:M[p].color,i:M[p].i,trace:C,pts:M[p].pts}),_[D][O]=!0,k=Math.max(k,(O||"").length))}else T(P,D,S),k=Math.max(k,(C.name||"").length)}if(!b.length)return[];var R=!x||!y,F=[];for(h=0;h<b.length;h++){var A=g[b[h]];R?F.push(A[0]):F.push(A)}for(R&&(F=[F]),h=0;h<F.length;h++){var z=1/0;for(p=0;p<F[h].length;p++){var B=F[h][p].trace.legendrank;z>B&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;h<F.length;h++){F[h].forEach(function(G,L){G._preSort=L}),F[h].sort($);var j=F[h][0].trace,N=null;for(p=0;p<F[h].length;p++){var E=F[h][p].trace.legendgrouptitle;if(E&&E.text){N=E,m&&(E.font=c._groupTitleFont);break}}if(v&&F[h].reverse(),N){var W=!1;for(p=0;p<F[h].length;p++)if(l.traceIs(F[h][p].trace,"pie-like")){W=!0;break}F[h].unshift({i:-1,groupTitle:N,noClick:W,trace:{showlegend:j.showlegend,legendgroup:j.legendgroup,visible:c.groupclick==="toggleitem"||j.visible}})}for(p=0;p<F[h].length;p++)F[h][p]=[F[h][p]]}return c._lgroupsLength=F.length,c._maxNameLength=k,F}},85167:function(o,a,n){var l=n(73972),f=n(71828),s=f.pushUnique,c=!0;o.exports=function(d,h,p){var m=h._fullLayout;if(!h._dragged&&!h._editing){var y,v=m.legend.itemclick,g=m.legend.itemdoubleclick,b=m.legend.groupclick;if(p===1&&v==="toggle"&&g==="toggleothers"&&c&&h.data&&h._context.showTips&&f.notifier(f._(h,"Double-click on legend to isolate one trace"),"long"),c=!1,p===1?y=v:p===2&&(y=g),y){var x=b==="togglegroup",_=m.hiddenlabels?m.hiddenlabels.slice():[],w=d.data()[0][0];if(!w.groupTitle||!w.noClick){var k=h._fullData,T=(m.shapes||[]).filter(function(ye){return ye.showlegend}),M=k.concat(T),S=w.trace;S._isShape&&(S=S._fullInput);var C,P,D,O,R,F=S.legendgroup,A={},z=[],B=[],$=[],j=(m.shapes||[]).map(function(ye){return ye._input}),N=!1,E=S.legend,W=S._fullInput;if(W&&W._isShape||!l.traceIs(S,"pie-like")){var G,L=F&&F.length,q=[];if(L)for(C=0;C<M.length;C++)(G=M[C]).visible&&G.legendgroup===F&&q.push(C);if(y==="toggle"){var H;switch(S.visible){case!0:H="legendonly";break;case!1:H=!1;break;case"legendonly":H=!0}if(L)if(x)for(C=0;C<M.length;C++){var V=M[C];V.visible!==!1&&V.legendgroup===F&&ce(V,H)}else ce(S,H);else ce(S,H)}else if(y==="toggleothers"){var te,ee,U,Q,Y=!0;for(C=0;C<M.length;C++)if(te=(Q=M[C])===S,ee=Q.showlegend!==!0,!(te||ee||L&&Q.legendgroup===F||Q.legend!==E||Q.visible!==!0||l.traceIs(Q,"notLegendIsolatable"))){Y=!1;break}for(C=0;C<M.length;C++)if((Q=M[C]).visible!==!1&&Q.legend===E&&!l.traceIs(Q,"notLegendIsolatable"))switch(S.visible){case"legendonly":ce(Q,!0);break;case!0:U=!!Y||"legendonly",te=Q===S,ee=Q.showlegend!==!0&&!Q.legendgroup,ce(Q,!!(te||L&&Q.legendgroup===F||ee)||U)}}for(C=0;C<B.length;C++)if(D=B[C]){var Z=D.constructUpdate(),X=Object.keys(Z);for(P=0;P<X.length;P++)O=X[P],(A[O]=A[O]||[])[$[C]]=Z[O]}for(R=Object.keys(A),C=0;C<R.length;C++)for(O=R[C],P=0;P<z.length;P++)A[O].hasOwnProperty(P)||(A[O][P]=void 0);N?l.call("_guiUpdate",h,A,{shapes:j},z):l.call("_guiRestyle",h,A,z)}else{var re=w.label,ie=_.indexOf(re);if(y==="toggle")ie===-1?_.push(re):_.splice(ie,1);else if(y==="toggleothers"){var le=ie!==-1,se=[];for(C=0;C<h.calcdata.length;C++){var pe=h.calcdata[C];for(P=0;P<pe.length;P++){var Te=pe[P].label;E===pe[0].trace.legend&&re!==Te&&(_.indexOf(Te)===-1&&(le=!0),s(_,Te),se.push(Te))}}if(!le)for(var Se=0;Se<se.length;Se++){var Oe=_.indexOf(se[Se]);Oe!==-1&&_.splice(Oe,1)}}l.call("_guiRelayout",h,"hiddenlabels",_)}}}}function Me(ye,J){var ne=z.indexOf(ye),de=A.visible;return de||(de=A.visible=[]),z.indexOf(ye)===-1&&(z.push(ye),ne=z.length-1),de[ne]=J,ne}function ce(ye,J){if(!w.groupTitle||x){var ne,de=ye._fullInput||ye,xe=de._isShape,ue=de.index;if(ue===void 0&&(ue=de._index),l.hasTransform(de,"groupby")){var ge=B[ue];if(!ge){var be=l.getTransformIndices(de,"groupby"),we=be[be.length-1];ge=f.keyedContainer(de,"transforms["+we+"].styles","target","value.visible"),B[ue]=ge}var ke=ge.get(ye._group);ke===void 0&&(ke=!0),ke!==!1&&ge.set(ye._group,J),$[ue]=Me(ue,de.visible!==!1)}else{var Ae=de.visible!==!1&&J;xe?(ne=Ae,j[ue].visible=ne,N=!0):Me(ue,Ae)}}}}},10130:function(o,a){a.isGrouped=function(n){return(n.traceorder||"").indexOf("grouped")!==-1},a.isVertical=function(n){return n.orientation!=="h"},a.isReversed=function(n){return(n.traceorder||"").indexOf("reversed")!==-1}},2199:function(o,a,n){o.exports={moduleType:"component",name:"legend",layoutAttributes:n(33030),supplyLayoutDefaults:n(99017),draw:n(43969),style:n(53630)}},53630:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=s.strTranslate,d=n(91424),h=n(7901),p=n(52075).extractOpts,m=n(34098),y=n(63463),v=n(53581).castOption,g=n(14928);function b(w,k){return(k?"radial":"horizontal")+(w?"":"reversed")}function x(w){var k=w[0].trace,T=k.contours,M=m.hasLines(k),S=m.hasMarkers(k),C=k.visible&&k.fill&&k.fill!=="none",P=!1,D=!1;if(T){var O=T.coloring;O==="lines"?P=!0:M=O==="none"||O==="heatmap"||T.showlines,T.type==="constraint"?C=T._operation!=="=":O!=="fill"&&O!=="heatmap"||(D=!0)}return{showMarker:S,showLine:M,showFill:C,showGradientLine:P,showGradientFill:D,anyLine:M||P,anyFill:C||D}}function _(w,k,T){return w&&s.isArrayOrTypedArray(w)?k:w>T?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=c(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",c(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(pe<ie[0])return ie[0];if(pe>ie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),c=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P<z.length;P++)if(!(C=z[P]).fixedrange)if($=C._name,R==="auto")A[$+".autorange"]=!0;else if(R==="reset")C._rangeInitial0===void 0&&C._rangeInitial1===void 0?A[$+".autorange"]=!0:C._rangeInitial0===void 0?(A[$+".autorange"]=C._autorangeInitial,A[$+".range"]=[null,C._rangeInitial1]):C._rangeInitial1===void 0?(A[$+".range"]=[C._rangeInitial0,null],A[$+".autorange"]=C._autorangeInitial):A[$+".range"]=[C._rangeInitial0,C._rangeInitial1],C._showSpikeInitial!==void 0&&(A[$+".showspikes"]=C._showSpikeInitial,B!=="on"||C._showSpikeInitial||(B="off"));else{var W=[C.r2l(C.range[0]),C.r2l(C.range[1])],G=[N*W[0]+E*W[1],N*W[1]+E*W[0]];A[$+".range[0]"]=C.l2r(G[0]),A[$+".range[1]"]=C.l2r(G[1])}}else O!=="hovermode"||R!=="x"&&R!=="y"||(R=F._isHoriz?"y":"x",D.setAttribute("data-val",R)),A[O]=R;F._cartesianSpikesEnabled=B,l.call("_guiRelayout",M,A)}function v(M,S){for(var C=S.currentTarget,P=C.getAttribute("data-attr"),D=C.getAttribute("data-val")||!0,O=M._fullLayout._subplots.gl3d||[],R={},F=P.split("."),A=0;A<O.length;A++)R[O[A]+"."+F[1]]=D;var z=D==="pan"?D:"zoom";R.dragmode=z,l.call("_guiRelayout",M,R)}function g(M,S){for(var C=S.currentTarget.getAttribute("data-attr"),P=C==="resetLastSave",D=C==="resetDefault",O=M._fullLayout,R=O._subplots.gl3d||[],F={},A=0;A<R.length;A++){var z,B=R[A],$=B+".camera",j=B+".aspectratio",N=B+".aspectmode",E=O[B]._scene;P?(F[$+".up"]=E.viewInitial.up,F[$+".eye"]=E.viewInitial.eye,F[$+".center"]=E.viewInitial.center,z=!0):D&&(F[$+".up"]=null,F[$+".eye"]=null,F[$+".center"]=null,z=!0),z&&(F[j+".x"]=E.viewInitial.aspectratio.x,F[j+".y"]=E.viewInitial.aspectratio.y,F[j+".z"]=E.viewInitial.aspectratio.z,F[N]=E.viewInitial.aspectmode)}l.call("_guiRelayout",M,F)}function b(M,S){var C=S.currentTarget,P=C._previousVal,D=M._fullLayout,O=D._subplots.gl3d||[],R=["xaxis","yaxis","zaxis"],F={},A={};if(P)A=P,C._previousVal=null;else{for(var z=0;z<O.length;z++){var B=O[z],$=D[B],j=B+".hovermode";F[j]=$.hovermode,A[j]=!1;for(var N=0;N<3;N++){var E=R[N],W=B+"."+E+".showspikes";A[W]=!1,F[W]=$[E].showspikes}}C._previousVal=F}return A}function x(M,S){for(var C=S.currentTarget,P=C.getAttribute("data-attr"),D=C.getAttribute("data-val")||!0,O=M._fullLayout,R=O._subplots.geo||[],F=0;F<R.length;F++){var A=R[F],z=O[A];if(P==="zoom"){var B=z.projection.scale,$=D==="in"?2*B:.5*B;l.call("_guiRelayout",M,A+".projection.scale",$)}}P==="reset"&&T(M,"geo")}function _(M){var S=M._fullLayout;return!S.hovermode&&(S._has("cartesian")?S._isHoriz?"y":"x":"closest")}function w(M){var S=_(M);l.call("_guiRelayout",M,"hovermode",S)}function k(M,S){for(var C=S.currentTarget.getAttribute("data-val"),P=M._fullLayout,D=P._subplots.mapbox||[],O={},R=0;R<D.length;R++){var F=D[R],A=P[F].zoom,z=C==="in"?1.05*A:A/1.05;O[F+".zoom"]=z}l.call("_guiRelayout",M,O)}function T(M,S){for(var C=M._fullLayout,P=C._subplots[S]||[],D={},O=0;O<P.length;O++)for(var R=P[O],F=C[R]._subplot.viewInitial,A=Object.keys(F),z=0;z<A.length;z++){var B=A[z];D[R+"."+B]=F[B]}l.call("_guiRelayout",M,D)}m.toImage={name:"toImage",title:function(M){var S=(M._context.toImageButtonOptions||{}).format||"png";return p(M,S==="png"?"Download plot as a png":"Download plot")},icon:c.camera,click:function(M){var S=M._context.toImageButtonOptions,C={format:S.format||"png"};h.notifier(p(M,"Taking snapshot - this may take a few seconds"),"long"),C.format!=="svg"&&h.isIE()&&(h.notifier(p(M,"IE only supports svg. Changing format to svg."),"long"),C.format="svg"),["filename","width","height","scale"].forEach(function(P){P in S&&(C[P]=S[P])}),l.call("downloadImage",M,C).then(function(P){h.notifier(p(M,"Snapshot succeeded")+" - "+P,"long")}).catch(function(){h.notifier(p(M,"Sorry, there was a problem downloading your snapshot!"),"long")})}},m.sendDataToCloud={name:"sendDataToCloud",title:function(M){return p(M,"Edit in Chart Studio")},icon:c.disk,click:function(M){f.sendDataToCloud(M)}},m.editInChartStudio={name:"editInChartStudio",title:function(M){return p(M,"Edit in Chart Studio")},icon:c.pencil,click:function(M){f.sendDataToCloud(M)}},m.zoom2d={name:"zoom2d",_cat:"zoom",title:function(M){return p(M,"Zoom")},attr:"dragmode",val:"zoom",icon:c.zoombox,click:y},m.pan2d={name:"pan2d",_cat:"pan",title:function(M){return p(M,"Pan")},attr:"dragmode",val:"pan",icon:c.pan,click:y},m.select2d={name:"select2d",_cat:"select",title:function(M){return p(M,"Box Select")},attr:"dragmode",val:"select",icon:c.selectbox,click:y},m.lasso2d={name:"lasso2d",_cat:"lasso",title:function(M){return p(M,"Lasso Select")},attr:"dragmode",val:"lasso",icon:c.lasso,click:y},m.drawclosedpath={name:"drawclosedpath",title:function(M){return p(M,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:c.drawclosedpath,click:y},m.drawopenpath={name:"drawopenpath",title:function(M){return p(M,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:c.drawopenpath,click:y},m.drawline={name:"drawline",title:function(M){return p(M,"Draw line")},attr:"dragmode",val:"drawline",icon:c.drawline,click:y},m.drawrect={name:"drawrect",title:function(M){return p(M,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:c.drawrect,click:y},m.drawcircle={name:"drawcircle",title:function(M){return p(M,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:c.drawcircle,click:y},m.eraseshape={name:"eraseshape",title:function(M){return p(M,"Erase active shape")},icon:c.eraseshape,click:d},m.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:y},m.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:y},m.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(M){return p(M,"Autoscale")},attr:"zoom",val:"auto",icon:c.autoscale,click:y},m.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(M){return p(M,"Reset axes")},attr:"zoom",val:"reset",icon:c.home,click:y},m.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(M){return p(M,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:y},m.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(M){return p(M,"Compare data on hover")},attr:"hovermode",val:function(M){return M._fullLayout._isHoriz?"y":"x"},icon:c.tooltip_compare,gravity:"ne",click:y},m.zoom3d={name:"zoom3d",_cat:"zoom",title:function(M){return p(M,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:c.zoombox,click:v},m.pan3d={name:"pan3d",_cat:"pan",title:function(M){return p(M,"Pan")},attr:"scene.dragmode",val:"pan",icon:c.pan,click:v},m.orbitRotation={name:"orbitRotation",title:function(M){return p(M,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:c["3d_rotate"],click:v},m.tableRotation={name:"tableRotation",title:function(M){return p(M,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:c["z-axis"],click:v},m.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(M){return p(M,"Reset camera to default")},attr:"resetDefault",icon:c.home,click:g},m.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(M){return p(M,"Reset camera to last save")},attr:"resetLastSave",icon:c.movie,click:g},m.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:function(M,S){var C=b(M,S);l.call("_guiRelayout",M,C)}},m.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:x},m.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:x},m.resetGeo={name:"resetGeo",_cat:"reset",title:function(M){return p(M,"Reset")},attr:"reset",val:null,icon:c.autoscale,click:x},m.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:w},m.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:w},m.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:w},m.resetViewSankey={name:"resetSankeyGroup",title:function(M){return p(M,"Reset view")},icon:c.home,click:function(M){for(var S={"node.groups":[],"node.x":[],"node.y":[]},C=0;C<M._fullData.length;C++){var P=M._fullData[C]._viewInitial;S["node.groups"].push(P.node.groups.slice()),S["node.x"].push(P.node.x.slice()),S["node.y"].push(P.node.y.slice())}l.call("restyle",M,S)}},m.toggleHover={name:"toggleHover",title:function(M){return p(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:c.tooltip_basic,gravity:"ne",click:function(M,S){var C=b(M,S);C.hovermode=_(M),l.call("_guiRelayout",M,C)}},m.resetViews={name:"resetViews",title:function(M){return p(M,"Reset views")},icon:c.home,click:function(M,S){var C=S.currentTarget;C.setAttribute("data-attr","zoom"),C.setAttribute("data-val","reset"),y(M,S),C.setAttribute("data-attr","resetLastSave"),g(M,S),T(M,"geo"),T(M,"mapbox")}},m.toggleSpikelines={name:"toggleSpikelines",title:function(M){return p(M,"Toggle Spike Lines")},icon:c.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(M){var S=M._fullLayout,C=S._cartesianSpikesEnabled;S._cartesianSpikesEnabled=C==="on"?"off":"on",l.call("_guiRelayout",M,function(P){for(var D=P._fullLayout._cartesianSpikesEnabled==="on",O=s.list(P,null,!0),R={},F=0;F<O.length;F++){var A=O[F];R[A._name+".showspikes"]=!!D||A._showSpikeInitial}return R}(M))}},m.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(M){return p(M,"Reset view")},attr:"reset",icon:c.home,click:function(M){T(M,"mapbox")}},m.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(M){return p(M,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:k},m.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(M){return p(M,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:k}},93348:function(o,a,n){var l=n(26023),f=Object.keys(l),s=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],c=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(s),d=[];f.forEach(function(h){(function(p){if(c.indexOf(p._cat||p.name)===-1){var m=p.name,y=(p._cat||p.name).toLowerCase();d.indexOf(m)===-1&&d.push(m),d.indexOf(y)===-1&&d.push(y)}})(l[h])}),d.sort(),o.exports={DRAW_MODES:s,backButtons:c,foreButtons:d}},35750:function(o,a,n){var l=n(71828),f=n(7901),s=n(44467),c=n(42068);o.exports=function(d,h){var p=d.modebar||{},m=s.newContainer(h,"modebar");function y(g,b){return l.coerce(p,m,c,g,b)}y("orientation"),y("bgcolor",f.addOpacity(h.paper_bgcolor,.5));var v=f.contrast(f.rgb(h.modebar.bgcolor));y("color",f.addOpacity(v,.3)),y("activecolor",f.addOpacity(v,.7)),y("uirevision",h.uirevision),y("add"),y("remove")}},64168:function(o,a,n){o.exports={moduleType:"component",name:"modebar",layoutAttributes:n(42068),supplyLayoutDefaults:n(35750),manage:n(14192)}},14192:function(o,a,n){var l=n(41675),f=n(34098),s=n(73972),c=n(23469).isUnifiedHover,d=n(37676),h=n(26023),p=n(93348).DRAW_MODES,m=n(71828).extendDeep;o.exports=function(y){var v=y._fullLayout,g=y._context,b=v._modeBar;if(g.displayModeBar||g.watermark){if(!Array.isArray(g.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(g.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var x,_=g.modeBarButtons;x=Array.isArray(_)&&_.length?function(w){for(var k=m([],w),T=0;T<k.length;T++)for(var M=k[T],S=0;S<M.length;S++){var C=M[S];if(typeof C=="string"){if(h[C]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));k[T][S]=h[C]}}return k}(_):!g.displayModeBar&&g.watermark?[]:function(w){var k=w._fullLayout,T=w._fullData,M=w._context;function S(se,pe){if(typeof pe=="string"){if(pe.toLowerCase()===se.toLowerCase())return!0}else{var Te=pe.name,Se=pe._cat||pe.name;if(Te===se||Se===se.toLowerCase())return!0}return!1}var C=k.modebar.add;typeof C=="string"&&(C=[C]);var P=k.modebar.remove;typeof P=="string"&&(P=[P]);var D=M.modeBarButtonsToAdd.concat(C.filter(function(se){for(var pe=0;pe<M.modeBarButtonsToRemove.length;pe++)if(S(se,M.modeBarButtonsToRemove[pe]))return!1;return!0})),O=M.modeBarButtonsToRemove.concat(P.filter(function(se){for(var pe=0;pe<M.modeBarButtonsToAdd.length;pe++)if(S(se,M.modeBarButtonsToAdd[pe]))return!1;return!0})),R=k._has("cartesian"),F=k._has("gl3d"),A=k._has("geo"),z=k._has("pie"),B=k._has("funnelarea"),$=k._has("gl2d"),j=k._has("ternary"),N=k._has("mapbox"),E=k._has("polar"),W=k._has("smith"),G=k._has("sankey"),L=function(se){for(var pe=l.list({_fullLayout:se},null,!0),Te=0;Te<pe.length;Te++)if(!pe[Te].fixedrange)return!1;return!0}(k),q=c(k.hovermode),H=[];function V(se){if(se.length){for(var pe=[],Te=0;Te<se.length;Te++){for(var Se=se[Te],Oe=h[Se],Me=Oe.name.toLowerCase(),ce=(Oe._cat||Oe.name).toLowerCase(),ye=!1,J=0;J<O.length;J++){var ne=O[J].toLowerCase();if(ne===Me||ne===ce){ye=!0;break}}ye||pe.push(h[Se])}H.push(pe)}}var te=["toImage"];M.showEditInChartStudio?te.push("editInChartStudio"):M.showSendToCloud&&te.push("sendDataToCloud"),V(te);var ee=[],U=[],Q=[],Y=[];(R||$||z||B||j)+A+F+N+E+W>1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe<se.length;pe++)if(!s.traceIs(se[pe],"noHover"))return!1;return!0}(T)||q)&&(U=[]),!R&&!$||L||(ee=["zoomIn2d","zoomOut2d","autoScale2d"],Q[0]!=="resetViews"&&(Q=["resetScale2d"])),F?Y=["zoom3d","pan3d","orbitRotation","tableRotation"]:(R||$)&&!L||j?Y=["zoom2d","pan2d"]:N||A?Y=["pan2d"]:E&&(Y=["zoom2d"]),function(se){for(var pe=!1,Te=0;Te<se.length&&!pe;Te++){var Se=se[Te];Se._module&&Se._module.selectPoints&&(s.traceIs(Se,"scatter-like")?(f.hasMarkers(Se)||f.hasText(Se))&&(pe=!0):s.traceIs(Se,"box-violin")&&Se.boxpoints!=="all"&&Se.points!=="all"||(pe=!0))}return pe}(T)&&Y.push("select2d","lasso2d");var Z=[],X=function(se){Z.indexOf(se)===-1&&U.indexOf(se)!==-1&&Z.push(se)};if(Array.isArray(D)){for(var re=[],ie=0;ie<D.length;ie++){var le=D[ie];typeof le=="string"?(le=le.toLowerCase(),p.indexOf(le)!==-1?(k._has("mapbox")||k._has("cartesian"))&&Y.push(le):le==="togglespikelines"?X("toggleSpikelines"):le==="togglehover"?X("toggleHover"):le==="hovercompare"?X("hoverCompareCartesian"):le==="hoverclosest"?(X("hoverClosestCartesian"),X("hoverClosestGeo"),X("hoverClosest3d"),X("hoverClosestGl2d"),X("hoverClosestPie")):le==="v1hovermode"&&(X("toggleHover"),X("hoverClosestCartesian"),X("hoverCompareCartesian"),X("hoverClosestGeo"),X("hoverClosest3d"),X("hoverClosestGl2d"),X("hoverClosestPie"))):re.push(le)}D=re}return V(Y),V(ee.concat(Q)),V(Z),function(se,pe){if(pe.length)if(Array.isArray(pe[0]))for(var Te=0;Te<pe.length;Te++)se.push(pe[Te]);else se.push(pe);return se}(H,D)}(y),b?b.update(y,x):v._modeBar=d(y,x)}else b&&(b.destroy(),delete v._modeBar)}},37676:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(24255),d=n(11506).version,h=new DOMParser;function p(y){this.container=y.container,this.element=document.createElement("div"),this.update(y.graphInfo,y.buttons),this.container.appendChild(this.element)}var m=p.prototype;m.update=function(y,v){this.graphInfo=y;var g=this.graphInfo._context,b=this.graphInfo._fullLayout,x="modebar-"+b._uid;this.element.setAttribute("id",x),this._uid=x,this.element.className="modebar",g.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),b.modebar.orientation==="v"&&(this.element.className+=" vertical",v=v.reverse());var _=b.modebar,w=g.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";s.deleteRelatedStyleRule(x),s.addRelatedStyleRule(x,w+"#"+x+" .modebar-group","background-color: "+_.bgcolor),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn .icon path","fill: "+_.color),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn:hover .icon path","fill: "+_.activecolor),s.addRelatedStyleRule(x,"#"+x+" .modebar-btn.active .icon path","fill: "+_.activecolor);var k=!this.hasButtons(v),T=this.hasLogo!==g.displaylogo,M=this.locale!==g.locale;if(this.locale=g.locale,(k||T||M)&&(this.removeAllButtons(),this.updateButtons(v),g.watermark||g.displaylogo)){var S=this.getLogo();g.watermark&&(S.className=S.className+" watermark"),b.modebar.orientation==="v"?this.element.insertBefore(S,this.element.childNodes[0]):this.element.appendChild(S),this.hasLogo=!0}this.updateActiveButton()},m.updateButtons=function(y){var v=this;this.buttons=y,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(g){var b=v.createGroup();g.forEach(function(x){var _=x.name;if(!_)throw new Error("must provide button 'name' in button config");if(v.buttonsNames.indexOf(_)!==-1)throw new Error("button name '"+_+"' is taken");v.buttonsNames.push(_);var w=v.createButton(x);v.buttonElements.push(w),b.appendChild(w)}),v.element.appendChild(b)})},m.createGroup=function(){var y=document.createElement("div");return y.className="modebar-group",y},m.createButton=function(y){var v=this,g=document.createElement("a");g.setAttribute("rel","tooltip"),g.className="modebar-btn";var b=y.title;b===void 0?b=y.name:typeof b=="function"&&(b=b(this.graphInfo)),(b||b===0)&&g.setAttribute("data-title",b),y.attr!==void 0&&g.setAttribute("data-attr",y.attr);var x=y.val;if(x!==void 0&&(typeof x=="function"&&(x=x(this.graphInfo)),g.setAttribute("data-val",x)),typeof y.click!="function")throw new Error("must provide button 'click' function in button config");g.addEventListener("click",function(w){y.click(v.graphInfo,w),v.updateActiveButton(w.currentTarget)}),g.setAttribute("data-toggle",y.toggle||!1),y.toggle&&l.select(g).classed("active",!0);var _=y.icon;return typeof _=="function"?g.appendChild(_()):g.appendChild(this.createIcon(_||c.question)),g.setAttribute("data-gravity",y.gravity||"n"),g},m.createIcon=function(y){var v,g=f(y.height)?Number(y.height):y.ascent-y.descent,b="http://www.w3.org/2000/svg";if(y.path){(v=document.createElementNS(b,"svg")).setAttribute("viewBox",[0,0,y.width,g].join(" ")),v.setAttribute("class","icon");var x=document.createElementNS(b,"path");x.setAttribute("d",y.path),y.transform?x.setAttribute("transform",y.transform):y.ascent!==void 0&&x.setAttribute("transform","matrix(1 0 0 -1 0 "+y.ascent+")"),v.appendChild(x)}return y.svg&&(v=h.parseFromString(y.svg,"application/xml").childNodes[0]),v.setAttribute("height","1em"),v.setAttribute("width","1em"),v},m.updateActiveButton=function(y){var v=this.graphInfo._fullLayout,g=y!==void 0?y.getAttribute("data-attr"):null;this.buttonElements.forEach(function(b){var x=b.getAttribute("data-val")||!0,_=b.getAttribute("data-attr"),w=b.getAttribute("data-toggle")==="true",k=l.select(b);if(w)_===g&&k.classed("active",!k.classed("active"));else{var T=_===null?_:s.nestedProperty(v,_).get();k.classed("active",T===x)}})},m.hasButtons=function(y){var v=this.buttons;if(!v||y.length!==v.length)return!1;for(var g=0;g<y.length;++g){if(y[g].length!==v[g].length)return!1;for(var b=0;b<y[g].length;b++)if(y[g][b].name!==v[g][b].name)return!1}return!0},m.getLogo=function(){var y=this.createGroup(),v=document.createElement("a");return v.href="https://plotly.com/",v.target="_blank",v.setAttribute("data-title",s._(this.graphInfo,"Produced with Plotly.js")+" (v"+d+")"),v.className="modebar-btn plotlyjsicon modebar-btn--logo",v.appendChild(this.createIcon(c.newplotlylogo)),y.appendChild(v),y},m.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},m.destroy=function(){s.removeElement(this.container.querySelector(".modebar")),s.deleteRelatedStyleRule(this._uid)},o.exports=function(y,v){var g=y._fullLayout,b=new p({graphInfo:y,container:g._modebardiv.node(),buttons:v});return g._privateplot&&l.select(b.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),b}},37113:function(o,a,n){var l=n(41940),f=n(22399),s=(0,n(44467).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});o.exports={visible:{valType:"boolean",editType:"plot"},buttons:s,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:l({editType:"plot"}),bgcolor:{valType:"color",dflt:f.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},89573:function(o){o.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},28674:function(o,a,n){var l=n(71828),f=n(7901),s=n(44467),c=n(85501),d=n(37113),h=n(89573);function p(m,y,v,g){var b=g.calendar;function x(w,k){return l.coerce(m,y,d.buttons,w,k)}if(x("visible")){var _=x("step");_!=="all"&&(!b||b==="gregorian"||_!=="month"&&_!=="year"?x("stepmode"):y.stepmode="backward",x("count")),x("label")}}o.exports=function(m,y,v,g,b){var x=m.rangeselector||{},_=s.newContainer(y,"rangeselector");function w(M,S){return l.coerce(x,_,d,M,S)}if(w("visible",c(x,_,{name:"buttons",handleItemDefaults:p,calendar:b}).length>0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O<P.length;O++){var R=S[P[O]].domain;R&&(D=Math.max(R[1],D))}return[M.domain[0],D+h.yPad]}(y,v,g);w("x",k[0]),w("y",k[1]),l.noneOrAll(m,y,["x","y"]),w("xanchor"),w("yanchor"),l.coerceFont(w,"font",v.font);var T=w("bgcolor");w("activecolor",f.contrast(T,h.lightAmount,h.darkAmount)),w("bordercolor"),w("borderwidth")}}},21598:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(7901),d=n(91424),h=n(71828),p=h.strTranslate,m=n(63893),y=n(41675),v=n(18783),g=v.LINE_SPACING,b=v.FROM_TL,x=v.FROM_BR,_=n(89573),w=n(70565);function k(S){return S._id}function T(S,C,P){var D=h.ensureSingle(S,"rect","selector-rect",function(O){O.attr("shape-rendering","crispEdges")});D.attr({rx:_.rx,ry:_.ry}),D.call(c.stroke,C.bordercolor).call(c.fill,function(O,R){return R._isActive||R._isHovered?O.activecolor:O.bgcolor}(C,P)).style("stroke-width",C.borderwidth+"px")}function M(S,C,P,D){var O,R;h.ensureSingle(S,"text","selector-text",function(F){F.attr("text-anchor","middle")}).call(d.font,C.font).text((O=P,R=D._fullLayout._meta,O.label?R?h.templateString(O.label,R):O.label:O.step==="all"?"all":O.count+O.step.charAt(0))).call(function(F){m.convertToTspans(F,D)})}o.exports=function(S){var C=S._fullLayout._infolayer.selectAll(".rangeselector").data(function(P){for(var D=y.list(P,"x",!0),O=[],R=0;R<D.length;R++){var F=D[R];F.rangeselector&&F.rangeselector.visible&&O.push(F)}return O}(S),k);C.enter().append("g").classed("rangeselector",!0),C.exit().remove(),C.style({cursor:"pointer","pointer-events":"all"}),C.each(function(P){var D=l.select(this),O=P,R=O.rangeselector,F=D.selectAll("g.button").data(h.filterVisible(R.buttons));F.enter().append("g").classed("button",!0),F.exit().remove(),F.each(function(A){var z=l.select(this),B=w(O,A);A._isActive=function($,j,N){if(j.step==="all")return $.autorange===!0;var E=Object.keys(N);return $.range[0]===N[E[0]]&&$.range[1]===N[E[1]]}(O,A,B),z.call(T,R,A),z.call(M,R,A,S),z.on("click",function(){S._dragged||f.call("_guiRelayout",S,B)}),z.on("mouseover",function(){A._isHovered=!0,z.call(T,R,A)}),z.on("mouseout",function(){A._isHovered=!1,z.call(T,R,A)})}),function(A,z,B,$,j){var N=0,E=0,W=B.borderwidth;z.each(function(){var te=l.select(this).select(".selector-text"),ee=B.font.size*g,U=Math.max(ee*m.lineCount(te),16)+3;E=Math.max(E,U)}),z.each(function(){var te=l.select(this),ee=te.select(".selector-rect"),U=te.select(".selector-text"),Q=U.node()&&d.bBox(U.node()).width,Y=B.font.size*g,Z=m.lineCount(U),X=Math.max(Q+10,_.minButtonWidth);te.attr("transform",p(W+N,W)),ee.attr({x:0,y:0,width:X,height:E}),m.positionText(U,X/2,E/2-(Z-1)*Y/2+3),N+=X+5});var G=A._fullLayout._size,L=G.l+G.w*B.x,q=G.t+G.h*(1-B.y),H="left";h.isRightAnchor(B)&&(L-=N,H="right"),h.isCenterAnchor(B)&&(L-=N/2,H="center");var V="top";h.isBottomAnchor(B)&&(q-=E,V="bottom"),h.isMiddleAnchor(B)&&(q-=E/2,V="middle"),N=Math.ceil(N),E=Math.ceil(E),L=Math.round(L),q=Math.round(q),s.autoMargin(A,$+"-range-selector",{x:B.x,y:B.y,l:N*b[H],r:N*x[H],b:E*x[V],t:E*b[V]}),j.attr("transform",p(L,q))}(S,F,R,O._name,D)})}},70565:function(o,a,n){var l=n(81041),f=n(71828).titleCase;o.exports=function(s,c){var d=s._name,h={};if(c.step==="all")h[d+".autorange"]=!0;else{var p=function(m,y){var v,g=m.range,b=new Date(m.r2l(g[1])),x=y.step,_=l["utc"+f(x)],w=y.count;switch(y.stepmode){case"backward":v=m.l2r(+_.offset(b,-w));break;case"todate":var k=_.offset(b,-w);v=m.l2r(+_.ceil(k))}return[v,g[1]]}(s,c);h[d+".range[0]"]=p[0],h[d+".range[1]"]=p[1]}return h}},97218:function(o,a,n){o.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:n(37113)}}},layoutAttributes:n(37113),handleDefaults:n(28674),draw:n(21598)}},75148:function(o,a,n){var l=n(22399);o.exports={bgcolor:{valType:"color",dflt:l.background,editType:"plot"},bordercolor:{valType:"color",dflt:l.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},88443:function(o,a,n){var l=n(41675).list,f=n(71739).getAutoRange,s=n(73251);o.exports=function(c){for(var d=l(c,"x",!0),h=0;h<d.length;h++){var p=d[h],m=p[s.name];m&&m.visible&&m.autorange&&(m._input.autorange=!0,m._input.range=m.range=f(c,p))}}},73251:function(o){o.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},26377:function(o,a,n){var l=n(71828),f=n(44467),s=n(41675),c=n(75148),d=n(47850);o.exports=function(h,p,m){var y=h[m],v=p[m];if(y.rangeslider||p._requestRangeslider[v._id]){l.isPlainObject(y.rangeslider)||(y.rangeslider={});var g,b,x=y.rangeslider,_=f.newContainer(v,"rangeslider");if(D("visible")){D("bgcolor",p.plot_bgcolor),D("bordercolor"),D("borderwidth"),D("thickness"),D("autorange",!v.isValidRange(x.range)),D("range");var w=p._subplots;if(w)for(var k=w.cartesian.filter(function(R){return R.substr(0,R.indexOf("y"))===s.name2id(m)}).map(function(R){return R.substr(R.indexOf("y"),R.length)}),T=l.simpleMap(k,s.id2name),M=0;M<T.length;M++){var S=T[M];g=x[S]||{},b=f.newContainer(_,S,"yaxis");var C,P=p[S];g.range&&P.isValidRange(g.range)&&(C="fixed"),O("rangemode",C)!=="match"&&O("range",P.range.slice())}_._input=x}}function D(R,F){return l.coerce(x,_,c,R,F)}function O(R,F){return l.coerce(g,b,d,R,F)}}},72413:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=c.strTranslate,h=n(91424),p=n(7901),m=n(92998),y=n(93612),v=n(41675),g=n(28569),b=n(6964),x=n(73251);function _(C,P,D,O){var R=c.ensureSingle(C,"rect",x.bgClassName,function(B){B.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),F=O.borderwidth%2==0?O.borderwidth:O.borderwidth-1,A=-O._offsetShift,z=h.crispRound(P,O.borderwidth);R.attr({width:O._width+F,height:O._height+F,transform:d(A,A),"stroke-width":z}).call(p.stroke,O.bordercolor).call(p.fill,O.bgcolor)}function w(C,P,D,O){var R=P._fullLayout;c.ensureSingleById(R._topdefs,"clipPath",O._clipId,function(F){F.append("rect").attr({x:0,y:0})}).select("rect").attr({width:O._width,height:O._height})}function k(C,P,D,O){var R,F=P.calcdata,A=C.selectAll("g."+x.rangePlotClassName).data(D._subplotsWith,c.identity);A.enter().append("g").attr("class",function(z){return x.rangePlotClassName+" "+z}).call(h.setClipUrl,O._clipId,P),A.order(),A.exit().remove(),A.each(function(z,B){var $=l.select(this),j=B===0,N=v.getFromId(P,z,"y"),E=N._name,W=O[E],G={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:O.range.slice(),calendar:D.calendar},width:O._width,height:O._height,margin:{t:0,b:0,l:0,r:0}},_context:P._context};D.rangebreaks&&(G.layout.xaxis.rangebreaks=D.rangebreaks),G.layout[E]={type:N.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():N.range.slice(),calendar:N.calendar},N.rangebreaks&&(G.layout[E].rangebreaks=N.rangebreaks),s.supplyDefaults(G);var L=G._fullLayout.xaxis,q=G._fullLayout[E];L.clearCalc(),L.setScale(),q.clearCalc(),q.setScale();var H={id:z,plotgroup:$,xaxis:L,yaxis:q,isRangePlot:!0};j?R=H:(H.mainplot="xy",H.mainplotinfo=R),y.rangePlot(P,H,function(V,te){for(var ee=[],U=0;U<V.length;U++){var Q=V[U],Y=Q[0].trace;Y.xaxis+Y.yaxis===te&&ee.push(Q)}return ee}(F,z))})}function T(C,P,D,O,R){c.ensureSingle(C,"rect",x.maskMinClassName,function(F){F.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",O._height).call(p.fill,x.maskColor),c.ensureSingle(C,"rect",x.maskMaxClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",O._height).call(p.fill,x.maskColor),R.rangemode!=="match"&&(c.ensureSingle(C,"rect",x.maskMinOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",O._width).call(p.fill,x.maskOppAxisColor),c.ensureSingle(C,"rect",x.maskMaxOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",O._width).style("border-top",x.maskOppBorder).call(p.fill,x.maskOppAxisColor))}function M(C,P,D,O){P._context.staticPlot||c.ensureSingle(C,"rect",x.slideBoxClassName,function(R){R.attr({y:0,cursor:x.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:O._height,fill:x.slideBoxFill})}function S(C,P,D,O){var R=c.ensureSingle(C,"g",x.grabberMinClassName),F=c.ensureSingle(C,"g",x.grabberMaxClassName),A={x:0,width:x.handleWidth,rx:x.handleRadius,fill:p.background,stroke:p.defaultLine,"stroke-width":x.handleStrokeWidth,"shape-rendering":"crispEdges"},z={y:Math.round(O._height/4),height:Math.round(O._height/2)};c.ensureSingle(R,"rect",x.handleMinClassName,function($){$.attr(A)}).attr(z),c.ensureSingle(F,"rect",x.handleMaxClassName,function($){$.attr(A)}).attr(z);var B={width:x.grabAreaWidth,x:0,y:0,fill:x.grabAreaFill,cursor:P._context.staticPlot?void 0:x.grabAreaCursor};c.ensureSingle(R,"rect",x.grabAreaMinClassName,function($){$.attr(B)}).attr("height",O._height),c.ensureSingle(F,"rect",x.grabAreaMaxClassName,function($){$.attr(B)}).attr("height",O._height)}o.exports=function(C){for(var P=C._fullLayout,D=P._rangeSliderData,O=0;O<D.length;O++){var R=D[O][x.name];R._clipId=R._id+"-"+P._uid}var F=P._infolayer.selectAll("g."+x.containerClassName).data(D,function(A){return A._name});F.exit().each(function(A){var z=A[x.name];P._topdefs.select("#"+z._clipId).remove()}).remove(),D.length!==0&&(F.enter().append("g").classed(x.containerClassName,!0).attr("pointer-events","all"),F.each(function(A){var z=l.select(this),B=A[x.name],$=P[v.id2name(A.anchor)],j=B[v.id2name(A.anchor)];if(B.range){var N,E=c.simpleMap(B.range,A.r2l),W=c.simpleMap(A.range,A.r2l);N=W[0]<W[1]?[Math.min(E[0],W[0]),Math.max(E[1],W[1])]:[Math.max(E[0],W[0]),Math.min(E[1],W[1])],B.range=B._input.range=c.simpleMap(N,A.l2r)}A.cleanRange("rangeslider.range");var G=P._size,L=A.domain;B._width=G.w*(L[1]-L[0]);var q=Math.round(G.l+G.w*L[0]),H=Math.round(G.t+G.h*(1-A._counterDomainMin)+(A.side==="bottom"?A._depth:0)+B._offsetShift+x.extraPad);z.attr("transform",d(q,H)),B._rl=c.simpleMap(B.range,A.r2l);var V=B._rl[0],te=B._rl[1],ee=te-V;if(B.p2d=function(se){return se/B._width*ee+V},B.d2p=function(se){return(se-V)/ee*B._width},A.rangebreaks){var U=A.locateBreaks(V,te);if(U.length){var Q,Y,Z=0;for(Q=0;Q<U.length;Q++)Z+=(Y=U[Q]).max-Y.min;var X=B._width/(te-V-Z),re=[-X*V];for(Q=0;Q<U.length;Q++)Y=U[Q],re.push(re[re.length-1]-X*(Y.max-Y.min));for(B.d2p=function(se){for(var pe=re[0],Te=0;Te<U.length;Te++){var Se=U[Te];if(se>=Se.max)pe=re[Te+1];else if(se<Se.min)break}return pe+X*se},Q=0;Q<U.length;Q++)(Y=U[Q]).pmin=B.d2p(Y.min),Y.pmax=B.d2p(Y.max);B.p2d=function(se){for(var pe=re[0],Te=0;Te<U.length;Te++){var Se=U[Te];if(se>=Se.pmax)pe=re[Te+1];else if(se<Se.pmin)break}return(se-pe)/X}}}if(j.rangemode!=="match"){var ie=$.r2l(j.range[0]),le=$.r2l(j.range[1])-ie;B.d2pOppAxis=function(se){return(se-ie)/le*B._height}}z.call(_,C,A,B).call(w,C,A,B).call(k,C,A,B).call(T,C,A,B,j).call(M,C,A,B).call(S,C,A,B),function(se,pe,Te,Se){if(!pe._context.staticPlot){var Oe=se.select("rect."+x.slideBoxClassName).node(),Me=se.select("rect."+x.grabAreaMinClassName).node(),ce=se.select("rect."+x.grabAreaMaxClassName).node();se.on("mousedown",ye),se.on("touchstart",ye)}function ye(){var J=l.event,ne=J.target,de=J.clientX||J.touches[0].clientX,xe=de-se.node().getBoundingClientRect().left,ue=Se.d2p(Te._rl[0]),ge=Se.d2p(Te._rl[1]),be=g.coverSlip();function we(Ae){var Ee,De,Re,Ie=+(Ae.clientX||Ae.touches[0].clientX)-de;switch(ne){case Oe:if(Re="ew-resize",ue+Ie>Te._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De<Ee){var Be=De;De=Ee,Ee=Be}Se._pixelMin=Ee,Se._pixelMax=De,b(l.select(be),Re),function(Ue,qe,Ye,at){function lt(ze){return Ye.l2r(c.constrain(ze,at._rl[0],at._rl[1]))}var ct=lt(at.p2d(at._pixelMin)),bt=lt(at.p2d(at._pixelMax));window.requestAnimationFrame(function(){f.call("_guiRelayout",qe,Ye._name+".range",[ct,bt])})}(0,pe,Te,Se)}function ke(){be.removeEventListener("mousemove",we),be.removeEventListener("mouseup",ke),this.removeEventListener("touchmove",we),this.removeEventListener("touchend",ke),c.removeElement(be)}this.addEventListener("touchmove",we),this.addEventListener("touchend",ke),be.addEventListener("mousemove",we),be.addEventListener("mouseup",ke)}}(z,C,A,B),function(se,pe,Te,Se,Oe,Me){var ce=x.handleWidth/2;function ye(Ae){return c.constrain(Ae,0,Se._width)}function J(Ae){return c.constrain(Ae,0,Se._height)}function ne(Ae){return c.constrain(Ae,-ce,Se._width+ce)}var de=ye(Se.d2p(Te._rl[0])),xe=ye(Se.d2p(Te._rl[1]));if(se.select("rect."+x.slideBoxClassName).attr("x",de).attr("width",xe-de),se.select("rect."+x.maskMinClassName).attr("width",de),se.select("rect."+x.maskMaxClassName).attr("x",xe).attr("width",Se._width-xe),Me.rangemode!=="match"){var ue=Se._height-J(Se.d2pOppAxis(Oe._rl[1])),ge=Se._height-J(Se.d2pOppAxis(Oe._rl[0]));se.select("rect."+x.maskMinOppAxisClassName).attr("x",de).attr("height",ue).attr("width",xe-de),se.select("rect."+x.maskMaxOppAxisClassName).attr("x",de).attr("y",ge).attr("height",Se._height-ge).attr("width",xe-de),se.select("rect."+x.slideBoxClassName).attr("y",ue).attr("height",ge-ue)}var be=.5,we=Math.round(ne(de-ce))-be,ke=Math.round(ne(xe-ce))+be;se.select("g."+x.grabberMinClassName).attr("transform",d(we,be)),se.select("g."+x.grabberMaxClassName).attr("transform",d(ke,be))}(z,0,A,B,$,j),A.side==="bottom"&&m.draw(C,A._id+"title",{propContainer:A,propName:A._name+".title",placeholder:P._dfltTitle.x,attributes:{x:A._offset+A._length/2,y:H+B._height+B._offsetShift+10+1.5*A.title.font.size,"text-anchor":"middle"}})}))}},549:function(o,a,n){var l=n(41675),f=n(63893),s=n(73251),c=n(18783).LINE_SPACING,d=s.name;function h(p){var m=p&&p[d];return m&&m.visible}a.isVisible=h,a.makeData=function(p){var m=l.list({_fullLayout:p},"x",!0),y=p.margin,v=[];if(!p._has("gl2d"))for(var g=0;g<m.length;g++){var b=m[g];if(h(b)){v.push(b);var x=b[d];x._id=d+b._id,x._height=(p.height-y.b-y.t)*x.thickness,x._offsetShift=Math.floor(x.borderwidth/2)}}p._rangeSliderData=v},a.autoMarginOpts=function(p,m){var y=p._fullLayout,v=m[d],g=m._id.charAt(0),b=0,x=0;return m.side==="bottom"&&(b=m._depth,m.title.text!==y._dfltTitle[g]&&(x=1.5*m.title.font.size+10+v._offsetShift,x+=(m.title.text.match(f.BR_TAG_ALL)||[]).length*m.title.font.size*c)),{x:0,y:m._counterDomainMin,l:0,r:0,t:0,b:v._height+b+Math.max(y.margin.b,x),pad:s.extraPad+2*v._offsetShift}}},13137:function(o,a,n){var l=n(71828),f=n(75148),s=n(47850),c=n(549);o.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:l.extendFlat({},f,{yaxis:s})}}},layoutAttributes:n(75148),handleDefaults:n(26377),calcAutorange:n(88443),draw:n(72413),isVisible:c.isVisible,makeData:c.makeData,autoMarginOpts:c.autoMarginOpts}},47850:function(o){o.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},8389:function(o,a,n){var l=n(50215),f=n(82196).line,s=n(79952).P,c=n(1426).extendFlat,d=n(30962).overrideAll,h=n(44467).templatedArray;n(24695),o.exports=d(h("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:c({},l.xref,{}),yref:c({},l.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:f.color,width:c({},f.width,{min:1,dflt:1}),dash:c({},s,{dflt:"dot"})}}),"arraydraw","from-root")},34122:function(o){o.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},59402:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(8389),d=n(30477);function h(p,m,y){function v(z,B){return l.coerce(p,m,c,z,B)}var g=v("path"),b=v("type",g?"path":"rect")!=="path";b&&delete m.path,v("opacity"),v("line.color"),v("line.width"),v("line.dash");for(var x=["x","y"],_=0;_<2;_++){var w,k,T,M=x[_],S={_fullLayout:y},C=f.coerceRef(p,m,S,M);if((w=f.getFromId(S,C))._selectionIndices.push(m._index),T=d.rangeToShapePosition(w),k=d.shapePositionToRange(w),b){var P=M+"0",D=M+"1",O=p[P],R=p[D];p[P]=k(p[P],!0),p[D]=k(p[D],!0),f.coercePosition(m,S,v,C,P),f.coercePosition(m,S,v,C,D);var F=m[P],A=m[D];F!==void 0&&A!==void 0&&(m[P]=T(F),m[D]=T(A),p[P]=O,p[D]=R)}}b&&l.noneOrAll(p,m,["x0","x1","y0","y1"])}o.exports=function(p,m){s(p,m,{name:"selections",handleItemDefaults:h});for(var y=m.selections,v=0;v<y.length;v++){var g=y[v];g&&g.path===void 0&&(g.x0!==void 0&&g.x1!==void 0&&g.y0!==void 0&&g.y1!==void 0||(m.selections[v]=null))}}},32485:function(o,a,n){var l=n(60165).readPaths,f=n(42359),s=n(51873).clearOutlineControllers,c=n(7901),d=n(91424),h=n(44467).arrayEditor,p=n(30477),m=p.getPathString;function y(_){var w=_._fullLayout;for(var k in s(_),w._selectionLayer.selectAll("path").remove(),w._plots){var T=w._plots[k].selectionLayer;T&&T.selectAll("path").remove()}for(var M=0;M<w.selections.length;M++)g(_,M)}function v(_){return _._context.editSelection}function g(_,w){_._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+w+'"]').remove();var k=p.makeSelectionsOptionsAndPlotinfo(_,w),T=k.options,M=k.plotinfo;T._input&&function(S){var C=m(_,T),P={"data-index":w,"fill-rule":"evenodd",d:C},D=T.opacity,O="rgba(0,0,0,0)",R=T.line.color||c.contrast(_._fullLayout.plot_bgcolor),F=T.line.width,A=T.line.dash;F||(F=5,A="solid");var z=v(_)&&_._fullLayout._activeSelectionIndex===w;z&&(O=_._fullLayout.activeselection.fillcolor,D=_._fullLayout.activeselection.opacity);for(var B=[],$=1;$>=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(c.stroke,R).call(c.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),c=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S<M.length)switch(g._fullLayout.selections[S].type){case"rect":T="select";break;case"path":T="lasso"}}var C,P=c(v,g,x,k),D={xref:_._id,yref:w._id,opacity:b.opacity,line:{color:b.line.color,width:b.line.width,dash:b.line.dash}};P.length===1&&(C=P[0]),C&&C.length===5&&T==="select"?(D.type="rect",D.x0=C[0][1],D.y0=C[0][2],D.x1=C[2][1],D.y1=C[2][2]):(D.type="path",_&&w&&h(P,_,w),D.path=d(P),C=null),f(g);for(var O=m.editHelpers,R=(O||{}).modifyItem,F=[],A=0;A<M.length;A++){var z=g._fullLayout.selections[A];if(z){if(F[A]=z._input,k!==void 0&&A===g._fullLayout._activeSelectionIndex){var B=D;switch(z.type){case"rect":R("x0",B.x0),R("x1",B.x1),R("y0",B.y0),R("y1",B.y1);break;case"path":R("path",B.path)}}}else F[A]=z}return k===void 0?(F.push(D),F):O?O.getUpdateObj():{}}}}},75549:function(o,a,n){var l=n(71828).strTranslate;function f(s,c){switch(s.type){case"log":return s.p2d(c);case"date":return s.p2r(c,0,s.calendar);default:return s.p2r(c)}}o.exports={p2r:f,r2p:function(s,c){switch(s.type){case"log":return s.d2p(c);case"date":return s.r2p(c,0,s.calendar);default:return s.r2p(c)}},axValue:function(s){var c=s._id.charAt(0)==="y"?1:0;return function(d){return f(s,d[c])}},getTransform:function(s){return l(s.xaxis._offset,s.yaxis._offset)}}},47322:function(o,a,n){var l=n(32485),f=n(3937);o.exports={moduleType:"component",name:"selections",layoutAttributes:n(8389),supplyLayoutDefaults:n(59402),supplyDrawNewSelectionDefaults:n(90849),includeBasePlot:n(76325)("selections"),draw:l.draw,drawOne:l.drawOne,reselect:f.reselect,prepSelect:f.prepSelect,clearOutline:f.clearOutline,clearSelectionsCache:f.clearSelectionsCache,selectOnClick:f.selectOnClick}},3937:function(o,a,n){var l=n(52142),f=n(38258),s=n(73972),c=n(91424).dashStyle,d=n(7901),h=n(30211),p=n(23469).makeEventData,m=n(64505),y=m.freeMode,v=m.rectMode,g=m.drawMode,b=m.openMode,x=m.selectMode,_=n(30477),w=n(21459),k=n(42359),T=n(51873).clearOutline,M=n(60165),S=M.handleEllipse,C=M.readPaths,P=n(90551).newShapes,D=n(35855),O=n(32485).activateLastSelection,R=n(71828),F=R.sorterAsc,A=n(61082),z=n(79990),B=n(41675).getFromId,$=n(33306),j=n(61549).redrawReglTraces,N=n(34122),E=N.MINSELECT,W=A.filter,G=A.tester,L=n(75549),q=L.p2r,H=L.axValue,V=L.getTransform;function te(ke){return ke.subplot!==void 0}function ee(ke,Ae,Ee,De,Re,Ie,Be){var Ue,qe,Ye,at,lt,ct,bt,ze,Ne,Qe=Ae._hoverdata,it=Ae._fullLayout.clickmode.indexOf("event")>-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve<zt.length;ve++)if(wt=zt[ve],_e.fullData._expandedIndex===wt.cd[0].trace._expandedIndex){if(_e.hoverOnBox===!0)break;_e.pointNumber!==void 0?Ve=_e.pointNumber:_e.binNumber!==void 0&&(Ve=_e.binNumber,We=_e.pointNumbers);break}return{pointNumber:Ve,pointNumbers:We,searchInfo:wt}}(Qe,Ue=ie(Ae,Ee,De,Re));if(Je.pointNumbers.length>0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e<Mt.length;_e++)(wt=Mt[_e]).cd[0].trace.selectedpoints&&wt.cd[0].trace.selectedpoints.length>0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e<zt.pointNumbers.length;_e++)if(ve.selectedpoints.indexOf(zt.pointNumbers[_e])<0)return!1;return!0}return!1}(Ue,Je):function(Mt){var zt,wt,ve=0;for(wt=0;wt<Mt.length;wt++)if((zt=Mt[wt].cd[0].trace).selectedpoints&&(zt.selectedpoints.length>1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne<Ue.length;Ne++)(qe=Ue[Ne])._module.selectPoints(qe,!1);pe(Ae,Ue),X(Ie),it&&we(Ae)}else{for(bt=ke.shiftKey&&(ct!==void 0?ct:se(Je)),Ye=function(Mt,zt,wt){return{pointNumber:Mt,searchInfo:zt,subtract:!!wt}}(Je.pointNumber,Je.searchInfo,bt),at=Y(Ie.selectionDefs.concat([Ye])),Ne=0;Ne<Ue.length;Ne++)if(lt=Se(Ue[Ne]._module.selectPoints(Ue[Ne],at),Ue[Ne]),kt.length)for(var ut=0;ut<lt.length;ut++)kt.push(lt[ut]);else kt=lt;if(pe(Ae,Ue,ze={points:kt}),Ye&&Ie&&Ie.selectionDefs.push(Ye),Be){var pt=Ie.mergedPolygons,It=b(Ie.dragmode);k(Oe(pt,It),Be,Ie)}it&&be(Ae,ze)}}}function U(ke){return"pointNumber"in ke&&"searchInfo"in ke}function Q(ke){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ae,Ee,De,Re){var Ie=ke.searchInfo.cd[0].trace._expandedIndex;return Re.cd[0].trace._expandedIndex===Ie&&De===ke.pointNumber},isRect:!1,degenerate:!1,subtract:!!ke.subtract}}function Y(ke){if(ke.length){for(var Ae=[],Ee=U(ke[0])?0:ke[0][0][0],De=Ee,Re=U(ke[0])?0:ke[0][0][1],Ie=Re,Be=0;Be<ke.length;Be++)if(U(ke[Be]))Ae.push(Q(ke[Be]));else{var Ue=G(ke[Be]);Ue.subtract=!!ke[Be].subtract,Ae.push(Ue),Ee=Math.min(Ee,Ue.xmin),De=Math.max(De,Ue.xmax),Re=Math.min(Re,Ue.ymin),Ie=Math.max(Ie,Ue.ymax)}return{xmin:Ee,xmax:De,ymin:Re,ymax:Ie,pts:[],contains:function(qe,Ye,at,lt){for(var ct=!1,bt=0;bt<Ae.length;bt++)Ae[bt].contains(qe,Ye,at,lt)&&(ct=!Ae[bt].subtract);return ct},isRect:!1,degenerate:!1}}}function Z(ke,Ae,Ee){var De=Ae._fullLayout,Re=Ee.plotinfo,Ie=Ee.dragmode,Be=De._lastSelectedSubplot&&De._lastSelectedSubplot===Re.id,Ue=(ke.shiftKey||ke.altKey)&&!(g(Ie)&&b(Ie));Be&&Ue&&Re.selection&&Re.selection.selectionDefs&&!Ee.selectionDefs?(Ee.selectionDefs=Re.selection.selectionDefs,Ee.mergedPolygons=Re.selection.mergedPolygons):Ue&&Re.selection||X(Ee),Be||(T(Ae),De._lastSelectedSubplot=Re.id)}function X(ke,Ae){var Ee=ke.dragmode,De=ke.plotinfo,Re=ke.gd;(function(lt){return lt._fullLayout._activeShapeIndex>=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be<ke.calcdata.length;Be++)if((Ie=(Re=ke.calcdata[Be])[0].trace).visible===!0&&Ie._module&&Ie._module.selectPoints)if(!te({subplot:De})||Ie.subplot!==De&&Ie.geo!==De)if(Ie.type==="splom"){if(Ie._xaxes[qe[0]]&&Ie._yaxes[Ye[0]]){var at=le(Ie._module,Re,Ae[0],Ee[0]);at.scene=ke._fullLayout._splomScenes[Ie.uid],Ue.push(at)}}else if(Ie.type==="sankey"){var lt=le(Ie._module,Re,Ae[0],Ee[0]);Ue.push(lt)}else{if(qe.indexOf(Ie.xaxis)===-1||Ye.indexOf(Ie.yaxis)===-1)continue;Ue.push(le(Ie._module,Re,B(ke,Ie.xaxis),B(ke,Ie.yaxis)))}else Ue.push(le(Ie._module,Re,Ae[0],Ee[0]));return Ue}function le(ke,Ae,Ee,De){return{_module:ke,cd:Ae,xaxis:Ee,yaxis:De}}function se(ke){var Ae=ke.searchInfo.cd[0].trace,Ee=ke.pointNumber,De=ke.pointNumbers,Re=De.length>0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De<Ae.length;De++){var Ie=Ae[De].cd[0].trace._fullInput,Be=ke._fullLayout._tracePreGUI[Ie.uid]||{};Be.selectedpoints===void 0&&(Be.selectedpoints=Ie._input.selectedpoints||null)}if(Ee){var Ue=Ee.points||[];for(De=0;De<Ae.length;De++)(Re=Ae[De].cd[0].trace)._input.selectedpoints=Re._fullInput.selectedpoints=[],Re._fullInput!==Re&&(Re.selectedpoints=[]);for(var qe=0;qe<Ue.length;qe++){var Ye=Ue[qe],at=Ye.data,lt=Ye.fullData,ct=Ye.pointIndex,bt=Ye.pointIndices;bt?([].push.apply(at.selectedpoints,bt),Re._fullInput!==Re&&[].push.apply(lt.selectedpoints,bt)):(at.selectedpoints.push(ct),Re._fullInput!==Re&<.selectedpoints.push(ct))}}else for(De=0;De<Ae.length;De++)delete(Re=Ae[De].cd[0].trace).selectedpoints,delete Re._input.selectedpoints,Re._fullInput!==Re&&delete Re._fullInput.selectedpoints;(function(ze,Ne){for(var Qe=!1,it=0;it<Ne.length;it++){var kt=Ne[it],Je=kt.cd;s.traceIs(Je[0].trace,"regl")&&(Qe=!0);var ut=kt._module,pt=ut.styleOnSelect||ut.style;pt&&(pt(ze,Je,Je[0].node3),Je[0].nodeRangePlot3&&pt(ze,Je,Je[0].nodeRangePlot3))}Qe&&($(ze),j(ze))})(ke,Ae)}function Te(ke,Ae,Ee){for(var De=(Ee?l.difference:l.union)({regions:ke},{regions:[Ae]}).regions.reverse(),Re=0;Re<De.length;Re++){var Ie=De[Re];Ie.subtract=de(Ie,De.slice(0,Re))}return De}function Se(ke,Ae){if(Array.isArray(ke))for(var Ee=Ae.cd,De=Ae.cd[0].trace,Re=0;Re<ke.length;Re++)ke[Re]=p(ke[Re],De,Ee);return ke}function Oe(ke,Ae){for(var Ee=[],De=0;De<ke.length;De++){Ee[De]=[];for(var Re=0;Re<ke[De].length;Re++){Ee[De][Re]=[],Ee[De][Re][0]=Re?"L":"M";for(var Ie=0;Ie<ke[De][Re].length;Ie++)Ee[De][Re].push(ke[De][Re][Ie])}Ae||Ee[De].push(["Z",Ee[De][0][1],Ee[De][0][2]])}return Ee}function Me(ke,Ae){for(var Ee,De,Re=[],Ie=[],Be=0;Be<Ae.length;Be++){var Ue=Ae[Be];De=Ue._module.selectPoints(Ue,ke),Ie.push(De),Ee=Se(De,Ue),Re=Re.concat(Ee)}return Re}function ce(ke,Ae,Ee,De,Re){var Ie,Be,Ue,qe=!!De;Re&&(Ie=Re.plotinfo,Be=Re.xaxes[0]._id,Ue=Re.yaxes[0]._id);var Ye=[],at=[],lt=ne(ke),ct=ke._fullLayout;if(Ie){var bt=ct._zoomlayer,ze=ct.dragmode,Ne=g(ze),Qe=x(ze);if(Ne||Qe){var it=B(ke,Be,"x"),kt=B(ke,Ue,"y");if(it&&kt){var Je=bt.selectAll(".select-outline-"+Ie.id);if(Je&&ke._fullLayout._outlining&&Je.length){for(var ut=Je[0][0].getAttribute("d"),pt=C(ut,ke,Ie),It=[],Mt=0;Mt<pt.length;Mt++){for(var zt=pt[Mt],wt=[],ve=0;ve<zt.length;ve++)wt.push([xe(it,zt[ve][1]),xe(kt,zt[ve][2])]);wt.xref=Be,wt.yref=Ue,wt.subtract=de(wt,It),It.push(wt)}lt=lt.concat(It)}}}}var _e=Be&&Ue?[Be+Ue]:ct._subplots.cartesian;(function(Yt){var Xt=Yt.calcdata;if(Xt)for(var Bt=0;Bt<Xt.length;Bt++){var Wt=Xt[Bt][0].trace,tn=Yt._fullLayout._splomScenes;if(tn){var cn=tn[Wt.uid];cn&&(cn.selectBatch=[])}}})(ke);for(var Ve={},We=0;We<_e.length;We++){var Ze=_e[We],Ge=Ze.indexOf("y"),Ke=Ze.slice(0,Ge),nt=Ze.slice(Ge),st=Be&&Ue?Ee:void 0;if(st=J(lt,Ke,nt,st)){var mt=De;if(!qe){var tt=B(ke,Ke,"x"),Ft=B(ke,nt,"y");mt=ie(ke,[tt],[Ft],Ze);for(var Vt=0;Vt<mt.length;Vt++){var St=mt[Vt],Nt=St.cd[0],Dt=Nt.trace;if(St._module.name==="scattergl"&&!Nt.t.xpx){var gt=Dt.x,ht=Dt.y,yt=Dt._length;Nt.t.xpx=[],Nt.t.ypx=[];for(var qt=0;qt<yt;qt++)Nt.t.xpx[qt]=tt.c2p(gt[qt]),Nt.t.ypx[qt]=Ft.c2p(ht[qt])}St._module.name==="splom"&&(Ve[Dt.uid]||(Ve[Dt.uid]=!0))}}var Et=Me(st,mt);Ye=Ye.concat(Et),at=at.concat(mt)}}var jt={points:Ye};pe(ke,at,jt);var Tt=ct.clickmode.indexOf("event")>-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt<Bt.length;Wt++){var tn=Bt[Wt];if(tn.xaxis&&tn.xaxis._id===Yt&&tn.yaxis&&tn.yaxis._id===Xt)return!0}return!1})(Be=$t.xref,Ue=$t.yref,at)||ye(ke,Be,Ue,De),Tt&&(jt.points.length?be(ke,jt):we(ke)),ct._deselect=!1}return{eventData:jt,selectionTesters:Ee}}function ye(ke,Ae,Ee,De){De=ie(ke,[B(ke,Ae,"x")],[B(ke,Ee,"y")],Ae+Ee);for(var Re=0;Re<De.length;Re++){var Ie=De[Re];Ie._module.selectPoints(Ie,!1)}pe(ke,De)}function J(ke,Ae,Ee,De){for(var Re,Ie=0;Ie<ke.length;Ie++){var Be=ke[Ie];Ae===Be.xref&&Ee===Be.yref&&(Re?De=Y(Re=Te(Re,Be,!!Be.subtract)):(Re=[Be],De=G(Be)))}return De}function ne(ke,Ae){for(var Ee=[],De=ke._fullLayout,Re=De.selections,Ie=Re.length,Be=0;Be<Ie;Be++)if(!Ae||Be===De._activeSelectionIndex){var Ue=Re[Be];if(Ue){var qe,Ye,at,lt,ct,bt=Ue.xref,ze=Ue.yref,Ne=B(ke,bt,"x"),Qe=B(ke,ze,"y");if(Ue.type==="rect"){ct=[];var it=xe(Ne,Ue.x0),kt=xe(Ne,Ue.x1),Je=xe(Qe,Ue.y0),ut=xe(Qe,Ue.y1);ct=[[it,Je],[it,ut],[kt,ut],[kt,Je]],qe=Math.min(it,kt),Ye=Math.max(it,kt),at=Math.min(Je,ut),lt=Math.max(Je,ut),ct.xmin=qe,ct.xmax=Ye,ct.ymin=at,ct.ymax=lt,ct.xref=bt,ct.yref=ze,ct.subtract=!1,ct.isRect=!0,Ee.push(ct)}else if(Ue.type==="path")for(var pt=Ue.path.split("Z"),It=[],Mt=0;Mt<pt.length;Mt++){var zt=pt[Mt];if(zt){zt+="Z";var wt=_.extractPathCoords(zt,w.paramIsX,"raw"),ve=_.extractPathCoords(zt,w.paramIsY,"raw");qe=1/0,Ye=-1/0,at=1/0,lt=-1/0,ct=[];for(var _e=0;_e<wt.length;_e++){var Ve=xe(Ne,wt[_e]),We=xe(Qe,ve[_e]);ct.push([Ve,We]),qe=Math.min(Ve,qe),Ye=Math.max(Ve,Ye),at=Math.min(We,at),lt=Math.max(We,lt)}ct.xmin=qe,ct.xmax=Ye,ct.ymin=at,ct.ymax=lt,ct.xref=bt,ct.yref=ze,ct.subtract=de(ct,It),It.push(ct),Ee.push(ct)}}}}return Ee}function de(ke,Ae){for(var Ee=!1,De=0;De<Ae.length;De++)for(var Re=Ae[De],Ie=0;Ie<ke.length;Ie++)if(f(ke[Ie],Re)){Ee=!Ee;break}return Ee}function xe(ke,Ae){return ke.type==="date"&&(Ae=Ae.replace("_"," ")),ke.type==="log"?ke.c2p(Ae):ke.r2p(Ae,null,ke.calendar)}function ue(ke){for(var Ae=ke.length,Ee=[],De=0;De<Ae;De++){var Re=ke[De];Ee=(Ee=Ee.concat(Re)).concat([Re[0]])}return(Ie=Ee).isRect=Ie.length===5&&Ie[0][0]===Ie[4][0]&&Ie[0][1]===Ie[4][1]&&Ie[0][0]===Ie[1][0]&&Ie[2][0]===Ie[3][0]&&Ie[0][1]===Ie[3][1]&&Ie[1][1]===Ie[2][1]||Ie[0][1]===Ie[1][1]&&Ie[2][1]===Ie[3][1]&&Ie[0][0]===Ie[3][0]&&Ie[1][0]===Ie[2][0],Ie.isRect&&(Ie.xmin=Math.min(Ie[0][0],Ie[2][0]),Ie.xmax=Math.max(Ie[0][0],Ie[2][0]),Ie.ymin=Math.min(Ie[0][1],Ie[2][1]),Ie.ymax=Math.max(Ie[0][1],Ie[2][1])),Ie;var Ie}function ge(ke){return function(Ae,Ee){for(var De,Re,Ie=0;Ie<ke.length;Ie++){var Be=ke[Ie],Ue=Be._id,qe=Ue.charAt(0);if(Ee.isRect){De||(De={});var Ye=Ee[qe+"min"],at=Ee[qe+"max"];Ye!==void 0&&at!==void 0&&(De[Ue]=[q(Be,Ye),q(Be,at)].sort(F))}else Re||(Re={}),Re[Ue]=Ee.map(H(Be))}De&&(Ae.range=De),Re&&(Ae.lassoPoints=Re)}}function be(ke,Ae){Ae&&(Ae.selections=(ke.layout||{}).selections||[]),ke.emit("plotly_selected",Ae)}function we(ke){ke.emit("plotly_deselect",null)}o.exports={reselect:ce,prepSelect:function(ke,Ae,Ee,De,Re){var Ie=!te(De),Be=y(Re),Ue=v(Re),qe=b(Re),Ye=g(Re),at=x(Re),lt=Re==="drawcircle",ct=Re==="drawline"||lt,bt=De.gd,ze=bt._fullLayout,Ne=at&&ze.newselection.mode==="immediate"&&Ie,Qe=ze._zoomlayer,it=De.element.getBoundingClientRect(),kt=De.plotinfo,Je=V(kt),ut=Ae-it.left,pt=Ee-it.top;ze._calcInverseTransform(bt);var It=R.apply3DTransform(ze._invTransform)(ut,pt);ut=It[0],pt=It[1];var Mt,zt,wt,ve,_e,Ve,We,Ze=ze._invScaleX,Ge=ze._invScaleY,Ke=ut,nt=pt,st="M"+ut+","+pt,mt=De.xaxes[0],tt=De.yaxes[0],Ft=mt._length,Vt=tt._length,St=ke.altKey&&!(g(Re)&&qe);Z(ke,bt,De),Be&&(Mt=W([[ut,pt]],N.BENDPX));var Nt=Qe.selectAll("path.select-outline-"+kt.id).data([1]),Dt=Ye?ze.newshape:ze.newselection;Ye&&(De.hasText=Dt.label.text||Dt.label.texttemplate);var gt=Ye&&!qe?Dt.fillcolor:"rgba(0,0,0,0)",ht=Dt.line.color||(Ie?d.contrast(bt._fullLayout.plot_bgcolor):"#7f7f7f");Nt.enter().append("path").attr("class","select-outline select-outline-"+kt.id).style({opacity:Ye?Dt.opacity/2:1,"stroke-dasharray":c(Dt.line.dash,Dt.line.width),"stroke-width":Dt.line.width+"px","shape-rendering":"crispEdges"}).call(d.stroke,ht).call(d.fill,gt).attr("fill-rule","evenodd").classed("cursor-move",!!Ye).attr("transform",Je).attr("d",st+"Z");var yt=Qe.append("path").attr("class","zoombox-corners").style({fill:d.background,stroke:d.defaultLine,"stroke-width":1}).attr("transform",Je).attr("d","M0,0Z");if(Ye&&De.hasText){var qt=Qe.select(".label-temp");qt.empty()&&(qt=Qe.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Et=ze._uid+N.SELECTID,jt=[],Tt=ie(bt,De.xaxes,De.yaxes,De.subplot);Ne&&!ke.shiftKey&&(De._clearSubplotSelections=function(){if(Ie){var At=mt._id,Lt=tt._id;ye(bt,At,Lt,Tt);for(var Rt=(bt.layout||{}).selections||[],$t=[],Yt=!1,Xt=0;Xt<Rt.length;Xt++){var Bt=ze.selections[Xt];Bt.xref!==At||Bt.yref!==Lt?$t.push(Rt[Xt]):Yt=!0}Yt&&(bt._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",bt,{selections:$t}))}});var Ot=function(At){return At.plotinfo.fillRangeItems||ge(At.xaxes.concat(At.yaxes))}(De);De.moveFn=function(At,Lt){De._clearSubplotSelections&&(De._clearSubplotSelections(),De._clearSubplotSelections=void 0),Ke=Math.max(0,Math.min(Ft,Ze*At+ut)),nt=Math.max(0,Math.min(Vt,Ge*Lt+pt));var Rt=Math.abs(Ke-ut),$t=Math.abs(nt-pt);if(Ue){var Yt,Xt,Bt;if(at){var Wt=ze.selectdirection;switch(Yt=Wt==="any"?$t<Math.min(.6*Rt,E)?"h":Rt<Math.min(.6*$t,E)?"v":"d":Wt){case"h":Xt=lt?Vt/2:0,Bt=Vt;break;case"v":Xt=lt?Ft/2:0,Bt=Ft}}if(Ye)switch(ze.newshape.drawdirection){case"vertical":Yt="h",Xt=lt?Vt/2:0,Bt=Vt;break;case"horizontal":Yt="v",Xt=lt?Ft/2:0,Bt=Ft;break;case"ortho":Rt<$t?(Yt="h",Xt=pt,Bt=nt):(Yt="v",Xt=ut,Bt=Ke);break;default:Yt="d"}Yt==="h"?((ve=ct?S(lt,[Ke,Xt],[Ke,Bt]):[[ut,Xt],[ut,Bt],[Ke,Bt],[Ke,Xt]]).xmin=ct?Ke:Math.min(ut,Ke),ve.xmax=ct?Ke:Math.max(ut,Ke),ve.ymin=Math.min(Xt,Bt),ve.ymax=Math.max(Xt,Bt),yt.attr("d","M"+ve.xmin+","+(pt-E)+"h-4v"+2*E+"h4ZM"+(ve.xmax-1)+","+(pt-E)+"h4v"+2*E+"h-4Z")):Yt==="v"?((ve=ct?S(lt,[Xt,nt],[Bt,nt]):[[Xt,pt],[Xt,nt],[Bt,nt],[Bt,pt]]).xmin=Math.min(Xt,Bt),ve.xmax=Math.max(Xt,Bt),ve.ymin=ct?nt:Math.min(pt,nt),ve.ymax=ct?nt:Math.max(pt,nt),yt.attr("d","M"+(ut-E)+","+ve.ymin+"v-4h"+2*E+"v4ZM"+(ut-E)+","+(ve.ymax-1)+"v4h"+2*E+"v-4Z")):Yt==="d"&&((ve=ct?S(lt,[ut,pt],[Ke,nt]):[[ut,pt],[ut,nt],[Ke,nt],[Ke,pt]]).xmin=Math.min(ut,Ke),ve.xmax=Math.max(ut,Ke),ve.ymin=Math.min(pt,nt),ve.ymax=Math.max(pt,nt),yt.attr("d","M0,0Z"))}else Be&&(Mt.addPt([Ke,nt]),ve=Mt.filtered);if(De.selectionDefs&&De.selectionDefs.length?(wt=Te(De.mergedPolygons,ve,St),ve.subtract=St,zt=Y(De.selectionDefs.concat([ve]))):(wt=[ve],zt=G(ve)),k(Oe(wt,qe),Nt,De),at){var tn,cn=ce(bt,!1),ln=cn.eventData?cn.eventData.points.slice():[];cn=ce(bt,!1,zt,Tt,De),zt=cn.selectionTesters,We=cn.eventData,tn=Mt?Mt.filtered:ue(wt),z.throttle(Et,N.SELECTDELAY,function(){for(var an=(jt=Me(zt,Tt)).slice(),sn=0;sn<ln.length;sn++){for(var Zt=ln[sn],pn=!1,nn=0;nn<an.length;nn++)if(an[nn].curveNumber===Zt.curveNumber&&an[nn].pointNumber===Zt.pointNumber){pn=!0;break}pn||an.push(Zt)}an.length&&(We||(We={}),We.points=an),Ot(We,tn),function(Kt,Cn){Kt.emit("plotly_selecting",Cn)}(bt,We)})}},De.clickFn=function(At,Lt){if(yt.remove(),bt._fullLayout._activeShapeIndex>=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e<Tt.length;_e++)(Ve=Tt[_e])._module.selectPoints(Ve,!1);if(pe(bt,Tt),X(De),we(bt),Tt.length){var $t=Tt[0].xaxis,Yt=Tt[0].yaxis;if($t&&Yt){for(var Xt=[],Bt=bt._fullLayout.selections,Wt=0;Wt<Bt.length;Wt++){var tn=Bt[Wt];tn&&(tn.xref===$t._id&&tn.yref===Yt._id||Xt.push(tn))}Xt.length<Bt.length&&(bt._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",bt,{selections:Xt}))}}}else Rt.indexOf("select")>-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,c=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},c,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),c=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?c.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=c.decodeDate(_)),w=0;w<P.length;w++)(k=x[P[w].charAt(0)].drawn)!==void 0&&(!(T=P[w].substr(1).match(s.paramRE))||T.length<k||((M=_(T[k]))<S&&(S=M),M>C&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b<g.length;b++){var x,_,w=g[b];w._extremes={};var k=f.getRefType(w.xref),T=f.getRefType(w.yref);if(w.xref!=="paper"&&k!=="domain"){var M=w.xsizemode==="pixel"?w.xanchor:w.x0,S=w.xsizemode==="pixel"?w.xanchor:w.x1;(_=m(x=f.getFromId(y,w.xref),M,S,w.path,s.paramIsX))&&(w._extremes[x._id]=f.findExtremes(x,_,d(w)))}if(w.yref!=="paper"&&T!=="domain"){var C=w.ysizemode==="pixel"?w.yanchor:w.y0,P=w.ysizemode==="pixel"?w.yanchor:w.y1;(_=m(x=f.getFromId(y,w.yref),C,P,w.path,s.paramIsY))&&(w._extremes[x._id]=f.findExtremes(x,_,h(w)))}}}},21459:function(o){o.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},84726:function(o,a,n){var l=n(71828),f=n(89298),s=n(85501),c=n(89827),d=n(30477);function h(p,m,y){function v(L,q){return l.coerce(p,m,c,L,q)}if(m._isShape=!0,v("visible")){v("showlegend")&&(v("legend"),v("legendwidth"),v("legendgroup"),v("legendgrouptitle.text"),l.coerceFont(v,"legendgrouptitle.font"),v("legendrank"));var g=v("path"),b=v("type",g?"path":"rect"),x=b!=="path";x&&delete m.path,v("editable"),v("layer"),v("opacity"),v("fillcolor"),v("fillrule"),v("line.width")&&(v("line.color"),v("line.dash"));for(var _=v("xsizemode"),w=v("ysizemode"),k=["x","y"],T=0;T<2;T++){var M,S,C,P=k[T],D=P+"anchor",O=P==="x"?_:w,R={_fullLayout:y},F=f.coerceRef(p,m,R,P,void 0,"paper");if(f.getRefType(F)==="range"?((M=f.getFromId(R,F))._shapeIndices.push(m._index),C=d.rangeToShapePosition(M),S=d.shapePositionToRange(M)):S=C=l.identity,x){var A=P+"0",z=P+"1",B=p[A],$=p[z];p[A]=S(p[A],!0),p[z]=S(p[z],!0),O==="pixel"?(v(A,0),v(z,10)):(f.coercePosition(m,R,v,F,A,.25),f.coercePosition(m,R,v,F,z,.75)),m[A]=C(m[A]),m[z]=C(m[z]),p[A]=B,p[z]=$}if(O==="pixel"){var j=p[D];p[D]=S(p[D],!0),f.coercePosition(m,R,v,F,D,.25),m[D]=C(m[D]),p[D]=j}}x&&l.noneOrAll(p,m,["x0","x1","y0","y1"]);var N,E,W=b==="line";if(x&&(N=v("label.texttemplate")),N||(E=v("label.text")),E||N){v("label.textangle");var G=v("label.textposition",W?"middle":"middle center");v("label.xanchor"),v("label.yanchor",function(L,q){return L?"bottom":q.indexOf("top")!==-1?"top":q.indexOf("bottom")!==-1?"bottom":"middle"}(W,G)),v("label.padding"),l.coerceFont(v,"label.font",y.font)}}}o.exports=function(p,m){s(p,m,{name:"shapes",handleItemDefaults:h})}},48100:function(o,a,n){var l=n(71828),f=n(89298),s=n(63893),c=n(91424),d=n(60165).readPaths,h=n(30477),p=h.getPathString,m=n(37281),y=n(18783).FROM_TL;o.exports=function(v,g,b,x){if(x.selectAll(".shape-label").remove(),b.label.text||b.label.texttemplate){var _;if(b.label.texttemplate){var w={};if(b.type!=="path"){var k=f.getFromId(v,b.xref),T=f.getFromId(v,b.yref);for(var M in m){var S=m[M](b,k,T);S!==void 0&&(w[M]=S)}}_=l.texttemplateStringForShapes(b.label.texttemplate,{},v._fullLayout._d3locale,w)}else _=b.label.text;var C,P,D,O,R={"data-index":g},F=b.label.font,A=x.append("g").attr(R).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(_);if(b.path){var z=p(v,b),B=d(z,v);C=1/0,D=1/0,P=-1/0,O=-1/0;for(var $=0;$<B.length;$++)for(var j=0;j<B[$].length;j++)for(var N=B[$][j],E=1;E<N.length;E+=2){var W=N[E],G=N[E+1];C=Math.min(C,W),P=Math.max(P,W),D=Math.min(D,G),O=Math.max(O,G)}}else{var L=f.getFromId(v,b.xref),q=f.getRefType(b.xref),H=f.getFromId(v,b.yref),V=f.getRefType(b.yref),te=h.getDataToPixel(v,L,!1,q),ee=h.getDataToPixel(v,H,!0,V);C=te(b.x0),P=te(b.x1),D=ee(b.y0),O=ee(b.y1)}var U=b.label.textangle;U==="auto"&&(U=b.type==="line"?function(re,ie,le,se){var pe,Te;return Te=Math.abs(le-re),pe=le>=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(c.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":le<re?"right":"center":le>re?"right":le<re?"left":"center":J==="end"?ne==="auto"?le>re?"right":le<re?"left":"center":le>re?"left":le<re?"right":"center":"center");var Ae={bottom:-1,middle:0,top:1};if(ne==="auto"){var Ee=Ae[ke];ce=-de*ge*Ee,ye=de*be*Ee}else ce=de*{left:1,center:0,right:-1}[we],ye=de*Ae[ke];Oe+=ce,Me+=ye}else ce=de+3,J.indexOf("right")!==-1?(Oe=Math.max(re,le)-ce,we==="auto"&&(we="right")):J.indexOf("left")!==-1?(Oe=Math.min(re,le)+ce,we==="auto"&&(we="left")):(Oe=(re+le)/2,we==="auto"&&(we="center")),Me=J.indexOf("top")!==-1?Math.min(ie,se):J.indexOf("bottom")!==-1?Math.max(ie,se):(ie+se)/2,ye=de,ke==="bottom"?Me-=ye:ke==="top"&&(Me+=ye);var De=y[ke],Re=pe.label.font.size,Ie=Se.height;return{textx:Oe+(Ie*De-Re)*ge,texty:Me+-(Ie*De-Re)*be,xanchor:we}}(C,D,P,O,b,U,c.bBox(A.node())),Y=Q.textx,Z=Q.texty,X=Q.xanchor;A.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[X],y:Z,x:Y,transform:"rotate("+U+","+Y+","+Z+")"}).call(s.positionText,Y,Z)}}},42359:function(o,a,n){var l=n(71828).strTranslate,f=n(28569),s=n(64505),c=s.drawMode,d=s.selectMode,h=n(73972),p=n(7901),m=n(89995),y=m.i000,v=m.i090,g=m.i180,b=m.i270,x=n(51873).clearOutlineControllers,_=n(60165),w=_.pointsOnRectangle,k=_.pointsOnEllipse,T=_.writePaths,M=n(90551).newShapes,S=n(90551).createShapeObj,C=n(35855),P=n(48100);function D(O,R){var F,A,z,B=O[R][1],$=O[R][2],j=O.length;return A=O[F=(R+1)%j][1],z=O[F][2],A===B&&z===$&&(A=O[F=(R+2)%j][1],z=O[F][2]),[F,A,z]}o.exports=function O(R,F,A,z){z||(z=0);var B=A.gd;function $(){O(R,F,A,z++),(k(R[0])||A.hasText)&&j({redrawing:!0})}function j(pe){var Te={};A.isActiveShape!==void 0&&(A.isActiveShape=!1,Te=M(F,A)),A.isActiveSelection!==void 0&&(A.isActiveSelection=!1,Te=C(F,A),B._fullLayout._reselect=!0),Object.keys(Te).length&&h.call((pe||{}).redrawing?"relayout":"_guiRelayout",B,Te)}var N,E,W,G,L,q=B._fullLayout._zoomlayer,H=A.dragmode,V=c(H),te=d(H);if((V||te)&&(B._fullLayout._outlining=!0),x(B),F.attr("d",T(R)),z||!A.isActiveShape&&!A.isActiveSelection||(L=function(pe,Te){for(var Se=0;Se<Te.length;Se++){var Oe=Te[Se];pe[Se]=[];for(var Me=0;Me<Oe.length;Me++){pe[Se][Me]=[];for(var ce=0;ce<Oe[Me].length;ce++)pe[Se][Me][ce]=Oe[Me][ce]}}return pe}([],R),function(pe){N=[];for(var Te=0;Te<R.length;Te++){var Se=R[Te],Oe=w(Se),Me=!Oe&&k(Se);N[Te]=[];for(var ce=Se.length,ye=0;ye<ce;ye++)if(Se[ye][0]!=="Z"&&(!Me||ye===y||ye===v||ye===g||ye===b)){var J,ne=Oe&&A.isActiveSelection;ne&&(J=D(Se,ye));var de=Se[ye][1],xe=Se[ye][2],ue=pe.append(ne?"rect":"circle").attr("data-i",Te).attr("data-j",ye).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ne){var ge=J[1]-de,be=J[2]-xe,we=be?5:Math.max(Math.min(25,Math.abs(ge)-5),5),ke=ge?5:Math.max(Math.min(25,Math.abs(be)-5),5);ue.classed(be?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",we).attr("height",ke).attr("x",de-we/2).attr("y",xe-ke/2).attr("transform",l(ge/2,be/2))}else ue.classed("cursor-grab",!0).attr("r",5).attr("cx",de).attr("cy",xe);N[Te][ye]={element:ue.node(),gd:B,prepFn:Q,doneFn:Z,clickFn:X},f.init(N[Te][ye])}}}(q.append("g").attr("class","outline-controllers")),function(){E=[],R.length&&(E[0]={element:F[0][0],gd:B,prepFn:ie,doneFn:le,clickFn:se},f.init(E[0]))}()),V&&A.hasText){var ee=q.select(".label-temp"),U=S(F,A,A.dragmode);P(B,"label-temp",U,ee)}function Q(pe){W=+pe.srcElement.getAttribute("data-i"),G=+pe.srcElement.getAttribute("data-j"),N[W][G].moveFn=Y}function Y(pe,Te){if(R.length){var Se=L[W][G][1],Oe=L[W][G][2],Me=R[W],ce=Me.length;if(w(Me)){var ye=pe,J=Te;A.isActiveSelection&&(D(Me,G)[1]===Me[G][1]?J=0:ye=0);for(var ne=0;ne<ce;ne++)if(ne!==G){var de=Me[ne];de[1]===Me[G][1]&&(de[1]=Se+ye),de[2]===Me[G][2]&&(de[2]=Oe+J)}if(Me[G][1]=Se+ye,Me[G][2]=Oe+J,!w(Me))for(var xe=0;xe<ce;xe++)for(var ue=0;ue<Me[xe].length;ue++)Me[xe][ue]=L[W][xe][ue]}else Me[G][1]=Se+pe,Me[G][2]=Oe+Te;$()}}function Z(){j()}function X(pe,Te){if(pe===2){W=+Te.srcElement.getAttribute("data-i"),G=+Te.srcElement.getAttribute("data-j");var Se=R[W];w(Se)||k(Se)||function(){if(R.length&&R[W]&&R[W].length){for(var Oe=[],Me=0;Me<R[W].length;Me++)Me!==G&&Oe.push(R[W][Me]);Oe.length>1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;Me<R.length;Me++)for(var ce=0;ce<R[Me].length;ce++)for(var ye=0;ye+2<R[Me][ce].length;ye+=2)R[Me][ce][ye+1]=L[Me][ce][ye+1]+Se,R[Me][ce][ye+2]=L[Me][ce][ye+2]+Oe})(pe,Te),$()}function ie(pe){(W=+pe.srcElement.getAttribute("data-i"))||(W=0),E[W].moveFn=re}function le(){j()}function se(pe){pe===2&&function(Te){if(d(Te._fullLayout.dragmode)){x(Te);var Se=Te._fullLayout._activeSelectionIndex,Oe=(Te.layout||{}).selections||[];if(Se<Oe.length){for(var Me=[],ce=0;ce<Oe.length;ce++)ce!==Se&&Me.push(Oe[ce]);delete Te._fullLayout._activeSelectionIndex;var ye=Te._fullLayout.selections[Se];Te._fullLayout._deselect={xref:ye.xref,yref:ye.yref},h.call("_guiRelayout",Te,{selections:Me})}}}(B)}}},34031:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=n(89298),d=n(60165).readPaths,h=n(42359),p=n(48100),m=n(51873).clearOutlineControllers,y=n(7901),v=n(91424),g=n(44467).arrayEditor,b=n(28569),x=n(6964),_=n(21459),w=n(30477),k=w.getPathString;function T(R){var F=R._fullLayout;for(var A in F._shapeUpperLayer.selectAll("path").remove(),F._shapeLowerLayer.selectAll("path").remove(),F._shapeUpperLayer.selectAll("text").remove(),F._shapeLowerLayer.selectAll("text").remove(),F._plots){var z=F._plots[A].shapelayer;z&&(z.selectAll("path").remove(),z.selectAll("text").remove())}for(var B=0;B<F.shapes.length;B++)F.shapes[B].visible===!0&&C(R,B)}function M(R){return!!R._fullLayout._outlining}function S(R){return!R._context.edits.shapePosition}function C(R,F){R._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+F+'"]').remove();var A=w.makeShapesOptionsAndPlotinfo(R,F),z=A.options,B=A.plotinfo;function $(j){var N=k(R,z),E={"data-index":F,"fill-rule":z.fillrule,d:N},W=z.opacity,G=z.fillcolor,L=z.line.width?z.line.color:"rgba(0,0,0,0)",q=z.line.width,H=z.line.dash;q||z.editable!==!0||(q=5,H="solid");var V=N[N.length-1]!=="Z",te=S(R)&&z.editable&&R._fullLayout._activeShapeIndex===F;te&&(G=V?"rgba(0,0,0,0)":R._fullLayout.activeshape.fillcolor,W=R._fullLayout.activeshape.opacity);var ee,U=j.append("g").classed("shape-group",!0).attr({"data-index":F}),Q=U.append("path").attr(E).style("opacity",W).call(y.stroke,L).call(y.fill,G).call(v.dashLine,H,q);if(P(U,R,z),p(R,F,z,U),(te||R._context.edits.shapePosition)&&(ee=g(R.layout,"shapes",z)),te){Q.style({cursor:"move"});var Y={element:Q.node(),plotinfo:B,gd:R,editHelpers:ee,hasText:z.label.text||z.label.texttemplate,isActiveShape:!0},Z=d(N,R);h(Z,Q,Y)}else R._context.edits.shapePosition?function(X,re,ie,le,se,pe){var Te,Se,Oe,Me,ce,ye,J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee=10,De=10,Re=ie.xsizemode==="pixel",Ie=ie.ysizemode==="pixel",Be=ie.type==="line",Ue=ie.type==="path",qe=pe.modifyItem,Ye=l.select(re.node().parentNode),at=c.getFromId(X,ie.xref),lt=c.getRefType(ie.xref),ct=c.getFromId(X,ie.yref),bt=c.getRefType(ie.yref),ze=w.getDataToPixel(X,at,!1,lt),Ne=w.getDataToPixel(X,ct,!0,bt),Qe=w.getPixelToData(X,at,!1,lt),it=w.getPixelToData(X,ct,!0,bt),kt=Be?function(){var wt=10,ve=Math.max(ie.line.width,wt),_e=se.append("g").attr("data-index",le).attr("drag-helper",!0);_e.append("path").attr("d",re.attr("d")).style({cursor:"move","stroke-width":ve,"stroke-opacity":"0"});var Ve={"fill-opacity":"0"},We=Math.max(ve/2,wt);return _e.append("circle").attr({"data-line-point":"start-point",cx:Re?ze(ie.xanchor)+ie.x0:ze(ie.x0),cy:Ie?Ne(ie.yanchor)-ie.y0:Ne(ie.y0),r:We}).style(Ve).classed("cursor-grab",!0),_e.append("circle").attr({"data-line-point":"end-point",cx:Re?ze(ie.xanchor)+ie.x1:ze(ie.x1),cy:Ie?Ne(ie.yanchor)-ie.y1:Ne(ie.y1),r:We}).style(Ve).classed("cursor-grab",!0),_e}():re,Je={element:kt.node(),gd:X,prepFn:function(wt){M(X)||(Re&&(ce=ze(ie.xanchor)),Ie&&(ye=Ne(ie.yanchor)),ie.type==="path"?ke=ie.path:(Te=Re?ie.x0:ze(ie.x0),Se=Ie?ie.y0:Ne(ie.y0),Oe=Re?ie.x1:ze(ie.x1),Me=Ie?ie.y1:Ne(ie.y1)),Te<Oe?(de=Te,be="x0",xe=Oe,we="x1"):(de=Oe,be="x1",xe=Te,we="x0"),!Ie&&Se<Me||Ie&&Se>Me?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=c.getFromId(Ve,We),Ke=c.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F<A.length){for(var z=[],B=0;B<A.length;B++)B!==F&&z.push(A[B]);return delete R._fullLayout._activeShapeIndex,f.call("_guiRelayout",R,{shapes:z})}}},drawLabel:p}},29241:function(o,a,n){var l=n(30962).overrideAll,f=n(9012),s=n(41940),c=n(79952).P,d=n(1426).extendFlat,h=n(5386).R,p=n(37281);o.exports=l({newshape:{visible:d({},f.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:d({},f.legend,{}),legendgroup:d({},f.legendgroup,{}),legendgrouptitle:{text:d({},f.legendgrouptitle.text,{}),font:s({})},legendrank:d({},f.legendrank,{}),legendwidth:d({},f.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:d({},c,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:d({},f.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:h({newshape:!0},{keys:Object.keys(p)}),font:s({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},89995:function(o){o.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},45547:function(o,a,n){var l=n(7901),f=n(71828);o.exports=function(s,c,d){if(d("newshape.visible"),d("newshape.name"),d("newshape.showlegend"),d("newshape.legend"),d("newshape.legendwidth"),d("newshape.legendgroup"),d("newshape.legendgrouptitle.text"),f.coerceFont(d,"newshape.legendgrouptitle.font"),d("newshape.legendrank"),d("newshape.drawdirection"),d("newshape.layer"),d("newshape.fillcolor"),d("newshape.fillrule"),d("newshape.opacity"),d("newshape.line.width")){var h=(s||{}).plot_bgcolor||"#FFF";d("newshape.line.color",l.contrast(h)),d("newshape.line.dash")}var p=s.dragmode==="drawline",m=d("newshape.label.text"),y=d("newshape.label.texttemplate");if(m||y){d("newshape.label.textangle");var v=d("newshape.label.textposition",p?"middle":"middle center");d("newshape.label.xanchor"),d("newshape.label.yanchor",function(g,b){return g?"bottom":b.indexOf("top")!==-1?"top":b.indexOf("bottom")!==-1?"bottom":"middle"}(p,v)),d("newshape.label.padding"),f.coerceFont(d,"newshape.label.font",c.font)}d("activeshape.fillcolor"),d("activeshape.opacity")}},60165:function(o,a,n){var l=n(95616),f=n(89995),s=f.CIRCLE_SIDES,c=f.SQRT2,d=n(75549),h=d.p2r,p=d.r2p,m=[0,3,4,5,6,1,2],y=[0,3,4,1,2];function v(b,x){return Math.abs(b-x)<=1e-6}function g(b,x){var _=x[1]-b[1],w=x[2]-b[2];return Math.sqrt(_*_+w*w)}a.writePaths=function(b){var x=b.length;if(!x)return"M0,0Z";for(var _="",w=0;w<x;w++)for(var k=b[w].length,T=0;T<k;T++){var M=b[w][T][0];if(M==="Z")_+="Z";else for(var S=b[w][T].length,C=0;C<S;C++){var P=C;M==="Q"||M==="S"?P=y[C]:M==="C"&&(P=m[C]),_+=b[w][T][P],C>0&&C<S-1&&(_+=",")}}return _},a.readPaths=function(b,x,_,w){var k,T,M,S=l(b),C=[],P=-1,D=0,O=0,R=function(){T=D,M=O};R();for(var F=0;F<S.length;F++){var A,z,B,$,j=[],N=S[F][0],E=N;switch(N){case"M":C[++P]=[],D=+S[F][1],O=+S[F][2],j.push([E,D,O]),R();break;case"Q":case"S":A=+S[F][1],B=+S[F][2],D=+S[F][3],O=+S[F][4],j.push([E,D,O,A,B]);break;case"C":A=+S[F][1],B=+S[F][2],z=+S[F][3],$=+S[F][4],D=+S[F][5],O=+S[F][6],j.push([E,D,O,A,B,z,$]);break;case"T":case"L":D=+S[F][1],O=+S[F][2],j.push([E,D,O]);break;case"H":E="L",D=+S[F][1],j.push([E,D,O]);break;case"V":E="L",O=+S[F][1],j.push([E,D,O]);break;case"A":E="L";var W=+S[F][1],G=+S[F][2];+S[F][4]||(W=-W,G=-G);var L=D-W,q=O;for(k=1;k<=s/2;k++){var H=2*Math.PI*k/s;j.push([E,L+W*Math.cos(H),q+G*Math.sin(H)])}break;case"Z":D===T&&O===M||(D=T,O=M,j.push([E,D,O]))}for(var V=(_||{}).domain,te=x._fullLayout._size,ee=_&&_.xsizemode==="pixel",U=_&&_.ysizemode==="pixel",Q=w===!1,Y=0;Y<j.length;Y++){for(k=0;k+2<7;k+=2){var Z=j[Y][k+1],X=j[Y][k+2];Z!==void 0&&X!==void 0&&(D=Z,O=X,_&&(_.xaxis&&_.xaxis.p2r?(Q&&(Z-=_.xaxis._offset),Z=ee?p(_.xaxis,_.xanchor)+Z:h(_.xaxis,Z)):(Q&&(Z-=te.l),V?Z=V.x[0]+Z/te.w:Z/=te.w),_.yaxis&&_.yaxis.p2r?(Q&&(X-=_.yaxis._offset),X=U?p(_.yaxis,_.yanchor)-X:h(_.yaxis,X)):(Q&&(X-=te.t),X=V?V.y[1]-X/te.h:1-X/te.h)),j[Y][k+1]=Z,j[Y][k+2]=X)}C[P].push(j[Y].slice())}}return C},a.pointsOnRectangle=function(b){if(b.length!==5)return!1;for(var x=1;x<3;x++)if(!v(b[0][x]-b[1][x],b[3][x]-b[2][x])||!v(b[0][x]-b[3][x],b[1][x]-b[2][x]))return!1;return!(!v(b[0][1],b[1][1])&&!v(b[0][1],b[3][1])||!(g(b[0],b[1])*g(b[0],b[3])))},a.pointsOnEllipse=function(b){var x=b.length;if(x!==s+1)return!1;x=s;for(var _=0;_<x;_++){var w=(2*x-_)%x,k=(x/2+w)%x,T=(x/2+_)%x;if(!v(g(b[_],b[T]),g(b[w],b[k])))return!1}return!0},a.handleEllipse=function(b,x,_){if(!b)return[x,_];var w=a.ellipseOver({x0:x[0],y0:x[1],x1:_[0],y1:_[1]}),k=(w.x1+w.x0)/2,T=(w.y1+w.y0)/2,M=(w.x1-w.x0)/2,S=(w.y1-w.y0)/2;M||(M=S/=c),S||(S=M/=c);for(var C=[],P=0;P<s;P++){var D=2*P*Math.PI/s;C.push([k+M*Math.cos(D),T+S*Math.sin(D)])}return C},a.ellipseOver=function(b){var x=b.x0,_=b.y0,w=b.x1,k=b.y1,T=w-x,M=k-_,S=((x-=T)+w)/2,C=((_-=M)+k)/2;return{x0:S-(T*=c),y0:C-(M*=c),x1:S+T,y1:C+M}},a.fixDatesForPaths=function(b,x,_){var w=x.type==="date",k=_.type==="date";if(!w&&!k)return b;for(var T=0;T<b.length;T++)for(var M=0;M<b[T].length;M++)for(var S=0;S+2<b[T][M].length;S+=2)w&&(b[T][M][S+1]=b[T][M][S+1].replace(" ","_")),k&&(b[T][M][S+2]=b[T][M][S+2].replace(" ","_"));return b}},90551:function(o,a,n){var l=n(64505),f=l.drawMode,s=l.openMode,c=n(89995),d=c.i000,h=c.i090,p=c.i180,m=c.i270,y=c.cos45,v=c.sin45,g=n(75549),b=g.p2r,x=g.r2p,_=n(51873).clearOutline,w=n(60165),k=w.readPaths,T=w.writePaths,M=w.ellipseOver,S=w.fixDatesForPaths;function C(P,D,O){var R,F=P[0][0],A=D.gd,z=F.getAttribute("d"),B=A._fullLayout.newshape,$=D.plotinfo,j=D.isActiveShape,N=$.xaxis,E=$.yaxis,W=!!$.domain||!$.xaxis,G=!!$.domain||!$.yaxis,L=s(O),q=k(z,A,$,j),H={editable:!0,visible:B.visible,name:B.name,showlegend:B.showlegend,legend:B.legend,legendwidth:B.legendwidth,legendgroup:B.legendgroup,legendgrouptitle:{text:B.legendgrouptitle.text,font:B.legendgrouptitle.font},legendrank:B.legendrank,label:B.label,xref:W?"paper":N._id,yref:G?"paper":E._id,layer:B.layer,opacity:B.opacity,line:{color:B.line.color,width:B.line.width,dash:B.line.dash}};if(L||(H.fillcolor=B.fillcolor,H.fillrule=B.fillrule),q.length===1&&(R=q[0]),R&&R.length===5&&O==="drawrect")H.type="rect",H.x0=R[0][1],H.y0=R[0][2],H.x1=R[2][1],H.y1=R[2][2];else if(R&&O==="drawline")H.type="line",H.x0=R[0][1],H.y0=R[0][2],H.x1=R[1][1],H.y1=R[1][2];else if(R&&O==="drawcircle"){H.type="circle";var V=R[d][1],te=R[h][1],ee=R[p][1],U=R[m][1],Q=R[d][2],Y=R[h][2],Z=R[p][2],X=R[m][2],re=$.xaxis&&($.xaxis.type==="date"||$.xaxis.type==="log"),ie=$.yaxis&&($.yaxis.type==="date"||$.yaxis.type==="log");re&&(V=x($.xaxis,V),te=x($.xaxis,te),ee=x($.xaxis,ee),U=x($.xaxis,U)),ie&&(Q=x($.yaxis,Q),Y=x($.yaxis,Y),Z=x($.yaxis,Z),X=x($.yaxis,X));var le=(te+U)/2,se=(Q+Z)/2,pe=M({x0:le,y0:se,x1:le+(U-te+ee-V)/2*y,y1:se+(X-Y+Z-Q)/2*v});re&&(pe.x0=b($.xaxis,pe.x0),pe.x1=b($.xaxis,pe.x1)),ie&&(pe.y0=b($.yaxis,pe.y0),pe.y1=b($.yaxis,pe.y1)),H.x0=pe.x0,H.y0=pe.y0,H.x1=pe.x1,H.y1=pe.y1}else H.type="path",N&&E&&S(q,N,E),H.path=T(q),R=null;return H}o.exports={newShapes:function(P,D){if(P.length&&P[0][0]){var O=D.gd,R=D.isActiveShape,F=D.dragmode,A=(O.layout||{}).shapes||[];if(!f(F)&&R!==void 0){var z=O._fullLayout._activeShapeIndex;if(z<A.length)switch(O._fullLayout.shapes[z].type){case"rect":F="drawrect";break;case"circle":F="drawcircle";break;case"line":F="drawline";break;case"path":var B=A[z].path||"";F=B[B.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var $=C(P,D,F);_(O);for(var j=D.editHelpers,N=(j||{}).modifyItem,E=[],W=0;W<A.length;W++){var G=O._fullLayout.shapes[W];if(E[W]=G._input,R!==void 0&&W===O._fullLayout._activeShapeIndex){var L=$;switch(G.type){case"line":case"rect":case"circle":N("x0",L.x0),N("x1",L.x1),N("y0",L.y0),N("y1",L.y1);break;case"path":N("path",L.path)}}}return R===void 0?(E.push($),E):j?j.getUpdateObj():{}}},createShapeObj:C}},51873:function(o){o.exports={clearOutlineControllers:function(a){var n=a._fullLayout._zoomlayer;n&&n.selectAll(".outline-controllers").remove()},clearOutline:function(a){var n=a._fullLayout._zoomlayer;n&&n.selectAll(".select-outline").remove(),a._fullLayout._outlining=!1}}},30477:function(o,a,n){var l=n(21459),f=n(71828),s=n(89298);a.rangeToShapePosition=function(c){return c.type==="log"?c.r2d:function(d){return d}},a.shapePositionToRange=function(c){return c.type==="log"?c.d2r:function(d){return d}},a.decodeDate=function(c){return function(d){return d.replace&&(d=d.replace("_"," ")),c(d)}},a.encodeDate=function(c){return function(d){return c(d).replace(" ","_")}},a.extractPathCoords=function(c,d,h){var p=[];return c.match(l.segmentRE).forEach(function(m){var y=d[m.charAt(0)].drawn;if(y!==void 0){var v=m.substr(1).match(l.paramRE);if(v&&!(v.length<y)){var g=v[y],b=h?g:f.cleanNumber(g);p.push(b)}}}),p},a.getDataToPixel=function(c,d,h,p){var m,y=c._fullLayout._size;if(d)if(p==="domain")m=function(g){return d._length*(h?1-g:g)+d._offset};else{var v=a.shapePositionToRange(d);m=function(g){return d._offset+d.r2p(v(g,!0))},d.type==="date"&&(m=a.decodeDate(m))}else m=h?function(g){return y.t+y.h*(1-g)}:function(g){return y.l+y.w*g};return m},a.getPixelToData=function(c,d,h,p){var m,y=c._fullLayout._size;if(d)if(p==="domain")m=function(g){var b=(g-d._offset)/d._length;return h?1-b:b};else{var v=a.rangeToShapePosition(d);m=function(g){return v(d.p2r(g-d._offset))}}else m=h?function(g){return 1-(g-y.t)/y.h}:function(g){return(g-y.l)/y.w};return m},a.roundPositionForSharpStrokeRendering=function(c,d){var h=Math.round(d%2)===1,p=Math.round(c);return h?p+.5:p},a.makeShapesOptionsAndPlotinfo=function(c,d){var h=c._fullLayout.shapes[d]||{},p=c._fullLayout._plots[h.xref+h.yref];return p?p._hadPlotinfo=!0:(p={},h.xref&&h.xref!=="paper"&&(p.xaxis=c._fullLayout[h.xref+"axis"]),h.yref&&h.yref!=="paper"&&(p.yaxis=c._fullLayout[h.yref+"axis"])),p.xsizemode=h.xsizemode,p.ysizemode=h.ysizemode,p.xanchor=h.xanchor,p.yanchor=h.yanchor,{options:h,plotinfo:p}},a.makeSelectionsOptionsAndPlotinfo=function(c,d){var h=c._fullLayout.selections[d]||{},p=c._fullLayout._plots[h.xref+h.yref];return p?p._hadPlotinfo=!0:(p={},h.xref&&(p.xaxis=c._fullLayout[h.xref+"axis"]),h.yref&&(p.yaxis=c._fullLayout[h.yref+"axis"])),{options:h,plotinfo:p}},a.getPathString=function(c,d){var h,p,m,y,v,g,b,x,_=d.type,w=s.getRefType(d.xref),k=s.getRefType(d.yref),T=s.getFromId(c,d.xref),M=s.getFromId(c,d.yref),S=c._fullLayout._size;if(T?w==="domain"?p=function(B){return T._offset+T._length*B}:(h=a.shapePositionToRange(T),p=function(B){return T._offset+T.r2p(h(B,!0))}):p=function(B){return S.l+S.w*B},M?k==="domain"?y=function(B){return M._offset+M._length*(1-B)}:(m=a.shapePositionToRange(M),y=function(B){return M._offset+M.r2p(m(B,!0))}):y=function(B){return S.t+S.h*(1-B)},_==="path")return T&&T.type==="date"&&(p=a.decodeDate(p)),M&&M.type==="date"&&(y=a.decodeDate(y)),function(B,$,j){var N=B.path,E=B.xsizemode,W=B.ysizemode,G=B.xanchor,L=B.yanchor;return N.replace(l.segmentRE,function(q){var H=0,V=q.charAt(0),te=l.paramIsX[V],ee=l.paramIsY[V],U=l.numParams[V],Q=q.substr(1).replace(l.paramRE,function(Y){return te[H]?Y=E==="pixel"?$(G)+Number(Y):$(Y):ee[H]&&(Y=W==="pixel"?j(L)-Number(Y):j(Y)),++H>U&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,c){return c?c.d2l(s):s}function n(s,c){return c?c.l2d(s):s}function l(s,c){return a(s.x1,c)-a(s.x0,c)}function f(s,c,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,c,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,c)},dx:l,dy:f,width:function(s,c){return Math.abs(l(s,c))},height:function(s,c,d){return Math.abs(f(s,0,d))},length:function(s,c,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,c),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,c){return n((a(s.x1,c)+a(s.x0,c))/2,c)},ycenter:function(s,c,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,c=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),c=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_<b.length;_++)b[_].visible&&x++;if(x<2?y.visible=!1:g("visible")){y._stepCount=x;var w=y._visibleSteps=l.filterVisible(b);(b[g("active")]||{}).visible||(y.active=w[0]._index),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("len"),g("lenmode"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("currentvalue.visible")&&(g("currentvalue.xanchor"),g("currentvalue.prefix"),g("currentvalue.suffix"),g("currentvalue.offset"),l.coerceFont(g,"currentvalue.font",y.font)),g("transition.duration"),g("transition.easing"),g("bgcolor"),g("activebgcolor"),g("bordercolor"),g("borderwidth"),g("ticklen"),g("tickwidth"),g("tickcolor"),g("minorticklen")}}function p(m,y){function v(b,x){return l.coerce(m,y,d,b,x)}if(m.method==="skip"||Array.isArray(m.args)?v("visible"):y.visible=!1){v("method"),v("args");var g=v("label","step-"+y._index);v("value",g),v("execute")}}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},44504:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=d.strTranslate,p=n(63893),m=n(44467).arrayEditor,y=n(98292),v=n(18783),g=v.LINE_SPACING,b=v.FROM_TL,x=v.FROM_BR;function _(j){return y.autoMarginIdRoot+j._index}function w(j){return j._index}function k(j,N){var E=c.tester.selectAll("g."+y.labelGroupClass).data(N._visibleSteps);E.enter().append("g").classed(y.labelGroupClass,!0);var W=0,G=0;E.each(function(Y){var Z=S(l.select(this),{step:Y},N).node();if(Z){var X=c.bBox(Z);G=Math.max(G,X.height),W=Math.max(W,X.width)}}),E.remove();var L=N._dims={};L.inputAreaWidth=Math.max(y.railWidth,y.gripHeight);var q=j._fullLayout._size;L.lx=q.l+q.w*N.x,L.ly=q.t+q.h*(1-N.y),N.lenmode==="fraction"?L.outerLength=Math.round(q.w*N.len):L.outerLength=N.len,L.inputAreaStart=0,L.inputAreaLength=Math.round(L.outerLength-N.pad.l-N.pad.r);var H=(L.inputAreaLength-2*y.stepInset)/(N._stepCount-1),V=W+y.labelPadding;if(L.labelStride=Math.max(1,Math.ceil(V/H)),L.labelHeight=G,L.currentValueMaxWidth=0,L.currentValueHeight=0,L.currentValueTotalHeight=0,L.currentValueMaxLines=1,N.currentvalue.visible){var te=c.tester.append("g");E.each(function(Y){var Z=T(te,N,Y.label),X=Z.node()&&c.bBox(Z.node())||{width:0,height:0},re=p.lineCount(Z);L.currentValueMaxWidth=Math.max(L.currentValueMaxWidth,Math.ceil(X.width)),L.currentValueHeight=Math.max(L.currentValueHeight,Math.ceil(X.height)),L.currentValueMaxLines=Math.max(L.currentValueMaxLines,re)}),L.currentValueTotalHeight=L.currentValueHeight+N.currentvalue.offset,te.remove()}L.height=L.currentValueTotalHeight+y.tickOffset+N.ticklen+y.labelOffset+L.labelHeight+N.pad.t+N.pad.b;var ee="left";d.isRightAnchor(N)&&(L.lx-=L.outerLength,ee="right"),d.isCenterAnchor(N)&&(L.lx-=L.outerLength/2,ee="center");var U="top";d.isBottomAnchor(N)&&(L.ly-=L.height,U="bottom"),d.isMiddleAnchor(N)&&(L.ly-=L.height/2,U="middle"),L.outerLength=Math.ceil(L.outerLength),L.height=Math.ceil(L.height),L.lx=Math.round(L.lx),L.ly=Math.round(L.ly);var Q={y:N.y,b:L.height*x[U],t:L.height*b[U]};N.lenmode==="fraction"?(Q.l=0,Q.xl=N.x-N.len*b[ee],Q.r=0,Q.xr=N.x+N.len*x[ee]):(Q.x=N.x,Q.l=L.outerLength*b[ee],Q.r=L.outerLength*x[ee]),f.autoMargin(j,_(N),Q)}function T(j,N,E){if(N.currentvalue.visible){var W,G,L=N._dims;switch(N.currentvalue.xanchor){case"right":W=L.inputAreaLength-y.currentValueInset-L.currentValueMaxWidth,G="left";break;case"center":W=.5*L.inputAreaLength,G="middle";break;default:W=y.currentValueInset,G="left"}var q=d.ensureSingle(j,"text",y.labelClass,function(Q){Q.attr({"text-anchor":G,"data-notex":1})}),H=N.currentvalue.prefix?N.currentvalue.prefix:"";if(typeof E=="string")H+=E;else{var V=N.steps[N.active].label,te=N._gd._fullLayout._meta;te&&(V=d.templateString(V,te)),H+=V}N.currentvalue.suffix&&(H+=N.currentvalue.suffix),q.call(c.font,N.currentvalue.font).text(H).call(p.convertToTspans,N._gd);var ee=p.lineCount(q),U=(L.currentValueMaxLines+1-ee)*N.currentvalue.font.size*g;return p.positionText(q,W,U),q}}function M(j,N,E){d.ensureSingle(j,"rect",y.gripRectClass,function(W){W.call(O,N,j,E).style("pointer-events","all")}).attr({width:y.gripWidth,height:y.gripHeight,rx:y.gripRadius,ry:y.gripRadius}).call(s.stroke,E.bordercolor).call(s.fill,E.bgcolor).style("stroke-width",E.borderwidth+"px")}function S(j,N,E){var W=d.ensureSingle(j,"text",y.labelClass,function(q){q.attr({"text-anchor":"middle","data-notex":1})}),G=N.step.label,L=E._gd._fullLayout._meta;return L&&(G=d.templateString(G,L)),W.call(c.font,E.font).text(G).call(p.convertToTspans,E._gd),W}function C(j,N){var E=d.ensureSingle(j,"g",y.labelsClass),W=N._dims,G=E.selectAll("g."+y.labelGroupClass).data(W.labelSteps);G.enter().append("g").classed(y.labelGroupClass,!0),G.exit().remove(),G.each(function(L){var q=l.select(this);q.call(S,L,N),c.setTranslate(q,A(N,L.fraction),y.tickOffset+N.ticklen+N.font.size*g+y.labelOffset+W.currentValueTotalHeight)})}function P(j,N,E,W,G){var L=Math.round(W*(E._stepCount-1)),q=E._visibleSteps[L]._index;q!==E.active&&D(j,N,E,q,!0,G)}function D(j,N,E,W,G,L){var q=E.active;E.active=W,m(j.layout,y.name,E).applyUpdate("active",W);var H=E.steps[E.active];N.call(F,E,L),N.call(T,E),j.emit("plotly_sliderchange",{slider:E,step:E.steps[E.active],interaction:G,previousActive:q}),H&&H.method&&G&&(N._nextMethod?(N._nextMethod.step=H,N._nextMethod.doCallback=G,N._nextMethod.doTransition=L):(N._nextMethod={step:H,doCallback:G,doTransition:L},N._nextMethodRaf=window.requestAnimationFrame(function(){var V=N._nextMethod.step;V.method&&(V.execute&&f.executeAPICommand(j,V.method,V.args),N._nextMethod=null,N._nextMethodRaf=null)})))}function O(j,N,E){if(!N._context.staticPlot){var W=E.node(),G=l.select(N);j.on("mousedown",q),j.on("touchstart",q)}function L(){return E.data()[0]}function q(){var H=L();N.emit("plotly_sliderstart",{slider:H});var V=E.select("."+y.gripRectClass);l.event.stopPropagation(),l.event.preventDefault(),V.call(s.fill,H.activebgcolor);var te=z(H,l.mouse(W)[0]);function ee(){var Q=L(),Y=z(Q,l.mouse(W)[0]);P(N,E,Q,Y,!1)}function U(){var Q=L();Q._dragging=!1,V.call(s.fill,Q.bgcolor),G.on("mouseup",null),G.on("mousemove",null),G.on("touchend",null),G.on("touchmove",null),N.emit("plotly_sliderend",{slider:Q,step:Q.steps[Q.active]})}P(N,E,H,te,!0),H._dragging=!0,G.on("mousemove",ee),G.on("touchmove",ee),G.on("mouseup",U),G.on("touchend",U)}}function R(j,N){var E=j.selectAll("rect."+y.tickRectClass).data(N._visibleSteps),W=N._dims;E.enter().append("rect").classed(y.tickRectClass,!0),E.exit().remove(),E.attr({width:N.tickwidth+"px","shape-rendering":"crispEdges"}),E.each(function(G,L){var q=L%W.labelStride==0,H=l.select(this);H.attr({height:q?N.ticklen:N.minorticklen}).call(s.fill,N.tickcolor),c.setTranslate(H,A(N,L/(N._stepCount-1))-.5*N.tickwidth,(q?y.tickOffset:y.minorTickOffset)+W.currentValueTotalHeight)})}function F(j,N,E){for(var W=j.select("rect."+y.gripRectClass),G=0,L=0;L<N._stepCount;L++)if(N._visibleSteps[L]._index===N.active){G=L;break}var q=A(N,G/(N._stepCount-1));if(!N._invokingCommand){var H=W;E&&N.transition.duration>0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),c.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),c.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y<U.length;Y++){var Z=U[Y];Z.visible&&(Z._gd=ee,Q.push(Z))}return Q}(E,j),G=E._infolayer.selectAll("g."+y.containerClassName).data(W.length>0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H<W.length;H++){var V=W[H];k(j,V)}q.each(function(te){var ee=l.select(this);(function(U){var Q=U._dims;Q.labelSteps=[];for(var Y=U._stepCount,Z=0;Z<Y;Z+=Q.labelStride)Q.labelSteps.push({fraction:Z/(Y-1),step:U._visibleSteps[Z]})})(te),f.manageCommandObserver(j,te,te._visibleSteps,function(U){var Q=ee.data()[0];Q.active!==U.index&&(Q._dragging||D(j,ee,Q,U.index,!1,!0))}),function(U,Q,Y){(Y.steps[Y.active]||{}).visible||(Y.active=Y._visibleSteps[0]._index),Q.call(T,Y).call($,Y).call(C,Y).call(R,Y).call(B,U,Y).call(M,U,Y);var Z=Y._dims;c.setTranslate(Q,Z.lx+Y.pad.l,Z.ly+Y.pad.t),Q.call(F,Y,!1),Q.call(T,Y)}(j,l.select(this),te)})}}},23243:function(o,a,n){var l=n(98292);o.exports={moduleType:"component",name:l.name,layoutAttributes:n(75067),supplyLayoutDefaults:n(12343),draw:n(44504)}},92998:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(91424),m=n(7901),y=n(63893),v=n(37822),g=n(18783).OPPOSITE_SIDE,b=/ [XY][0-9]* /;o.exports={draw:function(x,_,w){var k,T=w.propContainer,M=w.propName,S=w.placeholder,C=w.traceIndex,P=w.avoid||{},D=w.attributes,O=w.transform,R=w.containerGroup,F=x._fullLayout,A=1,z=!1,B=T.title,$=(B&&B.text?B.text:"").trim(),j=B&&B.font?B.font:{},N=j.family,E=j.size,W=j.color;M==="title.text"?k="titleText":M.indexOf("axis")!==-1?k="axisTitleText":M.indexOf(!0)&&(k="colorbarTitleText");var G=x._context.edits[k];$===""?A=0:$.replace(b," % ")===S.replace(b," % ")&&(A=.2,z=!0,G||($="")),w._meta?$=d.templateString($,w._meta):F._meta&&($=d.templateString($,F._meta));var L,q=$||G;R||(R=d.ensureSingle(F._infolayer,"g","g-"+_),L=F._hColorbarMoveTitle);var H=R.selectAll("text").data(q?[0]:[]);if(H.enter().append("text"),H.text($).attr("class",_),H.exit().remove(),!q)return R;function V(U){d.syncOrAsync([te,ee],U)}function te(U){var Q;return!O&&L&&(O={}),O?(Q="",O.rotate&&(Q+="rotate("+[O.rotate,D.x,D.y]+")"),(O.offset||L)&&(Q+=h(0,(O.offset||0)-(L||0)))):Q=null,U.attr("transform",Q),U.style({"font-family":N,"font-size":l.round(E,2)+"px",fill:m.rgb(W),opacity:A*m.opacity(W),"font-weight":s.fontWeight}).attr(D).call(y.convertToTspans,x),s.previousPromises(x)}function ee(U){var Q=l.select(U.node().parentNode);if(P&&P.selection&&P.side&&$){Q.attr("transform",null);var Y=g[P.side],Z=P.side==="left"||P.side==="top"?-1:1,X=f(P.pad)?P.pad:2,re=p.bBox(Q.node()),ie={t:0,b:0,l:0,r:0},le=x._fullLayout._reservedMargin;for(var se in le)for(var pe in le[se]){var Te=le[se][pe];ie[pe]=Math.max(ie[pe],Te)}var Se={left:ie.l,top:ie.t,right:F.width-ie.r,bottom:F.height-ie.b},Oe=P.maxShift||Z*(Se[P.side]-re[P.side]),Me=0;if(Oe<0)Me=Oe;else{var ce=P.offsetLeft||0,ye=P.offsetTop||0;re.left-=ce,re.right-=ce,re.top-=ye,re.bottom-=ye,P.selection.each(function(){var ne=p.bBox(this);d.bBoxIntersect(re,ne,X)&&(Me=Math.max(Me,Z*(ne[P.side]-re[Y])+X))}),Me=Math.min(Oe,Me),T._titleScoot=Math.abs(Me)}if(Me>0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?c.call("_guiRestyle",x,M,U,C):c.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,c=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),c=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(c.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),c.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe<Me;pe++)se+=Oe.heights[pe]+y.gapButton;else for(le=0,pe=0;pe<Me;pe++)le+=Oe.widths[pe]+y.gapButton;X.enable(ie,le,se),X.hbar&&X.hbar.attr("opacity","0").transition().attr("opacity","1"),X.vbar&&X.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,$,j,U):function(Q){var Y=!!Q.hbar,Z=!!Q.vbar;Y&&Q.hbar.transition().attr("opacity","0").each("end",function(){Y=!1,Z||Q.disable()}),Z&&Q.vbar.transition().attr("opacity","0").each("end",function(){Z=!1,Y||Q.disable()})}($))}function k(A,z,B,$){A.call(T,z).call(M,z,B,$)}function T(A,z){d.ensureSingle(A,"rect",y.itemRectClassName,function(B){B.attr({rx:y.rx,ry:y.ry,"shape-rendering":"crispEdges"})}).call(s.stroke,z.bordercolor).call(s.fill,z.bgcolor).style("stroke-width",z.borderwidth+"px")}function M(A,z,B,$){var j=d.ensureSingle(A,"text",y.itemTextClassName,function(W){W.attr({"text-anchor":"start","data-notex":1})}),N=B.label,E=$._fullLayout._meta;E&&(N=d.templateString(N,E)),j.call(c.font,z.font).text(N).call(h.convertToTspans,$)}function S(A,z){var B=z.active;A.each(function($,j){var N=l.select(this);j===B&&z.showactive&&N.select("rect."+y.itemRectClassName).call(s.fill,y.activeColor)})}function C(A){A.select("rect."+y.itemRectClassName).call(s.fill,y.hoverColor)}function P(A,z){A.select("rect."+y.itemRectClassName).call(s.fill,z.bgcolor)}function D(A,z){var B=z._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},$=c.tester.selectAll("g."+y.dropdownButtonClassName).data(d.filterVisible(z.buttons));$.enter().append("g").classed(y.dropdownButtonClassName,!0);var j=["up","down"].indexOf(z.direction)!==-1;$.each(function(q,H){var V=l.select(this);V.call(k,z,q,A);var te=V.select("."+y.itemTextClassName),ee=te.node()&&c.bBox(te.node()).width,U=Math.max(ee+y.textPadX,y.minWidth),Q=z.font.size*m,Y=h.lineCount(te),Z=Math.max(Q*Y,y.minHeight)+y.textOffsetY;Z=Math.ceil(Z),U=Math.ceil(U),B.widths[H]=U,B.heights[H]=Z,B.height1=Math.max(B.height1,Z),B.width1=Math.max(B.width1,U),j?(B.totalWidth=Math.max(B.totalWidth,U),B.openWidth=B.totalWidth,B.totalHeight+=Z+y.gapButton,B.openHeight+=Z+y.gapButton):(B.totalWidth+=U+y.gapButton,B.openWidth+=U+y.gapButton,B.totalHeight=Math.max(B.totalHeight,Z),B.openHeight=B.totalHeight)}),j?B.totalHeight-=y.gapButton:B.totalWidth-=y.gapButton,B.headerWidth=B.width1+y.arrowPadX,B.headerHeight=B.height1,z.type==="dropdown"&&(j?(B.width1+=y.arrowPadX,B.totalHeight=B.height1):B.totalWidth=B.width1,B.totalWidth+=y.arrowPadX),$.remove();var N=B.totalWidth+z.pad.l+z.pad.r,E=B.totalHeight+z.pad.t+z.pad.b,W=A._fullLayout._size;B.lx=W.l+W.w*z.x,B.ly=W.t+W.h*(1-z.y);var G="left";d.isRightAnchor(z)&&(B.lx-=N,G="right"),d.isCenterAnchor(z)&&(B.lx-=N/2,G="center");var L="top";d.isBottomAnchor(z)&&(B.ly-=E,L="bottom"),d.isMiddleAnchor(z)&&(B.ly-=E/2,L="middle"),B.totalWidth=Math.ceil(B.totalWidth),B.totalHeight=Math.ceil(B.totalHeight),B.lx=Math.round(B.lx),B.ly=Math.round(B.ly),f.autoMargin(A,O(z),{x:z.x,y:z.y,l:N*({right:1,center:.5}[G]||0),r:N*({left:1,center:.5}[G]||0),b:E*({top:1,middle:.5}[L]||0),t:E*({bottom:1,middle:.5}[L]||0)})}function O(A){return y.autoMarginIdRoot+A._index}function R(A,z,B,$){$=$||{};var j=A.select("."+y.itemRectClassName),N=A.select("."+y.itemTextClassName),E=z.borderwidth,W=B.index,G=z._dims;c.setTranslate(A,E+B.x,E+B.y);var L=["up","down"].indexOf(z.direction)!==-1,q=$.height||(L?G.heights[W]:G.height1);j.attr({x:0,y:0,width:$.width||(L?G.width1:G.widths[W]),height:q});var H=z.font.size*m,V=(h.lineCount(N)-1)*H/2;h.positionText(N,y.textOffsetX,q/2-V+y.textOffsetY),L?B.y+=G.heights[W]+B.yPad:B.x+=G.widths[W]+B.xPad,B.index++}function F(A,z){A.attr(y.menuIndexAttrName,z||"-1").selectAll("g."+y.dropdownButtonClassName).remove()}o.exports=function(A){var z=A._fullLayout,B=d.filterVisible(z[y.name]);function $(H){f.autoMargin(A,O(H))}var j=z._menulayer.selectAll("g."+y.containerClassName).data(B.length>0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;W<B.length;W++){var G=B[W];D(A,G)}var L="updatemenus"+z._uid,q=new v(A,E,L);N.enter().size()&&(E.node().parentNode.appendChild(E.node()),E.call(F)),N.exit().each(function(H){E.call(F),$(H)}).remove(),N.each(function(H){var V=l.select(this),te=H.type==="dropdown"?E:null;f.manageCommandObserver(A,H,H.buttons,function(ee){x(A,H,H.buttons[ee.index],V,te,q,ee.index,!0)}),H.type==="dropdown"?(_(A,V,E,q,H),b(E,H)&&w(A,V,E,q,H)):w(A,V,null,null,H)})}}},20763:function(o,a,n){var l=n(75909);o.exports={moduleType:"component",name:l.name,layoutAttributes:n(7163),supplyLayoutDefaults:n(64897),draw:n(13689)}},25849:function(o,a,n){o.exports=d;var l=n(39898),f=n(7901),s=n(91424),c=n(71828);function d(h,p,m){this.gd=h,this.container=p,this.id=m,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}d.barWidth=2,d.barLength=20,d.barRadius=2,d.barPad=1,d.barColor="#808BA4",d.prototype.enable=function(h,p,m){var y=this.gd._fullLayout,v=y.width,g=y.height;this.position=h;var b,x,_,w,k=this.position.l,T=this.position.w,M=this.position.t,S=this.position.h,C=this.position.direction,P=C==="down",D=C==="left",O=C==="up",R=T,F=S;P||D||C==="right"||O||(this.position.direction="down",P=!0),P||O?(x=(b=k)+R,P?(_=M,F=(w=Math.min(_+F,g))-_):F=(w=M+F)-(_=Math.max(w-F,0))):(w=(_=M)+F,D?R=(x=k+R)-(b=Math.max(x-R,0)):(b=k,R=(x=Math.min(b+R,v))-b)),this._box={l:b,t:_,w:R,h:F};var A=T>R,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(c.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(c.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=c.constrain(h||0,0,m),p=c.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),c=Object.keys(s),d=0;d<c.length;d++){var h=c[d];h.charAt(0)!=="_"&&(a[h]=s[h]),f({moduleType:"apiMethod",name:h,fn:s[h]})}f(n(67368)),f([n(32745),n(2468),n(47322),n(89853),n(68804),n(20763),n(23243),n(13137),n(97218),n(83312),n(37369),n(21081),n(12311),n(2199),n(30211),n(64168)]),f([n(92177),n(37815)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(f(window.PlotlyLocales),delete window.PlotlyLocales),a.Icons=n(24255);var p=n(30211),m=n(74875);a.Plots={resize:m.resize,graphJson:m.graphJson,sendDataToCloud:m.sendDataToCloud},a.Fx={hover:p.hover,unhover:p.unhover,loneHover:p.loneHover,loneUnhover:p.loneUnhover},a.Snapshot=n(44511),a.PlotSchema=n(86281)},24255:function(o){o.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,c=Math.PI,d=2*c;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0]<g[1]?(b=g[0],x=g[1]):(b=g[1],x=g[0]),(b=f(b,d))>(x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=c,S=d):b<x?(T=b,S=x):(T=x,S=b),v<g?(C=v,P=g):(C=g,P=v);var R,F=Math.abs(S-T)<=c?0:1;function A(z,B,$){return"A"+[z,z]+" "+[0,F,$]+" "+O(z,B)}return D?R=C===null?"M"+O(P,T)+A(P,M,0)+A(P,S,0)+"Z":"M"+O(C,T)+A(C,M,0)+A(C,S,0)+"ZM"+O(P,T)+A(P,M,1)+A(P,S,1)+"Z":C===null?(R="M"+O(P,T)+A(P,S,0),k&&(R+="L0,0Z")):R="M"+O(C,T)+"L"+O(P,T)+A(P,S,0)+"L"+O(C,S)+A(C,T,1)+"Z",R}o.exports={deg2rad:function(v){return v/180*c},rad2deg:function(v){return v/c*180},angleDelta:p,angleDist:function(v,g){return Math.abs(p(v,g))},isFullCircle:h,isAngleInsideSector:m,isPtInsideSector:function(v,g,b,x){return!!m(g,x)&&(b[0]<b[1]?(_=b[0],w=b[1]):(_=b[1],w=b[0]),v>=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function c(h){return n(h)||s(h)}function d(h,p,m){if(c(h)){if(c(h[0])){for(var y=m,v=0;v<h.length;v++)y=p(y,h[v].length);return y}return h.length}return 0}a.isTypedArray=s,a.isArrayOrTypedArray=c,a.isArray1D=function(h){return!c(h[0])},a.ensureArray=function(h,p){return n(h)||(h=[]),h.length=p,h},a.concat=function(){var h,p,m,y,v,g,b,x,_=[],w=!0,k=0;for(m=0;m<arguments.length;m++)(g=(y=arguments[m]).length)&&(p?_.push(y):(p=y,v=g),n(y)?h=!1:(w=!1,k?h!==y.constructor&&(h=!1):h=y.constructor),k+=g);if(!k)return[];if(!_.length)return p;if(w)return p.concat.apply(p,_);if(h){for((b=new h(k)).set(p),m=0;m<_.length;m++)y=_[m],b.set(y,v),v+=y.length;return b}for(b=new Array(k),x=0;x<p.length;x++)b[x]=p[x];for(m=0;m<_.length;m++){for(y=_[m],x=0;x<y.length;x++)b[v+x]=y[x];v+=x}return b},a.maxRowLength=function(h){return d(h,Math.max,0)},a.minRowLength=function(h){return d(h,Math.min,1/0)}},95218:function(o,a,n){var l=n(92770),f=n(50606).BADNUM,s=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;o.exports=function(c){return typeof c=="string"&&(c=c.replace(s,"")),l(c)?Number(c):f}},33306:function(o){o.exports=function(a){var n=a._fullLayout;n._glcanvas&&n._glcanvas.size()&&n._glcanvas.each(function(l){l.regl&&l.regl.clear({color:!0,depth:!0})})}},86367:function(o){o.exports=function(a){a._responsiveChartHandler&&(window.removeEventListener("resize",a._responsiveChartHandler),delete a._responsiveChartHandler)}},96554:function(o,a,n){var l=n(92770),f=n(84267),s=n(9012),c=n(63282),d=n(7901),h=n(37822).DESELECTDIM,p=n(65487),m=n(30587).counter,y=n(64872).modHalf,v=n(73627).isArrayOrTypedArray;function g(b,x){var _=a.valObjectMeta[x.valType];if(x.arrayOk&&v(b))return!0;if(_.validateFunction)return _.validateFunction(b,x);var w={},k=w,T={set:function(M){k=M}};return _.coerceFunction(b,T,w,x),k!==w}a.valObjectMeta={data_array:{coerceFunction:function(b,x,_){v(b)?x.set(b):_!==void 0&&x.set(_)}},enumerated:{coerceFunction:function(b,x,_,w){w.coerceNumber&&(b=+b),w.values.indexOf(b)===-1?x.set(_):x.set(b)},validateFunction:function(b,x){x.coerceNumber&&(b=+b);for(var _=x.values,w=0;w<_.length;w++){var k=String(_[w]);if(k.charAt(0)==="/"&&k.charAt(k.length-1)==="/"){if(new RegExp(k.substr(1,k.length-2)).test(b))return!0}else if(b===_[w])return!0}return!1}},boolean:{coerceFunction:function(b,x,_){b===!0||b===!1?x.set(b):x.set(_)}},number:{coerceFunction:function(b,x,_,w){!l(b)||w.min!==void 0&&b<w.min||w.max!==void 0&&b>w.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&b<w.min||w.max!==void 0&&b>w.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(c.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T<k.length;){var M=k[T];w.flags.indexOf(M)===-1||k.indexOf(M)<T?k.splice(T,1):T++}k.length?x.set(k.join("+")):x.set(_)}else x.set(_);else x.set(b)}},any:{coerceFunction:function(b,x,_){b===void 0?x.set(_):x.set(b)}},info_array:{coerceFunction:function(b,x,_,w){function k(j,N,E){var W,G={set:function(L){W=L}};return E===void 0&&(E=N.dflt),a.valObjectMeta[N.valType].coerceFunction(j,G,E,N),W}var T=w.dimensions===2||w.dimensions==="1-2"&&Array.isArray(b)&&Array.isArray(b[0]);if(Array.isArray(b)){var M,S,C,P,D,O,R=w.items,F=[],A=Array.isArray(R),z=A&&T&&Array.isArray(R[0]),B=T&&A&&!z,$=A&&!B?R.length:b.length;if(_=Array.isArray(_)?_:[],T)for(M=0;M<$;M++)for(F[M]=[],C=Array.isArray(b[M])?b[M]:[],D=B?R.length:A?R[M].length:C.length,S=0;S<D;S++)P=B?R[S]:A?R[M][S]:R,(O=k(C[S],P,(_[M]||[])[S]))!==void 0&&(F[M][S]=O);else for(M=0;M<$;M++)(O=k(b[M],A?R[M]:R,_[M]))!==void 0&&(F[M]=O);x.set(F)}else x.set(_)},validateFunction:function(b,x){if(!Array.isArray(b))return!1;var _=x.items,w=Array.isArray(_),k=x.dimensions===2;if(!x.freeLength&&b.length!==_.length)return!1;for(var T=0;T<b.length;T++)if(k){if(!Array.isArray(b[T])||!x.freeLength&&b[T].length!==_[T].length)return!1;for(var M=0;M<b[T].length;M++)if(!g(b[T][M],w?_[T][M]:_))return!1}else if(!g(b[T],w?_[T]:_))return!1;return!0}}},a.coerce=function(b,x,_,w,k){var T=p(_,w).get(),M=p(b,w),S=p(x,w),C=M.get(),P=x._template;if(C===void 0&&P&&(C=p(P,w).get(),P=0),k===void 0&&(k=T.dflt),T.arrayOk&&v(C))return S.set(C),C;var D=a.valObjectMeta[T.valType].coerceFunction;D(C,S,k,T);var O=S.get();return P&&O===k&&!g(C,T)&&(D(C=p(P,w).get(),S,k,T),O=S.get()),O},a.coerce2=function(b,x,_,w,k){var T=p(b,w),M=a.coerce(b,x,_,w,k);return T.get()!=null&&M},a.coerceFont=function(b,x,_){var w={};return _=_||{},w.family=b(x+".family",_.family),w.size=b(x+".size",_.size),w.color=b(x+".color",_.color),w},a.coercePattern=function(b,x,_,w){if(b(x+".shape")){b(x+".solidity"),b(x+".size");var k=b(x+".fillmode")==="overlay";if(!w){var T=b(x+".bgcolor",k?_:void 0);b(x+".fgcolor",k?d.contrast(T):_)}b(x+".fgopacity",k?.5:1)}},a.coerceHoverinfo=function(b,x,_){var w,k=x._module.attributes,T=k.hoverinfo?k:s,M=T.hoverinfo;if(_._dataLength===1){var S=M.dflt==="all"?M.flags.slice():M.dflt.split("+");S.splice(S.indexOf("name"),1),w=S.join("+")}return a.coerce(b,x,T,"hoverinfo",w)},a.coerceSelectionMarkerOpacity=function(b,x){if(b.marker){var _,w,k=b.marker.opacity;k!==void 0&&(v(k)||b.selected||b.unselected||(_=k,w=h*k),x("selected.marker.opacity",_),x("unselected.marker.opacity",w))}},a.validate=g},41631:function(o,a,n){var l,f,s=n(84096).i$,c=n(92770),d=n(47769),h=n(64872).mod,p=n(50606),m=p.BADNUM,y=p.ONEDAY,v=p.ONEHOUR,g=p.ONEMIN,b=p.ONESEC,x=p.EPOCHJD,_=n(73972),w=n(84096).g0,k=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,T=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,M=new Date().getFullYear()-70;function S(N){return N&&_.componentsRegistry.calendars&&typeof N=="string"&&N!=="gregorian"}function C(N,E){return String(N+Math.pow(10,E)).substr(1)}a.dateTick0=function(N,E){var W=function(L,q){return S(L)?q?_.getComponentMethod("calendars","CANONICAL_SUNDAY")[L]:_.getComponentMethod("calendars","CANONICAL_TICK")[L]:q?"2000-01-02":"2000-01-01"}(N,!!E);if(E<2)return W;var G=a.dateTime2ms(W,N);return G+=y*(E-1),a.ms2DateTime(G,0,N)},a.dfltRange=function(N){return S(N)?_.getComponentMethod("calendars","DFLTRANGE")[N]:["2000-01-01","2001-01-01"]},a.isJSDate=function(N){return typeof N=="object"&&N!==null&&typeof N.getTime=="function"},a.dateTime2ms=function(N,E){if(a.isJSDate(N)){var W=N.getTimezoneOffset()*g,G=(N.getUTCMinutes()-N.getMinutes())*g+(N.getUTCSeconds()-N.getSeconds())*b+(N.getUTCMilliseconds()-N.getMilliseconds());if(G){var L=3*g;W=W-L/2+h(G-W+L/2,L)}return(N=Number(N)-W)>=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E<P?Math.floor(Y/v):0,q=E<P?Math.floor(Y%v/g):0,H=E<D?Math.floor(Y%g/b):0,V=E<O?Y%b*10+ee:0}else te=new Date(U),G=w("%Y-%m-%d")(te),L=E<P?te.getUTCHours():0,q=E<P?te.getUTCMinutes():0,H=E<D?te.getUTCSeconds():0,V=E<O?10*te.getUTCMilliseconds()+ee:0;return R(G,L,q,H,V)},a.ms2DateTimeLocal=function(N){if(!(N>=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){c(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` `+B(q.dayMonthYear,N,G,L);E=q.dayMonth+` `+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee<N.length;ee++)if(G=N[ee],c(G)){if(!(G%y))if(te)try{(W=te.fromJD(G/y+x)).day()===1?W.month()===1?L++:q++:H++}catch{}else(W=new Date(G)).getUTCDate()===1?W.getUTCMonth()===0?L++:q++:H++}else V++;H+=q+=L;var U=N.length-V;return{exactYears:L/U,exactMonths:q/U,exactDays:H/U}}},24401:function(o,a,n){var l=n(39898),f=n(47769),s=n(35657),c=n(79576);function d(v){var g=v&&v.parentNode;g&&g.removeChild(v)}function h(v,g,b){var x="plotly.js-style-"+v,_=document.getElementById(x);_||((_=document.createElement("style")).setAttribute("id",x),_.appendChild(document.createTextNode("")),document.head.appendChild(_));var w=_.sheet;w.insertRule?w.insertRule(g+"{"+b+"}",0):w.addRule?w.addRule(g,b,0):f.warn("addStyleRule failed")}function p(v){var g=window.getComputedStyle(v,null),b=g.getPropertyValue("-webkit-transform")||g.getPropertyValue("-moz-transform")||g.getPropertyValue("-ms-transform")||g.getPropertyValue("-o-transform")||g.getPropertyValue("transform");return b==="none"?null:b.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(x){return+x})}function m(v){for(var g=[];y(v);)g.push(v),v=v.parentNode;return g}function y(v){return v&&(v instanceof Element||v instanceof HTMLElement)}o.exports={getGraphDiv:function(v){var g;if(typeof v=="string"){if((g=document.getElementById(v))===null)throw new Error("No DOM element with id '"+v+"' exists on the page.");return g}if(v==null)throw new Error("DOM element provided is null or undefined");return v},isPlotDiv:function(v){var g=l.select(v);return g.node()instanceof HTMLElement&&g.size()&&g.classed("js-plotly-plot")},removeElement:d,addStyleRule:function(v,g){h("global",v,g)},addRelatedStyleRule:h,deleteRelatedStyleRule:function(v){var g="plotly.js-style-"+v,b=document.getElementById(g);b&&d(b)},getFullTransformMatrix:function(v){var g=m(v),b=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return g.forEach(function(x){var _=p(x);if(_){var w=s.convertCssMatrix(_);b=c.multiply(b,b,w)}}),b},getElementTransformMatrix:p,getElementAndAncestors:m,equalDomRects:function(v,g){return v&&g&&v.top===g.top&&v.left===g.left&&v.right===g.right&&v.bottom===g.bottom}}},11086:function(o,a,n){var l=n(15398).EventEmitter,f={init:function(s){if(s._ev instanceof l)return s;var c=new l,d=new l;return s._ev=c,s._internalEv=d,s.on=c.on.bind(c),s.once=c.once.bind(c),s.removeListener=c.removeListener.bind(c),s.removeAllListeners=c.removeAllListeners.bind(c),s._internalOn=d.on.bind(d),s._internalOnce=d.once.bind(d),s._removeInternalListener=d.removeListener.bind(d),s._removeAllInternalListeners=d.removeAllListeners.bind(d),s.emit=function(h,p){typeof jQuery<"u"&&jQuery(s).trigger(h,p),c.emit(h,p),d.emit(h,p)},s},triggerHandler:function(s,c,d){var h,p;typeof jQuery<"u"&&(h=jQuery(s).triggerHandler(c,d));var m=s._ev;if(!m)return h;var y,v=m._events[c];if(!v)return h;function g(b){return b.listener?(m.removeListener(c,b.listener),b.fired?void 0:(b.fired=!0,b.listener.apply(m,[d]))):b.apply(m,[d])}for(v=Array.isArray(v)?v:[v],y=0;y<v.length-1;y++)g(v[y]);return p=g(v[y]),h!==void 0?h:p},purge:function(s){return delete s._ev,delete s.on,delete s.once,delete s.removeListener,delete s.removeAllListeners,delete s.emit,delete s._ev,delete s._internalEv,delete s._internalOn,delete s._internalOnce,delete s._removeInternalListener,delete s._removeAllInternalListeners,s}};o.exports=f},1426:function(o,a,n){var l=n(41965),f=Array.isArray;function s(c,d,h,p){var m,y,v,g,b,x,_,w=c[0],k=c.length;if(k===2&&f(w)&&f(c[1])&&w.length===0){if(_=function(M,S){var C,P;for(C=0;C<M.length;C++){if((P=M[C])!==null&&typeof P=="object")return!1;P!==void 0&&(S[C]=P)}return!0}(c[1],w),_)return w;w.splice(0,w.length)}for(var T=1;T<k;T++)for(y in m=c[T])v=w[y],g=m[y],p&&f(g)?w[y]=g:d&&g&&(l(g)||(b=f(g)))?(b?(b=!1,x=v&&f(v)?v:[]):x=v&&l(v)?v:{},w[y]=s([x,g],d,h,p)):(g!==void 0||h)&&(w[y]=g);return w}a.extendFlat=function(){return s(arguments,!1,!1,!1)},a.extendDeep=function(){return s(arguments,!0,!1,!1)},a.extendDeepAll=function(){return s(arguments,!0,!0,!1)},a.extendDeepNoArrays=function(){return s(arguments,!0,!1,!0)}},75744:function(o){o.exports=function(a){for(var n={},l=[],f=0,s=0;s<a.length;s++){var c=a[s];n[c]!==1&&(n[c]=1,l[f++]=c)}return l}},76756:function(o){function a(l){return l.visible===!0}function n(l){var f=l[0].trace;return f.visible===!0&&f._length!==0}o.exports=function(l){for(var f,s=(f=l,Array.isArray(f)&&Array.isArray(f[0])&&f[0][0]&&f[0][0].trace?n:a),c=[],d=0;d<l.length;d++){var h=l[d];s(h)&&c.push(h)}return c}},87642:function(o,a,n){var l,f,s,c=n(64872).mod;function d(p,m,y,v,g,b,x,_){var w=y-p,k=g-p,T=x-g,M=v-m,S=b-m,C=_-b,P=w*C-T*M;if(P===0)return null;var D=(k*C-T*S)/P,O=(k*M-w*S)/P;return O<0||O>1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(c(y-v/2,m)),b=p.getPointAtLength(c(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(c(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.x<b?b-D.x:D.x>x?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M<k;){if(g=(S+C)/2,x=(b=p.getPointAtLength(g))[y]-m,Math.abs(x)<w)return b;T*x>0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var c=String(n).length;if(s>=String(a).length+c){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,c=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ie<re.length;ie++)Z[re[ie]]=+X;return Z}y.getGraphDiv=F.getGraphDiv,y.isPlotDiv=F.isPlotDiv,y.removeElement=F.removeElement,y.addStyleRule=F.addStyleRule,y.addRelatedStyleRule=F.addRelatedStyleRule,y.deleteRelatedStyleRule=F.deleteRelatedStyleRule,y.getFullTransformMatrix=F.getFullTransformMatrix,y.getElementTransformMatrix=F.getElementTransformMatrix,y.getElementAndAncestors=F.getElementAndAncestors,y.equalDomRects=F.equalDomRects,y.clearResponsive=n(86367),y.preserveDrawingBuffer=n(45142),y.makeTraceGroups=n(77310),y._=n(15867),y.notifier=n(75046),y.filterUnique=n(75744),y.filterVisible=n(76756),y.pushUnique=n(75138),y.increment=n(39240),y.cleanNumber=n(95218),y.ensureNumber=function(Y){return c(Y)?(Y=Number(Y))>h||Y<p?m:Y:m},y.isIndex=function(Y,Z){return!(Z!==void 0&&Y>=Z)&&c(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;re<Z;re++)X[re]=Y;return X},y.swapAttrs=function(Y,Z,X,re){X||(X="x"),re||(re="y");for(var ie=0;ie<Z.length;ie++){var le=Z[ie],se=y.nestedProperty(Y,le.replace("?",X)),pe=y.nestedProperty(Y,le.replace("?",re)),Te=se.get();se.set(pe.get()),pe.set(Te)}},y.raiseToTop=function(Y){Y.parentNode.appendChild(Y)},y.cancelTransition=function(Y){return Y.transition().duration(0)},y.constrain=function(Y,Z,X){return Z>X?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe<le;pe++)se[pe]=Z(Y[pe],X,re,ie);return se},y.randstr=function Y(Z,X,re,ie){if(re||(re=16),X===void 0&&(X=24),X<=0)return"0";var le,se,pe=Math.log(Math.pow(2,X))/Math.log(re),Te="";for(le=2;pe===1/0;le*=2)pe=Math.log(Math.pow(2,X/le))/Math.log(re)*le;var Se=pe-Math.floor(pe);for(le=0;le<Math.floor(pe);le++)Te=Math.floor(Math.random()*re).toString(re)+Te;Se&&(se=Math.pow(re,Se),Te=Math.floor(Math.random()*se).toString(re)+Te);var Oe=parseInt(Te,re);return Z&&Z[Te]||Oe!==1/0&&Oe>=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X<Te;X++)Se[X]=(1-Math.cos(Math.PI*(X+1)/Z))/(2*Z);for(X=0;X<se;X++){for(le=0,re=0;re<Te;re++)(ie=X+re+1-Z)<-se?ie-=pe*Math.round(ie/pe):ie>=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re<X.length;re++)Y[X[re]]!=null?ie=!0:le=!1;if(ie&&!le)for(re=0;re<X.length;re++)Y[X[re]]=Z[X[re]]}},y.mergeArray=function(Y,Z,X,re){var ie=typeof re=="function";if(y.isArrayOrTypedArray(Y))for(var le=Math.min(Y.length,Z.length),se=0;se<le;se++){var pe=Y[se];Z[se][X]=ie?re(pe):pe}},y.mergeArrayCastPositive=function(Y,Z,X){return y.mergeArray(Y,Z,X,function(re){var ie=+re;return isFinite(ie)&&ie>0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie<Z.length;ie++)Z[ie][X]=re(Y[ie])},y.castOption=function(Y,Z,X,re){re=re||y.identity;var ie=y.nestedProperty(Y,X).get();return y.isArrayOrTypedArray(ie)?Array.isArray(Z)&&y.isArrayOrTypedArray(ie[Z[0]])?re(ie[Z[0]][Z[1]]):re(ie[Z]):ie},y.extractOption=function(Y,Z,X,re){if(X in Y)return Y[X];var ie=y.nestedProperty(Z,re).get();return Array.isArray(ie)?void 0:ie},y.tagSelected=function(Y,Z,X){var re,ie,le=Z.selectedpoints,se=Z._indexToPoints;se&&(re=A(se));for(var pe=0;pe<le.length;pe++){var Te=le[pe];if(y.isIndex(Te)||y.isArrayOrTypedArray(Te)&&y.isIndex(Te[0])&&y.isIndex(Te[1])){var Se=re?re[Te]:Te,Oe=X?X[Se]:Se;(ie=Oe)!==void 0&&ie<Y.length&&(Y[Oe].selected=1)}}},y.selIndices2selPoints=function(Y){var Z=Y.selectedpoints,X=Y._indexToPoints;if(X){for(var re=A(X),ie=[],le=0;le<Z.length;le++){var se=Z[le];if(y.isIndex(se)){var pe=re[se];y.isIndex(pe)&&ie.push(pe)}}return ie}return Z},y.getTargetArray=function(Y,Z){var X=Z.target;if(typeof X=="string"&&X){var re=y.nestedProperty(Y,X).get();return!!Array.isArray(re)&&re}return!!Array.isArray(X)&&X},y.minExtend=function Y(Z,X,re){var ie={};typeof X!="object"&&(X={});var le,se,pe,Te=re==="pieLike"?-1:3,Se=Object.keys(Z);for(le=0;le<Se.length;le++)pe=Z[se=Se[le]],se.charAt(0)!=="_"&&typeof pe!="function"&&(se==="module"?ie[se]=pe:Array.isArray(pe)?ie[se]=se==="colorscale"||Te===-1?pe.slice():pe.slice(0,Te):y.isTypedArray(pe)?ie[se]=Te===-1?pe.subarray():pe.subarray(0,Te):ie[se]=pe&&typeof pe=="object"?Y(Z[se],X[se],re):pe);for(Se=Object.keys(X),le=0;le<Se.length;le++)typeof(pe=X[se=Se[le]])=="object"&&se in ie&&typeof ie[se]=="object"||(ie[se]=pe);return ie},y.titleCase=function(Y){return Y.charAt(0).toUpperCase()+Y.substr(1)},y.containsAny=function(Y,Z){for(var X=0;X<Z.length;X++)if(Y.indexOf(Z[X])!==-1)return!0;return!1},y.isIE=function(){return window.navigator.msSaveBlob!==void 0};var z=/Version\/[\d\.]+.*Safari/;y.isSafari=function(){return z.test(window.navigator.userAgent)};var B=/iPad|iPhone|iPod/;y.isIOS=function(){return B.test(window.navigator.userAgent)};var $=/Firefox\/(\d+)\.\d+/;y.getFirefoxVersion=function(){var Y=$.exec(window.navigator.userAgent);if(Y&&Y.length===2){var Z=parseInt(Y[1]);if(!isNaN(Z))return Z}return null},y.isD3Selection=function(Y){return Y instanceof l.selection},y.ensureSingle=function(Y,Z,X,re){var ie=Y.select(Z+(X?"."+X:""));if(ie.size())return ie;var le=Y.append(Z);return X&&le.classed(X,!0),re&&le.call(re),le},y.ensureSingleById=function(Y,Z,X,re){var ie=Y.select(Z+"#"+X);if(ie.size())return ie;var le=Y.append(Z).attr("id",X);return re&&le.call(re),le},y.objectFromPath=function(Y,Z){for(var X,re=Y.split("."),ie=X={},le=0;le<re.length;le++){var se=re[le],pe=null,Te=re[le].match(/(.*)\[([0-9]+)\]/);Te?(se=Te[1],pe=Te[2],X=X[se]=[],le===re.length-1?X[pe]=Z:X[pe]={},X=X[pe]):(le===re.length-1?X[se]=Z:X[se]={},X=X[se])}return ie};var j=/^([^\[\.]+)\.(.+)?/,N=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function E(Y){return Y.slice(0,2)==="__"}y.expandObjectPaths=function(Y){var Z,X,re,ie,le,se,pe;if(typeof Y=="object"&&!Array.isArray(Y)){for(X in Y)if(Y.hasOwnProperty(X))if(Z=X.match(j)){if(ie=Y[X],E(re=Z[1]))continue;delete Y[X],Y[re]=y.extendDeepNoArrays(Y[re]||{},y.objectFromPath(X,y.expandObjectPaths(ie))[re])}else if(Z=X.match(N)){if(ie=Y[X],E(re=Z[1]))continue;if(le=parseInt(Z[2]),delete Y[X],Y[re]=Y[re]||[],Z[3]===".")pe=Z[4],se=Y[re][le]=Y[re][le]||{},y.extendDeepNoArrays(se,y.objectFromPath(pe,y.expandObjectPaths(ie)));else{if(E(re))continue;Y[re][le]=y.expandObjectPaths(ie)}}else{if(E(X))continue;Y[X]=y.expandObjectPaths(Y[X])}}return Y},y.numSeparate=function(Y,Z,X){if(X||(X=!1),typeof Z!="string"||Z.length===0)throw new Error("Separator string required for formatting!");typeof Y=="number"&&(Y=String(Y));var re=/(\d+)(\d{3})/,ie=Z.charAt(0),le=Z.charAt(1),se=Y.split("."),pe=se[0],Te=se.length>1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de<ie.length;de++)if(ne=ie[de]){if(ne.hasOwnProperty(ye)){J=ne[ye];break}if(W.test(ye)||(J=y.nestedProperty(ne,ye).get(),(J=le[ye]||y.nestedProperty(ne,ye).get())&&(le[ye]=J)),J!==void 0)break}if(J!==void 0&&(xe==="*"&&(J*=ue),xe==="/"&&(J/=ue)),J===void 0&&re)return re.count<re.max&&(y.warn("Variable '"+ye+"' in "+re.name+" could not be found!"),J=se),re.count===re.max&&y.warn("Too many "+re.name+" warnings - additional warnings will be suppressed"),re.count++,se;if(Te){var be;if(Te[0]===":"&&(J=(be=X?X.numberFormat:y.numberFormat)(Te.replace(V,""))(J)),Te[0]==="|"){be=X?X.timeFormat:f;var we=y.dateTime2ms(J);J=y.formatDate(we,Te.replace(V,""),!1,be)}}else{var ke=ye+"Label";Z.hasOwnProperty(ke)&&(J=Z[ke])}return ce&&(J="("+J+")",(Se||Oe)&&(J=" "+J),(Me||Oe)&&(J+=" ")),J})}y.subplotSort=function(Y,Z){for(var X=Math.min(Y.length,Z.length)+1,re=0,ie=0,le=0;le<X;le++){var se=Y.charCodeAt(le)||0,pe=Z.charCodeAt(le)||0,Te=se>=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re<Z;re++)X.indexOf(".")!==-1&&(X=(X=X.replace("0%","%")).replace(".%","%"));return X},y.isHidden=function(Y){var Z=window.getComputedStyle(Y).display;return!Z||Z==="none"},y.strTranslate=function(Y,Z){return Y||Z?"translate("+Y+","+Z+")":""},y.strRotate=function(Y){return Y?"rotate("+Y+")":""},y.strScale=function(Y){return Y!==1?"scale("+Y+")":""},y.getTextTransform=function(Y){var Z=Y.noCenter,X=Y.textX,re=Y.textY,ie=Y.targetX,le=Y.targetY,se=Y.anchorX||0,pe=Y.anchorY||0,Te=Y.rotate,Se=Y.scale;return Se?Se>1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,c,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};c&&c.length?(y=l(s,c),m=y.get()):m=s,c=c||"";var g={};if(m)for(p=0;p<m.length;p++)g[m[p][d]]=p;var b=f.test(h),x={set:function(_,w){var k=w===null?4:0;if(!m){if(!y||k===4)return;m=[],y.set(m)}var T=g[_];if(T===void 0){if(k===4)return;k|=3,T=m.length,g[_]=T}else w!==(b?m[T][h]:l(m[T],h).get())&&(k|=2);var M=m[T]=m[T]||{};return M[d]=_,b?M[h]=w:l(M,h).set(w),w!==null&&(k&=-5),v[T]=v[T]|k,x},get:function(_){if(m){var w=g[_];return w===void 0?void 0:b?m[w][h]:l(m[w],h).get()}},rename:function(_,w){var k=g[_];return k===void 0||(v[k]=1|v[k],g[w]=k,delete g[_],m[k][d]=w),x},remove:function(_){var w=g[_];if(w===void 0)return x;var k=m[w];if(Object.keys(k).length>2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p<m.length;p++)v[p]=3|v[p];for(p=w;p<m.length;p++)g[m[p][d]]--;m.splice(w,1),delete g[_]}else l(k,h).set(null),v[w]=6|v[w];return x},constructUpdate:function(){for(var _,w,k={},T=Object.keys(v),M=0;M<T.length;M++)w=T[M],_=c+"["+w+"]",m[w]?(1&v[w]&&(k[_+"."+d]=m[w][d]),2&v[w]&&(k[_+"."+h]=b?4&v[w]?null:m[w][h]:4&v[w]?null:l(m[w],h).get())):k[_]=null;return k}};return x}},15867:function(o,a,n){var l=n(73972);o.exports=function(f,s){for(var c=f._context.locale,d=0;d<2;d++){for(var h=f._context.locales,p=0;p<2;p++){var m=(h[c]||{}).dictionary;if(m){var y=m[s];if(y)return y}h=l.localeRegistry}var v=c.split("-")[0];if(v===c)break;c=v}return s}},47769:function(o,a,n){var l=n(72075).dfltConfig,f=n(75046),s=o.exports={};s.log=function(){var c;if(l.logging>1){var d=["LOG:"];for(c=0;c<arguments.length;c++)d.push(arguments[c]);console.trace.apply(console,d)}if(l.notifyOnLogging>1){var h=[];for(c=0;c<arguments.length;c++)h.push(arguments[c]);f(h.join("<br>"),"long")}},s.warn=function(){var c;if(l.logging>0){var d=["WARN:"];for(c=0;c<arguments.length;c++)d.push(arguments[c]);console.trace.apply(console,d)}if(l.notifyOnLogging>0){var h=[];for(c=0;c<arguments.length;c++)h.push(arguments[c]);f(h.join("<br>"),"stick")}},s.error=function(){var c;if(l.logging>0){var d=["ERROR:"];for(c=0;c<arguments.length;c++)d.push(arguments[c]);console.error.apply(console,d)}if(l.notifyOnLogging>0){var h=[];for(c=0;c<arguments.length;c++)h.push(arguments[c]);f(h.join("<br>"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,c){var d=f.selectAll("g."+c.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",c),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var c=new Array(f),d=0;d<f;d++)c[d]=new Array(s);return c},a.transposeRagged=function(f){var s,c,d=0,h=f.length;for(s=0;s<h;s++)d=Math.max(d,f[s].length);var p=new Array(d);for(s=0;s<d;s++)for(p[s]=new Array(h),c=0;c<h;c++)p[s][c]=f[c][s];return p},a.dot=function(f,s){if(!f.length||!s.length||f.length!==s.length)return null;var c,d,h=f.length;if(f[0].length)for(c=new Array(h),d=0;d<h;d++)c[d]=a.dot(f[d],s);else if(s[0].length){var p=a.transposeRagged(s);for(c=new Array(p.length),d=0;d<p.length;d++)c[d]=a.dot(f,p[d])}else for(c=0,d=0;d<h;d++)c+=f[d]*s[d];return c},a.translationMatrix=function(f,s){return[[1,0,f],[0,1,s],[0,0,1]]},a.rotationMatrix=function(f){var s=f*Math.PI/180;return[[Math.cos(s),-Math.sin(s),0],[Math.sin(s),Math.cos(s),0],[0,0,1]]},a.rotationXYMatrix=function(f,s,c){return a.dot(a.dot(a.translationMatrix(s,c),a.rotationMatrix(f)),a.translationMatrix(-s,-c))},a.apply3DTransform=function(f){return function(){var s=arguments,c=arguments.length===1?s[0]:[s[0],s[1],s[2]||0];return a.dot(f,[c[0],c[1],c[2],1]).slice(0,3)}},a.apply2DTransform=function(f){return function(){var s=arguments;s.length===3&&(s=s[0]);var c=arguments.length===1?s[0]:[s[0],s[1]];return a.dot(f,[c[0],c[1],1]).slice(0,2)}},a.apply2DTransform2=function(f){var s=a.apply2DTransform(f);return function(c){return s(c.slice(0,2)).concat(s(c.slice(2,4)))}},a.convertCssMatrix=function(f){if(f){var s=f.length;if(s===16)return f;if(s===6)return[f[0],f[1],0,0,f[2],f[3],0,0,0,0,1,0,f[4],f[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},a.inverseTransformMatrix=function(f){var s=[];return l.invert(s,f),[[s[0],s[1],s[2],s[3]],[s[4],s[5],s[6],s[7]],[s[8],s[9],s[10],s[11]],[s[12],s[13],s[14],s[15]]]}},64872:function(o){o.exports={mod:function(a,n){var l=a%n;return l<0?l+n:l},modHalf:function(a,n){return Math.abs(a)>n/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w<g.length-1;w++){if((b=g[w])===-1){for(x=!0,_=[],k=0;k<T.length;k++)_[k]=s(T[k],g.slice(w+1))(),_[k]!==_[0]&&(x=!1);return x?_[0]:_}if(typeof b=="number"&&!f(T)||typeof(T=T[b])!="object"||T===null)return}if(typeof T=="object"&&T!==null&&(_=T[g[w]])!==null)return _}}o.exports=function(v,g){if(l(g))g=String(g);else if(typeof g!="string"||g.substr(g.length-4)==="[-1]")throw"bad property string";var b,x,_,w,k=g.split(".");for(w=0;w<k.length;w++)if(String(k[w]).slice(0,2)==="__")throw"bad property string";for(w=0;w<k.length;){if(b=String(k[w]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(b[1])k[w]=b[1];else{if(w!==0)throw"bad property string";k.splice(0,1)}for(x=b[2].substr(1,b[2].length-2).split("]["),_=0;_<x.length;_++)w++,k.splice(w,0,Number(x[_]))}w++}return typeof v!="object"?function(T,M,S){return{set:function(){throw"bad container"},get:function(){},astr:M,parts:S,obj:T}}(v,g,k):{set:h(v,k,g),get:s(v,k),astr:g,parts:k,obj:v}};var c=/(^|\.)args\[/;function d(v,g){return v===void 0||v===null&&!g.match(c)}function h(v,g,b){return function(x){var _,w,k=v,T="",M=d(x,b);for(w=0;w<g.length-1;w++){if(typeof(_=g[w])=="number"&&!f(k))throw"array index but container is not an array";if(_===-1){if(M=!m(k,g.slice(w+1),x,b))break;return}if(!y(k,_,g[w+1],M))break;if(typeof(k=k[_])!="object"||k===null)throw"container is not an object";T=p(T,_)}if(M){if(w===g.length-1&&(delete k[g[w]],Array.isArray(k)&&+g[w]==k.length-1))for(;k.length&&k[k.length-1]===void 0;)k.pop()}else k[g[w]]=x}}function p(v,g){var b=g;return l(g)?b="["+g+"]":v&&(b="."+g),v+b}function m(v,g,b,x){var _,w=f(b),k=!0,T=b,M=x.replace("-1",0),S=!w&&d(b,M),C=g[0];for(_=0;_<v.length;_++)M=x.replace("-1",_),w&&(S=d(T=b[_%b.length],M)),S&&(k=!1),y(v,_,C,S)&&h(v[_],g,x.replace("-1",_))(T);return k}function y(v,g,b,x){if(v[g]===void 0){if(x)return!1;v[g]=typeof b=="number"?[]:{}}return!0}},64213:function(o){o.exports=function(){}},75046:function(o,a,n){var l=n(39898),f=n(92770),s=[];o.exports=function(c,d){if(s.indexOf(c)===-1){s.push(c);var h=1e3;f(d)?h=d:d==="long"&&(h=3e3);var p=l.select("body").selectAll(".plotly-notifier").data([0]);p.enter().append("div").classed("plotly-notifier",!0),p.selectAll(".notifier-note").data(s).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(y){var v=l.select(this);v.append("button").classed("notifier-close",!0).html("×").on("click",function(){v.transition().call(m)});for(var g=v.append("p"),b=y.split(/<br\s*\/?>/g),x=0;x<b.length;x++)x&&g.append("br"),g.append("span").text(b[x]);d==="stick"?v.transition().duration(350).style("opacity",1):v.transition().duration(700).style("opacity",1).transition().delay(h).call(m)})}function m(y){y.duration(700).style("opacity",0).each("end",function(v){var g=s.indexOf(v);g!==-1&&s.splice(g,1),l.select(this).remove()})}}},39918:function(o,a,n){var l=n(6964),f="data-savedcursor";o.exports=function(s,c){var d=s.attr(f);if(c){if(!d){for(var h=(s.attr("class")||"").split(" "),p=0;p<h.length;p++){var m=h[p];m.indexOf("cursor-")===0&&s.attr(f,m.substr(7)).classed(m,!1)}s.attr(f)||s.attr(f,"!!")}l(s,c)}else d&&(s.attr(f,null),d==="!!"?l(s):l(s,d))}},61082:function(o,a,n){var l=n(35657).dot,f=n(50606).BADNUM,s=o.exports={};s.tester=function(c){var d,h=c.slice(),p=h[0][0],m=p,y=h[0][1],v=y;for(h[h.length-1][0]===h[0][0]&&h[h.length-1][1]===h[0][1]||h.push(h[0]),d=1;d<h.length;d++)p=Math.min(p,h[d][0]),m=Math.max(m,h[d][0]),y=Math.min(y,h[d][1]),v=Math.max(v,h[d][1]);var g,b=!1;h.length===5&&(h[0][0]===h[1][0]?h[2][0]===h[3][0]&&h[0][1]===h[3][1]&&h[1][1]===h[2][1]&&(b=!0,g=function(w){return w[0]===h[0][0]}):h[0][1]===h[1][1]&&h[2][1]===h[3][1]&&h[0][0]===h[3][0]&&h[1][0]===h[2][0]&&(b=!0,g=function(w){return w[1]===h[0][1]}));var x=!0,_=h[0];for(d=1;d<h.length;d++)if(_[0]!==h[d][0]||_[1]!==h[d][1]){x=!1;break}return{xmin:p,xmax:m,ymin:y,ymax:v,pts:h,contains:b?function(w,k){var T=w[0],M=w[1];return!(T===f||T<p||T>m||M===f||M<y||M>v||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||T<p||T>m||M===f||M<y||M>v)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;S<R;S++)if(C=F,P=A,F=h[S][0],A=h[S][1],!(T<(D=Math.min(C,F))||T>Math.max(C,F)||M>Math.max(P,A)))if(M<Math.min(P,A))T!==D&&z++;else{if(M===(O=F===C?M:P+(T-C)*(A-P)/(F-C)))return S!==1||!k;M<=O&&T!==D&&z++}return z%2==1},isRect:b,degenerate:x}},s.isSegmentBent=function(c,d,h,p){var m,y,v,g=c[d],b=[c[h][0]-g[0],c[h][1]-g[1]],x=l(b,b),_=Math.sqrt(x),w=[-b[1]/_,b[0]/_];for(m=d+1;m<h;m++)if(y=[c[m][0]-g[0],c[m][1]-g[1]],(v=l(y,b))<0||v>x||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(c,d){var h=[c[0]],p=0,m=0;function y(v){c.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x<c.length;x++)(x===c.length-1||s.isSegmentBent(c,b,x+1,d))&&(h.push(c[x]),h.length<g-2&&(p=x,m=h.length-1),b=x)}return c.length>1&&y(c.pop()),{addPt:y,raw:c,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var c;if(typeof(c=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":c}},tablet:!0,featureDetect:!1});if(!d){for(var h=c.split(" "),p=1;p<h.length;p++)if(h[p].indexOf("Safari")!==-1)for(var m=p-1;m>-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;f<a.length;f++)if(a[f]instanceof RegExp&&a[f].toString()===l)return a;a.push(n)}else!n&&n!==0||a.indexOf(n)!==-1||a.push(n);return a}},10847:function(o,a,n){var l=n(71828),f=n(72075).dfltConfig,s={add:function(c,d,h,p,m){var y,v;c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},v=c.undoQueue.index,c.autoplay?c.undoQueue.inSequence||(c.autoplay=!1):(!c.undoQueue.sequence||c.undoQueue.beginSequence?(y={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},c.undoQueue.queue.splice(v,c.undoQueue.queue.length-v,y),c.undoQueue.index+=1):y=c.undoQueue.queue[v-1],c.undoQueue.beginSequence=!1,y&&(y.undo.calls.unshift(d),y.undo.args.unshift(h),y.redo.calls.push(p),y.redo.args.push(m)),c.undoQueue.queue.length>f.queueLength&&(c.undoQueue.queue.shift(),c.undoQueue.index--))},startSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!0,c.undoQueue.beginSequence=!0},stopSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!1,c.undoQueue.beginSequence=!1},undo:function(c){var d,h;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index<=0)){for(c.undoQueue.index--,d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;h<d.undo.calls.length;h++)s.plotDo(c,d.undo.calls[h],d.undo.args[h]);c.undoQueue.inSequence=!1,c.autoplay=!1}},redo:function(c){var d,h;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index>=c.undoQueue.queue.length)){for(d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;h<d.redo.calls.length;h++)s.plotDo(c,d.redo.calls[h],d.redo.args[h]);c.undoQueue.inSequence=!1,c.autoplay=!1,c.undoQueue.index++}},plotDo:function(c,d,h){c.autoplay=!0,h=function(p,m){for(var y,v=[],g=0;g<m.length;g++)y=m[g],v[g]=y===p?y:typeof y=="object"?Array.isArray(y)?l.extendDeep([],y):l.extendDeepAll({},y):y;return v}(c,h),d.apply(null,h)}};o.exports=s},30587:function(o,a){a.counter=function(n,l,f,s){var c=(l||"")+(f?"":"$"),d=s===!1?"":"^";return n==="xy"?new RegExp(d+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+c):new RegExp(d+n+"([2-9]|[1-9][0-9]+)?"+c)}},6962:function(o){var a=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,n=/^[^\.\[\]]+$/;o.exports=function(l,f){for(;f;){var s=l.match(a);if(s)l=s[1];else{if(!l.match(n))throw new Error("bad relativeAttr call:"+[l,f]);l=""}if(f.charAt(0)!=="^")break;f=f.slice(1)}return l&&f.charAt(0)!=="["?l+"."+f:l+f}},51332:function(o,a,n){var l=n(73627).isArrayOrTypedArray,f=n(41965);o.exports=function s(c,d){for(var h in d){var p=d[h],m=c[h];if(m!==p)if(h.charAt(0)==="_"||typeof p=="function"){if(h in c)continue;c[h]=p}else if(l(p)&&l(m)&&f(p[0])){if(h==="customdata"||h==="ids")continue;for(var y=Math.min(p.length,m.length),v=0;v<y;v++)m[v]!==p[v]&&f(p[v])&&f(m[v])&&s(m[v],p[v])}else f(p)&&f(m)&&(s(m,p),Object.keys(m).length||delete c[h])}}},65888:function(o,a,n){var l=n(92770),f=n(47769),s=n(23389),c=n(50606).BADNUM,d=1e-9;function h(v,g){return v<g}function p(v,g){return v<=g}function m(v,g){return v>g}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w<k&&T++<100;)_(g[x=Math.floor((w+k)/2)],v)?w=x+1:k=x;return T>90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===c;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_<w&&k++<100;)g[x=S((_+w)/2)]<=v?_=x+T:w=x-M;return g[_]},a.sort=function(v,g){for(var b=0,x=0,_=1;_<v.length;_++){var w=g(v[_],v[_-1]);if(w<0?b=1:w>0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_<v.length;_++){var w=g(v[_]);w<x&&(x=w,b=_)}return b}},6964:function(o){o.exports=function(a,n){(a.attr("class")||"").split(" ").forEach(function(l){l.indexOf("cursor-")===0&&a.classed(l,!1)}),n&&a.classed("cursor-"+n,!0)}},78607:function(o){o.exports=function(a){return Object.keys(a).sort()}},80038:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;a.aggNums=function(s,c,d,h){var p,m;if((!h||h>d.length)&&(h=d.length),l(c)||(c=!1),f(d[0])){for(m=new Array(h),p=0;p<h;p++)m[p]=a.aggNums(s,c,d[p]);d=m}for(p=0;p<h;p++)l(c)?l(d[p])&&(c=s(+c,+d[p])):c=d[p];return c},a.len=function(s){return a.aggNums(function(c){return c+1},0,s)},a.mean=function(s,c){return c||(c=a.len(s)),a.aggNums(function(d,h){return d+h},0,s)/c},a.midRange=function(s){if(s!==void 0&&s.length!==0)return(a.aggNums(Math.max,null,s)+a.aggNums(Math.min,null,s))/2},a.variance=function(s,c,d){return c||(c=a.len(s)),l(d)||(d=a.mean(s,c)),a.aggNums(function(h,p){return h+Math.pow(p-d,2)},0,s)/c},a.stdev=function(s,c,d){return Math.sqrt(a.variance(s,c,d))},a.median=function(s){var c=s.slice().sort();return a.interp(c,.5)},a.interp=function(s,c){if(!l(c))throw"n should be a finite number";if((c=c*s.length-.5)<0)return s[0];if(c>s.length-1)return s[s.length-1];var d=c%1;return d*s[Math.ceil(c)]+(1-d)*s[Math.floor(c)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),c=null;o.exports=function(){if(c!==null)return c;c=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")c=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;c=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return c}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(c.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be<ge.length;be++)ie(ge[be])}function ie(ue){var ge,be=ue.type,we={};if(be==="a"){ge="a";var ke=ue.target,Ae=ue.href,Ee=ue.popup;Ae&&(we={"xlink:xlink:show":ke==="_blank"||ke.charAt(0)!=="_"?"new":"replace",target:ke,"xlink:xlink:href":Ae},Ee&&(we.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Ee+'");return false;'))}else ge="tspan";ue.style&&(we.style=ue.style);var De=document.createElementNS(c.svg,ge);if(be==="sup"||be==="sub"){le(Q,x),Q.appendChild(De);var Re=document.createElementNS(c.svg,"tspan");le(Re,x),l.select(Re).attr("dy",b[be]),we.dy=g[be],Q.appendChild(De),Q.appendChild(Re)}else Q.appendChild(De);l.select(De).attr(we),Q=ue.node=De,Z.push(ue)}function le(ue,ge){ue.appendChild(document.createTextNode(ge))}function se(ue){if(Z.length!==1){var ge=Z.pop();ue!==ge.type&&f.log("Start tag <"+ge.type+"> doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag </"+ue+">.",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te<pe.length;Te++){var Se=pe[Te],Oe=Se.match(T),Me=Oe&&Oe[2].toLowerCase(),ce=v[Me];if(Me==="br")re();else if(ce===void 0)le(Q,z(Se));else if(Oe[1])se(Me);else{var ye=Oe[4],J={type:Me},ne=O(ye,S);if(ne?(ne=ne.replace(R,"$1 fill:"),ce&&(ne+=";"+ce)):ce&&(ne=ce),ne&&(J.style=ne),Me==="a"){Y=!0;var de=O(ye,C);if(de){var xe=B(de);xe&&(J.href=xe,J.target=O(ye,P)||"_blank",J.popup=O(ye,D))}}ie(J)}}return Y}(N.node(),G);te&&N.style("pointer-events","all"),a.positionText(N),W&&W.call(N)}};var p=/(<|<|<)/g,m=/(>|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=/<br(\s+.*)?>/i;a.BR_TAG_ALL=/<br(\s+.*)?>/gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te<L.length;te++){var ee=L[te],U=ee.match(T),Q=U&&U[2].toLowerCase();if(Q)G.indexOf(Q)!==-1&&(q.push(ee),H=Q);else{var Y=ee.length;if(V+Y<W)q.push(ee),V+=Y;else if(V<W){var Z=W-V;H&&(H!=="br"||Z<=3||Y<=3)&&q.pop(),W>3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;q<L.length;q++){var H=L[q],V=H.match(T),te=V&&V[2].toLowerCase();if(te in v)if(V[1])G.length&&(W=G.pop());else{var ee=V[4],U=O(ee,S),Q=U?{style:U}:{};if(te==="a"){var Y=O(ee,C);if(Y){var Z=B(Y);if(Z){Q.href=Z;var X=O(ee,P);X&&(Q.target=X)}}}var re=document.createElement(te);W.appendChild(re),l.select(re).attr(Q),W=re,G.push(re)}else W.appendChild(document.createTextNode(z(H)))}return E.innerHTML},a.lineCount=function(N){return N.selectAll("tspan.line").size()||1},a.positionText=function(N,E,W){return N.each(function(){var G=l.select(this);function L(V,te){return te===void 0?(te=G.attr(V))===null&&(G.attr(V,0),te=0):G.attr(V,te),te}var q=L("x",E),H=L("y",W);this.nodeName==="text"&&G.selectAll("tspan.line").attr({x:q,y:H})})};var j="1px ";a.makeTextShadow=function(N){return j+j+j+N+", -"+j+"-"+j+j+N+", "+j+"-"+j+j+N+", -"+j+j+j+N},a.makeEditable=function(N,E){var W=E.gd,G=E.delegate,L=l.dispatch("edit","input","cancel"),q=G||N;if(N.style({"pointer-events":G?"none":"all"}),N.size()!==1)throw new Error("boo");function H(){var te,ee,U,Q,Y;te=l.select(W).select(".svg-container"),ee=te.append("div"),U=N.node().style,Q=parseFloat(U.fontSize||12),(Y=E.text)===void 0&&(Y=N.attr("data-unformatted")),ee.classed("plugin-editable editable",!0).style({position:"absolute","font-family":U.fontFamily||"Arial","font-size":Q,color:E.fill||U.fill||"black",opacity:1,"background-color":E.background||"transparent",outline:"#ffffff33 1px solid",margin:[-Q/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(Y).call($(N,te,E)).on("blur",function(){W._editing=!1,N.text(this.textContent).style({opacity:1});var re,ie=l.select(this).attr("class");(re=ie?"."+ie.split(" ")[0]+"-math-group":"[class*=-math-group]")&&l.select(N.node().parentNode).select(re).style({opacity:0});var le=this.textContent;l.select(this).transition().duration(0).remove(),l.select(document).on("mouseup",null),L.edit.call(N,le)}).on("focus",function(){var re=this;W._editing=!0,l.select(document).on("mouseup",function(){if(l.event.target===re)return!1;document.activeElement===ee.node()&&ee.node().blur()})}).on("keyup",function(){l.event.which===27?(W._editing=!1,N.style({opacity:1}),l.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),L.cancel.call(N,this.textContent)):(L.input.call(N,this.textContent),l.select(this).call($(N,te,E)))}).on("keydown",function(){l.event.which===13&&this.blur()}).call(V),N.style({opacity:0});var Z,X=q.attr("class");(Z=X?"."+X.split(" ")[0]+"-math-group":"[class*=-math-group]")&&l.select(N.node().parentNode).select(Z).style({opacity:0})}function V(te){var ee=te.node(),U=document.createRange();U.selectNodeContents(ee);var Q=window.getSelection();Q.removeAllRanges(),Q.addRange(U),ee.focus()}return E.immediate?H():q.on("click",H),l.rebind(N,L,"on")}},79990:function(o,a){var n={};function l(f){f&&f.timer!==null&&(clearTimeout(f.timer),f.timer=null)}a.throttle=function(f,s,c){var d=n[f],h=Date.now();if(!d){for(var p in n)n[p].ts<h-6e4&&delete n[p];d=n[f]={ts:0,timer:null}}function m(){c(),d.ts=Date.now(),d.onDone&&(d.onDone(),d.onDone=null)}l(d),h>d.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(c){var d=s.onDone;s.onDone=function(){d&&d(),c(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var c=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(c)||(c=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),c}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,c,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m<h.length;m++)if((c=f.match(h[m]))&&c.index===0){s=c[0];break}if(s||(s=d[d.indexOf(p)]),!s)return!1;var y=f.substr(s.length);return y?!!(c=y.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:s,index:Number(c[1]),property:c[3]||""}:{array:s,index:"",property:""}}},30962:function(o,a,n){var l=n(1426).extendFlat,f=n(41965),s={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},c={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},d=s.flags.slice().concat(["fullReplot"]),h=c.flags.slice().concat("layoutReplot");function p(v){for(var g={},b=0;b<v.length;b++)g[v[b]]=!1;return g}function m(v,g,b){var x=l({},v);for(var _ in x){var w=x[_];f(w)&&(x[_]=y(w,g,0,_))}return b==="from-root"&&(x.editType=g),x}function y(v,g,b,x){if(v.valType){var _=l({},v);if(_.editType=g,Array.isArray(v.items)){_.items=new Array(v.items.length);for(var w=0;w<v.items.length;w++)_.items[w]=y(v.items[w],g)}return _}return m(v,g,x.charAt(0)==="_"?"nested":"from-root")}o.exports={traces:s,layout:c,traceFlags:function(){return p(d)},layoutFlags:function(){return p(h)},update:function(v,g){var b=g.editType;if(b&&b!=="none")for(var x=b.split("+"),_=0;_<x.length;_++)v[x[_]]=!0},overrideAll:m}},58377:function(o,a,n){var l=n(92770),f=n(27812),s=n(73972),c=n(71828),d=n(74875),h=n(41675),p=n(7901),m=h.cleanId,y=h.getFromTrace,v=s.traceIs;function g(C,P){var D=C[P],O=P.charAt(0);D&&D!=="paper"&&(C[P]=m(D,O,!0))}function b(C){function P(D,O){var R=C[D],F=C.title&&C.title[O];R&&!F&&(C.title||(C.title={}),C.title[O]=C[D],delete C[D])}C&&(typeof C.title!="string"&&typeof C.title!="number"||(C.title={text:C.title}),P("titlefont","font"),P("titleposition","position"),P("titleside","side"),P("titleoffset","offset"))}function x(C){if(!c.isPlainObject(C))return!1;var P=C.name;return delete C.name,delete C.showlegend,(typeof P=="string"||typeof P=="number")&&String(P)}function _(C,P,D,O){if(D&&!O)return C;if(O&&!D||!C.trim())return P;if(!P.trim())return C;var R,F=Math.min(C.length,P.length);for(R=0;R<F&&C.charAt(R)===P.charAt(R);R++);return C.substr(0,R).trim()}function w(C){var P="middle",D="center";return typeof C=="string"&&(C.indexOf("top")!==-1?P="top":C.indexOf("bottom")!==-1&&(P="bottom"),C.indexOf("left")!==-1?D="left":C.indexOf("right")!==-1&&(D="right")),P+" "+D}function k(C,P){return P in C&&typeof C[P]=="object"&&Object.keys(C[P]).length===0}a.clearPromiseQueue=function(C){Array.isArray(C._promises)&&C._promises.length>0&&c.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P<z.length;P++){var B=z[P];if(O&&O.test(B)){var $=C[B];$.anchor&&$.anchor!=="free"&&($.anchor=m($.anchor)),$.overlaying&&($.overlaying=m($.overlaying)),$.type||($.isdate?$.type="date":$.islog?$.type="log":$.isdate===!1&&$.islog===!1&&($.type="linear")),$.autorange!=="withzero"&&$.autorange!=="tozero"||($.autorange=!0,$.rangemode="tozero"),delete $.islog,delete $.isdate,delete $.categories,k($,"domain")&&delete $.domain,$.autotick!==void 0&&($.tickmode===void 0&&($.tickmode=$.autotick?"auto":"linear"),delete $.autotick),b($)}else if(R&&R.test(B))b(C[B].radialaxis);else if(F&&F.test(B)){var j=C[B];b(j.aaxis),b(j.baxis),b(j.caxis)}else if(A&&A.test(B)){var N=C[B],E=N.cameraposition;if(Array.isArray(E)&&E[0].length===4){var W=E[0],G=E[1],L=E[2],q=f([],W),H=[];for(D=0;D<3;++D)H[D]=G[D]+L*q[2+4*D];N.camera={eye:{x:H[0],y:H[1],z:H[2]},center:{x:G[0],y:G[1],z:G[2]},up:{x:0,y:0,z:1}},delete N.cameraposition}b(N.xaxis),b(N.yaxis),b(N.zaxis)}}var V=Array.isArray(C.annotations)?C.annotations.length:0;for(P=0;P<V;P++){var te=C.annotations[P];c.isPlainObject(te)&&(te.ref&&(te.ref==="paper"?(te.xref="paper",te.yref="paper"):te.ref==="data"&&(te.xref="x",te.yref="y"),delete te.ref),g(te,"xref"),g(te,"yref"))}var ee=Array.isArray(C.shapes)?C.shapes.length:0;for(P=0;P<ee;P++){var U=C.shapes[P];c.isPlainObject(U)&&(g(U,"xref"),g(U,"yref"))}var Q=Array.isArray(C.images)?C.images.length:0;for(P=0;P<Q;P++){var Y=C.images[P];c.isPlainObject(Y)&&(g(Y,"xref"),g(Y,"yref"))}var Z=C.legend;return Z&&(Z.x>3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P<C.length;P++){var D,O=C[P];if(O.type==="histogramy"&&"xbins"in O&&!("ybins"in O)&&(O.ybins=O.xbins,delete O.xbins),O.error_y&&"opacity"in O.error_y){var R=p.defaults,F=O.error_y.color||(v(O,"bar")?p.defaultLine:R[P%R.length]);O.error_y.color=p.addOpacity(p.rgb(F),p.opacity(F)*O.error_y.opacity),delete O.error_y.opacity}if("bardir"in O&&(O.bardir!=="h"||!v(O,"bar")&&O.type.substr(0,9)!=="histogram"||(O.orientation="h",a.swapXYData(O)),delete O.bardir),O.type==="histogramy"&&a.swapXYData(O),O.type!=="histogramx"&&O.type!=="histogramy"||(O.type="histogram"),"scl"in O&&!("colorscale"in O)&&(O.colorscale=O.scl,delete O.scl),"reversescl"in O&&!("reversescale"in O)&&(O.reversescale=O.reversescl,delete O.reversescl),O.xaxis&&(O.xaxis=m(O.xaxis,"x")),O.yaxis&&(O.yaxis=m(O.yaxis,"y")),v(O,"gl3d")&&O.scene&&(O.scene=d.subplotsRegistry.gl3d.cleanId(O.scene)),!v(O,"pie-like")&&!v(O,"bar-like"))if(Array.isArray(O.textposition))for(D=0;D<O.textposition.length;D++)O.textposition[D]=w(O.textposition[D]);else O.textposition&&(O.textposition=w(O.textposition));var A=s.getModule(O);if(A&&A.colorbar){var z=A.colorbar.container,B=z?O[z]:O;B&&B.colorscale&&(B.colorscale==="YIGnBu"&&(B.colorscale="YlGnBu"),B.colorscale==="YIOrRd"&&(B.colorscale="YlOrRd"))}if(O.type==="surface"&&c.isPlainObject(O.contours)){var $=["x","y","z"];for(D=0;D<$.length;D++){var j=O.contours[$[D]];c.isPlainObject(j)&&(j.highlightColor&&(j.highlightcolor=j.highlightColor,delete j.highlightColor),j.highlightWidth&&(j.highlightwidth=j.highlightWidth,delete j.highlightWidth))}}if(O.type==="candlestick"||O.type==="ohlc"){var N=(O.increasing||{}).showlegend!==!1,E=(O.decreasing||{}).showlegend!==!1,W=x(O.increasing),G=x(O.decreasing);if(W!==!1&&G!==!1){var L=_(W,G,N,E);L&&(O.name=L)}else!W&&!G||O.name||(O.name=W||G)}if(Array.isArray(O.transforms)){var q=O.transforms;for(D=0;D<q.length;D++){var H=q[D];if(c.isPlainObject(H))switch(H.type){case"filter":H.filtersrc&&(H.target=H.filtersrc,delete H.filtersrc),H.calendar&&(H.valuecalendar||(H.valuecalendar=H.calendar),delete H.calendar);break;case"groupby":if(H.styles=H.styles||H.style,H.styles&&!Array.isArray(H.styles)){var V=H.styles,te=Object.keys(V);H.styles=[];for(var ee=0;ee<te.length;ee++)H.styles.push({target:te[ee],value:V[te[ee]]})}}}}k(O,"line")&&delete O.line,"marker"in O&&(k(O.marker,"line")&&delete O.marker.line,k(O,"marker")&&delete O.marker),p.clean(O),O.autobinx&&(delete O.autobinx,delete O.xbins),O.autobiny&&(delete O.autobiny,delete O.ybins),b(O),O.colorbar&&b(O.colorbar),O.marker&&O.marker.colorbar&&b(O.marker.colorbar),O.line&&O.line.colorbar&&b(O.line.colorbar),O.aaxis&&b(O.aaxis),O.baxis&&b(O.baxis)}},a.swapXYData=function(C){var P;if(c.swapAttrs(C,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(C.z)&&Array.isArray(C.z[0])&&(C.transpose?delete C.transpose:C.transpose=!0),C.error_x&&C.error_y){var D=C.error_y,O="copy_ystyle"in D?D.copy_ystyle:!(D.color||D.thickness||D.width);c.swapAttrs(C,["error_?.copy_ystyle"]),O&&c.swapAttrs(C,["error_?.color","error_?.thickness","error_?.width"])}if(typeof C.hoverinfo=="string"){var R=C.hoverinfo.split("+");for(P=0;P<R.length;P++)R[P]==="x"?R[P]="y":R[P]==="y"&&(R[P]="x");C.hoverinfo=R.join("+")}},a.coerceTraceIndices=function(C,P){if(l(P))return[P];if(!Array.isArray(P)||!P.length)return C.data.map(function(R,F){return F});if(Array.isArray(P)){for(var D=[],O=0;O<P.length;O++)c.isIndex(P[O],C.data.length)?D.push(P[O]):c.warn("trace index (",P[O],") is not a number or is out of bounds");return D}return P},a.manageArrayContainers=function(C,P,D){var O=C.obj,R=C.parts,F=R.length,A=R[F-1],z=l(A);if(z&&P===null){var B=R.slice(0,F-1).join(".");c.nestedProperty(O,B).get().splice(A,1)}else z&&C.get()===void 0&&C.get()===void 0&&(D[C.astr]=null),C.set(P)};var T=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function M(C){var P=C.search(T);if(P>0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O<P.length;O++)for(var R=C._fullData[O],F=0;F<3;F++){var A=y(C,R,S[F]);if(A&&A.type!=="log"){var z=A._name,B=A._id.substr(1);if(B.substr(0,5)==="scene"){if(D[B]!==void 0)continue;z=B+"."+z}var $=z+".type";D[z]===void 0&&D[$]===void 0&&c.nestedProperty(C.layout,$).set(null)}}}},10641:function(o,a,n){var l=n(72391);a._doPlot=l._doPlot,a.newPlot=l.newPlot,a.restyle=l.restyle,a.relayout=l.relayout,a.redraw=l.redraw,a.update=l.update,a._guiRestyle=l._guiRestyle,a._guiRelayout=l._guiRelayout,a._guiUpdate=l._guiUpdate,a._storeDirectGUIEdit=l._storeDirectGUIEdit,a.react=l.react,a.extendTraces=l.extendTraces,a.prependTraces=l.prependTraces,a.addTraces=l.addTraces,a.deleteTraces=l.deleteTraces,a.moveTraces=l.moveTraces,a.purge=l.purge,a.addFrames=l.addFrames,a.deleteFrames=l.deleteFrames,a.animate=l.animate,a.setPlotConfig=l.setPlotConfig;var f=n(24401).getGraphDiv,s=n(34031).eraseActiveShape;a.deleteActiveShape=function(d){return s(f(d))},a.toImage=n(403),a.validate=n(84936),a.downloadImage=n(7239);var c=n(96318);a.makeTemplate=c.makeTemplate,a.validateTemplate=c.validateTemplate},6611:function(o,a,n){var l=n(41965),f=n(64213),s=n(47769),c=n(65888).sorterAsc,d=n(73972);a.containerArrayMatch=n(14458);var h=a.isAddVal=function(m){return m==="add"||l(m)},p=a.isRemoveVal=function(m){return m===null||m==="remove"};a.applyContainerArrayChanges=function(m,y,v,g,b){var x=y.astr,_=d.getComponentMethod(x,"supplyLayoutDefaults"),w=d.getComponentMethod(x,"draw"),k=d.getComponentMethod(x,"drawOne"),T=g.replot||g.recalc||_===f||w===f,M=m.layout,S=m._fullLayout;if(v[""]){Object.keys(v).length>1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(c),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D<F.length;D++)B=x+"["+O+"].",b(N[O],F[D],B).set(R[F[D]]);for(P=W.length-1;P>=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P<L;P++)q.push(P)}for(P=0;P<q.length;P++)k(m,q[P])}else w(m);return!0}},72391:function(o,a,n){var l=n(39898),f=n(92770),s=n(57035),c=n(71828),d=c.nestedProperty,h=n(11086),p=n(10847),m=n(73972),y=n(86281),v=n(74875),g=n(89298),b=n(23608),x=n(13838),_=n(91424),w=n(7901),k=n(4305).initInteractions,T=n(77922),M=n(47322).clearOutline,S=n(72075).dfltConfig,C=n(6611),P=n(58377),D=n(61549),O=n(30962),R=n(85555).AX_NAME_PATTERN,F=0;function A(ue){var ge=ue._fullLayout;ge._redrawFromAutoMarginCount?ge._redrawFromAutoMarginCount--:ue.emit("plotly_afterplot")}function z(ue,ge){try{ue._fullLayout._paper.style("background",ge)}catch(be){c.error(be)}}function B(ue,ge){z(ue,w.combine(ge,"white"))}function $(ue,ge){if(!ue._context){ue._context=c.extendDeep({},S);var be=l.select("base");ue._context._baseUrl=be.size()&&be.attr("href")?window.location.href.split("#")[0]:""}var we,ke,Ae,Ee=ue._context;if(ge){for(ke=Object.keys(ge),we=0;we<ke.length;we++)(Ae=ke[we])!=="editable"&&Ae!=="edits"&&Ae in Ee&&(Ae==="setBackground"&&ge[Ae]==="opaque"?Ee[Ae]=B:Ee[Ae]=ge[Ae]);ge.plot3dPixelRatio&&!Ee.plotGlPixelRatio&&(Ee.plotGlPixelRatio=Ee.plot3dPixelRatio);var De=ge.editable;if(De!==void 0)for(Ee.editable=De,ke=Object.keys(Ee.edits),we=0;we<ke.length;we++)Ee.edits[ke[we]]=De;if(ge.edits)for(ke=Object.keys(ge.edits),we=0;we<ke.length;we++)(Ae=ke[we])in Ee.edits&&(Ee.edits[Ae]=ge.edits[Ae]);Ee._exportedPlot=ge._exportedPlot}Ee.staticPlot&&(Ee.editable=!1,Ee.edits={},Ee.autosizable=!1,Ee.scrollZoom=!1,Ee.doubleClick=!1,Ee.showTips=!1,Ee.showLink=!1,Ee.displayModeBar=!1),Ee.displayModeBar!=="hover"||s||(Ee.displayModeBar=!0),Ee.setBackground!=="transparent"&&typeof Ee.setBackground=="function"||(Ee.setBackground=z),Ee._hasZeroHeight=Ee._hasZeroHeight||ue.clientHeight===0,Ee._hasZeroWidth=Ee._hasZeroWidth||ue.clientWidth===0;var Re=Ee.scrollZoom,Ie=Ee._scrollZoom={};if(Re===!0)Ie.cartesian=1,Ie.gl3d=1,Ie.geo=1,Ie.mapbox=1;else if(typeof Re=="string"){var Be=Re.split("+");for(we=0;we<Be.length;we++)Ie[Be[we]]=1}else Re!==!1&&(Ie.gl3d=1,Ie.geo=1,Ie.mapbox=1)}function j(ue,ge){var be,we,ke=ge+1,Ae=[];for(be=0;be<ue.length;be++)(we=ue[be])<0?Ae.push(ke+we):Ae.push(we);return Ae}function N(ue,ge,be){var we,ke;for(we=0;we<ge.length;we++){if((ke=ge[we])!==parseInt(ke,10))throw new Error("all values in "+be+" must be integers");if(ke>=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=c.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!c.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=c.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut<at.length;ut++){if(ct=qe.data[at[ut]],bt=(ze=d(ct,Je)).get(),Ne=Ye[Je][ut],!c.isArrayOrTypedArray(Ne))throw new Error("attribute: "+Je+" index: "+ut+" must be an array");if(!c.isArrayOrTypedArray(bt))throw new Error("cannot extend missing or non-array attribute: "+Je);if(bt.constructor!==Ne.constructor)throw new Error("cannot extend array with an array of a different type: "+Je);Qe=it?lt[Je][ut]:lt,f(Qe)||(Qe=-1),kt.push({prop:ze,target:bt,insert:Ne,maxp:Math.floor(Qe)})}return kt}(ue,ge,be,we),Ee={},De={},Re=0;Re<Ae.length;Re++){var Ie=Ae[Re].prop,Be=Ae[Re].maxp,Ue=ke(Ae[Re].target,Ae[Re].insert,Be);Ie.set(Ue[0]),Array.isArray(Ee[Ie.astr])||(Ee[Ie.astr]=[]),Ee[Ie.astr].push(Ue[1]),Array.isArray(De[Ie.astr])||(De[Ie.astr]=[]),De[Ie.astr].push(Ae[Re].target.length)}return{update:Ee,maxPoints:De}}function G(ue,ge){var be=new ue.constructor(ue.length+ge.length);return be.set(ue),be.set(ge,ue.length),be}function L(ue,ge,be,we){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var ke={};if(typeof ge=="string")ke[ge]=be;else{if(!c.isPlainObject(ge))return c.warn("Restyle fail.",ge,be,we),Promise.reject();ke=c.extendFlat({},ge),we===void 0&&(we=be)}Object.keys(ke).length&&(ue.changed=!0);var Ae=P.coerceTraceIndices(ue,we),Ee=te(ue,ke,Ae),De=Ee.flags;De.calc&&(ue.calcdata=void 0),De.clearAxisTypes&&P.clearAxisTypes(ue,Ae,{});var Re=[];De.fullReplot?Re.push(a._doPlot):(Re.push(v.previousPromises),v.supplyDefaults(ue),De.markerSize&&(v.doCalcdata(ue),Y(Re)),De.style&&Re.push(D.doTraceStyle),De.colorbars&&Re.push(D.doColorBars),Re.push(A)),Re.push(v.rehover,v.redrag,v.reselect),p.add(ue,L,[ue,Ee.undoit,Ee.traces],L,[ue,Ee.redoit,Ee.traces]);var Ie=c.syncOrAsync(Re,ue);return Ie&&Ie.then||(Ie=Promise.resolve()),Ie.then(function(){return ue.emit("plotly_restyle",Ee.eventData),ue})}function q(ue){return ue===void 0?null:ue}function H(ue,ge){return ge?function(be,we,ke){var Ae=d(be,we),Ee=Ae.set;return Ae.set=function(De){V((ke||"")+we,Ae.get(),De,ue),Ee(De)},Ae}:d}function V(ue,ge,be,we){if(Array.isArray(ge)||Array.isArray(be))for(var ke=Array.isArray(ge)?ge:[],Ae=Array.isArray(be)?be:[],Ee=Math.max(ke.length,Ae.length),De=0;De<Ee;De++)V(ue+"["+De+"]",ke[De],Ae[De],we);else if(c.isPlainObject(ge)||c.isPlainObject(be)){var Re=c.isPlainObject(ge)?ge:{},Ie=c.isPlainObject(be)?be:{},Be=c.extendFlat({},Re,Ie);for(var Ue in Be)V(ue+"."+Ue,Re[Ue],Ie[Ue],we)}else we[ue]===void 0&&(we[ue]=q(ge))}function te(ue,ge,be){var we,ke=ue._fullLayout,Ae=ue._fullData,Ee=ue.data,De=ke._guiEditing,Re=H(ke._preGUI,De),Ie=c.extendDeepAll({},ge);ee(ge);var Be,Ue=O.traceFlags(),qe={},Ye={};function at(){return be.map(function(){})}function lt(gt){var ht=g.id2name(gt);Be.indexOf(ht)===-1&&Be.push(ht)}function ct(gt){return"LAYOUT"+gt+".autorange"}function bt(gt){return"LAYOUT"+gt+".range"}function ze(gt){for(var ht=gt;ht<Ae.length;ht++)if(Ae[ht]._input===Ee[gt])return Ae[ht]}function Ne(gt,ht,yt){if(Array.isArray(gt))gt.forEach(function(jt){Ne(jt,ht,yt)});else if(!(gt in ge)&&!P.hasParent(ge,gt)){var qt;if(gt.substr(0,6)==="LAYOUT")qt=Re(ue.layout,gt.replace("LAYOUT",""));else{var Et=be[yt];qt=H(ke._tracePreGUI[ze(Et)._fullInput.uid],De)(Ee[Et],gt)}gt in Ye||(Ye[gt]=at()),Ye[gt][yt]===void 0&&(Ye[gt][yt]=q(qt.get())),ht!==void 0&&qt.set(ht)}}function Qe(gt){return function(ht){return Ae[ht][gt]}}function it(gt){return function(ht,yt){return ht===!1?Ae[be[yt]][gt]:null}}for(var kt in ge){if(P.hasParent(ge,kt))throw new Error("cannot set "+kt+" and a parent attribute simultaneously");var Je,ut,pt,It,Mt,zt,wt=ge[kt];if(kt!=="autobinx"&&kt!=="autobiny"||(kt=kt.charAt(kt.length-1)+"bins",wt=Array.isArray(wt)?wt.map(it(kt)):wt===!1?be.map(Qe(kt)):null),qe[kt]=wt,kt.substr(0,6)!=="LAYOUT"){for(Ye[kt]=at(),we=0;we<be.length;we++)if(Je=Ee[be[we]],ut=ze(be[we]),It=(pt=H(ke._tracePreGUI[ut._fullInput.uid],De)(Je,kt)).get(),(Mt=Array.isArray(wt)?wt[we%wt.length]:wt)!==void 0){var ve=pt.parts[pt.parts.length-1],_e=kt.substr(0,kt.length-ve.length-1),Ve=_e?_e+".":"",We=_e?d(ut,_e).get():ut;if((zt=y.getTraceValObject(ut,pt.parts))&&zt.impliedEdits&&Mt!==null)for(var Ze in zt.impliedEdits)Ne(c.relativeAttr(kt,Ze),zt.impliedEdits[Ze],we);else if(ve!=="thicknessmode"&&ve!=="lenmode"||It===Mt||Mt!=="fraction"&&Mt!=="pixels"||!We){if(kt==="type"&&(Mt==="pie"!=(It==="pie")||Mt==="funnelarea"!=(It==="funnelarea"))){var Ge="x",Ke="y";Mt!=="bar"&&It!=="bar"||Je.orientation!=="h"||(Ge="y",Ke="x"),c.swapAttrs(Je,["?","?src"],"labels",Ge),c.swapAttrs(Je,["d?","?0"],"label",Ge),c.swapAttrs(Je,["?","?src"],"values",Ke),It==="pie"||It==="funnelarea"?(d(Je,"marker.color").set(d(Je,"marker.colors").get()),ke._pielayer.selectAll("g.trace").remove()):m.traceIs(Je,"cartesian")&&d(Je,"marker.colors").set(d(Je,"marker.color").get())}}else{var nt=ke._size,st=We.orient,mt=st==="top"||st==="bottom";if(ve==="thicknessmode"){var tt=mt?nt.h:nt.w;Ne(Ve+"thickness",We.thickness*(Mt==="fraction"?1/tt:tt),we)}else{var Ft=mt?nt.w:nt.h;Ne(Ve+"len",We.len*(Mt==="fraction"?1/Ft:Ft),we)}}if(Ye[kt][we]=q(It),["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(kt)!==-1){if(kt==="orientation"){pt.set(Mt);var Vt=Je.x&&!Je.y?"h":"v";if((pt.get()||Vt)===ut.orientation)continue}else kt==="orientationaxes"&&(Je.orientation={v:"h",h:"v"}[ut.orientation]);P.swapXYData(Je),Ue.calc=Ue.clearAxisTypes=!0}else v.dataArrayContainers.indexOf(pt.parts[0])!==-1?(P.manageArrayContainers(pt,Mt,Ye),Ue.calc=!0):(zt?zt.arrayOk&&!m.traceIs(ut,"regl")&&(c.isArrayOrTypedArray(Mt)||c.isArrayOrTypedArray(It))?Ue.calc=!0:O.update(Ue,zt):Ue.calc=!0,pt.set(Mt))}if(["swapxyaxes","orientationaxes"].indexOf(kt)!==-1&&g.swap(ue,be),kt==="orientationaxes"){var St=d(ue.layout,"hovermode"),Nt=St.get();Nt==="x"?St.set("y"):Nt==="y"?St.set("x"):Nt==="x unified"?St.set("y unified"):Nt==="y unified"&&St.set("x unified")}if(["orientation","type"].indexOf(kt)!==-1){for(Be=[],we=0;we<be.length;we++){var Dt=Ee[be[we]];m.traceIs(Dt,"cartesian")&&(lt(Dt.xaxis||"x"),lt(Dt.yaxis||"y"))}Ne(Be.map(ct),!0,0),Ne(Be.map(bt),[0,1],0)}}else pt=Re(ue.layout,kt.replace("LAYOUT","")),Ye[kt]=[q(pt.get())],pt.set(Array.isArray(wt)?wt[0]:wt),Ue.calc=!0}return(Ue.calc||Ue.plot)&&(Ue.fullReplot=!0),{flags:Ue,undoit:Ye,redoit:qe,traces:be,eventData:c.extendDeepNoArrays([],[Ie,be])}}function ee(ue){var ge,be,we,ke=c.counterRegex("axis",".title",!1,!1),Ae=/colorbar\.title$/,Ee=Object.keys(ue);for(ge=0;ge<Ee.length;ge++)be=Ee[ge],we=ue[be],be!=="title"&&!ke.test(be)&&!Ae.test(be)||typeof we!="string"&&typeof we!="number"?be.indexOf("titlefont")>-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!c.isPlainObject(ge))return c.warn("Relayout fail.",ge,be),Promise.reject();we=c.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=c.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return c.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=c.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we<Ie.length;we++)if(Ie[we].indexOf("allaxes")===0){for(ke=0;ke<Be.length;ke++){var Ye=Be[ke]._id.substr(1),at=Ye.indexOf("scene")!==-1?Ye+".":"",lt=Ie[we].replace("allaxes",at+Be[ke]._name);ge[lt]||(ge[lt]=ge[Ie[we]])}delete ge[Ie[we]]}var ct=O.layoutFlags(),bt={},ze={};function Ne(jt,Tt){if(Array.isArray(jt))jt.forEach(function(At){Ne(At,Tt)});else if(!(jt in ge)&&!P.hasParent(ge,jt)){var Ot=Re(Ae,jt);jt in ze||(ze[jt]=q(Ot.get())),Tt!==void 0&&Ot.set(Tt)}}var Qe,it={};function kt(jt){var Tt=g.name2id(jt.split(".")[0]);return it[Tt]=1,Tt}for(var Je in ge){if(P.hasParent(ge,Je))throw new Error("cannot set "+Je+" and a parent attribute simultaneously");for(var ut=Re(Ae,Je),pt=ge[Je],It=ut.parts.length-1;It>0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(c.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:c.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we<Et.length;we++)if(Et[we].showlegend){ct.calc=!0;break}return(ct.plot||ct.calc)&&(ct.layoutReplot=!0),{flags:ct,rangesAltered:it,undoit:ze,redoit:bt,eventData:Ue}}function le(ue){var ge=ue._fullLayout,be=ge.width,we=ge.height;return ue.layout.autosize&&v.plotAutoSize(ue,ue.layout,ge),ge.width!==be||ge.height!==we}function se(ue,ge,be,we){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue),c.isPlainObject(ge)||(ge={}),c.isPlainObject(be)||(be={}),Object.keys(ge).length&&(ue.changed=!0),Object.keys(be).length&&(ue.changed=!0);var ke=P.coerceTraceIndices(ue,we),Ae=te(ue,c.extendFlat({},ge),ke),Ee=Ae.flags,De=ie(ue,c.extendFlat({},be)),Re=De.flags;(Ee.calc||Re.calc)&&(ue.calcdata=void 0),Ee.clearAxisTypes&&P.clearAxisTypes(ue,ke,be);var Ie=[];Re.layoutReplot?Ie.push(D.layoutReplot):Ee.fullReplot?Ie.push(a._doPlot):(Ie.push(v.previousPromises),Q(ue,Re,De)||v.supplyDefaults(ue),Ee.style&&Ie.push(D.doTraceStyle),(Ee.colorbars||Re.colorbars)&&Ie.push(D.doColorBars),Re.legend&&Ie.push(D.doLegend),Re.layoutstyle&&Ie.push(D.layoutStyles),Re.axrange&&Y(Ie,De.rangesAltered),Re.ticks&&Ie.push(D.doTicksRelayout),Re.modebar&&Ie.push(D.doModeBar),Re.camera&&Ie.push(D.doCamera),Ie.push(A)),Ie.push(v.rehover,v.redrag,v.reselect),p.add(ue,se,[ue,Ae.undoit,De.undoit,Ae.traces],se,[ue,Ae.redoit,De.redoit,Ae.traces]);var Be=c.syncOrAsync(Ie,ue);return Be&&Be.then||(Be=Promise.resolve(ue)),Be.then(function(){return ue.emit("plotly_update",{data:Ae.eventData,layout:De.eventData}),ue})}function pe(ue){return function(ge){ge._fullLayout._guiEditing=!0;var be=ue.apply(null,arguments);return ge._fullLayout._guiEditing=!1,be}}var Te=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Se=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function Oe(ue,ge){for(var be=0;be<ge.length;be++){var we=ge[be],ke=ue.match(we.pattern);if(ke){var Ae=ke[1]||"";return{head:Ae,tail:ue.substr(Ae.length+1),attr:we.attr}}}}function Me(ue,ge){var be=d(ge,ue).get();if(be!==void 0)return be;var we=ue.split(".");for(we.pop();we.length>1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be<ge.length;be++)if(ge[be]._fullInput.uid===ue)return be;return-1}function ye(ue,ge,be){for(var we=0;we<ge.length;we++)if(ge[we].uid===ue)return we;return!ge[be]||ge[be].uid?-1:be}function J(ue,ge){var be=c.isPlainObject(ue),we=Array.isArray(ue);return be||we?(be&&c.isPlainObject(ge)||we&&Array.isArray(ge))&&JSON.stringify(ue)===JSON.stringify(ge):ue===ge}function ne(ue,ge,be,we){var ke,Ae,Ee,De=we.getValObject,Re=we.flags,Ie=we.immutable,Be=we.inArray,Ue=we.arrayIndex;function qe(){var ve=ke.editType;Be&&ve.indexOf("arraydraw")!==-1?c.pushUnique(Re.arrays[Be],Ue):(O.update(Re,ke),ve!=="none"&&Re.nChanges++,we.transition&&ke.anim&&Re.nChangesAnim++,(Z.test(Ee)||X.test(Ee))&&(Re.rangesAltered[be[0]]=1),re.test(Ee)&&d(ge,"_inputDomain").set(null),Ae==="datarevision"&&(Re.newDataRevision=1))}function Ye(ve){return ve.valType==="data_array"||ve.arrayOk}for(Ae in ue){if(Re.calc&&!we.transition)return;var at=ue[Ae],lt=ge[Ae],ct=be.concat(Ae);if(Ee=ct.join("."),Ae.charAt(0)!=="_"&&typeof at!="function"&&at!==lt){if((Ae==="tick0"||Ae==="dtick")&&be[0]!=="geo"){var bt=ge.tickmode;if(bt==="auto"||bt==="array"||!bt)continue}if((Ae!=="range"||!ge.autorange)&&(Ae!=="zmin"&&Ae!=="zmax"||ge.type!=="contourcarpet")&&(ke=De(ct))&&(!ke._compareAsJSON||JSON.stringify(at)!==JSON.stringify(lt))){var ze,Ne=ke.valType,Qe=Ye(ke),it=Array.isArray(at),kt=Array.isArray(lt);if(it&&kt){var Je="_input_"+Ae,ut=ue[Je],pt=ge[Je];if(Array.isArray(ut)&&ut===pt)continue}if(lt===void 0)Qe&&it?Re.calc=!0:qe();else if(ke._isLinkedToArray){var It=[],Mt=!1;Be||(Re.arrays[Ae]=It);var zt=Math.min(at.length,lt.length),wt=Math.max(at.length,lt.length);if(zt!==wt){if(ke.editType!=="arraydraw"){qe();continue}Mt=!0}for(ze=0;ze<zt;ze++)ne(at[ze],lt[ze],ct.concat(ze),c.extendFlat({inArray:Ae,arrayIndex:ze},we));if(Mt)for(ze=zt;ze<wt;ze++)It.push(ze)}else!Ne&&c.isPlainObject(at)?ne(at,lt,ct,we):Qe?it&&kt?(Ie&&(Re.calc=!0),(Ie||we.newDataRevision)&&qe()):it!==kt?Re.calc=!0:qe():it&&kt&&at.length===lt.length&&String(at)===String(lt)||qe()}}}for(Ae in ge)if(!(Ae in ue)&&Ae.charAt(0)!=="_"&&typeof ge[Ae]!="function"){if(Ye(ke=De(be.concat(Ae)))&&Array.isArray(ge[Ae]))return void(Re.calc=!0);qe()}}function de(ue,ge){var be;for(be in ue)if(be.charAt(0)!=="_"){var we=ue[be],ke=ge[be];if(we!==ke)if(c.isPlainObject(we)&&c.isPlainObject(ke)){if(de(we,ke))return!0}else{if(!Array.isArray(we)||!Array.isArray(ke)||we.length!==ke.length)return!0;for(var Ae=0;Ae<we.length;Ae++)if(we[Ae]!==ke[Ae]&&(!c.isPlainObject(we[Ae])||!c.isPlainObject(ke[Ae])||de(we[Ae],ke[Ae])))return!0}}}function xe(ue){var ge=ue._fullLayout,be=ue.getBoundingClientRect();if(!c.equalDomRects(be,ge._lastBBox)){var we=ge._invTransform=c.inverseTransformMatrix(c.getFullTransformMatrix(ue));ge._invScaleX=Math.sqrt(we[0][0]*we[0][0]+we[0][1]*we[0][1]+we[0][2]*we[0][2]),ge._invScaleY=Math.sqrt(we[1][0]*we[1][0]+we[1][1]*we[1][1]+we[1][2]*we[1][2]),ge._lastBBox=be}}a.animate=function(ue,ge,be){if(ue=c.getGraphDiv(ue),!c.isPlotDiv(ue))throw new Error("This element is not a Plotly plot: "+ue+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var we=ue._transitionData;we._frameQueue||(we._frameQueue=[]);var ke=(be=v.supplyAnimationDefaults(be)).transition,Ae=be.frame;function Ee(Ie){return Array.isArray(ke)?Ie>=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!c.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe<we._frames.length;qe++)(Ye=we._frames[qe])&&(bt||String(Ye.group)===String(ge))&&ct.push({type:"byname",name:String(Ye.name),data:lt({name:Ye.name})});else if(ze)for(qe=0;qe<ge.length;qe++){var Ne=ge[qe];["number","string"].indexOf(typeof Ne)!==-1?(Ne=String(Ne),ct.push({type:"byname",name:Ne,data:lt({name:Ne})})):c.isPlainObject(Ne)&&ct.push({type:"object",data:lt(c.extendFlat({},Ne))})}}else ct.push({type:"object",data:lt(c.extendFlat({},ge))});for(qe=0;qe<ct.length;qe++)if((Ye=ct[qe]).type==="byname"&&!we._frameHash[Ye.data.name])return c.warn('animate failure: frame not found: "'+Ye.data.name+'"'),void Be();["next","immediate"].indexOf(be.mode)!==-1&&function(){if(we._frameQueue.length!==0){for(;we._frameQueue.length;){var Je=we._frameQueue.pop();Je.onInterrupt&&Je.onInterrupt()}ue.emit("plotly_animationinterrupted",[])}}(),be.direction==="reverse"&&ct.reverse();var Qe=ue._fullLayout._currentFrame;if(Qe&&be.fromcurrent){var it=-1;for(qe=0;qe<ct.length;qe++)if((Ye=ct[qe]).type==="byname"&&Ye.name===Qe){it=qe;break}if(it>0&&it<ct.length-1){var kt=[];for(qe=0;qe<ct.length;qe++)Ye=ct[qe],(ct[qe].type!=="byname"||qe>it)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut<Je.length;ut++){var pt;pt=Je[ut].type==="byname"?v.computeFrame(ue,Je[ut].name):Je[ut].data;var It=De(ut),Mt=Ee(ut);Mt.duration=Math.min(Mt.duration,It.duration);var zt={frame:pt,name:Je[ut].name,frameOpts:It,transitionOpts:Mt};ut===Je.length-1&&(zt.onComplete=Re(Ie,2),zt.onInterrupt=Be),we._frameQueue.push(zt)}be.mode==="immediate"&&(we._lastFrameAt=-1/0),we._animationRaf||Ue()}}(ct):(ue.emit("plotly_animated"),Ie())})},a.addFrames=function(ue,ge,be){if(ue=c.getGraphDiv(ue),ge==null)return Promise.resolve();if(!c.isPlotDiv(ue))throw new Error("This element is not a Plotly plot: "+ue+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var we,ke,Ae,Ee,De=ue._transitionData._frames,Re=ue._transitionData._frameHash;if(!Array.isArray(ge))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+ge);var Ie=De.length+2*ge.length,Be=[],Ue={};for(we=ge.length-1;we>=0;we--)if(c.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,c.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&c.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index<ut.index?1:0});var ct=[],bt=[],ze=De.length;for(we=Be.length-1;we>=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae<De.length&&(De[Ae]||{}).name!==ke.name;Ae++);ct.push({type:"replace",index:Ae,value:ke}),bt.unshift({type:"replace",index:Ae,value:De[Ae]})}else Ee=Math.max(0,Math.min(Be[we].index,ze)),ct.push({type:"insert",index:Ee,value:ke}),bt.unshift({type:"delete",index:Ee}),ze++}var Ne=v.modifyFrames,Qe=v.modifyFrames,it=[ue,bt],kt=[ue,ct];return p&&p.add(ue,Ne,it,Qe,kt),v.modifyFrames(ue,ct)},a.deleteFrames=function(ue,ge){if(ue=c.getGraphDiv(ue),!c.isPlotDiv(ue))throw new Error("This element is not a Plotly plot: "+ue);var be,we,ke=ue._transitionData._frames,Ae=[],Ee=[];if(!ge)for(ge=[],be=0;be<ke.length;be++)ge.push(be);for((ge=ge.slice()).sort(),be=ge.length-1;be>=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=c.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at<qe.length;at++)if(typeof(lt=qe[at])!="object"||Array.isArray(lt)||lt===null)throw new Error("all values in traces array must be non-array objects");if(Ye===void 0||Array.isArray(Ye)||(Ye=[Ye]),Ye!==void 0&&Ye.length!==qe.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(ge,be,we),Array.isArray(be)||(be=[be]),be=be.map(function(Ue){return c.extendFlat({},Ue)}),P.cleanData(be),ke=0;ke<be.length;ke++)ge.data.push(be[ke]);for(ke=0;ke<be.length;ke++)Ee.push(-be.length+ke);if(we===void 0)return Ae=a.redraw(ge),p.add(ge,De,Ie,Re,Be),Ae;Array.isArray(we)||(we=[we]);try{E(ge,Ee,we)}catch(Ue){throw ge.data.splice(ge.data.length-be.length,be.length),Ue}return p.startSequence(ge),p.add(ge,De,Ie,Re,Be),Ae=a.moveTraces(ge,Ee,we),p.stopSequence(ge),Ae},a.deleteTraces=function ue(ge,be){ge=c.getGraphDiv(ge);var we,ke,Ae=[],Ee=a.addTraces,De=ue,Re=[ge,Ae,be],Ie=[ge,be];if(be===void 0)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(be)||(be=[be]),N(ge,be,"indices"),(be=j(be,ge.data.length-1)).sort(c.sorterDes),we=0;we<be.length;we+=1)ke=ge.data.splice(be[we],1)[0],Ae.push(ke);var Be=a.redraw(ge);return p.add(ge,Ee,Re,De,Ie),Be},a.extendTraces=function ue(ge,be,we,ke){var Ae=W(ge=c.getGraphDiv(ge),be,we,ke,function(Re,Ie,Be){var Ue,qe;if(c.isTypedArray(Re))if(Be<0){var Ye=new Re.constructor(0),at=G(Re,Ie);Be<0?(Ue=at,qe=Ye):(Ue=Ye,qe=at)}else if(Ue=new Re.constructor(Be),qe=new Re.constructor(Re.length+Ie.length-Be),Be===Ie.length)Ue.set(Ie),qe.set(Re);else if(Be<Ie.length){var lt=Ie.length-Be;Ue.set(Ie.subarray(lt)),qe.set(Re),qe.set(Ie.subarray(0,lt),Re.length)}else{var ct=Be-Ie.length,bt=Re.length-ct;Ue.set(Re.subarray(bt)),Ue.set(Ie,ct),qe.set(Re.subarray(0,bt))}else Ue=Re.concat(Ie),qe=Be>=0&&Be<Ue.length?Ue.splice(0,Ue.length-Be):[];return[Ue,qe]}),Ee=a.redraw(ge),De=[ge,Ae.update,we,Ae.maxPoints];return p.add(ge,a.prependTraces,De,ue,arguments),Ee},a.moveTraces=function ue(ge,be,we){var ke,Ae=[],Ee=[],De=ue,Re=ue,Ie=[ge=c.getGraphDiv(ge),we,be],Be=[ge,be,we];if(E(ge,be,we),be=Array.isArray(be)?be:[be],we===void 0)for(we=[],ke=0;ke<be.length;ke++)we.push(-be.length+ke);for(we=Array.isArray(we)?we:[we],be=j(be,ge.data.length-1),we=j(we,ge.data.length-1),ke=0;ke<ge.data.length;ke++)be.indexOf(ke)===-1&&Ae.push(ge.data[ke]);for(ke=0;ke<be.length;ke++)Ee.push({newIndex:we[ke],trace:ge.data[be[ke]]});for(Ee.sort(function(qe,Ye){return qe.newIndex-Ye.newIndex}),ke=0;ke<Ee.length;ke+=1)Ae.splice(Ee[ke].newIndex,0,Ee[ke].trace);ge.data=Ae;var Ue=a.redraw(ge);return p.add(ge,De,Ie,Re,Be),Ue},a.prependTraces=function ue(ge,be,we,ke){var Ae=W(ge=c.getGraphDiv(ge),be,we,ke,function(Re,Ie,Be){var Ue,qe;if(c.isTypedArray(Re))if(Be<=0){var Ye=new Re.constructor(0),at=G(Ie,Re);Be<0?(Ue=at,qe=Ye):(Ue=Ye,qe=at)}else if(Ue=new Re.constructor(Be),qe=new Re.constructor(Re.length+Ie.length-Be),Be===Ie.length)Ue.set(Ie),qe.set(Re);else if(Be<Ie.length){var lt=Ie.length-Be;Ue.set(Ie.subarray(0,lt)),qe.set(Ie.subarray(lt)),qe.set(Re,lt)}else{var ct=Be-Ie.length;Ue.set(Ie),Ue.set(Re.subarray(0,ct),Ie.length),qe.set(Re.subarray(ct))}else Ue=Ie.concat(Re),qe=Be>=0&&Be<Ue.length?Ue.splice(Be,Ue.length):[];return[Ue,qe]}),Ee=a.redraw(ge),De=[ge,Ae.update,we,Ae.maxPoints];return p.add(ge,a.extendTraces,De,ue,arguments),Ee},a.newPlot=function(ue,ge,be,we){return ue=c.getGraphDiv(ue),v.cleanPlot([],{},ue._fullData||[],ue._fullLayout||{}),v.purge(ue),a._doPlot(ue,ge,be,we)},a._doPlot=function(ue,ge,be,we){var ke;if(ue=c.getGraphDiv(ue),h.init(ue),c.isPlainObject(ge)){var Ae=ge;ge=Ae.data,be=Ae.layout,we=Ae.config,ke=Ae.frames}if(h.triggerHandler(ue,"plotly_beforeplot",[ge,be,we])===!1)return Promise.reject();ge||be||c.isPlotDiv(ue)||c.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",ue),$(ue,we),be||(be={}),l.select(ue).classed("js-plotly-plot",!0),_.makeTester(),Array.isArray(ue._promises)||(ue._promises=[]);var Ee=(ue.data||[]).length===0&&Array.isArray(ge);Array.isArray(ge)&&(P.cleanData(ge),Ee?ue.data=ge:ue.data.push.apply(ue.data,ge),ue.empty=!1),ue.layout&&!Ee||(ue.layout=P.cleanLayout(be)),v.supplyDefaults(ue);var De=ue._fullLayout,Re=De._has("cartesian");De._replotting=!0,(Ee||De._shouldCreateBgLayer)&&(function(bt){var ze=l.select(bt),Ne=bt._fullLayout;if(Ne._calcInverseTransform=xe,Ne._calcInverseTransform(bt),Ne._container=ze.selectAll(".plot-container").data([0]),Ne._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Ne._paperdiv=Ne._container.selectAll(".svg-container").data([0]),Ne._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Ne._glcontainer=Ne._paperdiv.selectAll(".gl-container").data([{}]),Ne._glcontainer.enter().append("div").classed("gl-container",!0),Ne._paperdiv.selectAll(".main-svg").remove(),Ne._paperdiv.select(".modebar-container").remove(),Ne._paper=Ne._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Ne._toppaper=Ne._paperdiv.append("svg").classed("main-svg",!0),Ne._modebardiv=Ne._paperdiv.append("div"),delete Ne._modeBar,Ne._hoverpaper=Ne._paperdiv.append("svg").classed("main-svg",!0),!Ne._uid){var Qe={};l.selectAll("defs").each(function(){this.id&&(Qe[this.id.split("-")[1]]=1)}),Ne._uid=c.randstr(Qe)}Ne._paperdiv.selectAll(".main-svg").attr(T.svgAttrs),Ne._defs=Ne._paper.append("defs").attr("id","defs-"+Ne._uid),Ne._clips=Ne._defs.append("g").classed("clips",!0),Ne._topdefs=Ne._toppaper.append("defs").attr("id","topdefs-"+Ne._uid),Ne._topclips=Ne._topdefs.append("g").classed("clips",!0),Ne._bgLayer=Ne._paper.append("g").classed("bglayer",!0),Ne._draggers=Ne._paper.append("g").classed("draglayer",!0);var it=Ne._paper.append("g").classed("layer-below",!0);Ne._imageLowerLayer=it.append("g").classed("imagelayer",!0),Ne._shapeLowerLayer=it.append("g").classed("shapelayer",!0),Ne._cartesianlayer=Ne._paper.append("g").classed("cartesianlayer",!0),Ne._polarlayer=Ne._paper.append("g").classed("polarlayer",!0),Ne._smithlayer=Ne._paper.append("g").classed("smithlayer",!0),Ne._ternarylayer=Ne._paper.append("g").classed("ternarylayer",!0),Ne._geolayer=Ne._paper.append("g").classed("geolayer",!0),Ne._funnelarealayer=Ne._paper.append("g").classed("funnelarealayer",!0),Ne._pielayer=Ne._paper.append("g").classed("pielayer",!0),Ne._iciclelayer=Ne._paper.append("g").classed("iciclelayer",!0),Ne._treemaplayer=Ne._paper.append("g").classed("treemaplayer",!0),Ne._sunburstlayer=Ne._paper.append("g").classed("sunburstlayer",!0),Ne._indicatorlayer=Ne._toppaper.append("g").classed("indicatorlayer",!0),Ne._glimages=Ne._paper.append("g").classed("glimages",!0);var kt=Ne._toppaper.append("g").classed("layer-above",!0);Ne._imageUpperLayer=kt.append("g").classed("imagelayer",!0),Ne._shapeUpperLayer=kt.append("g").classed("shapelayer",!0),Ne._selectionLayer=Ne._toppaper.append("g").classed("selectionlayer",!0),Ne._infolayer=Ne._toppaper.append("g").classed("infolayer",!0),Ne._menulayer=Ne._toppaper.append("g").classed("menulayer",!0),Ne._zoomlayer=Ne._toppaper.append("g").classed("zoomlayer",!0),Ne._hoverlayer=Ne._hoverpaper.append("g").classed("hoverlayer",!0),Ne._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),bt.emit("plotly_framework")}(ue),De._shouldCreateBgLayer&&delete De._shouldCreateBgLayer),_.initGradients(ue),_.initPatterns(ue),Ee&&g.saveShowSpikeInitial(ue);var Ie=!ue.calcdata||ue.calcdata.length!==(ue._fullData||[]).length;Ie&&v.doCalcdata(ue);for(var Be=0;Be<ue.calcdata.length;Be++)ue.calcdata[Be][0].trace=ue._fullData[Be];ue._context.responsive?ue._responsiveChartHandler||(ue._responsiveChartHandler=function(){c.isHidden(ue)||v.resize(ue)},window.addEventListener("resize",ue._responsiveChartHandler)):c.clearResponsive(ue);var Ue=c.extendFlat({},De._size),qe=0;function Ye(){if(v.clearAutoMarginIds(ue),D.drawMarginPushers(ue),g.allowAutoMargin(ue),ue._fullLayout.title.text&&ue._fullLayout.title.automargin&&v.allowAutoMargin(ue,"title.automargin"),De._has("pie"))for(var bt=ue._fullData,ze=0;ze<bt.length;ze++){var Ne=bt[ze];Ne.type==="pie"&&Ne.automargin&&v.allowAutoMargin(ue,"pie."+Ne.uid+".automargin")}return v.doAutoMargin(ue),v.previousPromises(ue)}function at(){ue._transitioning||(D.doAutoRangeAndConstraints(ue),Ee&&g.saveRangeInitial(ue),m.getComponentMethod("rangeslider","calcAutorange")(ue))}var lt=[v.previousPromises,function(){if(ke)return a.addFrames(ue,ke)},function bt(){for(var ze=De._basePlotModules,Ne=0;Ne<ze.length;Ne++)ze[Ne].drawFramework&&ze[Ne].drawFramework(ue);!De._glcanvas&&De._has("gl")&&(De._glcanvas=De._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(Je){return Je.key}),De._glcanvas.enter().append("canvas").attr("class",function(Je){return"gl-canvas gl-canvas-"+Je.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var Qe=ue._context.plotGlPixelRatio;if(De._glcanvas){De._glcanvas.attr("width",De.width*Qe).attr("height",De.height*Qe).style("width",De.width+"px").style("height",De.height+"px");var it=De._glcanvas.data()[0].regl;if(it&&(Math.floor(De.width*Qe)!==it._gl.drawingBufferWidth||Math.floor(De.height*Qe)!==it._gl.drawingBufferHeight)){var kt="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!qe)return c.log(kt+" Clearing graph and plotting again."),v.cleanPlot([],{},ue._fullData,De),v.supplyDefaults(ue),De=ue._fullLayout,v.doCalcdata(ue),qe++,bt();c.error(kt)}}return De.modebar.orientation==="h"?De._modebardiv.style("height",null).style("width","100%"):De._modebardiv.style("width",null).style("height",De.height+"px"),v.previousPromises(ue)},Ye,function(){if(v.didMarginChange(Ue,De._size))return c.syncOrAsync([Ye,D.layoutStyles],ue)}];Re&<.push(function(){if(Ie)return c.syncOrAsync([m.getComponentMethod("shapes","calcAutorange"),m.getComponentMethod("annotations","calcAutorange"),at],ue);at()}),lt.push(D.layoutStyles),Re&<.push(function(){return g.draw(ue,Ee?"":"redraw")},function(bt){bt._fullLayout._insideTickLabelsAutorange&&U(bt,bt._fullLayout._insideTickLabelsAutorange).then(function(){bt._fullLayout._insideTickLabelsAutorange=void 0})}),lt.push(D.drawData,D.finalDraw,k,v.addLinks,v.rehover,v.redrag,v.reselect,v.doAutoMargin,function(bt){bt._fullLayout._insideTickLabelsAutorange&&Ee&&g.saveRangeInitial(bt,!0)},v.previousPromises);var ct=c.syncOrAsync(lt,ue);return ct&&ct.then||(ct=Promise.resolve()),ct.then(function(){return A(ue),ue})},a.purge=function(ue){var ge=(ue=c.getGraphDiv(ue))._fullLayout||{},be=ue._fullData||[];return v.cleanPlot([],{},be,ge),v.purge(ue),h.purge(ue),ge._container&&ge._container.remove(),delete ue._context,ue},a.react=function(ue,ge,be,we){var ke,Ae;ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var Ee=ue._fullData,De=ue._fullLayout;if(c.isPlotDiv(ue)&&Ee&&De){if(c.isPlainObject(ge)){var Re=ge;ge=Re.data,be=Re.layout,we=Re.config,ke=Re.frames}var Ie=!1;if(we){var Be=c.extendDeep({},ue._context);ue._context=void 0,$(ue,we),Ie=de(Be,ue._context)}ue.data=ge||[],P.cleanData(ue.data),ue.layout=be||{},P.cleanLayout(ue.layout),function(wt,ve,_e,Ve){var We,Ze,Ge,Ke,nt,st,mt,tt,Ft,Vt,St=Ve._preGUI,Nt=[],Dt={},gt={};for(We in St){if(nt=Oe(We,Te)){if(Ft=nt.head,Vt=nt.tail,Ze=nt.attr||Ft+".uirevision",(Ke=(Ge=d(Ve,Ze).get())&&Me(Ze,ve))&&Ke===Ge){if((st=St[We])===null&&(st=void 0),J(tt=(mt=d(ve,We)).get(),st)){tt===void 0&&Vt==="autorange"&&Nt.push(Ft),mt.set(q(d(Ve,We).get()));continue}if(Vt==="autorange"||Vt.substr(0,6)==="range["){var ht=St[Ft+".range[0]"],yt=St[Ft+".range[1]"],qt=St[Ft+".autorange"];if(qt||qt===null&&ht===null&&yt===null){if(!(Ft in Dt)){var Et=d(ve,Ft).get();Dt[Ft]=Et&&(Et.autorange||Et.autorange!==!1&&(!Et.range||Et.range.length!==2))}if(Dt[Ft]){mt.set(q(d(Ve,We).get()));continue}}}}}else c.warn("unrecognized GUI edit: "+We);delete St[We],nt&&nt.tail.substr(0,6)==="range["&&(gt[nt.head]=1)}for(var jt=0;jt<Nt.length;jt++){var Tt=Nt[jt];if(gt[Tt]){var Ot=d(ve,Tt).get();Ot&&delete Ot.autorange}}var At=Ve._tracePreGUI;for(var Lt in At){var Rt,$t=At[Lt],Yt=null;for(We in $t){if(!Yt){var Xt=ce(Lt,_e);if(Xt<0){delete At[Lt];break}var Bt=ye(Lt,wt,(Rt=_e[Xt]._fullInput).index);if(Bt<0){delete At[Lt];break}Yt=wt[Bt]}if(nt=Oe(We,Se)){if(nt.attr?Ke=(Ge=d(Ve,nt.attr).get())&&Me(nt.attr,ve):(Ge=Rt.uirevision,(Ke=Yt.uirevision)===void 0&&(Ke=ve.uirevision)),Ke&&Ke===Ge&&((st=$t[We])===null&&(st=void 0),J(tt=(mt=d(Yt,We)).get(),st))){mt.set(q(d(Rt,We).get()));continue}}else c.warn("unrecognized GUI edit: "+We+" in trace uid "+Lt);delete $t[We]}}}(ue.data,ue.layout,Ee,De),v.supplyDefaults(ue,{skipUpdateCalc:!0});var Ue=ue._fullData,qe=ue._fullLayout,Ye=qe.datarevision===void 0,at=qe.transition,lt=function(wt,ve,_e,Ve,We){var Ze=O.layoutFlags();return Ze.arrays={},Ze.rangesAltered={},Ze.nChanges=0,Ze.nChangesAnim=0,ne(ve,_e,[],{getValObject:function(Ge){return y.getLayoutValObject(_e,Ge)},flags:Ze,immutable:Ve,transition:We,gd:wt}),(Ze.plot||Ze.calc)&&(Ze.layoutReplot=!0),We&&Ze.nChanges&&Ze.nChangesAnim&&(Ze.anim=Ze.nChanges===Ze.nChangesAnim?"all":"some"),Ze}(ue,De,qe,Ye,at),ct=lt.newDataRevision,bt=function(wt,ve,_e,Ve,We,Ze){var Ge=ve.length===_e.length;if(!We&&!Ge)return{fullReplot:!0,calc:!0};var Ke,nt,st=O.traceFlags();st.arrays={},st.nChanges=0,st.nChangesAnim=0;var mt={getValObject:function(Ft){var Vt=y.getTraceValObject(nt,Ft);return!nt._module.animatable&&Vt.anim&&(Vt.anim=!1),Vt},flags:st,immutable:Ve,transition:We,newDataRevision:Ze,gd:wt},tt={};for(Ke=0;Ke<ve.length;Ke++)if(_e[Ke]){if(nt=_e[Ke]._fullInput,v.hasMakesDataTransform(nt)&&(nt=_e[Ke]),tt[nt.uid])continue;tt[nt.uid]=1,ne(ve[Ke]._fullInput,nt,[],mt)}return(st.calc||st.plot)&&(st.fullReplot=!0),We&&st.nChanges&&st.nChangesAnim&&(st.anim=st.nChanges===st.nChangesAnim&&Ge?"all":"some"),st}(ue,Ee,Ue,Ye,at,ct);if(le(ue)&&(lt.layoutReplot=!0),bt.calc||lt.calc){ue.calcdata=void 0;for(var ze=Object.getOwnPropertyNames(qe),Ne=0;Ne<ze.length;Ne++){var Qe=ze[Ne],it=Qe.substring(0,5);if(it==="xaxis"||it==="yaxis"){var kt=qe[Qe]._emptyCategories;kt&&kt()}}}else v.supplyDefaultsUpdateCalc(ue.calcdata,Ue);var Je=[];if(ke&&(ue._transitionData={},v.createTransitionData(ue),Je.push(function(){return a.addFrames(ue,ke)})),qe.transition&&!Ie&&(bt.anim||lt.anim))lt.ticks&&Je.push(D.doTicksRelayout),v.doCalcdata(ue),D.doAutoRangeAndConstraints(ue),Je.push(function(){return v.transitionFromReact(ue,bt,lt,De)});else if(bt.fullReplot||lt.layoutReplot||Ie)ue._fullLayout._skipDefaults=!0,Je.push(a._doPlot);else{for(var ut in lt.arrays){var pt=lt.arrays[ut];if(pt.length){var It=m.getComponentMethod(ut,"drawOne");if(It!==c.noop)for(var Mt=0;Mt<pt.length;Mt++)It(ue,pt[Mt]);else{var zt=m.getComponentMethod(ut,"draw");if(zt===c.noop)throw new Error("cannot draw components: "+ut);zt(ue)}}}Je.push(v.previousPromises),bt.style&&Je.push(D.doTraceStyle),(bt.colorbars||lt.colorbars)&&Je.push(D.doColorBars),lt.legend&&Je.push(D.doLegend),lt.layoutstyle&&Je.push(D.layoutStyles),lt.axrange&&Y(Je),lt.ticks&&Je.push(D.doTicksRelayout),lt.modebar&&Je.push(D.doModeBar),lt.camera&&Je.push(D.doCamera),Je.push(A)}Je.push(v.rehover,v.redrag,v.reselect),(Ae=c.syncOrAsync(Je,ue))&&Ae.then||(Ae=Promise.resolve(ue))}else Ae=a.newPlot(ue,ge,be,we);return Ae.then(function(){return ue.emit("plotly_react",{data:ge,layout:be}),ue})},a.redraw=function(ue){if(ue=c.getGraphDiv(ue),!c.isPlotDiv(ue))throw new Error("This element is not a Plotly plot: "+ue);return P.cleanData(ue.data),P.cleanLayout(ue.layout),ue.calcdata=void 0,a._doPlot(ue).then(function(){return ue.emit("plotly_redraw"),ue})},a.relayout=U,a.restyle=L,a.setPlotConfig=function(ue){return c.extendFlat(S,ue)},a.update=se,a._guiRelayout=pe(U),a._guiRestyle=pe(L),a._guiUpdate=pe(se),a._storeDirectGUIEdit=function(ue,ge,be){for(var we in be)V(we,d(ue,we).get(),be[we],ge)}},72075:function(o){var a={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},n={};(function l(f,s){for(var c in f){var d=f[c];d.valType?s[c]=d.dflt:(s[c]||(s[c]={}),l(d,s[c]))}})(a,n),o.exports={configAttributes:a,dfltConfig:n}},86281:function(o,a,n){var l=n(73972),f=n(71828),s=n(9012),c=n(10820),d=n(31391),h=n(85594),p=n(72075).configAttributes,m=n(30962),y=f.extendDeepAll,v=f.isPlainObject,g=f.isArrayOrTypedArray,b=f.nestedProperty,x=f.valObjectMeta,_="_isSubplotObj",w="_isLinkedToArray",k="_deprecated",T=[_,w,"_arrayAttrRegexps",k];function M(R,F,A){if(!R)return!1;if(R._isLinkedToArray){if(S(F[A]))A++;else if(A<F.length)return!1}for(;A<F.length;A++){var z=R[F[A]];if(!v(z)||(R=z,A===F.length-1))break;if(R._isLinkedToArray){if(!S(F[++A]))return!1}else if(R.valType==="info_array"){var B=F[++A];if(!S(B))return!1;var $=R.items;if(Array.isArray($)){if(B>=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,c),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z<F.attr.length;z++)D(A,F,F.attr[z]);else D(A,F,F.attr==="subplot"?F.name:F.attr);for(R in l.componentsRegistry){var B=(F=l.componentsRegistry[R]).schema;if(B&&(B.subplots||B.layout)){var $=B.subplots;if($&&$.xaxis&&!$.yaxis)for(var j in $.xaxis)delete A.yaxis[j];delete A.xaxis.shift,delete A.xaxis.autoshift}else F.name==="colorscale"?y(A,F.layoutAttributes):F.layoutAttributes&&O(A,F.layoutAttributes,F.name)}return{layoutAttributes:P(A)}}function P(R){return function(F){a.crawl(F,function(A,z,B){a.isValObject(A)?A.arrayOk!==!0&&A.valType!=="data_array"||(B[z+"src"]={valType:"string",editType:"none"}):v(A)&&(A.role="object")})}(R),function(F){a.crawl(F,function(A,z,B){if(A){var $=A[w];$&&(delete A[w],B[z]={items:{}},B[z].items[$]=A,B[z].role="object")}})}(R),function(F){(function A(z){for(var B in z)if(v(z[B]))A(z[B]);else if(Array.isArray(z[B]))for(var $=0;$<z[B].length;$++)A(z[B][$]);else z[B]instanceof RegExp&&(z[B]=z[B].toString())})(F)}(R),R}function D(R,F,A){var z=b(R,A),B=y({},F.layoutAttributes);B[_]=!0,z.set(B)}function O(R,F,A){var z=b(R,A);z.set(y(z.get()||{},F))}a.IS_SUBPLOT_OBJ=_,a.IS_LINKED_TO_ARRAY=w,a.DEPRECATED=k,a.UNDERSCORE_ATTRS=T,a.get=function(){var R={};l.allTypes.forEach(function(z){R[z]=function(B){var $,j;j=($=l.modules[B]._module).basePlotModule;var N={type:null},E=y({},s),W=y({},$.attributes);a.crawl(W,function(q,H,V,te,ee){b(E,ee).set(void 0),q===void 0&&b(W,ee).set(void 0)}),y(N,E),l.traceIs(B,"noOpacity")&&delete N.opacity,l.traceIs(B,"showLegend")||(delete N.showlegend,delete N.legendgroup),l.traceIs(B,"noHover")&&(delete N.hoverinfo,delete N.hoverlabel),$.selectPoints||delete N.selectedpoints,y(N,W),j.attributes&&y(N,j.attributes),N.type=B;var G={meta:$.meta||{},categories:$.categories||{},animatable:!!$.animatable,type:B,attributes:P(N)};if($.layoutAttributes){var L={};y(L,$.layoutAttributes),G.layoutAttributes=P(L)}return $.animatable||a.crawl(G,function(q){a.isValObject(q)&&"anim"in q&&delete q.anim}),G}(z)});var F,A={};return Object.keys(l.transformsRegistry).forEach(function(z){A[z]=function(B){var $=l.transformsRegistry[B],j=y({},$.attributes);return Object.keys(l.componentsRegistry).forEach(function(N){var E=l.componentsRegistry[N];E.schema&&E.schema.transforms&&E.schema.transforms[B]&&Object.keys(E.schema.transforms[B]).forEach(function(W){O(j,E.schema.transforms[B][W],W)})}),{attributes:P(j)}}(z)}),{defs:{valObjects:x,metaKeys:T.concat(["description","role","editType","impliedEdits"]),editType:{traces:m.traces,layout:m.layout},impliedEdits:{}},traces:R,layout:C(),transforms:A,frames:(F={frames:y({},d)},P(F),F.frames),animation:P(h),config:P(p)}},a.crawl=function(R,F,A,z){var B=A||0;z=z||"",Object.keys(R).forEach(function($){var j=R[$];if(T.indexOf($)===-1){var N=(z?z+".":"")+$;F(j,$,R,B,N),a.isValObject(j)||v(j)&&$!=="impliedEdits"&&a.crawl(j,F,B+1,N)}})},a.isValObject=function(R){return R&&R.valType!==void 0},a.findArrayAttributes=function(R){var F,A,z=[],B=[],$=[];function j(q,H,V,te){B=B.slice(0,te).concat([H]),$=$.slice(0,te).concat([q&&q._isLinkedToArray]),q&&(q.valType==="data_array"||q.arrayOk===!0)&&(B[te-1]!=="colorbar"||H!=="ticktext"&&H!=="tickvals")&&N(F,0,"")}function N(q,H,V){var te=q[B[H]],ee=V+B[H];if(H===B.length-1)g(te)&&z.push(A+ee);else if($[H]){if(Array.isArray(te))for(var U=0;U<te.length;U++)v(te[U])&&N(te[U],H+1,ee+"["+U+"].")}else v(te)&&N(te,H+1,ee+".")}F=R,A="",a.crawl(s,j),R._module&&R._module.attributes&&a.crawl(R._module.attributes,j);var E=R.transforms;if(E)for(var W=0;W<E.length;W++){var G=E[W],L=G._module;L&&(A="transforms["+W+"].",F=G,a.crawl(L.attributes,j))}return z},a.getTraceValObject=function(R,F){var A,z,B=F[0],$=1;if(B==="transforms"){if(F.length===1)return s.transforms;var j=R.transforms;if(!Array.isArray(j)||!j.length)return!1;var N=F[1];if(!S(N)||N>=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$<W.length;$++){if((N=W[$]).attrRegex&&N.attrRegex.test(B)){if(N.layoutAttrOverrides)return N.layoutAttrOverrides;!G&&N.layoutAttributes&&(G=N.layoutAttributes)}var L=N.baseLayoutAttrOverrides;if(L&&B in L)return L[B]}if(G)return G}var q=z._modules;if(q){for($=0;$<q.length;$++)if((E=q[$].layoutAttributes)&&B in E)return E[B]}for(j in l.componentsRegistry){if((N=l.componentsRegistry[j]).name==="colorscale"&&B.indexOf("coloraxis")===0)return N.layoutAttributes[B];if(!N.schema&&B===N.name)return N.layoutAttributes}return B in c&&c[B]}(R,F[0]);return M(A,F,1)}},44467:function(o,a,n){var l=n(71828),f=n(9012),s="templateitemname",c={name:{valType:"string",editType:"none"}};function d(p){return p&&typeof p=="string"}function h(p){var m=p.length-1;return p.charAt(m)!=="s"&&l.warn("bad argument to arrayDefaultKey: "+p),p.substr(0,p.length-1)+"defaults"}c[s]={valType:"string",editType:"calc"},a.templatedArray=function(p,m){return m._isLinkedToArray=p,m.name=c.name,m[s]=c[s],m},a.traceTemplater=function(p){var m,y,v={};for(m in p)y=p[m],Array.isArray(y)&&y.length&&(v[m]=0);return{newTrace:function(g){var b={type:m=l.coerce(g,{},f,"type"),_template:null};if(m in v){y=p[m];var x=v[m]%y.length;v[m]++,b._template=y[x]}return b}}},a.newContainer=function(p,m,y){var v=p._template,g=v&&(v[m]||y&&v[y]);return l.isPlainObject(g)||(g=null),p[m]={_template:g}},a.arrayTemplater=function(p,m,y){var v=p._template,g=v&&v[h(m)],b=v&&v[m];Array.isArray(b)&&b.length||(b=[]);var x={};return{newItem:function(_){var w={name:_.name,_input:_},k=w[s]=_[s];if(!d(k))return w._template=g,w;for(var T=0;T<b.length;T++){var M=b[T];if(M.name===k)return x[k]=1,w._template=M,w}return w[y]=_[y]||!1,w._template=!1,w},defaultItems:function(){for(var _=[],w=0;w<b.length;w++){var k=b[w],T=k.name;if(d(T)&&!x[T]){var M={_template:k,name:T,_input:{_templateitemname:T}};M[s]=k[s],_.push(M),x[T]=1}}return _}}},a.arrayDefaultKey=h,a.arrayEditor=function(p,m,y){var v=(l.nestedProperty(p,m).get()||[]).length,g=y._index,b=g>=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A<F.length;A++){var z=F[A][0],B=F[A][1];if(!(z[0]>=O[1]||z[1]<=O[0])&&B[0]<R[1]&&B[1]>R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R<W.length;R++){var L=(z=W[R])._anchorAxis;z._linepositions={},z._lw=m.crispRound(O,z.linewidth,1),z._mainLinePosition=G(z,L,z.side),z._mainMirrorPosition=z.mirror&&L?G(z,L,b.OPPOSITE_SIDE[z.side]):null}var q=[],H=[],V=[],te=p.opacity(j.paper_bgcolor)===1&&p.opacity(j.plot_bgcolor)===1&&j.paper_bgcolor===j.plot_bgcolor;for(F in j._plots)if((A=j._plots[F]).mainplot)A.bg&&A.bg.remove(),A.bg=void 0;else{var ee=A.xaxis.domain,U=A.yaxis.domain,Q=A.plotgroup;if(M(ee,U,V)){var Y=Q.node(),Z=A.bg=c.ensureSingle(Q,"rect","bg");Y.insertBefore(Z.node(),Y.childNodes[0]),H.push(F)}else Q.select("rect.bg").remove(),V.push([ee,U]),te||(q.push(F),H.push(F))}var X,re,ie,le,se,pe,Te,Se,Oe,Me,ce,ye,J,ne=j._bgLayer.selectAll(".bg").data(q);for(ne.enter().append("rect").classed("bg",!0),ne.exit().remove(),ne.each(function(Ie){j._plots[Ie].bg=l.select(this)}),R=0;R<H.length;R++)A=j._plots[H[R]],B=A.xaxis,$=A.yaxis,A.bg&&B._offset!==void 0&&$._offset!==void 0&&A.bg.call(m.setRect,B._offset-E,$._offset-E,B._length+2*E,$._length+2*E).call(p.fill,j.plot_bgcolor).style("stroke-width",0);if(!j._hasOnlyLargeSploms)for(F in j._plots){A=j._plots[F],B=A.xaxis,$=A.yaxis;var de,xe,ue=A.clipId="clip"+j._uid+F+"plot",ge=c.ensureSingleById(j._clips,"clipPath",ue,function(Ie){Ie.classed("plotclip",!0).append("rect")});A.clipRect=ge.select("rect").attr({width:B._length,height:$._length}),m.setTranslate(A.plot,B._offset,$._offset),A._hasClipOnAxisFalse?(de=null,xe=ue):(de=ue,xe=null),m.setClipUrl(A.plot,de,O),A.layerClipId=xe}function be(Ie){return"M"+X+","+Ie+"H"+re}function we(Ie){return"M"+B._offset+","+Ie+"h"+B._length}function ke(Ie){return"M"+Ie+","+Se+"V"+Te}function Ae(Ie){return $._shift!==void 0&&(Ie+=$._shift),"M"+Ie+","+$._offset+"v"+$._length}function Ee(Ie,Be,Ue){if(!Ie.showline||F!==Ie._mainSubplot)return"";if(!Ie._anchorAxis)return Ue(Ie._mainLinePosition);var qe=Be(Ie._mainLinePosition);return Ie.mirror&&(qe+=Be(Ie._mainMirrorPosition)),qe}for(F in j._plots){A=j._plots[F],B=A.xaxis,$=A.yaxis;var De="M0,0";C(B,F)&&(se=D(B,"left",$,W),X=B._offset-(se?E+se:0),pe=D(B,"right",$,W),re=B._offset+B._length+(pe?E+pe:0),ie=G(B,$,"bottom"),le=G(B,$,"top"),!(J=!B._anchorAxis||F!==B._mainSubplot)||B.mirror!=="allticks"&&B.mirror!=="all"||(B._linepositions[F]=[ie,le]),De=Ee(B,be,we),J&&B.showline&&(B.mirror==="all"||B.mirror==="allticks")&&(De+=be(ie)+be(le)),A.xlines.style("stroke-width",B._lw+"px").call(p.stroke,B.showline?B.linecolor:"rgba(0,0,0,0)")),A.xlines.attr("d",De);var Re="M0,0";C($,F)&&(ce=D($,"bottom",B,W),Te=$._offset+$._length+(ce?E:0),ye=D($,"top",B,W),Se=$._offset-(ye?E:0),Oe=G($,B,"left"),Me=G($,B,"right"),!(J=!$._anchorAxis||F!==$._mainSubplot)||$.mirror!=="allticks"&&$.mirror!=="all"||($._linepositions[F]=[Oe,Me]),Re=Ee($,ke,Ae),J&&$.showline&&($.mirror==="all"||$.mirror==="allticks")&&(Re+=ke(Oe)+ke(Me)),A.ylines.style("stroke-width",$._lw+"px").call(p.stroke,$.showline?$.linecolor:"rgba(0,0,0,0)")),A.ylines.attr("d",Re)}return g.makeClipPaths(O),s.previousPromises(O)}function C(O,R){return(O.ticks||O.showline)&&(R===O._mainSubplot||O.mirror==="all"||O.mirror==="allticks")}function P(O,R,F){if(!F.showline||!F._lw)return!1;if(F.mirror==="all"||F.mirror==="allticks")return!0;var A=F._anchorAxis;if(!A)return!1;var z=b.FROM_BL[R];return F.side===R?A.domain[z]===O.domain[z]:F.mirror&&A.domain[1-z]===O.domain[1-z]}function D(O,R,F,A){if(P(O,R,F))return F._lw;for(var z=0;z<A.length;z++){var B=A[z];if(B._mainAxis===F._mainAxis&&P(O,R,B))return B._lw}return 0}a.layoutStyles=function(O){return c.syncOrAsync([s.doAutoMargin,S],O)},a.drawMainTitle=function(O){var R,F=O._fullLayout.title,A=O._fullLayout,z=function(G){var L=G.title,q="middle";return c.isRightAnchor(L)?q="end":c.isLeftAnchor(L)&&(q=T),q}(A),B=function(G){var L=G.title,q="0em";return c.isTopAnchor(L)?q=b.CAP_SHIFT+"em":c.isMiddleAnchor(L)&&(q=b.MID_SHIFT+"em"),q}(A),$=function(G,L){var q=G.title,H=G._size,V=0;return L!=="0em"&&L?L===b.CAP_SHIFT+"em"&&(V=q.pad.t):V=-q.pad.b,q.y==="auto"?H.t/2:q.yref==="paper"?H.t+H.h-H.h*q.y+V:G.height-G.height*q.y+V}(A,B),j=function(G,L){var q=G.title,H=G._size,V=0;return L===T?V=q.pad.l:L==="end"&&(V=-q.pad.r),q.xref==="paper"?H.l+H.w*q.x+V:G.width*q.x+V}(A,z);if(y.draw(O,"gtitle",{propContainer:A,propName:"title.text",placeholder:A._dfltTitle.plot,attributes:{x:j,y:$,"text-anchor":z,dy:B}}),F.text&&F.automargin){var N=l.selectAll(".gtitle"),E=m.bBox(N.node()).height,W=function(G,L,q){var H=L.y,V=L.yanchor,te=H>.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=c.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(c.isTopAnchor(Z)&&X==="t"||c.isBottomAnchor(Z)&&X==="b")&&pe<ie}(G,te,ee,L,H)?U[ee]=q:te.yref==="container"&&(Q[ee]=q,G._fullLayout._reservedMargin[V]=Q),s.allowAutoMargin(G,V),s.autoMargin(G,V,U)}(O,$,W,E),N.attr({x:j,y:$,"text-anchor":z,dy:(R=F.yanchor,R==="top"?b.CAP_SHIFT+.3+"em":R==="bottom"?"-0.3em":b.MID_SHIFT+"em")}).call(d.positionText,j,$))}},a.doTraceStyle=function(O){var R,F=O.calcdata,A=[];for(R=0;R<F.length;R++){var z=F[R],B=z[0]||{},$=B.trace||{},j=$._module||{},N=j.arraysToCalcdata;N&&N(z,$);var E=j.editStyle;E&&A.push({fn:E,cd0:B})}if(A.length){for(R=0;R<A.length;R++){var W=A[R];W.fn(O,W.cd0)}h(O),a.redrawReglTraces(O)}return s.style(O),f.getComponentMethod("legend","draw")(O),s.previousPromises(O)},a.doColorBars=function(O){return f.getComponentMethod("colorbar","draw")(O),s.previousPromises(O)},a.layoutReplot=function(O){var R=O.layout;return O.layout=void 0,f.call("_doPlot",O,"",R)},a.doLegend=function(O){return f.getComponentMethod("legend","draw")(O),s.previousPromises(O)},a.doTicksRelayout=function(O){return g.draw(O,"redraw"),O._fullLayout._hasOnlyLargeSploms&&(f.subplotsRegistry.splom.updateGrid(O),h(O),a.redrawReglTraces(O)),a.drawMainTitle(O),s.previousPromises(O)},a.doModeBar=function(O){var R=O._fullLayout;v.manage(O);for(var F=0;F<R._basePlotModules.length;F++){var A=R._basePlotModules[F].updateFx;A&&A(O)}return s.previousPromises(O)},a.doCamera=function(O){for(var R=O._fullLayout,F=R._subplots.gl3d,A=0;A<F.length;A++){var z=R[F[A]];z._scene.setViewport(z)}},a.drawData=function(O){var R=O._fullLayout;h(O);for(var F=R._basePlotModules,A=0;A<F.length;A++)F[A].plot(O);return a.redrawReglTraces(O),s.style(O),f.getComponentMethod("selections","draw")(O),f.getComponentMethod("shapes","draw")(O),f.getComponentMethod("annotations","draw")(O),f.getComponentMethod("images","draw")(O),R._replotting=!1,s.previousPromises(O)},a.redrawReglTraces=function(O){var R=O._fullLayout;if(R._has("regl")){var F,A,z=O._fullData,B=[],$=[];for(R._hasOnlyLargeSploms&&R._splomGrid.draw(),F=0;F<z.length;F++){var j=z[F];j.visible===!0&&j._length!==0&&(j.type==="splom"?R._splomScenes[j.uid].draw():j.type==="scattergl"?c.pushUnique(B,j.xaxis+j.yaxis):j.type==="scatterpolargl"&&c.pushUnique($,j.subplot))}for(F=0;F<B.length;F++)(A=R._plots[B[F]])._scene&&A._scene.draw();for(F=0;F<$.length;F++)(A=R[$[F]]._subplot)._scene&&A._scene.draw()}},a.doAutoRangeAndConstraints=function(O){for(var R,F=g.list(O,"",!0),A={},z=0;z<F.length;z++)if(!A[(R=F[z])._id]){A[R._id]=1,w(O,R),k(O,R);var B=R._matchGroup;if(B)for(var $ in B){var j=g.getFromId(O,$);k(O,j,R.range),A[$]=1}}_(O)},a.finalDraw=function(O){f.getComponentMethod("rangeslider","draw")(O),f.getComponentMethod("rangeselector","draw")(O)},a.drawMarginPushers=function(O){f.getComponentMethod("legend","draw")(O),f.getComponentMethod("rangeselector","draw")(O),f.getComponentMethod("sliders","draw")(O),f.getComponentMethod("updatemenus","draw")(O),f.getComponentMethod("colorbar","draw")(O)}},96318:function(o,a,n){var l=n(71828),f=l.isPlainObject,s=n(86281),c=n(74875),d=n(9012),h=n(44467),p=n(72075).dfltConfig;function m(k,T){k=l.extendDeep({},k);var M,S,C=Object.keys(k).sort();function P(A,z,B){if(f(z)&&f(A))m(A,z);else if(Array.isArray(z)&&Array.isArray(A)){var $=h.arrayTemplater({_template:k},B);for(S=0;S<z.length;S++){var j=z[S],N=$.newItem(j)._template;N&&m(N,j)}var E=$.defaultItems();for(S=0;S<E.length;S++)z.push(E[S]._template);for(S=0;S<z.length;S++)delete z[S].templateitemname}}for(M=0;M<C.length;M++){var D=C[M],O=k[D];if(D in T?P(O,T[D],D):T[D]=O,y(D)===D)for(var R in T){var F=y(R);R===F||F!==D||R in k||P(O,T[R],D)}}}function y(k){return k.replace(/[0-9]+$/,"")}function v(k,T,M,S,C){var P=C&&M(C);for(var D in k){var O=k[D],R=x(k,D,S),F=x(k,D,C),A=M(F);if(!A){var z=y(D);z!==D&&(A=M(F=x(k,z,C)))}if(!(P&&P===A||!A||A._noTemplating||A.valType==="data_array"||A.arrayOk&&Array.isArray(O)))if(!A.valType&&f(O))v(O,T,M,R,F);else if(A._isLinkedToArray&&Array.isArray(O))for(var B=!1,$=0,j={},N=0;N<O.length;N++){var E=O[N];if(f(E)){var W=E.name;if(W)j[W]||(v(E,T,M,x(O,$,R),x(O,$,F)),$++,j[W]=1);else if(!B){var G=x(k,h.arrayDefaultKey(D),S),L=x(O,$,R);v(E,T,M,L,x(O,$,F));var q=l.nestedProperty(T,L);l.nestedProperty(T,G).set(q.get()),q.set(null),B=!0}}}else l.nestedProperty(T,R).set(O)}}function g(k,T){return s.getLayoutValObject(k,l.nestedProperty({},T).parts)}function b(k,T){return s.getTraceValObject(k,l.nestedProperty({},T).parts)}function x(k,T,M){return M?Array.isArray(k)?M+"["+T+"]":M+"."+T:T}function _(k){for(var T=0;T<k.length;T++)if(f(k[T]))return!0}function w(k){var T;switch(k.code){case"data":T="The template has no key data.";break;case"layout":T="The template has no key layout.";break;case"missing":T=k.path?"There are no templates for item "+k.path+" with name "+k.templateitemname:"There are no templates for trace "+k.index+", of type "+k.traceType+".";break;case"unused":T=k.path?"The template item at "+k.path+" was not used in constructing the plot.":k.dataCount?"Some of the templates of type "+k.traceType+" were not used. The template has "+k.templateCount+" traces, the data only has "+k.dataCount+" of this type.":"The template has "+k.templateCount+" traces of type "+k.traceType+" but there are none in the data.";break;case"reused":T="Some of the templates of type "+k.traceType+" were used more than once. The template has "+k.templateCount+" traces, the data has "+k.dataCount+" of this type."}return k.msg=T,k}a.makeTemplate=function(k){k=l.isPlainObject(k)?k:l.getGraphDiv(k),k=l.extendDeep({_context:p},{data:k.data,layout:k.layout}),c.supplyDefaults(k);var T=k.data||[],M=k.layout||{};M._basePlotModules=k._fullLayout._basePlotModules,M._modules=k._fullLayout._modules;var S={data:{},layout:{}};T.forEach(function($){var j={};v($,j,b.bind(null,$));var N=l.coerce($,{},d,"type"),E=S.data[N];E||(E=S.data[N]=[]),E.push(j)}),v(M,S.layout,g.bind(null,M)),delete S.layout.template;var C=M.template;if(f(C)){var P,D,O,R,F,A,z=C.layout;f(z)&&m(z,S.layout);var B=C.data;if(f(B)){for(D in S.data)if(O=B[D],Array.isArray(O)){for(A=(F=S.data[D]).length,R=O.length,P=0;P<A;P++)m(O[P%R],F[P]);for(P=A;P<R;P++)F.push(l.extendDeep({},O[P]))}for(D in B)D in S.data||(S.data[D]=l.extendDeep([],B[D]))}}return S},a.validateTemplate=function(k,T){var M=l.extendDeep({},{_context:p,data:k.data,layout:k.layout}),S=M.layout||{};f(T)||(T=S.template||{});var C=T.layout,P=T.data,D=[];M.layout=S,M.layout.template=T,c.supplyDefaults(M);var O=M._fullLayout,R=M._fullData,F={};if(f(C)?(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"&&f(W[L])){var q,H=y(L),V=[];for(q=0;q<G.length;q++)V.push(x(W,L,G[q])),H!==L&&V.push(x(W,H,G[q]));for(q=0;q<V.length;q++)F[V[q]]=1;E(W[L],V)}}(O,["layout"]),function E(W,G){for(var L in W)if(L.indexOf("defaults")===-1&&f(W[L])){var q=x(W,L,G);F[q]?E(W[L],q):D.push({code:"unused",path:q})}}(C,"layout")):D.push({code:"layout"}),f(P)){for(var A,z={},B=0;B<R.length;B++){var $=R[B];z[A=$.type]=(z[A]||0)+1,$._fullInput._template||D.push({code:"missing",index:$._fullInput.index,traceType:A})}for(A in P){var j=P[A].length,N=z[A]||0;j>N?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),c=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||c.validate(g[N],y[N])}if(g=g||{},c.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=c.getGraphDiv(v),b=c.extendDeep([],v.data),x=c.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+c.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return c.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=c.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=c.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=c.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),c=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;O<D.length;O++){var R=D[O];if(R!=="transforms"){var F=P.slice();F.push(R);var A=k[R],z=T[R],B=x(M,R),$=(B||{}).valType,j=$==="info_array",N=$==="colorscale",E=(B||{}).items;if(b(M,R))if(d(A)&&d(z)&&$!=="any")m(A,z,B,S,C,F);else if(j&&h(A)){A.length>z.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;G<V;G++)if(h(A[G])){A[G].length>z[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G<V;G++)L=te?E[G]:E,q=A[G],H=z[G],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G),q,H)):S.push(g("value",C,F.concat(G),q))}else if(B.items&&!j&&h(A)){var U,Q,Y=E[Object.keys(E)[0]],Z=[];for(U=0;U<z.length;U++){var X=z[U]._index||U;if((Q=F.slice()).push(X),d(A[X])&&d(z[U])){Z.push(X);var re=A[X],ie=z[U];d(re)&&re.visible!==!1&&ie.visible===!1?S.push(g("invisible",C,Q)):m(re,ie,Y,S,C,Q)}}for(U=0;U<A.length;U++)(Q=F.slice()).push(U),d(A[U])?Z.indexOf(U)===-1&&S.push(g("unused",C,Q)):S.push(g("object",C,Q,A[U]))}else!d(A)&&d(z)?S.push(g("object",C,F,A)):p(A)||!p(z)||j||N?R in T?l.validate(A,B)?B.valType==="enumerated"&&(B.coerceNumber&&A!==+z||A!==z)&&S.push(g("dynamic",C,F,A,z)):S.push(g("value",C,F,A)):S.push(g("unused",C,F,A)):S.push(g("array",C,F,A));else S.push(g("schema",C,F))}}return S}o.exports=function(k,T){k===void 0&&(k=[]),T===void 0&&(T={});var M,S,C=s.get(),P=[],D={_context:l.extendFlat({},c)};h(k)?(D.data=l.extendDeep([],k),M=k):(D.data=[],M=[],P.push(g("array","data"))),d(T)?(D.layout=l.extendDeep({},T),S=T):(D.layout={},S={},arguments.length>1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F<R;F++){var A=M[F],z=["data",F];if(d(A)){var B=O[F],$=B.type,j=C.traces[$].attributes;j.type={valType:"enumerated",values:[$]},B.visible===!1&&A.visible!==!1&&P.push(g("invisible",z)),m(A,B,j,P,z);var N=A.transforms,E=B.transforms;if(N){h(N)||P.push(g("array",z,["transforms"])),z.push("transforms");for(var W=0;W<N.length;W++){var G=["transforms",W],L=N[W].type;if(d(N[W])){var q=C.transforms[L]?C.transforms[L].attributes:{};q.type={valType:"enumerated",values:Object.keys(C.transforms)},m(N[W],E[W],q,P,z,G)}else P.push(g("object",z,G))}}}else P.push(g("object",z))}var H=D._fullLayout,V=function(te,ee){for(var U=te.layout.layoutAttributes,Q=0;Q<ee.length;Q++){var Y=ee[Q],Z=te.traces[Y.type],X=Z.layoutAttributes;X&&(Y.subplot?l.extendFlat(U[Z.attributes.subplot.dflt],X):l.extendFlat(U,X))}return U}(C,O);return m(S,H,V,P,"layout"),P.length===0?void 0:P};var y={object:function(k,T){return(k==="layout"&&T===""?"The layout argument":k[0]==="data"&&T===""?"Trace "+k[1]+" in the data argument":v(k)+"key "+T)+" must be linked to an object container"},array:function(k,T){return(k==="data"?"The data argument":v(k)+"key "+T)+" must be linked to an array container"},schema:function(k,T){return v(k)+"key "+T+" is not part of the schema"},unused:function(k,T,M){var S=d(M)?"container":"key";return v(k)+S+" "+T+" did not get coerced"},dynamic:function(k,T,M,S){return[v(k)+"key",T,"(set to '"+M+"')","got reset to","'"+S+"'","during defaults."].join(" ")},invisible:function(k,T){return(T?v(k)+"item "+T:"Trace "+k[1])+" got defaulted to be not visible"},value:function(k,T,M){return[v(k)+"key "+T,"is set to an invalid value ("+M+")"].join(" ")}};function v(k){return h(k)?"In data trace "+k[1]+", ":"In "+k+", "}function g(k,T,M,S,C){var P,D;M=M||"",h(T)?(P=T[0],D=T[1]):(P=T,D=null);var O=function(F){if(!h(F))return String(F);for(var A="",z=0;z<F.length;z++){var B=F[z];typeof B=="number"?A=A.substr(0,A.length-1)+"["+B+"]":A+=B,z<F.length-1&&(A+=".")}return A}(M),R=y[k](T,O,S,C);return l.log(R),{code:k,container:P,trace:D,path:M,astr:O,msg:R}}function b(k,T){var M=w(T),S=M.keyMinusId,C=M.id;return!!(S in k&&k[S]._isSubplotObj&&C)||T in k}function x(k,T){return T in k?k[T]:k[w(T).keyMinusId]}var _=l.counterRegex("([a-z]+)");function w(k){var T=k.match(_);return{keyMinusId:T&&T[1],id:T&&T[2]}}},85594:function(o){o.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},85501:function(o,a,n){var l=n(71828),f=n(44467);o.exports=function(s,c,d){var h,p,m=d.name,y=d.inclusionAttr||"visible",v=c[m],g=l.isArrayOrTypedArray(s[m])?s[m]:[],b=c[m]=[],x=f.arrayTemplater(c,m,y);for(h=0;h<g.length;h++){var _=g[h];l.isPlainObject(_)?p=x.newItem(_):(p=x.newItem({}))[y]=!1,p._index=h,p[y]!==!1&&d.handleItemDefaults(_,p,c,d),b.push(p)}var w=x.defaultItems();for(h=0;h<w.length;h++)(p=w[h])._index=b.length,d.handleItemDefaults({},p,c,d,{}),b.push(p);if(l.isArrayOrTypedArray(v)){var k=Math.min(v.length,b.length);for(h=0;h<k;h++)l.relinkPrivateKeys(b[h],v[h])}return b}},9012:function(o,a,n){var l=n(41940),f=n(77914);o.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:l({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:f.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},42973:function(o,a,n){var l=n(92770),f=n(71828),s=f.dateTime2ms,c=f.incrementMonth,d=n(50606).ONEAVGMONTH;o.exports=function(h,p,m,y){if(p.type!=="date")return{vals:y};var v=h[m+"periodalignment"];if(!v)return{vals:y};var g,b=h[m+"period"];if(l(b)){if((b=+b)<=0)return{vals:y}}else if(typeof b=="string"&&b.charAt(0)==="M"){var x=+b.substring(1);if(!(x>0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;O<D;O++){var R,F,A,z=y[O];if(g){for(R=Math.round((z-M)/(g*d)),A=c(M,g*R,_);A>z;)A=c(A,-g,_);for(;A<=z;)A=c(A,g,_);F=c(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F<E.length&&G===L;F++)G=Math.min(G,E[F].val);for(F=1;F<W.length&&G===L;F++)L=Math.max(L,W[F].val);var q=R.autorange,H=q==="reversed"||q==="min reversed"||q==="max reversed";if(!H&&R.range){var V=s.simpleMap(R.range,R.r2l);H=V[1]<V[0]}R.autorange==="reversed"&&(R.autorange=!0);var te,ee,U,Q,Y,Z,X=R.rangemode,re=X==="tozero",ie=X==="nonnegative",le=R._length,se=le/10,pe=0;for(F=0;F<E.length;F++)for(te=E[F],A=0;A<W.length;A++)(Z=(ee=W[A]).val-te.val-g(R,te.val,ee.val))>0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B<z.length;B++){var $=z[B];A+=$.max-$.min}return A}function b(O,R,F){var A=.05*R._length,z=R._anchorAxis||{};if((R.ticklabelposition||"").indexOf("inside")!==-1||(z.ticklabelposition||"").indexOf("inside")!==-1){var B=R.isReversed();if(!B){var $=s.simpleMap(R.range,R.r2l);B=$[1]<$[0]}B&&(F=!F)}var j=0;return y(O,R._id)||(j=function(N,E,W){var G=0,L=E._id.charAt(0)==="x";for(var q in N._plots){var H=N._plots[q];if(E._id===H.xaxis._id||E._id===H.yaxis._id){var V=(L?H.yaxis:H.xaxis)||{};if((V.ticklabelposition||"").indexOf("inside")!==-1&&(!W&&(V.side==="left"||V.side==="bottom")||W&&(V.side==="top"||V.side==="right"))){if(V._vals){var te=s.deg2rad(V._tickAngles[V._id+"tick"]||0),ee=Math.abs(Math.cos(te)),U=Math.abs(Math.sin(te));if(!V._vals[0].bb){var Q=V._id+"tick";V._selections[Q].each(function(ie){var le=l.select(this);le.select(".text-math-group").empty()&&(ie.bb=h.bBox(le.node()))})}for(var Y=0;Y<V._vals.length;Y++){var Z=V._vals[Y].bb;if(Z){var X=2*x+Z.width,re=2*x+Z.height;G=Math.max(G,L?Math.max(X*ee,re*U):Math.max(re*ee,X*U))}}}V.ticks==="inside"&&V.ticklabelposition==="inside"&&(G+=V.ticklen||0)}}}return G}(O,R,F)),A=Math.max(j,A),R.constrain==="domain"&&R._inputDomain&&(A*=(R._inputDomain[1]-R._inputDomain[0])/(R.domain[1]-R.domain[0])),function(N){return N.nopad?0:N.pad+(N.extrapad?A:j)}}o.exports={applyAutorangeOptions:D,getAutoRange:v,makePadFn:b,doAutoRange:function(O,R,F){if(R.setScale(),R.autorange){R.range=F?F.slice():v(O,R),R._r=R.range.slice(),R._rl=s.simpleMap(R._r,R.r2l);var A=R._input,z={};z[R._attr+".range"]=R.range,z[R._attr+".autorange"]=R.autorange,d.call("_storeDirectGUIEdit",O.layout,O._fullLayout._preGUI,z),A.range=R.range.slice(),A.autorange=R.autorange}var B=R._anchorAxis;if(B&&B.rangeslider){var $=B.rangeslider[R._name];$&&$.rangemode==="auto"&&($.range=v(O,R)),B._input.rangeslider[R._name]=s.extendFlat({},$)}},findExtremes:function(O,R,F){F||(F={}),O._m||O.setScale();var A,z,B,$,j,N,E,W,G,L=[],q=[],H=R.length,V=F.padded||!1,te=F.tozero&&(O.type==="linear"||O.type==="-"),ee=O.type==="log",U=!1,Q=F.vpadLinearized||!1;function Y(Te){if(Array.isArray(Te))return U=!0,function(Oe){return Math.max(Number(Te[Oe]||0),0)};var Se=Math.max(Number(Te||0),0);return function(){return Se}}var Z=Y((O._m>0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A<H;A++)(z=R[A])<W&&z>0&&(W=z),z>G&&z<c&&(G=z);else for(A=0;A<H;A++)(z=R[A])<W&&z>-c&&(W=z),z>G&&z<c&&(G=z);R=[W,G],H=2}var le={tozero:te,extrapad:V};function se(Te){B=R[Te],f(B)&&(N=Z(Te),E=X(Te),Q?($=O.c2l(B)-ie(Te),j=O.c2l(B)+re(Te)):(W=B-ie(Te),G=B+re(Te),ee&&W<G/10&&(W=G/10),$=O.c2l(W),j=O.c2l(G)),te&&($=Math.min(0,$),j=Math.max(0,j)),M($)&&w(L,$,E,le),M(j)&&k(q,j,N,le))}var pe=Math.min(6,H);for(A=0;A<pe;A++)se(A);for(A=H-1;A>=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A<ee.length;A++){var U=te[ee[A]],Q=(U._extremes||{})[$];if(U.visible===!0&&Q){for(z=0;z<Q.min.length;z++)B=Q.min[z],w(E,B.val,B.pad,{extrapad:B.extrapad});for(z=0;z<Q.max.length;z++)B=Q.max[z],k(W,B.val,B.pad,{extrapad:B.extrapad})}}}if(G(j,R._traceIndices),G(N.annotations||[],R._annIndices||[]),G(N.shapes||[],R._shapeIndices||[]),R._matchGroup&&!F){for(var L in R._matchGroup)if(L!==R._id){var q=m(O,L),H=_(O,q,!0),V=R._length/q._length;for(z=0;z<H.min.length;z++)B=H.min[z],w(E,B.val,B.pad*V,{extrapad:B.extrapad});for(z=0;z<H.max.length;z++)B=H.max[z],k(W,B.val,B.pad*V,{extrapad:B.extrapad})}}return{min:E,max:W}}function w(O,R,F,A){T(O,R,F,A,S)}function k(O,R,F,A){T(O,R,F,A,C)}function T(O,R,F,A,z){for(var B=A.tozero,$=A.extrapad,j=!0,N=0;N<O.length&&j;N++){var E=O[N];if(z(E.val,R)&&E.pad>=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)<c}function S(O,R){return O<=R}function C(O,R){return O>=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))<O.d2l(F)}function D(O,R){if(!R||!R.autorangeoptions)return O;var F=O[0],A=O[1],z=R.autorangeoptions.include;if(z!==void 0){var B=R.d2l(F),$=R.d2l(A);s.isArrayOrTypedArray(z)||(z=[z]);for(var j=0;j<z.length;j++){var N=R.d2l(z[j]);B>=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var c=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[c?1:0],s=l[c?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=c.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;Vt<Ft.length;Vt++){var St=Ft[Vt];if(!mt[St]&&(st(ve,St),mt[St]=1,nt))return}}We("annotations","drawOne","_annIndices"),We("shapes","drawOne","_shapeIndices"),We("images","draw","_imgIndices",!0),We("selections","drawOne","_selectionIndices")};var pe=Q.getDataConversions=function(ve,_e,Ve,We){var Ze,Ge=Ve==="x"||Ve==="y"||Ve==="z"?Ve:We;if(Array.isArray(Ge)){if(Ze={type:Y(We,void 0,{autotypenumbers:ve._fullLayout.autotypenumbers}),_categories:[]},Q.setConvert(Ze),Ze.type==="category")for(var Ke=0;Ke<We.length;Ke++)Ze.d2c(We[Ke])}else Ze=Q.getFromTrace(ve,_e,Ge);return Ze?{d2c:Ze.d2c,c2d:Ze.c2d}:Ge==="ids"?{d2c:Se,c2d:Se}:{d2c:Te,c2d:Te}};function Te(ve){return+ve}function Se(ve){return String(ve)}function Oe(ve,_e){return Math.abs((ve/_e+.5)%1-.5)<.001}function Me(ve,_e){return Math.abs(ve/_e-1)<.001}function ce(ve){return+ve.substring(1)}function ye(ve,_e){return ve.rangebreaks&&(_e=_e.filter(function(Ve){return ve.maskBreaks(Ve.x)!==j})),_e}function J(ve){var _e=ve._mainAxis,Ve=[];if(_e._vals){for(var We=0;We<_e._vals.length;We++)if(!_e._vals[We].noTick){var Ze=_e.l2p(_e._vals[We].x),Ge=ve.p2l(Ze),Ke=Q.tickText(ve,Ge);_e._vals[We].minor&&(Ke.minor=!0,Ke.text=""),Ve.push(Ke)}}return ye(ve,Ve)}function ne(ve){var _e=se(d.simpleMap(ve.range,ve.r2l)),Ve=Math.min(_e[0],_e[1]),We=Math.max(_e[0],_e[1]),Ze=ve.type==="category"?ve.d2l_noadd:ve.d2l;ve.type==="log"&&String(ve.dtick).charAt(0)!=="L"&&(ve.dtick="L"+Math.pow(10,Math.floor(Math.min(ve.range[0],ve.range[1]))-1));for(var Ge=[],Ke=0;Ke<=1;Ke++)if(!Ke||ve.minor){var nt=Ke?ve.minor.tickvals:ve.tickvals,st=Ke?[]:ve.ticktext;if(nt){Array.isArray(st)||(st=[]);for(var mt=0;mt<nt.length;mt++){var tt=Ze(nt[mt]);if(tt>Ve&&tt<We){var Ft=st[mt]===void 0?Q.tickText(ve,tt):De(ve,tt,String(st[mt]));Ke&&(Ft.minor=!0,Ft.text=""),Ge.push(Ft)}}}}return ye(ve,Ge)}Q.getDataToCoordFunc=function(ve,_e,Ve,We){return pe(ve,_e,Ve,We).d2c},Q.counterLetter=function(ve){var _e=ve.charAt(0);return _e==="x"?"y":_e==="y"?"x":void 0},Q.minDtick=function(ve,_e,Ve,We){["log","category","multicategory"].indexOf(ve.type)===-1&&We?ve._minDtick===void 0?(ve._minDtick=_e,ve._forceTick0=Ve):ve._minDtick&&((ve._minDtick/_e+1e-6)%1<2e-6&&((Ve-ve._forceTick0)/_e%1+1.000001)%1<2e-6?(ve._minDtick=_e,ve._forceTick0=Ve):((_e/ve._minDtick+1e-6)%1>2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze<Ve.length;Ze++){var Ge=Ve[Ze],Ke=Ge._rangeInitial0===void 0&&Ge._rangeInitial1===void 0,nt=Ke||Ge.range[0]!==Ge._rangeInitial0||Ge.range[1]!==Ge._rangeInitial1,st=Ge.autorange;(Ke&&st!==!0||_e&&nt)&&(Ge._rangeInitial0=st==="min"||st==="max reversed"?void 0:Ge.range[0],Ge._rangeInitial1=st==="max"||st==="min reversed"?void 0:Ge.range[1],Ge._autorangeInitial=st,We=!0)}return We},Q.saveShowSpikeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze="on",Ge=0;Ge<Ve.length;Ge++){var Ke=Ve[Ge],nt=Ke._showSpikeInitial===void 0,st=nt||Ke.showspikes!==Ke._showspikes;(nt||_e&&st)&&(Ke._showSpikeInitial=Ke.showspikes,We=!0),Ze!=="on"||Ke.showspikes||(Ze="off")}return ve._fullLayout._cartesianSpikesEnabled=Ze,We},Q.autoBin=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt=d.aggNums(Math.min,null,ve),st=d.aggNums(Math.max,null,ve);if(_e.type==="category"||_e.type==="multicategory")return{start:nt-.5,end:st+.5,size:Math.max(1,Math.round(Ge)||1),_dataSpan:st-nt};if(Ze||(Ze=_e.calendar),Ke=_e.type==="log"?{type:"linear",range:[nt,st]}:{type:_e.type,range:d.simpleMap([nt,st],_e.c2r,0,Ze),calendar:Ze},Q.setConvert(Ke),Ge=Ge&&b.dtick(Ge,Ke.type))Ke.dtick=Ge,Ke.tick0=b.tick0(void 0,Ke.type,Ze);else{var mt;if(Ve)mt=(st-nt)/Ve;else{var tt=d.distinctVals(ve),Ft=Math.pow(10,Math.floor(Math.log(tt.minDiff)/Math.LN10)),Vt=Ft*d.roundUp(tt.minDiff/Ft,[.9,1.9,4.9,9.9],!0);mt=Math.max(Vt,2*d.stdev(ve)/Math.pow(ve.length,We?.25:.4)),f(mt)||(mt=1)}Q.autoTicks(Ke,mt)}var St,Nt=Ke.dtick,Dt=Q.tickIncrement(Q.tickFirst(Ke),Nt,"reverse",Ze);if(typeof Nt=="number")Dt=function(gt,ht,yt,qt,Et){var jt=0,Tt=0,Ot=0,At=0;function Lt(Xt){return(1+100*(Xt-gt)/yt.dtick)%100<2}for(var Rt=0;Rt<ht.length;Rt++)ht[Rt]%1==0?Ot++:f(ht[Rt])||At++,Lt(ht[Rt])&&jt++,Lt(ht[Rt]+yt.dtick/2)&&Tt++;var $t=ht.length-At;if(Ot===$t&&yt.type!=="date")yt.dtick<1?gt=qt-.5*yt.dtick:(gt-=.5)+yt.dtick<qt&&(gt+=yt.dtick);else if(Tt<.1*$t&&(jt>.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt<qt?Yt:-Yt}return gt}(Dt,ve,Ke,nt,st),St=Dt+(1+Math.floor((st-Dt)/Nt))*Nt;else for(Ke.dtick.charAt(0)==="M"&&(Dt=function(gt,ht,yt,qt,Et){var jt=d.findExactDates(ht,Et);if(jt.exactDays>.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick<A&&(Ge.dtick=A)):/%p/.test(mt)?(Ke=F,tt&&!st&&Ge.dtick<F&&(Ge.dtick=F)):/%[Aadejuwx]/.test(mt)?(Ke=R,tt&&!st&&Ge.dtick<R&&(Ge.dtick=R)):/%[UVW]/.test(mt)?(Ke=O,tt&&!st&&Ge.dtick<O&&(Ge.dtick=O)):/%[Bbm]/.test(mt)?(Ke=P,tt&&(st?ce(Ge.dtick)<1:Ge.dtick<D)&&(Ge.dtick="M1")):/%[q]/.test(mt)?(Ke=M,tt&&(st?ce(Ge.dtick)<3:Ge.dtick<S)&&(Ge.dtick="M3")):/%[Yy]/.test(mt)&&(Ke=w,tt&&(st?ce(Ge.dtick)<12:Ge.dtick<k)&&(Ge.dtick="M12")))}(st=nt())&&Ge.tick0===Ge._dowTick0&&(Ge.tick0=Ge._rawTick0),Ge._definedDelta=Ke}(ve),ve.tick0||(ve.tick0=ve.type==="date"?"2000-01-01":0),ve.type==="date"&&ve.dtick<.1&&(ve.dtick=.1),Ee(ve)},Q.calcTicks=function(ve,_e){for(var Ve,We,Ze=ve.type,Ge=ve.calendar,Ke=ve.ticklabelstep,nt=ve.ticklabelmode==="period",st=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e),mt=st[1]<st[0],tt=Math.min(st[0],st[1]),Ft=Math.max(st[0],st[1]),Vt=Math.max(1e3,ve._length||0),St=[],Nt=[],Dt=[],gt=[],ht=ve.minor&&(ve.minor.ticks||ve.minor.showgrid),yt=1;yt>=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt<Tt!==mt)break;Ze!=="category"&&Ze!=="multicategory"||(Ot=mt?Math.max(-.5,Ot):Math.min(ve._categories.length-.5,Ot))}var $t,Yt,Xt=null,Bt=Rt;yt&&(At?Yt=ve.dtick:Ze==="date"?typeof ve.dtick=="string"&&ve.dtick.charAt(0)==="M"&&(Yt=P*ve.dtick.substring(1)):Yt=ve._roughDTick,$t=Math.round((ve.r2l(Bt)-ve.r2l(ve.tick0))/Yt)-1);var Wt=Et.dtick;for(Et.rangebreaks&&Et._tick0Init!==Et.tick0&&(Bt=It(Bt,ve),mt||(Bt=Q.tickIncrement(Bt,Wt,!mt,Ge))),yt&&nt&&(Bt=Q.tickIncrement(Bt,Wt,!mt,Ge),$t--);mt?Bt>=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt<Tt)continue;if(Et.maskBreaks(Bt)===j&&It(Bt,Et)>=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an<gt.length;an++){var sn=gt[an],Zt=sn.value;if(cn.indexOf(Zt)===-1){for(var pn=!1,nn=0;!pn&&nn<Dt.length;nn++)1e7+Dt[nn].value===1e7+Zt&&(pn=!0);pn||ln.push(sn)}}gt=ln}if(nt&&function(lr,ni,Ar){for(var ur=0;ur<lr.length;ur++){var kr=lr[ur].value,oa=ur,On=ur+1;ur<lr.length-1?(oa=ur,On=ur+1):ur>0?(oa=ur-1,On=ur):(oa=ur,On=ur);var on,$n=lr[oa].value,Pr=lr[On].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ni.rangebreaks&&jn>0){for(var Lr=0,br=0;br<84;br++){var Mr=(br+.5)/84;ni.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Pn=ve.c2p(Dt[Ve].value);(Kt?_n>Pn-Cn:_n<Pn+Cn)?Dt.splice(mt?Ve+1:Ve,1):_n=Pn}}pt(ve)&&Math.abs(st[1]-st[0])===360&&Dt.pop(),ve._tmax=(Dt[Dt.length-1]||{}).value,ve._prevDateHead="",ve._inCalcTicks=!0;var xn,Dn,tr=function(lr){lr.text="",ve._prevDateHead=We};for(Dt=Dt.concat(gt),Ve=0;Ve<Dt.length;Ve++){var ia=Dt[Ve].minor,fa=Dt[Ve].value;ia?Nt.push({x:fa,minor:!0}):(We=ve._prevDateHead,xn=Q.tickText(ve,fa,!1,Dt[Ve].simpleLabel),(Dn=Dt[Ve].periodX)!==void 0&&(xn.periodX=Dn,(Dn>Ft||Dn<tt)&&(Dn>Ft&&(xn.periodX=Ft),Dn<tt&&(xn.periodX=tt),tr(xn))),Dt[Ve].skipLabel&&tr(xn),St.push(xn))}return St=St.concat(Nt),ve._inCalcTicks=!1,nt&&St.length&&(St[0].noTick=!0),St};var de=[2,5,10],xe=[1,2,3,6,12],ue=[1,2,5,10,15,30],ge=[1,2,3,7,14],be=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],we=[-.301,0,.301,.699,1],ke=[15,30,45,90,180];function Ae(ve,_e,Ve){return _e*d.roundUp(ve/_e,Ve)}function Ee(ve){var _e=ve.dtick;if(ve._tickexponent=0,f(_e)||typeof _e=="string"||(_e=1),ve.type!=="category"&&ve.type!=="multicategory"||(ve._tickround=null),ve.type==="date"){var Ve=ve.r2l(ve.tick0),We=ve.l2r(Ve).replace(/(^-|i)/g,""),Ze=We.length;if(String(_e).charAt(0)==="M")Ze>10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1]<We[0],Ge=Ze?Math.floor:Math.ceil,Ke=se(We)[0],nt=ve.dtick,st=Ve(ve.tick0);if(f(nt)){var mt=Ge((Ke-st)/nt)*nt+st;return ve.type!=="category"&&ve.type!=="multicategory"||(mt=d.constrain(mt,0,ve._categories.length-1)),mt}var tt=nt.charAt(0),Ft=Number(nt.substr(1));if(tt==="M"){for(var Vt,St,Nt,Dt=0,gt=st;Dt<10;){if(((Vt=Q.tickIncrement(gt,nt,Ze,ve.calendar))-Ke)*(gt-Ke)<=0)return Ze?Math.min(gt,Vt):Math.max(gt,Vt);St=(Ke-(gt+Vt)/2)/(Vt-gt),Nt=tt+(Math.abs(Math.round(St))||1)*Ft,gt=Q.tickIncrement(gt,Nt,St<0?!Ze:Ze,ve.calendar),Dt++}return d.error("tickFirst did not converge",ve),gt}if(tt==="L")return Math.log(Ge((Math.pow(10,Ke)-st)/Ft)*Ft+st)/Math.LN10;if(tt==="D"){var ht=nt==="D2"?we:be,yt=d.roundUp(d.mod(Ke,1),ht,Ze);return Math.floor(Ke)+Math.log(l.round(Math.pow(10,yt),1))/Math.LN10}throw"unrecognized dtick "+String(nt)},Q.tickText=function(ve,_e,Ve,We){var Ze,Ge=De(ve,_e),Ke=ve.tickmode==="array",nt=Ve||Ke,st=ve.type,mt=st==="category"?ve.d2l_noadd:ve.d2l;if(Ke&&Array.isArray(ve.ticktext)){var tt=d.simpleMap(ve.range,ve.r2l),Ft=(Math.abs(tt[1]-tt[0])-(ve._lBreaks||0))/1e4;for(Ze=0;Ze<ve.ticktext.length&&!(Math.abs(_e-mt(ve.tickvals[Ze]))<Ft);Ze++);if(Ze<ve.ticktext.length)return Ge.text=String(ve.ticktext[Ze]),Ge}function Vt(gt){if(gt===void 0)return!0;if(Ve)return gt==="none";var ht={first:ve._tmin,last:ve._tmax}[gt];return gt!=="all"&&_e!==ht}var St=Ve?"never":ve.exponentformat!=="none"&&Vt(ve.showexponent)?"hide":"";if(st==="date"?function(gt,ht,yt,qt){var Et=gt._tickround,jt=yt&>.hoverformat||Q.getTickFormat(gt);qt&&(Et=f(Et)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[Et]);var Tt,Ot=d.formatDate(ht.x,jt,Et,gt._dateFormat,gt.calendar,gt._extraFormat),At=Ot.indexOf(` `);if(At!==-1&&(Tt=Ot.substr(At+1),Ot=Ot.substr(0,At)),qt&&(Ot==="00:00:00"||Ot==="00:00"?(Ot=Tt,Tt=""):Ot.length===8&&(Ot=Ot.replace(/:00$/,""))),Tt)if(yt)Et==="d"?Ot+=", "+Tt:Ot=Tt+(Ot?", "+Ot:"");else if(gt._inCalcTicks&>._prevDateHead===Tt){var Lt=Mt(gt),Rt=gt._trueSide||gt.side;(!Lt&&Rt==="top"||Lt&&Rt==="bottom")&&(Ot+="<br> ")}else gt._prevDateHead=Tt,Ot+="<br>"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10<sup>"+(Lt>1?"":$)+Rt+"</sup>",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["<sup>",Tt[0],"</sup>","⁄","<sub>",Tt[1],"</sub>","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))<Vt)ve="0",Ze=!1;else{if(ve+=Vt,nt&&(ve*=Math.pow(10,-nt),Ge+=nt),Ge===0)ve=String(Math.floor(ve));else if(Ge<0){ve=(ve=String(Math.round(ve))).substr(0,ve.length+Ge);for(var St=Ge;St<0;St++)ve+="0"}else{var Nt=(ve=String(ve)).indexOf(".")+1;Nt&&(ve=ve.substr(0,Nt+Ge).replace(/\.?0+$/,""))}ve=d.numSeparate(ve,_e._separators,mt)}return nt&&Ke!=="hide"&&(Ie(Ke)&&Be(nt)&&(Ke="power"),Ft=nt<0?$+-nt:Ke!=="power"?"+"+nt:String(nt),Ke==="e"||Ke==="E"?ve+=Ke+Ft:Ke==="power"?ve+="×10<sup>"+Ft+"</sup>":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve<ve._length-1}function ze(ve){var _e=l.select(ve),Ve=_e.select(".text-math-group");return Ve.empty()?_e.select("text"):Ve}function Ne(ve){return ve._id+".automargin"}function Qe(ve){return Ne(ve)+".mirror"}function it(ve){return ve._id+".rangeslider"}function kt(ve,_e){for(var Ve=0;Ve<_e.length;Ve++)ve.indexOf(_e[Ve])===-1&&ve.push(_e[Ve])}function Je(ve,_e,Ve){var We,Ze,Ge=[],Ke=[],nt=ve.layout;for(We=0;We<_e.length;We++)Ge.push(Q.getFromId(ve,_e[We]));for(We=0;We<Ve.length;We++)Ke.push(Q.getFromId(ve,Ve[We]));var st=Object.keys(g),mt=["anchor","domain","overlaying","position","side","tickangle","editType"],tt=["linear","log"];for(We=0;We<st.length;We++){var Ft=st[We],Vt=Ge[0][Ft],St=Ke[0][Ft],Nt=!0,Dt=!1,gt=!1;if(Ft.charAt(0)!=="_"&&typeof Vt!="function"&&mt.indexOf(Ft)===-1){for(Ze=1;Ze<Ge.length&&Nt;Ze++){var ht=Ge[Ze][Ft];Ft==="type"&&tt.indexOf(Vt)!==-1&&tt.indexOf(ht)!==-1&&Vt!==ht?Dt=!0:ht!==Vt&&(Nt=!1)}for(Ze=1;Ze<Ke.length&&Nt;Ze++){var yt=Ke[Ze][Ft];Ft==="type"&&tt.indexOf(St)!==-1&&tt.indexOf(yt)!==-1&&St!==yt?gt=!0:Ke[Ze][Ft]!==St&&(Nt=!1)}Nt&&(Dt&&(nt[Ge[0]._name].type="linear"),gt&&(nt[Ke[0]._name].type="linear"),ut(nt,Ft,Ge,Ke,ve._fullLayout._dfltTitle))}}for(We=0;We<ve._fullLayout.annotations.length;We++){var qt=ve._fullLayout.annotations[We];_e.indexOf(qt.xref)!==-1&&Ve.indexOf(qt.yref)!==-1&&d.swapAttrs(nt.annotations[We],["?"])}}function ut(ve,_e,Ve,We,Ze){var Ge,Ke=d.nestedProperty,nt=Ke(ve[Ve[0]._name],_e).get(),st=Ke(ve[We[0]._name],_e).get();for(_e==="title"&&(nt&&nt.text===Ze.x&&(nt.text=Ze.y),st&&st.text===Ze.y&&(st.text=Ze.x)),Ge=0;Ge<Ve.length;Ge++)Ke(ve,Ve[Ge]._name+"."+_e).set(st);for(Ge=0;Ge<We.length;Ge++)Ke(ve,We[Ge]._name+"."+_e).set(nt)}function pt(ve){return ve._id==="angularaxis"}function It(ve,_e){for(var Ve=_e._rangebreaks.length,We=0;We<Ve;We++){var Ze=_e._rangebreaks[We];if(ve>=Ze.min&&ve<Ze.max)return Ze.max}return ve}function Mt(ve){return(ve.ticklabelposition||"").indexOf("inside")!==-1}function zt(ve,_e){Mt(ve._anchorAxis||{})&&ve._hideCounterAxisInsideTickLabels&&ve._hideCounterAxisInsideTickLabels(_e)}function wt(ve,_e,Ve,We){var Ze,Ge=ve.anchor==="free"||ve.overlaying!==void 0&&ve.overlaying!==!1?ve.overlaying:ve._id;Ze=We?ve.side==="right"?_e:-_e:_e,Ge in Ve||(Ve[Ge]={}),ve.side in Ve[Ge]||(Ve[Ge][ve.side]=0),Ve[Ge][ve.side]+=Ze}Q.getTickFormat=function(ve){var _e,Ve,We,Ze,Ge,Ke,nt,st;function mt(Vt){return typeof Vt!="string"?Vt:Number(Vt.replace("M",""))*P}function tt(Vt,St){var Nt=["L","D"];if(typeof Vt==typeof St){if(typeof Vt=="number")return Vt-St;var Dt=Nt.indexOf(Vt.charAt(0)),gt=Nt.indexOf(St.charAt(0));return Dt===gt?Number(Vt.replace(/(L|D)/g,""))-Number(St.replace(/(L|D)/g,"")):Dt-gt}return typeof Vt=="number"?1:-1}function Ft(Vt,St){var Nt=St[0]===null,Dt=St[1]===null,gt=tt(Vt,St[0])>=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e<ve.tickformatstops.length;_e++)if((We=ve.tickformatstops[_e]).enabled&&(Ze=ve.dtick,Ke=void 0,Ke=mt||function(Vt){return Vt},nt=(Ge=We.dtickrange)[0],st=Ge[1],(!nt&&typeof nt!="number"||Ke(nt)<=Ke(Ze))&&(!st&&typeof st!="number"||Ke(st)>=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e<ve.tickformatstops.length;_e++)if((We=ve.tickformatstops[_e]).enabled&&Ft(ve.dtick,We.dtickrange)){Ve=We;break}}return Ve?Ve.value:ve.tickformat},Q.getSubplots=function(ve,_e){var Ve=ve._fullLayout._subplots,We=Ve.cartesian.concat(Ve.gl2d||[]),Ze=_e?Q.findSubplotsWithAxis(We,_e):We;return Ze.sort(function(Ge,Ke){var nt=Ge.substr(1).split("y"),st=Ke.substr(1).split("y");return nt[0]===st[0]?+nt[1]-+st[1]:+nt[0]-+st[0]}),Ze},Q.findSubplotsWithAxis=function(ve,_e){for(var Ve=new RegExp(_e._id.charAt(0)==="x"?"^"+_e._id+"y":_e._id+"$"),We=[],Ze=0;Ze<ve.length;Ze++){var Ge=ve[Ze];Ve.test(Ge)&&We.push(Ge)}return We},Q.makeClipPaths=function(ve){var _e=ve._fullLayout;if(!_e._hasOnlyLargeSploms){var Ve,We,Ze={_offset:0,_length:_e.width,_id:""},Ge={_offset:0,_length:_e.height,_id:""},Ke=Q.list(ve,"x",!0),nt=Q.list(ve,"y",!0),st=[];for(Ve=0;Ve<Ke.length;Ve++)for(st.push({x:Ke[Ve],y:Ge}),We=0;We<nt.length;We++)Ve===0&&st.push({x:Ze,y:nt[We]}),st.push({x:Ke[Ve],y:nt[We]});var mt=_e._clips.selectAll(".axesclip").data(st,function(tt){return tt.x._id+tt.y._id});mt.enter().append("clipPath").classed("axesclip",!0).attr("id",function(tt){return"clip"+_e._uid+tt.x._id+tt.y._id}).append("rect"),mt.exit().remove(),mt.each(function(tt){l.select(this).select("rect").attr({x:tt.x._offset||0,y:tt.y._offset||0,width:tt.x._length||1,height:tt.y._length||1})})}},Q.draw=function(ve,_e,Ve){var We=ve._fullLayout;_e==="redraw"&&We._paper.selectAll("g.subplot").each(function(nt){var st=nt[0],mt=We._plots[st];if(mt){var tt=mt.xaxis,Ft=mt.yaxis;mt.xaxislayer.selectAll("."+tt._id+"tick").remove(),mt.yaxislayer.selectAll("."+Ft._id+"tick").remove(),mt.xaxislayer.selectAll("."+tt._id+"tick2").remove(),mt.yaxislayer.selectAll("."+Ft._id+"tick2").remove(),mt.xaxislayer.selectAll("."+tt._id+"divider").remove(),mt.yaxislayer.selectAll("."+Ft._id+"divider").remove(),mt.minorGridlayer&&mt.minorGridlayer.selectAll("path").remove(),mt.gridlayer&&mt.gridlayer.selectAll("path").remove(),mt.zerolinelayer&&mt.zerolinelayer.selectAll("path").remove(),We._infolayer.select(".g-"+tt._id+"title").remove(),We._infolayer.select(".g-"+Ft._id+"title").remove()}});var Ze=_e&&_e!=="redraw"?_e:Q.listIds(ve),Ge=Q.list(ve).filter(function(nt){return nt.autoshift}).map(function(nt){return nt.overlaying});Ze.map(function(nt){var st=Q.getFromId(ve,nt);if(st.tickmode==="sync"&&st.overlaying){var mt=Ze.findIndex(function(tt){return tt===st.overlaying});mt>=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(On,on){return On.autoshift?on[On.overlaying][On.side]:On.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We<yt.length;We++)yt[We].axInfo=qt;_e._selections={},_e._tickAngles&&(_e._prevTickAngles=_e._tickAngles),_e._tickAngles={},_e._depth=null;var Et={};if(_e.visible){var jt,Tt,Ot=Q.makeTransTickFn(_e),At=Q.makeTransTickLabelFn(_e),Lt=_e.ticks==="inside",Rt=_e.ticks==="outside";if(_e.tickson==="boundaries"){var $t=function(On,on){var $n,Pr=[],Ln=function(Bn,jn){var Un=Bn.xbnd[jn];Un!==null&&Pr.push(d.extendFlat({},Bn,{x:Un}))};if(on.length){for($n=0;$n<on.length;$n++)Ln(on[$n],0);Ln(on[$n-1],1)}return Pr}(0,yt);Tt=Q.clipEnds(_e,$t),jt=Lt?Tt:$t}else Tt=Q.clipEnds(_e,yt),jt=Lt&&_e.ticklabelmode!=="period"?Tt:yt;var Yt,Xt=_e._gridVals=Tt,Bt=function(On,on){var $n,Pr,Ln=[],Bn=on.length&&on[on.length-1].x<on[0].x,jn=function(Lr,br){var Mr=Lr.xbnd[br];Mr!==null&&Ln.push(d.extendFlat({},Lr,{x:Mr}))};if(On.showdividers&&on.length){for($n=0;$n<on.length;$n++){var Un=on[$n];Un.text2!==Pr&&jn(Un,Bn?1:0),Pr=Un.text2}jn(on[$n-1],Bn?0:1)}return Ln}(_e,yt);if(!st._hasOnlyLargeSploms){var Wt=_e._subplotsWith,tn={};for(We=0;We<Wt.length;We++){Ze=Wt[We];var cn=(Ge=st._plots[Ze])[Ft+"axis"],ln=cn._mainAxis._id;if(!tn[ln]){tn[ln]=1;var an=tt==="x"?"M0,"+cn._offset+"v"+cn._length:"M"+cn._offset+",0h"+cn._length;Q.drawGrid(ve,_e,{vals:Xt,counterAxis:cn,layer:Ge.gridlayer.select("."+mt),minorLayer:Ge.minorGridlayer.select("."+mt),path:an,transFn:Ot}),Q.drawZeroLine(ve,_e,{counterAxis:cn,layer:Ge.zerolinelayer,path:an,transFn:Ot})}}}var sn=Q.getTickSigns(_e),Zt=Q.getTickSigns(_e,"minor");if(_e.ticks||_e.minor&&_e.minor.ticks){var pn,nn,Kt,Cn,_n=Q.makeTickPath(_e,gt,sn[2]),Pn=Q.makeTickPath(_e,gt,Zt[2],{minor:!0});if(_e._anchorAxis&&_e.mirror&&_e.mirror!==!0?(pn=Q.makeTickPath(_e,ht,sn[3]),nn=Q.makeTickPath(_e,ht,Zt[3],{minor:!0}),Kt=_n+pn,Cn=Pn+nn):(pn="",nn="",Kt=_n,Cn=Pn),_e.showdividers&&Rt&&_e.tickson==="boundaries"){var xn={};for(We=0;We<Bt.length;We++)xn[Bt[We].x]=1;Yt=function(On){return xn[On.x]?pn:Kt}}else Yt=function(On){return On.minor?Cn:Kt}}if(Q.drawTicks(ve,_e,{vals:jt,layer:Nt,path:Yt,transFn:Ot}),_e.mirror==="allticks"){var Dn=Object.keys(_e._linepositions||{});for(We=0;We<Dn.length;We++){Ze=Dn[We],Ge=st._plots[Ze];var tr=_e._linepositions[Ze]||[],ia=tr[0],fa=tr[1],lr=tr[2],ni=Q.makeTickPath(_e,ia,lr?sn[0]:Zt[0],{minor:lr})+Q.makeTickPath(_e,fa,lr?sn[1]:Zt[1],{minor:lr});Q.drawTicks(ve,_e,{vals:jt,layer:Ge[tt+"axislayer"],path:ni,transFn:Ot})}}var Ar=[];if(Ar.push(function(){return Q.drawLabels(ve,_e,{vals:yt,layer:Nt,plotinfo:Ge,transFn:At,labelFns:Q.makeLabelFns(_e,gt)})}),_e.type==="multicategory"){var ur={x:2,y:10}[tt];Ar.push(function(){var On={x:"height",y:"width"}[tt],on=oa()[On]+ur+(_e._tickAngles[mt+"tick"]?_e.tickfont.size*ee:0);return Q.drawLabels(ve,_e,{vals:Ye(_e,yt),layer:Nt,cls:mt+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:Ot,labelFns:Q.makeLabelFns(_e,gt+on*sn[4])})}),Ar.push(function(){return _e._depth=sn[4]*(oa("tick2")[_e.side]-gt),function(On,on,$n){var Pr=on._id+"divider",Ln=$n.vals,Bn=$n.layer.selectAll("path."+Pr).data(Ln,lt);Bn.exit().remove(),Bn.enter().insert("path",":first-child").classed(Pr,1).classed("crisp",1).call(y.stroke,on.dividercolor).style("stroke-width",v.crispRound(On,on.dividerwidth,1)+"px"),Bn.attr("transform",$n.transFn).attr("d",$n.path)}(ve,_e,{vals:Bt,layer:Nt,path:Q.makeTickPath(_e,gt,sn[4],{len:_e._depth}),transFn:Ot})})}else _e.title.hasOwnProperty("standoff")&&Ar.push(function(){_e._depth=sn[4]*(oa()[_e.side]-gt)});var kr=c.getComponentMethod("rangeslider","isVisible")(_e);return Ve.skipTitle||kr&&_e.side==="bottom"||Ar.push(function(){return function(On,on){var $n,Pr=On._fullLayout,Ln=on._id,Bn=Ln.charAt(0),jn=on.title.font.size;if(on.title.hasOwnProperty("standoff"))$n=on._depth+on.title.standoff+ct(on);else{var Un=Mt(on);if(on.type==="multicategory")$n=on._depth;else{var Lr=1.5*jn;Un&&(Lr=.5*jn,on.ticks==="outside"&&(Lr+=on.ticklen)),$n=10+Lr+(on.linewidth?on.linewidth-1:0)}Un||($n+=Bn==="x"?on.side==="top"?jn*(on.showticklabels?1:0):jn*(on.showticklabels?1.5:.5):on.side==="right"?jn*(on.showticklabels?1:.5):jn*(on.showticklabels?.5:0))}var br,Mr,ja,_a,la=Q.getPxPosition(On,on);if(Bn==="x"?(Mr=on._offset+on._length/2,ja=on.side==="top"?la-$n:la+$n):(ja=on._offset+on._length/2,Mr=on.side==="right"?la+$n:la-$n,br={rotate:"-90",offset:0}),on.type!=="multicategory"){var Tn=on._selections[on._id+"tick"];if(_a={selection:Tn,side:on.side},Tn&&Tn.node()&&Tn.node().parentNode){var Dr=v.getTranslate(Tn.node().parentNode);_a.offsetLeft=Dr.x,_a.offsetTop=Dr.y}on.title.hasOwnProperty("standoff")&&(_a.pad=0)}return on._titleStandoff=$n,m.draw(On,Ln+"title",{propContainer:on,propName:on._name+".title.text",placeholder:Pr._dfltTitle[Bn],avoid:_a,transform:br,attributes:{x:Mr,y:ja,"text-anchor":"middle"}})}(ve,_e)}),Ar.push(function(){var On,on,$n,Pr,Ln=_e.side.charAt(0),Bn=U[_e.side].charAt(0),jn=Q.getPxPosition(ve,_e),Un=Rt?_e.ticklen:0;(_e.automargin||kr||_e._shiftPusher)&&(_e.type==="multicategory"?On=oa("tick2"):(On=oa(),tt==="x"&&Ln==="b"&&(_e._depth=Math.max(On.width>0?On.bottom-jn:0,Un))));var Lr=0,br=0;if(_e._shiftPusher&&(Lr=Math.max(Un,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(br=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(br+=ct(_e))),_e._fullDepth=Math.max(Lr,br)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],ja=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Un),Mr.reverse()),On.width>0){var _a=On.right-(_e._offset+_e._length);_a>0&&(on.xr=1,on.r=_a);var la=_e._offset-On.left;la>0&&(on.xl=0,on.l=la)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Un),on[Ln]=_e._depth-ja):(_e._depth=Math.max(On.height>0?On.right-jn:0,Un),on[Ln]=_e._depth+ja,Mr.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(on.yb=0,on.b=Tn);var Dr=_e._offset-On.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=c.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function oa(On){var on=mt+(On||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),br=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,br.top),Bn=Math.max(Bn,br.bottom),jn=Math.min(jn,br.left),Un=Math.max(Un,br.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt<Ke.length;mt++){var tt=Ke[mt].x;if(st?!tt:Math.abs(tt)<_e.dtick/100){if(Ke=Ke.slice(0,mt).concat(Ke.slice(mt+1)),!st)break;mt--}}_e._gw=v.crispRound(ve,_e.gridwidth,1);for(var Ft=Ze?v.crispRound(ve,_e.minor.gridwidth,1):0,Vt=Ve.layer,St=Ve.minorLayer,Nt=1;Nt>=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.left<At)&&(an=1):(ln.bottom>Lt||ln.top+(_e.tickangle?0:tn.fontSize/4)<At)&&(an=1);var sn=cn.select("text");an?qt&&sn.style("opacity",0):(sn.style("opacity",1),$t=Rt==="bottom"||Rt==="right"?Math.min($t,Et?ln.top:ln.left):-1/0,Yt=Rt==="top"||Rt==="left"?Math.max(Yt,Et?ln.bottom:ln.right):1/0)}}),We._plots){var Bt=We._plots[Xt];if(_e._id===Bt.xaxis._id||_e._id===Bt.yaxis._id){var Wt=Et?Bt.yaxis:Bt.xaxis;Wt&&(Wt["_visibleLabelMin_"+_e._id]=$t,Wt["_visibleLabelMax_"+_e._id]=Yt)}}}},_e._hideCounterAxisInsideTickLabels=function(yt){var qt=_e._id.charAt(0)==="x",Et=[];for(var jt in We._plots){var Tt=We._plots[jt];_e._id!==Tt.xaxis._id&&_e._id!==Tt.yaxis._id||Et.push(qt?Tt.yaxis:Tt.xaxis)}Et.forEach(function(Ot,At){Ot&&Mt(Ot)&&(yt||[N,W,E,G,L]).forEach(function(Lt){var Rt=Lt.K==="tick"&&Lt.L==="text"&&_e.ticklabelmode==="period",$t=We._plots[_e._mainSubplot];(Lt.K===N.K?$t.zerolinelayer.selectAll("."+_e._id+"zl"):Lt.K===W.K?$t.minorGridlayer.selectAll("."+_e._id):Lt.K===E.K?$t.gridlayer.selectAll("."+_e._id):$t[_e._id.charAt(0)+"axislayer"]).each(function(){var Yt=l.select(this);Lt.L&&(Yt=Yt.selectAll(Lt.L)),Yt.each(function(Xt){var Bt=_e.l2p(Rt?at(Xt):Xt.x)+_e._offset,Wt=l.select(this);Bt<_e["_visibleLabelMax_"+Ot._id]&&Bt>_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt<Et.length-1;yt++)if(d.bBoxIntersect(Et[yt],Et[yt+1],Yt)){Nt=Xt?90:30;break}}else{var Bt=2;for(_e.ticks&&(Bt+=_e.tickwidth/2),yt=0;yt<Et.length;yt++){var Wt=nt[yt].xbnd,tn=Et[yt];if(Wt[0]!==null&&tn.left-_e.l2p(Wt[0])<Bt||Wt[1]!==null&&_e.l2p(Wt[1])-tn.right<Bt){Nt=90;break}}}Nt&&St(Ft,Nt)}}),_e._tickAngles&&Dt.push(function(){_e._tickAngles[Ke]=Nt===null?f(mt)?mt:0:Nt});var gt=_e._anchorAxis;gt&>.autorange&&Mt(_e)&&!re(We,_e._id)&&(We._insideTickLabelsAutorange||(We._insideTickLabelsAutorange={}),We._insideTickLabelsAutorange[gt._name+".autorange"]=gt.autorange,Dt.push(function(){Ft.each(function(yt,qt){var Et=ze(this);Et.select(".text-math-group").empty()&&(_e._vals[qt].bb=v.bBox(Et.node()))})}));var ht=d.syncOrAsync(Dt);return ht&&ht.then&&ve._promises.push(ht),ht},Q.getPxPosition=function(ve,_e){var Ve,We=ve._fullLayout._size,Ze=_e._id.charAt(0),Ge=_e.side;return _e.anchor!=="free"?Ve=_e._anchorAxis:Ze==="x"?Ve={_offset:We.t+(1-(_e.position||0))*We.h,_length:0}:Ze==="y"&&(Ve={_offset:We.l+(_e.position||0)*We.w+_e._shift,_length:0}),Ge==="top"||Ge==="left"?Ve._offset:Ge==="bottom"||Ge==="right"?Ve._offset+Ve._length:void 0},Q.shouldShowZeroLine=function(ve,_e,Ve){var We=d.simpleMap(_e.range,_e.r2l);return We[0]*We[1]<=0&&_e.zeroline&&(_e.type==="linear"||_e.type==="-")&&!(_e.rangebreaks&&_e.maskBreaks(0)===j)&&(bt(_e,0)||!function(Ze,Ge,Ke,nt){var st=Ke._mainAxis;if(st){var mt=Ze._fullLayout,tt=Ge._id.charAt(0),Ft=Q.counterLetter(Ge._id),Vt=Ge._offset+(Math.abs(nt[0])<Math.abs(nt[1])==(tt==="x")?0:Ge._length),St=mt._plots[Ke._mainSubplot];if(!(St.mainplotinfo||St).overlays.length)return ht(Ke);for(var Nt=Q.list(Ze,Ft),Dt=0;Dt<Nt.length;Dt++){var gt=Nt[Dt];if(gt._mainAxis===st&&ht(gt))return!0}}function ht(yt){if(!yt.showline||!yt.linewidth)return!1;var qt=Math.max((yt.linewidth+Ge.zerolinewidth)/2,1);function Et(Ot){return typeof Ot=="number"&&Math.abs(Ot-Vt)<qt}if(Et(yt._mainLinePosition)||Et(yt._mainMirrorPosition))return!0;var jt=yt._linepositions||{};for(var Tt in jt)if(Et(jt[Tt][0])||Et(jt[Tt][1]))return!0}}(ve,_e,Ve,We)||function(Ze,Ge){for(var Ke=Ze._fullData,nt=Ge._mainSubplot,st=Ge._id.charAt(0),mt=0;mt<Ke.length;mt++){var tt=Ke[mt];if(tt.visible===!0&&tt.xaxis+tt.yaxis===nt&&(c.traceIs(tt,"bar-like")&&tt.orientation==={x:"h",y:"v"}[st]||tt.fill&&tt.fill.charAt(tt.fill.length-1)===st))return!0}return!1}(ve,_e))},Q.clipEnds=function(ve,_e){return _e.filter(function(Ve){return bt(ve,Ve.x)})},Q.allowAutoMargin=function(ve){for(var _e=Q.list(ve,"",!0),Ve=0;Ve<_e.length;Ve++){var We=_e[Ve];We.automargin&&(s.allowAutoMargin(ve,Ne(We)),We.mirror&&s.allowAutoMargin(ve,Qe(We))),c.getComponentMethod("rangeslider","isVisible")(We)&&s.allowAutoMargin(ve,it(We))}},Q.swap=function(ve,_e){for(var Ve=function(Ze,Ge){var Ke,nt,st=[];for(Ke=0;Ke<Ge.length;Ke++){var mt=[],tt=Ze._fullData[Ge[Ke]].xaxis,Ft=Ze._fullData[Ge[Ke]].yaxis;if(tt&&Ft){for(nt=0;nt<st.length;nt++)st[nt].x.indexOf(tt)===-1&&st[nt].y.indexOf(Ft)===-1||mt.push(nt);if(mt.length){var Vt,St=st[mt[0]];if(mt.length>1)for(nt=1;nt<mt.length;nt++)Vt=st[mt[nt]],kt(St.x,Vt.x),kt(St.y,Vt.y);kt(St.x,[tt]),kt(St.y,[Ft])}else st.push({x:[tt],y:[Ft]})}}return st}(ve,_e),We=0;We<Ve.length;We++)Je(ve,Ve[We].x,Ve[We].y)}},4322:function(o,a,n){var l=n(92770),f=n(71828),s=n(50606).BADNUM,c=f.isArrayOrTypedArray,d=f.isDateTime,h=f.cleanNumber,p=Math.round;function m(v,g){return g?l(v):typeof v=="number"}function y(v){return Math.max(1,(v-1)/1e3)}o.exports=function(v,g,b){var x=v,_=b.noMultiCategory;if(c(x)&&!x.length)return"-";if(!_&&function(S){return c(S[0])&&c(S[1])}(x))return"multicategory";if(_&&Array.isArray(x[0])){for(var w=[],k=0;k<x.length;k++)if(c(x[k]))for(var T=0;T<x[k].length;T++)w.push(x[k][T]);x=w}if(function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A<P;A+=D){var z=S[p(A)],B=String(z);F[B]||(F[B]=1,d(z,C)&&O++,l(z)&&R++)}return O>2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A<P;A+=D){var z=S[p(A)],B=String(z);if(!F[B]){F[B]=1;var $=typeof z;$==="boolean"?R++:(C?h(z)!==s:$==="number")?O++:$==="string"&&R++}}return R>2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D<P;D++)if(m(S[D],C))return!0;return!1}(x,M)?"linear":"-"}},71453:function(o,a,n){var l=n(92770),f=n(73972),s=n(71828),c=n(44467),d=n(85501),h=n(13838),p=n(26218),m=n(38701),y=n(96115),v=n(89426),g=n(15258),b=n(92128),x=n(23608),_=n(21994),w=n(85555).WEEKDAY_PATTERN,k=n(85555).HOUR_PATTERN;function T(C,P,D){function O(N,E){return s.coerce(C,P,h.rangebreaks,N,E)}if(O("enabled")){var R=O("bounds");if(R&&R.length>=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(c.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;ee<P.rangebreaks.length;ee++)if(P.rangebreaks[ee].pattern===w){P._hasDayOfWeekBreaks=!0;break}if(_(P,R),R._has("scattergl")||R._has("splom"))for(var U=0;U<O.data.length;U++){var Q=O.data[U];Q.type!=="scattergl"&&Q.type!=="splom"||(Q.visible=!1,s.warn(Q.type+" traces do not work on axes with rangebreaks. Setting trace "+Q.index+" to `visible: false`."))}}else delete P.rangebreaks;return P};var M={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function S(C){if(typeof C=="string")return M[C.substr(0,3).toLowerCase()]}},12663:function(o,a,n){var l=n(31562),f=l.FORMAT_LINK,s=l.DATE_FORMAT_LINK;function c(h,p){return["Sets the "+h+" formatting rule"+(p?"for `"+p+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+f+"."].join(" ")}function d(h,p){return c(h,p)+[" And for dates see: "+s+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}o.exports={axisHoverFormat:function(h,p){return{valType:"string",dflt:"",editType:"none",description:(p?c:d)("hover text",h)+["By default the values are formatted using "+(p?"generic number format":"`"+h+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:c,descriptionWithDates:d}},41675:function(o,a,n){var l=n(73972),f=n(85555);function s(c,d){if(d&&d.length){for(var h=0;h<d.length;h++)if(d[h][c])return!0}return!1}a.id2name=function(c){if(typeof c=="string"&&c.match(f.AX_ID_PATTERN)){var d=c.split(" ")[0].substr(1);return d==="1"&&(d=""),c.charAt(0)+"axis"+d}},a.name2id=function(c){if(c.match(f.AX_NAME_PATTERN)){var d=c.substr(5);return d==="1"&&(d=""),c.charAt(0)+d}},a.cleanId=function(c,d,h){var p=/( domain)$/.test(c);if(typeof c=="string"&&c.match(f.AX_ID_PATTERN)&&(!d||c.charAt(0)===d)&&(!p||h)){var m=c.split(" ")[0].substr(1).replace(/^0+/,"");return m==="1"&&(m=""),c.charAt(0)+m+(p&&h?" domain":"")}},a.list=function(c,d,h){var p=c._fullLayout;if(!p)return[];var m,y=a.listIds(c,d),v=new Array(y.length);for(m=0;m<y.length;m++){var g=y[m];v[m]=p[g.charAt(0)+"axis"+g.substr(1)]}if(!h){var b=p._subplots.gl3d||[];for(m=0;m<b.length;m++){var x=p[b[m]];d?v.push(x[d+"axis"]):v.push(x.xaxis,x.yaxis,x.zaxis)}}return v},a.listIds=function(c,d){var h=c._fullLayout;if(!h)return[];var p=h._subplots;return d?p[d+"axis"]:p.xaxis.concat(p.yaxis)},a.getFromId=function(c,d,h){var p=c._fullLayout;return d=d===void 0||typeof d!="string"?d:d.replace(" domain",""),h==="x"?d=d.replace(/y[0-9]*/,""):h==="y"&&(d=d.replace(/x[0-9]*/,"")),p[a.id2name(d)]},a.getFromTrace=function(c,d,h){var p=c._fullLayout,m=null;if(l.traceIs(d,"gl3d")){var y=d.scene;y.substr(0,5)==="scene"&&(m=p[y][h+"axis"])}else m=a.getFromId(c,d[h+"axis"]||h);return m},a.idSort=function(c,d){var h=c.charAt(0),p=d.charAt(0);return h!==p?h>p?1:-1:+(c.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(c){return!!/^[xyz]/.test(c)&&c.split(" ")[0]},a.isLinked=function(c,d){return s(d,c._axisMatchGroups)||s(d,c._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,c=a.categoryarray,d=Array.isArray(c)&&c.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;g<y.data.length;g++){var w=y.data[g];w[x+"axis"]===m._id&&v.push(w)}for(g=0;g<v.length;g++){var k=v[g][x];for(b=0;b<k.length;b++){var T=k[b];T!=null&&(_[T]=1)}}return Object.keys(_)}(n,f).sort(),p==="category ascending"?n._initialCategories=h:p==="category descending"&&(n._initialCategories=h.reverse()))}}},66287:function(o,a,n){var l=n(92770),f=n(71828),s=n(50606),c=s.ONEDAY,d=s.ONEWEEK;a.dtick=function(h,p){var m=p==="log",y=p==="date",v=p==="category",g=y?c:1;if(!h)return g;if(l(h))return(h=Number(h))<=0?g:v?Math.max(1,Math.round(h)):y?Math.max(.1,h):h;if(typeof h!="string"||!y&&!m)return g;var b=h.charAt(0),x=h.substr(1);return(x=l(x)?Number(x):0)<=0||!(y&&b==="M"&&x===Math.round(x)||m&&b==="L"||m&&b==="D"&&(x===1||x===2))?g:h},a.tick0=function(h,p,m,y){return p==="date"?f.cleanDate(h,f.dateTick0(m,y%d==0?1:0)):y!=="D1"&&y!=="D2"?l(h)?Number(h):0:void 0}},85555:function(o,a,n){var l=n(30587).counter;o.exports={idRegex:{x:l("x","( domain)?"),y:l("y","( domain)?")},attrRegex:l("[xy]axis"),xAxisMatch:l("xaxis"),yAxisMatch:l("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},99082:function(o,a,n){var l=n(71828),f=n(71739),s=n(41675).id2name,c=n(13838),d=n(42449),h=n(21994),p=n(50606).ALMOST_EQUAL,m=n(18783).FROM_BL;function y(k,T,M){var S=M.axIds,C=M.layoutOut,P=M.hasImage,D=C._axisConstraintGroups,O=C._axisMatchGroups,R=T._id,F=R.charAt(0),A=((C._splomAxes||{})[F]||{})[R]||{},z=T._id,B=z.charAt(0)==="x";function $(Y,Z){return l.coerce(k,T,c,Y,Z)}T._matchGroup=null,T._constraintGroup=null,$("constrain",P?"domain":"range"),l.coerce(k,T,{constraintoward:{valType:"enumerated",values:B?["left","center","right"]:["bottom","middle","top"],dflt:B?"center":"middle"}},"constraintoward");var j,N,E=T.type,W=[];for(j=0;j<S.length;j++)(N=S[j])!==z&&C[s(N)].type===E&&W.push(N);var G=g(D,z);if(G){var L=[];for(j=0;j<W.length;j++)G[N=W[j]]||L.push(N);W=L}var q,H,V=W.length;V&&(k.matches||A.matches)&&(q=l.coerce(k,T,{matches:{valType:"enumerated",values:W,dflt:W.indexOf(A.matches)!==-1?A.matches:void 0}},"matches"));var te=P&&!B?T.anchor:void 0;if(V&&!q&&(k.scaleanchor||te)&&(H=l.coerce(k,T,{scaleanchor:{valType:"enumerated",values:W.concat([!1])}},"scaleanchor",te)),q){T._matchGroup=b(O,z,q,1);var ee=C[s(q)],U=v(C,T)/v(C,ee);B!==(q.charAt(0)==="x")&&(U=(B?"x":"y")+U),b(D,z,q,U)}else k.matches&&S.indexOf(k.matches)!==-1&&l.warn("ignored "+T._name+'.matches: "'+k.matches+'" to avoid an infinite loop');if(H){var Q=$("scaleratio");Q||(Q=T.scaleratio=1),b(D,z,H,Q)}else k.scaleanchor&&S.indexOf(k.scaleanchor)!==-1&&l.warn("ignored "+T._name+'.scaleanchor: "'+k.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function v(k,T){var M=T.domain;return M||(M=k[s(T.overlaying)].domain),M[1]-M[0]}function g(k,T){for(var M=0;M<k.length;M++)if(k[M][T])return k[M];return null}function b(k,T,M,S){var C,P,D,O,R,F=g(k,T);F===null?((F={})[T]=1,R=k.length,k.push(F)):R=k.indexOf(F);var A=Object.keys(F);for(C=0;C<k.length;C++)if(D=k[C],C!==R&&D[M]){var z=D[M];for(P=0;P<A.length;P++)D[O=A[P]]=x(z,x(S,F[O]));return void k.splice(R,1)}if(S!==1)for(P=0;P<A.length;P++){var B=A[P];F[B]=x(S,F[B])}F[M]=1}function x(k,T){var M,S,C="",P="";typeof k=="string"&&(M=(C=k.match(/^[xy]*/)[0]).length,k=+k.substr(M)),typeof T=="string"&&(S=(P=T.match(/^[xy]*/)[0]).length,T=+T.substr(S));var D=k*T;return M||S?M&&S&&C.charAt(0)!==P.charAt(0)?M===S?D:(M>S?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;D<P.length;D++){var O=P[D],R=k[O];if(typeof R=="string"){var F=R.match(/^[xy]*/)[0],A=F.length;R=+R.substr(A);for(var z=F.charAt(0)==="y"?S:1/S,B=0;B<A;B++)R*=z}C[O]=R}return C}function w(k,T){var M=k._inputDomain,S=m[k.constraintoward],C=M[0]+(M[1]-M[0])*S;k.domain=k._input.domain=[C+(M[0]-C)/T,C+(M[1]-C)/T],k.setScale()}a.handleDefaults=function(k,T,M){var S,C,P,D,O,R,F,A,z=M.axIds,B=M.axHasImage,$=T._axisConstraintGroups=[],j=T._axisMatchGroups=[];for(S=0;S<z.length;S++)y(O=k[D=s(z[S])],R=T[D],{axIds:z,layoutOut:T,hasImage:B[D]});function N(ee,U){for(S=0;S<ee.length;S++)for(P in C=ee[S])T[s(P)][U]=C}for(N(j,"_matchGroup"),S=0;S<$.length;S++)for(P in C=$[S])if((R=T[s(P)]).fixedrange){for(var E in C){var W=s(E);(k[W]||{}).fixedrange===!1&&l.warn("fixedrange was specified as false for axis "+W+" but was overridden because another axis in its constraint group has fixedrange true"),T[W].fixedrange=!0}break}for(S=0;S<$.length;){for(P in C=$[S]){(R=T[s(P)])._matchGroup&&Object.keys(R._matchGroup).length===Object.keys(C).length&&($.splice(S,1),S--);break}S++}N($,"_constraintGroup");var G=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],L=!1,q=!1;function H(){A=R[F],F==="rangebreaks"&&(q=R._hasDayOfWeekBreaks)}for(S=0;S<j.length;S++){C=j[S];for(var V=0;V<G.length;V++){var te;for(P in F=G[V],A=null,C)if(O=k[D=s(P)],R=T[D],F in R){if(!R.matches&&(te=R,F in O)){H();break}A===null&&F in O&&H()}if(F==="range"&&A&&O.range&&O.range.length===2&&O.range[0]!==null&&O.range[1]!==null&&(L=!0),F==="autorange"&&A===null&&L&&(A=!1),A===null&&F in te&&(A=te[F]),A!==null)for(P in C)(R=T[s(P)])[F]=F==="range"?A.slice():A,F==="rangebreaks"&&(R._hasDayOfWeekBreaks=q,h(R,T))}}},a.enforce=function(k){var T,M,S,C,P,D,O,R,F=k._fullLayout,A=F._axisConstraintGroups||[];for(T=0;T<A.length;T++){S=_(A[T],F);var z=Object.keys(S),B=1/0,$=0,j=1/0,N={},E={},W=!1;for(M=0;M<z.length;M++)E[C=z[M]]=P=F[s(C)],P._inputDomain?P.domain=P._inputDomain.slice():P._inputDomain=P.domain.slice(),P._inputRange||(P._inputRange=P.range.slice()),P.setScale(),N[C]=D=Math.abs(P._m)/S[C],B=Math.min(B,D),P.constrain!=="domain"&&P._constraintShrinkable||(j=Math.min(j,D)),delete P._constraintShrinkable,$=Math.max($,D),P.constrain==="domain"&&(W=!0);if(!(B>p*$)||W){for(M=0;M<z.length;M++)if(D=N[C=z[M]],O=(P=E[C]).constrain,D!==j||O==="domain")if(R=D/j,O==="range")d(P,R);else{var G=P._inputDomain,L=(P.domain[1]-P.domain[0])/(G[1]-G[0]),q=(P.r2l(P.range[1])-P.r2l(P.range[0]))/(P.r2l(P._inputRange[1])-P.r2l(P._inputRange[0]));if((R/=L)*q<1){P.domain=P._input.domain=G.slice(),d(P,R);continue}if(q<1&&(P.range=P._input.range=P._inputRange.slice(),R*=q),P.autorange){var H=P.r2l(P.range[0]),V=P.r2l(P.range[1]),te=(H+V)/2,ee=te,U=te,Q=Math.abs(V-te),Y=te-Q*R*1.0001,Z=te+Q*R*1.0001,X=f.makePadFn(F,P,0),re=f.makePadFn(F,P,1);w(P,R);var ie,le,se=Math.abs(P._m),pe=f.concatExtremes(k,P),Te=pe.min,Se=pe.max;for(le=0;le<Te.length;le++)(ie=Te[le].val-X(Te[le])/se)>Y&&ie<ee&&(ee=ie);for(le=0;le<Se.length;le++)(ie=Se[le].val+re(Se[le])/se)<Z&&ie>U&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H<V?[ee,U]:[U,ee]}w(P,R)}}}},a.getAxisGroup=function(k,T){for(var M=k._axisMatchGroups,S=0;S<M.length;S++)if(M[S][T])return"g"+S;return T},a.clean=function(k,T){if(T._inputDomain){for(var M=!1,S=T._id,C=k._fullLayout._axisConstraintGroups,P=0;P<C.length;P++)if(C[P][S]){M=!0;break}M&&T.constrain==="domain"||(T._input.domain=T.domain=T._inputDomain,delete T._inputDomain)}}},29323:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(84267),d=n(38520),h=n(73972),p=f.strTranslate,m=n(63893),y=n(7901),v=n(91424),g=n(30211),b=n(89298),x=n(6964),_=n(28569),w=n(64505),k=w.selectingOrDrawing,T=w.freeMode,M=n(18783).FROM_TL,S=n(33306),C=n(61549).redrawReglTraces,P=n(74875),D=n(41675).getFromId,O=n(47322).prepSelect,R=n(47322).clearOutline,F=n(47322).selectOnClick,A=n(42449),z=n(85555),B=z.MINDRAG,$=z.MINZOOM,j=!0;function N(ie,le,se,pe){var Te=f.ensureSingle(ie.draglayer,le,se,function(Se){Se.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",ie.id)});return Te.call(x,pe),Te.node()}function E(ie,le,se,pe,Te,Se,Oe){var Me=N(ie,"rect",le,se);return l.select(Me).call(v.setRect,pe,Te,Se,Oe),Me}function W(ie,le){for(var se=0;se<ie.length;se++)if(!ie[se].fixedrange)return le;return""}function G(ie,le,se,pe,Te){for(var Se=0;Se<ie.length;Se++){var Oe=ie[Se];if(!Oe.fixedrange)if(Oe.rangebreaks){var Me=Oe._id.charAt(0)==="y",ce=Me?1-le:le,ye=Me?1-se:se;pe[Oe._name+".range[0]"]=Oe.l2r(Oe.p2l(ce*Oe._length)),pe[Oe._name+".range[1]"]=Oe.l2r(Oe.p2l(ye*Oe._length))}else{var J=Oe._rl[0],ne=Oe._rl[1]-J;pe[Oe._name+".range[0]"]=Oe.l2r(J+ne*le),pe[Oe._name+".range[1]"]=Oe.l2r(J+ne*se)}}if(Te&&Te.length){var de=(le+(1-se))/2;G(Te,de,1-de,pe,[])}}function L(ie,le){for(var se=0;se<ie.length;se++){var pe=ie[se];if(!pe.fixedrange){if(pe.rangebreaks){var Te=pe._length,Se=(pe.p2l(0+le)-pe.p2l(0)+(pe.p2l(Te+le)-pe.p2l(Te)))/2;pe.range=[pe.l2r(pe._rl[0]-Se),pe.l2r(pe._rl[1]-Se)]}else pe.range=[pe.l2r(pe._rl[0]-le/pe._m),pe.l2r(pe._rl[1]-le/pe._m)];pe.limitRange&&pe.limitRange()}}}function q(ie){return 1-(ie>=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue<le.length;ue++){var ge=le[ue];for(Se in se)if(ge[Se]){for(Me in ge)Te&&(de[Me]||xe[Me])||(Me.charAt(0)==="x"?se:pe)[Me]||(J[Me]=Se);for(Oe in pe)Te&&(de[Oe]||xe[Oe])||!ge[Oe]||(ye=!0)}for(Oe in pe)if(ge[Oe])for(ce in ge)Te&&(de[ce]||xe[ce])||(ce.charAt(0)==="x"?se:pe)[ce]||(ne[ce]=Oe)}ye&&(f.extendFlat(J,ne),ne={});var be={},we=[];for(Me in J){var ke=D(ie,Me);we.push(ke),be[ke._id]=ke}var Ae={},Ee=[];for(ce in ne){var De=D(ie,ce);Ee.push(De),Ae[De._id]=De}return{xaHash:be,yaHash:Ae,xaxes:we,yaxes:Ee,xLinks:J,yLinks:ne,isSubplotConstrained:ye}}function X(ie,le){if(d){var se=ie.onwheel!==void 0?"wheel":"mousewheel";ie._onwheel&&ie.removeEventListener(se,ie._onwheel),ie._onwheel=le,ie.addEventListener(se,le,{passive:!1})}else ie.onwheel!==void 0?ie.onwheel=le:ie.onmousewheel!==void 0?ie.onmousewheel=le:ie.isAddedWheelEvent||(ie.isAddedWheelEvent=!0,ie.addEventListener("wheel",le,{passive:!1}))}function re(ie){var le=[];for(var se in ie)le.push(ie[se]);return le}o.exports={makeDragBox:function(ie,le,se,pe,Te,Se,Oe,Me){var ce,ye,J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt=ie._fullLayout._zoomlayer,ze=Oe+Me==="nsew",Ne=(Oe+Me).length===1;function Qe(){if(ce=le.xaxis,ye=le.yaxis,be=ce._length,we=ye._length,ue=ce._offset,ge=ye._offset,(J={})[ce._id]=ce,(ne={})[ye._id]=ye,Oe&&Me)for(var Tt=le.overlays,Ot=0;Ot<Tt.length;Ot++){var At=Tt[Ot].xaxis;J[At._id]=At;var Lt=Tt[Ot].yaxis;ne[Lt._id]=Lt}de=re(J),xe=re(ne),Ee=W(de,Me),De=W(xe,Oe),Re=!De&&!Ee,Ae=Z(ie,ie._fullLayout._axisMatchGroups,J,ne);var Rt=(ke=Z(ie,ie._fullLayout._axisConstraintGroups,J,ne,Ae)).isSubplotConstrained||Ae.isSubplotConstrained;Ie=Me||Rt,Be=Oe||Rt;var $t=ie._fullLayout;Ue=$t._has("scattergl"),qe=$t._has("splom"),Ye=$t._has("svg")}se+=le.yaxis._shift,Qe();var it=function(Tt,Ot,At){return Tt?Tt==="nsew"?At?"":Ot==="pan"?"move":"crosshair":Tt.toLowerCase()+"-resize":"pointer"}(De+Ee,ie._fullLayout.dragmode,ze),kt=E(le,Oe+Me+"drag",it,se,pe,Te,Se);if(Re&&!ze)return kt.onmousedown=null,kt.style.pointerEvents="none",kt;var Je,ut,pt,It,Mt,zt,wt,ve,_e,Ve,We={element:kt,gd:ie,plotinfo:le};function Ze(){We.plotinfo.selection=!1,R(ie)}function Ge(Tt,Ot){var At=We.gd;if(At._fullLayout._activeShapeIndex>=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t<Math.min(Math.max(.6*Rt,B),$)?Rt<B||!Ee?Yt():(pt.t=0,pt.b=we,wt="x",_e.attr("d",function(Wt,tn){return"M"+(Wt.l-.5)+","+(tn-$-.5)+"h-3v"+(2*$+1)+"h3ZM"+(Wt.r+.5)+","+(tn-$-.5)+"h3v"+(2*$+1)+"h-3Z"}(pt,ut))):!Ee||Rt<Math.min(.6*$t,$)?(pt.l=0,pt.r=be,wt="y",_e.attr("d",function(Wt,tn){return"M"+(tn-$-.5)+","+(Wt.t-.5)+"v-3h"+(2*$+1)+"v3ZM"+(tn-$-.5)+","+(Wt.b+.5)+"v3h"+(2*$+1)+"v-3Z"}(pt,Je))):(wt="xy",_e.attr("d",Y(pt)));pt.w=pt.r-pt.l,pt.h=pt.b-pt.t,wt&&(Ve=!0),ie._dragged=Ve,te(ve,_e,pt,Mt,zt,It),nt(),ie.emit("plotly_relayouting",at),zt=!0}function nt(){at={},wt!=="xy"&&wt!=="x"||(G(de,pt.l/be,pt.r/be,at,ke.xaxes),Nt("x",at)),wt!=="xy"&&wt!=="y"||(G(xe,(we-pt.b)/we,(we-pt.t)/we,at,ke.yaxes),Nt("y",at))}function st(){nt(),U(ie),ht(),Q(ie)}We.prepFn=function(Tt,Ot,At){var Lt=We.dragmode,Rt=ie._fullLayout.dragmode;Rt!==Lt&&(We.dragmode=Rt),Qe(),lt=ie._fullLayout._invScaleX,ct=ie._fullLayout._invScaleY,Re||(ze?Tt.shiftKey?Rt==="pan"?Rt="zoom":k(Rt)||(Rt="pan"):Tt.ctrlKey&&(Rt="pan"):Rt="pan"),T(Rt)?We.minDrag=1:We.minDrag=void 0,k(Rt)?(We.xaxes=de,We.yaxes=xe,O(Tt,Ot,At,We,Rt)):(We.clickFn=Ge,k(Lt)&&Ze(),Re||(Rt==="zoom"?(We.moveFn=Ke,We.doneFn=st,We.minDrag=1,function($t,Yt,Xt){var Bt=kt.getBoundingClientRect();Je=Yt-Bt.left,ut=Xt-Bt.top,ie._fullLayout._calcInverseTransform(ie);var Wt=f.apply3DTransform(ie._fullLayout._invTransform)(Je,ut);Je=Wt[0],ut=Wt[1],pt={l:Je,r:Je,w:0,t:ut,b:ut,h:0},It=ie._hmpixcount?ie._hmlumcount/ie._hmpixcount:c(ie._fullLayout.plot_bgcolor).getLuminance(),zt=!1,wt="xy",Ve=!1,ve=H(bt,It,ue,ge,Mt="M0,0H"+be+"V"+we+"H0V0"),_e=V(bt,ue,ge)}(0,Ot,At)):Rt==="pan"&&(We.moveFn=St,We.doneFn=ht))),ie._fullLayout._redrag=function(){var $t=ie._dragdata;if($t&&$t.element===kt){var Yt=ie._fullLayout.dragmode;k(Yt)||(Qe(),yt([0,0,be,we]),We.moveFn($t.dx,$t.dy))}}},_.init(We);var mt=[0,0,be,we],tt=null,Ft=z.REDRAWDELAY,Vt=le.mainplot?ie._fullLayout._plots[le.mainplot]:le;function St(Tt,Ot){if(Tt*=lt,Ot*=ct,!ie._transitioningWithDuration){if(ie._fullLayout._replotting=!0,Ee==="ew"||De==="ns"){var At=Ee?-Tt:0,Lt=De?-Ot:0;if(Ae.isSubplotConstrained){if(Ee&&De){var Rt=(Tt/be-Ot/we)/2;At=-(Tt=Rt*be),Lt=-(Ot=-Rt*we)}De?At=-Lt*be/we:Lt=-At*we/be}return Ee&&(L(de,Tt),Nt("x")),De&&(L(xe,Ot),Nt("y")),yt([At,Lt,be,we]),Dt(),void ie.emit("plotly_relayouting",at)}var $t,Yt,Xt=Ee==="w"==(De==="n")?1:-1;if(Ee&&De&&(ke.isSubplotConstrained||Ae.isSubplotConstrained)){var Bt=(Tt/be+Xt*Ot/we)/2;Tt=Bt*be,Ot=Xt*Bt*we}if(Ee==="w"?Tt=ln(de,0,Tt):Ee==="e"?Tt=ln(de,1,-Tt):Ee||(Tt=0),De==="n"?Ot=ln(xe,1,Ot):De==="s"?Ot=ln(xe,0,-Ot):De||(Ot=0),$t=Ee==="w"?Tt:0,Yt=De==="n"?Ot:0,ke.isSubplotConstrained&&!Ae.isSubplotConstrained||Ae.isSubplotConstrained&&Ee&&De&&Xt>0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt<de.length;Wt++)de[Wt].range=de[Wt]._r.slice(),A(de[Wt],1-Ot/we);$t=(Tt=Ot*be/we)/2}if(Ae.isSubplotConstrained||!De&&Ee.length===1){for(Wt=0;Wt<xe.length;Wt++)xe[Wt].range=xe[Wt]._r.slice(),A(xe[Wt],1-Tt/be);Yt=(Ot=Tt*we/be)/2}}Ae.isSubplotConstrained&&De||Nt("x"),Ae.isSubplotConstrained&&Ee||Nt("y");var tn=be-Tt,cn=we-Ot;!Ae.isSubplotConstrained||Ee&&De||(Ee?(Yt=$t?0:Tt*we/be,cn=tn*we/be):($t=Yt?0:Ot*be/we,tn=cn*be/we)),yt([$t,Yt,tn,cn]),Dt(),ie.emit("plotly_relayouting",at)}function ln(an,sn,Zt){for(var pn,nn,Kt=1-sn,Cn=0;Cn<an.length;Cn++){var _n=an[Cn];if(!_n.fixedrange){pn=_n,nn=_n._rl[Kt]+(_n._rl[sn]-_n._rl[Kt])/q(Zt/_n._length);var Pn=_n.l2r(nn);Pn!==!1&&Pn!==void 0&&(_n.range[sn]=Pn)}}return pn._length*(pn._rl[sn]-nn)/(pn._rl[sn]-pn._rl[Kt])}}function Nt(Tt,Ot){for(var At=Ae.isSubplotConstrained?{x:xe,y:de}[Tt]:Ae[Tt+"axes"],Lt=Ae.isSubplotConstrained?{x:de,y:xe}[Tt]:[],Rt=0;Rt<At.length;Rt++){var $t=At[Rt],Yt=$t._id,Xt=Ae.xLinks[Yt]||Ae.yLinks[Yt],Bt=Lt[0]||J[Xt]||ne[Xt];Bt&&(Ot?(Ot[$t._name+".range[0]"]=Ot[Bt._name+".range[0]"],Ot[$t._name+".range[1]"]=Ot[Bt._name+".range[1]"]):$t.range=Bt.range.slice())}}function Dt(){var Tt,Ot=[];function At(Yt){for(Tt=0;Tt<Yt.length;Tt++)Yt[Tt].fixedrange||Ot.push(Yt[Tt]._id)}function Lt(Yt,Xt){for(Tt=0;Tt<Yt.length;Tt++){var Bt=Yt[Tt],Wt=Bt[Xt];Bt.fixedrange||Wt.tickmode!=="sync"||Ot.push(Wt._id)}}for(Ie&&(At(de),At(ke.xaxes),At(Ae.xaxes),Lt(le.overlays,"xaxis")),Be&&(At(xe),At(ke.yaxes),At(Ae.yaxes),Lt(le.overlays,"yaxis")),at={},Tt=0;Tt<Ot.length;Tt++){var Rt=Ot[Tt],$t=D(ie,Rt);b.drawOne(ie,$t,{skipTitle:!0}),at[$t._name+".range[0]"]=$t.range[0],at[$t._name+".range[1]"]=$t.range[1]}b.redrawComponents(ie,Ot)}function gt(){if(!ie._transitioningWithDuration){var Tt=ie._context.doubleClick,Ot=[];Ee&&(Ot=Ot.concat(de)),De&&(Ot=Ot.concat(xe)),Ae.xaxes&&(Ot=Ot.concat(Ae.xaxes)),Ae.yaxes&&(Ot=Ot.concat(Ae.yaxes));var At,Lt,Rt={};if(Tt==="reset+autosize")for(Tt="autosize",Lt=0;Lt<Ot.length;Lt++){var $t=(At=Ot[Lt])._rangeInitial0,Yt=At._rangeInitial1,Xt=$t!==void 0||Yt!==void 0;if(Xt&&($t!==void 0&&$t!==At.range[0]||Yt!==void 0&&Yt!==At.range[1])||!Xt&&At.autorange!==!0){Tt="reset";break}}if(Tt==="autosize")for(Lt=0;Lt<Ot.length;Lt++)(At=Ot[Lt]).fixedrange||(Rt[At._name+".autorange"]=!0);else if(Tt==="reset"){for((Ee||ke.isSubplotConstrained)&&(Ot=Ot.concat(ke.xaxes)),De&&!ke.isSubplotConstrained&&(Ot=Ot.concat(ke.yaxes)),ke.isSubplotConstrained&&(Ee?De||(Ot=Ot.concat(xe)):Ot=Ot.concat(de)),Lt=0;Lt<Ot.length;Lt++)if(!(At=Ot[Lt]).fixedrange){var Bt=At._name,Wt=At._autorangeInitial;At._rangeInitial0===void 0&&At._rangeInitial1===void 0?Rt[Bt+".autorange"]=!0:At._rangeInitial0===void 0?(Rt[Bt+".autorange"]=Wt,Rt[Bt+".range"]=[null,At._rangeInitial1]):At._rangeInitial1===void 0?(Rt[Bt+".range"]=[At._rangeInitial0,null],Rt[Bt+".autorange"]=Wt):Rt[Bt+".range"]=[At._rangeInitial0,At._rangeInitial1]}}ie.emit("plotly_doubleclick",null),h.call("_guiRelayout",ie,Rt)}}function ht(){yt([0,0,be,we]),f.syncOrAsync([P.previousPromises,function(){ie._fullLayout._replotting=!1,h.call("_guiRelayout",ie,at)}],ie)}function yt(Tt){var Ot,At,Lt,Rt,$t=ie._fullLayout,Yt=$t._plots,Xt=$t._subplots.cartesian;if(qe&&h.subplotsRegistry.splom.drag(ie),Ue){for(Ot=0;Ot<Xt.length;Ot++)if(Lt=(At=Yt[Xt[Ot]]).xaxis,Rt=At.yaxis,At._scene){var Bt=f.simpleMap(Lt.range,Lt.r2l),Wt=f.simpleMap(Rt.range,Rt.r2l);Lt.limitRange&&Lt.limitRange(),Rt.limitRange&&Rt.limitRange(),Bt=Lt.range,Wt=Rt.range,At._scene.update({range:[Bt[0],Wt[0],Bt[1],Wt[1]]})}}if((qe||Ue)&&(S(ie),C(ie)),Ye){var tn=Tt[2]/ce._length,cn=Tt[3]/ye._length;for(Ot=0;Ot<Xt.length;Ot++){Lt=(At=Yt[Xt[Ot]]).xaxis,Rt=At.yaxis;var ln,an,sn,Zt,pn=(Ie||Ae.isSubplotConstrained)&&!Lt.fixedrange&&J[Lt._id],nn=(Be||Ae.isSubplotConstrained)&&!Rt.fixedrange&&ne[Rt._id];if(pn?(ln=tn,sn=Me||Ae.isSubplotConstrained?Tt[0]:jt(Lt,ln)):Ae.xaHash[Lt._id]?(ln=tn,sn=Tt[0]*Lt._length/ce._length):Ae.yaHash[Lt._id]?(ln=cn,sn=De==="ns"?-Tt[1]*Lt._length/ye._length:jt(Lt,ln,{n:"top",s:"bottom"}[De])):sn=Et(Lt,ln=qt(Lt,tn,cn)),ln>1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]<Lt.range[1]?"e":"w")||Lt.minallowed!==void 0&&Ie===(Lt.range[0]<Lt.range[1]?"w":"e"))&&(ln=1,sn=0),nn?(an=cn,Zt=Oe||Ae.isSubplotConstrained?Tt[1]:jt(Rt,an)):Ae.yaHash[Rt._id]?(an=cn,Zt=Tt[1]*Rt._length/ye._length):Ae.xaHash[Rt._id]?(an=tn,Zt=Ee==="ew"?-Tt[0]*Rt._length/ce._length:jt(Rt,an,{e:"right",w:"left"}[Ee])):Zt=Et(Rt,an=qt(Rt,tn,cn)),an>1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]<Rt.range[1]?"n":"s")||Rt.minallowed!==void 0&&Be===(Rt.range[0]<Rt.range[1]?"s":"n"))&&(an=1,Zt=0),ln||an){ln||(ln=1),an||(an=1);var Kt=Lt._offset-sn/ln,Cn=Rt._offset-Zt/an;At.clipRect.call(v.setTranslate,sn,Zt).call(v.setScale,ln,an),At.plot.call(v.setTranslate,Kt,Cn).call(v.setScale,1/ln,1/an),ln===At.xScaleFactor&&an===At.yScaleFactor||(v.setPointGroupScale(At.zoomScalePts,ln,an),v.setTextPointsScale(At.zoomScaleTxt,ln,an)),v.hideOutsideRangePoints(At.clipOnAxisFalseTraces,At),At.xScaleFactor=ln,At.yScaleFactor=an}}}}function qt(Tt,Ot,At){return Tt.fixedrange?0:Ie&&ke.xaHash[Tt._id]?Ot:Be&&(ke.isSubplotConstrained?ke.xaHash:ke.yaHash)[Tt._id]?At:0}function Et(Tt,Ot){return Ot?(Tt.range=Tt._r.slice(),A(Tt,Ot),jt(Tt,Ot)):0}function jt(Tt,Ot,At){return Tt._length*(1-Ot)*M[At||Tt.constraintoward||"middle"]}return Oe.length*Me.length!=1&&X(kt,function(Tt){if(ie._context._scrollZoom.cartesian||ie._fullLayout._enablescrollzoom){if(Ze(),ie._transitioningWithDuration)return Tt.preventDefault(),void Tt.stopPropagation();Qe(),clearTimeout(tt);var Ot=-Tt.deltaY;if(isFinite(Ot)||(Ot=Tt.wheelDelta/10),isFinite(Ot)){var At,Lt=Math.exp(-Math.min(Math.max(Ot,-20),20)/200),Rt=Vt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),$t=(Tt.clientX-Rt.left)/Rt.width,Yt=(Rt.bottom-Tt.clientY)/Rt.height;if(Ie){for(Me||($t=.5),At=0;At<de.length;At++)Xt(de[At],$t,Lt);Nt("x"),mt[2]*=Lt,mt[0]+=mt[2]*$t*(1/Lt-1)}if(Be){for(Oe||(Yt=.5),At=0;At<xe.length;At++)Xt(xe[At],Yt,Lt);Nt("y"),mt[3]*=Lt,mt[1]+=mt[3]*(1-Yt)*(1/Lt-1)}yt(mt),Dt(),ie.emit("plotly_relayouting",at),tt=setTimeout(function(){ie._fullLayout&&(mt=[0,0,be,we],ht())},Ft),Tt.preventDefault()}else f.log("Did not find wheel motion attributes: ",Tt)}function Xt(Bt,Wt,tn){if(!Bt.fixedrange){var cn=f.simpleMap(Bt.range,Bt.r2l),ln=cn[0]+(cn[1]-cn[0])*Wt;Bt.range=cn.map(function(an){return Bt.l2r(ln+(an-ln)*tn)})}}}),kt},makeDragger:N,makeRectDragger:E,makeZoombox:H,makeCorners:V,updateZoombox:te,xyCorners:Y,transitionZoombox:ee,removeZoombox:U,showDoubleClickNotifier:Q,attachWheelEventHandler:X}},4305:function(o,a,n){var l=n(39898),f=n(30211),s=n(28569),c=n(6964),d=n(29323).makeDragBox,h=n(85555).DRAGGERSIZE;a.initInteractions=function(p){var m=p._fullLayout;if(p._context.staticPlot)l.select(p).selectAll(".drag").remove();else if(m._has("cartesian")||m._has("splom")){Object.keys(m._plots||{}).sort(function(v,g){if((m._plots[v].mainplot&&!0)===(m._plots[g].mainplot&&!0)){var b=v.split("y"),x=g.split("y");return b[0]===x[0]?Number(b[1]||1)-Number(x[1]||1):Number(b[0]||1)-Number(x[0]||1)}return m._plots[v].mainplot?1:-1}).forEach(function(v){var g=m._plots[v],b=g.xaxis,x=g.yaxis;if(!g.mainplot){var _=d(p,g,b._offset,x._offset,b._length,x._length,"ns","ew");_.onmousemove=function(T){p._fullLayout._rehover=function(){p._fullLayout._hoversubplot===v&&p._fullLayout._plots[v]&&f.hover(p,T,v)},f.hover(p,T,v),p._fullLayout._lasthover=_,p._fullLayout._hoversubplot=v},_.onmouseout=function(T){p._dragging||(p._fullLayout._hoversubplot=null,s.unhover(p,T))},p._context.showAxisDragHandles&&(d(p,g,b._offset-h,x._offset-h,h,h,"n","w"),d(p,g,b._offset+b._length,x._offset-h,h,h,"n","e"),d(p,g,b._offset-h,x._offset+x._length,h,h,"s","w"),d(p,g,b._offset+b._length,x._offset+x._length,h,h,"s","e"))}if(p._context.showAxisDragHandles){if(v===b._mainSubplot){var w=b._mainLinePosition;b.side==="top"&&(w-=h),d(p,g,b._offset+.1*b._length,w,.8*b._length,h,"","ew"),d(p,g,b._offset,w,.1*b._length,h,"","w"),d(p,g,b._offset+.9*b._length,w,.1*b._length,h,"","e")}if(v===x._mainSubplot){var k=x._mainLinePosition;x.side!=="right"&&(k-=h),d(p,g,k,x._offset+.1*x._length,h,.8*x._length,"ns",""),d(p,g,k,x._offset+.9*x._length,h,.1*x._length,"s",""),d(p,g,k,x._offset,h,.1*x._length,"n","")}}});var y=m._hoverlayer.node();y.onmousemove=function(v){v.target=p._fullLayout._lasthover,f.hover(p,v,m._hoversubplot)},y.onclick=function(v){v.target=p._fullLayout._lasthover,f.click(p,v)},y.onmousedown=function(v){p._fullLayout._lasthover.onmousedown(v)},a.updateFx(p)}},a.updateFx=function(p){var m=p._fullLayout,y=m.dragmode==="pan"?"move":"crosshair";c(m._draggers,y)}},76325:function(o,a,n){var l=n(73972),f=n(71828),s=n(41675);o.exports=function(c){return function(d,h){var p=d[c];if(Array.isArray(p))for(var m=l.subplotsRegistry.cartesian,y=m.idRegex,v=h._subplots,g=v.xaxis,b=v.yaxis,x=v.cartesian,_=h._has("cartesian")||h._has("gl2d"),w=0;w<p.length;w++){var k=p[w];if(f.isPlainObject(k)){var T=s.cleanId(k.xref,"x",!1),M=s.cleanId(k.yref,"y",!1),S=y.x.test(T),C=y.y.test(M);if(S||C){_||f.pushUnique(h._basePlotModules,m);var P=!1;S&&g.indexOf(T)===-1&&(g.push(T),P=!0),C&&b.indexOf(M)===-1&&(b.push(M),P=!0),P&&S&&C&&x.push(T+M)}}}}}},93612:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=n(74875),d=n(91424),h=n(27659).a0,p=n(41675),m=n(85555),y=n(77922),v=s.ensureSingle;function g(k,T,M){return s.ensureSingle(k,T,M,function(S){S.datum(M)})}function b(k,T,M,S,C){for(var P,D,O,R=m.traceLayerClasses,F=k._fullLayout,A=F._modules,z=[],B=[],$=0;$<A.length;$++){var j=(P=A[$]).name,N=f.modules[j].categories;if(N.svg){var E=P.layerName||j+"layer",W=P.plot;O=(D=h(M,W))[0],M=D[1],O.length&&z.push({i:R.indexOf(E),className:E,plotMethod:W,cdModule:O}),N.zoomScale&&B.push("."+E)}}z.sort(function(q,H){return q.i-H.i});var G=T.plot.selectAll("g.mlayer").data(z,function(q){return q.className});if(G.enter().append("g").attr("class",function(q){return q.className}).classed("mlayer",!0).classed("rangeplot",T.isRangePlot),G.exit().remove(),G.order(),G.each(function(q){var H=l.select(this),V=q.className;q.plotMethod(k,T,q.cdModule,H,S,C),m.clipOnAxisFalseQuery.indexOf("."+V)===-1&&d.setClipUrl(H,T.layerClipId,k)}),F._has("scattergl")&&(P=f.getModule("scattergl"),O=h(M,P)[0],P.plot(k,T,O)),!k._context.staticPlot&&(T._hasClipOnAxisFalse&&(T.clipOnAxisFalseTraces=T.plot.selectAll(m.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),B.length)){var L=T.plot.selectAll(B.join(",")).selectAll(".trace");T.zoomScalePts=L.selectAll("path.point"),T.zoomScaleTxt=L.selectAll(".textpoint")}}function x(k,T){var M=T.plotgroup,S=T.id,C=m.layerValue2layerClass[T.xaxis.layer],P=m.layerValue2layerClass[T.yaxis.layer],D=k._fullLayout._hasOnlyLargeSploms;if(T.mainplot){var O=T.mainplotinfo,R=O.plotgroup,F=S+"-x",A=S+"-y";T.minorGridlayer=O.minorGridlayer,T.gridlayer=O.gridlayer,T.zerolinelayer=O.zerolinelayer,v(O.overlinesBelow,"path",F),v(O.overlinesBelow,"path",A),v(O.overaxesBelow,"g",F),v(O.overaxesBelow,"g",A),T.plot=v(O.overplot,"g",S),v(O.overlinesAbove,"path",F),v(O.overlinesAbove,"path",A),v(O.overaxesAbove,"g",F),v(O.overaxesAbove,"g",A),T.xlines=R.select(".overlines-"+C).select("."+F),T.ylines=R.select(".overlines-"+P).select("."+A),T.xaxislayer=R.select(".overaxes-"+C).select("."+F),T.yaxislayer=R.select(".overaxes-"+P).select("."+A)}else if(D)T.xlines=v(M,"path","xlines-above"),T.ylines=v(M,"path","ylines-above"),T.xaxislayer=v(M,"g","xaxislayer-above"),T.yaxislayer=v(M,"g","yaxislayer-above");else{var z=v(M,"g","layer-subplot");T.shapelayer=v(z,"g","shapelayer"),T.imagelayer=v(z,"g","imagelayer"),T.minorGridlayer=v(M,"g","minor-gridlayer"),T.gridlayer=v(M,"g","gridlayer"),T.zerolinelayer=v(M,"g","zerolinelayer"),v(M,"path","xlines-below"),v(M,"path","ylines-below"),T.overlinesBelow=v(M,"g","overlines-below"),v(M,"g","xaxislayer-below"),v(M,"g","yaxislayer-below"),T.overaxesBelow=v(M,"g","overaxes-below"),T.plot=v(M,"g","plot"),T.overplot=v(M,"g","overplot"),T.xlines=v(M,"path","xlines-above"),T.ylines=v(M,"path","ylines-above"),T.overlinesAbove=v(M,"g","overlines-above"),v(M,"g","xaxislayer-above"),v(M,"g","yaxislayer-above"),T.overaxesAbove=v(M,"g","overaxes-above"),T.xlines=M.select(".xlines-"+C),T.ylines=M.select(".ylines-"+P),T.xaxislayer=M.select(".xaxislayer-"+C),T.yaxislayer=M.select(".yaxislayer-"+P)}D||(g(T.minorGridlayer,"g",T.xaxis._id),g(T.minorGridlayer,"g",T.yaxis._id),T.minorGridlayer.selectAll("g").map(function(B){return B[0]}).sort(p.idSort),g(T.gridlayer,"g",T.xaxis._id),g(T.gridlayer,"g",T.yaxis._id),T.gridlayer.selectAll("g").map(function(B){return B[0]}).sort(p.idSort)),T.xlines.style("fill","none").classed("crisp",!0),T.ylines.style("fill","none").classed("crisp",!0)}function _(k,T){if(k){var M={};for(var S in k.each(function(O){var R=O[0];l.select(this).remove(),w(R,T),M[R]=!0}),T._plots)for(var C=T._plots[S].overlays||[],P=0;P<C.length;P++){var D=C[P];M[D.id]&&D.plot.selectAll(".trace").remove()}}}function w(k,T){T._draggers.selectAll("g."+k).remove(),T._defs.select("#clip"+T._uid+k+"plot").remove()}a.name="cartesian",a.attr=["xaxis","yaxis"],a.idRoot=["x","y"],a.idRegex=m.idRegex,a.attrRegex=m.attrRegex,a.attributes=n(89502),a.layoutAttributes=n(13838),a.supplyLayoutDefaults=n(86763),a.transitionAxes=n(66847),a.finalizeSubplots=function(k,T){var M,S,C,P=T._subplots,D=P.xaxis,O=P.yaxis,R=P.cartesian,F=R.concat(P.gl2d||[]),A={},z={};for(M=0;M<F.length;M++){var B=F[M].split("y");A[B[0]]=1,z["y"+B[1]]=1}for(M=0;M<D.length;M++)A[S=D[M]]||(C=(k[p.id2name(S)]||{}).anchor,m.idRegex.y.test(C)||(C="y"),R.push(S+C),F.push(S+C),z[C]||(z[C]=1,s.pushUnique(O,C)));for(M=0;M<O.length;M++)z[C=O[M]]||(S=(k[p.id2name(C)]||{}).anchor,m.idRegex.x.test(S)||(S="x"),R.push(S+C),F.push(S+C),A[S]||(A[S]=1,s.pushUnique(D,S)));if(!F.length){for(var $ in S="",C="",k)m.attrRegex.test($)&&($.charAt(0)==="x"?(!S||+$.substr(5)<+S.substr(5))&&(S=$):(!C||+$.substr(5)<+C.substr(5))&&(C=$));S=S?p.name2id(S):"x",C=C?p.name2id(C):"y",D.push(S),O.push(C),R.push(S+C)}},a.plot=function(k,T,M,S){var C,P=k._fullLayout,D=P._subplots.cartesian,O=k.calcdata;if(!Array.isArray(T))for(T=[],C=0;C<O.length;C++)T.push(C);for(C=0;C<D.length;C++){for(var R,F=D[C],A=P._plots[F],z=[],B=0;B<O.length;B++){var $=O[B],j=$[0].trace;j.xaxis+j.yaxis===F&&((T.indexOf(j.index)!==-1||j.carpet)&&(R&&R[0].trace.xaxis+R[0].trace.yaxis===F&&["tonextx","tonexty","tonext"].indexOf(j.fill)!==-1&&z.indexOf(R)===-1&&z.push(R),z.push($)),R=$)}b(k,A,z,M,S)}},a.clean=function(k,T,M,S){var C,P,D,O=S._plots||{},R=T._plots||{},F=S._subplots||{};if(S._hasOnlyLargeSploms&&!T._hasOnlyLargeSploms)for(D in O)(C=O[D]).plotgroup&&C.plotgroup.remove();var A=S._has&&S._has("gl"),z=T._has&&T._has("gl");if(A&&!z)for(D in O)(C=O[D])._scene&&C._scene.destroy();if(F.xaxis&&F.yaxis){var B=p.listIds({_fullLayout:S});for(P=0;P<B.length;P++){var $=B[P];T[p.id2name($)]||S._infolayer.selectAll(".g-"+$+"title").remove()}}var j=S._has&&S._has("cartesian"),N=T._has&&T._has("cartesian");if(j&&!N)_(S._cartesianlayer.selectAll(".subplot"),S),S._defs.selectAll(".axesclip").remove(),delete S._axisConstraintGroups,delete S._axisMatchGroups;else if(F.cartesian)for(P=0;P<F.cartesian.length;P++){var E=F.cartesian[P];if(!R[E]){var W="."+E+",."+E+"-x,."+E+"-y";S._cartesianlayer.selectAll(W).remove(),w(E,S)}}},a.drawFramework=function(k){var T=k._fullLayout,M=function(C){var P,D,O,R,F,A,z=C._fullLayout,B=z._subplots.cartesian,$=B.length,j=[],N=[];for(P=0;P<$;P++){O=B[P],F=(R=z._plots[O]).xaxis,A=R.yaxis;var E=F._mainAxis,W=A._mainAxis,G=E._id+W._id,L=z._plots[G];R.overlays=[],G!==O&&L?(R.mainplot=G,R.mainplotinfo=L,N.push(O)):(R.mainplot=void 0,R.mainplotinfo=void 0,j.push(O))}for(P=0;P<N.length;P++)O=N[P],(R=z._plots[O]).mainplotinfo.overlays.push(R);var q=j.concat(N),H=new Array($);for(P=0;P<$;P++){O=q[P],F=(R=z._plots[O]).xaxis,A=R.yaxis;var V=[O,F.layer,A.layer,F.overlaying||"",A.overlaying||""];for(D=0;D<R.overlays.length;D++)V.push(R.overlays[D].id);H[P]=V}return H}(k),S=T._cartesianlayer.selectAll(".subplot").data(M,String);S.enter().append("g").attr("class",function(C){return"subplot "+C[0]}),S.order(),S.exit().call(_,T),S.each(function(C){var P=C[0],D=T._plots[P];D.plotgroup=l.select(this),x(k,D),D.draglayer=v(T._draggers,"g",P)})},a.rangePlot=function(k,T,M){x(k,T),b(k,T,M),c.style(k)},a.toSVG=function(k){var T=k._fullLayout._glimages,M=l.select(k).selectAll(".svg-container");M.filter(function(S,C){return C===M.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var S=this,C=S.toDataURL("image/png");T.append("svg:image").attr({xmlns:y.svg,"xlink:href":C,preserveAspectRatio:"none",x:0,y:0,width:S.style.width,height:S.style.height})})},a.updateFx=n(4305).updateFx},13838:function(o,a,n){var l=n(41940),f=n(22399),s=n(79952).P,c=n(1426).extendFlat,d=n(44467).templatedArray,h=n(12663).descriptionWithDates,p=n(50606).ONEDAY,m=n(85555),y=m.HOUR_PATTERN,v=m.WEEKDAY_PATTERN,g={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},b=c({},g,{values:g.values.slice().concat(["sync"])});function x(F){return{valType:"integer",min:0,dflt:F?5:0,editType:"ticks"}}var _={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},w={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},k={valType:"data_array",editType:"ticks"},T={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function M(F){var A={valType:"number",min:0,editType:"ticks"};return F||(A.dflt=5),A}function S(F){var A={valType:"number",min:0,editType:"ticks"};return F||(A.dflt=1),A}var C={valType:"color",dflt:f.defaultLine,editType:"ticks"},P={valType:"color",dflt:f.lightLine,editType:"ticks"};function D(F){var A={valType:"number",min:0,editType:"ticks"};return F||(A.dflt=1),A}var O=c({},s,{editType:"ticks"}),R={valType:"boolean",editType:"ticks"};o.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:f.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:l({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},scaleanchor:{valType:"enumerated",values:[m.idRegex.x.toString(),m.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[m.idRegex.x.toString(),m.idRegex.y.toString()],editType:"calc"},rangebreaks:d("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[v,y,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:p},editType:"calc"}),tickmode:b,nticks:x(),tick0:_,dtick:w,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:k,ticktext:{valType:"data_array",editType:"ticks"},ticks:T,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:M(),tickwidth:S(),tickcolor:C,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:c({},s,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:l({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:h("tick label")},tickformatstops:d("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:h("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:f.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:R,gridcolor:P,gridwidth:D(),griddash:O,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:f.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:f.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",m.idRegex.x.toString(),m.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",m.idRegex.x.toString(),m.idRegex.y.toString()],editType:"plot"},minor:{tickmode:g,nticks:x("minor"),tick0:_,dtick:w,tickvals:k,ticks:T,ticklen:M("minor"),tickwidth:S("minor"),tickcolor:C,gridcolor:P,gridwidth:D("minor"),griddash:O,showgrid:R,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:l({editType:"ticks"})}}},86763:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover,c=n(98212),d=n(44467),h=n(10820),p=n(13838),m=n(951),y=n(71453),v=n(99082),g=n(52830),b=n(41675),x=b.id2name,_=b.name2id,w=n(85555).AX_ID_PATTERN,k=n(73972),T=k.traceIs,M=k.getComponentMethod;function S(C,P,D){Array.isArray(C[P])?C[P].push(D):C[P]=[D]}o.exports=function(C,P,D){var O,R,F=P.autotypenumbers,A={},z={},B={},$={},j={},N={},E={},W={},G={},L={};for(O=0;O<D.length;O++){var q=D[O];if(T(q,"cartesian")||T(q,"gl2d")){var H,V;if(q.xaxis)H=x(q.xaxis),S(A,H,q);else if(q.xaxes)for(R=0;R<q.xaxes.length;R++)S(A,x(q.xaxes[R]),q);if(q.yaxis)V=x(q.yaxis),S(A,V,q);else if(q.yaxes)for(R=0;R<q.yaxes.length;R++)S(A,x(q.yaxes[R]),q);q.type==="funnel"?q.orientation==="h"?(H&&(z[H]=!0),V&&(E[V]=!0)):V&&(B[V]=!0):q.type==="image"?(V&&(W[V]=!0),H&&(W[H]=!0)):(V&&(j[V]=!0,N[V]=!0),T(q,"carpet")&&(q.type!=="carpet"||q._cheater)||H&&($[H]=!0)),q.type==="carpet"&&q._cheater&&H&&(z[H]=!0),T(q,"2dMap")&&(G[H]=!0,G[V]=!0),T(q,"oriented")&&(L[q.orientation==="h"?V:H]=!0)}}var te=P._subplots,ee=te.xaxis,U=te.yaxis,Q=l.simpleMap(ee,x),Y=l.simpleMap(U,x),Z=Q.concat(Y),X=f.background;ee.length&&U.length&&(X=l.coerce(C,P,h,"plot_bgcolor"));var re,ie,le,se,pe,Te=f.combine(X,P.paper_bgcolor);function Se(){var Ne=A[re]||[];pe._traceIndices=Ne.map(function(Qe){return Qe._expandedIndex}),pe._annIndices=[],pe._shapeIndices=[],pe._selectionIndices=[],pe._imgIndices=[],pe._subplotsWith=[],pe._counterAxes=[],pe._name=pe._attr=re,pe._id=ie}function Oe(Ne,Qe){return l.coerce(se,pe,p,Ne,Qe)}function Me(Ne,Qe){return l.coerce2(se,pe,p,Ne,Qe)}function ce(Ne){return Ne==="x"?U:ee}function ye(Ne,Qe){for(var it=Ne==="x"?Q:Y,kt=[],Je=0;Je<it.length;Je++){var ut=it[Je];ut===Qe||(C[ut]||{}).overlaying||kt.push(_(ut))}return kt}var J={x:ce("x"),y:ce("y")},ne=J.x.concat(J.y),de={},xe=[];function ue(){var Ne=se.matches;w.test(Ne)&&ne.indexOf(Ne)===-1&&(de[Ne]=se.type,xe=Object.keys(de))}var ge=c(C,P),be=s(ge);for(O=0;O<Z.length;O++){re=Z[O],ie=_(re),le=re.charAt(0),l.isPlainObject(C[re])||(C[re]={}),se=C[re],pe=d.newContainer(P,re,le+"axis"),Se();var we=le==="x"&&!$[re]&&z[re]||le==="y"&&!j[re]&&B[re],ke=le==="y"&&(!N[re]&&E[re]||W[re]),Ae={hasMinor:!0,letter:le,font:P.font,outerTicks:G[re],showGrid:!L[re],data:A[re]||[],bgColor:Te,calendar:P.calendar,automargin:!0,visibleDflt:we,reverseDflt:ke,autotypenumbersDflt:F,splomStash:((P._splomAxes||{})[le]||{})[ie]};Oe("uirevision",P.uirevision),m(se,pe,Oe,Ae),y(se,pe,Oe,Ae,P);var Ee=be&&le===ge.charAt(0),De=Me("spikecolor",be?pe.color:void 0),Re=Me("spikethickness",be?1.5:void 0),Ie=Me("spikedash",be?"dot":void 0),Be=Me("spikemode",be?"across":void 0),Ue=Me("spikesnap");Oe("showspikes",!!(Ee||De||Re||Ie||Be||Ue))||(delete pe.spikecolor,delete pe.spikethickness,delete pe.spikedash,delete pe.spikemode,delete pe.spikesnap);var qe=x(se.overlaying),Ye=[0,1];if(P[qe]!==void 0){var at=x(P[qe].anchor);P[at]!==void 0&&(Ye=P[at].domain)}g(se,pe,Oe,{letter:le,counterAxes:J[le],overlayableAxes:ye(le,re),grid:P.grid,overlayingDomain:Ye}),Oe("title.standoff"),ue(),pe._input=se}for(O=0;O<xe.length;){ie=xe[O++],le=(re=x(ie)).charAt(0),l.isPlainObject(C[re])||(C[re]={}),se=C[re],pe=d.newContainer(P,re,le+"axis"),Se();var lt={letter:le,font:P.font,outerTicks:G[re],showGrid:!L[re],data:[],bgColor:Te,calendar:P.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:F,splomStash:((P._splomAxes||{})[le]||{})[ie]};Oe("uirevision",P.uirevision),pe.type=de[ie]||"linear",y(se,pe,Oe,lt,P),g(se,pe,Oe,{letter:le,counterAxes:J[le],overlayableAxes:ye(le,re),grid:P.grid}),Oe("fixedrange"),ue(),pe._input=se}var ct=M("rangeslider","handleDefaults"),bt=M("rangeselector","handleDefaults");for(O=0;O<Q.length;O++)re=Q[O],se=C[re],pe=P[re],ct(C,P,re),pe.type==="date"&&bt(se,pe,P,Y,pe.calendar),Oe("fixedrange");for(O=0;O<Y.length;O++){re=Y[O],se=C[re],pe=P[re];var ze=P[x(pe.anchor)];Oe("fixedrange",M("rangeslider","isVisible")(ze))}v.handleDefaults(C,P,{axIds:ne.concat(xe).sort(b.idSort),axHasImage:W})}},92128:function(o,a,n){var l=n(84267).mix,f=n(22399),s=n(71828);o.exports=function(c,d,h,p){var m=(p=p||{}).dfltColor;function y(C,P){return s.coerce2(c,d,p.attributes,C,P)}var v=y("linecolor",m),g=y("linewidth");h("showline",p.showLine||!!v||!!g)||(delete d.linecolor,delete d.linewidth);var b=y("gridcolor",l(m,p.bgColor,p.blend||f.lightFraction).toRgbString()),x=y("gridwidth"),_=y("griddash");if(h("showgrid",p.showGrid||!!b||!!x||!!_)||(delete d.gridcolor,delete d.gridwidth,delete d.griddash),p.hasMinor){var w=y("minor.gridcolor",l(d.gridcolor,p.bgColor,67).toRgbString()),k=y("minor.gridwidth",d.gridwidth||1),T=y("minor.griddash",d.griddash||"solid");h("minor.showgrid",!!w||!!k||!!T)||(delete d.minor.gridcolor,delete d.minor.gridwidth,delete d.minor.griddash)}if(!p.noZeroLine){var M=y("zerolinecolor",m),S=y("zerolinewidth");h("zeroline",p.showGrid||!!M||!!S)||(delete d.zerolinecolor,delete d.zerolinewidth)}}},52830:function(o,a,n){var l=n(92770),f=n(71828);o.exports=function(s,c,d,h){var p,m,y,v,g,b,x=h.counterAxes||[],_=h.overlayableAxes||[],w=h.letter,k=h.grid,T=h.overlayingDomain;k&&(m=k._domains[w][k._axisMap[c._id]],p=k._anchors[c._id],m&&(y=k[w+"side"].split(" ")[0],v=k.domain[w][y==="right"||y==="top"?1:0])),m=m||[0,1],p=p||(l(s.position)?"free":x[0]||"free"),y=y||(w==="x"?"bottom":"left"),v=v||0,g=0,b=!1;var M=f.coerce(s,c,{anchor:{valType:"enumerated",values:["free"].concat(x),dflt:p}},"anchor"),S=f.coerce(s,c,{side:{valType:"enumerated",values:w==="x"?["bottom","top"]:["left","right"],dflt:y}},"side");M==="free"&&(w==="y"&&(d("autoshift")&&(v=S==="left"?T[0]:T[1],b=!c.automargin||c.automargin,g=S==="left"?-3:3),d("shift",g)),d("position",v)),d("automargin",b);var C=!1;if(_.length&&(C=f.coerce(s,c,{overlaying:{valType:"enumerated",values:[!1].concat(_),dflt:!1}},"overlaying")),!C){var P=d("domain",m);P[0]>P[1]-.000244140625&&(c.domain=m),f.noneOrAll(s.domain,c.domain,m),c.tickmode==="sync"&&(c.tickmode="auto")}return d("layer"),c}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,c,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);c("tickprefix")&&c("showtickprefix",m),c("ticksuffix",p)&&c("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,c,d){var h=s._template||{},p=s.type||h.type||"-";c("minallowed"),c("maxallowed");var m,y=c("range"),v=s.getAutorangeDflt(y,d),g=c("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=c("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(c,g,y),p!=="linear"&&p!=="-"||c("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,c){c===void 0&&(c=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*c;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),c=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;pe<X;pe++){var Te=ie*A._rangebreaks[pe].min,Se=ie*A._rangebreaks[pe].max;if(le<Te)break;if(!(le>Se)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ie<X&&!(Z<A._rangebreaks[ie].pmin);ie++)Z>A._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;X<ie.length;X++){var Oe=Z[ie[X]];if($ in Oe){var Me=Oe[$],ce=Oe._length||s.minRowLength(Me);if(v(Me[0])&&v(Me[1]))for(re=0;re<ce;re++){var ye=Me[0][re],J=Me[1][re];F(ye)&&F(J)&&(Se.push([ye,J]),ye in Te[0][1]||(Te[0][1][ye]=Te[0][0]++),J in Te[1][1]||(Te[1][1][J]=Te[1][0]++))}}}for(Se.sort(function(ne,de){var xe=Te[0][1],ue=xe[ne[0]]-xe[de[0]];if(ue)return ue;var ge=Te[1][1];return ge[ne[1]]-ge[de[1]]}),X=0;X<Se.length;X++)G(Se[X])}),A.fraction2r=function(Z){var X=A.r2l(A.range[0]),re=A.r2l(A.range[1]);return A.l2r(X+Z*(re-X))},A.r2fraction=function(Z){var X=A.r2l(A.range[0]),re=A.r2l(A.range[1]);return(A.r2l(Z)-X)/(re-X)},A.limitRange=function(Z){var X=A.minallowed,re=A.maxallowed;if(X!==void 0||re!==void 0){Z||(Z="range");var ie=s.nestedProperty(A,Z).get(),le=s.simpleMap(ie,A.r2l),se=le[1]<le[0];se&&le.reverse();var pe=s.simpleMap([X,re],A.r2l);X!==void 0&&le[0]<pe[0]&&(ie[se?1:0]=X),re!==void 0&&le[1]>pe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;se<A._rangebreaks.length;se++)pe=A._rangebreaks[se],A._lBreaks+=Math.abs(pe.max-pe.min);var Me=Oe;Te>Se&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;se<A._rangebreaks.length;se++)pe=A._rangebreaks[se],A._B.push(A._B[A._B.length-1]-ce*A._m2*(pe.max-pe.min));for(se=0;se<A._rangebreaks.length;se++)(pe=A._rangebreaks[se]).pmin=ee(pe.min),pe.pmax=ee(pe.max)}if(!isFinite(A._m)||!isFinite(A._b)||A._length<0)throw z._replotting=!1,new Error("Something went wrong with axis scaling")},A.maskBreaks=function(Z){var X,re,ie,le,se,pe=A.rangebreaks||[];pe._cachedPatterns||(pe._cachedPatterns=pe.map(function(ye){return ye.enabled&&ye.bounds?s.simpleMap(ye.bounds,ye.pattern?h:A.d2c):null})),pe._cachedValues||(pe._cachedValues=pe.map(function(ye){return ye.enabled&&ye.values?s.simpleMap(ye.values,A.d2c).sort(s.sorterAsc):null}));for(var Te=0;Te<pe.length;Te++){var Se=pe[Te];if(Se.enabled){if(Se.bounds){var Oe=Se.pattern;switch(re=(X=pe._cachedPatterns[Te])[0],ie=X[1],Oe){case O:le=(se=new Date(Z)).getUTCDay(),re>ie&&(ie+=7,le<re&&(le+=7));break;case D:le=(se=new Date(Z)).getUTCHours()+(se.getUTCMinutes()/60+se.getUTCSeconds()/3600+se.getUTCMilliseconds()/36e5),re>ie&&(ie+=24,le<re&&(le+=24));break;case"":le=Z}if(le>=re&&le<ie)return x}else for(var Me=pe._cachedValues[Te],ce=0;ce<Me.length;ce++)if(ie=(re=Me[ce])+Se.dvalue,Z>=re&&Z<ie)return x}}return Z},A.locateBreaks=function(Z,X){var re,ie,le,se,pe=[];if(!A.rangebreaks)return pe;var Te=A.rangebreaks.slice().sort(function(ge,be){return ge.pattern===O&&be.pattern===D?-1:be.pattern===O&&ge.pattern===D?1:0}),Se=function(ge,be){if((ge=s.constrain(ge,Z,X))!==(be=s.constrain(be,Z,X))){for(var we=!0,ke=0;ke<pe.length;ke++){var Ae=pe[ke];ge<Ae.max&&be>=Ae.min&&(ge<Ae.min&&(Ae.min=ge),be>Ae.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;re<Te.length;re++){var Oe=Te[re];if(Oe.enabled)if(Oe.bounds){var Me=Z,ce=X;Oe.pattern&&(Me=Math.floor(Me)),le=(ie=s.simpleMap(Oe.bounds,Oe.pattern?h:A.r2l))[0],se=ie[1];var ye,J,ne=new Date(Me);switch(Oe.pattern){case O:J=w,ye=(se-le+(se<le?7:0))*k,Me+=le*k-(ne.getUTCDay()*k+ne.getUTCHours()*T+ne.getUTCMinutes()*M+ne.getUTCSeconds()*S+ne.getUTCMilliseconds());break;case D:J=k,ye=(se-le+(se<le?24:0))*T,Me+=le*T-(ne.getUTCHours()*T+ne.getUTCMinutes()*M+ne.getUTCSeconds()*S+ne.getUTCMilliseconds());break;default:Me=Math.min(ie[0],ie[1]),ye=J=(ce=Math.max(ie[0],ie[1]))-Me}for(var de=Me;de<ce;de+=J)Se(de,de+ye)}else for(var xe=s.simpleMap(Oe.values,A.d2c),ue=0;ue<xe.length;ue++)Se(le=xe[ue],se=le+Oe.dvalue)}return pe.sort(function(ge,be){return ge.min-be.min}),pe},A.makeCalcdata=function(Z,X,re){var ie,le,se,pe,Te=A.type,Se=Te==="date"&&Z[X+"calendar"];if(X in Z){if(ie=Z[X],pe=Z._length||s.minRowLength(ie),s.isTypedArray(ie)&&(Te==="linear"||Te==="log")){if(pe===ie.length)return ie;if(ie.subarray)return ie.subarray(0,pe)}if(Te==="multicategory")return function(ce,ye){for(var J=new Array(ye),ne=0;ne<ye;ne++){var de=(ce[0]||[])[ne],xe=(ce[1]||[])[ne];J[ne]=L([de,xe])}return J}(ie,pe);for(le=new Array(pe),se=0;se<pe;se++)le[se]=A.d2c(ie[se],0,Se,re)}else{var Oe=X+"0"in Z?A.d2c(Z[X+"0"],0,Se):0,Me=Z["d"+X]?Number(Z["d"+X]):1;for(ie=Z[{x:"y",y:"x"}[X]],pe=Z._length||ie.length,le=new Array(pe),se=0;se<pe;se++)le[se]=Oe+se*Me}if(A.rangebreaks)for(se=0;se<pe;se++)le[se]=A.maskBreaks(le[se]);return le},A.isValidRange=function(Z,X){return Array.isArray(Z)&&Z.length===2&&(X&&Z[0]===null||d(A.r2l(Z[0])))&&(X&&Z[1]===null||d(A.r2l(Z[1])))},A.getAutorangeDflt=function(Z,X){var re=!A.isValidRange(Z,"nullOk");return re&&X&&X.reverseDflt?re="reversed":Z&&(Z[0]===null&&Z[1]===null?re=!0:Z[0]===null&&Z[1]!==null?re="min":Z[0]!==null&&Z[1]===null&&(re="max")),re},A.isReversed=function(){var Z=A.autorange;return Z==="reversed"||Z==="min reversed"||Z==="max reversed"},A.isPtWithinRange=function(Z,X){var re=A.c2l(Z[$],null,X),ie=A.r2l(A.range[0]),le=A.r2l(A.range[1]);return ie<le?ie<=re&&re<=le:le<=re&&re<=ie},A._emptyCategories=function(){A._categories=[],A._categoriesMap={}},A.clearCalc=function(){var Z=A._matchGroup;if(Z){var X=null,re=null;for(var ie in Z){var le=z[C.id2name(ie)];if(le._categories){X=le._categories,re=le._categoriesMap;break}}X&&re?(A._categories=X,A._categoriesMap=re):A._emptyCategories()}else A._emptyCategories();if(A._initialCategories)for(var se=0;se<A._initialCategories.length;se++)G(A._initialCategories[se])},A.sortByInitialCategories=function(){var Z=[];if(A._emptyCategories(),A._initialCategories)for(var X=0;X<A._initialCategories.length;X++)G(A._initialCategories[X]);Z=Z.concat(A._traceIndices);var re=A._matchGroup;for(var ie in re)if(B!==ie){var le=z[C.id2name(ie)];le._categories=A._categories,le._categoriesMap=A._categoriesMap,Z=Z.concat(le._traceIndices)}return Z};var Y=z._d3locale;A.type==="date"&&(A._dateFormat=Y?Y.timeFormat:f,A._extraFormat=z._extraFormat),A._separators=z.separators,A._numFormat=Y?Y.numberFormat:c,delete A._minDtick,delete A._forceTick0}},59652:function(o){o.exports=function(a){var n=["showexponent","showtickprefix","showticksuffix"].filter(function(l){return a[l]!==void 0});if(n.every(function(l){return a[l]===a[n[0]]})||n.length===1)return a[n[0]]}},96115:function(o,a,n){var l=n(71828),f=n(7901).contrast,s=n(13838),c=n(59652),d=n(85501);function h(p,m){function y(v,g){return l.coerce(p,m,s.tickformatstops,v,g)}y("enabled")&&(y("dtickrange"),y("value"))}o.exports=function(p,m,y,v,g){g||(g={});var b=y("labelalias");l.isPlainObject(b)||delete m.labelalias;var x=c(p);if(y("showticklabels")){var _=g.font||{},w=m.color,k=(m.ticklabelposition||"").indexOf("inside")!==-1?f(g.bgColor):w&&w!==s.color.dflt?w:_.color;if(l.coerceFont(y,"tickfont",{family:_.family,size:_.size,color:k}),g.noTicklabelstep||v==="multicategory"||v==="log"||y("ticklabelstep"),g.noAng||y("tickangle"),v!=="category"){var T=y("tickformat");d(p,m,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:h}),m.tickformatstops.length||delete m.tickformatstops,g.noExp||T||v==="date"||(y("showexponent",x),y("exponentformat"),y("minexponent"),y("separatethousands"))}}}},38701:function(o,a,n){var l=n(71828),f=n(13838);o.exports=function(s,c,d,h){var p=h.isMinor,m=p?s.minor||{}:s,y=p?c.minor:c,v=p?f.minor:f,g=p?"minor.":"",b=l.coerce2(m,y,v,"ticklen",p?.6*(c.ticklen||5):void 0),x=l.coerce2(m,y,v,"tickwidth",p?c.tickwidth||1:void 0),_=l.coerce2(m,y,v,"tickcolor",(p?c.tickcolor:void 0)||y.color);d(g+"ticks",!p&&h.outerTicks||b||x||_?"outside":"")||(delete y.ticklen,delete y.tickwidth,delete y.tickcolor)}},26218:function(o,a,n){var l=n(66287),f=n(71828).isArrayOrTypedArray;o.exports=function(s,c,d,h,p){p||(p={});var m=p.isMinor,y=m?s.minor||{}:s,v=m?c.minor:c,g=m?"minor.":"";function b(M){var S=y[M];return S!==void 0?S:(v._template||{})[M]}var x=b("tick0"),_=b("dtick"),w=b("tickvals"),k=d(g+"tickmode",f(w)?"array":_?"linear":"auto");if(k==="auto"||k==="sync")d(g+"nticks");else if(k==="linear"){var T=v.dtick=l.dtick(_,h);v.tick0=l.tick0(x,h,c.calendar,T)}else h!=="multicategory"&&(d(g+"tickvals")===void 0?v.tickmode="auto":m||d("ticktext"))}},66847:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=n(91424),d=n(89298);o.exports=function(h,p,m,y){var v=h._fullLayout;if(p.length!==0){var g,b,x,_;y&&(g=y());var w=l.ease(m.easing);return h._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(_),_=null,function(){for(var M={},S=0;S<p.length;S++){var C=p[S],P=C.plotinfo.xaxis,D=C.plotinfo.yaxis;C.xr0&&(M[P._name+".range"]=C.xr0.slice()),C.yr0&&(M[D._name+".range"]=C.yr0.slice())}return f.call("relayout",h,M).then(function(){for(var O=0;O<p.length;O++)k(p[O].plotinfo)})}()}),b=Date.now(),_=window.requestAnimationFrame(function M(){x=Date.now();for(var S=Math.min(1,(x-b)/m.duration),C=w(S),P=0;P<p.length;P++)T(p[P],C);x-b>m.duration?(function(){for(var D={},O=0;O<p.length;O++){var R=p[O],F=R.plotinfo.xaxis,A=R.plotinfo.yaxis;R.xr1&&(D[F._name+".range"]=R.xr1.slice()),R.yr1&&(D[A._name+".range"]=R.yr1.slice())}g&&g(),f.call("relayout",h,D).then(function(){for(var z=0;z<p.length;z++)k(p[z].plotinfo)})}(),_=window.cancelAnimationFrame(M)):_=window.requestAnimationFrame(M)}),Promise.resolve()}function k(M){var S=M.xaxis,C=M.yaxis;v._defs.select("#"+M.clipId+"> rect").call(c.setTranslate,0,0).call(c.setScale,1,1),M.plot.call(c.setTranslate,S._offset,C._offset).call(c.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(c.setPointGroupScale,1,1),P.selectAll(".textpoint").call(c.setTextPointsScale,1,1),P.call(c.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(c.setTranslate,V,te).call(c.setScale,1/q,1/H),C.plot.call(c.setTranslate,Q,Y).call(c.setScale,q,H),c.setPointGroupScale(C.zoomScalePts,1/q,1/H),c.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function c(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F<D.length;F++){var A=D[F];if(A.type==="splom"&&A._length>0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(c(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,c(_,x)){var M=s(_),S=[];for(g=0;g<v.length;g++){var C=v[g];l(C,"box-violin")&&(C[x+"axis"]||x)===b&&(C[M]!==void 0?S.push(C[M][0]):C.name!==void 0?S.push(C.name):S.push("text"),C[w]!==k&&(k=void 0))}y.type=f(S,k,T)}else if(_.type==="splom"){var P=_.dimensions[_._axesDim[b]];P.visible&&(y.type=f(P.values,k,T))}else y.type=f(_[x]||[_[x+"0"]],k,T)}else y.type="linear"}}(h,m.data),h.type==="-"?h.type="linear":d.type=h.type)}},31137:function(o,a,n){var l=n(73972),f=n(71828);function s(p,m,y){var v,g,b,x=!1;if(m.type==="data")v=p._fullData[m.traces!==null?m.traces[0]:0];else{if(m.type!=="layout")return!1;v=p._fullLayout}return g=f.nestedProperty(v,m.prop).get(),(b=y[m.type]=y[m.type]||{}).hasOwnProperty(m.prop)&&b[m.prop]!==g&&(x=!0),b[m.prop]=g,{changed:x,value:g}}function c(p,m){var y=[],v=m[0],g={};if(typeof v=="string")g[v]=m[1];else{if(!f.isPlainObject(v))return y;g=v}return h(g,function(b,x,_){y.push({type:"layout",prop:b,value:_})},"",0),y}function d(p,m){var y,v,g,b,x=[];if(v=m[0],g=m[1],y=m[2],b={},typeof v=="string")b[v]=g;else{if(!f.isPlainObject(v))return x;b=v,y===void 0&&(y=g)}return y===void 0&&(y=null),h(b,function(_,w,k){var T,M;if(Array.isArray(k)){M=k.slice();var S=Math.min(M.length,p.data.length);y&&(S=Math.min(S,y.length)),T=[];for(var C=0;C<S;C++)T[C]=y?y[C]:C}else M=k,T=y?y.slice():null;if(T===null)Array.isArray(M)&&(M=M[0]);else if(Array.isArray(T)){if(!Array.isArray(M)){var P=M;M=[];for(var D=0;D<T.length;D++)M[D]=P}M.length=Math.min(T.length,M.length)}x.push({type:"data",prop:_,traces:T,value:M})},"",0),x}function h(p,m,y,v){Object.keys(p).forEach(function(g){var b=p[g];if(g[0]!=="_"){var x=y+(v>0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v<b;v++){var x,_=m[v],w=_.method,k=_.args;if(Array.isArray(k)||(k=[]),!w)return!1;var T=a.computeAPICommandBindings(p,w,k);if(T.length!==1)return!1;if(g){if((x=T[0]).type!==g.type||x.prop!==g.prop)return!1;if(Array.isArray(g.traces)){if(!Array.isArray(x.traces))return!1;x.traces.sort();for(var M=0;M<g.traces.length;M++)if(g.traces[M]!==x.traces[M])return!1}else if(x.prop!==g.prop)return!1}else g=T[0],Array.isArray(g.traces)&&g.traces.sort();var S=(x=T[0]).value;if(Array.isArray(S)){if(S.length!==1)return!1;S=S[0]}y&&(y[S]=v)}return g},a.executeAPICommand=function(p,m,y){if(m==="skip")return Promise.resolve();var v=l.apiMethodRegistry[m],g=[p];Array.isArray(y)||(y=[]);for(var b=0;b<y.length;b++)g.push(y[b]);return v.apply(null,g).catch(function(x){return f.warn("API call to Plotly."+m+" rejected.",x),Promise.reject(x)})},a.computeAPICommandBindings=function(p,m,y){var v;switch(Array.isArray(y)||(y=[]),m){case"restyle":v=d(p,y);break;case"relayout":v=c(0,y);break;case"update":v=d(p,[y[0],y[2]]).concat(c(0,[y[1]]));break;case"animate":v=function(g,b){return Array.isArray(b[0])&&b[0].length===1&&["string","number"].indexOf(typeof b[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:b[0][0].toString()}]:[]}(0,y);break;default:v=[]}return v}},27670:function(o,a,n){var l=n(1426).extendFlat;a.Y=function(f,s){s=s||{};var c={valType:"info_array",editType:(f=f||{}).editType,items:[{valType:"number",min:0,max:1,editType:f.editType},{valType:"number",min:0,max:1,editType:f.editType}],dflt:[0,1]},d=(f.name&&f.name,f.trace,s.description&&s.description,{x:l({},c,{}),y:l({},c,{}),editType:f.editType});return f.noGridCell||(d.row={valType:"integer",min:0,dflt:0,editType:f.editType},d.column={valType:"integer",min:0,dflt:0,editType:f.editType}),d},a.c=function(f,s,c,d){var h=d&&d.x||[0,1],p=d&&d.y||[0,1],m=s.grid;if(m){var y=c("domain.column");y!==void 0&&(y<m.columns?h=m._domains.x[y]:delete f.domain.column);var v=c("domain.row");v!==void 0&&(v<m.rows?p=m._domains.y[v]:delete f.domain.row)}var g=c("domain.x",h),b=c("domain.y",p);g[0]<g[1]||(f.domain.x=h.slice()),b[0]<b[1]||(f.domain.y=p.slice())}},41940:function(o){o.exports=function(a){var n=a.editType,l=a.colorEditType;l===void 0&&(l=n);var f={family:{valType:"string",noBlank:!0,strict:!0,editType:n},size:{valType:"number",min:1,editType:n},color:{valType:"color",editType:l},editType:n};return a.autoSize&&(f.size.dflt="auto"),a.autoColor&&(f.color.dflt="auto"),a.arrayOk&&(f.family.arrayOk=!0,f.size.arrayOk=!0,f.color.arrayOk=!0),f}},31391:function(o){o.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},27659:function(o,a,n){var l=n(73972);n(85555).SUBPLOT_PATTERN,a.AU=function(f,s,c){var d=l.subplotsRegistry[s];if(!d)return[];for(var h=d.attr,p=[],m=0;m<f.length;m++){var y=f[m];y[0].trace[h]===c&&p.push(y)}return p},a.a0=function(f,s){var c,d=[],h=[];if(!(c=typeof s=="string"?l.getModule(s).plot:typeof s=="function"?s:s.plot))return[d,f];for(var p=0;p<f.length;p++){var m=f[p],y=m[0].trace;y.visible===!0&&y._length!==0&&(y._module&&y._module.plot===c?d.push(m):h.push(m))}return[d,h]}},63538:function(o){function a(n,l){var f,s,c=[0,0,0,0];for(f=0;f<4;++f)for(s=0;s<4;++s)c[s]+=n[4*f+s]*l[f];return c}o.exports=function(n,l){return a(n.projection,a(n.view,a(n.model,[l[0],l[1],l[2],1])))}},10820:function(o,a,n){var l=n(41940),f=n(85594),s=n(22399),c=n(29241),d=n(53777),h=n(35025),p=n(1426).extendFlat,m=l({editType:"calc"});m.family.dflt='"Open Sans", verdana, arial, sans-serif',m.size.dflt=12,m.color.dflt=s.defaultLine,o.exports={font:m,title:{text:{valType:"string",editType:"layoutstyle"},font:l({editType:"layoutstyle"}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:p(h({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:s.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:s.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:s.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:c.newshape,activeshape:c.activeshape,newselection:d.newselection,activeselection:d.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:p({},f.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:l({editType:"layoutstyle"})}}},35025:function(o){o.exports=function(a){var n=a.editType;return{t:{valType:"number",dflt:0,editType:n},r:{valType:"number",dflt:0,editType:n},b:{valType:"number",dflt:0,editType:n},l:{valType:"number",dflt:0,editType:n},editType:n}}},74875:function(o,a,n){var l=n(39898),f=n(84096).Dq,s=n(60721).FF,c=n(92770),d=n(73972),h=n(86281),p=n(44467),m=n(71828),y=n(7901),v=n(50606).BADNUM,g=n(41675),b=n(51873).clearOutline,x=n(21479),_=n(85594),w=n(31391),k=n(27659).a0,T=m.relinkPrivateKeys,M=m._,S=o.exports={};m.extendFlat(S,d),S.attributes=n(9012),S.attributes.type.values=S.allTypes,S.fontAttrs=n(41940),S.layoutAttributes=n(10820),S.fontWeight="normal";var C=S.transformsRegistry,P=n(31137);S.executeAPICommand=P.executeAPICommand,S.computeAPICommandBindings=P.computeAPICommandBindings,S.manageCommandObserver=P.manageCommandObserver,S.hasSimpleAPICommandBindings=P.hasSimpleAPICommandBindings,S.redrawText=function(L){return L=m.getGraphDiv(L),new Promise(function(q){setTimeout(function(){L._fullLayout&&(d.getComponentMethod("annotations","draw")(L),d.getComponentMethod("legend","draw")(L),d.getComponentMethod("colorbar","draw")(L),q(S.previousPromises(L)))},300)})},S.resize=function(L){var q;L=m.getGraphDiv(L);var H=new Promise(function(V,te){L&&!m.isHidden(L)||te(new Error("Resize must be passed a displayed plot div element.")),L._redrawTimer&&clearTimeout(L._redrawTimer),L._resolveResize&&(q=L._resolveResize),L._resolveResize=V,L._redrawTimer=setTimeout(function(){if(!L.layout||L.layout.width&&L.layout.height||m.isHidden(L))V(L);else{delete L.layout.width,delete L.layout.height;var ee=L.changed;L.autoplay=!0,d.call("relayout",L,{autosize:!0}).then(function(){L.changed=ee,L._resolveResize===V&&(delete L._resolveResize,V(L))})}},100)});return q&&q(H),H},S.previousPromises=function(L){if((L._promises||[]).length)return Promise.all(L._promises).then(function(){L._promises=[]})},S.addLinks=function(L){if(L._context.showLink||L._context.showSources){var q=L._fullLayout,H=m.ensureSingle(q._paper,"text","js-plot-link-container",function(Y){Y.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:y.defaultLine,"pointer-events":"all"}).each(function(){var Z=l.select(this);Z.append("tspan").classed("js-link-to-tool",!0),Z.append("tspan").classed("js-link-spacer",!0),Z.append("tspan").classed("js-sourcelinks",!0)})}),V=H.node(),te={y:q._paper.attr("height")-9};document.body.contains(V)&&V.getComputedTextLength()>=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le<q.length;le++){var se=q[le];te[se]||(re[se]?te[se]=re[se]:ie=!1)}ie&&(V=!0)}for(var U=0;U<2;U++){for(var Q=L._context.locales,Y=0;Y<2;Y++){var Z=(Q[H]||{}).format;if(Z&&(ee(Z),V))break;Q=d.localeRegistry}var X=H.split("-")[0];if(V||X===H)break;H=X}return V||ee(d.localeRegistry.en.format),te}function F(L,q){var H={_fullLayout:q},V=L._id.charAt(0)==="x",te=L._mainAxis._anchorAxis,ee="",U="",Q="";if(te&&(Q=te._mainAxis._id,ee=V?L._id+Q:Q+L._id),!ee||!q._plots[ee]){ee="";for(var Y=L._counterAxes,Z=0;Z<Y.length;Z++){var X=Y[Z],re=V?L._id+X:X+L._id;U||(U=re);var ie=g.getFromId(H,X);if(Q&&ie.overlaying===Q){ee=re;break}}}return ee||U}function A(L){var q=L.transforms;if(Array.isArray(q)&&q.length)for(var H=0;H<q.length;H++){var V=q[H],te=V._module||C[V.type];if(te&&te.makesData)return!0}return!1}function z(L,q,H,V){for(var te=L.transforms,ee=[L],U=0;U<te.length;U++){var Q=te[U],Y=C[Q.type];Y&&Y.transform&&(ee=Y.transform(ee,{transform:Q,fullTrace:L,fullData:q,layout:H,fullLayout:V,transformIndex:U}))}return ee}function B(L){return typeof L=="string"&&L.substr(L.length-2)==="px"&&parseFloat(L)}function $(L){var q=L.margin;if(!L._size){var H=L._size={l:Math.round(q.l),r:Math.round(q.r),t:Math.round(q.t),b:Math.round(q.b),p:Math.round(q.pad)};H.w=Math.round(L.width)-H.l-H.r,H.h=Math.round(L.height)-H.t-H.b}L._pushmargin||(L._pushmargin={}),L._pushmarginIds||(L._pushmarginIds={}),L._reservedMargin||(L._reservedMargin={})}S.supplyDefaults=function(L,q){var H=q&&q.skipUpdateCalc,V=L._fullLayout||{};if(V._skipDefaults)delete V._skipDefaults;else{var te,ee=L._fullLayout={},U=L.layout||{},Q=L._fullData||[],Y=L._fullData=[],Z=L.data||[],X=L.calcdata||[],re=L._context||{};L._transitionData||S.createTransitionData(L),ee._dfltTitle={plot:M(L,"Click to enter Plot title"),x:M(L,"Click to enter X axis title"),y:M(L,"Click to enter Y axis title"),colorbar:M(L,"Click to enter Colorscale title"),annotation:M(L,"new text")},ee._traceWord=M(L,"trace");var ie=R(L,D);if(ee._mapboxAccessToken=re.mapboxAccessToken,V._initialAutoSizeIsDone){var le=V.width,se=V.height;S.supplyLayoutGlobalDefaults(U,ee,ie),U.width||(ee.width=le),U.height||(ee.height=se),S.sanitizeMargins(ee)}else{S.supplyLayoutGlobalDefaults(U,ee,ie);var pe=!U.width||!U.height,Te=ee.autosize,Se=re.autosizable;pe&&(Te||Se)?S.plotAutoSize(L,U,ee):pe&&S.sanitizeMargins(ee),!Te&&pe&&(U.width=ee.width,U.height=ee.height)}ee._d3locale=function(Re,Ie){return Re.decimal=Ie.charAt(0),Re.thousands=Ie.charAt(1),{numberFormat:function(Be){try{Be=s(Re).format(m.adjustFormat(Be))}catch{return m.warnBadFormat(Be),m.noFormat}return Be},timeFormat:f(Re).utcFormat}}(ie,ee.separators),ee._extraFormat=R(L,O),ee._initialAutoSizeIsDone=!0,ee._dataLength=Z.length,ee._modules=[],ee._visibleModules=[],ee._basePlotModules=[];var Oe=ee._subplots=function(){var Re,Ie,Be=d.collectableSubplotTypes,Ue={};if(!Be){Be=[];var qe=d.subplotsRegistry;for(var Ye in qe){var at=qe[Ye].attr;if(at&&(Be.push(Ye),Array.isArray(at)))for(Ie=0;Ie<at.length;Ie++)m.pushUnique(Be,at[Ie])}}for(Re=0;Re<Be.length;Re++)Ue[Be[Re]]=[];return Ue}(),Me=ee._splomAxes={x:{},y:{}},ce=ee._splomSubplots={};ee._splomGridDflt={},ee._scatterStackOpts={},ee._firstScatter={},ee._alignmentOpts={},ee._colorAxes={},ee._requestRangeslider={},ee._traceUids=function(Re,Ie){var Be,Ue,qe=Ie.length,Ye=[];for(Be=0;Be<Re.length;Be++){var at=Re[Be]._fullInput;at!==Ue&&Ye.push(at),Ue=at}var lt=Ye.length,ct=new Array(qe),bt={};function ze(it,kt){ct[kt]=it,bt[it]=1}function Ne(it,kt){if(it&&typeof it=="string"&&!bt[it])return ze(it,kt),!0}for(Be=0;Be<qe;Be++){var Qe=Ie[Be].uid;typeof Qe=="number"&&(Qe=String(Qe)),Ne(Qe,Be)||Be<lt&&Ne(Ye[Be].uid,Be)||ze(m.randstr(bt),Be)}return ct}(Q,Z),ee._globalTransforms=(L._context||{}).globalTransforms,S.supplyDataDefaults(Z,Y,U,ee);var ye=Object.keys(Me.x),J=Object.keys(Me.y);if(ye.length>1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te<ye.length;te++)m.pushUnique(Oe.xaxis,ye[te]);for(te=0;te<J.length;te++)m.pushUnique(Oe.yaxis,J[te]);for(var ne in ce)m.pushUnique(Oe.cartesian,ne)}if(ee._has=S._hasPlotType.bind(ee),Q.length===Y.length)for(te=0;te<Y.length;te++)T(Y[te],Q[te]);S.supplyLayoutModuleDefaults(U,ee,Y,L._transitionData);var de=ee._visibleModules,xe=[];for(te=0;te<de.length;te++){var ue=de[te].crossTraceDefaults;ue&&m.pushUnique(xe,ue)}for(te=0;te<xe.length;te++)xe[te](Y,ee);ee._hasOnlyLargeSploms=ee._basePlotModules.length===1&&ee._basePlotModules[0].name==="splom"&&ye.length>15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe<Re.length;qe++){var Ye=Re[qe];Ye.meta?Ue[Ye.index]=Ye._meta={meta:Ye.meta}:Ie.meta&&(Ye._meta={meta:Ie.meta}),Ie.meta&&(Ye._meta.layout={meta:Ie.meta})}Ue.length&&(Be||(Be=Ie._meta={}),Be.data=Ue)}(Y,ee),T(ee,V),d.getComponentMethod("colorscale","crossTraceDefaults")(Y,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Ae,Ee=ee._tracePreGUI,De={};for(Ae in Ee)De[Ae]="old";for(te=0;te<Y.length;te++)De[Ae=Y[te]._fullInput.uid]||(Ee[Ae]={}),De[Ae]="new";for(Ae in De)De[Ae]==="old"&&delete Ee[Ae];$(ee),d.getComponentMethod("rangeslider","makeData")(ee),H||X.length!==Y.length||S.supplyDefaultsUpdateCalc(X,Y)}},S.supplyDefaultsUpdateCalc=function(L,q){for(var H=0;H<q.length;H++){var V=q[H],te=(L[H]||[])[0];if(te&&te.trace){var ee=te.trace;if(ee._hasCalcTransform){var U,Q,Y,Z=ee._arrayAttrs;for(U=0;U<Z.length;U++)Q=Z[U],Y=m.nestedProperty(ee,Q).get().slice(),m.nestedProperty(V,Q).set(Y)}te.trace=V}}},S.createTransitionData=function(L){L._transitionData||(L._transitionData={}),L._transitionData._frames||(L._transitionData._frames=[]),L._transitionData._frameHash||(L._transitionData._frameHash={}),L._transitionData._counter||(L._transitionData._counter=0),L._transitionData._interruptCallbacks||(L._transitionData._interruptCallbacks=[])},S._hasPlotType=function(L){var q,H=this._basePlotModules||[];for(q=0;q<H.length;q++)if(H[q].name===L)return!0;var V=this._modules||[];for(q=0;q<V.length;q++){var te=V[q].name;if(te===L)return!0;var ee=d.modules[te];if(ee&&ee.categories[L])return!0}return!1},S.cleanPlot=function(L,q,H,V){var te,ee,U=V._basePlotModules||[];for(te=0;te<U.length;te++){var Q=U[te];Q.clean&&Q.clean(L,q,H,V)}var Y=V._has&&V._has("gl"),Z=q._has&&q._has("gl");Y&&!Z&&V._glcontainer!==void 0&&(V._glcontainer.selectAll(".gl-canvas").remove(),V._glcontainer.selectAll(".no-webgl").remove(),V._glcanvas=null);var X=!!V._infolayer;e:for(te=0;te<H.length;te++){var re=H[te].uid;for(ee=0;ee<L.length;ee++)if(re===L[ee].uid)continue e;X&&V._infolayer.select(".cb"+re).remove()}},S.linkSubplots=function(L,q,H,V){var te,ee,U=V._plots||{},Q=q._plots={},Y=q._subplots,Z={_fullData:L,_fullLayout:q},X=Y.cartesian.concat(Y.gl2d||[]);for(te=0;te<X.length;te++){var re,ie=X[te],le=U[ie],se=g.getFromId(Z,ie,"x"),pe=g.getFromId(Z,ie,"y");for(le?re=Q[ie]=le:(re=Q[ie]={}).id=ie,se._counterAxes.push(pe._id),pe._counterAxes.push(se._id),se._subplotsWith.push(ie),pe._subplotsWith.push(ie),re.xaxis=se,re.yaxis=pe,re._hasClipOnAxisFalse=!1,ee=0;ee<L.length;ee++){var Te=L[ee];if(Te.xaxis===re.xaxis._id&&Te.yaxis===re.yaxis._id&&Te.cliponaxis===!1){re._hasClipOnAxisFalse=!0;break}}}var Se,Oe=g.list(Z,null,!0);for(te=0;te<Oe.length;te++){var Me=null;(Se=Oe[te]).overlaying&&(Me=g.getFromId(Z,Se.overlaying))&&Me.overlaying&&(Se.overlaying=!1,Me=null),Se._mainAxis=Me||Se,Me&&(Se.domain=Me.domain.slice()),Se._anchorAxis=Se.anchor==="free"?null:g.getFromId(Z,Se.anchor)}for(te=0;te<Oe.length;te++)if((Se=Oe[te])._counterAxes.sort(g.idSort),Se._subplotsWith.sort(m.subplotSort),Se._mainSubplot=F(Se,q),Se._counterAxes.length&&(Se.spikemode&&Se.spikemode.indexOf("across")!==-1||Se.automargin&&Se.mirror&&Se.anchor!=="free"||d.getComponentMethod("rangeslider","isVisible")(Se))){var ce=1,ye=0;for(ee=0;ee<Se._counterAxes.length;ee++){var J=g.getFromId(Z,Se._counterAxes[ee]);ce=Math.min(ce,J.domain[0]),ye=Math.max(ye,J.domain[1])}ce<ye&&(Se._counterDomainMin=ce,Se._counterDomainMax=ye)}},S.clearExpandedTraceDefaultColors=function(L){var q,H,V;for(H=[],(q=L._module._colorAttrs)||(L._module._colorAttrs=q=[],h.crawl(L._module.attributes,function(te,ee,U,Q){H[Q]=ee,H.length=Q+1,te.valType==="color"&&te.dflt===void 0&&q.push(H.join("."))})),V=0;V<q.length;V++)m.nestedProperty(L,"_input."+q[V]).get()||m.nestedProperty(L,q[V]).set(null)},S.supplyDataDefaults=function(L,q,H,V){var te,ee,U,Q=V._modules,Y=V._visibleModules,Z=V._basePlotModules,X=0,re=0;function ie(ne){q.push(ne);var de=ne._module;de&&(m.pushUnique(Q,de),ne.visible===!0&&m.pushUnique(Y,de),m.pushUnique(Z,ne._module.basePlotModule),X++,ne._input.visible!==!1&&re++)}V._transformModules=[];var le={},se=[],pe=(H.template||{}).data||{},Te=p.traceTemplater(pe);for(te=0;te<L.length;te++){if(U=L[te],(ee=Te.newTrace(U)).uid=V._traceUids[te],S.supplyTraceDefaults(U,ee,re,V,te),ee.index=te,ee._input=U,ee._expandedIndex=X,ee.transforms&&ee.transforms.length)for(var Se=U.visible!==!1&&ee.visible===!1,Oe=z(ee,q,H,V),Me=0;Me<Oe.length;Me++){var ce=Oe[Me],ye={_template:ee._template,type:ee.type,uid:ee.uid+Me};Se&&ce.visible===!1&&delete ce.visible,S.supplyTraceDefaults(ce,ye,X,V,te),T(ye,ce),ye.index=te,ye._input=U,ye._fullInput=ee,ye._expandedIndex=X,ye._expandedInput=ce,ie(ye)}else ee._fullInput=ee,ee._expandedInput=ee,ie(ee);d.traceIs(ee,"carpetAxis")&&(le[ee.carpet]=ee),d.traceIs(ee,"carpetDependent")&&se.push(te)}for(te=0;te<se.length;te++)if((ee=q[se[te]]).visible){var J=le[ee.carpet];ee._carpet=J,J&&J.visible?(ee.xaxis=J.xaxis,ee.yaxis=J.yaxis):ee.visible=!1}},S.supplyAnimationDefaults=function(L){var q;L=L||{};var H={};function V(te,ee){return m.coerce(L||{},H,_,te,ee)}if(V("mode"),V("direction"),V("fromcurrent"),Array.isArray(L.frame))for(H.frame=[],q=0;q<L.frame.length;q++)H.frame[q]=S.supplyAnimationFrameDefaults(L.frame[q]||{});else H.frame=S.supplyAnimationFrameDefaults(L.frame||{});if(Array.isArray(L.transition))for(H.transition=[],q=0;q<L.transition.length;q++)H.transition[q]=S.supplyAnimationTransitionDefaults(L.transition[q]||{});else H.transition=S.supplyAnimationTransitionDefaults(L.transition||{});return H},S.supplyAnimationFrameDefaults=function(L){var q={};function H(V,te){return m.coerce(L||{},q,_.frame,V,te)}return H("duration"),H("redraw"),q},S.supplyAnimationTransitionDefaults=function(L){var q={};function H(V,te){return m.coerce(L||{},q,_.transition,V,te)}return H("duration"),H("easing"),q},S.supplyFrameDefaults=function(L){var q={};function H(V,te){return m.coerce(L,q,w,V,te)}return H("group"),H("name"),H("traces"),H("baseframe"),H("data"),H("layout"),q},S.supplyTraceDefaults=function(L,q,H,V,te){var ee,U=V.colorway||y.defaults,Q=U[H%U.length];function Y(Oe,Me){return m.coerce(L,q,S.attributes,Oe,Me)}var Z=Y("visible");Y("type"),Y("name",V._traceWord+" "+te),Y("uirevision",V.uirevision);var X=S.getModule(q);if(q._module=X,X){var re=X.basePlotModule,ie=re.attr,le=re.attributes;if(ie&&le){var se=V._subplots,pe="";if(Z||re.name!=="gl2d"){if(Array.isArray(ie))for(ee=0;ee<ie.length;ee++){var Te=ie[ee],Se=m.coerce(L,q,le,Te);se[Te]&&m.pushUnique(se[Te],Se),pe+=Se}else pe=m.coerce(L,q,le,ie);se[re.name]&&m.pushUnique(se[re.name],pe)}}}return Z&&(Y("customdata"),Y("ids"),Y("meta"),d.traceIs(q,"showLegend")?(m.coerce(L,q,X.attributes.showlegend?X.attributes:S.attributes,"showlegend"),Y("legend"),Y("legendwidth"),Y("legendgroup"),Y("legendgrouptitle.text"),Y("legendrank"),q._dfltShowLegend=!0):q._dfltShowLegend=!1,X&&X.supplyDefaults(L,q,Q,V),d.traceIs(q,"noOpacity")||Y("opacity"),d.traceIs(q,"notLegendIsolatable")&&(q.visible=!!q.visible),d.traceIs(q,"noHover")||(q.hovertemplate||m.coerceHoverinfo(L,q,V),q.type!=="parcats"&&d.getComponentMethod("fx","supplyDefaults")(L,q,Q,V)),X&&X.selectPoints&&Y("selectedpoints"),S.supplyTransformDefaults(L,q,V)),q},S.hasMakesDataTransform=A,S.supplyTransformDefaults=function(L,q,H){if(q._length||A(L)){var V=H._globalTransforms||[],te=H._transformModules||[];if(Array.isArray(L.transforms)||V.length!==0)for(var ee=L.transforms||[],U=V.concat(ee),Q=q.transforms=[],Y=0;Y<U.length;Y++){var Z,X=U[Y],re=X.type,ie=C[re],le=!(X._module&&X._module===ie),se=ie&&typeof ie.transform=="function";ie||m.warn("Unrecognized transform type "+re+"."),ie&&ie.supplyDefaults&&(le||se)?((Z=ie.supplyDefaults(X,q,H,L)).type=re,Z._module=ie,m.pushUnique(te,ie)):Z=m.extendFlat({},X),Q.push(Z)}}},S.supplyLayoutGlobalDefaults=function(L,q,H){function V(X,re){return m.coerce(L,q,S.layoutAttributes,X,re)}var te=L.template;m.isPlainObject(te)&&(q.template=te,q._template=te.layout,q._dataTemplate=te.data),V("autotypenumbers");var ee=m.coerceFont(V,"font"),U=ee.size;m.coerceFont(V,"title.font",m.extendFlat({},ee,{size:Math.round(1.4*U)})),V("title.text",q._dfltTitle.plot),V("title.xref");var Q=V("title.yref");V("title.pad.t"),V("title.pad.r"),V("title.pad.b"),V("title.pad.l");var Y=V("title.automargin");V("title.x"),V("title.xanchor"),V("title.y"),V("title.yanchor"),Y&&(Q==="paper"&&(q.title.y!==0&&(q.title.y=1),q.title.yanchor==="auto"&&(q.title.yanchor=q.title.y===0?"top":"bottom")),Q==="container"&&(q.title.y==="auto"&&(q.title.y=1),q.title.yanchor==="auto"&&(q.title.yanchor=q.title.y<.5?"bottom":"top"))),V("uniformtext.mode")&&V("uniformtext.minsize"),V("autosize",!(L.width&&L.height)),V("width"),V("height"),V("minreducedwidth"),V("minreducedheight"),V("margin.l"),V("margin.r"),V("margin.t"),V("margin.b"),V("margin.pad"),V("margin.autoexpand"),L.width&&L.height&&S.sanitizeMargins(q),d.getComponentMethod("grid","sizeDefaults")(L,q),V("paper_bgcolor"),V("separators",H.decimal+H.thousands),V("hidesources"),V("colorway"),V("datarevision");var Z=V("uirevision");V("editrevision",Z),V("selectionrevision",Z),d.getComponentMethod("modebar","supplyLayoutDefaults")(L,q),d.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(L,q,V),d.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(L,q,V),V("meta"),m.isPlainObject(L.transition)&&(V("transition.duration"),V("transition.easing"),V("transition.ordering")),d.getComponentMethod("calendars","handleDefaults")(L,q,"calendar"),d.getComponentMethod("fx","supplyLayoutGlobalDefaults")(L,q,V),m.coerce(L,q,x,"scattermode")},S.plotAutoSize=function(L,q,H){var V,te,ee=L._context||{},U=ee.frameMargins,Q=m.isPlotDiv(L);if(Q&&L.emit("plotly_autosize"),ee.fillFrame)V=window.innerWidth,te=window.innerHeight,document.body.style.overflow="hidden";else{var Y=Q?window.getComputedStyle(L):{};if(V=B(Y.width)||B(Y.maxWidth)||H.width,te=B(Y.height)||B(Y.maxHeight)||H.height,c(U)&&U>0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V<X&&(V=X),te<re&&(te=re);var ie=!q.width&&Math.abs(H.width-V)>1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee<Y.length;ee++)(U=Y[ee]).supplyLayoutDefaults&&U.supplyLayoutDefaults(L,q,H);var re=q._modules;for(ee=0;ee<re.length;ee++)(U=re[ee]).supplyLayoutDefaults&&U.supplyLayoutDefaults(L,q,H);var ie=q._transformModules;for(ee=0;ee<ie.length;ee++)(U=ie[ee]).supplyLayoutDefaults&&U.supplyLayoutDefaults(L,q,H,V);for(te in Q)(U=Q[te]).supplyLayoutDefaults&&U.supplyLayoutDefaults(L,q,H)},S.purge=function(L){var q=L._fullLayout||{};q._glcontainer!==void 0&&(q._glcontainer.selectAll(".gl-canvas").remove(),q._glcontainer.remove(),q._glcanvas=null),q._modeBar&&q._modeBar.destroy(),L._transitionData&&(L._transitionData._interruptCallbacks&&(L._transitionData._interruptCallbacks.length=0),L._transitionData._animationRaf&&window.cancelAnimationFrame(L._transitionData._animationRaf)),m.clearThrottle(),m.clearResponsive(L),delete L.data,delete L.layout,delete L._fullData,delete L._fullLayout,delete L.calcdata,delete L.empty,delete L.fid,delete L.undoqueue,delete L.undonum,delete L.autoplay,delete L.changed,delete L._promises,delete L._redrawTimer,delete L._hmlumcount,delete L._hmpixcount,delete L._transitionData,delete L._transitioning,delete L._initialAutoSize,delete L._transitioningWithDuration,delete L._dragging,delete L._dragged,delete L._dragdata,delete L._hoverdata,delete L._snapshotInProgress,delete L._editing,delete L._mouseDownTime,delete L._legendMouseDownTime,L.removeAllListeners&&L.removeAllListeners()},S.style=function(L){var q,H=L._fullLayout._visibleModules,V=[];for(q=0;q<H.length;q++){var te=H[q];te.style&&m.pushUnique(V,te.style)}for(q=0;q<V.length;q++)V[q](L)},S.sanitizeMargins=function(L){if(L&&L.margin){var q,H=L.width,V=L.height,te=L.margin,ee=H-(te.l+te.r),U=V-(te.t+te.b);ee<0&&(q=(H-1)/(te.l+te.r),te.l=Math.floor(q*te.l),te.r=Math.floor(q*te.r)),U<0&&(q=(V-1)/(te.t+te.b),te.t=Math.floor(q*te.t),te.b=Math.floor(q*te.b))}},S.clearAutoMarginIds=function(L){L._fullLayout._pushmarginIds={}},S.allowAutoMargin=function(L,q){L._fullLayout._pushmarginIds[q]=1},S.autoMargin=function(L,q,H){var V=L._fullLayout,te=V.width,ee=V.height,U=V.margin,Q=V.minreducedwidth,Y=V.minreducedheight,Z=m.constrain(te-U.l-U.r,2,Q),X=m.constrain(ee-U.t-U.b,2,Y),re=Math.max(0,te-Z),ie=Math.max(0,ee-X),le=V._pushmargin,se=V._pushmarginIds;if(U.autoexpand!==!1){if(H){var pe=H.pad;if(pe===void 0&&(pe=Math.min(12,U.l,U.r,U.t,U.b)),re){var Te=(H.l+H.r)/re;Te>1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&c(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(c(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(c(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount<Je)return d.call("_doPlot",L);q._size=Q,m.warn("Too many auto-margin redraws.")}(function(ut){var pt=g.list(ut,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(It){for(var Mt=0;Mt<pt.length;Mt++){var zt=pt[Mt][It];zt&&zt()}})})(L)};var j=["l","r","t","b","p","w","h"];function N(L,q,H){var V=!1,te=[S.previousPromises,function(){if(L._transitionData)return L._transitioning=!1,function(U){var Q=Promise.resolve();if(!U)return Q;for(;U.length;)Q=Q.then(U.shift());return Q}(L._transitionData._interruptCallbacks)},H.prepareFn,S.rehover,S.reselect,function(){return L.emit("plotly_transitioning",[]),new Promise(function(U){L._transitioning=!0,q.duration>0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H<j.length;H++){var V=j[H],te=L[V],ee=q[V];if(!c(te)||Math.abs(ee-te)>1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H<q.length;H++)switch((V=q[H]).type){case"replace":te=V.value;var Q=(ee[V.index]||{}).name,Y=te.name;ee[V.index]=U[Y]=te,Y!==Q&&(delete U[Q],U[Y]=te);break;case"insert":U[(te=V.value).name]=te,ee.splice(V.index,0,te);break;case"delete":delete U[(te=ee[V.index]).name],ee.splice(V.index,1)}return Promise.resolve()},S.computeFrame=function(L,q){var H,V,te,ee,U=L._transitionData._frameHash;if(!q)throw new Error("computeFrame must be given a string frame name");var Q=U[q.toString()];if(!Q)return!1;for(var Y=[Q],Z=[Q.name];Q.baseframe&&(Q=U[Q.baseframe.toString()])&&Z.indexOf(Q.name)===-1;)Y.push(Q),Z.push(Q.name);for(var X={};Q=Y.pop();)if(Q.layout&&(X.layout=S.extendLayout(X.layout,Q.layout)),Q.data){if(X.data||(X.data=[]),!(V=Q.traces))for(V=[],H=0;H<Q.data.length;H++)V[H]=H;for(X.traces||(X.traces=[]),H=0;H<Q.data.length;H++)(te=V[H])!=null&&((ee=X.traces.indexOf(te))===-1&&(ee=X.data.length,X.traces[ee]=te),X.data[ee]=S.extendTrace(X.data[ee],Q.data[H]))}return X},S.recomputeFrameHash=function(L){for(var q=L._transitionData._frameHash={},H=L._transitionData._frames,V=0;V<H.length;V++){var te=H[V];te&&te.name&&(q[te.name]=te)}},S.extendObjectWithContainers=function(L,q,H){var V,te,ee,U,Q,Y,Z,X=m.extendDeepNoArrays({},q||{}),re=m.expandObjectPaths(X),ie={};if(H&&H.length)for(ee=0;ee<H.length;ee++)(te=(V=m.nestedProperty(re,H[ee])).get())===void 0?m.nestedProperty(ie,H[ee]).set(null):(V.set(null),m.nestedProperty(ie,H[ee]).set(te));if(L=m.extendDeepNoArrays(L||{},re),H&&H.length){for(ee=0;ee<H.length;ee++)if(Y=m.nestedProperty(ie,H[ee]).get()){for(Z=(Q=m.nestedProperty(L,H[ee])).get(),Array.isArray(Z)||(Z=[],Q.set(Z)),U=0;U<Y.length;U++){var le=Y[U];Z[U]=le===null?null:S.extendObjectWithContainers(Z[U],le)}Q.set(Z)}}return L},S.dataArrayContainers=["transforms","dimensions"],S.layoutArrayContainers=d.layoutArrayContainers,S.extendTrace=function(L,q){return S.extendObjectWithContainers(L,q,S.dataArrayContainers)},S.extendLayout=function(L,q){return S.extendObjectWithContainers(L,q,S.layoutArrayContainers)},S.transition=function(L,q,H,V,te,ee){var U={redraw:te.redraw},Q={},Y=[];return U.prepareFn=function(){for(var Z=Array.isArray(q)?q.length:0,X=V.slice(0,Z),re=0;re<X.length;re++){var ie=X[re],le=L._fullData[ie]._module;if(le){if(le.animatable){var se=le.basePlotModule.name;Q[se]||(Q[se]=[]),Q[se].push(ie)}L.data[X[re]]=S.extendTrace(L.data[X[re]],q[re])}}var pe=m.expandObjectPaths(m.extendDeepNoArrays({},H)),Te=/^[xy]axis[0-9]*$/;for(var Se in pe)Te.test(Se)&&delete pe[Se].range;S.extendLayout(L.layout,pe),delete L.calcdata,S.supplyDefaults(L),S.doCalcdata(L);var Oe=m.expandObjectPaths(H);if(Oe){var Me=L._fullLayout._plots;for(var ce in Me){var ye=Me[ce],J=ye.xaxis,ne=ye.yaxis,de=J.range.slice(),xe=ne.range.slice(),ue=null,ge=null,be=null,we=null;Array.isArray(Oe[J._name+".range"])?ue=Oe[J._name+".range"].slice():Array.isArray((Oe[J._name]||{}).range)&&(ue=Oe[J._name].range.slice()),Array.isArray(Oe[ne._name+".range"])?ge=Oe[ne._name+".range"].slice():Array.isArray((Oe[ne._name]||{}).range)&&(ge=Oe[ne._name].range.slice()),de&&ue&&(J.r2l(de[0])!==J.r2l(ue[0])||J.r2l(de[1])!==J.r2l(ue[1]))&&(be={xr0:de,xr1:ue}),xe&&ge&&(ne.r2l(xe[0])!==ne.r2l(ge[0])||ne.r2l(xe[1])!==ne.r2l(ge[1]))&&(we={yr0:xe,yr1:ge}),(be||we)&&Y.push(m.extendFlat({plotinfo:ye},be,we))}}return Promise.resolve()},U.runFn=function(Z){var X,re,ie=L._fullLayout._basePlotModules,le=Y.length;if(H)for(re=0;re<ie.length;re++)ie[re].transitionAxes&&ie[re].transitionAxes(L,Y,ee,Z);for(var se in le?((X=m.extendFlat({},ee)).duration=0,delete Q.cartesian):X=ee,Q){var pe=Q[se];L._fullData[pe[0]]._module.basePlotModule.plot(L,pe,X,Z)}},N(L,ee,U)},S.transitionFromReact=function(L,q,H,V){var te=L._fullLayout,ee=te.transition,U={},Q=[];return U.prepareFn=function(){var Y=te._plots;for(var Z in U.redraw=!1,q.anim==="some"&&(U.redraw=!0),H.anim==="some"&&(U.redraw=!0),Y){var X=Y[Z],re=X.xaxis,ie=X.yaxis,le=V[re._name].range.slice(),se=V[ie._name].range.slice(),pe=re.range.slice(),Te=ie.range.slice();re.setScale(),ie.setScale();var Se=null,Oe=null;re.r2l(le[0])===re.r2l(pe[0])&&re.r2l(le[1])===re.r2l(pe[1])||(Se={xr0:le,xr1:pe}),ie.r2l(se[0])===ie.r2l(Te[0])&&ie.r2l(se[1])===ie.r2l(Te[1])||(Oe={yr0:se,yr1:Te}),(Se||Oe)&&Q.push(m.extendFlat({plotinfo:X},Se,Oe))}return Promise.resolve()},U.runFn=function(Y){for(var Z,X,re,ie=L._fullData,le=L._fullLayout._basePlotModules,se=[],pe=0;pe<ie.length;pe++)se.push(pe);function Te(){if(L._fullLayout)for(var Oe=0;Oe<le.length;Oe++)le[Oe].transitionAxes&&le[Oe].transitionAxes(L,Q,Z,Y)}function Se(){if(L._fullLayout)for(var Oe=0;Oe<le.length;Oe++)le[Oe].plot(L,re,X,Y)}Q.length&&q.anim?ee.ordering==="traces first"?(Z=m.extendFlat({},ee,{duration:0}),re=se,X=ee,setTimeout(Te,ee.duration),Se()):(Z=ee,re=null,X=m.extendFlat({},ee,{duration:0}),setTimeout(Se,Z.duration),Te()):Q.length?(Z=ee,Te()):q.anim&&(re=se,X=ee,Se())},N(L,ee,U)},S.doCalcdata=function(L,q){var H,V,te,ee,U=g.list(L),Q=L._fullData,Y=L._fullLayout,Z=new Array(Q.length),X=(L.calcdata||[]).slice();for(L.calcdata=Z,Y._numBoxes=0,Y._numViolins=0,Y._violinScaleGroupStats={},L._hmpixcount=0,L._hmlumcount=0,Y._piecolormap={},Y._sunburstcolormap={},Y._treemapcolormap={},Y._iciclecolormap={},Y._funnelareacolormap={},te=0;te<Q.length;te++)Array.isArray(q)&&q.indexOf(te)===-1&&(Z[te]=X[te]);for(te=0;te<Q.length;te++)(H=Q[te])._arrayAttrs=h.findArrayAttributes(H),H._extremes={};var re=Y._subplots.polar||[];for(te=0;te<re.length;te++)U.push(Y[re[te]].radialaxis,Y[re[te]].angularaxis);for(var ie in Y._colorAxes){var le=Y[ie];le.cauto!==!1&&(delete le.cmin,delete le.cmax)}var se=!1;function pe(Oe){if(H=Q[Oe],V=H._module,H.visible===!0&&H.transforms){if(V&&V.calc){var Me=V.calc(L,H);Me[0]&&Me[0].t&&Me[0].t._scene&&delete Me[0].t._scene.dirty}for(ee=0;ee<H.transforms.length;ee++){var ce=H.transforms[ee];(V=C[ce.type])&&V.calcTransform&&(H._hasCalcTransform=!0,se=!0,V.calcTransform(L,H,ce))}}}function Te(Oe,Me){if(H=Q[Oe],!!(V=H._module).isContainer===Me){var ce=[];if(H.visible===!0&&H._length!==0){delete H._indexToPoints;var ye=H.transforms||[];for(ee=ye.length-1;ee>=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te<Q.length;te++)Te(te,!0);for(te=0;te<Q.length;te++)pe(te);for(se&&W(U,Q,Y),te=0;te<Q.length;te++)Te(te,!0);for(te=0;te<Q.length;te++)Te(te,!1);G(L);var Se=function(Oe,Me){var ce,ye,J,ne,de,xe=[];function ue(ut,pt,It){var Mt=pt._id.charAt(0);if(ut==="histogram2dcontour"){var zt=pt._counterAxes[0],wt=g.getFromId(Me,zt),ve=Mt==="x"||zt==="x"&&wt.type==="category",_e=Mt==="y"||zt==="y"&&wt.type==="category";return function(Ve,We){return Ve===0||We===0||ve&&Ve===It[We].length-1||_e&&We===It.length-1?-1:(Mt==="y"?We:Ve)-1}}return function(Ve,We){return Mt==="y"?We:Ve}}var ge={min:function(ut){return m.aggNums(Math.min,null,ut)},max:function(ut){return m.aggNums(Math.max,null,ut)},sum:function(ut){return m.aggNums(function(pt,It){return pt+It},null,ut)},total:function(ut){return m.aggNums(function(pt,It){return pt+It},null,ut)},mean:function(ut){return m.mean(ut)},median:function(ut){return m.median(ut)}};for(ce=0;ce<Oe.length;ce++){var be=Oe[ce];if(be.type==="category"){var we=be.categoryorder.match(E);if(we){var ke=we[1],Ae=we[2],Ee=be._id.charAt(0),De=Ee==="x",Re=[];for(ye=0;ye<be._categories.length;ye++)Re.push([be._categories[ye],[]]);for(ye=0;ye<be._traceIndices.length;ye++){var Ie=be._traceIndices[ye],Be=Me._fullData[Ie];if(Be.visible===!0){var Ue=Be.type;d.traceIs(Be,"histogram")&&(delete Be._xautoBinFinished,delete Be._yautoBinFinished);var qe=Ue==="splom",Ye=Ue==="scattergl",at=Me.calcdata[Ie];for(J=0;J<at.length;J++){var lt,ct,bt=at[J];if(qe){var ze=Be._axesDim[be._id];if(!De){var Ne=Be._diag[ze][0];Ne&&(be=Me._fullLayout[g.id2name(Ne)])}var Qe=bt.trace.dimensions[ze].values;for(ne=0;ne<Qe.length;ne++)for(lt=be._categoriesMap[Qe[ne]],de=0;de<bt.trace.dimensions.length;de++)if(de!==ze){var it=bt.trace.dimensions[de];Re[lt][1].push(it.values[ne])}}else if(Ye){for(ne=0;ne<bt.t.x.length;ne++)De?(lt=bt.t.x[ne],ct=bt.t.y[ne]):(lt=bt.t.y[ne],ct=bt.t.x[ne]),Re[lt][1].push(ct);bt.t&&bt.t._scene&&delete bt.t._scene.dirty}else if(bt.hasOwnProperty("z")){ct=bt.z;var kt=ue(Be.type,be,ct);for(ne=0;ne<ct.length;ne++)for(de=0;de<ct[ne].length;de++)(lt=kt(de,ne))+1&&Re[lt][1].push(ct[ne][de])}else for((lt=bt.p)===void 0&&(lt=bt[Ee]),(ct=bt.s)===void 0&&(ct=bt.v),ct===void 0&&(ct=De?bt.y:bt.x),Array.isArray(ct)||(ct=ct===void 0?[]:[ct]),ne=0;ne<ct.length;ne++)Re[lt][1].push(ct[ne])}}}be._categoriesValue=Re;var Je=[];for(ye=0;ye<Re.length;ye++)Je.push([Re[ye][0],ge[ke](Re[ye][1])]);Je.sort(function(ut,pt){return ut[1]-pt[1]}),be._categoriesAggregatedValue=Je,be._initialCategories=Je.map(function(ut){return ut[0]}),Ae==="descending"&&be._initialCategories.reverse(),xe=xe.concat(be.sortByInitialCategories())}}}return xe}(U,L);if(Se.length){for(Y._numBoxes=0,Y._numViolins=0,te=0;te<Se.length;te++)Te(Se[te],!0);for(te=0;te<Se.length;te++)Te(Se[te],!1);G(L)}d.getComponentMethod("fx","calc")(L),d.getComponentMethod("errorbars","calc")(L)};var E=/(total|sum|min|max|mean|median) (ascending|descending)/;function W(L,q,H){var V={};function te(Y){Y.clearCalc(),Y.type==="multicategory"&&Y.setupMultiCategory(q),V[Y._id]=1}m.simpleMap(L,te);for(var ee=H._axisMatchGroups||[],U=0;U<ee.length;U++)for(var Q in ee[U])V[Q]||te(H[g.id2name(Q)])}function G(L){var q,H,V,te=L._fullLayout,ee=te._visibleModules,U={};for(H=0;H<ee.length;H++){var Q=ee[H],Y=Q.crossTraceCalc;if(Y){var Z=Q.basePlotModule.name;U[Z]?m.pushUnique(U[Z],Y):U[Z]=[Y]}}for(V in U){var X=U[V],re=te._subplots[V];if(Array.isArray(re))for(q=0;q<re.length;q++){var ie=re[q],le=V==="cartesian"?te._plots[ie]:te[ie];for(H=0;H<X.length;H++)X[H](L,le,ie)}else for(H=0;H<X.length;H++)X[H](L)}}S.rehover=function(L){L._fullLayout._rehover&&L._fullLayout._rehover()},S.redrag=function(L){L._fullLayout._redrag&&L._fullLayout._redrag()},S.reselect=function(L){var q=L._fullLayout,H=(L.layout||{}).selections,V=q._previousSelections;q._previousSelections=H;var te=q._reselect||JSON.stringify(H)!==JSON.stringify(V);d.getComponentMethod("selections","reselect")(L,te)},S.generalUpdatePerTraceModule=function(L,q,H,V){var te,ee=q.traceHash,U={};for(te=0;te<H.length;te++){var Q=H[te],Y=Q[0].trace;Y.visible&&(U[Y.type]=U[Y.type]||[],U[Y.type].push(Q))}for(var Z in ee)if(!U[Z]){var X=ee[Z][0];X[0].trace.visible=!1,U[Z]=[X]}for(var re in U){var ie=U[re];ie[0][0].trace._module.plot(L,q,m.filterVisible(ie),V)}q.traceHash=U},S.plotBasePlot=function(L,q,H,V,te){var ee=d.getModule(L),U=k(q.calcdata,ee)[0];ee.plot(q,U,V,te)},S.cleanBasePlot=function(L,q,H,V,te){var ee=te._has&&te._has(L),U=H._has&&H._has(L);ee&&!U&&te["_"+L+"layer"].selectAll("g.trace").remove()}},49119:function(o,a,n){var l=n(71828),f=n(44467),s=n(27670).c;o.exports=function(c,d,h,p){var m,y,v=p.type,g=p.attributes,b=p.handleDefaults,x=p.partition||"x",_=d._subplots[v],w=_.length,k=w&&_[0].replace(/\d+$/,"");function T(P,D){return l.coerce(m,y,g,P,D)}for(var M=0;M<w;M++){var S=_[M];m=c[S]?c[S]:c[S]={},y=f.newContainer(d,S,k),p.noUirevision||T("uirevision",d.uirevision);var C={};C[x]=[M/w,(M+1)/w],s(y,d,T,C),p.id=S,b(m,y,T,p)}}},5386:function(o,a,n){var l=n(31562);function f(s){var c=s.description?" "+s.description:"",d=s.keys||[];if(d.length>0){for(var h=[],p=0;p<d.length;p++)h[p]="`"+d[p]+"`";c+="Finally, the template string has access to ",c=d.length===1?c+"variable "+h[0]:c+"variables "+h.slice(0,-1).join(", ")+" and "+h.slice(-1)+"."}return c}l.FORMAT_LINK,l.DATE_FORMAT_LINK,a.fF=function(s,c){s=s||{},f(c=c||{});var d={valType:"string",dflt:"",editType:s.editType||"none"};return s.arrayOk!==!1&&(d.arrayOk=!0),d},a.si=function(s,c){s=s||{},f(c=c||{});var d={valType:"string",dflt:"",editType:s.editType||"calc"};return s.arrayOk!==!1&&(d.arrayOk=!0),d},a.R=function(s,c){return c=c||{},(s=s||{}).newshape,f(c),{valType:"string",dflt:"",editType:s.editType||"arraydraw"}}},61639:function(o,a,n){var l=n(64380),f=n(27659).AU,s=n(71828).counterRegex,c="ternary";a.name=c;var d=a.attr="subplot";a.idRoot=c,a.idRegex=a.attrRegex=s(c),(a.attributes={})[d]={valType:"subplotid",dflt:"ternary",editType:"calc"},a.layoutAttributes=n(81367),a.supplyLayoutDefaults=n(25369),a.plot=function(h){for(var p=h._fullLayout,m=h.calcdata,y=p._subplots[c],v=0;v<y.length;v++){var g=y[v],b=f(m,c,g),x=p[g]._subplot;x||(x=new l({id:g,graphDiv:h,container:p._ternarylayer.node()},p),p[g]._subplot=x),x.plot(b,p,h._promises)}},a.clean=function(h,p,m,y){for(var v=y._subplots[c]||[],g=0;g<v.length;g++){var b=v[g],x=y[b]._subplot;!p[b]&&x&&(x.plotContainer.remove(),x.clipDef.remove(),x.clipDefRelative.remove(),x.layers["a-title"].remove(),x.layers["b-title"].remove(),x.layers["c-title"].remove())}}},81367:function(o,a,n){var l=n(22399),f=n(27670).Y,s=n(13838),c=n(30962).overrideAll,d=n(1426).extendFlat,h={title:{text:s.title.text,font:s.title.font},color:s.color,tickmode:s.minor.tickmode,nticks:d({},s.nticks,{dflt:6,min:1}),tick0:s.tick0,dtick:s.dtick,tickvals:s.tickvals,ticktext:s.ticktext,ticks:s.ticks,ticklen:s.ticklen,tickwidth:s.tickwidth,tickcolor:s.tickcolor,ticklabelstep:s.ticklabelstep,showticklabels:s.showticklabels,labelalias:s.labelalias,showtickprefix:s.showtickprefix,tickprefix:s.tickprefix,showticksuffix:s.showticksuffix,ticksuffix:s.ticksuffix,showexponent:s.showexponent,exponentformat:s.exponentformat,minexponent:s.minexponent,separatethousands:s.separatethousands,tickfont:s.tickfont,tickangle:s.tickangle,tickformat:s.tickformat,tickformatstops:s.tickformatstops,hoverformat:s.hoverformat,showline:d({},s.showline,{dflt:!0}),linecolor:s.linecolor,linewidth:s.linewidth,showgrid:d({},s.showgrid,{dflt:!0}),gridcolor:s.gridcolor,gridwidth:s.gridwidth,griddash:s.griddash,layer:s.layer,min:{valType:"number",dflt:0,min:0},_deprecated:{title:s._deprecated.title,titlefont:s._deprecated.titlefont}},p=o.exports=c({domain:f({name:"ternary"}),bgcolor:{valType:"color",dflt:l.background},sum:{valType:"number",dflt:1,min:0},aaxis:h,baxis:h,caxis:h},"plot","from-root");p.uirevision={valType:"any",editType:"none"},p.aaxis.uirevision=p.baxis.uirevision=p.caxis.uirevision={valType:"any",editType:"none"}},25369:function(o,a,n){var l=n(7901),f=n(44467),s=n(71828),c=n(49119),d=n(96115),h=n(89426),p=n(38701),m=n(26218),y=n(92128),v=n(81367),g=["aaxis","baxis","caxis"];function b(_,w,k,T){var M,S,C,P=k("bgcolor"),D=k("sum");T.bgColor=l.combine(P,T.paper_bgcolor);for(var O=0;O<g.length;O++)S=_[M=g[O]]||{},(C=f.newContainer(w,M))._name=M,x(S,C,T,w);var R=w.aaxis,F=w.baxis,A=w.caxis;R.min+F.min+A.min>=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){c(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),c=n(71828),d=c.strTranslate,h=c._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;V<W.length;V++)if(W[V][0].trace.cliponaxis===!1){L._hasClipOnAxisFalse=!0;break}L.updateLayers(q),L.adjustLayout(q,H),g.generalUpdatePerTraceModule(L.graphDiv,L,W,q),L.layers.plotbg.select("path").call(p.fill,q.bgcolor)},F.makeFramework=function(W){var G=this,L=G.graphDiv,q=W[G.id],H=G.clipId="clip"+G.layoutId+G.id,V=G.clipIdRelative="clip-relative"+G.layoutId+G.id;G.clipDef=c.ensureSingleById(W._clips,"clipPath",H,function(te){te.append("path").attr("d","M0,0Z")}),G.clipDefRelative=c.ensureSingleById(W._clips,"clipPath",V,function(te){te.append("path").attr("d","M0,0Z")}),G.plotContainer=c.ensureSingle(G.container,"g",G.id),G.updateLayers(q),m.setClipUrl(G.layers.backplot,H,L),m.setClipUrl(G.layers.grids,H,L)},F.updateLayers=function(W){var G=this.layers,L=["draglayer","plotbg","backplot","grids"];W.aaxis.layer==="below traces"&&L.push("aaxis","aline"),W.baxis.layer==="below traces"&&L.push("baxis","bline"),W.caxis.layer==="below traces"&&L.push("caxis","cline"),L.push("frontplot"),W.aaxis.layer==="above traces"&&L.push("aaxis","aline"),W.baxis.layer==="above traces"&&L.push("baxis","bline"),W.caxis.layer==="above traces"&&L.push("caxis","cline");var q=this.plotContainer.selectAll("g.toplevel").data(L,String),H=["agrid","bgrid","cgrid"];q.enter().append("g").attr("class",function(V){return"toplevel "+V}).each(function(V){var te=l.select(this);G[V]=te,V==="frontplot"?te.append("g").classed("scatterlayer",!0):V==="backplot"?te.append("g").classed("maplayer",!0):V==="plotbg"?te.append("path").attr("d","M0,0Z"):V==="aline"||V==="bline"||V==="cline"?te.append("path"):V==="grids"&&H.forEach(function(ee){G[ee]=te.append("g").classed("grid "+ee,!0)})}),q.order()};var A=Math.sqrt(4/3);F.adjustLayout=function(W,G){var L,q,H,V,te,ee,U=this,Q=W.domain,Y=(Q.x[0]+Q.x[1])/2,Z=(Q.y[0]+Q.y[1])/2,X=Q.x[1]-Q.x[0],re=Q.y[1]-Q.y[0],ie=X*G.w,le=re*G.h,se=W.sum,pe=W.aaxis.min,Te=W.baxis.min,Se=W.caxis.min;ie>A*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=c.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De<O.MINZOOM?(te=H,Y.attr("d",U),Z.attr("d","M0,0Z")):(te={a:H.a+ge*V,b:H.b+be*V,c:H.c+we*V},Y.attr("d",U+"M"+ke+","+Re+"H"+Ae+"L"+Ee+","+Ie+"L"+ke+","+Re+"Z"),Z.attr("d","M"+L+","+q+"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM"+ke+","+Re+B+"M"+Ae+","+Re+$+"M"+Ee+","+Ie+j)),Q||(Y.transition().style("fill",ee>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(c.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(c.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=c.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),c=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F<D.length;F++)R[D[F]]=!0,a.allCategories[D[F]]=!0;for(var A in a.modules[P]={_module:C,categories:R},O&&Object.keys(O).length&&(a.modules[P].meta=O),a.allTypes.push(P),a.componentsRegistry)k(A,P);C.layoutAttributes&&y(a.traceLayoutAttributes,C.layoutAttributes);var z=C.basePlotModule,B=z.name;if(B==="mapbox"){var $=z.constants.styleRules;for(var j in $)d(".js-plotly-plot .plotly .mapboxgl-"+j,$[j])}B!=="geo"&&B!=="mapbox"||window.PlotlyGeoAssets!==void 0||(window.PlotlyGeoAssets={topojson:{}})}}function b(C){if(typeof C.name!="string")throw new Error("Component module *name* must be a string.");var P=C.name;for(var D in a.componentsRegistry[P]=C,C.layoutAttributes&&(C.layoutAttributes._isLinkedToArray&&s(a.layoutArrayContainers,P),w(C)),a.modules)k(P,D);for(var O in a.subplotsRegistry)M(P,O);for(var R in a.transformsRegistry)T(P,R);C.schema&&C.schema.layout&&v(m,C.schema.layout)}function x(C){if(typeof C.name!="string")throw new Error("Transform module *name* must be a string.");var P="Transform module "+C.name,D=typeof C.transform=="function",O=typeof C.calcTransform=="function";if(!D&&!O)throw new Error(P+" is missing a *transform* or *calcTransform* method.");for(var R in D&&O&&l.log([P+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),c(C.attributes)||l.log(P+" registered without an *attributes* object."),typeof C.supplyDefaults!="function"&&l.log(P+" registered without a *supplyDefaults* method."),a.transformsRegistry[C.name]=C,a.componentsRegistry)T(R,C.name)}function _(C){var P=C.name,D=P.split("-")[0],O=C.dictionary,R=C.format,F=O&&Object.keys(O).length,A=R&&Object.keys(R).length,z=a.localeRegistry,B=z[P];if(B||(z[P]=B={}),D!==P){var $=z[D];$||(z[D]=$={}),F&&$.dictionary===B.dictionary&&($.dictionary=O),A&&$.format===B.format&&($.format=R)}F&&(B.dictionary=O),A&&(B.format=R)}function w(C){if(C.layoutAttributes){var P=C.layoutAttributes._arrayAttrRegexps;if(P)for(var D=0;D<P.length;D++)s(a.layoutArrayRegexes,P[D])}}function k(C,P){var D=a.componentsRegistry[C].schema;if(D&&D.traces){var O=D.traces[P];O&&v(a.modules[P]._module.attributes,O)}}function T(C,P){var D=a.componentsRegistry[C].schema;if(D&&D.transforms){var O=D.transforms[P];O&&v(a.transformsRegistry[P].attributes,O)}}function M(C,P){var D=a.componentsRegistry[C].schema;if(D&&D.subplots){var O=a.subplotsRegistry[P],R=O.layoutAttributes,F=O.attr==="subplot"?O.name:O.attr;Array.isArray(F)&&(F=F[0]);var A=D.subplots[F];R&&A&&v(R,A)}}function S(C){return typeof C=="object"&&(C=C.type),C}a.modules={},a.allCategories={},a.allTypes=[],a.subplotsRegistry={},a.transformsRegistry={},a.componentsRegistry={},a.layoutArrayContainers=[],a.layoutArrayRegexes=[],a.traceLayoutAttributes={},a.localeRegistry={},a.apiMethodRegistry={},a.collectableSubplotTypes=null,a.register=function(C){if(a.collectableSubplotTypes=null,!C)throw new Error("No argument passed to Plotly.register.");C&&!Array.isArray(C)&&(C=[C]);for(var P=0;P<C.length;P++){var D=C[P];if(!D)throw new Error("Invalid module was attempted to be registered!");switch(D.moduleType){case"trace":g(D);break;case"transform":x(D);break;case"component":b(D);break;case"locale":_(D);break;case"apiMethod":var O=D.name;a.apiMethodRegistry[O]=D.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},a.getModule=function(C){var P=a.modules[S(C)];return!!P&&P._module},a.traceIs=function(C,P){if((C=S(C))==="various")return!1;var D=a.modules[C];return D||(C&&l.log("Unrecognized trace type "+C+"."),D=a.modules[p.type.dflt]),!!D.categories[P]},a.getTransformIndices=function(C,P){for(var D=[],O=C.transforms||[],R=0;R<O.length;R++)O[R].type===P&&D.push(R);return D},a.hasTransform=function(C,P){for(var D=C.transforms||[],O=0;O<D.length;O++)if(D[O].type===P)return!0;return!1},a.getComponentMethod=function(C,P){var D=a.componentsRegistry[C];return D&&D[P]||f},a.call=function(){var C=arguments[0],P=[].slice.call(arguments,1);return a.apiMethodRegistry[C].apply(null,P)}},61914:function(o,a,n){var l=n(73972),f=n(71828),s=f.extendFlat,c=f.extendDeep;function d(h){var p;switch(h){case"themes__thumb":p={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":p={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:p={}}return p}o.exports=function(h,p){var m,y,v=h.data,g=h.layout,b=c([],v),x=c({},g,d(p.tileClass)),_=h._context||{};if(p.width&&(x.width=p.width),p.height&&(x.height=p.height),p.tileClass==="thumbnail"||p.tileClass==="themes__thumb"){x.annotations=[];var w=Object.keys(x);for(m=0;m<w.length;m++)y=w[m],["xaxis","yaxis","zaxis"].indexOf(y.slice(0,5))>-1&&(x[w[m]].title={text:""});for(m=0;m<b.length;m++){var k=b[m];k.showscale=!1,k.marker&&(k.marker.showscale=!1),l.traceIs(k,"pie-like")&&(k.textposition="none")}}if(Array.isArray(p.annotations))for(m=0;m<p.annotations.length;m++)x.annotations.push(p.annotations[m]);var T=Object.keys(x).filter(function(D){return D.match(/^scene\d*$/)});if(T.length){var M={};for(p.tileClass==="thumbnail"&&(M={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),m=0;m<T.length;m++){var S=x[T[m]];S.xaxis||(S.xaxis={}),S.yaxis||(S.yaxis={}),S.zaxis||(S.zaxis={}),s(S.xaxis,M),s(S.yaxis,M),s(S.zaxis,M),S._scene=null}}var C=document.createElement("div");p.tileClass&&(C.className=p.tileClass);var P={gd:C,td:C,layout:x,data:b,config:{staticPlot:p.staticPlot===void 0||p.staticPlot,plotGlPixelRatio:p.plotGlPixelRatio===void 0?2:p.plotGlPixelRatio,displaylogo:p.displaylogo||!1,showLink:p.showLink||!1,showTips:p.showTips||!1,mapboxAccessToken:_.mapboxAccessToken}};return p.setBackground!=="transparent"&&(P.config.setBackground=p.setBackground||"opaque"),P.gd.defaultLayout=d(p.tileClass),P}},7239:function(o,a,n){var l=n(71828),f=n(403),s=n(22435),c=n(25095);o.exports=function(d,h){var p;return l.isPlainObject(d)||(p=l.getGraphDiv(d)),(h=h||{}).format=h.format||"png",h.width=h.width||null,h.height=h.height||null,h.imageDataOnly=!0,new Promise(function(m,y){p&&p._snapshotInProgress&&y(new Error("Snapshotting already in progress.")),l.isIE()&&h.format!=="svg"&&y(new Error(c.MSG_IE_BAD_FORMAT)),p&&(p._snapshotInProgress=!0);var v=f(d,h),g=h.filename||d.fn||"newplot";g+="."+h.format.replace("-","."),v.then(function(b){return p&&(p._snapshotInProgress=!1),s(b,g,h.format)}).then(function(b){m(b)}).catch(function(b){p&&(p._snapshotInProgress=!1),y(b)})})}},22435:function(o,a,n){var l=n(71828),f=n(25095);o.exports=function(s,c,d){var h=document.createElement("a"),p="download"in h;return new Promise(function(m,y){var v,g;if(l.isIE())return v=f.createBlob(s,"svg"),window.navigator.msSaveBlob(v,c),v=null,m(c);if(p)return v=f.createBlob(s,d),g=f.createObjectURL(v),h.href=g,h.download=c,document.body.appendChild(h),h.click(),document.body.removeChild(h),f.revokeObjectURL(g),v=null,m(c);if(l.isSafari()){var b=d==="svg"?",":";base64,";return f.octetStream(b+encodeURIComponent(s)),m(c)}y(new Error("download error"))})}},25095:function(o,a,n){var l=n(73972);a.getDelay=function(s){return s._has&&(s._has("gl3d")||s._has("gl2d")||s._has("mapbox"))?500:0},a.getRedrawFunc=function(s){return function(){l.getComponentMethod("colorbar","draw")(s)}},a.encodeSVG=function(s){return"data:image/svg+xml,"+encodeURIComponent(s)},a.encodeJSON=function(s){return"data:application/json,"+encodeURIComponent(s)};var f=window.URL||window.webkitURL;a.createObjectURL=function(s){return f.createObjectURL(s)},a.revokeObjectURL=function(s){return f.revokeObjectURL(s)},a.createBlob=function(s,c){if(c==="svg")return new window.Blob([s],{type:"image/svg+xml;charset=utf-8"});if(c==="full-json")return new window.Blob([s],{type:"application/json;charset=utf-8"});var d=function(h){for(var p=h.length,m=new ArrayBuffer(p),y=new Uint8Array(m),v=0;v<p;v++)y[v]=h.charCodeAt(v);return m}(window.atob(s));return new window.Blob([d],{type:"image/"+c})},a.octetStream=function(s){document.location.href="data:application/octet-stream"+s},a.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,a.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},44511:function(o,a,n){var l=n(25095),f={getDelay:l.getDelay,getRedrawFunc:l.getRedrawFunc,clone:n(61914),toSVG:n(5900),svgToImg:n(70942),toImage:n(56395),downloadImage:n(7239)};o.exports=f},70942:function(o,a,n){var l=n(71828),f=n(15398).EventEmitter,s=n(25095);o.exports=function(c){var d=c.emitter||new f,h=new Promise(function(p,m){var y=window.Image,v=c.svg,g=c.format||"png";if(l.isIE()&&g!=="svg"){var b=new Error(s.MSG_IE_BAD_FORMAT);return m(b),c.promise?h:d.emit("error",b)}var x,_,w=c.canvas,k=c.scale||1,T=c.width||300,M=c.height||150,S=k*T,C=k*M,P=w.getContext("2d",{willReadFrequently:!0}),D=new y;g==="svg"||l.isSafari()?_=s.encodeSVG(v):(x=s.createBlob(v,"svg"),_=s.createObjectURL(x)),w.width=S,w.height=C,D.onload=function(){var O;switch(x=null,s.revokeObjectURL(_),g!=="svg"&&P.drawImage(D,0,0,S,C),g){case"jpeg":O=w.toDataURL("image/jpeg");break;case"png":O=w.toDataURL("image/png");break;case"webp":O=w.toDataURL("image/webp");break;case"svg":O=_;break;default:var R="Image format is not jpeg, png, svg or webp.";if(m(new Error(R)),!c.promise)return d.emit("error",R)}p(O),c.promise||d.emit("success",O)},D.onerror=function(O){if(x=null,s.revokeObjectURL(_),m(O),!c.promise)return d.emit("error",O)},D.src=_});return c.promise?h:d}},56395:function(o,a,n){var l=n(15398).EventEmitter,f=n(73972),s=n(71828),c=n(25095),d=n(61914),h=n(5900),p=n(70942);o.exports=function(m,y){var v=new l,g=d(m,{format:"png"}),b=g.gd;b.style.position="absolute",b.style.left="-5000px",document.body.appendChild(b);var x=c.getRedrawFunc(b);return f.call("_doPlot",b,g.data,g.layout,g.config).then(x).then(function(){var _=c.getDelay(b._fullLayout);setTimeout(function(){var w=h(b),k=document.createElement("canvas");k.id=s.randstr(),(v=p({format:y.format,width:b._fullLayout.width,height:b._fullLayout.height,canvas:k,emitter:v,svg:w})).clean=function(){b&&document.body.removeChild(b)}},_)}).catch(function(_){v.emit("error",_)}),v}},5900:function(o,a,n){var l=n(39898),f=n(71828),s=n(91424),c=n(7901),d=n(77922),h=/"/g,p="TOBESTRIPPED",m=new RegExp('("'+p+")|("+p+'")',"g");o.exports=function(y,v,g){var b,x=y._fullLayout,_=x._paper,w=x._toppaper,k=x.width,T=x.height;_.insert("rect",":first-child").call(s.setRect,0,0,k,T).call(c.fill,x.paper_bgcolor);var M=x._basePlotModules||[];for(b=0;b<M.length;b++){var S=M[b];S.toSVG&&S.toSVG(y)}if(w){var C=w.node().childNodes,P=Array.prototype.slice.call(C);for(b=0;b<P.length;b++){var D=P[b];D.childNodes.length&&_.node().appendChild(D)}}x._draggers&&x._draggers.remove(),_.node().style.background="",_.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var R=l.select(this);if(this.style.visibility!=="hidden"&&this.style.display!=="none"){R.style({visibility:null,display:null});var F=this.style.fontFamily;F&&F.indexOf('"')!==-1&&R.style("font-family",F.replace(h,p))}else R.remove()}),_.selectAll(".gradient_filled,.pattern_filled").each(function(){var R=l.select(this),F=this.style.fill;F&&F.indexOf("url(")!==-1&&R.style("fill",F.replace(h,p));var A=this.style.stroke;A&&A.indexOf("url(")!==-1&&R.style("stroke",A.replace(h,p))}),v!=="pdf"&&v!=="eps"||_.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),_.node().setAttributeNS(d.xmlns,"xmlns",d.svg),_.node().setAttributeNS(d.xmlns,"xmlns:xlink",d.xlink),v==="svg"&&g&&(_.attr("width",g*k),_.attr("height",g*T),_.attr("viewBox","0 0 "+k+" "+T));var O=new window.XMLSerializer().serializeToString(_.node());return O=(O=(O=function(R){var F=l.select("body").append("div").style({display:"none"}).html(""),A=R.replace(/(&[^;]*;)/gi,function(z){return z==="<"?"<":z==="&rt;"?">":z.indexOf("<")!==-1||z.indexOf(">")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;c<f.length;c++)f[c].i=c;l.mergeArray(s.text,f,"tx"),l.mergeArray(s.hovertext,f,"htx");var d=s.marker;if(d){l.mergeArray(d.opacity,f,"mo",!0),l.mergeArray(d.color,f,"mc");var h=d.line;h&&(l.mergeArray(h.color,f,"mlc"),l.mergeArrayCastPositive(h.width,f,"mlw"))}}},1486:function(o,a,n){var l=n(82196),f=n(12663).axisHoverFormat,s=n(5386).fF,c=n(5386).si,d=n(50693),h=n(41940),p=n(97313),m=n(79952).u,y=n(1426).extendFlat,v=h({editType:"calc",arrayOk:!0,colorEditType:"style"}),g=y({},l.marker.line.width,{dflt:0}),b=y({width:g,editType:"calc"},d("marker.line")),x=y({line:b,editType:"calc"},d("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:m});o.exports={x:l.x,x0:l.x0,dx:l.dx,y:l.y,y0:l.y0,dy:l.dy,xperiod:l.xperiod,yperiod:l.yperiod,xperiod0:l.xperiod0,yperiod0:l.yperiod0,xperiodalignment:l.xperiodalignment,yperiodalignment:l.yperiodalignment,xhoverformat:f("x"),yhoverformat:f("y"),text:l.text,texttemplate:c({editType:"plot"},{keys:p.eventDataKeys}),hovertext:l.hovertext,hovertemplate:s({},{keys:p.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:y({},v,{}),insidetextfont:y({},v,{}),outsidetextfont:y({},v,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:y({},l.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:x,offsetgroup:l.offsetgroup,alignmentgroup:l.alignmentgroup,selected:{marker:{opacity:l.selected.marker.opacity,color:l.selected.marker.color,editType:"style"},textfont:l.selected.textfont,editType:"style"},unselected:{marker:{opacity:l.unselected.marker.opacity,color:l.unselected.marker.color,editType:"style"},textfont:l.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"]}}}},92290:function(o,a,n){var l=n(89298),f=n(42973),s=n(52075).hasColorscale,c=n(78803),d=n(75341),h=n(66279);o.exports=function(p,m){var y,v,g,b,x,_,w=l.getFromId(p,m.xaxis||"x"),k=l.getFromId(p,m.yaxis||"y"),T={msUTC:!(!m.base&&m.base!==0)};m.orientation==="h"?(y=w.makeCalcdata(m,"x",T),g=k.makeCalcdata(m,"y"),b=f(m,k,"y",g),x=!!m.yperiodalignment,_="y"):(y=k.makeCalcdata(m,"y",T),g=w.makeCalcdata(m,"x"),b=f(m,w,"x",g),x=!!m.xperiodalignment,_="x"),v=b.vals;for(var M=Math.min(v.length,y.length),S=new Array(M),C=0;C<M;C++)S[C]={p:v[C],s:y[C]},x&&(S[C].orig_p=g[C],S[C][_+"End"]=b.ends[C],S[C][_+"Start"]=b.starts[C]),m.ids&&(S[C].id=String(m.ids[C]));return s(m,"marker")&&c(p,m,{vals:m.marker.color,containerStr:"marker",cLetter:"c"}),s(m,"marker.line")&&c(p,m,{vals:m.marker.line.color,containerStr:"marker.line",cLetter:"c"}),d(S,m),h(S,m),S}},97313:function(o){o.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},11661:function(o,a,n){var l=n(92770),f=n(71828).isArrayOrTypedArray,s=n(50606).BADNUM,c=n(73972),d=n(89298),h=n(99082).getAxisGroup,p=n(61546);function m(M,S,C,P,D){if(P.length){var O,R,F,A;switch(function(z,B){var $,j;for($=0;$<B.length;$++){var N,E=B[$],W=E[0].trace,G=W.type==="funnel"?W._base:W.base,L=W.orientation==="h"?W.xcalendar:W.ycalendar,q=z.type==="category"||z.type==="multicategory"?function(){return null}:z.d2c;if(f(G)){for(j=0;j<Math.min(G.length,E.length);j++)N=q(G[j],0,L),l(N)?(E[j].b=+N,E[j].hasB=1):E[j].b=0;for(;j<E.length;j++)E[j].b=0}else{N=q(G,0,L);var H=l(N);for(N=H?N:0,j=0;j<E.length;j++)E[j].b=N,H&&(E[j].hasB=1)}}}(C,P),D.mode){case"overlay":y(S,C,P,D);break;case"group":for(O=[],R=[],F=0;F<P.length;F++)(A=P[F])[0].trace.offset===void 0?R.push(A):O.push(A);R.length&&function(z,B,$,j,N){var E=new p(j,{posAxis:B,sepNegVal:!1,overlapNoMerge:!N.norm});(function(W,G,L,q){for(var H=W._fullLayout,V=L.positions,te=L.distinctPositions,ee=L.minDiff,U=L.traces,Q=U.length,Y=V.length!==te.length,Z=ee*(1-q.gap),X=h(H,G._id)+U[0][0].trace.orientation,re=H._alignmentOpts[X]||{},ie=0;ie<Q;ie++){var le,se,pe=U[ie],Te=pe[0].trace,Se=re[Te.alignmentgroup]||{},Oe=Object.keys(Se.offsetGroups||{}).length,Me=(le=Oe?Z/Oe:Y?Z/Q:Z)*(1-(q.groupgap||0));se=Oe?((2*Te._offsetIndex+1-Oe)*le-Me)/2:Y?((2*ie+1-Q)*le-Me)/2:-Me/2;var ce=pe[0].t;ce.barwidth=Me,ce.poffset=se,ce.bargroupwidth=Z,ce.bardelta=ee}L.binWidth=U[0][0].t.barwidth/100,g(L),b(G,L),x(G,L,Y)})(z,B,E,N),function(W,G){for(var L=W.traces,q=0;q<L.length;q++){var H=L[q];if(H[0].trace.base===void 0)for(var V=new p([H],{posAxis:G,sepNegVal:!0,overlapNoMerge:!0}),te=0;te<H.length;te++){var ee=H[te];if(ee.p!==s){var U=V.put(ee.p,ee.b+ee.s);U&&(ee.b=U)}}}}(E,B),N.norm?(w(E),k($,E,N)):_($,E)}(M,S,C,R,D),O.length&&y(S,C,O,D);break;case"stack":case"relative":for(O=[],R=[],F=0;F<P.length;F++)(A=P[F])[0].trace.base===void 0?R.push(A):O.push(A);R.length&&function(z,B,$,j,N){var E=new p(j,{posAxis:B,sepNegVal:N.mode==="relative",overlapNoMerge:!(N.norm||N.mode==="stack"||N.mode==="relative")});v(B,E,N),function(H,V,te){var ee,U,Q,Y,Z,X,re=T(H),ie=V.traces;for(Y=0;Y<ie.length;Y++)if((U=(ee=ie[Y])[0].trace).type==="funnel")for(Z=0;Z<ee.length;Z++)(X=ee[Z]).s!==s&&V.put(X.p,-.5*X.s);for(Y=0;Y<ie.length;Y++){Q=(U=(ee=ie[Y])[0].trace).type==="funnel";var le=[];for(Z=0;Z<ee.length;Z++)if((X=ee[Z]).s!==s){var se;se=Q?X.s:X.s+X.b;var pe=V.put(X.p,se),Te=pe+se;X.b=pe,X[re]=Te,te.norm||(le.push(Te),X.hasB&&le.push(pe))}te.norm||(U._extremes[H._id]=d.findExtremes(H,le,{tozero:!0,padded:!0}))}}($,E,N);for(var W=0;W<j.length;W++)for(var G=j[W],L=0;L<G.length;L++){var q=G[L];q.s!==s&&q.b+q.s===E.get(q.p,q.s)&&(q._outmost=!0)}N.norm&&k($,E,N)}(0,S,C,R,D),O.length&&y(S,C,O,D)}(function(z,B){var $,j,N,E=T(B),W={},G=1/0,L=-1/0;for($=0;$<z.length;$++)for(N=z[$],j=0;j<N.length;j++){var q=N[j].p;l(q)&&(G=Math.min(G,q),L=Math.max(L,q))}var H=1e4/(L-G),V=W.round=function(X){return String(Math.round(H*(X-G)))};for($=0;$<z.length;$++){(N=z[$])[0].t.extents=W;var te=N[0].t.poffset,ee=Array.isArray(te);for(j=0;j<N.length;j++){var U=N[j],Q=U[E]-U.w/2;if(l(Q)){var Y=U[E]+U.w/2,Z=V(U.p);W[Z]?W[Z]=[Math.min(Q,W[Z][0]),Math.max(Y,W[Z][1])]:W[Z]=[Q,Y]}U.p0=U.p+(ee?te[j]:te),U.p1=U.p0+U.w,U.s0=U.b,U.s1=U.s0+U.s}}})(P,S)}}function y(M,S,C,P){for(var D=0;D<C.length;D++){var O=C[D],R=new p([O],{posAxis:M,sepNegVal:!1,overlapNoMerge:!P.norm});v(M,R,P),P.norm?(w(R),k(S,R,P)):_(S,R)}}function v(M,S,C){for(var P=S.minDiff,D=S.traces,O=P*(1-C.gap),R=O*(1-(C.groupgap||0)),F=-R/2,A=0;A<D.length;A++){var z=D[A][0].t;z.barwidth=R,z.poffset=F,z.bargroupwidth=O,z.bardelta=P}S.binWidth=D[0][0].t.barwidth/100,g(S),b(M,S),x(M,S)}function g(M){var S,C,P=M.traces;for(S=0;S<P.length;S++){var D,O=P[S],R=O[0],F=R.trace,A=R.t,z=F._offset||F.offset,B=A.poffset;if(f(z)){for(D=Array.prototype.slice.call(z,0,O.length),C=0;C<D.length;C++)l(D[C])||(D[C]=B);for(C=D.length;C<O.length;C++)D.push(B);A.poffset=D}else z!==void 0&&(A.poffset=z);var $=F._width||F.width,j=A.barwidth;if(f($)){var N=Array.prototype.slice.call($,0,O.length);for(C=0;C<N.length;C++)l(N[C])||(N[C]=j);for(C=N.length;C<O.length;C++)N.push(j);if(A.barwidth=N,z===void 0){for(D=[],C=0;C<O.length;C++)D.push(B+(j-N[C])/2);A.poffset=D}}else $!==void 0&&(A.barwidth=$,z===void 0&&(A.poffset=B+(j-$)/2))}}function b(M,S){for(var C=S.traces,P=T(M),D=0;D<C.length;D++)for(var O=C[D],R=O[0].t,F=R.poffset,A=Array.isArray(F),z=R.barwidth,B=Array.isArray(z),$=0;$<O.length;$++){var j=O[$],N=j.w=B?z[$]:z;j.p===void 0&&(j.p=j[P],j["orig_"+P]=j[P]);var E=(A?F[$]:F)+N/2;j[P]=j.p+E}}function x(M,S,C){var P=S.traces,D=S.minDiff/2;d.minDtick(M,S.minDiff,S.distinctPositions[0],C);for(var O=0;O<P.length;O++){var R,F,A,z,B=P[O],$=B[0],j=$.trace,N=[];for(z=0;z<B.length;z++)F=(R=B[z]).p-D,A=R.p+D,N.push(F,A);if(j.width||j.offset){var E=$.t,W=E.poffset,G=E.barwidth,L=Array.isArray(W),q=Array.isArray(G);for(z=0;z<B.length;z++){R=B[z];var H=L?W[z]:W,V=q?G[z]:G;A=(F=R.p+H)+V,N.push(F,A)}}j._extremes[M._id]=d.findExtremes(M,N,{padded:!1})}}function _(M,S){for(var C=S.traces,P=T(M),D=0;D<C.length;D++){for(var O=C[D],R=O[0].trace,F=R.type==="scatter",A=R.orientation==="v",z=[],B=!1,$=0;$<O.length;$++){var j=O[$],N=F?0:j.b,E=F?A?j.y:j.x:N+j.s;j[P]=E,z.push(E),j.hasB&&z.push(N),j.hasB&&j.b||(B=!0)}R._extremes[M._id]=d.findExtremes(M,z,{tozero:B,padded:!0})}}function w(M){for(var S=M.traces,C=0;C<S.length;C++)for(var P=S[C],D=0;D<P.length;D++){var O=P[D];O.s!==s&&M.put(O.p,O.b+O.s)}}function k(M,S,C){var P=S.traces,D=T(M),O=C.norm==="fraction"?1:100,R=O/1e9,F=M.l2c(M.c2l(0)),A=C.mode==="stack"?O:F;function z(te){return l(M.c2l(te))&&(te<F-R||te>A+R||!l(F))}for(var B=0;B<P.length;B++){for(var $=P[B],j=$[0].trace,N=[],E=!1,W=!1,G=0;G<$.length;G++){var L=$[G];if(L.s!==s){var q=Math.abs(O/S.get(L.p,L.s));L.b*=q,L.s*=q;var H=L.b,V=H+L.s;L[D]=V,N.push(V),W=W||z(V),L.hasB&&(N.push(H),W=W||z(H)),L.hasB&&L.b||(E=!0)}}j._extremes[M._id]=d.findExtremes(M,N,{tozero:E,padded:W})}}function T(M){return M._id.charAt(0)}o.exports={crossTraceCalc:function(M,S){for(var C=S.xaxis,P=S.yaxis,D=M._fullLayout,O=M._fullData,R=M.calcdata,F=[],A=[],z=0;z<O.length;z++){var B=O[z];if(B.visible===!0&&c.traceIs(B,"bar")&&B.xaxis===C._id&&B.yaxis===P._id&&(B.orientation==="h"?F.push(R[z]):A.push(R[z]),B._computePh))for(var $=M.calcdata[z],j=0;j<$.length;j++)typeof $[j].ph0=="function"&&($[j].ph0=$[j].ph0()),typeof $[j].ph1=="function"&&($[j].ph1=$[j].ph1())}var N={xCat:C.type==="category"||C.type==="multicategory",yCat:P.type==="category"||P.type==="multicategory",mode:D.barmode,norm:D.barnorm,gap:D.bargap,groupgap:D.bargroupgap};m(M,C,P,A,N),m(M,P,C,F,N)},setGroupPositions:m}},90769:function(o,a,n){var l=n(71828),f=n(7901),s=n(73972),c=n(67513),d=n(73927),h=n(98340),p=n(26125),m=n(1486),y=l.coerceFont;function v(g,b,x,_,w,k){var T=(k=k||{}).moduleHasSelected!==!1,M=k.moduleHasUnselected!==!1,S=k.moduleHasConstrain!==!1,C=k.moduleHasCliponaxis!==!1,P=k.moduleHasTextangle!==!1,D=k.moduleHasInsideanchor!==!1,O=!!k.hasPathbar,R=Array.isArray(w)||w==="auto",F=R||w==="inside",A=R||w==="outside";if(F||A){var z=y(_,"textfont",x.font),B=l.extendFlat({},z),$=!(g.textfont&&g.textfont.color);if($&&delete B.color,y(_,"insidetextfont",B),O){var j=l.extendFlat({},z);$&&delete j.color,y(_,"pathbar.textfont",j)}A&&y(_,"outsidetextfont",z),T&&_("selected.textfont.color"),M&&_("unselected.textfont.color"),S&&_("constraintext"),C&&_("cliponaxis"),P&&_("textangle"),_("texttemplate")}F&&D&&_("insidetextanchor")}o.exports={supplyDefaults:function(g,b,x,_){function w(S,C){return l.coerce(g,b,m,S,C)}if(c(g,b,_,w)){d(g,b,_,w),w("xhoverformat"),w("yhoverformat"),w("orientation",b.x&&!b.y?"h":"v"),w("base"),w("offset"),w("width"),w("text"),w("hovertext"),w("hovertemplate");var k=w("textposition");v(g,0,_,w,k,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),h(g,b,w,x,_);var T=(b.marker.line||{}).color,M=s.getComponentMethod("errorbars","supplyDefaults");M(g,b,T||f.defaultLine,{axis:"y"}),M(g,b,T||f.defaultLine,{axis:"x",inherit:"y"}),l.coerceSelectionMarkerOpacity(b,w)}else b.visible=!1},crossTraceDefaults:function(g,b){var x,_;function w(T){return l.coerce(_._input,_,m,T)}if(b.barmode==="group")for(var k=0;k<g.length;k++)(_=g[k]).type==="bar"&&(x=_._input,p(x,_,b,w))},handleText:v}},58065:function(o){o.exports=function(a,n,l){return a.x="xVal"in n?n.xVal:n.x,a.y="yVal"in n?n.yVal:n.y,n.xa&&(a.xaxis=n.xa),n.ya&&(a.yaxis=n.ya),l.orientation==="h"?(a.label=a.y,a.value=a.x):(a.label=a.x,a.value=a.y),a}},69383:function(o,a,n){var l=n(92770),f=n(84267),s=n(71828).isArrayOrTypedArray;a.coerceString=function(c,d,h){if(typeof d=="string"){if(d||!c.noBlank)return d}else if((typeof d=="number"||d===!0)&&!c.strict)return String(d);return h!==void 0?h:c.dflt},a.coerceNumber=function(c,d,h){if(l(d)){d=+d;var p=c.min,m=c.max;if(!(p!==void 0&&d<p||m!==void 0&&d>m))return d}return h!==void 0?h:c.dflt},a.coerceColor=function(c,d,h){return f(d).isValid()?d:h!==void 0?h:c.dflt},a.coerceEnumerated=function(c,d,h){return c.coerceNumber&&(d=+d),c.values.indexOf(d)!==-1?d:h!==void 0?h:c.dflt},a.getValue=function(c,d){var h;return Array.isArray(c)?d<c.length&&(h=c[d]):h=c,h},a.getLineWidth=function(c,d){return 0<d.mlw?d.mlw:s(c.marker.line.width)?0:c.marker.line.width}},95423:function(o,a,n){var l=n(30211),f=n(73972),s=n(7901),c=n(71828).fillText,d=n(69383).getLineWidth,h=n(89298).hoverLabelText,p=n(50606).BADNUM;function m(v,g,b,x,_){var w,k,T,M,S,C,P,D=v.cd,O=D[0].trace,R=D[0].t,F=x==="closest",A=O.type==="waterfall",z=v.maxHoverDistance,B=v.maxSpikeDistance;O.orientation==="h"?(w=b,k=g,T="y",M="x",S=ee,C=V):(w=g,k=b,T="x",M="y",C=ee,S=V);var $=O[T+"period"],j=F||$;function N(le){return W(le,-1)}function E(le){return W(le,1)}function W(le,se){var pe=le.w;return le[T]+se*pe/2}function G(le){return le[T+"End"]-le[T+"Start"]}var L=F?N:$?function(le){return le.p-G(le)/2}:function(le){return Math.min(N(le),le.p-R.bardelta/2)},q=F?E:$?function(le){return le.p+G(le)/2}:function(le){return Math.max(E(le),le.p+R.bardelta/2)};function H(le,se,pe){return _.finiteRange&&(pe=0),l.inbox(le-w,se-w,pe+Math.min(1,Math.abs(se-le)/P)-1)}function V(le){return H(L(le),q(le),z)}function te(le){var se=le[M];if(A){var pe=Math.abs(le.rawS)||0;k>0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),c(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),c=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,c,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_<p.length;_++){var w=p[_];if(l.traceIs(w,"bar")&&w.visible){if(y=!0,x==="group"){var k=w.xaxis+w.yaxis;b[k]&&(g=!0),b[k]=!0}w.visible&&w.type==="histogram"&&f.getFromId({_fullLayout:h},w[w.orientation==="v"?"xaxis":"yaxis"]).type!=="category"&&(v=!0)}}y?(x!=="overlay"&&m("barnorm"),m("bargap",v&&!g?0:.2),m("bargroupgap")):delete h.barmode}},17295:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(63893),d=n(7901),h=n(91424),p=n(73972),m=n(89298).tickText,y=n(72597),v=y.recordMinTextSize,g=y.clearMinTextSize,b=n(16688),x=n(69383),_=n(97313),w=n(1486),k=w.text,T=w.textposition,M=n(23469).appendArrayPointValue,S=_.TEXTPAD;function C(B){return B.id}function P(B){if(B.ids)return C}function D(B,$){return B<$?1:-1}function O(B,$,j,N){var E;return!$.uniformtext.mode&&R(j)?(N&&(E=N()),B.transition().duration(j.duration).ease(j.easing).each("end",function(){E&&E()}).each("interrupt",function(){E&&E()})):B}function R(B){return B&&B.duration>0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q<Y==Z<X||(ie+=90);var le=A(E,ie),se=1;L&&(se=Math.min(1,Z/le.x,X/le.y));var pe=E.left*U+E.right*ee,Te=(E.top+E.bottom)/2,Se=(B+S)*U+($-S)*ee,Oe=(j+N)/2,Me=0,ce=0;if(te||V){var ye=(G?le.x:le.y)/2,J=G?D(B,$):D(j,N);G?te?(Se=B+J*re,Me=-J*ye):(Se=$-J*re,Me=J*ye):te?(Oe=j+J*re,ce=-J*ye):(Oe=N-J*re,ce=J*ye)}return{textX:pe,textY:Te,targetX:Se,targetY:Oe,anchorX:Me,anchorY:ce,scale:se,rotate:ie}}o.exports={plot:function(B,$,j,N,E,W){var G=$.xaxis,L=$.yaxis,q=B._fullLayout,H=B._context.staticPlot;E||(E={mode:q.barmode,norm:q.barmode,gap:q.bargap,groupgap:q.bargroupgap},g("bar",q));var V=s.makeTraceGroups(N,j,"trace bars").each(function(te){var ee=l.select(this),U=te[0].trace,Q=U.type==="waterfall",Y=U.type==="funnel",Z=U.type==="bar"||Y,X=0;Q&&U.connector.visible&&U.connector.mode==="between"&&(X=U.connector.line.width/2);var re=U.orientation==="h",ie=R(E),le=s.ensureSingle(ee,"g","points"),se=P(U),pe=le.selectAll("g.point").data(s.identity,se);pe.enter().append("g").classed("point",!0),pe.exit().remove(),pe.each(function(Se,Oe){var Me,ce,ye=l.select(this),J=function(De,Re,Ie,Be){var Ue=[],qe=[],Ye=Be?Re:Ie,at=Be?Ie:Re;return Ue[0]=Ye.c2p(De.s0,!0),qe[0]=at.c2p(De.p0,!0),Ue[1]=Ye.c2p(De.s1,!0),qe[1]=at.c2p(De.p1,!0),Be?[Ue,qe]:[qe,Ue]}(Se,G,L,re),ne=J[0][0],de=J[0][1],xe=J[1][0],ue=J[1][1],ge=(re?de-ne:ue-xe)==0;if(ge&&Z&&x.getLineWidth(U,Se)&&(ge=!1),ge||(ge=!(f(ne)&&f(de)&&f(xe)&&f(ue))),Se.isBlank=ge,ge&&(re?de=ne:ue=xe),X&&!ge&&(re?(ne-=D(ne,de)*X,de+=D(ne,de)*X):(xe-=D(xe,ue)*X,ue+=D(xe,ue)*X)),U.type==="waterfall"){if(!ge){var be=U[Se.dir].marker;Me=be.line.width,ce=be.color}}else Me=x.getLineWidth(U,Se),ce=Se.mc||U.marker.color;function we(De){var Re=l.round(Me/2%1,2);return E.gap===0&&E.groupgap===0?l.round(Math.round(De)-Re,2):De}if(!B._context.staticPlot){var ke=d.opacity(ce)<1||Me>.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(c.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(xn){return m(tn,tn.c2l(xn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var Cn=s.castOption($t,nn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var _n={};M(_n,$t,nn.i),(cn||_n.x===void 0)&&(_n.x=sn?Kt.value:Kt.label),(cn||_n.y===void 0)&&(_n.y=sn?Kt.label:Kt.value),(cn||_n.xLabel===void 0)&&(_n.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||_n.yLabel===void 0)&&(_n.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Pn=s.castOption($t,nn.i,"customdata");return Pn&&(Kt.customdata=Pn),s.texttemplateString(Yt,Kt,Tt._d3locale,_n,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Pn){return m($t?At:Lt,+Pn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Pn){return an.indexOf(Pn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),_n&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),_n&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),_n&&(Wt+=" of total"),sn.push(Wt))}return sn.join("<br>")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]<Ne.range[1]?0:Ne._length):Qe.type==="log"&&We.s0<=0&&(at=Qe.range[0]<Qe.range[1]?Qe._length:0);var Ze,Ge,Ke,nt,st,mt=Math.abs(Ye-qe)-2*S,tt=Math.abs(lt-at)-2*S;if(ze==="outside"&&(zt||Mt.hasB||(ze="inside")),ze==="auto"&&(zt?(ze="inside",Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,_e)),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ke>0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,c){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return c?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,c=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f<s.length;f++)s[f].selected=0;else for(f=0;f<s.length;f++){var v=s[f],g="ct"in v?v.ct:a(v,c,d,m,p);l.contains(g,!1,f,n)?(y.push({pointNumber:f,x:c.c2d(v.x),y:d.c2d(v.y)}),v.selected=1):v.selected=0}return y}},61546:function(o,a,n){o.exports=f;var l=n(71828).distinctVals;function f(s,c){this.traces=s,this.sepNegVal=c.sepNegVal,this.overlapNoMerge=c.overlapNoMerge;for(var d=1/0,h=c.posAxis._id.charAt(0),p=[],m=0;m<s.length;m++){for(var y=s[m],v=0;v<y.length;v++){var g=y[v],b=g.p;b===void 0&&(b=g[h]),b!==void 0&&p.push(b)}y[0]&&y[0].width1&&(d=Math.min(y[0].width1,d))}this.positions=p;var x=l(p);this.distinctPositions=x.vals,x.vals.length===1&&d!==1/0?this.minDiff=d:this.minDiff=Math.min(x.minDiff,d);var _=(c.posAxis||{}).type;_!=="category"&&_!=="multicategory"||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}f.prototype.put=function(s,c){var d=this.getLabel(s,c),h=this.bins[d]||0;return this.bins[d]=h+c,h},f.prototype.get=function(s,c){var d=this.getLabel(s,c);return this.bins[d]||0},f.prototype.getLabel=function(s,c){return(c<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?s:Math.round(s/this.binWidth))}},16688:function(o,a,n){var l=n(39898),f=n(7901),s=n(91424),c=n(71828),d=n(73972),h=n(72597).resizeText,p=n(1486),m=p.textfont,y=p.insidetextfont,v=p.outsidetextfont,g=n(69383);function b(C,P,D){s.pointStyle(C.selectAll("path"),P,D),x(C,P,D)}function x(C,P,D){C.selectAll("text").each(function(O){var R=l.select(this),F=c.ensureUniformFontSize(D,_(R,O,P,D));s.font(R,F)})}function _(C,P,D,O){var R=O._fullLayout.font,F=D.textfont;if(C.classed("bartext-inside")){var A=S(P,D);F=k(D,P.i,R,A)}else C.classed("bartext-outside")&&(F=T(D,P.i,R));return F}function w(C,P,D){return M(m,C.textfont,P,D)}function k(C,P,D,O){var R=w(C,P,D);return(C._input.textfont===void 0||C._input.textfont.color===void 0||Array.isArray(C.textfont.color)&&C.textfont.color[P]===void 0)&&(R={color:f.contrast(O),family:R.family,size:R.size}),M(y,C.insidetextfont,P,R)}function T(C,P,D){var O=w(C,P,D);return M(v,C.outsidetextfont,P,O)}function M(C,P,D,O){P=P||{};var R=g.getValue(P.family,D),F=g.getValue(P.size,D),A=g.getValue(P.color,D);return{family:g.coerceString(C.family,R,O.family),size:g.coerceNumber(C.size,F,O.size),color:g.coerceColor(C.color,A,O.color)}}function S(C,P){return P.type==="waterfall"?P[C.dir].marker.color:C.mcc||C.mc||P.marker.color}o.exports={style:function(C){var P=l.select(C).selectAll("g.barlayer").selectAll("g.trace");h(C,P,"bar");var D=P.size(),O=C._fullLayout;P.style("opacity",function(R){return R[0].trace.opacity}).each(function(R){(O.barmode==="stack"&&D>1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=c.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),c(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(c){return"_"+c+"Text_minsize"}o.exports={recordMinTextSize:function(c,d,h){if(h.uniformtext.mode){var p=s(c),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=y<m,h[p]=h[p]||1/0,d.hide||(h[p]=Math.min(h[p],Math.max(y,m)))}},clearMinTextSize:function(c,d){d[s(c)]=void 0},resizeText:function(c,d,h){var p=c._fullLayout,m=p["_"+h+"Text_minsize"];if(m){var y,v=p.uniformtext.mode==="hide";switch(h){case"funnelarea":case"pie":case"sunburst":y="g.slice";break;case"treemap":case"icicle":y="g.slice, g.pathbar";break;default:y="g.points > g.point"}d.selectAll(y).each(function(g){var b=g.transform;if(b){b.scale=v&&b.hide?0:m/b.fontSize;var x=l.select(this).select("text");f.setTransormAndDisplay(x,b)}})}}}},53522:function(o,a,n){var l=n(82196),f=n(1486),s=n(22399),c=n(12663).axisHoverFormat,d=n(5386).fF,h=n(1426).extendFlat,p=l.marker,m=p.line;o.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:l.xperiod,yperiod:l.yperiod,xperiod0:l.xperiod0,yperiod0:l.yperiod0,xperiodalignment:l.xperiodalignment,yperiodalignment:l.yperiodalignment,xhoverformat:c("x"),yhoverformat:c("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:h({},p.symbol,{arrayOk:!1,editType:"plot"}),opacity:h({},p.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:h({},p.angle,{arrayOk:!1,editType:"calc"}),size:h({},p.size,{arrayOk:!1,editType:"calc"}),color:h({},p.color,{arrayOk:!1,editType:"style"}),line:{color:h({},m.color,{arrayOk:!1,dflt:s.defaultLine,editType:"style"}),width:h({},m.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:l.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:f.offsetgroup,alignmentgroup:f.alignmentgroup,selected:{marker:l.selected.marker,editType:"style"},unselected:{marker:l.unselected.marker,editType:"style"},text:h({},l.text,{}),hovertext:h({},l.hovertext,{}),hovertemplate:d({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},48518:function(o,a,n){var l=n(92770),f=n(89298),s=n(42973),c=n(71828),d=n(50606).BADNUM,h=c._;o.exports=function(k,T){var M,S,C,P,D,O,R,F=k._fullLayout,A=f.getFromId(k,T.xaxis||"x"),z=f.getFromId(k,T.yaxis||"y"),B=[],$=T.type==="violin"?"_numViolins":"_numBoxes";T.orientation==="h"?(C=A,P="x",D=z,O="y",R=!!T.yperiodalignment):(C=z,P="y",D=A,O="x",R=!!T.xperiodalignment);var j,N,E,W,G,L,q=function(Re,Ie,Be,Ue){var qe,Ye=Ie+"0"in Re;if(Ie in Re||Ye&&"d"+Ie in Re){var at=Be.makeCalcdata(Re,Ie);return[s(Re,Be,Ie,at).vals,at]}qe=Ye?Re[Ie+"0"]:"name"in Re&&(Be.type==="category"||l(Re.name)&&["linear","log"].indexOf(Be.type)!==-1||c.isDateTime(Re.name)&&Be.type==="date")?Re.name:Ue;for(var lt=Be.type==="multicategory"?Be.r2c_just_indices(qe):Be.d2c(qe,0,Re[Ie+"calendar"]),ct=Re._length,bt=new Array(ct),ze=0;ze<ct;ze++)bt[ze]=lt;return[bt]}(T,O,D,F[$]),H=q[0],V=q[1],te=c.distinctVals(H,D),ee=te.vals,U=te.minDiff/2,Q=(T.boxpoints||T.points)==="all"?c.identity:function(Re){return Re.v<j.lf||Re.v>j.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M<T._length;M++){var ie=H[M];if(l(ie)){if((j={}).pos=j[O]=ie,R&&V&&(j.orig_p=V[M]),j.q1=Z("q1"),j.med=Z("median"),j.q3=Z("q3"),N=[],Y&&c.isArrayOrTypedArray(Y[M]))for(S=0;S<Y[M].length;S++)(L=C.d2c(Y[M][S]))!==d&&(m(G={v:L,i:[M,S]},T,[M,S]),N.push(G));if(j.pts=N.sort(y),W=(E=j[P]=N.map(v)).length,j.med!==d&&j.q1!==d&&j.q3!==d&&j.med>=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?c.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?c.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;c.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` @@ -68,7 +68,7 @@ should equal `).slice(2):` `+H.split(` `).map(function(te){return" "+te}).join(` -`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!c[j])if(d.test(j)){var N=l.pid;c[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else c[j]=function(){};return c[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q<arguments.length;q++)L.push(arguments[q]);L.push(function(H,V){H?W(H):E(V)});try{j.apply(this,L)}catch(H){W(H)}return G}return Object.setPrototypeOf(N,Object.getPrototypeOf(j)),B&&Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,f(j))},a.promisify.custom=B,a.callbackify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var E=[],W=0;W<arguments.length;W++)E.push(arguments[W]);var G=E.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var L=this,q=function(){return G.apply(L,arguments)};j.apply(this,E).then(function(H){l.nextTick(q.bind(null,null,H))},function(H){l.nextTick($.bind(null,H,q))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(j)),Object.defineProperties(N,f(j)),N}},21099:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),c=n(40383),d=s("Object.prototype.toString"),h=n(84543)(),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&c&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=c(w,Symbol.toStringTag);if(!k){var T=g(w);k=c(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b<x?b+1:b:b+1},intercalaryMonth:function(g){return g=this._validateYear(g),y[g-y[0]]>>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j<z;j++)F+=B&1<<12-j?30:29;var N=v[R.year-v[0]],E=new Date(N>>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O<B)break;O-=B}var $=z>>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(c.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=c;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:c[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var c={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return c(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&c(this.daysInYear(d),10)===5?30:h===9&&c(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g<h;g++)v+=this.daysInMonth(d,g)}else for(g=7;g<h;g++)v+=this.daysInMonth(d,g);return v},_delay1:function(d){var h=Math.floor((235*d-234)/19),p=12084+13753*h,m=29*h+Math.floor(p/25920);return c(3*(m+1),7)<3&&m++,m},_delay2:function(d){var h=this._delay1(d-1),p=this._delay1(d);return this._delay1(d+1)-p==356?2:p-h==382?1:0},fromJD:function(d){d=Math.floor(d)+.5;for(var h=Math.floor(98496*(d-this.jdEpoch)/35975351)-1;d>=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=d<this.toJD(h,1,1)?7:1;d>this.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){return(11*this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==5},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),c=c<=0?c+1:c,(h=p.day())+Math.ceil(29.5*(d-1))+354*(c-1)+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var d=Math.floor((30*(c-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((c-29-this.toJD(d,1,1))/29.5)+1),p=c-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),h=p.day(),c<0&&c++,d<=2&&(c--,d+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(c){var d=Math.floor(c+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function c(h,p){return h-p*Math.floor(h/p)}function d(h,p){return c(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m<h.length;m++){var y=parseInt(h[m],10);if(Math.abs(y)>19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=c(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,c(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var c=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return c.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v<m.month();v++)y+=this.daysPerMonth[v-1];return y+c.toJD(d+1468,3,13)},fromJD:function(d){d=Math.floor(d+.5);for(var h=Math.floor((d-(this.jdEpoch-1))/366);d>=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){if(c=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[c]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[c][h];return d},daysInMonth:function(c,d){return c.year&&(d=c.month(),c=c.year()),this._validate(c,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[c]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[c][d]},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);c=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=c;this._createMissingCalendarData(c);var b=c-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(c){var d=l.instance().fromJD(c),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(c){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=c-1;h<c+2;h++)this.NEPALI_CALENDAR_DATA[h]===void 0&&(this.NEPALI_CALENDAR_DATA[h]=d)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),l.calendars.nepali=s},94320:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return 682*((h.year()-(h.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+c(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=c(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=c(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=c},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=c},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;y<c.length;y++){if(c[y]>p)return c[m]-c[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+c[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;m<c.length&&!(c[m]>h);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-c[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+c(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_<k.minMonth;)x--,_+=k.monthsInYear(x);for(var T=k.monthsInYear(x);_>T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth<this.monthsInYear(b)&&v>=this.minDay&&v-this.minDay<this.daysInMonth(b)}return this._validateLevel--,g},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return p.instance().fromJD(this.toJD(g)).toJSDate()},fromJSDate:function(m){return this.fromJD(p.instance().fromJSDate(m).toJD())},_validate:function(m,y,v,g){if(m.year){if(this._validateLevel===0&&this.name!==m.calendar().name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,m.calendar().local.name);return m}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(m,y,v))throw g.replace(/\{0\}/,this.local.name);var b=this.newDate(m,y,v);return this._validateLevel--,b}catch(x){throw this._validateLevel--,x}}}),h.prototype=new d,l(h.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(m=y.year()+(y.year()<0?1:0))%4==0&&(m%100!=0||m%400==0)},weekOfYear:function(m,y,v){var g=this.newDate(m,y,v);return g.add(4-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(m,y,v){return(this.dayOfWeek(m,y,v)||7)<6},toJD:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);m=g.year(),y=g.month(),v=g.day(),m<0&&m++,y<3&&(y+=12,m--);var b=Math.floor(m/100),x=2-b+Math.floor(b/4);return Math.floor(365.25*(m+4716))+Math.floor(30.6001*(y+1))+v+x-1524.5},fromJD:function(m){var y=Math.floor(m+.5),v=Math.floor((y-186721625e-2)/36524.25),g=1524+(v=y+1+v-Math.floor(v/4)),b=Math.floor((g-122.1)/365.25),x=Math.floor(365.25*b),_=Math.floor((g-x)/30.6001),w=g-x-Math.floor(30.6001*_),k=_-(_>13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,c){return typeof s!="string"&&(c=s,s=""),this._calendar.formatDate(s||"",this,c)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,c,d){if(typeof s!="string"&&(d=c,c=s,s=""),!c)return"";if(c.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A<s.length&&s.charAt(O+A)===R;)A++;return O+=A-1,Math.floor(A/(F||1))>1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length<A;)B="0"+B;return B},k=this,T=function(R){return typeof g=="function"?g.call(k,R,_("m")):C(w("m",R.month(),2))},M=function(R,F){return F?typeof x=="function"?x.call(k,R):x[R.month()-k.minMonth]:typeof b=="function"?b.call(k,R):b[R.month()-k.minMonth]},S=this.local.digits,C=function(R){return d.localNumbers&&S?S(R):R},P="",D=!1,O=0;O<s.length;O++)if(D)s.charAt(O)!=="'"||_("'")?P+=s.charAt(O):D=!1;else switch(s.charAt(O)){case"d":P+=C(w("d",c.day(),2));break;case"D":P+=(h=c.dayOfWeek(),p=y,m=v,_("D")?m[h]:p[h]);break;case"o":P+=w("o",c.dayOfYear(),3);break;case"w":P+=w("w",c.weekOfYear(),2);break;case"m":P+=T(c);break;case"M":P+=M(c,_("M"));break;case"y":P+=_("y",2)?c.year():(c.year()%100<10?"0":"")+c.year()%100;break;case"Y":_("Y",2),P+=c.formatYear();break;case"J":P+=c.toJD();break;case"@":P+=(c.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":P+=(c.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":_("'")?P+="'":D=!0;break;default:P+=s.charAt(O)}return P},parseDate:function(s,c,d){if(c==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((c=typeof c=="object"?c.toString():c+"")==="")return null;s=s||this.local.dateFormat;var h=(d=d||{}).shortYearCutoff||this.shortYearCutoff;h=typeof h!="string"?h:this.today().year()%100+parseInt(h,10);for(var p=d.dayNamesShort||this.local.dayNamesShort,m=d.dayNames||this.local.dayNames,y=d.parseMonth||this.local.parseMonth,v=d.monthNumbers||this.local.monthNumbers,g=d.monthNamesShort||this.local.monthNamesShort,b=d.monthNames||this.local.monthNames,x=-1,_=-1,w=-1,k=-1,T=-1,M=!1,S=!1,C=function(N,E){for(var W=1;B+W<s.length&&s.charAt(B+W)===N;)W++;return B+=W-1,Math.floor(W/(E||1))>1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=c.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,c.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q<L.length;q++)if(c.substr(z,L[q].length).toLowerCase()===L[q].toLowerCase())return z+=L[q].length,q+D.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,z)},F=function(){if(typeof b=="function"){var N=C("M")?b.call(D,c.substring(z)):g.call(D,c.substring(z));return z+=N.length,N}return R("M",g,b)},A=function(){if(c.charAt(z)!==s.charAt(B))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,z);z++},z=0,B=0;B<s.length;B++)if(S)s.charAt(B)!=="'"||C("'")?A():S=!1;else switch(s.charAt(B)){case"d":k=P("d");break;case"D":R("D",p,m);break;case"o":T=P("o");break;case"w":P("w");break;case"m":w=O();break;case"M":w=F();break;case"y":var $=B;M=!C("y",2),B=$,_=P("y",2);break;case"Y":_=P("Y",2);break;case"J":x=P("J")+.5,c.charAt(z)==="."&&(z++,P("J"));break;case"@":x=P("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":x=P("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":z=c.length;break;case"'":C("'")?A():S=!0;break;default:A()}if(z<c.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(_===-1?_=this.today().year():_<100&&M&&(_+=h===-1?1900:this.today().year()-this.today().year()%100-(_<=h?0:100)),typeof w=="string"&&(w=y.call(this,_,w)),T>-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,c,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return c=c?c.newDate():null,s==null?c:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?c:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],c=0;c<l.length;c++)typeof f[l[c]]=="function"&&(s[s.length]=l[c]);return s}}},i={};function u(o){var a=i[o];if(a!==void 0)return a.exports;var n=i[o]={exports:{}};return r[o].call(n.exports,n,n.exports,u),n.exports}return u.d=function(o,a){for(var n in a)u.o(a,n)&&!u.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:a[n]})},u.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),u.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},u.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},u(760)}()})})(dS);var hE=dS.exports;const pE=ir(hE);var hS={};(function(e){function t(_){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=x;var r=a($e),i=u(Or);function u(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var w=new WeakMap,k=new WeakMap;return(o=function(M){return M?k:w})(_)}function a(_,w){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var k=o(w);if(k&&k.has(_))return k.get(_);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in _)if(S!=="default"&&Object.prototype.hasOwnProperty.call(_,S)){var C=M?Object.getOwnPropertyDescriptor(_,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=_[S]}return T.default=_,k&&k.set(_,T),T}function n(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function l(_,w){for(var k=0;k<w.length;k++){var T=w[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(_,T.key,T)}}function f(_,w,k){return w&&l(_.prototype,w),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&c(_,w)}function c(_,w){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,M){return T.__proto__=M,T},c(_,w)}function d(_){var w=m();return function(){var T=y(_),M;if(w){var S=y(this).constructor;M=Reflect.construct(T,arguments,S)}else M=T.apply(this,arguments);return h(this,M)}}function h(_,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(_)}function p(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(hS);const gE=ir(hS),pS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},mE=e=>typeof e=="number"?Math.round(e*100)/100:e,Pd=e=>{var y,v,g,b;const t=dE(),r=fS(),i=e.data.some(({type:x})=>x==="histogram"),u=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=t==null?void 0:t.OnClickedPointComponent,a=t==null?void 0:t.OnHoveredPlotComponent,[n,l]=$e.useState(null),[f,s]=$e.useState(!1),c=o&&n?[{type:"line",x0:n.points[0].x,x1:n.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:r==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],d=o&&n&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[n.points[0].x],y:[n.points[0].y],mode:"markers",marker:{size:8,color:r==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point <br>${n.points[0].x}: ${mE(n.points[0].y)}`}]:[],h=[...e.layout.shapes??[],...c],p=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((v=(y=e.layout.template)==null?void 0:y.layout)==null?void 0:v.colorway)||((g=ml.layout)==null?void 0:g.colorway)}}}:void 0,m=u?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx(je.Fragment,{children:je.jsxs(Kr,{position:"relative",children:[je.jsx(pS,{onHover:()=>!f&&s(!0),onClick:o?x=>l(x):void 0,data:[...e.data,...d],layout:{...e.layout,...p,title:void 0,shapes:h,xaxis:{...(b=e.layout)==null?void 0:b.xaxis,...m}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),n&&o&&je.jsx(o,{event:n}),f&&a&&je.jsx(a,{})]})})};var gS={},mS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mS);var Rn=mS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ug)),ug.exports}var vs={},cg={};const vE=qn(e9);var fg={},dg={};const vS=qn(t9),$l=qn(n9);var U2;function yE(){return U2||(U2=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(vS),u=t($e),o=t(Or),a=$l;function n(f){var s=(0,a.useTheme)();return u.default.createElement("div",{ref:f.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:s.palette.background.paper,opacity:.7}},u.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},u.default.createElement(i.default,null)))}n.propTypes={theme:o.default.any};var l=u.default.forwardRef(function(s,c){return u.default.createElement(n,(0,r.default)({},s,{forwardedRef:c}))});e.default=l}(dg)),dg}var hg={},pg={},Ja={},gg={exports:{}},mg={exports:{}},vg={exports:{}},H2;function Ur(){return H2||(H2=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vg)),vg.exports}var yg={exports:{}},V2;function bE(){return V2||(V2=1,function(e){var t=Ur().default;function r(i,u){if(t(i)!=="object"||i===null)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,u||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(yg)),yg.exports}var Y2;function yS(){return Y2||(Y2=1,function(e){var t=Ur().default,r=bE();function i(u){var o=r(u,"string");return t(o)==="symbol"?o:String(o)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(mg)),mg.exports}var G2;function Jr(){return G2||(G2=1,function(e){var t=yS();function r(i,u,o){return u=t(u),u in i?Object.defineProperty(i,u,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[u]=o,i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(gg)),gg.exports}var xE={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const X2=e=>{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const c=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,c))}},u=()=>t,n={setState:i,getState:u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(xE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,u,n),n},bS=e=>e?X2(e):X2;var xS={exports:{}},wS={},_S={exports:{}},TS={};/** +`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!c[j])if(d.test(j)){var N=l.pid;c[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else c[j]=function(){};return c[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q<arguments.length;q++)L.push(arguments[q]);L.push(function(H,V){H?W(H):E(V)});try{j.apply(this,L)}catch(H){W(H)}return G}return Object.setPrototypeOf(N,Object.getPrototypeOf(j)),B&&Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,f(j))},a.promisify.custom=B,a.callbackify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var E=[],W=0;W<arguments.length;W++)E.push(arguments[W]);var G=E.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var L=this,q=function(){return G.apply(L,arguments)};j.apply(this,E).then(function(H){l.nextTick(q.bind(null,null,H))},function(H){l.nextTick($.bind(null,H,q))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(j)),Object.defineProperties(N,f(j)),N}},21099:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),c=n(40383),d=s("Object.prototype.toString"),h=n(84543)(),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&c&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=c(w,Symbol.toStringTag);if(!k){var T=g(w);k=c(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b<x?b+1:b:b+1},intercalaryMonth:function(g){return g=this._validateYear(g),y[g-y[0]]>>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j<z;j++)F+=B&1<<12-j?30:29;var N=v[R.year-v[0]],E=new Date(N>>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O<B)break;O-=B}var $=z>>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(c.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=c;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:c[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var c={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return c(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&c(this.daysInYear(d),10)===5?30:h===9&&c(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g<h;g++)v+=this.daysInMonth(d,g)}else for(g=7;g<h;g++)v+=this.daysInMonth(d,g);return v},_delay1:function(d){var h=Math.floor((235*d-234)/19),p=12084+13753*h,m=29*h+Math.floor(p/25920);return c(3*(m+1),7)<3&&m++,m},_delay2:function(d){var h=this._delay1(d-1),p=this._delay1(d);return this._delay1(d+1)-p==356?2:p-h==382?1:0},fromJD:function(d){d=Math.floor(d)+.5;for(var h=Math.floor(98496*(d-this.jdEpoch)/35975351)-1;d>=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=d<this.toJD(h,1,1)?7:1;d>this.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){return(11*this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==5},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),c=c<=0?c+1:c,(h=p.day())+Math.ceil(29.5*(d-1))+354*(c-1)+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var d=Math.floor((30*(c-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((c-29-this.toJD(d,1,1))/29.5)+1),p=c-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),h=p.day(),c<0&&c++,d<=2&&(c--,d+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(c){var d=Math.floor(c+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function c(h,p){return h-p*Math.floor(h/p)}function d(h,p){return c(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m<h.length;m++){var y=parseInt(h[m],10);if(Math.abs(y)>19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=c(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,c(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var c=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return c.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v<m.month();v++)y+=this.daysPerMonth[v-1];return y+c.toJD(d+1468,3,13)},fromJD:function(d){d=Math.floor(d+.5);for(var h=Math.floor((d-(this.jdEpoch-1))/366);d>=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){if(c=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[c]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[c][h];return d},daysInMonth:function(c,d){return c.year&&(d=c.month(),c=c.year()),this._validate(c,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[c]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[c][d]},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);c=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=c;this._createMissingCalendarData(c);var b=c-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(c){var d=l.instance().fromJD(c),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(c){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=c-1;h<c+2;h++)this.NEPALI_CALENDAR_DATA[h]===void 0&&(this.NEPALI_CALENDAR_DATA[h]=d)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),l.calendars.nepali=s},94320:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return 682*((h.year()-(h.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+c(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=c(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=c(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=c},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=c},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;y<c.length;y++){if(c[y]>p)return c[m]-c[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+c[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;m<c.length&&!(c[m]>h);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-c[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+c(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_<k.minMonth;)x--,_+=k.monthsInYear(x);for(var T=k.monthsInYear(x);_>T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth<this.monthsInYear(b)&&v>=this.minDay&&v-this.minDay<this.daysInMonth(b)}return this._validateLevel--,g},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return p.instance().fromJD(this.toJD(g)).toJSDate()},fromJSDate:function(m){return this.fromJD(p.instance().fromJSDate(m).toJD())},_validate:function(m,y,v,g){if(m.year){if(this._validateLevel===0&&this.name!==m.calendar().name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,m.calendar().local.name);return m}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(m,y,v))throw g.replace(/\{0\}/,this.local.name);var b=this.newDate(m,y,v);return this._validateLevel--,b}catch(x){throw this._validateLevel--,x}}}),h.prototype=new d,l(h.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(m=y.year()+(y.year()<0?1:0))%4==0&&(m%100!=0||m%400==0)},weekOfYear:function(m,y,v){var g=this.newDate(m,y,v);return g.add(4-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(m,y,v){return(this.dayOfWeek(m,y,v)||7)<6},toJD:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);m=g.year(),y=g.month(),v=g.day(),m<0&&m++,y<3&&(y+=12,m--);var b=Math.floor(m/100),x=2-b+Math.floor(b/4);return Math.floor(365.25*(m+4716))+Math.floor(30.6001*(y+1))+v+x-1524.5},fromJD:function(m){var y=Math.floor(m+.5),v=Math.floor((y-186721625e-2)/36524.25),g=1524+(v=y+1+v-Math.floor(v/4)),b=Math.floor((g-122.1)/365.25),x=Math.floor(365.25*b),_=Math.floor((g-x)/30.6001),w=g-x-Math.floor(30.6001*_),k=_-(_>13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,c){return typeof s!="string"&&(c=s,s=""),this._calendar.formatDate(s||"",this,c)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,c,d){if(typeof s!="string"&&(d=c,c=s,s=""),!c)return"";if(c.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A<s.length&&s.charAt(O+A)===R;)A++;return O+=A-1,Math.floor(A/(F||1))>1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length<A;)B="0"+B;return B},k=this,T=function(R){return typeof g=="function"?g.call(k,R,_("m")):C(w("m",R.month(),2))},M=function(R,F){return F?typeof x=="function"?x.call(k,R):x[R.month()-k.minMonth]:typeof b=="function"?b.call(k,R):b[R.month()-k.minMonth]},S=this.local.digits,C=function(R){return d.localNumbers&&S?S(R):R},P="",D=!1,O=0;O<s.length;O++)if(D)s.charAt(O)!=="'"||_("'")?P+=s.charAt(O):D=!1;else switch(s.charAt(O)){case"d":P+=C(w("d",c.day(),2));break;case"D":P+=(h=c.dayOfWeek(),p=y,m=v,_("D")?m[h]:p[h]);break;case"o":P+=w("o",c.dayOfYear(),3);break;case"w":P+=w("w",c.weekOfYear(),2);break;case"m":P+=T(c);break;case"M":P+=M(c,_("M"));break;case"y":P+=_("y",2)?c.year():(c.year()%100<10?"0":"")+c.year()%100;break;case"Y":_("Y",2),P+=c.formatYear();break;case"J":P+=c.toJD();break;case"@":P+=(c.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":P+=(c.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":_("'")?P+="'":D=!0;break;default:P+=s.charAt(O)}return P},parseDate:function(s,c,d){if(c==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((c=typeof c=="object"?c.toString():c+"")==="")return null;s=s||this.local.dateFormat;var h=(d=d||{}).shortYearCutoff||this.shortYearCutoff;h=typeof h!="string"?h:this.today().year()%100+parseInt(h,10);for(var p=d.dayNamesShort||this.local.dayNamesShort,m=d.dayNames||this.local.dayNames,y=d.parseMonth||this.local.parseMonth,v=d.monthNumbers||this.local.monthNumbers,g=d.monthNamesShort||this.local.monthNamesShort,b=d.monthNames||this.local.monthNames,x=-1,_=-1,w=-1,k=-1,T=-1,M=!1,S=!1,C=function(N,E){for(var W=1;B+W<s.length&&s.charAt(B+W)===N;)W++;return B+=W-1,Math.floor(W/(E||1))>1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=c.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,c.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q<L.length;q++)if(c.substr(z,L[q].length).toLowerCase()===L[q].toLowerCase())return z+=L[q].length,q+D.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,z)},F=function(){if(typeof b=="function"){var N=C("M")?b.call(D,c.substring(z)):g.call(D,c.substring(z));return z+=N.length,N}return R("M",g,b)},A=function(){if(c.charAt(z)!==s.charAt(B))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,z);z++},z=0,B=0;B<s.length;B++)if(S)s.charAt(B)!=="'"||C("'")?A():S=!1;else switch(s.charAt(B)){case"d":k=P("d");break;case"D":R("D",p,m);break;case"o":T=P("o");break;case"w":P("w");break;case"m":w=O();break;case"M":w=F();break;case"y":var $=B;M=!C("y",2),B=$,_=P("y",2);break;case"Y":_=P("Y",2);break;case"J":x=P("J")+.5,c.charAt(z)==="."&&(z++,P("J"));break;case"@":x=P("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":x=P("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":z=c.length;break;case"'":C("'")?A():S=!0;break;default:A()}if(z<c.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(_===-1?_=this.today().year():_<100&&M&&(_+=h===-1?1900:this.today().year()-this.today().year()%100-(_<=h?0:100)),typeof w=="string"&&(w=y.call(this,_,w)),T>-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,c,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return c=c?c.newDate():null,s==null?c:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?c:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],c=0;c<l.length;c++)typeof f[l[c]]=="function"&&(s[s.length]=l[c]);return s}}},i={};function u(o){var a=i[o];if(a!==void 0)return a.exports;var n=i[o]={exports:{}};return r[o].call(n.exports,n,n.exports,u),n.exports}return u.d=function(o,a){for(var n in a)u.o(a,n)&&!u.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:a[n]})},u.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),u.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},u.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},u(760)}()})})(dS);var hE=dS.exports;const pE=ir(hE);var hS={};(function(e){function t(_){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=x;var r=a($e),i=u(Or);function u(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var w=new WeakMap,k=new WeakMap;return(o=function(M){return M?k:w})(_)}function a(_,w){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var k=o(w);if(k&&k.has(_))return k.get(_);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in _)if(S!=="default"&&Object.prototype.hasOwnProperty.call(_,S)){var C=M?Object.getOwnPropertyDescriptor(_,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=_[S]}return T.default=_,k&&k.set(_,T),T}function n(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function l(_,w){for(var k=0;k<w.length;k++){var T=w[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(_,T.key,T)}}function f(_,w,k){return w&&l(_.prototype,w),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&c(_,w)}function c(_,w){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,M){return T.__proto__=M,T},c(_,w)}function d(_){var w=m();return function(){var T=y(_),M;if(w){var S=y(this).constructor;M=Reflect.construct(T,arguments,S)}else M=T.apply(this,arguments);return h(this,M)}}function h(_,w){if(w&&(t(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(_)}function p(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(hS);const gE=ir(hS),pS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},mE=e=>typeof e=="number"?Math.round(e*100)/100:e,Pd=e=>{var y,v,g,b;const t=dE(),r=fS(),i=e.data.some(({type:x})=>x==="histogram"),u=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=t==null?void 0:t.OnClickedPointComponent,a=t==null?void 0:t.OnHoveredPlotComponent,[n,l]=$e.useState(null),[f,s]=$e.useState(!1),c=o&&n?[{type:"line",x0:n.points[0].x,x1:n.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:r==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],d=o&&n&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[n.points[0].x],y:[n.points[0].y],mode:"markers",marker:{size:8,color:r==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point <br>${n.points[0].x}${e.data.every(x=>x.type!=="heatmap")?`: ${mE(n.points[0].y)}`:""}`,hoverinfo:"skip"}]:[],h=[...e.layout.shapes??[],...c],p=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((v=(y=e.layout.template)==null?void 0:y.layout)==null?void 0:v.colorway)||((g=ml.layout)==null?void 0:g.colorway)}}}:void 0,m=u?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx(je.Fragment,{children:je.jsxs(Kr,{position:"relative",children:[je.jsx(pS,{onHover:()=>!f&&s(!0),onClick:o?x=>l(x):void 0,data:[...e.data,...d],layout:{...e.layout,...p,title:void 0,shapes:h,xaxis:{...(b=e.layout)==null?void 0:b.xaxis,...m}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),n&&o&&je.jsx(o,{event:n}),f&&a&&je.jsx(a,{})]})})};var gS={},mS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mS);var Rn=mS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ug)),ug.exports}var vs={},cg={};const vE=qn(e9);var fg={},dg={};const vS=qn(t9),$l=qn(n9);var U2;function yE(){return U2||(U2=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(vS),u=t($e),o=t(Or),a=$l;function n(f){var s=(0,a.useTheme)();return u.default.createElement("div",{ref:f.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:s.palette.background.paper,opacity:.7}},u.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},u.default.createElement(i.default,null)))}n.propTypes={theme:o.default.any};var l=u.default.forwardRef(function(s,c){return u.default.createElement(n,(0,r.default)({},s,{forwardedRef:c}))});e.default=l}(dg)),dg}var hg={},pg={},Ja={},gg={exports:{}},mg={exports:{}},vg={exports:{}},H2;function Ur(){return H2||(H2=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vg)),vg.exports}var yg={exports:{}},V2;function bE(){return V2||(V2=1,function(e){var t=Ur().default;function r(i,u){if(t(i)!=="object"||i===null)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,u||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(yg)),yg.exports}var Y2;function yS(){return Y2||(Y2=1,function(e){var t=Ur().default,r=bE();function i(u){var o=r(u,"string");return t(o)==="symbol"?o:String(o)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(mg)),mg.exports}var G2;function Jr(){return G2||(G2=1,function(e){var t=yS();function r(i,u,o){return u=t(u),u in i?Object.defineProperty(i,u,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[u]=o,i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(gg)),gg.exports}var xE={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const X2=e=>{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const c=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,c))}},u=()=>t,n={setState:i,getState:u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(xE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,u,n),n},bS=e=>e?X2(e):X2;var xS={exports:{}},wS={},_S={exports:{}},TS={};/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-CryUXPc0.js b/src/evidently/ui/assets/static/js/DashboardWidgets-DpXup6M4.js similarity index 74% rename from src/evidently/ui/assets/static/js/DashboardWidgets-CryUXPc0.js rename to src/evidently/ui/assets/static/js/DashboardWidgets-DpXup6M4.js index f9c68df482..d9eb319813 100644 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-CryUXPc0.js +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-DpXup6M4.js @@ -1 +1 @@ -import{j as r,T as a,G as e}from"./vendor-C2GWNUp2.js";import{D as n}from"./DashboardContent-CcUT0yWs.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-Bk_zDyHx.js";const m=({widgets:t})=>t.length===0?r.jsx(a,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(e,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t})})});export{m as DashboardWidgets}; +import{j as r,T as a,G as e}from"./vendor-C2GWNUp2.js";import{D as n}from"./DashboardContent-BM760KWh.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-CpD9nDs7.js";const m=({widgets:t})=>t.length===0?r.jsx(a,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(e,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t})})});export{m as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/index-rWHfvhvA.js b/src/evidently/ui/assets/static/js/index-BqxYfeOP.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-rWHfvhvA.js rename to src/evidently/ui/assets/static/js/index-BqxYfeOP.js index 9360e9a9a2..500615301a 100644 --- a/src/evidently/ui/assets/static/js/index-rWHfvhvA.js +++ b/src/evidently/ui/assets/static/js/index-BqxYfeOP.js @@ -1 +1 @@ -import{X as f,j as e,B as p,Y as k,L as x,o as b,Z as y,f as C,_ as S,$ as B,h as I,u as M,r as T,I as h,a0 as j,a1 as m,a2 as z,D as L,M as d,a3 as D,a4 as w,n as g,p as v,a5 as E,a6 as R,a7 as A}from"./vendor-C2GWNUp2.js";import{u as N}from"./index-Bk_zDyHx.js";const F=o=>{var t;return typeof((t=o==null?void 0:o.handle)==null?void 0:t.crumb)=="function"},H=()=>{const t=f().filter(F).map(({handle:s,data:r,id:n,pathname:i,params:a})=>s.crumb(r,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},O=()=>{const o=y(),t=C(),{state:s}=S();return o.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},P=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:o,setMode:t}=M(),s=N(),[r,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!r,c=u?"simple-popover":void 0;return o?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:r,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:o,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function Y({LogoSvg:o,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(D,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:r=>r.palette.divider},color:"transparent",children:e.jsxs(w,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:r=>({color:"#4d4d4d",...r.applyStyles("dark",{color:r.palette.text.primary}),"&:hover":{borderRadius:"5px",color:r.palette.text.disabled,...r.applyStyles("dark",{color:r.palette.text.secondary})}}),children:e.jsx(o,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(P,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const J=({LogoSvg:o,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(Y,{authComponent:t,version:s,LogoSvg:o}),e.jsx(O,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(H,{}),e.jsx(A,{})]})]})},U={crumb:()=>({to:"/",linkText:"Home"})};export{J as HomeComponentTemplate,U as handle}; +import{X as f,j as e,B as p,Y as k,L as x,o as b,Z as y,f as C,_ as S,$ as B,h as I,u as M,r as T,I as h,a0 as j,a1 as m,a2 as z,D as L,M as d,a3 as D,a4 as w,n as g,p as v,a5 as E,a6 as R,a7 as A}from"./vendor-C2GWNUp2.js";import{u as N}from"./index-CpD9nDs7.js";const F=o=>{var t;return typeof((t=o==null?void 0:o.handle)==null?void 0:t.crumb)=="function"},H=()=>{const t=f().filter(F).map(({handle:s,data:r,id:n,pathname:i,params:a})=>s.crumb(r,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},O=()=>{const o=y(),t=C(),{state:s}=S();return o.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},P=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:o,setMode:t}=M(),s=N(),[r,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!r,c=u?"simple-popover":void 0;return o?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:r,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:o,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function Y({LogoSvg:o,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(D,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:r=>r.palette.divider},color:"transparent",children:e.jsxs(w,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:r=>({color:"#4d4d4d",...r.applyStyles("dark",{color:r.palette.text.primary}),"&:hover":{borderRadius:"5px",color:r.palette.text.disabled,...r.applyStyles("dark",{color:r.palette.text.secondary})}}),children:e.jsx(o,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(P,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const J=({LogoSvg:o,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(Y,{authComponent:t,version:s,LogoSvg:o}),e.jsx(O,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(H,{}),e.jsx(A,{})]})]})},U={crumb:()=>({to:"/",linkText:"Home"})};export{J as HomeComponentTemplate,U as handle}; diff --git a/src/evidently/ui/assets/static/js/index-Bl_O4Jjc.js b/src/evidently/ui/assets/static/js/index-CA-rozQR.js similarity index 99% rename from src/evidently/ui/assets/static/js/index-Bl_O4Jjc.js rename to src/evidently/ui/assets/static/js/index-CA-rozQR.js index 104d970768..0b5ac68034 100644 --- a/src/evidently/ui/assets/static/js/index-Bl_O4Jjc.js +++ b/src/evidently/ui/assets/static/js/index-CA-rozQR.js @@ -1 +1 @@ -import{R as oe,j as r,p as z,al as Ea,am as Da,P as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a8 as _a,ah as Ka,ak as Pa,a5 as Oa,X as Ua,ab as Qa,Z as Za,m as Wa,J as za,q as Ha,a7 as qa,T as de,ar as Ga,as as Xa,at as Z,au as I,av as Ya,aw as er,K as ar,o as rr,af as tr,ac as nr,G as W,ax as sr,aj as ce,F as lr,x as ir}from"./vendor-C2GWNUp2.js";import{u as or}from"./index-Bk_zDyHx.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},l.apply(null,arguments)}function j(a,e){if(a==null)return{};var t={};for(var n in a)if({}.hasOwnProperty.call(a,n)){if(e.includes(n))continue;t[n]=a[n]}return t}var ue={},pe=y.createContext(ue),pr=(a,e)=>l({},a,e),yr=()=>y.useContext(pe),X=y.createContext(()=>{});X.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(X)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(Y)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var O=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};O.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Pr=["as","render"],Or=["as","render"],Ur=["as","render"],Qr=["as","render"],Zr=["as","render"],Wr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Xr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Pr),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(O,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(O,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Or),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Pe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Pe.displayName="JVR.TypeInt";var Oe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Oe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(O,{}),e==null?void 0:e.href,r.jsx(O,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var Ze=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeUndefined";var We=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Xr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Yr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(We,l({},n,{children:e})):e===void 0?r.jsx(Ze,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Yr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Oe,l({},n,{children:e})):typeof e=="number"?r.jsx(Pe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function P(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return P(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Xe=a=>{var{Row:e={}}=B();return P(e,a,"Row"),null};Xe.displayName="JVR.Row";var Ye=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Ye.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Ye,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return P(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return P(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return P(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return P(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Xe;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Pa(),n=Oa(),c=Ua(),o=Qa(),s=Za().state!=="idle";Wa(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(W,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(W,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(W,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Xa,{children:[r.jsxs(Z,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Ya,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(Z,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(Z,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; +import{R as oe,j as r,p as z,al as Ea,am as Da,P as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a8 as _a,ah as Ka,ak as Pa,a5 as Oa,X as Ua,ab as Qa,Z as Za,m as Wa,J as za,q as Ha,a7 as qa,T as de,ar as Ga,as as Xa,at as Z,au as I,av as Ya,aw as er,K as ar,o as rr,af as tr,ac as nr,G as W,ax as sr,aj as ce,F as lr,x as ir}from"./vendor-C2GWNUp2.js";import{u as or}from"./index-CpD9nDs7.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},l.apply(null,arguments)}function j(a,e){if(a==null)return{};var t={};for(var n in a)if({}.hasOwnProperty.call(a,n)){if(e.includes(n))continue;t[n]=a[n]}return t}var ue={},pe=y.createContext(ue),pr=(a,e)=>l({},a,e),yr=()=>y.useContext(pe),X=y.createContext(()=>{});X.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(X)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(Y)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var O=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};O.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Pr=["as","render"],Or=["as","render"],Ur=["as","render"],Qr=["as","render"],Zr=["as","render"],Wr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Xr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Pr),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(O,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(O,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Or),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Pe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Pe.displayName="JVR.TypeInt";var Oe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Oe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(O,{}),e==null?void 0:e.href,r.jsx(O,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var Ze=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeUndefined";var We=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Xr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Yr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(We,l({},n,{children:e})):e===void 0?r.jsx(Ze,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Yr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Oe,l({},n,{children:e})):typeof e=="number"?r.jsx(Pe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function P(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return P(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Xe=a=>{var{Row:e={}}=B();return P(e,a,"Row"),null};Xe.displayName="JVR.Row";var Ye=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Ye.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Ye,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return P(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return P(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return P(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return P(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Xe;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Pa(),n=Oa(),c=Ua(),o=Qa(),s=Za().state!=="idle";Wa(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(W,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(W,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(W,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Xa,{children:[r.jsxs(Z,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Ya,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(Z,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(Z,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-C3mFZ9xg.js b/src/evidently/ui/assets/static/js/index-CesJjxA-.js similarity index 91% rename from src/evidently/ui/assets/static/js/index-C3mFZ9xg.js rename to src/evidently/ui/assets/static/js/index-CesJjxA-.js index b619496ee1..cf4209a00c 100644 --- a/src/evidently/ui/assets/static/js/index-C3mFZ9xg.js +++ b/src/evidently/ui/assets/static/js/index-CesJjxA-.js @@ -1 +1 @@ -import{ak as l,m as p,a5 as x,K as e,q as c,j as s}from"./vendor-C2GWNUp2.js";import{D as h}from"./index-Bk_zDyHx.js";import{D as j}from"./DashboardViewParams-D9XhJzJS.js";const g=({Dashboard:o,OnClickedPointComponent:r,OnHoveredPlotComponent:m})=>{const{projectId:i}=l();p(i);const a=x(),n=a.min_timestamp!==null&&a.max_timestamp!==null,d={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,D]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(h,{dataRanges:d,isShowDateFilter:n,isDashboardHideDates:t,setIsDashboardHideDates:D}),s.jsx(j.Provider,{value:{isXaxisAsCategorical:t,OnClickedPointComponent:r,OnHoveredPlotComponent:m},children:s.jsx(o,{data:a})})]})};export{g as DashboardComponentTemplate}; +import{ak as l,m as p,a5 as x,K as e,q as c,j as s}from"./vendor-C2GWNUp2.js";import{D as h}from"./index-CpD9nDs7.js";import{D as j}from"./DashboardViewParams-D9XhJzJS.js";const g=({Dashboard:o,OnClickedPointComponent:r,OnHoveredPlotComponent:m})=>{const{projectId:i}=l();p(i);const a=x(),n=a.min_timestamp!==null&&a.max_timestamp!==null,d={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,D]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(h,{dataRanges:d,isShowDateFilter:n,isDashboardHideDates:t,setIsDashboardHideDates:D}),s.jsx(j.Provider,{value:{isXaxisAsCategorical:t,OnClickedPointComponent:r,OnHoveredPlotComponent:m},children:s.jsx(o,{data:a})})]})};export{g as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-Bk_zDyHx.js b/src/evidently/ui/assets/static/js/index-CpD9nDs7.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-Bk_zDyHx.js rename to src/evidently/ui/assets/static/js/index-CpD9nDs7.js index 0589c04dd8..7d5e3314d4 100644 --- a/src/evidently/ui/assets/static/js/index-Bk_zDyHx.js +++ b/src/evidently/ui/assets/static/js/index-CpD9nDs7.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["static/js/index-rWHfvhvA.js","static/js/vendor-C2GWNUp2.js","static/js/index-C3mFZ9xg.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-CryUXPc0.js","static/js/DashboardContent-CcUT0yWs.js","static/js/index-Bv_AN6d-.js","static/js/index-Bl_O4Jjc.js","static/js/index-qb_niS19.js","static/js/index-DJhIIsZf.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var se=Object.defineProperty;var oe=(e,r,s)=>r in e?se(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var w=(e,r,s)=>(oe(e,typeof r!="symbol"?r+"":r,s),s);import{c as G,g as R,u as ne,a as ie,r as k,j as t,A as ae,b as ce,d as F,i as he,T as S,e as le,R as M,S as W,B as d,I as J,C as Y,f as de,h as ue,k as pe,l as fe,m as E,n as me,L as je,o as xe,p as Le,q as ye,P as ge,s as _e,t as ve,v as Ce,w as Se,G as I,F as Ee,x as be,y as ke,z as we,D as Ie,M as f,E as H,H as Pe,J as Te,K as A,N as p,O as Oe,Q as Ae,U as De,V as Re,W as Me}from"./vendor-C2GWNUp2.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();const{transitions:b}=G(),P="#ed0500",Fe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:P,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:P}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),"&:hover":{color:P}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:P}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&:hover":{color:P}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),q=()=>{const{mode:e}=ne(),r=ie("(prefers-color-scheme: dark)");return!e||e==="system"?r?"dark":"light":e},It=()=>{const e=q();return k.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:r,...s})=>{const o=q();return t.jsx(ae,{sx:[n=>n.applyStyles("light",{border:"none"}),...Array.isArray(r)?r:[r]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},_=()=>{var r;const e=ce();return t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Something went wrong"}),he(e)&&t.jsxs(t.Fragment,{children:[t.jsx(S,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((r=e.data)==null?void 0:r.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&t.jsx(S,{children:e.data})]}),typeof e=="string"&&t.jsx(S,{fontWeight:"bold",children:e})]})},Q=({data:e})=>{const[r,s]=M.useState(!1),o=M.useRef(null);return k.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),t.jsx(W,{open:r,onClose:(n,i)=>{i!=="clickaway"&&s(!1)},children:t.jsx(d,{children:t.jsx(N,{severity:"error",forseFilled:!0,children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[t.jsxs(d,{children:[t.jsx(F,{children:"Something went wrong"}),o.current&&t.jsx(S,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),t.jsx(d,{children:t.jsx(J,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:t.jsx(Y,{})})})]})})})})},B=()=>{const e=le();return t.jsx(Q,{data:e})},Ne=()=>{var s;const r=(s=de().find(o=>{var n;return!!((n=o.data)!=null&&n.error)}))==null?void 0:s.data;return t.jsx(Q,{data:r})},Be={path:"*",Component:()=>t.jsx(d,{display:"flex",justifyContent:"center",children:t.jsx(S,{variant:"h4",children:"Page Not Found"})})},$e="modulepreload",He=function(e){return"/"+e},V={},g=function(r,s,o){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.all(s.map(c=>{if(c=He(c),c in V)return;V[c]=!0;const m=c.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":$e,m||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),m)return new Promise((x,D)=>{l.addEventListener("load",x),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Ve=()=>t.jsx(ue,{fontSize:"large",sx:{width:180},children:t.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[t.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),t.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function u(e){return e!=null&&e.notThrowExc?Ue:ze}const ze=e=>{const{data:r,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return r},Ue=e=>{const{data:r,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:r},Ge=({api:e})=>({loader:()=>e.GET("/api/version").then(u())}),We=fe,v=We({baseUrl:"/"}),{loader:Je}=Ge({api:v}),Ye={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...r}=await g(()=>import("./index-rWHfvhvA.js"),__vite__mapDeps([0,1]));return{Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(e,{LogoSvg:Ve})]}),...r}},loader:Je,ErrorBoundary:_},K=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},X=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},qe=({api:e})=>({loader:({params:r})=>{const{projectId:s}=r;return E(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(u()).then(K)}}),Qe=({event:e})=>{const s=e.points[0].customdata;if(!s)return t.jsx(t.Fragment,{});const o="metric_fingerprint"in s?"report":"test-suite";return t.jsx(t.Fragment,{children:t.jsx(d,{sx:{position:"absolute",bottom:0,right:0,background:n=>n.palette.background.default,p:1,borderRadius:"10px"},children:t.jsx(me,{direction:"row",alignItems:"center",gap:2,children:t.jsx(je,{component:xe,to:`${o}s/${s.snapshot_id}`,children:t.jsxs(Le,{variant:"outlined",children:["View ",o.split("-").join(" ")]})})})})})},Ke=()=>{const[e,r]=ye("is-user-saw-click-on-datapoints-hint",!1),[s,o]=k.useState(!e);return k.useEffect(()=>r(!0),[]),s?t.jsx(t.Fragment,{children:t.jsx(W,{open:s,onClose:(n,i)=>{i!=="clickaway"&&o(!1)},children:t.jsx(ge,{sx:{p:1,borderRadius:2,border:"1px solid",borderColor:n=>n.palette.divider},children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2,children:[t.jsx(d,{children:t.jsx(S,{children:"You can click on the data point to open the Report."})}),t.jsx(d,{children:t.jsx(J,{size:"small",onClick:()=>{o(!1)},children:t.jsx(Y,{})})})]})})})}):t.jsx(t.Fragment,{})};function z(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const y={FROM:"date_from",TO:"date_to"},Xe=e=>{const r=e.get(y.FROM),s=e.get(y.TO);return{date_from:r,date_to:s}},Ze=({dataRanges:e})=>{const[r,s]=Te(),{date_from:o,date_to:n}=Xe(r),i=A(o||e.minDate),a=A(n||e.maxDate);return{isCorrectTimeInterval:i.isValid()&&a.isValid()&&(i.isSame(a)||i.isBefore(a)),date_from:i,date_to:a,setSearchParams:s}},Pt=({dataRanges:e,isDashboardHideDates:r,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const n=_e(),{isCorrectTimeInterval:i,date_from:a,date_to:c,setSearchParams:m}=Ze({dataRanges:e}),[h,l]=k.useState({date_from:a,date_to:c}),x=ve(h,300),D=i?"":"incorrect time interval";return k.useEffect(()=>{var T,O;if(n)return;const j=(T=x==null?void 0:x.date_to)==null?void 0:T.toDate(),L=(O=x==null?void 0:x.date_from)==null?void 0:O.toDate();m(C=>(C.delete(y.FROM),C.delete(y.TO),L&&C.append(y.FROM,z(L)),j&&C.append(y.TO,z(j)),C),{preventScrollReset:!0,replace:!0})},[x]),t.jsx(Ce,{dateAdapter:Se,adapterLocale:"en-gb",children:t.jsxs(I,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[t.jsx(I,{item:!0,children:t.jsx(d,{minWidth:180,display:"flex",justifyContent:"center",children:t.jsx(Ee,{control:t.jsx(be,{checked:r,onChange:j=>s(j.target.checked)}),label:"Show in order"})})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(I,{item:!0,xs:12,md:2,children:t.jsxs(ke,{fullWidth:!0,children:[t.jsx(we,{children:"Period"}),t.jsxs(Ie,{variant:"standard",defaultValue:"",onChange:j=>{const[L,T]=j.target.value.split(",");if(L===""){l({date_from:null,date_to:null});return}const[O,C]=[Number(L),T],$=e.maxDate.subtract(O,C);l({date_from:$.isBefore(e.minDate)?e.minDate:$,date_to:e.maxDate})},children:[t.jsx(f,{value:"",children:t.jsx("em",{children:"None"})}),t.jsx(f,{value:"10,minutes",children:"Last 10 Minutes"}),t.jsx(f,{value:"30,minutes",children:"Last 30 Minutes"}),t.jsx(f,{value:"1,hours",children:"Last 1 Hours"}),t.jsx(f,{value:"2,hours",children:"Last 2 Hours"}),t.jsx(f,{value:"8,hours",children:"Last 8 Hours"}),t.jsx(f,{value:"24,hours",children:"Last 24 Hours"}),t.jsx(f,{value:"7,days",children:"Last 7 Days"}),t.jsx(f,{value:"14,days",children:"Last 14 Days"}),t.jsx(f,{value:"28,days",children:"Last 28 Days"}),t.jsx(f,{value:"60,days",children:"Last 60 Days"})]})]})}),t.jsx(I,{item:!0,children:t.jsxs(d,{display:"flex",alignItems:"center",gap:2,children:[t.jsx(H,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:j=>l(L=>({...L,date_from:j}))}),t.jsx(d,{height:1,display:"flex",alignItems:"center",children:t.jsx(S,{children:" - "})}),t.jsx(H,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:j=>l(L=>({...L,date_to:j}))})]})}),t.jsx(I,{item:!0,xs:12,children:t.jsx(Pe,{unmountOnExit:!0,in:!i,children:t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Error"}),D]})})})]})]})})};class et{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "})}error(r){throw{name:"SyntaxError",message:r,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(r){r!==this.ch&&this.error(`Expected '${r}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var r="";if(this.ch==="-"&&(r="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();if(this.ch===".")for(r+=".";this.next()&&this.ch>="0"&&this.ch<="9";)r+=this.ch;if(this.ch==="e"||this.ch==="E")for(r+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(r+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();return+r}string(){var r,s,o="",n;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(n=0,s=0;s<4&&(r=Number.parseInt(this.next(),16),!!isFinite(r));s++)n=n*16+r;o+=String.fromCharCode(n)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var r=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),r;for(;this.ch;){if(r.push(this.value()),this.white(),this.ch==="]")return this.check("]"),r;this.check(","),this.white()}}this.error("Bad array")}object(){var r,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(r=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,r)&&this.error('Duplicate key "'+r+'"'),s[r]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(r,s){let o;return this.text=r,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function n(i,a){var c,m,h=i[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(m=n(h,c),m!==void 0?h[c]=m:delete h[c]);return s.call(i,a,h)}({"":o},""):o}}const Z=e=>new et().parse(e),tt=({api:e})=>({loader:({params:r,request:s})=>{E(r.projectId);const{searchParams:o}=new URL(s.url);let n=o.get(y.FROM),i=o.get(y.TO);return n&&!A(n).isValid()&&(n=null),i&&!A(i).isValid()&&(i=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:r.projectId},query:{timestamp_start:n,timestamp_end:i}},parseAs:"text"}).then(u()).then(Z)}}),{loader:rt}=tt({api:v}),st={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:r}]=await Promise.all([g(()=>import("./index-C3mFZ9xg.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-CryUXPc0.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>t.jsx(e,{Dashboard:({data:{widgets:s}})=>t.jsx(r,{widgets:s}),OnClickedPointComponent:Qe,OnHoveredPlotComponent:Ke})}},loader:rt,ErrorBoundary:_},ee={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},ot=p.object({action:p.literal(ee.RELOAD_SNAPSHOTS)}),nt=p.object({action:p.literal(ee.DELETE_SNAPSHOT),snapshotId:p.string().uuid()}),te=e=>async({request:r,params:s})=>{E(s.projectId),X(r);const o=await r.json();if(ot.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(u({notThrowExc:!0}));const i=nt.safeParse(o);return i.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:i.data.snapshotId}}}).then(u({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},it=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),at=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),ct=({api:e})=>({loader:({params:r})=>{const{projectId:s,snapshotId:o}=r;return E(s),E(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(u()).then(Z)}}),{loader:ht}=ct({api:v}),re={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...r}=await g(()=>import("./index-Bv_AN6d-.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>t.jsx(e,{api:v}),...r}},loader:ht,ErrorBoundary:_},{loader:lt,action:dt}=it({api:v}),ut={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-Bl_O4Jjc.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"reports"})]})}},loader:lt,action:dt,ErrorBoundary:_,children:[re]},{loader:pt,action:ft}=at({api:v}),mt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-Bl_O4Jjc.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"test suites"})]})}},loader:pt,action:ft,ErrorBoundary:_,children:[re]},{loader:jt}=qe({api:v}),xt={path:"projects/:projectId",lazy:()=>g(()=>import("./index-qb_niS19.js"),__vite__mapDeps([8,1])),loader:jt,ErrorBoundary:_,children:[st,ut,mt]},Lt=p.object({action:p.literal("edit-project")}),yt=p.object({action:p.literal("create-new-project")}),gt=p.object({action:p.literal("delete-project"),projectId:p.string().uuid()}),_t=({api:e})=>({loader:()=>e.GET("/api/projects").then(u()).then(r=>r.map(K)),action:async({request:r})=>{X(r);const s=await r.json();if(yt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(u({notThrowExc:!0}));const o=gt.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(u({notThrowExc:!0}));if(Lt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(u({notThrowExc:!0}));throw"Undefined action"}}),{loader:vt,action:Ct}=_t({api:v}),St={index:!0,lazy:()=>g(()=>import("./index-DJhIIsZf.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e.Component,{})]})})),loader:vt,action:Ct,ErrorBoundary:_},Et={...Ye,children:[St,xt,Be],ErrorBoundary:_},bt=Oe([Et]),U=document.getElementById("root");U&&Ae.createRoot(U).render(t.jsx(M.StrictMode,{children:t.jsxs(De,{theme:Fe,children:[t.jsx(Re,{}),t.jsx(Me,{router:bt})]})}));export{N as A,Pt as D,Z as J,It as a,u as r,q as u}; +const __vite__fileDeps=["static/js/index-BqxYfeOP.js","static/js/vendor-C2GWNUp2.js","static/js/index-CesJjxA-.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-DpXup6M4.js","static/js/DashboardContent-BM760KWh.js","static/js/index-DQ7sdOpw.js","static/js/index-CA-rozQR.js","static/js/index-qb_niS19.js","static/js/index-DJhIIsZf.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var se=Object.defineProperty;var oe=(e,r,s)=>r in e?se(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var w=(e,r,s)=>(oe(e,typeof r!="symbol"?r+"":r,s),s);import{c as G,g as R,u as ne,a as ie,r as k,j as t,A as ae,b as ce,d as F,i as he,T as S,e as le,R as M,S as W,B as d,I as J,C as Y,f as de,h as ue,k as pe,l as fe,m as E,n as me,L as je,o as xe,p as Le,q as ye,P as ge,s as _e,t as ve,v as Ce,w as Se,G as I,F as Ee,x as be,y as ke,z as we,D as Ie,M as f,E as H,H as Pe,J as Te,K as A,N as p,O as Oe,Q as Ae,U as De,V as Re,W as Me}from"./vendor-C2GWNUp2.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();const{transitions:b}=G(),P="#ed0500",Fe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:P,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:P}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),"&:hover":{color:P}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:P}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&:hover":{color:P}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),q=()=>{const{mode:e}=ne(),r=ie("(prefers-color-scheme: dark)");return!e||e==="system"?r?"dark":"light":e},It=()=>{const e=q();return k.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:r,...s})=>{const o=q();return t.jsx(ae,{sx:[n=>n.applyStyles("light",{border:"none"}),...Array.isArray(r)?r:[r]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},_=()=>{var r;const e=ce();return t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Something went wrong"}),he(e)&&t.jsxs(t.Fragment,{children:[t.jsx(S,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((r=e.data)==null?void 0:r.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&t.jsx(S,{children:e.data})]}),typeof e=="string"&&t.jsx(S,{fontWeight:"bold",children:e})]})},Q=({data:e})=>{const[r,s]=M.useState(!1),o=M.useRef(null);return k.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),t.jsx(W,{open:r,onClose:(n,i)=>{i!=="clickaway"&&s(!1)},children:t.jsx(d,{children:t.jsx(N,{severity:"error",forseFilled:!0,children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[t.jsxs(d,{children:[t.jsx(F,{children:"Something went wrong"}),o.current&&t.jsx(S,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),t.jsx(d,{children:t.jsx(J,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:t.jsx(Y,{})})})]})})})})},B=()=>{const e=le();return t.jsx(Q,{data:e})},Ne=()=>{var s;const r=(s=de().find(o=>{var n;return!!((n=o.data)!=null&&n.error)}))==null?void 0:s.data;return t.jsx(Q,{data:r})},Be={path:"*",Component:()=>t.jsx(d,{display:"flex",justifyContent:"center",children:t.jsx(S,{variant:"h4",children:"Page Not Found"})})},$e="modulepreload",He=function(e){return"/"+e},V={},g=function(r,s,o){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.all(s.map(c=>{if(c=He(c),c in V)return;V[c]=!0;const m=c.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":$e,m||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),m)return new Promise((x,D)=>{l.addEventListener("load",x),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Ve=()=>t.jsx(ue,{fontSize:"large",sx:{width:180},children:t.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[t.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),t.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function u(e){return e!=null&&e.notThrowExc?Ue:ze}const ze=e=>{const{data:r,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return r},Ue=e=>{const{data:r,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:r},Ge=({api:e})=>({loader:()=>e.GET("/api/version").then(u())}),We=fe,v=We({baseUrl:"/"}),{loader:Je}=Ge({api:v}),Ye={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...r}=await g(()=>import("./index-BqxYfeOP.js"),__vite__mapDeps([0,1]));return{Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(e,{LogoSvg:Ve})]}),...r}},loader:Je,ErrorBoundary:_},K=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},X=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},qe=({api:e})=>({loader:({params:r})=>{const{projectId:s}=r;return E(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(u()).then(K)}}),Qe=({event:e})=>{const s=e.points[0].customdata;if(!s)return t.jsx(t.Fragment,{});const o="metric_fingerprint"in s?"report":"test-suite";return t.jsx(t.Fragment,{children:t.jsx(d,{sx:{position:"absolute",bottom:0,right:0,background:n=>n.palette.background.default,p:1,borderRadius:"10px"},children:t.jsx(me,{direction:"row",alignItems:"center",gap:2,children:t.jsx(je,{component:xe,to:`${o}s/${s.snapshot_id}`,children:t.jsxs(Le,{variant:"outlined",children:["View ",o.split("-").join(" ")]})})})})})},Ke=()=>{const[e,r]=ye("is-user-saw-click-on-datapoints-hint",!1),[s,o]=k.useState(!e);return k.useEffect(()=>r(!0),[]),s?t.jsx(t.Fragment,{children:t.jsx(W,{open:s,onClose:(n,i)=>{i!=="clickaway"&&o(!1)},children:t.jsx(ge,{sx:{p:1,borderRadius:2,border:"1px solid",borderColor:n=>n.palette.divider},children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2,children:[t.jsx(d,{children:t.jsx(S,{children:"You can click on the data point to open the Report."})}),t.jsx(d,{children:t.jsx(J,{size:"small",onClick:()=>{o(!1)},children:t.jsx(Y,{})})})]})})})}):t.jsx(t.Fragment,{})};function z(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const y={FROM:"date_from",TO:"date_to"},Xe=e=>{const r=e.get(y.FROM),s=e.get(y.TO);return{date_from:r,date_to:s}},Ze=({dataRanges:e})=>{const[r,s]=Te(),{date_from:o,date_to:n}=Xe(r),i=A(o||e.minDate),a=A(n||e.maxDate);return{isCorrectTimeInterval:i.isValid()&&a.isValid()&&(i.isSame(a)||i.isBefore(a)),date_from:i,date_to:a,setSearchParams:s}},Pt=({dataRanges:e,isDashboardHideDates:r,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const n=_e(),{isCorrectTimeInterval:i,date_from:a,date_to:c,setSearchParams:m}=Ze({dataRanges:e}),[h,l]=k.useState({date_from:a,date_to:c}),x=ve(h,300),D=i?"":"incorrect time interval";return k.useEffect(()=>{var T,O;if(n)return;const j=(T=x==null?void 0:x.date_to)==null?void 0:T.toDate(),L=(O=x==null?void 0:x.date_from)==null?void 0:O.toDate();m(C=>(C.delete(y.FROM),C.delete(y.TO),L&&C.append(y.FROM,z(L)),j&&C.append(y.TO,z(j)),C),{preventScrollReset:!0,replace:!0})},[x]),t.jsx(Ce,{dateAdapter:Se,adapterLocale:"en-gb",children:t.jsxs(I,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[t.jsx(I,{item:!0,children:t.jsx(d,{minWidth:180,display:"flex",justifyContent:"center",children:t.jsx(Ee,{control:t.jsx(be,{checked:r,onChange:j=>s(j.target.checked)}),label:"Show in order"})})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(I,{item:!0,xs:12,md:2,children:t.jsxs(ke,{fullWidth:!0,children:[t.jsx(we,{children:"Period"}),t.jsxs(Ie,{variant:"standard",defaultValue:"",onChange:j=>{const[L,T]=j.target.value.split(",");if(L===""){l({date_from:null,date_to:null});return}const[O,C]=[Number(L),T],$=e.maxDate.subtract(O,C);l({date_from:$.isBefore(e.minDate)?e.minDate:$,date_to:e.maxDate})},children:[t.jsx(f,{value:"",children:t.jsx("em",{children:"None"})}),t.jsx(f,{value:"10,minutes",children:"Last 10 Minutes"}),t.jsx(f,{value:"30,minutes",children:"Last 30 Minutes"}),t.jsx(f,{value:"1,hours",children:"Last 1 Hours"}),t.jsx(f,{value:"2,hours",children:"Last 2 Hours"}),t.jsx(f,{value:"8,hours",children:"Last 8 Hours"}),t.jsx(f,{value:"24,hours",children:"Last 24 Hours"}),t.jsx(f,{value:"7,days",children:"Last 7 Days"}),t.jsx(f,{value:"14,days",children:"Last 14 Days"}),t.jsx(f,{value:"28,days",children:"Last 28 Days"}),t.jsx(f,{value:"60,days",children:"Last 60 Days"})]})]})}),t.jsx(I,{item:!0,children:t.jsxs(d,{display:"flex",alignItems:"center",gap:2,children:[t.jsx(H,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:j=>l(L=>({...L,date_from:j}))}),t.jsx(d,{height:1,display:"flex",alignItems:"center",children:t.jsx(S,{children:" - "})}),t.jsx(H,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:j=>l(L=>({...L,date_to:j}))})]})}),t.jsx(I,{item:!0,xs:12,children:t.jsx(Pe,{unmountOnExit:!0,in:!i,children:t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Error"}),D]})})})]})]})})};class et{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "})}error(r){throw{name:"SyntaxError",message:r,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(r){r!==this.ch&&this.error(`Expected '${r}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var r="";if(this.ch==="-"&&(r="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();if(this.ch===".")for(r+=".";this.next()&&this.ch>="0"&&this.ch<="9";)r+=this.ch;if(this.ch==="e"||this.ch==="E")for(r+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(r+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();return+r}string(){var r,s,o="",n;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(n=0,s=0;s<4&&(r=Number.parseInt(this.next(),16),!!isFinite(r));s++)n=n*16+r;o+=String.fromCharCode(n)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var r=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),r;for(;this.ch;){if(r.push(this.value()),this.white(),this.ch==="]")return this.check("]"),r;this.check(","),this.white()}}this.error("Bad array")}object(){var r,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(r=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,r)&&this.error('Duplicate key "'+r+'"'),s[r]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(r,s){let o;return this.text=r,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function n(i,a){var c,m,h=i[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(m=n(h,c),m!==void 0?h[c]=m:delete h[c]);return s.call(i,a,h)}({"":o},""):o}}const Z=e=>new et().parse(e),tt=({api:e})=>({loader:({params:r,request:s})=>{E(r.projectId);const{searchParams:o}=new URL(s.url);let n=o.get(y.FROM),i=o.get(y.TO);return n&&!A(n).isValid()&&(n=null),i&&!A(i).isValid()&&(i=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:r.projectId},query:{timestamp_start:n,timestamp_end:i}},parseAs:"text"}).then(u()).then(Z)}}),{loader:rt}=tt({api:v}),st={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:r}]=await Promise.all([g(()=>import("./index-CesJjxA-.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-DpXup6M4.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>t.jsx(e,{Dashboard:({data:{widgets:s}})=>t.jsx(r,{widgets:s}),OnClickedPointComponent:Qe,OnHoveredPlotComponent:Ke})}},loader:rt,ErrorBoundary:_},ee={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},ot=p.object({action:p.literal(ee.RELOAD_SNAPSHOTS)}),nt=p.object({action:p.literal(ee.DELETE_SNAPSHOT),snapshotId:p.string().uuid()}),te=e=>async({request:r,params:s})=>{E(s.projectId),X(r);const o=await r.json();if(ot.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(u({notThrowExc:!0}));const i=nt.safeParse(o);return i.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:i.data.snapshotId}}}).then(u({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},it=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),at=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),ct=({api:e})=>({loader:({params:r})=>{const{projectId:s,snapshotId:o}=r;return E(s),E(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(u()).then(Z)}}),{loader:ht}=ct({api:v}),re={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...r}=await g(()=>import("./index-DQ7sdOpw.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>t.jsx(e,{api:v}),...r}},loader:ht,ErrorBoundary:_},{loader:lt,action:dt}=it({api:v}),ut={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-CA-rozQR.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"reports"})]})}},loader:lt,action:dt,ErrorBoundary:_,children:[re]},{loader:pt,action:ft}=at({api:v}),mt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-CA-rozQR.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"test suites"})]})}},loader:pt,action:ft,ErrorBoundary:_,children:[re]},{loader:jt}=qe({api:v}),xt={path:"projects/:projectId",lazy:()=>g(()=>import("./index-qb_niS19.js"),__vite__mapDeps([8,1])),loader:jt,ErrorBoundary:_,children:[st,ut,mt]},Lt=p.object({action:p.literal("edit-project")}),yt=p.object({action:p.literal("create-new-project")}),gt=p.object({action:p.literal("delete-project"),projectId:p.string().uuid()}),_t=({api:e})=>({loader:()=>e.GET("/api/projects").then(u()).then(r=>r.map(K)),action:async({request:r})=>{X(r);const s=await r.json();if(yt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(u({notThrowExc:!0}));const o=gt.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(u({notThrowExc:!0}));if(Lt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(u({notThrowExc:!0}));throw"Undefined action"}}),{loader:vt,action:Ct}=_t({api:v}),St={index:!0,lazy:()=>g(()=>import("./index-DJhIIsZf.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e.Component,{})]})})),loader:vt,action:Ct,ErrorBoundary:_},Et={...Ye,children:[St,xt,Be],ErrorBoundary:_},bt=Oe([Et]),U=document.getElementById("root");U&&Ae.createRoot(U).render(t.jsx(M.StrictMode,{children:t.jsxs(De,{theme:Fe,children:[t.jsx(Re,{}),t.jsx(Me,{router:bt})]})}));export{N as A,Pt as D,Z as J,It as a,u as r,q as u}; diff --git a/src/evidently/ui/assets/static/js/index-Bv_AN6d-.js b/src/evidently/ui/assets/static/js/index-DQ7sdOpw.js similarity index 87% rename from src/evidently/ui/assets/static/js/index-Bv_AN6d-.js rename to src/evidently/ui/assets/static/js/index-DQ7sdOpw.js index 5ae7fed00e..e45e63a911 100644 --- a/src/evidently/ui/assets/static/js/index-Bv_AN6d-.js +++ b/src/evidently/ui/assets/static/js/index-DQ7sdOpw.js @@ -1 +1 @@ -import{ak as p,m as o,a5 as h,j as e,G as c}from"./vendor-C2GWNUp2.js";import{r as n,J as d}from"./index-Bk_zDyHx.js";import{a as m,C as g,D as _}from"./DashboardContent-CcUT0yWs.js";import"./DashboardViewParams-D9XhJzJS.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle}; +import{ak as p,m as o,a5 as h,j as e,G as c}from"./vendor-C2GWNUp2.js";import{r as n,J as d}from"./index-CpD9nDs7.js";import{a as m,C as g,D as _}from"./DashboardContent-BM760KWh.js";import"./DashboardViewParams-D9XhJzJS.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle};