var Charticulator=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=113)}([function(e,t,n){"use strict";e.exports=n(329)},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return l}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},function(e,t,n){"use strict";n(87);var r=n(8);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g})),n.d(t,"h",(function(){return r.h})),n.d(t,"i",(function(){return r.i})),n.d(t,"j",(function(){return r.j})),n.d(t,"k",(function(){return r.k})),n.d(t,"l",(function(){return r.l})),n.d(t,"m",(function(){return r.m})),n.d(t,"n",(function(){return r.n})),n.d(t,"o",(function(){return r.o})),n.d(t,"p",(function(){return r.p})),n.d(t,"q",(function(){return r.q})),n.d(t,"r",(function(){return r.r})),n.d(t,"s",(function(){return r.s})),n.d(t,"t",(function(){return r.t})),n.d(t,"u",(function(){return r.u})),n.d(t,"v",(function(){return r.v})),n.d(t,"w",(function(){return r.w})),n.d(t,"x",(function(){return r.x})),n.d(t,"y",(function(){return r.y})),n.d(t,"z",(function(){return r.z})),n.d(t,"A",(function(){return r.A})),n.d(t,"B",(function(){return r.B})),n.d(t,"C",(function(){return r.C})),n.d(t,"D",(function(){return r.D})),n.d(t,"E",(function(){return r.E})),n.d(t,"F",(function(){return r.F})),n.d(t,"G",(function(){return r.G})),n.d(t,"H",(function(){return r.H})),n.d(t,"I",(function(){return r.I})),n.d(t,"J",(function(){return r.J})),n.d(t,"K",(function(){return r.K})),n.d(t,"L",(function(){return r.L})),n.d(t,"M",(function(){return r.M})),n.d(t,"N",(function(){return r.N})),n.d(t,"O",(function(){return r.O})),n.d(t,"P",(function(){return r.P})),n.d(t,"Q",(function(){return r.Q})),n.d(t,"R",(function(){return r.R})),n.d(t,"S",(function(){return r.S})),n.d(t,"T",(function(){return r.T})),n.d(t,"U",(function(){return r.U})),n.d(t,"V",(function(){return r.V})),n.d(t,"W",(function(){return r.W})),n.d(t,"X",(function(){return r.X})),n.d(t,"Y",(function(){return r.Y})),n.d(t,"Z",(function(){return r.Z})),n.d(t,"ab",(function(){return r.ab})),n.d(t,"bb",(function(){return r.bb})),n.d(t,"cb",(function(){return r.cb})),n.d(t,"db",(function(){return r.db})),n.d(t,"eb",(function(){return r.eb})),n.d(t,"fb",(function(){return r.fb})),n.d(t,"gb",(function(){return r.gb})),n.d(t,"hb",(function(){return r.hb})),n.d(t,"ib",(function(){return r.ib})),n.d(t,"jb",(function(){return r.jb})),n.d(t,"kb",(function(){return r.kb})),n.d(t,"lb",(function(){return r.lb})),n.d(t,"mb",(function(){return r.mb})),n.d(t,"nb",(function(){return r.nb})),n.d(t,"ob",(function(){return r.ob})),n.d(t,"pb",(function(){return r.pb})),n.d(t,"qb",(function(){return r.qb})),n.d(t,"rb",(function(){return r.rb})),n.d(t,"sb",(function(){return r.sb})),n.d(t,"tb",(function(){return r.tb})),n.d(t,"ub",(function(){return r.ub})),n.d(t,"vb",(function(){return r.vb})),n.d(t,"wb",(function(){return r.wb})),n.d(t,"xb",(function(){return r.xb})),n.d(t,"yb",(function(){return r.yb})),n.d(t,"zb",(function(){return r.zb})),n.d(t,"Ab",(function(){return r.Ab})),n.d(t,"Bb",(function(){return r.Bb})),n.d(t,"Cb",(function(){return r.Cb})),n.d(t,"Db",(function(){return r.Db})),n.d(t,"Eb",(function(){return r.Eb})),n.d(t,"Fb",(function(){return r.Fb})),n.d(t,"Gb",(function(){return r.Gb})),n.d(t,"Hb",(function(){return r.Hb})),n.d(t,"Ib",(function(){return r.Ib})),n.d(t,"Jb",(function(){return r.Jb})),n.d(t,"Kb",(function(){return r.Kb})),n.d(t,"Lb",(function(){return r.Lb})),n.d(t,"Mb",(function(){return r.Mb})),n.d(t,"Nb",(function(){return r.Nb})),n.d(t,"Ob",(function(){return r.Ob})),n.d(t,"Pb",(function(){return r.Pb})),n.d(t,"Qb",(function(){return r.Qb})),n.d(t,"Rb",(function(){return r.Rb})),n.d(t,"Sb",(function(){return r.Sb})),n.d(t,"Tb",(function(){return r.Tb})),n.d(t,"Ub",(function(){return r.Ub})),n.d(t,"Vb",(function(){return r.Vb})),n.d(t,"Wb",(function(){return r.Wb})),n.d(t,"Xb",(function(){return r.Xb})),n.d(t,"Yb",(function(){return r.Yb})),n.d(t,"Zb",(function(){return r.Zb})),n.d(t,"ac",(function(){return r.ac})),n.d(t,"bc",(function(){return r.bc})),n.d(t,"cc",(function(){return r.cc})),n.d(t,"dc",(function(){return r.dc})),n.d(t,"ec",(function(){return r.ec})),n.d(t,"fc",(function(){return r.fc})),n.d(t,"gc",(function(){return r.gc})),n.d(t,"hc",(function(){return r.hc})),n.d(t,"ic",(function(){return r.ic})),n.d(t,"jc",(function(){return r.jc})),n.d(t,"kc",(function(){return r.kc})),n.d(t,"lc",(function(){return r.lc})),n.d(t,"mc",(function(){return r.mc})),n.d(t,"nc",(function(){return r.nc})),n.d(t,"oc",(function(){return r.oc})),n.d(t,"pc",(function(){return r.pc})),n.d(t,"qc",(function(){return r.qc})),n.d(t,"rc",(function(){return r.rc})),n.d(t,"sc",(function(){return r.sc})),n.d(t,"tc",(function(){return r.tc})),n.d(t,"uc",(function(){return r.uc})),n.d(t,"vc",(function(){return r.vc})),n.d(t,"wc",(function(){return r.wc})),n.d(t,"xc",(function(){return r.xc})),n.d(t,"yc",(function(){return r.yc})),n.d(t,"zc",(function(){return r.zc})),n.d(t,"Ac",(function(){return r.Ac})),n.d(t,"Bc",(function(){return r.Bc})),n.d(t,"Cc",(function(){return r.Cc})),n.d(t,"Dc",(function(){return r.Dc})),n.d(t,"Ec",(function(){return r.Ec})),n.d(t,"Fc",(function(){return r.Fc})),n.d(t,"Gc",(function(){return r.Gc})),n.d(t,"Hc",(function(){return r.Hc})),n.d(t,"Ic",(function(){return r.Ic})),n.d(t,"Jc",(function(){return r.Jc})),n.d(t,"Kc",(function(){return r.Kc})),n.d(t,"Lc",(function(){return r.Lc})),n.d(t,"Mc",(function(){return r.Mc})),n.d(t,"Nc",(function(){return r.Nc})),n.d(t,"Oc",(function(){return r.Oc})),n.d(t,"Pc",(function(){return r.Pc})),n.d(t,"Qc",(function(){return r.Qc})),n.d(t,"Rc",(function(){return r.Rc})),n.d(t,"Sc",(function(){return r.Sc})),n.d(t,"Tc",(function(){return r.Tc})),n.d(t,"Uc",(function(){return r.Uc})),n.d(t,"Vc",(function(){return r.Vc})),n.d(t,"Wc",(function(){return r.Wc})),n.d(t,"Xc",(function(){return r.Xc})),n.d(t,"Yc",(function(){return r.Yc})),n.d(t,"Zc",(function(){return r.Zc})),n.d(t,"ad",(function(){return r.ad})),n.d(t,"bd",(function(){return r.bd})),n.d(t,"cd",(function(){return r.cd})),n.d(t,"dd",(function(){return r.dd})),n.d(t,"ed",(function(){return r.ed}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return X})),n.d(t,"i",(function(){return pe})),n.d(t,"d",(function(){return Te})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return z})),n.d(t,"g",(function(){return he})),n.d(t,"e",(function(){return Ie})),n.d(t,"f",(function(){return ce})),n.d(t,"hb",(function(){return de})),n.d(t,"j",(function(){return Z})),n.d(t,"k",(function(){return J})),n.d(t,"o",(function(){return q})),n.d(t,"J",(function(){return re})),n.d(t,"Q",(function(){return rt})),n.d(t,"L",(function(){return it})),n.d(t,"P",(function(){return at})),n.d(t,"V",(function(){return st})),n.d(t,"ab",(function(){return lt})),n.d(t,"q",(function(){return gt})),n.d(t,"R",(function(){return mt})),n.d(t,"Z",(function(){return It})),n.d(t,"E",(function(){return xe})),n.d(t,"Y",(function(){return Qe})),n.d(t,"cb",(function(){return ke})),n.d(t,"K",(function(){return Be})),n.d(t,"kb",(function(){return Se})),n.d(t,"lb",(function(){return Ne})),n.d(t,"l",(function(){return Re})),n.d(t,"n",(function(){return Oe})),n.d(t,"m",(function(){return _e})),n.d(t,"h",(function(){return Fe})),n.d(t,"y",(function(){return ze})),n.d(t,"x",(function(){return Pe})),n.d(t,"w",(function(){return Ue})),n.d(t,"A",(function(){return Ge})),n.d(t,"B",(function(){return He})),n.d(t,"C",(function(){return Ye})),n.d(t,"t",(function(){return Ve})),n.d(t,"s",(function(){return We})),n.d(t,"r",(function(){return Ke})),n.d(t,"u",(function(){return Ze})),n.d(t,"v",(function(){return Je})),n.d(t,"z",(function(){return qe})),n.d(t,"X",(function(){return Xe})),n.d(t,"S",(function(){return $e})),n.d(t,"N",(function(){return et})),n.d(t,"gb",(function(){return Ct})),n.d(t,"fb",(function(){return Et})),n.d(t,"O",(function(){return bt})),n.d(t,"W",(function(){return Bt})),n.d(t,"F",(function(){return tt})),n.d(t,"G",(function(){return o})),n.d(t,"T",(function(){return Tt})),n.d(t,"jb",(function(){return St})),n.d(t,"ib",(function(){return kt})),n.d(t,"nb",(function(){return Nt})),n.d(t,"mb",(function(){return jt})),n.d(t,"U",(function(){return Ft})),n.d(t,"p",(function(){return pt.a})),n.d(t,"D",(function(){return pt.b})),n.d(t,"H",(function(){return zt.a})),n.d(t,"I",(function(){return Pt.a})),n.d(t,"M",(function(){return $.a})),n.d(t,"bb",(function(){return i.a})),n.d(t,"db",(function(){return Ut.b})),n.d(t,"eb",(function(){return r.b}));var r=n(133);function o(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=Object(r.b)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}var i=n(228),a="cubic-bezier(.1,.9,.2,1)",s="cubic-bezier(.1,.25,.75,.9)",l=Object(i.a)({from:{opacity:0},to:{opacity:1}}),c=Object(i.a)({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),u=G(-10),A=G(-20),d=G(-40),g=G(-400),p=G(10),h=G(20),f=G(40),m=G(400),y=H(10),I=H(20),C=H(-10),E=H(-20),b=Y(10),v=Y(20),B=Y(40),M=Y(400),D=Y(-10),x=Y(-20),w=Y(-40),Q=Y(-400),S=V(-10),N=V(-20),k=V(10),T=V(20),j=Object(i.a)({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),L=Object(i.a)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),R=Object(i.a)({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),O=Object(i.a)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),_=Object(i.a)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),F=Object(i.a)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),z={easeFunction1:a,easeFunction2:s,durationValue1:"0.167s",durationValue2:"0.267s",durationValue3:"0.367s",durationValue4:"0.467s"},P={slideRightIn10:U(l+","+u,"0.367s",a),slideRightIn20:U(l+","+A,"0.367s",a),slideRightIn40:U(l+","+d,"0.367s",a),slideRightIn400:U(l+","+g,"0.367s",a),slideLeftIn10:U(l+","+p,"0.367s",a),slideLeftIn20:U(l+","+h,"0.367s",a),slideLeftIn40:U(l+","+f,"0.367s",a),slideLeftIn400:U(l+","+m,"0.367s",a),slideUpIn10:U(l+","+y,"0.367s",a),slideUpIn20:U(l+","+I,"0.367s",a),slideDownIn10:U(l+","+C,"0.367s",a),slideDownIn20:U(l+","+E,"0.367s",a),slideRightOut10:U(c+","+b,"0.367s",a),slideRightOut20:U(c+","+v,"0.367s",a),slideRightOut40:U(c+","+B,"0.367s",a),slideRightOut400:U(c+","+M,"0.367s",a),slideLeftOut10:U(c+","+D,"0.367s",a),slideLeftOut20:U(c+","+x,"0.367s",a),slideLeftOut40:U(c+","+w,"0.367s",a),slideLeftOut400:U(c+","+Q,"0.367s",a),slideUpOut10:U(c+","+S,"0.367s",a),slideUpOut20:U(c+","+N,"0.367s",a),slideDownOut10:U(c+","+k,"0.367s",a),slideDownOut20:U(c+","+T,"0.367s",a),scaleUpIn100:U(l+","+j,"0.367s",a),scaleDownIn100:U(l+","+R,"0.367s",a),scaleUpOut103:U(c+","+O,"0.167s",s),scaleDownOut98:U(c+","+L,"0.167s",s),fadeIn100:U(l,"0.167s",s),fadeIn200:U(l,"0.267s",s),fadeIn400:U(l,"0.367s",s),fadeIn500:U(l,"0.467s",s),fadeOut100:U(c,"0.167s",s),fadeOut200:U(c,"0.267s",s),fadeOut400:U(c,"0.367s",s),fadeOut500:U(c,"0.467s",s),rotate90deg:U(_,"0.1s",s),rotateN90deg:U(F,"0.1s",s)};function U(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function G(e){return Object(i.a)({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function H(e){return Object(i.a)({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Y(e){return Object(i.a)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function V(e){return Object(i.a)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var W,K,Z,J,q,X=o(P),$=n(229);!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(W||(W={})),function(e){e.Arabic="'"+W.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+W.Cyrillic+"'",e.EastEuropean="'"+W.EastEuropean+"'",e.Greek="'"+W.Greek+"'",e.Hebrew="'"+W.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+W.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+W.Vietnamese+"'",e.WestEuropean="'"+W.WestEuropean+"'",e.Armenian="'"+W.Armenian+"'",e.Georgian="'"+W.Georgian+"'"}(K||(K={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Z||(Z={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(J||(J={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(q||(q={}));var ee="'Segoe UI', '"+W.WestEuropean+"'",te={ar:K.Arabic,bg:K.Cyrillic,cs:K.EastEuropean,el:K.Greek,et:K.EastEuropean,he:K.Hebrew,hi:K.Hindi,hr:K.EastEuropean,hu:K.EastEuropean,ja:K.Japanese,kk:K.EastEuropean,ko:K.Korean,lt:K.EastEuropean,lv:K.EastEuropean,pl:K.EastEuropean,ru:K.Cyrillic,sk:K.EastEuropean,"sr-latn":K.EastEuropean,th:K.Thai,tr:K.EastEuropean,uk:K.Cyrillic,vi:K.Vietnamese,"zh-hans":K.ChineseSimplified,"zh-hant":K.ChineseTraditional,hy:K.Armenian,ka:K.Georgian};function ne(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function re(e){var t=function(e){for(var t in te)if(te.hasOwnProperty(t)&&e&&0===t.indexOf(e))return te[t];return ee}(e),n=t+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:ne(Z.mini,J.regular,n),xSmall:ne(Z.xSmall,J.regular,n),small:ne(Z.small,J.regular,n),smallPlus:ne(Z.smallPlus,J.regular,n),medium:ne(Z.medium,J.regular,n),mediumPlus:ne(Z.mediumPlus,J.regular,n),large:ne(Z.large,J.regular,n),xLarge:ne(Z.xLarge,J.semibold,n),xLargePlus:ne(Z.xLargePlus,J.semibold,n),xxLarge:ne(Z.xxLarge,J.semibold,n),xxLargePlus:ne(Z.xxLargePlus,J.semibold,n),superLarge:ne(Z.superLarge,J.semibold,n),mega:ne(Z.mega,J.semibold,n)}}var oe,ie,ae,se=n(288),le=n(15),ce=re(Object(se.a)());function ue(e,t,n,r){e="'"+e+"'";var o=void 0!==r?"local('"+r+"'),":"";Object($.a)({fontFamily:e,src:o+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Ae(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;ue(t,i+"-light",J.light,o&&o+" Light"),ue(t,i+"-semilight",J.semilight,o&&o+" SemiLight"),ue(t,i+"-regular",J.regular,o),ue(t,i+"-semibold",J.semibold,o&&o+" SemiBold"),ue(t,i+"-bold",J.bold,o&&o+" Bold")}function de(e){if(e){var t=e+"/fonts";Ae(t,W.Thai,"leelawadeeui-thai","leelawadeeui"),Ae(t,W.Arabic,"segoeui-arabic"),Ae(t,W.Cyrillic,"segoeui-cyrillic"),Ae(t,W.EastEuropean,"segoeui-easteuropean"),Ae(t,W.Greek,"segoeui-greek"),Ae(t,W.Hebrew,"segoeui-hebrew"),Ae(t,W.Vietnamese,"segoeui-vietnamese"),Ae(t,W.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Ae(t,K.Selawik,"selawik","selawik"),Ae(t,W.Armenian,"segoeui-armenian"),Ae(t,W.Georgian,"segoeui-georgian"),ue("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",J.light),ue("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",J.semibold)}}de(null!=(ae=null===(ie=null===(oe=Object(le.a)())||void 0===oe?void 0:oe.FabricConfig)||void 0===ie?void 0:ie.fontBaseUrl)?ae:"https://static2.sharepointonline.com/files/fabric/assets");var ge,pe=o(ce),he={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},fe=n(1),me=n(43),ye=n(25);!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(ge||(ge={}));var Ie={elevation4:ge.depth4,elevation8:ge.depth8,elevation16:ge.depth16,elevation64:ge.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},Ce=n(230);function Ee(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(be(e,t,Object(fe.a)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function be(e,t,n,r,o){var i,a,s;void 0===o&&(o=!1);var l={},c=e||{},u=c.white,A=c.black,d=c.themePrimary,g=c.themeDark,p=c.themeDarker,h=c.themeDarkAlt,f=c.themeLighter,m=c.neutralLight,y=c.neutralLighter,I=c.neutralDark,C=c.neutralQuaternary,E=c.neutralQuaternaryAlt,b=c.neutralPrimary,v=c.neutralSecondary,B=c.neutralSecondaryAlt,M=c.neutralTertiary,D=c.neutralTertiaryAlt,x=c.neutralLighterAlt,w=c.accent;return u&&(l.bodyBackground=u,l.bodyFrameBackground=u,l.accentButtonText=u,l.buttonBackground=u,l.primaryButtonText=u,l.primaryButtonTextHovered=u,l.primaryButtonTextPressed=u,l.inputBackground=u,l.inputForegroundChecked=u,l.listBackground=u,l.menuBackground=u,l.cardStandoutBackground=u),A&&(l.bodyTextChecked=A,l.buttonTextCheckedHovered=A),d&&(l.link=d,l.primaryButtonBackground=d,l.inputBackgroundChecked=d,l.inputIcon=d,l.inputFocusBorderAlt=d,l.menuIcon=d,l.menuHeader=d,l.accentButtonBackground=d),g&&(l.primaryButtonBackgroundPressed=g,l.inputBackgroundCheckedHovered=g,l.inputIconHovered=g),p&&(l.linkHovered=p),h&&(l.primaryButtonBackgroundHovered=h),f&&(l.inputPlaceholderBackgroundChecked=f),m&&(l.bodyBackgroundChecked=m,l.bodyFrameDivider=m,l.bodyDivider=m,l.variantBorder=m,l.buttonBackgroundCheckedHovered=m,l.buttonBackgroundPressed=m,l.listItemBackgroundChecked=m,l.listHeaderBackgroundPressed=m,l.menuItemBackgroundPressed=m,l.menuItemBackgroundChecked=m),y&&(l.bodyBackgroundHovered=y,l.buttonBackgroundHovered=y,l.buttonBackgroundDisabled=y,l.buttonBorderDisabled=y,l.primaryButtonBackgroundDisabled=y,l.disabledBackground=y,l.listItemBackgroundHovered=y,l.listHeaderBackgroundHovered=y,l.menuItemBackgroundHovered=y),C&&(l.primaryButtonTextDisabled=C,l.disabledSubtext=C),E&&(l.listItemBackgroundCheckedHovered=E),M&&(l.disabledBodyText=M,l.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||M,l.buttonTextDisabled=M,l.inputIconDisabled=M,l.disabledText=M),b&&(l.bodyText=b,l.actionLink=b,l.buttonText=b,l.inputBorderHovered=b,l.inputText=b,l.listText=b,l.menuItemText=b),x&&(l.bodyStandoutBackground=x,l.defaultStateBackground=x),I&&(l.actionLinkHovered=I,l.buttonTextHovered=I,l.buttonTextChecked=I,l.buttonTextPressed=I,l.inputTextHovered=I,l.menuItemTextHovered=I),v&&(l.bodySubtext=v,l.focusBorder=v,l.inputBorder=v,l.smallInputBorder=v,l.inputPlaceholderText=v),B&&(l.buttonBorder=B),D&&(l.disabledBodySubtext=D,l.disabledBorder=D,l.buttonBackgroundChecked=D,l.menuDivider=D),w&&(l.accentButtonBackground=w),(null===(a=t)||void 0===a?void 0:a.elevation4)&&(l.cardShadow=t.elevation4),!r&&(null===(s=t)||void 0===s?void 0:s.elevation8)?l.cardShadowHovered=t.elevation8:l.variantBorderHovered&&(l.cardShadowHovered="0 0 1px "+l.variantBorderHovered),l=Object(fe.a)(Object(fe.a)({},l),n)}var ve={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Be(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o,i;void 0===t&&(t={});var a=Object(Ce.a)({},e,t,{semanticColors:be(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=Object(Ce.a)(a.fonts[c],t.defaultFontStyle,null===(i=null===(o=t)||void 0===o?void 0:o.fonts)||void 0===i?void 0:i[c])}return a}({palette:he,effects:Ie,fonts:ce,spacing:ve,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ee(he,Ie,void 0,n,t),rtl:void 0},e)}var Me=Be({}),De=[],xe="theme";function we(){var e,t,n;if(!me.a.getSettings([xe]).theme){var r=Object(le.a)();(null===(n=null===(t=r)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.theme)&&(Me=Be(r.FabricConfig.theme)),me.a.applySettings(((e={})[xe]=Me,e))}}function Qe(e){return void 0===e&&(e=!1),!0===e&&(Me=Be({},e)),Me}function Se(e){-1===De.indexOf(e)&&De.push(e)}function Ne(e){var t=De.indexOf(e);-1!==t&&De.splice(t,1)}function ke(e,t){var n;return void 0===t&&(t=!1),Me=Be(e,t),Object(ye.b)(Object(fe.a)(Object(fe.a)(Object(fe.a)(Object(fe.a)({},Me.palette),Me.semanticColors),Me.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(Me))),me.a.applySettings(((n={})[xe]=Me,n)),De.forEach((function(e){try{e(Me)}catch(e){}})),Me}we();var Te={};for(var je in he)he.hasOwnProperty(je)&&(Le(Te,je,"",!1,"color"),Le(Te,je,"Hover",!0,"color"),Le(Te,je,"Background",!1,"background"),Le(Te,je,"BackgroundHover",!0,"background"),Le(Te,je,"Border",!1,"borderColor"),Le(Te,je,"BorderHover",!0,"borderColor"));function Le(e,t,n,o,i){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[i]=Qe().palette[t],e);return Object(r.b)(o?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}var Re="@media screen and (-ms-high-contrast: active), (forced-colors: active)",Oe="@media screen and (-ms-high-contrast: black-on-white), (forced-colors: black-on-white)",_e="@media screen and (-ms-high-contrast: white-on-black), (forced-colors: white-on-black)",Fe="@media screen and (forced-colors: active)",ze=320,Pe=480,Ue=640,Ge=1024,He=1366,Ye=1920,Ve=Pe-1,We=Ue-1,Ke=Ge-1,Ze=He-1,Je=Ye-1,qe=768;function Xe(e,t){return"@media only screen"+("number"==typeof e?" and (min-width: "+e+"px)":"")+("number"==typeof t?" and (max-width: "+t+"px)":"")}function $e(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}function et(){var e;return(e={})[Fe]={forcedColorAdjust:"none"},e}var tt,nt=n(48);function rt(e,t,n,r,o,i,a){return ot(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a})}function ot(e,t){var n,r;void 0===t&&(t={});var o=t.inset,i=void 0===o?0:o,a=t.width,s=void 0===a?1:a,l=t.position,c=void 0===l?"relative":l,u=t.highContrastStyle,A=t.borderColor,d=void 0===A?e.palette.white:A,g=t.outlineColor,p=void 0===g?e.palette.neutralSecondary:g,h=t.isFocusedOnly,f=void 0===h||h;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+nt.a+" &"+(f?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+d,outline:s+"px solid "+p,zIndex:tt.FocusStyle,selectors:(r={},r[Re]=u,r)},n)}}function it(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}function at(e,t,n,r){var o;return void 0===t&&(t=0),void 0===n&&(n=1),{selectors:(o={},o[":global("+nt.a+") &:focus"]={outline:n+" solid "+(r||e.palette.neutralSecondary),outlineOffset:-t+"px"},o)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(tt||(tt={}));var st=function(e,t,n,r){var o,i,a;void 0===n&&(n="border"),void 0===r&&(r=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:r,top:r,bottom:r,right:s?0:r},o[n]="2px solid "+e,o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(i={},i[Re]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},lt={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"};function ct(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function ut(e){return{opacity:1,borderWidth:e}}function At(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function dt(e,t){return Object(fe.a)(Object(fe.a)({},ct(e,t)),{opacity:0})}var gt={continuousPulseAnimationDouble:function(e,t,n,r,o){return Object(i.a)({"0%":ct(e,n),"1.42%":ut(o),"3.57%":{opacity:1},"7.14%":At(t,r),"8%":dt(e,n),"29.99%":dt(e,n),"30%":ct(e,n),"31.42%":ut(o),"33.57%":{opacity:1},"37.14%":At(t,r),"38%":dt(e,n),"79.42%":dt(e,n),79.43:ct(e,n),81.85:ut(o),83.42:{opacity:1},"87%":At(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return Object(i.a)({"0%":ct(e,n),"14.2%":ut(o),"35.7%":{opacity:1},"71.4%":At(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},pt=n(36),ht=n(47),ft=Object(ht.c)((function(e,t){var n=pt.b.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function mt(e,t,n){return ft(e,void 0!==n?n:t.disableGlobalClassNames)}var yt=n(108);function It(e,t,n){var r,o=e,i=n||me.a.getSettings(["theme"],void 0,e.customizations).theme;n&&(r={theme:n});var a=t&&i&&i.schemes&&i.schemes[t];return i&&a&&i!==a&&((r={theme:a}).theme.schemes=i.schemes),r&&(o={customizations:{settings:Object(yt.b)(e.customizations.settings,r),scopedSettings:e.customizations.scopedSettings}}),o}var Ct={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Et={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function bt(e,t,n,r,o){void 0===t&&(t="bodyBackground"),void 0===n&&(n="horizontal"),void 0===r&&(r=vt("width",n)),void 0===o&&(o=vt("height",n));var i=e.semanticColors[t]||e.palette[t],a=function(e){if("#"===e[0])return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)};if(0===e.indexOf("rgba(")){var t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2]}}return{r:255,g:255,b:255}}(i);return{content:'""',position:"absolute",right:0,bottom:0,width:r,height:o,pointerEvents:"none",backgroundImage:"linear-gradient("+("vertical"===n?"to bottom":"to right")+", "+("rgba("+a.r+", "+a.g+", "+a.b+", 0)")+" 0%, "+i+" 100%)"}}function vt(e,t){return"width"===e?"horizontal"===t?20:"100%":"vertical"===t?"50%":"100%"}function Bt(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var Mt=n(130),Dt=n(77),xt=Mt.a.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),wt=pt.b.getInstance();wt&&wt.onReset&&wt.onReset((function(){for(var e in xt)xt.hasOwnProperty(e)&&xt[e].subset&&(xt[e].subset.className=void 0)}));var Qt=function(e){return e.toLowerCase()};function St(e,t){var n=Object(fe.a)(Object(fe.a)({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?Object(fe.a)(Object(fe.a)({},xt.__options),t):xt.__options,r)if(r.hasOwnProperty(o)){var i=r[o],a=Qt(o);xt[a]?Ot(o):xt[a]={code:i,subset:n}}}function Nt(e){for(var t=xt.__options,n=function(e){var n=Qt(e);xt[n]?delete xt[n]:t.disableWarnings||Object(Dt.b)('The icon "'+e+'" tried to unregister but was not registered.'),xt.__remapped[n]&&delete xt.__remapped[n],Object.keys(xt.__remapped).forEach((function(e){xt.__remapped[e]===n&&delete xt.__remapped[e]}))},r=0,o=e;r<o.length;r++){n(o[r])}}function kt(e,t){xt.__remapped[Qt(e)]=Qt(t)}function Tt(e){var t=void 0,n=xt.__options;if(e=e?Qt(e):"",e=xt.__remapped[e]||e)if(t=xt[e]){var o=t.subset;o&&o.fontFace&&(o.isRegistered||(Object($.a)(o.fontFace),o.isRegistered=!0),o.className||(o.className=Object(r.b)(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Object(Dt.b)('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}function jt(e){xt.__options=Object(fe.a)(Object(fe.a)({},xt.__options),e)}var Lt=[],Rt=void 0;function Ot(e){var t=xt.__options;t.disableWarnings||(Lt.push(e),void 0===Rt&&(Rt=setTimeout((function(){Object(Dt.b)("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+Lt.slice(0,10).join(", ")+(Lt.length>10?" (+ "+(Lt.length-10)+" more)":"")),Rt=void 0,Lt=[]}),2e3)))}var _t={display:"inline-block"};function Ft(e){var t="",n=Tt(e);return n&&(t=Object(r.b)(n.subset.className,_t,{selectors:{"::before":{content:'"'+n.code+'"'}}})),t}var zt=n(78),Pt=n(188),Ut=n(132),Gt=n(34);Object(Gt.a)("@fluentui/style-utilities","8.0.3"),we()},function(e,t,n){"use strict";n(87);var r=n(3);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g})),n.d(t,"h",(function(){return r.h})),n.d(t,"i",(function(){return r.i})),n.d(t,"j",(function(){return r.j})),n.d(t,"k",(function(){return r.k})),n.d(t,"l",(function(){return r.l})),n.d(t,"m",(function(){return r.m})),n.d(t,"n",(function(){return r.n})),n.d(t,"o",(function(){return r.o})),n.d(t,"p",(function(){return r.p})),n.d(t,"q",(function(){return r.q})),n.d(t,"r",(function(){return r.r})),n.d(t,"s",(function(){return r.s})),n.d(t,"t",(function(){return r.t})),n.d(t,"u",(function(){return r.u})),n.d(t,"v",(function(){return r.v})),n.d(t,"w",(function(){return r.w})),n.d(t,"x",(function(){return r.x})),n.d(t,"y",(function(){return r.y})),n.d(t,"z",(function(){return r.z})),n.d(t,"A",(function(){return r.A})),n.d(t,"B",(function(){return r.B})),n.d(t,"C",(function(){return r.C})),n.d(t,"D",(function(){return r.D})),n.d(t,"E",(function(){return r.E})),n.d(t,"F",(function(){return r.F})),n.d(t,"G",(function(){return r.G})),n.d(t,"H",(function(){return r.H})),n.d(t,"I",(function(){return r.I})),n.d(t,"J",(function(){return r.J})),n.d(t,"K",(function(){return r.K})),n.d(t,"L",(function(){return r.L})),n.d(t,"M",(function(){return r.M})),n.d(t,"N",(function(){return r.N})),n.d(t,"O",(function(){return r.O})),n.d(t,"P",(function(){return r.P})),n.d(t,"Q",(function(){return r.Q})),n.d(t,"R",(function(){return r.R})),n.d(t,"S",(function(){return r.S})),n.d(t,"T",(function(){return r.T})),n.d(t,"U",(function(){return r.U})),n.d(t,"V",(function(){return r.V})),n.d(t,"W",(function(){return r.W})),n.d(t,"X",(function(){return r.X})),n.d(t,"Y",(function(){return r.Y})),n.d(t,"Z",(function(){return r.Z})),n.d(t,"ab",(function(){return r.ab})),n.d(t,"bb",(function(){return r.bb})),n.d(t,"cb",(function(){return r.cb})),n.d(t,"db",(function(){return r.db})),n.d(t,"eb",(function(){return r.eb})),n.d(t,"fb",(function(){return r.fb})),n.d(t,"gb",(function(){return r.gb})),n.d(t,"hb",(function(){return r.hb})),n.d(t,"ib",(function(){return r.ib})),n.d(t,"jb",(function(){return r.jb})),n.d(t,"kb",(function(){return r.kb})),n.d(t,"lb",(function(){return r.lb})),n.d(t,"mb",(function(){return r.mb})),n.d(t,"nb",(function(){return r.nb}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=t.ColorUtils=t.Utils=t.Dataset=t.Graphics=t.Solver=t.Prototypes=t.Specification=t.Expression=void 0,o(n(12),t);var i=n(159);Object.defineProperty(t,"getConfig",{enumerable:!0,get:function(){return i.getConfig}});var a=n(38);t.Dataset=a;var s=n(49);t.Expression=s;var l=n(22);t.Graphics=l;var c=n(39);t.Prototypes=c;var u=n(26);t.Solver=u;var A=n(6);t.Specification=A;var d=n(157);t.Utils=d;var g=n(195);t.ColorUtils=g,o(n(386),t);var p=n(159),h=n(200);t.initialize=function(e){return p.setConfig(e),h.initialize()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmphasisMethod=t.MappingType=t.AttributeType=t.DataKind=t.DataType=t.Template=t.Types=void 0;var r=n(313);t.Template=r;var o=n(24);t.Types=o,function(e){e.String="string",e.Number="number",e.Boolean="boolean",e.Date="date",e.Image="image"}(t.DataType||(t.DataType={})),function(e){e.Ordinal="ordinal",e.Categorical="categorical",e.Numerical="numerical",e.Temporal="temporal"}(t.DataKind||(t.DataKind={})),function(e){e.Number="number",e.Enum="enum",e.Text="text",e.Boolean="boolean",e.FontFamily="font-family",e.Color="color",e.Image="image",e.Point="point",e.Object="object"}(t.AttributeType||(t.AttributeType={})),function(e){e._element="_element",e.parent="parent",e.scale="scale",e.expressionScale="expressionScale",e.text="text",e.value="value"}(t.MappingType||(t.MappingType={})),function(e){e.Saturation="saturation",e.Outline="outline"}(t.EmphasisMethod||(t.EmphasisMethod={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strings=void 0;t.strings={app:{loading:"Loading...",name:"Microsoft Charticulator",nestedChartTitle:"Nested Chart | Charticulator",working:"Working..."},dialogs:{saveChanges:{saveChangesTitle:"Save the changes",saveChanges:function(e){return"Do you want to save the changes you made to "+e+"?"}}},about:{version:function(e,t){return"Version: "+e+", URL: "+t},license:"Show License"},button:{cancel:"Cancel",no:"No",yes:"Yes"},canvas:{markContainer:"To edit this glyph, please create a plot segment with it.",newGlyph:"New glyph",zoomAuto:"Auto zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",sublayoutType:"Sublayout type",elementOrders:"Order of elements",gridDirection:"Grid row direction",alignItemsOnX:"Align items on X axis",alignItemsOnY:"Align items on Y axis"},dataset:{dimensions:function(e,t){return e+" rows, "+t+" columns"},months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],replaceWithCSV:"Replace data with CSV file",showDataValues:"Show data values",showDerivedFields:"Show derived fields",tableTitleColumns:"Fields",tableTitleLinks:"Links",tableTitleImages:"Images",weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},defaultDataset:{city:"City",month:"Month",temperature:"Temperature",value:"Value"},dialog:{resetConfirm:"Are you sure you want to delete the chart?",deleteChart:"Delete chart"},scaleEditor:{add:"Add",removeLast:"Remove the last",addLegend:"Add Legend",removeLegend:"Remove Legend",removeSelected:"Remove",reverse:"Reverse"},legendCreator:{legendType:"Legend type:",connectBy:"Connect by:",createLegend:"Create Legend"},mappingEditor:{bindData:"Bind data",keyColumnExpression:"Key column expression",bindDataValue:"Bind data value",remove:"Remove",chooseColor:"Choose color"},error:{imageLoad:function(e){return"failed to retrieve map image at url "+e},notImplemented:"Not implemented yet",storeNotFound:function(e){return"store not found in component "+e}},fileExport:{asHTML:"Export as HTML",asImage:"Export as Image",inferAxisMin:function(e,t){return"Auto min values for "+e+"/"+t},inferAxisMax:function(e,t){return"Auto max values for "+e+"/"+t},inferScaleMin:function(e){return"Auto min domain for "+e},inferScaleMax:function(e){return"Auto max domain for "+e},imageDPI:"DPI (for PNG/JPEG)",labelAxesAndScales:"Axes and Scales",labelExposedObjects:"Exposed Objects",labelProperties:function(e){return e+" Properties"},labelSlots:"Data Mapping Slots",slotColumnExample:function(e){return e+" examples"},slotColumnName:function(e){return e+" name"},typeHTML:"HTML",typeJPEG:"JPEG",typePNG:"PNG",typeSVG:"SVG"},fileImport:{doneButtonText:"Done",doneButtonTitle:"Finish importing data",fileUpload:"Open or Drop File",loadSample:"Load Sample Dataset...",links:"Links",messageNoID:function(e){return"No "+e+" colum are specified in main table"},messageNoSourceOrTargetID:function(e,t){return"No "+e+" or "+t+" colums are specified in links table"},removeButtonText:"Remove",removeButtonTitle:"Remove this table"},fileOpen:{copy:"Copy this chart",deleteConfirmation:function(e){return'Do you want to delete the chart "'+e+'"?'},delete:"Delete this chart",download:"Download this chart",open:"Open Chart",noChart:"(no chart to show)"},fileSave:{saveButton:"Save to My Charts",chartName:"Chart Name"},filter:{editFilter:"Edit Filter",filterBy:"Filter by ",filterType:"Filter Type",none:"None",categories:"Categories",expression:"Expression",selectAll:"Select All",clear:"Clear",values:"Values",column:"Column"},handles:{drawSpiral:"Draw Spiral",startAngle:"Start Angle",windings:"Windings"},help:{contact:"Contact Us",gallery:"Example Gallery",gettingStarted:"Getting Started",home:"Charticulator Home",issues:"Report an Issue",version:function(e){return"Version: "+e}},mainTabs:{about:"About",export:"Export",new:"New",open:"Open",options:"Options",save:"Save As"},mainView:{attributesPaneltitle:"Attributes",datasetPanelTitle:"Dataset",errorsPanelTitle:"Errors",glyphPaneltitle:"Glyph",layersPanelTitle:"Layers",scalesPanelTitle:"Scales"},menuBar:{defaultTemplateName:"Charticulator Template",export:"Export",exportTemplate:"Export template",copyTemplate:"Copy template",help:"Help",home:"Open file menu",importTemplate:"Import template",new:"New (Ctrl-N)",open:"Open (Ctrl-O)",redo:"Redo (Ctrl-Y)",reset:"Delete",save:"Save (Ctrl-S)",saveButton:"Save",dontSaveButton:"Don't save",cancel:"Cancel",savedButton:"Saved",saveNested:"Save Nested Chart",editNestedChart:"Edit Nested Chart...",closeNested:"Close",undo:"Undo (Ctrl-Z)"},options:{comma:"comma",delimiter:"CSV Delimiter",fileFormat:"Import file format",numberFormat:"Number Format",timeZone:"Number Format",currencyFormat:"Currency Format",groups:"Groups",numberFormatComma:"Decimal: comma / Separator: dot",numberFormatDot:"Decimal: dot / Separator: comma",semicolon:"semicolon",utc:"UTC",local:"Local"},coordinateSystem:{x:"X",y:"Y"},templateImport:{columnNameTemplate:"Column name from the template",columnNameChart:"Column name from the chart design",dataType:"Required data type",examples:"Example data values",mapped:"Column name in the dataset",save:"Save mapping",tableName:"Table name",title:"Map your data",usbtitleImportTemplate:"Map the columns from your data source to the corresponding template fields",usbtitleImportData:"Map the columns from new data to the corresponding fields in the current chart design",unmapped:"Unmapped"},toolbar:{symbol:"Symbol",marks:"Marks",curve:"Custom Curve",dataAxis:"Data Axis",ellipse:"Ellipse",icon:"Icon",image:"Image",guides:"Guides",guidePolar:"Guide polar",guideX:"Guide X",guideY:"Guide Y",legend:"Legend",line:"Line",lineH:"Horizontal Line",lineV:"Vertical Line",link:"Link",links:"Links",nestedChart:"Nested Chart",plot:"Plot",plotSegments:"Plot Segments",polar:"Polar",rectangle:"Rectangle",region2D:"2D Region",scaffolds:"Scaffolds",text:"Text",textbox:"Textbox",triangle:"Triangle"},typeDisplayNames:{boolean:"Boolean",date:"Date",number:"Number",string:"String"},attributesPanel:{conditionedBy:"Conditioned by..."},core:{default:"(default)",auto:"(auto)",none:"(none)"},cartesianTerminology:{xAxis:"X Axis",yAxis:"Y Axis",xMin:"Left",xMiddle:"Middle",xMax:"Right",yMiddle:"Middle",yMin:"Bottom",yMax:"Top",dodgeX:"Stack X",dodgeY:"Stack Y",grid:"Grid",gridDirectionX:"Horizontal",gridDirectionY:"Vertical",packing:"Packing",jitter:"Jitter",overlap:"Overlap"},curveTerminology:{xAxis:"Tangent Axis",yAxis:"Normal Axis",xMin:"Left",xMiddle:"Middle",xMax:"Right",yMiddle:"Middle",yMin:"Bottom",yMax:"Top",dodgeX:"Stack Tangential",dodgeY:"Stack Normal",grid:"Grid",gridDirectionX:"Tangent",gridDirectionY:"Normal",packing:"Packing",jitter:"Jitter",overlap:"Overlap"},polarTerminology:{xAxis:"Angular Axis",yAxis:"Radial Axis",xMin:"Left",xMiddle:"Middle",xMax:"Right",yMiddle:"Middle",yMin:"Bottom",yMax:"Top",dodgeX:"Stack Angular",dodgeY:"Stack Radial",grid:"Grid",gridDirectionX:"Angular",gridDirectionY:"Radial",packing:"Packing",jitter:"Jitter",overlap:"Overlap"},alignment:{align:"Align",alignment:"Alignment",left:"Left",right:"Right",middle:"Middle",center:"Center",top:"Top",bottom:"Bottom",padding:"Padding"},margins:{margins:"Margins",margin:"Margin:",left:"Left",right:"Right",top:"Top",bottom:"Bottom"},scale:{linear:"Linear",logarithmic:"Logarithmic"},objects:{default:"Default",opposite:"Opposite",position:"Position",general:"General",contextMenu:"Context menu",interactivity:"Interactivity",colors:"Colors",color:"Color",outline:"Outline",dimensions:"Dimensions",scale:"Scale",width:"Width",height:"Height",background:"Background",opacity:"Opacity",font:"Font",fontSize:"Font Size",size:"Size",axis:"Axis",style:"Style",rotation:"Rotation",anchorAndRotation:"Anchor & Rotation",fill:"Fill",strokeWidth:"Line Width",stroke:"Stroke",anchorX:"Anchor X",anchorY:"Anchor Y",alignX:"Align X",alignY:"Align Y",layout:"Layout",appearance:"Appearance",visibilityAndPosition:"Visibility & Position",onTop:"On Top",invalidFormat:"Invalid format",roundX:"Round X",roundY:"Round Y",dropData:"drop here to assign data",dropTickData:"Tick data: drop here to assign tick data",toolTips:"Tooltips",selection:"Selection",axes:{data:"Data",numericalSuffix:": Numerical",categoricalSuffix:": Categorical",stackingSuffix:": Stacking",tickFormat:"Tick Format",tickData:"Tick Data",ticksize:"Tick Size",tickDataFormatType:"Tick Data Type",tickDataFormatTypeNone:"None",tickDataFormatTypeDate:"Date",tickDataFormatTypeNumber:"Number",from:"from",to:"to",gap:"Gap",direction:"Direction",count:"Count",dataExpressions:"Data Expressions",lineColor:"Line Color",tickColor:"Tick Label Color",tickTextBackgroudColor:"Tick background color",showTickLine:"Show Tick Line",showBaseline:"Show Baseline",verticalText:"Vertical text",offSet:"Offset",orderBy:"Order by",numberOfTicks:"Number of Ticks",autoNumberOfTicks:"Auto Number of Ticks"},plotSegment:{subLayout:"Sub-layout",type:"Type",gridline:"Gridline",polarCoordinates:"Polar Coordinates",heightToArea:"Height to Area",equalizeArea:"Equalize area",autoAlignment:"Automatic Alignment",origin:"Origin",inner:"Inner:",outer:"Outer:",radius:"Radius",angle:"Angle",curveCoordinates:"Curve Coordinates",normal:"Normal",groupBy:"Group by...",groupByCategory:"Group by ",distribution:"Distribution",gravity:"Gravity",packingInContainer:"Packing into container",packingX:"Packing X",packingY:"Packing Y",order:"Order",reverseGlyphs:"Reverse glyphs order",flipGrid:"Flip grid",orientation:"Orientation",direction:"Direction",directionDownRight:"Down Right",directionDownLeft:"Down Left",directionUpLeft:"Up Left",directionUpRight:"Up Right"},visibleOn:{visibility:"Visibility",label:"Visible On",all:"All",first:"First",last:"Last",visible:"Visible"},guides:{guideCoordinator:"Guide Coordinator",count:"Count",guide:"Guide",baseline:"Baseline",offset:"Offset",angular:"Angular",radial:"Radial",angle:"Angle"},legend:{orientation:"Orientation",vertical:"Vertical",horizontal:"Horizontal",legend:"Legend",editColors:"Edit scale colors",markerShape:"Shape",labels:"Labels",layout:"Layout",categoricalLegend:"Categorical legend",numericalColorLegend:"Numerical color legend",ordering:"Ordering"},links:{lineType:"Line Type",type:"Type",line:"Line",bezier:"Bezier",arc:"Arc",solid:"Solid",dashed:"Dashed",dotted:"Dotted",linkMarkType:"Line mark type",curveness:"Curveness",closeLink:"Close Link"},arrows:{beginArrowType:"Begin Arrow Type",endArrowType:"End Arrow Type",noArrow:"No Arrow",arrow:"Arrow",diamondArrow:"Diamond Arrow",ovalArrow:"Oval Arrow"},line:{lineStyle:"Line Style",xSpan:"X Span",ySpan:"Y Span"},anchor:{label:"(drag the anchor in the glyph editor)"},dataAxis:{dataExpression:"Data Expressions",autoUpdateValues:"Auto update values",autoMin:"Auto min value",autoMax:"Auto max value",end:"End",start:"Start",exportProperties:" export properties",domain:"Domain",range:"Range",gradient:"Gradient",scrolling:"Scrolling",allowScrolling:"Allow scrolling",windowSize:"Window size",barOffset:"Scrollbar offset"},icon:{label:"Icon",image:"Image",anchorAndRotation:"Anchor & Rotation",anchorX:"Anchor X",anchorY:"Anchor Y"},image:{imageMode:"Resize Mode",letterbox:"Letterbox",stretch:"Stretch",dropImage:"Drop Image Here",defaultPlaceholder:"Drop/Paste Image"},scales:{mode:"Mode",greater:"Greater",less:"Less",interval:"Interval",inclusive:"Inclusive",imageMapping:"Image Mapping",stringMapping:"String Mapping",colorMapping:"Color Mapping",numberMapping:"Number Mapping",booleanMapping:"Boolean Mapping",minimumValue:"Minimum value",maximumValue:"Maximum value",startDate:"Start date",endDate:"End date",exportProperties:"Scale export properties",autoMin:"Auto min value",autoMax:"Auto max value",selectAll:"Select All",clear:"Clear",value:"Value",date:"Date"},text:{margin:"Margin",wrapText:"Wrap text",overflow:"Overflow",textDisplaying:"Text displaying"},rect:{shape:"Shape",flipping:"Flipping",shapes:{rectangle:"Rectangle",triangle:"Triangle",ellipse:"Ellipse",comet:"Rounded base"}},derivedColumns:{year:"Year",month:"Month",monthNumber:"Month number",day:"Day",weekOfYear:"Week of year",dayOfYear:"Day of year",weekday:"Weekday",hour:"Hour",minute:"Minute",second:"Second",menuSuffix:" Derived columns "},nestedChart:{sizeAndShape:"Size & Shape"}},reOrder:{reverse:"Reverse",sort:"Sort",reset:"Reset"},panels:{collapseAllCategories:"Collapse all categories",expandAllCategories:"Expand all categories"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return i.a})),n.d(t,"nc",(function(){return i.b})),n.d(t,"i",(function(){return a.a})),n.d(t,"j",(function(){return s.a})),n.d(t,"k",(function(){return c})),n.d(t,"m",(function(){return u.a})),n.d(t,"o",(function(){return A.a})),n.d(t,"p",(function(){return d.a})),n.d(t,"v",(function(){return g.a})),n.d(t,"ic",(function(){return p.a})),n.d(t,"Z",(function(){return h.e})),n.d(t,"X",(function(){return h.d})),n.d(t,"K",(function(){return h.c})),n.d(t,"Tc",(function(){return h.i})),n.d(t,"vc",(function(){return h.g})),n.d(t,"wc",(function(){return h.h})),n.d(t,"r",(function(){return h.a})),n.d(t,"cb",(function(){return h.f})),n.d(t,"w",(function(){return h.b})),n.d(t,"x",(function(){return I})),n.d(t,"y",(function(){return C})),n.d(t,"F",(function(){return E.a})),n.d(t,"I",(function(){return b.a})),n.d(t,"Sb",(function(){return v.a})),n.d(t,"N",(function(){return B.a})),n.d(t,"d",(function(){return M.a})),n.d(t,"e",(function(){return D.a})),n.d(t,"f",(function(){return x.a})),n.d(t,"O",(function(){return w.a})),n.d(t,"Wc",(function(){return Q.a})),n.d(t,"jc",(function(){return S.a})),n.d(t,"lc",(function(){return N.b})),n.d(t,"kc",(function(){return N.a})),n.d(t,"S",(function(){return k.b})),n.d(t,"T",(function(){return k.c})),n.d(t,"Y",(function(){return k.d})),n.d(t,"hb",(function(){return k.e})),n.d(t,"jb",(function(){return k.f})),n.d(t,"wb",(function(){return k.g})),n.d(t,"Bb",(function(){return k.h})),n.d(t,"Eb",(function(){return k.i})),n.d(t,"Fb",(function(){return k.j})),n.d(t,"bc",(function(){return k.k})),n.d(t,"qc",(function(){return k.l})),n.d(t,"sc",(function(){return k.m})),n.d(t,"uc",(function(){return k.n})),n.d(t,"h",(function(){return k.a})),n.d(t,"Hc",(function(){return k.o})),n.d(t,"Kc",(function(){return k.p})),n.d(t,"V",(function(){return T.a})),n.d(t,"lb",(function(){return j.e})),n.d(t,"rb",(function(){return j.h})),n.d(t,"mb",(function(){return j.f})),n.d(t,"sb",(function(){return j.i})),n.d(t,"eb",(function(){return j.c})),n.d(t,"xb",(function(){return j.k})),n.d(t,"vb",(function(){return j.j})),n.d(t,"Xb",(function(){return j.o})),n.d(t,"Wb",(function(){return j.n})),n.d(t,"Vb",(function(){return j.m})),n.d(t,"Ub",(function(){return j.l})),n.d(t,"R",(function(){return j.a})),n.d(t,"Nc",(function(){return j.p})),n.d(t,"db",(function(){return j.b})),n.d(t,"nb",(function(){return j.g})),n.d(t,"kb",(function(){return j.d})),n.d(t,"ob",(function(){return L.a})),n.d(t,"yc",(function(){return L.b})),n.d(t,"tb",(function(){return R.a})),n.d(t,"Jb",(function(){return O.a})),n.d(t,"Vc",(function(){return O.b})),n.d(t,"Kb",(function(){return _.a})),n.d(t,"Pb",(function(){return F.a})),n.d(t,"Qb",(function(){return G})),n.d(t,"Xc",(function(){return W.b})),n.d(t,"l",(function(){return W.a})),n.d(t,"pb",(function(){return K.a})),n.d(t,"Tb",(function(){return P.b})),n.d(t,"q",(function(){return P.a})),n.d(t,"qb",(function(){return Z.a})),n.d(t,"Fc",(function(){return Z.b})),n.d(t,"ib",(function(){return J.c})),n.d(t,"bb",(function(){return J.b})),n.d(t,"E",(function(){return J.a})),n.d(t,"tc",(function(){return J.d})),n.d(t,"Gc",(function(){return q.e})),n.d(t,"zc",(function(){return q.d})),n.d(t,"fc",(function(){return q.b})),n.d(t,"gc",(function(){return q.c})),n.d(t,"L",(function(){return q.a})),n.d(t,"hc",(function(){return X.a})),n.d(t,"Zb",(function(){return $.a})),n.d(t,"mc",(function(){return ee.a})),n.d(t,"z",(function(){return te.a})),n.d(t,"W",(function(){return te.b})),n.d(t,"ec",(function(){return te.c})),n.d(t,"Mc",(function(){return te.e})),n.d(t,"Yc",(function(){return te.f})),n.d(t,"pc",(function(){return te.d})),n.d(t,"ac",(function(){return ne.a})),n.d(t,"Gb",(function(){return re.a})),n.d(t,"Ib",(function(){return re.c})),n.d(t,"Hb",(function(){return re.b})),n.d(t,"B",(function(){return oe.c})),n.d(t,"C",(function(){return oe.d})),n.d(t,"Lb",(function(){return oe.k})),n.d(t,"cc",(function(){return oe.p})),n.d(t,"A",(function(){return oe.b})),n.d(t,"Zc",(function(){return oe.z})),n.d(t,"oc",(function(){return oe.r})),n.d(t,"dc",(function(){return oe.q})),n.d(t,"u",(function(){return oe.a})),n.d(t,"D",(function(){return oe.e})),n.d(t,"Rb",(function(){return oe.o})),n.d(t,"Rc",(function(){return oe.w})),n.d(t,"Cc",(function(){return oe.t})),n.d(t,"rc",(function(){return oe.s})),n.d(t,"Pc",(function(){return oe.u})),n.d(t,"Uc",(function(){return oe.y})),n.d(t,"Sc",(function(){return oe.x})),n.d(t,"Qc",(function(){return oe.v})),n.d(t,"G",(function(){return oe.f})),n.d(t,"H",(function(){return oe.g})),n.d(t,"fb",(function(){return oe.i})),n.d(t,"Mb",(function(){return oe.l})),n.d(t,"Ob",(function(){return oe.n})),n.d(t,"Nb",(function(){return oe.m})),n.d(t,"Q",(function(){return oe.h})),n.d(t,"ub",(function(){return oe.j})),n.d(t,"J",(function(){return ie.a})),n.d(t,"Cb",(function(){return se})),n.d(t,"Dc",(function(){return le})),n.d(t,"zb",(function(){return ce.a})),n.d(t,"Ic",(function(){return ce.c})),n.d(t,"Ab",(function(){return ce.b})),n.d(t,"Ac",(function(){return ue.a})),n.d(t,"Bc",(function(){return Ae})),n.d(t,"g",(function(){return de.a})),n.d(t,"t",(function(){return de.c})),n.d(t,"s",(function(){return de.b})),n.d(t,"P",(function(){return de.d})),n.d(t,"U",(function(){return de.e})),n.d(t,"Db",(function(){return de.g})),n.d(t,"ab",(function(){return de.f})),n.d(t,"gb",(function(){return ge.a})),n.d(t,"Oc",(function(){return pe.a})),n.d(t,"ad",(function(){return he.b})),n.d(t,"Lc",(function(){return he.a})),n.d(t,"bd",(function(){return fe.a})),n.d(t,"xc",(function(){return me.a})),n.d(t,"cd",(function(){return me.b})),n.d(t,"dd",(function(){return ye.a})),n.d(t,"ed",(function(){return Ie.a})),n.d(t,"Yb",(function(){return Ce.a})),n.d(t,"yb",(function(){return Ee.a})),n.d(t,"Ec",(function(){return U.b})),n.d(t,"n",(function(){return U.a})),n.d(t,"Jc",(function(){return be.b})),n.d(t,"M",(function(){return ve.a}));var r=n(138),o=n(257),i=n(248),a=n(235),s=n(72),l=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()},c=function(){function e(){}return e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=l();n();var o=l(),i=e.summary[t]||{totalDuration:0,count:0,all:[]},a=o-r;i.totalDuration+=a,i.count++,i.all.push({duration:a,timeStamp:o}),e.summary[t]=i},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout((function(){return e.reset()}),18e4)},e.summary={},e}(),u=n(130),A=n(33),d=n(243),g=n(137),p=n(247),h=n(139),f=n(1),m=n(0),y="undefined"!=typeof WeakMap?new WeakMap:void 0;function I(e){var t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={Component:y?y.get(e.load):void 0},n}return Object(f.c)(n,t),n.prototype.render=function(){var e=this.props,t=e.forwardedRef,n=e.asyncPlaceholder,r=Object(f.d)(e,["forwardedRef","asyncPlaceholder"]),o=this.state.Component;return o?m.createElement(o,Object(f.a)(Object(f.a)({},r),{ref:t})):n?m.createElement(n,null):null},n.prototype.componentDidMount=function(){var t=this;this.state.Component||e.load().then((function(n){n&&(y&&y.set(e.load,n),t.setState({Component:n},e.onLoad))})).catch(e.onError)},n}(m.Component);return m.forwardRef((function(e,n){return m.createElement(t,Object(f.a)({},e,{forwardedRef:n}))}))}function C(e){throw new Error("Unexpected object: "+e)}var E=n(149),b=n(255),v=n(172),B=n(151),M=n(43),D=n(245),x=n(61),w=n(249),Q=n(129),S=n(144),N=n(108),k=n(185),T=n(71),j=n(242),L=n(142),R=n(259),O=n(238),_=n(140),F=n(234),z=n(15),P=n(94),U=n(48);function G(e){var t,n=e||Object(z.a)();n&&!0!==(null===(t=n.FabricConfig)||void 0===t?void 0:t.disableFocusRects)&&(n.__hasInitializeFocusRects__||(n.__hasInitializeFocusRects__=!0,n.addEventListener("mousedown",H,!0),n.addEventListener("pointerdown",Y,!0),n.addEventListener("keydown",V,!0)))}function H(e){Object(U.b)(!1,e.target)}function Y(e){"mouse"!==e.pointerType&&Object(U.b)(!1,e.target)}function V(e){Object(P.b)(e.which)&&Object(U.b)(!0,e.target)}var W=n(244),K=n(232),Z=n(288),J=n(258),q=n(47),X=n(230),$=n(241),ee=n(252),te=n(60),ne=n(240),re=n(250),oe=n(16),ie=n(253),ae="";function se(e){return ae+e}function le(e){ae=e}var ce=n(131),ue=n(256),Ae=function(e){var t;return function(n,r){t||(t=new Set,Object(T.a)(e,{componentWillUnmount:function(){t.forEach((function(e){return clearTimeout(e)}))}}));var o=setTimeout((function(){t.delete(o),n()}),r);t.add(o)}},de=n(143),ge=n(251),pe=n(187),he=n(77),fe=n(145),me=n(254),ye=n(141),Ie=n(146),Ce=n(233),Ee=n(231),be=n(92),ve=n(236),Be=n(34);Object(Be.a)("@fluentui/utilities","8.0.3")},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.replaceUndefinedByNull=t.expect_deep_approximately_equals=t.getAligntment=t.isInIFrame=t.copyToClipboard=t.convertColumns=t.getConvertableTypes=t.getPreferredDataKind=t.getConvertableDataKind=t.stringToDataURL=t.b64EncodeUnicode=t.showOpenFileDialog=t.getFileNameWithoutExtension=t.getExtensionFromFileName=t.readFileAsDataUrl=t.readFileAsString=t.renderDataURLToPNG=t.parseHashString=t.toSVGZoom=t.toSVGNumber=t.classNames=void 0;var o=n(5),i=n(6),a=n(115),s=n(362);function l(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))}t.classNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return null!=e&&("string"==typeof e||1==e[1])})).map((function(e){return"string"==typeof e?e:e[0]})).join(" ")},t.toSVGNumber=function(e){return o.prettyNumber(e,8)},t.toSVGZoom=function(e){return"translate("+o.prettyNumber(e.centerX)+","+o.prettyNumber(e.centerY)+") scale("+o.prettyNumber(e.scale)+")"},t.parseHashString=function(e){return"#"==e[0]&&(e=e.substr(1)),"!"==e[0]&&(e=e.substr(1)),e.split("&").reduce((function(e,t){var n=t.split("=");return e[decodeURIComponent(n[0])]=2==n.length?decodeURIComponent(n[1]):"",e}),{})},t.renderDataURLToPNG=function(e,t){return new Promise((function(n,r){var o=new Image;o.src=e,o.onload=function(){var e=o.width,r=o.height,i=document.createElement("canvas"),a=i.getContext("2d");switch(t.mode){case"scale":i.width=e*t.scale,i.height=r*t.scale,t.background&&(a.fillStyle=t.background,a.fillRect(0,0,i.width,i.height)),a.scale(t.scale,t.scale),a.drawImage(o,0,0);break;case"thumbnail":i.width=t.thumbnail[0],i.height=t.thumbnail[1],t.background&&(a.fillStyle=t.background,a.fillRect(0,0,i.width,i.height));var s=Math.max(i.width/e,i.height/r);a.scale(s,s),a.drawImage(o,0,0)}n(i)},o.onerror=function(){r(new Error("failed to load image"))}}))},t.readFileAsString=function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(new Error("unable to read file "+e.name))},r.readAsText(e,"utf-8")}))},t.readFileAsDataUrl=function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(new Error("unable to read file "+e.name))},r.readAsDataURL(e)}))},t.getExtensionFromFileName=function(e){var t=e.match(/\.([^.]+)$/);return t?t[1].toLowerCase():null},t.getFileNameWithoutExtension=function(e){return e.replace(/\.([^.]+)$/,"")},t.showOpenFileDialog=function(e){return new Promise((function(t,n){var r=document.createElement("input");r.type="file",null!=e&&(r.accept=e.map((function(e){return"."+e})).join(",")),r.onchange=function(){1==r.files.length?t(r.files[0]):n()},r.click()}))},t.b64EncodeUnicode=l,t.stringToDataURL=function(e,t){return"data:"+e+";base64,"+l(t)},t.getConvertableDataKind=function(e){var t;switch(e){case i.DataType.Boolean:t=[i.DataKind.Categorical,i.DataKind.Ordinal];break;case i.DataType.Date:t=[i.DataKind.Categorical,i.DataKind.Ordinal,i.DataKind.Temporal];break;case i.DataType.String:t=[i.DataKind.Categorical,i.DataKind.Ordinal];break;case i.DataType.Image:t=[i.DataKind.Categorical];break;case i.DataType.Number:t=[i.DataKind.Categorical,i.DataKind.Numerical]}return t},t.getPreferredDataKind=function(e){var t;switch(e){case i.DataType.Boolean:t=i.DataKind.Categorical;break;case i.DataType.Date:t=i.DataKind.Temporal;break;case i.DataType.String:case i.DataType.Image:t=i.DataKind.Categorical;break;case i.DataType.Number:t=i.DataKind.Numerical}return t},t.getConvertableTypes=function(e,t){var n;switch(e){case i.DataType.Boolean:n=[i.DataType.Number,i.DataType.String,i.DataType.Boolean];break;case i.DataType.Date:n=[i.DataType.Number,i.DataType.String,i.DataType.Date];break;case i.DataType.String:n=[i.DataType.Number,i.DataType.String,i.DataType.Boolean,i.DataType.Date,i.DataType.Image];break;case i.DataType.Number:n=[i.DataType.Number,i.DataType.String,i.DataType.Boolean,i.DataType.Date];break;case i.DataType.Image:n=[i.DataType.Image,i.DataType.String]}return n.filter((function(n){return n==e||(t?function(e,t){var n,o,a,s,l,c,u=!0;if(e===i.DataType.String)return u;switch(e){case i.DataType.Boolean:try{for(var A=r(t),d=A.next();!d.done;d=A.next()){if((m=d.value)&&"0"!=m.toString().toLowerCase()&&"true"!=m.toString().toLowerCase()&&"1"!=m.toString().toLowerCase()&&"false"!=m.toString().toLowerCase()&&"yes"!=m.toString().toLowerCase()&&"no"!=m.toString().toLowerCase()){u=!1;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=A.return)&&o.call(A)}finally{if(n)throw n.error}}return u;case i.DataType.Date:u=!0;try{for(var g=r(t),p=g.next();!p.done;p=g.next()){if((m=p.value)&&Number.isNaN(Date.parse(m.toString()))&&Number.isNaN(new Date(+m.toString()).getDate())){u=!1;break}}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}return u;case i.DataType.Number:u=!0;try{for(var h=r(t),f=h.next();!f.done;f=h.next()){var m;if((m=f.value)&&Number.isNaN(Number.parseFloat(m.toString()))){u=!1;break}}}catch(e){l={error:e}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(l)throw l.error}}return u;default:return!1}}(n,t.map((function(e){return e&&e.toString()}))):void 0)}))},t.convertColumns=function(e,t,n,r){var o=n.columns.find((function(e){return e.name===t.name})),i=n.rows.map((function(e){return e[t.metadata.rawColumnName]||e[t.name]})),s=t.type;t.type=r,i=n.rows.map((function(e){var n=e[t.metadata.rawColumnName]||e[t.name];return n&&n.toString()}));try{var l=a.convertColumn(r,i,e.localeNumberFormat,(new Date).getTimezoneOffset());if(0===l.filter((function(e){return e})).length)throw Error("Converting column type from "+o.type+" to "+r+" failed");return function(e,t,n){e.rows.forEach((function(e,r){e[t]=n[r]}))}(e,t.name,l),null}catch(e){var c="Converting column type from "+o.type+" to "+r+" failed";return console.warn(c),t.type=s,c}},t.copyToClipboard=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},t.isInIFrame=function(){try{return window.self!==window.top}catch(e){return!0}},t.getAligntment=function(e){var t,n=!1;return window.innerWidth-e.getBoundingClientRect().x<500?(t="end-inner",n=!0):(t="end-outer",n=!1),{alignLeft:n,alignX:t}},t.expect_deep_approximately_equals=function e(t,n,o,i){var a,l;if(void 0===i&&(i=!1),!i||null!=t||null!=n)if(null==t||null==n)s.expect(t).equals(n);else if("object"==typeof t&&"object"==typeof n)if(t instanceof Array&&n instanceof Array){s.expect(t.length).to.equals(n.length);for(var c=0;c<t.length;c++)e(t[c],n[c],o,i)}else{if(t instanceof Array||n instanceof Array)throw new Error("type mismatch");var u=Object.keys(t).sort(),A=Object.keys(n).sort();s.expect(u).to.deep.equals(A);try{for(var d=r(u),g=d.next();!g.done;g=d.next()){var p=g.value;e(t[p],n[p],o,i)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}}else"number"==typeof t&&"number"==typeof n?s.expect(t).to.approximately(n,o):s.expect(t).equals(n)},t.replaceUndefinedByNull=function(e){return void 0===e?null:e}},,function(e,t,n){"use strict";n.r(t),n.d(t,"ActivityItem",(function(){return oe})),n.d(t,"Autofill",(function(){return ce})),n.d(t,"Announced",(function(){return he})),n.d(t,"AnnouncedBase",(function(){return pe})),n.d(t,"Breadcrumb",(function(){return Po})),n.d(t,"BreadcrumbBase",(function(){return Ro})),n.d(t,"BaseButton",(function(){return no})),n.d(t,"ElementType",(function(){return xo})),n.d(t,"ButtonType",(function(){return wo})),n.d(t,"Button",(function(){return Xo})),n.d(t,"ActionButton",(function(){return Ko})),n.d(t,"CommandBarButton",(function(){return ei})),n.d(t,"CommandButton",(function(){return ti})),n.d(t,"CompoundButton",(function(){return Jo})),n.d(t,"DefaultButton",(function(){return Vo})),n.d(t,"MessageBarButton",(function(){return ri})),n.d(t,"PrimaryButton",(function(){return qo})),n.d(t,"IconButton",(function(){return co})),n.d(t,"getSplitButtonClassNames",(function(){return to})),n.d(t,"ButtonGrid",(function(){return si})),n.d(t,"ButtonGridCell",(function(){return di})),n.d(t,"Calendar",(function(){return La})),n.d(t,"AnimationDirection",(function(){return qi})),n.d(t,"defaultCalendarStrings",(function(){return ca})),n.d(t,"defaultDayPickerStrings",(function(){return ua})),n.d(t,"defaultCalendarNavigationIcons",(function(){return Aa})),n.d(t,"DayOfWeek",(function(){return li})),n.d(t,"DateRangeType",(function(){return Ai})),n.d(t,"FirstWeekOfYear",(function(){return ui})),n.d(t,"Callout",(function(){return Rn})),n.d(t,"CalloutContent",(function(){return fn})),n.d(t,"CalloutContentBase",(function(){return An})),n.d(t,"FocusTrapCallout",(function(){return Fa})),n.d(t,"DirectionalHint",(function(){return Je})),n.d(t,"Check",(function(){return Ga})),n.d(t,"CheckBase",(function(){return Pa})),n.d(t,"Checkbox",(function(){return Wa})),n.d(t,"CheckboxBase",(function(){return Ya})),n.d(t,"ChoiceGroup",(function(){return us})),n.d(t,"ChoiceGroupBase",(function(){return ls})),n.d(t,"ChoiceGroupOption",(function(){return os})),n.d(t,"Coachmark",(function(){return Ss})),n.d(t,"COACHMARK_ATTRIBUTE_NAME",(function(){return Ds})),n.d(t,"CoachmarkBase",(function(){return ws})),n.d(t,"MAX_COLOR_SATURATION",(function(){return Ns})),n.d(t,"MAX_COLOR_HUE",(function(){return ks})),n.d(t,"MAX_COLOR_VALUE",(function(){return Ts})),n.d(t,"MAX_COLOR_RGB",(function(){return js})),n.d(t,"MAX_COLOR_RGBA",(function(){return Ls})),n.d(t,"MAX_COLOR_ALPHA",(function(){return Rs})),n.d(t,"MIN_HEX_LENGTH",(function(){return Os})),n.d(t,"MAX_HEX_LENGTH",(function(){return _s})),n.d(t,"MIN_RGBA_LENGTH",(function(){return Fs})),n.d(t,"MAX_RGBA_LENGTH",(function(){return zs})),n.d(t,"HEX_REGEX",(function(){return Ps})),n.d(t,"RGBA_REGEX",(function(){return Us})),n.d(t,"cssColor",(function(){return Vs})),n.d(t,"rgb2hex",(function(){return Zs})),n.d(t,"clamp",(function(){return Ks})),n.d(t,"hsl2rgb",(function(){return Ys})),n.d(t,"hsl2hsv",(function(){return Gs})),n.d(t,"hsv2rgb",(function(){return Hs})),n.d(t,"hsv2hex",(function(){return qs})),n.d(t,"rgb2hsv",(function(){return Xs})),n.d(t,"hsv2hsl",(function(){return $s})),n.d(t,"getColorFromString",(function(){return nl})),n.d(t,"getColorFromRGBA",(function(){return tl})),n.d(t,"getColorFromHSV",(function(){return rl})),n.d(t,"getFullColorString",(function(){return ol})),n.d(t,"updateSV",(function(){return il})),n.d(t,"updateH",(function(){return al})),n.d(t,"updateRGB",(function(){return sl})),n.d(t,"updateA",(function(){return ll})),n.d(t,"correctRGB",(function(){return cl})),n.d(t,"correctHSV",(function(){return ul})),n.d(t,"correctHex",(function(){return Al})),n.d(t,"Shade",(function(){return dl})),n.d(t,"isValidShade",(function(){return El})),n.d(t,"isDark",(function(){return Bl})),n.d(t,"getShade",(function(){return Ml})),n.d(t,"getBackgroundShade",(function(){return Dl})),n.d(t,"getContrastRatio",(function(){return xl})),n.d(t,"updateT",(function(){return wl})),n.d(t,"ColorPicker",(function(){return nc})),n.d(t,"ColorPickerBase",(function(){return Zl})),n.d(t,"ComboBox",(function(){return mc})),n.d(t,"VirtualizedComboBox",(function(){return Tc})),n.d(t,"CommandBar",(function(){return Gc})),n.d(t,"CommandBarBase",(function(){return Uc})),n.d(t,"ContextualMenu",(function(){return qr})),n.d(t,"getSubmenuItems",(function(){return Gr})),n.d(t,"canAnyMenuItemsCheck",(function(){return Hr})),n.d(t,"ContextualMenuBase",(function(){return Vr})),n.d(t,"ContextualMenuItemType",(function(){return Fe})),n.d(t,"ContextualMenuItem",(function(){return er})),n.d(t,"ContextualMenuItemBase",(function(){return Gn})),n.d(t,"getMenuItemStyles",(function(){return Wn})),n.d(t,"DatePicker",(function(){return Xc})),n.d(t,"DatePickerBase",(function(){return Wc})),n.d(t,"defaultDatePickerStrings",(function(){return Hc})),n.d(t,"addDays",(function(){return mi})),n.d(t,"addWeeks",(function(){return yi})),n.d(t,"addMonths",(function(){return Ii})),n.d(t,"addYears",(function(){return Ci})),n.d(t,"getMonthStart",(function(){return Ei})),n.d(t,"getMonthEnd",(function(){return bi})),n.d(t,"getYearStart",(function(){return vi})),n.d(t,"getYearEnd",(function(){return Bi})),n.d(t,"setMonth",(function(){return Mi})),n.d(t,"compareDates",(function(){return Di})),n.d(t,"compareDatePart",(function(){return xi})),n.d(t,"getDateRangeArray",(function(){return wi})),n.d(t,"isInDateRangeArray",(function(){return Qi})),n.d(t,"getWeekNumbersInMonth",(function(){return Si})),n.d(t,"getWeekNumber",(function(){return Ni})),n.d(t,"getStartDateOfWeek",(function(){return ki})),n.d(t,"getEndDateOfWeek",(function(){return Ti})),n.d(t,"getDatePartHashValue",(function(){return Li})),n.d(t,"MonthOfYear",(function(){return ci})),n.d(t,"DAYS_IN_WEEK",(function(){return gi})),n.d(t,"TimeConstants",(function(){return fi})),n.d(t,"SELECTION_CHANGE",(function(){return $c})),n.d(t,"SelectionDirection",(function(){return Jc})),n.d(t,"SelectionMode",(function(){return Zc})),n.d(t,"Selection",(function(){return eu})),n.d(t,"SelectionZone",(function(){return lu})),n.d(t,"CollapseAllVisibility",(function(){return nu})),n.d(t,"DetailsHeader",(function(){return Ru})),n.d(t,"DetailsHeaderBase",(function(){return Nu})),n.d(t,"SelectAllVisibility",(function(){return bu})),n.d(t,"DetailsList",(function(){return xA})),n.d(t,"DetailsListBase",(function(){return bA})),n.d(t,"buildColumns",(function(){return vA})),n.d(t,"ColumnActionsMode",(function(){return ru})),n.d(t,"ConstrainMode",(function(){return ou})),n.d(t,"ColumnDragEndLocation",(function(){return iu})),n.d(t,"DetailsListLayoutMode",(function(){return au})),n.d(t,"CheckboxVisibility",(function(){return su})),n.d(t,"DetailsRow",(function(){return Hu})),n.d(t,"DetailsRowBase",(function(){return zu})),n.d(t,"DetailsRowGlobalClassNames",(function(){return uu})),n.d(t,"DEFAULT_CELL_STYLE_PROPS",(function(){return Au})),n.d(t,"DEFAULT_ROW_HEIGHTS",(function(){return du})),n.d(t,"getDetailsRowStyles",(function(){return pu})),n.d(t,"DetailsRowCheck",(function(){return vu})),n.d(t,"DetailsRowFields",(function(){return Ou})),n.d(t,"DetailsColumnBase",(function(){return Du})),n.d(t,"Dialog",(function(){return id})),n.d(t,"DialogBase",(function(){return rd})),n.d(t,"DialogContent",(function(){return $A})),n.d(t,"DialogContentBase",(function(){return qA})),n.d(t,"DialogFooter",(function(){return KA})),n.d(t,"DialogFooterBase",(function(){return VA})),n.d(t,"DialogType",(function(){return MA})),n.d(t,"VerticalDivider",(function(){return Mr})),n.d(t,"DocumentCard",(function(){return pd})),n.d(t,"DocumentCardType",(function(){return HA})),n.d(t,"DocumentCardActions",(function(){return yd})),n.d(t,"DocumentCardActivity",(function(){return Ed})),n.d(t,"DocumentCardDetails",(function(){return Md})),n.d(t,"DocumentCardLocation",(function(){return wd})),n.d(t,"DocumentCardPreview",(function(){return Nd})),n.d(t,"DocumentCardImage",(function(){return jd})),n.d(t,"DocumentCardTitle",(function(){return Od})),n.d(t,"DocumentCardLogo",(function(){return Pd})),n.d(t,"DocumentCardStatus",(function(){return Yd})),n.d(t,"DragDropHelper",(function(){return Bu})),n.d(t,"Dropdown",(function(){return Lg})),n.d(t,"DropdownBase",(function(){return Mg})),n.d(t,"DropdownMenuItemType",(function(){return $l})),n.d(t,"BaseExtendedPicker",(function(){return zg})),n.d(t,"BaseExtendedPeoplePicker",(function(){return Gg})),n.d(t,"ExtendedPeoplePicker",(function(){return Hg})),n.d(t,"Fabric",(function(){return Mn})),n.d(t,"FabricBase",(function(){return En})),n.d(t,"OverflowButtonType",(function(){return Pg})),n.d(t,"FacepileBase",(function(){return $g})),n.d(t,"Facepile",(function(){return tp})),n.d(t,"BaseFloatingPicker",(function(){return Tp})),n.d(t,"BaseFloatingPeoplePicker",(function(){return jp})),n.d(t,"FloatingPeoplePicker",(function(){return Lp})),n.d(t,"createItem",(function(){return Rp})),n.d(t,"SuggestionsStore",(function(){return Op})),n.d(t,"SuggestionItemType",(function(){return Ep})),n.d(t,"SuggestionsHeaderFooterItem",(function(){return Sp})),n.d(t,"SuggestionsControl",(function(){return Np})),n.d(t,"SuggestionsCore",(function(){return Cp})),n.d(t,"FocusTrapZone",(function(){return Oa})),n.d(t,"FocusZone",(function(){return Te})),n.d(t,"FocusZoneTabbableElements",(function(){return fe})),n.d(t,"FocusZoneDirection",(function(){return Ae})),n.d(t,"GroupedList",(function(){return mA})),n.d(t,"GroupedListBase",(function(){return fA})),n.d(t,"GroupHeader",(function(){return iA})),n.d(t,"GroupFooter",(function(){return AA})),n.d(t,"GroupShowAll",(function(){return lA})),n.d(t,"GroupSpacer",(function(){return cu})),n.d(t,"GroupedListSection",(function(){return dA})),n.d(t,"HoverCard",(function(){return eh})),n.d(t,"HoverCardBase",(function(){return $p})),n.d(t,"OpenCardMode",(function(){return Fp})),n.d(t,"HoverCardType",(function(){return zp})),n.d(t,"ExpandingCard",(function(){return Wp})),n.d(t,"ExpandingCardBase",(function(){return Vp})),n.d(t,"ExpandingCardMode",(function(){return Up})),n.d(t,"PlainCard",(function(){return qp})),n.d(t,"PlainCardBase",(function(){return Jp})),n.d(t,"Icon",(function(){return th.Icon})),n.d(t,"IconBase",(function(){return th.IconBase})),n.d(t,"IconType",(function(){return th.IconType})),n.d(t,"getIconContent",(function(){return th.getIconContent})),n.d(t,"FontIcon",(function(){return th.FontIcon})),n.d(t,"getFontIcon",(function(){return th.getFontIcon})),n.d(t,"ImageIcon",(function(){return th.ImageIcon})),n.d(t,"initializeIcons",(function(){return bh})),n.d(t,"Image",(function(){return V.a})),n.d(t,"ImageBase",(function(){return vh.a})),n.d(t,"ImageFit",(function(){return Y.b})),n.d(t,"ImageCoverStyle",(function(){return Y.a})),n.d(t,"ImageLoadState",(function(){return Y.c})),n.d(t,"Keytip",(function(){return wh})),n.d(t,"KeytipData",(function(){return Ir})),n.d(t,"useKeytipRef",(function(){return Qh})),n.d(t,"KeytipLayer",(function(){return Ph})),n.d(t,"KeytipLayerBase",(function(){return zh})),n.d(t,"transitionKeysAreEqual",(function(){return jh})),n.d(t,"transitionKeysContain",(function(){return Lh})),n.d(t,"buildKeytipConfigMap",(function(){return Uh})),n.d(t,"constructKeytip",(function(){return Gh})),n.d(t,"KTP_PREFIX",(function(){return nr})),n.d(t,"KTP_SEPARATOR",(function(){return rr})),n.d(t,"KTP_FULL_PREFIX",(function(){return or})),n.d(t,"DATAKTP_TARGET",(function(){return ir})),n.d(t,"DATAKTP_EXECUTE_TARGET",(function(){return ar})),n.d(t,"DATAKTP_ARIA_TARGET",(function(){return sr})),n.d(t,"KTP_LAYER_ID",(function(){return lr})),n.d(t,"KTP_ARIA_SEPARATOR",(function(){return cr})),n.d(t,"KeytipEvents",(function(){return On})),n.d(t,"KeytipManager",(function(){return Ar})),n.d(t,"sequencesToID",(function(){return gr})),n.d(t,"mergeOverflows",(function(){return pr})),n.d(t,"ktpTargetFromSequences",(function(){return hr})),n.d(t,"ktpTargetFromId",(function(){return fr})),n.d(t,"getAriaDescribedBy",(function(){return mr})),n.d(t,"LabelBase",(function(){return Za})),n.d(t,"Label",(function(){return Ja})),n.d(t,"Layer",(function(){return Ln})),n.d(t,"LayerBase",(function(){return kn})),n.d(t,"LayerHost",(function(){return Vh})),n.d(t,"Link",(function(){return Pe})),n.d(t,"LinkBase",(function(){return _e})),n.d(t,"List",(function(){return Nc})),n.d(t,"ScrollToMode",(function(){return Dc})),n.d(t,"MarqueeSelection",(function(){return Xh})),n.d(t,"MessageBar",(function(){return df})),n.d(t,"MessageBarBase",(function(){return af})),n.d(t,"MessageBarType",(function(){return Hh})),n.d(t,"Modal",(function(){return GA})),n.d(t,"ModalBase",(function(){return UA})),n.d(t,"Nav",(function(){return If})),n.d(t,"isRelativeUrl",(function(){return hf})),n.d(t,"NavBase",(function(){return yf})),n.d(t,"OverflowSet",(function(){return Fc})),n.d(t,"OverflowSetBase",(function(){return Oc})),n.d(t,"Overlay",(function(){return TA})),n.d(t,"OverlayBase",(function(){return NA})),n.d(t,"Panel",(function(){return bg})),n.d(t,"PanelBase",(function(){return tg})),n.d(t,"PanelType",(function(){return ad})),n.d(t,"Persona",(function(){return qg})),n.d(t,"PersonaBase",(function(){return Zg})),n.d(t,"PersonaSize",(function(){return u})),n.d(t,"PersonaPresence",(function(){return A})),n.d(t,"PersonaInitialsColor",(function(){return d})),n.d(t,"PersonaCoin",(function(){return re})),n.d(t,"PersonaCoinBase",(function(){return $})),n.d(t,"personaSize",(function(){return p})),n.d(t,"personaPresenceSize",(function(){return f})),n.d(t,"sizeBoolean",(function(){return k})),n.d(t,"sizeToPixels",(function(){return T})),n.d(t,"presenceBoolean",(function(){return j})),n.d(t,"getPersonaInitialsColor",(function(){return Z})),n.d(t,"Suggestions",(function(){return Mf})),n.d(t,"SuggestionActionType",(function(){return ff})),n.d(t,"SuggestionsItem",(function(){return mp})),n.d(t,"SuggestionsController",(function(){return Df})),n.d(t,"BasePicker",(function(){return Of})),n.d(t,"BasePickerListBelow",(function(){return _f})),n.d(t,"ValidationState",(function(){return Ef})),n.d(t,"BasePeoplePicker",(function(){return Zf})),n.d(t,"MemberListPeoplePicker",(function(){return Jf})),n.d(t,"NormalPeoplePickerBase",(function(){return qf})),n.d(t,"CompactPeoplePickerBase",(function(){return Xf})),n.d(t,"ListPeoplePickerBase",(function(){return $f})),n.d(t,"createGenericItem",(function(){return em})),n.d(t,"NormalPeoplePicker",(function(){return tm})),n.d(t,"CompactPeoplePicker",(function(){return nm})),n.d(t,"ListPeoplePicker",(function(){return rm})),n.d(t,"PeoplePickerItemBase",(function(){return Pf})),n.d(t,"PeoplePickerItem",(function(){return Uf})),n.d(t,"PeoplePickerItemSuggestionBase",(function(){return Yf})),n.d(t,"PeoplePickerItemSuggestion",(function(){return Vf})),n.d(t,"TagPickerBase",(function(){return dm})),n.d(t,"TagPicker",(function(){return gm})),n.d(t,"TagItemBase",(function(){return am})),n.d(t,"TagItem",(function(){return sm})),n.d(t,"TagItemSuggestionBase",(function(){return um})),n.d(t,"TagItemSuggestion",(function(){return Am})),n.d(t,"Pivot",(function(){return Mm})),n.d(t,"PivotBase",(function(){return Cm})),n.d(t,"PivotItem",(function(){return fm})),n.d(t,"PivotLinkFormat",(function(){return Em})),n.d(t,"PivotLinkSize",(function(){return bm})),n.d(t,"Popup",(function(){return en})),n.d(t,"getBoundsFromTargetWindow",(function(){return Ht})),n.d(t,"getMaxHeight",(function(){return Ut})),n.d(t,"getOppositeEdge",(function(){return Gt})),n.d(t,"positionCallout",(function(){return zt})),n.d(t,"positionCard",(function(){return Pt})),n.d(t,"positionElement",(function(){return Ft})),n.d(t,"RectangleEdge",(function(){return rt})),n.d(t,"Position",(function(){return ot})),n.d(t,"useHeightOffset",(function(){return Cs})),n.d(t,"PositioningContainer",(function(){return Es})),n.d(t,"ProgressIndicator",(function(){return km})),n.d(t,"ProgressIndicatorBase",(function(){return wm})),n.d(t,"Rating",(function(){return Fm})),n.d(t,"RatingBase",(function(){return _m})),n.d(t,"RatingSize",(function(){return Dm})),n.d(t,"ResizeGroup",(function(){return Eo})),n.d(t,"getMeasurementCache",(function(){return uo})),n.d(t,"getNextResizeGroupStateProvider",(function(){return Ao})),n.d(t,"MeasuredContext",(function(){return go})),n.d(t,"ResizeGroupBase",(function(){return Io})),n.d(t,"ResizeGroupDirection",(function(){return Xr})),n.d(t,"useResponsiveMode",(function(){return _r})),n.d(t,"ResponsiveMode",(function(){return Br})),n.d(t,"setResponsiveMode",(function(){return Tr})),n.d(t,"initializeResponsiveMode",(function(){return jr})),n.d(t,"getInitialResponsiveMode",(function(){return Lr})),n.d(t,"withResponsiveMode",(function(){return Rr})),n.d(t,"getResponsiveMode",(function(){return Or})),n.d(t,"ScrollablePane",(function(){return Ym})),n.d(t,"ScrollablePaneBase",(function(){return Hm})),n.d(t,"ScrollbarVisibility",(function(){return Pm})),n.d(t,"ScrollablePaneContext",(function(){return Um})),n.d(t,"SearchBox",(function(){return Xm})),n.d(t,"SearchBoxBase",(function(){return Jm})),n.d(t,"getAllSelectedOptions",(function(){return gc})),n.d(t,"SelectableOptionMenuItemType",(function(){return $l})),n.d(t,"BaseSelectedItemsList",(function(){return $m})),n.d(t,"BasePeopleSelectedItemsList",(function(){return my})),n.d(t,"SelectedPeopleList",(function(){return yy})),n.d(t,"ExtendedSelectedItem",(function(){return dy})),n.d(t,"SeparatorBase",(function(){return Cy})),n.d(t,"Separator",(function(){return Ey})),n.d(t,"Shimmer",(function(){return Vy})),n.d(t,"ShimmerBase",(function(){return Yy})),n.d(t,"ShimmerElementType",(function(){return by})),n.d(t,"ShimmerElementsDefaultHeights",(function(){return vy})),n.d(t,"ShimmerLine",(function(){return Sy})),n.d(t,"ShimmerLineBase",(function(){return wy})),n.d(t,"ShimmerCircle",(function(){return _y})),n.d(t,"ShimmerCircleBase",(function(){return Oy})),n.d(t,"ShimmerGap",(function(){return jy})),n.d(t,"ShimmerGapBase",(function(){return ky})),n.d(t,"ShimmerElementsGroup",(function(){return Gy})),n.d(t,"ShimmerElementsGroupBase",(function(){return zy})),n.d(t,"ShimmeredDetailsList",(function(){return Zy})),n.d(t,"ShimmeredDetailsListBase",(function(){return Ky})),n.d(t,"Slider",(function(){return rI})),n.d(t,"SliderBase",(function(){return eI})),n.d(t,"SpinButton",(function(){return dI})),n.d(t,"KeyboardSpinDirection",(function(){return tI})),n.d(t,"Spinner",(function(){return tA})),n.d(t,"SpinnerBase",(function(){return Xu})),n.d(t,"SpinnerSize",(function(){return Uu})),n.d(t,"SpinnerType",(function(){return Gu})),n.d(t,"StackItem",(function(){return BI})),n.d(t,"Stack",(function(){return NI})),n.d(t,"Sticky",(function(){return kI})),n.d(t,"StickyPositionType",(function(){return SI})),n.d(t,"AnimationClassNames",(function(){return jI.a})),n.d(t,"FontClassNames",(function(){return jI.i})),n.d(t,"ColorClassNames",(function(){return jI.d})),n.d(t,"AnimationStyles",(function(){return jI.b})),n.d(t,"AnimationVariables",(function(){return jI.c})),n.d(t,"DefaultPalette",(function(){return jI.g})),n.d(t,"DefaultEffects",(function(){return jI.e})),n.d(t,"DefaultFontStyles",(function(){return jI.f})),n.d(t,"registerDefaultFontFaces",(function(){return jI.hb})),n.d(t,"FontSizes",(function(){return jI.j})),n.d(t,"FontWeights",(function(){return jI.k})),n.d(t,"IconFontSizes",(function(){return jI.o})),n.d(t,"createFontStyles",(function(){return jI.J})),n.d(t,"getFocusStyle",(function(){return jI.Q})),n.d(t,"focusClear",(function(){return jI.L})),n.d(t,"getFocusOutlineStyle",(function(){return jI.P})),n.d(t,"getInputFocusStyle",(function(){return jI.V})),n.d(t,"hiddenContentStyle",(function(){return jI.ab})),n.d(t,"PulsingBeaconAnimationStyles",(function(){return jI.q})),n.d(t,"getGlobalClassNames",(function(){return jI.R})),n.d(t,"getThemedContext",(function(){return jI.Z})),n.d(t,"ThemeSettingName",(function(){return jI.E})),n.d(t,"getTheme",(function(){return jI.Y})),n.d(t,"loadTheme",(function(){return jI.cb})),n.d(t,"createTheme",(function(){return jI.K})),n.d(t,"registerOnThemeChangeCallback",(function(){return jI.kb})),n.d(t,"removeOnThemeChangeCallback",(function(){return jI.lb})),n.d(t,"HighContrastSelector",(function(){return jI.l})),n.d(t,"HighContrastSelectorWhite",(function(){return jI.n})),n.d(t,"HighContrastSelectorBlack",(function(){return jI.m})),n.d(t,"EdgeChromiumHighContrastSelector",(function(){return jI.h})),n.d(t,"ScreenWidthMinSmall",(function(){return jI.y})),n.d(t,"ScreenWidthMinMedium",(function(){return jI.x})),n.d(t,"ScreenWidthMinLarge",(function(){return jI.w})),n.d(t,"ScreenWidthMinXLarge",(function(){return jI.A})),n.d(t,"ScreenWidthMinXXLarge",(function(){return jI.B})),n.d(t,"ScreenWidthMinXXXLarge",(function(){return jI.C})),n.d(t,"ScreenWidthMaxSmall",(function(){return jI.t})),n.d(t,"ScreenWidthMaxMedium",(function(){return jI.s})),n.d(t,"ScreenWidthMaxLarge",(function(){return jI.r})),n.d(t,"ScreenWidthMaxXLarge",(function(){return jI.u})),n.d(t,"ScreenWidthMaxXXLarge",(function(){return jI.v})),n.d(t,"ScreenWidthMinUhfMobile",(function(){return jI.z})),n.d(t,"getScreenSelector",(function(){return jI.X})),n.d(t,"getHighContrastNoAdjustStyle",(function(){return jI.S})),n.d(t,"getEdgeChromiumNoHighContrastAdjustSelector",(function(){return jI.N})),n.d(t,"normalize",(function(){return jI.gb})),n.d(t,"noWrap",(function(){return jI.fb})),n.d(t,"getFadedOverflowStyle",(function(){return jI.O})),n.d(t,"getPlaceholderStyles",(function(){return jI.W})),n.d(t,"ZIndexes",(function(){return jI.F})),n.d(t,"buildClassMap",(function(){return jI.G})),n.d(t,"getIcon",(function(){return jI.T})),n.d(t,"registerIcons",(function(){return jI.jb})),n.d(t,"registerIconAlias",(function(){return jI.ib})),n.d(t,"unregisterIcons",(function(){return jI.nb})),n.d(t,"setIconOptions",(function(){return jI.mb})),n.d(t,"getIconClassName",(function(){return jI.U})),n.d(t,"InjectionMode",(function(){return jI.p})),n.d(t,"Stylesheet",(function(){return jI.D})),n.d(t,"concatStyleSets",(function(){return jI.H})),n.d(t,"concatStyleSetsWithProps",(function(){return jI.I})),n.d(t,"fontFace",(function(){return jI.M})),n.d(t,"keyframes",(function(){return jI.bb})),n.d(t,"mergeStyleSets",(function(){return jI.db})),n.d(t,"mergeStyles",(function(){return jI.eb})),n.d(t,"SwatchColorPicker",(function(){return HI})),n.d(t,"SwatchColorPickerBase",(function(){return UI})),n.d(t,"ColorPickerGridCell",(function(){return zI})),n.d(t,"ColorPickerGridCellBase",(function(){return _I})),n.d(t,"TeachingBubble",(function(){return nC})),n.d(t,"TeachingBubbleBase",(function(){return tC})),n.d(t,"TeachingBubbleContent",(function(){return XI})),n.d(t,"TeachingBubbleContentBase",(function(){return VI})),n.d(t,"Text",(function(){return iC})),n.d(t,"TextView",(function(){return rC})),n.d(t,"TextStyles",(function(){return oC})),n.d(t,"TextField",(function(){return _l})),n.d(t,"TextFieldBase",(function(){return Tl})),n.d(t,"DEFAULT_MASK_CHAR",(function(){return dC})),n.d(t,"MaskedTextField",(function(){return gC})),n.d(t,"mergeThemes",(function(){return EC})),n.d(t,"CommunicationColors",(function(){return pC})),n.d(t,"NeutralColors",(function(){return hC})),n.d(t,"SharedColors",(function(){return fC})),n.d(t,"Depths",(function(){return mC})),n.d(t,"DefaultSpacing",(function(){return SC})),n.d(t,"MotionDurations",(function(){return bC})),n.d(t,"MotionTimings",(function(){return vC})),n.d(t,"MotionAnimations",(function(){return BC})),n.d(t,"LocalizedFontNames",(function(){return MC})),n.d(t,"LocalizedFontFamilies",(function(){return DC})),n.d(t,"FluentTheme",(function(){return sE})),n.d(t,"ThemeProvider",(function(){return bE})),n.d(t,"useTheme",(function(){return uE})),n.d(t,"ThemeContext",(function(){return cE})),n.d(t,"makeStyles",(function(){return hE})),n.d(t,"ThemeGenerator",(function(){return DE})),n.d(t,"BaseSlots",(function(){return vE})),n.d(t,"FabricSlots",(function(){return BE})),n.d(t,"SemanticColorSlots",(function(){return ME})),n.d(t,"themeRulesStandardCreator",(function(){return xE})),n.d(t,"Toggle",(function(){return NE})),n.d(t,"ToggleBase",(function(){return QE})),n.d(t,"Tooltip",(function(){return Do})),n.d(t,"TooltipBase",(function(){return Mo})),n.d(t,"TooltipDelay",(function(){return vo})),n.d(t,"TooltipHost",(function(){return ko})),n.d(t,"TooltipHostBase",(function(){return So})),n.d(t,"TooltipOverflowMode",(function(){return Co})),n.d(t,"Async",(function(){return kE.a})),n.d(t,"AutoScroll",(function(){return kE.b})),n.d(t,"BaseComponent",(function(){return kE.c})),n.d(t,"nullRender",(function(){return kE.nc})),n.d(t,"DelayedRender",(function(){return kE.i})),n.d(t,"EventGroup",(function(){return kE.j})),n.d(t,"FabricPerformance",(function(){return kE.k})),n.d(t,"GlobalSettings",(function(){return kE.m})),n.d(t,"KeyCodes",(function(){return kE.o})),n.d(t,"Rectangle",(function(){return kE.p})),n.d(t,"appendFunction",(function(){return kE.v})),n.d(t,"mergeAriaAttributeValues",(function(){return kE.ic})),n.d(t,"findIndex",(function(){return kE.Z})),n.d(t,"find",(function(){return kE.X})),n.d(t,"createArray",(function(){return kE.K})),n.d(t,"toMatrix",(function(){return kE.Tc})),n.d(t,"removeIndex",(function(){return kE.vc})),n.d(t,"replaceElement",(function(){return kE.wc})),n.d(t,"addElementAtIndex",(function(){return kE.r})),n.d(t,"flatten",(function(){return kE.cb})),n.d(t,"arraysEqual",(function(){return kE.w})),n.d(t,"asAsync",(function(){return kE.x})),n.d(t,"assertNever",(function(){return kE.y})),n.d(t,"classNamesFunction",(function(){return kE.F})),n.d(t,"composeComponentAs",(function(){return kE.I})),n.d(t,"isControlled",(function(){return kE.Sb})),n.d(t,"css",(function(){return kE.N})),n.d(t,"Customizations",(function(){return kE.d})),n.d(t,"Customizer",(function(){return kE.e})),n.d(t,"CustomizerContext",(function(){return kE.f})),n.d(t,"customizable",(function(){return kE.O})),n.d(t,"useCustomizationSettings",(function(){return kE.Wc})),n.d(t,"mergeCustomizations",(function(){return kE.jc})),n.d(t,"mergeSettings",(function(){return kE.lc})),n.d(t,"mergeScopedSettings",(function(){return kE.kc})),n.d(t,"elementContains",(function(){return kE.S})),n.d(t,"elementContainsAttribute",(function(){return kE.T})),n.d(t,"findElementRecursive",(function(){return kE.Y})),n.d(t,"getChildren",(function(){return kE.hb})),n.d(t,"getDocument",(function(){return kE.jb})),n.d(t,"getParent",(function(){return kE.wb})),n.d(t,"getRect",(function(){return kE.Bb})),n.d(t,"getVirtualParent",(function(){return kE.Eb})),n.d(t,"getWindow",(function(){return kE.Fb})),n.d(t,"isVirtualElement",(function(){return kE.bc})),n.d(t,"on",(function(){return kE.qc})),n.d(t,"portalContainsElement",(function(){return kE.sc})),n.d(t,"raiseClick",(function(){return kE.uc})),n.d(t,"DATA_PORTAL_ATTRIBUTE",(function(){return kE.h})),n.d(t,"setPortalAttribute",(function(){return kE.Hc})),n.d(t,"setVirtualParent",(function(){return kE.Kc})),n.d(t,"extendComponent",(function(){return kE.V})),n.d(t,"getFirstFocusable",(function(){return kE.lb})),n.d(t,"getLastFocusable",(function(){return kE.rb})),n.d(t,"getFirstTabbable",(function(){return kE.mb})),n.d(t,"getLastTabbable",(function(){return kE.sb})),n.d(t,"focusFirstChild",(function(){return kE.eb})),n.d(t,"getPreviousElement",(function(){return kE.xb})),n.d(t,"getNextElement",(function(){return kE.vb})),n.d(t,"isElementVisible",(function(){return kE.Xb})),n.d(t,"isElementTabbable",(function(){return kE.Wb})),n.d(t,"isElementFocusZone",(function(){return kE.Vb})),n.d(t,"isElementFocusSubZone",(function(){return kE.Ub})),n.d(t,"doesElementContainFocus",(function(){return kE.R})),n.d(t,"shouldWrapFocus",(function(){return kE.Nc})),n.d(t,"focusAsync",(function(){return kE.db})),n.d(t,"getFocusableByIndexPath",(function(){return kE.nb})),n.d(t,"getElementIndexPath",(function(){return kE.kb})),n.d(t,"getId",(function(){return kE.ob})),n.d(t,"resetIds",(function(){return kE.yc})),n.d(t,"getNativeElementProps",(function(){return kE.tb})),n.d(t,"hoistMethods",(function(){return kE.Jb})),n.d(t,"unhoistMethods",(function(){return kE.Vc})),n.d(t,"hoistStatics",(function(){return kE.Kb})),n.d(t,"initializeComponentRef",(function(){return kE.Pb})),n.d(t,"initializeFocusRects",(function(){return kE.Qb})),n.d(t,"useFocusRects",(function(){return kE.Xc})),n.d(t,"FocusRects",(function(){return kE.l})),n.d(t,"getInitials",(function(){return kE.pb})),n.d(t,"isDirectionalKeyCode",(function(){return kE.Tb})),n.d(t,"addDirectionalKeyCode",(function(){return kE.q})),n.d(t,"getLanguage",(function(){return kE.qb})),n.d(t,"setLanguage",(function(){return kE.Fc})),n.d(t,"getDistanceBetweenPoints",(function(){return kE.ib})),n.d(t,"fitContentToBounds",(function(){return kE.bb})),n.d(t,"calculatePrecision",(function(){return kE.E})),n.d(t,"precisionRound",(function(){return kE.tc})),n.d(t,"setMemoizeWeakMap",(function(){return kE.Gc})),n.d(t,"resetMemoizations",(function(){return kE.zc})),n.d(t,"memoize",(function(){return kE.fc})),n.d(t,"memoizeFunction",(function(){return kE.gc})),n.d(t,"createMemoizer",(function(){return kE.L})),n.d(t,"merge",(function(){return kE.hc})),n.d(t,"isIOS",(function(){return kE.Zb})),n.d(t,"modalize",(function(){return kE.mc})),n.d(t,"assign",(function(){return kE.z})),n.d(t,"filteredAssign",(function(){return kE.W})),n.d(t,"mapEnumByName",(function(){return kE.ec})),n.d(t,"shallowCompare",(function(){return kE.Mc})),n.d(t,"values",(function(){return kE.Yc})),n.d(t,"omit",(function(){return kE.pc})),n.d(t,"isMac",(function(){return kE.ac})),n.d(t,"hasHorizontalOverflow",(function(){return kE.Gb})),n.d(t,"hasVerticalOverflow",(function(){return kE.Ib})),n.d(t,"hasOverflow",(function(){return kE.Hb})),n.d(t,"baseElementEvents",(function(){return kE.B})),n.d(t,"baseElementProperties",(function(){return kE.C})),n.d(t,"htmlElementProperties",(function(){return kE.Lb})),n.d(t,"labelProperties",(function(){return kE.cc})),n.d(t,"audioProperties",(function(){return kE.A})),n.d(t,"videoProperties",(function(){return kE.Zc})),n.d(t,"olProperties",(function(){return kE.oc})),n.d(t,"liProperties",(function(){return kE.dc})),n.d(t,"anchorProperties",(function(){return kE.u})),n.d(t,"buttonProperties",(function(){return kE.D})),n.d(t,"inputProperties",(function(){return kE.Rb})),n.d(t,"textAreaProperties",(function(){return kE.Rc})),n.d(t,"selectProperties",(function(){return kE.Cc})),n.d(t,"optionProperties",(function(){return kE.rc})),n.d(t,"tableProperties",(function(){return kE.Pc})),n.d(t,"trProperties",(function(){return kE.Uc})),n.d(t,"thProperties",(function(){return kE.Sc})),n.d(t,"tdProperties",(function(){return kE.Qc})),n.d(t,"colGroupProperties",(function(){return kE.G})),n.d(t,"colProperties",(function(){return kE.H})),n.d(t,"formProperties",(function(){return kE.fb})),n.d(t,"iframeProperties",(function(){return kE.Mb})),n.d(t,"imgProperties",(function(){return kE.Ob})),n.d(t,"imageProperties",(function(){return kE.Nb})),n.d(t,"divProperties",(function(){return kE.Q})),n.d(t,"getNativeProps",(function(){return kE.ub})),n.d(t,"composeRenderFunction",(function(){return kE.J})),n.d(t,"getResourceUrl",(function(){return kE.Cb})),n.d(t,"setBaseUrl",(function(){return kE.Dc})),n.d(t,"getRTL",(function(){return kE.zb})),n.d(t,"setRTL",(function(){return kE.Ic})),n.d(t,"getRTLSafeKeyCode",(function(){return kE.Ab})),n.d(t,"safeRequestAnimationFrame",(function(){return kE.Ac})),n.d(t,"safeSetTimeout",(function(){return kE.Bc})),n.d(t,"DATA_IS_SCROLLABLE_ATTRIBUTE",(function(){return kE.g})),n.d(t,"allowScrollOnElement",(function(){return kE.t})),n.d(t,"allowOverscrollOnElement",(function(){return kE.s})),n.d(t,"disableBodyScroll",(function(){return kE.P})),n.d(t,"enableBodyScroll",(function(){return kE.U})),n.d(t,"getScrollbarWidth",(function(){return kE.Db})),n.d(t,"findScrollableParent",(function(){return kE.ab})),n.d(t,"format",(function(){return kE.gb})),n.d(t,"styled",(function(){return kE.Oc})),n.d(t,"warn",(function(){return kE.ad})),n.d(t,"setWarningCallback",(function(){return kE.Lc})),n.d(t,"warnConditionallyRequiredProps",(function(){return kE.bd})),n.d(t,"resetControlledWarnings",(function(){return kE.xc})),n.d(t,"warnControlledUsage",(function(){return kE.cd})),n.d(t,"warnDeprecations",(function(){return kE.dd})),n.d(t,"warnMutuallyExclusive",(function(){return kE.ed})),n.d(t,"isIE11",(function(){return kE.Yb})),n.d(t,"getPropsWithDefaults",(function(){return kE.yb})),n.d(t,"setFocusVisibility",(function(){return kE.Ec})),n.d(t,"IsFocusVisibleClassName",(function(){return kE.n})),n.d(t,"setSSR",(function(){return kE.Jc})),n.d(t,"createMergedRef",(function(){return kE.M})),n.d(t,"WeeklyDayPicker",(function(){return _E})),n.d(t,"defaultWeeklyDayPickerStrings",(function(){return TE})),n.d(t,"defaultWeeklyDayPickerNavigationIcons",(function(){return jE})),n.d(t,"WindowContext",(function(){return Kt})),n.d(t,"useWindow",(function(){return Zt})),n.d(t,"useDocument",(function(){return Jt})),n.d(t,"WindowProvider",(function(){return qt}));var r={};n.r(r),n.d(r,"pickerText",(function(){return Og})),n.d(r,"pickerInput",(function(){return _g}));var o={};n.r(o),n.d(o,"callout",(function(){return np}));var i={};n.r(i),n.d(i,"root",(function(){return rp})),n.d(i,"suggestionsItem",(function(){return op})),n.d(i,"closeButton",(function(){return ip})),n.d(i,"suggestionsItemIsSuggested",(function(){return ap})),n.d(i,"itemButton",(function(){return sp})),n.d(i,"actionButton",(function(){return lp})),n.d(i,"buttonSelected",(function(){return cp})),n.d(i,"suggestionsTitle",(function(){return up})),n.d(i,"suggestionsContainer",(function(){return Ap})),n.d(i,"suggestionsNone",(function(){return dp})),n.d(i,"suggestionsSpinner",(function(){return gp})),n.d(i,"suggestionsAvailable",(function(){return pp}));var a={};n.r(a),n.d(a,"suggestionsContainer",(function(){return yp}));var s={};n.r(s),n.d(s,"root",(function(){return bp})),n.d(s,"actionButton",(function(){return vp})),n.d(s,"buttonSelected",(function(){return Bp})),n.d(s,"suggestionsTitle",(function(){return Mp})),n.d(s,"suggestionsSpinner",(function(){return Dp})),n.d(s,"itemButton",(function(){return xp})),n.d(s,"screenReaderOnly",(function(){return wp}));var l={};n.r(l),n.d(l,"pickerText",(function(){return Qf})),n.d(l,"inputFocused",(function(){return Sf})),n.d(l,"inputDisabled",(function(){return Nf})),n.d(l,"pickerInput",(function(){return kf})),n.d(l,"pickerItems",(function(){return Tf})),n.d(l,"screenReaderOnly",(function(){return jf}));var c={};n.r(c),n.d(c,"personaContainer",(function(){return ey})),n.d(c,"hover",(function(){return ty})),n.d(c,"actionButton",(function(){return ny})),n.d(c,"personaContainerIsSelected",(function(){return ry})),n.d(c,"validationError",(function(){return oy})),n.d(c,"itemContent",(function(){return iy})),n.d(c,"removeButton",(function(){return ay})),n.d(c,"expandButton",(function(){return sy})),n.d(c,"personaWrapper",(function(){return ly})),n.d(c,"personaDetails",(function(){return cy})),n.d(c,"itemContainer",(function(){return uy}));var u,A,d,g,p,h,f,m=n(1),y=n(0),I=n(3),C=n(47),E=Object(C.c)((function(e,t,n,r){return{root:Object(I.eb)("ms-ActivityItem",t,e.root,r&&e.isCompactRoot),pulsingBeacon:Object(I.eb)("ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:Object(I.eb)("ms-ActivityItem-personaContainer",e.personaContainer,r&&e.isCompactPersonaContainer),activityPersona:Object(I.eb)("ms-ActivityItem-activityPersona",e.activityPersona,r&&e.isCompactPersona,!r&&n&&2===n.length&&e.doublePersona),activityTypeIcon:Object(I.eb)("ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,r&&e.isCompactIcon),activityContent:Object(I.eb)("ms-ActivityItem-activityContent",e.activityContent,r&&e.isCompactContent),activityText:Object(I.eb)("ms-ActivityItem-activityText",e.activityText),commentText:Object(I.eb)("ms-ActivityItem-commentText",e.commentText),timeStamp:Object(I.eb)("ms-ActivityItem-timeStamp",e.timeStamp,r&&e.isCompactTimeStamp)}})),b=Object(C.c)((function(){return Object(I.bb)({from:{opacity:0},to:{opacity:1}})})),v=Object(C.c)((function(){return Object(I.bb)({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})})),B=Object(C.c)((function(e,t,n,r,o,i){var a;void 0===e&&(e=Object(I.Y)());var s={animationName:I.q.continuousPulseAnimationSingle(r||e.palette.themePrimary,o||e.palette.themeTertiary,"4px","28px","4px"),animationIterationCount:"1",animationDuration:".8s",zIndex:1},l={animationName:v(),animationIterationCount:"1",animationDuration:".5s"},c={animationName:b(),animationIterationCount:"1",animationDuration:".5s"},u={root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},i&&n&&c],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},i&&n&&s],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:"32px",width:"32px",height:"32px"},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:"16px",width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:"32px",fontSize:"16px",lineHeight:"16px",marginTop:"3px"},isCompactIcon:{height:"16px",minWidth:"16px",fontSize:"13px",lineHeight:"13px",color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:(a={},a[I.l]={border:"none",margin:"0"},a)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},i&&n&&l],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}};return Object(I.H)(u,t)})),M=n(187),D=n(149),x=n(231),w=n(16),Q=n(131),S=n(232),N=n(93);!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(u||(u={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(A||(A={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(d||(d={})),(h=p||(p={})).size8="20px",h.size10="20px",h.size16="16px",h.size24="24px",h.size28="28px",h.size32="32px",h.size40="40px",h.size48="48px",h.size56="56px",h.size72="72px",h.size100="100px",h.size120="120px",function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"}(f||(f={}));var k=function(e){return{isSize8:e===u.size8,isSize10:e===u.size10||e===u.tiny,isSize16:e===u.size16,isSize24:e===u.size24||e===u.extraExtraSmall,isSize28:e===u.size28||e===u.extraSmall,isSize32:e===u.size32,isSize40:e===u.size40||e===u.small,isSize48:e===u.size48||e===u.regular,isSize56:e===u.size56,isSize72:e===u.size72||e===u.large,isSize100:e===u.size100||e===u.extraLarge,isSize120:e===u.size120}},T=((g={})[u.tiny]=10,g[u.extraExtraSmall]=24,g[u.extraSmall]=28,g[u.small]=40,g[u.regular]=48,g[u.large]=72,g[u.extraLarge]=100,g[u.size8]=8,g[u.size10]=10,g[u.size16]=16,g[u.size24]=24,g[u.size28]=28,g[u.size32]=32,g[u.size40]=40,g[u.size48]=48,g[u.size56]=56,g[u.size72]=72,g[u.size100]=100,g[u.size120]=120,g),j=function(e){return{isAvailable:e===A.online,isAway:e===A.away,isBlocked:e===A.blocked,isBusy:e===A.busy,isDoNotDisturb:e===A.dnd,isOffline:e===A.offline}},L=n(627),R=Object(D.a)({cacheSize:100}),O=y.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,o=e.styles,i=e.presence,a=e.theme,s=e.presenceTitle,l=e.presenceColors,c=y.useRef(null),u=Object(L.a)(t,c),d=k(e.size),g=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(!n||n>32),p=n?n/3<40?n/3+"px":"40px":"",h=n?{fontSize:n?n/6<20?n/6+"px":"20px":"",lineHeight:p}:void 0,f=n?{width:p,height:p}:void 0,m=R(o,{theme:a,presence:i,size:e.size,isOutOfOffice:r,presenceColors:l});return i===A.none?null:y.createElement("div",{role:"presentation",className:m.presence,style:f,title:s,ref:u},g&&y.createElement(N.a,{className:m.presenceIcon,iconName:_(e.presence,e.isOutOfOffice),style:h}))}));function _(e,t){if(e){switch(A[e]){case"online":return"SkypeCheck";case"away":return t?"SkypeArrow":"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?"SkypeArrow":""}return""}}O.displayName="PersonaPresenceBase";var F={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function z(e){return{color:e,borderColor:e}}function P(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function U(e){return{height:e,width:e}}function G(e){return{backgroundColor:e}}var H=Object(M.a)(O,(function(e){var t,n,r,o,i,a,s=e.theme,l=e.presenceColors,c=s.semanticColors,u=s.fonts,A=Object(I.R)(F,s),d=k(e.size),g=j(e.presence),p=l&&l.available||"#6BB700",h=l&&l.away||"#FFAA44",y=l&&l.busy||"#C43148",C=l&&l.dnd||"#C50F1F",E=l&&l.offline||"#8A8886",b=l&&l.oof||"#B4009E",v=l&&l.background||c.bodyBackground,B=g.isOffline||e.isOutOfOffice&&(g.isAvailable||g.isBusy||g.isAway||g.isDoNotDisturb),M=d.isSize72||d.isSize100?"2px":"1px";return{presence:[A.presence,Object(m.a)(Object(m.a)({position:"absolute",height:f.size12,width:f.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+v,textAlign:"center",boxSizing:"content-box",backgroundClip:"content-box"},Object(I.S)()),{selectors:(t={},t[I.l]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(d.isSize8||d.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[I.l]={top:"9px",border:"1px solid WindowText"},n)},(d.isSize8||d.isSize10||d.isSize24||d.isSize28||d.isSize32)&&U(f.size8),(d.isSize40||d.isSize48)&&U(f.size12),d.isSize16&&{height:f.size6,width:f.size6,borderWidth:"1.5px"},d.isSize56&&U(f.size16),d.isSize72&&U(f.size20),d.isSize100&&U(f.size28),d.isSize120&&U(f.size32),g.isAvailable&&{backgroundColor:p,selectors:(r={},r[I.l]=G("Highlight"),r)},g.isAway&&G(h),g.isBlocked&&[{selectors:(o={":after":d.isSize40||d.isSize48||d.isSize72||d.isSize100?{content:'""',width:"100%",height:M,backgroundColor:y,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[I.l]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],g.isBusy&&G(y),g.isDoNotDisturb&&G(C),g.isOffline&&G(E),(B||g.isBlocked)&&[{backgroundColor:v,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:M+" solid "+y,borderRadius:"50%",boxSizing:"border-box"}},i[I.l]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],B&&g.isAvailable&&P(M,p),B&&g.isBusy&&P(M,y),B&&g.isAway&&P(M,b),B&&g.isDoNotDisturb&&P(M,C),B&&g.isOffline&&P(M,E),B&&g.isOffline&&e.isOutOfOffice&&P(M,b)],presenceIcon:[A.presenceIcon,{color:v,fontSize:"6px",lineHeight:f.size12,verticalAlign:"top",selectors:(a={},a[I.l]={color:"Window"},a)},d.isSize56&&{fontSize:"8px",lineHeight:f.size16},d.isSize72&&{fontSize:u.small.fontSize,lineHeight:f.size20},d.isSize100&&{fontSize:u.medium.fontSize,lineHeight:f.size28},d.isSize120&&{fontSize:u.medium.fontSize,lineHeight:f.size32},g.isAway&&{position:"relative",left:B?void 0:"1px"},B&&g.isAvailable&&z(p),B&&g.isBusy&&z(y),B&&g.isAway&&z(b),B&&g.isDoNotDisturb&&z(C),B&&g.isOffline&&z(E),B&&g.isOffline&&e.isOutOfOffice&&z(b)]}}),void 0,{scope:"PersonaPresence"}),Y=n(18),V=n(95),W=[d.lightBlue,d.blue,d.darkBlue,d.teal,d.green,d.darkGreen,d.lightPink,d.pink,d.magenta,d.purple,d.orange,d.lightRed,d.darkRed,d.violet,d.gold,d.burgundy,d.warmGray,d.cyan,d.rust,d.coolGray],K=W.length;function Z(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"==typeof r?r:function(e){switch(e){case d.lightBlue:return"#4F6BED";case d.blue:return"#0078D4";case d.darkBlue:return"#004E8C";case d.teal:return"#038387";case d.lightGreen:case d.green:return"#498205";case d.darkGreen:return"#0B6A0B";case d.lightPink:return"#C239B3";case d.pink:return"#E3008C";case d.magenta:return"#881798";case d.purple:return"#5C2E91";case d.orange:return"#CA5010";case d.red:return"#EE1111";case d.lightRed:return"#D13438";case d.darkRed:return"#A4262C";case d.transparent:return"transparent";case d.violet:return"#8764B8";case d.gold:return"#986F0B";case d.burgundy:return"#750B1C";case d.warmGray:return"#7A7574";case d.cyan:return"#005B70";case d.rust:return"#8E562E";case d.coolGray:return"#69797E";case d.black:return"#1D1D1D";case d.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=d.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<<i)+(o>>8-i)}return t=W[n%K]}(n||t))}var J=Object(D.a)({cacheSize:100}),q=Object(C.c)((function(e,t,n,r,o,i){return Object(I.eb)(e,!i&&{backgroundColor:Z({text:r,initialsColor:t,primaryText:o}),color:n})})),X={size:u.size48,presence:A.none,imageAlt:""};var $=y.forwardRef((function(e,t){var n=Object(x.a)(X,e),r=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=y.useState(Y.c.notLoaded),o=r[0],i=r[1];return y.useEffect((function(){i(Y.c.notLoaded)}),[n]),[o,function(e){var n;i(e),null===(n=t)||void 0===n||n(e)}]}(n),o=r[0],i=r[1],a=ee(i),s=n.className,l=n.coinProps,c=n.showUnknownPersonaCoin,A=n.coinSize,d=n.styles,g=n.imageUrl,p=n.initialsColor,h=n.initialsTextColor,f=n.isOutOfOffice,I=n.onRenderCoin,C=void 0===I?a:I,E=n.onRenderPersonaCoin,b=void 0===E?C:E,v=n.onRenderInitials,B=void 0===v?te:v,M=n.presence,D=n.presenceTitle,Q=n.presenceColors,S=n.primaryText,k=n.showInitialsUntilImageLoads,T=n.text,j=n.theme,L=n.size,R=Object(w.j)(n,w.h),O=Object(w.j)(l||{},w.h),_=A?{width:A,height:A}:void 0,F=c,z={coinSize:A,isOutOfOffice:f,presence:M,presenceTitle:D,presenceColors:Q,size:L,theme:j},P=J(d,{theme:j,className:l&&l.className?l.className:s,size:L,coinSize:A,showUnknownPersonaCoin:c}),U=Boolean(o!==Y.c.loaded&&(k&&g||!g||o===Y.c.error||F));return y.createElement("div",Object(m.a)({role:"presentation"},R,{className:P.coin,ref:t}),L!==u.size8&&L!==u.size10&&L!==u.tiny?y.createElement("div",Object(m.a)({role:"presentation"},O,{className:P.imageArea,style:_}),U&&y.createElement("div",{className:q(P.initials,p,h,T,S,c),style:_,"aria-hidden":"true"},B(n,te)),!F&&b(n,a),y.createElement(H,Object(m.a)({},z))):n.presence?y.createElement(H,Object(m.a)({},z)):y.createElement(N.a,{iconName:"Contact",className:P.size10WithoutPresenceIcon}),n.children)}));$.displayName="PersonaCoinBase";var ee=function(e){return function(t){var n=t.coinSize,r=t.styles,o=t.imageUrl,i=t.imageAlt,a=t.imageShouldFadeIn,s=t.imageShouldStartVisible,l=t.theme,c=t.showUnknownPersonaCoin,u=t.size,A=void 0===u?X.size:u;if(!o)return null;var d=J(r,{theme:l,size:A,showUnknownPersonaCoin:c}),g=n||T[A];return y.createElement(V.a,{className:d.image,imageFit:Y.b.cover,src:o,width:g,height:g,alt:i,shouldFadeIn:a,shouldStartVisible:s,onLoadingStateChange:e})}},te=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,o=e.text,i=e.primaryText,a=e.theme;if(r)return y.createElement(N.a,{iconName:"Help"});var s=Object(Q.a)(a);return""!==(t=t||Object(S.a)(o||i||"",s,n))?y.createElement("span",null,t):y.createElement(N.a,{iconName:"Contact"})},ne={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},re=Object(M.a)($,(function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,a=r.fonts,s=k(e.size),l=Object(I.R)(ne,r),c=o||e.size&&T[e.size]||48;return{coin:[l.coin,a.medium,s.isSize8&&l.size8,s.isSize10&&l.size10,s.isSize16&&l.size16,s.isSize24&&l.size24,s.isSize28&&l.size28,s.isSize32&&l.size32,s.isSize40&&l.size40,s.isSize48&&l.size48,s.isSize56&&l.size56,s.isSize72&&l.size72,s.isSize100&&l.size100,s.isSize120&&l.size120,n],size10WithoutPresenceIcon:{fontSize:a.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[l.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:c,width:c},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[l.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0},c>10&&{height:c,width:c}],initials:[l.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:a.large.fontSize,fontWeight:I.k.semibold,lineHeight:48===c?46:c,height:c,selectors:(t={},t[I.l]=Object(m.a)(Object(m.a)({border:"1px solid WindowText"},Object(I.S)()),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:I.k.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},c<32&&{fontSize:a.xSmall.fontSize},c>=32&&c<40&&{fontSize:a.medium.fontSize},c>=40&&c<56&&{fontSize:a.mediumPlus.fontSize},c>=56&&c<72&&{fontSize:a.xLarge.fontSize},c>=72&&c<100&&{fontSize:a.xxLarge.fontSize},c>=100&&{fontSize:a.superLarge.fontSize}]}}),void 0,{scope:"PersonaCoin"}),oe=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderIcon=function(e){return e.activityPersonas?n._onRenderPersonaArray(e):n.props.activityIcon},n._onRenderActivityDescription=function(e){var t=n._getClassNames(e),r=e.activityDescription||e.activityDescriptionText;return r?y.createElement("span",{className:t.activityText},r):null},n._onRenderComments=function(e){var t=n._getClassNames(e),r=e.comments||e.commentText;return!e.isCompact&&r?y.createElement("div",{className:t.commentText},r):null},n._onRenderTimeStamp=function(e){var t=n._getClassNames(e);return!e.isCompact&&e.timeStamp?y.createElement("div",{className:t.timeStamp},e.timeStamp):null},n._onRenderPersonaArray=function(e){var t=n._getClassNames(e),r=null,o=e.activityPersonas;if(o[0].imageUrl||o[0].imageInitials){var i=[],a=o.length>1||e.isCompact,s=e.isCompact?3:4,l=void 0;e.isCompact&&(l={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),o.filter((function(e,t){return t<s})).forEach((function(e,n){i.push(y.createElement(re,Object(m.a)({},e,{key:e.key||n,className:t.activityPersona,size:a?u.size16:u.size32,style:l})))})),r=y.createElement("div",{className:t.personaContainer},i)}return r},n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.onRenderIcon,n=void 0===t?this._onRenderIcon:t,r=e.onRenderActivityDescription,o=void 0===r?this._onRenderActivityDescription:r,i=e.onRenderComments,a=void 0===i?this._onRenderComments:i,s=e.onRenderTimeStamp,l=void 0===s?this._onRenderTimeStamp:s,c=e.animateBeaconSignal,u=e.isCompact,A=this._getClassNames(this.props);return y.createElement("div",{className:A.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&&y.createElement("div",{className:A.activityTypeIcon},c&&u&&y.createElement("div",{className:A.pulsingBeacon}),n(this.props)),y.createElement("div",{className:A.activityContent},o(this.props,this._onRenderActivityDescription),a(this.props,this._onRenderComments),l(this.props,this._onRenderTimeStamp)))},t.prototype._getClassNames=function(e){return E(B(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)},t}(y.Component),ie=n(233),ae=n(33),se=n(234),le=n(138),ce=function(e){function t(t){var n=e.call(this,t)||this;return n._inputElement=y.createRef(),n._autoFillEnabled=!0,n._isComposing=!1,n._onCompositionStart=function(e){n._isComposing=!0,n._autoFillEnabled=!1},n._onCompositionUpdate=function(){Object(ie.a)()&&n._updateValue(n._getCurrentInputValue(),!0)},n._onCompositionEnd=function(e){var t=n._getCurrentInputValue();n._tryEnableAutofill(t,n.value,!1,!0),n._isComposing=!1,n._async.setTimeout((function(){n._updateValue(n._getCurrentInputValue(),!1)}),0)},n._onClick=function(){n.value&&""!==n.value&&n._autoFillEnabled&&(n._autoFillEnabled=!1)},n._onKeyDown=function(e){if(n.props.onKeyDown&&n.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case ae.a.backspace:n._autoFillEnabled=!1;break;case ae.a.left:case ae.a.right:n._autoFillEnabled&&(n.setState({inputValue:n.props.suggestedDisplayValue||""}),n._autoFillEnabled=!1);break;default:n._autoFillEnabled||-1!==n.props.enableAutofillOnKeyPress.indexOf(e.which)&&(n._autoFillEnabled=!0)}},n._onInputChanged=function(e){var t=n._getCurrentInputValue(e);if(n._isComposing||n._tryEnableAutofill(t,n.value,e.nativeEvent.isComposing),!Object(ie.a)()||!n._isComposing){var r=e.nativeEvent.isComposing,o=void 0===r?n._isComposing:r;n._updateValue(t,o)}},n._onChanged=function(){},n._updateValue=function(e,t){var r;if(e||e!==n.value){var o=n.props,i=o.onInputChange,a=o.onInputValueChange;i&&(e=(null===(r=i)||void 0===r?void 0:r(e,t))||""),n.setState({inputValue:e},(function(){var n;return null===(n=a)||void 0===n?void 0:n(e,t)}))}},Object(se.a)(n),n._async=new le.a(n),n.state={inputValue:t.defaultVisibleValue||""},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var n=e.updateValueInWillReceiveProps();if(null!==n&&n!==t.inputValue)return{inputValue:n}}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.suggestedDisplayValue,i=r.shouldSelectFullInputValueInComponentDidUpdate,a=0;if(!r.preventValueSelection)if(this._autoFillEnabled&&this.value&&o&&ue(o,this.value)){var s=!1;if(i&&(s=i()),s&&this._inputElement.current)this._inputElement.current.setSelectionRange(0,o.length,"backward");else{for(;a<this.value.length&&this.value[a].toLocaleLowerCase()===o[a].toLocaleLowerCase();)a++;a>0&&this._inputElement.current&&this._inputElement.current.setSelectionRange(a,o.length,"backward")}}else this._inputElement.current&&(null===n||this._autoFillEnabled||this._inputElement.current.setSelectionRange(n.start,n.end,n.dir))},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=Object(w.j)(this.props,w.o),t=Object(m.a)(Object(m.a)({},this.props.style),{fontFamily:"inherit"});return y.createElement("input",Object(m.a)({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e=this._inputElement.current;return e&&e.selectionStart!==this.value.length?{start:e.selectionStart||e.value.length,end:e.selectionEnd||e.value.length,dir:e.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,n,r){!n&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||r)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?function(e,t){var n=e;t&&e&&ue(t,n)&&(n=t);return n}(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"==typeof e?e:(console.warn("props.value of Autofill should be a string, but it is "+e+" with type of "+typeof e),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[ae.a.down,ae.a.up]},t}(y.Component);function ue(e,t){return!(!e||!t)&&0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var Ae,de=n(235),ge=Object(D.a)(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.styles,r=e.as,o=void 0===r?"div":r,i=e.className,a=ge(n,{className:i});return y.createElement(o,Object(m.a)({role:"status",className:a.root},Object(w.j)(this.props,w.h,["className"])),y.createElement(de.a,null,y.createElement("div",{className:a.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(y.Component),he=Object(M.a)(pe,(function(e){return{root:e.className,screenReaderText:I.ab}})),fe={none:0,all:1,inputOnly:2};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Ae||(Ae={}));var me,ye=n(236),Ie=n(242),Ce=n(96),Ee=n(142),be=n(15),ve=n(151),Be=n(289),Me=n(246),De=n(143),xe=n(650),we=n(35),Qe=n(133);var Se={},Ne=new Set,ke=["text","number","password","email","tel","url","search"],Te=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._mergedRef=Object(ye.a)(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,r=n.props,o=r.onActiveElementChanged,i=r.doNotAllowFocusEventToPropagate,a=r.stopFocusPropagation,s=r.onFocusNotification,l=r.onFocus,c=r.shouldFocusInnerElementWhenReceivedFocus,u=r.defaultTabbableElement,A=n._isImmediateDescendantOfZone(e.target);if(A)t=e.target;else for(var d=e.target;d&&d!==n._root.current;){if(Object(Ie.n)(d)&&n._isImmediateDescendantOfZone(d)){t=d;break}d=Object(Ce.a)(d,!1)}if(c&&e.target===n._root.current){var g=u&&"function"==typeof u&&u(n._root.current);g&&Object(Ie.n)(g)?(t=g,g.focus()):(n.focus(!0),n._activeElement&&(t=null))}var p=!n._activeElement;t&&t!==n._activeElement&&((A||p)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,p&&n._updateTabIndexes()),o&&o(n._activeElement,e),(a||i)&&e.stopPropagation(),l?l(e):s&&s()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,r=[];t&&t!==n._root.current;)r.push(t),t=Object(Ce.a)(t,!1);for(;r.length&&((t=r.pop())&&Object(Ie.n)(t)&&n._setActiveElement(t,!0),!Object(Ie.m)(t)););}},n._onKeyDown=function(e,t){if(!n._portalContainsElement(e.target)){var r=n.props,o=r.direction,i=r.disabled,a=r.isInnerZoneKeystroke,s=r.pagingSupportDisabled,l=r.shouldEnterInnerZone;if(!(i||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((l&&l(e)||a&&a(e))&&n._isImmediateDescendantOfZone(e.target)){var c=n._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!Object(Ie.l)(e.target))return;if(!n.focusElement(Object(Ie.j)(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case ae.a.space:if(n._tryInvokeClickForFocusable(e.target))break;return;case ae.a.left:if(o!==Ae.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusLeft(t)))break;return;case ae.a.right:if(o!==Ae.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusRight(t)))break;return;case ae.a.up:if(o!==Ae.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusUp()))break;return;case ae.a.down:if(o!==Ae.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusDown()))break;return;case ae.a.pageDown:if(!s&&n._moveFocusPaging(!0))break;return;case ae.a.pageUp:if(!s&&n._moveFocusPaging(!1))break;return;case ae.a.tab:if(n.props.allowTabKey||n.props.handleTabKey===fe.all||n.props.handleTabKey===fe.inputOnly&&n._isElementInput(e.target)){var u=!1;if(n._processingTabKey=!0,o!==Ae.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap"))u=(Object(Q.a)(t)?!e.shiftKey:e.shiftKey)?n._moveFocusLeft(t):n._moveFocusRight(t);else u=e.shiftKey?n._moveFocusUp():n._moveFocusDown();if(n._processingTabKey=!1,u)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case ae.a.home:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var A=n._root.current&&n._root.current.firstChild;if(n._root.current&&A&&n.focusElement(Object(Ie.j)(n._root.current,A,!0)))break;return;case ae.a.end:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var d=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Object(Ie.k)(n._root.current,d,!0,!0,!0)))break;return;case ae.a.enter:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,r){var o=n._focusAlignment.left||n._focusAlignment.x||0,i=Math.floor(r.top),a=Math.floor(t.bottom),s=Math.floor(r.bottom),l=Math.floor(t.top);return e&&i>a||!e&&s<l?o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},Object(se.a)(n),n._id=Object(Ee.a)("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1,n}return Object(m.c)(t,e),t.getOuterZones=function(){return Ne.size},t._onKeyDownCapture=function(e){e.which===ae.a.tab&&Ne.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Se[this._id]=this,e){this._windowElement=Object(be.a)(e);for(var n=Object(Ce.a)(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Object(Ie.m)(n)){this._isInnerZone=!0;break}n=Object(Ce.a)(n,!1)}this._isInnerZone||(Ne.add(this),this._windowElement&&1===Ne.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=Object(Ie.g)(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Se[this._id],this._isInnerZone||(Ne.delete(this),this._windowElement&&0===Ne.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,i=t.ariaDescribedBy,a=t.ariaLabelledBy,s=t.className,l=Object(w.j)(this.props,w.k),c=n||r||"div";this._evaluateFocusBeforeRender();var u=Object(I.Y)();return y.createElement(c,Object(m.a)({"aria-labelledby":a,"aria-describedby":i},l,o,{className:Object(ve.a)((me||(me=Object(Qe.b)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),me),s),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,u)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Se[t.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Object(Be.a)(this._root.current,this._activeElement)&&Object(Ie.n)(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(Object(Ie.j)(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Object(Ie.k)(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Object(Be.a)(e,n,!1);this._lastIndexPath=r?Object(Ie.d)(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(Object(Ie.m)(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e){if(e===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if("BUTTON"===e.tagName||"A"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName)return!1;if(this._isImmediateDescendantOfZone(e)&&"true"===e.getAttribute("data-is-focusable")&&"true"!==e.getAttribute("data-disable-click-on-enter"))return Object(Me.a)(e),!0;e=Object(Ce.a)(e,!1)}while(e!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Object(Ie.m)(e))return Se[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(Object(Ie.m)(t))return Se[t.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Ae.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?Object(Ie.j)(this._root.current,o):Object(Ie.k)(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Object(Ie.j)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Object(Ie.k)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Object(Q.a)(e),(function(r,o){var i=-1;return(Object(Q.a)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Ae.vertical?i=r.right-o.right:n||(i=-999999999),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Object(Q.a)(e),(function(r,o){var i=-1;return(Object(Q.a)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Ae.vertical?i=o.left-r.left:n||(i=-999999999),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Object(De.f)(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Object(Ie.j)(this._root.current,n):Object(Ie.k)(this._root.current,n)){var u=n.getBoundingClientRect(),A=Math.floor(u.top),d=Math.floor(c.bottom),g=Math.floor(u.bottom),p=Math.floor(c.top),h=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&A>d+l||!e&&g<p-l)break;h>-1&&(e&&A>a?(a=A,o=h,i=n):!e&&g<s?(s=g,o=h,i=n):(-1===o||h<=o)&&(o=h,i=n))}}while(n);var f=!1;if(i&&i!==this._activeElement)f=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Object(Ie.j)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Object(Ie.k)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return f},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Ae.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Object(Ce.a)(e,!1);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Object(Ie.m)(t))return t;t=Object(Ce.a)(t,!1)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Object(Be.a)(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Object(Ie.n)(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];Object(Ie.m)(r)?"true"===r.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0"))):(r.getAttribute&&"false"===r.getAttribute("data-is-focusable")&&r.setAttribute("tabindex","-1"),Object(Ie.n)(r)?this.props.disabled?r.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&ke.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Object(Ie.p)(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Object(xe.a)(e,this._root.current)},t.prototype._getDocument=function(){return Object(we.a)(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Ae.bidirectional,shouldRaiseClicks:!0},t}(y.Component),je=n(244),Le=Object(D.a)(),Re=function(e,t){y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},Oe=function(e,t){t.as;var n=t.disabled,r=t.target,o=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,Object(m.d)(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"==typeof e?"a"===e?Object(m.a)({target:r,href:n?void 0:o},i):"button"===e?Object(m.a)({type:"button",disabled:n},i):Object(m.a)(Object(m.a)({},i),{disabled:n}):Object(m.a)({target:r,href:o,disabled:n},i)},_e=y.forwardRef((function(e,t){var n=function(e,t){var n=e.as,r=e.className,o=e.disabled,i=e.href,a=e.onClick,s=e.styles,l=e.theme,c=e.underline,u=y.useRef(null),A=Object(L.a)(u,t);Re(e,u),Object(je.b)(u);var d=Le(s,{className:r,isButton:!i,isDisabled:o,isUnderlined:c,theme:l}),g=n||(i?"a":"button");return{state:{},slots:{root:g},slotProps:{root:Object(m.a)(Object(m.a)({},Oe(g,e)),{"aria-disabled":o,className:d.root,onClick:function(e){o?e.preventDefault():a&&a(e)},ref:A})}}}(e,t),r=n.slots,o=n.slotProps;return y.createElement(r.root,Object(m.a)({},o.root))}));_e.displayName="LinkBase";var Fe,ze={root:"ms-Link"},Pe=Object(M.a)(_e,(function(e){var t,n,r,o,i,a,s=e.className,l=e.isButton,c=e.isDisabled,u=e.isUnderlined,A=e.theme,d=A.semanticColors,g=d.link,p=d.linkHovered,h=d.disabledText,f=d.focusBorder,m=Object(I.R)(ze,A);return{root:[m.root,A.fonts.medium,{color:g,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:u?"underline":"none",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+f+" inset",outline:"1px auto "+f,selectors:(n={},n[I.l]={outline:"1px solid WindowText"},n)}},t[I.l]={borderBottom:"none"},t)},l&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(r={},r[I.l]={color:"LinkText",forcedColorAdjust:"none"},r)},!l&&{selectors:(o={},o[I.l]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},c&&["is-disabled",{color:h,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!c&&{selectors:{"&:active, &:hover, &:active:hover":{color:p,textDecoration:"underline",selectors:(i={},i[I.l]={color:"LinkText"},i)},"&:focus":{color:g,selectors:(a={},a[I.l]={color:"LinkText"},a)}}},m.root,s]}}),void 0,{scope:"Link"}),Ue=n(72),Ge=n(145),He=n(141),Ye=n(60),Ve=n(248),We=n(247),Ke=n(135),Ze=n(237),Je={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Fe||(Fe={}));var qe=n(240),Xe=n(241);function $e(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function et(e){return!(!e.subMenuProps&&!e.items)}function tt(e){return!(!e.isDisabled&&!e.disabled)}function nt(e){return null!==$e(e)?"menuitemcheckbox":"menuitem"}var rt,ot,it=n(239);!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(rt||(rt={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(ot||(ot={}));var at,st=n(243);function lt(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ct=((at={})[Je.topLeftEdge]=lt(rt.top,rt.left),at[Je.topCenter]=lt(rt.top),at[Je.topRightEdge]=lt(rt.top,rt.right),at[Je.topAutoEdge]=lt(rt.top,void 0,!0),at[Je.bottomLeftEdge]=lt(rt.bottom,rt.left),at[Je.bottomCenter]=lt(rt.bottom),at[Je.bottomRightEdge]=lt(rt.bottom,rt.right),at[Je.bottomAutoEdge]=lt(rt.bottom,void 0,!0),at[Je.leftTopEdge]=lt(rt.left,rt.top),at[Je.leftCenter]=lt(rt.left),at[Je.leftBottomEdge]=lt(rt.left,rt.bottom),at[Je.rightTopEdge]=lt(rt.right,rt.top),at[Je.rightCenter]=lt(rt.right),at[Je.rightBottomEdge]=lt(rt.right,rt.bottom),at);function ut(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function At(e,t){var n=[];return e.top<t.top&&n.push(rt.top),e.bottom>t.bottom&&n.push(rt.bottom),e.left<t.left&&n.push(rt.left),e.right>t.right&&n.push(rt.right),n}function dt(e,t){return e[rt[t]]}function gt(e,t,n){return e[rt[t]]=n,e}function pt(e,t){var n=Mt(t);return(dt(e,n.positiveEdge)+dt(e,n.negativeEdge))/2}function ht(e,t){return e>0?t:-1*t}function ft(e,t){return ht(e,dt(t,e))}function mt(e,t,n){return ht(n,dt(e,n)-dt(t,n))}function yt(e,t,n){var r=dt(e,t)-n;return e=gt(e,t,n),e=gt(e,-1*t,dt(e,-1*t)-r)}function It(e,t,n,r){return void 0===r&&(r=0),yt(e,n,dt(t,n)+ht(n,r))}function Ct(e,t,n){return ft(n,e)>ft(n,t)}function Et(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,n,r,o){void 0===o&&(o=0);var i=[rt.left,rt.right,rt.bottom,rt.top];Object(Q.a)()&&(i[0]*=-1,i[1]*=-1);for(var a=e,s=r.targetEdge,l=r.alignmentEdge,c=0;c<4;c++){if(Ct(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};i.splice(i.indexOf(s),1),i.length>0&&(i.indexOf(-1*s)>-1?s*=-1:(l=s,s=i.slice(-1)[0]),a=Bt(e,t,{targetEdge:s,alignmentEdge:l},o))}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}}(e,t,n,r,o));var u=At(e,n);if(l){if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var A=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:Bt(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(c,t,o,a);if(ut(A.elementRectangle,n))return A;c=bt(At(A.elementRectangle,n),c,n)}}else c=bt(u,c,n);return c}function bt(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];t.elementRectangle=It(t.elementRectangle,n,i)}return t}function vt(e,t,n){var r=Mt(t).positiveEdge;return yt(e,r,n-(pt(e,t)-dt(e,r)))}function Bt(e,t,n,r,o){var i;void 0===r&&(r=0);var a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?It(e,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=ht(-1*n,r);return yt(e,-1*n,dt(t,n)+o)}(e,t,s,r),a)?i=It(i,t,a):i=vt(i,l,pt(t,s));return i}function Mt(e){return e===rt.top||e===rt.bottom?{positiveEdge:rt.left,negativeEdge:rt.right}:{positiveEdge:rt.top,negativeEdge:rt.bottom}}function Dt(e,t,n){return n&&Math.abs(mt(e,n,t))>Math.abs(mt(e,n,-1*t))?-1*t:t}function xt(e){return Math.sqrt(e*e*2)}function wt(e,t,n){if(void 0===e&&(e=Je.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=Object(m.a)({},ct[e]);return Object(Q.a)()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ct[t]:r):r}function Qt(e,t,n){var r=pt(t,e),o=pt(n,e),i=Mt(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function St(e,t,n,r,o,i,a){var s=Bt(e,t,r,o,a);return ut(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Et(e,t,n,r,o,i,a)}function Nt(e,t,n){var r=-1*e.targetEdge,o=new st.a(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Dt(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Mt(r).positiveEdge,n);return i[rt[r]]=dt(t,r),i[rt[a]]=mt(t,o,a),{elementPosition:Object(m.a)({},i),closestEdge:Qt(e.targetEdge,t,o),targetEdge:r}}function kt(e,t){var n=t.targetRectangle,r=Mt(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=pt(n,t.targetEdge),s=new st.a(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new st.a(0,e,0,e);return Ct(l=vt(l=yt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ft(o,t.elementRectangle)),s,o)?Ct(l,s,i)||(l=It(l,s,i)):l=It(l,s,o),l}function Tt(e){var t=e.getBoundingClientRect();return new st.a(t.left,t.right,t.top,t.bottom)}function jt(e){return new st.a(e.left,e.right,e.top,e.bottom)}function Lt(e,t,n,r,o){var i=0,a=ct[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===rt.top?dt(e,a.targetEdge)-r.top-n:s===rt.bottom?r.bottom-dt(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function Rt(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new st.a(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Tt(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new st.a(i,s,a,l)}if(!ut(n,e))for(var c=0,u=At(n,e);c<u.length;c++){var A=u[c];n[rt[A]]=e[rt[A]]}}else n=new st.a(0,0,0,0);return n}(n,e.target),a=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Qt(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(wt(e.directionalHint,e.directionalHintForRTL,r),i,n,e.coverTarget,e.alignTargetEdge),s=St(Tt(t),i,n,a,o,e.directionalHintFixed,e.coverTarget);return Object(m.a)(Object(m.a)({},s),{targetRectangle:i})}function Ot(e,t,n,r,o){return{elementPosition:function(e,t,n,r,o,i,a){var s={},l=Tt(t),c=i?n:-1*n,u=rt[c],A=o||Mt(n).positiveEdge;return a||(A=Dt(e,A,r)),s[u]=mt(e,l,c),s[rt[A]]=mt(e,l,A),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function _t(e,t,n,r,o){var i=e.isBeakVisible&&e.beakWidth||0,a=xt(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var l=e.bounds?jt(e.bounds):new st.a(0,window.innerWidth-Object(De.g)(),0,window.innerHeight),c=Rt(s,n,l,r),u=Nt(c,kt(i,c),l);return Object(m.a)(Object(m.a)({},Ot(c,t,l,e.coverTarget,o)),{beakPosition:u})}function Ft(e,t,n,r){return function(e,t,n,r){var o=e.bounds?jt(e.bounds):new st.a(0,window.innerWidth-Object(De.g)(),0,window.innerHeight);return Ot(Rt(e,n,o,r),t,o,e.coverTarget)}(e,t,n,r)}function zt(e,t,n,r){return _t(e,t,n,r)}function Pt(e,t,n,r){return function(e,t,n,r){return _t(e,t,n,r,!0)}(e,t,n,r)}function Ut(e,t,n,r,o){void 0===n&&(n=0);var i=e,a=e,s=e,l=r?jt(r):new st.a(0,window.innerWidth-Object(De.g)(),0,window.innerHeight),c=s.left||s.x,u=s.top||s.y,A=s.right||c,d=s.bottom||u;return Lt(i.stopPropagation?new st.a(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==c&&void 0!==u?new st.a(c,A,u,d):Tt(a),t,n,l,o)}function Gt(e){return-1*e}function Ht(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}function Yt(e){var t=y.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function Vt(){var e=Yt((function(){return new le.a}));return y.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function Wt(e,t,n,r){var o=y.useRef(n);o.current=n,y.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return Object(it.a)(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}var Kt=y.createContext({window:"object"==typeof window?window:void 0}),Zt=function(){return y.useContext(Kt).window},Jt=function(){var e;return null===(e=y.useContext(Kt).window)||void 0===e?void 0:e.document},qt=function(e){return y.createElement(Kt.Provider,{value:e},e.children)};function Xt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Object(be.a)()&&setTimeout((function(){var e,n;null===(n=(e=t).focus)||void 0===n||n.call(e)}),0)}var $t,en=y.forwardRef((function(e,t){e=Object(m.a)({shouldRestoreFocus:!0},e);var n=y.useRef(),r=Object(L.a)(n,t);!function(e,t){var n=e.onRestoreFocus,r=void 0===n?Xt:n,o=y.useRef(),i=y.useRef(!1);y.useEffect((function(){return o.current=Object(we.a)().activeElement,Object(Ie.a)(t.current)&&(i.current=!0),function(){var e,t;null===(e=r)||void 0===e||e({originalElement:o.current,containsFocus:i.current,documentContainsFocus:(null===(t=Object(we.a)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Wt(t,"focus",y.useCallback((function(){i.current=!0}),[]),!0),Wt(t,"blur",y.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}(e,n);var o=e.role,i=e.className,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,c=e.style,u=e.children,A=e.onDismiss,d=function(e,t){var n=Vt(),r=y.useState(!1),o=r[0],i=r[1];return y.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}o!==r&&i(r)}})),function(){return n.dispose()}})),o}(e,n),g=y.useCallback((function(e){switch(e.which){case ae.a.escape:A&&(A(e),e.preventDefault(),e.stopPropagation())}}),[A]);return Wt(Zt(),"keydown",g),y.createElement("div",Object(m.a)({ref:r},Object(w.j)(e,w.h),{className:i,role:o,"aria-label":a,"aria-labelledby":s,"aria-describedby":l,onKeyDown:g,style:Object(m.a)({overflowY:d?"scroll":void 0,outline:"none"},c)}),u)}));function tn(e,t){var n,r=y.useRef(),o=y.useRef(null),i=Zt();if(!e||e!==r.current||"string"==typeof e){var a=null===(n=t)||void 0===n?void 0:n.current;if(e)if("string"==typeof e){var s=Object(we.a)(a);o.current=s?s.querySelector(e):null}else o.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;r.current=e}return[o,i]}var nn=(($t={})[rt.top]=I.a.slideUpIn10,$t[rt.bottom]=I.a.slideDownIn10,$t[rt.left]=I.a.slideLeftIn10,$t[rt.right]=I.a.slideRightIn10,$t),rn=Object(D.a)({disableCaching:!0}),on=0,an=0,sn={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ln=["role","aria-roledescription"],cn={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Je.bottomAutoEdge};function un(e,t,n,r,o){var i=y.useState(),a=i[0],s=i[1],l=y.useRef(0),c=Vt(),u=e.hidden,A=e.target,d=e.finalHeight,g=e.onPositioned,p=e.directionalHint;return y.useEffect((function(){if(!u){var i=c.requestAnimationFrame((function(){var i,c=!!A;if(t.current&&n.current&&(!c||r.current)){var u=Object(m.a)(Object(m.a)({},e),{target:r.current,bounds:o()}),p=d?Pt(u,t.current,n.current,a):zt(u,t.current,n.current,a);!a&&p||a&&p&&!function(e,t){return gn(e.elementPosition,t.elementPosition)&&gn(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}(a,p)&&l.current<5?(l.current++,s(p)):l.current>0&&(l.current=0,null===(i=g)||void 0===i||i(a))}}),n.current);return function(){return c.cancelAnimationFrame(i)}}}),[u,p,c,n,t,r,d,o,g,a,e,A]),a}var An=y.memo(y.forwardRef((function(e,t){var n=Object(x.a)(cn,e),r=n.styles,o=n.style,i=n.ariaLabel,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=n.isBeakVisible,u=n.children,A=n.beakWidth,d=n.calloutWidth,g=n.calloutMaxWidth,p=n.calloutMinWidth,h=n.finalHeight,f=n.hideOverflow,I=void 0===f?!!h:f,C=n.backgroundColor,E=n.calloutMaxHeight,b=n.onScroll,v=n.shouldRestoreFocus,B=void 0===v||v,M=n.target,D=n.hidden,Q=n.onLayerMounted,S=y.useRef(null),N=y.useRef(null),k=Object(L.a)(S,t),T=tn(n.target,N),j=T[0],R=T[1],O=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?cn.minPagePadding:o,a=e.target,s=y.useRef();return y.useCallback((function(){if(!s.current){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e={top:(e=Ht(t.current,n)).top+i,left:e.left+i,right:e.right-i,bottom:e.bottom-i,width:e.width-2*i,height:e.height-2*i}),s.current=e}return s.current}),[r,i,a,t,n])}(n,j,R),_=function(e,t,n){var r=e.beakWidth,o=e.coverTarget,i=e.directionalHint,a=e.directionalHintFixed,s=e.gapSpace,l=e.isBeakVisible,c=e.hidden,u=y.useState(),A=u[0],d=u[1],g=Vt(),p=t.current;return y.useEffect((function(){var e;if(A||c)c&&d(void 0);else if(a&&p){var u=(null!=s?s:0)+(l&&r?r:0);g.requestAnimationFrame((function(){t.current&&d(Ut(t.current,i,u,n(),o))}))}else d(null===(e=n())||void 0===e?void 0:e.height)}),[t,p,s,r,n,c,g,o,i,a,l,A]),A}(n,j,O),F=function(e,t){var n=e.finalHeight,r=e.hidden,o=y.useState(0),i=o[0],a=o[1],s=Vt(),l=y.useRef(),c=y.useCallback((function(){t.current&&n&&(l.current=s.requestAnimationFrame((function(){var e,r=null===(e=t.current)||void 0===e?void 0:e.lastChild;if(r){var o=r.scrollHeight-r.offsetHeight;a((function(e){return e+o})),r.offsetHeight<n?c():s.cancelAnimationFrame(l.current,t.current)}}),t.current))}),[s,t,n]);return y.useEffect((function(){r||c()}),[n,r,c]),i}(n,N),z=un(n,S,N,j,O),P=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,u=e.shouldDismissOnWindowFocus,A=e.preventDismissOnEvent,d=y.useRef(!1),g=Vt(),p=Yt([function(){d.current=!0},function(){d.current=!1}]),h=!!t;return y.useEffect((function(){var e=function(e){h&&!s&&f(e)},t=function(e){var t;l||null===(t=a)||void 0===t||t(e)},p=function(e){c||f(e)},f=function(e){var t,i=e.target,s=n.current&&!Object(Be.a)(n.current,i);s&&d.current?d.current=!1:(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||i!==r.current&&!Object(Be.a)(r.current,i)))&&(null===(t=a)||void 0===t||t(e))},m=function(e){var t,n;u&&((!A||A(e))&&(A||c)||(null===(t=o)||void 0===t?void 0:t.document.hasFocus())||null!==e.relatedTarget||null===(n=a)||void 0===n||n(e))},y=new Promise((function(n){g.setTimeout((function(){if(!i&&o){var r=[Object(it.a)(o,"scroll",e,!0),Object(it.a)(o,"resize",t,!0),Object(it.a)(o.document.documentElement,"focus",p,!0),Object(it.a)(o.document.documentElement,"click",p,!0),Object(it.a)(o,"blur",m,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[i,g,n,r,o,a,u,c,l,s,h,A]),p}(n,z,S,j,R),U=P[0],G=P[1];if(function(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=Vt(),a=!!t;y.useEffect((function(){if(!r&&o&&a&&n.current){var e=i.requestAnimationFrame((function(){return Object(Ie.c)(n.current)}),n.current);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}(n,z,N),y.useEffect((function(){var e;D||null===(e=Q)||void 0===e||e()}),[D]),!R)return null;var H=_?_+F:void 0,Y=E&&H&&E<H?E:H,V=I,W=c&&!!M,K=rn(r,{theme:n.theme,className:l,overflowYHidden:V,calloutWidth:d,positions:z,beakWidth:A,backgroundColor:C,calloutMaxWidth:g,calloutMinWidth:p}),Z=Object(m.a)(Object(m.a)(Object(m.a)({},o),{maxHeight:Y}),V&&{overflowY:"hidden"}),J=n.hidden?{visibility:"hidden"}:void 0;return y.createElement("div",{ref:k,className:K.container,style:J},y.createElement("div",Object(m.a)({},Object(w.j)(n,w.h,ln),{className:Object(ve.a)(K.root,z&&z.targetEdge&&nn[z.targetEdge]),style:z?z.elementPosition:sn,tabIndex:-1,ref:N}),W&&y.createElement("div",{className:K.beak,style:dn(z)}),W&&y.createElement("div",{className:K.beakCurtain}),y.createElement(en,Object(m.a)({},Object(w.j)(n,ln),{ariaLabel:i,onRestoreFocus:n.onRestoreFocus,ariaDescribedBy:a,ariaLabelledBy:s,className:K.calloutMain,onDismiss:n.onDismiss,onScroll:b,shouldRestoreFocus:B,style:Z,onMouseDown:U,onMouseUp:G}),u)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||Object(Ye.e)(e,t)}));function dn(e){var t,n,r=Object(m.a)({},null===(n=null===(t=e)||void 0===t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition);return r.top||r.bottom||r.left||r.right||(r.left=an,r.top=on),r}function gn(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function pn(e){return{height:e,width:e}}An.displayName="CalloutContentBase";var hn={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},fn=Object(M.a)(An,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=Object(I.R)(hn,n),A=n.semanticColors,d=n.effects;return{container:[u.container,{position:"relative"}],root:[u.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(t={},t[I.l]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},Object(I.L)(),r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[u.beak,{position:"absolute",backgroundColor:A.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},pn(a),s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:A.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[u.calloutMain,{backgroundColor:A.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:d.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),mn=n(90),yn=n(245),In=Object(D.a)(),Cn=Object(C.c)((function(e,t){return Object(I.K)(Object(m.a)(Object(m.a)({},e),{rtl:t}))})),En=y.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,i=e.applyThemeToBody,a=e.styles,s=In(a,{theme:r,applyTheme:o,className:n}),l=y.useRef(null);return function(e,t,n){var r=t.bodyThemed;y.useEffect((function(){if(e){var t=Object(we.a)(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(i,s,l),Object(je.b)(l),y.createElement(y.Fragment,null,function(e,t,n,r){var o=t.root,i=e.as,a=void 0===i?"div":i,s=e.dir,l=e.theme,c=Object(w.j)(e,w.h,["dir"]),u=function(e){var t=e.theme,n=e.dir,r=Object(Q.a)(t)?"rtl":"ltr",o=Object(Q.a)()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),A=u.rootDir,d=u.needsTheme,g=y.createElement(a,Object(m.a)({dir:A},c,{className:o,ref:Object(L.a)(n,r)}));d&&(g=y.createElement(yn.a,{settings:{theme:Cn(l,"rtl"===s)}},g));return g}(e,s,l,t))}));En.displayName="FabricBase";var bn,vn={fontFamily:"inherit"},Bn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Mn=Object(M.a)(En,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Object(I.R)(Bn,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":vn,"& input":vn,"& textarea":vn}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Dn=n(189),xn=n(649),wn={};function Qn(e){wn[e]&&wn[e].forEach((function(e){return e()}))}var Sn,Nn=Object(D.a)(),kn=y.forwardRef((function(e,t){var n=y.useState(),r=n[0],o=n[1],i=y.useRef(r);i.current=r;var a=y.useRef(null),s=Object(L.a)(a,t),l=Jt(),c=e.eventBubblingEnabled,u=e.styles,A=e.theme,d=e.className,g=e.children,p=e.hostId,h=e.onLayerDidMount,f=void 0===h?function(){}:h,I=e.onLayerMounted,C=void 0===I?function(){}:I,E=e.onLayerWillUnmount,b=e.insertFirst,v=Nn(u,{theme:A,className:d,isNotHost:!p}),B=function(){if(l){if(p)return l.getElementById(p);var e=bn;return e?l.querySelector(e):l.body}},M=function(){var e;null===(e=E)||void 0===e||e();var t=i.current;if(t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},D=function(){var e,t,n=B();if(l&&n){M();var r=l.createElement("div");r.className=v.root,Object(Dn.b)(r),Object(xn.a)(r,a.current),b?n.insertBefore(r,n.firstChild):n.appendChild(r),o(r),null===(e=C)||void 0===e||e(),null===(t=f)||void 0===t||t()}};return y.useLayoutEffect((function(){return D(),p&&function(e,t){wn[e]||(wn[e]=[]),wn[e].push(t)}(p,D),function(){M(),p&&function(e,t){if(wn[e]){var n=wn[e].indexOf(t);n>=0&&(wn[e].splice(n,1),0===wn[e].length&&delete wn[e])}}(p,D)}}),[p]),y.createElement("span",{className:"ms-layer",ref:s},r&&mn.createPortal(y.createElement(Mn,Object(m.a)({},!c&&function(){Sn||(Sn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return Sn[e]=Tn})));return Sn}(),{className:v.content}),g),r))}));kn.displayName="LayerBase";var Tn=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var jn={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ln=Object(M.a)(kn,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Object(I.R)(jn,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:I.F.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Rn=y.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,o=Object(m.d)(e,["layerProps","doNotLayer"]),i=y.createElement(fn,Object(m.a)({},o,{ref:t}));return r?i:y.createElement(Ln,Object(m.a)({},n),i)}));Rn.displayName="Callout";var On,_n=function(e){var t=e.item,n=e.hasIcons,r=e.classNames,o=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):y.createElement(N.a,Object(m.a)({},o,{className:r.icon})):null},Fn=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=$e(n);if(t){return y.createElement(N.a,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},zn=function(e){var t=e.item,n=e.classNames;return t.text||t.name?y.createElement("span",{className:n.label},t.text||t.name):null},Pn=function(e){var t=e.item,n=e.classNames;return t.secondaryText?y.createElement("span",{className:n.secondaryText},t.secondaryText):null},Un=function(e){var t=e.item,n=e.classNames,r=e.theme;return et(t)?y.createElement(N.a,Object(m.a)({iconName:Object(Q.a)(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},Gn=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();et(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;et(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return y.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:Fn,renderItemIcon:_n,renderItemName:zn,renderSecondaryText:Pn,renderSubMenuIcon:Un}))},t.prototype._renderLayout=function(e,t){return y.createElement(y.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(y.Component),Hn=Object(C.c)((function(e){return Object(I.db)({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Yn=Object(I.X)(0,I.s),Vn=Object(C.c)((function(){var e;return{selectors:(e={},e[I.l]=Object(m.a)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(I.S)()),e)}})),Wn=Object(C.c)((function(e){var t,n,r,o,i,a,s,l=e.semanticColors,c=e.fonts,u=e.palette,A=l.menuItemBackgroundHovered,d=l.menuItemTextHovered,g=l.menuItemBackgroundPressed,p=l.bodyDivider,h={item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:p,position:"relative"},root:[Object(I.Q)(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[I.l]=Object(m.a)({color:"GrayText",opacity:1},Object(I.S)()),t)},rootHovered:Object(m.a)({backgroundColor:A,color:d,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},Vn()),rootFocused:Object(m.a)({backgroundColor:u.white},Vn()),rootChecked:Object(m.a)({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},Vn()),rootPressed:Object(m.a)({backgroundColor:g,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},Vn()),rootExpanded:Object(m.a)({backgroundColor:g,color:l.bodyTextChecked},Vn()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:I.o.medium,width:I.o.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[Yn]={fontSize:I.o.large,width:I.o.large},n)},iconColor:{color:l.menuIcon,selectors:(r={},r[I.l]={color:"inherit"},r["$root:hover &"]={selectors:(o={},o[I.l]={color:"HighlightText"},o)},r["$root:focus &"]={selectors:(i={},i[I.l]={color:"HighlightText"},i)},r)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[I.l]={color:"HighlightText"},a)},subMenuIcon:{height:36,lineHeight:36,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:I.o.small,selectors:(s={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},s[Yn]={fontSize:I.o.medium},s[I.l]={color:"HighlightText"},s)},splitButtonFlexContainer:[Object(I.Q)(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Object(I.H)(h)})),Kn=n(48),Zn=Object(I.X)(0,I.s),Jn=Object(C.c)((function(e){var t;return Object(I.db)(Hn(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Zn]={right:32},t)},divider:{height:16,width:1}})})),qn={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},Xn=Object(C.c)((function(e,t,n,r,o,i,a,s,l,c,u,A){var d,g,p,h,f=Wn(e),m=Object(I.R)(qn,e);return Object(I.db)({item:[m.item,f.item,a],divider:[m.divider,f.divider,s],root:[m.root,f.root,r&&[m.isChecked,f.rootChecked],o&&f.anchorLink,n&&[m.isExpanded,f.rootExpanded],t&&[m.isDisabled,f.rootDisabled],!t&&!n&&[{selectors:(d={":hover":f.rootHovered,":active":f.rootPressed},d["."+Kn.a+" &:focus, ."+Kn.a+" &:focus:hover"]=f.rootFocused,d["."+Kn.a+" &:hover"]={background:"inherit;"},d)}],A],splitPrimary:[f.root,{width:"calc(100% - 28px)"},r&&["is-checked",f.rootChecked],(t||u)&&["is-disabled",f.rootDisabled],!(t||u)&&!r&&[{selectors:(g={":hover":f.rootHovered},g[":hover ~ ."+m.splitMenu]=f.rootHovered,g[":active"]=f.rootPressed,g["."+Kn.a+" &:focus, ."+Kn.a+" &:focus:hover"]=f.rootFocused,g["."+Kn.a+" &:hover"]={background:"inherit;"},g)}]],splitMenu:[m.splitMenu,f.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",f.rootExpanded],t&&["is-disabled",f.rootDisabled],!t&&!n&&[{selectors:(p={":hover":f.rootHovered,":active":f.rootPressed},p["."+Kn.a+" &:focus, ."+Kn.a+" &:focus:hover"]=f.rootFocused,p["."+Kn.a+" &:hover"]={background:"inherit;"},p)}]],anchorLink:f.anchorLink,linkContent:[m.linkContent,f.linkContent],linkContentMenu:[m.linkContentMenu,f.linkContent,{justifyContent:"center"}],icon:[m.icon,i&&f.iconColor,f.icon,l,t&&[m.isDisabled,f.iconDisabled]],iconColor:f.iconColor,checkmarkIcon:[m.checkmarkIcon,i&&f.checkmarkIcon,f.icon,l],subMenuIcon:[m.subMenuIcon,f.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[f.iconDisabled]],label:[m.label,f.label],secondaryText:[m.secondaryText,f.secondaryText],splitContainer:[f.splitButtonFlexContainer,!t&&!r&&[{selectors:(h={},h["."+Kn.a+" &:focus, ."+Kn.a+" &:focus:hover"]=f.rootFocused,h)}]],screenReaderText:[m.screenReaderText,f.screenReaderText,I.ab,{visibility:"hidden"}]})})),$n=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,A=e.primaryDisabled,d=e.className;return Xn(t,n,r,o,i,a,s,l,c,u,A,d)},er=Object(M.a)(Gn,$n,void 0,{scope:"ContextualMenuItem"}),tr=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.shouldComponentUpdate=function(e){return!Object(Ye.e)(e,this.props)},t}(y.Component),nr="ktp",rr="-",or=nr+rr,ir="data-ktp-target",ar="data-ktp-execute-target",sr="data-ktp-aria-target",lr="ktp-layer-id",cr=", ";function ur(e){var t=Object(y.useRef)();return Object(y.useEffect)((function(){t.current=e})),t.current}!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(On||(On={}));var Ar=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?On.PERSISTED_KEYTIP_ADDED:On.KEYTIP_ADDED;Ue.a.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ue.a.raise(this,On.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?On.PERSISTED_KEYTIP_REMOVED:On.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ue.a.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Ue.a.raise(this,On.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Ue.a.raise(this,On.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=Object(m.e)(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return Object(m.a)(Object(m.a)({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Ue.a.raise(this,On.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Object(Ee.a)()),{keytip:Object(m.a)({},e),uniqueID:t}},e._instance=new e,e}(),dr=n(139);function gr(e){return e.reduce((function(e,t){return e+rr+t.split("").join(rr)}),nr)}function pr(e,t){var n=t.length,r=Object(m.e)(t).pop(),o=Object(m.e)(e);return Object(dr.a)(o,n-1,r)}function hr(e){return"["+ir+'="'+gr(e)+'"]'}function fr(e){return"["+ar+'="'+e+'"]'}function mr(e){var t=" "+lr;return e.length?t+" "+gr(e):t}function yr(e){var t=y.useRef(),n=e.keytipProps?Object(m.a)({disabled:e.disabled},e.keytipProps):void 0,r=Yt(Ar.getInstance()),o=ur(e);y.useLayoutEffect((function(){var i,a;t.current&&n&&((null===(i=o)||void 0===i?void 0:i.keytipProps)!==e.keytipProps||(null===(a=o)||void 0===a?void 0:a.disabled)!==e.disabled)&&r.update(n,t.current)})),y.useLayoutEffect((function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}}),[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return n&&(i=function(e,t,n){var r=e.addParentOverflow(t),o=Object(We.a)(n,mr(r.keySequences)),i=Object(m.e)(r.keySequences);r.overflowSetSequence&&(i=pr(i,r.overflowSetSequence));var a=gr(i);return{ariaDescribedBy:o,keytipId:a}}(r,n,e.ariaDescribedBy)),i}var Ir=function(e){var t,n=e.children,r=yr(Object(m.d)(e,["children"])),o=r.keytipId,i=r.ariaDescribedBy;return n(((t={})[ir]=o,t[ar]=o,t["aria-describedby"]=i,t))},Cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=y.createRef(),t._getMemoizedMenuButtonKeytipProps=Object(C.c)((function(e){return Object(m.a)(Object(m.a)({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?y.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return Object(m.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,i=t.focusableElementIndex,a=t.totalItemCount,s=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,u=void 0===c?er:c,A=t.expandedMenuItemKey,d=t.onItemClick,g=t.openSubMenu,p=t.dismissSubMenu,h=t.dismissMenu,f=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(f=f||"nofollow noopener noreferrer");var I=et(n),C=Object(w.j)(n,w.a),E=tt(n),b=n.itemProps,v=n.ariaDescription,B=n.keytipProps;B&&I&&(B=this._getMemoizedMenuButtonKeytipProps(B)),v&&(this._ariaDescriptionId=Object(Ee.a)());var M=Object(We.a)(n.ariaDescribedBy,v?this._ariaDescriptionId:void 0,C["aria-describedby"]),D={"aria-describedby":M};return y.createElement("div",null,y.createElement(Ir,{keytipProps:n.keytipProps,ariaDescribedBy:M,disabled:E},(function(t){return y.createElement("a",Object(m.a)({},D,C,t,{ref:e._anchor,href:n.href,target:n.target,rel:f,className:r.root,role:"menuitem","aria-haspopup":I||void 0,"aria-expanded":I?n.key===A:void 0,"aria-posinset":i+1,"aria-setsize":a,"aria-disabled":tt(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:I?e._onItemKeyDown:void 0}),y.createElement(u,Object(m.a)({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:s&&d?d:void 0,hasIcons:l,openSubMenu:g,dismissSubMenu:p,dismissMenu:h,getSubmenuTarget:e._getSubmenuTarget},b)),e._renderAriaDescription(v,r.screenReaderText))})))},t}(tr),Er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=y.createRef(),t._getMemoizedMenuButtonKeytipProps=Object(C.c)((function(e){return Object(m.a)(Object(m.a)({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?y.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return Object(m.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,i=t.focusableElementIndex,a=t.totalItemCount,s=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,u=void 0===c?er:c,A=t.expandedMenuItemKey,d=t.onItemMouseDown,g=t.onItemClick,p=t.openSubMenu,h=t.dismissSubMenu,f=t.dismissMenu,I=$e(n),C=null!==I,E=nt(n),b=et(n),v=n.itemProps,B=n.ariaLabel,M=n.ariaDescription,D=Object(w.j)(n,w.e);delete D.disabled;var x=n.role||E;M&&(this._ariaDescriptionId=Object(Ee.a)());var Q=Object(We.a)(n.ariaDescribedBy,M?this._ariaDescriptionId:void 0,D["aria-describedby"]),S={className:r.root,onClick:this._onItemClick,onKeyDown:b?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return d?d(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":B,"aria-describedby":Q,"aria-haspopup":b||void 0,"aria-expanded":b?n.key===A:void 0,"aria-posinset":i+1,"aria-setsize":a,"aria-disabled":tt(n),"aria-checked":"menuitemcheckbox"!==x&&"menuitemradio"!==x||!C?void 0:!!I,"aria-selected":"menuitem"===x&&C?!!I:void 0,role:x,style:n.style},N=n.keytipProps;return N&&b&&(N=this._getMemoizedMenuButtonKeytipProps(N)),y.createElement(Ir,{keytipProps:N,ariaDescribedBy:Q,disabled:tt(n)},(function(t){return y.createElement("button",Object(m.a)({ref:e._btn},D,S,t),y.createElement(u,Object(m.a)({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:s&&g?g:void 0,hasIcons:l,openSubMenu:p,dismissSubMenu:h,dismissMenu:f,getSubmenuTarget:e._getSubmenuTarget},v)),e._renderAriaDescription(M,r.screenReaderText))}))},t}(tr),br=Object(D.a)(),vr=y.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=br(n,{theme:r,getClassNames:o,className:i});return y.createElement("span",{className:a.wrapper,ref:t},y.createElement("span",{className:a.divider}))}));vr.displayName="VerticalDividerBase";var Br,Mr=Object(M.a)(vr,(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Dr=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Object(C.c)((function(e){return Object(m.a)(Object(m.a)({},e),{hasMenu:!0})})),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===ae.a.enter?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?y.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(Object(m.a)(Object(m.a)({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(Object(m.a)(Object(m.a)({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new le.a(n),n._events=new Ue.a(n),n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,i=t.focusableElementIndex,a=t.totalItemCount,s=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,u=t.expandedMenuItemKey,A=et(n),d=n.keytipProps;d&&(d=this._getMemoizedMenuButtonKeytipProps(d));var g=n.ariaDescription;return g&&(this._ariaDescriptionId=Object(Ee.a)()),y.createElement(Ir,{keytipProps:d,disabled:tt(n)},(function(t){return y.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:nt(n),"aria-label":n.ariaLabel,className:r.splitContainer,"aria-disabled":tt(n),"aria-expanded":A?n.key===u:void 0,"aria-haspopup":!0,"aria-describedby":Object(We.a)(n.ariaDescribedBy,g?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":i+1,"aria-setsize":a,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,Object(m.a)(Object(m.a)({},n),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,r,o,s,l),e._renderSplitDivider(n),e._renderSplitIconButton(n,r,o,t),e._renderAriaDescription(g,r.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?er:a,l=i.onItemClick,c={key:e.key,disabled:tt(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},u=e.itemProps;return y.createElement("button",Object(m.a)({},Object(w.j)(c,w.e)),y.createElement(s,Object(m.a)({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:r&&l?l:void 0,hasIcons:o},u)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Jn;return y.createElement(Mr,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var o=this.props,i=o.contextualMenuItemAs,a=void 0===i?er:i,s=o.onItemMouseLeave,l=o.onItemMouseDown,c=o.openSubMenu,u=o.dismissSubMenu,A=o.dismissMenu,d={onClick:this._onIconItemClick,disabled:tt(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},g=Object(m.a)(Object(m.a)({},Object(w.j)(d,w.e)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:s?s.bind(this,e):void 0,onMouseDown:function(t){return l?l(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-hidden":!0}),p=e.itemProps;return y.createElement("button",Object(m.a)({},g),y.createElement(a,Object(m.a)({componentRef:e.componentRef,item:d,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:u,dismissMenu:A,getSubmenuTarget:this._getSubmenuTarget},p)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(tr),xr=n(238),wr=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return Object(m.c)(t,e),t.prototype._updateComposedComponentRef=function(e){this._composedComponentInstance=e,e?this._hoisted=Object(xr.a)(this,e):this._hoisted&&Object(xr.b)(this,this._hoisted)},t}(y.Component),Qr=n(140);!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Br||(Br={}));var Sr,Nr,kr=[479,639,1023,1365,1919,99999999];function Tr(e){Sr=e}function jr(e){var t=Object(be.a)(e);t&&Or(t)}function Lr(){return Sr||Nr||Br.large}function Rr(e){var t,n=((t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=Or(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new Ue.a(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:Lr()},n}return Object(m.c)(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Br.unknown?null:y.createElement(e,Object(m.a)({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(wr)).contextType=Kt,t);return Object(Qr.a)(e,n)}function Or(e){var t=Br.small;if(e){try{for(;e.innerWidth>kr[t];)t++}catch(e){t=Lr()}Nr=t}else{if(void 0===Sr)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=Sr}return t}var _r=function(e){var t=y.useState(Lr),n=t[0],r=t[1],o=y.useCallback((function(){var t=Or(Object(be.a)(e.current));n!==t&&r(t)}),[e,n]);return Wt(Zt(),"resize",o),y.useEffect((function(){o()}),[]),n},Fr=y.createContext({}),zr=Object(D.a)(),Pr=Object(D.a)(),Ur={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Je.bottomAutoEdge,beakWidth:16};function Gr(e){return e.subMenuProps?e.subMenuProps.items:e.items}function Hr(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}var Yr=Object(C.c)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return I.I.apply(void 0,Object(m.e)([t,$n],e))}}));var Vr=y.forwardRef((function(e,t){var n=Object(x.a)(Ur,e),r=(n.ref,Object(m.d)(n,["ref"])),o=y.useRef(null),i=Object(L.a)(o,t),a=tn(r.target,i),s=a[0],l=a[1],c=function(e){var t=e.hidden,n=y.useState(),r=n[0],o=n[1],i=y.useState(),a=i[0],s=i[1],l=y.useState(),c=l[0],u=l[1],A=y.useCallback((function(){u(void 0),o(void 0),s(void 0)}),[]),d=y.useCallback((function(e,t,n){var i=e.key;r!==i&&(t.focus(),u(n),o(i),s(t))}),[r]);return y.useEffect((function(){t&&A()}),[t,A]),[r,a,c,d,A]}(r),u=c[0],A=c[1],d=c[2],g=c[3],p=c[4],h=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=y.useRef(!t),o=y.useRef(!1);y.useEffect((function(){r.current=!t,o.current=!n&&(!t&&o.current)}),[t,n]);var i=y.useCallback((function(){t&&(r.current=!0)}),[t]);return[r,o,i]}(r),f=h[0],I=h[1],C=h[2],E=_r(i);return function(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,i=e.onMenuOpened,a=ur(r),s=y.useRef(i),l=y.useRef(o),c=y.useRef(e);s.current=i,l.current=o,c.current=e,y.useEffect((function(){var e,t,n,o;r&&!1===a?null===(t=(e=l).current)||void 0===t||t.call(e,c.current):r||!1===a||null===(o=(n=s).current)||void 0===o||o.call(n,c.current)}),[r,a]),y.useEffect((function(){return function(){var e,t;return null===(t=(e=l).current)||void 0===t?void 0:t.call(e,c.current)}}),[])}(r),y.createElement(Wr,Object(m.a)({},r,{hoisted:{hostElement:i,targetRef:s,targetWindow:l,expandedMenuItemKey:u,submenuTarget:A,expandedByMouseClick:d,openSubMenu:g,closeSubMenu:p,shouldUpdateFocusOnMouseEvent:f,gotMouseMove:I,onMenuFocusCapture:C},responsiveMode:E}))}));Vr.displayName="ContextualMenuBase";var Wr=function(e){function t(t){var n=e.call(this,t)||this;return n._mounted=!1,n.dismiss=function(e,t){var r=n.props.onDismiss;r&&r(e,t)},n._tryFocusPreviousActiveElement=function(e){e&&e.containsFocus&&n._previousActiveElement&&n._previousActiveElement.focus&&n._previousActiveElement.focus()},n._onRenderMenuList=function(e,t){var r=0,o=e.ariaLabel,i=e.items,a=e.labelElementId,s=e.totalItemCount,l=e.hasCheckmarks,c=e.hasIcons,u=e.role;return y.createElement("ul",{className:n._classNames.list,"aria-label":o,"aria-labelledby":a,onKeyDown:n._onKeyDown,onKeyUp:n._onKeyUp,role:null!=u?u:"menu"},i.map((function(e,t){var o=n._renderMenuItem(e,t,r,s,l,c);if(e.itemType!==Fe.Divider&&e.itemType!==Fe.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=i}return o})))},n._renderMenuItem=function(e,t,r,o,i,a){var s,l,c=[],u=e.iconProps||{iconName:"None"},A=e.getItemClassNames,d=e.itemProps,g=d?d.styles:void 0,p=n.props.hoisted.expandedMenuItemKey,h=e.itemType===Fe.Divider?e.className:void 0,f=e.submenuIconProps?e.submenuIconProps.className:"";if(A)l=A(n.props.theme,tt(e),p===e.key,!!$e(e),!!e.href,"None"!==u.iconName,e.className,h,u.className,f,e.primaryDisabled);else{var m={theme:n.props.theme,disabled:tt(e),expanded:p===e.key,checked:!!$e(e),isAnchorLink:!!e.href,knownIcon:"None"!==u.iconName,itemClassName:e.className,dividerClassName:h,iconClassName:u.className,subMenuClassName:f,primaryDisabled:e.primaryDisabled};l=Pr(Yr(null===(s=n._classNames.subComponentStyles)||void 0===s?void 0:s.menuItem,g),m)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=Fe.Divider),e.itemType){case Fe.Divider:c.push(n._renderSeparator(t,l));break;case Fe.Header:c.push(n._renderSeparator(t,l));var I=n._renderHeaderMenuItem(e,l,t,i,a);c.push(n._renderListItem(I,e.key||t,l,e.title));break;case Fe.Section:c.push(n._renderSectionItem(e,l,t,i,a));break;default:var C=n._renderNormalItem(e,l,t,r,o,i,a);c.push(n._renderListItem(C,e.key||t,l,e.title))}return y.createElement(y.Fragment,{key:e.key},c)},n._defaultMenuItemRenderer=function(e){var t=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return n._renderMenuItem(e,t,r,o,i,a)},n._onKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t=e.which===ae.a.escape&&(Object(qe.a)()||Object(Xe.a)());return n._keyHandler(e,n._shouldHandleKeyDown,t)},n._shouldHandleKeyDown=function(e){return e.which===ae.a.escape||n._shouldCloseSubMenu(e)||e.which===ae.a.up&&(e.altKey||e.metaKey)},n._onKeyUp=function(e){return n._keyHandler(e,n._shouldHandleKeyUp,!0)},n._shouldHandleKeyUp=function(e){var t=n._lastKeyDownWasAltOrMeta&&n._isAltOrMeta(e);return n._lastKeyDownWasAltOrMeta=!1,!!t&&!(Object(Xe.a)()||Object(qe.a)())},n._keyHandler=function(e,t,r){var o=!1;return t(e)&&(n.dismiss(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},n._shouldCloseSubMenu=function(e){var t=Object(Q.a)(n.props.theme)?ae.a.right:ae.a.left;return!(e.which!==t||!n.props.isSubMenu)&&(n._adjustedFocusZoneProps.direction===Ae.vertical||!!n._adjustedFocusZoneProps.checkForNoWrap&&!Object(Ie.p)(e.target,"data-no-horizontal-wrap"))},n._onMenuKeyDown=function(e){var t=n._onKeyDown(e),r=n.props.hoisted.hostElement;if(!t&&r.current){var o=!(!e.altKey&&!e.metaKey),i=e.which===ae.a.up,a=e.which===ae.a.down;if(!o&&(i||a)){var s=i?Object(Ie.h)(r.current,r.current.lastChild,!0):Object(Ie.e)(r.current,r.current.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onItemMouseEnterBase=function(e,t,r){n._shouldIgnoreMouseEvent()||n._updateFocusOnMouseEvent(e,t,r)},n._onItemMouseMoveBase=function(e,t,r){var o,i=t.currentTarget,a=n.props.hoisted,s=a.shouldUpdateFocusOnMouseEvent,l=a.gotMouseMove,c=a.targetWindow;s.current&&(l.current=!0,n._isScrollIdle&&void 0===n._enterTimerId&&i!==(null===(o=c)||void 0===o?void 0:o.document.activeElement)&&n._updateFocusOnMouseEvent(e,t,r))},n._onMouseItemLeave=function(e,t){var r,o=n.props.hoisted,i=o.expandedMenuItemKey,a=o.hostElement;if(!n._shouldIgnoreMouseEvent()&&(void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0),void 0===i))if(a.current.setActive)try{a.current.setActive()}catch(e){}else null===(r=a.current)||void 0===r||r.focus()},n._onItemMouseDown=function(e,t){e.onMouseDown&&e.onMouseDown(e,t)},n._onItemClick=function(e,t){n._onItemClickBase(e,t,t.currentTarget)},n._onItemClickBase=function(e,t,r){var o=Gr(e),i=n.props.hoisted,a=i.expandedMenuItemKey,s=i.openSubMenu;n._cancelSubMenuTimer(),et(e)||o&&o.length?e.key!==a&&s(e,r,0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType):n._executeItemClick(e,t),t.stopPropagation(),t.preventDefault()},n._onAnchorClick=function(e,t){n._executeItemClick(e,t),t.stopPropagation()},n._executeItemClick=function(e,t){if(!e.disabled&&!e.isDisabled){var r=!1;e.onClick?r=!!e.onClick(t,e):n.props.onItemClick&&(r=!!n.props.onItemClick(t,e)),!r&&t.defaultPrevented||n.dismiss(t,!0)}},n._onItemKeyDown=function(e,t){var r=Object(Q.a)(n.props.theme)?ae.a.left:ae.a.right;e.disabled||t.which!==r&&t.which!==ae.a.enter&&(t.which!==ae.a.down||!t.altKey&&!t.metaKey)||(n.props.hoisted.openSubMenu(e,t.currentTarget,!1),t.preventDefault())},n._cancelSubMenuTimer=function(){void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0)},n._onSubMenuDismiss=function(e,t){t?n.dismiss(e,t):n._mounted&&n.props.hoisted.closeSubMenu()},n._onPointerAndTouchEvent=function(e){n._cancelSubMenuTimer()},n._async=new le.a(n),n._events=new Ue.a(n),Object(se.a)(n),Object(He.a)("ContextualMenu",t,{getMenuClassNames:"styles"}),n.state={contextualMenuItems:void 0,subMenuId:Object(Ee.a)("ContextualMenu")},n._id=t.id||Object(Ee.a)("ContextualMenu"),n._isScrollIdle=!0,n}return Object(m.c)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!Object(Ye.e)(this.props,e)||!Object(Ye.e)(this.state,t))},t.prototype.componentDidMount=function(){this._mounted=!0},t.prototype.componentWillUnmount=function(){this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},t.prototype.render=function(){var e=this,t=this.props.isBeakVisible,n=this.props,r=n.items,o=n.labelElementId,i=n.id,a=n.className,s=n.beakWidth,l=n.directionalHint,c=n.directionalHintForRTL,u=n.alignTargetEdge,A=n.gapSpace,d=n.coverTarget,g=n.ariaLabel,p=n.doNotLayer,h=n.target,f=n.bounds,I=n.useTargetWidth,C=n.useTargetAsMinWidth,E=n.directionalHintFixed,b=n.shouldFocusOnMount,v=n.shouldFocusOnContainer,B=n.title,M=n.styles,D=n.theme,x=n.calloutProps,w=n.onRenderSubMenu,Q=void 0===w?this._onRenderSubMenu:w,S=n.onRenderMenuList,N=void 0===S?this._onRenderMenuList:S,k=n.focusZoneProps,T=n.getMenuClassNames,j=n.hoisted,L=j.expandedMenuItemKey,R=j.targetRef,O=j.onMenuFocusCapture,_=j.hostElement;this._classNames=T?T(D,a):zr(M,{theme:D,className:a});var F=function e(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.iconProps)return!0;if(o.itemType===Fe.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(r);this._adjustedFocusZoneProps=Object(m.a)(Object(m.a)({},k),{className:this._classNames.root,isCircularNavigation:!0,handleTabKey:fe.all,direction:this._getFocusZoneDirection()});var z,P=Hr(r),U=L&&!0!==this.props.hidden?this._getSubmenuProps():null;t=void 0===t?this.props.responsiveMode<=Br.medium:t;var G=R.current;if((I||C)&&G&&G.offsetWidth){var H=G.getBoundingClientRect().width-2;I?z={width:H}:C&&(z={minWidth:H})}if(r&&r.length>0){for(var Y=0,V=0,W=r;V<W.length;V++){var K=W[V];if(K.itemType!==Fe.Divider&&K.itemType!==Fe.Header){var Z=K.customOnRenderListLength?K.customOnRenderListLength:1;Y+=Z}}var J=this._classNames.subComponentStyles?this._classNames.subComponentStyles.callout:void 0;return y.createElement(Fr.Consumer,null,(function(n){return y.createElement(Rn,Object(m.a)({styles:J,onRestoreFocus:e._tryFocusPreviousActiveElement},x,{target:h||n.target,isBeakVisible:t,beakWidth:s,directionalHint:l,directionalHintForRTL:c,gapSpace:A,coverTarget:d,doNotLayer:p,className:Object(ve.a)("ms-ContextualMenu-Callout",x&&x.className),setInitialFocus:b,onDismiss:e.props.onDismiss||n.onDismiss,onScroll:e._onScroll,bounds:f,directionalHintFixed:E,alignTargetEdge:u,hidden:e.props.hidden||n.hidden,ref:_}),y.createElement("div",{style:z,id:i,className:e._classNames.container,tabIndex:v?0:-1,onKeyDown:e._onMenuKeyDown,onKeyUp:e._onKeyUp,onFocusCapture:O},B&&y.createElement("div",{className:e._classNames.title}," ",B," "),r&&r.length?e._renderFocusZone(N({ariaLabel:g,items:r,totalItemCount:Y,hasCheckmarks:P,hasIcons:F,defaultMenuItemRenderer:e._defaultMenuItemRenderer,labelElementId:o},e._onRenderMenuList)):null,U&&Q(U,e._onRenderSubMenu)))}))}return null},t.prototype._getFocusZoneDirection=function(){var e=this.props.focusZoneProps;return e&&void 0!==e.direction?e.direction:Ae.vertical},t.prototype._onRenderSubMenu=function(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")},t.prototype._renderFocusZone=function(e){var t=this.props.focusZoneAs,n=void 0===t?Te:t;return y.createElement(n,Object(m.a)({},this._adjustedFocusZoneProps),e)},t.prototype._renderSectionItem=function(e,t,n,r,o){var i=this,a=e.sectionProps;if(a){var s,l;if(a.title){var c=this._id+a.title.replace(/\s/g,""),u={key:"section-"+a.title+"-title",itemType:Fe.Header,text:a.title,id:c};l={role:"group","aria-labelledby":c},s=this._renderHeaderMenuItem(u,t,n,r,o)}return a.items&&a.items.length>0?y.createElement("li",{role:"presentation",key:a.key||e.key||"section-"+n},y.createElement("div",Object(m.a)({},l),y.createElement("ul",{className:this._classNames.list,role:"presentation"},a.topDivider&&this._renderSeparator(n,t,!0,!0),s&&this._renderListItem(s,e.key||n,t,e.title),a.items.map((function(e,t){return i._renderMenuItem(e,t,t,a.items.length,r,o)})),a.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,r){return y.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,r){return r||e>0?y.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,r,o,i,a){return e.onRender?e.onRender(Object(m.a)({"aria-posinset":r+1,"aria-setsize":o},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,r,o,i,a):e.split&&et(e)?this._renderSplitButton(e,t,n,r,o,i,a):this._renderButtonItem(e,t,n,r,o,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,r,o){var i=this.props.contextualMenuItemAs,a=void 0===i?er:i,s=e.itemProps,l=e.id,c=s&&Object(w.j)(s,w.h);return y.createElement("div",Object(m.a)({id:l,className:this._classNames.header},c,{style:e.style}),y.createElement(a,Object(m.a)({item:e,classNames:t,index:n,onCheckmarkClick:r?this._onItemClick:void 0,hasIcons:o},s)))},t.prototype._renderAnchorMenuItem=function(e,t,n,r,o,i,a){var s=this.props,l=s.contextualMenuItemAs,c=s.hoisted,u=c.expandedMenuItemKey,A=c.openSubMenu;return y.createElement(Cr,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:o,hasCheckmarks:i,hasIcons:a,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:u,openSubMenu:A,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,r,o,i,a){var s=this.props,l=s.contextualMenuItemAs,c=s.hoisted,u=c.expandedMenuItemKey,A=c.openSubMenu;return y.createElement(Er,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:o,hasCheckmarks:i,hasIcons:a,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:u,openSubMenu:A,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,r,o,i,a){var s=this.props,l=s.contextualMenuItemAs,c=s.hoisted,u=c.expandedMenuItemKey,A=c.openSubMenu;return y.createElement(Dr,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:o,hasCheckmarks:i,hasIcons:a,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:A,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===ae.a.alt||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this.props.hoisted.gotMouseMove.current},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var r=this,o=n||t.currentTarget,i=this.props,a=i.subMenuHoverDelay,s=void 0===a?250:a,l=i.hoisted,c=l.expandedMenuItemKey,u=l.openSubMenu;e.key!==c&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===c&&o.focus(),et(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){o.focus(),u(e,o,!0),r._enterTimerId=void 0}),s)):this._enterTimerId=this._async.setTimeout((function(){r._onSubMenuDismiss(t),o.focus(),r._enterTimerId=void 0}),s))},t.prototype._getSubmenuProps=function(){var e=this.props.hoisted,t=e.submenuTarget,n=e.expandedMenuItemKey,r=e.expandedByMouseClick,o=this._findItemByKey(n),i=null;return o&&(i={items:Gr(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:r,directionalHint:Object(Q.a)(this.props.theme)?Je.leftTopEdge:Je.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&Object(Ye.a)(i,o.subMenuProps)),i},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===Fe.Section&&o.sectionProps){var i=this._findItemByKeyFromItems(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}},t}(y.Component),Kr={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function Zr(e){return y.createElement(Jr,Object(m.a)({},e))}var Jr=Object(M.a)(Vr,(function(e){var t=e.className,n=e.theme,r=Object(I.R)(Kr,n),o=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:I.k.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}}),(function(){return{onRenderSubMenu:Zr}}),{scope:"ContextualMenu"}),qr=Jr;qr.displayName="ContextualMenu";var Xr,$r={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},eo=Object(C.c)((function(e,t,n,r,o,i,a,s,l,c,u){var A,d,g=Object(I.R)($r,e||{}),p=c&&!u;return Object(I.db)({root:[g.msButton,t.root,r,l&&["is-checked",t.rootChecked],p&&["is-expanded",t.rootExpanded,{selectors:(A={},A[":hover ."+g.msButtonIcon]=t.iconExpandedHovered,A[":hover ."+g.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,A[":hover"]=t.rootExpandedHovered,A)}],s&&[$r.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!p&&!l&&{selectors:(d={":hover":t.rootHovered},d[":hover ."+g.msButtonLabel]=t.labelHovered,d[":hover ."+g.msButtonIcon]=t.iconHovered,d[":hover ."+g.msButtonDescription]=t.descriptionHovered,d[":hover ."+g.msButtonMenuIcon]=t.menuIconHovered,d[":focus"]=t.rootFocused,d[":active"]=t.rootPressed,d[":active ."+g.msButtonIcon]=t.iconPressed,d[":active ."+g.msButtonDescription]=t.descriptionPressed,d[":active ."+g.msButtonMenuIcon]=t.menuIconPressed,d)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[g.msButtonFlexContainer,t.flexContainer],textContainer:[g.msButtonTextContainer,t.textContainer],icon:[g.msButtonIcon,o,t.icon,p&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[g.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[g.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!p&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},p&&["is-expanded",t.menuIconExpanded]],description:[g.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[g.msButtonScreenReaderText,t.screenReaderText]})})),to=Object(C.c)((function(e,t,n,r,o){return{root:Object(I.eb)(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked]),splitButtonContainer:Object(I.eb)(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:Object(I.eb)(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:Object(I.eb)(e.splitButtonFlexContainer),divider:Object(I.eb)(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}})),no=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=y.createRef(),n._splitButtonContainer=y.createRef(),n._mergedRef=Object(ye.a)(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=Object(C.c)((function(e){return Object(m.a)(Object(m.a)({},e),{hasMenu:!0})})),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var o=r.className,i=r.imageProps,a=Object(m.d)(r,["className","imageProps"]);if(r.styles)return y.createElement(N.a,Object(m.a)({className:Object(ve.a)(n._classNames.icon,o),imageProps:i},a));if(r.iconName)return y.createElement(Ke.a,Object(m.a)({className:Object(ve.a)(n._classNames.icon,o)},a));if(i)return y.createElement(Ze.a,Object(m.a)({className:Object(ve.a)(n._classNames.icon,o),imageProps:i},a))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,o=e.secondaryText,i=void 0===o?n.props.description:o,a=e.onRenderText,s=void 0===a?n._onRenderText:a,l=e.onRenderDescription,c=void 0===l?n._onRenderDescription:l;return t||"string"==typeof r||i?y.createElement("span",{className:n._classNames.textContainer},s(n.props,n._onRenderText),c(n.props,n._onRenderDescription)):[s(n.props,n._onRenderText),c(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"==typeof t&&(e=t),n._hasText()?y.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"==typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?y.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?y.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return y.createElement(Ke.a,Object(m.a)({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.persistMenu,r=n.state.menuHidden,o=n.props.menuAs||qr;return e.ariaLabel||e.labelElementId||!n._hasText()||(e=Object(m.a)(Object(m.a)({},e),{labelElementId:n._labelId})),y.createElement(o,Object(m.a)({id:n._labelId+"-menu",directionalHint:Je.bottomLeftEdge},e,{shouldFocusOnContainer:n._menuShouldFocusOnContainer,shouldFocusOnMount:n._menuShouldFocusOnMount,hidden:t?r:void 0,className:Object(ve.a)("ms-BaseButton-menuhost",e.className),target:n._isSplitButton?n._splitButtonContainer.current:n._buttonElement.current,onDismiss:n._onDismissMenu}))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&Object(xe.a)(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu(),!n._processingTouch&&n.props.onClick?n.props.onClick(e):n._processingTouch&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||e.which!==ae.a.enter&&e.which!==ae.a.space?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===ae.a.enter||e.which===ae.a.space?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var t=e.which===ae.a.up,r=e.which===ae.a.down;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var o=n.props.onMenuClick;o&&o(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(!e.altKey&&!e.metaKey&&(t||r))if(!n.state.menuHidden&&n.props.menuProps)(void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props.onMenuClick;if(t&&t(e,n.props),!e.defaultPrevented){var r=0!==e.nativeEvent.detail||"mouse"===e.nativeEvent.pointerType;n._onToggleMenu(r),e.preventDefault(),e.stopPropagation()}},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),Object(Ge.a)("BaseButton",t,["menuProps","onClick"],"split",n.props.split),Object(He.a)("BaseButton",t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=Object(Ee.a)(),n._descriptionId=Object(Ee.a)(),n._ariaDescriptionId=Object(Ee.a)(),n.state={menuHidden:!0},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,A=t.href,d=t.iconProps,g=t.menuIconProps,p=t.styles,h=t.checked,f=t.variantClassName,m=t.theme,y=t.toggle,I=t.getClassNames,C=t.role,E=this.state.menuHidden,b=a||l;this._classNames=I?I(m,i,f,d&&d.className,g&&g.className,b,h,!E,!!this.props.menuProps,this.props.split,!!s):eo(m,p,i,f,d&&d.className,g&&g.className,b,!!this.props.menuProps,h,!E,this.props.split);var v=this._ariaDescriptionId,B=this._labelId,M=this._descriptionId,D=!b&&!!A,x=D?"a":"button",Q=Object(w.j)(Object(Ye.a)(D?{}:{type:"button"},this.props.rootProps,this.props),D?w.a:w.e,["disabled"]),S=r||Q["aria-label"],N=void 0;n?N=v:u&&this.props.onRenderDescription!==Ve.b?N=M:Q["aria-describedby"]&&(N=Q["aria-describedby"]);var k=void 0;S||(Q["aria-labelledby"]?k=Q["aria-labelledby"]:N&&(k=this._hasText()?B:void 0));var T=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),j="menuitemcheckbox"===C||"checkbox"===C,L=j||!0===y?!!h:void 0,R=Object(Ye.a)(Q,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:b&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":S,"aria-labelledby":k,"aria-describedby":N,"aria-disabled":b,"data-is-focusable":T})[j?"aria-checked":"aria-pressed"]=L,e));return o&&(R["aria-hidden"]=!0),this._isSplitButton?this._onRenderSplitButtonContent(x,R):(this.props.menuProps&&Object(Ye.a)(R,{"aria-expanded":!E,"aria-controls":E?null:this._labelId+"-menu","aria-haspopup":!0}),this._onRenderContent(x,R))},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?this._splitButtonContainer.current.focus():this._buttonElement.current&&this._buttonElement.current.focus()},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,o=e,i=r.menuIconProps,a=r.menuProps,s=r.onRenderIcon,l=void 0===s?this._onRenderIcon:s,c=r.onRenderAriaDescription,u=void 0===c?this._onRenderAriaDescription:c,A=r.onRenderChildren,d=void 0===A?this._onRenderChildren:A,g=r.onRenderMenu,p=void 0===g?this._onRenderMenu:g,h=r.onRenderMenuIcon,f=void 0===h?this._onRenderMenuIcon:h,I=r.disabled,C=r.keytipProps;C&&a&&(C=this._getMemoizedMenuButtonKeytipProps(C));var E=function(e){return y.createElement(o,Object(m.a)({},t,e),y.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},l(r,n._onRenderIcon),n._onRenderTextContents(),u(r,n._onRenderAriaDescription),d(r,n._onRenderChildren),!n._isSplitButton&&(a||i||n.props.onRenderMenuIcon)&&f(n.props,n._onRenderMenuIcon),a&&!a.doNotLayer&&n._shouldRenderMenu()&&p(a,n._onRenderMenu)))},b=C?y.createElement(Ir,{keytipProps:this._isSplitButton?void 0:C,ariaDescribedBy:t["aria-describedby"],disabled:I},(function(e){return E(e)})):E();return a&&a.doNotLayer?y.createElement(y.Fragment,null,b,this._shouldRenderMenu()&&p(a,this._onRenderMenu)):y.createElement(y.Fragment,null,b,y.createElement(je.a,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"==typeof this.props.children)},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,o=r.styles,i=void 0===o?{}:o,a=r.disabled,s=r.allowDisabledFocus,l=r.checked,c=r.getSplitButtonClassNames,u=r.primaryDisabled,A=r.menuProps,d=r.toggle,g=r.role,p=r.primaryActionButtonProps,h=this.props.keytipProps,f=this.state.menuHidden,I=c?c(!!a,!f,!!l,!!s):i&&to(i,!!a,!f,!!l,!!u);Object(Ye.a)(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),h&&A&&(h=this._getMemoizedMenuButtonKeytipProps(h));var C=Object(w.j)(t,[],["disabled"]);p&&Object(Ye.a)(t,p);var E=function(r){return y.createElement("div",Object(m.a)({},C,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:g||"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":!f,"aria-pressed":d?!!l:void 0,"aria-describedby":Object(We.a)(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:I&&I.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:a||u?void 0:n._onSplitButtonPrimaryClick,tabIndex:!a||s?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),y.createElement("span",{style:{display:"flex"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(I,r),n._onRenderSplitButtonDivider(I)))};return h?y.createElement(Ir,{keytipProps:h,disabled:a},(function(e){return E(e)})):E()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return y.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,o=r.allowDisabledFocus,i=r.checked,a=r.disabled,s=r.splitButtonMenuProps,l=r.splitButtonAriaLabel,c=this.state.menuHidden,u=this.props.menuIconProps;void 0===u&&(u={iconName:"ChevronDown"});var A=Object(m.a)(Object(m.a)({},s),{styles:e,checked:i,disabled:a,allowDisabledFocus:o,onClick:this._onMenuClick,menuProps:void 0,iconProps:Object(m.a)(Object(m.a)({},u),{className:this._classNames.menuIcon}),ariaLabel:l,"aria-haspopup":!0,"aria-expanded":!c,"data-is-focusable":!1});return y.createElement(t,Object(m.a)({},A,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===ae.a.down&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t}(y.Component),ro=n(249),oo={outline:0},io=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},ao=Object(C.c)((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Object(I.Q)(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+a,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:o.roundedCorner2,selectors:{":active > *":{position:"relative",left:0,top:0}}}],rootDisabled:[Object(I.Q)(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",pointerEvents:"none",selectors:{":hover":oo,":focus":oo}}],iconDisabled:{color:l,selectors:(t={},t[I.l]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[I.l]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:io(i.mediumPlus.fontSize),menuIcon:io(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:I.ab}})),so=Object(C.c)((function(e,t){var n,r,o,i,a,s,l,c,u,A,d,g,p,h=e.effects,f=e.palette,y=e.semanticColors,C={position:"absolute",width:1,right:31,top:8,bottom:8},E={splitButtonContainer:[Object(I.Q)(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[I.l]=Object(m.a)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},Object(I.S)()),n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[I.l]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[I.l]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(i={},i[I.l]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText"},Object(I.S)()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText"},Object(I.S)()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:h.roundedCorner2,borderBottomRightRadius:h.roundedCorner2,border:"1px solid "+f.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[I.l]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:Object(m.a)(Object(m.a)({},C),{selectors:(c={},c[I.l]={backgroundColor:"WindowText"},c)}),splitButtonDividerDisabled:Object(m.a)(Object(m.a)({},C),{selectors:(u={},u[I.l]={backgroundColor:"GrayText"},u)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(A={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(d={},d[I.l]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)},".ms-Button-menuIcon":{selectors:(g={},g[I.l]={color:"GrayText"},g)}},A[I.l]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},A)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(p={},p[I.l]=Object(m.a)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Object(I.S)()),p)}};return Object(I.H)(E,t)})),lo=Object(C.c)((function(e,t){var n,r=ao(e),o=so(e),i=e.palette,a={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[I.l]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}};return Object(I.H)(r,a,o,t)})),co=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return y.createElement(no,Object(m.a)({},this.props,{variantClassName:"ms-Button--icon",styles:lo(n,t),onRenderText:Ve.b,onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("IconButton",["theme","styles"],!0)],t)}(y.Component);!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Xr||(Xr={}));var uo=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}},Ao=function(e){void 0===e&&(e=uo());var t,n=e;function r(e,t){var r=n.getCachedMeasurement(e);if(void 0!==r)return r;var o=t();return n.addMeasurementToCache(e,o),o}function o(e,o,i){for(var a=e,s=r(e,i);s>t;){var l=o(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=n.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(t&&i.renderedData&&!i.dataToMeasure)return Object(m.a)(Object(m.a)({},i),function(e,n,r,o){var i;return i=e>t?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:r},t=e,Object(m.a)(Object(m.a)({},i),{measureContainer:!1})}(s,e.data,i.renderedData,e.onGrowData));t=s}var l=Object(m.a)(Object(m.a)({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&e.onGrowData?Object(m.a)(Object(m.a)({},l),function(e,i,a,s){for(var l=e,c=r(e,a);c<t;){var u=i(l);if(void 0===u)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=n.getCachedMeasurement(u)))return{dataToMeasure:u};l=u}return Object(m.a)({resizeDirection:"shrink"},o(l,s,a))}(i.dataToMeasure,e.onGrowData,a,e.onReduceData)):Object(m.a)(Object(m.a)({},l),o(i.dataToMeasure,e.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==n.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:Object(m.a)({},e),resizeDirection:"grow",measureContainer:!0}}}},go=y.createContext({isMeasured:!1}),po={position:"fixed",visibility:"hidden"},ho={position:"relative"};function fo(e,t){var n;switch(t.type){case"resizeData":return Object(m.a)({},t.value);case"dataToMeasure":return Object(m.a)(Object(m.a)({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return Object(m.a)(Object(m.a)({},e),((n={})[t.type]=t.value,n))}}function mo(e,t){var n=Yt(Ao),r=y.useRef(null),o=y.useRef(null),i=y.useRef(!1),a=Vt(),s=function(e,t,n){var r=Yt((function(){return t.getInitialResizeGroupState(e.data)})),o=y.useReducer(fo,r),i=o[0],a=o[1];y.useEffect((function(){a({type:"dataToMeasure",value:e.data})}),[e.data]);var s=y.useRef(r);return s.current=Object(m.a)({},i),[s,y.useCallback((function(e){e&&a({type:"resizeData",value:e})}),[]),y.useCallback((function(){n.current&&a({type:"measureContainer",value:!0})}),[n])]}(e,n,t),l=s[0],c=s[1],u=s[2];y.useEffect((function(){var t,n;l.current.renderedData&&(i.current=!0,null===(n=(t=e).dataDidRender)||void 0===n||n.call(t,l.current.renderedData))})),y.useEffect((function(){a.requestAnimationFrame((function(){var a=void 0;if(l.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();a=e.direction===Xr.vertical?s.height:s.width}var u=n.getNextState(e,l.current,(function(){var t=i.current?o:r;return t.current?e.direction===Xr.vertical?t.current.scrollHeight:t.current.scrollWidth:0}),a);c(u)}))})),Wt(Zt(),"resize",a.debounce(u,16,{leading:!0}));var A=n.shouldRenderDataForMeasurement(l.current.dataToMeasure),d=!i.current&&A;return[l.current.dataToMeasure,l.current.renderedData,u,r,o,A,d]}var yo={isMeasured:!0},Io=y.forwardRef((function(e,t){var n=y.useRef(null),r=Object(L.a)(n,t),o=mo(e,n),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],A=o[6];y.useImperativeHandle(e.componentRef,(function(){return{remeasure:s}}),[s]);var d=e.className,g=e.onRenderData,p=Object(w.j)(e,w.h,["data"]);return y.createElement("div",Object(m.a)({},p,{className:d,ref:r}),y.createElement("div",{style:ho},u&&!A&&y.createElement("div",{style:po,ref:c},y.createElement(go.Provider,{value:yo},g(i))),y.createElement("div",{ref:l,style:A?po:void 0,"data-automation-id":"visibleContent"},A?g(i):a&&g(a))))}));Io.displayName="ResizeGroupBase";var Co,Eo=Io,bo=n(250);!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Co||(Co={}));var vo,Bo=Object(D.a)(),Mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return y.createElement("p",{className:t._classNames.subText},e.content)},t}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,i=e.styles,a=e.id,s=e.maxWidth,l=e.onRenderContent,c=void 0===l?this._onRenderContent:l,u=e.targetElement,A=e.theme;return this._classNames=Bo(i,{theme:A,className:t||n&&n.className,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:s}),y.createElement(Rn,Object(m.a)({target:u,directionalHint:r,directionalHintForRTL:o},n,Object(w.j)(this.props,w.h,["id"]),{className:this._classNames.root}),y.createElement("div",{className:this._classNames.content,id:a,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},c(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Je.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(y.Component),Do=Object(M.a)(Mo,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,A=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,I.a.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:A,left:A,right:A,top:A,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(vo||(vo={}));var xo,wo,Qo=Object(D.a)(),So=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=y.createRef(),r._defaultTooltipId=Object(Ee.a)("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Co.Parent:return r._tooltipHost.current.parentElement;case Co.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipMouseEnter=function(e){var n=r.props,o=n.overflowMode,i=n.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var a=r._getTargetElement();if(a&&!Object(bo.b)(a))return}if(!e.target||!Object(xe.a)(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),i!==vo.zero){r.setState({isAriaPlaceholderRendered:!0});var s=r._getDelayTime(i);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===ae.a.escape||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isAriaPlaceholderRendered:!1,isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case vo.medium:return 300;case vo.long:return 500;default:return 0}},Object(se.a)(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new le.a(r),r}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,i=e.directionalHintForRTL,a=e.hostClassName,s=e.id,l=e.setAriaDescribedBy,c=void 0===l||l,u=e.tooltipProps,A=e.styles,d=e.theme;this._classNames=Qo(A,{theme:d,className:a});var g=this.state,p=g.isAriaPlaceholderRendered,h=g.isTooltipVisible,f=s||this._defaultTooltipId,C=!!(r||u&&u.onRenderContent&&u.onRenderContent()),E=h&&C,b=c&&h&&C?f:void 0;return y.createElement("div",Object(m.a)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipMouseEnter},{onBlurCapture:this._hideTooltip},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"aria-describedby":b}),n,E&&y.createElement(Do,Object(m.a)({id:f,content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:i,calloutProps:Object(Ye.a)({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},Object(w.j)(this.props,w.h),u)),p&&y.createElement("div",{id:f,style:I.ab},r))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:vo.medium},t}(y.Component),No={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},ko=Object(M.a)(So,(function(e){var t=e.className,n=e.theme;return{root:[Object(I.R)(No,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),To=Object(D.a)(),jo=function(){return null},Lo={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},Ro=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=y.createRef(),n._onReduceData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props.overflowIndex,o=t[r];if(o)return(t=Object(m.e)(t)).splice(r,1),n=Object(m.e)(n,[o]),Object(m.a)(Object(m.a)({},e),{renderedItems:t,renderedOverflowItems:n})},n._onGrowData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props,o=r.overflowIndex,i=r.maxDisplayedItems,a=(n=Object(m.e)(n)).pop();if(a&&!(t.length>=i))return(t=Object(m.e)(t)).splice(o,0,a),Object(m.a)(Object(m.a)({},e),{renderedItems:t,renderedOverflowItems:n})},n._onRenderBreadcrumb=function(e){var t=e.props,r=t.ariaLabel,o=t.dividerAs,i=void 0===o?N.a:o,a=t.onRenderItem,s=void 0===a?n._onRenderItem:a,l=t.overflowAriaLabel,c=t.overflowIndex,u=t.onRenderOverflowIcon,A=t.overflowButtonAs,d=e.renderedOverflowItems,g=e.renderedItems,p=d.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?n._onBreadcrumbClicked.bind(n,e):null,href:e.href,disabled:!t,itemProps:t?void 0:Lo}})),h=g.length-1,f=d&&0!==d.length,I=g.map((function(e,t){return y.createElement("li",{className:n._classNames.listItem,key:e.key||String(t)},s(e,n._onRenderItem),(t!==h||f&&t===c-1)&&y.createElement(i,{className:n._classNames.chevron,iconName:Object(Q.a)(n.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(f){var C=u?{}:{iconName:"More"},E=u||jo,b=A||co;I.splice(c,0,y.createElement("li",{className:n._classNames.overflow,key:"overflow"},y.createElement(b,{className:n._classNames.overflowButton,iconProps:C,role:"button","aria-haspopup":"true",ariaLabel:l,onRenderMenuIcon:E,menuProps:{items:p,directionalHint:Je.bottomLeftEdge}}),c!==h+1&&y.createElement(i,{className:n._classNames.chevron,iconName:Object(Q.a)(n.props.theme)?"ChevronLeft":"ChevronRight",item:d[d.length-1]})))}var v=Object(w.j)(n.props,w.k,["className"]);return y.createElement("div",Object(m.a)({className:n._classNames.root,role:"navigation","aria-label":r},v),y.createElement(Te,Object(m.a)({componentRef:n._focusZone,direction:Ae.horizontal},n.props.focusZoneProps),y.createElement("ol",{className:n._classNames.list},I)))},n._onRenderItem=function(e){var t=e.as,r=e.href,o=e.onClick,i=e.isCurrentItem,a=e.text,s=Object(m.d)(e,["as","href","onClick","isCurrentItem","text"]);if(o||r)return y.createElement(Pe,Object(m.a)({},s,{as:t,className:n._classNames.itemLink,href:r,"aria-current":i?"page":void 0,onClick:n._onBreadcrumbClicked.bind(n,e)}),y.createElement(ko,Object(m.a)({content:a,overflowMode:Co.Parent},n.props.tooltipHostProps),a));var l=t||"span";return y.createElement(l,Object(m.a)({},s,{className:n._classNames.item}),y.createElement(ko,Object(m.a)({content:a,overflowMode:Co.Parent},n.props.tooltipHostProps),a))},n._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},Object(se.a)(n),n._validateProps(t),n}return Object(m.c)(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,n=void 0===t?this._onReduceData:t,r=e.onGrowData,o=void 0===r?this._onGrowData:r,i=e.overflowIndex,a=e.maxDisplayedItems,s=e.items,l=e.className,c=e.theme,u=e.styles,A=Object(m.e)(s),d=A.splice(i,A.length-a),g={props:this.props,renderedItems:A,renderedOverflowItems:d};return this._classNames=To(u,{className:l,theme:c}),y.createElement(Eo,{onRenderData:this._onRenderBreadcrumb,onReduceData:n,onGrowData:o,data:g})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(y.Component),Oo={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},_o={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Fo=Object(I.X)(0,I.t),zo=Object(I.X)(I.x,I.s),Po=Object(M.a)(Ro,(function(e){var t,n,r,o,i=e.className,a=e.theme,s=a.palette,l=a.semanticColors,c=a.fonts,u=Object(I.R)(Oo,a),A=l.menuItemBackgroundHovered,d=l.menuItemBackgroundPressed,g=s.neutralSecondary,p=I.k.regular,h=s.neutralPrimary,f=s.neutralPrimary,y=I.k.semibold,C=s.neutralSecondary,E=s.neutralSecondary,b={fontWeight:y,color:f},v={":hover":{color:h,backgroundColor:A,cursor:"pointer",selectors:(t={},t[I.l]={color:"Highlight"},t)},":active":{backgroundColor:d,color:h},"&:active:hover":{color:h,backgroundColor:d},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},B={color:g,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:p};return{root:[u.root,c.medium,{margin:"11px 0 1px"},i],list:[u.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[u.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":b,"&:last-child .ms-Breadcrumb-item":b}}],chevron:[u.chevron,{color:C,fontSize:c.small.fontSize,selectors:(n={},n[I.l]=Object(m.a)({color:"WindowText"},Object(I.S)()),n[zo]={fontSize:8},n[Fo]={fontSize:8},n)}],overflow:[u.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[u.overflowButton,Object(I.Q)(a),_o,{fontSize:16,color:E,height:"100%",cursor:"pointer",selectors:Object(m.a)(Object(m.a)({},v),(r={},r[Fo]={padding:"4px 6px"},r[zo]={fontSize:c.mediumPlus.fontSize},r))}],itemLink:[u.itemLink,Object(I.Q)(a),_o,Object(m.a)(Object(m.a)({},B),{selectors:Object(m.a)((o={":focus":{color:s.neutralDark}},o["."+Kn.a+" &:focus"]={outline:"none"},o),v)})],item:[u.item,Object(m.a)(Object(m.a)({},B),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"});!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(xo||(xo={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(wo||(wo={}));var Uo=n(77);function Go(e){var t,n,r,o,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,u=a.buttonBackgroundHovered,A=a.buttonBackgroundDisabled,d=a.buttonText,g=a.buttonTextHovered,p=a.buttonTextDisabled,h=a.buttonTextChecked,f=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:d},rootHovered:{backgroundColor:u,color:g,selectors:(t={},t[I.l]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:c,color:h},rootExpanded:{backgroundColor:c,color:h},rootChecked:{backgroundColor:c,color:h},rootCheckedHovered:{backgroundColor:c,color:f},rootDisabled:{color:p,backgroundColor:A,selectors:(n={},n[I.l]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[I.l]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(o={},o[I.l]={color:"Highlight"},o)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:Object(m.a)(Object(m.a)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[I.l]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function Ho(e){var t,n,r,o,i,a,s,l,c,u=e.palette,A=e.semanticColors;return{root:{backgroundColor:A.primaryButtonBackground,border:"1px solid "+A.primaryButtonBackground,color:A.primaryButtonText,selectors:(t={},t[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Object(I.S)()),t["."+Kn.a+" &:focus"]={selectors:{":after":{border:"none",outlineColor:u.white}}},t)},rootHovered:{backgroundColor:A.primaryButtonBackgroundHovered,border:"1px solid "+A.primaryButtonBackgroundHovered,color:A.primaryButtonTextHovered,selectors:(n={},n[I.l]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:A.primaryButtonBackgroundPressed,border:"1px solid "+A.primaryButtonBackgroundPressed,color:A.primaryButtonTextPressed,selectors:(r={},r[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Object(I.S)()),r)},rootExpanded:{backgroundColor:A.primaryButtonBackgroundPressed,color:A.primaryButtonTextPressed},rootChecked:{backgroundColor:A.primaryButtonBackgroundPressed,color:A.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:A.primaryButtonBackgroundPressed,color:A.primaryButtonTextPressed},rootDisabled:{color:A.primaryButtonTextDisabled,backgroundColor:A.primaryButtonBackgroundDisabled,selectors:(o={},o[I.l]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(i={},i[I.l]={border:"none"},i)},splitButtonDivider:Object(m.a)(Object(m.a)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:u.white,selectors:(a={},a[I.l]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:A.primaryButtonBackground,color:A.primaryButtonText,selectors:(s={},s[I.l]={backgroundColor:"WindowText"},s[":hover"]={backgroundColor:A.primaryButtonBackgroundHovered,selectors:(l={},l[I.l]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:A.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:A.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:A.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:A.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:A.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:A.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:A.primaryButtonText},splitButtonMenuIconDisabled:{color:u.neutralTertiary,selectors:(c={},c[I.l]={color:"GrayText"},c)}}}var Yo=Object(C.c)((function(e,t,n){var r=ao(e),o=so(e),i={root:{minWidth:"80px",height:"32px"},label:{fontWeight:I.k.semibold}};return Object(I.H)(r,i,n?Ho(e):Go(e),o,t)})),Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return y.createElement(no,Object(m.a)({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:Yo(o,r,n),onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("DefaultButton",["theme","styles"],!0)],t)}(y.Component),Wo=Object(C.c)((function(e,t){var n,r,o,i=ao(e),a={root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[I.l]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(r={},r[I.l]={color:"Highlight"},r)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:(o={},o[I.l]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}};return Object(I.H)(i,a,t)})),Ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return y.createElement(no,Object(m.a)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:Wo(n,t),onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("ActionButton",["theme","styles"],!0)],t)}(y.Component),Zo=Object(C.c)((function(e,t,n){var r,o,i,a,s,l=e.fonts,c=e.palette,u=ao(e),A=so(e),d={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:I.k.semibold},description:[l.small,{lineHeight:"100%"}]},g={description:{color:c.neutralSecondary},descriptionHovered:{color:c.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},p={description:{color:c.white,selectors:(r={},r[I.l]=Object(m.a)({backgroundColor:"WindowText",color:"Window"},Object(I.S)()),r)},descriptionHovered:{color:c.white,selectors:(o={},o[I.l]={backgroundColor:"Highlight",color:"Window"},o)},descriptionPressed:{color:"inherit",selectors:(i={},i[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText"},Object(I.S)()),i)},descriptionChecked:{color:"inherit",selectors:(a={},a[I.l]=Object(m.a)({color:"Window",backgroundColor:"WindowText"},Object(I.S)()),a)},descriptionDisabled:{color:"inherit",selectors:(s={},s[I.l]={color:"inherit"},s)}};return Object(I.H)(u,d,n?Ho(e):Go(e),n?p:g,A,t)})),Jo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return y.createElement(no,Object(m.a)({},this.props,{variantClassName:n?"ms-Button--compoundPrimary":"ms-Button--compound",styles:Zo(o,r,n)}))},t=Object(m.b)([Object(ro.a)("CompoundButton",["theme","styles"],!0)],t)}(y.Component),qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){return y.createElement(Vo,Object(m.a)({},this.props,{primary:!0,onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("PrimaryButton",["theme","styles"],!0)],t)}(y.Component),Xo=function(e){function t(t){var n=e.call(this,t)||this;return Object(Uo.b)("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case wo.command:return y.createElement(Ko,Object(m.a)({},e));case wo.compound:return y.createElement(Jo,Object(m.a)({},e));case wo.icon:return y.createElement(co,Object(m.a)({},e));case wo.primary:return y.createElement(qo,Object(m.a)({},e));default:return y.createElement(Vo,Object(m.a)({},e))}},t}(y.Component),$o=Object(C.c)((function(e,t,n,r){var o,i,a,s,l,c,u,A,d,g,p,h,f,y,C=ao(e),E=so(e),b=e.palette,v=e.semanticColors,B={root:[Object(I.Q)(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:b.white,color:b.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(o={},o[I.l]={border:"none"},o)}],rootHovered:{backgroundColor:b.neutralLighter,color:b.neutralDark,selectors:(i={},i[I.l]={color:"Highlight"},i["."+$r.msButtonIcon]={color:b.themeDarkAlt},i["."+$r.msButtonMenuIcon]={color:b.neutralPrimary},i)},rootPressed:{backgroundColor:b.neutralLight,color:b.neutralDark,selectors:(a={},a["."+$r.msButtonIcon]={color:b.themeDark},a["."+$r.msButtonMenuIcon]={color:b.neutralPrimary},a)},rootChecked:{backgroundColor:b.neutralLight,color:b.neutralDark,selectors:(s={},s["."+$r.msButtonIcon]={color:b.themeDark},s["."+$r.msButtonMenuIcon]={color:b.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:b.neutralQuaternaryAlt,selectors:(l={},l["."+$r.msButtonIcon]={color:b.themeDark},l["."+$r.msButtonMenuIcon]={color:b.neutralPrimary},l)},rootExpanded:{backgroundColor:b.neutralLight,color:b.neutralDark,selectors:(c={},c["."+$r.msButtonIcon]={color:b.themeDark},c["."+$r.msButtonMenuIcon]={color:b.neutralPrimary},c)},rootExpandedHovered:{backgroundColor:b.neutralQuaternaryAlt},rootDisabled:{backgroundColor:b.white,selectors:(u={},u["."+$r.msButtonIcon]={color:v.disabledBodySubtext,selectors:(A={},A[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),A)},u[I.l]=Object(m.a)({color:"GrayText",backgroundColor:"Window"},Object(I.S)()),u)},splitButtonContainer:{height:"100%",selectors:(d={},d[I.l]={border:"none"},d)},splitButtonDividerDisabled:{selectors:(g={},g[I.l]={backgroundColor:"Window"},g)},splitButtonDivider:{backgroundColor:b.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:b.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:b.neutralSecondary,selectors:{":hover":{backgroundColor:b.neutralLighter,color:b.neutralDark,selectors:(p={},p[I.l]={color:"Highlight"},p["."+$r.msButtonIcon]={color:b.neutralPrimary},p)},":active":{backgroundColor:b.neutralLight,selectors:(h={},h["."+$r.msButtonIcon]={color:b.neutralPrimary},h)}}},splitButtonMenuButtonDisabled:{backgroundColor:b.white,selectors:(f={},f[I.l]=Object(m.a)({color:"GrayText",border:"none",backgroundColor:"Window"},Object(I.S)()),f)},splitButtonMenuButtonChecked:{backgroundColor:b.neutralLight,color:b.neutralDark,selectors:{":hover":{backgroundColor:b.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:b.neutralLight,color:b.black,selectors:{":hover":{backgroundColor:b.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:b.neutralPrimary},splitButtonMenuIconDisabled:{color:b.neutralTertiary},label:{fontWeight:"normal"},icon:{color:b.themePrimary},menuIcon:(y={color:b.neutralSecondary},y[I.l]={color:"GrayText"},y)};return Object(I.H)(C,E,B,t)})),ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return y.createElement(no,Object(m.a)({},this.props,{variantClassName:"ms-Button--commandBar",styles:$o(n,t),onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("CommandBarButton",["theme","styles"],!0)],t)}(y.Component),ti=Ko,ni=Object(C.c)((function(e,t){return Object(I.H)({root:[Object(I.Q)(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)})),ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return y.createElement(Vo,Object(m.a)({},this.props,{styles:ni(n,t),onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("MessageBarButton",["theme","styles"],!0)],t)}(y.Component);function oi(e,t){var n=y.useRef(t);return n.current||(n.current=Object(Ee.a)(e)),n.current}var ii=Object(D.a)(),ai=y.forwardRef((function(e,t){var n=oi(void 0,e.id),r=e.items,o=e.columnCount,i=e.onRenderItem,a=e.ariaPosInSet,s=void 0===a?e.positionInSet:a,l=e.ariaSetSize,c=void 0===l?e.setSize:l,u=e.styles,A=e.doNotContainWithinFocusZone,d=Object(w.j)(e,w.k,A?[]:["onBlur"]),g=ii(u,{theme:e.theme}),p=Object(dr.i)(r,o),h=y.createElement("table",Object(m.a)({"aria-posinset":s,"aria-setsize":c,id:n,role:"grid"},d,{className:g.root}),y.createElement("tbody",null,p.map((function(e,t){return y.createElement("tr",{role:"row",key:t},e.map((function(e,t){return y.createElement("td",{role:"presentation",key:t+"-cell",className:g.tableCell},i(e,t))})))}))));return A?h:y.createElement(Te,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:g.focusedContainer,onBlur:e.onBlur},h)})),si=Object(M.a)(ai,(function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}}));si.displayName="ButtonGrid";var li,ci,ui,Ai,di=function(e){var t,n=oi("gridCell"),r=e.item,o=e.id,i=void 0===o?n:o,a=e.className,s=e.role,l=e.selected,c=e.disabled,u=void 0!==c&&c,A=e.onRenderItem,d=e.cellDisabledStyle,g=e.cellIsSelectedStyle,p=e.index,h=e.label,f=e.getClassNames,m=e.onClick,I=e.onHover,C=e.onMouseMove,E=e.onMouseLeave,b=e.onMouseEnter,v=e.onFocus,B=y.useCallback((function(){m&&!u&&m(r)}),[u,r,m]),M=y.useCallback((function(e){b&&b(e)||!I||u||I(r)}),[u,r,I,b]),D=y.useCallback((function(e){C&&C(e)||!I||u||I(r)}),[u,r,I,C]),x=y.useCallback((function(e){E&&E(e)||!I||u||I()}),[u,I,E]),w=y.useCallback((function(){v&&!u&&v(r)}),[u,r,v]);return y.createElement(ti,{id:i,"data-index":p,"data-is-focusable":!0,disabled:u,className:Object(ve.a)(a,(t={},t[""+g]=l,t[""+d]=u,t)),onClick:B,onMouseEnter:M,onMouseMove:D,onMouseLeave:x,onFocus:w,role:s,"aria-selected":l,ariaLabel:h,title:h,getClassNames:f},A(r))};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(li||(li={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(ci||(ci={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(ui||(ui={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(Ai||(Ai={}));var gi=7,pi={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},hi=Object(m.a)(Object(m.a)({},{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"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),fi={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12};function mi(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function yi(e,t){return mi(e,t*fi.DaysInOneWeek)}function Ii(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%fi.MonthInOneYear+fi.MonthInOneYear)%fi.MonthInOneYear&&(n=mi(n,-n.getDate())),n}function Ci(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%fi.MonthInOneYear+fi.MonthInOneYear)%fi.MonthInOneYear&&(n=mi(n,-n.getDate())),n}function Ei(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function bi(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function vi(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function Bi(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function Mi(e,t){return Ii(e,t-e.getMonth())}function Di(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function xi(e,t){return Li(e)-Li(t)}function wi(e,t,n,r,o){void 0===o&&(o=1);var i,a=[],s=null;switch(r||(r=[li.Monday,li.Tuesday,li.Wednesday,li.Thursday,li.Friday]),o=Math.max(o,1),t){case Ai.Day:s=mi(i=ji(e),o);break;case Ai.Week:case Ai.WorkWeek:s=mi(i=ki(ji(e),n),fi.DaysInOneWeek);break;case Ai.Month:s=Ii(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}var l=i;do{(t!==Ai.WorkWeek||-1!==r.indexOf(l.getDay()))&&a.push(l),l=mi(l,1)}while(!Di(l,s));return a}function Qi(e,t){for(var n=0,r=t;n<r.length;n++){if(Di(e,r[n]))return!0}return!1}function Si(e,t,n,r){var o=r.getFullYear(),i=r.getMonth(),a=1,s=new Date(o,i,a),l=a+(t+fi.DaysInOneWeek-1)-function(e,t){return e!==li.Sunday&&t<e?t+fi.DaysInOneWeek:t}(t,s.getDay()),c=new Date(o,i,l);a=c.getDate();for(var u=[],A=0;A<e;A++)u.push(Ni(c,t,n)),a+=fi.DaysInOneWeek,c=new Date(o,i,a);return u}function Ni(e,t,n){switch(n){case ui.FirstFullWeek:return Ri(e,t,fi.DaysInOneWeek);case ui.FirstFourDayWeek:return Ri(e,t,4);default:return function(e,t){var n=Oi(e)-1,r=(e.getDay()-n%fi.DaysInOneWeek-t+2*fi.DaysInOneWeek)%fi.DaysInOneWeek;return Math.floor((n+r)/fi.DaysInOneWeek+1)}(e,t)}}function ki(e,t){var n=t-e.getDay();return n>0&&(n-=fi.DaysInOneWeek),mi(e,n)}function Ti(e,t){var n=(t-1>=0?t-1:fi.DaysInOneWeek-1)-e.getDay();return n<0&&(n+=fi.DaysInOneWeek),mi(e,n)}function ji(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Li(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function Ri(e,t,n){var r=Oi(e)-1,o=e.getDay()-r%fi.DaysInOneWeek,i=Oi(new Date(e.getFullYear()-1,ci.December,31))-1,a=(t-o+2*fi.DaysInOneWeek)%fi.DaysInOneWeek;0!==a&&a>=n&&(a-=fi.DaysInOneWeek);var s=r-a;return s<0&&(0!==(a=(t-(o-=i%fi.DaysInOneWeek)+2*fi.DaysInOneWeek)%fi.DaysInOneWeek)&&a+1>=n&&(a-=fi.DaysInOneWeek),s=i-a),Math.floor(s/fi.DaysInOneWeek+1)}function Oi(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=_i(o+1,n);return r+=e.getDate()}function _i(e,t){return new Date(t,e,0).getDate()}var Fi=n(251),zi=function(e,t,n){return!t||e!==Ai.WorkWeek||function(e,t,n){for(var r=new Set(e),o=0,i=0,a=e;i<a.length;i++){var s=(a[i]+1)%7;(!r.has(s)||t&&n===s)&&o++}return o<2}(t,!0,n)&&0!==t.length?e:Ai.Week},Pi=function(e,t,n){var r=Object(m.e)(e);return t&&(r=r.filter((function(e){return xi(e,t)>=0}))),n&&(r=r.filter((function(e){return xi(e,n)<=0}))),r},Ui=function(e,t){var n=t.minDate;return!!n&&xi(n,e)>=1},Gi=function(e,t){var n=t.maxDate;return!!n&&xi(e,n)>=1},Hi=function(e,t){var n=t.restrictedDates,r=t.minDate,o=t.maxDate;return!!(n||r||o)&&(n&&n.some((function(t){return Di(t,e)}))||Ui(e,t)||Gi(e,t))},Yi=function(e){var t=e.showWeekNumbers,n=e.strings,r=e.firstDayOfWeek,o=e.allFocusable,i=e.weeksToShow,a=e.weeks,s=e.classNames,l=n.shortDays.slice(),c=Object(dr.e)(a[1],(function(e){return 1===e.originalDate.getDate()}));1===i&&c>=0&&(l[(c+r)%gi]=n.shortMonths[a[1][c].originalDate.getMonth()]);return y.createElement("tr",null,t&&y.createElement("th",{className:s.dayCell}),l.map((function(e,t){var i=(t+r)%gi,a=t===c?n.days[i]+" "+l[i]:n.days[i];return y.createElement("th",{className:Object(ve.a)(s.dayCell,s.weekDayLabelCell),scope:"col",key:l[i]+" "+t,title:a,"aria-label":a,"data-is-focusable":!!o||void 0},l[i])})))},Vi=function(e){var t=e.targetDate,n=e.initialDate,r=e.direction,o=Object(m.d)(e,["targetDate","initialDate","direction"]),i=t;if(!Hi(t,o))return t;for(;0!==xi(n,i)&&Hi(i,o)&&!Gi(i,o)&&!Ui(i,o);)i=mi(i,r);return 0===xi(n,i)||Hi(i,o)?void 0:i},Wi=function(e){var t,n,r=e.navigatedDate,o=e.dateTimeFormatter,i=e.allFocusable,a=e.strings,s=e.activeDescendantId,l=e.navigatedDayRef,c=e.calculateRoundedStyles,u=e.weeks,A=e.classNames,d=e.day,g=e.dayIndex,p=e.weekIndex,h=e.weekCorners,f=e.ariaHidden,m=e.customDayCellRef,I=e.dateRangeType,C=e.daysToSelectInDayView,E=e.onSelectDate,b=e.restrictedDates,v=e.minDate,B=e.maxDate,M=e.onNavigateDate,D=e.getDayInfosInRangeOfDay,x=e.getRefsFromDayInfos,w=null!=(n=null===(t=h)||void 0===t?void 0:t[p+"_"+g])?n:"",S=Di(r,d.originalDate),N=o.formatMonthDayYear(d.originalDate,a);return d.isMarked&&(N=N+", "+a.dayMarkedAriaLabel),y.createElement("td",{className:Object(ve.a)(A.dayCell,h&&w,d.isSelected&&A.daySelected,d.isSelected&&"ms-CalendarDay-daySelected",!d.isInBounds&&A.dayOutsideBounds,!d.isInMonth&&A.dayOutsideNavigatedMonth),ref:function(e){var t;null===(t=m)||void 0===t||t(e,d.originalDate,A),d.setRef(e)},"aria-hidden":f,onClick:d.isInBounds&&!f?d.onSelected:void 0,onMouseOver:f?void 0:function(e){var t=D(d),n=x(t);n.forEach((function(e,r){var o;if(e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!t[r].isSelected&&I===Ai.Day&&C&&C>1)){e.classList.remove(A.bottomLeftCornerDate,A.bottomRightCornerDate,A.topLeftCornerDate,A.topRightCornerDate);var i=c(A,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).add.apply(o,i.split(" "))}}))},onMouseDown:f?void 0:function(e){var t=D(d);x(t).forEach((function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")}))},onMouseUp:f?void 0:function(e){var t=D(d);x(t).forEach((function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")}))},onMouseOut:f?void 0:function(e){var t=D(d),n=x(t);n.forEach((function(e,r){var o;if(e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!t[r].isSelected&&I===Ai.Day&&C&&C>1)){var i=c(A,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).remove.apply(o,i.split(" "))}}))},role:"presentation"},y.createElement("button",{key:d.key+"button","aria-hidden":f,className:Object(ve.a)(A.dayButton,d.isToday&&A.dayIsToday,d.isToday&&"ms-CalendarDay-dayIsToday"),onKeyDown:f?void 0:function(e){var t;e.which===ae.a.enter?null===(t=E)||void 0===t||t(d.originalDate):function(e,t){var n=void 0,r=1;if(e.which===ae.a.up?(n=yi(t,-1),r=-1):e.which===ae.a.down?n=yi(t,1):e.which===Object(Q.b)(ae.a.left)?(n=mi(t,-1),r=-1):e.which===Object(Q.b)(ae.a.right)&&(n=mi(t,1)),n){var o={initialDate:t,targetDate:n,direction:r,restrictedDates:b,minDate:v,maxDate:B},i=Vi(o);i||(o.direction=-r,i=Vi(o)),u&&i&&u.slice(1,u.length-1).some((function(e){return e.some((function(e){return Di(e.originalDate,i)}))}))||i&&(M(i,!0),e.preventDefault())}}(e,d.originalDate)},"aria-label":N,id:S?s:void 0,"aria-current":d.isSelected?"date":void 0,"aria-selected":d.isInBounds?d.isSelected:void 0,"data-is-focusable":!f&&(i||!!d.isInBounds||void 0),ref:S?l:void 0,disabled:!i&&!d.isInBounds,"aria-disabled":!f&&!d.isInBounds,type:"button",role:"gridcell","aria-readonly":!0,tabIndex:S?0:void 0},y.createElement("span",{"aria-hidden":"true"},o.formatDay(d.originalDate)),d.isMarked&&y.createElement("div",{"aria-hidden":"true",className:A.dayMarker})))},Ki=function(e){var t=e.classNames,n=e.week,r=e.weeks,o=e.weekIndex,i=e.rowClassName,a=e.ariaRole,s=e.showWeekNumbers,l=e.firstDayOfWeek,c=e.firstWeekOfYear,u=e.navigatedDate,A=e.strings,d=s?Si(r.length,l,c,u):null,g=d?A.weekNumberFormatString&&Object(Fi.a)(A.weekNumberFormatString,d[o]):"";return y.createElement("tr",{role:a,className:i,key:o+"_"+n[0].key},s&&d&&y.createElement("th",{className:t.weekNumberCell,key:o,title:g,"aria-label":g,scope:"row"},y.createElement("span",null,d[o])),n.map((function(t,n){return y.createElement(Wi,Object(m.a)({},e,{key:t.key,day:t,dayIndex:n}))})))},Zi=Object(D.a)();function Ji(e,t,n){return y.useMemo((function(){for(var r,o,i,a=function(e){var t,n,r=e.selectedDate,o=e.dateRangeType,i=e.firstDayOfWeek,a=e.today,s=e.minDate,l=e.maxDate,c=e.weeksToShow,u=e.workWeekDays,A=e.daysToSelectInDayView,d=e.restrictedDates,g=e.markedDays,p={minDate:s,maxDate:l,restrictedDates:d},h=a||new Date,f=e.navigatedDate?e.navigatedDate:h;n=c&&c<=4?new Date(f.getFullYear(),f.getMonth(),f.getDate()):new Date(f.getFullYear(),f.getMonth(),1);for(var m=[];n.getDay()!==i;)n.setDate(n.getDate()-1);n=mi(n,-gi);var y=!1,I=zi(o,u,i),C=[];r&&(C=wi(r,I,i,u,A),C=Pi(C,s,l));for(var E=!0,b=0;E;b++){var v=[];y=!0;for(var B=function(e){var r=new Date(n.getTime()),o={key:n.toString(),date:n.getDate().toString(),originalDate:r,isInMonth:n.getMonth()===f.getMonth(),isToday:Di(h,n),isSelected:Qi(n,C),isInBounds:!Hi(n,p),isMarked:(null===(t=g)||void 0===t?void 0:t.some((function(e){return Di(r,e)})))||!1};v.push(o),o.isInMonth&&(y=!1),n.setDate(n.getDate()+1)},M=0;M<gi;M++)B();E=c?b<c+1:!y||0===b,m.push(v)}return m}(e),s=a[1][0].originalDate,l=a[a.length-1][6].originalDate,c=(null===(o=(r=e).getMarkedDays)||void 0===o?void 0:o.call(r,s,l))||[],u=[],A=0;A<a.length;A++){for(var d=[],g=function(e){var r=a[A][e],o=Object(m.a)(Object(m.a)({onSelected:function(){return t(r.originalDate)},setRef:n(r.key)},r),{isMarked:r.isMarked||(null===(i=c)||void 0===i?void 0:i.some((function(e){return Di(r.originalDate,e)})))});d.push(o)},p=0;p<gi;p++)g(p);u.push(d)}return u}),[e])}var qi,Xi=function(e){var t=y.useRef(null),n=oi(),r=function(){var e=y.useRef({});return[e,function(t){return function(n){null===n?delete e.current[t]:e.current[t]=n}}]}(),o=r[0],i=r[1],a=Ji(e,(function(t){var n,r,o,i,a=e.firstDayOfWeek,s=e.minDate,l=e.maxDate,c=e.workWeekDays,u=e.daysToSelectInDayView,A={minDate:s,maxDate:l,restrictedDates:e.restrictedDates},d=wi(t,p,a,c,u);d=(d=Pi(d,s,l)).filter((function(e){return!Hi(e,A)})),null===(r=(n=e).onSelectDate)||void 0===r||r.call(n,t,d),null===(i=(o=e).onNavigateDate)||void 0===i||i.call(o,t,!0)}),i),s=function(e){var t=ur(e[0][0].originalDate);return t&&t.getTime()!==e[0][0].originalDate.getTime()?!(t<=e[0][0].originalDate):void 0}(a),l=function(e){var t=function(e,t,n,r,o){var i="",a=!t&&!o,s=!n&&!r,l=!n&&!o;return!t&&!r&&(i=Object(Q.a)()?i.concat(e.topRightCornerDate+" "):i.concat(e.topLeftCornerDate+" ")),a&&(i=Object(Q.a)()?i.concat(e.topLeftCornerDate+" "):i.concat(e.topRightCornerDate+" ")),s&&(i=Object(Q.a)()?i.concat(e.bottomRightCornerDate+" "):i.concat(e.bottomLeftCornerDate+" ")),l&&(i=Object(Q.a)()?i.concat(e.bottomLeftCornerDate+" "):i.concat(e.bottomRightCornerDate+" ")),i},n=function(t,n,r,o){var i=e.dateRangeType,a=e.firstDayOfWeek,s=e.workWeekDays,l=wi(t,i===Ai.WorkWeek?Ai.Week:i,a,s);return r===o&&(!(!r||!o)||l.filter((function(e){return e.getTime()===n.getTime()})).length>0)};return[function(e,r){var o={},i=r.slice(1,r.length-1);return i.forEach((function(r,a){r.forEach((function(r,s){var l=i[a-1]&&i[a-1][s]&&n(i[a-1][s].originalDate,r.originalDate,i[a-1][s].isSelected,r.isSelected),c=i[a+1]&&i[a+1][s]&&n(i[a+1][s].originalDate,r.originalDate,i[a+1][s].isSelected,r.isSelected),u=i[a][s-1]&&n(i[a][s-1].originalDate,r.originalDate,i[a][s-1].isSelected,r.isSelected),A=i[a][s+1]&&n(i[a][s+1].originalDate,r.originalDate,i[a][s+1].isSelected,r.isSelected),d=t(e,l,c,u,A);o[a+"_"+s]=d}))})),o},t]}(e),c=l[0],u=l[1];y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n,r;null===(r=null===(e=t.current)||void 0===e?void 0:(n=e).focus)||void 0===r||r.call(n)}}}),[]);var A=e.styles,d=e.theme,g=e.className,p=e.dateRangeType,h=e.showWeekNumbers,f=e.labelledBy,I=e.lightenDaysOutsideNavigatedMonth,C=e.animationDirection,E=Zi(A,{theme:d,className:g,dateRangeType:p,showWeekNumbers:h,lightenDaysOutsideNavigatedMonth:void 0===I||I,animationDirection:C,animateBackwards:s}),b=c(E,a),v={weeks:a,navigatedDayRef:t,calculateRoundedStyles:u,activeDescendantId:n,classNames:E,weekCorners:b,getDayInfosInRangeOfDay:function(t){var n=function(e,t){if(t&&e===Ai.WorkWeek){for(var n=t.slice().sort(),r=!0,o=1;o<n.length;o++)if(n[o]!==n[o-1]+1){r=!1;break}if(!r||0===t.length)return Ai.Week}return e}(e.dateRangeType,e.workWeekDays),r=wi(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map((function(e){return e.getTime()}));return a.reduce((function(e,t){return e.concat(t.filter((function(e){return-1!==r.indexOf(e.originalDate.getTime())})))}),[])},getRefsFromDayInfos:function(e){return e.map((function(e){return o.current[e.key]}))}};return y.createElement(Te,{className:E.wrapper},y.createElement("table",{className:E.table,"aria-readonly":"true","aria-multiselectable":"false","aria-labelledby":f,"aria-activedescendant":n,role:"grid"},y.createElement("tbody",null,y.createElement(Yi,Object(m.a)({},e,{classNames:E,weeks:a})),y.createElement(Ki,Object(m.a)({},e,v,{week:a[0],weekIndex:-1,rowClassName:E.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),a.slice(1,a.length-1).map((function(t,n){return y.createElement(Ki,Object(m.a)({},e,v,{key:n,week:t,weekIndex:n,rowClassName:E.weekRow}))})),y.createElement(Ki,Object(m.a)({},e,v,{week:a[a.length-1],weekIndex:-2,rowClassName:E.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};Xi.displayName="CalendarDayGridBase",function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(qi||(qi={}));var $i={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},ea=Object(I.bb)({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),ta=Object(M.a)(Xi,(function(e){var t,n,r,o,i,a,s,l,c,u,A=e.theme,d=e.dateRangeType,g=e.showWeekNumbers,p=e.lightenDaysOutsideNavigatedMonth,h=e.animateBackwards,f=e.animationDirection,y=A.palette,C=Object(I.R)($i,A),E={};void 0!==h&&(E=f===qi.Horizontal?h?I.b.slideRightIn20:I.b.slideLeftIn20:h?I.b.slideDownIn20:I.b.slideUpIn20);var b={},v={};void 0!==h&&f!==qi.Horizontal&&(b=h?{animationName:""}:I.b.slideUpOut20,v=h?I.b.slideDownOut20:{animationName:""});var B={selectors:{"&, &:disabled, & button":{color:y.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},g&&{width:226}],dayCell:{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:I.j.small,fontWeight:I.k.regular,color:y.neutralPrimary,cursor:"pointer",position:"relative",selectors:(t={},t[I.l]=Object(m.a)({color:"WindowText",backgroundColor:"Window",zIndex:0},Object(I.S)()),t["&."+C.hoverStyle]={backgroundColor:y.neutralLighter,selectors:(n={},n[I.l]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},t["&."+C.pressedStyle]={backgroundColor:y.neutralLight,selectors:(r={},r[I.l]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},r)},t["&."+C.pressedStyle+"."+C.hoverStyle]={selectors:(o={},o[I.l]={backgroundColor:"Window",outline:"1px solid Highlight"},o)},t)},daySelected:[d!==Ai.Month&&{backgroundColor:y.neutralLight+"!important",selectors:(i={},i["&:hover, &."+C.hoverStyle+", &."+C.pressedStyle]=(a={backgroundColor:y.neutralLight+"!important"},a[I.l]={color:"HighlightText!important",background:"Highlight!important"},a),i[I.l]=Object(m.a)({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},Object(I.S)()),i)}],weekRow:E,weekDayLabelCell:I.b.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:y.neutralLight,backgroundColor:y.neutralLighterAlt,color:y.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:I.k.regular,fontSize:I.j.small},dayOutsideBounds:B,dayOutsideNavigatedMonth:p&&{color:y.neutralSecondary,fontWeight:I.k.regular},dayButton:[Object(I.Q)(A,{inset:-2}),{width:24,height:24,lineHeight:24,fontSize:I.j.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}}],dayIsToday:{backgroundColor:y.themePrimary+"!important",borderRadius:"100%",color:y.white+"!important",fontWeight:I.k.semibold+"!important",selectors:(s={},s[I.l]=Object(m.a)({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},Object(I.S)()),s)},firstTransitionWeek:Object(m.a)(Object(m.a)({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},b),{animationName:b.animationName+","+ea}),lastTransitionWeek:Object(m.a)(Object(m.a)({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},v),{animationName:v.animationName+","+ea}),dayMarker:{width:4,height:4,backgroundColor:y.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:(l={},l["."+C.dayIsTodayStyle+" &"]={backgroundColor:y.white,selectors:(c={},c[I.l]={backgroundColor:"Window"},c)},l["."+C.daySelectedStyle+" &"]={selectors:(u={},u[I.l]={backgroundColor:"HighlightText"},u)},l[I.l]=Object(m.a)({backgroundColor:"WindowText"},Object(I.S)()),l)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"}}}),void 0,{scope:"CalendarDayGrid"}),na=Object(D.a)(),ra=function(e){var t=y.useRef(null);y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n,r;null===(r=null===(e=t.current)||void 0===e?void 0:(n=e).focus)||void 0===r||r.call(n)}}}),[]);var n=e.strings,r=e.navigatedDate,o=e.dateTimeFormatter,i=e.styles,a=e.theme,s=e.className,l=e.onHeaderSelect,c=e.showSixWeeksByDefault,u=e.minDate,A=e.maxDate,d=e.restrictedDates,g=e.onNavigateDate,p=e.showWeekNumbers,h=e.dateRangeType,f=e.animationDirection,I=oi(),C=oi(),E=na(i,{theme:a,className:s,headerIsClickable:!!l,showWeekNumbers:p,animationDirection:f}),b=o.formatMonthYear(r,n),v=l?"button":"div",B=n.yearPickerHeaderAriaLabel?Object(Fi.a)(n.yearPickerHeaderAriaLabel,b):b;return y.createElement("div",{className:E.root,id:I},y.createElement("div",{className:E.header},y.createElement(v,{"aria-live":"polite","aria-atomic":"true","aria-label":l?B:void 0,key:b,className:E.monthAndYear,onClick:l,"data-is-focusable":!!l,tabIndex:l?0:-1,onKeyDown:ia(l),type:"button"},y.createElement("span",{id:C},b)),y.createElement(oa,Object(m.a)({},e,{classNames:E,dayPickerId:I}))),y.createElement(ta,Object(m.a)({},e,{styles:i,componentRef:t,strings:n,navigatedDate:r,weeksToShow:c?6:void 0,dateTimeFormatter:o,minDate:u,maxDate:A,restrictedDates:d,onNavigateDate:g,labelledBy:C,dateRangeType:h})))};ra.displayName="CalendarDayBase";var oa=function(e){var t,n,r=e.minDate,o=e.maxDate,i=e.navigatedDate,a=e.allFocusable,s=e.strings,l=e.navigationIcons,c=e.showCloseButton,u=e.classNames,A=e.dayPickerId,d=e.onNavigateDate,g=e.onDismiss,p=function(){d(Ii(i,1),!1)},h=function(){d(Ii(i,-1),!1)},f=l.leftNavigation,m=l.rightNavigation,I=l.closeIcon,C=!r||xi(r,Ei(i))<0,E=!o||xi(bi(i),o)<0;return y.createElement("div",{className:u.monthComponents},y.createElement("button",{className:Object(ve.a)(u.headerIconButton,(t={},t[u.disabledStyle]=!C,t)),disabled:!a&&!C,"aria-disabled":!C,onClick:C?h:void 0,onKeyDown:C?ia(h):void 0,"aria-controls":A,title:s.prevMonthAriaLabel?s.prevMonthAriaLabel+" "+s.months[Ii(i,-1).getMonth()]:void 0,type:"button"},y.createElement(N.a,{iconName:f})),y.createElement("button",{className:Object(ve.a)(u.headerIconButton,(n={},n[u.disabledStyle]=!E,n)),disabled:!a&&!E,"aria-disabled":!E,onClick:E?p:void 0,onKeyDown:E?ia(p):void 0,"aria-controls":A,title:s.nextMonthAriaLabel?s.nextMonthAriaLabel+" "+s.months[Ii(i,1).getMonth()]:void 0,type:"button"},y.createElement(N.a,{iconName:m})),c&&y.createElement("button",{className:Object(ve.a)(u.headerIconButton),onClick:g,onKeyDown:ia(g),title:s.closeButtonAriaLabel,type:"button"},y.createElement(N.a,{iconName:I})))};oa.displayName="CalendarDayNavigationButtons";var ia=function(e){return function(t){var n;switch(t.which){case ae.a.enter:null===(n=e)||void 0===n||n()}}},aa=Object(M.a)(ra,(function(e){var t=e.className,n=e.theme,r=e.headerIsClickable,o=e.showWeekNumbers,i=n.palette,a={selectors:{"&, &:disabled, & button":{color:i.neutralTertiaryAlt,pointerEvents:"none"}}};return{root:[I.gb,{width:196,padding:12,boxSizing:"content-box"},o&&{width:226},t],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[Object(I.Q)(n,{inset:1}),Object(m.a)(Object(m.a)({},I.b.fadeIn200),{alignItems:"center",fontSize:I.j.medium,fontFamily:"inherit",color:i.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:I.k.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),r&&{selectors:{"&:hover":{cursor:"pointer",background:i.neutralLight,color:i.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[Object(I.Q)(n,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:I.j.small,fontFamily:"inherit",color:i.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:i.neutralDark,backgroundColor:i.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:a}}),void 0,{scope:"CalendarDay"}),sa=function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.hasHeaderClickCallback,u=e.highlightCurrent,A=e.highlightSelected,d=e.animateBackwards,g=e.animationDirection,p=l.palette,h={};void 0!==d&&(h=g===qi.Horizontal?d?I.b.slideRightIn20:I.b.slideLeftIn20:d?I.b.slideDownIn20:I.b.slideUpIn20);var f=void 0!==d?I.b.fadeIn200:{};return{root:[I.gb,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},s],headerContainer:{display:"flex"},currentItemButton:[Object(I.Q)(l,{inset:-1}),Object(m.a)(Object(m.a)({},f),{fontSize:I.j.medium,fontWeight:I.k.semibold,fontFamily:"inherit",textAlign:"left",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),c&&{selectors:{"&:hover, &:active":{cursor:c?"pointer":"default",color:p.neutralDark,outline:"1px solid transparent",backgroundColor:p.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[Object(I.Q)(l,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:I.j.small,color:p.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:p.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:p.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:Object(m.a)(Object(m.a)({},h),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[Object(I.Q)(l,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:I.j.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:p.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:I.k.regular},"&:hover":{color:p.neutralDark,backgroundColor:p.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:(t={},t[I.l]=Object(m.a)({background:"Window",color:"WindowText",outline:"1px solid Highlight"},Object(I.S)()),t)},"&:active":{backgroundColor:p.themeLight,selectors:(n={},n[I.l]=Object(m.a)({background:"Window",color:"Highlight"},Object(I.S)()),n)}}}],current:u?{color:p.white,backgroundColor:p.themePrimary,selectors:(r={"& div":{fontWeight:I.k.semibold},"&:hover":{backgroundColor:p.themePrimary,selectors:(o={},o[I.l]=Object(m.a)({backgroundColor:"WindowText",color:"Window"},Object(I.S)()),o)}},r[I.l]=Object(m.a)({backgroundColor:"WindowText",color:"Window"},Object(I.S)()),r)}:{},selected:A?{color:p.neutralPrimary,backgroundColor:p.themeLight,fontWeight:I.k.semibold,selectors:(i={"& div":{fontWeight:I.k.semibold},"&:hover, &:active":{backgroundColor:p.themeLight,selectors:(a={},a[I.l]=Object(m.a)({color:"Window",background:"Highlight"},Object(I.S)()),a)}},i[I.l]=Object(m.a)({background:"Highlight",color:"Window"},Object(I.S)()),i)}:{},disabled:{selectors:{"&, &:disabled, & button":{color:p.neutralTertiaryAlt,pointerEvents:"none"}}}}},la=function(e){return sa(e)},ca=hi,ua=ca,Aa={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},da=Object(D.a)(),ga={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},pa=function(e){var t,n,r,o=e.styles,i=e.theme,a=e.className,s=e.highlightCurrentYear,l=e.highlightSelectedYear,c=e.year,u=e.selected,A=e.disabled,d=e.componentRef,g=e.onSelectYear,p=e.onRenderYear,h=y.useRef(null);y.useImperativeHandle(d,(function(){return{focus:function(){var e,t,n;null===(n=null===(e=h.current)||void 0===e?void 0:(t=e).focus)||void 0===n||n.call(t)}}}),[]);var f=da(o,{theme:i,className:a,highlightCurrent:s,highlightSelected:l});return y.createElement("button",{className:Object(ve.a)(f.itemButton,(t={},t[f.selected]=u,t[f.disabled]=A,t)),type:"button",role:"gridcell",onClick:A?void 0:function(){var e;null===(e=g)||void 0===e||e(c)},onKeyDown:A?void 0:function(e){var t;e.which===ae.a.enter&&(null===(t=g)||void 0===t||t(c))},disabled:A,"aria-selected":u,ref:h,"aria-readonly":!0},null!=(r=null===(n=p)||void 0===n?void 0:n(c))?r:c)};pa.displayName="CalendarYearGridCell";var ha,fa=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,i=e.toYear,a=e.animationDirection,s=e.animateBackwards,l=e.minYear,c=e.maxYear,u=e.onSelectYear,A=e.selectedYear,d=e.componentRef,g=y.useRef(null),p=y.useRef(null);y.useImperativeHandle(d,(function(){return{focus:function(){var e,t,n;null===(n=null===(e=g.current||p.current)||void 0===e?void 0:(t=e).focus)||void 0===n||n.call(t)}}}),[]);for(var h,f,I,C,E=da(t,{theme:n,className:r,animateBackwards:s,animationDirection:a}),b=function(t){var n,r,o;return null!=(o=null===(r=(n=e).onRenderYear)||void 0===r?void 0:r.call(n,t))?o:t},v=b(o)+" - "+b(i),B=o,M=[],D=0;D<(i-o+1)/4;D++){M.push([]);for(var x=0;x<4;x++)M[D].push((f=void 0,I=void 0,C=void 0,f=(h=B)===A,I=void 0!==l&&h<l||void 0!==c&&h>c,C=h===(new Date).getFullYear(),y.createElement(pa,Object(m.a)({},e,{key:h,year:h,selected:f,current:C,disabled:I,onSelectYear:u,componentRef:f?g:C?p:void 0,theme:n})))),B++}return y.createElement(Te,null,y.createElement("div",{className:E.gridContainer,role:"grid","aria-label":v},M.map((function(e,t){return y.createElement("div",{key:"yearPickerRow_"+t+"_"+o,role:"row",className:E.buttonRow},e)}))))};fa.displayName="CalendarYearGrid",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(ha||(ha={}));var ma=function(e){var t,n=e.styles,r=e.theme,o=e.className,i=e.navigationIcons,a=void 0===i?Aa:i,s=e.strings,l=void 0===s?ga:s,c=e.direction,u=e.onSelectPrev,A=e.onSelectNext,d=e.fromYear,g=e.toYear,p=e.maxYear,h=e.minYear,f=da(n,{theme:r,className:o}),m=0===c?l.prevRangeAriaLabel:l.nextRangeAriaLabel,I=0===c?-12:12,C=m?"string"==typeof m?m:m({fromYear:d+I,toYear:g+I}):void 0,E=0===c?void 0!==h&&d<h:void 0!==p&&e.fromYear+12>p,b=function(){var e,t;0===c?null===(e=u)||void 0===e||e():null===(t=A)||void 0===t||t()},v=Object(Q.a)()?1===c:0===c;return y.createElement("button",{className:Object(ve.a)(f.navigationButton,(t={},t[f.disabled]=E,t)),onClick:E?void 0:b,onKeyDown:E?void 0:function(e){e.which===ae.a.enter&&b()},type:"button",title:C,disabled:E},y.createElement(N.a,{iconName:v?a.leftNavigation:a.rightNavigation}))};ma.displayName="CalendarYearNavArrow";var ya=function(e){var t=e.styles,n=e.theme,r=e.className,o=da(t,{theme:n,className:r});return y.createElement("div",{className:o.navigationButtonsContainer},y.createElement(ma,Object(m.a)({},e,{direction:0})),y.createElement(ma,Object(m.a)({},e,{direction:1})))};ya.displayName="CalendarYearNav";var Ia=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,i=e.toYear,a=e.strings,s=void 0===a?ga:a,l=e.animateBackwards,c=e.animationDirection,u=function(){var t,n;null===(n=(t=e).onHeaderSelect)||void 0===n||n.call(t,!0)},A=function(t){var n,r,o;return null!=(o=null===(r=(n=e).onRenderYear)||void 0===r?void 0:r.call(n,t))?o:t},d=da(t,{theme:n,className:r,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:l,animationDirection:c});if(e.onHeaderSelect){var g=s.rangeAriaLabel,p=s.headerAriaLabelFormatString,h=g?"string"==typeof g?g:g(e):void 0,f=p?Object(Fi.a)(p,h):h;return y.createElement("button",{className:d.currentItemButton,onClick:u,onKeyDown:function(e){e.which!==ae.a.enter&&e.which!==ae.a.space||u()},"aria-label":f,role:"button",type:"button","aria-atomic":!0,"aria-live":"polite"},A(o)," - ",A(i))}return y.createElement("div",{className:d.current},A(o)," - ",A(i))};Ia.displayName="CalendarYearTitle";var Ca,Ea=function(e){var t,n,r=e.styles,o=e.theme,i=e.className,a=e.animateBackwards,s=e.animationDirection,l=e.onRenderTitle,c=da(r,{theme:o,className:i,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:s});return y.createElement("div",{className:c.headerContainer},null!=(n=null===(t=l)||void 0===t?void 0:t(e))?n:y.createElement(Ia,Object(m.a)({},e)),y.createElement(ya,Object(m.a)({},e)))};Ea.displayName="CalendarYearHeader",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(Ca||(Ca={}));var ba=function(e){var t=function(e){var t=e.selectedYear,n=e.navigatedYear,r=t||n||(new Date).getFullYear(),o=10*Math.floor(r/10),i=ur(o);return i&&i!==o?i>o:void 0}(e),n=function(e){var t=e.selectedYear,n=e.navigatedYear,r=y.useReducer((function(e,t){return e+(1===t?12:-12)}),void 0,(function(){var e=t||n||(new Date).getFullYear();return 10*Math.floor(e/10)})),o=r[0],i=r[1];return[o,o+12-1,function(){return i(1)},function(){return i(0)}]}(e),r=n[0],o=n[1],i=n[2],a=n[3],s=y.useRef(null);y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,t,n;null===(n=null===(e=s.current)||void 0===e?void 0:(t=e).focus)||void 0===n||n.call(t)}}}));var l=e.styles,c=e.theme,u=e.className,A=da(l,{theme:c,className:u});return y.createElement("div",{className:A.root},y.createElement(Ea,Object(m.a)({},e,{fromYear:r,toYear:o,onSelectPrev:a,onSelectNext:i,animateBackwards:t})),y.createElement(fa,Object(m.a)({},e,{fromYear:r,toYear:o,animateBackwards:t,componentRef:s})))};ba.displayName="CalendarYearBase";var va=Object(M.a)(ba,(function(e){return sa(e)}),void 0,{scope:"CalendarYear"}),Ba=Object(D.a)(),Ma={styles:la,strings:void 0,navigationIcons:Aa,dateTimeFormatter:pi,yearPickerHidden:!1};var Da=function(e){var t,n,r=Object(x.a)(Ma,e),o=function(e){var t=e.componentRef,n=y.useRef(null),r=y.useRef(null),o=y.useRef(!1),i=y.useCallback((function(){r.current?r.current.focus():n.current&&n.current.focus()}),[]);return y.useImperativeHandle(t,(function(){return{focus:i}}),[i]),y.useEffect((function(){o.current&&(i(),o.current=!1)})),[n,r,function(){o.current=!0}]}(r),i=o[0],a=o[1],s=o[2],l=y.useState(!1),c=l[0],u=l[1],A=function(e){var t=e.navigatedDate.getFullYear(),n=ur(t);return void 0===n||n===t?void 0:n>t}(r),d=r.navigatedDate,g=r.selectedDate,p=r.strings,h=r.today,f=void 0===h?new Date:h,m=r.navigationIcons,I=r.dateTimeFormatter,C=r.minDate,E=r.maxDate,b=r.theme,v=r.styles,B=r.className,M=r.allFocusable,D=r.highlightCurrentMonth,w=r.highlightSelectedMonth,S=r.animationDirection,k=r.yearPickerHidden,T=r.onNavigateDate,j=function(e){return function(){return O(e)}},L=function(){T(Ci(d,1),!1)},R=function(){T(Ci(d,-1),!1)},O=function(e){var t,n;null===(n=(t=r).onHeaderSelect)||void 0===n||n.call(t),T(Mi(d,e),!0)},_=function(){var e,t;k?null===(t=(e=r).onHeaderSelect)||void 0===t||t.call(e):(s(),u(!0))},F=m.leftNavigation,z=m.rightNavigation,P=I,U=!C||xi(C,vi(d))<0,G=!E||xi(Bi(d),E)<0,H=Ba(v,{theme:b,className:B,hasHeaderClickCallback:!!r.onHeaderSelect||!k,highlightCurrent:D,highlightSelected:w,animateBackwards:A,animationDirection:S});if(c){var Y=function(e){var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,o=function(e){if(r){var t=new Date(n.getTime());return t.setFullYear(e),r.formatYear(t)}return String(e)},i=function(e){return o(e.fromYear)+" - "+o(e.toYear)};return[o,{rangeAriaLabel:i,prevRangeAriaLabel:function(e){return t.prevYearRangeAriaLabel?t.prevYearRangeAriaLabel+" "+i(e):""},nextRangeAriaLabel:function(e){return t.nextYearRangeAriaLabel?t.nextYearRangeAriaLabel+" "+i(e):""},headerAriaLabelFormatString:t.yearPickerHeaderAriaLabel}]}(r),V=Y[0],W=Y[1];return y.createElement(va,{key:"calendarYear",minYear:C?C.getFullYear():void 0,maxYear:E?E.getFullYear():void 0,onSelectYear:function(e){if(s(),d.getFullYear()!==e){var t=new Date(d.getTime());t.setFullYear(e),E&&t>E?t=Mi(t,E.getMonth()):C&&t<C&&(t=Mi(t,C.getMonth())),T(t,!0)}u(!1)},navigationIcons:m,onHeaderSelect:function(e){s(),u(!1)},selectedYear:g?g.getFullYear():d?d.getFullYear():void 0,onRenderYear:V,strings:W,componentRef:a,styles:v,highlightCurrentYear:D,highlightSelectedYear:w,animationDirection:S})}for(var K=[],Z=0;Z<p.shortMonths.length/4;Z++)K.push(Z);var J=P.formatYear(d),q=p.monthPickerHeaderAriaLabel?Object(Fi.a)(p.monthPickerHeaderAriaLabel,J):J;return y.createElement("div",{className:H.root},y.createElement("div",{className:H.headerContainer},y.createElement("button",{className:H.currentItemButton,onClick:_,onKeyDown:wa(_),"aria-label":q,"data-is-focusable":!!r.onHeaderSelect||!k,tabIndex:r.onHeaderSelect||!k?0:-1,type:"button","aria-atomic":!0,"aria-live":"polite"},J),y.createElement("div",{className:H.navigationButtonsContainer},y.createElement("button",{className:Object(ve.a)(H.navigationButton,(t={},t[H.disabled]=!U,t)),disabled:!M&&!U,onClick:U?R:void 0,onKeyDown:U?wa(R):void 0,title:p.prevYearAriaLabel?p.prevYearAriaLabel+" "+P.formatYear(Ci(d,-1)):void 0,type:"button"},y.createElement(N.a,{iconName:Object(Q.a)()?z:F})),y.createElement("button",{className:Object(ve.a)(H.navigationButton,(n={},n[H.disabled]=!G,n)),disabled:!M&&!G,onClick:G?L:void 0,onKeyDown:G?wa(L):void 0,title:p.nextYearAriaLabel?p.nextYearAriaLabel+" "+P.formatYear(Ci(d,1)):void 0,type:"button"},y.createElement(N.a,{iconName:Object(Q.a)()?F:z})))),y.createElement(Te,null,y.createElement("div",{className:H.gridContainer,role:"grid","aria-label":J},K.map((function(e){var t=p.shortMonths.slice(4*e,4*(e+1));return y.createElement("div",{key:"monthRow_"+e+d.getFullYear(),role:"row",className:H.buttonRow},t.map((function(t,n){var r,o=4*e+n,a=Mi(d,o),s=d.getMonth()===o,l=g.getMonth()===o,c=g.getFullYear()===d.getFullYear(),u=(!C||xi(C,bi(a))<1)&&(!E||xi(Ei(a),E)<1);return y.createElement("button",{ref:s?i:void 0,role:"gridcell",className:Object(ve.a)(H.itemButton,(r={},r[H.current]=D&&xa(o,d.getFullYear(),f),r[H.selected]=w&&l&&c,r[H.disabled]=!u,r)),disabled:!M&&!u,key:o,onClick:u?j(o):void 0,onKeyDown:u?wa(j(o)):void 0,"aria-label":P.formatMonth(a,p),"aria-selected":s,"data-is-focusable":!!u||void 0,type:"button","aria-readonly":!0},t)})))})))))};function xa(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function wa(e){return function(t){switch(t.which){case ae.a.enter:e()}}}Da.displayName="CalendarMonthBase";var Qa=Object(M.a)(Da,la,void 0,{scope:"CalendarMonth"});function Sa(e,t,n){var r=y.useState(t),o=r[0],i=r[1],a=Yt(void 0!==e),s=a?e:o,l=y.useRef(s),c=y.useRef(n);y.useEffect((function(){l.current=s,c.current=n}));var u=Yt((function(){return function(e,t){var n="function"==typeof e?e(l.current):e;c.current&&c.current(t,n),a||i(n)}}));return[s,u]}var Na=Object(D.a)(),ka=[li.Monday,li.Tuesday,li.Wednesday,li.Thursday,li.Friday],Ta={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:li.Sunday,dateRangeType:Ai.Day,showGoToToday:!0,strings:hi,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:Aa,showWeekNumbers:!1,firstWeekOfYear:ui.FirstDay,dateTimeFormatter:pi,showSixWeeksByDefault:!1,workWeekDays:ka,showCloseButton:!1,allFocusable:!1};var ja=y.forwardRef((function(e,t){var n=Object(x.a)(Ta,e),r=function(e){var t=e.value,n=e.today,r=void 0===n?new Date:n,o=e.onSelectDate,i=Sa(t,r),a=i[0],s=void 0===a?r:a,l=i[1],c=y.useState(t),u=c[0],A=void 0===u?r:u,d=c[1],g=y.useState(t),p=g[0],h=void 0===p?r:p,f=g[1],m=y.useState(t),I=m[0],C=void 0===I?r:I,E=m[1];return t&&C.valueOf()!==t.valueOf()&&(d(t),f(t),E(t)),[s,A,h,function(e,t){var n;f(e),d(e),l(e),null===(n=o)||void 0===n||n(e,t)},function(e){f(e),d(e)},function(e){f(e)}]}(n),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=function(e){var t=Sa(e.showMonthPickerAsOverlay?void 0:e.isMonthPickerVisible,!1),n=t[0],r=void 0===n||n,o=t[1],i=Sa(e.showMonthPickerAsOverlay?void 0:e.isDayPickerVisible,!0),a=i[0],s=void 0===a||a,l=i[1];return[r,s,function(){o(!r),l(!s)}]}(n),A=u[0],d=u[1],g=u[2],p=function(e,t,n){var r=e.componentRef,o=y.useRef(null),i=y.useRef(null),a=y.useRef(!1),s=y.useCallback((function(){t&&o.current?Object(Ie.b)(o.current):n&&i.current&&Object(Ie.b)(i.current)}),[t,n]);return y.useImperativeHandle(r,(function(){return{focus:s}}),[s]),y.useEffect((function(){a.current&&(s(),a.current=!1)})),[o,i,function(){a.current=!0}]}(n,d,A),h=p[0],f=p[1],I=p[2],C=function(){var e=Q;return e&&V&&(e=i.getFullYear()!==V.getFullYear()||i.getMonth()!==V.getMonth()||a.getFullYear()!==V.getFullYear()||a.getMonth()!==V.getMonth()),Q&&y.createElement("button",{className:Object(ve.a)("js-goToday",Z.goTodayButton),onClick:b,onKeyDown:v(b),type:"button",disabled:!e},D.goToToday)},E=n.showMonthPickerAsOverlay?function(){g(),I()}:void 0,b=function(){l(V),I()},v=function(e){return function(t){switch(t.which){case ae.a.enter:case ae.a.space:e()}}},B=n.firstDayOfWeek,M=n.dateRangeType,D=n.strings,w=n.showMonthPickerAsOverlay,Q=n.showGoToToday,S=n.highlightCurrentMonth,N=n.highlightSelectedMonth,k=n.navigationIcons,T=n.minDate,j=n.maxDate,L=n.restrictedDates,R=n.className,O=n.showCloseButton,_=n.allFocusable,F=n.styles,z=n.showWeekNumbers,P=n.theme,U=n.calendarDayProps,G=n.calendarMonthProps,H=n.dateTimeFormatter,Y=n.today,V=void 0===Y?new Date:Y,W=!w&&!d,K=w&&Q,Z=Na(F,{theme:P,className:R,isMonthPickerVisible:A,isDayPickerVisible:d,monthPickerOnly:W,showMonthPickerAsOverlay:w,overlaidWithButton:K,overlayedWithButton:K,showGoToToday:Q,showWeekNumbers:z}),J="",q="";H&&D.todayDateFormatString&&(J=Object(Fi.a)(D.todayDateFormatString,H.formatMonthDayYear(V,D))),H&&D.selectedDateFormatString&&(q=Object(Fi.a)(D.selectedDateFormatString,H.formatMonthDayYear(o,D)));var X=q+", "+J;return y.createElement("div",{ref:t,role:"group","aria-label":X,className:Object(ve.a)("ms-DatePicker",Z.root,R,"ms-slideDownIn10"),onKeyDown:function(e){var t,r;switch(e.which){case ae.a.enter:case ae.a.backspace:e.preventDefault();break;case ae.a.escape:null===(r=(t=n).onDismiss)||void 0===r||r.call(t);break;case ae.a.pageUp:e.ctrlKey?l(Ci(i,1)):l(Ii(i,1)),e.preventDefault();break;case ae.a.pageDown:e.ctrlKey?l(Ci(i,-1)):l(Ii(i,-1)),e.preventDefault()}}},y.createElement("div",{className:Z.liveRegion,"aria-live":"polite","aria-atomic":"true"},y.createElement("span",null,q)),d&&y.createElement(aa,Object(m.a)({selectedDate:o,navigatedDate:i,today:n.today,onSelectDate:s,onNavigateDate:function(e,t){l(e),t&&I()},onDismiss:n.onDismiss,firstDayOfWeek:B,dateRangeType:M,strings:D,onHeaderSelect:E,navigationIcons:k,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,dateTimeFormatter:n.dateTimeFormatter,showSixWeeksByDefault:n.showSixWeeksByDefault,minDate:T,maxDate:j,restrictedDates:L,workWeekDays:n.workWeekDays,componentRef:h,showCloseButton:O,allFocusable:_},U)),d&&A&&y.createElement("div",{className:Z.divider}),A?y.createElement("div",{className:Z.monthPickerWrapper},y.createElement(Qa,Object(m.a)({navigatedDate:a,selectedDate:i,strings:D,onNavigateDate:function(e,t){t&&I(),t?(W&&s(e),l(e)):c(e)},today:n.today,highlightCurrentMonth:S,highlightSelectedMonth:N,onHeaderSelect:E,navigationIcons:k,dateTimeFormatter:n.dateTimeFormatter,minDate:T,maxDate:j,componentRef:f},G)),C()):C(),y.createElement(je.a,null))}));ja.displayName="CalendarBase";var La=Object(M.a)(ja,(function(e){var t=e.className,n=e.theme,r=e.isDayPickerVisible,o=e.isMonthPickerVisible,i=e.showWeekNumbers,a=n.palette,s=r&&o?440:220;return i&&r&&(s+=30),{root:[I.gb,{display:"flex",width:s},!o&&{flexDirection:"column"},t],divider:{top:0,borderRight:"1px solid",borderColor:a.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[Object(I.Q)(n,{inset:-1}),{bottom:0,color:a.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:I.j.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:I.j.small},"&:hover":{color:a.themePrimary,backgroundColor:"transparent",cursor:"pointer"},"&:active":{color:a.themeDark},"&:disabled":{color:a.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}}),void 0,{scope:"Calendar"}),Ra=n(252),Oa=y.forwardRef((function(e,t){var n=y.useRef(null),r=y.useRef(null),o=y.useRef(null),i=Object(L.a)(n,t),a=oi(void 0,e.id),s=Jt(),l=Object(w.j)(e,w.h),c=Yt((function(){return{previouslyFocusedElementOutsideTrapZone:void 0,previouslyFocusedElementInTrapZone:void 0,disposeFocusHandler:void 0,disposeClickHandler:void 0,hasFocus:!1,unmodalize:void 0}})),u=e.ariaLabelledBy,A=e.className,d=e.children,g=e.componentRef,p=e.disabled,h=e.disableFirstFocus,f=void 0!==h&&h,I=e.disabled,C=void 0!==I&&I,E=e.elementToFocusOnDismiss,b=e.forceFocusInsideTrap,v=void 0===b||b,B=e.focusPreviouslyFocusedInnerElement,M=e.firstFocusableSelector,D=e.ignoreExternalFocusing,x=e.isClickableOutsideFocusTrap,Q=void 0!==x&&x,S=e.onFocus,N=e.onBlur,k=e.onFocusCapture,T=e.onBlurCapture,j=e.enableAriaHiddenSiblings,R={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:p?-1:0,"data-is-visible":!0},O=y.useCallback((function(){if(B&&c.previouslyFocusedElementInTrapZone&&Object(Be.a)(n.current,c.previouslyFocusedElementInTrapZone))Object(Ie.b)(c.previouslyFocusedElementInTrapZone);else{var e="string"==typeof M?M:M&&M(),t=null;n.current&&(e&&(t=n.current.querySelector("."+e)),t||(t=Object(Ie.j)(n.current,n.current.firstChild,!1,!1,!1,!0))),t&&Object(Ie.b)(t)}}),[M,B,c]),_=y.useCallback((function(e){if(!p){var t=e===c.hasFocus?o.current:r.current;if(n.current){var i=e===c.hasFocus?Object(Ie.i)(n.current,t,!0,!1):Object(Ie.f)(n.current,t,!0,!1);i&&(i===r.current||i===o.current?O():i.focus())}}}),[p,O,c]),F=y.useCallback((function(e){var t;null===(t=T)||void 0===t||t(e);var r=e.relatedTarget;null===e.relatedTarget&&(r=s.activeElement),Object(Be.a)(n.current,r)||(c.hasFocus=!1)}),[s,c,T]),z=y.useCallback((function(e){var t;null===(t=k)||void 0===t||t(e),e.target===r.current?_(!0):e.target===o.current&&_(!1),c.hasFocus=!0,e.target!==e.currentTarget&&e.target!==r.current&&e.target!==o.current&&(c.previouslyFocusedElementInTrapZone=e.target)}),[k,c,_]),P=y.useCallback((function(){if(Oa.focusStack=Oa.focusStack.filter((function(e){return a!==e})),s){var e=s.activeElement;D||!c.previouslyFocusedElementOutsideTrapZone||"function"!=typeof c.previouslyFocusedElementOutsideTrapZone.focus||!Object(Be.a)(n.current,e)&&e!==s.body||c.previouslyFocusedElementOutsideTrapZone!==r.current&&c.previouslyFocusedElementOutsideTrapZone!==o.current&&Object(Ie.b)(c.previouslyFocusedElementOutsideTrapZone)}}),[s,a,D,c]),U=y.useCallback((function(e){if(!p&&Oa.focusStack.length&&a===Oa.focusStack[Oa.focusStack.length-1]){var t=e.target;Object(Be.a)(n.current,t)||(O(),c.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[p,a,O,c]),G=y.useCallback((function(e){if(!p&&Oa.focusStack.length&&a===Oa.focusStack[Oa.focusStack.length-1]){var t=e.target;t&&!Object(Be.a)(n.current,t)&&(O(),c.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[p,a,O,c]),H=y.useCallback((function(){v&&!c.disposeFocusHandler?c.disposeFocusHandler=Object(it.a)(window,"focus",U,!0):!v&&c.disposeFocusHandler&&(c.disposeFocusHandler(),c.disposeFocusHandler=void 0),Q||c.disposeClickHandler?Q&&c.disposeClickHandler&&(c.disposeClickHandler(),c.disposeClickHandler=void 0):c.disposeClickHandler=Object(it.a)(window,"click",G,!0)}),[G,U,v,Q,c]);return y.useEffect((function(){var e=n.current;return H(),function(){var t;p&&!v&&Object(Be.a)(e,null===(t=s)||void 0===t?void 0:t.activeElement)||P()}}),[H]),y.useEffect((function(){var e=void 0===v||v,t=void 0!==p&&p;if(!t||e){if(C)return;Oa.focusStack.push(a),c.previouslyFocusedElementOutsideTrapZone=E||s.activeElement,f||Object(Be.a)(n.current,c.previouslyFocusedElementOutsideTrapZone)||O(),!c.unmodalize&&n.current&&j&&(c.unmodalize=Object(Ra.a)(n.current))}else e&&!t||(P(),c.unmodalize&&c.unmodalize());E&&c.previouslyFocusedElementOutsideTrapZone!==E&&(c.previouslyFocusedElementOutsideTrapZone=E)}),[E,v,p]),_a((function(){c.disposeClickHandler&&(c.disposeClickHandler(),c.disposeClickHandler=void 0),c.disposeFocusHandler&&(c.disposeFocusHandler(),c.disposeFocusHandler=void 0),c.unmodalize&&c.unmodalize(),delete c.previouslyFocusedElementInTrapZone,delete c.previouslyFocusedElementOutsideTrapZone})),function(e,t,n){y.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[t,n])}(g,c.previouslyFocusedElementInTrapZone,O),y.createElement("div",Object(m.a)({},l,{className:A,ref:i,"aria-labelledby":u,onFocusCapture:z,onFocus:S,onBlur:N,onBlurCapture:F}),y.createElement("div",Object(m.a)({},R,{ref:r})),d,y.createElement("div",Object(m.a)({},R,{ref:o})))})),_a=function(e){var t=y.useRef(e);t.current=e,y.useEffect((function(){return function(){t.current&&t.current()}}),[e])};Oa.displayName="FocusTrapZone",Oa.focusStack=[];var Fa=function(e){return y.createElement(Rn,Object(m.a)({},e),y.createElement(Oa,Object(m.a)({disabled:e.hidden},e.focusTrapProps),e.children))},za=Object(D.a)(),Pa=y.forwardRef((function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.className,i=e.theme,a=e.styles,s=e.useFastIcons,l=void 0===s||s,c=za(a,{theme:i,className:o,checked:r}),u=l?Ke.a:N.a;return y.createElement("div",{className:c.root,ref:t},y.createElement(u,{iconName:"CircleRing",className:c.circle}),y.createElement(u,{iconName:"StatusCircleCheckmark",className:c.check}))}));Pa.displayName="CheckBase";var Ua={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},Ga=Object(M.a)(Pa,(function(e){var t,n,r,o,i,a=e.height,s=void 0===a?e.checkBoxHeight||"18px":a,l=e.checked,c=e.className,u=e.theme,A=u.palette,d=u.semanticColors,g=u.fonts,p=Object(Q.a)(u),h=Object(I.R)(Ua,u),f={fontSize:s,position:"absolute",left:0,top:0,width:s,height:s,textAlign:"center",verticalAlign:"middle"};return{root:[h.root,g.medium,{lineHeight:"1",width:s,height:s,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:d.bodyBackground}},t["."+h.checkHost+":hover &, ."+h.checkHost+":focus &, &:hover, &:focus"]={opacity:1},t)},l&&["is-checked",{selectors:{":before":{background:A.themePrimary,opacity:1,selectors:(n={},n[I.l]={background:"Window"},n)}}}],c],circle:[h.circle,f,{color:A.neutralSecondary,selectors:(r={},r[I.l]={color:"WindowText"},r)},l&&{color:A.white}],check:[h.check,f,{opacity:0,color:A.neutralSecondary,fontSize:I.o.medium,left:p?"-0.5px":".5px",selectors:(o={":hover":{opacity:1}},o[I.l]=Object(m.a)({},Object(I.S)()),o)},l&&{opacity:1,color:A.white,fontWeight:900,selectors:(i={},i[I.l]={border:"none",color:"WindowText"},i)}],checkHost:h.checkHost}}),void 0,{scope:"Check"},!0),Ha=Object(D.a)(),Ya=y.forwardRef((function(e,t){var n=e.disabled,r=e.required,o=e.inputProps,i=e.name,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,c=e.ariaPositionInSet,u=e.ariaSetSize,A=e.title,d=e.label,g=e.checkmarkIconProps,p=e.styles,h=e.theme,f=e.className,I=e.boxSide,C=void 0===I?"start":I,E=oi("checkbox-",e.id),b=y.useRef(null),v=Object(L.a)(b,t),B=y.useRef(null),M=Sa(e.checked,e.defaultChecked,e.onChange),D=M[0],x=M[1],w=Sa(e.indeterminate,e.defaultIndeterminate),Q=w[0],S=w[1];Object(je.b)(b),function(e,t,n,r){y.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},get indeterminate(){return!!n},focus:function(){r.current&&r.current.focus()}}}),[r,t,n])}(e,D,Q,B);var k=Ha(p,{theme:h,className:f,disabled:n,indeterminate:Q,checked:D,reversed:"start"!==C,isUsingCustomLabelRender:!!e.onRenderLabel}),T=y.useCallback((function(e){return e&&e.label?y.createElement("span",{"aria-hidden":"true",className:k.text,title:e.title},e.label):null}),[k.text]),j=e.onRenderLabel||T,R=Q?"mixed":D?"true":"false",O=Object(m.a)(Object(m.a)({className:k.input,type:"checkbox"},o),{checked:!!D,disabled:n,required:r,name:i,id:E,title:A,onChange:function(e){Q?(x(!!D,e),S(!1)):x(!D,e)},"aria-disabled":n,"aria-label":a||d,"aria-labelledby":s,"aria-describedby":l,"aria-posinset":c,"aria-setsize":u,"aria-checked":R});return y.createElement("div",{className:k.root,title:A,ref:v},y.createElement("input",Object(m.a)({},O,{ref:B,"data-ktp-execute-target":!0})),y.createElement("label",{className:k.label,htmlFor:E},y.createElement("div",{className:k.checkbox,"data-ktp-target":!0},y.createElement(N.a,Object(m.a)({iconName:"CheckMark"},g,{className:k.checkmark}))),j(e,T)))}));Ya.displayName="CheckboxBase";var Va={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Wa=Object(M.a)(Ya,(function(e){var t,n,r,o,i,a,s,l,c,u,A,d,g,p,h,f,y,C,E=e.className,b=e.theme,v=e.reversed,B=e.checked,M=e.disabled,D=e.isUsingCustomLabelRender,x=e.indeterminate,w=b.semanticColors,Q=b.effects,S=b.palette,N=b.fonts,k=Object(I.R)(Va,b),T=w.inputForegroundChecked,j=S.neutralSecondary,L=S.neutralPrimary,R=w.inputBackgroundChecked,O=w.inputBackgroundChecked,_=w.disabledBodySubtext,F=w.inputBorderHovered,z=w.inputBackgroundCheckedHovered,P=w.inputBackgroundChecked,U=w.inputBackgroundCheckedHovered,G=w.inputBackgroundCheckedHovered,H=w.inputTextHovered,Y=w.disabledBodySubtext,V=w.bodyText,W=w.disabledText,K=[(t={content:'""',borderRadius:Q.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:M?_:R,transitionProperty:"border-width, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)"},t[I.l]={borderColor:"WindowText"},t)];return{root:[k.root,{position:"relative",display:"flex"},v&&"reversed",B&&"is-checked",!M&&"is-enabled",M&&"is-disabled",!M&&[!B&&(n={},n[":hover ."+k.checkbox]=(r={borderColor:F},r[I.l]={borderColor:"Highlight"},r),n[":focus ."+k.checkbox]={borderColor:F},n[":hover ."+k.checkmark]=(o={color:j,opacity:"1"},o[I.l]={color:"Highlight"},o),n),B&&!x&&(i={},i[":hover ."+k.checkbox]={background:U,borderColor:G},i[":focus ."+k.checkbox]={background:U,borderColor:G},i[I.l]=(a={},a[":hover ."+k.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+k.checkbox]={background:"Highlight"},a[":focus:hover ."+k.checkbox]={background:"Highlight"},a[":focus:hover ."+k.checkmark]={color:"Window"},a[":hover ."+k.checkmark]={color:"Window"},a),i),x&&(s={},s[":hover ."+k.checkbox+", :hover ."+k.checkbox+":after"]=(l={borderColor:z},l[I.l]={borderColor:"WindowText"},l),s[":focus ."+k.checkbox]={borderColor:z},s[":hover ."+k.checkmark]={opacity:"0"},s),(c={},c[":hover ."+k.text+", :focus ."+k.text]=(u={color:H},u[I.l]={color:M?"GrayText":"WindowText"},u),c)],E],input:(A={position:"absolute",background:"none",opacity:0},A["."+Kn.a+" &:focus + label::before"]=(d={outline:"1px solid "+b.palette.neutralSecondary,outlineOffset:"2px"},d[I.l]={outline:"1px solid WindowText"},d),A),label:[k.label,b.fonts.medium,{display:"flex",alignItems:D?"center":"flex-start",cursor:M?"default":"pointer",position:"relative",userSelect:"none"},v&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[k.checkbox,(g={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:"20px",width:"20px",border:"1px solid "+L,borderRadius:Q.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",overflow:"hidden",":after":x?K:null},g[I.l]=Object(m.a)({borderColor:"WindowText"},Object(I.S)()),g),x&&{borderColor:R},v?{marginLeft:4}:{marginRight:4},!M&&!x&&B&&(p={background:P,borderColor:O},p[I.l]={background:"Highlight",borderColor:"Highlight"},p),M&&(h={borderColor:_},h[I.l]={borderColor:"GrayText"},h),B&&M&&(f={background:Y,borderColor:_},f[I.l]={background:"Window"},f)],checkmark:[k.checkmark,(y={opacity:B?"1":"0",color:T},y[I.l]=Object(m.a)({color:M?"GrayText":"Window"},Object(I.S)()),y)],text:[k.text,(C={color:M?W:V,fontSize:N.medium.fontSize,lineHeight:"20px"},C[I.l]=Object(m.a)({color:M?"GrayText":"WindowText"},Object(I.S)()),C),v?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),Ka=Object(D.a)({cacheSize:100}),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,o=e.className,i=e.disabled,a=e.styles,s=e.required,l=e.theme,c=Ka(a,{className:o,disabled:i,required:s,theme:l});return y.createElement(n,Object(m.a)({},Object(w.j)(this.props,w.h),{className:c.root}),r)},t}(y.Component),Ja=Object(M.a)(Za,(function(e){var t,n=e.theme,r=e.className,o=e.disabled,i=e.required,a=n.semanticColors,s=I.k.semibold,l=a.bodyText,c=a.disabledBodyText,u=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:c,selectors:(t={},t[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),t)},i&&{selectors:{"::after":{content:"' *'",color:u,paddingRight:12}}},r]}}),void 0,{scope:"Label"}),qa=n(253),Xa=Object(D.a)(),$a={imageSize:{width:32,height:32}},es=function(e){var t=Object(x.a)(Object(m.a)(Object(m.a)({},$a),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,o=t.required,i=t.theme,a=t.iconProps,s=t.imageSrc,l=t.imageSize,c=t.disabled,u=t.checked,A=t.id,d=t.styles,g=t.name,p=Object(m.d)(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),h=Xa(d,{theme:i,hasIcon:!!a,hasImage:!!s,checked:u,disabled:c,imageIsLarge:!!s&&(l.width>71||l.height>71),imageSize:l,focused:r}),f=Object(w.j)(p,w.o),I=f.className,C=Object(m.d)(f,["className"]),E=function(){return y.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},b=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,o=(t.onRenderLabel?Object(qa.a)(t.onRenderLabel,E):E)(t);return y.createElement("label",{htmlFor:A,className:h.field},s&&y.createElement("div",{className:h.innerField},y.createElement("div",{className:h.imageWrapper},y.createElement(V.a,Object(m.a)({src:s,alt:n},l))),y.createElement("div",{className:h.selectedImageWrapper},y.createElement(V.a,Object(m.a)({src:r,alt:n},l)))),a&&y.createElement("div",{className:h.innerField},y.createElement("div",{className:h.iconWrapper},y.createElement(N.a,Object(m.a)({},a)))),s||a?y.createElement("div",{className:h.labelWrapper},o):o)},v=t.onRenderField,B=void 0===v?b:v;return y.createElement("div",{className:h.root},y.createElement("div",{className:h.choiceFieldWrapper},y.createElement("input",Object(m.a)({"aria-label":n,id:A,className:Object(ve.a)(h.input,I),type:"radio",name:g,disabled:c,checked:u,required:o},C,{onChange:function(e){var n,r;null===(r=(n=t).onChange)||void 0===r||r.call(n,e,t)},onFocus:function(e){var n,r;null===(r=(n=t).onFocus)||void 0===r||r.call(n,e,t)},onBlur:function(e){var n,r;null===(r=(n=t).onBlur)||void 0===r||r.call(n,e)}})),B(t,b)))};es.displayName="ChoiceGroupOption";var ts={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"};function ns(e,t){var n,r;return["is-inFocus",{selectors:(n={},n["."+Kn.a+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+e,position:"absolute",selectors:(r={},r[I.l]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function rs(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:"200ms",transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var os=Object(M.a)(es,(function(e){var t,n,r,o,i,a=e.theme,s=e.hasIcon,l=e.hasImage,c=e.checked,u=e.disabled,A=e.imageIsLarge,d=e.focused,g=e.imageSize,p=a.palette,h=a.semanticColors,f=a.fonts,y=Object(I.R)(ts,a),C=p.neutralPrimary,E=h.inputBorderHovered,b=h.inputBackgroundChecked,v=p.themeDark,B=h.disabledBodySubtext,M=h.bodyBackground,D=p.neutralSecondary,x=h.inputBackgroundChecked,w=p.themeDark,Q=h.disabledBodySubtext,S=p.neutralDark,N=h.focusBorder,k=h.inputBorderHovered,T=h.inputBackgroundChecked,j=p.themeDark,L=p.neutralLighter,R={selectors:{".ms-ChoiceFieldLabel":{color:S},":before":{borderColor:c?v:E},":after":[!s&&!l&&!c&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:D},c&&{borderColor:w}]}},O={borderColor:c?j:k,selectors:{":before":{opacity:1,borderColor:c?v:E}}},_=[{content:'""',display:"inline-block",backgroundColor:M,borderWidth:1,borderStyle:"solid",borderColor:C,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",borderRadius:"50%"},u&&{borderColor:B,selectors:(t={},t[I.l]=Object(m.a)({borderColor:"GrayText",background:"Window"},Object(I.S)()),t)},c&&{borderColor:u?B:b,selectors:(n={},n[I.l]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:c?1:0}],F=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:u?Q:x,left:5,top:5,width:10,height:10,selectors:(r={},r[I.l]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},c&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[y.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:h.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:L,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,d&&ns(N,s||l)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},u&&"is-disabled"],field:[y.field,c&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!u&&R,":focus":!u&&R,":before":_,":after":F}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:"200ms",transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:T},(s||l)&&!u&&{selectors:{":hover":O,":focus":O}},u&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:h.disabledBodyText,selectors:(o={},o[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),o)}}},c&&u&&{borderColor:L}],innerField:[y.innerField,l&&{height:g.height,width:g.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&A&&{paddingLeft:24,paddingRight:24},(s||l)&&u&&{opacity:.25,selectors:(i={},i[I.l]={color:"GrayText",opacity:1},i)}],imageWrapper:rs(!1,y.imageWrapper,c),selectedImageWrapper:rs(!0,y.imageWrapper,c),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,f.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*g.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),is=Object(D.a)(),as=function(e,t){return t+"-"+e.key},ss=function(e,t){return void 0===t?void 0:Object(dr.d)(e,(function(e){return e.key===t}))},ls=y.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.styles,i=e.options,a=void 0===i?[]:i,s=e.label,l=e.required,c=e.disabled,u=e.name,A=e.defaultSelectedKey,d=e.componentRef,g=e.onChange,p=oi("ChoiceGroup"),h=oi("ChoiceGroupLabel"),f=Object(w.j)(e,w.h,["onChange","className","required"]),I=is(o,{theme:r,className:n,optionsContainIconOrImage:a.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),C=e.ariaLabelledBy||(s?h:e["aria-labelledby"]),E=Sa(e.selectedKey,A),b=E[0],v=E[1],B=y.useState(),M=B[0],D=B[1];!function(e,t,n,r){y.useImperativeHandle(r,(function(){return{get checkedOption(){return ss(e,t)},focus:function(){var r=ss(e,t)||e.filter((function(e){return!e.disabled}))[0],o=r&&document.getElementById(as(r,n));o&&(o.focus(),Object(Kn.b)(!0,o))}}}),[e,t,n])}(a,b,p,d);var x=y.useCallback((function(e,t){var n,r;t&&(D(t.itemKey),null===(r=(n=t).onFocus)||void 0===r||r.call(n,e))}),[]),Q=y.useCallback((function(e,t){var n,r,o;D(void 0),null===(o=null===(n=t)||void 0===n?void 0:(r=n).onBlur)||void 0===o||o.call(r,e)}),[]),S=y.useCallback((function(e,t){var n,r,o;t&&(v(t.itemKey),null===(r=(n=t).onChange)||void 0===r||r.call(n,e),null===(o=g)||void 0===o||o(e,ss(a,t.itemKey)))}),[g,a,v]);return y.createElement("div",Object(m.a)({className:I.root},f,{ref:t}),y.createElement("div",Object(m.a)({role:"radiogroup"},C&&{"aria-labelledby":C}),s&&y.createElement(Ja,{className:I.label,required:l,id:h,disabled:c},s),y.createElement("div",{className:I.flexContainer},a.map((function(e){return y.createElement(os,Object(m.a)({key:e.key,itemKey:e.key},e,{onBlur:Q,onFocus:x,onChange:S,focused:e.key===M,checked:e.key===b,disabled:e.disabled||c,id:as(e,p),labelId:e.labelId||h+"-"+e.key,name:u||p,required:l}))})))))}));ls.displayName="ChoiceGroup";var cs={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},us=Object(M.a)(ls,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=Object(I.R)(cs,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),As=Object(C.c)((function(){return Object(I.bb)({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})})),ds=Object(C.c)((function(){return Object(I.bb)({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})})),gs=Object(C.c)((function(){return Object(I.bb)({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})}));var ps,hs=Object(C.c)((function(){var e;return Object(I.db)({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(e={},e[I.l]={border:"1px solid WindowText"},e)},Object(I.L)()],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})})),fs={opacity:0},ms=((ps={})[rt.top]="slideUpIn20",ps[rt.bottom]="slideDownIn20",ps[rt.left]="slideLeftIn20",ps[rt.right]="slideRightIn20",ps),ys={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Je.bottomAutoEdge};function Is(e,t,n,r,o){var i=Vt(),a=y.useState(),s=a[0],l=a[1],c=y.useRef(0),u=function(){i.requestAnimationFrame((function(){return A()}))},A=function(){var i,a,u=e.offsetFromTarget,A=e.onPositioned,d=t.current,g=n.current;if(d&&g){var p=Object(m.a)({},e);if(p.bounds=o(),p.target=r.current,document.body.contains(p.target)){p.gapSpace=u;var h=Ft(p,d,g);!s&&h||s&&h&&!function(e,t){return function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(r&&o&&r.toFixed(2)!==o.toFixed(2))return!1}return!0}(e.elementPosition,t.elementPosition)}(s,h)&&c.current<5?(c.current++,l(h),null===(i=A)||void 0===i||i(h)):(c.current=0,null===(a=A)||void 0===a||a(h))}else void 0!==s&&l(void 0)}};return y.useEffect(u),[s,u]}function Cs(e,t){var n=e.finalHeight,r=y.useState(0),o=r[0],i=r[1],a=Vt(),s=y.useRef(0),l=function(){t&&n&&(s.current=a.requestAnimationFrame((function(){if(t.current){var e=t.current.lastChild,r=e.scrollHeight,c=e.offsetHeight;i(o+(r-c)),e.offsetHeight<n?l():a.cancelAnimationFrame(s.current)}})))};return y.useEffect(l,[n]),o}var Es=y.forwardRef((function(e,t){var n=Object(x.a)(ys,e),r=y.useRef(null),o=y.useRef(null),i=Object(L.a)(t,o),a=tn(n.target,o),s=a[0],l=a[1],c=function(e,t){var n=y.useRef();return function(){if(!n.current){var r=e.bounds;r||(r={top:0+e.minPagePadding,left:0+e.minPagePadding,right:t.innerWidth-e.minPagePadding,bottom:t.innerHeight-e.minPagePadding,width:t.innerWidth-2*e.minPagePadding,height:t.innerHeight-2*e.minPagePadding}),n.current=r}return n.current}}(n,l),u=Is(n,o,r,s,c),A=u[0],d=u[1],g=function(e,t,n){var r=e.directionalHintFixed,o=e.offsetFromTarget,i=e.directionalHint,a=e.target,s=y.useRef();return"string"==typeof a&&(s.current=void 0),y.useEffect((function(){s.current=void 0}),[a,o]),function(){if(!s.current)if(r&&t.current){var e=o||0;s.current=Ut(t.current,i,e,n())}else s.current=n().height-2;return s.current}}(n,s,c),p=Cs(n,r);if(function(e,t,n){var r=e.setInitialFocus,o=y.useRef(!1);y.useEffect((function(){!o.current&&t.current&&r&&n&&(o.current=!0,Object(Ie.c)(t.current))}))}(n,r,A),function(e,t,n,r,o,i){var a=e.onDismiss,s=e.preventDismissOnScroll,l=Vt(),c=function(e){a?a(e):i()},u=function(e){o&&!s&&A(e)},A=function(e){var o=e.target,i=t.current&&!Object(Be.a)(t.current,o);(!r.current&&i||e.target!==n&&i&&(r.current.stopPropagation||!r.current||o!==r.current&&!Object(Be.a)(r.current,o)))&&c(e)};y.useEffect((function(){var e=new Ue.a({});return l.setTimeout((function(){var t,r,o,i;e.on(n,"scroll",l.throttle(u,10),!0),e.on(n,"resize",l.throttle(c,10),!0),e.on(null===(r=null===(t=n)||void 0===t?void 0:t.document)||void 0===r?void 0:r.body,"focus",A,!0),e.on(null===(i=null===(o=n)||void 0===o?void 0:o.document)||void 0===i?void 0:i.body,"click",A,!0)}),0),function(){return e.dispose()}}),[])}(n,o,l,s,A,d),y.useEffect((function(){var e,t;return null===(t=(e=n).onLayerMounted)||void 0===t?void 0:t.call(e)}),[]),!l)return null;var h=n.className,f=n.positioningContainerWidth,m=n.positioningContainerMaxHeight,C=n.children,E=hs(),b=A&&A.targetEdge?I.a[ms[A.targetEdge]]:"",v=g()+p,B=m&&m>v?v:m,M=y.createElement("div",{ref:i,className:Object(ve.a)("ms-PositioningContainer",E.container)},y.createElement("div",{className:Object(I.eb)("ms-PositioningContainer-layerHost",E.root,h,b,!!f&&{width:f}),style:A?A.elementPosition:fs,tabIndex:-1,ref:r},C,B));return n.doNotLayer?M:y.createElement(Ln,null,M)}));function bs(e){return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block"}}}Es.displayName="PositioningContainer";var vs=y.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.left,c=e.top,u=e.bottom,A=e.right,d=e.color,g=e.direction,p=void 0===g?rt.top:g;switch(p===rt.top||p===rt.bottom?(n=10,r=18):(n=18,r=10),p){case rt.top:default:o="9, 0",i="18, 10",a="0, 10",s="translateY(-100%)";break;case rt.right:o="0, 0",i="10, 10",a="0, 18",s="translateX(100%)";break;case rt.bottom:o="0, 0",i="18, 0",a="9, 10",s="translateY(100%)";break;case rt.left:o="10, 0",i="0, 10",a="10, 18",s="translateX(-100%)"}var h=Object(D.a)()(bs,{left:l,top:c,bottom:u,right:A,height:n+"px",width:r+"px",transform:s,color:d});return y.createElement("div",{className:h.root,role:"presentation",ref:t},y.createElement("svg",{height:n,width:r,className:h.beak},y.createElement("polygon",{points:o+" "+i+" "+a})))}));vs.displayName="Beak";var Bs=function(){var e=Yt({});return y.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),Yt({setTimeout:function(t,n){var r=setTimeout(t,n);return e[r]=1,r},clearTimeout:function(t){delete e[t],clearTimeout(t)}})},Ms=Object(D.a)(),Ds="data-coachmarkid",xs={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Je.bottomAutoEdge}};var ws=y.forwardRef((function(e,t){var n=Object(x.a)(xs,e),r=y.useRef(null),o=y.useRef(null),i=function(){var e=Vt(),t=y.useState(),n=t[0],r=t[1],o=y.useState(),i=o[0],a=o[1];return[n,i,function(t){var n=t.alignmentEdge,o=t.targetEdge;return e.requestAnimationFrame((function(){r(n),a(o)}))}]}(),a=i[0],s=i[1],l=i[2],c=function(e,t){var n=e.isCollapsed,r=e.onAnimationOpenStart,o=e.onAnimationOpenEnd,i=y.useState(!!n),a=i[0],s=i[1],l=Bs().setTimeout,c=y.useRef(!a),u=y.useCallback((function(){var e,n,i,a;c.current||(s(!1),null===(e=r)||void 0===e||e(),null===(a=null===(n=t.current)||void 0===n?void 0:(i=n).addEventListener)||void 0===a||a.call(i,"transitionend",(function(){var e;l((function(){t.current&&Object(Ie.c)(t.current)}),1e3),null===(e=o)||void 0===e||e()})),c.current=!0)}),[t,o,r,l]);return y.useEffect((function(){n||u()}),[n]),[a,u]}(n,r),u=c[0],A=c[1],d=function(e,t,n){var r=Object(Q.a)(e.theme);return y.useMemo((function(){var e,o,i=void 0===n?rt.bottom:Gt(n),a={direction:i};switch(i){case rt.top:case rt.bottom:t?t===rt.left?(a.left="7px",e="left"):(a.right="7px",e="right"):(a.left="calc(50% - 9px)",e="center"),i===rt.top?(a.top="3px",o="top"):(a.bottom="3px",o="bottom");break;case rt.left:case rt.right:t?t===rt.top?(a.top="7px",o="top"):(a.bottom="7px",o="bottom"):(a.top="calc(50% - 9px)",o="center"),i===rt.left?(r?a.right="3px":a.left="3px",e="left"):(r?a.left="3px":a.right="3px",e="right")}return[a,e+" "+o]}),[t,n,r])}(n,a,s),g=d[0],p=d[1],h=function(e,t){var n=y.useState(!!e.isCollapsed),r=n[0],o=n[1],i=y.useState(e.isCollapsed?{width:0,height:0}:{}),a=i[0],s=i[1],l=Vt();return y.useEffect((function(){l.requestAnimationFrame((function(){t.current&&(s({width:t.current.offsetWidth,height:t.current.offsetHeight}),o(!1))}))}),[]),[r,a]}(n,r),f=h[0],I=h[1],C=function(e){var t=e.ariaAlertText,n=Vt(),r=y.useState(),o=r[0],i=r[1];return y.useEffect((function(){n.requestAnimationFrame((function(){i(t)}))}),[]),o}(n),E=function(e){var t=e.preventFocusOnMount,n=Bs().setTimeout,r=y.useRef(null);return y.useEffect((function(){t||n((function(){var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}),1e3)}),[]),r}(n);!function(e,t,n){var r,o=null===(r=Object(we.a)())||void 0===r?void 0:r.documentElement;Wt(o,"keydown",(function(e){var r,o,i;(e.altKey&&e.which===ae.a.c||e.which===ae.a.enter&&(null===(i=null===(r=t.current)||void 0===r?void 0:(o=r).contains)||void 0===i?void 0:i.call(o,e.target)))&&n()}),!0);var i=function(n){var r,o;if(e.preventDismissOnLostFocus){var i=n.target,a=t.current&&!Object(Be.a)(t.current,i),s=e.target;a&&i!==s&&!Object(Be.a)(s,i)&&(null===(o=(r=e).onDismiss)||void 0===o||o.call(r,n))}};Wt(o,"click",i,!0),Wt(o,"focus",i,!0)}(n,o,A),function(e){var t=e.onDismiss;y.useImperativeHandle(e.componentRef,(function(e){return{dismiss:function(){var n;null===(n=t)||void 0===n||n(e)}}}),[t])}(n),function(e,t,n){var r=Bs(),o=r.setTimeout,i=r.clearTimeout,a=y.useRef();y.useEffect((function(){var r=function(){t.current&&(a.current=t.current.getBoundingClientRect())},s=new Ue.a({});return o((function(){var t=e.mouseProximityOffset,l=void 0===t?0:t,c=[];o((function(){r(),s.on(window,"resize",(function(){c.forEach((function(e){i(e)})),c.splice(0,c.length),c.push(o((function(){r()}),100))}))}),10),s.on(document,"mousemove",(function(t){var o,i,s=t.clientY,c=t.clientX;r(),function(e,t,n,r){void 0===r&&(r=0);return t>e.left-r&&t<e.left+e.width+r&&n>e.top-r&&n<e.top+e.height+r}(a.current,c,s,l)&&n(),null===(i=(o=e).onMouseMove)||void 0===i||i.call(o,t)}))}),e.delayBeforeMouseOpen),function(){return s.dispose()}}),[])}(n,o,A);var b=n.beaconColorOne,v=n.beaconColorTwo,B=n.children,M=n.target,D=n.color,w=n.positioningContainerProps,S=n.ariaDescribedBy,N=n.ariaDescribedByText,k=n.ariaLabelledBy,T=n.ariaLabelledByText,j=n.ariaAlertText,L=n.delayBeforeCoachmarkAnimation,R=n.styles,O=n.theme,_=n.className,F=n.persistentBeak,z=D;!z&&O&&(z=O.semanticColors.primaryButtonBackground);var P=Ms(R,{theme:O,beaconColorOne:b,beaconColorTwo:v,className:_,isCollapsed:u,isMeasuring:f,color:z,transformOrigin:p,entityHostHeight:void 0===I.height?void 0:I.height+"px",entityHostWidth:void 0===I.width?void 0:I.width+"px",width:"32px",height:"32px",delayBeforeCoachmarkAnimation:L+"ms"}),U=u?32:I.height;return y.createElement(Es,Object(m.a)({target:M,offsetFromTarget:10,finalHeight:U,ref:t,onPositioned:l,bounds:Qs(n)},w),y.createElement("div",{className:P.root},j&&y.createElement("div",{className:P.ariaContainer,role:"alert","aria-hidden":!u},C),y.createElement("div",{className:P.pulsingBeacon}),y.createElement("div",{className:P.translateAnimationContainer,ref:o},y.createElement("div",{className:P.scaleAnimationLayer},y.createElement("div",{className:P.rotateAnimationLayer},(u||F)&&y.createElement(vs,Object(m.a)({},g,{color:z})),y.createElement("div",{className:P.entityHost,ref:E,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":k,"aria-describedby":S},u&&[k&&y.createElement("p",{id:k,key:0,className:P.ariaContainer},T),S&&y.createElement("p",{id:S,key:1,className:P.ariaContainer},N)],y.createElement(Oa,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},y.createElement("div",{className:P.entityInnerHost,ref:r},y.createElement("div",{className:P.childrenContainer,"aria-hidden":u},B)))))))))}));function Qs(e){var t=e.isPositionForced,n=e.positioningContainerProps;return t?!n||n.directionalHint!==Je.topAutoEdge&&n.directionalHint!==Je.bottomAutoEdge?{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:void 0}ws.displayName="CoachmarkBase";var Ss=Object(M.a)(ws,(function(e){var t,n=e.theme,r=e.className,o=e.color,i=e.beaconColorOne,a=e.beaconColorTwo,s=e.delayBeforeCoachmarkAnimation,l=e.isCollapsed,c=e.isMeasuring,u=e.entityHostHeight,A=e.entityHostWidth,d=e.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var g=I.q.continuousPulseAnimationDouble(i||n.palette.themePrimary,a||n.palette.themeTertiary,"35px","150px","10px"),p=I.q.createDefaultAnimation(g,s);return{root:[n.fonts.medium,{position:"relative"},r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:Object(Q.a)(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},l&&p],translateAnimationContainer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:As(),transition:"opacity 0.5s ease-in-out"},!l&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:ds()}],rotateAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:gs()},!l&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:o,borderRadius:32,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(t={},t[I.l]={backgroundColor:"Window",border:"2px solid WindowText"},t["."+Kn.a+" &:focus"]={outline:"1px solid "+n.palette.themeTertiary},t)},!c&&l&&{width:32,height:32},!c&&{visibility:"visible"},!l&&{borderRadius:"1px",opacity:"1",width:A,height:u}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:d,transform:"scale(0)"},!l&&{width:A,height:u,transform:"scale(1)"},!c&&{visibility:"visible"}],childrenContainer:[{display:!c&&l?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}),void 0,{scope:"Coachmark"}),Ns=100,ks=359,Ts=100,js=255,Ls=js,Rs=100,Os=3,_s=6,Fs=1,zs=3,Ps=/^[\da-f]{0,6}$/i,Us=/^\d{0,3}$/;function Gs(e,t,n){var r=n+(t*=(n<50?n:100-n)/100);return{h:e,s:0===r?0:2*t/r*100,v:r}}function Hs(e,t,n){var r=[],o=(n/=100)*(t/=100),i=e/60,a=o*(1-Math.abs(i%2-1)),s=n-o;switch(Math.floor(i)){case 0:r=[o,a,0];break;case 1:r=[a,o,0];break;case 2:r=[0,o,a];break;case 3:r=[0,a,o];break;case 4:r=[a,0,o];break;case 5:r=[o,0,a]}return{r:Math.round(js*(r[0]+s)),g:Math.round(js*(r[1]+s)),b:Math.round(js*(r[2]+s))}}function Ys(e,t,n){var r=Gs(e,t,n);return Hs(r.h,r.s,r.v)}function Vs(e){if(e){var t=Ws(e)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:Rs}}(e)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:Rs}}(e)||function(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r){var i=Ys(o[0],o[1],o[2]);return i.a=n?100*o[3]:Rs,i}}}(e);return t||function(e){if("undefined"==typeof document)return;var t=document.createElement("div");t.style.backgroundColor=e,t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.width="1px",document.body.appendChild(t);var n=getComputedStyle(t),r=n&&n.backgroundColor;if(document.body.removeChild(t),"rgba(0, 0, 0, 0)"===r||"transparent"===r){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return Ws(r)}(e)}}function Ws(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r)return{r:o[0],g:o[1],b:o[2],a:n?100*o[3]:Rs}}}}function Ks(e,t,n){return void 0===n&&(n=0),e<n?n:e>t?t:e}function Zs(e,t,n){return[Js(e),Js(t),Js(n)].join("")}function Js(e){var t=(e=Ks(e,js)).toString(16);return 1===t.length?"0"+t:t}function qs(e,t,n){var r=Hs(e,t,n);return Zs(r.r,r.g,r.b)}function Xs(e,t,n){var r=NaN,o=Math.max(e,t,n),i=o-Math.min(e,t,n);return 0===i?r=0:e===o?r=(t-n)/i%6:t===o?r=(n-e)/i+2:n===o&&(r=(e-t)/i+4),(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:i/o)),v:Math.round(o/js*100)}}function $s(e,t,n){var r=(2-(t/=Ns))*(n/=Ts),o=t*n;return{h:e,s:100*(o=(o/=r<=1?r:2-r)||0),l:100*(r/=2)}}function el(e,t,n,r,o){return r===Rs||"number"!=typeof r?"#"+o:"rgba("+e+", "+t+", "+n+", "+r/Rs+")"}function tl(e){var t=e.a,n=void 0===t?Rs:t,r=e.b,o=e.g,i=e.r,a=Xs(i,o,r),s=a.h,l=a.s,c=a.v,u=Zs(i,o,r);return{a:n,b:r,g:o,h:s,hex:u,r:i,s:l,str:el(i,o,r,n,u),v:c,t:Rs-n}}function nl(e){var t=Vs(e);if(t)return Object(m.a)(Object(m.a)({},tl(t)),{str:e})}function rl(e,t){var n=e.h,r=e.s,o=e.v;t="number"==typeof t?t:Rs;var i=Hs(n,r,o),a=i.r,s=i.g,l=i.b,c=qs(n,r,o);return{a:t,b:l,g:s,h:n,hex:c,r:a,s:r,str:el(a,s,l,t,c),v:o,t:Rs-t}}function ol(e){return"#"+qs(e.h,Ns,Ts)}function il(e,t,n){var r=Hs(e.h,t,n),o=r.r,i=r.g,a=r.b,s=Zs(o,i,a);return Object(m.a)(Object(m.a)({},e),{s:t,v:n,r:o,g:i,b:a,hex:s,str:el(o,i,a,e.a,s)})}function al(e,t){var n=Hs(t,e.s,e.v),r=n.r,o=n.g,i=n.b,a=Zs(r,o,i);return Object(m.a)(Object(m.a)({},e),{h:t,r:r,g:o,b:i,hex:a,str:el(r,o,i,e.a,a)})}function sl(e,t,n){var r;return tl(((r={r:e.r,g:e.g,b:e.b,a:e.a})[t]=n,r))}function ll(e,t){return Object(m.a)(Object(m.a)({},e),{a:t,t:Rs-t,str:el(e.r,e.g,e.b,t,e.hex)})}function cl(e){return{r:Ks(e.r,js),g:Ks(e.g,js),b:Ks(e.b,js),a:"number"==typeof e.a?Ks(e.a,Rs):e.a}}function ul(e){return{h:Ks(e.h,ks),s:Ks(e.s,Ns),v:Ks(e.v,Ts)}}function Al(e){return!e||e.length<Os?"ffffff":e.length>=_s?e.substring(0,_s):e.substring(0,Os)}var dl,gl=[.027,.043,.082,.145,.184,.216,.349,.537],pl=[.537,.45,.349,.216,.184,.145,.082,.043],hl=[.537,.349,.216,.184,.145,.082,.043,.027],fl=[.537,.45,.349,.216,.184,.145,.082,.043],ml=[.88,.77,.66,.55,.44,.33,.22,.11],yl=[.11,.22,.33,.44,.55,.66,.77,.88],Il=[.96,.84,.7,.4,.12],Cl=[.1,.24,.44];function El(e){return"number"==typeof e&&e>=dl.Unshaded&&e<=dl.Shade8}function bl(e,t){return{h:e.h,s:e.s,v:Ks(e.v-e.v*t,100,0)}}function vl(e,t){return{h:e.h,s:Ks(e.s-e.s*t,100,0),v:Ks(e.v+(100-e.v)*t,100,0)}}function Bl(e){return $s(e.h,e.s,e.v).l<50}function Ml(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===dl.Unshaded||!El(t))return e;var r=$s(e.h,e.s,e.v),o={h:e.h,s:e.s,v:e.v},i=t-1,a=vl,s=bl;return n&&(a=bl,s=vl),o=function(e){return e.r===js&&e.g===js&&e.b===js}(e)?bl(o,hl[i]):function(e){return 0===e.r&&0===e.g&&0===e.b}(e)?vl(o,fl[i]):r.l/100>.8?s(o,yl[i]):r.l/100<.2?a(o,ml[i]):i<Il.length?a(o,Il[i]):s(o,Cl[i-Il.length]),tl(Object(Ye.a)(Hs(o.h,o.s,o.v),{a:e.a}))}function Dl(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===dl.Unshaded||!El(t))return e;var r={h:e.h,s:e.s,v:e.v},o=t-1;return r=n?vl(r,pl[fl.length-1-o]):bl(r,gl[o]),tl(Object(Ye.a)(Hs(r.h,r.s,r.v),{a:e.a}))}function xl(e,t){function n(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}var r=.2126*n(e.r/js)+.7152*n(e.g/js)+.0722*n(e.b/js);r+=.05;var o=.2126*n(t.r/js)+.7152*n(t.g/js)+.0722*n(t.b/js);return r/(o+=.05)>1?r/o:o/r}function wl(e,t){var n=Rs-t;return Object(m.a)(Object(m.a)({},e),{t:t,a:n,str:el(e.r,e.g,e.b,n,e.hex)})}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(dl||(dl={}));var Ql,Sl=n(254),Nl=n(172),kl=Object(D.a)(),Tl=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=y.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?y.createElement(Ja,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?y.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState((function(e){return{isRevealingPassword:!e.isRevealingPassword}}))},n._onInputChange=function(e){var t,r,o=e.target.value,i=jl(n.props,n.state)||"";void 0!==o&&o!==n._lastChangeValue&&o!==i?(n._lastChangeValue=o,null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})):n._lastChangeValue=void 0},Object(se.a)(n),n._async=new le.a(n),n._fallbackId=Object(Ee.a)("TextField"),n._descriptionId=Object(Ee.a)("TextFieldDescription"),n._labelId=Object(Ee.a)("TextFieldLabel"),n._warnControlledUsage();var r=t.defaultValue,o=void 0===r?"":r;return"number"==typeof o&&(o=String(o)),n.state={uncontrolledValue:n._isControlled?void 0:o,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return jl(this.props,this.state)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,i=void 0===o?[null,null]:o,a=i[0],s=i[1];!!e.multiline!=!!r.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==r.value&&(this._lastChangeValue=void 0);var l=jl(e,t),c=this.value;l!==c&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),Ll(r)&&this._delayedValidate(c))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,o=e.iconProps,i=e.inputClassName,a=e.label,s=e.multiline,l=e.required,c=e.underlined,u=e.prefix,A=e.resizable,d=e.suffix,g=e.theme,p=e.styles,h=e.autoAdjustHeight,f=e.canRevealPassword,I=e.type,C=e.onRenderPrefix,E=void 0===C?this._onRenderPrefix:C,b=e.onRenderSuffix,v=void 0===b?this._onRenderSuffix:b,B=e.onRenderLabel,M=void 0===B?this._onRenderLabel:B,D=e.onRenderDescription,x=void 0===D?this._onRenderDescription:D,w=this.state,Q=w.isFocused,S=w.isRevealingPassword,k=this._errorMessage,T=!!f&&"password"===I&&function(){var e;if("boolean"!=typeof Ql){var t=Object(be.a)();if(null===(e=t)||void 0===e?void 0:e.navigator){var n=/Edg/.test(t.navigator.userAgent||"");Ql=!(Object(ie.a)()||n)}else Ql=!0}return Ql}(),j=this._classNames=kl(p,{theme:g,className:n,disabled:r,focused:Q,required:l,multiline:s,hasLabel:!!a,hasErrorMessage:!!k,borderless:t,resizable:A,hasIcon:!!o,underlined:c,inputClassName:i,autoAdjustHeight:h,hasRevealButton:T});return y.createElement("div",{ref:this.props.elementRef,className:j.root},y.createElement("div",{className:j.wrapper},M(this.props,this._onRenderLabel),y.createElement("div",{className:j.fieldGroup},(void 0!==u||this.props.onRenderPrefix)&&y.createElement("div",{className:j.prefix},E(this.props,this._onRenderPrefix)),s?this._renderTextArea():this._renderInput(),o&&y.createElement(N.a,Object(m.a)({className:j.icon},o)),T&&y.createElement("button",{className:j.revealButton,onClick:this._onRevealButtonClick,type:"button"},y.createElement("span",{className:j.revealSpan},y.createElement(N.a,{className:j.revealIcon,iconName:S?"Hide":"RedEye"}))),(void 0!==d||this.props.onRenderSuffix)&&y.createElement("div",{className:j.suffix},v(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&y.createElement("span",{id:this._descriptionId},x(this.props,this._onRenderDescription),k&&y.createElement("div",{role:"alert"},y.createElement(de.a,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){Object(Sl.b)({componentId:this._id,componentName:"TextField",props:this.props,oldProps:e,valueProp:"value",defaultValueProp:"defaultValue",onChangeProp:"onChange",readOnlyProp:"readOnly"}),null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,Object(Uo.b)("Warning: 'value' prop on 'TextField' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Object(Nl.a)(this.props,"value")},enumerable:!0,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return y.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return y.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!0,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"==typeof e?y.createElement("p",{className:this._classNames.errorMessage},y.createElement("span",{"data-automation-id":"error-message"},e)):y.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!0,configurable:!0}),t.prototype._renderTextArea=function(){var e=Object(w.j)(this.props,w.w,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return y.createElement("textarea",Object(m.a)({id:this._id},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e,t=Object(w.j)(this.props,w.o,["defaultValue","type"]),n=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0),r=this.state.isRevealingPassword?"text":null!=(e=this.props.type)?e:"text";return y.createElement("input",Object(m.a)({type:r,id:this._id,"aria-labelledby":n},t,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!Ll(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!=typeof r&&"then"in r){var o=++this._lastValidation;r.then((function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(y.Component);function jl(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"==typeof r?String(r):r}function Ll(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var Rl={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function Ol(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,i=o.palette,a=o.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(e={},e[I.l]={height:31},e)}]}}}var _l=Object(M.a)(Tl,(function(e){var t,n,r,o,i,a,s,l,c,u,A,d,g=e.theme,p=e.className,h=e.disabled,f=e.focused,y=e.required,C=e.multiline,E=e.hasLabel,b=e.borderless,v=e.underlined,B=e.hasIcon,M=e.resizable,D=e.hasErrorMessage,x=e.inputClassName,w=e.autoAdjustHeight,Q=e.hasRevealButton,S=g.semanticColors,N=g.effects,k=g.fonts,T=Object(I.R)(Rl,g),j={background:S.disabledBackground,color:h?S.disabledText:S.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[I.l]={background:"Window",color:h?"GrayText":"WindowText"},t)},L=[k.medium,{color:S.inputPlaceholderText,opacity:1,selectors:(n={},n[I.l]={color:"GrayText"},n)}],R={color:S.disabledText,selectors:(r={},r[I.l]={color:"GrayText"},r)};return{root:[T.root,k.medium,y&&T.required,h&&T.disabled,f&&T.active,C&&T.multiline,b&&T.borderless,v&&T.underlined,I.gb,{position:"relative"},p],wrapper:[T.wrapper,v&&[{display:"flex",borderBottom:"1px solid "+(D?S.errorText:S.inputBorder),width:"100%"},h&&{borderBottomColor:S.disabledBackground,selectors:(o={},o[I.l]=Object(m.a)({borderColor:"GrayText"},Object(I.S)()),o)},!h&&{selectors:{":hover":{borderBottomColor:D?S.errorText:S.inputBorderHovered,selectors:(i={},i[I.l]=Object(m.a)({borderBottomColor:"Highlight"},Object(I.S)()),i)}}},f&&[{position:"relative"},Object(I.V)(D?S.errorText:S.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[T.fieldGroup,I.gb,{border:"1px solid "+S.inputBorder,borderRadius:N.roundedCorner2,background:S.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},C&&{minHeight:"60px",height:"auto",display:"flex"},!f&&!h&&{selectors:{":hover":{borderColor:S.inputBorderHovered,selectors:(a={},a[I.l]=Object(m.a)({borderColor:"Highlight"},Object(I.S)()),a)}}},f&&!v&&Object(I.V)(D?S.errorText:S.inputFocusBorderAlt,N.roundedCorner2),h&&{borderColor:S.disabledBackground,selectors:(s={},s[I.l]=Object(m.a)({borderColor:"GrayText"},Object(I.S)()),s),cursor:"default"},b&&{border:"none"},b&&f&&{border:"none",selectors:{":after":{border:"none"}}},v&&{flex:"1 1 0px",border:"none",textAlign:"left"},v&&h&&{backgroundColor:"transparent"},D&&!v&&{borderColor:S.errorText,selectors:{"&:hover":{borderColor:S.errorText}}},!E&&y&&{selectors:(l={":before":{content:"'*'",color:S.errorText,position:"absolute",top:-5,right:-10}},l[I.l]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[k.medium,T.field,I.gb,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:S.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(c={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},c[I.l]={background:"Window",color:h?"GrayText":"WindowText"},c)},Object(I.W)(L),C&&!M&&[T.unresizable,{resize:"none"}],C&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},C&&w&&{overflow:"hidden"},B&&!Q&&{paddingRight:24},C&&B&&{paddingRight:40},h&&[{backgroundColor:S.disabledBackground,color:S.disabledText,borderColor:S.disabledBackground},Object(I.W)(R)],v&&{textAlign:"left"},f&&!b&&{selectors:(u={},u[I.l]={paddingLeft:11,paddingRight:11},u)},f&&C&&!b&&{selectors:(A={},A[I.l]={paddingTop:4},A)},x],icon:[C&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:I.o.medium,lineHeight:18},h&&{color:S.disabledText}],description:[T.description,{color:S.bodySubtext,fontSize:k.xSmall.fontSize}],errorMessage:[T.errorMessage,I.a.slideDownIn20,k.small,{color:S.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[T.prefix,j],suffix:[T.suffix,j],revealButton:[T.revealButton,"ms-Button","ms-Button--icon",{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:S.link,selectors:{":hover":{outline:0,color:S.primaryButtonBackgroundHovered,backgroundColor:S.buttonBackgroundHovered,selectors:(d={},d[I.l]={borderColor:"Highlight",color:"Highlight"},d)},":focus":{outline:0}}},B&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:I.o.medium,lineHeight:18},subComponentStyles:{label:Ol(e)}}}),void 0,{scope:"TextField"}),Fl=Object(D.a)(),zl=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=y.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=Object(Ee.a)("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,r=t.s,o=t.v,i=e.shiftKey?10:1;switch(e.which){case ae.a.up:n._isAdjustingSaturation=!1,o+=i;break;case ae.a.down:n._isAdjustingSaturation=!1,o-=i;break;case ae.a.left:n._isAdjustingSaturation=!0,r-=i;break;case ae.a.right:n._isAdjustingSaturation=!0,r+=i;break;default:return}n._updateColor(e,il(t,Ks(r,Ns),Ks(o,Ts)))},n._onMouseDown=function(e){n._disposables.push(Object(it.a)(window,"mousemove",n._onMouseMove,!0),Object(it.a)(window,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=function(e,t,n){var r=n.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=(e.clientY-r.top)/r.height;return il(t,Ks(Math.round(o*Ns),Ns),Ks(Math.round(Ts-i*Ts),Ts))}(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},Object(se.a)(n),n.state={color:t.color},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentWillUnmount=function(){this._disposeListeners()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,o=e.styles,i=e.ariaValueFormat,a=e.ariaLabel,s=e.ariaDescription,l=this.state.color,c=Fl(o,{theme:n,className:r,minSize:t}),u=i.replace("{0}",String(l.s)).replace("{1}",String(l.v));return y.createElement("div",{ref:this._root,tabIndex:0,className:c.root,style:{backgroundColor:ol(l)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":u,"aria-valuenow":this._isAdjustingSaturation?l.s:l.v,"aria-valuemin":0,"aria-valuemax":Ts,"aria-label":a,"aria-describedby":this._descriptionId,"data-is-focusable":!0},y.createElement("div",{className:c.description,id:this._descriptionId},s),y.createElement("div",{className:c.light}),y.createElement("div",{className:c.dark}),y.createElement("div",{className:c.thumb,style:{left:l.s+"%",top:Ts-l.v+"%",backgroundColor:l.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,r=this.state.color;t.s===r.s&&t.v===r.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(y.Component);var Pl=Object(M.a)(zl,(function(e){var t,n=e.className,r=e.theme,o=e.minSize,i=r.palette,a=r.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid "+i.neutralLighter,borderRadius:a.roundedCorner2,minWidth:o,minHeight:o,outline:"none",selectors:(t={},t[I.l]=Object(m.a)({},Object(I.S)()),t["."+Kn.a+" &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},n],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid "+i.white,borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:I.ab}}),void 0,{scope:"ColorRectangle"}),Ul=Object(D.a)(),Gl=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=y.createRef(),n._onKeyDown=function(e){var t=n.value,r=n._maxValue,o=e.shiftKey?10:1;switch(e.which){case ae.a.left:t-=o;break;case ae.a.right:t+=o;break;case ae.a.home:t=0;break;case ae.a.end:t=r;break;default:return}n._updateValue(e,Ks(t,r))},n._onMouseDown=function(e){var t=Object(be.a)(n);t&&n._disposables.push(Object(it.a)(t,"mousemove",n._onMouseMove,!0),Object(it.a)(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n._maxValue,r=n._root.current.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=Ks(Math.round(o*t),t);n._updateValue(e,i)}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},Object(se.a)(n),Object(He.a)("ColorSlider",t,{thumbColor:"styles.sliderThumb",overlayStyle:"overlayColor",isAlpha:"type",maxValue:"type",minValue:"type"}),"hue"===n._type||t.overlayColor||t.overlayStyle||Object(Uo.b)("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),n.state={currentValue:t.value||0},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentWillUnmount=function(){this._disposeListeners()},t.prototype.render=function(){var e=this._type,t=this._maxValue,n=this.props,r=n.overlayStyle,o=n.overlayColor,i=n.theme,a=n.className,s=n.styles,l=n.ariaLabel,c=void 0===l?e:l,u=this.value,A=Ul(s,{theme:i,className:a,type:e}),d=100*u/t;return y.createElement("div",{ref:this._root,className:A.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":u,"aria-valuetext":String(u),"aria-valuemin":0,"aria-valuemax":t,"aria-label":c,"data-is-focusable":!0},!(!o&&!r)&&y.createElement("div",{className:A.sliderOverlay,style:o?{background:"transparency"===e?"linear-gradient(to right, #"+o+", transparent)":"linear-gradient(to right, transparent, #"+o+")"}:r}),y.createElement("div",{className:A.sliderThumb,style:{left:d+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,n=e.type;return void 0===n?t?"alpha":"hue":n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return"hue"===this._type?ks:Rs},enumerable:!0,configurable:!0}),t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={value:0},t}(y.Component),Hl={background:"linear-gradient("+["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(",")+")"},Yl={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},Vl=Object(M.a)(Gl,(function(e){var t,n=e.theme,r=e.className,o=e.type,i=void 0===o?"hue":o,a=e.isAlpha,s=void 0===a?"hue"!==i:a,l=n.palette,c=n.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid "+l.neutralLight,borderRadius:c.roundedCorner2,boxSizing:"border-box",outline:"none",selectors:(t={},t["."+Kn.a+" &:focus"]={outline:"1px solid "+l.neutralSecondary},t)},s?Yl:Hl,r],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+l.neutralSecondaryAlt,borderRadius:"50%",boxShadow:c.elevation8,transform:"translate(-50%, -50%)",top:"50%"}]}}),void 0,{scope:"ColorSlider"}),Wl=Object(D.a)(),Kl=["hex","r","g","b","a","t"],Zl=function(e){function t(n){var r=e.call(this,n)||this;r._onSVChanged=function(e,t){r._updateColor(e,t)},r._onHChanged=function(e,t){r._updateColor(e,al(r.state.color,t))},r._onATChanged=function(e,t){var n="transparency"===r.props.alphaType?wl:ll;r._updateColor(e,n(r.state.color,Math.round(t)))},r._onBlur=function(e){var t,n=r.state,o=n.color,i=n.editingColor;if(i){var a=i.value,s=i.component,l="hex"===s,c="a"===s,u="t"===s,A=l?Os:Fs;if(a.length>=A&&(l||!isNaN(Number(a)))){var d=void 0;if(l)d=nl("#"+Al(a));else if(c||u){d=(c?ll:wl)(o,Ks(Number(a),Rs))}else d=tl(cl(Object(m.a)(Object(m.a)({},o),((t={})[s]=Number(a),t))));r._updateColor(e,d)}else r.setState({editingColor:void 0})}},Object(se.a)(r);var o=n.strings;Object(He.a)("ColorPicker",n,{hexLabel:"strings.hex",redLabel:"strings.red",greenLabel:"strings.green",blueLabel:"strings.blue",alphaLabel:"strings.alpha",alphaSliderHidden:"alphaType"}),o.hue&&Object(Uo.b)("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),r.state={color:Jl(n)||nl("#ffffff")},r._textChangeHandlers={};for(var i=0,a=Kl;i<a.length;i++){var s=a[i];r._textChangeHandlers[s]=r._onTextChange.bind(r,s)}var l=t.defaultProps.strings;return r._textLabels={r:n.redLabel||o.red||l.red,g:n.greenLabel||o.green||l.green,b:n.blueLabel||o.blue||l.blue,a:n.alphaLabel||o.alpha||l.alpha,hex:n.hexLabel||o.hex||l.hex,t:o.transparency||l.transparency},r._strings=Object(m.a)(Object(m.a)(Object(m.a)({},l),{alphaAriaLabel:r._textLabels.a,transparencyAriaLabel:r._textLabels.t}),o),r}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=Jl(this.props);n&&this._updateColor(void 0,n)}},t.prototype.render=function(){var e=this,t=this.props,n=this._strings,r=this._textLabels,o=t.theme,i=t.className,a=t.styles,s=t.alphaType,l=t.alphaSliderHidden,c=void 0===l?"none"===s:l,u=this.state.color,A="transparency"===s,d=["hex","r","g","b",A?"t":"a"],g=A?u.t:u.a,p=A?r.t:r.a,h=Wl(a,{theme:o,className:i,alphaType:s}),f=[r.r,u.r,r.g,u.g,r.b,u.b];c||"number"!=typeof g||f.push(p,g+"%");var m=n.rootAriaLabelFormat.replace("{0}",f.join(" "));return y.createElement("div",{className:h.root,role:"group","aria-label":m},y.createElement("div",{className:h.panel},y.createElement(Pl,{color:u,onChange:this._onSVChanged,ariaLabel:n.svAriaLabel,ariaDescription:n.svAriaDescription,ariaValueFormat:n.svAriaValueFormat,className:h.colorRectangle}),y.createElement("div",{className:h.flexContainer},y.createElement("div",{className:h.flexSlider},y.createElement(Vl,{className:"is-hue",type:"hue",ariaLabel:n.hue||n.hueAriaLabel,value:u.h,onChange:this._onHChanged}),!c&&y.createElement(Vl,{className:"is-alpha",type:s,ariaLabel:A?n.transparencyAriaLabel:n.alphaAriaLabel,overlayColor:u.hex,value:g,onChange:this._onATChanged})),t.showPreview&&y.createElement("div",{className:h.flexPreviewBox},y.createElement("div",{className:h.colorSquare+" is-preview",style:{backgroundColor:u.str}}))),y.createElement("table",{className:h.table,role:"group",cellPadding:"0",cellSpacing:"0"},y.createElement("thead",null,y.createElement("tr",{className:h.tableHeader},y.createElement("td",{className:h.tableHexCell},r.hex),y.createElement("td",null,r.r),y.createElement("td",null,r.g),y.createElement("td",null,r.b),!c&&y.createElement("td",{className:h.tableAlphaCell},p))),y.createElement("tbody",null,y.createElement("tr",null,d.map((function(t){return"a"!==t&&"t"!==t||!c?y.createElement("td",{key:t},y.createElement(_l,{className:h.input,onChange:e._textChangeHandlers[t],onBlur:e._onBlur,value:e._getDisplayValue(t),spellCheck:!1,ariaLabel:r[t],"aria-live":"hex"!==t?"assertive":void 0,autoComplete:"off"})):null})))))))},t.prototype._getDisplayValue=function(e){var t=this.state,n=t.color,r=t.editingColor;return r&&r.component===e?r.value:"hex"===e?n[e]||"":"number"!=typeof n[e]||isNaN(n[e])?"":String(n[e])},t.prototype._onTextChange=function(e,t,n){var r,o=this.state.color,i="hex"===e,a="a"===e,s="t"===e;if(n=(n||"").substr(0,i?_s:zs),(i?Ps:Us).test(n))if(""!==n&&(i?n.length===_s:a||s?Number(n)<=Rs:Number(n)<=js))if(String(o[e])===n)this.state.editingColor&&this.setState({editingColor:void 0});else{var l=i?nl("#"+n):s?wl(o,Number(n)):tl(Object(m.a)(Object(m.a)({},o),((r={})[e]=Number(n),r)));this._updateColor(t,l)}else this.setState({editingColor:{component:e,value:n}})},t.prototype._updateColor=function(e,t){if(t){var n=this.state,r=n.color,o=n.editingColor;if(t.h!==r.h||t.str!==r.str||o){if(e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented))return;this.setState({color:t,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:zl.defaultProps.ariaLabel,svAriaValueFormat:zl.defaultProps.ariaValueFormat,svAriaDescription:zl.defaultProps.ariaDescription}},t}(y.Component);function Jl(e){var t=e.color;return"string"==typeof t?nl(t):t}var ql,Xl,$l,ec,tc,nc=Object(M.a)(Zl,(function(e){var t=e.className,n=e.theme,r=e.alphaType;return{root:["ms-ColorPicker",n.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[n.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===r&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}}),void 0,{scope:"ColorPicker"}),rc=n(153),oc=n(146),ic=Object(C.c)((function(e){var t,n=e.semanticColors;return{backgroundColor:n.disabledBackground,color:n.disabledText,cursor:"default",selectors:(t={":after":{borderColor:n.disabledBackground}},t[I.l]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}})),ac={selectors:(ql={},ql[I.l]=Object(m.a)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(I.S)()),ql)},sc={selectors:(Xl={},Xl[I.l]=Object(m.a)({color:"WindowText",backgroundColor:"Window"},Object(I.S)()),Xl)},lc=Object(C.c)((function(e,t,n,r,o){var i,a=e.palette,s=e.semanticColors,l={textHoveredColor:s.menuItemTextHovered,textSelectedColor:a.neutralDark,textDisabledColor:s.disabledText,backgroundHoveredColor:s.menuItemBackgroundHovered,backgroundPressedColor:s.menuItemBackgroundPressed},c={root:[e.fonts.medium,{backgroundColor:r?l.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:o?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:(i={},i[I.l]={border:"none",borderColor:"Background"},i["&.ms-Checkbox"]={display:"flex",alignItems:"center"},i["&.ms-Button--command:hover:active"]={backgroundColor:l.backgroundPressedColor},i[".ms-Checkbox-label"]={width:"100%"},i)}],rootHovered:{backgroundColor:l.backgroundHoveredColor,color:l.textHoveredColor},rootFocused:{backgroundColor:l.backgroundHoveredColor},rootChecked:[{backgroundColor:"transparent",color:l.textSelectedColor,selectors:{":hover":[{backgroundColor:l.backgroundHoveredColor},ac]}},Object(I.Q)(e,{inset:-1,isFocusedOnly:!1}),ac],rootDisabled:{color:l.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}};return Object(I.H)(c,t,n)})),cc=Object(C.c)((function(e,t){var n,r,o=e.semanticColors,i=e.fonts,a={buttonTextColor:o.bodySubtext,buttonTextHoveredCheckedColor:o.buttonTextChecked,buttonBackgroundHoveredColor:o.listItemBackgroundHovered,buttonBackgroundCheckedColor:o.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:o.listItemBackgroundCheckedHovered},s={selectors:(n={},n[I.l]=Object(m.a)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(I.S)()),n)},l={root:{color:a.buttonTextColor,fontSize:i.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:(r={},r[I.l]=Object(m.a)({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},Object(I.S)()),r)},icon:{fontSize:i.small.fontSize},rootHovered:[{backgroundColor:a.buttonBackgroundHoveredColor,color:a.buttonTextHoveredCheckedColor,cursor:"pointer"},s],rootPressed:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootChecked:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootCheckedHovered:[{backgroundColor:a.buttonBackgroundCheckedHoveredColor,color:a.buttonTextHoveredCheckedColor},s],rootDisabled:[ic(e),{position:"absolute"}]};return Object(I.H)(l,t)})),uc=Object(C.c)((function(e,t,n){var r,o,i,a,s,l,c=e.semanticColors,u=e.fonts,A=e.effects,d={textColor:c.inputText,borderColor:c.inputBorder,borderHoveredColor:c.inputBorderHovered,borderPressedColor:c.inputFocusBorderAlt,borderFocusedColor:c.inputFocusBorderAlt,backgroundColor:c.inputBackground,erroredColor:c.errorText},g={headerTextColor:c.menuHeader,dividerBorderColor:c.bodyDivider},p={selectors:(r={},r[I.l]={color:"GrayText"},r)},h=[{color:c.inputPlaceholderText},p],f=[{color:c.inputTextHovered},p],y=[{color:c.disabledText},p],C=Object(m.a)(Object(m.a)({color:"HighlightText",backgroundColor:"Window"},Object(I.S)()),{selectors:{":after":{borderColor:"Highlight"}}}),E=Object(I.V)(d.borderPressedColor,A.roundedCorner2,"border",0),b={container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:d.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:d.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:(o={},o[I.l]=C,o)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:d.borderColor,borderRadius:A.roundedCorner2}}}],rootHovered:{selectors:(i={":after":{borderColor:d.borderHoveredColor},".ms-ComboBox-Input":[{color:c.inputTextHovered},Object(I.W)(f),sc]},i[I.l]=Object(m.a)(Object(m.a)({color:"HighlightText",backgroundColor:"Window"},Object(I.S)()),{selectors:{":after":{borderColor:"Highlight"}}}),i)},rootPressed:[{position:"relative",selectors:(a={},a[I.l]=C,a)}],rootFocused:[{selectors:(s={".ms-ComboBox-Input":[{color:c.inputTextHovered},sc]},s[I.l]=C,s)},E],rootDisabled:ic(e),rootError:{selectors:{":after":{borderColor:d.erroredColor},":hover:after":{borderColor:c.inputBorderHovered}}},rootDisallowFreeForm:{},input:[Object(I.W)(h),{backgroundColor:d.backgroundColor,color:d.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},sc],inputDisabled:[ic(e),Object(I.W)(y)],errorMessage:[e.fonts.small,{color:d.erroredColor,marginTop:"5px"}],callout:{boxShadow:A.elevation8},optionsContainerWrapper:{width:n},optionsContainer:{display:"block"},screenReaderText:I.ab,header:[u.medium,{fontWeight:I.k.semibold,color:g.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(l={},l[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),l)}],divider:{height:1,backgroundColor:g.dividerBorderColor}};return Object(I.H)(b,t)})),Ac=Object(C.c)((function(e,t,n,r,o,i,a,s){return{container:Object(I.eb)("ms-ComboBox-container",t,e.container),label:Object(I.eb)(e.label,r&&e.labelDisabled),root:Object(I.eb)("ms-ComboBox",s?e.rootError:n&&"is-open",o&&"is-required",e.root,!a&&e.rootDisallowFreeForm,s&&!i?e.rootError:!r&&i&&e.rootFocused,!r&&{selectors:{":hover":s?e.rootError:!n&&!i&&e.rootHovered,":active":s?e.rootError:e.rootPressed,":focus":s?e.rootError:e.rootFocused}},r&&["is-disabled",e.rootDisabled]),input:Object(I.eb)("ms-ComboBox-Input",e.input,r&&e.inputDisabled),errorMessage:Object(I.eb)(e.errorMessage),callout:Object(I.eb)("ms-ComboBox-callout",e.callout),optionsContainerWrapper:Object(I.eb)("ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:Object(I.eb)("ms-ComboBox-optionsContainer",e.optionsContainer),header:Object(I.eb)("ms-ComboBox-header",e.header),divider:Object(I.eb)("ms-ComboBox-divider",e.divider),screenReaderText:Object(I.eb)(e.screenReaderText)}})),dc=Object(C.c)((function(e){return{optionText:Object(I.eb)("ms-ComboBox-optionText",e.optionText),root:Object(I.eb)("ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:Object(I.eb)(e.optionTextWrapper)}}));function gc(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=e[o[r]];i&&n.push(i)}return n}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header"}($l||($l={})),function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(ec||(ec={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(tc||(tc={}));var pc=y.memo((function(e){return(0,e.render)()}),(function(e,t){e.render;var n=Object(m.d)(e,["render"]),r=(t.render,Object(m.d)(t,["render"]));return Object(Ye.e)(n,r)})),hc={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function fc(e){var t=e.options,n=e.defaultSelectedKey,r=e.selectedKey,o=y.useState((function(){return Ic(t,function(e,t){var n=Cc(e);if(n.length)return n;return Cc(t)}(n,r))})),i=o[0],a=o[1],s=y.useState(t),l=s[0],c=s[1],u=y.useState(),A=u[0],d=u[1];return y.useEffect((function(){if(void 0!==r){var e=Cc(r),n=Ic(t,e);a(n)}c(t)}),[t,r]),y.useEffect((function(){null===r&&d(void 0)}),[r]),[i,a,l,c,A,d]}var mc=y.forwardRef((function(e,t){var n=Object(x.a)(hc,e),r=(n.ref,Object(m.d)(n,["ref"])),o=y.useRef(null),i=Object(L.a)(o,t),a=fc(r),s=a[0],l=a[1],c=a[2],u=a[3],A=a[4],d=a[5];return y.createElement(yc,Object(m.a)({},r,{hoisted:{mergedRootRef:i,rootRef:o,selectedIndices:s,setSelectedIndices:l,currentOptions:c,setCurrentOptions:u,suggestedDisplayValue:A,setSuggestedDisplayValue:d}}))}));mc.displayName="ComboBox";var yc=function(e){function t(t){var n=e.call(this,t)||this;return n._autofill=y.createRef(),n._comboBoxWrapper=y.createRef(),n._comboBoxMenu=y.createRef(),n._selectedElement=y.createRef(),n.focus=function(e,t){n._autofill.current&&(t?Object(Ie.b)(n._autofill.current):n._autofill.current.focus(),e&&n.setState({isOpen:!0})),n._hasFocus()||n.setState({focusState:"focused"})},n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onUpdateValueInAutofillWillReceiveProps=function(){var e=n._autofill.current;if(!e)return null;if(null===e.value||void 0===e.value)return null;var t=Ec(n._currentVisibleValue);return e.value!==t?t:e.value},n._renderComboBoxWrapper=function(e,t){var r=n.props,o=r.label,i=r.disabled,a=r.ariaLabel,s=r.ariaDescribedBy,l=r.required,c=r.errorMessage,u=r.buttonIconProps,A=r.isButtonAriaHidden,d=void 0===A||A,g=r.title,p=r.placeholder,h=r.tabIndex,f=r.autofill,I=r.iconButtonProps,C=r.hoisted.suggestedDisplayValue,E=n.state.isOpen,b=n._hasFocus()&&n.props.multiSelect&&e?e:p;return y.createElement("div",{"data-ktp-target":!0,ref:n._comboBoxWrapper,id:n._id+"wrapper",className:n._classNames.root},y.createElement(ce,Object(m.a)({"data-ktp-execute-target":!0,"data-is-interactable":!i,componentRef:n._autofill,id:n._id+"-input",className:n._classNames.input,type:"text",onFocus:n._onFocus,onBlur:n._onBlur,onKeyDown:n._onInputKeyDown,onKeyUp:n._onInputKeyUp,onClick:n._onAutofillClick,onTouchStart:n._onTouchStart,onInputValueChange:n._onInputChange,"aria-expanded":E,"aria-autocomplete":n._getAriaAutoCompleteValue(),role:"combobox",readOnly:i,"aria-labelledby":o&&n._id+"-label","aria-label":a&&!o?a:void 0,"aria-describedby":void 0!==c?Object(We.a)(s,t):s,"aria-activedescendant":n._getAriaActiveDescendantValue(),"aria-required":l,"aria-disabled":i,"aria-owns":E?n._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:n._currentVisibleValue,suggestedDisplayValue:C,updateValueInWillReceiveProps:n._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:g,preventValueSelection:!n._hasFocus(),placeholder:b,tabIndex:h},f)),y.createElement(co,Object(m.a)({className:"ms-ComboBox-CaretDown-button",styles:n._getCaretButtonStyles(),role:"presentation","aria-hidden":d,"data-is-focusable":!1,tabIndex:-1,onClick:n._onComboBoxClick,onBlur:n._onBlur,iconProps:u,disabled:i,checked:E},I)))},n._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return n._currentVisibleValue===n.props.hoisted.suggestedDisplayValue},n._getVisibleValue=function(){var e=n.props,t=e.text,r=e.allowFreeform,o=e.autoComplete,i=e.hoisted,a=i.suggestedDisplayValue,s=i.selectedIndices,l=i.currentOptions,c=n.state,u=c.currentPendingValueValidIndex,A=c.currentPendingValue,d=c.isOpen,g=bc(l,u);if((!d||!g)&&t&&null==A)return t;if(n.props.multiSelect){if(n._hasFocus()){var p=-1;return"on"===o&&g&&(p=u),n._getPendingString(A,l,p)}return n._getMultiselectDisplayString(s,l,a)}p=n._getFirstSelectedIndex();return r?("on"===o&&g&&(p=u),n._getPendingString(A,l,p)):g&&"on"===o?(p=u,Ec(A)):!n.state.isOpen&&A?bc(l,p)?A:Ec(a):bc(l,p)?l[p].text:Ec(a)},n._onInputChange=function(e){n.props.disabled?n._handleInputWhenDisabled(null):n.props.allowFreeform?n._processInputChangeWithFreeform(e):n._processInputChangeWithoutFreeform(e)},n._onFocus=function(){var e,t;null===(t=null===(e=n._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===t||t.select(),n._hasFocus()||n.setState({focusState:"focusing"})},n._onResolveOptions=function(){if(n.props.onResolveOptions){var e=n.props.onResolveOptions(Object(m.e)(n.props.hoisted.currentOptions));if(Array.isArray(e))n.props.hoisted.setCurrentOptions(e);else if(e&&e.then){var t=n._currentPromise=e;t.then((function(e){t===n._currentPromise&&n.props.hoisted.setCurrentOptions(e)}))}}},n._onBlur=function(e){var t,r,o=e.relatedTarget;if(null===e.relatedTarget&&(o=document.activeElement),o){var i=null===(t=n.props.hoisted.rootRef.current)||void 0===t?void 0:t.contains(o),a=null===(r=n._comboBoxMenu.current)||void 0===r?void 0:r.contains(o),s=n._comboBoxMenu.current&&Object(rc.a)(n._comboBoxMenu.current,(function(e){return e===o}));if(i||a||s)return s&&n._hasFocus()&&(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}n._hasFocus()&&(n.setState({focusState:"none"}),n.props.multiSelect&&!n.props.allowFreeform||n._submitPendingValue(e))},n._onRenderContainer=function(e){var t,r,o=e.onRenderList,i=e.calloutProps,a=e.dropdownWidth,s=e.dropdownMaxWidth,l=e.onRenderUpperContent,c=void 0===l?n._onRenderUpperContent:l,u=e.onRenderLowerContent,A=void 0===u?n._onRenderLowerContent:u,d=e.useComboBoxAsMenuWidth,g=e.persistMenu,p=e.shouldRestoreFocus,h=void 0===p||p,f=n.state.isOpen,I=n._id,C=d&&n._comboBoxWrapper.current?n._comboBoxWrapper.current.clientWidth+2:void 0;return y.createElement(Rn,Object(m.a)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:Je.bottomLeftEdge,directionalHintFixed:!1},i,{onLayerMounted:n._onLayerMounted,className:Object(ve.a)(n._classNames.callout,null===(t=i)||void 0===t?void 0:t.className),target:n._comboBoxWrapper.current,onDismiss:n._onDismiss,onMouseDown:n._onCalloutMouseDown,onScroll:n._onScroll,setInitialFocus:!1,calloutWidth:d&&n._comboBoxWrapper.current?C&&C:a,calloutMaxWidth:s||C,hidden:g?!f:void 0,shouldRestoreFocus:h}),c(n.props,n._onRenderUpperContent),y.createElement("div",{className:n._classNames.optionsContainerWrapper,ref:n._comboBoxMenu},null===(r=o)||void 0===r?void 0:r(Object(m.a)(Object(m.a)({},e),{id:I}),n._onRenderList)),A(n.props,n._onRenderLowerContent))},n._onLayerMounted=function(){n._onCalloutLayerMounted(),n.props.calloutProps&&n.props.calloutProps.onLayerMounted&&n.props.calloutProps.onLayerMounted()},n._onRenderLabel=function(e){var t=e.props,r=t.label,o=t.disabled,i=t.required;return r?y.createElement(Ja,{id:n._id+"-label",disabled:o,required:i,className:n._classNames.label},r,e.multiselectAccessibleText&&y.createElement("span",{className:n._classNames.screenReaderText},e.multiselectAccessibleText)):null},n._onRenderList=function(e){var t=e.onRenderItem,r=e.options,o=n._id;return y.createElement("div",{id:o+"-list",className:n._classNames.optionsContainer,"aria-labelledby":o+"-label",role:"listbox"},r.map((function(e){var r;return null===(r=t)||void 0===r?void 0:r(e,n._onRenderItem)})))},n._onRenderItem=function(e){switch(e.itemType){case $l.Divider:return n._renderSeparator(e);case $l.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._onRenderLowerContent=function(){return null},n._onRenderUpperContent=function(){return null},n._renderOption=function(e){var t=n.props.onRenderOption,r=void 0===t?n._onRenderOptionContent:t,o=n._id,i=n._isOptionSelected(e.index),a=n._isOptionChecked(e.index),s=n._getCurrentOptionStyles(e),l=dc(n._getCurrentOptionStyles(e)),c=Bc(e),u=function(){return r(e,n._onRenderOptionContent)};return y.createElement(pc,{key:e.key,index:e.index,disabled:e.disabled,isSelected:i,isChecked:a,text:e.text,render:function(){return n.props.multiSelect?y.createElement(Wa,{id:o+"-list"+e.index,ariaLabel:Bc(e),key:e.key,styles:s,className:"ms-ComboBox-option",onChange:n._onItemClick(e),label:e.text,checked:a,title:c,disabled:e.disabled,onRenderLabel:u,inputProps:Object(m.a)({"aria-selected":a?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):y.createElement(ti,{id:o+"-list"+e.index,key:e.key,"data-index":e.index,styles:s,checked:i,className:"ms-ComboBox-option",onClick:n._onItemClick(e),onMouseEnter:n._onOptionMouseEnter.bind(n,e.index),onMouseMove:n._onOptionMouseMove.bind(n,e.index),onMouseLeave:n._onOptionMouseLeave,role:"option","aria-selected":a?"true":"false",ariaLabel:Bc(e),disabled:e.disabled,title:c},y.createElement("span",{className:l.optionTextWrapper,ref:i?n._selectedElement:void 0},r(e,n._onRenderOptionContent)))},data:e.data})},n._onCalloutMouseDown=function(e){e.preventDefault()},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onRenderOptionContent=function(e){var t=dc(n._getCurrentOptionStyles(e));return y.createElement("span",{className:t.optionText},e.text)},n._onDismiss=function(){var e=n.props.onMenuDismiss;e&&e(),n.props.persistMenu&&n._onCalloutLayerMounted(),n._setOpenStateAndFocusOnClose(!1,!1),n._resetSelectedIndex()},n._onAfterClearPendingInfo=function(){n._processingClearPendingInfo=!1},n._onInputKeyDown=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.autoComplete,a=t.hoisted.currentOptions,s=n.state,l=s.isOpen,c=s.currentPendingValueValidIndexOnHover;if(n._lastKeyDownWasAltOrMeta=Mc(e),r)n._handleInputWhenDisabled(e);else{var u=n._getPendingSelectedIndex(!1);switch(e.which){case ae.a.enter:n._autofill.current&&n._autofill.current.inputElement&&n._autofill.current.inputElement.select(),n._submitPendingValue(e),n.props.multiSelect&&l?n.setState({currentPendingValueValidIndex:u}):(l||(!o||void 0===n.state.currentPendingValue||null===n.state.currentPendingValue||n.state.currentPendingValue.length<=0)&&n.state.currentPendingValueValidIndex<0)&&n.setState({isOpen:!l});break;case ae.a.tab:return n.props.multiSelect||n._submitPendingValue(e),void(l&&n._setOpenStateAndFocusOnClose(!l,!1));case ae.a.escape:if(n._resetSelectedIndex(),!l)return;n.setState({isOpen:!1});break;case ae.a.up:if(c===tc.clearAll&&(u=n.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(l){n._setOpenStateAndFocusOnClose(!l,!0);break}return}n._setPendingInfoFromIndexAndDirection(u,ec.backward);break;case ae.a.down:e.altKey||e.metaKey?n._setOpenStateAndFocusOnClose(!0,!0):(c===tc.clearAll&&(u=-1),n._setPendingInfoFromIndexAndDirection(u,ec.forward));break;case ae.a.home:case ae.a.end:if(o)return;u=-1;var A=ec.forward;e.which===ae.a.end&&(u=a.length,A=ec.backward),n._setPendingInfoFromIndexAndDirection(u,A);break;case ae.a.space:if(!o&&"off"===i)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===ae.a.alt||"Meta"===e.key)return;if(!o&&"on"===i){n._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()}},n._onInputKeyUp=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.autoComplete,a=n.state.isOpen,s=n._lastKeyDownWasAltOrMeta&&Mc(e);n._lastKeyDownWasAltOrMeta=!1;var l=s&&!(Object(qe.a)()||Object(Xe.a)());if(r)n._handleInputWhenDisabled(e);else switch(e.which){case ae.a.space:return void(o||"off"!==i||n._setOpenStateAndFocusOnClose(!a,!!a));default:return void(l&&a?n._setOpenStateAndFocusOnClose(!a,!0):("focusing"===n.state.focusState&&n.props.openOnKeyboardFocus&&n.setState({isOpen:!0}),"focused"!==n.state.focusState&&n.setState({focusState:"focused"})))}},n._onOptionMouseLeave=function(){n._shouldIgnoreMouseEvent()||n.props.persistMenu&&!n.state.isOpen||n.setState({currentPendingValueValidIndexOnHover:tc.clearAll})},n._onComboBoxClick=function(){var e=n.props.disabled,t=n.state.isOpen;e||(n._setOpenStateAndFocusOnClose(!t,!1),n.setState({focusState:"focused"}))},n._onAutofillClick=function(){var e=n.props,t=e.disabled;e.allowFreeform&&!t?n.focus(n.state.isOpen||n._processingTouch):n._onComboBoxClick()},n._onTouchStart=function(){n._comboBoxWrapper.current&&!("onpointerdown"in n._comboBoxWrapper)&&n._handleTouchAndPointerEvent()},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),Object(oc.a)("ComboBox",t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth"}),n._id=t.id||Object(Ee.a)("ComboBox"),n._isScrollIdle=!0,n._processingTouch=!1,n._gotMouseMove=!1,n._processingClearPendingInfo=!1,n.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:tc.default},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return gc(e.currentOptions,e.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var n=this,r=this.props,o=r.allowFreeform,i=r.text,a=r.onMenuOpen,s=r.onMenuDismissed,l=r.hoisted.selectedIndices,c=this.state,u=c.isOpen,A=c.currentPendingValueValidIndex;!u||t.isOpen&&t.currentPendingValueValidIndex===A||this._async.setTimeout((function(){return n._scrollIntoView()}),0),this._hasFocus()&&(u||t.isOpen&&!u&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!u||this._hasFocus()&&(!u&&!this.props.multiSelect&&e.hoisted.selectedIndices&&l&&e.hoisted.selectedIndices[0]!==l[0]||!o||i!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),u&&!t.isOpen&&a&&a(),!u&&t.isOpen&&s&&s()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,n=t.className,r=t.disabled,o=t.required,i=t.errorMessage,a=t.onRenderContainer,s=void 0===a?this._onRenderContainer:a,l=t.onRenderLabel,c=void 0===l?this._onRenderLabel:l,u=t.onRenderList,A=void 0===u?this._onRenderList:u,d=t.onRenderItem,g=void 0===d?this._onRenderItem:d,p=t.onRenderOption,h=void 0===p?this._onRenderOptionContent:p,f=t.allowFreeform,I=t.styles,C=t.theme,E=t.persistMenu,b=t.multiSelect,v=t.hoisted,B=v.suggestedDisplayValue,M=v.selectedIndices,D=v.currentOptions,x=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var Q=b?this._getMultiselectDisplayString(M,D,B):void 0,S=Object(w.j)(this.props,w.h,["onChange","value"]),N=!!(i&&i.length>0);this._classNames=this.props.getClassNames?this.props.getClassNames(C,!!x,!!r,!!o,!!this._hasFocus(),!!f,!!N,n):Ac(uc(C,I),n,!!x,!!r,!!o,!!this._hasFocus(),!!f,!!N);var k=this._renderComboBoxWrapper(Q,e);return y.createElement("div",Object(m.a)({},S,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),c({props:this.props,multiselectAccessibleText:Q},this._onRenderLabel),k,(E||x)&&s(Object(m.a)(Object(m.a)({},this.props),{onRenderList:A,onRenderItem:g,onRenderOption:h,options:D.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})})),onDismiss:this._onDismiss}),this._onRenderContainer),y.createElement("div",Object(m.a)({role:"region","aria-live":"polite","aria-atomic":"true",id:e},N?{className:this._classNames.errorMessage}:{"aria-hidden":!0}),void 0!==i?i:""))},t.prototype._getPendingString=function(e,t,n){return null!=e?e:bc(t,n)?t[n].text:""},t.prototype._getMultiselectDisplayString=function(e,t,n){for(var r=[],o=0;e&&o<e.length;o++){var i=e[o];r.push(bc(t,i)?t[i].text:Ec(n))}var a=this.props.multiSelectDelimiter,s=void 0===a?", ":a;return r.join(s)},t.prototype._processInputChangeWithFreeform=function(e){var t=this.props.hoisted.currentOptions,n=-1;if(""===e)return 1===(o=t.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})})).filter((function(t){return vc(t)&&Bc(t)===e}))).length&&(n=o[0].index),void this._setPendingInfo(e,n,e);var r=e;e=e.toLocaleLowerCase();var o,i="";if("on"===this.props.autoComplete){if((o=t.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})})).filter((function(t){return vc(t)&&0===Bc(t).toLocaleLowerCase().indexOf(e)}))).length>0){var a=Bc(o[0]);i=a.toLocaleLowerCase()!==e?a:"",n=o[0].index}}else 1===(o=t.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})})).filter((function(t){return vc(t)&&Bc(t).toLocaleLowerCase()===e}))).length&&(n=o[0].index);this._setPendingInfo(r,n,i)},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=Ec(o)+e);var a=e;e=e.toLocaleLowerCase();var s=n.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})})).filter((function(t){return vc(t)&&0===t.text.toLocaleLowerCase().indexOf(e)}));return s.length>0&&this._setPendingInfo(a,s[0].index,Bc(s[0])),void(this._autoCompleteTimeout=this._async.setTimeout((function(){t._autoCompleteTimeout=void 0}),1e3))}var l=i>=0?i:this._getFirstSelectedIndex();this._setPendingInfoFromIndex(l)},t.prototype._getFirstSelectedIndex=function(){var e,t=this.props.hoisted.selectedIndices;return(null===(e=t)||void 0===e?void 0:e.length)?t[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var n=this.props.hoisted.currentOptions,r=e+t;if(!bc(n,r=Math.max(0,Math.min(n.length-1,r))))return-1;var o=n[r];if(!vc(o)||!0===o.hidden){if(t===ec.none||!(r>0&&t<ec.none||r>=0&&r<n.length&&t>ec.none))return e;r=this._getNextSelectableIndex(r,t)}return r},t.prototype._setSelectedIndex=function(e,t,n){void 0===n&&(n=ec.none);var r=this.props,o=r.onChange,i=r.onPendingValueChanged,a=r.hoisted,s=a.selectedIndices,l=a.currentOptions,c=s?s.slice():[];if(bc(l,e=this._getNextSelectableIndex(e,n))){if(this.props.multiSelect||c.length<1||1===c.length&&c[0]!==e){var u=Object(m.a)({},l[e]);if(!u||u.disabled)return;if(this.props.multiSelect?(u.selected=void 0!==u.selected?!u.selected:c.indexOf(e)<0,u.selected&&c.indexOf(e)<0?c.push(e):!u.selected&&c.indexOf(e)>=0&&(c=c.filter((function(t){return t!==e})))):c[0]=e,t.persist(),this.props.selectedKey||null===this.props.selectedKey)this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),o&&o(t,u,e,void 0);else{var A=l.slice();A[e]=u,this.props.hoisted.setSelectedIndices(c),this.props.hoisted.setCurrentOptions(A),this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),o&&o(t,u,e,void 0)}}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,n,r,o=this.props,i=o.onChange,a=o.allowFreeform,s=o.autoComplete,l=o.multiSelect,c=o.hoisted,u=c.currentOptions,A=this.state,d=A.currentPendingValue,g=A.currentPendingValueValidIndex,p=A.currentPendingValueValidIndexOnHover,h=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(a){if(null==d)return void(p>=0&&(this._setSelectedIndex(p,e),this._clearPendingInfo()));if(bc(u,g)){var f=Bc(u[g]).toLocaleLowerCase(),m=this._autofill.current;if(d.toLocaleLowerCase()===f||s&&0===f.indexOf(d.toLocaleLowerCase())&&(null===(t=m)||void 0===t?void 0:t.isValueSelected)&&d.length+(m.selectionEnd-m.selectionStart)===f.length||(null===(r=null===(n=m)||void 0===n?void 0:n.inputElement)||void 0===r?void 0:r.value.toLocaleLowerCase())===f){if(this._setSelectedIndex(g,e),l&&this.state.isOpen)return;return void this._clearPendingInfo()}}if(i)i&&i(e,void 0,void 0,d);else{var y={key:d||Object(Ee.a)(),text:Ec(d)};l&&(y.selected=!0);var I=u.concat([y]);h&&(l||(h=[]),h.push(I.length-1)),c.setCurrentOptions(I),c.setSelectedIndices(h)}}else g>=0?this._setSelectedIndex(g,e):p>=0&&this._setSelectedIndex(p,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t&&t>0?y.createElement("div",{role:"separator",key:n,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOptionContent:t;return y.createElement("div",{key:e.key,className:this._classNames.header},n(e,this._onRenderOptionContent))},t.prototype._isOptionSelected=function(e){return this.state.currentPendingValueValidIndexOnHover!==tc.clearAll&&this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){return this.props.hoisted.selectedIndices.indexOf(e)>=0}return!1},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,n=t.currentPendingValueValidIndexOnHover,r=t.currentPendingValueValidIndex,o=t.currentPendingValue;return n>=0?n:r>=0||e&&null!=o?r:this.props.multiSelect?0:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,n=e.scrollSelectedToTop,r=this.state,o=r.currentPendingValueValidIndex,i=r.currentPendingValue;if(t)t(o>=0||""!==i?o:this._getFirstSelectedIndex());else if(this._selectedElement.current&&this._selectedElement.current.offsetParent)if(n)this._selectedElement.current.offsetParent.scrollIntoView(!0);else{var a=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var s=this._comboBoxMenu.current.offsetParent.getBoundingClientRect(),l=this._selectedElement.current.offsetParent.getBoundingClientRect();if(s.top<=l.top&&s.top+s.height>=l.top+l.height)return;s.top+s.height<=l.top+l.height&&(a=!1)}this._selectedElement.current.offsetParent.scrollIntoView(a)}},t.prototype._onItemClick=function(e){var t=this,n=this.props.onItemClick,r=e.index;return function(o){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),n&&n(o,e,r),t._setSelectedIndex(r,o)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:tc.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:Ec(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:tc.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(Bc(n),e,Bc(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===ec.forward&&e>=n.length-1?e=-1:t===ec.backward&&e<=0&&(e=n.length);var r=this._getNextSelectableIndex(e,t);e===r?t===ec.forward?e=this._getNextSelectableIndex(-1,t):t===ec.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=r,bc(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex,a=r.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&bc(n,a)?s=a:i!==e.currentPendingValueValidIndex&&bc(n,i)?s=i:o!==e.currentPendingValue&&(l=o),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?n[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==ae.a.tab&&e.which!==ae.a.escape&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return cc(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,n=e.styles;return lc(this.props.theme,t,n,this._isPendingOption(e),e.hidden)},t.prototype._getAriaActiveDescendantValue=function(){var e,t=this.props.hoisted.selectedIndices,n=this.state,r=n.isOpen,o=n.currentPendingValueValidIndex,i=r&&(null===(e=t)||void 0===e?void 0:e.length)?this._id+"-list"+t[0]:void 0;return r&&this._hasFocus()&&-1!==o&&(i=this._id+"-list"+o),i},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"none"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t=Object(m.b)([Object(ro.a)("ComboBox",["theme","styles"],!0)],t)}(y.Component);function Ic(e,t){if(!e||!t)return[];var n={};e.forEach((function(e,t){e.selected&&(n[t]=!0)}));for(var r=function(t){var r=Object(dr.e)(e,(function(e){return e.key===t}));r>-1&&(n[r]=!0)},o=0,i=t;o<i.length;o++){r(i[o])}return Object.keys(n).map(Number).sort()}function Cc(e){return void 0===e?[]:e instanceof Array?e:[e]}function Ec(e){return e||""}function bc(e,t){return!!e&&t>=0&&t<e.length}function vc(e){return e.itemType!==$l.Header&&e.itemType!==$l.Divider}function Bc(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function Mc(e){return e.which===ae.a.alt||"Meta"===e.key}var Dc={auto:0,top:1,bottom:2,center:3},xc={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},wc=function(e){return e.getBoundingClientRect()},Qc=wc,Sc=wc,Nc=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._surface=y.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return y.createElement("div",Object(m.a)({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return y.createElement("div",Object(m.a)({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r=n.props,o=r.onRenderCell,i=r.role,a=e.page,s=a.items,l=void 0===s?[]:s,c=a.startIndex,u=Object(m.d)(e,["page"]),A=void 0===i?"listitem":"presentation",d=[],g=0;g<l.length;g++){var p=c+g,h=l[g],f=n.props.getKey?n.props.getKey(h,p):h&&h.key;null==f&&(f=p),d.push(y.createElement("div",{role:A,className:"ms-List-cell",key:f,"data-list-index":p,"data-automationid":"ListCell"},o&&o(h,p,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return y.createElement("div",Object(m.a)({},u),d)},Object(se.a)(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new le.a(n),n._events=new Ue.a(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!0,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=Dc.auto);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var A=Sc(this._scrollElement),d={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+A.height},g=e-l,p=0;p<g;++p)a+=t(l+p);var h=a+t(e);switch(n){case Dc.top:return void(this._scrollElement.scrollTop=a);case Dc.bottom:return void(this._scrollElement.scrollTop=h-A.height);case Dc.center:return void(this._scrollElement.scrollTop=(a+h-A.height)/2);case Dc.auto:}if(a>=d.top&&h<=d.bottom)return;a<d.top||h>d.bottom&&(a=h-A.height)}return void(this._scrollElement.scrollTop=a)}a+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){o=e(a);if(r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},t.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=Object(De.f)(this._root.current),this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(){var e=this.props,t=this.state;e.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(t.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(e,t)))):this._onAsyncIdle();e.onPagesUpdated&&e.onPagesUpdated(t.pages)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,i=e.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=Object(w.j)(this.props,w.h),u=0,A=s;u<A.length;u++){var d=A[u];l.push(this._renderPage(d))}var g=o?Object(qa.a)(o,this._onRenderSurface):this._onRenderSurface;return(i?Object(qa.a)(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:g({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:Object(m.a)(Object(m.a)({},c),{className:Object(ve.a)("ms-List",t),role:l.length>0?r:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return Object(m.a)(Object(m.a)({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Object(Ce.a)(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),Object(m.a)(Object(m.a)({},t),n)},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var A in i)i.hasOwnProperty(A)&&this._onPageRemoved(i[A])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var a=Object(m.a)({},xc),s=[],l=1,c=0,u=null,A=this._focusedIndex,d=o+n,g=this._shouldVirtualize(e),p=0===this._estimatedPageHeight&&!i,h=this._allowedRect,f=function(e){var n=y._getPageSpecification(e,h),i=n.height,f=n.data,m=n.key;l=n.itemCount;var I,C,E=c+i-1,b=Object(dr.e)(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,v=!h||E>=h.top&&c<=h.bottom,B=!y._requiredRect||E>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!p&&(B||v&&b)||!g||A>=e&&A<e+l||e===o){u&&(s.push(u),u=null);var M=Math.min(l,d-e),D=y._createPage(m,r.slice(e,e+M),e,void 0,void 0,f);D.top=c,D.height=i,y._visibleRect&&y._visibleRect.bottom&&(D.isVisible=E>=y._visibleRect.top&&c<=y._visibleRect.bottom),s.push(D),B&&y._allowedRect&&(I=a,C={top:c,bottom:E,height:i,left:h.left,right:h.right,width:h.width},I.top=C.top<I.top||-1===I.top?C.top:I.top,I.left=C.left<I.left||-1===I.left?C.left:I.left,I.bottom=C.bottom>I.bottom||-1===I.bottom?C.bottom:I.bottom,I.right=C.right>I.right||-1===I.right?C.right:I.right,I.width=I.right-I.left+1,I.height=I.bottom-I.top+1)}else u||(u=y._createPage("spacer-"+e,void 0,e,0,void 0,f,!0)),u.height=(u.height||0)+(E-c)+1,u.itemCount+=l;if(c+=E-c+1,p&&g)return"break"},y=this,I=o;I<d;I+=l){if("break"===f(I))break}return u&&(u.key="spacer-end",s.push(u)),this._materializedRect=a,Object(m.a)(Object(m.a)({},t),{pages:s,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t){var n=this.props.getPageSpecification;if(n){var r=n(e,t),o=r.itemCount,i=void 0===o?this._getItemCountForPage(e,t):o,a=r.height;return{itemCount:i,height:void 0===a?this._getPageHeight(e,t,i):a,data:r.data,key:r.key}}return{itemCount:i=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,i)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var a=this._surfaceRect||Object(m.a)({},xc),s=this._scrollElement&&this._scrollElement.scrollHeight,l=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!i||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-l)>this._estimatedPageHeight/3)&&(a=this._surfaceRect=Qc(this._surface.current),this._scrollTop=l),!n&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s;var c=Math.max(0,-a.top),u=Object(be.a)(this._root.current),A={top:c,left:a.left,bottom:c+u.innerHeight,right:a.right,width:a.width,height:u.innerHeight};this._requiredRect=kc(A,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=kc(A,o,r),this._visibleRect=A}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return y.createElement(y.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(y.Component);function kc(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var Tc=function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=y.createRef(),n._list=y.createRef(),n._onRenderList=function(e){var t=e.id,r=e.onRenderItem;return y.createElement(Nc,{componentRef:n._list,role:"listbox",id:t+"-list","aria-labelledby":t+"-label",items:e.options,onRenderCell:r?function(e){return r(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},Object(se.a)(n),n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!0,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return y.createElement(mc,Object(m.a)({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))},t}(y.Component),jc=n(255),Lc=function(e){var t=Ar.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,i=e.itemSubMenuProvider,a=e.onRenderOverflowButton,s=Yt({}),l=y.useCallback((function(e){return i?i(e):e.subMenuProps?e.subMenuProps.items:void 0}),[i]),c=y.useMemo((function(){var e,n=[];return o?null===(e=r)||void 0===e||e.forEach((function(e){var r,i,a,c,u=e.keytipProps;if(u){var A={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||l(e)?A.onExecute=t.menuExecute.bind(t,o,null===(i=null===(r=e)||void 0===r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences):A.onExecute=u.onExecute,s[A.content]=A;var d=Object(m.a)(Object(m.a)({},e),{keytipProps:Object(m.a)(Object(m.a)({},u),{overflowSetSequence:o})});null===(a=n)||void 0===a||a.push(d)}else null===(c=n)||void 0===c||c.push(e)})):n=r,n}),[r,l,t,o,s]);return function(e,t){y.useEffect((function(){return Object.keys(e).forEach((function(n){var r=e[n],o=t.register(r,!0);e[o]=r,delete e[n]})),function(){Object.keys(e).forEach((function(n){t.unregister(e[n],n,!0),delete e[n]}))}}),[e,t])}(s,t),y.createElement("div",{className:n},a(c))},Rc=Object(D.a)(),Oc=y.forwardRef((function(e,t){var n=y.useRef(null),r=Object(L.a)(n,t);!function(e,t){y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e=!1;return t.current&&(e=Object(Ie.c)(t.current)),e},focusElement:function(e){var n=!1;return!!e&&(t.current&&Object(Be.a)(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,i=e.overflowItems,a=e.className,s=e.styles,l=e.vertical,c=e.role,u=e.overflowSide,A=void 0===u?"end":u,d=e.onRenderItem,g=Rc(s,{className:a,vertical:l}),p=!!i&&i.length>0;return y.createElement("div",Object(m.a)({},Object(w.j)(e,w.h),{role:c||"group","aria-orientation":"menubar"===c?!0===l?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===A&&p&&y.createElement(Lc,Object(m.a)({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return y.createElement("div",{className:g.item,key:e.key},d(e))})),"end"===A&&p&&y.createElement(Lc,Object(m.a)({},e,{className:g.overflowButton})))}));Oc.displayName="OverflowSet";var _c={flexShrink:0,display:"inherit"},Fc=Object(M.a)(Oc,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",_c],overflowButton:["ms-OverflowSet-overflowButton",_c]}}),void 0,{scope:"OverflowSet"}),zc=Object(C.c)((function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},r=e||{},o=r.root,i=r.label,a=Object(m.d)(r,["root","label"]);return Object(m.a)(Object(m.a)({},a),{root:o?[t,o]:t,label:i?[n,i]:n})})),Pc=Object(D.a)(),Uc=function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=y.createRef(),n._resizeGroup=y.createRef(),n._onRenderData=function(e){return y.createElement(Te,{className:Object(ve.a)(n._classNames.root),direction:Ae.horizontal,role:"menubar","aria-label":n.props.ariaLabel},y.createElement(Fc,{role:"none",componentRef:n._overflowSet,className:Object(ve.a)(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),e.farItems&&e.farItems.length>0&&y.createElement(Fc,{role:"none",className:Object(ve.a)(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:Ve.b}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,(function(){}));var t=e.text||e.name,r=Object(m.a)(Object(m.a)({allowDisabledFocus:!0,role:"menuitem"},e),{styles:zc(e.buttonStyles),className:Object(ve.a)("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?y.createElement(ko,Object(m.a)({content:t},e.tooltipHostProps),n._commandButton(e,r)):n._commandButton(e,r)},n._commandButton=function(e,t){var r=n.props.buttonAs,o=e.commandBarButtonAs,i=ei;return o&&(i=Object(jc.a)(o,i)),r&&(i=Object(jc.a)(r,i)),y.createElement(i,Object(m.a)({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,r=void 0===t?{}:t,o=Object(m.e)(r.menuProps?r.menuProps.items:[],e),i=Object(m.a)(Object(m.a)({role:"menuitem"},r),{styles:Object(m.a)({menuIcon:{fontSize:"17px"}},r.styles),className:Object(ve.a)("ms-CommandBar-overflowButton",r.className),menuProps:Object(m.a)(Object(m.a)({},r.menuProps),{items:o}),menuIconProps:Object(m.a)({iconName:"More"},r.menuIconProps)}),a=n.props.overflowButtonAs?Object(jc.a)(n.props.overflowButtonAs,ei):ei;return y.createElement(a,Object(m.a)({},i))},n._onReduceData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataReduced,i=e.primaryItems,a=e.overflowItems,s=e.cacheKey,l=i[r?0:i.length-1];if(void 0!==l){l.renderedInOverflow=!0,a=Object(m.e)([l],a),i=r?i.slice(1):i.slice(0,-1);var c=Object(m.a)(Object(m.a)({},e),{primaryItems:i,overflowItems:a});return s=n._computeCacheKey({primaryItems:i,overflow:a.length>0}),o&&o(l),c.cacheKey=s,c}},n._onGrowData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataGrown,i=e.minimumOverflowItems,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=s[0];if(void 0!==c&&s.length>i){c.renderedInOverflow=!1,s=s.slice(1),a=r?Object(m.e)([c],a):Object(m.e)(a,[c]);var u=Object(m.a)(Object(m.a)({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0}),o&&o(c),u.cacheKey=l,u}},Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,r=e.farItems,o=e.styles,i=e.theme,a=e.dataDidRender,s=e.onReduceData,l=void 0===s?this._onReduceData:s,c=e.onGrowData,u=void 0===c?this._onGrowData:c,A=e.resizeGroupAs,d=void 0===A?Eo:A,g={primaryItems:Object(m.e)(t),overflowItems:Object(m.e)(n),minimumOverflowItems:Object(m.e)(n).length,farItems:r,cacheKey:this._computeCacheKey({primaryItems:Object(m.e)(t),overflow:n&&n.length>0})};this._classNames=Pc(o,{theme:i});var p=Object(w.j)(this.props,w.h);return y.createElement(d,Object(m.a)({},p,{componentRef:this._resizeGroup,data:g,onReduceData:l,onGrowData:u,onRenderData:this._onRenderData,dataDidRender:a}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow;return[t&&t.reduce((function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)}),""),n?"overflow":""].join("")},t.defaultProps={items:[],overflowItems:[]},t}(y.Component),Gc=Object(M.a)(Uc,(function(e){var t=e.className,n=e.theme,r=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:r.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}}),void 0,{scope:"CommandBar"}),Hc=Object(m.a)(Object(m.a)({},ca),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format"}),Yc=Object(D.a)(),Vc={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:li.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:Hc,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:ui.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};var Wc=y.forwardRef((function(e,t){var n=Object(x.a)(Vc,e),r=n.firstDayOfWeek,o=n.strings,i=n.label,a=n.theme,s=n.className,l=n.styles,c=n.initialPickerDate,u=n.isRequired,A=n.disabled,d=n.ariaLabel,g=n.pickerAriaLabel,p=n.placeholder,h=n.allowTextInput,f=n.borderless,I=n.minDate,C=n.maxDate,E=n.showCloseButton,b=n.calendarProps,v=n.calloutProps,B=n.textField,M=n.underlined,D=n.allFocusable,Q=n.calendarAs,S=void 0===Q?La:Q,N=n.tabIndex,k=n.disableAutoFocus,T=oi("DatePicker",n.id),j=oi("DatePicker-Callout"),L=y.useRef(null),R=y.useRef(null),O=function(){var e=y.useRef(null),t=y.useRef(!1);return[e,function(){var t,n,r;null===(r=null===(t=e.current)||void 0===t?void 0:(n=t).focus)||void 0===r||r.call(n)},t,function(){t.current=!0}]}(),_=O[0],F=O[1],z=O[2],P=O[3],U=function(e,t){var n=e.allowTextInput,r=e.onAfterMenuDismiss,o=y.useState(!1),i=o[0],a=o[1],s=y.useRef(!1),l=Vt();return y.useEffect((function(){var e;s.current&&!i&&(n&&l.requestAnimationFrame(t),null===(e=r)||void 0===e||e()),s.current=!0}),[i]),[i,a]}(n,F),G=U[0],H=U[1],Y=function(e){var t=e.formatDate,n=e.value,r=e.onSelectDate,o=Sa(n,void 0,(function(e,t){var n;return null===(n=r)||void 0===n?void 0:n(t)})),i=o[0],a=o[1],s=y.useState((function(){return n&&t?t(n):""})),l=s[0],c=s[1];return y.useEffect((function(){c(n&&t?t(n):"")}),[t,n]),[i,l,function(e){a(e),c(e&&t?t(e):"")},c]}(n),V=Y[0],W=Y[1],K=Y[2],Z=Y[3],J=function(e,t,n,r,o){var i=e.isRequired,a=e.allowTextInput,s=e.strings,l=e.parseDateFromString,c=e.onSelectDate,u=e.formatDate,A=e.minDate,d=e.maxDate,g=y.useState(),p=g[0],h=g[1];return y.useEffect((function(){i&&!t?h(s.isRequiredErrorMessage||" "):t&&Kc(t,A,d)?h(s.isOutOfBoundsErrorMessage||" "):h(void 0)}),[A&&Li(A),d&&Li(d),t&&Li(t),i]),[o?void 0:p,function(e){var o;if(void 0===e&&(e=null),a)if(r||e){if(t&&!p&&u&&u(null!=e?e:t)===r)return;!(e=e||l(r))||isNaN(e.getTime())?(n(t),h(s.invalidInputErrorMessage||" ")):Kc(e,A,d)?h(s.isOutOfBoundsErrorMessage||" "):(n(e),h(void 0))}else h(i?s.isRequiredErrorMessage||" ":void 0),null===(o=c)||void 0===o||o(e);else h(i&&!r?s.isRequiredErrorMessage||" ":void 0)},h]}(n,V,K,W,G),q=J[0],X=J[1],$=J[2],ee=y.useCallback((function(){G||(P(),H(!0))}),[G,P,H]);y.useImperativeHandle(n.componentRef,(function(){return{focus:F,reset:function(){H(!1),K(void 0),$(void 0)},showDatePickerPopup:ee}}),[F,$,H,K,ee]);var te=function(e){G&&(H(!1),X(e),!h&&e&&K(e))},ne=function(e){P(),te(e)},re=function(e){e.stopPropagation(),ne()},oe=Yc(l,{theme:a,className:s,disabled:A,label:!!i,isDatePickerShown:G}),ie=Object(w.j)(n,w.h,["value"]),se=B&&B.iconProps;return y.createElement("div",Object(m.a)({},ie,{className:oe.root,ref:t}),y.createElement("div",{ref:R,"aria-haspopup":"true","aria-owns":G?j:void 0,className:oe.wrapper},y.createElement(_l,Object(m.a)({role:"combobox",label:i,"aria-expanded":G,ariaLabel:d,"aria-controls":G?j:void 0,required:u,disabled:A,errorMessage:q,placeholder:p,borderless:f,value:W,componentRef:_,underlined:M,tabIndex:N,readOnly:!h},B,{id:T+"-label",className:Object(ve.a)(oe.textField,B&&B.className),iconProps:Object(m.a)(Object(m.a)({iconName:"Calendar"},se),{className:Object(ve.a)(oe.icon,se&&se.className),onClick:function(e){e.stopPropagation(),G||n.disabled?n.allowTextInput&&te():ee()}}),onKeyDown:function(e){switch(e.which){case ae.a.enter:e.preventDefault(),e.stopPropagation(),G?n.allowTextInput&&te():(X(),ee());break;case ae.a.escape:re(e);break;case ae.a.down:e.altKey&&!G&&ee()}},onFocus:function(){k||h||(z.current||ee(),z.current=!1)},onBlur:function(e){X()},onClick:function(e){n.disableAutoFocus||G||n.disabled?n.allowTextInput&&te():ee()},onChange:function(e,t){var r,o,i,a=n.textField;h&&(G&&te(),Z(t)),null===(i=null===(r=a)||void 0===r?void 0:(o=r).onChange)||void 0===i||i.call(o,e,t)}}))),G&&y.createElement(Rn,Object(m.a)({id:j,role:"dialog",ariaLabel:g,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:R.current,directionalHint:Je.bottomLeftEdge},v,{className:Object(ve.a)(oe.callout,v&&v.className),onDismiss:function(e){ne()},onPositioned:function(){var e=!0;n.calloutProps&&void 0!==n.calloutProps.setInitialFocus&&(e=n.calloutProps.setInitialFocus),L.current&&e&&L.current.focus()}}),y.createElement(Oa,{isClickableOutsideFocusTrap:!0,disableFirstFocus:n.disableAutoFocus},y.createElement(S,Object(m.a)({},b,{onSelectDate:function(e){n.calendarProps&&n.calendarProps.onSelectDate&&n.calendarProps.onSelectDate(e),ne(e)},onDismiss:ne,isMonthPickerVisible:n.isMonthPickerVisible,showMonthPickerAsOverlay:n.showMonthPickerAsOverlay,today:n.today,value:V||c,firstDayOfWeek:r,strings:o,highlightCurrentMonth:n.highlightCurrentMonth,highlightSelectedMonth:n.highlightSelectedMonth,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,showGoToToday:n.showGoToToday,dateTimeFormatter:n.dateTimeFormatter,minDate:I,maxDate:C,componentRef:L,showCloseButton:E,allFocusable:D})))))}));function Kc(e,t,n){return!!t&&xi(t,e)>0||!!n&&xi(n,e)<0}Wc.displayName="DatePickerBase";var Zc,Jc,qc={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Xc=Object(M.a)(Wc,(function(e){var t=e.className,n=e.theme,r=e.disabled,o=e.label,i=e.isDatePickerShown,a=n.palette,s=n.semanticColors,l=Object(I.R)(qc,n),c={color:a.neutralSecondary,fontSize:I.j.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[l.root,n.fonts.large,i&&"is-open",I.gb,t],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},r&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[l.callout],icon:[c,o?l.withLabel:l.withoutLabel,{paddingTop:"7px"},!r&&[l.disabled,{pointerEvents:"initial",cursor:"pointer"}],r&&{color:s.disabledText,cursor:"default"}]}}),void 0,{scope:"DatePicker"}),$c="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(Zc||(Zc={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Jc||(Jc={}));var eu=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.getKey,i=n.canSelectItem,a=void 0===i?function(){return!0}:i,s=n.items,l=n.selectionMode,c=void 0===l?Zc.multiple:l;this.mode=c,this._getKey=o||tu,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._canSelectItem=a,this._isModal=!1,this.setItems(s||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"==typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"==typeof n||n?""+n:""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=0;i<e.length;i++){if(u=e[i]){var a=this.getKey(u,i);a&&(n[a]=i)}r[i]=u&&!this.canSelectItem(u),r[i]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var u,A=Number(c),d=(u=this._items[A])?this.getKey(u,Number(A)):void 0,g=d?n[d]:A;void 0===g?o=!0:(s[g]=!0,l++,o=o||g!==A)}this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&(this._updateCount(),this._change()),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===Zc.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===Zc.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==Zc.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var r=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===Zc.single&&this._setAllSelected(!1,!0),r&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!r&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToIndex=function(e,t){if(this.mode!==Zc.none)if(this.mode!==Zc.single){var n=this._anchoredIndex||0,r=Math.min(e,n),o=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=o;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==Zc.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===Zc.single&&t>1)){this.setChangeEvents(!1);for(var o=e;o<r;o++)this.setIndexSelected(o,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===Zc.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,Ue.a.raise(this,$c),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function tu(e,t){var n=(e||{}).key;return void 0===n?""+t:n}var nu,ru,ou,iu,au,su,lu=function(e){function t(t){var n=e.call(this,t)||this;n._root=y.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||Object(Be.a)(document.activeElement,t)){if(Object(Be.a)(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,"data-selection-invoke")){n.ignoreNextFocus();break}t=Object(Ce.a)(t)}}else n.ignoreNextFocus()},n._onFocus=function(e){var t=e.target,r=n.props.selection,o=n._isCtrlPressed||n._isMetaPressed,i=n._getSelectionMode();if(n._shouldHandleFocus&&i!==Zc.none){var a=n._hasAttribute(t,"data-selection-toggle"),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);o?(r.setIndexSelected(l,r.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick(e,l)}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=e.target,r=n._findItemRoot(t);if(!n._isSelectionDisabled(t))for(;t!==n._root.current&&!n._hasAttribute(t,"data-selection-all-toggle");){if(r){if(n._hasAttribute(t,"data-selection-toggle"))break;if(n._hasAttribute(t,"data-selection-invoke"))break;if(!(t!==r&&!n._shouldAutoSelect(t)||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed)){n._onInvokeMouseDown(e,n._getItemIndex(r));break}if(n.props.disableAutoSelectOnInputElements&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName))return}t=Object(Ce.a)(t)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,r=void 0!==t&&t;n._updateModifiers(e);for(var o=e.target,i=n._findItemRoot(o),a=n._isSelectionDisabled(o);o!==n._root.current;){if(n._hasAttribute(o,"data-selection-all-toggle")){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i);if(n._hasAttribute(o,"data-selection-toggle")){a||(n._isShiftPressed?n._onItemSurfaceClick(e,s):n._onToggleClick(e,s));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,"data-selection-invoke")){n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick(e,s);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=Object(Ce.a)(o)}},n._onContextMenu=function(e){var t=e.target,r=n.props,o=r.onItemContextMenu,i=r.selection;if(o){var a=n._findItemRoot(t);if(a){var s=n._getItemIndex(a);n._onInvokeMouseDown(e,s),o(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,r=n.props.onItemInvoked,o=n._findItemRoot(t);if(o&&r&&!n._isInputElement(t)){for(var i=n._getItemIndex(o);t!==n._root.current&&!n._hasAttribute(t,"data-selection-toggle")&&!n._hasAttribute(t,"data-selection-invoke");){if(t===o){n._onInvokeClick(e,i);break}t=Object(Ce.a)(t)}t=Object(Ce.a)(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,r=n._isSelectionDisabled(t),o=n.props.selection,i=e.which===ae.a.a&&(n._isCtrlPressed||n._isMetaPressed),a=e.which===ae.a.escape;if(!n._isInputElement(t)){var s=n._getSelectionMode();if(i&&s===Zc.multiple&&!o.isAllSelected())return r||o.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&o.getSelectedCount()>0)return r||o.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var l=n._findItemRoot(t);if(l)for(var c=n._getItemIndex(l);t!==n._root.current&&!n._hasAttribute(t,"data-selection-toggle");){if(n._shouldAutoSelect(t)){r||n._onInvokeMouseDown(e,c);break}if(!(e.which!==ae.a.enter&&e.which!==ae.a.space||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName))return!1;if(t===l){if(e.which===ae.a.enter)return n._onInvokeClick(e,c),void e.preventDefault();if(e.which===ae.a.space)return r||n._onToggleClick(e,c),void e.preventDefault();break}t=Object(Ce.a)(t)}}},n._events=new Ue.a(n),n._async=new le.a(n),Object(se.a)(n);var r=n.props.selection,o=r.isModal&&r.isModal();return n.state={isModal:o},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return Object(m.a)(Object(m.a)({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=Object(be.a)(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return y.createElement("div",{className:Object(ve.a)("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,y.createElement(je.a,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===Zc.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Object(Ce.a)(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===Zc.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t){var n=this.props.selection,r=this._getSelectionMode();if(n.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&!n.isIndexSelected(t)&&n.setModal&&(n.setModal(!0),this._setIsTouch(!1)),r===Zc.multiple)n.toggleIndexSelected(t);else{if(r!==Zc.single)return void n.setChangeEvents(!0);var o=n.isIndexSelected(t),i=n.isModal&&n.isModal();n.setAllSelected(!1),n.setIndexSelected(t,!o,!0),i&&n.setModal&&n.setModal(!0)}n.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t){var n=this.props.selection,r=this._isCtrlPressed||this._isMetaPressed,o=this._getSelectionMode();o===Zc.multiple?this._isShiftPressed&&!this._isTabPressed?n.selectToIndex(t,!r):r?n.toggleIndexSelected(t):this._clearAndSelectIndex(t):o===Zc.single&&this._clearAndSelectIndex(t)},t.prototype._onInvokeMouseDown=function(e,t){this.props.selection.isIndexSelected(t)||this._clearAndSelectIndex(t)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=Object(De.f)(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e){var t=this.props.selection;if(!(1===t.getSelectedCount()&&t.isIndexSelected(e))){var n=t.isModal&&t.isModal();t.setChangeEvents(!1),t.setAllSelected(!1),t.setIndexSelected(e,!0,!0),(n||this.props.enterModalOnTouch&&this._isTouch)&&(t.setModal&&t.setModal(!0),this._isTouch&&this._setIsTouch(!1)),t.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===ae.a.tab},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute("data-selection-index"),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=Object(Ce.a)(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){return Number(e.getAttribute("data-selection-index"))},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;)n="true"===e.getAttribute(t),e=Object(Ce.a)(e);return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName},t.prototype._isNonHandledClick=function(e){var t=Object(we.a)();if(t&&e)for(;e&&e!==t.documentElement;){if(Object(Ie.n)(e))return!1;e=Object(Ce.a)(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:Zc.none:t},t.defaultProps={isSelectedOnFocus:!0,selectionMode:Zc.multiple},t}(y.Component);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(nu||(nu={})),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(ru||(ru={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(ou||(ou={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(iu||(iu={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(au||(au={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(su||(su={}));var cu=function(e){var t=e.count,n=e.indentWidth,r=void 0===n?36:n,o=e.role,i=void 0===o?"presentation":o,a=t*r;return t>0?y.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:a},role:i}):null},uu={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},Au={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},du={rowHeight:42,compactRowHeight:32},gu=Object(m.a)(Object(m.a)({},du),{rowVerticalPadding:11,compactRowVerticalPadding:6}),pu=function(e){var t,n,r,o,i,a,s,l,c,u,A,d,g=e.theme,p=e.isSelected,h=e.canSelect,f=e.droppingClassName,y=e.anySelected,C=e.isCheckVisible,E=e.checkboxCellClassName,b=e.compact,v=e.className,B=e.cellStyleProps,M=void 0===B?Au:B,D=e.enableUpdateAnimations,x=g.palette,w=g.fonts,Q=x.neutralPrimary,S=x.white,N=x.neutralSecondary,k=x.neutralLighter,T=x.neutralLight,j=x.neutralDark,L=x.neutralQuaternaryAlt,R=g.semanticColors.focusBorder,O=Object(I.R)(uu,g),_={defaultHeaderText:Q,defaultMetaText:N,defaultBackground:S,defaultHoverHeaderText:j,defaultHoverMetaText:Q,defaultHoverBackground:k,selectedHeaderText:j,selectedMetaText:Q,selectedBackground:T,selectedHoverHeaderText:j,selectedHoverMetaText:Q,selectedHoverBackground:L,focusHeaderText:j,focusMetaText:Q,focusBackground:T,focusHoverBackground:L},F=[Object(I.Q)(g,{inset:-1,borderColor:R,outlineColor:S,highContrastStyle:{top:2,right:2,bottom:2,left:2}}),O.isSelected,{color:_.selectedMetaText,background:_.selectedBackground,borderBottom:"1px solid "+S,selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+S},"&:hover":{background:_.selectedHoverBackground,color:_.selectedHoverMetaText,selectors:(n={},n["."+O.cell+" "+I.l]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},n["."+O.isRowHeader]={color:_.selectedHoverHeaderText,selectors:(r={},r[I.l]={color:"HighlightText"},r)},n[I.l]={background:"Highlight"},n)},"&:focus":{background:_.focusBackground,selectors:(o={},o["."+O.cell]={color:_.focusMetaText,selectors:(i={},i[I.l]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},i)},o["."+O.isRowHeader]={color:_.focusHeaderText,selectors:(a={},a[I.l]={color:"HighlightText"},a)},o[I.l]={background:"Highlight"},o)}},t[I.l]=Object(m.a)(Object(m.a)({background:"Highlight",color:"HighlightText"},Object(I.S)()),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:_.focusHoverBackground},t)}],z=[O.isContentUnselectable,{userSelect:"none",cursor:"default"}],P={minHeight:gu.compactRowHeight,border:0},U={minHeight:gu.compactRowHeight,paddingTop:gu.compactRowVerticalPadding,paddingBottom:gu.compactRowVerticalPadding,paddingLeft:M.cellLeftPadding+"px"},G=[Object(I.Q)(g,{inset:-1}),O.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:gu.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:gu.rowVerticalPadding,paddingBottom:gu.rowVerticalPadding,paddingLeft:M.cellLeftPadding+"px",selectors:(s={"& > button":{maxWidth:"100%"}},s["[data-is-focusable='true']"]=Object(I.Q)(g,{inset:-1,borderColor:N,outlineColor:S}),s)},p&&{selectors:(l={},l[I.l]=Object(m.a)(Object(m.a)({background:"Highlight",color:"HighlightText"},Object(I.S)()),{selectors:{a:{color:"HighlightText"}}}),l)},b&&U];return{root:[O.root,I.a.fadeIn400,f,g.fonts.small,C&&O.isCheckVisible,Object(I.Q)(g,{borderColor:R,outlineColor:S}),{borderBottom:"1px solid "+k,background:_.defaultBackground,color:_.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:gu.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(c={},c["."+O.listCellFirstChild+" &:before"]={display:"none"},c["&:hover"]={background:_.defaultHoverBackground,color:_.defaultHoverMetaText,selectors:(u={},u["."+O.isRowHeader]={color:_.defaultHoverHeaderText},u)},c["&:hover ."+O.check]={opacity:1},c["."+Kn.a+" &:focus ."+O.check]={opacity:1},c[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},c)},p&&F,!h&&z,b&&P,v],cellUnpadded:{paddingRight:M.cellRightPadding+"px"},cellPadded:{paddingRight:M.cellExtraRightPadding+M.cellRightPadding+"px",selectors:(A={},A["&."+O.cellCheck]={paddingRight:0},A)},cell:G,cellAnimation:D&&I.b.slideLeftIn40,cellMeasurer:[O.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[G,O.cellCheck,E,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:{position:"absolute",top:-1,left:0,bottom:0,right:0,display:y?"block":"none"},fields:[O.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[O.isRowHeader,{color:_.defaultHeaderText,fontSize:w.medium.fontSize},p&&{color:_.selectedHeaderText,fontWeight:I.k.semibold,selectors:(d={},d[I.l]={color:"HighlightText"},d)}],isMultiline:[G,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[O.check]}},hu={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},fu=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?Au:n,o=t.semanticColors;return[Object(I.R)(hu,t).cell,Object(I.Q)(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+r.cellRightPadding+"px 0 "+r.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:42,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},mu={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},yu=Object(D.a)(),Iu=y.memo((function(e){return y.createElement(Ga,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function Cu(e){return y.createElement(Ga,{checked:e.checked})}function Eu(e){return y.createElement(Iu,{theme:e.theme,checked:e.checked})}var bu,vu=Object(M.a)((function(e){var t=e.isVisible,n=void 0!==t&&t,r=e.canSelect,o=void 0!==r&&r,i=e.anySelected,a=void 0!==i&&i,s=e.selected,l=void 0!==s&&s,c=e.isHeader,u=void 0!==c&&c,A=e.className,d=(e.checkClassName,e.styles),g=e.theme,p=e.compact,h=e.onRenderDetailsCheckbox,f=e.useFastIcons,I=void 0===f||f,C=Object(m.d)(e,["isVisible","canSelect","anySelected","selected","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),E=I?Eu:Cu,b=h?Object(qa.a)(h,E):E,v=yu(d,{theme:g,canSelect:o,selected:l,anySelected:a,className:A,isHeader:u,isVisible:n,compact:p}),B={checked:l,theme:g};return o?y.createElement("div",Object(m.a)({},C,{role:"checkbox",className:Object(ve.a)(v.root,v.check),"aria-checked":l,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),b(B)):y.createElement("div",Object(m.a)({},C,{className:Object(ve.a)(v.root,v.check)}))}),(function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=Object(I.R)(mu,t),u=du.rowHeight,A=du.compactRowHeight,d=r?42:s?A:u,g=l||o||i;return{root:[c.root,n],check:[!a&&c.isDisabled,r&&c.isHeader,Object(I.Q)(t),t.fonts.small,Ua.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:g?1:0,height:d,width:48,padding:0,margin:0}],isDisabled:[]}}),void 0,{scope:"DetailsRowCheck"},!0),Bu=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var r=this;if(!this._initialized){this._events=new Ue.a(this);var o=Object(we.a)();o&&(this._events.on(o.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(o,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,A,d,g,p,h=n.key,f=void 0===h?""+ ++this._lastId:h,m=[];if(n&&e){var y=n.eventMap,I=n.context,C=n.updateDropState,E={root:e,options:n,key:f};if(d=this._isDraggable(E),g=this._isDroppable(E),(d||g)&&y)for(var b=0,v=y;b<v.length;b++){var B=v[b],M={callback:B.callback.bind(null,I),eventName:B.eventName};m.push(M),this._events.on(e,M.eventName,M.callback)}g&&(a=function(e){e.isHandled||(e.isHandled=!0,r._dragEnterCounts[f]--,0===r._dragEnterCounts[f]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[f]++,1===r._dragEnterCounts[f]&&C(!0,e))},l=function(e){r._dragEnterCounts[f]=0,C(!1,e)},c=function(e){r._dragEnterCounts[f]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},u=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[f]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),d&&(A=this._onMouseDown.bind(this,E),l=this._onDragEnd.bind(this,E),i=function(t){var o=n;o&&o.onDragStart&&o.onDragStart(o.context.data,o.context.index,r._selection.getSelection(),t),r._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",A),t.on(e,"dragend",l)),p={target:E,dispose:function(){if(r._activeTargets[f]===p&&delete r._activeTargets[f],e){for(var n=0,o=m;n<o.length;n++){var h=o[n];r._events.off(e,h.eventName,h.callback)}g&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),d&&(t.off(e,"dragstart",i),t.off(e,"mousedown",A),t.off(e,"dragend",l))}}},this._activeTargets[f]=p}return{key:f,dispose:function(){p&&p.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var r=n[t],o=this._activeTargets[r];o.target.root&&(this._events.off(o.target.root,"mousemove"),this._events.off(o.target.root,"mouseleave"))}this._dragData.dropTarget&&(Ue.a.raise(this._dragData.dropTarget.root,"dragleave"),Ue.a.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=Object(we.a)();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,r=void 0===n?1:n;if(this._dragData&&1!==r)this._onMouseUp(t);else{var o=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(o,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(Ue.a.raise(this._dragData.dropTarget.root,"dragleave"),Ue.a.raise(o,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(Ue.a.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,r=Object.keys(this._activeTargets);n<r.length;n++){var o=r[n],i=this._activeTargets[o];i.target.root&&(this._events.on(i.target.root,"mousemove",this._onMouseMove.bind(this,i.target)),this._events.on(i.target.root,"mouseleave",this._onMouseLeave.bind(this,i.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!(!t.canDrag||!t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,n))},e}(),Mu=Object(D.a)(),Du=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._onRenderColumnHeaderTooltip=function(e){return y.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,r=t.onColumnClick,o=t.column;o.columnActionsMode!==ru.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),r&&r(e,o))},n._onDragStart=function(e,t,r,o){var i=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(i.borderWhileDragging),n._async.setTimeout((function(){n._root.current&&n._root.current.classList.add(i.noBorderWhileDragging)}),20))},n._onDragEnd=function(e,t){var r=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(r.borderWhileDragging),n._root.current.classList.remove(r.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,r=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),r&&(r(o,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&0===e.button&&e.stopPropagation()},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.columnIndex,r=e.parentId,o=e.isDraggable,i=e.styles,a=e.theme,s=e.cellStyleProps,l=void 0===s?Au:s,c=e.useFastIcons,u=void 0===c||c,A=this.props.onRenderColumnHeaderTooltip,d=void 0===A?this._onRenderColumnHeaderTooltip:A;this._classNames=Mu(i,{theme:a,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==ru.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:l,transitionDurationDrag:200,transitionDurationDrop:1500});var g=this._classNames,p=u?Ke.a:N.a;return y.createElement(y.Fragment,null,y.createElement("div",{key:t.key,ref:this._root,role:"columnheader","aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","aria-colindex":n,className:g.root,"data-is-draggable":o,draggable:o,style:{width:t.calculatedWidth+l.cellLeftPadding+l.cellRightPadding+(t.isPadded?l.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key},o&&y.createElement(p,{iconName:"GripperBarVertical",className:g.gripperBarVerticalStyle}),d({hostClassName:g.cellTooltip,id:r+"-"+t.key+"-tooltip",setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==ru.disabled?t.ariaLabel:"",children:y.createElement("span",{id:r+"-"+t.key,"aria-label":t.isIconOnly?t.name:void 0,"aria-labelledby":t.isIconOnly?void 0:r+"-"+t.key+"-name",className:g.cellTitle,"data-is-focusable":t.columnActionsMode!==ru.disabled,role:t.columnActionsMode===ru.disabled||void 0===t.onColumnClick&&void 0===this.props.onColumnClick?void 0:"button","aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleLabel()?r+"-"+t.key+"-tooltip":void 0,onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===ru.hasDropdown,"aria-expanded":t.columnActionsMode===ru.hasDropdown?!!t.isMenuOpen:void 0},y.createElement("span",{id:r+"-"+t.key+"-name",className:g.cellName},(t.iconName||t.iconClassName)&&y.createElement(p,{className:g.iconClassName,iconName:t.iconName}),t.isIconOnly?y.createElement("span",{className:g.accessibleLabel},t.name):t.name),t.isFiltered&&y.createElement(p,{className:g.nearIcon,iconName:"Filter"}),t.isSorted&&y.createElement(p,{className:g.sortIcon,iconName:t.isSortedDescending?"SortDown":"SortUp"}),t.isGrouped&&y.createElement(p,{className:g.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===ru.hasDropdown&&!t.isIconOnly&&y.createElement(p,{"aria-hidden":!0,className:g.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleLabel())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleLabel=function(){var e=this.props.column;return!!(e.ariaLabel||e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel)},t.prototype._renderAccessibleLabel=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleLabel()&&!this.props.onRenderColumnHeaderTooltip?y.createElement("label",{key:t.key+"_label",id:n+"-"+t.key+"-tooltip",className:r.accessibleLabel},t.ariaLabel,t.isFiltered&&t.filterAriaLabel||null,t.isSorted&&(t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(y.Component),xu={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},wu=Object(M.a)(Du,(function(e){var t,n=e.theme,r=e.headerClassName,o=e.iconClassName,i=e.isActionable,a=e.isEmpty,s=e.isIconVisible,l=e.isPadded,c=e.isIconOnly,u=e.cellStyleProps,A=void 0===u?Au:u,d=e.transitionDurationDrag,g=e.transitionDurationDrop,p=n.semanticColors,h=n.palette,f=n.fonts,y=Object(I.R)(xu,n),C={iconForegroundColor:p.bodySubtext,headerForegroundColor:p.bodyText,headerBackgroundColor:p.bodyBackground,dropdownChevronForegroundColor:h.neutralSecondary,resizerColor:h.neutralTertiaryAlt},E={color:C.iconForegroundColor,opacity:1,paddingLeft:8},b={outline:"1px solid "+h.themePrimary},v={outlineColor:"transparent"};return{root:[fu(e),f.small,i&&[y.isActionable,{selectors:{":hover":{color:p.bodyText,background:p.listHeaderBackgroundHovered},":active":{background:p.listHeaderBackgroundPressed}}}],a&&[y.isEmpty,{textOverflow:"clip"}],s&&y.isIconVisible,l&&{paddingRight:A.cellExtraRightPadding+A.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},r],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:h.neutralTertiary,left:1},nearIcon:[y.nearIcon,E],sortIcon:[E,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:C.iconForegroundColor,opacity:1},o],filterChevron:[y.filterChevron,{color:C.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:f.small.fontSize}],cellTitle:[y.cellTitle,Object(I.Q)(n),Object(m.a)({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 "+A.cellRightPadding+"px 0 "+A.cellLeftPadding+"px"},c?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:I.k.semibold,fontSize:f.medium.fontSize},c&&{selectors:(t={},t["."+y.nearIcon]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:I.ab,borderWhileDragging:b,noBorderWhileDragging:[v,{transition:"outline "+d+"ms ease"}],borderAfterDropping:b,noBorderAfterDropping:[v,{transition:"outline  "+g+"ms ease"}]}}),void 0,{scope:"DetailsColumn"});!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(bu||(bu={}));var Qu=Object(D.a)(),Su=[],Nu=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=y.createRef(),n._rootComponent=y.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var r=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var o=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,i=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=o,r.onColumnDrop){var a={draggedIndex:n._draggedColumnIndex,targetIndex:o};r.onColumnDrop(a)}else r.handleColumnReorder&&r.handleColumnReorder(n._draggedColumnIndex,o)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._updateDragInfo=function(e,t){var r=n._getColumnReorderProps(),o=e.itemIndex;if(o>=0)n._draggedColumnIndex=n._isCheckboxColumnHidden()?o-1:o-2,n._getDropHintPositions(),r.onColumnDragStart&&r.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},r.onColumnDragEnd)){var i=n._isEventOnHeader(t);r.onColumnDragEnd({dropLocation:i},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,r=void 0===t?Su:t,o=n._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,l=o.frozenColumnCountFromEnd||0,c=s;c<r.length-l+1;c++)if(n._rootElement.current){var u=n._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var A=(u.offsetLeft+i)/2;n._dropHintDetails[c-1]={originX:i,startX:a,endX:A,dropHintElementRef:e},a=A,e=u,i=u.offsetLeft,c===r.length-l&&(n._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=Object(Q.a)(n.props.theme);if(n._rootElement.current){var r=e-n._rootElement.current.getBoundingClientRect().left,o=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&ku(t,r,n._dropHintDetails[o].startX,n._dropHintDetails[o].endX))return;var i=n.props.columns,a=void 0===i?Su:i,s=n._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,u=l,A=a.length-c,d=-1;if(Tu(t,r,n._dropHintDetails[u].endX)?d=u:ju(t,r,n._dropHintDetails[A].startX)?d=A:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[o+1]&&ku(t,r,n._dropHintDetails[o+1].startX,n._dropHintDetails[o+1].endX)?d=o+1:n._dropHintDetails[o-1]&&ku(t,r,n._dropHintDetails[o-1].startX,n._dropHintDetails[o-1].endX)&&(d=o-1)),-1===d)for(var g=l,p=A;g<p;){var h=Math.ceil((p+g)/2);if(ku(t,r,n._dropHintDetails[h].startX,n._dropHintDetails[h].endX)){d=h;break}Tu(t,r,n._dropHintDetails[h].originX)?p=h:ju(t,r,n._dropHintDetails[h].originX)&&(g=h)}d===n._draggedColumnIndex||d===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():o!==d&&d>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[d].dropHintElementRef,"inline-block"),n._currentDropHintIndex=d)}},n._renderColumnSizer=function(e){var t,r=e.columnIndex,o=n.props.columns,i=void 0===o?Su:o,a=i[r],s=n.state.columnResizeDetails,l=n._classNames;return a.isResizable?y.createElement("div",{key:a.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:Lu,"data-sizer-index":r,onBlur:n._onSizerBlur,className:Object(ve.a)(l.cellSizer,r<i.length-1?l.cellSizerStart:l.cellSizerEnd,(t={},t[l.cellIsResizing]=s&&s.columnIndex===r,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,r)}):null},n._onRenderColumnHeaderTooltip=function(e){return y.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),r=Number(t),o=n.props.columns,i=void 0===o?Su:o;null!==t&&0===e.button&&(n.setState({columnResizeDetails:{columnIndex:r,columnMinWidth:i[r].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing;r&&!o&&e.clientX!==r.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing,i=n.props,a=i.columns,s=void 0===a?Su:a,l=i.onColumnResized,c=e.target.getAttribute("data-sizer-index");if(c&&!o){var u=Number(c);if(r){var A=void 0;e.which===ae.a.enter?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===ae.a.left?A=Object(Q.a)(n.props.theme)?1:-1:e.which===ae.a.right&&(A=Object(Q.a)(n.props.theme)?-1:1),A&&(e.shiftKey||(A*=10),n.setState({columnResizeDetails:Object(m.a)(Object(m.a)({},r),{columnMinWidth:r.columnMinWidth+A})}),l&&l(s[u],r.columnMinWidth+A,u),e.preventDefault(),e.stopPropagation())}else e.which===ae.a.enter&&(n.setState({columnResizeDetails:{columnIndex:u,columnMinWidth:s[u].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,r=n.props,o=r.onColumnIsSizingChanged,i=r.onColumnResized,a=r.columns,s=void 0===a?Su:a,l=n.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&o&&o(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;Object(Q.a)(n.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else n._onSizerMouseUp(e)},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,r=t.columns,o=void 0===r?Su:r,i=t.onColumnIsSizingChanged,a=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(o[a.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},Object(se.a)(n),n._events=new Ue.a(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=Object(Ee.a)("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new Bu({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,$c,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?Su:t,r=this.props.columns,o=void 0===r?Su:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?Su:n,o=t.ariaLabel,i=t.ariaLabelForToggleAllGroupsButton,a=t.ariaLabelForSelectAllCheckbox,s=t.selectAllVisibility,l=t.ariaLabelForSelectionColumn,c=t.indentWidth,u=t.onColumnClick,A=t.onColumnContextMenu,d=t.onRenderColumnHeaderTooltip,g=void 0===d?this._onRenderColumnHeaderTooltip:d,p=t.styles,h=t.selectionMode,f=t.theme,m=t.onRenderDetailsCheckbox,I=t.groupNestingDepth,C=t.useFastIcons,E=t.checkboxVisibility,b=t.className,v=this.state,B=v.isAllSelected,M=v.columnResizeDetails,D=v.isSizing,x=v.isAllCollapsed,w=s!==bu.none,S=s===bu.hidden,k=E===su.always,T=this._getColumnReorderProps(),j=T&&T.frozenColumnCountFromStart?T.frozenColumnCountFromStart:0,L=T&&T.frozenColumnCountFromEnd?T.frozenColumnCountFromEnd:0;this._classNames=Qu(p,{theme:f,isAllSelected:B,isSelectAllHidden:s===bu.hidden,isResizingColumn:!!M&&D,isSizing:D,isAllCollapsed:x,isCheckboxHidden:S,className:b});var R=this._classNames,O=C?Ke.a:N.a,_=Object(Q.a)(f);return y.createElement(Te,{role:"row","aria-label":o,className:R.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:Ae.horizontal},w?[y.createElement("div",{key:"__checkbox",className:R.cellIsCheck,"aria-labelledby":this._id+"-check",onClick:S?void 0:this._onSelectAllClicked,"aria-colindex":1,role:"columnheader"},g({hostClassName:R.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:a,children:y.createElement(vu,{id:this._id+"-check","aria-label":h===Zc.multiple?a:l,"aria-describedby":S?l&&!this.props.onRenderColumnHeaderTooltip?this._id+"-checkTooltip":void 0:a&&!this.props.onRenderColumnHeaderTooltip?this._id+"-checkTooltip":void 0,"data-is-focusable":!S||void 0,isHeader:!0,selected:B,anySelected:!1,canSelect:!S,className:R.check,onRenderDetailsCheckbox:m,useFastIcons:C,isVisible:k})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:a&&!S?y.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:R.accessibleLabel,"aria-hidden":!0},a):l&&S?y.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:R.accessibleLabel,"aria-hidden":!0},l):null]:null,I>0&&this.props.collapseAllVisibility===nu.visible?y.createElement("div",{className:R.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!x,role:"columnheader"},y.createElement(O,{className:R.collapseButton,iconName:_?"ChevronLeftMed":"ChevronRightMed"})):null,y.createElement(cu,{indentWidth:c,role:"gridcell",count:I-1}),r.map((function(t,n){var o=!!T&&(n>=j&&n<r.length-L);return[T&&(o||n===r.length-L)&&e._renderDropHint(n),y.createElement(wu,{column:t,styles:t.styles,key:t.key,columnIndex:(w?2:1)+n,parentId:e._id,isDraggable:o,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:u,onColumnContextMenu:A,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]})),T&&0===L&&this._renderDropHint(r.length),D&&y.createElement(Ln,null,y.createElement("div",{className:R.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&Object(m.a)(Object(m.a)({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===Zc.none||n===su.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return iu.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?Su:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?Ke.a:N.a;return y.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_"+e},y.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},y.createElement(n,{iconName:"CircleShapeSolid"})),y.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns;r&&r((void 0===o?Su:o)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:bu.visible,collapseAllVisibility:nu.visible,useFastIcons:!0},t}(y.Component);function ku(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function Tu(e,t,n){return e?t>=n:t<=n}function ju(e,t,n){return e?t<=n:t>=n}function Lu(e){e.stopPropagation()}var Ru=Object(M.a)(Nu,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.isAllSelected,l=e.isResizingColumn,c=e.isSizing,u=e.isAllCollapsed,A=e.cellStyleProps,d=void 0===A?Au:A,g=i.semanticColors,p=i.palette,h=i.fonts,f=Object(I.R)(hu,i),y={iconForegroundColor:g.bodySubtext,headerForegroundColor:g.bodyText,headerBackgroundColor:g.bodyBackground,resizerColor:p.neutralTertiaryAlt},C={opacity:1,transition:"opacity 0.3s linear"},E=fu(e);return{root:[f.root,h.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid "+g.bodyDivider,cursor:"default",userSelect:"none",selectors:(t={},t["&:hover ."+f.check]={opacity:1},t["& ."+f.tooltipHost+" ."+f.checkTooltip]={display:"block"},t)},s&&f.isAllSelected,l&&f.isResizingColumn,a],check:[f.check,{height:42},{selectors:(n={},n["."+Kn.a+" &:focus"]={opacity:1},n)}],cellWrapperPadded:{paddingRight:d.cellExtraRightPadding+d.cellRightPadding},cellIsCheck:[E,f.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},s&&{opacity:1}],cellIsGroupExpander:[E,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:h.small.fontSize,padding:0,border:"none",width:36,color:p.neutralSecondary,selectors:{":hover":{backgroundColor:p.neutralLighter},":active":{backgroundColor:p.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:g.bodyText,background:g.listHeaderBackgroundHovered},":active":{background:g.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[f.cellSizer,Object(I.L)(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(r={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":C,":hover:after":C},r["&."+f.isResizing+":after"]=[C,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],r)}],cellIsResizing:f.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[f.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},u?[f.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Object(Q.a)(i)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:f.checkTooltip,sizingOverlay:c&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(o={},o[I.l]=Object(m.a)({background:"transparent"},Object(I.S)()),o)},accessibleLabel:I.ab,dropHintCircleStyle:[f.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid "+p.themePrimary,background:p.white}],dropHintCaretStyle:[f.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:h.medium.fontSize,color:p.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[f.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:p.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),Ou=function(e){var t=e.columns,n=e.columnStartIndex,r=e.rowClassNames,o=e.cellStyleProps,i=void 0===o?Au:o,a=e.item,s=e.itemIndex,l=e.onRenderItemColumn,c=e.getCellValueKey,u=e.cellsByColumn,A=e.enableUpdateAnimations,d=e.rowHeaderId,g=y.useRef(),p=g.current||(g.current={});return y.createElement("div",{className:r.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e,t){var o=void 0===e.calculatedWidth?"auto":e.calculatedWidth+i.cellLeftPadding+i.cellRightPadding+(e.isPadded?i.cellExtraRightPadding:0),g=e.onRender,h=void 0===g?l:g,f=e.getValueKey,m=void 0===f?c:f,I=u&&e.key in u?u[e.key]:h?h(a,s,e):function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return null==n&&(n=""),"boolean"==typeof n?n.toString():n}(a,e),C=p[e.key],E=A&&m?m(a,s,e):void 0,b=!1;void 0!==E&&void 0!==C&&E!==C&&(b=!0),p[e.key]=E;var v=e.key+(void 0!==E?"-"+E:"");return y.createElement("div",{key:v,id:e.isRowHeader?d:void 0,role:e.isRowHeader?"rowheader":"gridcell","aria-readonly":!0,"aria-colindex":t+n+1,className:Object(ve.a)(e.className,e.isMultiline&&r.isMultiline,e.isRowHeader&&r.isRowHeader,r.cell,e.isPadded?r.cellPadded:r.cellUnpadded,b&&r.cellAnimation),style:{width:o},"data-automationid":"DetailsRowCell","data-automation-key":e.key},I)})))},_u=Object(D.a)(),Fu=[],zu=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._cellMeasurer=y.createRef(),n._focusZone=y.createRef(),n._onSelectionChanged=function(){var e=Pu(n.props);Object(Ye.e)(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var r=n.state.isDropping,o=n.props,i=o.dragDropEvents,a=o.item;e?i.onDragEnter&&(n._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),r!==e&&n.setState({isDropping:e})},Object(se.a)(n),n._events=new Ue.a(n),n.state={selectionState:Pu(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){return Object(m.a)(Object(m.a)({},t),{selectionState:Pu(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,$c,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=Pu(e);return this.state.selectionState.isSelected!==n.isSelected||!Object(Ye.e)(this.props,e)}return!0},t.prototype.render=function(){var e=this.props,t=e.className,n=e.columns,r=void 0===n?Fu:n,o=e.dragDropEvents,i=e.item,a=e.itemIndex,s=e.id,l=e.flatIndexOffset,c=void 0===l?2:l,u=e.onRenderCheck,A=void 0===u?this._onRenderCheck:u,d=e.onRenderDetailsCheckbox,g=e.onRenderItemColumn,p=e.getCellValueKey,h=e.selectionMode,f=e.rowWidth,I=void 0===f?0:f,C=e.checkboxVisibility,E=e.getRowAriaLabel,b=e.getRowAriaDescribedBy,v=e.checkButtonAriaLabel,B=e.checkboxCellClassName,M=e.rowFieldsAs,D=void 0===M?Ou:M,x=e.selection,Q=e.indentWidth,S=e.enableUpdateAnimations,N=e.compact,k=e.theme,T=e.styles,j=e.cellsByColumn,L=e.groupNestingDepth,R=e.useFastIcons,O=void 0===R||R,_=e.cellStyleProps,F=this.state,z=F.columnMeasureInfo,P=F.isDropping,U=this.state.selectionState,G=U.isSelected,H=void 0!==G&&G,Y=U.isSelectionModal,V=void 0!==Y&&Y,W=o?!(!o.canDrag||!o.canDrag(i)):void 0,K=P?this._droppingClassNames||"is-dropping":"",Z=E?E(i):void 0,J=b?b(i):void 0,q=!!x&&x.canSelectItem(i,a),X=h===Zc.multiple,$=h!==Zc.none&&C!==su.hidden,ee=h===Zc.none?void 0:H;this._classNames=Object(m.a)(Object(m.a)({},this._classNames),_u(T,{theme:k,isSelected:H,canSelect:!X,anySelected:V,checkboxCellClassName:B,droppingClassName:K,className:t,compact:N,enableUpdateAnimations:S,cellStyleProps:_}));var te={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};Object(Ye.e)(this._rowClassNames||{},te)||(this._rowClassNames=te);var ne=y.createElement(D,{rowClassNames:this._rowClassNames,rowHeaderId:s+"-header",cellsByColumn:j,columns:r,item:i,itemIndex:a,columnStartIndex:($?1:0)+(L?1:0),onRenderItemColumn:g,getCellValueKey:p,enableUpdateAnimations:S,cellStyleProps:_});return y.createElement(Te,Object(m.a)({"data-is-focusable":!0},Object(w.j)(this.props,w.h),"boolean"==typeof W?{"data-is-draggable":W,draggable:W}:{},{direction:Ae.horizontal,elementRef:this._root,componentRef:this._focusZone,role:"row","aria-label":Z,"aria-describedby":J,className:this._classNames.root,"data-selection-index":a,"data-selection-touch-invoke":!0,"data-item-index":a,"aria-rowindex":L?void 0:a+c,"aria-level":L&&L+1||void 0,"data-automationid":"DetailsRow",style:{minWidth:I},"aria-selected":ee,allowFocusRoot:!0}),$&&y.createElement("div",{role:"gridcell","aria-colindex":1,"data-selection-toggle":!0,className:this._classNames.checkCell},A({id:s?s+"-checkbox":void 0,selected:H,anySelected:V,"aria-label":v,"aria-labelledby":s?s+"-checkbox "+s+"-header":void 0,canSelect:q,compact:N,className:this._classNames.check,theme:k,isVisible:C===su.always,onRenderDetailsCheckbox:d,useFastIcons:O})),y.createElement(cu,{indentWidth:Q,role:"gridcell",count:L-(this.props.collapseAllVisibility===nu.hidden?1:0)}),i&&ne,z&&y.createElement("span",{role:"presentation",className:Object(ve.a)(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},y.createElement(D,{rowClassNames:this._rowClassNames,rowHeaderId:s+"-header",columns:[z.column],item:i,itemIndex:a,columnStartIndex:($?1:0)+(L?1:0)+r.length,onRenderItemColumn:g,getCellValueKey:p})),y.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":H,"data-selection-toggle":!0}))},t.prototype.measureCell=function(e,t){var n=this.props.columns,r=void 0===n?Fu:n,o=Object(m.a)({},r[e]);o.minWidth=0,o.maxWidth=999999,delete o.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:o,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return y.createElement(vu,Object(m.a)({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},t}(y.Component);function Pu(e){var t,n,r,o,i=e.itemIndex,a=e.selection;return{isSelected:!!(null===(t=a)||void 0===t?void 0:t.isIndexSelected(i)),isSelectionModal:!!(null===(o=null===(n=a)||void 0===n?void 0:(r=n).isModal)||void 0===o?void 0:o.call(r))}}var Uu,Gu,Hu=Object(M.a)(zu,pu,void 0,{scope:"DetailsRow"}),Yu={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},Vu="cubic-bezier(0.445, 0.050, 0.550, 0.950)",Wu={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},Ku="cubic-bezier(0.075, 0.820, 0.165, 1.000)",Zu="cubic-bezier(0.390, 0.575, 0.565, 1.000)",Ju="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Uu||(Uu={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Gu||(Gu={}));var qu=Object(D.a)(),Xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,o=e.ariaLive,i=e.styles,a=e.label,s=e.theme,l=e.className,c=e.labelPosition,u=r,A=Object(w.j)(this.props,w.h,["size"]),d=n;void 0===d&&void 0!==t&&(d=t===Gu.large?Uu.large:Uu.medium);var g=qu(i,{theme:s,size:d,className:l,labelPosition:c});return y.createElement("div",Object(m.a)({},A,{className:g.root}),y.createElement("div",{className:g.circle}),a&&y.createElement("div",{className:g.label},a),u&&y.createElement("div",{role:"status","aria-live":o},y.createElement(de.a,null,y.createElement("div",{className:g.screenReaderText},u))))},t.defaultProps={size:Uu.medium,ariaLive:"polite",labelPosition:"bottom"},t}(y.Component),$u={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},eA=Object(C.c)((function(){return Object(I.bb)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),tA=Object(M.a)(Xu,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=Object(I.R)($u,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:eA(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[I.l]=Object(m.a)({borderTopColor:"Highlight"},Object(I.S)()),t)},r===Uu.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===Uu.small&&["ms-Spinner--small",{width:16,height:16}],r===Uu.medium&&["ms-Spinner--medium",{width:20,height:20}],r===Uu.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:I.ab}}),void 0,{scope:"Spinner"}),nA=Object(D.a)(),rA=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&o&&o(t);n.setState({isCollapsed:i,isLoadingVisible:a}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===Object(Q.b)(ae.a.right,n.props.theme);(!n.state.isCollapsed&&e.which===Object(Q.b)(ae.a.left,n.props.theme)||i)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onToggleSelectGroupClick=function(e){var t=n.props,r=t.onToggleSelectGroup,o=t.group;r&&r(o),e.preventDefault(),e.stopPropagation()},n._onHeaderClick=function(){var e=n.props,t=e.group,r=e.onGroupHeaderClick,o=e.onToggleSelectGroup;r?r(t):o&&o(t)},n._onRenderTitle=function(e){var t=e.group,r=e.ariaColSpan;return t?y.createElement("div",{className:n._classNames.title,id:n._id,role:"gridcell","aria-colspan":r},y.createElement("span",null,t.name),y.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=Object(Ee.a)("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,r=e.isGroupLoading,o=!n&&r&&r(e.group);return Object(m.a)(Object(m.a)({},t),{isCollapsed:n||!1,isLoadingVisible:o||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,r=void 0===n?0:n,o=e.viewport,i=e.selectionMode,a=e.loadingText,s=e.isSelected,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,A=e.indentWidth,d=e.onRenderTitle,g=void 0===d?this._onRenderTitle:d,p=e.onRenderGroupHeaderCheckbox,h=e.isCollapsedGroupSelectVisible,f=void 0===h||h,I=e.expandButtonProps,C=e.expandButtonIcon,E=e.selectAllButtonProps,b=e.theme,v=e.styles,B=e.className,M=e.compact,D=e.ariaPosInSet,x=e.ariaSetSize,w=e.useFastIcons?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,S=p?Object(qa.a)(p,w):w,k=this.state,T=k.isCollapsed,j=k.isLoadingVisible,L=i===Zc.multiple,R=L&&(f||!(t&&t.isCollapsed)),O=u||l,_=Object(Q.a)(b);return this._classNames=nA(v,{theme:b,className:B,selected:O,isCollapsed:T,compact:M}),t?y.createElement("div",{className:this._classNames.root,style:o?{minWidth:o.width}:{},onClick:this._onHeaderClick,role:"row","aria-setsize":x,"aria-posinset":D,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":L?O:void 0,"aria-level":r+1},y.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},R?y.createElement("div",{role:"gridcell"},y.createElement("button",Object(m.a)({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox","aria-checked":O,"data-selection-toggle":!0,onClick:this._onToggleSelectGroupClick},E),S({checked:O,theme:b},S))):i!==Zc.none&&y.createElement(cu,{indentWidth:48,count:1}),y.createElement(cu,{indentWidth:A,count:r}),y.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},y.createElement(N.a,{iconName:"Tag"})),y.createElement("div",{role:"gridcell"},y.createElement("button",Object(m.a)({"data-is-focusable":!1,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},I),y.createElement(N.a,{className:this._classNames.expandIsCollapsed,iconName:C||(_?"ChevronLeftMed":"ChevronRightMed")}))),g(this.props,this._onRenderTitle),j&&y.createElement(tA,{label:a}))):null},t.prototype._defaultCheckboxRender=function(e){return y.createElement(Ga,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return y.createElement(oA,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(y.Component),oA=y.memo((function(e){return y.createElement(Ga,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),iA=Object(M.a)(rA,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,u=e.compact,A=Au.cellLeftPadding,d=u?40:48,g=a.semanticColors,p=a.palette,h=a.fonts,f=Object(I.R)(Wu,a),m=[Object(I.Q)(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[f.root,Object(I.Q)(a),a.fonts.medium,{borderBottom:"1px solid "+g.listBackground,cursor:"default",userSelect:"none",selectors:(t={":hover":{background:g.listItemBackgroundHovered,color:g.actionLinkHovered}},t["&:hover ."+f.check]={opacity:1},t["."+Kn.a+" &:focus ."+f.check]={opacity:1},t[":global(."+f.group+"."+f.isDropping+")"]={selectors:(n={},n["& > ."+f.root+" ."+f.dropIcon]={transition:"transform "+I.c.durationValue4+" "+Ku+" opacity "+I.c.durationValue1+" "+Zu,transitionDelay:I.c.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},n["."+f.check]={opacity:0},n)},t)},l&&[f.isSelected,{background:g.listItemBackgroundChecked,selectors:(r={":hover":{background:g.listItemBackgroundCheckedHovered}},r[""+f.check]={opacity:1},r)}],u&&[f.compact,{border:"none"}],s],groupHeaderContainer:[{display:"flex",alignItems:"center",height:d}],headerCount:[{padding:"0px 4px"}],check:[f.check,m,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:48,height:d,selectors:(o={},o["."+Kn.a+" &:focus"]={opacity:1},o)}],expand:[f.expand,m,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:h.small.fontSize,width:36,height:d,color:l?p.neutralPrimary:p.neutralSecondary,selectors:{":hover":{backgroundColor:l?p.neutralQuaternary:p.neutralLight},":active":{backgroundColor:l?p.neutralTertiaryAlt:p.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[f.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Object(Q.a)(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[f.title,{paddingLeft:A,fontSize:u?h.medium.fontSize:h.mediumPlus.fontSize,fontWeight:c?I.k.regular:I.k.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[f.dropIcon,{position:"absolute",left:-26,fontSize:I.o.large,color:p.neutralSecondary,transition:"transform "+I.c.durationValue2+" "+Ju+", opacity "+I.c.durationValue4+" "+Zu,opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(i={},i[":global(."+f.iconTag+")"]={position:"absolute"},i)}]}}),void 0,{scope:"GroupHeader"}),aA={root:"ms-GroupShowAll",link:"ms-Link"},sA=Object(D.a)(),lA=Object(M.a)((function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,o=void 0===r?"Show All":r,i=e.styles,a=e.theme,s=e.onToggleSummarize,l=sA(i,{theme:a}),c=Object(y.useCallback)((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?y.createElement("div",{className:l.root},y.createElement(cu,{count:n}),y.createElement(Pe,{onClick:c},o)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=Object(I.R)(aA,n);return{root:[o.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t["."+o.link]={fontSize:r.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),cA={root:"ms-groupFooter"},uA=Object(D.a)(),AA=Object(M.a)((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,o=e.indentWidth,i=e.styles,a=e.theme,s=uA(i,{theme:a});return t&&r?y.createElement("div",{className:s.root},y.createElement(cu,{indentWidth:o,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=Object(I.R)(cA,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),dA=function(e){function t(n){var r=e.call(this,n)||this;r._root=y.createRef(),r._list=y.createRef(),r._subGroupRefs={},r._droppingClassName="",r._onRenderGroupHeader=function(e){return y.createElement(iA,Object(m.a)({},e))},r._onRenderGroupShowAll=function(e){return y.createElement(lA,Object(m.a)({},e))},r._onRenderGroupFooter=function(e){return y.createElement(AA,Object(m.a)({},e))},r._renderSubGroup=function(e,n){var o=r.props,i=o.dragDropEvents,a=o.dragDropHelper,s=o.eventsToRegister,l=o.getGroupItemLimit,c=o.groupNestingDepth,u=o.groupProps,A=o.items,d=o.headerProps,g=o.showAllProps,p=o.footerProps,h=o.listProps,f=o.onRenderCell,m=o.selection,I=o.selectionMode,C=o.viewport,E=o.onRenderGroupHeader,b=o.onRenderGroupShowAll,v=o.onRenderGroupFooter,B=o.onShouldVirtualize,M=o.group,D=o.compact,x=e.level?e.level+1:c;return!e||e.count>0||u&&u.showEmptyGroups?y.createElement(t,{ref:function(e){return r._subGroupRefs["subGroup_"+n]=e},key:r._getGroupKey(e,n),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:p,getGroupItemLimit:l,group:e,groupIndex:n,groupNestingDepth:x,groupProps:u,headerProps:d,items:A,listProps:h,onRenderCell:f,selection:m,selectionMode:I,showAllProps:g,viewport:C,onRenderGroupHeader:E,onRenderGroupShowAll:b,onRenderGroupFooter:v,onShouldVirtualize:B,groups:M?M.children:[],compact:D}):null},r._getGroupDragDropOptions=function(){var e=r.props,t=e.group,n=e.groupIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:r._updateDroppingState,canDrag:o.canDrag,canDrop:o.canDrop,onDrop:o.onDrop,onDragStart:o.onDragStart,onDragEnter:o.onDragEnter,onDragLeave:o.onDragLeave,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},r._updateDroppingState=function(e,t){var n=r.state.isDropping,o=r.props,i=o.dragDropEvents,a=o.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(r._droppingClassName=i.onDragEnter(a,t)),r.setState({isDropping:e}))};var o=n.selection,i=n.group;return Object(se.a)(r),r._id=Object(Ee.a)("GroupedListSection"),r.state={isDropping:!1,isSelected:!(!o||!i)&&o.isRangeSelected(i.startIndex,i.count)},r._events=new Ue.a(r),r}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,$c,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,r=e.groupIndex,o=e.headerProps,i=e.showAllProps,a=e.footerProps,s=e.viewport,l=e.selectionMode,c=e.onRenderGroupHeader,u=void 0===c?this._onRenderGroupHeader:c,A=e.onRenderGroupShowAll,d=void 0===A?this._onRenderGroupShowAll:A,g=e.onRenderGroupFooter,p=void 0===g?this._onRenderGroupFooter:g,h=e.onShouldVirtualize,f=e.groupedListClassNames,I=e.groups,C=e.compact,E=e.listProps,b=void 0===E?{}:E,v=this.state.isSelected,B=n&&t?t(n):1/0,M=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>B||n.hasMoreData),D=n&&n.children&&n.children.length>0,x=b.version,w={group:n,groupIndex:r,groupLevel:n?n.level:0,isSelected:v,selected:v,viewport:s,selectionMode:l,groups:I,compact:C},Q={groupedListId:this._id,ariaSetSize:I?I.length:void 0,ariaPosInSet:void 0!==r?r+1:void 0},S=Object(m.a)(Object(m.a)(Object(m.a)({},o),w),Q),N=Object(m.a)(Object(m.a)({},i),w),k=Object(m.a)(Object(m.a)({},a),w),T=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return y.createElement("div",Object(m.a)({ref:this._root},T&&{draggable:!0},{className:Object(ve.a)(f&&f.group,this._getDroppingClassName()),role:"presentation"}),u(S,this._onRenderGroupHeader),n&&n.isCollapsed?null:D?y.createElement(Nc,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:h,version:x,id:this._id}):this._onRenderGroup(B),n&&n.isCollapsed?null:M&&d(N,this._onRenderGroupShowAll),p(k,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r;(r=this._list.current.pageRefs["subGroup_"+String(n)])&&r.forceListUpdate()}}else(r=this._subGroupRefs["subGroup_"+String(0)])&&r.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},t.prototype._onRenderGroupCell=function(e,t){return function(n,r){return e(t,n,r)}},t.prototype._onRenderGroup=function(e){var t,n=this.props,r=n.group,o=n.items,i=n.onRenderCell,a=n.listProps,s=n.groupNestingDepth,l=n.onShouldVirtualize,c=n.groupProps,u=r&&!r.isShowingAll?r.count:o.length,A=r?r.startIndex:0;return y.createElement(Nc,Object(m.a)({role:c&&c.role?c.role:"rowgroup","aria-label":null===(t=r)||void 0===t?void 0:t.name,items:o,onRenderCell:this._onRenderGroupCell(i,s),ref:this._list,renderCount:Math.min(u,e),startIndex:A,onShouldVirtualize:l,id:this._id},a))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return e=!(!n||!e),Object(ve.a)(e&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},t}(y.Component),gA=Object(D.a)(),pA=du.rowHeight,hA=du.compactRowHeight,fA=function(e){function t(t){var n=e.call(this,t)||this;n._list=y.createRef(),n._renderGroup=function(e,t){var r=n.props,o=r.dragDropEvents,i=r.dragDropHelper,a=r.eventsToRegister,s=r.groupProps,l=r.items,c=r.listProps,u=r.onRenderCell,A=r.selectionMode,d=r.selection,g=r.viewport,p=r.onShouldVirtualize,h=r.groups,f=r.compact,I={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},C=Object(m.a)(Object(m.a)({},s.headerProps),I),E=Object(m.a)(Object(m.a)({},s.showAllProps),I),b=Object(m.a)(Object(m.a)({},s.footerProps),I),v=n._getGroupNestingDepth();if(!s.showEmptyGroups&&e&&0===e.count)return null;var B=Object(m.a)(Object(m.a)({},c||{}),{version:n.state.version});return y.createElement(dA,{key:n._getGroupKey(e,t),dragDropEvents:o,dragDropHelper:i,eventsToRegister:a,footerProps:b,getGroupItemLimit:s&&s.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:v,groupProps:s,headerProps:C,listProps:B,items:l,onRenderCell:u,onRenderGroupHeader:s.onRenderHeader,onRenderGroupShowAll:s.onRenderShowAll,onRenderGroupFooter:s.onRenderFooter,selectionMode:A,selection:d,showAllProps:E,viewport:g,onShouldVirtualize:p,groupedListClassNames:n._classNames,groups:h,compact:f})},n._getDefaultGroupItemLimit=function(e){return e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?hA:pA;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,r=n.props.getGroupHeight,o=void 0===r?n._getGroupHeight:r,i=t&&t[e];return i?o(i,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,r=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(r&&r(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,r=t.selection,o=t.selectionMode;e&&r&&o===Zc.multiple&&r.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===Object(Q.b)(ae.a.right)},n._onToggleSummarize=function(e){var t=n.props.groupProps,r=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;r?r(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,r=t&&t[e];return{key:r&&r.key}},Object(se.a)(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var r=t.listProps,o=(void 0===r?{}:r).version,i=void 0===o?{}:o;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:i},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=Object(m.a)(Object(m.a)({},t),{selectionMode:r,compact:o,groups:n,listProps:a}),c=!1;return s===(t.listProps&&t.listProps.version)&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(c=!0),n!==t.groups&&(l=Object(m.a)(Object(m.a)({},l),{groups:n})),r===t.selectionMode&&o===t.compact||(c=!0),c&&(l=Object(m.a)(Object(m.a)({},l),{version:{}})),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,r=e.onShouldVirtualize,o=e.theme,i=e.role,a=void 0===i?"treegrid":i,s=e.styles,l=e.compact,c=e.focusZoneProps,u=void 0===c?{}:c,A=e.rootListProps,d=void 0===A?{}:A,g=this.state,p=g.groups,h=g.version;this._classNames=gA(s,{theme:o,className:t,compact:l});var f=u.shouldEnterInnerZone,I=void 0===f?this._isInnerZoneKeystroke:f;return y.createElement(Te,Object(m.a)({direction:Ae.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},u,{shouldEnterInnerZone:I,className:Object(ve.a)(this._classNames.root,u.className)}),p?y.createElement(Nc,Object(m.a)({ref:this._list,role:a,items:p,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:r,version:h},d)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:Zc.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(y.Component),mA=Object(M.a)(fA,(function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=Object(I.R)(Yu,r);return{root:[s.root,r.fonts.small,{position:"relative",selectors:(t={},t["."+s.listCell]={minHeight:38},t)},i&&[s.compact,{selectors:(n={},n["."+s.listCell]={minHeight:32},n)}],o],group:[s.group,{transition:"background-color "+I.c.durationValue2+" "+Vu}],groupIsDropping:{backgroundColor:a.neutralLight}}}),void 0,{scope:"GroupedList"}),yA=n(147);function IA(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=y.createRef(),n._registerResizeObserver=function(){var e=Object(be.a)(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,r=n._root.current,o=Object(De.f)(r),i=Object(yA.a)(o),a=Object(yA.a)(r);((a&&a.width)!==t.width||(i&&i.height)!==t.height)&&n._resizeAttempts<3&&a&&i?(n._resizeAttempts++,n.setState({viewport:{width:a.width,height:i.height}},(function(){n._updateViewport(e)}))):(n._resizeAttempts=0,e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate())},n._async=new le.a(n),n._events=new Ue.a(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return Object(m.c)(n,t),n.prototype.componentDidMount=function(){var e=this.props,t=e.skipViewportMeasures,n=e.disableResizeObserver,r=Object(be.a)(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),t||(!n&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(r,"resize",this._onAsyncResize),this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.skipViewportMeasures,o=n.disableResizeObserver,i=Object(be.a)(this._root.current);r!==t&&(r?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!o&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return y.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},y.createElement(e,Object(m.a)({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=Object(be.a)(this._root.current);return e&&e.ResizeObserver},n}(wr)}var CA=Object(D.a)(),EA=function(e){var t=e.selection,n=e.ariaLabelForListHeader,r=e.ariaLabelForSelectAllCheckbox,o=e.ariaLabelForSelectionColumn,i=e.className,a=e.checkboxVisibility,s=e.compact,l=e.constrainMode,c=e.dragDropEvents,u=e.groups,A=e.groupProps,d=e.indentWidth,g=e.items,p=e.isPlaceholderData,h=e.isHeaderVisible,f=e.layoutMode,I=e.onItemInvoked,E=e.onItemContextMenu,b=e.onColumnHeaderClick,v=e.onColumnHeaderContextMenu,B=e.selectionMode,M=void 0===B?t.mode:B,D=e.selectionPreservedOnEmptyClick,x=e.selectionZoneProps,w=e.ariaLabel,S=e.ariaLabelForGrid,N=e.rowElementEventMap,k=e.shouldApplyApplicationRole,T=void 0!==k&&k,j=e.getKey,L=e.listProps,R=e.usePageCache,O=e.onShouldVirtualize,_=e.viewport,F=e.minimumPixelsForDrag,z=e.getGroupHeight,P=e.styles,U=e.theme,G=e.cellStyleProps,H=void 0===G?Au:G,Y=e.onRenderCheckbox,V=e.useFastIcons,W=e.dragDropHelper,K=e.adjustedColumns,Z=e.isCollapsed,J=e.isSizing,q=e.isSomeGroupExpanded,X=e.version,$=e.rootRef,ee=e.listRef,te=e.focusZoneRef,ne=e.columnReorderOptions,re=e.groupedListRef,oe=e.headerRef,ie=e.onGroupExpandStateChanged,se=e.onColumnIsSizingChanged,le=e.onRowDidMount,ce=e.onRowWillUnmount,ue=e.disableSelectionZone,de=e.onColumnResized,ge=e.onColumnAutoResized,pe=e.onToggleCollapse,he=e.onActiveRowChanged,fe=e.onBlur,me=e.rowElementEventMap,ye=e.onRenderMissingItem,Ie=e.onRenderItemColumn,Ce=e.getCellValueKey,be=e.getRowAriaLabel,ve=e.getRowAriaDescribedBy,Be=e.checkButtonAriaLabel,Me=e.checkboxCellClassName,De=e.useReducedRowRenderer,xe=e.enableUpdateAnimations,we=e.enterModalSelectionOnTouch,Qe=e.onRenderDefaultRow,Se=e.selectionZoneRef,Ne=Object(Ee.a)("row"),ke=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(u),Le=y.useMemo((function(){return Object(m.a)({renderedWindowsAhead:J?0:2,renderedWindowsBehind:J?0:2,getKey:j,version:X},L)}),[J,j,X,L]),Re=bu.none;if(M===Zc.single&&(Re=bu.hidden),M===Zc.multiple){var Oe=A&&A.headerProps&&A.headerProps.isCollapsedGroupSelectVisible;void 0===Oe&&(Oe=!0),Re=Oe||!u||q?bu.visible:bu.hidden}a===su.hidden&&(Re=bu.none);var _e=y.useCallback((function(e){return y.createElement(Ru,Object(m.a)({},e))}),[]),Fe=y.useCallback((function(){return null}),[]),ze=e.onRenderDetailsHeader,Pe=y.useMemo((function(){return ze?Object(qa.a)(ze,_e):_e}),[ze,_e]),Ue=e.onRenderDetailsFooter,Ge=y.useMemo((function(){return Ue?Object(qa.a)(Ue,Fe):Fe}),[Ue,Fe]),He=y.useMemo((function(){return{columns:K,groupNestingDepth:ke,selection:t,selectionMode:M,viewport:_,checkboxVisibility:a,indentWidth:d,cellStyleProps:H}}),[K,ke,t,M,_,a,d,H]),Ye=ne&&ne.onDragEnd,Ve=y.useCallback((function(e,t){var n=e.dropLocation,r=iu.outside;if(Ye){if(n&&n!==iu.header)r=n;else if($.current){var o=$.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=iu.surface)}Ye(r)}}),[Ye,$]),We=y.useMemo((function(){if(ne)return Object(m.a)(Object(m.a)({},ne),{onColumnDragEnd:Ve})}),[ne,Ve]),Ke=(h?1:0)+function(e){var t=0;if(e)for(var n=Object(m.e)(e),r=void 0;n&&n.length>0;)++t,(r=n.pop())&&r.children&&n.push.apply(n,r.children);return t}(u)+(g?g.length:0),Ze=(Re!==bu.none?1:0)+(K?K.length:0)+(u?1:0),Je=y.useMemo((function(){return CA(P,{theme:U,compact:s,isFixed:f===au.fixedColumns,isHorizontalConstrained:l===ou.horizontalConstrained,className:i})}),[P,U,s,f,l,i]),qe=A&&A.onRenderFooter,Xe=y.useMemo((function(){return qe?function(e,n){return qe(Object(m.a)(Object(m.a)({},e),{columns:K,groupNestingDepth:ke,indentWidth:d,selection:t,selectionMode:M,viewport:_,checkboxVisibility:a,cellStyleProps:H}),n)}:void 0}),[qe,K,ke,d,t,M,_,a,H]),$e=A&&A.onRenderHeader,et=y.useMemo((function(){return $e?function(e,n){var r=e.ariaPosInSet,o=e.ariaSetSize;return $e(Object(m.a)(Object(m.a)({},e),{columns:K,groupNestingDepth:ke,indentWidth:d,selection:t,selectionMode:M,viewport:_,checkboxVisibility:a,cellStyleProps:H,ariaColSpan:K.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:o?o+(h?1:0):void 0,ariaRowIndex:r?r+(h?1:0):void 0}),n)}:function(e,t){var n=e.ariaPosInSet,r=e.ariaSetSize;return t(Object(m.a)(Object(m.a)({},e),{ariaColSpan:K.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:r?r+(h?1:0):void 0,ariaRowIndex:n?n+(h?1:0):void 0}))}}),[$e,K,ke,d,h,t,M,_,a,H]),tt=y.useMemo((function(){return Object(m.a)(Object(m.a)({},A),{role:"rowgroup",onRenderFooter:Xe,onRenderHeader:et})}),[A,Xe,et]),nt=Yt((function(){return Object(C.c)((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),rt=A&&A.collapseAllVisibility,ot=y.useMemo((function(){return nt(K)}),[K,nt]),it=y.useCallback((function(n,r,o){var i=e.onRenderRow?Object(qa.a)(e.onRenderRow,Qe):Qe,l={item:r,itemIndex:o,flatIndexOffset:h?2:1,compact:s,columns:K,groupNestingDepth:n,id:Ne+"-"+o,selectionMode:M,selection:t,onDidMount:le,onWillUnmount:ce,onRenderItemColumn:Ie,getCellValueKey:Ce,eventsToRegister:me,dragDropEvents:c,dragDropHelper:W,viewport:_,checkboxVisibility:a,collapseAllVisibility:rt,getRowAriaLabel:be,getRowAriaDescribedBy:ve,checkButtonAriaLabel:Be,checkboxCellClassName:Me,useReducedRowRenderer:De,indentWidth:d,cellStyleProps:H,onRenderDetailsCheckbox:Y,enableUpdateAnimations:xe,rowWidth:ot,useFastIcons:V};return r?i(l):ye?ye(o,l):null}),[s,K,M,t,Ne,le,ce,Ie,Ce,me,c,W,_,a,rt,be,ve,h,Be,Me,De,d,H,Y,xe,V,Qe,ye,e.onRenderRow,ot]),at=y.useCallback((function(e){return function(t,n){return it(e,t,n)}}),[it]),st=y.useCallback((function(e){return e.which===Object(Q.b)(ae.a.right,U)}),[U]),lt={componentRef:te,className:Je.focusZone,direction:Ae.vertical,shouldEnterInnerZone:st,onActiveElementChanged:he,shouldRaiseClicks:!1,onBlur:fe},ct=u?y.createElement(mA,{focusZoneProps:lt,componentRef:re,groups:u,groupProps:tt,items:g,onRenderCell:it,role:"presentation",selection:t,selectionMode:a!==su.hidden?M:Zc.none,dragDropEvents:c,dragDropHelper:W,eventsToRegister:N,listProps:Le,onGroupExpandStateChanged:ie,usePageCache:R,onShouldVirtualize:O,getGroupHeight:z,compact:s}):y.createElement(Te,Object(m.a)({},lt),y.createElement(Nc,Object(m.a)({ref:ee,role:"presentation",items:g,onRenderCell:at(0),usePageCache:R,onShouldVirtualize:O},Le))),ut=y.useCallback((function(e){e.which===ae.a.down&&te.current&&te.current.focus()&&(0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,te]),At=y.useCallback((function(e){e.which!==ae.a.up||e.altKey||oe.current&&oe.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[oe]);return y.createElement("div",Object(m.a)({ref:$,className:Je.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":w},T?{role:"application"}:{}),y.createElement(je.a,null),y.createElement("div",{role:"grid","aria-label":S,"aria-rowcount":p?-1:Ke,"aria-colcount":Ze,"aria-readonly":"true","aria-busy":p},y.createElement("div",{onKeyDown:ut,role:"presentation",className:Je.headerWrapper},h&&Pe({componentRef:oe,selectionMode:M,layoutMode:f,selection:t,columns:K,onColumnClick:b,onColumnContextMenu:v,onColumnResized:de,onColumnIsSizingChanged:se,onColumnAutoResized:ge,groupNestingDepth:ke,isAllCollapsed:Z,onToggleCollapseAll:pe,ariaLabel:n,ariaLabelForSelectAllCheckbox:r,ariaLabelForSelectionColumn:o,selectAllVisibility:Re,collapseAllVisibility:A&&A.collapseAllVisibility,viewport:_,columnReorderProps:We,minimumPixelsForDrag:F,cellStyleProps:H,checkboxVisibility:a,indentWidth:d,onRenderDetailsCheckbox:Y,rowWidth:nt(K),useFastIcons:V},Pe)),y.createElement("div",{onKeyDown:At,role:"presentation",className:Je.contentWrapper},ue?ct:y.createElement(lu,Object(m.a)({ref:Se,selection:t,selectionPreservedOnEmptyClick:D,selectionMode:M,onItemInvoked:I,onItemContextMenu:E,enterModalOnTouch:we},x||{}),ct)),Ge(Object(m.a)({},He))))},bA=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._header=y.createRef(),n._groupedList=y.createRef(),n._list=y.createRef(),n._focusZone=y.createRef(),n._selectionZone=y.createRef(),n._onRenderRow=function(e,t){return y.createElement(Hu,Object(m.a)({},e))},n._getDerivedStateFromProps=function(e,t){var r=n.props,o=r.checkboxVisibility,i=r.items,a=r.setKey,s=r.selectionMode,l=void 0===s?n._selection.mode:s,c=r.columns,u=r.viewport,A=r.compact,d=r.dragDropEvents,g=(n.props.groupProps||{}).isAllGroupsCollapsed,p=void 0===g?void 0:g,h=e.viewport&&e.viewport.width||0,f=u&&u.width||0,y=e.setKey!==a||void 0===e.setKey,I=!1;e.layoutMode!==n.props.layoutMode&&(I=!0);var C=t;return y&&(n._initialFocusedIndex=e.initialFocusedIndex,C=Object(m.a)(Object(m.a)({},C),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===i||n._selection.setItems(e.items,y),e.checkboxVisibility===o&&e.columns===c&&h===f&&e.compact===A||(I=!0),C=Object(m.a)(Object(m.a)({},C),n._adjustColumns(e,C,!0)),e.selectionMode!==l&&(I=!0),void 0===p&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(C=Object(m.a)(Object(m.a)({},C),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==d&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new Bu({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,I=!0),I&&(C=Object(m.a)(Object(m.a)({},C),{version:{}})),C},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,r=t.item,o=t.itemIndex,i=n._getItemKey(r,o);n._activeRows[i]=e,n._setFocusToRowIfPending(e);var a=n.props.onRowDidMount;a&&a(r,o)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,r=e.props,o=r.item,i=r.itemIndex,a=n._getItemKey(o,i);delete n._activeRows[a],t&&t(o,i)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,r){var o=Math.max(e.minWidth||100,t);n.props.onColumnResize&&n.props.onColumnResize(e,o,r),n._rememberCalculatedWidth(e,o),n.setState(Object(m.a)(Object(m.a)({},n._adjustColumns(n.props,n.state,!0,r)),{version:{}}))},n._onColumnAutoResized=function(e,t){var r=0,o=0,i=Object.keys(n._activeRows).length;for(var a in n._activeRows){if(n._activeRows.hasOwnProperty(a))n._activeRows[a].measureCell(t,(function(a){r=Math.max(r,a),++o===i&&n._onColumnResized(e,r,t)}))}},n._onActiveRowChanged=function(e,t){var r=n.props,o=r.items,i=r.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(o[a],a,t),n.setState({focusedItemIndex:a}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},Object(se.a)(n),n._async=new le.a(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},n._selection=t.selection||new eu({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new Bu({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var i=this._getItemKey(o,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var n=this._getItemKey(i,this._initialFocusedIndex);(r=this._activeRows[n])&&this._setFocusToRowIfPending(r)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!Object(Be.a)(this._root.current,document.activeElement,!1)){var r,o=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[o];n=this._getItemKey(i,this.state.focusedItemIndex);(r=this._activeRows[n])?this._setFocusToRow(r):this._initialFocusedIndex=o}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return y.createElement(EA,Object(m.a)({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,n,r){var o=this._getAdjustedColumns(e,t,n,r),i=this.props.viewport,a=i&&i.width?i.width:0;return Object(m.a)(Object(m.a)({},t),{adjustedColumns:o,lastWidth:a})},t.prototype._getAdjustedColumns=function(e,t,n,r){var o,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,A=e.columns,d=this.props?this.props.columns:[],g=t?t.lastWidth:-1,p=t?t.lastSelectionMode:void 0;return n||g!==u||p!==l||d&&A!==d?(A=A||vA(a,!0),s===au.fixedColumns?(o=this._getFixedColumns(A)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(o=void 0!==r?this._getJustifiedColumnsAfterResize(A,u,e,r):this._getJustifiedColumns(A,u,e,0)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),o):A||[]},t.prototype._getFixedColumns=function(e){var t=this;return e.map((function(e){var n=Object(m.a)(Object(m.a)({},e),t._columnOverrides[e.key]);return n.calculatedWidth||(n.calculatedWidth=n.maxWidth||n.minWidth||100),n}))},t.prototype._getJustifiedColumnsAfterResize=function(e,t,n,r){var o=this,i=e.slice(0,r);i.forEach((function(e){return e.calculatedWidth=o._getColumnOverride(e.key).currentWidth}));var a=i.reduce((function(e,t,r){return e+BA(t,0===r,n)}),0),s=e.slice(r),l=t-a;return Object(m.e)(i,this._getJustifiedColumns(s,l,n,r))},t.prototype._getJustifiedColumns=function(e,t,n,r){for(var o=this,i=n.selectionMode,a=void 0===i?this._selection.mode:i,s=n.checkboxVisibility,l=a!==Zc.none&&s!==su.hidden?48:0,c=36*this._getGroupNestingDepth(),u=0,A=t-(l+c),d=e.map((function(e,t){var i=Object(m.a)(Object(m.a)(Object(m.a)({},e),{calculatedWidth:e.minWidth||100}),o._columnOverrides[e.key]);return u+=BA(i,t+r===0,n),i})),g=d.length-1;g>0&&u>A;){var p=(I=d[g]).minWidth||100,h=u-A;if(I.calculatedWidth-p>=h||!I.isCollapsible&&!I.isCollapsable){var f=I.calculatedWidth;I.calculatedWidth=Math.max(I.calculatedWidth-h,p),u-=f-I.calculatedWidth}else u-=BA(I,!1,n),d.splice(g,1);g--}for(var y=0;y<d.length&&u<A;y++){var I=d[y],C=y===d.length-1,E=this._columnOverrides[I.key];if(!E||!E.calculatedWidth||C){var b=A-u,v=void 0;if(C)v=b;else{var B=I.maxWidth;p=I.minWidth||B||100;v=B?Math.min(b,B-p):b}I.calculatedWidth=I.calculatedWidth+v,u+=v}}return d},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},t.defaultProps={layoutMode:au.justified,selectionMode:Zc.multiple,constrainMode:ou.horizontalConstrained,checkboxVisibility:su.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t=Object(m.b)([IA],t)}(y.Component);function vA(e,t,n,r,o,i,a){var s=[];if(e&&e.length){var l=e[0];for(var c in l)l.hasOwnProperty(c)&&s.push({key:c,name:c,fieldName:c,minWidth:100,maxWidth:300,isCollapsable:!!s.length,isCollapsible:!!s.length,isMultiline:void 0!==a&&a,isSorted:r===c,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:ru.clickable,isResizable:t,onColumnClick:n,isGrouped:i===c})}return s}function BA(e,t,n){var r=n.cellStyleProps,o=void 0===r?Au:r;return e.calculatedWidth+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var MA,DA={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},xA=Object(M.a)(bA,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=r.semanticColors,c=Object(I.R)(DA,r);return{root:[c.root,r.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& ."+c.listCell]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n["."+c.listCell]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(MA||(MA={}));var wA=I.c.durationValue2,QA={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},SA=Object(D.a)(),NA=function(e){function t(t){var n=e.call(this,t)||this;Object(se.a)(n);var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&Object(De.d)()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&Object(De.e)()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,o=e.styles,i=Object(w.j)(this.props,w.h),a=SA(o,{theme:r,className:n,isDark:t});return y.createElement("div",Object(m.a)({},i,{className:a.root}))},t}(y.Component),kA={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},TA=Object(M.a)(NA,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=Object(I.R)(kA,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[I.l]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),jA=Object(C.c)((function(e,t){return{root:Object(I.eb)(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),LA={start:"touchstart",move:"touchmove",stop:"touchend"},RA={start:"mousedown",move:"mousemove",stop:"mouseup"},OA=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=RA,n._events=[],n._onMouseDown=function(e){var t=y.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=RA,n._onDragStart(e)},n._onMouseUp=function(e){var t=y.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=RA,n._onDragStop(e)},n._onTouchStart=function(e){var t=y.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=LA,n._onDragStart(e)},n._onTouchEnd=function(e){var t=y.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=LA,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t}),n._events=[Object(it.a)(document.body,n._currentEventType.move,n._onDrag,!0),Object(it.a)(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return Object(m.c)(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=y.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,o=r.position,i=r.isDragging,a=o.x,s=o.y;return n&&!i&&(a=n.x,s=n.y),y.cloneElement(e,{style:Object(m.a)(Object(m.a)({},t.style),{transform:"translate("+a+"px, "+s+"px)"}),className:jA(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(y.Component);function _A(e){var t=y.useState(e),n=t[0],r=t[1];return[n,{setTrue:Yt((function(){return function(){r(!0)}})),setFalse:Yt((function(){return function(){r(!1)}})),toggle:Yt((function(){return function(){r((function(e){return!e}))}}))}]}var FA={x:0,y:0},zA={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:""},PA=Object(D.a)(),UA=y.forwardRef((function(e,t){var n,r,o,i=Object(x.a)(zA,e),a=i.allowTouchBodyScroll,s=i.className,l=i.children,c=i.containerClassName,u=i.scrollableContentClassName,A=i.elementToFocusOnDismiss,d=i.firstFocusableSelector,g=i.forceFocusInsideTrap,p=i.ignoreExternalFocusing,h=i.isBlocking,f=i.isClickableOutsideFocusTrap,I=i.isDarkOverlay,C=i.onDismiss,E=i.layerProps,b=i.overlay,v=i.isOpen,B=i.titleAriaId,M=i.styles,D=i.subtitleAriaId,w=i.theme,Q=i.topOffsetFixed,S=i.responsiveMode,k=i.onLayerDidMount,T=i.isModeless,j=i.dragOptions,R=i.onDismissed,O=i.enableAriaHiddenSiblings,_=y.useRef(null),F=y.useRef(null),z=y.useRef(null),P=Object(L.a)(_,t),U=_r(P),G=oi("ModalFocusTrapZone"),H=Zt(),Y=Bs(),V=Y.setTimeout,W=Y.clearTimeout,K=y.useState(v),Z=K[0],J=K[1],q=y.useState(v),X=q[0],$=q[1],ee=y.useState(FA),te=ee[0],ne=ee[1],re=y.useState(),oe=re[0],ie=re[1],se=_A(!1),le=se[0],ce=se[1],ue=ce.toggle,Ae=ce.setFalse,de=Yt((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:a,scrollableContent:null,lastSetCoordinates:FA,events:new Ue.a({})}})),ge=(j||{}).keepInBounds,pe=void 0===E?"":E.className,he=PA(M,{theme:w,className:s,containerClassName:c,scrollableContentClassName:u,isOpen:v,isVisible:X,hasBeenOpened:de.hasBeenOpened,modalRectangleTop:oe,topOffsetFixed:Q,isModeless:T,layerClassName:pe,windowInnerHeight:null===(n=H)||void 0===n?void 0:n.innerHeight,isDefaultDragHandle:j&&!j.dragHandleSelector}),fe=Object(m.a)(Object(m.a)({eventBubblingEnabled:!1},E),{onLayerDidMount:E&&E.onLayerDidMount?E.onLayerDidMount:k,insertFirst:T,className:he.layer}),me=y.useCallback((function(e){e?de.allowTouchBodyScroll?Object(De.b)(e,de.events):Object(De.c)(e,de.events):de.events.off(de.scrollableContent),de.scrollableContent=e}),[de]),ye=function(){var e,t=null===(e=z.current)||void 0===e?void 0:e.getBoundingClientRect();t&&(Q&&ie(t.top),ge&&(de.minPosition={x:-t.left,y:-t.top},de.maxPosition={x:t.left,y:t.top}))},Ie=y.useCallback((function(e,t){var n=de.minPosition,r=de.maxPosition;return ge&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[ge,de]),Ce=function(){var e,t,n;de.lastSetCoordinates=FA,Ae(),de.isInKeyboardMoveMode=!1,J(!1),ne(FA),null===(t=(e=de).disposeOnKeyUp)||void 0===t||t.call(e),null===(n=R)||void 0===n||n()},Ee=y.useCallback((function(){Ae(),de.isInKeyboardMoveMode=!1}),[de,Ae]),be=y.useCallback((function(e,t){ne((function(e){return{x:Ie("x",e.x+t.delta.x),y:Ie("y",e.y+t.delta.y)}}))}),[Ie]),ve=y.useCallback((function(){F.current&&F.current.focus()}),[]);y.useEffect((function(){var e;W(de.onModalCloseTimer),v&&(requestAnimationFrame((function(){return V(ye,0)})),J(!0),j&&(e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===ae.a.space&&Object(Be.a)(de.scrollableContent,e.target)&&(ue(),e.preventDefault(),e.stopPropagation())},de.disposeOnKeyUp||(de.events.on(H,"keyup",e,!0),de.disposeOnKeyUp=function(){de.events.off(H,"keyup",e,!0),de.disposeOnKeyUp=void 0})),de.hasBeenOpened=!0,$(!0)),!v&&Z&&(de.onModalCloseTimer=V(Ce,1e3*parseFloat(wA)),$(!1))}),[Z,v]),r=function(){de.events.dispose()},(o=y.useRef(r)).current=r,y.useEffect((function(){return function(){var e,t;null===(t=(e=o).current)||void 0===t||t.call(e)}}),[]),function(e,t){y.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(i,F);var Me=y.createElement(Oa,{id:G,ref:z,componentRef:F,className:he.main,elementToFocusOnDismiss:A,isClickableOutsideFocusTrap:T||f||!h,ignoreExternalFocusing:p,forceFocusInsideTrap:T?!T:g,firstFocusableSelector:d,focusPreviouslyFocusedInnerElement:!0,onBlur:de.isInKeyboardMoveMode?function(){var e,t;de.lastSetCoordinates=FA,de.isInKeyboardMoveMode=!1,null===(t=(e=de).disposeOnKeyDown)||void 0===t||t.call(e)}:void 0,enableAriaHiddenSiblings:O},j&&de.isInKeyboardMoveMode&&y.createElement("div",{className:he.keyboardMoveIconContainer},j.keyboardMoveIconProps?y.createElement(N.a,Object(m.a)({},j.keyboardMoveIconProps)):y.createElement(N.a,{iconName:"move",className:he.keyboardMoveIcon})),y.createElement("div",{ref:me,className:he.scrollableContent,"data-is-scrollable":!0},j&&le&&y.createElement(j.menu,{items:[{key:"move",text:j.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===ae.a.space)return e.preventDefault(),void e.stopPropagation();if(le&&(e.altKey||e.keyCode===ae.a.escape)&&Ae(),!de.isInKeyboardMoveMode||e.keyCode!==ae.a.escape&&e.keyCode!==ae.a.enter||(de.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),de.isInKeyboardMoveMode){var t=!0,n=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case ae.a.escape:ne(de.lastSetCoordinates);case ae.a.enter:de.lastSetCoordinates=FA;break;case ae.a.up:ne((function(e){return{x:e.x,y:Ie("y",e.y-n)}}));break;case ae.a.down:ne((function(e){return{x:e.x,y:Ie("y",e.y+n)}}));break;case ae.a.left:ne((function(e){return{x:Ie("x",e.x-n),y:e.y}}));break;case ae.a.right:ne((function(e){return{x:Ie("x",e.x+n),y:e.y}}));break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}};de.lastSetCoordinates=te,Ae(),de.isInKeyboardMoveMode=!0,de.events.on(H,"keydown",e,!0),de.disposeOnKeyDown=function(){de.events.off(H,"keydown",e,!0),de.disposeOnKeyDown=void 0}}},{key:"close",text:j.closeMenuItemText,onClick:Ce}],onDismiss:Ae,alignTargetEdge:!0,coverTarget:!0,directionalHint:Je.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:de.scrollableContent}),l));return Z&&U>=(S||Br.small)&&y.createElement(Ln,Object(m.a)({ref:P},fe),y.createElement(en,{role:T||!h?"dialog":"alertdialog","aria-modal":!T,ariaLabelledBy:B,ariaDescribedBy:D,onDismiss:C,shouldRestoreFocus:!p},y.createElement("div",{className:he.root,role:T?void 0:"document"},!T&&y.createElement(TA,Object(m.a)({isDarkThemed:I,onClick:h?void 0:C,allowTouchBodyScroll:a},b)),j?y.createElement(OA,{handleSelector:j.dragHandleSelector||"#"+G,preventDragSelector:"button",onStart:Ee,onDragChange:be,onStop:ve,position:te},Me):Me)))||null}));UA.displayName="Modal";var GA=Object(M.a)(UA,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,u=e.topOffsetFixed,A=e.isModeless,d=e.layerClassName,g=e.isDefaultDragHandle,p=e.windowInnerHeight,h=c.palette,f=c.effects,m=c.fonts,y=Object(I.R)(QA,c);return{root:[y.root,m.medium,{backgroundColor:"transparent",position:A?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+wA},u&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1,pointerEvents:"auto"},n],main:[y.main,{boxShadow:f.elevation64,borderRadius:f.roundedCorner2,backgroundColor:h.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:A?I.F.Layer:void 0},u&&s&&{top:l},g&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:p},t)},o],layer:A&&[d,y.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:m.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});GA.displayName="Modal";var HA,YA=Object(D.a)(),VA=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=YA(n,{theme:r,className:t}),y.createElement("div",{className:this._classNames.actions},y.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return y.Children.map(this.props.children,(function(t){return t?y.createElement("span",{className:e._classNames.action},t):null}))},t}(y.Component),WA={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},KA=Object(M.a)(VA,(function(e){var t=e.className,n=e.theme,r=Object(I.R)(WA,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}}),void 0,{scope:"DialogFooter"}),ZA=Object(D.a)(),JA=y.createElement(KA,null).type,qA=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),Object(He.a)("DialogContent",t,{titleId:"titleProps.id"}),n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,o=t.closeButtonAriaLabel,i=t.onDismiss,a=t.subTextId,s=t.subText,l=t.titleProps,c=void 0===l?{}:l,u=t.titleId,A=t.title,d=t.type,g=t.styles,p=t.theme,h=t.draggableHeaderClassName,f=ZA(g,{theme:p,className:r,isLargeHeader:d===MA.largeHeader,isClose:d===MA.close,draggableHeaderClassName:h}),I=this._groupChildren();return s&&(e=y.createElement("p",{className:f.subText,id:a},s)),y.createElement("div",{className:f.content},y.createElement("div",{className:f.header},y.createElement("div",Object(m.a)({id:u,role:"heading","aria-level":1},c,{className:Object(ve.a)(f.title,c.className)}),A),y.createElement("div",{className:f.topButton},this.props.topButtonsProps.map((function(e,t){return y.createElement(co,Object(m.a)({key:e.uniqueId||t},e))})),(d===MA.close||n&&d!==MA.largeHeader)&&y.createElement(co,{className:f.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:i,title:o}))),y.createElement("div",{className:f.inner},y.createElement("div",{className:f.innerContent},e,I.contents),I.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return y.Children.map(this.props.children,(function(t){"object"==typeof t&&null!==t&&t.type===JA?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=Object(m.b)([Rr],t)}(y.Component),XA={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},$A=Object(M.a)(qA,(function(e){var t,n,r,o=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,c=e.isMultiline,u=e.draggableHeaderClassName,A=i.palette,d=i.fonts,g=i.effects,p=i.semanticColors,h=Object(I.R)(XA,i);return{content:[a&&[h.contentLgHeader,{borderTop:"4px solid "+A.themePrimary}],s&&h.close,{flexGrow:1,overflowY:"hidden"},o],subText:[h.subText,d.medium,{margin:"0 0 24px 0",color:p.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:I.k.regular}],header:[h.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&h.close,u&&[u,{cursor:"move"}]],button:[h.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:p.buttonText,fontSize:I.o.medium}}}],inner:[h.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+I.y+"px) and (max-width: "+I.t+"px)"]={padding:"0 16px 16px"},t)}],innerContent:[h.content,{position:"relative",width:"100%"}],title:[h.title,d.xLarge,{color:p.bodyText,margin:"0",minHeight:d.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+I.y+"px) and (max-width: "+I.t+"px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:p.menuHeader},c&&{fontSize:d.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:p.buttonText},".ms-Dialog-button:hover":{color:p.buttonTextHovered,borderRadius:g.roundedCorner2}},r["@media (min-width: "+I.y+"px) and (max-width: "+I.t+"px)"]={padding:"15px 8px 0 0"},r)}]}}),void 0,{scope:"DialogContent"}),ed=Object(D.a)(),td={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},nd={type:MA.normal,className:"",topButtonsProps:[]},rd=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,r=e.modalProps,o=e.dialogContentProps,i=e.subText,a=r&&r.subtitleAriaId||t;return a||(a=(o&&o.subText||i)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,r=e.modalProps,o=e.dialogContentProps,i=e.title,a=r&&r.titleAriaId||t;return a||(a=(o&&o.title||i)&&n._defaultTitleTextId),a},n._id=Object(Ee.a)("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t,n,r,o=this.props,i=o.className,a=o.containerClassName,s=o.contentClassName,l=o.elementToFocusOnDismiss,c=o.firstFocusableSelector,u=o.forceFocusInsideTrap,A=o.styles,d=o.hidden,g=o.ignoreExternalFocusing,p=o.isBlocking,h=o.isClickableOutsideFocusTrap,f=o.isDarkOverlay,I=o.isOpen,C=o.onDismiss,E=o.onDismissed,b=o.onLayerDidMount,v=o.responsiveMode,B=o.subText,M=o.theme,D=o.title,x=o.topButtonsProps,w=o.type,Q=o.minWidth,S=o.maxWidth,N=o.modalProps,k=Object(m.a)({},N?N.layerProps:{onLayerDidMount:b});b&&!k.onLayerDidMount&&(k.onLayerDidMount=b),N&&N.dragOptions&&!N.dragOptions.dragHandleSelector?(n="ms-Dialog-draggable-header",r=Object(m.a)(Object(m.a)({},N.dragOptions),{dragHandleSelector:"."+n})):r=N&&N.dragOptions;var T=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},td),{className:i,containerClassName:a,isBlocking:p,isDarkOverlay:f,onDismissed:E}),N),{layerProps:k,dragOptions:r}),j=Object(m.a)(Object(m.a)(Object(m.a)({className:s,subText:B,title:D,topButtonsProps:x,type:w},nd),this.props.dialogContentProps),{draggableHeaderClassName:n,titleProps:Object(m.a)({id:(null===(e=this.props.dialogContentProps)||void 0===e?void 0:e.titleId)||this._defaultTitleTextId},null===(t=this.props.dialogContentProps)||void 0===t?void 0:t.titleProps)}),L=ed(A,{theme:M,className:T.className,containerClassName:T.containerClassName,hidden:d,dialogDefaultMinWidth:Q,dialogDefaultMaxWidth:S});return y.createElement(GA,Object(m.a)({elementToFocusOnDismiss:l,firstFocusableSelector:c,forceFocusInsideTrap:u,ignoreExternalFocusing:g,isClickableOutsideFocusTrap:h,onDismissed:T.onDismissed,responsiveMode:v},T,{isDarkOverlay:T.isDarkOverlay,isBlocking:T.isBlocking,isOpen:void 0!==I?I:!d,className:L.root,containerClassName:L.main,onDismiss:C||T.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),y.createElement($A,Object(m.a)({subTextId:this._defaultSubTextId,title:j.title,subText:j.subText,showCloseButton:T.isBlocking,topButtonsProps:j.topButtonsProps,type:j.type,onDismiss:C||j.onDismiss,className:j.className},j),this.props.children))},t.defaultProps={hidden:!0},t=Object(m.b)([Rr],t)}(y.Component),od={root:"ms-Dialog"},id=Object(M.a)(rd,(function(e){var t,n=e.className,r=e.containerClassName,o=e.dialogDefaultMinWidth,i=void 0===o?"288px":o,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,c=e.theme;return{root:[Object(I.R)(od,c).root,c.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+I.x+"px)"]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},r]}}),void 0,{scope:"Dialog"});id.displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(HA||(HA={}));var ad,sd=Object(D.a)(),ld=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=y.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){e.which!==ae.a.enter&&e.which!==ae.a.space||n._onAction(e)},n._onAction=function(e){var t=n.props,r=t.onClick,o=t.onClickHref,i=t.onClickTarget;r?r(e):!r&&o&&(i?window.open(o,i,"noreferrer noopener nofollow"):window.location.href=o,e.preventDefault(),e.stopPropagation())},Object(se.a)(n),Object(He.a)("DocumentCard",t,{accentColor:void 0}),n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,r=t.onClickHref,o=t.children,i=t.type,a=t.accentColor,s=t.styles,l=t.theme,c=t.className,u=Object(w.j)(this.props,w.h,["className","onClick","type","role"]),A=!(!n&&!r);this._classNames=sd(s,{theme:l,className:c,actionable:A,compact:i===HA.compact}),i===HA.compact&&a&&(e={borderBottomColor:a});var d=this.props.role||(A?n?"button":"link":void 0),g=A?0:void 0;return y.createElement("div",Object(m.a)({ref:this._rootElement,tabIndex:g,"data-is-focusable":A,role:d,className:this._classNames.root,onKeyDown:A?this._onKeyDown:void 0,onClick:A?this._onClick:void 0,style:e},u),o)},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:HA.normal},t}(y.Component),cd={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},ud={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},Ad={root:"ms-DocumentCardTitle"},dd={root:"ms-DocumentCardLocation"},gd={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},pd=Object(M.a)(ld,(function(e){var t,n,r=e.className,o=e.theme,i=e.actionable,a=e.compact,s=o.palette,l=o.fonts,c=o.effects,u=Object(I.R)(gd,o);return{root:[u.root,{WebkitFontSmoothing:"antialiased",backgroundColor:s.white,border:"1px solid "+s.neutralLight,maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={":focus":{outline:"0px solid"}},t["."+Kn.a+" &:focus"]=Object(I.V)(s.neutralSecondary,c.roundedCorner2),t["."+dd.root+" + ."+Ad.root]={paddingTop:"4px"},t)},i&&[u.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:s.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid "+s.neutralTertiaryAlt,pointerEvents:"none"}}}],a&&[u.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(n={},n["."+cd.root]={borderRight:"1px solid "+s.neutralLight,borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n["."+cd.icon]={maxHeight:"32px",maxWidth:"32px"},n["."+ud.root]={paddingBottom:"12px"},n["."+Ad.root]={paddingBottom:"12px 16px 8px 16px",fontSize:l.mediumPlus.fontSize,lineHeight:"16px"},n)}],r]}}),void 0,{scope:"DocumentCard"}),hd=Object(D.a)(),fd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,r=t.views,o=t.styles,i=t.theme,a=t.className;return this._classNames=hd(o,{theme:i,className:a}),y.createElement("div",{className:this._classNames.root},n&&n.map((function(t,n){return y.createElement("div",{className:e._classNames.action,key:n},y.createElement(co,Object(m.a)({},t)))})),r>0&&y.createElement("div",{className:this._classNames.views},y.createElement(N.a,{iconName:"View",className:this._classNames.viewsIcon}),r))},t}(y.Component),md={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},yd=Object(M.a)(fd,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts,i=Object(I.R)(md,n);return{root:[i.root,{height:"34px",padding:"4px 12px",position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:r.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:o.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:o.medium.fontSize,verticalAlign:"top"}}}),void 0,{scope:"DocumentCardActions"}),Id=Object(D.a)(),Cd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,r=e.styles,o=e.theme,i=e.className;return this._classNames=Id(r,{theme:o,className:i,multiplePeople:n.length>1}),n&&0!==n.length?y.createElement("div",{className:this._classNames.root},this._renderAvatars(n),y.createElement("div",{className:this._classNames.details},y.createElement("span",{className:this._classNames.name},this._getNameString(n)),y.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return y.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return y.createElement("div",{className:this._classNames.avatar},y.createElement(re,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:u.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(y.Component),Ed=Object(M.a)(Cd,(function(e){var t=e.theme,n=e.className,r=e.multiplePeople,o=t.palette,i=t.fonts,a=Object(I.R)(ud,t);return{root:[a.root,r&&a.multiplePeople,{padding:"8px 16px",position:"relative"},n],avatars:[a.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[a.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:32,height:32,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid "+o.white,borderRadius:"50%"},":nth-of-type(2)":r&&{marginLeft:"-16px"}}}],details:[a.details,{left:r?"72px":"56px",height:32,position:"absolute",top:8,width:"calc(100% - 72px)"}],name:[a.name,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralPrimary,fontWeight:I.k.semibold}],activity:[a.activity,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralSecondary}]}}),void 0,{scope:"DocumentCardActivity"}),bd=Object(D.a)(),vd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,r=e.theme,o=e.className;return this._classNames=bd(n,{theme:r,className:o}),y.createElement("div",{className:this._classNames.root},t)},t}(y.Component),Bd={root:"ms-DocumentCardDetails"},Md=Object(M.a)(vd,(function(e){var t=e.className,n=e.theme;return{root:[Object(I.R)(Bd,n).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}}),void 0,{scope:"DocumentCardDetails"}),Dd=Object(D.a)(),xd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,r=e.ariaLabel,o=e.onClick,i=e.styles,a=e.theme,s=e.className;return this._classNames=Dd(i,{theme:a,className:s}),y.createElement("a",{className:this._classNames.root,href:n,onClick:o,"aria-label":r},t)},t}(y.Component),wd=Object(M.a)(xd,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[Object(I.R)(dd,t).root,o.small,{color:r.themePrimary,display:"block",fontWeight:I.k.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:r.themePrimary,cursor:"pointer"}}},n]}}),void 0,{scope:"DocumentCardLocation"}),Qd=Object(D.a)(),Sd=function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,r=t.getOverflowDocumentCountText,o=t.maxDisplayCount,i=void 0===o?3:o,a=e.length-i,s=a?r?r(a):"+"+a:null,l=e.slice(0,i).map((function(e,t){return y.createElement("li",{key:t},y.createElement(V.a,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),y.createElement(Pe,Object(m.a)({className:n._classNames.fileListLink},(e.linkProps,{href:e.linkProps&&e.linkProps.href||e.url})),e.name))}));return y.createElement("div",null,y.createElement("ul",{className:n._classNames.fileList},l),s&&y.createElement("span",{className:n._classNames.fileListOverflowText},s))},Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.previewImages,o=n.styles,i=n.theme,a=n.className,s=r.length>1;return this._classNames=Qd(o,{theme:i,className:a,isFileList:s}),r.length>1?t=this._renderPreviewList(r):1===r.length&&(t=this._renderPreviewImage(r[0]),r[0].accentColor&&(e={borderBottomColor:r[0].accentColor})),y.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,n=e.height,r=e.imageFit,o=e.previewIconProps,i=e.previewIconContainerClass;if(o)return y.createElement("div",{className:Object(ve.a)(this._classNames.previewIcon,i),style:{width:t,height:n}},y.createElement(N.a,Object(m.a)({},o)));var a,s=y.createElement(V.a,{width:t,height:n,imageFit:r,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(a=y.createElement(V.a,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),y.createElement("div",null,s,a)},t}(y.Component),Nd=Object(M.a)(Sd,(function(e){var t,n,r=e.theme,o=e.className,i=e.isFileList,a=r.palette,s=r.fonts,l=Object(I.R)(cd,r);return{root:[l.root,s.small,{backgroundColor:i?a.white:a.neutralLighterAlt,borderBottom:"1px solid "+a.neutralLight,overflow:"hidden",position:"relative"},o],previewIcon:[l.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[l.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",marginRight:"8px"},fileListLink:[Object(I.Q)(r,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:a.neutralDark,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"calc(100% - 24px)",selectors:(t={":hover":{color:a.themePrimary}},t["."+Kn.a+" &:focus"]={selectors:(n={},n[I.l]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}}),void 0,{scope:"DocumentCardPreview"}),kd=Object(D.a)(),Td=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},Object(se.a)(n),n.state={imageHasLoaded:!1},n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,r=e.height,o=e.imageFit,i=e.imageSrc;return this._classNames=kd(t,this.props),y.createElement("div",{className:this._classNames.root},i&&y.createElement(V.a,{width:n,height:r,imageFit:o,src:i,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return y.createElement("div",{className:this._classNames.centeredIconWrapper},y.createElement(N.a,Object(m.a)({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return y.createElement(N.a,Object(m.a)({className:this._classNames.cornerIcon},e))},t}(y.Component),jd=Object(M.a)(Td,(function(e){var t=e.theme,n=e.className,r=e.height,o=e.width,i=t.palette;return{root:[{borderBottom:"1px solid "+i.neutralLight,position:"relative",backgroundColor:i.neutralLighterAlt,overflow:"hidden",height:r&&r+"px",width:o&&o+"px"},n],centeredIcon:[{height:"42px",width:"42px",fontSize:"42px"}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:"32px",width:"32px",fontSize:"32px",position:"absolute",overflow:"visible"}]}}),void 0,{scope:"DocumentCardImage"}),Ld=Object(D.a)(),Rd=function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=y.createRef(),n._measureTitleElement=y.createRef(),n._truncateTitle=function(){n.state.needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._measureTitleElement.current;if(t){var r=getComputedStyle(t);if(r.width&&r.lineHeight&&r.height){var o=t.clientWidth,i=t.scrollWidth,a=Math.floor((parseInt(r.height,10)+5)/parseInt(r.lineHeight,10)),s=i/(parseInt(r.width,10)*a);if(s>1){var l=e.length/s-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2),clientWidth:o,needMeasurement:!1})}}}return n.setState({needMeasurement:!1})},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,r=e.truncatedTitleSecondPiece;if(t&&r){var o=n._titleElement.current;if(!o)return;(o.scrollHeight>o.clientHeight+5||o.scrollWidth>o.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:r.slice(1)})}},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),n.state={truncatedTitleFirstPiece:"",truncatedTitleSecondPiece:"",previousTitle:t.title,needMeasurement:!!t.shouldTruncate},n}return Object(m.c)(t,e),t.prototype.componentDidUpdate=function(){this.props.title!==this.state.previousTitle&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0,clientWidth:void 0,previousTitle:this.props.title,needMeasurement:!!this.props.shouldTruncate}),this._events.off(window,"resize",this._updateTruncation),this.props.shouldTruncate&&(this._truncateTitle(),requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.title,n=e.shouldTruncate,r=e.showAsSecondaryTitle,o=e.styles,i=e.theme,a=e.className,s=this.state,l=s.truncatedTitleFirstPiece,c=s.truncatedTitleSecondPiece,u=s.needMeasurement;return this._classNames=Ld(o,{theme:i,className:a,showAsSecondaryTitle:r}),u?y.createElement("div",{className:this._classNames.root,ref:this._measureTitleElement,title:t,style:{whiteSpace:"nowrap"}},t):n&&l&&c?y.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},l,"…",c):y.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},t)},t.prototype._updateTruncation=function(){var e=this;this._async.requestAnimationFrame((function(){if(e._titleElement.current){var t=e._titleElement.current.clientWidth;clearTimeout(e._titleTruncationTimer),e.state.clientWidth!==t&&(e._titleTruncationTimer=e._async.setTimeout((function(){return e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0,needMeasurement:!0})}),250))}}))},t}(y.Component),Od=Object(M.a)(Rd,(function(e){var t=e.theme,n=e.className,r=e.showAsSecondaryTitle,o=t.palette,i=t.fonts;return{root:[Object(I.R)(Ad,t).root,r?i.medium:i.large,{padding:"8px 16px",display:"block",overflow:"hidden",wordWrap:"break-word",height:r?"45px":"38px",lineHeight:r?"18px":"21px",color:r?o.neutralSecondary:o.neutralPrimary},n]}}),void 0,{scope:"DocumentCardTitle"}),_d=Object(D.a)(),Fd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,r=e.theme,o=e.className;return this._classNames=_d(n,{theme:r,className:o}),y.createElement("div",{className:this._classNames.root},y.createElement(N.a,{iconName:t}))},t}(y.Component),zd={root:"ms-DocumentCardLogo"},Pd=Object(M.a)(Fd,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[Object(I.R)(zd,t).root,{fontSize:o.xxLargePlus.fontSize,color:r.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}}),void 0,{scope:"DocumentCardLogo"}),Ud=Object(D.a)(),Gd=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,r=e.styles,o=e.theme,i=e.className,a={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=Ud(r,{theme:o,className:i}),y.createElement("div",{className:this._classNames.root},t&&y.createElement(N.a,Object(m.a)({},a)),n)},t}(y.Component),Hd={root:"ms-DocumentCardStatus"},Yd=Object(M.a)(Gd,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts;return{root:[Object(I.R)(Hd,n).root,o.medium,{margin:"8px 16px",color:r.neutralPrimary,backgroundColor:r.neutralLighter,height:"32px"},t]}}),void 0,{scope:"DocumentCardStatus"}),Vd=n(256),Wd=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=0,r=0;r<e.length;r++)e[r].itemType===$l.Divider||e[r].itemType===$l.Header?t.push(r):e[r].hidden||n++;this._size=n,this._displayOnlyOptionsCache=t,this._cachedOptions=Object(m.e)(e)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!0,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(ad||(ad={}));var Kd,Zd=Object(D.a)();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(Kd||(Kd={}));var Jd,qd,Xd,$d,eg,tg=function(e){function t(t){var n=e.call(this,t)||this;n._panel=y.createRef(),n._animationCallback=null,n._hasCustomNavigation=!(!n.props.onRenderNavigation&&!n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?Object(De.b)(e,n._events):Object(De.c)(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return y.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,o=e.hasCloseButton,i=e.onRenderHeader,a=void 0===i?n._onRenderHeader:i;if(o){var s=null===(t=n._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return y.createElement(y.Fragment,null,!n._hasCustomNavigation&&a(n.props,n._onRenderHeader,n._headerTextId),y.createElement(co,{styles:s,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var o=e.headerText,i=e.headerTextProps,a=void 0===i?{}:i;return o?y.createElement("div",{className:n._classNames.header},y.createElement("div",Object(m.a)({id:r,role:"heading","aria-level":1},a,{className:Object(ve.a)(n._classNames.headerText,a.className)}),o)):null},n._onRenderBody=function(e){return y.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?y.createElement("div",{className:n._classNames.footer},y.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===Kd.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete()}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(){n._updateFooterPosition(),n.state.visibility===Kd.open&&n.props.onOpened&&n.props.onOpened(),n.state.visibility===Kd.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n._async=new le.a(n),n._events=new Ue.a(n),Object(se.a)(n),Object(He.a)("Panel",t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:Kd.closed,id:Object(Ee.a)("Panel")},n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==Kd.closed&&t.visibility!==Kd.animatingClosed?e.isOpen||t.visibility!==Kd.open&&t.visibility!==Kd.animatingOpen?null:{visibility:Kd.animatingClosed}:{visibility:Kd.animatingOpen}},t.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:Kd.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===Kd.animatingOpen?this._animateTo(Kd.open):this.state.visibility===Kd.animatingClosed&&this._animateTo(Kd.closed)),n&&!r?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,o=e.firstFocusableSelector,i=e.focusTrapZoneProps,a=e.forceFocusInsideTrap,s=e.hasCloseButton,l=e.headerText,c=e.headerClassName,u=void 0===c?"":c,A=e.ignoreExternalFocusing,d=e.isBlocking,g=e.isFooterAtBottom,p=e.isLightDismiss,h=e.isHiddenOnDismiss,f=e.layerProps,I=e.overlayProps,C=e.popupProps,E=e.type,b=e.styles,v=e.theme,B=e.customWidth,M=e.onLightDismissClick,D=void 0===M?this._onPanelClick:M,x=e.onRenderNavigation,S=void 0===x?this._onRenderNavigation:x,N=e.onRenderHeader,k=void 0===N?this._onRenderHeader:N,T=e.onRenderBody,j=void 0===T?this._onRenderBody:T,L=e.onRenderFooter,R=void 0===L?this._onRenderFooter:L,O=this.state,_=O.isFooterSticky,F=O.visibility,z=O.id,P=E===ad.smallFixedNear||E===ad.customNear,U=Object(Q.a)(v)?P:!P,G=E===ad.custom||E===ad.customNear?{width:B}:{},H=Object(w.j)(this.props,w.h),Y=this.isActive,V=F===Kd.animatingClosed||F===Kd.animatingOpen;if(this._headerTextId=l&&z+"-headerText",!Y&&!V&&!h)return null;this._classNames=Zd(b,{theme:v,className:n,focusTrapZoneClassName:i?i.className:void 0,hasCloseButton:s,headerClassName:u,isAnimating:V,isFooterSticky:_,isFooterAtBottom:g,isOnRightSide:U,isOpen:Y,isHiddenOnDismiss:h,type:E,hasCustomNavigation:this._hasCustomNavigation});var W,K=this._classNames,Z=this._allowTouchBodyScroll;return d&&Y&&(W=y.createElement(TA,Object(m.a)({className:K.overlay,isDarkThemed:!1,onClick:p?D:void 0,allowTouchBodyScroll:Z},I))),y.createElement(Ln,Object(m.a)({},f),y.createElement(en,Object(m.a)({role:"dialog","aria-modal":"true",ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:K.hiddenPanel},C),y.createElement("div",Object(m.a)({"aria-hidden":!Y&&V},H,{ref:this._panel,className:K.root}),W,y.createElement(Oa,Object(m.a)({ignoreExternalFocusing:A,forceFocusInsideTrap:!(!d||h&&!Y)&&a,firstFocusableSelector:o,isClickableOutsideFocusTrap:!0},i,{className:K.main,style:G,elementToFocusOnDismiss:r}),y.createElement("div",{className:K.commands,"data-is-visible":!0},S(this.props,this._onRenderNavigation)),y.createElement("div",{className:K.contentInner},(this._hasCustomNavigation||!s)&&k(this.props,this._onRenderHeader,this._headerTextId),y.createElement("div",{ref:this._allowScrollOnPanel,className:K.scrollableContent,"data-is-scrollable":!0},j(this.props,this._onRenderBody)),R(this.props,this._onRenderFooter))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:Kd.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:Kd.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===Kd.open||this.state.visibility===Kd.animatingOpen},enumerable:!0,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(Object(Be.a)(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:ad.smallFixedFar},t}(y.Component),ng={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},rg="100%",og="auto",ig=272,ag=340,sg=592,lg=644,cg=940,ug="auto",Ag=0,dg=48,gg=428,pg=176,hg=((Jd={})["@media (min-width: "+I.x+"px)"]={width:ag},Jd),fg=((qd={})["@media (min-width: "+I.w+"px)"]={width:sg},qd["@media (min-width: "+I.A+"px)"]={width:lg},qd),mg=((Xd={})["@media (min-width: "+I.z+"px)"]={left:dg,width:og},Xd["@media (min-width: "+I.B+"px)"]={left:gg},Xd),yg=(($d={})["@media (min-width: "+I.B+"px)"]={left:ug,width:cg},$d),Ig=((eg={})["@media (min-width: "+I.B+"px)"]={left:pg},eg),Cg=function(e){var t;switch(e){case ad.smallFixedFar:t=Object(m.a)({},hg);break;case ad.medium:t=Object(m.a)(Object(m.a)({},hg),fg);break;case ad.large:t=Object(m.a)(Object(m.a)(Object(m.a)({},hg),fg),mg);break;case ad.largeFixed:t=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},hg),fg),mg),yg);break;case ad.extraLarge:t=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},hg),fg),mg),Ig)}return t},Eg={paddingLeft:"24px",paddingRight:"24px"},bg=Object(M.a)(tg,(function(e){var t,n=e.className,r=e.focusTrapZoneClassName,o=e.hasCloseButton,i=e.headerClassName,a=e.isAnimating,s=e.isFooterSticky,l=e.isFooterAtBottom,c=e.isOnRightSide,u=e.isOpen,A=e.isHiddenOnDismiss,d=e.hasCustomNavigation,g=e.theme,p=e.type,h=void 0===p?ad.smallFixedFar:p,f=g.effects,y=g.fonts,C=g.semanticColors,E=Object(I.R)(ng,g),b=h===ad.custom||h===ad.customNear;return{root:[E.root,g.fonts.medium,u&&E.isOpen,o&&E.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},b&&c&&E.custom,b&&!c&&E.customNear,n],overlay:[{pointerEvents:"auto",cursor:"pointer"},u&&a&&I.a.fadeIn100,!u&&a&&I.a.fadeOut100],hiddenPanel:[!u&&!a&&A&&{visibility:"hidden"}],main:[E.main,{backgroundColor:C.bodyBackground,boxShadow:f.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:ug,right:Ag,width:rg,selectors:Object(m.a)((t={},t[I.l]={borderLeft:"3px solid "+C.variantBorder,borderRight:"3px solid "+C.variantBorder},t),Cg(h))},h===ad.smallFluid&&{left:Ag},h===ad.smallFixedNear&&{left:Ag,right:ug,width:ig},h===ad.customNear&&{right:"auto",left:0},b&&{maxWidth:"100vw"},u&&a&&!c&&I.a.slideRightIn40,u&&a&&c&&I.a.slideLeftIn40,!u&&a&&!c&&I.a.slideLeftOut40,!u&&a&&c&&I.a.slideRightOut40,r],commands:[E.commands,{marginTop:18},d&&{marginTop:"inherit"}],navigation:[E.navigation,{display:"flex",justifyContent:"flex-end"},d&&{height:"44px"}],contentInner:[E.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[E.header,Eg,{alignSelf:"flex-start"},o&&!d&&{flexGrow:1},d&&{flexShrink:0}],headerText:[E.headerText,y.xLarge,{color:C.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},i],scrollableContent:[E.scrollableContent,{overflowY:"auto"},l&&{flexGrow:1}],content:[E.content,Eg,{paddingBottom:20}],footer:[E.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity "+I.c.durationValue3+" "+I.c.easeFunction2},s&&{background:C.bodyBackground,borderTopColor:C.variantBorder}],footerInner:[E.footerInner,Eg,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[E.closeButton,{marginRight:14,color:g.palette.neutralSecondary,fontSize:I.o.large},d&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:g.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"}),vg=Object(D.a)(),Bg={options:[]};var Mg=y.forwardRef((function(e,t){var n=Object(x.a)(Bg,e),r=y.useRef(null),o=Object(L.a)(t,r),i=_r(r),a=function(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,o=e.defaultSelectedKey,i=e.selectedKey,a=e.options,s=e.multiSelect,l=ur(a),c=y.useState([]),u=c[0],A=c[1],d=a!==l,g=ur(t=s?d&&void 0!==n?n:r:d&&void 0!==o?o:i);return y.useEffect((function(){var e=function(){return a.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},n=function(e){return Object(dr.e)(a,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&l||t===g&&!d||A(function(){if(void 0===t)return s?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var r=[],o=0,i=t;o<i.length;o++){var a,l=i[o];-1!==(a=n(l))&&r.push(a)}return r}())}),[d,s,l,g,a,t]),[u,A]}(n),s=a[0],l=a[1];return y.createElement(Qg,Object(m.a)({},n,{responsiveMode:i,hoisted:{rootRef:o,selectedIndices:s,setSelectedIndices:l}}))}));Mg.displayName="DropdownBase";var Dg,xg,wg,Qg=function(e){function t(t){var n=e.call(this,t)||this;n._host=y.createRef(),n._focusZone=y.createRef(),n._dropDown=y.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new Wd,n._requestAnimationFrame=Object(Vd.a)(n),n._onChange=function(e,t,r,o,i){var a=n.props,s=a.onChange,l=a.onChanged;if(s||l){var c=i?Object(m.a)(Object(m.a)({},t[r]),{selected:!o}):t[r];s&&s(Object(m.a)(Object(m.a)({},e),{target:n._dropDown.current}),c,r),l&&l(c,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map((function(e){return e.text})).join(o)},n._onRenderTitle=function(e){return y.createElement(y.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?y.createElement(y.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,o=n.props,i=o.responsiveMode,a=o.dropdownWidth,s=i<=Br.medium,l=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,c=void 0,u=void 0;return"auto"===a?u=n._dropDown.current?n._dropDown.current.clientWidth:0:c=a||(n._dropDown.current?n._dropDown.current.clientWidth:0),s?y.createElement(bg,Object(m.a)({isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,hasCloseButton:!1,styles:l},r),n._renderFocusableList(e)):y.createElement(Rn,Object(m.a)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Je.bottomLeftEdge,calloutWidth:c,calloutMinWidth:u},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return y.createElement(N.a,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o={items:[]},i=[],a=function(){var e=o.id?[y.createElement("div",{role:"group",key:o.id,"aria-labelledby":o.id},o.items)]:o.items;i=Object(m.e)(i,e),o={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case $l.Header:o.items.length>0&&a();var i=n._id+e.key;o.items.push(r(Object(m.a)(Object(m.a)({id:i},e),{index:t}),n._onRenderItem)),o.id=i;break;case $l.Divider:t>0&&o.items.push(r(Object(m.a)(Object(m.a)({},e),{index:t}),n._onRenderItem)),o.items.length>0&&a();break;default:o.items.push(r(Object(m.a)(Object(m.a)({},e),{index:t}),n._onRenderItem))}}(e,t)})),o.items.length>0&&a(),y.createElement(y.Fragment,null,i)},n._onRenderItem=function(e){switch(e.itemType){case $l.Divider:return n._renderSeparator(e);case $l.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t=n.props,r=t.onRenderOption,o=void 0===r?n._onRenderOption:r,i=t.hoisted.selectedIndices,a=void 0===i?[]:i,s=!(void 0===e.index||!a)&&a.indexOf(e.index)>-1,l=e.hidden?n._classNames.dropdownItemHidden:s&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:s?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,c=e.title,u=void 0===c?e.text:c,A=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?y.createElement(Wa,{id:n._listId+e.index,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:Object(m.a)({"aria-selected":s,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!e.disabled}),label:e.text,title:u,onRenderLabel:n._onRenderItemLabel.bind(n,e),className:l,checked:s,styles:A,ariaPositionInSet:n._sizePosCache.positionInSet(e.index),ariaSetSize:n._sizePosCache.optionSetSize}):y.createElement(ti,{id:n._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:l,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,title:u,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},o(e,n._onRenderOption))},n._onRenderOption=function(e){return y.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderOption:t)(e,n._onRenderOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame((function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(e&&e[0]&&!n.props.options[e[0]].disabled){var t=Object(we.a)().getElementById(n._id+"-list"+e[0]);t&&n._focusZone.current.focusElement(t)}else n._focusZone.current.focus()})),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=window.setTimeout((function(){n._isScrollIdle=!0}),n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(e){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||(n.setState({hasFocus:!1}),n.state.isOpen||n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=n.state.isOpen;switch(e.which){case ae.a.enter:n.setState({isOpen:!i});break;case ae.a.escape:if(!i)return;n.setState({isOpen:!1});break;case ae.a.up:if(o){if(i){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case ae.a.down:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case ae.a.home:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case ae.a.end:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case ae.a.space:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;if(!n.props.onKeyUp||(n.props.onKeyUp(e),!e.defaultPrevented)){switch(e.which){case ae.a.space:n.setState({isOpen:!r});break;default:return void(t&&r&&n.setState({isOpen:!1}))}e.stopPropagation(),e.preventDefault()}}},n._onZoneKeyDown=function(e){var t;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var r=e.altKey||e.metaKey;switch(e.which){case ae.a.up:r?n.setState({isOpen:!1}):n._host.current&&(t=Object(Ie.h)(n._host.current,n._host.current.lastChild,!0));break;case ae.a.home:case ae.a.end:case ae.a.pageUp:case ae.a.pageDown:break;case ae.a.down:!r&&n._host.current&&(t=Object(Ie.e)(n._host.current,n._host.current.firstChild,!0));break;case ae.a.escape:n.setState({isOpen:!1});break;case ae.a.tab:return void n.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){var t=n.state.isOpen,r=n.props,o=r.multiSelect,i=r.hoisted.selectedIndices;if(!n._isDisabled()){n._isFocusedByClick||t||0!==i.length||o||n._moveIndex(e,1,0,-1),n.props.onFocus&&n.props.onFocus(e);var a={hasFocus:!0};n._shouldOpenOnFocus()&&(a.isOpen=!0),n.setState(a)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=e.disabled,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?y.createElement(Ja,{className:n._classNames.label,id:n._labelId,required:r,styles:i,disabled:o},t):null},Object(se.a)(n);t.multiSelect,t.selectedKey,t.selectedKeys,t.defaultSelectedKey,t.defaultSelectedKeys;var r=t.options;return n._id=t.id||Object(Ee.a)("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._sizePosCache.updateOptions(r),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return gc(e.options,e.hoisted.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,o=t.options,i=t.ariaLabel,a=t.required,s=t.errorMessage,l=t.styles,c=t.theme,u=t.panelProps,A=t.calloutProps,d=t.multiSelect,g=t.onRenderTitle,p=void 0===g?this._getTitle:g,h=t.onRenderContainer,f=void 0===h?this._onRenderContainer:h,I=t.onRenderCaretDown,C=void 0===I?this._onRenderCaretDown:I,E=t.onRenderLabel,b=void 0===E?this._onRenderLabel:E,v=t.hoisted.selectedIndices,B=this.state,M=B.isOpen,D=B.calloutRenderEdge,x=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;o!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(o);var Q=gc(o,v),S=Object(w.j)(t,w.h),N=this._isDisabled(),k=e+"-errorMessage",T=N?void 0:M&&1===v.length&&v[0]>=0?this._listId+v[0]:void 0,j=d?{role:"button"}:{role:"listbox",childRole:"option",ariaRequired:a,ariaSetSize:this._sizePosCache.optionSetSize,ariaPosInSet:this._sizePosCache.positionInSet(v[0]),ariaSelected:void 0!==v[0]||void 0};this._classNames=vg(l,{theme:c,className:n,hasError:!!(s&&s.length>0),hasLabel:!!r,isOpen:M,required:a,disabled:N,isRenderingPlaceholder:!Q.length,panelClassName:u?u.className:void 0,calloutClassName:A?A.className:void 0,calloutRenderEdge:D});var L=!!s&&s.length>0;return y.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef},b(this.props,this._onRenderLabel),y.createElement("div",Object(m.a)({"data-is-focusable":!N,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:N?-1:0,role:j.role,"aria-haspopup":"listbox","aria-expanded":M?"true":"false","aria-label":i,"aria-labelledby":r&&!i?Object(We.a)(this._labelId,this._optionId):void 0,"aria-describedby":L?this._id+"-errorMessage":void 0,"aria-activedescendant":T,"aria-required":j.ariaRequired,"aria-disabled":N,"aria-owns":M?this._listId:void 0},S,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),y.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":"polite","aria-atomic":!0,"aria-invalid":L,role:j.childRole,"aria-setsize":j.ariaSetSize,"aria-posinset":j.ariaPosInSet,"aria-selected":j.ariaSelected},Q.length?p(Q,this._onRenderTitle):x(t,this._onRenderPlaceholder)),y.createElement("span",{className:this._classNames.caretDownWrapper},C(t,this._onRenderCaretDown))),M&&f(Object(m.a)(Object(m.a)({},t),{onDismiss:this._onDismiss}),this._onRenderContainer),L&&y.createElement("div",{role:"alert",id:k,className:this._classNames.errorMessage},s))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!!c&&c.indexOf(t)>-1,A=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===o&&void 0===i){if(a||s||t!==c[0]){if(a)if(A=c?this._copyArray(c):[],u){var d=A.indexOf(t);d>-1&&A.splice(d,1)}else A.push(t);else A=[t];e.persist(),this.props.hoisted.setSelectedIndices(A),this._onChange(e,r,t,u,a)}}else this._onChange(e,r,t,u,a)},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var i=0;o[n].itemType===$l.Header||o[n].itemType===$l.Divider||o[n].disabled;){if(i>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,o=e.ariaLabel,i=e.multiSelect;return y.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},y.createElement(Te,{ref:this._focusZone,direction:Ae.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":o,"aria-labelledby":r&&!o?this._labelId:void 0,"aria-multiselectable":i},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t>0?y.createElement("div",{role:"separator",key:n,className:this._classNames.dropdownDivider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,o=e.id;return y.createElement("div",{id:o,key:r,className:this._classNames.dropdownItemHeader},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===ae.a.alt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(Object(qe.a)()||Object(Xe.a)())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(y.Component),Sg={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},Ng=((Dg={})[I.l+", "+I.n.replace("@media ","")]=Object(m.a)({},Object(I.S)()),Dg),kg={selectors:Object(m.a)((xg={},xg[I.l]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},xg),Ng)},Tg={selectors:(wg={},wg[I.l]={borderColor:"Highlight"},wg)},jg=Object(I.X)(0,I.x),Lg=Object(M.a)(Mg,(function(e){var t,n,r,o,i,a,s,l,c,u,A,d,g=e.theme,p=e.hasError,h=e.hasLabel,f=e.className,y=e.isOpen,C=e.disabled,E=e.required,b=e.isRenderingPlaceholder,v=e.panelClassName,B=e.calloutClassName,M=e.calloutRenderEdge;if(!g)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var D=Object(I.R)(Sg,g),x=g.palette,w=g.semanticColors,Q=g.effects,S=g.fonts,N={color:w.menuItemTextHovered},k={color:w.menuItemText},T={borderColor:w.errorText},j=[D.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],L=w.menuItemBackgroundPressed,R=function(e){var t;return void 0===e&&(e=!1),{selectors:(t={"&:hover:focus":[{color:w.menuItemTextHovered,backgroundColor:e?L:w.menuItemBackgroundHovered},kg],"&:focus":[{backgroundColor:e?L:"transparent"},kg],"&:active":[{color:w.menuItemTextHovered,backgroundColor:e?w.menuItemBackgroundHovered:w.menuBackground},kg]},t["."+Kn.a+" &:focus:after"]={left:0,top:0,bottom:0,right:0},t[I.l]={border:"none"},t)}},O=Object(m.e)(j,[{backgroundColor:L,color:w.menuItemTextHovered},R(!0),kg]),_=Object(m.e)(j,[{color:w.disabledText,cursor:"default",selectors:(t={},t[I.l]={color:"GrayText",border:"none"},t)}]),F=M===rt.bottom?Q.roundedCorner2+" "+Q.roundedCorner2+" 0 0":"0 0 "+Q.roundedCorner2+" "+Q.roundedCorner2,z=M===rt.bottom?"0 0 "+Q.roundedCorner2+" "+Q.roundedCorner2:Q.roundedCorner2+" "+Q.roundedCorner2+" 0 0";return{root:[D.root,f],label:D.label,dropdown:[D.dropdown,I.gb,S.medium,{color:w.menuItemText,borderColor:w.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+D.title]=[!C&&N,{borderColor:y?x.neutralSecondary:x.neutralPrimary},Tg],n["&:focus ."+D.title]=[!C&&N,{selectors:(r={},r[I.l]={color:"Highlight"},r)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:C?"none":"2px solid "+x.themePrimary,borderRadius:"2px",selectors:(o={},o[I.l]={color:"Highlight"},o)}],n["&:active ."+D.title]=[!C&&N,{borderColor:x.themePrimary},Tg],n["&:hover ."+D.caretDown]=!C&&k,n["&:focus ."+D.caretDown]=[!C&&k,{selectors:(i={},i[I.l]={color:"Highlight"},i)}],n["&:active ."+D.caretDown]=!C&&k,n["&:hover ."+D.titleIsPlaceHolder]=!C&&k,n["&:focus ."+D.titleIsPlaceHolder]=!C&&k,n["&:active ."+D.titleIsPlaceHolder]=!C&&k,n["&:hover ."+D.titleHasError]=T,n["&:active ."+D.titleHasError]=T,n)},y&&"is-open",C&&"is-disabled",E&&"is-required",E&&!h&&{selectors:(a={":before":{content:"'*'",color:w.errorText,position:"absolute",top:-5,right:-10}},a[I.l]={selectors:{":after":{right:-14}}},a)}],title:[D.title,I.gb,{backgroundColor:w.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:w.inputBorder,borderRadius:y?F:Q.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},b&&[D.titleIsPlaceHolder,{color:w.inputPlaceholderText}],p&&[D.titleHasError,T],C&&{backgroundColor:w.disabledBackground,border:"none",color:w.disabledText,cursor:"default",selectors:(s={},s[I.l]=Object(m.a)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},Object(I.S)()),s)}],caretDownWrapper:[D.caretDownWrapper,{position:"absolute",top:1,right:8,height:32,lineHeight:30},!C&&{cursor:"pointer"}],caretDown:[D.caretDown,{color:x.neutralSecondary,fontSize:S.small.fontSize,pointerEvents:"none"},C&&{color:w.disabledText,selectors:(l={},l[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),l)}],errorMessage:Object(m.a)(Object(m.a)({color:w.errorText},g.fonts.small),{paddingTop:5}),callout:[D.callout,{boxShadow:Q.elevation8,borderRadius:z,selectors:(c={},c[".ms-Callout-main"]={borderRadius:z},c)},B],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[D.dropdownItems,{display:"block"}],dropdownItem:Object(m.e)(j,[R()]),dropdownItemSelected:O,dropdownItemDisabled:_,dropdownItemSelectedAndDisabled:[O,_,{backgroundColor:"transparent"}],dropdownItemHidden:Object(m.e)(j,[{display:"none"}]),dropdownDivider:[D.dropdownDivider,{height:1,backgroundColor:w.bodyDivider}],dropdownOptionText:[D.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:[D.dropdownItemHeader,Object(m.a)(Object(m.a)({},S.medium),{fontWeight:I.k.semibold,color:w.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(u={},u[I.l]=Object(m.a)({color:"GrayText"},Object(I.S)()),u)})],subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(A={},A["."+Kn.a+" &:focus + label::before"]={outlineOffset:"0px"},A)}},panel:{root:[v],main:{selectors:(d={},d[jg]={width:272},d)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});Lg.displayName="Dropdown";var Rg=n(25);Object(Rg.a)([{rawString:".pickerText_43ffcad1{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_43ffcad1:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_43ffcad1{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_43ffcad1::-ms-clear{display:none}"}]);var Og="pickerText_43ffcad1",_g="pickerInput_43ffcad1",Fg=r,zg=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=y.createRef(),n.selectedItemsList=y.createRef(),n.root=y.createRef(),n.input=y.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){t||(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===ae.a.backspace&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===document.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,r=n.state.queryString;if(void 0===t||t===r){var o=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===o)return;var i,a=o,s=o;s&&s.then?s.then((function(e){i=e,n._addProcessedItem(i)})):(i=a,n._addProcessedItem(i))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},Object(se.a)(n),n.selection=new eu({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,r;return null!=(r=null!=(n=null!=(e=this.props.selectedItems)?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)?n:this.props.defaultSelectedItems)?r:null},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,r=e.disabled,o=e.focusZoneProps,i=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,a=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return y.createElement("div",{ref:this.root,className:Object(ve.a)("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},y.createElement(Te,Object(m.a)({direction:Ae.bidirectional},o),y.createElement(lu,{selection:this.selection,selectionMode:Zc.multiple},y.createElement("div",{className:Object(ve.a)("ms-BasePicker-text",Fg.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&y.createElement(ce,Object(m.a)({},n,{className:Object(ve.a)("ms-BasePicker-input",Fg.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":i,"aria-owns":a?"suggestion-list":void 0,"aria-expanded":a,"aria-haspopup":"true",role:"combobox",disabled:r,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!0,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return y.createElement(e,Object(m.a)({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return y.createElement(e,Object(m.a)({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(y.Component);Object(Rg.a)([{rawString:".resultContent_26e0ac52{display:table-row}.resultContent_26e0ac52 .resultItem_26e0ac52{display:table-cell;vertical-align:bottom}.peoplePickerPersona_26e0ac52{width:180px}.peoplePickerPersona_26e0ac52 .ms-Persona-details{width:100%}.peoplePicker_26e0ac52 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_26e0ac52{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);var Pg,Ug,Gg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(zg),Hg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(Gg);(Ug=Pg||(Pg={}))[Ug.none=0]="none",Ug[Ug.descriptive=1]="descriptive",Ug[Ug.more=2]="more",Ug[Ug.downArrow=3]="downArrow";var Yg=Object(C.c)((function(e,t,n){var r=ao(e),o=Object(I.H)(r,n);return Object(m.a)(Object(m.a)({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})})),Vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=Object(m.d)(e,["className","styles"]),o=Yg(this.props.theme,t,n);return y.createElement(no,Object(m.a)({},r,{variantClassName:"ms-Button--facepile",styles:o,onRenderDescription:Ve.b}))},t=Object(m.b)([Object(ro.a)("FacepileButton",["theme","styles"],!0)],t)}(y.Component),Wg=Object(D.a)(),Kg={size:u.size48,presence:A.none,imageAlt:""};var Zg=y.forwardRef((function(e,t){var n=Object(x.a)(Kg,e),r=y.useRef(null),o=Object(L.a)(t,r),i=function(){return n.text||n.primaryText||""},a=function(e,t,r){return y.createElement("div",{dir:"auto",className:e},t&&t(n,r))},s=function(e){return e?function(){return y.createElement(ko,{content:e,overflowMode:Co.Parent,directionalHint:Je.topLeftEdge},e)}:void 0},l=s(i()),c=s(n.secondaryText),A=s(n.tertiaryText),d=s(n.optionalText),g=n.hidePersonaDetails,p=n.onRenderOptionalText,h=void 0===p?d:p,f=n.onRenderPrimaryText,I=void 0===f?l:f,C=n.onRenderSecondaryText,E=void 0===C?c:C,b=n.onRenderTertiaryText,v=void 0===b?A:b,B=n.onRenderPersonaCoin,M=void 0===B?function(e){return y.createElement(re,Object(m.a)({},e))}:B,D=n.size,Q=n.allowPhoneInitials,S=n.className,N=n.coinProps,k=n.showUnknownPersonaCoin,T=n.coinSize,j=n.styles,R=n.imageAlt,O=n.imageInitials,_=n.imageShouldFadeIn,F=n.imageShouldStartVisible,z=n.imageUrl,P=n.initialsColor,U=n.initialsTextColor,G=n.isOutOfOffice,H=n.onPhotoLoadingStateChange,Y=n.onRenderCoin,V=n.onRenderInitials,W=n.presence,K=n.presenceTitle,Z=n.presenceColors,J=n.showInitialsUntilImageLoads,q=n.showSecondaryText,X=n.theme,$=Object(m.a)({allowPhoneInitials:Q,showUnknownPersonaCoin:k,coinSize:T,imageAlt:R,imageInitials:O,imageShouldFadeIn:_,imageShouldStartVisible:F,imageUrl:z,initialsColor:P,initialsTextColor:U,onPhotoLoadingStateChange:H,onRenderCoin:Y,onRenderInitials:V,presence:W,presenceTitle:K,showInitialsUntilImageLoads:J,size:D,text:i(),isOutOfOffice:G,presenceColors:Z},N),ee=Wg(j,{theme:X,className:S,showSecondaryText:q,presence:W,size:D}),te=Object(w.j)(n,w.h),ne=y.createElement("div",{className:ee.details},a(ee.primaryText,I,l),a(ee.secondaryText,E,c),a(ee.tertiaryText,v,A),a(ee.optionalText,h,d),n.children);return y.createElement("div",Object(m.a)({},te,{ref:o,className:ee.root,style:T?{height:T,minWidth:T}:void 0}),M($,M),(!g||D===u.size8||D===u.size10||D===u.tiny)&&ne)}));Zg.displayName="PersonaBase";var Jg={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},qg=Object(M.a)(Zg,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=Object(I.R)(Jg,r),s=k(e.size),l=j(e.presence),c={color:o.bodySubtext,fontWeight:I.k.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,I.gb,{color:o.bodyText,position:"relative",height:p.size48,minWidth:p.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:p.size8,minWidth:p.size8}],s.isSize10&&[a.size10,{height:p.size10,minWidth:p.size10}],s.isSize16&&[a.size16,{height:p.size16,minWidth:p.size16}],s.isSize24&&[a.size24,{height:p.size24,minWidth:p.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:p.size28,minWidth:p.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:p.size32,minWidth:p.size32}],s.isSize40&&[a.size40,{height:p.size40,minWidth:p.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:p.size56,minWidth:p.size56}],s.isSize72&&[a.size72,{height:p.size72,minWidth:p.size72}],s.isSize100&&[a.size100,{height:p.size100,minWidth:p.size100}],s.isSize120&&[a.size120,{height:p.size120,minWidth:p.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,I.fb,{color:o.bodyText,fontWeight:I.k.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:"16px",lineHeight:"16px",overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:p.size8},s.isSize16&&{lineHeight:p.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:22}],secondaryText:[a.secondaryText,I.fb,c,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:"16px",lineHeight:"16px",overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,I.fb,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,I.fb,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,I.fb]}}),void 0,{scope:"Persona"}),Xg=Object(D.a)(),$g=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=Xg(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize;return y.createElement(qg,Object(m.a)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize;return y.createElement(re,Object(m.a)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null))},Object(se.a)(n),n._ariaDescriptionId=Object(Ee.a)(),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,o=t.personas,i=t.overflowPersonas,a=t.showAddButton,s=t.ariaLabel,l=this._classNames,c="number"==typeof r?Math.min(o.length,r):o.length;n&&!e&&(e=n);var u=i&&i.length>0,A=u?o:o.slice(0,c),d=(u?i:o.slice(c))||[];return y.createElement("div",{className:l.root},this.onRenderAriaDescription(),y.createElement("div",{className:l.itemContainer},a?this._getAddNewElement():null,y.createElement("ul",{className:l.members,"aria-label":s},this._onRenderVisiblePersonas(A,0===d.length&&1===o.length)),e?this._getOverflowElement(d):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&y.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t){var n=this,r=this.props,o=r.onRenderPersona,i=void 0===o?this._getPersonaControl:o,a=r.onRenderPersonaCoin,s=void 0===a?this._getPersonaCoinControl:a;return e.map((function(e,r){var o=t?i(e,n._getPersonaControl):s(e,n._getPersonaCoinControl);return y.createElement("li",{key:(t?"persona":"personaCoin")+"-"+r,className:n._classNames.member},e.onClick?n._getElementWithOnClickEvent(o,e,r):n._getElementWithoutOnClickEvent(o,e,r))}))},t.prototype._getElementWithOnClickEvent=function(e,t,n){var r=t.keytipProps;return y.createElement(Vg,Object(m.a)({},Object(w.j)(t,w.e),this._getElementProps(t,n),{keytipProps:r,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n){return y.createElement("div",Object(m.a)({},Object(w.j)(t,w.e),this._getElementProps(t,n)),e)},t.prototype._getElementProps=function(e,t){var n=this._classNames;return{key:(e.imageUrl?"i":"")+t,"data-is-focusable":!0,className:n.itemButton,title:e.personaName,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case Pg.descriptive:return this._getDescriptiveOverflowElement(e);case Pg.downArrow:return this._getIconElement("ChevronDown");case Pg.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map((function(e){return e.personaName})).join(", "),r=Object(m.a)({title:n},this.props.overflowButtonProps),o=Math.max(e.length,0),i=this._classNames;return y.createElement(Vg,Object(m.a)({},r,{ariaDescription:r.title,className:i.descriptiveOverflowButton}),y.createElement(re,{size:t,onRenderInitials:this._renderInitialsNotPictured(o),initialsColor:d.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,r=t.personaSize,o=this._classNames;return y.createElement(Vg,Object(m.a)({},n,{className:o.overflowButton}),y.createElement(re,{size:r,onRenderInitials:this._renderInitials(e,!0),initialsColor:d.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,r=this._classNames;return y.createElement(Vg,Object(m.a)({},t,{className:r.addButton}),y.createElement(re,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return y.createElement(N.a,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return y.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:u.size32},t}(y.Component),ep={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},tp=Object(M.a)($g,(function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,i=void 0===o?2:o,a=r.palette,s=r.fonts,l=Object(I.R)(ep,r),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,r.fonts.medium,{width:"auto"},n],addButton:[l.addButton,Object(I.Q)(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,Object(I.Q)(r,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:2*i+"px"}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+i+"px"}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:i+"px"}],overflowButton:[l.overflowButton,Object(I.Q)(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:2*i+"px"}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[I.l]={color:"WindowText"},t)}],screenReaderOnly:I.ab}}),void 0,{scope:"Facepile"});Object(Rg.a)([{rawString:".callout_467cd672 .ms-Suggestions-itemButton{padding:0;border:none}.callout_467cd672 .ms-Suggestions{min-width:300px}"}]);var np="callout_467cd672";Object(Rg.a)([{rawString:".root_744a4167{min-width:260px}.suggestionsItem_744a4167{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_744a4167:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_744a4167:hover .closeButton_744a4167{display:block}.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167 .closeButton_744a4167:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_744a4167.suggestionsItemIsSuggested_744a4167 .itemButton_744a4167{color:HighlightText}}.suggestionsItem_744a4167 .closeButton_744a4167{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_744a4167 .closeButton_744a4167:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_744a4167{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_744a4167{padding-left:8px}[dir=rtl] .actionButton_744a4167{padding-right:8px}html[dir=ltr] .actionButton_744a4167{text-align:left}html[dir=rtl] .actionButton_744a4167{text-align:right}.actionButton_744a4167:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_744a4167:active,.actionButton_744a4167:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_744a4167 .ms-Button-icon{font-size:16px;width:25px}.actionButton_744a4167 .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_744a4167 .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_744a4167{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_744a4167{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_744a4167{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_744a4167{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_744a4167{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_744a4167{padding-left:14px}html[dir=rtl] .suggestionsSpinner_744a4167{padding-right:14px}html[dir=ltr] .suggestionsSpinner_744a4167{text-align:left}html[dir=rtl] .suggestionsSpinner_744a4167{text-align:right}.suggestionsSpinner_744a4167 .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_744a4167 .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_744a4167 .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_744a4167.itemButton_744a4167{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active){.itemButton_744a4167.itemButton_744a4167{color:WindowText}}.itemButton_744a4167.itemButton_744a4167:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_744a4167.closeButton_744a4167{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active){.closeButton_744a4167.closeButton_744a4167{color:WindowText}}.closeButton_744a4167.closeButton_744a4167:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_744a4167{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var rp="root_744a4167",op="suggestionsItem_744a4167",ip="closeButton_744a4167",ap="suggestionsItemIsSuggested_744a4167",sp="itemButton_744a4167",lp="actionButton_744a4167",cp="buttonSelected_744a4167",up="suggestionsTitle_744a4167",Ap="suggestionsContainer_744a4167",dp="suggestionsNone_744a4167",gp="suggestionsSpinner_744a4167",pp="suggestionsAvailable_744a4167",hp=i,fp=Object(D.a)(),mp=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,r=t.RenderSuggestion,o=t.onClick,i=t.className,a=t.id,s=t.onRemoveItem,l=t.isSelectedOverride,c=t.removeButtonAriaLabel,u=t.styles,A=t.theme,d=u?fp(u,{theme:A,className:i,suggested:n.selected||l}):{root:Object(ve.a)("ms-Suggestions-item",hp.suggestionsItem,(e={},e["is-suggested "+hp.suggestionsItemIsSuggested]=n.selected||l,e),i),itemButton:Object(ve.a)("ms-Suggestions-itemButton",hp.itemButton),closeButton:Object(ve.a)("ms-Suggestions-closeButton",hp.closeButton)};return y.createElement("div",{className:d.root,role:"presentation"},y.createElement(ti,{onClick:o,className:d.itemButton,id:a,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},r(n.item,this.props)),this.props.showRemoveButton?y.createElement(co,{iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},title:c,ariaLabel:c,onClick:s,className:d.closeButton}):null)},t}(y.Component);Object(Rg.a)([{rawString:".suggestionsContainer_98495a3a{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_98495a3a .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_98495a3a .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_98495a3a .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var yp="suggestionsContainer_98495a3a",Ip=a,Cp=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=y.createRef(),n.SuggestionsItemOfProperType=mp,n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},Object(se.a)(n),n.currentIndex=-1,n}return Object(m.c)(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!0,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.suggestionsItemClassName,o=t.resultsMaximumNumber,i=t.showRemoveButtons,a=t.suggestionsContainerAriaLabel,s=this.SuggestionsItemOfProperType,l=this.props.suggestions;return o&&(l=l.slice(0,o)),y.createElement("div",{className:Object(ve.a)("ms-Suggestions-container",Ip.suggestionsContainer),id:"suggestion-list",role:"list","aria-label":a},l.map((function(t,o){return y.createElement("div",{ref:t.selected||o===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:o,id:"sug-"+o,role:"listitem","aria-label":t.ariaLabel},y.createElement(s,{id:"sug-item"+o,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,o),className:r,showRemoveButton:i,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,o),isSelectedOverride:o===e.currentIndex}))})))},t.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},t}(y.Component);Object(Rg.a)([{rawString:".root_6d187696{min-width:260px}.actionButton_6d187696{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_6d187696{text-align:left}html[dir=rtl] .actionButton_6d187696{text-align:right}.actionButton_6d187696:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_6d187696:active,.actionButton_6d187696:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_6d187696 .ms-Button-icon{font-size:16px;width:25px}.actionButton_6d187696 .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_6d187696 .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_6d187696{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_6d187696:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active){.buttonSelected_6d187696:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.buttonSelected_6d187696{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_6d187696{font-size:12px}.suggestionsSpinner_6d187696{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_6d187696{padding-left:14px}html[dir=rtl] .suggestionsSpinner_6d187696{padding-right:14px}html[dir=ltr] .suggestionsSpinner_6d187696{text-align:left}html[dir=rtl] .suggestionsSpinner_6d187696{text-align:right}.suggestionsSpinner_6d187696 .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_6d187696 .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_6d187696 .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_6d187696{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active){.itemButton_6d187696{color:WindowText}}.screenReaderOnly_6d187696{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var Ep,bp="root_6d187696",vp="actionButton_6d187696",Bp="buttonSelected_6d187696",Mp="suggestionsTitle_6d187696",Dp="suggestionsSpinner_6d187696",xp="itemButton_6d187696",wp="screenReaderOnly_6d187696",Qp=s;!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(Ep||(Ep={}));var Sp=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,r=t.onExecute,o=t.isSelected,i=t.id,a=t.className;return r?y.createElement("div",{id:i,onClick:r,className:Object(ve.a)("ms-Suggestions-sectionButton",a,Qp.actionButton,(e={},e["is-selected "+Qp.buttonSelected]=o,e))},n()):y.createElement("div",{id:i,className:Object(ve.a)("ms-Suggestions-section",a,Qp.suggestionsTitle)},n())},t}(y.Component),Np=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=y.createRef(),n._suggestions=y.createRef(),n.SuggestionsOfProperType=Cp,Object(se.a)(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},(function(){t.resetSelectedItem()}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,r=e.footerItemsProps,o=e.suggestionsAvailableAlertText,i=Object(I.eb)(I.ab),a=this.state.suggestions&&this.state.suggestions.length>0&&o;return y.createElement("div",{className:Object(ve.a)("ms-Suggestions",t||"",Qp.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),r&&this.renderFooterItems(),a?y.createElement("span",{role:"alert","aria-live":"polite",className:i},o):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement},enumerable:!0,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,r=t.footerItemsProps,o=this.state,i=o.selectedHeaderIndex,a=o.selectedFooterIndex;if(n&&-1!==i&&i<n.length){var s=n[i];s.onExecute&&s.onExecute()}else if(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(r&&-1!==a&&a<r.length){var l=r[a];l.onExecute&&l.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(n=this._suggestions.current)||void 0===n?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,r,o,i=this.state,a=i.selectedHeaderIndex,s=i.selectedFooterIndex,l=!1;return e===ae.a.down?-1!==a||(null===(t=this._suggestions.current)||void 0===t?void 0:t.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectNextItem(Ep.header),l=!0):(null===(n=this._suggestions.current)||void 0===n?void 0:n.hasSuggestionSelected())?(this.selectNextItem(Ep.suggestion),l=!0):-1!==s&&(this.selectNextItem(Ep.footer),l=!0):this.selectFirstItem():e===ae.a.up?-1!==a||(null===(r=this._suggestions.current)||void 0===r?void 0:r.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectPreviousItem(Ep.header),l=!0):(null===(o=this._suggestions.current)||void 0===o?void 0:o.hasSuggestionSelected())?(this.selectPreviousItem(Ep.suggestion),l=!0):-1!==s&&(this.selectPreviousItem(Ep.footer),l=!0):this.selectLastItem():e!==ae.a.enter&&e!==ae.a.tab||this.hasSelection()&&(this.executeSelectedAction(),l=!0),l},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,r=t.suggestionsHeaderContainerAriaLabel,o=this.state.selectedHeaderIndex;return n?y.createElement("div",{className:Object(ve.a)("ms-Suggestions-headerContainer",Qp.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?y.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},y.createElement(Sp,{id:"sug-header-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,r=t.suggestionsFooterContainerAriaLabel,o=this.state.selectedFooterIndex;return n?y.createElement("div",{className:Object(ve.a)("ms-Suggestions-footerContainer",Qp.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?y.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},y.createElement(Sp,{id:"sug-footer-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return y.createElement(e,Object(m.a)({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)}else this._selectNextItemOfItemType(e)},t.prototype.selectPreviousItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)}else this._selectPreviousItemOfItemType(e)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(Ep.header)||this._selectNextItemOfItemType(Ep.suggestion)||this._selectNextItemOfItemType(Ep.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(Ep.footer)||this._selectPreviousItemOfItemType(Ep.suggestion)||this._selectPreviousItemOfItemType(Ep.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,r;if(void 0===t&&(t=-1),e===Ep.suggestion){if(this.state.suggestions.length>t+1)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===Ep.header,i=o?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&i.length>t+1)for(var a=t+1;a<i.length;a++){var s=i[a];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:o?a:-1}),this.setState({selectedFooterIndex:o?-1:a}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,r;if(e===Ep.suggestion){if((o=void 0!==t?t:this.state.suggestions.length)>0)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o,i=e===Ep.header,a=i?this.props.headerItemsProps:this.props.footerItemsProps;if(a)if((o=void 0!==t?t:a.length)>0)for(var s=o-1;s>=0;s--){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:i?s:-1}),this.setState({selectedFooterIndex:i?-1:s}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case Ep.header:return this.state.selectedHeaderIndex;case Ep.suggestion:return this._suggestions.current.currentIndex;case Ep.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case Ep.header:return Ep.suggestion;case Ep.suggestion:return Ep.footer;case Ep.footer:return Ep.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case Ep.header:return Ep.footer;case Ep.suggestion:return Ep.header;case Ep.footer:return Ep.suggestion}},t}(y.Component),kp=o,Tp=function(e){function t(t){var n=e.call(this,t)||this;return n.root=y.createRef(),n.suggestionsControl=y.createRef(),n.SuggestionsControlOfProperType=Np,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var r=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(r),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,r){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(r)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case ae.a.escape:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case ae.a.tab:case ae.a.enter:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case ae.a.del:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case ae.a.up:case ae.a.down:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new le.a(n),Object(se.a)(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!0,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return y.createElement("div",{ref:this.root,className:Object(ve.a)("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?y.createElement(Rn,Object(m.a)({className:kp.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:Je.bottomLeftEdge,directionalHintForRTL:Je.bottomRightEdge,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),y.createElement(e,Object(m.a)({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this,n=e,r=e;if(Array.isArray(n))this.updateSuggestions(n,!0);else if(r&&r.then){var o=this.currentPromise=r;o.then((function(e){o===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(e,!0)}))}},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(y.Component);Object(Rg.a)([{rawString:".resultContent_9816a275{display:table-row}.resultContent_9816a275 .resultItem_9816a275{display:table-cell;vertical-align:bottom}.peoplePickerPersona_9816a275{width:180px}.peoplePickerPersona_9816a275 .ms-Persona-details{width:100%}.peoplePicker_9816a275 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_9816a275{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(Tp),Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return n=Object(m.a)({},e),Object(m.a)({},t),y.createElement("div",{className:Object(ve.a)("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_9816a275")},y.createElement(qg,Object(m.a)({presence:void 0!==n.presence?n.presence:A.none,size:u.size40,className:Object(ve.a)("ms-PeoplePicker-Persona","peoplePickerPersona_9816a275"),showSecondaryText:!0},n)));var n},createGenericItem:Rp},t}(jp);function Rp(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=Object(S.a)(e,Object(Q.a)())),n}var Op=function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}return e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e}(),_p=n(34);Object(_p.a)("@fluentui/react-focus","8.0.6");var Fp,zp,Pp={host:"ms-HoverCard-host"};!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Fp||(Fp={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(zp||(zp={}));var Up,Gp={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Up||(Up={}));var Hp=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?Je.bottomLeftEdge:r,i=e.directionalHintFixed,a=e.targetElement,s=e.firstFocus,l=e.trapFocus,c=e.onLeave,u=e.className,A=e.finalHeight,d=e.content,g=e.calloutProps,p=Object(m.a)(Object(m.a)(Object(m.a)({},Object(w.j)(e,w.h)),{className:u,target:a,isBeakVisible:!1,directionalHint:o,directionalHintFixed:i,finalHeight:A,minPagePadding:24,onDismiss:c,gapSpace:n}),g);return y.createElement(y.Fragment,null,l?y.createElement(Fa,Object(m.a)({},p,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!s}}),d):y.createElement(Rn,Object(m.a)({},p),d))},Yp=Object(D.a)(),Vp=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=y.createRef(),n._onKeyDown=function(e){e.which===ae.a.escape&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return y.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),y.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},y.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new le.a(n),Object(se.a)(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,i=e.mode,a=e.className,s=this.state,l=s.needsScroll,c=s.firstFrameRendered,u=n+r;this._classNames=Yp(t,{theme:o,compactCardHeight:n,className:a,expandedCardHeight:r,needsScroll:l,expandedCardFirstFrameRendered:i===Up.expanded&&c});var A=y.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return y.createElement(Hp,Object(m.a)({},this.props,{content:A,finalHeight:u,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(y.Component),Wp=Object(M.a)(Vp,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=Object(I.R)(Gp,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[I.l]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Kp={root:"ms-PlainCard-root"};var Zp=Object(D.a)(),Jp=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ae.a.escape&&n.props.onLeave&&n.props.onLeave(e)},Object(se.a)(n),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Zp(t,{theme:n,className:r});var o=y.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return y.createElement(Hp,Object(m.a)({},this.props,{content:o,className:this._classNames.root}))},t}(y.Component),qp=Object(M.a)(Jp,(function(e){var t,n=e.theme,r=e.className;return{root:[Object(I.R)(Kp,n).root,{pointerEvents:"auto",selectors:(t={},t[I.l]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Xp=Object(D.a)(),$p=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=y.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Up.compact,openMode:"keydown"===e.type?Fp.hotKey:Fp.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ae.a.escape)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ae.a.escape||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Up.compact,openMode:Fp.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Up.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Up.compact,openMode:Fp.hover},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Up.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Up.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,i=void 0===o||o,a=e.styles,s=e.theme,l=e.className,c=e.type,u=e.plainCardProps,A=e.trapFocus,d=e.setInitialFocus,g=this.state,p=g.isHoverCardVisible,h=g.mode,f=g.openMode,I=r||Object(Ee.a)("hoverCard");this._classNames=Xp(a,{theme:s,className:l});var C=Object(m.a)(Object(m.a)({},Object(w.j)(this.props,w.h)),{id:I,trapFocus:!!A,firstFocus:d||f===Fp.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),E=Object(m.a)(Object(m.a)(Object(m.a)({},t),C),{mode:h}),b=Object(m.a)(Object(m.a)({},u),C);return y.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&p?I:void 0,"data-is-focusable":!this.props.target},n,p&&(c===zp.expanding?y.createElement(Wp,Object(m.a)({},E)):y.createElement(qp,Object(m.a)({},b))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Object(we.a)().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:ae.a.c,type:zp.expanding},t}(y.Component),eh=Object(M.a)($p,(function(e){var t=e.className,n=e.theme;return{host:[Object(I.R)(Pp,n).host,t]}}),void 0,{scope:"HoverCard"}),th=n(17);function nh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Object(I.jb)(n,t)}function rh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Object(I.jb)(n,t)}function oh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Object(I.jb)(n,t)}function ih(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Object(I.jb)(n,t)}function ah(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Object(I.jb)(n,t)}function sh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Object(I.jb)(n,t)}function lh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Object(I.jb)(n,t)}function ch(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Object(I.jb)(n,t)}function uh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Object(I.jb)(n,t)}function Ah(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Object(I.jb)(n,t)}function dh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Object(I.jb)(n,t)}function gh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Object(I.jb)(n,t)}function ph(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Object(I.jb)(n,t)}function hh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Object(I.jb)(n,t)}function fh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Object(I.jb)(n,t)}function mh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Object(I.jb)(n,t)}function yh(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Object(I.jb)(n,t)}function Ih(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Object(I.jb)(n,t)}function Ch(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Object(I.jb)(n,t)}var Eh=function(){Object(I.ib)("trash","delete"),Object(I.ib)("onedrive","onedrivelogo"),Object(I.ib)("alertsolid12","eventdatemissed12"),Object(I.ib)("sixpointstar","6pointstar"),Object(I.ib)("twelvepointstar","12pointstar"),Object(I.ib)("toggleon","toggleleft"),Object(I.ib)("toggleoff","toggleright")};Object(_p.a)("@fluentui/font-icons-mdl2","8.0.3");function bh(e,t){void 0===e&&(e="https://spoprod-a.akamaihd.net/files/fabric/assets/icons/"),[nh,rh,oh,ih,ah,sh,lh,ch,uh,Ah,dh,gh,ph,hh,fh,mh,yh,Ih,Ch].forEach((function(n){return n(e,t)})),Eh()}var vh=n(136),Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,r=e.theme,o=e.disabled,i=e.visible,a=Object(D.a)()(n,{theme:r,disabled:o,visible:i});return y.createElement("div",{className:a.container},y.createElement("span",{className:a.root},t))},t}(y.Component),Mh=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},Dh=function(e){return function(t){return Object(I.db)({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},xh=Object(M.a)(Bh,(function(e){var t,n=e.theme,r=e.disabled,o=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},r&&{opacity:.5,selectors:(t={},t[I.l]={color:"GrayText",opacity:1},t)},!o&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},r&&{color:n.palette.neutralTertiaryAlt}]}}),void 0,{scope:"KeytipContent"}),wh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,r=t.offset,o=t.overflowSetSequence,i=this.props.calloutProps;return e=hr(o?pr(n,o):n),r&&(i=Object(m.a)(Object(m.a)({},i),{coverTarget:!0,directionalHint:Je.topLeftEdge})),i&&void 0!==i.directionalHint||(i=Object(m.a)(Object(m.a)({},i),{directionalHint:Je.bottomCenter})),y.createElement(Rn,Object(m.a)({},i,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:r?Dh(r):Mh,preventDismissOnScroll:!0,target:e}),y.createElement(xh,Object(m.a)({},this.props)))},t}(y.Component);function Qh(e){var t=yr(e),n=t.keytipId,r=t.ariaDescribedBy;return y.useCallback((function(e){if(e){var t=Nh(e,ir)||e,o=Nh(e,ar)||t,i=Nh(e,sr)||o;Sh(t,ir,n),Sh(o,ar,n),Sh(i,"aria-describedby",r,!0)}}),[n,r])}function Sh(e,t,n,r){if(void 0===r&&(r=!1),e&&n){var o=n;if(r){var i=e.getAttribute(t);i&&-1===i.indexOf(n)&&(o=i+" "+n)}e.setAttribute(t,o)}}function Nh(e,t){return e.querySelector("["+t+"]")}var kh=function(e){return{root:[{zIndex:I.F.KeytipLayer}]}},Th=function(){function e(){this.nodeMap={},this.root={id:lr,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var r=this._getFullSequence(e),o=gr(r);r.pop();var i=this._getParentID(r),a=this._createNode(o,i,[],e,n);this.nodeMap[t]=a;var s=this.getNode(i);s&&s.children.push(o)},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),r=gr(n);n.pop();var o=this._getParentID(n),i=this.nodeMap[t],a=i.parent,s=this.getNode(a),l=this.getNode(o);if(i){if(s&&a!==o){var c=s.children.indexOf(i.id);c>=0&&s.children.splice(c,1)}if(l&&i.id!==r){var u=l.children.indexOf(i.id);u>=0?l.children[u]=r:l.children.push(r)}i.id=r,i.keySequences=e.keySequences,i.overflowSetSequence=e.overflowSetSequence,i.onExecute=e.onExecute,i.onReturn=e.onReturn,i.hasDynamicChildren=e.hasDynamicChildren,i.hasMenu=e.hasMenu,i.parent=o,i.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),r=gr(n);n.pop();var o=this._getParentID(n),i=this.getNode(o);i&&i.children.splice(i.children.indexOf(r),1),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t){var n=this,r=this.getNodes(t.children);return Object(dr.d)(r,(function(t){return n._getNodeSequence(t)===e&&!t.disabled}))},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter((function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled}))},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce((function(e,r){return n.indexOf(t.nodeMap[r].id)>=0&&!t.nodeMap[r].persisted&&e.push(t.nodeMap[r].id),e}),[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce((function(n,r){return e.indexOf(t.nodeMap[r].id)>=0&&n.push(t.nodeMap[r]),n}),[])},e.prototype.getNode=function(e){var t=Object(Ye.f)(this.nodeMap);return Object(dr.d)(t,(function(t){return t.id===e}))},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=Object(m.e)(e.keySequences);e.overflowSetSequence&&(t=pr(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:gr(t),r=!1;if(this.currentKeytip.overflowSetSequence)r=gr(this.currentKeytip.keySequences)===n;return r||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:gr(e)},e.prototype._getFullSequence=function(e){var t=Object(m.e)(e.keySequences);return e.overflowSetSequence&&(t=pr(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=Object(m.e)(e.keySequences);return e.overflowSetSequence&&(t=pr(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,r,o){var i=this,a=r.keySequences,s=r.hasDynamicChildren,l=r.overflowSetSequence,c=r.hasMenu,u=r.onExecute,A=r.onReturn,d=r.disabled,g={id:e,keySequences:a,overflowSetSequence:l,parent:t,children:n,onExecute:u,onReturn:A,hasDynamicChildren:s,hasMenu:c,disabled:d,persisted:o};return g.children=Object.keys(this.nodeMap).reduce((function(t,n){return i.nodeMap[n].parent===e&&t.push(i.nodeMap[n].id),t}),[]),g},e}();function jh(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,r=t.modifierKeys;if(!n&&r||n&&!r)return!1;if(n&&r){if(n.length!==r.length)return!1;n=n.sort(),r=r.sort();for(var o=0;o<n.length;o++)if(n[o]!==r[o])return!1}return!0}function Lh(e,t){return!!Object(dr.d)(e,(function(e){return jh(e,t)}))}var Rh={key:Object(qe.a)()?"Control":"Meta",modifierKeys:[ae.a.alt]},Oh=Rh,_h={key:"Escape"},Fh=Object(D.a)(),zh=function(e){function t(t,n){var r=e.call(this,t,n)||this;r._keytipManager=Ar.getInstance(),r._delayedKeytipQueue=[],r._keyHandled=!1,r._onDismiss=function(e){r.state.inKeytipMode&&r._exitKeytipMode(e)},r._onKeyDown=function(e){r._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":r.state.inKeytipMode&&(r._keyHandled=!0,r._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var n={key:t};n.modifierKeys=r._getModifierKey(t,e),r.processTransitionInput(n,e)}},r._onKeyPress=function(e){r.state.inKeytipMode&&!r._keyHandled&&(r.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},r._onKeytipAdded=function(e){var t,n=e.keytip,o=e.uniqueID;if(r._keytipTree.addNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(gr(n.keySequences)),r._keytipTree.currentKeytip&&r._keytipTree.currentKeytip.hasDynamicChildren&&r._keytipTree.currentKeytip.children.indexOf(n.id)<0)){var i=r._keytipTree.getNode(r._keytipTree.currentKeytip.id);i&&(r._keytipTree.currentKeytip=i)}r._persistedKeytipChecks(n)},r._onKeytipUpdated=function(e){var t,n=e.keytip,o=e.uniqueID;r._keytipTree.updateNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(gr(n.keySequences))),r._persistedKeytipChecks(n)},r._persistedKeytipChecks=function(e){if(r._newCurrentKeytipSequences&&Object(dr.b)(e.keySequences,r._newCurrentKeytipSequences)&&r._triggerKeytipImmediately(e),r._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=pr(t,e.overflowSetSequence)),r._keytipTree.currentKeytip=r._keytipTree.getNode(gr(t))}},r._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._removeKeytipFromQueue(gr(t.keySequences)),r._keytipTree.removeNode(t,n),r._setKeytips()},r._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.addNode(t,n,!0)},r._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.removeNode(t,n)},r._onPersistedKeytipExecute=function(e){r._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},r._setInKeytipMode=function(e){r.setState({inKeytipMode:e}),r._keytipManager.inKeytipMode=e},r._warnIfDuplicateKeytips=function(){var e=r._getDuplicateIds(r._keytipTree.getChildren());e.length&&Object(Uo.b)("Duplicate keytips found for "+e.join(", "))},r._getDuplicateIds=function(e){var t={};return e.filter((function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]}))},Object(se.a)(r),r._events=new Ue.a(r),r._async=new le.a(r);var o=Object(m.e)(r._keytipManager.getKeytips());return r.state={inKeytipMode:!1,keytips:o,visibleKeytips:r._getVisibleKeytips(o)},r._buildTree(),r._currentSequence="",r._events.on(r._keytipManager,On.KEYTIP_ADDED,r._onKeytipAdded),r._events.on(r._keytipManager,On.KEYTIP_UPDATED,r._onKeytipUpdated),r._events.on(r._keytipManager,On.KEYTIP_REMOVED,r._onKeytipRemoved),r._events.on(r._keytipManager,On.PERSISTED_KEYTIP_ADDED,r._onPersistedKeytipAdded),r._events.on(r._keytipManager,On.PERSISTED_KEYTIP_REMOVED,r._onPersistedKeytipRemoved),r._events.on(r._keytipManager,On.PERSISTED_KEYTIP_EXECUTE,r._onPersistedKeytipExecute),r}return Object(m.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.styles,o=this.state,i=o.keytips,a=o.visibleKeytips;return this._classNames=Fh(r,{}),y.createElement(Ln,{styles:kh},y.createElement("span",{id:lr,className:this._classNames.innerContent},""+n+cr),i&&i.map((function(t,n){return y.createElement("span",{key:n,id:gr(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(cr))})),a&&a.map((function(e){return y.createElement(wh,Object(m.a)({key:gr(e.keySequences)},e))})))},t.prototype.componentDidMount=function(){this._events.on(window,"mouseup",this._onDismiss,!0),this._events.on(window,"pointerup",this._onDismiss,!0),this._events.on(window,"resize",this._onDismiss),this._events.on(window,"keydown",this._onKeyDown,!0),this._events.on(window,"keypress",this._onKeyPress,!0),this._events.on(window,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,On.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,On.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;Lh(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):Lh(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):Lh(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,r=this._keytipTree.currentKeytip;if(r){var o=this._keytipTree.getExactMatchedNode(n,r);if(o){this._keytipTree.currentKeytip=r=o;var i=this._keytipTree.getChildren();return r.onExecute&&(r.onExecute(this._getKtpExecuteTarget(r),this._getKtpTarget(r)),r=this._keytipTree.currentKeytip),0!==i.length||r.hasDynamicChildren||r.hasMenu?(this.showKeytips(i),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}var a=this._keytipTree.getPartiallyMatchedNodes(n,r);if(a.length>0){var s=a.filter((function(e){return!e.persisted})).map((function(e){return e.id}));this.showKeytips(s),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var r=n[t],o=gr(r.keySequences);r.overflowSetSequence&&(o=gr(pr(r.keySequences,r.overflowSetSequence))),e.indexOf(o)>=0?r.visible=!0:r.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode())},t.prototype._buildTree=function(){this._keytipTree=new Th;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],r=this._keytipManager.keytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}for(var o=0,i=Object.keys(this._keytipManager.persistedKeytips);o<i.length;o++){n=i[o],r=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(gr(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t={};return e.filter((function(e){var n=gr(e.keySequences);return e.overflowSetSequence&&(n=gr(pr(e.keySequences,e.overflowSetSequence))),t[n]=t[n]?t[n]+1:1,e.visible&&1===t[n]}))},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(ae.a.alt),t.ctrlKey&&"Control"!==e&&n.push(ae.a.ctrl),t.shiftKey&&"Shift"!==e&&n.push(ae.a.shift),t.metaKey&&"Meta"!==e&&n.push(ae.a.leftWindow),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=Object(m.e)(e.keySequences);if(e.overflowSetSequence&&(t=pr(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(gr(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300))},t.prototype._getKtpExecuteTarget=function(e){return Object(we.a)().querySelector(fr(e.id))},t.prototype._getKtpTarget=function(e){return Object(we.a)().querySelector(hr(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!Object(dr.b)(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[Rh],keytipExitSequences:[Oh],keytipReturnSequences:[_h],content:""},t}(y.Component),Ph=Object(M.a)(zh,(function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}}),void 0,{scope:"KeytipLayer"});function Uh(e){for(var t={},n=0,r=e.keytips;n<r.length;n++){Gh(t,[],r[n])}return t}function Gh(e,t,n){var r=n.sequence?n.sequence:n.content.toLocaleLowerCase(),o=t.concat(r),i=Object(m.a)(Object(m.a)({},n.optionalProps),{keySequences:o,content:n.content});if(e[n.id]=i,n.children)for(var a=0,s=n.children;a<s.length;a++){Gh(e,o,s[a])}}n(87);var Hh,Yh,Vh=function(e){var t=e.id,n=e.className;return y.useEffect((function(){Qn(t)}),[]),Wh((function(){Qn(t)})),y.createElement("div",Object(m.a)({},e,{className:Object(ve.a)("ms-LayerHost",n)}))},Wh=function(e){var t=y.useRef(e);t.current=e,y.useEffect((function(){return function(){t.current&&t.current()}}),[])},Kh=n(257),Zh=n(258),Jh=Object(D.a)(),qh=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._onMouseDown=function(e){var t=n.props,r=t.isEnabled,o=t.onShouldStartSelection;n._isMouseEventOnScrollbar(e)||n._isInSelectionToggle(e)||n._isTouch||!r||n._isDragStartInSelection(e)||o&&!o(e)||n._scrollableSurface&&0===e.button&&n._root.current&&(n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(window,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(window,"click",n._onMouseUp,!0),n._autoScroll=new Kh.a(n._root.current),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e))},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0))},Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),n.state={dragRect:void 0},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this._scrollableParent=Object(De.f)(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,r=e.theme,o=e.className,i=e.styles,a=this.state.dragRect,s=Jh(i,{theme:r,className:o});return y.createElement("div",Object(m.a)({},t,{className:s.root,ref:this._root}),n,a&&y.createElement("div",{className:s.dragMask}),a&&y.createElement("div",{className:s.box,style:a},y.createElement("div",{className:s.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth;if(n){var r=t.getBoundingClientRect();if(Object(Q.a)(this.props.theme)){if(e.clientX<r.left+n)return!0}else if(e.clientX>r.left+t.clientWidth)return!0;if(e.clientY>r.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollLeft-this._scrollableSurface.scrollLeft),top:this._rootRect.top+(this._scrollTop-this._scrollableSurface.scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame((function(){t._onMouseMove(e)})),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||Object(Zh.c)(this._dragOrigin,n)>5){if(!this.state.dragRect){var r=this.props.selection;e.shiftKey||r.setAllSelected(!1),this._preservedIndicies=r&&r.getSelectedIndices&&r.getSelectedIndices()}var o=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},i={left:Math.min(this._dragOrigin.left||0,o.left),top:Math.min(this._dragOrigin.top||0,o.top),width:Math.abs(o.left-(this._dragOrigin.left||0)),height:Math.abs(o.top-(this._dragOrigin.top||0))};this._evaluateSelection(i,t),this.setState({dragRect:i})}return!1}},t.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),r=0;r<n.length;r++){var o=n[r],i=Number(o.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){var a=o.getBoundingClientRect();if(this._isPointInRectangle(a,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,r=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var o=0;o<r.length;o++){var i=r[o],a=i.getAttribute("data-selection-index"),s=this._itemRectCache[a];s||(s={left:(s=i.getBoundingClientRect()).left-t.left,top:s.top-t.top,width:s.width,height:s.height,right:s.left-t.left+s.width,bottom:s.top-t.top+s.height}).width>0&&s.height>0&&(this._itemRectCache[a]=s),s.top<e.top+e.height&&s.bottom>e.top&&s.left<e.left+e.width&&s.right>e.left?this._selectedIndicies[a]=!0:delete this._selectedIndicies[a]}var l=this._allSelectedIndices||{};for(var a in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(a)&&(this._allSelectedIndices[a]=!0);if(this._preservedIndicies)for(var c=0,u=this._preservedIndicies;c<u.length;c++){a=u[c];this._allSelectedIndices[a]=!0}var A=!1;for(var a in this._allSelectedIndices)if(this._allSelectedIndices[a]!==l[a]){A=!0;break}if(!A)for(var a in l)if(this._allSelectedIndices[a]!==l[a]){A=!0;break}if(A){n.setChangeEvents(!1),n.setAllSelected(!1);for(var d=0,g=Object.keys(this._allSelectedIndices);d<g.length;d++){a=g[d];n.setIndexSelected(Number(a),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t}(y.Component),Xh=Object(M.a)(qh,(function(e){var t,n,r,o=e.theme,i=e.className,a=o.palette;return{root:[i,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:(t={},t[I.l]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid "+a.themePrimary,pointerEvents:"none",zIndex:10,selectors:(n={},n[I.l]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:a.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:(r={},r[I.l]={background:"none",backgroundColor:"transparent"},r)}]}}),void 0,{scope:"MarqueeSelection"});!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Hh||(Hh={}));var $h,ef,tf,nf=((Yh={})[Hh.info]="Info",Yh[Hh.warning]="Info",Yh[Hh.error]="ErrorBadge",Yh[Hh.blocked]="Blocked2",Yh[Hh.severeWarning]="Warning",Yh[Hh.success]="Completed",Yh),rf=Object(D.a)(),of=function(e){switch(e){case Hh.blocked:case Hh.error:case Hh.severeWarning:return"assertive"}return"polite"},af=y.forwardRef((function(e,t){var n=_A(!1),r=n[0],o=n[1].toggle,i=oi("MessageBar"),a=e.actions,s=e.className,l=e.children,c=e.overflowButtonAriaLabel,u=e.dismissIconProps,A=e.styles,d=e.theme,g=e.messageBarType,p=void 0===g?Hh.info:g,h=e.onDismiss,f=void 0===h?void 0:h,I=e.isMultiline,C=void 0===I||I,E=e.truncated,b=e.dismissButtonAriaLabel,v=e.messageBarIconProps,B=Object(w.j)(e,w.k,["className"]),M=rf(A,{theme:d,messageBarType:p||Hh.info,onDismiss:void 0!==f,actions:void 0!==a,truncated:E,isMultiline:C,expandSingleLine:r,className:s}),D={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},x=a||f?{"aria-describedby":i,role:"region"}:{},Q=a?y.createElement("div",{className:M.actions},a):null,S=f?y.createElement(co,{disabled:!1,className:M.dismissal,onClick:f,iconProps:u||{iconName:"Clear"},title:b,ariaLabel:b}):null;return y.createElement("div",Object(m.a)({ref:t,className:M.root},x),y.createElement("div",{className:M.content},y.createElement("div",{className:M.iconContainer,"aria-hidden":!0},v?y.createElement(N.a,Object(m.a)({},v,{className:Object(ve.a)(M.icon,v.className)})):y.createElement(N.a,{iconName:nf[p],className:M.icon})),y.createElement("div",{className:M.text,id:i,role:"status","aria-live":of(p)},y.createElement("span",Object(m.a)({className:M.innerText},B),y.createElement(de.a,null,y.createElement("span",null,l)))),!C&&!Q&&E&&y.createElement("div",{className:M.expandSingleLine},y.createElement(co,{disabled:!1,className:M.expand,onClick:o,iconProps:D,ariaLabel:c,"aria-expanded":r})),!C&&Q,!C&&S&&y.createElement("div",{className:M.dismissSingleLine},S),C&&S),C&&Q)}));af.displayName="MessageBar";var sf,lf={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},cf=(($h={})[Hh.error]="errorBackground",$h[Hh.blocked]="errorBackground",$h[Hh.success]="successBackground",$h[Hh.warning]="warningBackground",$h[Hh.severeWarning]="severeWarningBackground",$h[Hh.info]="infoBackground",$h),uf=((ef={})[Hh.error]="rgba(255, 0, 0, 0.3)",ef[Hh.blocked]="rgba(255, 0, 0, 0.3)",ef[Hh.success]="rgba(48, 241, 73, 0.3)",ef[Hh.warning]="rgba(255, 254, 57, 0.3)",ef[Hh.severeWarning]="rgba(255, 0, 0, 0.3)",ef[Hh.info]="Window",ef),Af=((tf={})[Hh.error]="errorIcon",tf[Hh.blocked]="errorIcon",tf[Hh.success]="successIcon",tf[Hh.warning]="warningIcon",tf[Hh.severeWarning]="severeWarningIcon",tf[Hh.info]="infoIcon",tf),df=Object(M.a)(af,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.onDismiss,c=e.truncated,u=e.isMultiline,A=e.expandSingleLine,d=e.messageBarType,g=void 0===d?Hh.info:d,p=a.semanticColors,h=a.fonts,f=Object(I.X)(0,I.t),y=Object(I.R)(lf,a),C={fontSize:I.o.xSmall,height:10,lineHeight:"10px",color:p.messageText,selectors:(t={},t[I.l]=Object(m.a)(Object(m.a)({},Object(I.S)()),{color:"WindowText"}),t)},E=[Object(I.Q)(a,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":C,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[y.root,h.medium,g===Hh.error&&y.error,g===Hh.blocked&&y.blocked,g===Hh.severeWarning&&y.severeWarning,g===Hh.success&&y.success,g===Hh.warning&&y.warning,u?y.multiline:y.singleline,!u&&l&&y.dismissalSingleLine,!u&&c&&y.expandingSingleLine,{background:p[cf[g]],color:p.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:p.messageLink,selectors:{":hover":{color:p.messageLinkHovered}}}},n[I.l]=Object(m.a)(Object(m.a)({},Object(I.S)()),{background:uf[g],border:"1px solid WindowText",color:"WindowText"}),n)},u&&{flexDirection:"column"},s],content:[y.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[y.iconContainer,{fontSize:I.o.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:p[Af[g]],selectors:(r={},r[I.l]=Object(m.a)(Object(m.a)({},Object(I.S)()),{color:"WindowText"}),r)},text:[y.text,Object(m.a)(Object(m.a)({minWidth:0,display:"flex",flexGrow:1,margin:8},h.small),{selectors:(o={},o[I.l]=Object(m.a)({},Object(I.S)()),o)}),!l&&{marginRight:12}],innerText:[y.innerText,{lineHeight:16,selectors:{"& span a":{paddingLeft:4}}},c&&{overflow:"visible",whiteSpace:"pre-wrap"},!u&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!u&&!c&&{selectors:(i={},i[f]={overflow:"visible",whiteSpace:"pre-wrap"},i)},A&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:y.dismissSingleLine,expandSingleLine:y.expandSingleLine,dismissal:[y.dismissal,E],expand:[y.expand,E],actions:[u?y.actions:y.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},u&&{marginBottom:8},l&&!u&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),gf={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},pf={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};function hf(e){return!!e&&!/^[a-z0-9+-.]+:\/\//i.test(e)}var ff,mf=Object(D.a)(),yf=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=y.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,o=t.groups,i=t.theme,a=mf(r,{theme:i,groups:o});return y.createElement("div",{className:a.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,o=r.styles,i=r.groups,a=r.theme,s=r.onRenderGroupHeader,l=void 0===s?n._renderGroupHeader:s,c=n._isGroupExpanded(e),u=mf(o,{theme:a,isGroup:!0,isExpanded:c,groups:i}),A=Object(m.a)(Object(m.a)({},e),{isExpanded:c,onHeaderClick:function(t,r){n._onGroupHeaderClicked(e,t)}});return y.createElement("div",{key:t,className:u.group},A.name?l(A,n._renderGroupHeader):null,y.createElement("div",{className:u.groupContent},n._renderLinks(A.links,0)))},n._renderGroupHeader=function(e){var t=n.props,r=t.styles,o=t.groups,i=t.theme,a=t.expandButtonAriaLabel,s=e.isExpanded,l=mf(r,{theme:i,isGroup:!0,isExpanded:s,groups:o}),c=(s?e.collapseAriaLabel:e.expandAriaLabel)||a,u=e.onHeaderClick,A=u?function(e){u(e,s)}:void 0;return y.createElement("button",{className:l.chevronButton,onClick:A,"aria-label":c,"aria-expanded":s},y.createElement(N.a,{className:l.chevronIcon,iconName:"ChevronDown"}),e.name)},Object(se.a)(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,o=e.isOnTop,i=e.theme;if(!n)return null;var a=n.map(this._renderGroup),s=mf(t,{theme:i,className:r,isOnTop:o,groups:n});return y.createElement(Te,{direction:Ae.vertical,componentRef:this._focusZone},y.createElement("nav",{role:"navigation",className:s.root,"aria-label":this.props.ariaLabel},a))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r=this.props,o=r.styles,i=r.groups,a=r.theme,s=e.icon||e.iconProps,l=this._isLinkSelected(e),c=e.ariaCurrent,u=void 0===c?"page":c,A=mf(o,{theme:a,isSelected:l,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(s?0:24),groups:i}),d=e.url&&e.target&&!hf(e.url)?"noopener noreferrer":void 0,g=this.props.linkAs?Object(jc.a)(this.props.linkAs,Ko):Ko,p=this.props.onRenderLink?Object(qa.a)(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return y.createElement(g,{className:A.link,styles:pf,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:d,disabled:e.disabled,"aria-current":l?u:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},p(e))},t.prototype._renderCompositeLink=function(e,t,n){var r=Object(m.a)({},Object(w.j)(e,w.h,["onClick"])),o=this.props,i=o.expandButtonAriaLabel,a=o.styles,s=o.groups,l=o.theme,c=mf(a,{theme:l,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:s}),u="";return e.links&&e.links.length>0&&(u=e.collapseAriaLabel||e.expandAriaLabel?e.isExpanded?e.collapseAriaLabel:e.expandAriaLabel:i?e.name+" "+i:e.name),y.createElement("div",Object(m.a)({},r,{key:e.key||t,className:c.compositeLink}),e.links&&e.links.length>0?y.createElement("button",{className:c.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":u,"aria-expanded":e.isExpanded?"true":"false"},y.createElement(N.a,{className:c.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,o=r.styles,i=r.groups,a=r.theme,s=mf(o,{theme:a,groups:i});return y.createElement("li",{key:e.key||t,role:"listitem",className:s.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,r){return n._renderLink(e,r,t)})),o=this.props,i=o.styles,a=o.groups,s=o.theme,l=mf(i,{theme:s,groups:a});return y.createElement("ul",{role:"list",className:l.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===Object(be.a)()||!e.url)return!1;(sf=sf||document.createElement("a")).href=e.url||"";var t=sf.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(sf.href=location.hash.substring(1),sf.href===t)))},t.prototype._isGroupExpanded=function(e){return e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=Object(m.a)(Object(m.a)({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(y.Component),If=Object(M.a)(yf,(function(e){var t,n=e.className,r=e.theme,o=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,c=e.isDisabled,u=e.isButtonEntry,A=e.navHeight,d=void 0===A?44:A,g=e.position,p=e.leftPadding,h=void 0===p?20:p,f=e.leftPaddingExpanded,m=void 0===f?28:f,y=e.rightPadding,C=void 0===y?20:y,E=r.palette,b=r.semanticColors,v=r.fonts,B=Object(I.R)(gf,r);return{root:[B.root,n,v.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},o&&[{position:"absolute"},I.a.slideRightIn40]],linkText:[B.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[B.compositeLink,{display:"block",position:"relative",color:b.bodyText},i&&"is-expanded",l&&"is-selected",c&&"is-disabled",c&&{color:b.disabledText}],link:[B.link,Object(I.Q)(r),{display:"block",position:"relative",height:d,width:"100%",lineHeight:d+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:h,paddingRight:C,color:b.bodyText,selectors:(t={},t[I.l]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!c&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:b.bodyBackgroundHovered}}},l&&{color:b.bodyTextChecked,fontWeight:I.k.semibold,backgroundColor:b.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid "+E.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},c&&{color:b.disabledText},u&&{color:E.themePrimary}],chevronButton:[B.chevronButton,Object(I.Q)(r),v.small,{display:"block",textAlign:"left",lineHeight:d+"px",margin:"5px 0",padding:"0px, "+C+"px, 0px, "+m+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:b.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:b.bodyText}}},a&&{fontSize:v.large.fontSize,width:"100%",height:d,borderBottom:"1px solid "+b.bodyDivider},s&&{display:"block",width:m-2,height:d-2,position:"absolute",top:"1px",left:g+"px",zIndex:I.F.Nav,padding:0,margin:0},l&&{color:E.themePrimary,backgroundColor:E.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+E.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[B.chevronIcon,{position:"absolute",left:"8px",height:d,lineHeight:d+"px",fontSize:v.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[B.navItem,{padding:0}],navItems:[B.navItems,{listStyleType:"none",padding:0,margin:0}],group:[B.group,i&&"is-expanded"],groupContent:[B.groupContent,{display:"none",marginBottom:"40px"},I.a.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(ff||(ff={}));var Cf={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var Ef,bf=i,vf=Object(D.a)(),Bf=Object(M.a)(mp,(function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.suggested,u=l.palette,A=l.semanticColors,d=Object(I.R)(Cf,l);return{root:[d.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:A.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},c&&{selectors:(t={},t["."+Kn.a+" &"]={selectors:(n={},n["."+d.closeButton]={display:"block",background:A.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid "+l.semanticColors.focusBorder},t)},s],itemButton:[d.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(r={},r[I.l]={color:"WindowText",selectors:{":hover":Object(m.a)({background:"Highlight",color:"HighlightText"},Object(I.S)())}},r[":hover"]={color:A.menuItemTextHovered},r)},c&&[d.isSuggested,{background:A.menuItemBackgroundPressed,selectors:(o={":hover":{background:A.menuDivider}},o[I.l]=Object(m.a)({background:"Highlight",color:"HighlightText"},Object(I.S)()),o)}]],closeButton:[d.closeButton,{display:"none",color:u.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:u.neutralTertiaryAlt,color:u.neutralDark}},i[I.l]={color:"WindowText"},i)},c&&(a={},a["."+Kn.a+" &"]={selectors:{":hover, :active":{background:u.neutralTertiary}}},a.selectors={":hover, :active":{background:u.neutralTertiary,color:u.neutralPrimary}},a)]}}),void 0,{scope:"SuggestionItem"}),Mf=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=y.createRef(),n._searchForMoreButton=y.createRef(),n._selectedElement=y.createRef(),n.tryHandleKeyDown=function(e,t){var r=!1,o=null,i=n.state.selectedActionType,a=n.props.suggestions.length;if(e===ae.a.down)switch(i){case ff.forceResolve:a>0?(n._refocusOnSuggestions(e),o=ff.none):o=n._searchForMoreButton.current?ff.searchMore:ff.forceResolve;break;case ff.searchMore:n._forceResolveButton.current?o=ff.forceResolve:a>0?(n._refocusOnSuggestions(e),o=ff.none):o=ff.searchMore;break;case ff.none:-1===t&&n._forceResolveButton.current&&(o=ff.forceResolve)}else if(e===ae.a.up)switch(i){case ff.forceResolve:n._searchForMoreButton.current?o=ff.searchMore:a>0&&(n._refocusOnSuggestions(e),o=ff.none);break;case ff.searchMore:a>0?(n._refocusOnSuggestions(e),o=ff.none):n._forceResolveButton.current&&(o=ff.forceResolve);break;case ff.none:-1===t&&n._searchForMoreButton.current&&(o=ff.searchMore)}return null!==o&&(n.setState({selectedActionType:o}),r=!0),r},n._getAlertText=function(){var e=n.props,t=e.isLoading,r=e.isSearching,o=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText;if(!t&&!r){if(o.length>0)return i||"";if(a)return a}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&n.props.onGetMoreResults()},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._refocusOnSuggestions=function(e){"function"==typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},Object(se.a)(n),n.state={selectedActionType:ff.none},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,r=this.props,o=r.forceResolveText,i=r.mostRecentlyUsedHeaderText,a=r.searchForMoreText,s=r.className,l=r.moreSuggestionsAvailable,c=r.noResultsFoundText,u=r.suggestions,A=r.isLoading,d=r.isSearching,g=r.loadingText,p=r.onRenderNoResultFound,h=r.searchingText,f=r.isMostRecentlyUsedVisible,I=r.resultsMaximumNumber,C=r.resultsFooterFull,E=r.resultsFooter,b=r.isResultsFooterVisible,v=void 0===b||b,B=r.suggestionsHeaderText,M=r.suggestionsClassName,D=r.theme,x=r.styles,w=r.suggestionsListId;this._classNames=x?vf(x,{theme:D,className:s,suggestionsClassName:M,forceResolveButtonSelected:this.state.selectedActionType===ff.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===ff.searchMore}):{root:Object(ve.a)("ms-Suggestions",s,bf.root),title:Object(ve.a)("ms-Suggestions-title",bf.suggestionsTitle),searchForMoreButton:Object(ve.a)("ms-SearchMore-button",bf.actionButton,(e={},e["is-selected "+bf.buttonSelected]=this.state.selectedActionType===ff.searchMore,e)),forceResolveButton:Object(ve.a)("ms-forceResolve-button",bf.actionButton,(t={},t["is-selected "+bf.buttonSelected]=this.state.selectedActionType===ff.forceResolve,t)),suggestionsAvailable:Object(ve.a)("ms-Suggestions-suggestionsAvailable",bf.suggestionsAvailable),suggestionsContainer:Object(ve.a)("ms-Suggestions-container",bf.suggestionsContainer,M),noSuggestions:Object(ve.a)("ms-Suggestions-none",bf.suggestionsNone)};var Q=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,S=x?{styles:Q}:{className:Object(ve.a)("ms-Suggestions-spinner",bf.suggestionsSpinner)},N=function(){return c?y.createElement("div",{className:n._classNames.noSuggestions},c):null},k=B;f&&i&&(k=i);var T=void 0;v&&(T=u.length>=I?C:E);var j=!(u&&u.length||A),L=j||A?{role:"dialog",id:w}:{},R=this.state.selectedActionType===ff.forceResolve?"sug-selectedAction":void 0,O=this.state.selectedActionType===ff.searchMore?"sug-selectedAction":void 0;return y.createElement("div",Object(m.a)({className:this._classNames.root},L),y.createElement(he,{message:this._getAlertText(),"aria-live":"polite"}),k?y.createElement("div",{className:this._classNames.title},k):null,o&&this._shouldShowForceResolve()&&y.createElement(ti,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:R,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},o),A&&y.createElement(tA,Object(m.a)({},S,{label:g})),j?p?p(void 0,N):N():this._renderSuggestions(),a&&l&&y.createElement(ti,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:{iconName:"Search"},id:O,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore"},a),d?y.createElement(tA,Object(m.a)({},S,{label:h})):null,!T||l||f||d?null:y.createElement("div",{className:this._classNames.title},T(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==ff.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case ff.forceResolve:this._forceResolve();break;case ff.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:ff.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:ff.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:ff.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:ff.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){this._selectedElement.current&&void 0!==this._selectedElement.current.scrollIntoView&&this._selectedElement.current.scrollIntoView(!1)},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.isMostRecentlyUsedVisible,r=t.mostRecentlyUsedHeaderText,o=t.onRenderSuggestion,i=t.removeSuggestionAriaLabel,a=t.suggestionsItemClassName,s=t.resultsMaximumNumber,l=t.showRemoveButtons,c=t.suggestionsContainerAriaLabel,u=t.suggestionsHeaderText,A=t.suggestionsListId,d=this.props.suggestions,g=Bf,p=-1;if(d.some((function(e,t){return!!e.selected&&(p=t,!0)})),s&&(d=p>=s?d.slice(p-s+1,p+1):d.slice(0,s)),0===d.length)return null;var h=u;return n&&r&&(h=r),y.createElement("div",{className:this._classNames.suggestionsContainer,id:A,role:"listbox","aria-label":c||h},d.map((function(t,n){return y.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:n,role:"presentation"},y.createElement(g,{suggestionModel:t,RenderSuggestion:o,onClick:e._onClickTypedSuggestionsItem(t.item,n),className:a,showRemoveButton:l,removeButtonAriaLabel:i,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,n),id:"sug-"+n}))})))},t}(y.Component),Df=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.name||t.primaryText}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t){e&&e.length>0?(this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])):(this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0)},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}(),xf={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function wf(e){var t,n=e.className,r=e.suggestionsClassName,o=e.theme,i=e.forceResolveButtonSelected,a=e.searchForMoreButtonSelected,s=o.palette,l=o.semanticColors,c=o.fonts,u=Object(I.R)(xf,o),A={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid "+s.neutralLight,height:40,textAlign:"left",width:"100%",fontSize:c.small.fontSize,selectors:{":hover":{backgroundColor:l.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:c.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},d={backgroundColor:s.themeLight,selectors:(t={},t[I.l]=Object(m.a)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(I.S)()),t)};return{root:[u.root,{minWidth:260},n],suggestionsContainer:[u.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},r],title:[u.title,{padding:"0 12px",fontSize:c.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid "+l.menuItemBackgroundPressed}],forceResolveButton:[u.forceResolveButton,A,i&&[u.isSelected,d]],searchForMoreButton:[u.searchForMoreButton,A,a&&[u.isSelected,d]],noSuggestions:[u.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:c.small.fontSize,lineHeight:30}],suggestionsAvailable:[u.suggestionsAvailable,I.ab],subComponentStyles:{spinner:{root:[u.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:c.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(Ef||(Ef={})),Object(Rg.a)([{rawString:".pickerText_9da47ae5{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_9da47ae5:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_9da47ae5.inputFocused_9da47ae5{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}.pickerText_9da47ae5.inputFocused_9da47ae5:after{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid "},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}@media screen and (-ms-high-contrast:active){.pickerText_9da47ae5.inputDisabled_9da47ae5{position:relative;border-color:GrayText}.pickerText_9da47ae5.inputDisabled_9da47ae5:after{pointer-events:none;content:'';position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_9da47ae5{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_9da47ae5{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_9da47ae5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var Qf="pickerText_9da47ae5",Sf="inputFocused_9da47ae5",Nf="inputDisabled_9da47ae5",kf="pickerInput_9da47ae5",Tf="pickerItems_9da47ae5",jf="screenReaderOnly_9da47ae5",Lf=l,Rf=Object(D.a)();var Of=function(e){function t(t){var n,r=e.call(this,t)||this;r.root=y.createRef(),r.input=y.createRef(),r.focusZone=y.createRef(),r.suggestionElement=y.createRef(),r.SuggestionOfProperType=Mf,r._styledSuggestions=(n=r.SuggestionOfProperType,Object(M.a)(n,wf,void 0,{scope:"Suggestions"})),r.dismissSuggestions=function(e){var t=function(){var t=!0;r.props.onDismiss&&(t=r.props.onDismiss(e,r.suggestionStore.currentSuggestion?r.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&r.canAddItems()&&r.suggestionStore.hasSelectedSuggestion()&&r.state.suggestedDisplayValue&&r.addItemByIndex(0)};r.currentPromise?r.currentPromise.then((function(){return t()})):t(),r.setState({suggestionsVisible:!1})},r.refocusSuggestions=function(e){r.resetFocus(),r.suggestionStore.suggestions&&r.suggestionStore.suggestions.length>0&&(e===ae.a.up?r.suggestionStore.setSelectedSuggestion(r.suggestionStore.suggestions.length-1):e===ae.a.down&&r.suggestionStore.setSelectedSuggestion(0))},r.onInputChange=function(e){r.updateValue(e),r.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},r.onSuggestionClick=function(e,t,n){r.addItemByIndex(n)},r.onSuggestionRemove=function(e,t,n){r.props.onRemoveSuggestion&&r.props.onRemoveSuggestion(t),r.suggestionStore.removeSuggestion(n)},r.onInputFocus=function(e){r.selection.setAllSelected(!1),r.state.isFocused||(r.setState({isFocused:!0}),r._userTriggeredSuggestions(),r.props.inputProps&&r.props.inputProps.onFocus&&r.props.inputProps.onFocus(e))},r.onInputBlur=function(e){r.props.inputProps&&r.props.inputProps.onBlur&&r.props.inputProps.onBlur(e)},r.onBlur=function(e){if(r.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!Object(Be.a)(r.root.current,t)&&(r.setState({isFocused:!1}),r.props.onBlur&&r.props.onBlur(e))}},r.onClick=function(e){void 0!==r.props.inputProps&&void 0!==r.props.inputProps.onClick&&r.props.inputProps.onClick(e),0===e.button&&r._userTriggeredSuggestions()},r.onKeyDown=function(e){var t=e.which;switch(t){case ae.a.escape:r.state.suggestionsVisible&&(r.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case ae.a.tab:case ae.a.enter:r.suggestionElement.current&&r.suggestionElement.current.hasSuggestedActionSelected()?r.suggestionElement.current.executeSelectedAction():!e.shiftKey&&r.suggestionStore.hasSelectedSuggestion()&&r.state.suggestionsVisible?(r.completeSuggestion(),e.preventDefault(),e.stopPropagation()):r._completeGenericSuggestion();break;case ae.a.backspace:r.props.disabled||r.onBackspace(e),e.stopPropagation();break;case ae.a.del:r.props.disabled||(r.input.current&&e.target===r.input.current.inputElement&&r.state.suggestionsVisible&&-1!==r.suggestionStore.currentIndex?(r.props.onRemoveSuggestion&&r.props.onRemoveSuggestion(r.suggestionStore.currentSuggestion.item),r.suggestionStore.removeSuggestion(r.suggestionStore.currentIndex),r.forceUpdate()):r.onBackspace(e)),e.stopPropagation();break;case ae.a.up:r.input.current&&e.target===r.input.current.inputElement&&r.state.suggestionsVisible&&(r.suggestionElement.current&&r.suggestionElement.current.tryHandleKeyDown(t,r.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),r.forceUpdate()):r.suggestionElement.current&&r.suggestionElement.current.hasSuggestedAction()&&0===r.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),r.suggestionElement.current.focusAboveSuggestions(),r.suggestionStore.deselectAllSuggestions(),r.forceUpdate()):r.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),r.onSuggestionSelect()));break;case ae.a.down:r.input.current&&e.target===r.input.current.inputElement&&r.state.suggestionsVisible&&(r.suggestionElement.current&&r.suggestionElement.current.tryHandleKeyDown(t,r.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),r.forceUpdate()):r.suggestionElement.current&&r.suggestionElement.current.hasSuggestedAction()&&r.suggestionStore.currentIndex+1===r.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),r.suggestionElement.current.focusBelowSuggestions(),r.suggestionStore.deselectAllSuggestions(),r.forceUpdate()):r.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),r.onSuggestionSelect()))}},r.onItemChange=function(e,t){var n=r.state.items;if(t>=0){var o=n;o[t]=e,r._updateSelectedItems(o)}},r.onGetMoreResults=function(){r.setState({isSearching:!0},(function(){if(r.props.onGetMoreResults&&r.input.current){var e=r.props.onGetMoreResults(r.input.current.value,r.state.items),t=e,n=e;Array.isArray(t)?(r.updateSuggestions(t),r.setState({isSearching:!1})):n.then&&n.then((function(e){r.updateSuggestions(e),r.setState({isSearching:!1})}))}else r.setState({isSearching:!1});r.input.current&&r.input.current.focus(),r.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},r.completeSelection=function(e){r.addItem(e),r.updateValue(""),r.input.current&&r.input.current.clear(),r.setState({suggestionsVisible:!1})},r.addItemByIndex=function(e){r.completeSelection(r.suggestionStore.getSuggestionAtIndex(e).item)},r.addItem=function(e){var t=r.props.onItemSelected?r.props.onItemSelected(e):e;if(null!==t){var n=t,o=t;if(o&&o.then)o.then((function(e){var t=r.state.items.concat([e]);r._updateSelectedItems(t)}));else{var i=r.state.items.concat([n]);r._updateSelectedItems(i)}r.setState({suggestedDisplayValue:""})}},r.removeItem=function(e,t){var n=r.state.items,o=n.indexOf(e);if(o>=0){var i=n.slice(0,o).concat(n.slice(o+1));r._updateSelectedItems(i)}},r.removeItems=function(e){var t=r.state.items.filter((function(t){return-1===e.indexOf(t)}));r._updateSelectedItems(t)},r._shouldFocusZoneEnterInnerZone=function(e){if(r.state.suggestionsVisible)switch(e.which){case ae.a.up:case ae.a.down:return!0}return e.which===ae.a.enter},r._onResolveSuggestions=function(e){var t=r.props.onResolveSuggestions(e,r.state.items);null!==t&&r.updateSuggestionsList(t,e)},r._completeGenericSuggestion=function(){if(r.props.onValidateInput&&r.input.current&&r.props.onValidateInput(r.input.current.value)!==Ef.invalid&&r.props.createGenericItem){var e=r.props.createGenericItem(r.input.current.value,r.props.onValidateInput(r.input.current.value));r.suggestionStore.createGenericSuggestion(e),r.completeSuggestion()}},r._userTriggeredSuggestions=function(){if(!r.state.suggestionsVisible){var e=r.input.current?r.input.current.value:"";e?0===r.suggestionStore.suggestions.length?r._onResolveSuggestions(e):r.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):r.onEmptyInputFocus()}},Object(se.a)(r),r._async=new le.a(r);var o=t.selectedItems||t.defaultSelectedItems||[];return r._id=Object(Ee.a)(),r._ariaMap={selectedItems:"selected-items-"+r._id,selectedSuggestionAlert:"selected-suggestion-alert-"+r._id,suggestionList:"suggestion-list-"+r._id,combobox:"combobox-"+r._id},r.suggestionStore=new Df,r.selection=new eu({onSelectionChanged:function(){return r.onSelectionChange()}}),r.selection.setItems(o),r.state={items:o,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[]},r}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){if(this.state.items&&this.state.items!==t.items){var n=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&this.state.items.length<t.items.length&&(this.selection.setIndexSelected(n,!1,!0),this.resetFocus(n))}},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.focusZone.current&&this.focusZone.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e,t,n=this.state,r=n.suggestedDisplayValue,o=n.isFocused,i=n.items,a=this.props,s=a.className,l=a.inputProps,c=a.disabled,u=a.theme,A=a.styles,d=this.state.suggestionsVisible?this._ariaMap.suggestionList:"",g=A?Rf(A,{theme:u,className:s,isFocused:o,disabled:c,inputClassName:l&&l.className}):{root:Object(ve.a)("ms-BasePicker",s||""),text:Object(ve.a)("ms-BasePicker-text",Lf.pickerText,this.state.isFocused&&Lf.inputFocused),itemsWrapper:Lf.pickerItems,input:Object(ve.a)("ms-BasePicker-input",Lf.pickerInput,l&&l.className),screenReaderText:Lf.screenReaderOnly};return y.createElement("div",{ref:this.root,className:g.root,onKeyDown:this.onKeyDown,onBlur:this.onBlur},y.createElement(Te,{componentRef:this.focusZone,direction:Ae.bidirectional,shouldEnterInnerZone:this._shouldFocusZoneEnterInnerZone},this.getSuggestionsAlert(g.screenReaderText),y.createElement(lu,{selection:this.selection,selectionMode:Zc.multiple},y.createElement("div",{className:g.text},i.length>0&&y.createElement("span",{id:this._ariaMap.selectedItems,className:g.itemsWrapper,role:"list"},this.renderItems()),this.canAddItems()&&y.createElement(ce,Object(m.a)({spellCheck:!1},l,{className:g.input,componentRef:this.input,id:(null===(e=l)||void 0===e?void 0:e.id)?l.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:r,"aria-activedescendant":this.getActiveDescendant(),"aria-controls":d,"aria-describedby":i.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"listbox","aria-label":this.props["aria-label"]||(null===(t=l)||void 0===t?void 0:t["aria-label"]),role:"combobox",disabled:c,onInputChange:this.props.onInputChange}))))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?y.createElement(Rn,Object(m.a)({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:Je.bottomLeftEdge,directionalHintForRTL:Je.bottomRightEdge},this.props.pickerCalloutProps),y.createElement(e,Object(m.a)({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,r=t.removeButtonAriaLabel,o=this.props.onRenderItem,i=this.state,a=i.items,s=i.selectedIndices;return a.map((function(t,i){return o({item:t,index:i,key:t.key?t.key:i,selected:-1!==s.indexOf(i),onRemoveItem:function(){return e.removeItem(t,!0)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:r})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length&&e>=0){var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index]")[Math.min(e,t.length-1)];n&&this.focusZone.current&&this.focusZone.current.focusElement(n)}else this.canAddItems()?this.input.current&&this.input.current.focus():this.resetFocus(t.length-1)},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){this.suggestionStore.updateSuggestions(e,0),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var n=this,r=e,o=e;if(Array.isArray(r))this._updateAndResolveValue(t,r);else if(o&&o.then){this.setState({suggestionsLoading:!0}),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement});var i=this.currentPromise=o;i.then((function(e){i===n.currentPromise&&n._updateAndResolveValue(t,e)}))}},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var r=void 0;this.suggestionStore.currentSuggestion&&(r=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:r,suggestionsVisible:this._getShowSuggestions()},(function(){return n.setState({suggestionsLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){if(!this.state.suggestionsLoading){var e=this.suggestionStore.currentIndex;return e<0&&this.suggestionElement.current&&this.suggestionElement.current.hasSuggestedAction()?"sug-selectedAction":e>-1&&!this.state.suggestionsLoading?"sug-"+e:void 0}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=Lf.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,r=n?n.ariaLabel:void 0;return y.createElement("div",{className:e,role:"alert",id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},r," ")}},t.prototype._updateAndResolveValue=function(e,t){void 0!==e?this.resolveNewValue(e,t):(this.suggestionStore.updateSuggestions(t,-1),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1}))},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(y.Component),_f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=this.props,o=r.className,i=r.inputProps,a=r.disabled,s=r.theme,l=r.styles,c=this.state.suggestionsVisible?this._ariaMap.suggestionList:"",u=l?Rf(l,{theme:s,className:o,isFocused:n,inputClassName:i&&i.className}):{root:Object(ve.a)("ms-BasePicker",o||""),text:Object(ve.a)("ms-BasePicker-text",Lf.pickerText,this.state.isFocused&&Lf.inputFocused,a&&Lf.inputDisabled),itemsWrapper:Lf.pickerItems,input:Object(ve.a)("ms-BasePicker-input",Lf.pickerInput,i&&i.className),screenReaderText:Lf.screenReaderOnly};return y.createElement("div",{ref:this.root,onBlur:this.onBlur},y.createElement("div",{className:u.root,onKeyDown:this.onKeyDown},this.getSuggestionsAlert(u.screenReaderText),y.createElement("div",{className:u.text},y.createElement(ce,Object(m.a)({},i,{className:u.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":this.getActiveDescendant(),"aria-controls":c||void 0,"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"listbox",role:"combobox",disabled:a,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),y.createElement(lu,{selection:this.selection,selectionMode:Zc.single},y.createElement(Te,{componentRef:this.focusZone,className:"ms-BasePicker-selectedItems",isCircularNavigation:!0,direction:Ae.bidirectional,shouldEnterInnerZone:this._shouldFocusZoneEnterInnerZone,id:this._ariaMap.selectedItems,role:"list"},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(Of),Ff={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};var zf=Object(D.a)(),Pf=function(e){var t=e.item,n=e.onRemoveItem,r=e.index,o=e.selected,i=e.removeButtonAriaLabel,a=e.styles,s=e.theme,l=e.className,c=e.disabled,A=Object(Ee.a)(),d=zf(a,{theme:s,className:l,selected:o,disabled:c,invalid:t.ValidationState===Ef.warning}),g=d.subComponentStyles?d.subComponentStyles.persona:void 0,p=d.subComponentStyles?d.subComponentStyles.personaCoin:void 0;return y.createElement("div",{className:d.root,"data-is-focusable":!c,"data-is-sub-focuszone":!0,"data-selection-index":r,role:"listitem","aria-labelledby":"selectedItemPersona-"+A},y.createElement("div",{className:d.itemContent,id:"selectedItemPersona-"+A},y.createElement(qg,Object(m.a)({size:u.size24,styles:g,coinProps:{styles:p}},t))),y.createElement(co,{onClick:n,disabled:c,iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},className:d.removeButton,ariaLabel:i}))},Uf=Object(M.a)(Pf,(function(e){var t,n,r,o,i,a,s,l=e.className,c=e.theme,u=e.selected,A=e.invalid,d=e.disabled,g=c.palette,p=c.semanticColors,h=c.fonts,f=Object(I.R)(Ff,c),y=[u&&!A&&!d&&{color:g.white,selectors:(t={":hover":{color:g.white}},t[I.l]={color:"HighlightText"},t)},(A&&!u||A&&u&&d)&&{color:g.redDark,borderBottom:"2px dotted "+g.redDark,selectors:(n={},n["."+f.root+":hover &"]={color:g.redDark},n)},A&&u&&!d&&{color:g.white,borderBottom:"2px dotted "+g.white},d&&{selectors:(r={},r[I.l]={color:"GrayText"},r)}],C=[A&&{fontSize:h.xLarge.fontSize}];return{root:[f.root,Object(I.Q)(c,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:g.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(o={":hover":{background:u||d?"":g.neutralLight}},o[I.l]=[{border:"1px solid WindowText"},d&&{borderColor:"GrayText"}],o)},u&&!d&&[f.isSelected,{background:g.themePrimary,selectors:(i={},i[I.l]=Object(m.a)({borderColor:"HighLight",background:"Highlight"},Object(I.S)()),i)}],A&&[f.isInvalid],A&&u&&!d&&{background:g.redDark},l],itemContent:[f.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[f.removeButton,{borderRadius:15,color:g.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:g.neutralTertiaryAlt,color:g.neutralDark}}},u&&[{color:g.white,selectors:(a={":hover":{color:g.white,background:g.themeDark},":active":{color:g.white,background:g.themeDarker}},a[I.l]={color:"HighlightText"},a)},A&&{selectors:{":hover":{background:g.red},":active":{background:g.redDark}}}],d&&{selectors:(s={},s["."+$r.msButtonIcon]={color:p.buttonText},s)}],subComponentStyles:{persona:{primaryText:y},personaCoin:{initials:C}}}}),void 0,{scope:"PeoplePickerItem"}),Gf={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var Hf=Object(D.a)(),Yf=function(e){var t=e.personaProps,n=e.suggestionsProps,r=e.compact,o=e.styles,i=e.theme,a=e.className,s=Hf(o,{theme:i,className:n&&n.suggestionsItemClassName||a}),l=s.subComponentStyles&&s.subComponentStyles.persona?s.subComponentStyles.persona:void 0;return y.createElement("div",{className:s.root},y.createElement(qg,Object(m.a)({size:u.size24,styles:l,className:s.personaWrapper,showSecondaryText:!r},t)))},Vf=Object(M.a)(Yf,(function(e){var t,n,r,o=e.className,i=e.theme,a=Object(I.R)(Gf,i),s={selectors:(t={},t["."+Cf.isSuggested+" &"]={selectors:(n={},n[I.l]={color:"HighlightText"},n)},t["."+a.root+":hover &"]={selectors:(r={},r[I.l]={color:"HighlightText"},r)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},o],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}),void 0,{scope:"PeoplePickerItemSuggestion"}),Wf={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function Kf(e){var t,n=e.className,r=e.theme,o=e.isFocused,i=e.inputClassName,a=e.disabled;if(!r)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var s=r.semanticColors,l=r.effects,c=r.fonts,u=s.inputBorder,A=s.inputBorderHovered,d=s.inputFocusBorderAlt,g=Object(I.R)(Wf,r);return{root:[g.root,n],text:[g.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid "+u,borderRadius:l.roundedCorner2},!o&&!a&&{selectors:{":hover":{borderColor:A}}},o&&!a&&Object(I.V)(d,l.roundedCorner2),a&&{borderColor:"rgba(218, 218, 218, 0.29)",selectors:(t={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:"rgba(218, 218, 218, 0.29)"}},t[I.l]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},t)}],itemsWrapper:[g.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[g.input,c.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:l.roundedCorner2,backgroundColor:"transparent",color:s.inputText,selectors:{"::-ms-clear":{display:"none"}}},i],screenReaderText:I.ab}}var Zf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(Of),Jf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}(_f),qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.defaultProps={onRenderItem:function(e){return y.createElement(Uf,Object(m.a)({},e))},onRenderSuggestionsItem:function(e,t){return y.createElement(Vf,{personaProps:e,suggestionsProps:t})},createGenericItem:em},t}(Zf),Xf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.defaultProps={onRenderItem:function(e){return y.createElement(Uf,Object(m.a)({},e))},onRenderSuggestionsItem:function(e,t){return y.createElement(Vf,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:em},t}(Zf),$f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t.defaultProps={onRenderItem:function(e){return y.createElement(Uf,Object(m.a)({},e))},onRenderSuggestionsItem:function(e,t){return y.createElement(Vf,{personaProps:e,suggestionsProps:t})},createGenericItem:em},t}(Jf);function em(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==Ef.warning&&(n.imageInitials=Object(S.a)(e,Object(Q.a)())),n}var tm=Object(M.a)(qf,Kf,void 0,{scope:"NormalPeoplePicker"}),nm=Object(M.a)(Xf,Kf,void 0,{scope:"CompactPeoplePicker"}),rm=Object(M.a)($f,Kf,void 0,{scope:"ListPeoplePickerBase"}),om={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"};var im=Object(D.a)(),am=function(e){var t=e.theme,n=e.styles,r=e.selected,o=e.disabled,i=e.enableTagFocusInDisabledPicker,a=e.children,s=e.className,l=e.index,c=e.onRemoveItem,u=e.removeButtonAriaLabel,A=e.title,d=void 0===A?"string"==typeof e.children?e.children:e.item.name:A,g=im(n,{theme:t,className:s,selected:r,disabled:o});return y.createElement("div",{className:g.root,role:"listitem",key:l,"data-selection-index":l,"data-is-focusable":(i||!o)&&!0},y.createElement("span",{className:g.text,"aria-label":d,title:d},a),y.createElement(co,{onClick:c,disabled:o,iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},className:g.close,ariaLabel:u}))},sm=Object(M.a)(am,(function(e){var t,n,r,o,i=e.className,a=e.theme,s=e.selected,l=e.disabled,c=a.palette,u=a.effects,A=a.fonts,d=a.semanticColors,g=Object(I.R)(om,a);return{root:[g.root,A.medium,Object(I.Q)(a),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:u.roundedCorner2,color:d.inputText,background:!s||l?c.neutralLighter:c.themePrimary,selectors:(t={":hover":[!l&&!s&&{color:c.neutralDark,background:c.neutralLight,selectors:{".ms-TagItem-close":{color:c.neutralPrimary}}},l&&{background:c.neutralLighter},s&&!l&&{background:c.themePrimary}]},t[I.l]={border:"1px solid "+(s?"WindowFrame":"WindowText")},t)},l&&{selectors:(n={},n[I.l]={borderColor:"GrayText"},n)},s&&!l&&[g.isSelected,{color:c.white}],i],text:[g.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},l&&{selectors:(r={},r[I.l]={color:"GrayText"},r)}],close:[g.close,{color:c.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:Object(Q.a)(a)?u.roundedCorner2+" 0 0 "+u.roundedCorner2:"0 "+u.roundedCorner2+" "+u.roundedCorner2+" 0",selectors:{":hover":{background:c.neutralQuaternaryAlt,color:c.neutralPrimary},":active":{color:c.white,backgroundColor:c.themeDark}}},s&&{color:c.white,selectors:{":hover":{color:c.white,background:c.themeDark}}},l&&{selectors:(o={},o["."+$r.msButtonIcon]={color:c.neutralSecondary},o)}]}}),void 0,{scope:"TagItem"}),lm={suggestionTextOverflow:"ms-TagItem-TextOverflow"};var cm=Object(D.a)(),um=function(e){var t=e.styles,n=e.theme,r=e.children,o=cm(t,{theme:n});return y.createElement("div",{className:o.suggestionTextOverflow}," ",r," ")},Am=Object(M.a)(um,(function(e){var t=e.className,n=e.theme;return{suggestionTextOverflow:[Object(I.R)(lm,n).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}),void 0,{scope:"TagItemSuggestion"}),dm=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),n}return Object(m.c)(t,e),t.defaultProps={onRenderItem:function(e){return y.createElement(sm,Object(m.a)({},e),e.item.name)},onRenderSuggestionsItem:function(e){return y.createElement(Am,null,e.name)}},t}(Of),gm=Object(M.a)(dm,Kf,void 0,{scope:"TagPicker"});function pm(e,t){void 0===t&&(t=null);var n=y.useRef({ref:Object.assign((function(e){n.ref.current!==e&&(n.cleanup&&(n.cleanup(),n.cleanup=void 0),n.ref.current=e,null!==e&&(n.cleanup=n.callback(e)))}),{current:t}),callback:e}).current;return n.callback=e,n.ref}var hm=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=y.useRef(),i=y.useRef(),a=pm((function(e){var t=function(e,t){if("undefined"!=typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach((function(e){return n.observe(e)})):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=Object(be.a)(Array.isArray(e)?e[0]:e);if(!o)return function(){};var i=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(i),o.removeEventListener("resize",r,!1)}}(e,(function(t){i.current=t?t[0].contentRect.width:e.clientWidth,o.current&&o.current()}));return function(){t(),i.current=void 0}})),s=pm((function(e){return a(e.parentElement),function(){return a(null)}}));return y.useLayoutEffect((function(){var e=a.current,l=s.current;if(e&&l){for(var c=[],u=0;u<e.children.length;u++){var A=e.children[u];A instanceof HTMLElement&&A!==l&&c.push(A)}var d=[],g=0;o.current=function(){var e=i.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===d[t]){var o=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===r&&(g=d[t+1]-o),t===c.length-2&&(g+=l.offsetWidth),d[t]=o+g}if(e>d[t])return void h(t+1)}h(0)}};var p=c.length,h=function(e){p!==e&&(p=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},f=void 0;if(void 0!==i.current){var m=Object(be.a)(e);if(m){var y=m.requestAnimationFrame(o.current);f=function(){return m.cancelAnimationFrame(y)}}}return function(){f&&f(),h(c.length),o.current=void 0}}})),{menuButtonRef:s}},fm=function(e){function t(t){var n=e.call(this,t)||this;return Object(se.a)(n),Object(He.a)("PivotItem",t,{linkText:"headerText"}),n}return Object(m.c)(t,e),t.prototype.render=function(){return y.createElement("div",Object(m.a)({},Object(w.j)(this.props,w.h)),this.props.children)},t}(y.Component),mm=Object(D.a)(),ym=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return y.Children.forEach(y.Children.toArray(e.children),(function(r,o){if(Im(r)){var i=r.props,a=i.linkText,s=Object(m.d)(i,["linkText"]),l=r.props.itemKey||o.toString();n.links.push(Object(m.a)(Object(m.a)({headerText:a},s),{itemKey:l})),n.keyToIndexMapping[l]=o,n.keyToTabIdMapping[l]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab"+r}(e,t,l,o)}else r&&Object(Uo.b)("The children of a Pivot component must be of type PivotItem to be rendered.")})),n},Im=function(e){var t,n;return(null===(n=null===(t=e)||void 0===t?void 0:t.type)||void 0===n?void 0:n.name)===fm.name},Cm=y.forwardRef((function(e,t){var n,r=y.useRef(null),o=y.useRef(null),i=oi("Pivot"),a=Sa(e.selectedKey,e.defaultSelectedKey),s=a[0],l=a[1],c=e.componentRef,u=e.theme,A=e.linkSize,d=e.linkFormat,g=e.overflowBehavior,p=Object(w.j)(e,w.h),h=ym(e,i);y.useImperativeHandle(c,(function(){return{focus:function(){var e;null===(e=r.current)||void 0===e||e.focus()}}}));var f=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,o=e.headerText;return y.createElement("span",{className:n.linkContent},void 0!==r&&y.createElement("span",{className:n.icon},y.createElement(N.a,{iconName:r})),void 0!==o&&y.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&y.createElement("span",{className:n.count}," (",t,")"))},I=function(e,t,r,o){var i,a=t.itemKey,s=t.headerButtonProps,l=t.onRenderItemLink,c=e.keyToTabIdMapping[a],u=r===a;i=l?l(t,f):f(t);var A=t.headerText||"";return A+=t.itemCount?" ("+t.itemCount+")":"",A+=t.itemIcon?" xx":"",y.createElement(ti,Object(m.a)({},s,{id:c,key:a,className:Object(ve.a)(o,u&&n.linkIsSelected),onClick:function(e){return C(a,e)},onKeyDown:function(e){return E(a,e)},"aria-label":t.ariaLabel,role:"tab","aria-selected":u,name:t.headerText,keytipProps:t.keytipProps,"data-content":A}),i)},C=function(e,t){t.preventDefault(),b(e,t)},E=function(e,t){t.which===ae.a.enter&&(t.preventDefault(),b(e))},b=function(t,n){var r;if(l(t),h=ym(e,i),e.onLinkClick&&h.keyToIndexMapping[t]>=0){var a=h.keyToIndexMapping[t],s=y.Children.toArray(e.children)[a];Im(s)&&e.onLinkClick(s,n)}null===(r=o.current)||void 0===r||r.dismissMenu()};n=mm(e.styles,{theme:u,linkSize:A,linkFormat:d});var v,B=null===(v=s)||void 0!==v&&void 0!==h.keyToIndexMapping[v]?s:h.links.length?h.links[0].itemKey:void 0,M=B?h.keyToIndexMapping[B]:0,D=h.links.map((function(e){return I(h,e,B,n.link)})),x=y.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:Je.bottomRightEdge}}),[]),S=hm({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing=""+n})),x.items=h.links.slice(e).map((function(t,r){return{key:t.itemKey||""+(e+r),onRender:function(){return I(h,t,B,n.linkInMenu)}}}))},rtl:Object(Q.a)(u),pinnedIndex:M}).menuButtonRef;return y.createElement("div",Object(m.a)({role:"toolbar"},p,{ref:t}),y.createElement(Te,{componentRef:r,direction:Ae.horizontal,className:n.root,role:"tablist"},D,"menu"===g&&y.createElement(ti,{className:Object(ve.a)(n.link,n.overflowMenuButton),elementRef:S,componentRef:o,menuProps:x,menuIconProps:{iconName:"More",style:{color:"inherit"}}})),B&&h.links.map((function(t){return(!0===t.alwaysRender||B===t.itemKey)&&function(t,r){if(e.headersOnly||!t)return null;var o=h.keyToIndexMapping[t],i=h.keyToTabIdMapping[t];return y.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":i,className:n.itemContainer},y.Children.toArray(e.children)[o])}(t.itemKey,B===t.itemKey)})))}));Cm.displayName="Pivot";var Em,bm,vm={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},Bm=function(e,t,n){var r,o,i;void 0===n&&(n=!1);var a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,u=l.fonts,A="large"===a,d="tabs"===s;return[u.medium,{color:c.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:(r={":hover":{backgroundColor:c.buttonBackgroundHovered,color:c.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:c.buttonBackgroundPressed,color:c.buttonTextHovered},":focus":{outline:"none"}},r["."+Kn.a+" &:focus"]={outline:"1px solid "+c.focusBorder},r["."+Kn.a+" &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},r)},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:{":before":{backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left "+I.c.durationValue2+" "+I.c.easeFunction2+",\n                        right "+I.c.durationValue2+" "+I.c.easeFunction2},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:I.k.bold,height:1,overflow:"hidden",visibility:"hidden"}}},A&&{fontSize:u.large.fontSize},d&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:c.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-1px"}},o["."+Kn.a+" &:focus::before"]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:c.buttonTextCheckedHovered},o["&:active, &:hover"]={color:c.primaryButtonText,backgroundColor:c.primaryButtonBackground},o["&."+t.linkIsSelected]={backgroundColor:c.primaryButtonBackground,color:c.primaryButtonText,fontWeight:I.k.regular,selectors:(i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:c.primaryButtonBackgroundHovered,color:c.primaryButtonText},"&:active":{backgroundColor:c.primaryButtonBackgroundPressed,color:c.primaryButtonText}},i[I.l]=Object(m.a)({fontWeight:I.k.semibold,color:"HighlightText",background:"Highlight"},Object(I.S)()),i)},o)}]]]},Mm=Object(M.a)(Cm,(function(e){var t,n,r,o,i=e.className,a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,u=l.fonts,A=Object(I.R)(vm,l),d="large"===a,g="tabs"===s;return{root:[A.root,u.medium,I.gb,{position:"relative",color:c.link,whiteSpace:"nowrap"},d&&A.rootIsLarge,g&&A.rootIsTabs,i],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:Object(m.e)([A.link],Bm(e,A),[(t={},t["&[data-is-overflowing='true']"]={display:"none"},t)]),overflowMenuButton:[A.overflowMenuButton,(n={visibility:"hidden",position:"absolute",right:0},n["."+A.link+"[data-is-overflowing='true'] ~ &"]={visibility:"visible",position:"relative"},n)],linkInMenu:Object(m.e)([A.linkInMenu],Bm(e,A,!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}]),linkIsSelected:[A.link,A.linkIsSelected,{fontWeight:I.k.semibold,selectors:(r={":before":{backgroundColor:c.inputBackgroundChecked,selectors:(o={},o[I.l]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}},r[I.l]={color:"Highlight"},r)}],linkContent:[A.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[A.text,{display:"inline-block",verticalAlign:"top"}],count:[A.count,{display:"inline-block",verticalAlign:"top"}],icon:A.icon}}),void 0,{scope:"Pivot"});!function(e){e.links="links",e.tabs="tabs"}(Em||(Em={})),function(e){e.normal="normal",e.large="large"}(bm||(bm={}));var Dm,xm=Object(D.a)(),wm=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaValueText,o=t.barHeight,i=t.className,a=t.description,s=t.label,l=void 0===s?n.props.title:s,c=t.styles,u=t.theme,A="number"==typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,d=xm(c,{theme:u,className:i,barHeight:o,indeterminate:void 0===A}),g={width:void 0!==A?A+"%":void 0,transition:void 0!==A&&A<.01?"none":void 0},p=void 0!==A?0:void 0,h=void 0!==A?100:void 0,f=void 0!==A?Math.floor(A):void 0;return y.createElement("div",{className:d.itemProgress},y.createElement("div",{className:d.progressTrack}),y.createElement("div",{className:d.progressBar,style:g,role:"progressbar","aria-describedby":a?n._descriptionId:void 0,"aria-labelledby":l?n._labelId:void 0,"aria-valuemin":p,"aria-valuemax":h,"aria-valuenow":f,"aria-valuetext":r}))};var r=Object(Ee.a)("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,r=e.label,o=void 0===r?this.props.title:r,i=e.description,a=e.styles,s=e.theme,l=e.progressHidden,c=e.onRenderProgress,u=void 0===c?this._onRenderProgress:c,A="number"==typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,d=xm(a,{theme:s,className:n,barHeight:t,indeterminate:void 0===A});return y.createElement("div",{className:d.root},o?y.createElement("div",{id:this._labelId,className:d.itemName},o):null,l?null:u(Object(m.a)(Object(m.a)({},this.props),{percentComplete:A}),this._onRenderProgress),i?y.createElement("div",{id:this._descriptionId,className:d.itemDescription},i):null)},t.defaultProps={label:"",description:"",width:180},t}(y.Component),Qm={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},Sm=Object(C.c)((function(){return Object(I.bb)({"0%":{left:"-30%"},"100%":{left:"100%"}})})),Nm=Object(C.c)((function(){return Object(I.bb)({"100%":{right:"-30%"},"0%":{right:"100%"}})})),km=Object(M.a)(wm,(function(e){var t,n,r,o=Object(Q.a)(e.theme),i=e.className,a=e.indeterminate,s=e.theme,l=e.barHeight,c=void 0===l?2:l,u=s.palette,A=s.semanticColors,d=s.fonts,g=Object(I.R)(Qm,s),p=u.neutralLight;return{root:[g.root,d.medium,i],itemName:[g.itemName,I.fb,{color:A.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[g.itemDescription,{color:A.bodySubtext,fontSize:d.small.fontSize,lineHeight:18}],itemProgress:[g.itemProgress,{position:"relative",overflow:"hidden",height:c,padding:"8px 0"}],progressTrack:[g.progressTrack,{position:"absolute",width:"100%",height:c,backgroundColor:p,selectors:(t={},t[I.l]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:u.themePrimary,height:c,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[I.l]=Object(m.a)({backgroundColor:"highlight"},Object(I.S)()),n)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+p+" 0%, "+u.themePrimary+" 50%, "+p+" 100%)",animation:(o?Nm():Sm())+" 3s infinite",selectors:(r={},r[I.l]={background:"highlight"},r)}:{transition:"width .15s linear"},g.progressBar]}}),void 0,{scope:"ProgressIndicator"}),Tm={root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"};function jm(e,t){var n;return{color:e,selectors:(n={},n[I.l]={color:t},n)}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(Dm||(Dm={}));var Lm=Object(D.a)(),Rm=function(e){return y.createElement("div",{className:e.classNames.ratingStar},y.createElement(N.a,{className:e.classNames.ratingStarBack,iconName:e.icon}),!e.disabled&&y.createElement(N.a,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},Om=function(e,t){return e+"-star-"+(t-1)},_m=y.forwardRef((function(e,t){var n,r=oi("Rating"),o=oi("RatingLabel"),i=e.ariaLabel,a=e.ariaLabelFormat,s=e.disabled,l=e.getAriaLabel,c=e.styles,u=e.min,A=void 0===u?e.allowZeroStars?0:1:u,d=e.max,g=void 0===d?5:d,p=e.readOnly,h=e.size,f=e.theme,I=e.icon,C=void 0===I?"FavoriteStarFill":I,E=e.unselectedIcon,b=void 0===E?"FavoriteStar":E,v=e.onRenderStar,B=Math.max(A,0),M=Sa(e.rating,e.defaultRating,e.onChange),D=M[0],x=M[1],Q=function(e,t,n){return Math.min(Math.max(null!=e?e:t,t),n)}(D,B,g);!function(e,t){y.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,Q);for(var S=Object(w.j)(e,w.h),N=Lm(c,{disabled:s,readOnly:p,theme:f}),k=null===(n=l)||void 0===n?void 0:n(Q,g),T=i||k,j=[],L=function(e){var t,n,i=function(e,t){var n=Math.ceil(t),r=100;return e===t?r=100:e===n?r=t%1*100:e>n&&(r=0),r}(e,Q),l=function(t){void 0!==D&&Math.ceil(D)===e||x(e,t)};j.push(y.createElement("button",Object(m.a)({className:Object(ve.a)(N.ratingButton,h===Dm.Large?N.ratingStarIsLarge:N.ratingStarIsSmall),id:Om(r,e),key:e},e===Math.ceil(Q)&&{"data-is-current":!0},{onFocus:l,onClick:l,disabled:!(!s&&!p),role:"radio","aria-hidden":p?"true":void 0,type:"button","aria-checked":e===Math.ceil(Q)}),y.createElement("span",{id:o+"-"+e,className:N.labelText},Object(Fi.a)(a||"",e,g)),(t={fillPercentage:i,disabled:s,classNames:N,icon:i>0?C:b,starNum:e},(n=v)?n(t):y.createElement(Rm,Object(m.a)({},t)))))},R=1;R<=g;R++)L(R);var O=h===Dm.Large?N.rootIsLarge:N.rootIsSmall;return y.createElement("div",Object(m.a)({ref:t,className:Object(ve.a)("ms-Rating-star",N.root,O),"aria-label":p?void 0:T,id:r,role:p?void 0:"radiogroup"},S),y.createElement(Te,Object(m.a)({direction:Ae.bidirectional,className:Object(ve.a)(N.ratingFocusZone,O),defaultActiveElement:"#"+Om(r,Math.ceil(Q))},p&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":k,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),j))}));_m.displayName="RatingBase";var Fm=Object(M.a)(_m,(function(e){var t=e.disabled,n=e.readOnly,r=e.theme,o=r.semanticColors,i=r.palette,a=Object(I.R)(Tm,r),s=i.neutralSecondary,l=i.themePrimary,c=i.themeDark,u=i.neutralPrimary,A=o.disabledBodySubtext;return{root:[a.root,r.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":jm(u,"Highlight")}}}}],rootIsSmall:[a.rootIsSmall,{height:"32px"}],rootIsLarge:[a.rootIsLarge,{height:"36px"}],ratingStar:[a.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[a.ratingStarBack,{color:s,width:"100%"},t&&jm(A,"GrayText")],ratingStarFront:[a.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},jm(u,"Highlight")],ratingButton:[Object(I.Q)(r),a.ratingButton,{backgroundColor:"transparent",padding:"8px 2px",boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":jm(s,"WindowText"),".ms-RatingStar-front":jm(s,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[a.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[a.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[a.labelText,I.ab],ratingFocusZone:[Object(I.Q)(r),a.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"}),zm={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Pm={auto:"auto",always:"always"},Um=y.createContext({scrollablePane:void 0}),Gm=Object(D.a)(),Hm=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._stickyAboveRef=y.createRef(),n._stickyBelowRef=y.createRef(),n._contentContainer=y.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,r=0;e.forEach((function(e){var o=e.state,i=o.isStickyTop,a=o.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(r+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:r})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,r){if(t.children.length){if(!t.contains(r)){var o=[].slice.call(t.children),i=[];n._stickies.forEach((function(r){(t===n.stickyAbove&&e.canStickyTop||e.canStickyBottom)&&i.push(r)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var r=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!r&&o.indexOf(r)>-1}));s<l.length;s++){var c=l[s];if((c.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=c;break}}var u=null;a&&(u=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(r,u)}}else t.appendChild(r)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return Object(m.a)(Object(m.a)({height:e},Object(Q.a)(n.props.theme)?{right:"0",left:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}:{left:"0",right:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}),t?{top:"0"}:{bottom:(n.state.scrollbarHeight||n._getScrollbarHeight()||0)+"px"})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,Object(se.a)(n),n._async=new le.a(n),n._events=new Ue.a(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var r=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&r.push(e)})),r.length&&r.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.theme,r=e.styles,o=this.state,i=o.stickyTopHeight,a=o.stickyBottomHeight,s=Gm(r,{theme:n,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return y.createElement("div",Object(m.a)({},Object(w.j)(this.props,w.h),{ref:this._root,className:s.root}),y.createElement("div",{ref:this._stickyAboveRef,className:s.stickyAbove,style:this._getStickyContainerStyle(i,!0)}),y.createElement("div",{ref:this._contentContainer,className:s.contentContainer,"data-is-scrollable":!0},y.createElement(Um.Provider,{value:this._getScrollablePaneContext()},this.props.children)),y.createElement("div",{className:s.stickyBelow,style:this._getStickyContainerStyle(a,!1)},y.createElement("div",{ref:this._stickyBelowRef,className:s.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(y.Component),Ym=Object(M.a)(Hm,(function(e){var t,n,r=e.className,o=e.theme,i=Object(I.R)(zm,o),a={position:"absolute",pointerEvents:"none"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,o.fonts.medium,s,r],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[I.l]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[I.l]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"}),Vm={root:{height:"auto"},icon:{fontSize:"12px"}},Wm={iconName:"Clear"},Km={ariaLabel:"Clear text"},Zm=Object(D.a)(),Jm=y.forwardRef((function(e,t){var n=e.defaultValue,r=void 0===n?"":n,o=y.useState(!1),i=o[0],a=o[1],s=Sa(e.value,r,e.onChange),l=s[0],c=s[1],u=String(l),A=y.useRef(null),d=y.useRef(null),g=Object(L.a)(A,t),p=oi("SearchBox",e.id),h=e.ariaLabel,f=e.className,I=e.disabled,C=e.underlined,E=e.styles,b=e.labelText,v=e.placeholder,B=void 0===v?b:v,M=e.theme,D=e.clearButtonProps,x=void 0===D?Km:D,Q=e.disableAnimation,S=void 0!==Q&&Q,k=e.onClear,T=e.onBlur,j=e.onEscape,R=e.onSearch,O=e.onKeyDown,_=e.iconProps,F=e.role,z=x.onClick,P=Zm(E,{theme:M,className:f,underlined:C,hasFocus:i,disabled:I,hasInput:u.length>0,disableAnimation:S}),U=Object(w.j)(e,w.o,["className","placeholder","onFocus","onBlur","value","role"]),G=y.useCallback((function(e){var t,n;null===(t=k)||void 0===t||t(e),e.defaultPrevented||(c(""),null===(n=d.current)||void 0===n||n.focus(),e.stopPropagation(),e.preventDefault())}),[k,c]),H=y.useCallback((function(e){var t;null===(t=z)||void 0===t||t(e),e.defaultPrevented||G(e)}),[z,G]),Y=y.useCallback((function(e){var t;a(!1),null===(t=T)||void 0===t||t(e)}),[T]),V=function(e){c(e.target.value)};return function(e,t,n){y.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},hasFocus:function(){return n}}}),[t,n])}(e.componentRef,d,i),y.createElement("div",{role:F,ref:g,className:P.root,onFocusCapture:function(t){var n,r;a(!0),null===(r=(n=e).onFocus)||void 0===r||r.call(n,t)}},y.createElement("div",{className:P.iconContainer,onClick:function(){d.current&&(d.current.focus(),d.current.selectionStart=d.current.selectionEnd=0)},"aria-hidden":!0},y.createElement(N.a,Object(m.a)({iconName:"Search"},_,{className:P.icon}))),y.createElement("input",Object(m.a)({},U,{id:p,className:P.field,placeholder:B,onChange:V,onInput:V,onBlur:Y,onKeyDown:function(e){var t,n;switch(e.which){case ae.a.escape:null===(t=j)||void 0===t||t(e),u&&!e.defaultPrevented&&G(e);break;case ae.a.enter:R&&(R(u),e.preventDefault(),e.stopPropagation());break;default:null===(n=O)||void 0===n||n(e),e.defaultPrevented&&e.stopPropagation()}},value:u,disabled:I,role:"searchbox","aria-label":h,ref:d})),u.length>0&&y.createElement("div",{className:P.clearButton},y.createElement(co,Object(m.a)({onBlur:Y,styles:Vm,iconProps:Wm},x,{onClick:H}))))}));Jm.displayName="SearchBox";var qm={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};var Xm=Object(M.a)(Jm,(function(e){var t,n,r,o,i=e.theme,a=e.underlined,s=e.disabled,l=e.hasFocus,c=e.className,u=e.hasInput,A=e.disableAnimation,d=i.palette,g=i.fonts,p=i.semanticColors,h=i.effects,f=Object(I.R)(qm,i),m={color:p.inputPlaceholderText,opacity:1},y=d.neutralSecondary,C=d.neutralPrimary,E=d.neutralLighter,b=d.neutralLighter,v=d.neutralLighter;return{root:[f.root,g.medium,I.gb,{color:p.inputText,backgroundColor:p.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:h.roundedCorner2,border:"1px solid "+p.inputBorder,height:32,selectors:(t={},t[I.l]={borderColor:"WindowText"},t[":hover"]={borderColor:p.inputBorderHovered,selectors:(n={},n[I.l]={borderColor:"Highlight"},n)},t[":hover ."+f.iconContainer]={color:p.inputIconHovered},t)},!l&&u&&{selectors:(r={},r[":hover ."+f.iconContainer]={width:4},r[":hover ."+f.icon]={opacity:0},r)},l&&["is-active",{position:"relative"},Object(I.V)(p.inputFocusBorderAlt,a?0:h.roundedCorner2,a?"borderBottom":"border")],s&&["is-disabled",{borderColor:E,backgroundColor:v,pointerEvents:"none",cursor:"default",selectors:(o={},o[I.l]={borderColor:"GrayText"},o)}],a&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],a&&s&&{backgroundColor:"transparent"},u&&"can-clear",c],iconContainer:[f.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:p.inputIcon,cursor:"text"},l&&{width:4},s&&{color:p.inputIconDisabled},!A&&{transition:"width "+I.c.durationValue1}],icon:[f.icon,{opacity:1},l&&{opacity:0},!A&&{transition:"opacity "+I.c.durationValue1+" 0s"}],clearButton:[f.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:b},"&:hover .ms-Button-icon":{color:C},".ms-Button":{borderRadius:Object(Q.a)(i)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:y}}}],field:[f.field,I.gb,Object(I.W)(m),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:p.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},s&&{color:p.disabledText}]}}),void 0,{scope:"SearchBox"}),$m=function(e){function t(t){var n=e.call(this,t)||this;n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat(e);n.updateItems(t)}));else{var i=n.state.items.concat(r);n.updateItems(i)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var r=t.slice(0,e).concat(t.slice(e+1));n.updateItems(r)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var r=n.state.items,o=r.indexOf(e);if(o>-1){var i=r.slice(0,o).concat(t).concat(r.slice(o+1));n.updateItems(i)}},n.removeItems=function(e){var t=n.state.items,r=e.filter((function(e){return n._canRemoveItem(e)})),o=t.filter((function(e){return-1===r.indexOf(e)})),i=r[0],a=t.indexOf(i);n.props.onItemsDeleted&&n.props.onItemsDeleted(r),n.updateItems(o,a)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map((function(r,o){return t({item:r,index:o,key:r.key?r.key:o,selected:n.selection.isIndexSelected(o),onRemoveItem:function(){return n.removeItem(r)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})}))},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n.updateItems(o)}},Object(se.a)(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n.state={items:r},n._defaultSelection=new eu({onSelectionChanged:n.onSelectionChanged}),n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!0,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){n._onSelectedItemsUpdated(e,t)}))},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!=(e=this.props.selection)?e:this._defaultSelection},enumerable:!0,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=document.createElement("input");document.body.appendChild(n);try{if(n.value=t,n.select(),!document.execCommand("copy"))throw new Error}catch(e){}finally{document.body.removeChild(n)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t}(y.Component);Object(Rg.a)([{rawString:".personaContainer_e3941fa3{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:";margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_e3941fa3::-moz-focus-inner{border:0}.personaContainer_e3941fa3{outline:transparent}.personaContainer_e3941fa3{position:relative}.ms-Fabric--isFocusVisible .personaContainer_e3941fa3:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:'';position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid "},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_e3941fa3 .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_e3941fa3 .ms-Persona-primaryText.hover_e3941fa3{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_e3941fa3 .actionButton_e3941fa3:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_e3941fa3 .actionButton_e3941fa3 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3 .actionButton_e3941fa3 .ms-Button-icon{color:HighlightText}}.personaContainer_e3941fa3:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_e3941fa3:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .actionButton_e3941fa3{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .actionButton_e3941fa3 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .actionButton_e3941fa3 .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3 .actionButton_e3941fa3 .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3.personaContainerIsSelected_e3941fa3{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_e3941fa3.validationError_e3941fa3 .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_e3941fa3.validationError_e3941fa3 .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active){.personaContainer_e3941fa3{border:1px solid WindowText}}.personaContainer_e3941fa3 .itemContent_e3941fa3{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_e3941fa3 .removeButton_e3941fa3{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_e3941fa3 .expandButton_e3941fa3{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_e3941fa3 .personaWrapper_e3941fa3{position:relative;display:inherit}.personaContainer_e3941fa3 .personaWrapper_e3941fa3 .ms-Persona-details{padding:0 8px}.personaContainer_e3941fa3 .personaDetails_e3941fa3{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_e3941fa3{display:inline-block;vertical-align:top}"}]);var ey="personaContainer_e3941fa3",ty="hover_e3941fa3",ny="actionButton_e3941fa3",ry="personaContainerIsSelected_e3941fa3",oy="validationError_e3941fa3",iy="itemContent_e3941fa3",ay="removeButton_e3941fa3",sy="expandButton_e3941fa3",ly="personaWrapper_e3941fa3",cy="personaDetails_e3941fa3",uy="itemContainer_e3941fa3",Ay=c,dy=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=y.createRef(),Object(se.a)(n),n.state={contextualMenuVisible:!1},n}return Object(m.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.item,o=n.onExpandItem,i=n.onRemoveItem,a=n.removeButtonAriaLabel,s=n.index,l=n.selected,c=Object(Ee.a)();return y.createElement("div",{ref:this.persona,className:Object(ve.a)("ms-PickerPersona-container",Ay.personaContainer,(e={},e["is-selected "+Ay.personaContainerIsSelected]=l,e),(t={},t["is-invalid "+Ay.validationError]=!r.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":s,role:"listitem","aria-labelledby":"selectedItemPersona-"+c},y.createElement("div",{hidden:!r.canExpand||void 0===o},y.createElement(co,{onClick:this._onClickIconButton(o),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Object(ve.a)("ms-PickerItem-removeButton",Ay.expandButton,Ay.actionButton),ariaLabel:a})),y.createElement("div",{className:Object(ve.a)(Ay.personaWrapper)},y.createElement("div",{className:Object(ve.a)("ms-PickerItem-content",Ay.itemContent),id:"selectedItemPersona-"+c},y.createElement(qg,Object(m.a)({},r,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:u.size32}))),y.createElement(co,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Object(ve.a)("ms-PickerItem-removeButton",Ay.removeButton,Ay.actionButton),ariaLabel:a})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(y.Component),gy=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=y.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},Object(se.a)(n),n.state={contextualMenuVisible:!1},n}return Object(m.c)(t,e),t.prototype.render=function(){return y.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?y.createElement(qr,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:Je.bottomLeftEdge}):null)},t}(y.Component),py={root:"ms-EditingItem",input:"ms-EditingItem-input"},hy=function(e){var t=Object(I.Y)();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,r=Object(I.R)(py,t);return{root:[r.root,{margin:"4px"}],input:[r.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},fy=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=y.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?y.createElement(e,Object(m.a)({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):y.createElement(y.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate((function(){n._editingInput.focus()}))},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},Object(se.a)(n),n.state={contextualMenuVisible:!1},n}return Object(m.c)(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=Object(Ee.a)(),t=Object(w.j)(this.props,w.o),n=Object(D.a)()(hy);return y.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},y.createElement("input",Object(m.a)({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==ae.a.backspace&&e.which!==ae.a.del||e.stopPropagation()},t}(y.Component),my=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.c)(t,e),t}($m),yy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map((function(e,n){return t._renderItem(e,n)}))},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}return Object(m.c)(t,e),t.prototype._renderItem=function(e,t){var n=this,r=this.props.removeButtonAriaLabel,o=this.props.onExpandGroup,i={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:r,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:o?function(){return o(e)}:void 0,menuItems:this._createMenuItems(e)},a=i.menuItems.length>0;if(e.isEditing&&a)return y.createElement(fy,Object(m.a)({},i,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var s=(0,this.props.onRenderItem)(i);return a?y.createElement(gy,{key:i.key,renderedItem:s,beginEditing:this._beginEditing,menuItems:this._createMenuItems(i.item),item:i.item}):s},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return y.createElement(dy,Object(m.a)({},e))}},t}(my),Iy=Object(D.a)(),Cy=y.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.className,i=e.vertical,a=e.alignContent,s=e.children,l=Iy(n,{theme:r,className:o,alignContent:a,vertical:i});return y.createElement("div",{className:l.root,ref:t},y.createElement("div",{className:l.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s))})),Ey=Object(M.a)(Cy,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,l="center"===o,c="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(l||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[I.l]={backgroundColor:"WindowText"},t)}},!i&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[I.l]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},i&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});Ey.displayName="Separator";var by,vy,By={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},My=Object(C.c)((function(){return Object(I.bb)({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(100%)"}})})),Dy=Object(C.c)((function(){return Object(I.bb)({"100%":{transform:"translateX(-100%)"},"0%":{transform:"translateX(100%)"}})}));!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(by||(by={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(vy||(vy={}));var xy=Object(D.a)(),wy=function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"100%":r,i=e.borderStyle,a=e.theme,s=xy(n,{theme:a,height:t,borderStyle:i});return y.createElement("div",{style:{width:o,minWidth:"number"==typeof o?o+"px":"auto"},className:s.root},y.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},y.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),y.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},y.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),y.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},y.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),y.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},y.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},Qy={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var Sy=Object(M.a)(wy,(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=Object(I.R)(Qy,o),s=r||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,o.fonts.medium,{height:n+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[I.l]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),Ny=Object(D.a)(),ky=function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"10px":r,i=e.borderStyle,a=e.theme,s=Ny(n,{theme:a,height:t,borderStyle:i});return y.createElement("div",{style:{width:o,minWidth:"number"==typeof o?o+"px":"auto"},className:s.root})},Ty={root:"ms-ShimmerGap-root"};var jy=Object(M.a)(ky,(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=r||{};return{root:[Object(I.R)(Ty,o).root,o.fonts.medium,{backgroundColor:i.bodyBackground,height:n+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,selectors:(t={},t[I.l]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),Ly={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var Ry=Object(D.a)(),Oy=function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=e.theme,i=Ry(n,{theme:o,height:t,borderStyle:r});return y.createElement("div",{className:i.root},y.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},y.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},_y=Object(M.a)(Oy,(function(e){var t,n,r=e.height,o=e.borderStyle,i=e.theme,a=i.semanticColors,s=Object(I.R)(Ly,i),l=o||{};return{root:[s.root,i.fonts.medium,{width:r+"px",height:r+"px",minWidth:r+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[I.l]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[I.l]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),Fy=Object(D.a)(),zy=function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,o=e.shimmerElements,i=e.rowHeight,a=void 0===i?function(e){return e.map((function(e){switch(e.type){case by.circle:e.height||(e.height=vy.circle);break;case by.line:e.height||(e.height=vy.line);break;case by.gap:e.height||(e.height=vy.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(o||[]):i,s=e.flexWrap,l=void 0!==s&&s,c=e.theme,u=e.backgroundColor,A=Fy(t,{theme:c,flexWrap:l});return y.createElement("div",{style:{width:r},className:A.root},function(e,t,n){return e?e.map((function(e,r){var o=e.type,i=Object(m.d)(e,["type"]),a=i.verticalAlign,s=i.height,l=Py(a,o,s,t,n);switch(e.type){case by.circle:return y.createElement(_y,Object(m.a)({key:r},i,{styles:l}));case by.gap:return y.createElement(jy,Object(m.a)({key:r},i,{styles:l}));case by.line:return y.createElement(Sy,Object(m.a)({key:r},i,{styles:l}))}})):y.createElement(Sy,{height:vy.line})}(o,u,a))};var Py=Object(C.c)((function(e,t,n,r,o){var i,a=o&&n?o-n:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:a+"px",borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:a+"px"}):i={borderBottomWidth:(a?Math.floor(a/2):0)+"px",borderTopWidth:(a?Math.ceil(a/2):0)+"px"},r)switch(t){case by.circle:return{root:Object(m.a)(Object(m.a)({},i),{borderColor:r}),svg:{fill:r}};case by.gap:return{root:Object(m.a)(Object(m.a)({},i),{borderColor:r,backgroundColor:r})};case by.line:return{root:Object(m.a)(Object(m.a)({},i),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:i}}));var Uy={root:"ms-ShimmerElementsGroup-root"};var Gy=Object(M.a)(zy,(function(e){var t=e.flexWrap,n=e.theme;return{root:[Object(I.R)(Uy,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),Hy=Object(D.a)(),Yy=y.forwardRef((function(e,t){var n=e.styles,r=e.shimmerElements,o=e.children,i=e.width,a=e.className,s=e.customElementsGroup,l=e.theme,c=e.ariaLabel,u=e.shimmerColors,A=e.isDataLoaded,d=void 0!==A&&A,g=Object(w.j)(e,w.h),p=Hy(n,{theme:l,isDataLoaded:d,className:a,transitionAnimationInterval:200,shimmerColor:u&&u.shimmer,shimmerWaveColor:u&&u.shimmerWave}),h=Yt({lastTimeoutId:0}),f=Bs(),I=f.setTimeout,C=f.clearTimeout,E=y.useState(d),b=E[0],v=E[1],B={width:i||"100%"};return y.useEffect((function(){if(d!==b){if(d)return h.lastTimeoutId=I((function(){v(!0)}),200),function(){return C(h.lastTimeoutId)};v(!1)}}),[d]),y.createElement("div",Object(m.a)({},g,{className:p.root,ref:t}),!b&&y.createElement("div",{style:B,className:p.shimmerWrapper},y.createElement("div",{className:p.shimmerGradient}),s||y.createElement(Gy,{shimmerElements:r,backgroundColor:u&&u.background})),o&&y.createElement("div",{className:p.dataWrapper},o),c&&!d&&y.createElement("div",{role:"status","aria-live":"polite"},y.createElement(de.a,null,y.createElement("div",{className:p.screenReaderText},c))))}));Yy.displayName="Shimmer";var Vy=Object(M.a)(Yy,(function(e){var t,n=e.isDataLoaded,r=e.className,o=e.theme,i=e.transitionAnimationInterval,a=e.shimmerColor,s=e.shimmerWaveColor,l=o.semanticColors,c=Object(I.R)(By,o),u=Object(Q.a)(o);return{root:[c.root,o.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[c.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:a||l.disabledBackground,transition:"opacity "+i+"ms",selectors:(t={"> *":{transform:"translateZ(0)"}},t[I.l]=Object(m.a)({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},Object(I.S)()),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],shimmerGradient:[c.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:(a||l.disabledBackground)+"\n                      linear-gradient(\n                        to right,\n                        "+(a||l.disabledBackground)+" 0%,\n                        "+(s||l.bodyDivider)+" 50%,\n                        "+(a||l.disabledBackground)+" 100%)\n                      0 0 / 90% 100%\n                      no-repeat",transform:"translateX(-100%)",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:u?Dy():My()}],dataWrapper:[c.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+i+"ms"},n&&{opacity:"1",position:"static"}],screenReaderText:I.ab}}),void 0,{scope:"Shimmer"}),Wy=Object(D.a)(),Ky=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var r=n.props.onRenderCustomPlaceholder,o=r?r(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return y.createElement(Vy,{customElementsGroup:o})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,r=e.selectionMode,o=e.checkboxVisibility,i=e.cellStyleProps,a=void 0===i?Au:i,s=du.rowHeight,l=du.compactRowHeight,c=n?l:s+1,u=[];return r!==Zc.none&&o!==su.hidden&&u.push(y.createElement(Gy,{key:"checkboxGap",shimmerElements:[{type:by.gap,width:"40px",height:c}]})),t.forEach((function(e,t){var n=[],r=a.cellLeftPadding+a.cellRightPadding+e.calculatedWidth+(e.isPadded?a.cellExtraRightPadding:0);n.push({type:by.gap,width:a.cellLeftPadding,height:c}),e.isIconOnly?(n.push({type:by.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:by.gap,width:a.cellRightPadding,height:c})):(n.push({type:by.line,width:.95*e.calculatedWidth,height:7}),n.push({type:by.gap,width:a.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?a.cellExtraRightPadding:0),height:c})),u.push(y.createElement(Gy,{key:t,width:r+"px",shimmerElements:n}))})),u.push(y.createElement(Gy,{key:"endGap",width:"100%",shimmerElements:[{type:by.gap,width:"100%",height:c}]})),y.createElement("div",{style:{display:"flex"}},u)},n._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(10),n}return Object(m.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,r=e.items,o=e.listProps,i=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),a=(e.shimmerLines,e.styles),s=e.theme,l=e.ariaLabelForGrid,c=e.ariaLabelForShimmer,u=Object(m.d)(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),A=o&&o.className;this._classNames=Wy(a,{theme:s});var d=Object(m.a)(Object(m.a)({},o),{className:n&&!i?Object(ve.a)(this._classNames.root,A):A});return y.createElement(xA,Object(m.a)({},u,{styles:t,items:n?this._shimmerItems:r,isPlaceholderData:n,ariaLabelForGrid:n&&c||l,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:d}))},t}(y.Component),Zy=Object(M.a)(Ky,(function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, "+t.whiteTranslucent40+" 65%,"+t.white+" 100%)"}}}}}),void 0,{scope:"ShimmeredDetailsList"}),Jy=Object(D.a)(),qy=function(e){return function(t){var n;return(n={})[e]=t+"%",n}},Xy=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},$y=function(e,t){var n=e.step,r=void 0===n?1:n,o=e.className,i=e.disabled,a=void 0!==i&&i,s=e.label,l=e.max,c=void 0===l?10:l,u=e.min,A=void 0===u?0:u,d=e.showValue,g=void 0===d||d,p=e.buttonProps,h=void 0===p?{}:p,f=e.vertical,I=void 0!==f&&f,C=e.valueFormat,E=e.styles,b=e.theme,v=e.originFromZero,B=e["aria-label"],M=e.ranged,D=y.useRef([]),x=y.useRef(null),S=Sa(e.value,e.defaultValue,(function(t,n){var r,o;return null===(o=(r=e).onChange)||void 0===o?void 0:o.call(r,n,M?[_,n]:void 0)})),N=S[0],k=S[1],T=Sa(e.lowerValue,e.defaultLowerValue,(function(t,n){var r,o;return null===(o=(r=e).onChange)||void 0===o?void 0:o.call(r,O,[n,O])})),j=T[0],L=T[1],R=y.useRef(!1),O=Math.max(A,Math.min(c,N||0)),_=Math.max(A,Math.min(O,j||0)),F=oi("Slider"),z=_A(!0),P=z[0],U=z[1].toggle,G=Jy(E,{className:o,disabled:a,vertical:I,showTransitions:P,showValue:g,ranged:M,theme:b}),H=y.useState(0),Y=H[0],V=H[1],W=(c-A)/r,K=function(){clearTimeout(Y)},Z=function(t){K(),V(setTimeout((function(){e.onChanged&&e.onChanged(t,O)}),1e3))},J=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},q=function(t,n){var o=e.snapToStep,i=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,i))/Math.pow(10,i)!==r;)i++;var a=parseFloat(t.toFixed(i));M?R.current&&(v?a<=0:a<=O)?L(a):!R.current&&(v?a>=0:a>=_)&&k(a):k(a)},X=function(e,t){var n;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},$=function(t){if(x.current){var n,r=x.current.getBoundingClientRect(),o=(e.vertical?r.height:r.width)/W;if(e.vertical){var i=X(t,e.vertical);n=(r.bottom-i)/o}else{var a=X(t,e.vertical);n=(Object(Q.a)(e.theme)?r.right-a:a-r.left)/o}return n}},ee=function(e,t){var n,o=$(e);o>Math.floor(W)?n=c:o<0?n=A:(A+r*o,n=A+r*Math.round(o)),q(n),t||(e.preventDefault(),e.stopPropagation())},te=function(e){if(M){var t=$(e),n=A+r*t;R.current=n<=_||n-_<=O-n}"mousedown"===e.type?D.current.push(Object(it.a)(window,"mousemove",ee,!0),Object(it.a)(window,"mouseup",ne,!0)):"touchstart"===e.type&&D.current.push(Object(it.a)(window,"touchmove",ee,!0),Object(it.a)(window,"touchend",ne,!0)),U(),ee(e,!0)},ne=function(t){e.onChanged&&e.onChanged(t,O),U(),re()},re=function(){D.current.forEach((function(e){return e()})),D.current=[]},oe=a?{}:{onMouseDown:te},ie=a?{}:{onTouchStart:te},se=a?{}:{onKeyDown:function(t){var n=R.current?_:O,o=0;switch(t.which){case Object(Q.b)(ae.a.left,e.theme):case ae.a.down:o=-r,K(),Z(t);break;case Object(Q.b)(ae.a.right,e.theme):case ae.a.up:o=r,K(),Z(t);break;case ae.a.home:n=A;break;case ae.a.end:n=c;break;default:return}var i=Math.min(c,Math.max(A,n+o));q(i),t.preventDefault(),t.stopPropagation()}},le=a?{}:{onFocus:function(e){R.current=e.target===ce.current}},ce=y.useRef(null),ue=y.useRef(null);!function(e,t,n,r){y.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return e.ranged?r:void 0},focus:function(){t.current&&t.current.focus()}}}),[t,n,e.ranged,r])}(e,M&&!I?ce:ue,O,[_,O]);var Ae=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),qy(e?"bottom":t?"right":"left")}(I,Object(Q.a)(e.theme)),de=function(e){return void 0===e&&(e=!1),qy(e?"height":"width")}(I),ge=v?0:A,pe=Xy(O,A,c),he=Xy(_,A,c),fe=Xy(ge,A,c),me=M?pe-he:Math.abs(fe-pe),ye=Math.min(100-pe,100-fe),Ie=M?he:Math.min(pe,fe),Ce={className:G.root,ref:t},Ee=h?Object(w.j)(h,w.h):void 0,be={className:G.titleLabel,children:s,disabled:a,htmlFor:B?void 0:F},Be=g?{className:G.valueLabel,children:C?C(O):O,disabled:a}:void 0,Me=M&&g?{className:G.valueLabel,children:C?C(_):_,disabled:a}:void 0,De=v?{className:G.zeroTick,style:Ae(fe)}:void 0,xe={className:Object(ve.a)(G.lineContainer,G.activeSection),style:de(me)},we={className:Object(ve.a)(G.lineContainer,G.inactiveSection),style:de(ye)},Qe={className:Object(ve.a)(G.lineContainer,G.inactiveSection),style:de(Ie)},Se=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},oe),ie),se),Ee),Ne=Object(m.a)({"aria-disabled":a,role:"slider",tabIndex:a?void 0:0},{"data-is-focusable":!a}),ke=Object(m.a)(Object(m.a)({id:F,className:Object(ve.a)(G.slideBox,h.className)},Se),!M&&Object(m.a)(Object(m.a)({},Ne),{"aria-valuemin":A,"aria-valuemax":c,"aria-valuenow":O,"aria-valuetext":J(O),"aria-label":B||s})),Te=Object(m.a)({ref:ue,className:G.thumb,style:Ae(pe)},M&&Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},Ne),Se),le),{id:"max-"+F,"aria-valuemin":_,"aria-valuemax":c,"aria-valuenow":O,"aria-valuetext":J(O),"aria-label":"max "+(B||s)})),je=M?Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({ref:ce,className:G.thumb,style:Ae(he)},Ne),Se),le),{id:"min-"+F,"aria-valuemin":A,"aria-valuemax":O,"aria-valuenow":_,"aria-valuetext":J(_),"aria-label":"min "+(B||s)}):void 0;return{root:Ce,label:be,sliderBox:ke,container:{className:G.container},valueLabel:Be,lowerValueLabel:Me,thumb:Te,lowerValueThumb:je,zeroTick:De,activeTrack:xe,topInactiveTrack:we,bottomInactiveTrack:Qe,sliderLine:{ref:x,className:G.line}}},eI=y.forwardRef((function(e,t){var n=$y(e,t);return y.createElement("div",Object(m.a)({},n.root),n&&y.createElement(Ja,Object(m.a)({},n.label)),y.createElement("div",Object(m.a)({},n.container),e.ranged&&(e.vertical?n.valueLabel&&y.createElement(Ja,Object(m.a)({},n.valueLabel)):n.lowerValueLabel&&y.createElement(Ja,Object(m.a)({},n.lowerValueLabel))),y.createElement("div",Object(m.a)({},n.sliderBox),y.createElement("div",Object(m.a)({},n.sliderLine),e.ranged&&y.createElement("span",Object(m.a)({},n.lowerValueThumb)),y.createElement("span",Object(m.a)({},n.thumb)),n.zeroTick&&y.createElement("span",Object(m.a)({},n.zeroTick)),y.createElement("span",Object(m.a)({},n.bottomInactiveTrack)),y.createElement("span",Object(m.a)({},n.activeTrack)),y.createElement("span",Object(m.a)({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&y.createElement(Ja,Object(m.a)({},n.lowerValueLabel)):n.valueLabel&&y.createElement(Ja,Object(m.a)({},n.valueLabel))),y.createElement(je.a,null))}));eI.displayName="SliderBase";var tI,nI={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},rI=Object(M.a)(eI,(function(e){var t,n,r,o,i,a,s,l,c,u,A,d,g,p=e.className,h=e.titleLabelClassName,f=e.theme,y=e.vertical,C=e.disabled,E=e.showTransitions,b=e.showValue,v=e.ranged,B=f.semanticColors,M=Object(I.R)(nI,f),D=B.inputBackgroundCheckedHovered,x=B.inputBackgroundChecked,w=B.inputPlaceholderBackgroundChecked,S=B.smallInputBorder,N=B.disabledBorder,k=B.disabledText,T=B.disabledBackground,j=B.inputBackground,L=B.smallInputBorder,R=B.disabledBorder,O=!C&&{backgroundColor:D,selectors:(t={},t[I.l]={backgroundColor:"Highlight"},t)},_=!C&&{backgroundColor:w,selectors:(n={},n[I.l]={borderColor:"Highlight"},n)},F=!C&&{backgroundColor:x,selectors:(r={},r[I.l]={backgroundColor:"Highlight"},r)},z=!C&&{border:"2px solid "+D,selectors:(o={},o[I.l]={borderColor:"Highlight"},o)},P=!e.disabled&&{backgroundColor:B.inputPlaceholderBackgroundChecked,selectors:(i={},i[I.l]={backgroundColor:"Highlight"},i)};return{root:Object(m.e)([M.root,f.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[C?void 0:M.enabled],[C?M.disabled:void 0],[y?void 0:M.row],[y?M.column:void 0],[p]),titleLabel:[{padding:0},h],container:[M.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:Object(m.e)([M.slideBox,!v&&Object(I.Q)(f),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active ."+M.activeSection]=O,a[":hover ."+M.activeSection]=F,a[":active ."+M.inactiveSection]=_,a[":hover ."+M.inactiveSection]=_,a[":active ."+M.thumb]=z,a[":hover ."+M.thumb]=z,a[":active ."+M.zeroTick]=P,a[":hover ."+M.zeroTick]=P,a[I.l]={forcedColorAdjust:"none"},a)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[b?M.showValue:void 0],[E?M.showTransitions:void 0]),thumb:[M.thumb,v&&Object(I.Q)(f,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:L,borderRadius:10,boxSizing:"border-box",background:j,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Object(Q.a)(f)?"translateX(50%)":"translateX(-50%)"},E&&{transition:"left "+I.c.durationValue3+" "+I.c.easeFunction1},C&&{borderColor:R,selectors:(s={},s[I.l]={borderColor:"GrayText"},s)}],line:[M.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[M.activeSection,{background:S,selectors:(l={},l[I.l]={backgroundColor:"WindowText"},l)},E&&{transition:"width "+I.c.durationValue3+" "+I.c.easeFunction1},C&&{background:k,selectors:(c={},c[I.l]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[M.inactiveSection,{background:N,selectors:(u={},u[I.l]={border:"1px solid WindowText"},u)},E&&{transition:"width "+I.c.durationValue3+" "+I.c.easeFunction1},C&&{background:T,selectors:(A={},A[I.l]={borderColor:"GrayText"},A)}],zeroTick:[M.zeroTick,{position:"absolute",background:B.disabledBorder,selectors:(d={},d[I.l]={backgroundColor:"WindowText"},d)},e.disabled&&{background:B.disabledBackground,selectors:(g={},g[I.l]={backgroundColor:"GrayText"},g)},e.vertical?{width:"16px",height:"1px",transform:Object(Q.a)(f)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[M.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"}),oI=Object(C.c)((function(e){var t,n=e.semanticColors,r=n.disabledText,o=n.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:r,selectors:(t={":after":{borderColor:o}},t[I.l]={color:"GrayText"},t)}})),iI=Object(C.c)((function(e,t,n){var r,o,i,a=e.palette,s=e.semanticColors,l=e.effects,c=a.neutralSecondary,u=s.buttonText,A=s.buttonText,d=s.buttonBackgroundHovered,g=s.buttonBackgroundPressed,p={root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:c,selectors:{"&.ms-DownButton":{borderRadius:"0 0 "+l.roundedCorner2+" 0"},"&.ms-UpButton":{borderRadius:"0 "+l.roundedCorner2+" 0 0"}}},rootHovered:{backgroundColor:d,color:u},rootChecked:{backgroundColor:g,color:A,selectors:(r={},r[I.l]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootPressed:{backgroundColor:g,color:A,selectors:(o={},o[I.l]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:(i={},i[I.l]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}};return Object(I.H)(p,{},n)}));!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(tI||(tI={}));var aI=Object(D.a)(),sI={disabled:!1,label:"",step:1,labelPosition:ot.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},lI=function(){},cI=function(e,t){var n=t.min,r=t.max;return"number"==typeof r&&(e=Math.min(e,r)),"number"==typeof n&&(e=Math.max(e,n)),e},uI=y.forwardRef((function(e,t){var n=Object(x.a)(sI,e),r=n.disabled,o=n.label,i=n.min,a=n.max,s=n.step,l=n.defaultValue,c=n.value,u=n.precision,A=n.labelPosition,d=n.iconProps,g=n.incrementButtonIcon,p=n.incrementButtonAriaLabel,h=n.decrementButtonIcon,f=n.decrementButtonAriaLabel,I=n.ariaLabel,C=n.ariaDescribedBy,E=n.upArrowButtonStyles,b=n.downArrowButtonStyles,v=n.theme,B=n.ariaPositionInSet,M=n.ariaSetSize,D=n.ariaValueNow,Q=n.ariaValueText,S=n.className,k=n.inputProps,T=n.onDecrement,j=n.onIncrement,L=n.iconButtonProps,R=n.onValidate,O=n.onChange,_=n.styles,F=y.useRef(null),z=oi("input"),P=oi("Label"),U=y.useState(!1),G=U[0],H=U[1],Y=y.useState(tI.notSpinning),V=Y[0],W=Y[1],K=Vt(),Z=y.useMemo((function(){return null!=u?u:Math.max(Object(Zh.a)(s),0)}),[u,s]),J=Sa(c,null!=l?l:String(i||0),O),q=J[0],X=J[1],$=y.useState(),ee=$[0],te=$[1],ne=y.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;ne.latestValue=q,ne.latestIntermediateValue=ee;var re=ur(c);y.useEffect((function(){c!==re&&void 0!==ee&&te(void 0)}),[c,re,ee]);var oe=aI(_,{theme:v,disabled:r,isFocused:G,keyboardSpinDirection:V,labelPosition:A,className:S}),ie=Object(w.j)(n,w.h,["onBlur","onFocus","className"]),se=y.useCallback((function(e){var t=ne.latestIntermediateValue;if(void 0!==t&&t!==ne.latestValue){var n=void 0;R?n=R(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(cI(Number(t),{min:i,max:a}))),void 0!==n&&n!==ne.latestValue&&X(n)}te(void 0)}),[ne,a,i,R,X]),le=y.useCallback((function(){ne.stepTimeoutHandle>=0&&(K.clearTimeout(ne.stepTimeoutHandle),ne.stepTimeoutHandle=-1),(ne.spinningByMouse||V!==tI.notSpinning)&&(ne.spinningByMouse=!1,W(tI.notSpinning))}),[ne,V,K]),ce=y.useCallback((function(e,t){if(t.persist(),void 0!==ne.latestIntermediateValue)return"keydown"===t.type&&se(t),void K.requestAnimationFrame((function(){ce(e,t)}));var n=e(ne.latestValue||"",t);void 0!==n&&n!==ne.latestValue&&X(n);var r=ne.spinningByMouse;ne.spinningByMouse="mousedown"===t.type,ne.spinningByMouse&&(ne.stepTimeoutHandle=K.setTimeout((function(){ce(e,t)}),r?75:400))}),[ne,K,se,X]),ue=y.useCallback((function(e){if(j)return j(e);var t=cI(Number(e)+Number(s),{max:a});return t=Object(Zh.d)(t,Z),String(t)}),[Z,a,j,s]),Ae=y.useCallback((function(e){if(T)return T(e);var t=cI(Number(e)-Number(s),{min:i});return t=Object(Zh.d)(t,Z),String(t)}),[Z,i,T,s]),de=y.useCallback((function(e){(r||e.which===ae.a.up||e.which===ae.a.down)&&le()}),[r,le]),ge=y.useCallback((function(e){ce(ue,e)}),[ue,ce]),pe=y.useCallback((function(e){ce(Ae,e)}),[Ae,ce]);!function(e,t,n){y.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}}),[t,n])}(n,F,q),AI(n);var he=!!q&&!isNaN(Number(q)),fe=(d||o)&&y.createElement("div",{className:oe.labelWrapper},d&&y.createElement(N.a,Object(m.a)({},d,{className:oe.icon,"aria-hidden":"true"})),o&&y.createElement(Ja,{id:P,htmlFor:z,className:oe.label,disabled:r},o));return y.createElement("div",{className:oe.root,ref:t},A!==ot.bottom&&fe,y.createElement("div",Object(m.a)({},ie,{className:oe.spinButtonWrapper,"aria-label":I&&I,"aria-posinset":B,"aria-setsize":M,"data-ktp-target":!0}),y.createElement("input",Object(m.a)({value:null!=ee?ee:q,id:z,onChange:lI,onInput:function(e){te(e.target.value)},className:oe.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":o&&P,"aria-valuenow":null!=D?D:he?Number(q):void 0,"aria-valuetext":null!=Q?Q:he?void 0:q,"aria-valuemin":i,"aria-valuemax":a,"aria-describedby":C,onBlur:function(e){var t,r;se(e),H(!1),null===(r=(t=n).onBlur)||void 0===r||r.call(t,e)},ref:F,onFocus:function(e){var t,r;F.current&&((ne.spinningByMouse||V!==tI.notSpinning)&&le(),F.current.select(),H(!0),null===(r=(t=n).onFocus)||void 0===r||r.call(t,e))},onKeyDown:function(e){if(e.which!==ae.a.up&&e.which!==ae.a.down&&e.which!==ae.a.enter||(e.preventDefault(),e.stopPropagation()),r)le();else{var t=tI.notSpinning;switch(e.which){case ae.a.up:t=tI.up,ce(ue,e);break;case ae.a.down:t=tI.down,ce(Ae,e);break;case ae.a.enter:se(e);break;case ae.a.escape:te(void 0)}V!==t&&W(t)}},onKeyUp:de,disabled:r,"aria-disabled":r,"data-lpignore":!0,"data-ktp-execute-target":!0},k)),y.createElement("span",{className:oe.arrowButtonsContainer},y.createElement(co,Object(m.a)({styles:iI(v,!0,E),className:"ms-UpButton",checked:V===tI.up,disabled:r,iconProps:g,onMouseDown:ge,onMouseLeave:le,onMouseUp:le,tabIndex:-1,ariaLabel:p,"data-is-focusable":!1},L)),y.createElement(co,Object(m.a)({styles:iI(v,!1,b),className:"ms-DownButton",checked:V===tI.down,disabled:r,iconProps:h,onMouseDown:pe,onMouseLeave:le,onMouseUp:le,tabIndex:-1,ariaLabel:f,"data-is-focusable":!1},L)))),A===ot.bottom&&fe)}));uI.displayName="SpinButton";var AI=function(e){0},dI=Object(M.a)(uI,(function(e){var t,n,r=e.theme,o=e.className,i=e.labelPosition,a=e.disabled,s=e.isFocused,l=r.palette,c=r.semanticColors,u=r.effects,A=r.fonts,d=c.inputBorder,g=c.inputBackground,p=c.inputBorderHovered,h=c.inputFocusBorderAlt,f=c.inputText,m=l.white,y=c.inputBackgroundChecked,C=c.disabledText;return{root:[A.medium,{outline:"none",width:"100%",minWidth:86},o],labelWrapper:[{display:"inline-flex",alignItems:"center"},i===ot.start&&{height:32,float:"left",marginRight:10},i===ot.end&&{height:32,float:"right",marginLeft:10},i===ot.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:I.o.large},a&&{color:C}],label:{pointerEvents:"none",lineHeight:I.o.large},spinButtonWrapper:[{display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86,selectors:{":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:d,borderRadius:u.roundedCorner2}}},(i===ot.top||i===ot.bottom)&&{width:"100%"},!a&&[{selectors:{":hover":{selectors:(t={":after":{borderColor:p}},t[I.l]={selectors:{":after":{borderColor:"Highlight"}}},t)}}},s&&{selectors:{"&&":Object(I.V)(h,u.roundedCorner2)}}],a&&oI(r)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:A.medium.fontSize,fontFamily:"inherit",color:f,backgroundColor:g,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:u.roundedCorner2+" 0 0 "+u.roundedCorner2},!a&&{selectors:{"::selection":{backgroundColor:y,color:m,selectors:(n={},n[I.l]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},n)}}},a&&oI(r)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},a&&oI(r)]}}),void 0,{scope:"SpinButton"}),gI=m.a;function pI(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e;return o.isSlot?0===(n=y.Children.toArray(n)).length?o(t):o(Object(m.a)(Object(m.a)({},t),{children:n})):y.createElement.apply(y,Object(m.e)([e,t],n))}function hI(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,o,i,a){if(y.isValidElement(n))return n;var s=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),gI(o,l)}return o.className=Object(Qe.a)([e,i],{rtl:Object(Q.a)(t)}),o}(i,a,t,function(e,t){var n,r;"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,r=n):r=t;return r}(r,n));if(o){if(o.component){var l=o.component;return y.createElement(l,Object(m.a)({},s))}if(o.render)return o.render(s,e)}return y.createElement(e,Object(m.a)({},s))}}var fI=Object(C.c)((function(e){return hI(e)}));function mI(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return yI(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function yI(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):fI(e)(t,n,r,o,i)}var II=n(61),CI=n(43);function EI(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,o=function(n){var r,o,i,a=(r=t.displayName,o=y.useContext(II.a),i=t.fields,CI.a.getSettings(i||["theme","styles","tokens"],r,o.customizations)),s=t.state;s&&(n=Object(m.a)(Object(m.a)({},n),s(n)));var l=n.theme||a.theme,c=function e(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];for(var i={},a=0,s=r;a<s.length;a++){var l=s[a];l&&(l="function"==typeof l?l(t,n):l,Array.isArray(l)&&(l=e.apply(void 0,Object(m.e)([t,n],l))),gI(i,l))}return i}(n,l,t.tokens,a.tokens,n.tokens),u=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return I.H.apply(void 0,r.map((function(r){return"function"==typeof r?r(e,t,n):r})))}(n,l,c,t.styles,a.styles,n.styles),A=Object(m.a)(Object(m.a)({},n),{styles:u,tokens:c,_defaultStyles:u,theme:l});return e(A)};return o.displayName=t.displayName||e.name,r&&(o.create=hI(o,{defaultProp:r})),gI(o,t.statics),o}var bI={root:"ms-StackItem"},vI={start:"flex-start",end:"flex-end"},BI=EI((function(e){var t=e.children,n=Object(w.j)(e,w.k);return null==t?null:pI(mI(e,{root:"div"}).root,Object(m.a)({},n),t)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=Object(I.R)(bI,t);return{root:[t.fonts.medium,u.root,{margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(i||!r&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:vI[a]||a},l&&{order:l},c]}}}),MI=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},DI=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},xI=function(e,t){if(void 0===e||"number"==typeof e||""===e)return e;var n=e.split(" ");return n.length<2?MI(e,t):n.reduce((function(e,n){return MI(e,t)+" "+MI(n,t)}))},wI={start:"flex-start",end:"flex-end"},QI={root:"ms-Stack",inner:"ms-Stack-inner"};var SI,NI=EI((function(e){var t=e.as,n=void 0===t?"div":t,r=e.disableShrink,o=e.wrap,i=Object(m.d)(e,["as","disableShrink","wrap"]);Object(He.a)("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var a=y.Children.map(e.children,(function(e,t){if(!e)return null;if((o=e)&&"object"==typeof o&&o.type&&o.type.displayName===BI.displayName){var n={shrink:!r};return y.cloneElement(e,Object(m.a)(Object(m.a)({},n),e.props))}var o;return e})),s=Object(w.j)(i,w.k),l=mI(e,{root:n,inner:"div"});return pI(l.root,Object(m.a)({},s),o?pI(l.inner,null,a):a)}),{displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,l,c,u=e.verticalFill,A=e.horizontal,d=e.reversed,g=e.grow,p=e.wrap,h=e.horizontalAlign,f=e.verticalAlign,y=e.disableShrink,C=e.className,E=Object(I.R)(QI,t),b=n&&n.childrenGap?n.childrenGap:e.gap,v=n&&n.maxHeight?n.maxHeight:e.maxHeight,B=n&&n.maxWidth?n.maxWidth:e.maxWidth,M=n&&n.padding?n.padding:e.padding,D=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:DI(MI(n[0],t)),columnGap:DI(MI(n[1],t))};var r=DI(MI(e,t));return{rowGap:r,columnGap:r}}(b,t),x=D.rowGap,w=D.columnGap,Q=""+-.5*w.value+w.unit,S=""+-.5*x.value+x.unit,N={textOverflow:"ellipsis"},k={"> *:not(.ms-StackItem)":{flexShrink:y?0:1}};return p?{root:[E.root,{flexWrap:"wrap",maxWidth:B,maxHeight:v,width:"auto",overflow:"visible",height:"100%"},h&&(r={},r[A?"justifyContent":"alignItems"]=wI[h]||h,r),f&&(o={},o[A?"alignItems":"justifyContent"]=wI[f]||f,o),C,{display:"flex"},A&&{height:u?"100%":"auto"}],inner:[E.inner,{display:"flex",flexWrap:"wrap",marginLeft:Q,marginRight:Q,marginTop:S,marginBottom:S,overflow:"visible",boxSizing:"border-box",padding:xI(M,t),width:0===w.value?"100%":"calc(100% + "+w.value+w.unit+")",maxWidth:"100vw",selectors:Object(m.a)({"> *":Object(m.a)({margin:""+.5*x.value+x.unit+" "+.5*w.value+w.unit},N)},k)},h&&(i={},i[A?"justifyContent":"alignItems"]=wI[h]||h,i),f&&(a={},a[A?"alignItems":"justifyContent"]=wI[f]||f,a),A&&{flexDirection:d?"row-reverse":"row",height:0===x.value?"100%":"calc(100% + "+x.value+x.unit+")",selectors:{"> *":{maxWidth:0===w.value?"100%":"calc(100% - "+w.value+w.unit+")"}}},!A&&{flexDirection:d?"column-reverse":"column",height:"calc(100% + "+x.value+x.unit+")",selectors:{"> *":{maxHeight:0===x.value?"100%":"calc(100% - "+x.value+x.unit+")"}}}]}:{root:[E.root,{display:"flex",flexDirection:A?d?"row-reverse":"row":d?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:u?"100%":"auto",maxWidth:B,maxHeight:v,padding:xI(M,t),boxSizing:"border-box",selectors:Object(m.a)((s={"> *":N},s[d?"> *:not(:last-child)":"> *:not(:first-child)"]=[A&&{marginLeft:""+w.value+w.unit},!A&&{marginTop:""+x.value+x.unit}],s),k)},g&&{flexGrow:!0===g?1:g},h&&(l={},l[A?"justifyContent":"alignItems"]=wI[h]||h,l),f&&(c={},c[A?"alignItems":"justifyContent"]=wI[f]||f,c),C]}},statics:{Item:BI}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(SI||(SI={}));var kI=function(e){function t(t){var n=e.call(this,t)||this;return n._root=y.createRef(),n._stickyContentTop=y.createRef(),n._stickyContentBottom=y.createRef(),n._nonStickyContent=y.createRef(),n._placeHolder=y.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){if(n.root&&n.nonStickyContent){var r=n._getNonStickyDistanceFromTop(e),o=!1,i=!1;if(n.canStickyTop)o=r-n._getStickyDistanceFromTop()<e.scrollTop;n.canStickyBottom&&e.clientHeight-t.offsetHeight<=r&&(i=r-Math.floor(e.scrollTop)>=n._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&n.nonStickyContent.contains(document.activeElement)&&(n.state.isStickyTop!==o||n.state.isStickyBottom!==i)?n._activeElement=document.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&o,isStickyBottom:i,distanceFromTop:r})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var r=0;return n.stickyContentBottom&&(r=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),r},n._getNonStickyDistanceFromTop=function(e){var t=0,r=n.root;if(r){for(;r&&r.offsetParent!==e;)t+=r.offsetTop,r=r.offsetParent;r&&r.offsetParent===e&&(t+=r.offsetTop)}return t},Object(se.a)(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n}return Object(m.c)(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===SI.Both||this.props.stickyPosition===SI.Header},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===SI.Both||this.props.stickyPosition===SI.Footer},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,i=r.isStickyTop,a=r.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,i=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||TI(this._nonStickyContent,this._stickyContentTop)||TI(this._nonStickyContent,this._stickyContentBottom)||TI(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,r=this.props,o=r.stickyClassName,i=r.children;return this.context.scrollablePane?y.createElement("div",{ref:this._root},this.canStickyTop&&y.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},y.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&y.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},y.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),y.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&y.createElement("span",{style:I.ab},i),y.createElement("div",{ref:this._nonStickyContent,className:t||n?o:void 0,style:this._getContentStyles(t||n)},i))):y.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:SI.Both,isScrollSynced:!0},t.contextType=Um,t}(y.Component);function TI(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var jI=n(4),LI=Object(D.a)(),RI=function(e){var t;return"ffffff"===(null===(t=nl(e))||void 0===t?void 0:t.hex)},OI=Object(C.c)((function(e,t,n,r,o,i,a,s,l){var c=Wo(e);return Object(I.db)({root:["ms-Button",c.root,n,t,a&&["is-checked",c.rootChecked],i&&["is-disabled",c.rootDisabled],!i&&!a&&{selectors:{":hover":c.rootHovered,":focus":c.rootFocused,":active":c.rootPressed}},i&&a&&[c.rootCheckedDisabled],!i&&a&&{selectors:{":hover":c.rootCheckedHovered,":active":c.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",c.flexContainer]})})),_I=function(e){var t=e.item,n=e.idPrefix,r=void 0===n?e.id:n,o=e.selected,i=void 0!==o&&o,a=e.disabled,s=void 0!==a&&a,l=e.styles,c=e.circle,u=void 0===c||c,A=e.color,d=e.onClick,g=e.onHover,p=e.onFocus,h=e.onMouseEnter,f=e.onMouseMove,m=e.onMouseLeave,I=e.onWheel,C=e.onKeyDown,E=e.height,b=e.width,v=e.borderWidth,B=LI(l,{theme:e.theme,disabled:s,selected:i,circle:u,isWhite:RI(A),height:E,width:b,borderWidth:v});return y.createElement(di,{item:t,id:r+"-"+t.id+"-"+t.index,key:t.id,disabled:s,role:"gridcell",onRenderItem:function(e){var t,n=B.svg;return y.createElement("svg",{className:n,viewBox:"0 0 20 20",fill:null===(t=nl(e.color))||void 0===t?void 0:t.str},u?y.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):y.createElement("rect",{width:"100%",height:"100%"}))},selected:i,onClick:d,onHover:g,onFocus:p,label:t.label,className:B.colorCell,getClassNames:OI,index:t.index,onMouseEnter:h,onMouseMove:f,onMouseLeave:m,onWheel:I,onKeyDown:C})},FI={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},zI=Object(M.a)(_I,(function(e){var t,n,r,o,i,a=e.theme,s=e.disabled,l=e.selected,c=e.circle,u=e.isWhite,A=e.height,d=void 0===A?20:A,g=e.width,p=void 0===g?20:g,h=e.borderWidth,f=a.semanticColors,m=a.palette,y=m.neutralLighter,C=m.neutralLight,E=m.neutralSecondary,b=m.neutralTertiary,v=h||(p<24?2:4);return{colorCell:[Object(I.Q)(a,{inset:-1,position:"relative",highContrastStyle:FI}),{backgroundColor:f.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:d,width:p},!c&&{selectors:(t={},t["."+Kn.a+" &:focus::after"]={outlineOffset:v-1+"px"},t)},c&&{borderRadius:"50%",selectors:(n={},n["."+Kn.a+" &:focus::after"]={outline:"none",borderColor:f.focusBorder,borderRadius:"50%",left:-v,right:-v,top:-v,bottom:-v,selectors:(r={},r[I.l]={outline:"1px solid ButtonText"},r)},n)},l&&{padding:2,border:v+"px solid "+C,selectors:(o={},o["&:hover::before"]={content:'""',height:d,width:p,position:"absolute",top:-v,left:-v,borderRadius:c?"50%":"default",boxShadow:"inset 0 0 0 1px "+E},o)},!l&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:f.bodyBackground,padding:2,border:v+"px solid "+y},i["&:focus"]={borderColor:f.bodyBackground,padding:0,selectors:{":hover":{borderColor:a.palette.neutralLight,padding:2}}},i)},s&&{color:f.disabledBodyText,pointerEvents:"none",opacity:.3},u&&!l&&{backgroundColor:b,padding:1}],svg:[{width:"100%",height:"100%"},c&&{borderRadius:"50%"}]}}),void 0,{scope:"ColorPickerGridCell"},!0),PI=Object(D.a)();var UI=y.forwardRef((function(e,t){var n=oi("swatchColorPicker"),r=e.id||n,o=Yt({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),i=Bs(),a=i.setTimeout,s=i.clearTimeout,l=e.colorCells,c=e.cellShape,u=void 0===c?"circle":c,A=e.columnCount,d=e.shouldFocusCircularNavigate,g=void 0===d||d,p=e.className,h=e.disabled,f=void 0!==h&&h,I=e.doNotContainWithinFocusZone,C=e.styles,E=e.cellMargin,b=void 0===E?10:E,v=e.defaultSelectedId,B=e.focusOnHover,M=e.mouseLeaveParentSelector,D=e.onChange,x=e.onColorChanged,w=e.onCellHovered,Q=e.onCellFocused,S=e.getColorGridCellStyles,N=e.cellHeight,k=e.cellWidth,T=e.cellBorderWidth,j=y.useMemo((function(){return l.map((function(e,t){return Object(m.a)(Object(m.a)({},e),{index:t})}))}),[l]),L=y.useCallback((function(e,t){var n,r,o,i=null===(n=l.filter((function(e){return e.id===t}))[0])||void 0===n?void 0:n.color;null===(r=D)||void 0===r||r(e,t,i),null===(o=x)||void 0===o||o(t,i)}),[D,x,l]),R=Sa(e.selectedId,v,L),O=R[0],_=R[1],F=PI(C,{theme:e.theme,className:p,cellMargin:b}),z={root:F.root,tableCell:F.tableCell,focusedContainer:F.focusedContainer},P=y.useCallback((function(){Q&&(o.cellFocused=!1,Q())}),[o,Q]),U=y.useCallback((function(e){return B?(o.isNavigationIdle&&!f&&e.currentTarget.focus(),!0):!o.isNavigationIdle||!!f}),[B,o,f]),G=y.useCallback((function(e){if(!B)return!o.isNavigationIdle||!!f;var t=e.currentTarget;return!o.isNavigationIdle||document&&t===document.activeElement||t.focus(),!0}),[B,o,f]),H=y.useCallback((function(e){var t=M;if(B&&t&&o.isNavigationIdle&&!f)for(var n=document.querySelectorAll(t),r=0;r<n.length;r+=1)if(n[r].contains(e.currentTarget)){if(n[r].setActive)try{n[r].setActive()}catch(e){}else n[r].focus();break}}),[f,B,o,M]),Y=y.useCallback((function(e){if(w)return e?w(e.id,e.color):w()}),[w]),V=y.useCallback((function(e){if(Q)return e?(o.cellFocused=!0,Q(e.id,e.color)):(o.cellFocused=!1,Q())}),[o,Q]),W=y.useCallback((function(e){f||e.id!==O&&(Q&&o.cellFocused&&(o.cellFocused=!1,Q()),_(e.id))}),[f,o,Q,O,_]),K=y.useCallback((function(){o.isNavigationIdle||void 0===o.navigationIdleTimeoutId?o.isNavigationIdle=!1:(s(o.navigationIdleTimeoutId),o.navigationIdleTimeoutId=void 0),o.navigationIdleTimeoutId=a((function(){o.isNavigationIdle=!0}),o.navigationIdleDelay)}),[s,o,a]),Z=y.useCallback((function(e){e.which!==ae.a.up&&e.which!==ae.a.down&&e.which!==ae.a.left&&e.which!==ae.a.right||K()}),[K]),J=function(e){return y.createElement(zI,{item:e,idPrefix:r,color:e.color,styles:S,disabled:f,onClick:W,onHover:Y,onFocus:V,selected:O===e.id,circle:"circle"===u,label:e.label,onMouseEnter:U,onMouseMove:G,onMouseLeave:H,onWheel:K,onKeyDown:Z,height:N,width:k,borderWidth:T})};if(l.length<1||A<1)return null;return y.createElement(si,Object(m.a)({},e,{ref:t,id:r,items:j,columnCount:A,onRenderItem:function(t,n){var r=e.onRenderColorCell;return(void 0===r?J:r)(t,J)},shouldFocusCircularNavigate:g,doNotContainWithinFocusZone:I,onBlur:P,theme:e.theme,styles:z}))}));UI.displayName="SwatchColorPicker";var GI={focusedContainer:"ms-swatchColorPickerBodyContainer"},HI=Object(M.a)(UI,(function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[Object(I.R)(GI,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}}),void 0,{scope:"SwatchColorPicker"}),YI=Object(D.a)(),VI=y.forwardRef((function(e,t){var n,r,o,i,a,s=y.useRef(null),l=Jt(),c=Object(L.a)(s,t),u=e.illustrationImage,A=e.primaryButtonProps,d=e.secondaryButtonProps,g=e.headline,p=e.hasCondensedHeadline,h=e.hasCloseButton,f=void 0===h?e.hasCloseIcon:h,I=e.onDismiss,C=e.closeButtonAriaLabel,E=e.hasSmallHeadline,b=e.isWide,v=e.styles,B=e.theme,M=e.ariaDescribedBy,D=e.ariaLabelledBy,x=e.footerContent,w=e.focusTrapZoneProps,Q=YI(v,{theme:B,hasCondensedHeadline:p,hasSmallHeadline:E,hasCloseButton:f,hasHeadline:!!g,isWide:b,primaryButtonClassName:A?A.className:void 0,secondaryButtonClassName:d?d.className:void 0});if(Wt(l,"keydown",y.useCallback((function(e){I&&e.which===ae.a.escape&&I(e)}),[I])),u&&u.src&&(n=y.createElement("div",{className:Q.imageContent},y.createElement(V.a,Object(m.a)({},u)))),g){var S="string"==typeof g?"p":"div";r=y.createElement("div",{className:Q.header},y.createElement(S,{role:"heading",className:Q.headline,id:D},g))}if(e.children){var N="string"==typeof e.children?"p":"div";o=y.createElement("div",{className:Q.body},y.createElement(N,{className:Q.subText,id:M},e.children))}return(A||d||x)&&(i=y.createElement(NI,{className:Q.footer,horizontal:!0,horizontalAlign:x?"space-between":"end"},y.createElement(NI.Item,{align:"center"},y.createElement("span",null,x)),y.createElement(NI.Item,null,d&&y.createElement(Vo,Object(m.a)({},d,{className:Q.secondaryButton})),A&&y.createElement(qo,Object(m.a)({},A,{className:Q.primaryButton}))))),f&&(a=y.createElement(co,{className:Q.closeButton,iconProps:{iconName:"Cancel"},title:C,ariaLabel:C,onClick:I})),function(e,t){y.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,s),y.createElement("div",{className:Q.content,ref:c,role:"dialog",tabIndex:-1,"aria-labelledby":D,"aria-describedby":M,"data-is-focusable":!0},n,y.createElement(Oa,Object(m.a)({isClickableOutsideFocusTrap:!0},w),y.createElement("div",{className:Q.bodyContent},r,o,i,a)))})),WI={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},KI=Object(C.c)((function(){return Object(I.bb)({"0%":{opacity:0,animationTimingFunction:I.c.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),ZI=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:""+KI(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},JI=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},qI=function(e){var t,n,r,o=e.hasCondensedHeadline,i=e.hasSmallHeadline,a=e.hasCloseButton,s=e.hasHeadline,l=e.isWide,c=e.primaryButtonClassName,u=e.secondaryButtonClassName,A=e.theme,d=e.calloutProps,g=void 0===d?{className:void 0,theme:A}:d,p=!o&&!i,h=A.palette,f=A.semanticColors,y=A.fonts,C=Object(I.R)(WI,A);return{root:[C.root,y.medium,g.className],body:[C.body,a&&!s&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[C.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[C.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:h.white,fontSize:y.small.fontSize,selectors:{":hover":{background:h.themeDarkAlt,color:h.white},":active":{background:h.themeDark,color:h.white},":focus":{border:"1px solid "+f.variantBorder}}}],content:Object(m.e)([C.content],ZI(l),[l&&{display:"flex"}]),footer:[C.footer,{display:"flex",flex:"auto",alignItems:"center",color:h.white,selectors:(t={},t["."+C.button+":not(:first-child)"]={marginLeft:10},t)}],header:Object(m.e)([C.header],JI(C,o,i),[a&&{marginRight:24},(o||i)&&[y.medium,{fontWeight:I.k.semibold}]]),headline:[C.headline,{margin:0,color:h.white,fontWeight:I.k.semibold},p&&[{fontSize:y.xLarge.fontSize}]],imageContent:[C.header,C.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[C.primaryButton,c,{backgroundColor:h.white,borderColor:h.white,color:h.themePrimary,whiteSpace:"nowrap",selectors:(n={},n["."+C.buttonLabel]=y.medium,n[":hover"]={backgroundColor:h.themeLighter,borderColor:h.themeLighter,color:h.themePrimary},n[":focus"]={backgroundColor:h.themeLighter,borderColor:h.white},n[":active"]={backgroundColor:h.white,borderColor:h.white,color:h.themePrimary},n)}],secondaryButton:[C.secondaryButton,u,{backgroundColor:h.themePrimary,borderColor:h.white,whiteSpace:"nowrap",selectors:(r={},r["."+C.buttonLabel]=[y.medium,{color:h.white}],r["&:hover, &:focus"]={backgroundColor:h.themeDarkAlt,borderColor:h.white},r[":active"]={backgroundColor:h.themePrimary,borderColor:h.white},r)}],subText:[C.subText,{margin:0,fontSize:y.medium.fontSize,color:h.white,fontWeight:I.k.regular}],subComponentStyles:{callout:{root:Object(m.e)(ZI(l,g),[y.medium]),beak:[{background:h.themePrimary}],calloutMain:[{background:h.themePrimary}]}}}},XI=Object(M.a)(VI,qI,void 0,{scope:"TeachingBubbleContent"}),$I={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Je.rightCenter},eC=Object(D.a)(),tC=y.forwardRef((function(e,t){var n=y.useRef(null),r=Object(L.a)(n,t),o=e.calloutProps,i=e.targetElement,a=e.onDismiss,s=e.hasCloseButton,l=void 0===s?e.hasCloseIcon:s,c=e.isWide,u=e.styles,A=e.theme,d=e.target,g=y.useMemo((function(){return Object(m.a)(Object(m.a)(Object(m.a)({},$I),o),{theme:A})}),[o,A]),p=eC(u,{theme:A,isWide:c,calloutProps:g,hasCloseButton:l}),h=p.subComponentStyles?p.subComponentStyles.callout:void 0;return function(e,t){y.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,n),y.createElement(Rn,Object(m.a)({target:d||i,onDismiss:a},g,{className:p.root,styles:h,hideOverflow:!0}),y.createElement("div",{ref:r},y.createElement(XI,Object(m.a)({},e))))}));tC.displayName="TeachingBubble";var nC=Object(M.a)(tC,qI,void 0,{scope:"TeachingBubble"}),rC=function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,Object(m.d)(e,["block","className","as","variant","nowrap"]));return pI(mI(e,{root:n}).root,Object(m.a)({},Object(w.j)(r,w.k)))},oC=function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},iC=EI(rC,{displayName:"Text",styles:oC}),aC={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function sC(e,t){if(void 0===t&&(t=aC),!e)return[];for(var n=[],r=0,o=0;o+r<e.length;o++){var i=e.charAt(o+r);if("\\"===i)r++;else{var a=t[i];a&&n.push({displayIndex:o,format:a})}}return n}function lC(e,t,n){var r=e;if(!r)return"";r=r.replace(/\\/g,"");var o=0;t.length>0&&(o=t[0].displayIndex-1);for(var i=0,a=t;i<a.length;i++){var s=a[i],l=" ";s.value?(l=s.value,s.displayIndex>o&&(o=s.displayIndex)):n&&(l=n),r=r.slice(0,s.displayIndex)+l+r.slice(s.displayIndex+1)}return n||(r=r.slice(0,o+1)),r}function cC(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function uC(e,t,n){for(var r=0;r<e.length;r++)if(e[r].displayIndex>=t){if(e[r].displayIndex>=t+n)break;e[r].value=void 0}return e}function AC(e,t,n){for(var r=0,o=0,i=!1,a=0;a<e.length&&r<n.length;a++)if(e[a].displayIndex>=t)for(i=!0,o=e[a].displayIndex;r<n.length;){if(e[a].format.test(n.charAt(r))){e[a].value=n.charAt(r++),a+1<e.length?o=e[a+1].displayIndex:o++;break}r++}return i?o:t}var dC="_",gC=y.forwardRef((function(e,t){var n=y.useRef(null),r=e.componentRef,o=e.onFocus,i=e.onBlur,a=e.onMouseDown,s=e.onMouseUp,l=e.onChange,c=e.onPaste,u=e.onKeyDown,A=e.mask,d=e.maskChar,g=void 0===d?dC:d,p=e.maskFormat,h=void 0===p?aC:p,f=e.value,I=Yt((function(){return{maskCharData:sC(A,h),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}})),C=y.useState(),E=C[0],b=C[1],v=y.useState((function(){return lC(A,I.maskCharData,g)})),B=v[0],M=v[1],D=y.useCallback((function(e){for(var t=0,n=0;t<e.length&&n<I.maskCharData.length;){var r=e[t];I.maskCharData[n].format.test(r)&&(I.maskCharData[n].value=r,n++),t++}}),[I]),x=y.useCallback((function(e){var t;null===(t=o)||void 0===t||t(e),I.isFocused=!0;for(var n=0;n<I.maskCharData.length;n++)if(!I.maskCharData[n].value){b(I.maskCharData[n].displayIndex);break}}),[I,o]),w=y.useCallback((function(e){var t;null===(t=i)||void 0===t||t(e),I.isFocused=!1,I.moveCursorOnMouseUp=!0}),[I,i]),Q=y.useCallback((function(e){var t;null===(t=a)||void 0===t||t(e),I.isFocused||(I.moveCursorOnMouseUp=!0)}),[I,a]),S=y.useCallback((function(e){var t;if(null===(t=s)||void 0===t||t(e),I.moveCursorOnMouseUp){I.moveCursorOnMouseUp=!1;for(var n=0;n<I.maskCharData.length;n++)if(!I.maskCharData[n].value){b(I.maskCharData[n].displayIndex);break}}}),[I,s]),N=y.useCallback((function(e,t){var r;if(null===I.changeSelectionData&&n.current&&(I.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),I.changeSelectionData){var o=0,i=I.changeSelectionData,a=i.changeType,s=i.selectionStart,c=i.selectionEnd;if("textPasted"===a){var u=c-s,d=t.length+u-B.length,p=s,h=t.substr(p,d);u&&(I.maskCharData=uC(I.maskCharData,s,u)),o=AC(I.maskCharData,p,h)}else if("delete"===a||"backspace"===a){var f="delete"===a;(d=c-s)?(I.maskCharData=uC(I.maskCharData,s,d),o=cC(I.maskCharData,s)):f?(I.maskCharData=function(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}(I.maskCharData,s),o=cC(I.maskCharData,s)):(I.maskCharData=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}(I.maskCharData,s),o=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}(I.maskCharData,s))}else if(t.length>B.length){p=c-(d=t.length-B.length);var m=t.substr(p,d);o=AC(I.maskCharData,p,m)}else if(t.length<=B.length){d=1;var y=B.length+d-t.length;p=c-d,m=t.substr(p,d);I.maskCharData=uC(I.maskCharData,p,y),o=AC(I.maskCharData,p,m)}I.changeSelectionData=null;var C=lC(A,I.maskCharData,g);M(C),b(o),null===(r=l)||void 0===r||r(e,C)}}),[B.length,I,A,g,l]),k=y.useCallback((function(e){var t;if(null===(t=u)||void 0===t||t(e),I.changeSelectionData=null,n.current&&n.current.value){var r=e.keyCode,o=e.ctrlKey,i=e.metaKey;if(o||i)return;if(r===ae.a.backspace||r===ae.a.del){var a=e.target.selectionStart,s=e.target.selectionEnd;if(!(r===ae.a.backspace&&s&&s>0||r===ae.a.del&&null!==a&&a<n.current.value.length))return;I.changeSelectionData={changeType:r===ae.a.backspace?"backspace":"delete",selectionStart:null!==a?a:-1,selectionEnd:null!==s?s:-1}}}}),[I,u]),T=y.useCallback((function(e){var t;null===(t=c)||void 0===t||t(e);var n=e.target.selectionStart,r=e.target.selectionEnd;I.changeSelectionData={changeType:"textPasted",selectionStart:null!==n?n:-1,selectionEnd:null!==r?r:-1}}),[I,c]);return y.useEffect((function(){I.maskCharData=sC(A,h),void 0!==f&&D(f),M(lC(A,I.maskCharData,g))}),[A,f]),y.useLayoutEffect((function(){void 0!==E&&n.current&&n.current.setSelectionRange(E,E)}),[E]),y.useEffect((function(){I.isFocused&&void 0!==E&&n.current&&n.current.setSelectionRange(E,E)})),function(e,t,n){y.useImperativeHandle(e,(function(){return{get value(){for(var e="",n=0;n<t.maskCharData.length;n++){if(!t.maskCharData[n].value)return;e+=t.maskCharData[n].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}}),[t,n])}(r,I,n),y.createElement(_l,Object(m.a)({},e,{elementRef:t,onFocus:x,onBlur:w,onMouseDown:Q,onMouseUp:S,onChange:N,onKeyDown:k,onPaste:T,value:B||"",componentRef:n}))}));gC.displayName="MaskedTextField";var pC,hC,fC,mC,yC=n(230);function IC(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(CC(e,t,Object(m.a)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function CC(e,t,n,r,o){var i,a,s;void 0===o&&(o=!1);var l={},c=e||{},u=c.white,A=c.black,d=c.themePrimary,g=c.themeDark,p=c.themeDarker,h=c.themeDarkAlt,f=c.themeLighter,y=c.neutralLight,I=c.neutralLighter,C=c.neutralDark,E=c.neutralQuaternary,b=c.neutralQuaternaryAlt,v=c.neutralPrimary,B=c.neutralSecondary,M=c.neutralSecondaryAlt,D=c.neutralTertiary,x=c.neutralTertiaryAlt,w=c.neutralLighterAlt,Q=c.accent;return u&&(l.bodyBackground=u,l.bodyFrameBackground=u,l.accentButtonText=u,l.buttonBackground=u,l.primaryButtonText=u,l.primaryButtonTextHovered=u,l.primaryButtonTextPressed=u,l.inputBackground=u,l.inputForegroundChecked=u,l.listBackground=u,l.menuBackground=u,l.cardStandoutBackground=u),A&&(l.bodyTextChecked=A,l.buttonTextCheckedHovered=A),d&&(l.link=d,l.primaryButtonBackground=d,l.inputBackgroundChecked=d,l.inputIcon=d,l.inputFocusBorderAlt=d,l.menuIcon=d,l.menuHeader=d,l.accentButtonBackground=d),g&&(l.primaryButtonBackgroundPressed=g,l.inputBackgroundCheckedHovered=g,l.inputIconHovered=g),p&&(l.linkHovered=p),h&&(l.primaryButtonBackgroundHovered=h),f&&(l.inputPlaceholderBackgroundChecked=f),y&&(l.bodyBackgroundChecked=y,l.bodyFrameDivider=y,l.bodyDivider=y,l.variantBorder=y,l.buttonBackgroundCheckedHovered=y,l.buttonBackgroundPressed=y,l.listItemBackgroundChecked=y,l.listHeaderBackgroundPressed=y,l.menuItemBackgroundPressed=y,l.menuItemBackgroundChecked=y),I&&(l.bodyBackgroundHovered=I,l.buttonBackgroundHovered=I,l.buttonBackgroundDisabled=I,l.buttonBorderDisabled=I,l.primaryButtonBackgroundDisabled=I,l.disabledBackground=I,l.listItemBackgroundHovered=I,l.listHeaderBackgroundHovered=I,l.menuItemBackgroundHovered=I),E&&(l.primaryButtonTextDisabled=E,l.disabledSubtext=E),b&&(l.listItemBackgroundCheckedHovered=b),D&&(l.disabledBodyText=D,l.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||D,l.buttonTextDisabled=D,l.inputIconDisabled=D,l.disabledText=D),v&&(l.bodyText=v,l.actionLink=v,l.buttonText=v,l.inputBorderHovered=v,l.inputText=v,l.listText=v,l.menuItemText=v),w&&(l.bodyStandoutBackground=w,l.defaultStateBackground=w),C&&(l.actionLinkHovered=C,l.buttonTextHovered=C,l.buttonTextChecked=C,l.buttonTextPressed=C,l.inputTextHovered=C,l.menuItemTextHovered=C),B&&(l.bodySubtext=B,l.focusBorder=B,l.inputBorder=B,l.smallInputBorder=B,l.inputPlaceholderText=B),M&&(l.buttonBorder=M),x&&(l.disabledBodySubtext=x,l.disabledBorder=x,l.buttonBackgroundChecked=x,l.menuDivider=x),Q&&(l.accentButtonBackground=Q),(null===(a=t)||void 0===a?void 0:a.elevation4)&&(l.cardShadow=t.elevation4),!r&&(null===(s=t)||void 0===s?void 0:s.elevation8)?l.cardShadowHovered=t.elevation8:l.variantBorderHovered&&(l.cardShadowHovered="0 0 1px "+l.variantBorderHovered),l=Object(m.a)(Object(m.a)({},l),n)}function EC(e,t){var n,r,o,i;void 0===t&&(t={});var a=Object(yC.a)({},e,t,{semanticColors:CC(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=Object(yC.a)(a.fonts[c],t.defaultFontStyle,null===(i=null===(o=t)||void 0===o?void 0:o.fonts)||void 0===i?void 0:i[c])}return a}!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(pC||(pC={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(hC||(hC={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(fC||(fC={})),function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(mC||(mC={}));var bC,vC,BC,MC,DC,xC,wC,QC,SC={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},NC=n(228),kC=Object(NC.a)({from:{opacity:0},to:{opacity:1}}),TC=Object(NC.a)({from:{opacity:1},to:{opacity:0}}),jC=Object(NC.a)({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),LC=Object(NC.a)({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),RC=Object(NC.a)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),OC=Object(NC.a)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),_C=Object(NC.a)({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),FC=Object(NC.a)({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),zC=Object(NC.a)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),PC=Object(NC.a)({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),UC=Object(NC.a)({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),GC=Object(NC.a)({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function HC(e,t,n){return e+" "+t+" "+n}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(bC||(bC={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(vC||(vC={})),function(e){e.fadeIn=HC(kC,bC.duration1,vC.linear),e.fadeOut=HC(TC,bC.duration1,vC.linear),e.scaleDownIn=HC(jC,bC.duration3,vC.decelerate),e.scaleDownOut=HC(LC,bC.duration3,vC.decelerate),e.slideLeftOut=HC(RC,bC.duration1,vC.accelerate),e.slideRightOut=HC(OC,bC.duration1,vC.accelerate),e.slideLeftIn=HC(_C,bC.duration1,vC.decelerate),e.slideRightIn=HC(FC,bC.duration1,vC.decelerate),e.slideUpOut=HC(zC,bC.duration1,vC.accelerate),e.slideDownOut=HC(PC,bC.duration1,vC.accelerate),e.slideUpIn=HC(UC,bC.duration1,vC.decelerate),e.slideDownIn=HC(GC,bC.duration1,vC.decelerate)}(BC||(BC={})),function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(MC||(MC={})),function(e){e.Arabic="'"+MC.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+MC.Cyrillic+"'",e.EastEuropean="'"+MC.EastEuropean+"'",e.Greek="'"+MC.Greek+"'",e.Hebrew="'"+MC.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+MC.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+MC.Vietnamese+"'",e.WestEuropean="'"+MC.WestEuropean+"'",e.Armenian="'"+MC.Armenian+"'",e.Georgian="'"+MC.Georgian+"'"}(DC||(DC={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(xC||(xC={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(wC||(wC={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(QC||(QC={}));var YC={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},VC={elevation4:mC.depth4,elevation8:mC.depth8,elevation16:mC.depth16,elevation64:mC.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},WC=n(229),KC="'Segoe UI', '"+MC.WestEuropean+"'",ZC={ar:DC.Arabic,bg:DC.Cyrillic,cs:DC.EastEuropean,el:DC.Greek,et:DC.EastEuropean,he:DC.Hebrew,hi:DC.Hindi,hr:DC.EastEuropean,hu:DC.EastEuropean,ja:DC.Japanese,kk:DC.EastEuropean,ko:DC.Korean,lt:DC.EastEuropean,lv:DC.EastEuropean,pl:DC.EastEuropean,ru:DC.Cyrillic,sk:DC.EastEuropean,"sr-latn":DC.EastEuropean,th:DC.Thai,tr:DC.EastEuropean,uk:DC.Cyrillic,vi:DC.Vietnamese,"zh-hans":DC.ChineseSimplified,"zh-hant":DC.ChineseTraditional,hy:DC.Armenian,ka:DC.Georgian};function JC(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var qC,XC,$C,eE,tE,nE=n(288),rE=(qC=Object(nE.a)(),XC=function(e){for(var t in ZC)if(ZC.hasOwnProperty(t)&&e&&0===t.indexOf(e))return ZC[t];return KC}(qC)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:JC(xC.mini,wC.regular,XC),xSmall:JC(xC.xSmall,wC.regular,XC),small:JC(xC.small,wC.regular,XC),smallPlus:JC(xC.smallPlus,wC.regular,XC),medium:JC(xC.medium,wC.regular,XC),mediumPlus:JC(xC.mediumPlus,wC.regular,XC),large:JC(xC.large,wC.regular,XC),xLarge:JC(xC.xLarge,wC.semibold,XC),xLargePlus:JC(xC.xLargePlus,wC.semibold,XC),xxLarge:JC(xC.xxLarge,wC.semibold,XC),xxLargePlus:JC(xC.xxLargePlus,wC.semibold,XC),superLarge:JC(xC.superLarge,wC.semibold,XC),mega:JC(xC.mega,wC.semibold,XC)});function oE(e,t,n,r){e="'"+e+"'";var o=void 0!==r?"local('"+r+"'),":"";Object(WC.a)({fontFamily:e,src:o+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function iE(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;oE(t,i+"-light",wC.light,o&&o+" Light"),oE(t,i+"-semilight",wC.semilight,o&&o+" SemiLight"),oE(t,i+"-regular",wC.regular,o),oE(t,i+"-semibold",wC.semibold,o&&o+" SemiBold"),oE(t,i+"-bold",wC.bold,o&&o+" Bold")}function aE(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return EC({palette:YC,effects:VC,fonts:rE,spacing:SC,isInverted:n,disableGlobalClassNames:!1,semanticColors:IC(YC,VC,void 0,n,t),rtl:void 0},e)}!function(e){if(e){var t=e+"/fonts";iE(t,MC.Thai,"leelawadeeui-thai","leelawadeeui"),iE(t,MC.Arabic,"segoeui-arabic"),iE(t,MC.Cyrillic,"segoeui-cyrillic"),iE(t,MC.EastEuropean,"segoeui-easteuropean"),iE(t,MC.Greek,"segoeui-greek"),iE(t,MC.Hebrew,"segoeui-hebrew"),iE(t,MC.Vietnamese,"segoeui-vietnamese"),iE(t,MC.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),iE(t,DC.Selawik,"selawik","selawik"),iE(t,MC.Armenian,"segoeui-armenian"),iE(t,MC.Georgian,"segoeui-georgian"),oE("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",wC.light),oE("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",wC.semibold)}}(null!=(tE=null===(eE=null===($C=Object(be.a)())||void 0===$C?void 0:$C.FabricConfig)||void 0===eE?void 0:eE.fontBaseUrl)?tE:"https://static2.sharepointonline.com/files/fabric/assets");var sE=aE({});Object(_p.a)("@fluentui/theme","2.0.3");var lE=n(129),cE=y.createContext(void 0);var uE=function(){var e=Object(y.useContext)(cE),t=Object(lE.a)(["theme"]).theme;return e||t||aE({})},AE=n(36),dE=n(132),gE=0,pE={reset:function(){AE.b.getInstance().onReset((function(){return gE++}))},getId:function(){return gE},renderStyles:function(e,t){return Object(dE.a)(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return Object(WC.a)(e)},renderKeyframes:function(e){return Object(NC.a)(e)}};function hE(e){var t=new Map;return function(n){void 0===n&&(n={});var r=n.theme,o=Zt(),i=uE();r=r||i;var a=pE.getId(),s="function"==typeof e,l=s?[a,o,r]:[a,o],c=function(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(!(e=e.get(o)))return}return e}(t,l);if(!c){var u=s?e(r):e;c=pE.renderStyles(u,{targetWindow:o,rtl:!!r.rtl}),function(e,t,n){for(var r=0;r<t.length-1;r++){var o=t[r],i=e.get(o);i||(i=new Map,e.set(o,i)),e=i}e.set(t[t.length-1],n)}(t,l,c)}return c}}var fE=hE((function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}}));function mE(e){var t=fE(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,o=null===(n=Jt())||void 0===n?void 0:n.body;y.useEffect((function(){if(r&&o){for(var e=0,n=t;e<n.length;e++){var i=n[e];i&&o.classList.add(i)}return function(){if(r&&o)for(var e=0,n=t;e<n.length;e++){var i=n[e];i&&o.classList.remove(i)}}}}),[r,o,t])}(e,[t.root,t.body]),e.className=Object(ve.a)(n,t.root,"element"===r&&t.body)}var yE=n(259),IE=function(e){var t=e.theme,n=e.customizerContext,r=e.as||"div",o="string"==typeof e.as?Object(yE.a)(e.as,e):Object(Ye.d)(e,["as"]);return y.createElement(cE.Provider,{value:t},y.createElement(II.a.Provider,{value:n},y.createElement(r,Object(m.a)({},o))))},CE=new Map,EE=function(e){var t=e.theme,n=uE(),r=e.theme=y.useMemo((function(){var e=EC(n,t);return e.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i){var a=i.id||CE.get(i);a||(a=Object(Ee.a)(""),CE.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=y.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}}),[r]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},bE=y.forwardRef((function(e,t){var n=function(e,t){var n=Object(x.a)(t,e);return EE(n),{state:n,render:IE}}(e,{ref:Object(L.a)(t,y.useRef(null)),as:"div",applyTo:"element"}),r=n.render,o=n.state;return mE(o),Object(je.b)(o.ref),r(o)}));bE.displayName="ThemeProvider";var vE,BE,ME,DE=function(){function e(){}return e.setSlot=function(t,n,r,o,i){if(void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0),t.color||!t.value)if(i){var a=void 0;if("string"==typeof n){if(!(a=nl(n)))throw new Error("color is invalid in setSlot(): "+n)}else a=n;e._setSlot(t,a,r,o,i)}else t.color&&e._setSlot(t,t.color,r,o,i)},e.insureSlots=function(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(!o.inherits&&!o.value){if(!o.color)throw new Error("A color slot rule that does not inherit must provide its own color.");e._setSlot(o,o.color,n,!1,!1)}}},e.getThemeAsJson=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.name]=r.color?r.color.str:r.value||""}return t},e.getThemeAsCode=function(t){return e._makeRemainingCode("loadTheme({\n  palette: {\n",t)},e.getThemeAsCodeWithCreateTheme=function(t){return e._makeRemainingCode("const myTheme = createTheme({\n  palette: {\n",t)},e.getThemeAsSass=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.name.charAt(0).toLowerCase()+r.name.slice(1);t+=Object(Fi.a)('${0}Color: "[theme: {1}, default: {2}]";\n',o,o,r.color?r.color.str:r.value||"")}return t},e.getThemeForPowerShell=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.value)continue;var o=r.name.charAt(0).toLowerCase()+r.name.slice(1),i=r.color?"#"+r.color.hex:r.value||"";r.color&&r.color.a&&100!==r.color.a&&(i+=String(r.color.a.toString(16))),t+=Object(Fi.a)('"{0}" = "{1}";\n',o,i)}return"@{\n"+t+"}"},e._setSlot=function(t,n,r,o,i){if(void 0===i&&(i=!0),(t.color||!t.value)&&(i||!t.color||!t.isCustomized||!t.inherits)){!i&&t.isCustomized||o||!t.inherits||!El(t.asShade)?(t.color=n,t.isCustomized=!0):(t.isBackgroundShade?t.color=Dl(n,t.asShade,r):t.color=Ml(n,t.asShade,r),t.isCustomized=!1);for(var a=0,s=t.dependentRules;a<s.length;a++){var l=s[a];e._setSlot(l,t.color,r,!1,i)}}},e._makeRemainingCode=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r.name.charAt(0).toLowerCase()+r.name.slice(1),i=r.color?"#"+r.color.hex:r.value||"";e+=Object(Fi.a)("    {0}: '{1}',\n",o,i)}return e+="  }});"},e}();function xE(){var e={};function t(t,n,r,o){void 0===o&&(o=!1);var i=e[vE[n]],a={name:t,inherits:i,asShade:r,isCustomized:!1,isBackgroundShade:o,dependentRules:[]};e[t]=a,i.dependentRules.push(a)}return Object(Ye.c)(vE,(function(t){e[t]={name:t,isCustomized:!0,dependentRules:[]},Object(Ye.c)(dl,(function(n,r){if(n!==dl[dl.Unshaded]){var o=e[t],i={name:t+n,inherits:e[t],asShade:r,isCustomized:!1,isBackgroundShade:t===vE[vE.backgroundColor],dependentRules:[]};e[t+n]=i,o.dependentRules.push(i)}}))})),e[vE[vE.primaryColor]].color=nl("#0078d4"),e[vE[vE.backgroundColor]].color=nl("#ffffff"),e[vE[vE.foregroundColor]].color=nl("#323130"),t(BE[BE.themePrimary],vE.primaryColor,dl.Unshaded),t(BE[BE.themeLighterAlt],vE.primaryColor,dl.Shade1),t(BE[BE.themeLighter],vE.primaryColor,dl.Shade2),t(BE[BE.themeLight],vE.primaryColor,dl.Shade3),t(BE[BE.themeTertiary],vE.primaryColor,dl.Shade4),t(BE[BE.themeSecondary],vE.primaryColor,dl.Shade5),t(BE[BE.themeDarkAlt],vE.primaryColor,dl.Shade6),t(BE[BE.themeDark],vE.primaryColor,dl.Shade7),t(BE[BE.themeDarker],vE.primaryColor,dl.Shade8),t(BE[BE.neutralLighterAlt],vE.backgroundColor,dl.Shade1,!0),t(BE[BE.neutralLighter],vE.backgroundColor,dl.Shade2,!0),t(BE[BE.neutralLight],vE.backgroundColor,dl.Shade3,!0),t(BE[BE.neutralQuaternaryAlt],vE.backgroundColor,dl.Shade4,!0),t(BE[BE.neutralQuaternary],vE.backgroundColor,dl.Shade5,!0),t(BE[BE.neutralTertiaryAlt],vE.backgroundColor,dl.Shade6,!0),t(BE[BE.neutralTertiary],vE.foregroundColor,dl.Shade3),t(BE[BE.neutralSecondary],vE.foregroundColor,dl.Shade4),t(BE[BE.neutralPrimaryAlt],vE.foregroundColor,dl.Shade5),t(BE[BE.neutralPrimary],vE.foregroundColor,dl.Unshaded),t(BE[BE.neutralDark],vE.foregroundColor,dl.Shade7),t(BE[BE.black],vE.foregroundColor,dl.Shade8),t(BE[BE.white],vE.backgroundColor,dl.Unshaded,!0),e[BE[BE.neutralLighterAlt]].color=nl("#faf9f8"),e[BE[BE.neutralLighter]].color=nl("#f3f2f1"),e[BE[BE.neutralLight]].color=nl("#edebe9"),e[BE[BE.neutralQuaternaryAlt]].color=nl("#e1dfdd"),e[BE[BE.neutralDark]].color=nl("#201f1e"),e[BE[BE.neutralTertiaryAlt]].color=nl("#c8c6c4"),e[BE[BE.black]].color=nl("#000000"),e[BE[BE.neutralDark]].color=nl("#201f1e"),e[BE[BE.neutralPrimaryAlt]].color=nl("#3b3a39"),e[BE[BE.neutralSecondary]].color=nl("#605e5c"),e[BE[BE.neutralTertiary]].color=nl("#a19f9d"),e[BE[BE.white]].color=nl("#ffffff"),e[BE[BE.themeDarker]].color=nl("#004578"),e[BE[BE.themeDark]].color=nl("#005a9e"),e[BE[BE.themeDarkAlt]].color=nl("#106ebe"),e[BE[BE.themeSecondary]].color=nl("#2b88d8"),e[BE[BE.themeTertiary]].color=nl("#71afe5"),e[BE[BE.themeLight]].color=nl("#c7e0f4"),e[BE[BE.themeLighter]].color=nl("#deecf9"),e[BE[BE.themeLighterAlt]].color=nl("#eff6fc"),e[BE[BE.neutralLighterAlt]].isCustomized=!0,e[BE[BE.neutralLighter]].isCustomized=!0,e[BE[BE.neutralLight]].isCustomized=!0,e[BE[BE.neutralQuaternaryAlt]].isCustomized=!0,e[BE[BE.neutralDark]].isCustomized=!0,e[BE[BE.neutralTertiaryAlt]].isCustomized=!0,e[BE[BE.black]].isCustomized=!0,e[BE[BE.neutralDark]].isCustomized=!0,e[BE[BE.neutralPrimaryAlt]].isCustomized=!0,e[BE[BE.neutralSecondary]].isCustomized=!0,e[BE[BE.neutralTertiary]].isCustomized=!0,e[BE[BE.white]].isCustomized=!0,e[BE[BE.themeDarker]].isCustomized=!0,e[BE[BE.themeDark]].isCustomized=!0,e[BE[BE.themeDarkAlt]].isCustomized=!0,e[BE[BE.themePrimary]].isCustomized=!0,e[BE[BE.themeSecondary]].isCustomized=!0,e[BE[BE.themeTertiary]].isCustomized=!0,e[BE[BE.themeLight]].isCustomized=!0,e[BE[BE.themeLighter]].isCustomized=!0,e[BE[BE.themeLighterAlt]].isCustomized=!0,e}!function(e){e[e.primaryColor=0]="primaryColor",e[e.backgroundColor=1]="backgroundColor",e[e.foregroundColor=2]="foregroundColor"}(vE||(vE={})),function(e){e[e.themePrimary=0]="themePrimary",e[e.themeLighterAlt=1]="themeLighterAlt",e[e.themeLighter=2]="themeLighter",e[e.themeLight=3]="themeLight",e[e.themeTertiary=4]="themeTertiary",e[e.themeSecondary=5]="themeSecondary",e[e.themeDarkAlt=6]="themeDarkAlt",e[e.themeDark=7]="themeDark",e[e.themeDarker=8]="themeDarker",e[e.neutralLighterAlt=9]="neutralLighterAlt",e[e.neutralLighter=10]="neutralLighter",e[e.neutralLight=11]="neutralLight",e[e.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",e[e.neutralQuaternary=13]="neutralQuaternary",e[e.neutralTertiaryAlt=14]="neutralTertiaryAlt",e[e.neutralTertiary=15]="neutralTertiary",e[e.neutralSecondary=16]="neutralSecondary",e[e.neutralPrimaryAlt=17]="neutralPrimaryAlt",e[e.neutralPrimary=18]="neutralPrimary",e[e.neutralDark=19]="neutralDark",e[e.black=20]="black",e[e.white=21]="white"}(BE||(BE={})),function(e){e[e.bodyBackground=0]="bodyBackground",e[e.bodyText=1]="bodyText",e[e.disabledBackground=2]="disabledBackground",e[e.disabledText=3]="disabledText"}(ME||(ME={}));var wE=Object(D.a)(),QE=y.forwardRef((function(e,t){var n=e.as,r=void 0===n?"div":n,o=e.ariaLabel,i=e.checked,a=e.className,s=e.defaultChecked,l=void 0!==s&&s,c=e.disabled,u=e.inlineLabel,A=e.label,d=e.offAriaLabel,g=e.offText,p=e.onAriaLabel,h=e.onChange,f=e.onChanged,I=e.onClick,C=e.onText,E=e.role,b=e.styles,v=e.theme,B=Sa(i,l,y.useCallback((function(e,t){var n,r;null===(n=h)||void 0===n||n(e,t),null===(r=f)||void 0===r||r(t)}),[h,f])),M=B[0],D=B[1],x=wE(b,{theme:v,className:a,disabled:c,checked:M,inlineLabel:u,onOffMissing:!C&&!g}),Q=M?p:d,S=oi("Toggle",e.id),N=S+"-label",k=S+"-stateText",T=M?C:g,j=Object(w.j)(e,w.o,["defaultChecked"]),L=void 0;o||Q||(A&&(L=N),T&&(L=L?L+" "+k:k));var R=y.useRef(null);Object(je.b)(R),SE(e,M,R);var O={root:{className:x.root,hidden:j.hidden},label:{children:A,className:x.label,htmlFor:S,id:N},container:{className:x.container},pill:Object(m.a)(Object(m.a)({},j),{"aria-disabled":c,"aria-checked":M,"aria-label":o||Q,"aria-labelledby":L,className:x.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:c,id:S,onClick:function(e){c||(D(!M),I&&I(e))},ref:R,role:E||"switch",type:"button"}),thumb:{className:x.thumb},stateText:{children:T,className:x.text,htmlFor:S,id:k}};return y.createElement(r,Object(m.a)({ref:t},O.root),A&&y.createElement(Ja,Object(m.a)({},O.label)),y.createElement("div",Object(m.a)({},O.container),y.createElement("button",Object(m.a)({},O.pill),y.createElement("span",Object(m.a)({},O.thumb))),(M&&C||g)&&y.createElement(Ja,Object(m.a)({},O.stateText))))}));QE.displayName="ToggleBase";var SE=function(e,t,n){y.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},NE=Object(M.a)(QE,(function(e){var t,n,r,o,i,a,s,l=e.theme,c=e.className,u=e.disabled,A=e.checked,d=e.inlineLabel,g=e.onOffMissing,p=l.semanticColors,h=l.palette,f=p.bodyBackground,y=p.inputBackgroundChecked,C=p.inputBackgroundCheckedHovered,E=h.neutralDark,b=p.disabledBodySubtext,v=p.smallInputBorder,B=p.inputForegroundChecked,M=p.disabledBodySubtext,D=p.disabledBackground,x=p.smallInputBorder,w=p.inputBorderHovered,Q=p.disabledBodySubtext,S=p.disabledText;return{root:["ms-Toggle",A&&"is-checked",!u&&"is-enabled",u&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},d&&{display:"flex",alignItems:"center"},c],label:["ms-Toggle-label",{display:"inline-block"},u&&{color:S,selectors:(t={},t[I.l]={color:"GrayText"},t)},d&&!g&&{marginRight:16},g&&d&&{order:1,marginLeft:16},d&&{wordBreak:"break-all"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",Object(I.Q)(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid "+x,background:f,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!u&&[!A&&{selectors:{":hover":[{borderColor:w}],":hover .ms-Toggle-thumb":[{backgroundColor:E,selectors:(n={},n[I.l]={borderColor:"Highlight"},n)}]}},A&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(r={":hover":[{backgroundColor:C,borderColor:"transparent",selectors:(o={},o[I.l]={backgroundColor:"Highlight"},o)}]},r[I.l]=Object(m.a)({backgroundColor:"Highlight"},Object(I.S)()),r)}]],u&&[{cursor:"default"},!A&&[{borderColor:Q}],A&&[{backgroundColor:b,borderColor:"transparent",justifyContent:"flex-end"}]],!u&&{selectors:{"&:hover":{selectors:(i={},i[I.l]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:v,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!u&&A&&[{backgroundColor:B,selectors:(a={},a[I.l]={backgroundColor:"Window",borderColor:"Window"},a)}],u&&[!A&&[{backgroundColor:M}],A&&[{backgroundColor:D}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:I.k.regular}}},u&&{selectors:{"&&":{color:S,selectors:(s={},s[I.l]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),kE=n(2),TE=Object(m.a)(Object(m.a)({},hi),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"}),jE={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},LE=Object(D.a)(),RE=function(e){function t(t){var n=e.call(this,t)||this;n._dayGrid=y.createRef(),n._onSelectDate=function(e){var t=n.props.onSelectDate;n.setState({selectedDate:e}),n._focusOnUpdate=!0,t&&t(e)},n._onNavigateDate=function(e,t){var r=n.props.onNavigateDate;n.setState({navigatedDate:e}),n._focusOnUpdate=t,r&&r(e)},n._renderPreviousWeekNavigationButton=function(e){var t,r=n.props,o=r.minDate,i=r.firstDayOfWeek,a=r.navigationIcons,s=n.state.navigatedDate,l=Object(Q.a)()?a.rightNavigation:a.leftNavigation,c=!o||xi(o,ki(s,i))<0;return y.createElement("button",{className:Object(ve.a)(e.navigationIconButton,(t={},t[e.disabledStyle]=!c,t)),disabled:!c,"aria-disabled":!c,onClick:c?n._onSelectPrevDateRange:void 0,onKeyDown:c?n._onButtonKeyDown(n._onSelectPrevDateRange):void 0,title:n._createPreviousWeekAriaLabel(),type:"button"},y.createElement(N.a,{iconName:l}))},n._renderNextWeekNavigationButton=function(e){var t,r=n.props,o=r.maxDate,i=r.firstDayOfWeek,a=r.navigationIcons,s=n.state.navigatedDate,l=Object(Q.a)()?a.leftNavigation:a.rightNavigation,c=!o||xi(mi(ki(s,i),7),o)<0;return y.createElement("button",{className:Object(ve.a)(e.navigationIconButton,(t={},t[e.disabledStyle]=!c,t)),disabled:!c,"aria-disabled":!c,onClick:c?n._onSelectNextDateRange:void 0,onKeyDown:c?n._onButtonKeyDown(n._onSelectNextDateRange):void 0,title:n._createNextWeekAriaLabel(),type:"button"},y.createElement(N.a,{iconName:l}))},n._onSelectPrevDateRange=function(){n.props.showFullMonth?n._navigateDate(Ii(n.state.navigatedDate,-1)):n._navigateDate(mi(n.state.navigatedDate,-7))},n._onSelectNextDateRange=function(){n.props.showFullMonth?n._navigateDate(Ii(n.state.navigatedDate,1)):n._navigateDate(mi(n.state.navigatedDate,7))},n._navigateDate=function(e){n.setState({navigatedDate:e}),n.props.onNavigateDate&&n.props.onNavigateDate(e)},n._onWrapperKeyDown=function(e){switch(e.which){case ae.a.enter:case ae.a.backspace:e.preventDefault()}},n._onButtonKeyDown=function(e){return function(t){switch(t.which){case ae.a.enter:e()}}},n._onTouchStart=function(e){var t=e.touches[0];t&&(n._initialTouchX=t.clientX)},n._onTouchMove=function(e){var t=Object(Q.a)(),r=e.touches[0];r&&void 0!==n._initialTouchX&&r.clientX!==n._initialTouchX&&((r.clientX-n._initialTouchX)*(t?-1:1)<0?n._onSelectNextDateRange():n._onSelectPrevDateRange(),n._initialTouchX=void 0)},n._createPreviousWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.prevMonthAriaLabel)a=t.prevMonthAriaLabel+" "+t.months[Ii(i,-1).getMonth()];else if(!r&&t.prevWeekAriaLabel){var s=ki(mi(i,-7),o),l=mi(s,6);a=t.prevWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._createNextWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.nextMonthAriaLabel)a=t.nextMonthAriaLabel+" "+t.months[Ii(i,1).getMonth()];else if(!r&&t.nextWeekAriaLabel){var s=ki(mi(i,7),o),l=mi(s,6);a=t.nextWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._formatDateRange=function(e,t){var r,o,i=n.props,a=i.dateTimeFormatter,s=i.strings;return(null===(r=a)||void 0===r?void 0:r.formatMonthDayYear(e,s))+" - "+(null===(o=a)||void 0===o?void 0:o.formatMonthDayYear(t,s))},Object(se.a)(n);var r=t.initialDate&&!isNaN(t.initialDate.getTime())?t.initialDate:t.today||new Date;return n.state={selectedDate:r,navigatedDate:r,previousShowFullMonth:!!t.showFullMonth,animationDirection:t.animationDirection},n._focusOnUpdate=!1,n}return Object(m.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,r=!!e.showFullMonth,o=r!==t.previousShowFullMonth?qi.Vertical:qi.Horizontal;return Di(n,t.selectedDate)?{selectedDate:n,navigatedDate:t.navigatedDate,previousShowFullMonth:r,animationDirection:o}:{selectedDate:n,navigatedDate:n,previousShowFullMonth:r,animationDirection:o}},t.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},t.prototype.render=function(){var e=this.props,t=e.strings,n=e.dateTimeFormatter,r=e.firstDayOfWeek,o=e.minDate,i=e.maxDate,a=e.restrictedDates,s=e.today,l=e.styles,c=e.theme,u=e.className,A=e.showFullMonth,d=e.weeksToShow,g=Object(m.d)(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),p=LE(l,{theme:c,className:u});return y.createElement("div",{className:p.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":A},this._renderPreviousWeekNavigationButton(p),y.createElement(ta,Object(m.a)({styles:l,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:r,firstWeekOfYear:ui.FirstDay,dateRangeType:Ai.Day,weeksToShow:A?d:1,dateTimeFormatter:n,minDate:o,maxDate:i,restrictedDates:a,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:s,lightenDaysOutsideNavigatedMonth:A,animationDirection:this.state.animationDirection},g)),this._renderNextWeekNavigationButton(p))},t.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},t.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:li.Sunday,strings:TE,navigationIcons:jE,dateTimeFormatter:pi,animationDirection:qi.Horizontal},t}(y.Component),OE={root:"ms-WeeklyDayPicker-root"},_E=Object(M.a)(RE,(function(e){var t,n=e.className,r=e.theme,o=r.palette,i=Object(I.R)(OE,r);return{root:[i.root,I.gb,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},n],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[Object(I.Q)(r,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:o.neutralLighter,fontSize:I.j.small,fontFamily:"inherit",selectors:(t={},t["."+i.root+":hover &, ."+Kn.a+" ."+i.root+":focus &, ."+Kn.a+" &:focus"]={height:53,minHeight:12,overflow:"initial"},t["."+Kn.a+" ."+i.root+":focus-within &"]={height:53,minHeight:12,overflow:"initial"},t["&:hover"]={cursor:"pointer",backgroundColor:o.neutralLight},t["&:active"]={backgroundColor:o.neutralTertiary},t)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:o.neutralTertiaryAlt,pointerEvents:"none"}}}}}),void 0,{scope:"WeeklyDayPicker"});Object(_p.a)("@fluentui/react-window-provider","2.0.2")},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(194),t),o(n(195),t),o(n(308),t),o(n(157),t),o(n(309),t),o(n(310),t),o(n(311),t);var i=n(312);Object.defineProperty(t,"loadDataFromURL",{enumerable:!0,get:function(){return i.loadDataFromURL}})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(393),t),o(n(527),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(100),t),o(n(225),t),o(n(226),t),o(n(530),t),o(n(531),t),o(n(532),t),o(n(533),t),o(n(566),t),o(n(567),t),o(n(568),t),o(n(569),t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(92),o=void 0;try{o=window}catch(e){}function i(e){if(!r.a&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"k",(function(){return a})),n.d(t,"p",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"z",(function(){return c})),n.d(t,"r",(function(){return u})),n.d(t,"q",(function(){return A})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return g})),n.d(t,"o",(function(){return p})),n.d(t,"w",(function(){return h})),n.d(t,"t",(function(){return f})),n.d(t,"s",(function(){return m})),n.d(t,"u",(function(){return y})),n.d(t,"y",(function(){return I})),n.d(t,"x",(function(){return C})),n.d(t,"v",(function(){return E})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"i",(function(){return B})),n.d(t,"l",(function(){return M})),n.d(t,"n",(function(){return D})),n.d(t,"m",(function(){return x})),n.d(t,"h",(function(){return w})),n.d(t,"j",(function(){return Q}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},o=r(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),i=r(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),a=r(i,o),s=r(a,["form"]),l=r(a,["height","loop","muted","preload","src","width"]),c=r(l,["poster"]),u=r(a,["start"]),A=r(a,["value"]),d=r(a,["download","href","hrefLang","media","rel","target","type"]),g=r(a,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),p=r(g,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),h=r(g,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),f=r(g,["form","multiple","required"]),m=r(a,["selected","value"]),y=r(a,["cellPadding","cellSpacing"]),I=a,C=r(a,["rowSpan","scope"]),E=r(a,["colSpan","headers","rowSpan","scope"]),b=r(a,["span"]),v=r(a,["span"]),B=r(a,["acceptCharset","action","encType","encType","method","noValidate","target"]),M=r(a,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),D=r(a,["alt","crossOrigin","height","src","srcSet","useMap","width"]),x=D,w=a;function Q(e,t,n){for(var r,o=Array.isArray(t),i={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];!(!o&&t[l]||o&&t.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||n&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(l))||(i[l]=e[l])}return i}},function(e,t,n){"use strict";n.r(t),n.d(t,"Icon",(function(){return r.a})),n.d(t,"IconBase",(function(){return o.a})),n.d(t,"IconType",(function(){return i.a})),n.d(t,"getIconContent",(function(){return a.c})),n.d(t,"FontIcon",(function(){return a.a})),n.d(t,"getFontIcon",(function(){return a.b})),n.d(t,"ImageIcon",(function(){return s.a}));var r=n(93),o=n(134),i=n(109),a=n(135),s=n(237)},function(e,t,n){"use strict";var r,o,i;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(r||(r={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(o||(o={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(i||(i={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragData=t.Actions=void 0;var r=n(124);t.Actions=r;var o=n(388);t.DragData=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s}));var r=1e3,o=6e4,i=36e5,a=864e5,s=6048e5},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(162),t),o(n(320),t);var i=n(223);Object.defineProperty(t,"CoordinateSystem",{enumerable:!0,get:function(){return i.CoordinateSystem}}),Object.defineProperty(t,"CartesianCoordinates",{enumerable:!0,get:function(){return i.CartesianCoordinates}}),Object.defineProperty(t,"PolarCoordinates",{enumerable:!0,get:function(){return i.PolarCoordinates}}),Object.defineProperty(t,"BezierCurveCoordinates",{enumerable:!0,get:function(){return i.BezierCurveCoordinates}}),Object.defineProperty(t,"CoordinateSystemHelper",{enumerable:!0,get:function(){return i.CoordinateSystemHelper}});var a=n(385);Object.defineProperty(t,"BezierCurveParameterization",{enumerable:!0,get:function(){return a.BezierCurveParameterization}}),Object.defineProperty(t,"MultiCurveParametrization",{enumerable:!0,get:function(){return a.MultiCurveParametrization}}),Object.defineProperty(t,"LineSegmentParametrization",{enumerable:!0,get:function(){return a.LineSegmentParametrization}})},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelHeaderStyles=t.defaultStyle=t.FluentDatePickerWrapper=t.FluentDropdownWrapper=t.FluentDropdown=t.PlaceholderStyle=t.groupStyles=t.groupHeaderStyles=t.defultComponentsHeight=t.FluentGroupedList=t.NestedChartButtonsWrapper=t.labelRender=t.defaultLabelStyle=t.defaultFontWeight=t.FluentLayoutItem=t.FluentColumnLayout=t.FluentDataBindingMenuLabel=t.FluentDataBindingMenuItem=t.FluentRowLayout=t.FluentCheckbox=t.FluentTextField=t.FluentActionButton=t.FluentLabelHeader=t.FluentButton=t.defultBindButtonSize=void 0;var i,a,s,l,c,u,A,d,g,p,h,f,m,y,I,C,E=n(0),b=n(11),v=n(88);t.defultBindButtonSize={height:"24px",width:"24px"},t.FluentButton=v.default.div(i||(i=r(["\n  margin-top: ",";\n  margin-left: ",";\n  display: inline-block;\n  padding: 0px "," 0px 0px;\n  height: ",";\n  line-height: ",";\n  button {\n    padding: 4px;\n  }\n"],["\n  margin-top: ",";\n  margin-left: ",";\n  display: inline-block;\n  padding: 0px "," 0px 0px;\n  height: ",";\n  line-height: ",";\n  button {\n    padding: 4px;\n  }\n"])),(function(e){return e.marginTop||"24px"}),(function(e){return e.marginLeft||"unset"}),(function(e){return e.paddingRight||"4px"}),t.defultBindButtonSize.height,t.defultBindButtonSize.height),t.FluentLabelHeader=v.default.div(a||(a=r(["\n  margin-bottom: ",";\n  margin-top: ",";\n  margin-right: ",";\n"],["\n  margin-bottom: ",";\n  margin-top: ",";\n  margin-right: ",";\n"])),(function(e){return e.marginBottom||"24px"}),(function(e){return e.marginTop||"20px"}),(function(e){return e.marginRight||"2px"})),t.FluentActionButton=v.default.div(s||(s=r(["\n  button {\n    border: 1px solid;\n    width: 100%;\n    overflow: hidden;\n  }\n"],["\n  button {\n    border: 1px solid;\n    width: 100%;\n    overflow: hidden;\n  }\n"]))),t.FluentTextField=v.default.div(l||(l=r(["\n  flex: 1;\n  * {\n    flex: 1;\n  }\n"],["\n  flex: 1;\n  * {\n    flex: 1;\n  }\n"]))),t.FluentCheckbox=v.default.div(c||(c=r(["\n  margin-bottom: 2px;\n"],["\n  margin-bottom: 2px;\n"]))),t.FluentRowLayout=v.default.div(u||(u=r(["\n  display: flex;\n  flex-direction: row;\n"],["\n  display: flex;\n  flex-direction: row;\n"]))),t.FluentDataBindingMenuItem=v.default.div(A||(A=r(["\n  display: flex;\n  flex-direction: row;\n  align-items: stretch;\n  justify-content: center;\n  height: 26px;\n  line-height: unset;\n  background-color: ",";\n  &:hover {\n    background-color: ",";\n  }\n  .ms-Dropdown-container {\n    margin-top: 2px;\n  }\n"],["\n  display: flex;\n  flex-direction: row;\n  align-items: stretch;\n  justify-content: center;\n  height: 26px;\n  line-height: unset;\n  background-color: ",";\n  &:hover {\n    background-color: ",";\n  }\n  .ms-Dropdown-container {\n    margin-top: 2px;\n  }\n"])),(function(e){return e.backgroundColor||null}),(function(e){return e.backgroundColorHover||null})),t.FluentDataBindingMenuLabel=v.default.div(d||(d=r(["\n  flex: 1;\n  margin-left: 5px;\n"],["\n  flex: 1;\n  margin-left: 5px;\n"]))),t.FluentColumnLayout=v.default.div(g||(g=r(["\n  display: flex;\n  flex-direction: column;\n"],["\n  display: flex;\n  flex-direction: column;\n"]))),t.FluentLayoutItem=v.default.div(p||(p=r(["\n  flex: ",";\n"],["\n  flex: ",";\n"])),(function(e){return e.flex||"1"})),t.defaultFontWeight=400,t.defaultLabelStyle={root:{fontWeight:t.defaultFontWeight,lineHeight:"unset"}},t.labelRender=function(e){var n=e.label;return n?E.createElement(b.Label,{styles:t.defaultLabelStyle},n):null},t.NestedChartButtonsWrapper=v.default.div(h||(h=r(["\n  margin-top: 5px;\n"],["\n  margin-top: 5px;\n"]))),t.FluentGroupedList=v.default.div(f||(f=r(["\n  .charticulator__widget-collapsible-panel-item {\n    margin-left: ",";\n    margin-right: 15px;\n    min-width: 270px;\n  }\n\n  .ms-List-surface .ms-List-cell .ms-List-cell:last-child {\n    margin-bottom: 5px;\n  }\n\n  .ms-List-surface .ms-List-page .ms-List-cell {\n    min-height: 24px;\n  }\n"],["\n  .charticulator__widget-collapsible-panel-item {\n    margin-left: ",";\n    margin-right: 15px;\n    min-width: 270px;\n  }\n\n  .ms-List-surface .ms-List-cell .ms-List-cell:last-child {\n    margin-bottom: 5px;\n  }\n\n  .ms-List-surface .ms-List-page .ms-List-cell {\n    min-height: 24px;\n  }\n"])),(function(e){var t=e.marginLeft;return null!=t?t:"25px"})),t.defultComponentsHeight={height:"24px",lineHeight:"unset"},t.groupHeaderStyles={title:{fontWeight:600},headerCount:{display:"none"},groupHeaderContainer:o({},t.defultComponentsHeight),expand:o(o({},t.defultBindButtonSize),{fontSize:"unset"}),dropIcon:{display:"none"}},t.groupStyles={group:{borderTop:"1px #C8C6C4 solid"}},t.PlaceholderStyle=v.default.div(m||(m=r(["\n  input {\n    ::-webkit-input-placeholder {\n      /* Chrome/Opera/Safari */\n      color: ",";\n    }\n    ::-moz-placeholder {\n      /* Firefox 19+ */\n      color: ",";\n    }\n    :-ms-input-placeholder {\n      /* IE 10+ */\n      color: ",";\n    }\n    :-moz-placeholder {\n      /* Firefox 18- */\n      color: ",";\n    }\n  }\n"],["\n  input {\n    ::-webkit-input-placeholder {\n      /* Chrome/Opera/Safari */\n      color: ",";\n    }\n    ::-moz-placeholder {\n      /* Firefox 19+ */\n      color: ",";\n    }\n    :-ms-input-placeholder {\n      /* IE 10+ */\n      color: ",";\n    }\n    :-moz-placeholder {\n      /* Firefox 18- */\n      color: ",";\n    }\n  }\n"])),(function(e){return e.color||"lightgray"}),(function(e){return e.color||"lightgray"}),(function(e){return e.color||"lightgray"}),(function(e){return e.color||"lightgray"})),t.FluentDropdown=v.default.div(y||(y=r(["\n  & svg {\n    stroke: rgb(128, 128, 128) !important;\n    fill: rgb(128, 128, 128) !important;\n  }\n  display: inline;\n"],["\n  & svg {\n    stroke: rgb(128, 128, 128) !important;\n    fill: rgb(128, 128, 128) !important;\n  }\n  display: inline;\n"]))),t.FluentDropdownWrapper=v.default.div(I||(I=r(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  height: 20px;\n"],["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  height: 20px;\n"]))),t.FluentDatePickerWrapper=v.default.div(C||(C=r(["\n  .ms-TextField-fieldGroup {\n    height: 24px;\n  }\n  i {\n    padding: 4px 5px 5px;\n    line-height: unset;\n  }\n"],["\n  .ms-TextField-fieldGroup {\n    height: 24px;\n  }\n  i {\n    padding: 4px 5px 5px;\n    line-height: unset;\n  }\n"]))),t.defaultStyle={field:{defultComponentsHeight:t.defultComponentsHeight,height:"20px"},fieldGroup:t.defultComponentsHeight,dropdown:o({boxSizing:"unset"},t.defultComponentsHeight),dropdownOptionText:o({boxSizing:"unset"},t.defultComponentsHeight),dropdownItem:o({boxSizing:"unset",minHeight:"25px"},t.defultComponentsHeight),dropdownItemHeader:o({boxSizing:"unset"},t.defultComponentsHeight),dropdownItemSelected:o({boxSizing:"unset",minHeight:"24px",lineHeight:"24px"},t.defultComponentsHeight),caretDown:o({boxSizing:"unset"},t.defultComponentsHeight),caretDownWrapper:o({boxSizing:"unset",marginTop:"5px"},t.defultComponentsHeight),title:o(o({boxSizing:"unset"},t.defultComponentsHeight),{height:"22px",lineHeight:"unset"}),label:{lineHeight:"unset"}},t.PanelHeaderStyles={root:{border:"unset",height:24,width:24,display:"inline",padding:0,minWidth:24},textContainer:{flexGrow:"unset"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseOrExpandPanels=t.Colorspace=t.TextAlignmentVertical=t.TextAlignmentHorizontal=t.TickFormatType=t.NumericalMode=t.AxisDataBindingType=t.OrderMode=void 0,function(e){e.alphabetically="alphabetically",e.occurrence="occurrence",e.order="order"}(t.OrderMode||(t.OrderMode={})),function(e){e.Default="default",e.Numerical="numerical",e.Categorical="categorical"}(t.AxisDataBindingType||(t.AxisDataBindingType={})),function(e){e.Linear="linear",e.Logarithmic="logarithmic",e.Temporal="temporal"}(t.NumericalMode||(t.NumericalMode={})),function(e){e.None="none",e.Date="date",e.Number="number"}(t.TickFormatType||(t.TickFormatType={})),function(e){e.Left="left",e.Middle="middle",e.Right="right"}(t.TextAlignmentHorizontal||(t.TextAlignmentHorizontal={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(t.TextAlignmentVertical||(t.TextAlignmentVertical={})),function(e){e.Hcl="hcl",e.Lab="lab"}(t.Colorspace||(t.Colorspace={})),function(e){e.Collapse="collapse",e.Expand="expand",e.Custom="custom"}(t.CollapseOrExpandPanels||(t.CollapseOrExpandPanels={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o="undefined"==typeof window?e:window,i=o&&o.CSPSettings&&o.CSPSettings.nonce,a=function(){var e=o.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=r(r({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=r(r({},e),{registeredThemableStyles:[]}));return o.__themeState__=e,e}(),s=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,l=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()};function c(e){var t=l();e();var n=l();a.perf.duration+=n-t}function u(e,t){void 0===t&&(t=!1),c((function(){var n=Array.isArray(e)?e:h(e),r=a.runState,o=r.mode,i=r.buffer,s=r.flushTimer;t||1===o?(i.push(n),s||(a.runState.flushTimer=setTimeout((function(){a.runState.flushTimer=0,c((function(){var e=a.runState.buffer.slice();a.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&A(t)}))}),0))):A(n)}))}function A(e,t){a.loadStyles?a.loadStyles(p(e).styleString,e):function(e){if("undefined"==typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=p(e),o=r.styleString,s=r.themable;n.setAttribute("data-load-themed-styles","true"),i&&n.setAttribute("nonce",i);n.appendChild(document.createTextNode(o)),a.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var c={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(c):a.registeredStyles.push(c)}(e)}function d(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(g(a.registeredStyles),a.registeredStyles=[]);3!==e&&1!==e||(g(a.registeredThemableStyles),a.registeredThemableStyles=[])}(1),A([].concat.apply([],e)))}}()}function g(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function p(e){var t=a.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}function h(e){var t=[];if(e){for(var n=0,r=void 0;r=s.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=s.lastIndex}t.push({rawString:e.substring(n)})}return t}}).call(this,n(217))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintPlugins=t.ConstraintPlugin=t.ConstraintStrength=t.ConstraintSolver=t.GlyphConstraintAnalyzer=t.ChartConstraintSolver=void 0;var r=n(73);Object.defineProperty(t,"ConstraintPlugin",{enumerable:!0,get:function(){return r.ConstraintPlugin}}),Object.defineProperty(t,"ConstraintSolver",{enumerable:!0,get:function(){return r.ConstraintSolver}}),Object.defineProperty(t,"ConstraintStrength",{enumerable:!0,get:function(){return r.ConstraintStrength}});var o=n(321);Object.defineProperty(t,"ChartConstraintSolver",{enumerable:!0,get:function(){return o.ChartConstraintSolver}}),Object.defineProperty(t,"GlyphConstraintAnalyzer",{enumerable:!0,get:function(){return o.GlyphConstraintAnalyzer}});var i=n(323);t.ConstraintPlugins=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageKeys=t.resizeListeners=t.popupController=t.dragController=void 0;var r=n(58);t.dragController=new r.DragController,t.popupController=new r.PopupController,t.resizeListeners=new r.ResizeListeners,function(e){e.NumberFormatRemove="numberFormatRemove",e.DelimiterSymbol="delimiterSymbol",e.CurrencySymbol="currencySymbol",e.GroupSymbol="groupSymbol",e.UtcTimeZone="utcTimeZone"}(t.LocalStorageKeys||(t.LocalStorageKeys={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"mergeStyles",(function(){return r.b})),n.d(t,"mergeCss",(function(){return r.a})),n.d(t,"mergeStyleSets",(function(){return o.b})),n.d(t,"mergeCssSets",(function(){return o.a})),n.d(t,"concatStyleSets",(function(){return i.a})),n.d(t,"concatStyleSetsWithProps",(function(){return a.a})),n.d(t,"fontFace",(function(){return s.a})),n.d(t,"keyframes",(function(){return l.a})),n.d(t,"InjectionMode",(function(){return c.a})),n.d(t,"Stylesheet",(function(){return c.b})),n.d(t,"setRTL",(function(){return u.b}));var r=n(133),o=n(132),i=n(78),a=n(188),s=n(229),l=n(228),c=n(36),u=n(46),A=n(34);Object(A.a)("@fluentui/merge-styles","8.0.3")},function(e,t,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(o,i,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),A=Math.round,d=Math.abs,g=Date.now;function p(e,t,n){return setTimeout(E(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var y=m((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),I=m((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function C(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&l(r,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function v(e,t){return void 0===e?t:e}function B(e,t,n){f(w(t),(function(t){e.addEventListener(t,n,!1)}))}function M(e,t,n){f(w(t),(function(t){e.removeEventListener(t,n,!1)}))}function D(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function x(e,t){return e.indexOf(t)>-1}function w(e){return e.trim().split(/\s+/g)}function Q(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function S(e){return Array.prototype.slice.call(e,0)}function N(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];Q(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function k(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+o:t)in e)return r;i++}}var T=1;function j(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var L="ontouchstart"in o,R=void 0!==k(o,"PointerEvent"),O=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),_=["x","y"],F=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function P(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=U(t));o>1&&!n.firstMultiple?n.firstMultiple=U(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=t.center=G(r);t.timeStamp=g(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=W(s,l),t.distance=V(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=H(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,t.scale=a?(u=a.pointers,A=r,V(A[0],A[1],F)/V(u[0],u[1],F)):1,t.rotation=a?function(e,t){return W(t[1],t[0],F)+W(e[1],e[0],F)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=H(s,l,c);r=u.x,o=u.y,n=d(u.x)>d(u.y)?u.x:u.y,i=Y(l,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var u,A;var p=e.element;D(t.srcEvent.target,p)&&(p=t.srcEvent.target);t.target=p}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function U(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:A(e.pointers[n].clientX),clientY:A(e.pointers[n].clientY)},n++;return{timeStamp:g(),pointers:t,center:G(t),deltaX:e.deltaX,deltaY:e.deltaY}}function G(e){var t=e.length;if(1===t)return{x:A(e[0].clientX),y:A(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:A(n/t),y:A(r/t)}}function H(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function V(e,t,n){n||(n=_);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function W(e,t,n){n||(n=_);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(j(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function Z(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}C(Z,z,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},q={2:"touch",3:"pen",4:"mouse",5:"kinect"},X="pointerdown",$="pointermove pointerup pointercancel";function ee(){this.evEl=X,this.evWin=$,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(X="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),C(ee,z,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=J[r],i=q[e.pointerType]||e.pointerType,a="touch"==i,s=Q(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&o&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function re(e,t){var n=S(e.touches),r=S(e.changedTouches);return 12&t&&(n=N(n.concat(r),"identifier",!0)),[n,r]}C(ne,z,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function ae(e,t){var n=S(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=S(e.changedTouches),s=[],l=this.target;if(i=n.filter((function(e){return D(e.target,l)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),12&t&&delete r[a[o].identifier],o++;return s.length?[N(i.concat(s),"identifier",!0),s]:void 0}C(ie,z,{handler:function(e){var t=oe[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function se(){z.apply(this,arguments);var e=E(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}C(se,z,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ae=k(u.style,"touchAction"),de=void 0!==Ae,ge=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function pe(e,t){this.manager=e,this.set(t)}pe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&ge[e]&&(this.manager.element.style[Ae]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(x(e,"none"))return"none";var t=x(e,"pan-x"),n=x(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(x(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=x(r,"none")&&!ge.none,i=x(r,"pan-y")&&!ge["pan-y"],a=x(r,"pan-x")&&!ge["pan-x"];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function he(e){this.options=l({},this.defaults,e||{}),this.id=T++,this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function fe(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ye(e,t){var n=t.manager;return n?n.get(e):e}function Ie(){he.apply(this,arguments)}function Ce(){Ie.apply(this,arguments),this.pX=null,this.pY=null}function Ee(){Ie.apply(this,arguments)}function be(){he.apply(this,arguments),this._timer=null,this._input=null}function ve(){Ie.apply(this,arguments)}function Be(){Ie.apply(this,arguments)}function Me(){he.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=v(t.recognizers,De.defaults.preset),new xe(e,t)}he.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ye(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)||(e=ye(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===Q(t,e=ye(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=ye(e,this);var t=Q(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+fe(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+fe(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},C(Ie,he,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),C(Ce,Ie,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return Ie.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),C(Ee,Ie,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),C(be,he,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=g(),this.manager.emit(this.options.event,this._input)))}}),C(ve,Ie,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),C(Be,Ie,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ce.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),C(Me,he,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||V(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ve,{enable:!1}],[Ee,{enable:!1},["rotate"]],[Be,{direction:6}],[Ce,{direction:6},["swipe"]],[Me],[Me,{event:"doubletap",taps:2},["tap"]],[be]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function xe(e,t){var n;this.options=l({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ee:O?ie:L?se:Z))(n,P),this.touchAction=new pe(this,this.options.touchAction),we(this,!0),f(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function we(e,t){var n,r=e.element;r.style&&(f(e.options.cssProps,(function(o,i){n=k(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}xe.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof he)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=Q(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return f(w(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return f(w(e),(function(e){t?n[e]&&n[e].splice(Q(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&we(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:xe,Input:z,TouchAction:pe,TouchInput:ie,MouseInput:Z,PointerEventInput:ee,TouchMouseInput:se,SingleTouchInput:ne,Recognizer:he,AttrRecognizer:Ie,Tap:Me,Pan:Ce,Swipe:Be,Pinch:Ee,Rotate:ve,Press:be,on:B,off:M,each:f,merge:I,extend:y,assign:l,inherit:C,bindFn:E,prefixed:k}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=De,void 0===(r=function(){return De}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return C})),n.d(t,"h",(function(){return v})),n.d(t,"g",(function(){return B})),n.d(t,"b",(function(){return M})),n.d(t,"f",(function(){return N}));var r=n(41);function o(){}var i=.7,a=1/i,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),g=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),h=new RegExp("^hsl\\("+[l,c,c]+"\\)$"),f=new RegExp("^hsla\\("+[l,c,c,l]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function I(){return this.rgb().formatRgb()}function C(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?E(t):3===n?new M(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?b(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?b(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=A.exec(e))?new M(t[1],t[2],t[3],1):(t=d.exec(e))?new M(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=g.exec(e))?b(t[1],t[2],t[3],t[4]):(t=p.exec(e))?b(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=f.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?E(m[e]):"transparent"===e?new M(NaN,NaN,NaN,0):null}function E(e){return new M(e>>16&255,e>>8&255,255&e,1)}function b(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function v(e){return e instanceof o||(e=C(e)),e?new M((e=e.rgb()).r,e.g,e.b,e.opacity):new M}function B(e,t,n,r){return 1===arguments.length?v(e):new M(e,t,n,null==r?1:r)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function D(){return"#"+w(this.r)+w(this.g)+w(this.b)}function x(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function w(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new k(e,t,n,r)}function S(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=C(e)),!e)return new k;if(e instanceof k)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-i,c=(a+i)/2;return l?(s=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=c<.5?a+i:2-a-i,s*=60):l=c>0&&c<1?0:s,new k(s,l,c,e.opacity)}function N(e,t,n,r){return 1===arguments.length?S(e):new k(e,t,n,null==r?1:r)}function k(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function T(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Object(r.a)(o,C,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return S(this).formatHsl()},formatRgb:I,toString:I}),Object(r.a)(M,B,Object(r.b)(o,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:D,formatHex:D,formatRgb:x,toString:x})),Object(r.a)(k,N,Object(r.b)(o,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new k(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new M(T(e>=240?e-240:e+120,o,r),T(e,o,r),T(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.strokeStyleToDashArray=t.getProperty=t.setProperty=t.forEachMapping=t.forEachObject=t.ObjectItemKind=t.findObjectById=t.SnappingGuidesVisualTypes=t.Handles=t.Controls=void 0;var s,l=n(12),c=n(326);t.Controls=c,o(n(67),t),o(n(50),t),function(e){!function(e){e.Property="property",e.Attribute="attribute",e.AttributeValueMapping="attribute-value-mapping"}(e.HandleActionType||(e.HandleActionType={}))}(t.Handles||(t.Handles={})),function(e){e[e.Guide=0]="Guide",e[e.Coordinator=1]="Coordinator",e[e.Point=2]="Point"}(t.SnappingGuidesVisualTypes||(t.SnappingGuidesVisualTypes={})),t.findObjectById=function(e,t){var n,r;if(e._id==t)return e;var o=l.getById(e.scales,t)||l.getById(e.elements,t)||l.getById(e.glyphs,t);if(null!=o)return o;try{for(var i=a(e.glyphs),s=i.next();!s.done;s=i.next()){var c=s.value;if(null!=(o=l.getById(c.marks,t)))return o}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},function(e){e.Chart="chart",e.ChartElement="chart-element",e.Glyph="glyph",e.Mark="mark",e.Scale="scale"}(s=t.ObjectItemKind||(t.ObjectItemKind={})),t.forEachObject=function(e){var t,n,r,o,l,c,u,A,d,g,p,h,f,m,y,I,C,E,b,v,B,M,D,x;return i(this,(function(i){switch(i.label){case 0:return[4,{kind:s.Chart,object:e}];case 1:i.sent(),i.label=2;case 2:i.trys.push([2,7,8,9]),t=a(e.elements),n=t.next(),i.label=3;case 3:return n.done?[3,6]:(r=n.value,[4,{kind:s.ChartElement,object:r,chartElement:r}]);case 4:i.sent(),i.label=5;case 5:return n=t.next(),[3,3];case 6:return[3,9];case 7:return o=i.sent(),C={error:o},[3,9];case 8:try{n&&!n.done&&(E=t.return)&&E.call(t)}finally{if(C)throw C.error}return[7];case 9:i.trys.push([9,21,22,23]),l=a(e.glyphs),c=l.next(),i.label=10;case 10:return c.done?[3,20]:(u=c.value,[4,{kind:s.Glyph,object:u,glyph:u}]);case 11:i.sent(),i.label=12;case 12:i.trys.push([12,17,18,19]),B=void 0,A=a(u.marks),d=A.next(),i.label=13;case 13:return d.done?[3,16]:(g=d.value,[4,{kind:s.Mark,object:g,glyph:u,mark:g}]);case 14:i.sent(),i.label=15;case 15:return d=A.next(),[3,13];case 16:return[3,19];case 17:return p=i.sent(),B={error:p},[3,19];case 18:try{d&&!d.done&&(M=A.return)&&M.call(A)}finally{if(B)throw B.error}return[7];case 19:return c=l.next(),[3,10];case 20:return[3,23];case 21:return h=i.sent(),b={error:h},[3,23];case 22:try{c&&!c.done&&(v=l.return)&&v.call(l)}finally{if(b)throw b.error}return[7];case 23:i.trys.push([23,28,29,30]),f=a(e.scales),m=f.next(),i.label=24;case 24:return m.done?[3,27]:(y=m.value,[4,{kind:s.Scale,object:y,scale:y}]);case 25:i.sent(),i.label=26;case 26:return m=f.next(),[3,24];case 27:return[3,30];case 28:return I=i.sent(),D={error:I},[3,30];case 29:try{m&&!m.done&&(x=f.return)&&x.call(f)}finally{if(D)throw D.error}return[7];case 30:return[2]}}))},t.forEachMapping=function(e){var t,n,r,o,s,l;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,7]),t=a(Object.keys(e)),n=t.next(),i.label=1;case 1:return n.done?[3,4]:[4,[r=n.value,e[r]]];case 2:i.sent(),i.label=3;case 3:return n=t.next(),[3,1];case 4:return[3,7];case 5:return o=i.sent(),s={error:o},[3,7];case 6:try{n&&!n.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 7:return[2]}}))},t.setProperty=function(e,t,n){"string"==typeof t?e.properties[t]=n:t.subfield?l.setField(e.properties[t.property][t.field],t.subfield,n):l.setField(e.properties[t.property],t.field,n)},t.getProperty=function(e,t){return"string"==typeof t?e.properties[t]:t.subfield?l.getField(e.properties[t.property][t.field],t.subfield):l.getField(e.properties[t.property],t.field)},t.strokeStyleToDashArray=function(e){switch(e){case"dashed":return"8";case"dotted":return"1 10";default:return""}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MainReactContext=t.ContextedComponent=t.MainContextTypes=void 0;var i=n(0),a=n(37),s=n(7);t.MainContextTypes={store:function(e,t,n){return e[t]instanceof a.AppStore?null:new Error(s.strings.error.storeNotFound(n))}};var l=function(e){function n(t,n){return e.call(this,t,n)||this}return o(n,e),n.prototype.dispatch=function(e){this.context.store.dispatcher.dispatch(e)},Object.defineProperty(n.prototype,"store",{get:function(){return this.context.store},enumerable:!1,configurable:!0}),n.contextTypes=t.MainContextTypes,n}(i.Component);t.ContextedComponent=l,t.MainReactContext=i.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}i("@fluentui/set-version","6.0.0")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(92);function o(e){if(!r.a&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}));var r,o=n(1),i={none:0,insertNode:1,appendChild:2},a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window}catch(e){}var l=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=Object(o.a)({injectionMode:i.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(r=s.__stylesheet__)||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var n=(null===(t=s)||void 0===t?void 0:t.FabricConfig)||{};r=s.__stylesheet__=new e(n.mergeStyles)}return r},e.prototype.setConfig=function(e){this._config=Object(o.a)(Object(o.a)({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==i.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case i.insertNode:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case i.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(260);Object.defineProperty(t,"BaseStore",{enumerable:!0,get:function(){return i.BaseStore}});var a=n(45);Object.defineProperty(t,"AppStore",{enumerable:!0,get:function(){return a.AppStore}});var s=n(179);Object.defineProperty(t,"Migrator",{enumerable:!0,get:function(){return s.Migrator}}),o(n(102),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(81),t);var i=n(314);Object.defineProperty(t,"DatasetLoader",{enumerable:!0,get:function(){return i.DatasetLoader}});var a=n(316);Object.defineProperty(t,"DatasetContext",{enumerable:!0,get:function(){return a.DatasetContext}}),Object.defineProperty(t,"TableContext",{enumerable:!0,get:function(){return a.TableContext}}),Object.defineProperty(t,"RowContext",{enumerable:!0,get:function(){return a.RowContext}});var s=n(115);Object.defineProperty(t,"convertColumnType",{enumerable:!0,get:function(){return s.convertColumnType}}),Object.defineProperty(t,"inferColumnType",{enumerable:!0,get:function(){return s.inferColumnType}}),Object.defineProperty(t,"inferAndConvertColumn",{enumerable:!0,get:function(){return s.inferAndConvertColumn}}),Object.defineProperty(t,"dataTypes",{enumerable:!0,get:function(){return s.dataTypes}})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Dataflow=t.Legends=t.Guides=t.Links=t.PlotSegments=t.Charts=t.Glyphs=t.Constraints=t.Scales=t.Marks=void 0;var i=n(199);t.Charts=i;var a=n(337);t.Constraints=a;var s=n(161);t.Dataflow=s;var l=n(206);t.Glyphs=l;var c=n(85);t.Guides=c;var u=n(338);t.Legends=u;var A=n(119);t.Links=A;var d=n(341);t.Marks=d;var g=n(99);t.PlotSegments=g;var p=n(168);t.Scales=p;var h=n(215);Object.defineProperty(t,"ObjectClassCache",{enumerable:!0,get:function(){return h.ObjectClassCache}}),o(n(31),t),o(n(360),t),i.registerClasses(),l.registerClasses(),d.registerClasses(),A.registerClasses(),u.registerClasses(),c.registerClasses(),p.registerClasses(),g.registerClasses(),a.registerClasses()},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(181),t),o(n(560),t),o(n(561),t),o(n(562),t),o(n(263),t),o(n(563),t),o(n(264),t)},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,"b",(function(){return r})),t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.buildAxisProperties=t.buildAxisInference=t.buildAxisWidgets=t.buildAxisAppearanceWidgets=t.getNumericalInterpolate=t.getCategoricalAxis=t.AxisRenderer=t.AxisMode=t.defaultAxisStyle=void 0;var s,l=n(12),c=n(22),u=n(202),A=n(5),d=n(31),g=n(6),p=n(7),h=n(56),f=n(24),m=n(328),y=n(165),I=n(49),C=n(166),E=n(83),b=n(0);t.defaultAxisStyle={tickColor:{r:0,g:0,b:0},tickTextBackgroudColor:null,tickTextBackgroudColorId:null,showTicks:!0,showBaseline:!0,lineColor:{r:0,g:0,b:0},fontFamily:h.defaultFont,fontSize:h.defaultFontSize,tickSize:5,wordWrap:!1,verticalText:!1,gridlineStyle:"none",gridlineColor:{r:234,g:234,b:234},gridlineWidth:1},function(e){e.X="x",e.Y="y"}(s=t.AxisMode||(t.AxisMode={}));var v=function(){function e(){this.ticks=[],this.style=t.defaultAxisStyle,this.rangeMin=0,this.rangeMax=1,this.oppositeSide=!1,this.scrollRequired=!1,this.shiftAxis=!0,this.hiddenCategoriesRatio=0,this.dataType=f.AxisDataBindingType.Default,this.windowSize=1,this.chartMarginForYLabel=null}return e.prototype.setStyle=function(e){return this.style=e?function(e){return l.fillDefaults(e,t.defaultAxisStyle)}(l.deepClone(e)):t.defaultAxisStyle,this.style.tickTextBackgroudColorId="axis-tick-filter-"+l.getRandomNumber(),this},e.prototype.setAxisDataBinding=function(e,t,n,r,o,i,a,s){var l,c;if(this.rangeMin=t,this.rangeMax=n,!e)return this;switch(this.plotSegment=a,this.dataFlow=s,this.data=e,this.setStyle(e.style),this.oppositeSide="opposite"==e.side,this.scrollRequired=e.allowScrolling,this.shiftAxis=e.allowScrolling&&(null==e.barOffset||0===e.barOffset)&&(e.allCategories&&e.windowSize<(null===(l=e.allCategories)||void 0===l?void 0:l.length)||Math.abs(e.dataDomainMax-e.dataDomainMin)>e.windowSize),this.dataType=e.type,this.hiddenCategoriesRatio=e.windowSize/(e.allCategories?e.allCategories.length:Math.abs(e.dataDomainMax-e.dataDomainMin)),this.shiftAxis&&(e.windowSize>(null===(c=e.allCategories)||void 0===c?void 0:c.length)||e.windowSize>Math.abs(e.dataDomainMax-e.dataDomainMin)?this.windowSize=e.allCategories?Math.max(e.allCategories.length,1):Math.abs(e.dataDomainMax-e.dataDomainMin):this.windowSize=Math.max(e.windowSize,1)),e.type){case"numerical":e.numericalMode&&"linear"!=e.numericalMode||this.setLinearScale(e.domainMin,e.domainMax,t,n,e.tickFormat,e.numberOfTicks,e.autoNumberOfTicks),"logarithmic"==e.numericalMode&&this.setLogarithmicScale(e.domainMin,e.domainMax,t,n,e.tickFormat,e.numberOfTicks,e.autoNumberOfTicks),"temporal"==e.numericalMode&&this.setTemporalScale(e.domainMin,e.domainMax,t,n,e.tickFormat,e.numberOfTicks,e.autoNumberOfTicks);break;case"categorical":this.setCategoricalScale(e.categories,B(e,r,o).ranges,t,n,i)}return this},e.prototype.setTicksByData=function(e,t){var n,r,a,s,c=new Map;try{for(var u=o(e),A=u.next();!A.done;A=u.next()){var d=A.value,g=this.valueToPosition(d.value),p=void 0,h=t?null==t?void 0:t.replace(l.tickFormatParserExpression(),"$1"):null;if(h&&"string"!=typeof d.tick)try{p=l.getFormat()(h)(d.tick)}catch(e){try{p=l.applyDateFormat(new Date(d.tick),h)}catch(e){p=d.tick}}else p=d.tick;c.set(g,p)}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}this.ticks=[];try{for(var f=o(c.entries()),m=f.next();!m.done;m=f.next()){var y=i(m.value,2);g=y[0],d=y[1];this.ticks.push({position:g,label:d})}}catch(e){a={error:e}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}},e.getTickFormat=function(e,t){return null==e||""==e?t:function(t){return e.replace(l.tickFormatParserExpression(),(function(e,n){return l.getFormat()(n)(t)}))}},e.prototype.setCartesianChartMargin=function(e){var t,n,r,o,i,a;try{var s=null===(t=e.object)||void 0===t?void 0:t.mappings;"default"===(null===(o=null===(r=null===(n=e.object)||void 0===n?void 0:n.properties)||void 0===r?void 0:r.yData)||void 0===o?void 0:o.side)?s.x1.type===g.MappingType.parent&&"x1"==s.x1.parentAttribute?this.chartMarginForYLabel=null===(i=e.parent.state.attributes)||void 0===i?void 0:i.marginLeft:this.chartMarginForYLabel=null:s.x2.type===g.MappingType.parent&&"x2"==s.x2.parentAttribute?this.chartMarginForYLabel=null===(a=e.parent.state.attributes)||void 0===a?void 0:a.marginRight:this.chartMarginForYLabel=null}catch(e){this.chartMarginForYLabel=null}},e.prototype.setLinearScale=function(t,n,r,o,i,a,s){void 0===a&&(a=e.DEFAULT_TICKS_NUMBER),void 0===s&&(s=!0);var c=new l.Scale.LinearScale;c.domainMin=t,c.domainMax=n;var u=Math.abs(o-r),A=a;s&&(A=Math.round(Math.min(10,u/40)),this.data&&(this.data.numberOfTicks=A));for(var d=c.ticks(A),g=c.tickFormat(A),p=e.getTickFormat(i,g),h=[],f=0;f<d.length;f++){var m=(d[f]-t)/(n-t)*(o-r)+r;isNaN(m)||h.push({position:m,label:p(d[f])})}return this.valueToPosition=function(e){return(e-t)/(n-t)*(o-r)+r},this.ticks=h,this.rangeMin=r,this.rangeMax=o,this},e.prototype.setLogarithmicScale=function(t,n,r,o,i,a,s){void 0===a&&(a=e.DEFAULT_TICKS_NUMBER),void 0===s&&(s=!0);var c=new l.Scale.LogarithmicScale;c.domainMin=t,c.domainMax=n;var u=Math.abs(o-r),A=a;s&&(A=Math.round(Math.min(10,u/40)),this.data&&(this.data.numberOfTicks=A));for(var d=c.ticks(A),g=c.tickFormat(A),p=e.getTickFormat(i,g),h=[],f=0;f<d.length;f++){var m=(Math.log(d[f])-Math.log(t))/(Math.log(n)-Math.log(t))*(o-r)+r;isNaN(m)||h.push({position:m,label:p(d[f])})}return this.valueToPosition=function(e){return(e-t)/(n-t)*(o-r)+r},this.ticks=h,this.rangeMin=r,this.rangeMax=o,this},e.prototype.setTemporalScale=function(t,n,r,o,i,a,s){void 0===a&&(a=e.DEFAULT_TICKS_NUMBER),void 0===s&&(s=!0);var c=new l.Scale.DateScale;c.domainMin=t,c.domainMax=n;var u=Math.abs(o-r),A=a;s&&(A=Math.round(Math.min(10,u/40)),this.data&&(this.data.numberOfTicks=A));for(var d=c.ticks(A),g=c.tickFormat(A,null==i?void 0:i.replace(l.tickFormatParserExpression(),"$1")),p=[],h=0;h<d.length;h++){var f=(d[h]-t)/(n-t)*(o-r)+r;isNaN(f)||p.push({position:f,label:g(d[h])})}return this.valueToPosition=function(e){return(e-t)/(n-t)*(o-r)+r},this.ticks=p,this.rangeMin=r,this.rangeMax=o,this},e.prototype.setCategoricalScale=function(e,t,n,r,o){for(var i=[],a=0;a<e.length;a++){var s=(t[a][0]+t[a][1])/2*(r-n)+n;isNaN(s)||i.push({position:s,label:o?o(e[a]):e[a]})}return this.valueToPosition=function(o){var i=e.indexOf(o);return i>=0?(t[i][0]+t[i][1])/2*(r-n)+n:0},this.ticks=i,this.rangeMin=n,this.rangeMax=r,this},e.prototype.renderGridLine=function(e,t,n,r,i){var a,s,u=this.style;if("none"!==u.gridlineStyle){this.oppositeSide&&(r=-r);var A=c.makeGroup([]),g=Math.cos(l.Geometry.degreesToRadians(n)),p=Math.sin(l.Geometry.degreesToRadians(n)),h=i,f={strokeLinecap:"round",strokeColor:u.gridlineColor,strokeWidth:u.gridlineWidth,strokeDasharray:d.strokeStyleToDashArray(u.gridlineStyle)},m=this.ticks.map((function(e){return e.position}));try{for(var y=o(m),I=y.next();!I.done;I=y.next()){var C=I.value,E=e+C*g,b=t+C*p,v=-r*h*p,B=r*h*g;A.elements.push(c.makeLine(E,b,E+v,b+B,f))}}catch(e){a={error:e}}finally{try{I&&!I.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}return A}},e.prototype.renderGridlinesForAxes=function(e,t,n,r){switch(n){case s.X:return this.renderGridLine(e,t,0,1,r);case s.Y:return this.renderGridLine(e,t,90,-1,r)}},e.prototype.renderLine=function(t,n,r,a,s){var A,d,g,p,h=c.makeGroup([]),f=this.style,m=this.rangeMin,y=this.rangeMax,I=f.tickSize,C={strokeLinecap:"square",strokeColor:f.lineColor};e.textMeasurer.setFontFamily(f.fontFamily),e.textMeasurer.setFontSize(f.fontSize),this.oppositeSide&&(a=-a),this.scrollRequired&&this.shiftAxis&&(90===r&&(t+=a*e.SCROLL_BAR_SIZE),0===r&&(n+=-a*e.SCROLL_BAR_SIZE));var E=Math.cos(l.Geometry.degreesToRadians(r)),b=Math.sin(l.Geometry.degreesToRadians(r)),v=t+m*E,B=n+m*b,M=t+y*E,D=n+y*b;f.showBaseline&&h.elements.push(c.makeLine(v,B,M,D,C));var w=this.ticks.map((function(e){return e.position}));if(f.showBaseline&&w.push(m,y),f.showTicks)try{for(var Q=o(w),S=Q.next();!S.done;S=Q.next()){var N=S.value,k=t+N*E,T=n+N*b,j=a*I*b,L=-a*I*E;h.elements.push(c.makeLine(k,T,k+j,T+L,C))}}catch(e){A={error:e}}finally{try{S&&!S.done&&(d=Q.return)&&d.call(Q)}finally{if(A)throw A.error}}for(var R=this.ticks.map((function(t){return{position:t.position,label:t.label,measure:e.textMeasurer.measure(t.label)}})),O=0,_=0,F=0;F<R.length;F++)O=Math.max(O,R[F].measure.width),F>0&&(_=Math.max(_,Math.abs(R[F-1].position-R[F].position)));try{for(var z=o(R),P=z.next();!P.done;P=z.next()){var U=P.value;k=t+U.position*E,T=n+U.position*b,j=a*(I+3)*b,L=-a*(I+3)*E;if(Math.abs(E)<.5)if(f.wordWrap||"string"==typeof U.label&&l.splitStringByNewLine(U.label).length>1){var G=void 0,H=void 0;H=null!=this.chartMarginForYLabel?this.oppositeSide?this.chartMarginForYLabel-e.DEFAULT_Y_LABEL_GAP-(null!=s?s:0):this.chartMarginForYLabel-e.DEFAULT_Y_LABEL_GAP+(null!=s?s:0):_,G=(G=u.splitByWidth(l.replaceSymbolByTab(l.replaceSymbolByNewLine(U.label)),H,1e4,f.fontFamily,f.fontSize)).flatMap((function(e){return l.splitStringByNewLine(e)}));for(var Y=[],V=0;V<G.length;V++){var W=i(u.TextMeasurer.ComputeTextPosition(0,0,e.textMeasurer.measure(G[V]),f.verticalText?"middle":a*b<0?"right":"left",f.verticalText?a*b<0?"bottom":"top":"middle",0),2),K=W[0],Z=W[1],J=c.makeText(K,Z-f.fontSize*V+(a*E>0?0:(G.length*f.fontSize-f.fontSize)/2),G[V],f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId});Y.push(J)}(te=c.makeGroup(Y)).transform={x:k+j,y:T+L,angle:f.verticalText?r:0},h.elements.push(te)}else{var q=i(u.TextMeasurer.ComputeTextPosition(0,0,U.measure,a*b<0?"right":"left","middle",0),2);K=q[0],Z=q[1];(te=c.makeGroup([c.makeText(K,Z,U.label,f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId},this.plotSegment&&this.dataFlow?{enableSelection:this.data.enableSelection,glyphIndex:1,rowIndices:x(this.data,this.plotSegment.table,R.indexOf(U),this.dataFlow),plotSegment:this.plotSegment}:void 0)])).transform={x:k+j,y:T+L,angle:f.verticalText?b>0?r-90:r+90:0},h.elements.push(te)}else if(Math.abs(E)<Math.sqrt(3)/2){var X=i(u.TextMeasurer.ComputeTextPosition(0,0,U.measure,a*b<0?"right":"left","middle",0),2);K=X[0],Z=X[1];(te=c.makeGroup([c.makeText(K,Z,U.label,f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId},this.plotSegment&&this.dataFlow?{enableSelection:this.data.enableSelection,glyphIndex:1,rowIndices:x(this.data,this.plotSegment.table,R.indexOf(U),this.dataFlow),plotSegment:this.plotSegment}:void 0)])).transform={x:k+j,y:T+L,angle:f.verticalText?b>0?r-90:r+90:0},h.elements.push(te)}else if(!f.wordWrap&&O>_&&"string"==typeof U.label&&1===l.splitStringByNewLine(U.label).length){var $=i(u.TextMeasurer.ComputeTextPosition(0,0,U.measure,f.verticalText?a*E>0?"right":"left":f.wordWrap?"middle":a*E>0?"right":"left",f.verticalText||f.wordWrap?"middle":a*E>0?"top":"bottom",0),2);K=$[0],Z=$[1];(te=c.makeGroup([c.makeText(K,Z,U.label,f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId},this.plotSegment&&this.dataFlow?{enableSelection:this.data.enableSelection,glyphIndex:1,rowIndices:x(this.data,this.plotSegment.table,R.indexOf(U),this.dataFlow),plotSegment:this.plotSegment}:void 0)])).transform={x:k+j,y:T+L,angle:f.verticalText?E>0?90+r:90+r-180:E>0?36+r:36+r-180},h.elements.push(te)}else if(f.wordWrap||"string"==typeof U.label&&l.splitStringByNewLine(U.label).length>1){G=[l.replaceSymbolByTab(l.replaceSymbolByNewLine(U.label))];f.wordWrap&&(G=u.splitByWidth(l.replaceSymbolByTab(l.replaceSymbolByNewLine(U.label)),_,1e4,f.fontFamily,f.fontSize)),G=G.flatMap((function(e){return l.splitStringByNewLine(e)}));for(Y=[],V=0;V<G.length;V++){var ee=i(u.TextMeasurer.ComputeTextPosition(0,0,e.textMeasurer.measure(G[V]),f.wordWrap?"middle":a*E>0?"right":"left",a*E>0?"top":"bottom",0),2);K=ee[0],Z=ee[1],J=c.makeText(K,Z-f.fontSize*V+(a*E>0?0:G.length*f.fontSize),G[V],f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId},this.plotSegment&&this.dataFlow?{enableSelection:this.data.enableSelection,glyphIndex:1,rowIndices:x(this.data,this.plotSegment.table,R.indexOf(U),this.dataFlow),plotSegment:this.plotSegment}:void 0);Y.push(J)}(te=c.makeGroup(Y)).transform={x:k+j,y:T+L,angle:f.verticalText?f.wordWrap?0:E>0?90+r:90+r-180:f.wordWrap?0:E>0?36+r:36+r-180},h.elements.push(te)}else{var te,ne=i(u.TextMeasurer.ComputeTextPosition(0,0,U.measure,f.verticalText?a*E>0?"right":"left":"middle",f.verticalText?"middle":a*E>0?"top":"bottom",0),2);K=ne[0],Z=ne[1];(te=c.makeGroup([c.makeText(K,Z,U.label,f.fontFamily,f.fontSize,{fillColor:f.tickColor,backgroundColor:f.tickTextBackgroudColor,backgroundColorId:f.tickTextBackgroudColorId},this.plotSegment&&this.dataFlow?{enableSelection:this.data.enableSelection,glyphIndex:1,rowIndices:x(this.data,this.plotSegment.table,R.indexOf(U),this.dataFlow),plotSegment:this.plotSegment}:void 0)])).transform={x:k+j,y:T+L,angle:f.verticalText?90+r:0},h.elements.push(te)}}}catch(e){g={error:e}}finally{try{P&&!P.done&&(p=z.return)&&p.call(z)}finally{if(g)throw g.error}}return s&&(h.transform={x:90==r?s:0,y:90==r?0:s,angle:0}),h},e.prototype.renderCartesian=function(e,t,n,r){switch(n){case s.X:return this.renderLine(e,t,0,1,r);case s.Y:return this.renderLine(e,t,90,-1,r)}},e.prototype.renderPolarRadialGridLine=function(e,t,n,r){var i,a,s=this.style;if("none"!==s.gridlineStyle){var u=c.makeGroup([]),A={strokeLinecap:"round",strokeColor:s.gridlineColor,strokeWidth:s.gridlineWidth,strokeDasharray:d.strokeStyleToDashArray(s.gridlineStyle)};try{for(var g=o(this.ticks.map((function(e){return e.position}))),p=g.next();!p.done;p=g.next()){var h=p.value,f=Math.cos(l.Geometry.degreesToRadians(90-h)),m=Math.sin(l.Geometry.degreesToRadians(90-h)),y=e+f*n,I=t+m*n,C=e+f*r,E=t+m*r;u.elements.push(c.makeLine(y,I,C,E,A))}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}return u}},e.prototype.renderPolarArcGridLine=function(e,t,n,r,i,a){var s,u,A=this.style;if("none"!==A.gridlineStyle){var g=c.makeGroup([]),p=Math.cos(l.Geometry.degreesToRadians(i)),h=Math.sin(l.Geometry.degreesToRadians(i)),f={strokeLinecap:"round",strokeColor:A.gridlineColor,strokeWidth:A.gridlineWidth,strokeDasharray:d.strokeStyleToDashArray(A.gridlineStyle)},m=(r-n)/this.ticks.length;try{for(var y=o(this.ticks.map((function(e){return e.position}))),I=y.next();!I.done;I=y.next()){var C=I.value,E=e+C*p,b=t+C*h,v=c.makePath(f);v.moveTo(E,b),v.polarLineTo(e,t,90-i,C,90-a,C,!0),g.elements.push(v.path),m+=m}}catch(e){s={error:e}}finally{try{I&&!I.done&&(u=y.return)&&u.call(y)}finally{if(s)throw s.error}}return g}},e.prototype.renderPolar=function(t,n,r,s){var A,d,g=this.style,p=this.rangeMin,h=this.rangeMax,f={strokeLinecap:"round",strokeColor:g.lineColor},m=c.makeGroup([]);m.transform.x=t,m.transform.y=n,e.textMeasurer.setFontFamily(g.fontFamily),e.textMeasurer.setFontSize(g.fontSize);var y=l.Geometry.degreesToRadians(r*((h-p)/this.ticks.length))-20;try{for(var I=o(this.ticks),C=I.next();!C.done;C=I.next()){var E=C.value,b=E.position,v=l.Geometry.degreesToRadians(b),B=Math.sin(v)*r,M=Math.cos(v)*r,D=E.label&&l.replaceSymbolByTab(l.replaceSymbolByNewLine(E.label));if(D&&(g.wordWrap||"string"==typeof E.label&&l.splitStringByNewLine(D).length>1)){var x=[D];g.wordWrap&&(x=u.splitByWidth(D,y,1e4,g.fontFamily,g.fontSize)),x=x.flatMap((function(e){return l.splitStringByNewLine(e)}));for(var w=[],Q=0;Q<x.length;Q++){var S=i(u.TextMeasurer.ComputeTextPosition(0,g.tickSize*s,e.textMeasurer.measure(x[Q]),"middle",s>0?"bottom":"top",0,2),2),N=S[0],k=S[1],T=c.makeText(N,k-g.fontSize*Q+(s>0?g.fontSize*x.length-g.fontSize:0),x[Q],g.fontFamily,g.fontSize,{fillColor:g.tickColor,backgroundColor:g.tickTextBackgroudColor,backgroundColorId:g.tickTextBackgroudColorId});w.push(T)}var j=c.makeLine(0,0,0,g.tickSize*s,f);(L=c.makeGroup(a([g.showTicks?j:null],w))).transform.angle=-b,L.transform.x=B,L.transform.y=M,m.elements.push(L)}else{var L,R=i(u.TextMeasurer.ComputeTextPosition(0,g.tickSize*s,e.textMeasurer.measure(E.label),"middle",s>0?"bottom":"top",0,2),2);N=R[0],k=R[1],j=c.makeLine(0,0,0,g.tickSize*s,f);(L=c.makeGroup([g.showTicks?j:null,c.makeText(N,k,E.label,g.fontFamily,g.fontSize,{fillColor:g.tickColor,backgroundColor:g.tickTextBackgroudColor,backgroundColorId:g.tickTextBackgroudColorId})])).transform.angle=-b,L.transform.x=B,L.transform.y=M,m.elements.push(L)}}}catch(e){A={error:e}}finally{try{C&&!C.done&&(d=I.return)&&d.call(I)}finally{if(A)throw A.error}}return m},e.prototype.renderCurve=function(t,n,r){var a,s,l=this.style,A={strokeLinecap:"round",strokeColor:l.lineColor},d=c.makeGroup([]);d.transform=t.getBaseTransform(),e.textMeasurer.setFontFamily(l.fontFamily),e.textMeasurer.setFontSize(l.fontSize);try{for(var g=o(this.ticks),p=g.next();!p.done;p=g.next()){var h=p.value,f=h.position,m=e.textMeasurer.measure(h.label),y=i(u.TextMeasurer.ComputeTextPosition(0,-l.tickSize*r,m,"middle",r<0?"bottom":"top",0,2),2),I=y[0],C=y[1],E=c.makeLine(0,0,0,-l.tickSize*r,A),b=c.makeGroup([l.showTicks?E:null,c.makeText(I,C,h.label,l.fontFamily,l.fontSize,{fillColor:l.tickColor,backgroundColor:l.tickTextBackgroudColor,backgroundColorId:l.tickTextBackgroudColorId})]);b.transform=t.getLocalTransform(f,n),d.elements.push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}return d},e.prototype.renderVirtualScrollBar=function(e,t,n,r,o,i){switch(n){case s.X:return this.renderScrollBar(e,t,0,1,r,o,i);case s.Y:return this.renderScrollBar(e,t,90,-1,r,o,i)}},e.prototype.renderScrollBar=function(t,n,r,o,i,a,s){if(!this.scrollRequired)return null;var c=Math.cos(l.Geometry.degreesToRadians(r)),u=Math.sin(l.Geometry.degreesToRadians(r)),A=this.rangeMin,d=this.rangeMax,g=t+A*c,p=n+A*u,h=t+d*c,f=n+d*u;this.oppositeSide&&(o=-o),this.oppositeSide||(90===r&&(g+=o*e.SCROLL_BAR_SIZE,h+=o*e.SCROLL_BAR_SIZE),0===r&&(p+=-o*e.SCROLL_BAR_SIZE,f+=-o*e.SCROLL_BAR_SIZE));var y=0,I=0;return 90===r&&(I+=Math.abs(f-p),y=e.SCROLL_BAR_SIZE),0===r&&(y+=Math.abs(h-g),I=e.SCROLL_BAR_SIZE),b.createElement(m.VirtualScrollBar,{onScroll:a,handlerBarWidth:e.SCROLL_BAR_SIZE,height:I,width:y,x:g,y:p,initialPosition:i,vertical:90===r,zoom:s,scrollBarRatio:this.hiddenCategoriesRatio,windowSize:this.windowSize,dataType:this.dataType})},e.SCROLL_BAR_SIZE=10,e.DEFAULT_TICKS_NUMBER=10,e.DEFAULT_Y_LABEL_GAP=15,e.textMeasurer=new u.TextMeasurer,e}();function B(e,t,n){e.enablePrePostGap&&(t=!0);var r,o,i,a,s=(1-e.gapRatio)/e.categories.length;t?(i=e.gapRatio/e.categories.length,a=1/e.categories.length,r=i/2,o=i/2):(1==e.categories.length?(i=0,a=1):(i=e.gapRatio/(e.categories.length-1),a=1/(e.categories.length-1)),r=0,o=0);var l=e.categories.map((function(e,t){return[r+(i+s)*t,r+(i+s)*t+s]}));return n&&l.reverse(),{gap:i,preGap:r,postGap:o,gapScale:a,ranges:l}}function M(e,t,n){if(n.isVisible){var r=null;return n.wordWrap||(r=t.inputBoolean({property:e,field:["style","verticalText"]},{type:"checkbox",label:p.strings.objects.axes.verticalText,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]})),[t.vertical(t.verticalGroup({header:p.strings.objects.visibilityAndPosition},[t.inputBoolean({property:e,field:"visible"},{type:"checkbox",label:p.strings.objects.visibleOn.visible,searchSection:[p.strings.objects.visibilityAndPosition,n.mainCollapsePanelHeader]}),n.isOnTop?t.inputBoolean({property:e,field:"onTop"},{type:"checkbox",label:p.strings.objects.onTop,searchSection:[p.strings.objects.visibilityAndPosition,n.mainCollapsePanelHeader]}):null,t.inputSelect({property:e,field:"side"},{type:"dropdown",showLabel:!0,label:p.strings.objects.position,options:["default","opposite"],labels:[p.strings.objects.default,p.strings.objects.opposite],searchSection:[p.strings.objects.visibilityAndPosition,n.mainCollapsePanelHeader]}),n.isOffset?t.inputNumber({property:e,field:["offset"]},{label:p.strings.objects.axes.offSet,showUpdown:!0,updownTick:10,searchSection:[p.strings.objects.visibilityAndPosition,n.mainCollapsePanelHeader]}):null]),t.verticalGroup({header:p.strings.objects.style},[t.inputColor({property:e,field:["style","lineColor"]},{label:p.strings.objects.axes.lineColor,labelKey:"line-color-"+e,allowNull:!0,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputBoolean({property:e,field:["style","showTicks"]},{type:"checkbox",label:p.strings.objects.axes.showTickLine,checkBoxStyles:{root:{marginTop:5}},searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputBoolean({property:e,field:["style","showBaseline"]},{type:"checkbox",label:p.strings.objects.axes.showBaseline,checkBoxStyles:{root:{marginTop:5}},searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputColor({property:e,field:["style","tickColor"]},{label:p.strings.objects.axes.tickColor,labelKey:"tick-color-"+e,allowNull:!0,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputColor({property:e,field:["style","tickTextBackgroudColor"]},{label:p.strings.objects.axes.tickTextBackgroudColor,labelKey:"tick-text-background-color-"+e,allowNull:!0,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputNumber({property:e,field:["style","tickSize"]},{label:p.strings.objects.axes.ticksize,showUpdown:!0,updownTick:1,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputFontFamily({property:e,field:["style","fontFamily"]},{label:p.strings.objects.font,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputNumber({property:e,field:["style","fontSize"]},{showUpdown:!0,updownStyle:"font",updownTick:2,label:p.strings.objects.fontSize,minimum:1,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),t.inputBoolean({property:e,field:["style","wordWrap"]},{type:"checkbox",headerLabel:p.strings.objects.text.textDisplaying,label:p.strings.objects.text.wrapText,searchSection:[p.strings.objects.style,n.mainCollapsePanelHeader]}),r]))]}return t.verticalGroup({header:p.strings.objects.visibilityAndPosition},[t.inputBoolean({property:e,field:"visible"},{type:"checkbox",label:p.strings.objects.visibleOn.visible,searchSection:[p.strings.objects.visibilityAndPosition,n.mainCollapsePanelHeader]})])}t.AxisRenderer=v,t.getCategoricalAxis=B,t.getNumericalInterpolate=function(e){if("logarithmic"==e.numericalMode){var t=Math.log(e.domainMin),n=Math.log(e.domainMax)-t;return function(e){return(Math.log(e)-t)/n}}var r=e.domainMin,o=e.domainMax-r;return function(e){return(e-r)/o}},t.buildAxisAppearanceWidgets=M;var D={showOffset:!0,showScrolling:!0,showOnTop:!0};function x(e,t,n,r){var o,i=[],a=function(e,t){return e.getTable(t)}(r,t);if(e.type===f.AxisDataBindingType.Default||e.type===f.AxisDataBindingType.Numerical)return a.rows.map((function(e,t){return t}));var s=null===(o=I.parse(null==e?void 0:e.expression))||void 0===o?void 0:o.args[0];if(e.type===f.AxisDataBindingType.Categorical)for(var l=0;l<a.rows.length;l++){var c=a.getRowContext(l);e.categories[n]==s.getStringValue(c)&&i.push(l)}return i}t.buildAxisWidgets=function(e,t,n,o,i,s){var l;void 0===i&&(i=D);var c=[],u={dropzone:{type:"axis-data-binding",property:t,prompt:o+": "+p.strings.objects.dropData},noLineHeight:!0,ignoreSearch:!0},A="";if(e)switch(e.type){case f.AxisDataBindingType.Categorical:A=p.strings.objects.axes.categoricalSuffix;break;case f.AxisDataBindingType.Numerical:A=p.strings.objects.axes.numericalSuffix}var d=o+A,h=function(){var r,o;return M(t,n,{isVisible:e.visible,wordWrap:null!==(o=null===(r=e.style)||void 0===r?void 0:r.wordWrap)&&void 0!==o&&o,isOffset:i.showOffset,isOnTop:i.showOnTop,mainCollapsePanelHeader:d})};if(null!=e){var m=!!e.expression&&(null===(l=e.expression)||void 0===l?void 0:l.includes("date.")),I=i.showScrolling?function(e,t,n,r,o,i){return[n.inputBoolean({property:t,field:"allowScrolling"},{type:"checkbox",label:p.strings.objects.dataAxis.allowScrolling,headerLabel:p.strings.objects.dataAxis.scrolling,observerConfig:{isObserver:!0,properties:{property:t,field:"windowSize"},value:10},searchSection:[p.strings.objects.general,i],onChange:o}),e.allowScrolling?n.inputNumber({property:t,field:"windowSize"},{maximum:1e6,minimum:1,label:p.strings.objects.dataAxis.windowSize,searchSection:[p.strings.objects.general,i]}):null,e.allowScrolling?n.inputNumber({property:t,field:"barOffset"},{maximum:1e6,minimum:-1e6,label:p.strings.objects.dataAxis.barOffset,searchSection:[p.strings.objects.general,i]}):null]}(e,t,n,0,s,d):[],C=function(e,t,n,r){var o=y.shouldShowTickFormatForTickExpression(e,n),i=[];i.push(n.styledHorizontal({alignItems:"start"},[1,0],n.inputExpression({property:t,field:"tickDataExpression"},{allowNull:!0,placeholder:p.strings.core.default,dropzone:{type:"tick-data-binding",prompt:p.strings.objects.dropTickData},noLineHeight:!0,label:p.strings.objects.axes.tickData,searchSection:[p.strings.objects.general,r]}))),o&&i.push(n.inputFormat({property:t,field:"tickFormat"},{blank:p.strings.core.auto,label:p.strings.objects.axes.tickFormat,isDateField:e.numericalMode===f.NumericalMode.Temporal||e.valueType===g.DataType.Date,allowNull:!0,searchSection:[p.strings.objects.general,r]}));e.tickDataExpression||(i.push(n.inputBoolean({property:t,field:"autoNumberOfTicks"},{type:"checkbox",label:p.strings.objects.axes.autoNumberOfTicks,styles:{marginTop:"0.5rem"},searchSection:[p.strings.objects.general,r]})),e.autoNumberOfTicks||i.push(n.inputNumber({property:t,field:"numberOfTicks"},{label:p.strings.objects.axes.numberOfTicks,showUpdown:!0,updownTick:1,minimum:2,searchSection:[p.strings.objects.general,r]})));return i}(e,t,n,d),E="date"===e.valueType?C:[];switch(e.type){case"numerical":c.push(n.verticalGroup({header:p.strings.objects.general},a([n.searchWrapper({searchPattern:[p.strings.objects.axes.data,p.strings.objects.general,d]},[n.label(p.strings.objects.axes.data,{ignoreSearch:!0}),n.styledHorizontal({alignItems:"start"},[1,0],n.sectionHeader(null,n.inputExpression({property:t,field:"expression"},{ignoreSearch:!0}),u),n.clearButton({property:t},null,!0,{marginTop:"1px"}))]),"date"==e.valueType?n.searchWrapper({searchPattern:[p.strings.objects.dataAxis.range,p.strings.objects.general,p.strings.objects.dataAxis.start,p.strings.objects.dataAxis.end,d]},[n.label(p.strings.objects.dataAxis.range,{ignoreSearch:!0}),n.searchWrapper({searchPattern:[p.strings.objects.dataAxis.range,p.strings.objects.general,p.strings.objects.dataAxis.start,d]},[e.allowScrolling?n.inputDate({property:t,field:"dataDomainMin"},{label:p.strings.objects.dataAxis.start,ignoreSearch:!0}):n.inputDate({property:t,field:"domainMin"},{label:p.strings.objects.dataAxis.start,ignoreSearch:!0})]),n.searchWrapper({searchPattern:[p.strings.objects.dataAxis.range,p.strings.objects.general,p.strings.objects.dataAxis.end,d]},[e.allowScrolling?n.inputDate({property:t,field:"dataDomainMax"},{label:p.strings.objects.dataAxis.end,ignoreSearch:!0}):n.inputDate({property:t,field:"domainMax"},{label:p.strings.objects.dataAxis.end,ignoreSearch:!0})])]):null,"date"!==e.valueType?n.searchWrapper({searchPattern:[p.strings.objects.dataAxis.range,p.strings.objects.general,p.strings.objects.axes.from,p.strings.objects.axes.to,d]},[n.label(p.strings.objects.dataAxis.range,{ignoreSearch:!0}),n.searchWrapper({searchPattern:[p.strings.objects.axes.from,p.strings.objects.dataAxis.range,p.strings.objects.general,d]},[e.allowScrolling?n.inputNumber({property:t,field:"dataDomainMin"},{label:p.strings.objects.axes.from,observerConfig:{isObserver:!0,properties:{property:t,field:"autoDomainMin"},value:!1},ignoreSearch:!0}):n.inputNumber({property:t,field:"domainMin"},{label:p.strings.objects.axes.from,observerConfig:{isObserver:!0,properties:{property:t,field:"autoDomainMin"},value:!1},ignoreSearch:!0})]),n.searchWrapper({searchPattern:[p.strings.objects.axes.to,p.strings.objects.dataAxis.range,p.strings.objects.general,d]},[e.allowScrolling?n.inputNumber({property:t,field:"dataDomainMax"},{label:p.strings.objects.axes.to,observerConfig:{isObserver:!0,properties:{property:t,field:"autoDomainMax"},value:!1},ignoreSearch:!0}):n.inputNumber({property:t,field:"domainMax"},{label:p.strings.objects.axes.to,observerConfig:{isObserver:!0,properties:{property:t,field:"autoDomainMax"},value:!1},ignoreSearch:!0})])]):null,"temporal"!=e.numericalMode?n.inputSelect({property:t,field:"numericalMode"},{options:["linear","logarithmic"],labels:[p.strings.scale.linear,p.strings.scale.logarithmic],showLabel:!0,type:"dropdown",label:p.strings.objects.scales.mode,searchSection:[p.strings.objects.general,d]}):null],C,I))),c.push(h());break;case"categorical":c.push(n.verticalGroup({header:p.strings.objects.general,searchSection:d},a([n.searchWrapper({searchPattern:[p.strings.objects.axes.data,p.strings.objects.general,d]},[n.label(p.strings.objects.axes.data,{addMargins:!1,ignoreSearch:!0}),n.styledHorizontal({alignItems:"start"},[1,0],n.sectionHeader(null,n.inputExpression({property:t,field:"expression"},{ignoreSearch:!0}),u),m?n.reorderWidget({property:t,field:"categories"},{allowReset:!0}):null,n.clearButton({property:t},null,!0,{marginTop:"1px"}))]),m?null:Q(e,t,n,d),n.inputNumber({property:t,field:"gapRatio"},{minimum:0,maximum:1,percentage:!0,showSlider:!0,label:p.strings.objects.axes.gap,searchSection:[p.strings.objects.general,d]})],E,I))),c.push(function(e,t,n){return t.verticalGroup({header:p.strings.objects.interactivity},[t.inputBoolean({property:e,field:"enableSelection"},{type:"checkbox",label:p.strings.objects.selection,searchSection:[p.strings.objects.interactivity,n]})])}(t,n,d)),c.push(h());break;case"default":c.push(n.styledVertical({marginLeft:19,marginBottom:5},n.sectionHeader(o+p.strings.objects.axes.stackingSuffix,n.clearButton({property:t},null,!0),r(r({},u),{noLineHeight:!1})),n.inputNumber({property:t,field:"gapRatio"},{minimum:0,maximum:1,percentage:!0,showSlider:!0,label:p.strings.objects.axes.gap,searchSection:d})))}c.push(n.verticalGroup({header:o+p.strings.objects.dataAxis.exportProperties},[n.inputBoolean({property:t,field:"autoDomainMin"},{type:"checkbox",label:p.strings.objects.dataAxis.autoMin,searchSection:[o+p.strings.objects.dataAxis.exportProperties,d]}),n.inputBoolean({property:t,field:"autoDomainMax"},{type:"checkbox",label:p.strings.objects.dataAxis.autoMax,searchSection:[o+p.strings.objects.dataAxis.exportProperties,d]})]))}else c.push(n.verticalGroup({header:p.strings.objects.general},[n.searchWrapper({searchPattern:[p.strings.objects.general,p.strings.objects.axes.data,d]},[n.label(p.strings.objects.axes.data,{addMargins:!1,ignoreSearch:!0}),n.horizontal([1,0,0,0],n.sectionHeader(null,n.inputText({property:null},{disabled:!0,value:p.strings.core.none,ignoreSearch:!0}),u))])]));return c},t.buildAxisInference=function(e,t){var n=e.properties[t];return{objectID:e._id,dataSource:{table:e.table,groupBy:e.groupBy},axis:{expression:n.expression,type:n.type,style:n.style,order:n.order,orderMode:n.orderMode,rawExpression:n.rawExpression,property:t,defineCategories:!0}}},t.buildAxisProperties=function(e,t){var n=e.properties[t].style;return n?[{objectID:e._id,target:{property:{property:t,field:"style",subfield:"tickSize"}},type:A.Specification.AttributeType.Number,default:n.tickSize},{objectID:e._id,target:{property:{property:t,field:"style",subfield:"fontSize"}},type:A.Specification.AttributeType.Number,default:n.fontSize},{objectID:e._id,target:{property:{property:t,field:"style",subfield:"fontFamily"}},type:A.Specification.AttributeType.FontFamily,default:n.fontFamily},{objectID:e._id,target:{property:{property:t,field:"style",subfield:"lineColor"}},type:A.Specification.AttributeType.Color,default:l.rgbToHex(n.lineColor)},{objectID:e._id,target:{property:{property:t,field:"style",subfield:"tickColor"}},type:A.Specification.AttributeType.Color,default:l.rgbToHex(n.tickColor)},{objectID:e._id,target:{property:{property:t,field:"tickFormat"}},type:A.Specification.AttributeType.Text,default:null},{objectID:e._id,target:{property:{property:t,field:"tickDataExpression"}},type:A.Specification.AttributeType.Text,default:null},{objectID:e._id,target:{property:{property:t,field:"offset"}},type:A.Specification.AttributeType.Number,default:0},{objectID:e._id,target:{property:{property:t,field:"numberOfTicks"}},type:A.Specification.AttributeType.Number,default:10},{objectID:e._id,target:{property:{property:t,field:"autoNumberOfTicks"}},type:A.Specification.AttributeType.Boolean,default:!0}]:[]};var w=!1;function Q(e,t,n,r){for(var o,i,s=[],c=y.getTableColumns(n),u=c.filter((function(e){var t;return!(null===(t=e.metadata)||void 0===t?void 0:t.isRaw)})).map((function(e){return e.displayName})),d=c.filter((function(e){var t;return!(null===(t=e.metadata)||void 0===t?void 0:t.isRaw)})).map((function(e){return y.transformOrderByExpression(e.name)})),g=[],h=[],f=0;f<c.length;f++)(null===(o=c[f].metadata)||void 0===o?void 0:o.isRaw)||(g.push(E.type2DerivedColumns[c[f].type]),h.push(c[f].name));var m=[];for(f=0;f<g.length;f++)Array.isArray(g[f])||m.push(f);var b=g.filter((function(e,t){return!m.includes(t)})),v=h.filter((function(e,t){return!m.includes(t)}));for(f=0;f<b.length;f++)for(var B=b[f],M=0;M<(null==B?void 0:B.length);M++){var D=B[M],x=v[f];u.push(null!==(i=D.displayName)&&void 0!==i?i:D.name),d.push(D.function+"("+x+")")}var Q=n.store.getTables()[0].name,S=n.store,N=new A.Prototypes.Dataflow.DataflowManager(S.dataset),k=function(e,t,n){var r=y.transformOrderByExpression(e);n.expression=y.transformOrderByExpression(n.expression);var o=I.parse(r),i=N.getTable(t);return(n?new C.CompiledGroupBy(n,N.cache).groupBy(i):l.makeRange(0,i.rows.length).map((function(e){return[e]}))).map((function(e){return o.getValue(i.getGroupedContext(e))}))},T=I.parse(e.expression),j=null;T instanceof I.FunctionCall&&(j=null==(j=T.args[0].toString())?void 0:j.split("`").join(""),j=y.parseDerivedColumnsExpression(j));var L=j===e.orderByExpression,R=k(e.orderByExpression,Q,{expression:j}).map((function(e){return a(new Set(e))})).map((function(e,t){return[e,t]})),O=k(e.expression,Q,{expression:j}).map((function(e,t){return[e,t]})),_=Array.isArray(R[0][0])?"number"==typeof R[0][0][0]:"number"==typeof R[0][0],F=y.transformOnResetCategories(R),z=y.getSortedCategories(R);return w&&(u=u.map((function(t){return L&&t==e.orderByExpression?"Custom":t}))),s.push(n.searchWrapper({searchPattern:[p.strings.objects.axes.orderBy,p.strings.objects.general,r]},[n.label(p.strings.objects.axes.orderBy,{addMargins:!1,ignoreSearch:!0}),n.horizontal([1,0],n.inputSelect({property:t,field:"orderByExpression"},{type:"dropdown",showLabel:!0,labels:u,options:d,onChange:function(){var t=k(e.orderByExpression,Q,{expression:j}).map((function(e){return a(new Set(e))})),n=y.updateWidgetCategoriesByExpression(t);e.orderByCategories=a(new Set(n))},ignoreSearch:!0}),n.reorderByAnotherColumnWidget({property:t,field:"orderByCategories"},{allowReset:0==_,onConfirmClick:function(t){try{y.getOnConfirmFunction(O,t,R,e)}catch(e){console.log(e)}},onResetCategories:F,sortedCategories:z,allowDragItems:0==_,onReorderHandler:L?function(){w=!0}:void 0,onButtonHandler:L?function(){w=!1}:void 0}))])),s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(130),i={settings:{},scopedSettings:{},inCustomizerContext:!1},a=o.a.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),s=[],l=function(){function e(){}return e.reset=function(){a.settings={},a.scopedSettings={}},e.applySettings=function(t){a.settings=Object(r.a)(Object(r.a)({},a.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){a.scopedSettings[t]=Object(r.a)(Object(r.a)({},a.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=i);for(var r={},o=t&&n.scopedSettings[t]||{},s=t&&a.scopedSettings[t]||{},l=0,c=e;l<c.length;l++){var u=c[l];r[u]=o[u]||n.settings[u]||s[u]||a.settings[u]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){s.push(e)},e.unobserve=function(e){s=s.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||s.forEach((function(e){return e()}))},e}()},,function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.AppStore=t.EditorType=void 0;var A,d=n(5),g=n(260),p=n(19),h=n(539),f=n(176),m=n(9),y=n(540),I=n(543),C=n(56),E=n(553),b=n(179),v=n(102),B=n(38),M=n(6),D=n(24),x=n(211),w=n(99),Q=n(39),S=n(82),N=n(115),k=n(165),T=n(42),j=n(166);!function(e){e.Nested="nested",e.Embedded="embedded",e.NestedEmbedded="nestedembedded",e.Chart="chart"}(A=t.EditorType||(t.EditorType={}));var L=function(e){function t(t,n){var r=e.call(this,null)||this;return r.editorType=A.Chart,r.disableFileView=!1,r.selectedGlyphIndex={},r.localeFileFormat={delimiter:",",numberFormat:{remove:",",decimal:"."},currency:'["$", ""]',group:"[3]",utcTimeZone:!0},r.searchString="",r.collapseOrExpandPanelsType=D.CollapseOrExpandPanels.Expand,r.actionHandlers=new I.ActionHandlerRegistry,r.propertyExportName=new Map,r.registeredExportTemplateTargets=new Map,r.preSolveValues=[],r.getDataKindByType=function(e){switch(e){case D.AxisDataBindingType.Categorical:return M.DataKind.Categorical;case D.AxisDataBindingType.Numerical:return M.DataKind.Numerical;case D.AxisDataBindingType.Default:default:return M.DataKind.Categorical}},I.registerActionHandlers(r.actionHandlers),r.worker=t,r.backend=new h.IndexedDBBackend,r.historyManager=new E.HistoryManager,r.dataset=n,r.newChartEmpty(),r.solveConstraintsAndUpdateGraphics(),r.messageState=new Map,r.registerExportTemplateTarget("Charticulator Template",(function(e){return{getProperties:function(){var t;return[{displayName:"Name",name:"name",type:"string",default:(null===(t=e.specification.properties)||void 0===t?void 0:t.name)||"template"}]},getFileName:function(e){return e.name+".tmplt"},generate:function(){return new Promise((function(t){t(m.b64EncodeUnicode(JSON.stringify(e,null,2)))}))}}})),r}return o(t,e),t.prototype.setPropertyExportName=function(e,t){this.propertyExportName.set(""+e,t)},t.prototype.getPropertyExportName=function(e){return this.propertyExportName.get(""+e)},t.prototype.saveState=function(){return{version:"2.2.0",dataset:this.dataset,chart:this.chart,chartState:this.chartState}},t.prototype.saveDecoupledState=function(){var e=this.saveState();return d.deepClone(e)},t.prototype.loadState=function(e){var n=this;this.currentSelection=null,this.selectedGlyphIndex={},this.dataset=e.dataset,this.originDataset=e.dataset,this.chart=e.chart,this.chartState=e.chartState,this.version=e.version,this.chartManager=new d.Prototypes.ChartStateManager(this.chart,this.dataset,this.chartState,{},{},this.chartManager.getOriginChart()),this.chartManager.onUpdate((function(){n.solveConstraintsAndUpdateGraphics()})),this.emit(t.EVENT_DATASET),this.emit(t.EVENT_GRAPHICS),this.emit(t.EVENT_SELECTION)},t.prototype.saveHistory=function(){this.historyManager.addState(this.saveDecoupledState());try{this.emit(t.EVENT_GRAPHICS)}catch(e){console.error(e)}},t.prototype.renderSVG=function(){return'<?xml version="1.0" standalone="no"?>'+y.renderChartToString(this.dataset,this.chart,this.chartState)},t.prototype.renderLocalSVG=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,y.renderChartToLocalString(this.dataset,this.chart,this.chartState)];case 1:return[2,'<?xml version="1.0" standalone="no"?>'+e.sent()]}}))}))},t.prototype.handleAction=function(e){this.actionHandlers.handleAction(this,e)},t.prototype.backendOpenChart=function(e){var t;return a(this,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return[4,this.backend.get(e)];case 1:return n=o.sent(),this.currentChartID=e,this.historyManager.clear(),r=(new b.Migrator).migrate(n.data.state,"2.2.0"),this.loadState(r),null===(t=this.chartManager)||void 0===t||t.resetDifference(),[2]}}))}))},t.prototype.updateChartState=function(){var e=this;function t(e,t){for(var n in e)if((e[n].type===M.MappingType.scale||e[n].type===M.MappingType.expressionScale)&&e[n].scale===t)return!0;return!1}var n=this.chart;n.scales.filter((function(e){return!(null!=n.elements.find((function(n){var r=n.mappings;return!!r&&t(r,e._id)}))||n.glyphs.find((function(n){return null!=n.marks.find((function(n){var r=n.mappings;return!!r&&t(r,e._id)}))})))})).forEach((function(t){return e.chartManager.removeScale(t)})),n.scaleMappings=n.scaleMappings.filter((function(e){return n.scales.find((function(t){return t._id===e.scale}))}))},t.prototype.backendSaveChart=function(){var e;return a(this,void 0,void 0,(function(){var n,r,o,i,a;return s(this,(function(s){switch(s.label){case 0:return null==this.currentChartID?[3,5]:[4,this.backend.get(this.currentChartID)];case 1:return n=s.sent(),this.updateChartState(),n.data.state=this.saveState(),o=m.stringToDataURL,i=["image/svg+xml"],[4,this.renderLocalSVG()];case 2:return r=o.apply(void 0,i.concat([s.sent()])),[4,m.renderDataURLToPNG(r,{mode:"thumbnail",thumbnail:[200,150]})];case 3:return a=s.sent(),n.metadata.thumbnail=a.toDataURL(),[4,this.backend.put(n.id,n.data,n.metadata)];case 4:s.sent(),null===(e=this.chartManager)||void 0===e||e.resetDifference(),this.emit(t.EVENT_GRAPHICS),this.emit(t.EVENT_SAVECHART),s.label=5;case 5:return[2]}}))}))},t.prototype.backendSaveChartAs=function(e){return a(this,void 0,void 0,(function(){var n,r,o,i,a,l;return s(this,(function(s){switch(s.label){case 0:return this.updateChartState(),n=this.saveState(),o=m.stringToDataURL,i=["image/svg+xml"],[4,this.renderLocalSVG()];case 1:return r=o.apply(void 0,i.concat([s.sent()])),[4,m.renderDataURLToPNG(r,{mode:"thumbnail",thumbnail:[200,150]})];case 2:return a=s.sent(),[4,this.backend.create("chart",{state:n,name:e},{name:e,dataset:this.dataset.name,thumbnail:a.toDataURL()})];case 3:return l=s.sent(),this.currentChartID=l,this.emit(t.EVENT_GRAPHICS),this.emit(t.EVENT_SAVECHART),[2,l]}}))}))},t.prototype.setupNestedEditor=function(e,n){var r=this;this.editorType=n,this.disableFileView=!0,this.emit(t.EVENT_IS_NESTED_EDITOR),this.addListener(t.EVENT_NESTED_EDITOR_EDIT,(function(){r.updateChartState(),e(r.chart)}))},t.prototype.registerExportTemplateTarget=function(e,t){this.registeredExportTemplateTargets.set(e,t)},t.prototype.unregisterExportTemplateTarget=function(e){this.registeredExportTemplateTargets.delete(e)},t.prototype.listExportTemplateTargets=function(){var e=[];return this.registeredExportTemplateTargets.forEach((function(t,n){e.push(n)})),e},t.prototype.createExportTemplateTarget=function(e,t){return this.registeredExportTemplateTargets.get(e)(t)},t.prototype.getTable=function(e){return null!=this.dataset?this.dataset.tables.filter((function(t){return t.name==e}))[0]:null},t.prototype.getTables=function(){return this.dataset.tables},t.prototype.getColumnVector=function(e,t){return e.rows.map((function(e){return e[t]}))},t.prototype.saveSelectionState=function(){var e={};return this.currentSelection instanceof v.ChartElementSelection&&(e.selection={type:"chart-element",chartElementID:this.currentSelection.chartElement._id}),this.currentSelection instanceof v.GlyphSelection&&(e.selection={type:"glyph",glyphID:this.currentSelection.glyph._id}),this.currentSelection instanceof v.MarkSelection&&(e.selection={type:"mark",glyphID:this.currentSelection.glyph._id,markID:this.currentSelection.mark._id}),this.currentGlyph&&(e.currentGlyphID=this.currentGlyph._id),e},t.prototype.loadSelectionState=function(e){if(null!=e){var n=e.selection;if(null!=n){if("chart-element"==n.type){var r=d.getById(this.chart.elements,n.chartElementID);r&&(this.currentSelection=new v.ChartElementSelection(r))}if("glyph"==n.type){var o=n.glyphID,i=d.getById(this.chart.glyphs,o);(a=d.getById(this.chart.elements,n.chartElementID))&&i&&(this.currentSelection=new v.GlyphSelection(a,i),this.currentGlyph=i)}if("mark"==n.type){o=n.glyphID;var a,s=n.markID,i=d.getById(this.chart.glyphs,o);if((a=d.getById(this.chart.elements,n.chartElementID))&&i){var l=d.getById(i.marks,s);l&&(this.currentSelection=new v.MarkSelection(a,i,l),this.currentGlyph=i)}}}if(e.currentGlyphID)(i=d.getById(this.chart.glyphs,e.currentGlyphID))&&(this.currentGlyph=i);this.emit(t.EVENT_SELECTION)}},t.prototype.setSelectedGlyphIndex=function(e,t){this.selectedGlyphIndex[e]=t},t.prototype.getSelectedGlyphIndex=function(e){var t=this.chartManager.getClassById(e);if(!t)return 0;if(Object.prototype.hasOwnProperty.call(this.selectedGlyphIndex,e)){var n=this.selectedGlyphIndex[e];return n>=t.state.dataRowIndices.length?(this.selectedGlyphIndex[e]=0,0):n}return this.selectedGlyphIndex[e]=0,0},t.prototype.getMarkIndex=function(e){return this.chart.glyphs.indexOf(e)},t.prototype.forAllGlyph=function(e,t){var n,r,o,i;try{for(var a=l(d.zipArray(this.chart.elements,this.chartState.elements)),s=a.next();!s.done;s=a.next()){var u=c(s.value,2),A=u[0],g=u[1];if(d.Prototypes.isType(A.classID,"plot-segment")){var p=A,h=g;if(p.glyph==e._id)try{for(var f=(o=void 0,l(h.glyphs)),m=f.next();!m.done;m=f.next()){t(m.value,p,h)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},t.prototype.addPresolveValue=function(e,t,n,r){this.preSolveValues.push([e,t,n,r])},t.prototype.findPlotSegmentForGlyph=function(e){var t,n;if((this.currentSelection instanceof v.MarkSelection||this.currentSelection instanceof v.GlyphSelection)&&this.currentSelection.glyph==e)return this.currentSelection.plotSegment;if(this.currentSelection instanceof v.ChartElementSelection&&(d.Prototypes.isType(this.currentSelection.chartElement.classID,"plot-segment")&&(i=this.currentSelection.chartElement).glyph==e._id))return i;try{for(var r=l(this.chart.elements),o=r.next();!o.done;o=r.next()){var i,a=o.value;if(d.Prototypes.isType(a.classID,"plot-segment"))if((i=a).glyph==e._id)return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.prototype.scaleInference=function(e,t){var n,r,o,a,s,c,A,g=this,p=null;e.glyph&&(p=e.glyph.table),e.chart&&(p=e.chart.table);var h=null;e.glyph&&this.chartManager.enumeratePlotSegments((function(t){t.object.glyph==e.glyph._id&&(h=t.object.groupBy)}));var f=this.getTable(p),m=function(e,t){var n=g.chartManager.getClassById(e);if(!d.Prototypes.isType(n.object.classID,"scale.linear<number,number>"))return!1;var r=g.chartManager.getGroupedExpressionVector(f.name,h,t),o=Math.min.apply(Math,u(r)),i=Math.min.apply(Math,u(r)),a=n.object.properties.domainMin,s=n.object.properties.domainMax,l=2*Math.abs(a-s);return a-l<o&&o<s+l||a-l<i&&i<s+l};if(!(null===(A=t.hints)||void 0===A?void 0:A.newScale)){var y=function(e){var t=d.Expression.parse(e);if(t instanceof d.Expression.FunctionCall){var n=t.args[0];if(n instanceof d.Expression.Variable){var r=d.getByName(f.columns,n.name);if(r)return r.metadata.unit}}return null},I=function(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].type==M.MappingType.scale){var r=e[n];if(null!=r.scale){if((m(r.scale,t.expression)||r.expression==t.expression)&&(d.compareMarkAttributeNames(t.markAttribute,r.attribute)||!t.markAttribute||!r.attribute))if(d.getById(g.chart.scales,r.scale).outputType==t.outputType)return r.scale;if(y(r.expression)==y(t.expression)&&null!=y(r.expression))if(d.getById(g.chart.scales,r.scale).outputType==t.outputType)return r.scale}}return null};try{for(var C=l(this.chart.elements),E=C.next();!E.done;E=C.next()){var b=E.value;if(d.Prototypes.isType(b.classID,"plot-segment")){var v=b;if(v.table!=f.name)continue;var D=d.getById(this.chart.glyphs,v.glyph);if(!D)continue;try{for(var x=(o=void 0,l(D.marks)),w=x.next();!w.done;w=x.next()){if(Q=I(w.value.mappings))return Q}}catch(e){o={error:e}}finally{try{w&&!w.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}}else{var Q;if(Q=I(b.mappings))return Q}}}catch(e){n={error:e}}finally{try{E&&!E.done&&(r=C.return)&&r.call(C)}finally{if(n)throw n.error}}if(this.chart.scaleMappings)try{for(var S=l(this.chart.scaleMappings),k=S.next();!k.done;k=S.next()){var T=k.value;if((m(T.scale,t.expression)||T.expression==t.expression)&&(T.attribute&&d.compareMarkAttributeNames(T.attribute,t.markAttribute)||!T.attribute)){var j=d.getById(this.chart.scales,T.scale);if(j&&j.outputType==t.outputType)return T.scale}}}catch(e){s={error:e}}finally{try{k&&!k.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}}var L=this.chartManager.getGroupedExpressionVector(f.name,h,t.expression),R=d.Prototypes.Scales.inferScaleType((null==L?void 0:L.length)>0&&"string"==typeof L[0]&&!N.isBase64Image(L[0])?M.DataType.String:t.valueType,(null==L?void 0:L.length)>0&&"string"==typeof L[0]?M.DataKind.Categorical:t.valueKind,t.outputType);if(null!=R){var O=this.chartManager.createObject(R);O.properties.name=this.chartManager.findUnusedName("Scale"),O.inputType=t.valueType,O.outputType=t.outputType,this.chartManager.addScale(O);var _=this.chartManager.getClassById(O._id),F=this.getTables().find((function(e){return e.type===B.TableType.ParentMain}));F&&(f=F);var z=null;return"scale.categorical<image,image>"===R&&t.valueType===M.DataType.Image?(z=this.chartManager.getGroupedExpressionVector(f.name,h,t.expression),_.inferParameters(this.chartManager.getGroupedExpressionVector(f.name,h,"first("+d.ImageKeyColumn+")"),i(i({},t.hints),{extendScaleMax:!0,extendScaleMin:!0,rangeImage:z}))):_.inferParameters(this.chartManager.getGroupedExpressionVector(f.name,h,t.expression),i(i({},t.hints),{extendScaleMax:!0,extendScaleMin:!0,rangeImage:z})),O._id}return null},t.prototype.isLegendExistForScale=function(e){var t,n;try{for(var r=l(this.chart.elements),o=r.next();!o.done;o=r.next()){var i=o.value;if(d.Prototypes.isType(i.classID,"legend")&&i.properties.scale==e)return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.toggleLegendForScale=function(e,t,n){var r,o,i,a=this,s=d.getById(this.chartManager.chart.scales,e);try{for(var c=l(this.chart.elements),u=c.next();!u.done;u=c.next()){var A=u.value;if(d.Prototypes.isType(A.classID,"legend")&&A.properties.scale==e)return void this.chartManager.removeChartElement(A)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}if("scale.categorical<string,color>"==s.classID&&((i=t&&null!=t.valueIndex?this.chartManager.createObject("legend.custom"):this.chartManager.createObject("legend.categorical")).properties.scale=e,i.mappings.x={type:M.MappingType.parent,parentAttribute:"x2"},i.mappings.y={type:M.MappingType.parent,parentAttribute:"y2"},this.chartManager.chart.mappings.marginRight={type:M.MappingType.value,value:100}),"scale.linear<number,color>"!=s.classID&&"scale.linear<integer,color>"!=s.classID||((i=this.chartManager.createObject("legend.numerical-color")).properties.scale=e,i.mappings.x={type:M.MappingType.parent,parentAttribute:"x2"},i.mappings.y={type:M.MappingType.parent,parentAttribute:"y2"},this.chartManager.chart.mappings.marginRight={type:M.MappingType.value,value:100}),"scale.linear<number,number>"==s.classID||"scale.linear<integer,number>"==s.classID){if(!n)return void console.log("Numerical-number legend needs plot segment parameter.");var g=(i=this.chartManager.createObject("legend.numerical-number")).properties;g.scale=e;var p,h=[x.NumericalNumberLegendAttributeNames.x1,x.NumericalNumberLegendAttributeNames.y1,x.NumericalNumberLegendAttributeNames.x2,x.NumericalNumberLegendAttributeNames.y2];if(Q.isType(n.object.classID,"plot-segment.polar"))switch(t.attribute){case"height":p=["a1r1x","a1r1y","a1r2x","a1r2y"],g.axis.side="default";break;case"width":h=[x.NumericalNumberLegendAttributeNames.cx,x.NumericalNumberLegendAttributeNames.cy,x.NumericalNumberLegendAttributeNames.radius,x.NumericalNumberLegendAttributeNames.startAngle,x.NumericalNumberLegendAttributeNames.endAngle],p=["cx","cy","radial2","angle1","angle2"],g.axis.side="default",g.polarAngularMode=!0}else switch(t.attribute){case"height":p=["x1","y1","x1","y2"],g.axis.side="default";break;case"width":p=["x1","y1","x2","y1"],g.axis.side="opposite";break;default:p=["x1","y1","x1","y2"],g.axis.side="default"}h.forEach((function(e,t){a.chartManager.chart.constraints.push({type:"snap",attributes:{element:i._id,attribute:e,targetElement:n.object._id,targetAttribute:p[t],gap:0}})}))}if(i){var f={type:M.MappingType.scale,table:t.table,expression:t.expression,valueType:t.valueType,scale:s._id,allowSelectValue:t&&null!=t.valueIndex};i.mappings.mappingOptions=f,this.chartManager.addChartElement(i)}},t.prototype.getRepresentativeGlyphState=function(e){var t,n;try{for(var r=l(this.chart.elements),o=r.next();!o.done;o=r.next()){var i=o.value;if(d.Prototypes.isType(i.classID,"plot-segment")){var a=i;if(a.glyph==e._id)return this.chartManager.getClassById(a._id).state.glyphs[0]}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},t.prototype.solveConstraintsAndUpdateGraphics=function(e){var n=this;void 0===e&&(e=!1),this.solveConstraintsInWorker(e).then((function(){n.emit(t.EVENT_GRAPHICS)}))},t.prototype.solveConstraintsInWorker=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return this.solverStatus={solving:!0},this.emit(t.EVENT_SOLVER_STATUS),[4,this.worker.solveChartConstraints(this.chart,this.chartState,this.dataset,this.preSolveValues,e)];case 1:return n.sent(),this.preSolveValues=[],this.solverStatus={solving:!1},this.emit(t.EVENT_SOLVER_STATUS),[2]}}))}))},t.prototype.newChartEmpty=function(){var e=this;this.currentSelection=null,this.selectedGlyphIndex={},this.currentTool=null,this.currentToolOptions=null,this.chart=C.createDefaultChart(this.dataset,this.editorType===A.Chart),this.chartManager=new d.Prototypes.ChartStateManager(this.chart,this.dataset),this.chartManager.onUpdate((function(){e.solveConstraintsAndUpdateGraphics()})),this.chartState=this.chartManager.chartState},t.prototype.deleteSelection=function(){var e=this.currentSelection;this.currentSelection=null,this.emit(t.EVENT_SELECTION),e instanceof v.ChartElementSelection&&new p.Actions.DeleteChartElement(e.chartElement).dispatch(this.dispatcher),e instanceof v.MarkSelection&&new p.Actions.RemoveMarkFromGlyph(e.glyph,e.mark).dispatch(this.dispatcher),e instanceof v.GlyphSelection&&new p.Actions.RemoveGlyph(e.glyph).dispatch(this.dispatcher)},t.prototype.handleEscapeKey=function(){if(this.currentTool)return this.currentTool=null,void this.emit(t.EVENT_CURRENT_TOOL);this.currentSelection&&(new p.Actions.ClearSelection).dispatch(this.dispatcher)},t.prototype.getClosestSnappingGuide=function(e){var t,n,r=this,o=this.chartManager.getChartClass(this.chartManager.chartState).getSnappingGuides().map((function(e){return{element:null,guide:e}})),i=this.chartManager.chart.elements,a=this.chartManager.chartState.elements;d.zipArray(i,a).forEach((function(e){var t=c(e,2),n=t[0],i=t[1],a=r.chartManager.getChartElementClass(i);o=o.concat(a.getSnappingGuides().map((function(e){return{element:n,guide:e}})))}));var s=null,u=null,A=null,g=null;try{for(var p=l(o),h=p.next();!h.done;h=p.next()){var f=h.value,m=f.guide;if("y"==m.type){var y=Math.abs(m.value-e.y);(y<s||null==s)&&(s=y,A=f)}else if("x"==m.type){var I=Math.abs(m.value-e.x);(I<u||null==u)&&(u=I,g=f)}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return[g,A]},t.prototype.buildChartTemplate=function(){return new f.ChartTemplateBuilder(this.chart,this.dataset,this.chartManager,"2.2.0").build()},t.prototype.verifyUserExpressionWithTable=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r=this.chartManager.dataflow.getTable(t);return d.Expression.verifyUserExpression(e,i({data:function(){var e;return s(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<r.rows.length?[4,r.getRowContext(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}()},n))}return d.Expression.verifyUserExpression(e,i({},n))},t.prototype.updateScales=function(){var e=this;try{var t=[],n=function(n,r,o){if(!t.find((function(e){return e===n}))){var i=d.Prototypes.findObjectById(e.chart,n);if(i.properties.autoDomainMin||i.properties.autoDomainMin){var a=r.flatMap((function(e){return Object.keys(e.mappings).map((function(t){return{element:e,key:t,mapping:e.mappings[t]}}))})).filter((function(e){return e.mapping.type===M.MappingType.scale&&e.mapping.scale===n})),s=null;o.glyph&&e.chartManager.enumeratePlotSegments((function(e){e.object.glyph==o.glyph._id&&(s=e.object.groupBy)})),a.forEach((function(r){var o,a,l=e.chartManager.getClassById(n),c=[],u=!0,A=!1,d=!0;if("legend.custom"===r.element.classID){var g=e.chartManager.dataflow.getTable(r.mapping.table);c=e.chartManager.dataflow.cache.parse(r.mapping.expression).getValue(g),u=!0,d=!0,A=!0}else"scale.categorical<string,color>"==i.classID?(u=!0,d=!0,A=!0):(u=!1,d=!0,A=!0),c=e.chartManager.getGroupedExpressionVector(r.mapping.table,s,r.mapping.expression);l.inferParameters(c,{newScale:u,reuseRange:A,extendScaleMax:d,extendScaleMin:d,rangeNumber:[null===(o=i.mappings.rangeMin)||void 0===o?void 0:o.value,null===(a=i.mappings.rangeMax)||void 0===a?void 0:a.value]}),t.push(n)}))}}},r=this.chart.elements,o=r.filter((function(e){return d.Prototypes.isType(e.classID,"legend")})).flatMap((function(e){return e.properties.scale}));o.forEach((function(t){n(t,r,{chart:e.chart,glyph:null}),e.chart.glyphs.forEach((function(r){return n(t,r.marks,{chart:e.chart,glyph:r})}))})),this.chart.scales.filter((function(e){return!o.find((function(t){return t===e._id}))})).forEach((function(t){(t.properties.autoDomainMax||t.properties.autoDomainMin)&&(n(t._id,r,{chart:e.chart,glyph:null}),e.chart.glyphs.forEach((function(r){return n(t._id,r.marks,{chart:e.chart,glyph:r})})))}))}catch(e){console.error("Updating of scales failed with error",e)}},t.prototype.updatePlotSegments=function(){var e=this;this.chart.elements.filter((function(e){return d.Prototypes.isType(e.classID,"plot-segment")})).forEach((function(t){var n=e.dataset.tables.find((function(e){return e.name===t.table})),r=t.properties.xData;if(r&&r.expression){var o=new p.DragData.DataExpression(n,r.expression,r.valueType,{kind:"numerical"===r.type&&"temporal"===r.numericalMode?M.DataKind.Temporal:r.dataKind?r.dataKind:e.getDataKindByType(r.type),orderMode:r.orderMode?r.orderMode:"string"===r.valueType||"number"===r.valueType?D.OrderMode.order:null,order:null!=r.order?r.order:r.orderByCategories?r.orderByCategories:null,orderByExpression:void 0!==r.orderByExpression?r.orderByExpression:null},r.rawExpression);e.bindDataToAxis({property:S.PlotSegmentAxisPropertyNames.xData,dataExpression:o,object:t,appendToProperty:null,type:r.type,numericalMode:r.numericalMode,autoDomainMax:r.autoDomainMax,autoDomainMin:r.autoDomainMin,domainMin:r.domainMin,domainMax:r.domainMax,defineCategories:!0})}var i=t.properties.yData;if(i&&i.expression){var a=new p.DragData.DataExpression(n,i.expression,i.valueType,{kind:"numerical"===i.type&&"temporal"===i.numericalMode?M.DataKind.Temporal:i.dataKind?i.dataKind:e.getDataKindByType(i.type),orderMode:i.orderMode?i.orderMode:"string"===i.valueType?D.OrderMode.order:null,order:void 0!==i.order?i.order:null},i.rawExpression);e.bindDataToAxis({property:S.PlotSegmentAxisPropertyNames.yData,dataExpression:a,object:t,appendToProperty:null,type:i.type,numericalMode:i.numericalMode,autoDomainMax:i.autoDomainMax,autoDomainMin:i.autoDomainMin,domainMin:i.domainMin,domainMax:i.domainMax,defineCategories:!0})}var s=t.properties.axis;if(s&&s.expression){var l=new p.DragData.DataExpression(n,void 0!==s.expression?s.expression:null,void 0!==s.valueType?s.valueType:null,{kind:"numerical"===s.type&&"temporal"===s.numericalMode?M.DataKind.Temporal:s.dataKind?s.dataKind:e.getDataKindByType(s.type),orderMode:s.orderMode?s.orderMode:"string"===s.valueType?D.OrderMode.order:null,order:void 0!==s.order?s.order:null},s.rawExpression);e.bindDataToAxis({property:S.PlotSegmentAxisPropertyNames.axis,dataExpression:l,object:t,appendToProperty:null,type:s.type,numericalMode:s.numericalMode?s.numericalMode:null,autoDomainMax:s.autoDomainMax,autoDomainMin:s.autoDomainMin,domainMin:s.domainMin,domainMax:s.domainMax,defineCategories:!0})}}))},t.prototype.updateDataAxes=function(){var e=this,t=function(e){return function(t){return{table:e,element:t}}},n=function(t,n,r,o,i){void 0===i&&(i=null);var a=new p.DragData.DataExpression(e.dataset.tables.find((function(e){return e.name==t.table})),n,r.valueType,{kind:"numerical"===r.type&&"temporal"===r.numericalMode?M.DataKind.Temporal:r.dataKind?r.dataKind:e.getDataKindByType(r.type),orderMode:r.orderMode?r.orderMode:"string"===r.valueType?D.OrderMode.order:null,order:r.order},r.rawExpression);e.bindDataToAxis({property:S.PlotSegmentAxisPropertyNames.axis,dataExpression:a,object:o,appendToProperty:i,type:r.type,numericalMode:r.numericalMode,autoDomainMax:r.autoDomainMax,autoDomainMin:r.autoDomainMin,domainMin:r.domainMin,domainMax:r.domainMax,defineCategories:!1})},r=this.dataset.tables.find((function(e){return e.type===B.TableType.Main}));this.chart.elements.map(t(r.name)).concat(this.chart.glyphs.flatMap((function(e){return e.marks.map(t(e.table))}))).filter((function(e){return d.Prototypes.isType(e.element.classID,"mark.data-axis")})).forEach((function(e){var t=e.element,r=t.properties.axis;if(r){var o=r.expression;n(e,o,r,t)}var i=t.properties.dataExpressions;t.properties.dataExpressions=[],i.forEach((function(r,o){var i=t.properties.axis;if(i){var a=r.expression;n(e,a,i,t,"dataExpressions"),t.properties.dataExpressions[o].name=r.name}}))}))},t.prototype.getBindingByDataKind=function(e){switch(e){case M.DataKind.Numerical:return D.AxisDataBindingType.Numerical;case M.DataKind.Temporal:case M.DataKind.Ordinal:case M.DataKind.Categorical:return D.AxisDataBindingType.Categorical}},t.prototype.bindDataToAxis=function(e){var t,n,r,o,i,a=e.object,s=e.property,c=e.appendToProperty,u=e.dataExpression;this.normalizeDataExpression(u);var A=u.expression,g=u.valueType,p=a.properties[e.property],h=u.type?e.type:this.getBindingByDataKind(e.dataExpression.metadata.kind),f=u.rawColumnExpression;!f||u.valueType===M.DataType.Date||e.dataExpression.metadata.kind!==M.DataKind.Ordinal&&e.dataExpression.metadata.kind!==M.DataKind.Categorical||(A=f,g=M.DataType.String);var m=a.properties[e.property],y="dataExpressions"===c&&p?p.expression:A,I=k.getColumnNameByExpression(y),C={type:e.type||h,expression:y,rawExpression:null!=u.rawColumnExpression?u.rawColumnExpression:y,valueType:void 0!==g?g:null,gapRatio:void 0===(null==p?void 0:p.gapRatio)?.1:p.gapRatio,visible:void 0===(null==m?void 0:m.visible)||(null==m?void 0:m.visible),side:(null==p?void 0:p.side)||"default",style:(null==m?void 0:m.style)||d.deepClone(w.defaultAxisStyle),numericalMode:null!=e.numericalMode?e.numericalMode:null,dataKind:null!=u.metadata.kind?u.metadata.kind:null,order:void 0!==u.metadata.order?u.metadata.order:null,orderMode:void 0!==u.metadata.orderMode?u.metadata.orderMode:null,autoDomainMax:null==e.autoDomainMax||e.autoDomainMax,autoDomainMin:null==e.autoDomainMin||e.autoDomainMin,tickFormat:void 0!==(null==m?void 0:m.tickFormat)?null==m?void 0:m.tickFormat:null,tickDataExpression:void 0!==(null==m?void 0:m.tickDataExpression)?null==m?void 0:m.tickDataExpression:null,tickFormatType:null!==(r=null==m?void 0:m.tickFormatType)&&void 0!==r?r:D.TickFormatType.None,domainMin:void 0!==(null==m?void 0:m.domainMin)?null==m?void 0:m.domainMin:null,domainMax:void 0!==(null==m?void 0:m.domainMax)?null==m?void 0:m.domainMax:null,dataDomainMin:void 0!==(null==m?void 0:m.domainMin)?null==m?void 0:m.domainMin:null,dataDomainMax:void 0!==(null==m?void 0:m.domainMax)?null==m?void 0:m.domainMax:null,enablePrePostGap:void 0!==(null==m?void 0:m.enablePrePostGap)?null==m?void 0:m.enablePrePostGap:null,categories:void 0!==(null==m?void 0:m.categories)?null==m?void 0:m.categories:null,allCategories:void 0!==(null==m?void 0:m.allCategories)?null==m?void 0:m.allCategories:void 0!==(null==m?void 0:m.categories)?null==m?void 0:m.categories:null,scrollPosition:void 0!==(null==m?void 0:m.scrollPosition)?null==m?void 0:m.scrollPosition:0,allowScrolling:void 0!==(null==m?void 0:m.allowScrolling)&&(null==m?void 0:m.allowScrolling),windowSize:void 0!==(null==m?void 0:m.windowSize)?null==m?void 0:m.windowSize:10,barOffset:void 0!==(null==m?void 0:m.barOffset)?null==m?void 0:m.barOffset:0,offset:void 0!==(null==m?void 0:m.offset)?null==m?void 0:m.offset:0,onTop:void 0!==(null==m?void 0:m.onTop)&&(null==m?void 0:m.onTop),enableSelection:void 0!==(null==m?void 0:m.enableSelection)&&(null==m?void 0:m.enableSelection),orderByCategories:void 0!==(null==m?void 0:m.orderByCategories)?null==m?void 0:m.orderByCategories:[],orderByExpression:I,numberOfTicks:void 0!==(null==m?void 0:m.numberOfTicks)?null==m?void 0:m.numberOfTicks:T.AxisRenderer.DEFAULT_TICKS_NUMBER,autoNumberOfTicks:void 0===(null==m?void 0:m.autoNumberOfTicks)||(null==m?void 0:m.autoNumberOfTicks)},E=[A];c?(null==a.properties[c]?a.properties[c]=[{name:d.uniqueID(),expression:A}]:a.properties[c].push({name:d.uniqueID(),expression:A}),E=a.properties[c].map((function(e){return e.expression})),null==a.properties[s]?a.properties[s]=C:C=a.properties[s]):a.properties[s]=C;var b=this.getGroupingExpression(a),v=[];"dataExpressions"==c&&null!=C.domainMax&&null!=C.domainMin&&(v=v.concat(C.domainMax,C.domainMin));try{for(var B=l(E),x=B.next();!x.done;x=B.next()){var Q=x.value;if(Q){var N=this.chartManager.getGroupedExpressionVector(u.table.name,b,Q);v=v.concat(N)}}}catch(e){t={error:e}}finally{try{x&&!x.done&&(n=B.return)&&n.call(B)}finally{if(t)throw t.error}}if(u.metadata)switch(u.metadata.kind){case d.Specification.DataKind.Categorical:case d.Specification.DataKind.Ordinal:C.type=D.AxisDataBindingType.Categorical,C.valueType=u.valueType;var j=this.getCategoriesForDataBinding(u.metadata,u.valueType,v),L=j.categories,R=j.order;if(C.orderByCategories=d.deepClone(L),C.order=null!=R?R:null,C.allCategories=d.deepClone(L),(null==C.windowSize||C.windowSize>C.allCategories.length)&&(C.windowSize=null!==(i=null===(o=C.allCategories)||void 0===o?void 0:o.length)&&void 0!==i?i:Math.ceil(L.length/10)),C.categories=L,C.allowScrolling){var O=Math.floor((L.length-C.windowSize)/100*C.scrollPosition);C.categories=L.slice(O,O+C.windowSize)}C.tickFormat=null,C.tickDataExpression=null;break;case d.Specification.DataKind.Numerical:if(e.numericalMode===D.NumericalMode.Logarithmic)(_=new d.Scale.LogarithmicScale).inferParameters(v),C.allowScrolling?(C.autoDomainMin?C.dataDomainMin=_.domainMin:C.dataDomainMin=e.domainMin,C.autoDomainMax?C.dataDomainMax=_.domainMax:C.dataDomainMax=e.domainMax):(C.autoDomainMin?C.domainMin=_.domainMin:C.domainMin=e.domainMin,C.autoDomainMax?C.domainMax=_.domainMax:C.domainMax=e.domainMax),C.type=D.AxisDataBindingType.Numerical,C.numericalMode=D.NumericalMode.Logarithmic;else(_=new d.Scale.LinearScale).inferParameters(v),C.allowScrolling?(C.autoDomainMin?C.dataDomainMin=_.domainMin:C.dataDomainMin=e.domainMin,C.autoDomainMax?C.dataDomainMax=_.domainMax:C.dataDomainMax=e.domainMax):(C.autoDomainMin?C.domainMin=_.domainMin:C.domainMin=e.domainMin,C.autoDomainMax?C.domainMax=_.domainMax:C.domainMax=e.domainMax),C.type=D.AxisDataBindingType.Numerical,C.numericalMode=D.NumericalMode.Linear;e.defineCategories&&(C.categories=d.defineCategories(v)),null==C.windowSize&&(C.windowSize=(C.domainMax-C.domainMin)/10),C.dataDomainMin=C.domainMin,C.dataDomainMax=C.domainMax;break;case d.Specification.DataKind.Temporal:var _;(_=new d.Scale.DateScale).inferParameters(v,!1),C.autoDomainMin?C.domainMin=_.domainMin:C.domainMin=e.domainMin,C.autoDomainMax?C.domainMax=_.domainMax:C.domainMax=e.domainMax,C.type=D.AxisDataBindingType.Numerical,C.numericalMode=D.NumericalMode.Temporal;L=this.getCategoriesForDataBinding(u.metadata,u.valueType,v).categories;if(C.allCategories=d.deepClone(L),C.categories=L,C.allowScrolling){O=Math.floor((L.length-C.windowSize)/100*C.scrollPosition);C.categories=L.slice(O,O+C.windowSize)}}var F=a.properties;F.sublayout&&(F.sublayout.type!=S.Region2DSublayoutType.DodgeX&&F.sublayout.type!=S.Region2DSublayoutType.DodgeY&&F.sublayout.type!=S.Region2DSublayoutType.Grid||(F.xData&&"numerical"==F.xData.type&&(F.sublayout.type=S.Region2DSublayoutType.Overlap),F.yData&&"numerical"==F.yData.type&&(F.sublayout.type=S.Region2DSublayoutType.Overlap)),F.xData&&F.xData.type==D.AxisDataBindingType.Categorical&&F.yData&&F.yData.type==D.AxisDataBindingType.Categorical&&F.sublayout.type==S.Region2DSublayoutType.Overlap&&(F.sublayout.type=S.Region2DSublayoutType.Grid))},t.prototype.normalizeDataExpression=function(e){e.metadata&&(void 0===e.metadata.order&&(e.metadata.order=null),void 0===e.metadata.orderMode&&(e.metadata.orderMode=null),void 0===e.metadata.rawColumnName&&(e.metadata.rawColumnName=null),void 0===e.metadata.unit&&(e.metadata.unit=null),void 0===e.metadata.kind&&(e.metadata.kind=null),void 0===e.metadata.isRaw&&(e.metadata.isRaw=null),void 0===e.metadata.format&&(e.metadata.format=null),void 0===e.metadata.examples&&(e.metadata.examples=null),void 0===e.scaleID&&(e.scaleID=null),void 0===e.type&&(e.type=null),void 0===e.rawColumnExpression&&(e.rawColumnExpression=null),void 0===e.valueType&&(e.valueType=null))},t.prototype.getCategoriesForOrderByColumn=function(e,t,n){var r=d.Expression.parse(t),o=null;r instanceof d.Expression.FunctionCall&&(o=null==(o=r.args[0].toString())?void 0:o.split("`").join(""),o=k.parseDerivedColumnsExpression(o));var i=this.getTables()[0].name,a=new d.Prototypes.Dataflow.DataflowManager(this.dataset),s=function(e,t,n){var r=k.transformOrderByExpression(e);n.expression=k.transformOrderByExpression(n.expression);var o=d.Expression.parse(r),i=a.getTable(t);return(n?new j.CompiledGroupBy(n,a.cache).groupBy(i):d.makeRange(0,i.rows.length).map((function(e){return[e]}))).map((function(e){return o.getValue(i.getGroupedContext(e))}))}(n.orderByExpression,i,{expression:o}).map((function(e){return u(new Set(e))})),l=k.updateWidgetCategoriesByExpression(s);return u(new Set(l))},t.prototype.getCategoriesForDataBinding=function(e,t,n){var r,o;if(e.order&&e.orderMode===D.OrderMode.order){r=e.order.slice();var i=new d.Scale.CategoricalScale;i.inferParameters(n,e.orderMode);var a=new Array(i.length);i.domain.forEach((function(e,t){return a[e]=t.toString()})),e.order=e.order.filter((function(e){return i.domain.has(e)}));var s=a.filter((function(t){return!e.order.find((function(e){return e===t}))}));r=new Array(e.order.length),e.order.forEach((function(e,t){r[t]=e})),r=r.concat(s),o=e.order.concat(s)}else{var l=D.OrderMode.alphabetically,c=new d.Scale.CategoricalScale;e.orderMode&&(l=e.orderMode),"number"===t&&(n=n.sort((function(e,t){return e-t})),l=D.OrderMode.order),c.inferParameters(n,l),r=new Array(c.length),c.domain.forEach((function(e,t){return r[e]=t.toString()})),"number"===t&&(e.order=r)}return{categories:r,order:o}},t.prototype.getGroupingExpression=function(e){var t,n,r=null;if(d.Prototypes.isType(e.classID,"plot-segment"))r=e.groupBy;else if(d.Prototypes.isType(e.classID,"mark")){var o=function(t){t.marks.indexOf(e)>=0&&i.chartManager.enumeratePlotSegments((function(e){e.object.glyph==t._id&&(r=e.object.groupBy)}))},i=this;try{for(var a=l(this.chart.glyphs),s=a.next();!s.done;s=a.next()){o(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}return r},t.prototype.getLocaleFileFormat=function(){return this.localeFileFormat},t.prototype.setLocaleFileFormat=function(e){this.localeFileFormat=e},t.prototype.checkColumnsMapping=function(e,t,n){var r=[],o=n.tables.find((function(e){return e.type===t}));return(null==o?void 0:o.columns.find((function(t){return t.name===e.name})))||r.push(e),r},t.prototype.setProperty=function(e){if("name"!==e.property||!this.chartManager.isNameUsed(e.value)){if(this.saveHistory(),null==e.field)e.object.properties[e.property]=e.value;else{var n=e.object.properties[e.property];e.object.properties[e.property]=d.setField(n,e.field,e.value)}e.noUpdateState?this.emit(t.EVENT_GRAPHICS):this.solveConstraintsAndUpdateGraphics(e.noComputeLayout)}},t.EVENT_IS_NESTED_EDITOR="is-nested-editor",t.EVENT_NESTED_EDITOR_EDIT="nested-editor-edit",t.EVENT_NESTED_EDITOR_CLOSE="nested-editor-close",t.EVENT_DATASET="dataset",t.EVENT_GRAPHICS="graphics",t.EVENT_SELECTION="selection",t.EVENT_CURRENT_TOOL="current-tool",t.EVENT_SOLVER_STATUS="solver-status",t.EVENT_SAVECHART="savechart",t.EVENT_OPEN_NESTED_EDITOR="openeditor",t}(g.BaseStore);t.AppStore=L},function(e,t,n){"use strict";function r(e){i!==e&&(i=e)}function o(){return void 0===i&&(i="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),i}var i;function a(){return{rtl:o()}}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),i=o()},function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return g}));var r=n(36),o=!1,i=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(e){l=e}function u(){i++}function A(e,t,n){var r=d(n.value&&n.value.bind(null));return{configurable:!0,get:function(){return r}}}function d(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!l)return e;if(!o){var a=r.b.getInstance();a&&a.onReset&&r.b.getInstance().onReset(u),o=!0}var s,c=0,A=i;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=s;(void 0===s||A!==i||t>0&&c>t)&&(s=h(),c=0,A=i),a=s;for(var l=0;l<r.length;l++){var u=p(r[l]);a.map.has(u)||a.map.set(u,h()),a=a.map.get(u)}return a.hasOwnProperty("value")||(a.value=e.apply(void 0,r),c++),!n||null!==a.value&&void 0!==a.value||(a.value=e.apply(void 0,r)),a.value}}function g(e){if(!l)return e;var t=new l;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function p(e){return e?"object"==typeof e||"function"==typeof e?e:(s[e]||(s[e]={val:e}),s[e]):a}function h(){return{map:l?new l:null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(15),o="ms-Fabric--isFocusVisible";function i(e,t){var n=t?Object(r.a)(t):Object(r.a)();if(n){var i=n.document.body.classList;i.add(e?o:"ms-Fabric--isFocusHidden"),i.remove(e?"ms-Fabric--isFocusHidden":o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTextExpression=t.parse=void 0;var r=n(116),o=n(116);Object.defineProperty(t,"Expression",{enumerable:!0,get:function(){return o.Expression}}),Object.defineProperty(t,"TextExpression",{enumerable:!0,get:function(){return o.TextExpression}}),Object.defineProperty(t,"ShadowContext",{enumerable:!0,get:function(){return o.ShadowContext}}),Object.defineProperty(t,"LambdaFunction",{enumerable:!0,get:function(){return o.LambdaFunction}}),Object.defineProperty(t,"SimpleContext",{enumerable:!0,get:function(){return o.SimpleContext}}),Object.defineProperty(t,"FieldAccess",{enumerable:!0,get:function(){return o.FieldAccess}}),Object.defineProperty(t,"FunctionCall",{enumerable:!0,get:function(){return o.FunctionCall}}),Object.defineProperty(t,"Variable",{enumerable:!0,get:function(){return o.Variable}}),Object.defineProperty(t,"Value",{enumerable:!0,get:function(){return o.Value}}),Object.defineProperty(t,"NumberValue",{enumerable:!0,get:function(){return o.NumberValue}}),Object.defineProperty(t,"BooleanValue",{enumerable:!0,get:function(){return o.BooleanValue}}),Object.defineProperty(t,"StringValue",{enumerable:!0,get:function(){return o.StringValue}}),Object.defineProperty(t,"DateValue",{enumerable:!0,get:function(){return o.DateValue}}),Object.defineProperty(t,"variableReplacer",{enumerable:!0,get:function(){return o.variableReplacer}}),t.parse=function(e){return r.Expression.Parse(e)},t.parseTextExpression=function(e){return r.TextExpression.Parse(e)};var i=n(319);Object.defineProperty(t,"variable",{enumerable:!0,get:function(){return i.variable}}),Object.defineProperty(t,"functionCall",{enumerable:!0,get:function(){return i.functionCall}}),Object.defineProperty(t,"lambda",{enumerable:!0,get:function(){return i.lambda}}),Object.defineProperty(t,"fields",{enumerable:!0,get:function(){return i.fields}}),Object.defineProperty(t,"add",{enumerable:!0,get:function(){return i.add}}),Object.defineProperty(t,"sub",{enumerable:!0,get:function(){return i.sub}}),Object.defineProperty(t,"mul",{enumerable:!0,get:function(){return i.mul}}),Object.defineProperty(t,"div",{enumerable:!0,get:function(){return i.div}}),Object.defineProperty(t,"number",{enumerable:!0,get:function(){return i.number}}),Object.defineProperty(t,"string",{enumerable:!0,get:function(){return i.string}}),Object.defineProperty(t,"date",{enumerable:!0,get:function(){return i.date}}),Object.defineProperty(t,"boolean",{enumerable:!0,get:function(){return i.boolean}}),Object.defineProperty(t,"ExpressionCache",{enumerable:!0,get:function(){return i.ExpressionCache}}),Object.defineProperty(t,"getDefaultAggregationFunction",{enumerable:!0,get:function(){return i.getDefaultAggregationFunction}}),Object.defineProperty(t,"getCompatibleAggregationFunctionsByDataType",{enumerable:!0,get:function(){return i.getCompatibleAggregationFunctionsByDataType}}),Object.defineProperty(t,"getCompatibleAggregationFunctionsByDataKind",{enumerable:!0,get:function(){return i.getCompatibleAggregationFunctionsByDataKind}}),Object.defineProperty(t,"aggregationFunctions",{enumerable:!0,get:function(){return i.aggregationFunctions}}),Object.defineProperty(t,"verifyUserExpression",{enumerable:!0,get:function(){return i.verifyUserExpression}})},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isType=t.ObjectClasses=t.ObjectClass=void 0;var i=n(12),a=n(6),s=n(7),l=function(){function e(e,t,n){this.parent=e,this.object=t,this.state=n}return e.prototype.initializeState=function(){},e.prototype.getAttributePanelWidgets=function(e){return[e.verticalGroup({header:s.strings.objects.interactivity},[e.inputBoolean({property:"enableTooltips"},{type:"checkbox",label:s.strings.objects.toolTips,searchSection:s.strings.objects.interactivity}),e.inputBoolean({property:"enableContextMenu"},{type:"checkbox",label:s.strings.objects.contextMenu,searchSection:s.strings.objects.interactivity}),e.inputBoolean({property:"enableSelection"},{type:"checkbox",label:s.strings.objects.selection,searchSection:s.strings.objects.interactivity})])]},e.prototype.getTemplateParameters=function(){return null},e.createDefault=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.uniqueID(),r={_id:n,classID:this.classID,properties:{},mappings:{}};for(var o in r.properties=i.deepClone(this.defaultProperties),this.defaultMappingValues)if(Object.prototype.hasOwnProperty.call(this.defaultMappingValues,o)){var s=i.deepClone(this.defaultMappingValues[o]);r.mappings[o]={type:a.MappingType.value,value:s}}return r},e.classID="object",e.type=null,e.metadata={},e.defaultProperties={enableTooltips:!0,enableContextMenu:!0,enableSelection:!0,exposed:!0},e.defaultMappingValues={},e}();t.ObjectClass=l;var c=function(){function e(){}return e.Create=function(t,n,r){var o=e.registeredObjectClasses.get(n.classID);if(!o)throw new Error("undefined object class '"+n.classID+"'");return new o(t,n,r)},e.CreateDefault=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e.registeredObjectClasses.get(t),a=i.createDefault.apply(i,o(n));return a},e.GetMetadata=function(t){var n=e.registeredObjectClasses.get(t);return n&&n.metadata||null},e.Register=function(t){e.registeredObjectClasses.set(t.classID,t),null!=t.type&&e.RegisterType(t.classID,t.type)},e.RegisterType=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.type2Parents.set(t,n)},e.isType=function(t,n){if(t==n)return!0;var r=e.type2Parents.get(t);return null!=r&&r.some((function(t){return e.isType(t,n)}))},e.RegisteredClasses=function(){return this.registeredObjectClasses.values()},e.registeredObjectClasses=new Map,e.type2Parents=new Map,e}();t.ObjectClasses=c,t.isType=c.isType},function(e,t){
/*!
 * Chai - flag utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return r[t];r[t]=n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return c}));var r,o,i,a,s,l=n(128);function c(e){return r=Object(l.a)(e),o=r.format,i=r.parse,a=r.utcFormat,s=r.utcParse,r}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(e,t,n){"use strict";var r=n(62);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=n(3),o=Object(r.db)({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),i="ms-Icon",a=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,a=e.styles;return{root:[r&&o.placeholder,o.root,i&&o.image,n,t,a&&a.root,a&&a.imageContainer]}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultVersionOfTemplate=t.defaultFontSizeLegend=t.defaultFontSize=t.defaultFont=t.createDefaultChart=t.createDefaultTitle=t.createDefaultPlotSegment=t.createDefaultGlyph=void 0;var r=n(5),o=n(82),i=n(6);function a(e){return{_id:r.uniqueID(),classID:"glyph.rectangle",properties:{name:"Glyph"},table:e,marks:[{_id:r.uniqueID(),classID:"mark.anchor",properties:{name:"Anchor"},mappings:{x:{type:i.MappingType.parent,parentAttribute:"icx"},y:{type:i.MappingType.parent,parentAttribute:"icy"}}}],mappings:{},constraints:[]}}function s(e,t){return{_id:r.uniqueID(),classID:"plot-segment.cartesian",glyph:t._id,table:e.name,filter:null,mappings:{x1:{type:i.MappingType.parent,parentAttribute:"x1"},y1:{type:i.MappingType.parent,parentAttribute:"y1"},x2:{type:i.MappingType.parent,parentAttribute:"x2"},y2:{type:i.MappingType.parent,parentAttribute:"y2"}},properties:{name:"PlotSegment1",visible:!0,marginX1:0,marginY1:0,marginX2:0,marginY2:0,sublayout:{type:e.rows.length>=100?"grid":o.Region2DSublayoutType.DodgeX,order:null,ratioX:.1,ratioY:.1,align:{x:o.SublayoutAlignment.Start,y:o.SublayoutAlignment.Start},grid:{direction:o.GridDirection.X,xCount:null,yCount:null,gridStartPosition:o.GridStartPosition.LeftTop},packing:{gravityX:.1,gravityY:.1,boxedX:null,boxedY:null},jitter:{vertical:!0,horizontal:!0}}}}}function l(e){return{_id:r.uniqueID(),classID:"mark.text",properties:{name:"Title",visible:!0,alignment:{x:"middle",y:"top",xMargin:0,yMargin:30},rotation:0},mappings:{x:{type:i.MappingType.parent,parentAttribute:"cx"},y:{type:i.MappingType.parent,parentAttribute:"oy2"},text:{type:i.MappingType.value,value:e.name},fontSize:{type:i.MappingType.value,value:24},color:{type:i.MappingType.value,value:{r:0,g:0,b:0}}}}}t.createDefaultGlyph=a,t.createDefaultPlotSegment=s,t.createDefaultTitle=l,t.createDefaultChart=function(e,t){var n=e.tables[0],o=a(n.name);return{_id:r.uniqueID(),classID:"chart.rectangle",properties:{name:"Chart",backgroundColor:null,backgroundOpacity:1,enableContextMenu:!0,exposed:!0},mappings:{marginTop:{type:i.MappingType.value,value:80},width:{type:i.MappingType.value,value:900},height:{type:i.MappingType.value,value:600}},glyphs:[o],elements:[s(n,o),t?l(e):null].filter((function(e){return null!=e})),scales:[],scaleMappings:[],constraints:[],resources:[]}},t.defaultFont="Segoe UI",t.defaultFontSize=12,t.defaultFontSizeLegend=12,t.defaultVersionOfTemplate="2.0.3"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttrBuilder=void 0;var o=n(6),i=function(){function e(){}return e.attr=function(e,t,n){void 0===n&&(n={});var o={};return o[e]=r({name:e,type:t},n),o},e.number=function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n={}),t?this.attr(e,o.AttributeType.Number,n):this.attr(e,o.AttributeType.Number,r({solverExclude:!0},n))},e.color=function(e,t){return void 0===t&&(t={}),this.attr(e,o.AttributeType.Color,r({solverExclude:!0},t))},e.boolean=function(e,t){return void 0===t&&(t={}),this.attr(e,o.AttributeType.Boolean,r({solverExclude:!0},t))},e.enum=function(e,t){return void 0===t&&(t={}),this.attr(e,o.AttributeType.Enum,r({solverExclude:!0},t))},e.line=function(){return r(r(r(r({},this.number("x1")),this.number("y1")),this.number("x2")),this.number("y2"))},e.point=function(){return r(r({},this.number("x")),this.number("y"))},e.center=function(){return r(r({},this.number("cx")),this.number("cy"))},e.size=function(){return r(r({},this.number("width",!0,{defaultRange:[0,200]})),this.number("height",!0,{defaultRange:[0,200]}))},e.dXdY=function(){return r(r({},this.number("dx",!0,{defaultRange:[30,100]})),this.number("dy",!0,{defaultRange:[30,100]}))},e.opacity=function(){return this.number("opacity",!1,{defaultRange:[0,1],defaultValue:1})},e.visible=function(){return this.boolean("visible",{defaultValue:!0})},e.image=function(){return this.attr("image",o.AttributeType.Image,{solverExclude:!0,defaultValue:null})},e.style=function(e){void 0===e&&(e={});var t=r(r(r(r({},this.color("stroke",{defaultValue:null})),this.number("strokeWidth",!1,{defaultRange:[0,5],defaultValue:1})),this.opacity()),this.visible());return e.fill&&(t.fill=this.color("fill",{defaultValue:null}).fill),t},e}();t.AttrBuilder=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(392),t),o(n(76),t),o(n(570),t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HandlesDragContext=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onDrag=function(e){return this.addListener("drag",e)},t.prototype.onEnd=function(e){return this.addListener("end",e)},t}(n(5).EventEmitter);t.HandlesDragContext=i},function(e,t,n){"use strict";function r(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return i.apply(this,[null,e].concat(t))}function i(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}function a(e,t){return Object.keys(e).map((function(n){if(String(Number(n))!==n)return t(n,e[n])})).filter((function(e){return!!e}))}function s(e){return Object.keys(e).reduce((function(t,n){return t.push(e[n]),t}),[])}function l(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=r.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},function(e,t,n){"use strict";function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return M})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return w}));var r,o=n(1),i=n(36),a={};var s={"user-select":1};function l(e,t){var n=function(){if(!r){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;r=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}(),o=e[t];if(s[o]){var i=e[t+1];s[o]&&(n.isWebkit&&e.push("-webkit-"+o,i),n.isMoz&&e.push("-moz-"+o,i),n.isMs&&e.push("-ms-"+o,i),n.isOpera&&e.push("-o-"+o,i))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function A(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=u.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var d="left",g="right",p=((c={})[d]=g,c[g]=d,c),h={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function f(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(d)>=0)t[n]=r.replace(d,g);else if(r.indexOf(g)>=0)t[n]=r.replace(g,d);else if(String(o).indexOf(d)>=0)t[n+1]=o.replace(d,g);else if(String(o).indexOf(g)>=0)t[n+1]=o.replace(g,d);else if(p[r])t[n]=p[r];else if(h[o])t[n+1]=h[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function m(e){var t=e&&e["&"];return t?t.displayName:void 0}var y=/\:global\((.+?)\)/g;function I(e,t){return e.indexOf(":global(")>=0?e.replace(y,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function C(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?E([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!y.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return E([r],t,I(n,e))})):E([r],t,I(n,e))}function E(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=i.b.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&E(c,t,n)}else if(Array.isArray(l))E(l,t,n);else for(var u in l)if(l.hasOwnProperty(u)){var A=l[u];if("selectors"===u){var d=l.selectors;for(var g in d)d.hasOwnProperty(g)&&C(n,t,g,d[g])}else"object"==typeof A?null!==A&&C(n,t,u,A):void 0!==A&&("margin"===u||"padding"===u?b(o,u,A):o[u]=A)}}return t}function b(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function v(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function B(e,t){return t<=0?"":1===t?e:e+B(e,t-1)}function M(e,t){if(!t)return"";var n,r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&"displayName"!==s&&void 0!==t[s]&&i.push(s,t[s]);for(var c=0;c<i.length;c+=2)o=void 0,"-"!==(o=(n=i)[r=c]).charAt(0)&&(n[r]=a[o]=a[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),A(i,c),f(e,i,c),l(i,c);for(c=1;c<i.length;c+=4)i.splice(c,1,":",i[c],";");return i.join("")}function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=E(t),o=v(e,r);if(o){var a=i.b.getInstance(),s={className:a.classNameFromKey(o),key:o,args:t};if(!s.className){s.className=a.getClassName(m(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var A=u[c];l.push(A,M(e,r[A]))}s.rulesToInsert=l}return s}}function x(e,t){void 0===t&&(t=1);var n=i.b.getInstance(),r=e.className,o=e.key,a=e.args,s=e.rulesToInsert;if(s){for(var l=0;l<s.length;l+=2){var c=s[l+1];if(c){var u=s[l],A=(u=u.replace(/&/g,B("."+e.className,t)))+"{"+c+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(A)}}n.cacheClassName(r,o,a,s)}}function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=D.apply(void 0,Object(o.e)([e],t));return r?(x(r,e.specificityMultiplier),r.className):""}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(20),o=n(21);function i(e){return Object(r.a)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/o.e}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),A=i(5),d=i(6);a.range,s.range,l.range,c.range,u.range,A.range,d.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(20),o=n(21);function i(e){return Object(r.a)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.c)/o.e}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),A=i(5),d=i(6);a.range,s.range,l.range,c.range,u.range,A.range,d.range},,function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartElementClass=void 0;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.buildConstraints=function(e,t,n){},t.prototype.getGraphics=function(e){return null},t.prototype.getHandles=function(){return[]},t.prototype.getBoundingBox=function(){return null},t.prototype.getSnappingGuides=function(){return[]},t.prototype.getDropZones=function(){return[]},t.prototype.getPopupEditor=function(e){return null},t.createDefault=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.createDefault.apply(this,a(t));return r},t}(n(50).ObjectClass);t.ChartElementClass=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EmphasizableMarkClass=t.DEFAULT_POWER_BI_OPACITY=t.DEFAULT_EMPHASIS_STROKE_WIDTH=t.DEFAULT_EMPHASIS_STROKE_COLOR=void 0;var i=n(120),a=n(6);t.DEFAULT_EMPHASIS_STROKE_COLOR={r:255,g:0,b:0},t.DEFAULT_EMPHASIS_STROKE_WIDTH=1,t.DEFAULT_POWER_BI_OPACITY=.4;var s=function(e){function n(t,n,r,o){void 0===o&&(o=a.EmphasisMethod.Saturation);var i=e.call(this,t,n,r)||this;return i.defaultMethod=o,i}return o(n,e),n.prototype.generateEmphasisStyle=function(e){var n,r={saturation:1},o=this.object.properties.emphasisMethod||this.defaultMethod;if(o===a.EmphasisMethod.Saturation&&!1===e){var i=null===(n=this.state.attributes)||void 0===n?void 0:n.opacity;(i>t.DEFAULT_POWER_BI_OPACITY||!i)&&(r.opacity=t.DEFAULT_POWER_BI_OPACITY)}return o===a.EmphasisMethod.Outline&&e&&(r.strokeColor=t.DEFAULT_EMPHASIS_STROKE_COLOR,r.strokeWidth=t.DEFAULT_EMPHASIS_STROKE_WIDTH),r},n}(i.MarkClass);t.EmphasizableMarkClass=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicalElementDisplay=t.renderGraphicalElementSVG=t.renderSVGDefs=t.renderTransform=t.renderSVGPath=t.renderStyle=t.renderColor=t.applyColorFilter=void 0;var s=n(0),l=n(5),c=n(9),u=n(177),A=n(119),d=l.getColorConverter("sRGB","lab"),g=l.getColorConverter("lab","sRGB");function p(e,t){return null!=t.set?t.set:(null!=t.multiply&&(e*=t.multiply),null!=t.add&&(e+=t.add),null!=t.pow&&(e=Math.pow(e,t.pow)),e)}function h(e,t){var n=a(d(e.r,e.g,e.b),3),r=n[0],o=n[1],i=n[2];if(t.saturation){var s=Math.sqrt(o*o+i*i),l=p(s,t.saturation);0==s?(o=0,i=0):(o*=l/s,i*=l/s)}t.lightness&&(r=100*p(r/100,t.lightness));var c=a(g(r,o,i),3);return{r:c[0],g:c[1],b:c[2]}}function f(e,t){return e?("string"==typeof e&&(e=l.hexToRgb(e)),"object"==typeof e?(t&&(e=h(e,t)),"rgb("+e.r.toFixed(0)+","+e.g.toFixed(0)+","+e.b.toFixed(0)+")"):void 0):"rgb(0,0,0)"}function m(e){return null==e?{}:{stroke:e.strokeColor?f(e.strokeColor,e.colorFilter):"none",strokeOpacity:null!=e.strokeOpacity?e.strokeOpacity:1,strokeWidth:null!=e.strokeWidth?e.strokeWidth:1,strokeLinecap:null!=e.strokeLinecap?e.strokeLinecap:"round",strokeLinejoin:null!=e.strokeLinejoin?e.strokeLinejoin:"round",fill:e.fillColor?f(e.fillColor,e.colorFilter):"none",fillOpacity:null!=e.fillOpacity?e.fillOpacity:1,textAnchor:null!=e.textAnchor?e.textAnchor:"start",opacity:null!=e.opacity?e.opacity:1,strokeDasharray:null!=e.strokeDasharray?e.strokeDasharray:null}}t.applyColorFilter=h,t.renderColor=f,t.renderStyle=m;var y={M:function(e){return"M "+c.toSVGNumber(e[0])+","+c.toSVGNumber(-e[1])},L:function(e){return"L "+c.toSVGNumber(e[0])+","+c.toSVGNumber(-e[1])},C:function(e){return"C "+c.toSVGNumber(e[0])+","+c.toSVGNumber(-e[1])+","+c.toSVGNumber(e[2])+","+c.toSVGNumber(-e[3])+","+c.toSVGNumber(e[4])+","+c.toSVGNumber(-e[5])},Q:function(e){return"Q "+c.toSVGNumber(e[0])+","+c.toSVGNumber(-e[1])+","+c.toSVGNumber(e[2])+","+c.toSVGNumber(-e[3])},A:function(e){return"A "+c.toSVGNumber(e[0])+","+c.toSVGNumber(e[1])+","+c.toSVGNumber(e[2])+","+c.toSVGNumber(e[3])+","+c.toSVGNumber(e[4])+","+c.toSVGNumber(e[5])+","+c.toSVGNumber(-e[6])},Z:function(){return"Z"}};function I(e){return e.map((function(e){return y[e.cmd](e.args)})).join(" ")}function C(e){return e?Math.abs(e.angle)<1e-7?"translate("+c.toSVGNumber(e.x)+","+c.toSVGNumber(-e.y)+")":"translate("+c.toSVGNumber(e.x)+","+c.toSVGNumber(-e.y)+") rotate("+c.toSVGNumber(-e.angle)+")":null}t.renderSVGPath=I,t.renderTransform=C;var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pathID=l.uniqueID(),t}return o(t,e),t.prototype.render=function(){return s.createElement("g",null,s.createElement("defs",null,s.createElement("path",{id:this.pathID,fill:"none",stroke:"red",d:I(this.props.cmds)})),s.createElement("text",{style:i(i({},this.props.style),{textAnchor:this.props.align})},s.createElement("textPath",{href:"#"+this.pathID,startOffset:"start"==this.props.align?"0%":"middle"==this.props.align?"50%":"100%"},this.props.text)))},t}(s.PureComponent);function b(e,t){var n;if(!e)return null;t||(t={});var r=t.noStyle?null:m(t.styleOverride||e.style),o={};switch(e.selectable&&(r.cursor="pointer",r.pointerEvents="all",t.onClick&&(o.onClick=function(n){n.stopPropagation(),(e.selectable.enableSelection||void 0===e.selectable.enableSelection)&&t.onClick(e.selectable,n.nativeEvent)}),t.onMouseEnter&&(o.onMouseEnter=function(n){(e.selectable.enableTooltips||void 0===e.selectable.enableTooltips)&&t.onMouseEnter(e.selectable,n.nativeEvent)}),t.onMouseLeave&&(o.onMouseLeave=function(n){(e.selectable.enableTooltips||void 0===e.selectable.enableTooltips)&&t.onMouseLeave(e.selectable,n.nativeEvent)}),t.onContextMenu&&(o.onContextMenu=function(n){n.stopPropagation(),(e.selectable.enableContextMenu||void 0===e.selectable.enableContextMenu)&&t.onContextMenu(e.selectable,n.nativeEvent)})),e.interactable&&(e.interactable.onClick&&(o.onClick=e.interactable.onClick),e.interactable.onMousedown&&(o.onMouseDown=e.interactable.onMousedown),e.interactable.onMouseup&&(o.onMouseUp=e.interactable.onMouseup),e.interactable.onMousewheel&&(o.onWheel=e.interactable.onMousewheel),e.interactable.onMousemove&&(o.onMouseMove=e.interactable.onMousemove)),e.type){case"rect":var a=e;return s.createElement("rect",i({key:t.key},o,{className:t.className||null,style:r,x:Math.min(a.x1,a.x2),y:-Math.max(a.y1,a.y2),width:Math.abs(a.x1-a.x2),height:Math.abs(a.y1-a.y2),rx:a.rx,ry:a.ry,transform:"rotate("+(null!==(n=a.rotation)&&void 0!==n?n:0)+")"}));case"circle":var d=e;return s.createElement("circle",i({key:t.key},o,{className:t.className||null,style:r,cx:d.cx,cy:-d.cy,r:d.r}));case"ellipse":var g=e;return s.createElement("ellipse",i({key:t.key},o,{className:t.className||null,style:r,cx:(g.x1+g.x2)/2,cy:-(g.y1+g.y2)/2,rx:Math.abs(g.x1-g.x2)/2,ry:Math.abs(g.y1-g.y2)/2}));case"line":var p=e;return s.createElement("line",i({key:t.key},o,{className:t.className||null,style:r,x1:p.x1,y1:-p.y1,x2:p.x2,y2:-p.y2}));case"polygon":var h=e;return s.createElement("polygon",i({key:t.key},o,{className:t.className||null,style:r,points:h.points.map((function(e){return c.toSVGNumber(e.x)+","+c.toSVGNumber(-e.y)})).join(" ")}));case"path":var f=e,y=I(f.cmds),v=f.beginArrowType!=A.ArrowType.NO_ARROW?"url(#"+f.style.startArrowColorId+")":null,B=f.endArrowType!=A.ArrowType.NO_ARROW?"url(#"+f.style.endArrowColorId+")":null;return s.createElement("path",i({key:t.key},o,{className:t.className||null,style:r,d:y,transform:f.transform,markerEnd:B,markerStart:v}));case"text-on-path":var M=e;return r.fontFamily=M.fontFamily,r.fontSize=M.fontSize+"px",s.createElement(E,{text:M.text,style:r,cmds:M.pathCmds,align:M.align});case"text":M=e;r.fontFamily=M.fontFamily,r.fontSize=M.fontSize+"px";var D=M.style.backgroundColor?"url(#"+M.style.backgroundColorId+")":null;if("none"!=r.stroke){var x=l.shallowClone(r);x.fill=r.stroke;var w=s.createElement("text",i({},o,{className:t.className||null,style:x,x:M.cx,y:-M.cy,filter:D}),M.text);r.stroke="none";var Q=s.createElement("text",i({},o,{className:t.className||null,style:r,x:M.cx,y:-M.cy}),M.text);return s.createElement("g",{key:t.key},w,Q)}return s.createElement("text",i({key:t.key},o,{className:t.className||null,style:r,x:M.cx,y:-M.cy,filter:D}),M.text);case"image":var S=e,N=null;switch(S.mode){case"letterbox":N="meet";break;case"stretch":N="none"}return s.createElement("image",i({key:t.key},o,{className:t.className||null,style:r,preserveAspectRatio:N,xlinkHref:t.externalResourceResolver?t.externalResourceResolver(S.src):S.src,x:S.x,y:-S.y-S.height,width:S.width,height:S.height}));case"chart-container":var k=e,T=t.selection?{isSelected:function(e,n){var r=n.map((function(e){return k.selectable.rowIndices[e]}));return t.selection.isSelected(k.selectable.plotSegment.table,r)}}:null,j=function(e){return e?function(t,n){e(null==t?k.selectable:{plotSegment:k.selectable.plotSegment,glyphIndex:k.selectable.glyphIndex,rowIndices:t.rowIndices.map((function(e){return k.selectable.rowIndices[e]}))},n)}:null};return s.createElement(u.ChartComponent,{key:t.key,chart:k.chart,dataset:k.dataset,width:k.width,height:k.height,rootElement:"g",sync:t.chartComponentSync,selection:T,onGlyphClick:j(t.onClick),onGlyphMouseEnter:j(t.onMouseEnter),onGlyphMouseLeave:j(t.onMouseLeave),rendererOptions:{chartComponentSync:t.chartComponentSync,externalResourceResolver:t.externalResourceResolver}});case"group":var L=e;return s.createElement("g",i({transform:C(L.transform),key:L.key||t.key,style:{opacity:L.style&&null!=L.style.opacity?L.style.opacity:1}},o),L.elements.map((function(e,n){return b(e,{key:"m"+n,chartComponentSync:t.chartComponentSync,externalResourceResolver:t.externalResourceResolver,onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,selection:t.selection})})))}}t.renderSVGDefs=function e(t){var n;if(!t)return null;switch(t.type){case"text":var r=t;return r.style.backgroundColor?s.createElement("filter",{x:"0",y:"0",width:"1",height:"1",id:r.style.backgroundColorId},s.createElement("feFlood",{floodColor:f(r.style.backgroundColor,r.style.colorFilter),result:"bg","flood-opacity":"0"}),s.createElement("feMerge",null,s.createElement("feMergeNode",{in:"bg"}),s.createElement("feMergeNode",{in:"SourceGraphic"}))):null;case"path":var o=t;return s.createElement(s.Fragment,null,function(e){var t;switch(e.endArrowType){case A.ArrowType.NO_ARROW:return;case A.ArrowType.DIAMOND_ARROW:t=s.createElement("path",{d:"M 5 0 L 10 5 L 5 10 L 0 5 z",fill:f(e.style.strokeColor,e.style.colorFilter)});break;case A.ArrowType.OVAL_ARROW:t=s.createElement("circle",{cx:"5",cy:"5",r:"5",fill:f(e.style.strokeColor,e.style.colorFilter)});break;case A.ArrowType.ARROW:default:t=s.createElement("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:f(e.style.strokeColor,e.style.colorFilter)})}return s.createElement("marker",{id:e.style.endArrowColorId,viewBox:"0 0 10 10",refX:"9",refY:"5",markerUnits:"strokeWidth",markerWidth:"10",markerHeight:"10",orient:"auto"},t)}(o),function(e){var t;switch(e.beginArrowType){case A.ArrowType.NO_ARROW:return;case A.ArrowType.DIAMOND_ARROW:t=s.createElement("path",{d:"M 5 0 L 10 5 L 5 10 L 0 5 z",fill:f(e.style.strokeColor,e.style.colorFilter)});break;case A.ArrowType.OVAL_ARROW:t=s.createElement("circle",{cx:"5",cy:"5",r:"5",fill:f(e.style.strokeColor,e.style.colorFilter)});break;case A.ArrowType.ARROW:default:t=s.createElement("path",{d:"M 10 0 L 10 10 L 0 5 z",fill:f(e.style.strokeColor,e.style.colorFilter)})}return s.createElement("marker",{id:e.style.startArrowColorId,viewBox:"0 0 10 10",refX:"1",refY:"5",markerUnits:"strokeWidth",markerWidth:"10",markerHeight:"10",orient:"auto"},t)}(o));case"group":var i=t;return s.createElement(s.Fragment,null,null===(n=i.elements)||void 0===n?void 0:n.map((function(t,n){return s.createElement(s.Fragment,{key:"SVGDefs-"+n},e(t))})))}},t.renderGraphicalElementSVG=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return b(this.props.element)},t}(s.PureComponent);t.GraphicalElementDisplay=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ReorderListView=t.ObjectListEditor=void 0;var s=n(0),l=n(13),c=n(5),u=n(19),A=n(14),d=n(32),g=n(37),p=n(9),h=n(40),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.tokens=[],this.tokens.push(this.store.addListener(g.AppStore.EVENT_GRAPHICS,(function(){return e.forceUpdate()}))),this.tokens.push(this.store.addListener(g.AppStore.EVENT_SELECTION,(function(){return e.forceUpdate()})))},t.prototype.componentWillUnmount=function(){var e,t;try{for(var n=i(this.tokens),r=n.next();!r.done;r=n.next()){r.value.remove()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.renderChart=function(){var e=this,t=this.store.chart,n=this.store.currentSelection;return s.createElement("div",null,s.createElement("div",{tabIndex:0,className:p.classNames("el-object-item",["is-active",null==n]),onClick:function(){e.dispatch(new u.Actions.ClearSelection)},onKeyPress:function(t){"Enter"===t.key&&e.dispatch(new u.Actions.ClearSelection)}},s.createElement(A.SVGImageIcon,{url:l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(t.classID).iconPath)}),s.createElement("span",{className:"el-text"},t.properties.name)),s.createElement(m,{enabled:!0,onReorder:function(t,n){e.dispatch(new u.Actions.ReorderChartElement(t,n))}},t.elements.map((function(t){return s.createElement("div",{tabIndex:0,className:p.classNames("el-object-item",["is-active",n instanceof g.ChartElementSelection&&n.chartElement==t]),onClick:function(){e.dispatch(new u.Actions.SelectChartElement(t)),e.dispatch(new u.Actions.SearchUpdated(""))},onKeyPress:function(n){"Enter"===n.key&&(e.dispatch(new u.Actions.SelectChartElement(t)),e.dispatch(new u.Actions.SearchUpdated("")))},key:t._id},s.createElement(A.SVGImageIcon,{url:l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(t.classID).iconPath)}),s.createElement("span",{className:"el-text"},t.properties.name),s.createElement(h.Button,{icon:t.properties.visible?"general/eye":"general/eye-faded",title:"Toggle visibility",active:!1,onClick:function(){e.dispatch(new u.Actions.SetObjectProperty(t,"visible",null,!t.properties.visible,!0))}}),s.createElement(h.Button,{icon:"general/eraser",title:"Remove",active:!1,onClick:function(){e.dispatch(new u.Actions.DeleteChartElement(t))}}))}))))},t.prototype.renderGlyph=function(e){var t=this,n=this.store.currentSelection;return s.createElement("div",{key:e._id},s.createElement("div",{tabIndex:0,className:p.classNames("el-object-item",["is-active",n instanceof g.GlyphSelection&&n.glyph==e]),onClick:function(){t.dispatch(new u.Actions.SelectGlyph(null,e))},onKeyPress:function(n){"Enter"===n.key&&t.dispatch(new u.Actions.SelectGlyph(null,e))}},s.createElement(A.SVGImageIcon,{url:l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(e.classID).iconPath)}),s.createElement("span",{className:"el-text"},e.properties.name)),s.createElement(m,{enabled:!0,onReorder:function(n,r){t.dispatch(new u.Actions.ReorderGlyphMark(e,n+1,r+1))}},e.marks.filter((function(e){return"mark.anchor"!=e.classID})).map((function(r){return s.createElement("div",{tabIndex:0,className:p.classNames("el-object-item",["is-active",n instanceof g.MarkSelection&&n.glyph==e&&n.mark==r]),key:r._id,onClick:function(){t.dispatch(new u.Actions.SelectMark(null,e,r))},onKeyPress:function(n){"Enter"===n.key&&t.dispatch(new u.Actions.SelectMark(null,e,r))}},s.createElement(A.SVGImageIcon,{url:l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(r.classID).iconPath)}),s.createElement("span",{className:"el-text"},r.properties.name),s.createElement(h.Button,{icon:r.properties.visible?"general/eye":"general/eye-faded",title:"Toggle visibility",active:!1,onClick:function(){t.dispatch(new u.Actions.SetObjectProperty(r,"visible",null,!r.properties.visible,!0))}}),s.createElement(h.Button,{icon:"general/eraser",active:!1,title:"Remove",onClick:function(){t.dispatch(new u.Actions.RemoveMarkFromGlyph(e,r))}}))}))))},t.prototype.render=function(){var e=this,t=this.store.chart;return s.createElement("div",{className:"charticulator__object-list-editor"},this.renderChart(),t.glyphs.map((function(t){return e.renderGlyph(t)})))},t}(d.ContextedComponent);t.ObjectListEditor=f;var m=function(e){function t(t){var n=e.call(this,t)||this;return n.container2Index=new WeakMap,n.index2Container=new Map,n.state={reordering:!1,dragIndex:null,dropIndex:null},n}return o(t,e),t.prototype.getItemAtPoint=function(e,t){for(var n,r,o=document.elementFromPoint(e,t);o;){if(this.container2Index.has(o)){var s=(t-(f=o.getBoundingClientRect()).top)/f.height;return[this.container2Index.get(o),s]}o=o.parentElement}var l=null,c=null,u=null,A=null;try{for(var d=i(this.index2Container.entries()),g=d.next();!g.done;g=d.next()){var p=a(g.value,2),h=p[0],f=p[1].getBoundingClientRect();(null==l||l>f.top)&&(l=f.top,u=h),(null==c||c<f.top+f.height)&&(c=f.top+f.height,A=h)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return t<l?[u,0]:t>c?[A,1]:null},t.prototype.componentDidMount=function(){var e=this;if(this.props.enabled){var t=new Hammer(this.container);this.hammer=t,t.add(new Hammer.Pan),t.on("panstart",(function(t){var n=t.center.x-t.deltaX,r=t.center.y-t.deltaY,o=e.getItemAtPoint(n,r);null!=o&&e.setState({reordering:!0,dragIndex:o[0],dropIndex:o})})),t.on("pan",(function(t){var n=t.center.x,r=t.center.y,o=e.getItemAtPoint(n,r);e.setState({reordering:!0,dropIndex:o})})),t.on("panend",(function(t){if(e.state.reordering&&e.state.dropIndex){if(e.props.restrict){var n=t.target.getBoundingClientRect(),r=t.center;if(r.x<n.left||r.x>n.right||r.y<n.top||r.y>n.bottom)return void e.setState({reordering:!1,dragIndex:null,dropIndex:null})}var o=e.state.dragIndex,i=e.state.dropIndex[0]+(e.state.dropIndex[1]>.5?1:0);e.setState({reordering:!1,dragIndex:null,dropIndex:null}),e.props.onReorder(o,i)}}))}},t.prototype.componentWillUnmount=function(){this.hammer&&this.hammer.destroy()},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"charticulator__reorder-list-view",ref:function(t){return e.container=t}},s.Children.map(this.props.children,(function(t,n){return s.createElement("div",{className:"charticulator__reorder-list-view-item",ref:function(t){t?(e.container2Index.set(t,n),e.index2Container.set(n,t)):e.index2Container.delete(n)}},t,e.state.reordering&&e.state.dropIndex&&e.state.dropIndex[0]==n?s.createElement("div",{className:p.classNames("charticulator__reorder-list-view-item-hint",["is-top",e.state.dropIndex[1]<.5])}):null,e.state.reordering&&e.state.dragIndex==n?s.createElement("div",{className:"charticulator__reorder-list-view-item-drag-hint"}):null)})))},t.ReorderArray=function(e,t,n){var r=e.splice(t,1)[0];t<n?e.splice(n-1,0,r):e.splice(n,0,r)},t}(s.Component);t.ReorderListView=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(137);function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Object(r.a)(e,e[n],t[n]))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(60),o=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,o,i){var a;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var s=document.createEvent("HTMLEvents");s.initEvent(n,i||!1,!0),Object(r.a)(s,o),a=t.dispatchEvent(s)}else if("undefined"!=typeof document&&document.createEventObject){var l=document.createEventObject(o);t.fireEvent("on"+n,l)}}else for(;t&&!1!==a;){var c=t.__events__,u=c?c[n]:null;if(u)for(var A in u)if(u.hasOwnProperty(A))for(var d=u[A],g=0;!1!==a&&g<d.length;g++){var p=d[g];p.objectCallback&&(a=p.objectCallback.call(p.parent,o))}t=i?t.parent:null}return a},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if(!(e&&e!==i.target||t&&t!==i.eventName||n&&n!==i.callback||"boolean"==typeof r&&r!==i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}()},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintSolver=t.ConstraintPlugin=t.ConstraintStrength=void 0,function(e){e[e.HARD=1]="HARD",e[e.STRONG=2]="STRONG",e[e.MEDIUM=3]="MEDIUM",e[e.WEAK=4]="WEAK",e[e.WEAKER=5]="WEAKER"}(t.ConstraintStrength||(t.ConstraintStrength={}));var o=function(){};t.ConstraintPlugin=o;var i=function(){function e(){this.plugins=[]}return e.prototype.attrs=function(e,t){var n=this;return t.map((function(t){return n.attr(e,t)}))},e.prototype.getLinear=function(){for(var e,t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=0;try{for(var a=r(n),s=a.next();!s.done;s=a.next()){var l=s.value;i+=l[0]*this.getValue(l[1])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i},e.prototype.addEquals=function(e,t,n){this.addLinear(e,0,[[1,t],[-1,n]])},e.prototype.addEqualToConstant=function(e,t,n){this.addLinear(e,n,[[-1,t]])},e.prototype.addPlugin=function(e){this.plugins.push(e)},e.prototype.applyPlugins=function(){this.plugins.forEach((function(e){return e.apply()}))},e}();t.ConstraintSolver=i},function(e,t,n){
/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=[];
/*!
 * Chai version
 */t.version="4.2.0",
/*!
 * Assertion Error
 */
t.AssertionError=n(216);
/*!
 * Utils for plugins (not exported)
 */
var o=n(363);t.use=function(e){return~r.indexOf(e)||(e(t,o),r.push(e)),t},
/*!
 * Utility Functions
 */
t.util=o;
/*!
 * Configuration
 */
var i=n(86);t.config=i;
/*!
 * Primary `Assertion` prototype
 */
var a=n(380);t.use(a);
/*!
 * Core Assertions
 */
var s=n(381);t.use(s);
/*!
 * Expect interface
 */
var l=n(382);t.use(l);
/*!
 * Should interface
 */
var c=n(383);t.use(c);
/*!
 * Assert interface
 */
var u=n(384);t.use(u)},function(e,t){
/*!
 * Chai - transferFlags utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));for(var o in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(t.__flags[o]=r[o])}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalView=t.PopupView=t.PopupContainer=t.PopupController=t.PopupContext=t.getAlignment=t.PopupAlignment=void 0;var a,s=n(0),l=n(5),c=n(9),u=n(14);!function(e){e.Inner="inner",e.Outer="outer",e.StartInner="start-inner",e.StartOuter="start-outer",e.EndInner="end-inner",e.EndOuter="end-outer"}(a=t.PopupAlignment||(t.PopupAlignment={})),t.getAlignment=function(e){var t,n=!1;return window.innerWidth-e.getBoundingClientRect().right<500&&(t=a.StartOuter,n=!0),{alignLeft:n,alignX:t}};var A=new WeakMap,d=new WeakSet;var g=function(e){function t(t,n,r){var o=e.call(this)||this;return o.isClosed=!1,o.children=[],o.id=t,o.options=r,r.parent?(o.parent=r.parent,r.parent.children.push(o)):o.parent=null,o.element=n(o),d.add(o),o}return o(t,e),t.prototype.close=function(){var e,t;try{for(var n=i(this.children),r=n.next();!r.done;r=n.next()){r.value.close()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}if(this.isClosed=!0,this.parent){var o=this.parent.children.indexOf(this);o>=0&&this.parent.children.splice(o,1)}this.emit("close")},t.prototype.traverse=function(e){var t,n;e(this);try{for(var r=i(this.children),o=r.next();!o.done;o=r.next()){o.value.traverse(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t}(l.EventEmitter);t.PopupContext=g;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentID=0,t.rootPopup=null,t.currentModal=null,t}return o(t,e),t.prototype.traverse=function(e){this.rootPopup&&this.rootPopup.traverse(e)},t.prototype.popupAt=function(e,t){var n=this;null==t.alignX&&(t.alignX=a.StartInner),null==t.alignY&&(t.alignY=a.Outer),!t.parent&&t.anchor&&(t.parent=function(e){for(;e;){if(e instanceof HTMLDivElement&&A.has(e))return A.get(e);e=e.parentElement}}(t.anchor));var r=new g("#"+(this.currentID++).toString(),e,t);t.parent||(this.rootPopup=r),r.addListener("close",(function(){n.rootPopup==r&&(n.rootPopup=null),n.emit("changed")})),this.emit("changed")},t.prototype.showModal=function(e,t){var n=this,r=new g("#"+(this.currentID++).toString(),e,t);this.reset(),this.currentModal=r,r.addListener("close",(function(){n.currentModal=null,n.emit("changed")})),this.emit("changed")},t.prototype.reset=function(){this.rootPopup&&(this.rootPopup.close(),this.rootPopup=null),this.currentModal&&(this.currentModal.close(),this.currentModal=null)},t.prototype.resetPopups=function(){this.rootPopup&&(this.rootPopup.close(),this.rootPopup=null)},t}(l.EventEmitter);t.PopupController=p;var h=function(e){function t(t){var n=e.call(this,t)||this;return n.onKeyDown=n.onKeyDown.bind(n),n}return o(t,e),t.prototype.onKeyDown=function(e){if(e.target==document.body){var t="";e.shiftKey&&(t="shift-"+t),e.ctrlKey&&(t="ctrl-"+t),"escape"==(""+t+e.key).toLowerCase()&&(this.props.controller.rootPopup?this.props.controller.resetPopups():this.props.controller.reset())}},t.prototype.componentDidMount=function(){var e=this;this.token=this.props.controller.addListener("changed",(function(){e.forceUpdate()})),window.addEventListener("keydown",this.onKeyDown),setTimeout((function(){e.popupContainer&&e.popupContainer.focus()}),100)},t.prototype.componentWillUnmount=function(){this.token.remove(),window.removeEventListener("keydown",this.onKeyDown)},t.prototype.render=function(){var e=this;if(this.props.controller.currentModal){var t=this.props.controller.currentModal;return s.createElement("div",{tabIndex:0,className:"popup-container popup-container-modal",style:{position:"fixed",left:0,right:0,top:0,bottom:0,pointerEvents:"all"},onMouseDown:function(){e.props.controller.reset()},ref:function(t){return e.popupContainer=t}},t.element,this.renderPopups())}return this.renderPopups()},t.prototype.renderPopups=function(){var e=this,t=[];return this.props.controller.traverse((function(e){e.isClosed||t.push(e)})),0==t.length?s.createElement("div",null):s.createElement("div",{tabIndex:0,className:"popup-container",style:{position:"fixed",left:0,right:0,top:0,bottom:0,pointerEvents:"all"},ref:function(t){return e.popupContainer=t},onMouseDown:function(){e.props.controller.resetPopups()}},t.map((function(e){return s.createElement("div",{key:e.id,ref:function(t){t&&A.set(t,e)}},e.element)})))},t}(s.Component);t.PopupContainer=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){e.popupContainer&&e.popupContainer.focus()}),100)},t.prototype.render=function(){var e=this,t=this.props.context,n=t.options.anchor.getBoundingClientRect(),r={position:"absolute"},o=t.options.alignX,l=t.options.alignY;switch(t.options.alignX){case"inner":(n.left+n.right)/2<window.innerWidth/2?(r.left=n.left+"px",o=a.StartInner):(r.right=window.innerWidth-(n.left+n.width)+"px",o=a.EndInner);break;case"outer":(n.left+n.right)/2>window.innerWidth/2?(r.right=window.innerWidth-n.left+0+"px",o=a.StartOuter):(r.left=n.left+n.width+0+"px",o=a.EndOuter);break;case"start-inner":r.left=n.left+"px";break;case"end-inner":r.right=window.innerWidth-(n.left+n.width)+"px";break;case"start-outer":r.right=window.innerWidth-n.left+0+"px";break;case"end-outer":r.left=n.left+n.width+0+"px"}switch(t.options.alignY){case"inner":(n.top+n.bottom)/2<window.innerHeight/2?(r.top=n.top+"px",l=a.StartInner):(r.bottom=window.innerHeight-(n.top+n.height)+"px",l=a.EndInner);break;case"outer":(n.top+n.bottom)/2>window.innerHeight/2?(r.bottom=window.innerHeight-n.top+0+"px",l=a.StartOuter):(r.top=n.top+n.height+0+"px",l=a.EndOuter);break;case"start-inner":r.top=n.top+"px";break;case"end-inner":r.bottom=window.innerHeight-(n.top+n.height)+"px";break;case"start-outer":r.bottom=window.innerHeight-n.top+0+"px";break;case"end-outer":r.top=n.top+n.height+0+"px"}return null!=this.props.width&&(r.width=this.props.width+"px"),s.createElement("div",{tabIndex:0,ref:function(t){return e.popupContainer=t},className:this.props.className?this.props.className+" popup-view-container":"popup-view-container",style:r,onMouseDownCapture:function(){d=new WeakSet},onMouseDown:function(t){var n,r;t.stopPropagation();try{for(var o=i(e.props.context.children),a=o.next();!a.done;a=o.next()){var s=a.value;d.has(s)||s.close()}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}},s.createElement("div",{className:c.classNames("popup-view",["popup-x-top-left","start-inner"==o&&"end-outer"==l],["popup-x-bottom-left","start-inner"==o&&"start-outer"==l],["popup-x-top-right","end-inner"==o&&"end-outer"==l],["popup-x-bottom-right","end-inner"==o&&"start-outer"==l],["popup-y-top-left","start-outer"==o&&"start-inner"==l],["popup-y-top-right","end-outer"==o&&"start-inner"==l],["popup-y-bottom-left","start-outer"==o&&"end-inner"==l],["popup-y-bottom-right","end-outer"==o&&"end-inner"==l])},s.createElement(u.TelemetryContext.Consumer,null,(function(t){return s.createElement(u.ErrorBoundary,{telemetryRecorder:t},e.props.children)}))))},t}(s.Component);t.PopupView=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props.type||"default";return s.createElement("div",{className:"charticulator__modal-"+e,onMouseDown:function(e){e.stopPropagation()}},s.createElement("div",{className:"charticulator__modal-"+e+"-container"},this.props.children))},t}(s.Component);t.ModalView=m},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));function r(e){console&&console.warn&&console.warn(e)}function o(e){e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},i={},a=0,s=e;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var A in u)u.hasOwnProperty(A)&&(i.hasOwnProperty(A)?i[A].push(u[A]):i[A]=[u[A]]);continue}var d=n[c],g=l[c];n[c]=void 0===d?g:Object(r.e)(Array.isArray(d)?d:[d],Array.isArray(g)?g:[g])}}if(Object.keys(i).length>0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(i.hasOwnProperty(e)){var t=i[e];p[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var A in i)h(A)}return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));function r(){}function o(e,t){var n=new r;if(e instanceof r)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var o,i=-1,a=e.length;if(null==t)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t(o=e[i],i,e),o)}else if(e)for(var s in e)n.set(s,e[s]);return n}r.prototype=o.prototype={constructor:r,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var i=o;function a(){}var s=i.prototype;function l(e,t){var n=new a;if(e instanceof a)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}a.prototype=l.prototype={constructor:a,has:s.has,add:function(e){return this["$"+(e+="")]=e,this},remove:s.remove,clear:s.clear,values:s.keys,size:s.size,empty:s.empty,each:s.each}},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.rawColumnPostFix=t.tableTypeName=t.TableType=t.DataKind=t.DataType=void 0;var o,i=n(7),a=n(6);Object.defineProperty(t,"DataType",{enumerable:!0,get:function(){return a.DataType}}),Object.defineProperty(t,"DataKind",{enumerable:!0,get:function(){return a.DataKind}}),function(e){e.Main="Main",e.Links="Links",e.ParentMain="ParentMain",e.ParentLinks="ParentLinks",e.Image="Image"}(o=t.TableType||(t.TableType={})),t.tableTypeName=((r={})[o.Main]=i.strings.dataset.tableTitleColumns,r[o.Links]=i.strings.dataset.tableTitleLinks,r[o.Image]=i.strings.dataset.tableTitleImages,r[o.ParentLinks]="",r[o.ParentMain]="",r),t.rawColumnPostFix="_raw"},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.Region2DConstraintBuilder=t.SublayoutGroup=t.DodgingFitters=t.CrossFitter=t.PlotSegmentAxisPropertyNames=t.GridStartPosition=t.GridDirection=t.SublayoutAlignment=t.Region2DSublayoutType=void 0;var a,s,l,c,u,A=n(26),d=n(24),g=n(42),p=n(7);!function(e){e.Overlap="overlap",e.DodgeX="dodge-x",e.DodgeY="dodge-y",e.Grid="grid",e.Packing="packing",e.Jitter="jitter"}(a=t.Region2DSublayoutType||(t.Region2DSublayoutType={})),function(e){e.Start="start",e.Middle="middle",e.End="end"}(s=t.SublayoutAlignment||(t.SublayoutAlignment={})),function(e){e.X="x",e.Y="y"}(l=t.GridDirection||(t.GridDirection={})),function(e){e.LeftTop="LT",e.RightTop="RT",e.LeftBottom="LB",e.RigtBottom="RB"}(c=t.GridStartPosition||(t.GridStartPosition={})),function(e){e.xData="xData",e.yData="yData",e.axis="axis"}(u=t.PlotSegmentAxisPropertyNames||(t.PlotSegmentAxisPropertyNames={}));var h=function(){function e(e,t){this.solver=e,this.mode=t,this.candidates=[]}return e.prototype.add=function(e,t){return this.addComplex(e,[[1,t]])},e.prototype.addComplex=function(e,t,n){void 0===n&&(n=0),this.candidates.push([e,t,n])},e.prototype.addConstraint=function(e){var t,n;if(0!=this.candidates.length)try{for(var o=r(this.candidates),i=o.next();!i.done;i=o.next()){var a=i.value;"min"==this.mode?this.solver.addSoftInequality(e,-a[2],[[1,a[0]]],a[1]):this.solver.addSoftInequality(e,a[2],a[1],[[1,a[0]]])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e}();t.CrossFitter=h;var f=function(){function e(e){this.xMin=new h(e,"min"),this.yMin=new h(e,"min"),this.xMax=new h(e,"max"),this.yMax=new h(e,"max")}return e.prototype.addConstraint=function(e){this.xMin.addConstraint(e),this.xMax.addConstraint(e),this.yMin.addConstraint(e),this.yMax.addConstraint(e)},e}();t.DodgingFitters=f;var m=function(){};t.SublayoutGroup=m;var y=function(){function e(e,t,n,r,o,i,a,s,l){this.plotSegment=e,this.config=t,this.x1Name=n,this.x2Name=r,this.y1Name=o,this.y2Name=i,this.solver=a,this.solverContext=s,this.chartStateManager=l}return e.prototype.getTableContext=function(){return this.plotSegment.parent.dataflow.getTable(this.plotSegment.object.table)},e.prototype.getExpression=function(e){return this.plotSegment.parent.dataflow.cache.parse(e)},e.prototype.groupMarksByCategories=function(e){for(var t,n,o=this,i=e.map((function(e){for(var t=new Map,n=0;n<e.categories.length;n++)t.set(e.categories[n],n);return{categories:e.categories,indexMap:t,stride:0,expression:o.getExpression(e.expression)}})),a=1,s=i.length-1;s>=0;s--){(f=i[s]).stride=a,a*=f.categories.length}var l=a,c=new Array(l);for(s=0;s<l;s++)c[s]=[];var u=this.plotSegment.state.dataRowIndices,A=this.getTableContext();for(s=0;s<u.length;s++){var d=A.getGroupedContext(u[s]),g=0;try{for(var p=(t=void 0,r(i)),h=p.next();!h.done;h=p.next()){var f,m=(f=h.value).expression.getStringValue(d);g+=f.indexMap.get(m)*f.stride}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}g==g&&c[g].push(s)}return c},e.prototype.orderMarkGroups=function(e){var t=this.plotSegment.object.properties.sublayout.order,n=this.plotSegment.state.dataRowIndices,r=this.getTableContext();if(null!=t&&t.expression)for(var o=this.getExpression(t.expression),i=function(e,t){var i=o.getValue(r.getGroupedContext(n[e])),a=o.getValue(r.getGroupedContext(n[t]));return i<a?-1:i>a?1:0},a=0;a<e.length;a++)e[a].group.sort(i);if(this.plotSegment.object.properties.sublayout.orderReversed)for(a=0;a<e.length;a++)e[a].group.reverse();return e},e.prototype.gapX=function(e,t){var n=this.solver,r=this.plotSegment.state,i=this.plotSegment.object.properties,a=r.attributes,s=o(n.attrs(a,["gapX",this.x1Name,this.x2Name]),3),l=s[0],c=s[1],u=s[2];n.addLinear(A.ConstraintStrength.HARD,t*(i.marginX2+i.marginX2),[[e-1,l]],[[t,u],[-t,c]])},e.prototype.gapY=function(e,t){var n=this.solver,r=this.plotSegment.state,i=this.plotSegment.object.properties,a=r.attributes,s=o(n.attrs(a,["gapY",this.y1Name,this.y2Name]),3),l=s[0],c=s[1],u=s[2];n.addLinear(A.ConstraintStrength.HARD,t*(i.marginX2+i.marginX2),[[e-1,l]],[[t,u],[-t,c]])},e.prototype.numericalMapping=function(e){var t=this.solver,n=this.plotSegment.state,r=this.plotSegment.object.properties,o=n.attributes,i=n.dataRowIndices,a=this.getTableContext();switch(e){case"x":this.numericalMappingX(r,t,o,n,a,i);break;case"y":this.numericalMappingY(r,t,o,n,a,i)}},e.prototype.numericalMappingY=function(e,t,n,i,a,s){var l,c,u,d,p=e.yData;if("numerical"==p.type){var h=o(t.attrs(n,[this.y1Name,this.y2Name]),2),f=h[0],m=h[1],y=this.getExpression(p.expression),I=g.getNumericalInterpolate(p);try{for(var C=r(i.glyphs.entries()),E=C.next();!E.done;E=C.next()){var b=o(E.value,2),v=b[0],B=b[1],M=a.getGroupedContext(s[v]),D=I(k=y.getNumberValue(M));t.addLinear(A.ConstraintStrength.HARD,(D-1)*e.marginY2+D*e.marginY1,[[1-D,f],[D,m]],[[1,t.attr(B.attributes,"y")]])}}catch(e){l={error:e}}finally{try{E&&!E.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}}if("categorical"==p.type){var x=o(t.attrs(n,[this.y1Name,this.y2Name,"gapY"]),3),w=(f=x[0],m=x[1],x[2]);y=this.getExpression(p.expression);try{for(var Q=r(i.glyphs.entries()),S=Q.next();!S.done;S=Q.next()){var N=o(S.value,2),k=(v=N[0],B=N[1],M=a.getGroupedContext(s[v]),y.getStringValue(M));this.gapY(p.categories.length,p.gapRatio);var T=p.categories.indexOf(k);t.addLinear(A.ConstraintStrength.HARD,(p.categories.length-T-.5)*e.marginY1-(T+.5)*e.marginY2,[[T+.5,m],[p.categories.length-T-.5,f],[-p.categories.length/2+T+.5,w]],[[p.categories.length,t.attr(B.attributes,"y")]])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(d=Q.return)&&d.call(Q)}finally{if(u)throw u.error}}}},e.prototype.numericalMappingX=function(e,t,n,i,a,s){var l,c,u,d,p=e.xData;if("numerical"==p.type){var h=o(t.attrs(n,[this.x1Name,this.x2Name]),2),f=h[0],m=h[1],y=this.getExpression(p.expression),I=g.getNumericalInterpolate(p);try{for(var C=r(i.glyphs.entries()),E=C.next();!E.done;E=C.next()){var b=o(E.value,2),v=b[0],B=b[1],M=a.getGroupedContext(s[v]),D=I(k=y.getNumberValue(M));t.addLinear(A.ConstraintStrength.HARD,(1-D)*e.marginX1-D*e.marginX2,[[1-D,f],[D,m]],[[1,t.attr(B.attributes,"x")]])}}catch(e){l={error:e}}finally{try{E&&!E.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}}if("categorical"==p.type){var x=o(t.attrs(n,[this.x1Name,this.x2Name,"gapX"]),3),w=(f=x[0],m=x[1],x[2]);y=this.getExpression(p.expression);try{for(var Q=r(i.glyphs.entries()),S=Q.next();!S.done;S=Q.next()){var N=o(S.value,2),k=(v=N[0],B=N[1],M=a.getGroupedContext(s[v]),y.getStringValue(M));this.gapX(p.categories.length,p.gapRatio);var T=p.categories.indexOf(k);t.addLinear(A.ConstraintStrength.HARD,(p.categories.length-T-.5)*e.marginX1-(T+.5)*e.marginX2,[[T+.5,m],[p.categories.length-T-.5,f],[-p.categories.length/2+T+.5,w]],[[p.categories.length,t.attr(B.attributes,"x")]])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(d=Q.return)&&d.call(Q)}finally{if(u)throw u.error}}}},e.prototype.groupMarksByCategoricalMapping=function(e){var t=this.plotSegment.object.properties;switch(e){case"x":var n=t.xData;return this.groupMarksByCategories([{categories:n.categories,expression:n.expression}]);case"y":n=t.yData;return this.groupMarksByCategories([{categories:n.categories,expression:n.expression}]);case"xy":var r=t.xData,o=t.yData;return this.groupMarksByCategories([{categories:r.categories,expression:r.expression},{categories:o.categories,expression:o.expression}])}},e.prototype.categoricalMapping=function(e,t){var n=this.solver,r=this.plotSegment.state.attributes,o=this.plotSegment.object.properties,i=this.groupMarksByCategoricalMapping(e);switch(e){case"x":this.categoricalMappingX(o,n,r,i,t);break;case"y":this.categoricalMappingY(o,n,r,i,t);break;case"xy":this.categoricalMappingXY(o,n,r,i,t)}},e.prototype.categoricalMappingXY=function(e,t,n,r,a){for(var s=e.xData,l=e.yData,c=o(t.attrs(n,[this.x1Name,this.x2Name,this.y1Name,this.y2Name]),4),u=c[0],d=c[1],p=c[2],h=c[3],f=g.getCategoricalAxis(s,this.config.xAxisPrePostGap,!1),m=g.getCategoricalAxis(l,this.config.yAxisPrePostGap,!0),y=[],I=0;I<l.categories.length;I++)for(var C=o(m.ranges[I],2),E=C[0],b=C[1],v=0;v<s.categories.length;v++){var B=o(f.ranges[v],2),M=B[0],D=B[1],x=[[M,d],[1-M,u]],w=[[D,d],[1-D,u]],Q=[[E,h],[1-E,p]],S=[[b,h],[1-b,p]],N=t.attr({value:t.getLinear.apply(t,i(x))},"value",{edit:!0}),k=t.attr({value:t.getLinear.apply(t,i(w))},"value",{edit:!0}),T=t.attr({value:t.getLinear.apply(t,i(Q))},"value",{edit:!0}),j=t.attr({value:t.getLinear.apply(t,i(S))},"value",{edit:!0});t.addLinear(A.ConstraintStrength.HARD,0,x,[[1,N]]),t.addLinear(A.ConstraintStrength.HARD,0,w,[[1,k]]),t.addLinear(A.ConstraintStrength.HARD,0,Q,[[1,T]]),t.addLinear(A.ConstraintStrength.HARD,0,S,[[1,j]]),y.push({group:r[v*l.categories.length+I],x1:N,y1:T,x2:k,y2:j})}this.applySublayout(y,"xy",a)},e.prototype.categoricalMappingY=function(e,t,n,r,a){for(var s=e.yData,l=o(t.attrs(n,[this.x1Name,this.x2Name,this.y1Name,this.y2Name]),4),c=l[0],u=l[1],d=l[2],p=l[3],h=g.getCategoricalAxis(s,this.config.yAxisPrePostGap,!0),f=[],m=0;m<s.categories.length;m++){var y=o(h.ranges[m],2),I=y[0],C=y[1],E=[[I,p],[1-I,d]],b=[[C,p],[1-C,d]],v=t.attr({value:t.getLinear.apply(t,i(E))},"value",{edit:!0}),B=t.attr({value:t.getLinear.apply(t,i(b))},"value",{edit:!0});t.addLinear(A.ConstraintStrength.HARD,0,E,[[1,v]]),t.addLinear(A.ConstraintStrength.HARD,0,b,[[1,B]]),f.push({group:r[m],x1:c,y1:v,x2:u,y2:B})}this.applySublayout(f,"y",a)},e.prototype.categoricalMappingX=function(e,t,n,r,a){for(var s=e.xData,l=o(t.attrs(n,[this.x1Name,this.x2Name,this.y1Name,this.y2Name]),4),c=l[0],u=l[1],d=l[2],p=l[3],h=g.getCategoricalAxis(s,this.config.xAxisPrePostGap,!1),f=[],m=0;m<s.categories.length;m++){var y=o(h.ranges[m],2),I=y[0],C=y[1],E=[[I,u],[1-I,c]],b=[[C,u],[1-C,c]],v=t.attr({value:t.getLinear.apply(t,i(E))},"value",{edit:!0}),B=t.attr({value:t.getLinear.apply(t,i(b))},"value",{edit:!0});t.addLinear(A.ConstraintStrength.HARD,0,E,[[1,v]]),t.addLinear(A.ConstraintStrength.HARD,0,b,[[1,B]]),f.push({group:r[m],x1:v,y1:d,x2:B,y2:p})}this.applySublayout(f,"x",a)},e.prototype.categoricalHandles=function(e,t){var n=[],r=this.plotSegment.object.properties,o=this.plotSegment.state.attributes[this.x1Name],i=this.plotSegment.state.attributes[this.y1Name],a=this.plotSegment.state.attributes[this.x2Name],s=this.plotSegment.state.attributes[this.y2Name];if(t){var l=this.groupMarksByCategoricalMapping(e),c="x"==e||"xy"==e?g.getCategoricalAxis(r.xData,this.config.xAxisPrePostGap,!1):null,A="y"==e||"xy"==e?g.getCategoricalAxis(r.yData,this.config.yAxisPrePostGap,!0):null;n=n.concat(this.sublayoutHandles(l.map((function(t,n){var r=n,l=n;return"xy"==e&&(r=n%c.ranges.length,l=Math.floor(n/c.ranges.length)),{group:t,x1:c?c.ranges[r][0]*(a-o)+o:o,y1:A?A.ranges[l][0]*(s-i)+i:i,x2:c?c.ranges[r][1]*(a-o)+o:a,y2:A?A.ranges[l][1]*(s-i)+i:s}})),!1,!1))}if("x"==e||"xy"==e)for(var d=r.xData,p=g.getCategoricalAxis(d,this.config.xAxisPrePostGap,!1),h=0;h<p.ranges.length-1;h++){var f=p.ranges[h][1];n.push({type:"gap",gap:{property:{property:u.xData,field:"gapRatio"},axis:g.AxisMode.X,reference:f*(a-o)+o,value:d.gapRatio,scale:p.gapScale*(a-o),span:[i,s]}})}if("y"==e||"xy"==e){d=r.yData;var m=g.getCategoricalAxis(d,this.config.yAxisPrePostGap,!0);for(h=0;h<m.ranges.length-1;h++){f=m.ranges[h][1];n.push({type:"gap",gap:{property:{property:u.yData,field:"gapRatio"},axis:g.AxisMode.Y,reference:f*(s-i)+i,value:d.gapRatio,scale:m.gapScale*(s-i),span:[o,a]}})}}return n},e.prototype.stacking=function(e){var t,n,i=this.solver,a=this.plotSegment.state,s=a.attributes,l=a.dataRowIndices,c=o(i.attrs(s,[this.x1Name,this.x2Name,this.y1Name,this.y2Name]),4),u=c[0],A=c[1],d=c[2],g=c[3],p=l.length,h=p<=36;try{for(var f=r(a.glyphs.entries()),m=f.next();!m.done;m=f.next()){var y=o(m.value,2),I=y[0],C=y[1];switch(e){case"x":this.stackingX(i,s,h,I,a,u,A,p,C);break;case"y":this.stackingY(i,s,h,I,a,d,g,p,C)}}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}switch(e){case"x":this.gapX(p,this.plotSegment.object.properties.xData.gapRatio);break;case"y":this.gapY(p,this.plotSegment.object.properties.yData.gapRatio)}},e.prototype.stackingY=function(e,t,n,r,i,a,s,l,c){var u=o(e.attrs(t,["gapY"]),1)[0];if(n){if(r>0){var d=e.attr(i.glyphs[r-1].attributes,"y2"),g=e.attr(i.glyphs[r].attributes,"y1");e.addLinear(A.ConstraintStrength.HARD,0,[[1,d],[-1,g],[1,u]])}if(0==r){g=e.attr(i.glyphs[r].attributes,"y1");e.addLinear(A.ConstraintStrength.HARD,0,[[1,a]],[[1,g]])}if(r==i.glyphs.length-1){var p=e.attr(i.glyphs[r].attributes,"y2");e.addLinear(A.ConstraintStrength.HARD,0,[[1,s]],[[1,p]])}}else{var h=(r+.5)/l;e.addLinear(A.ConstraintStrength.HARD,0,[[1-h,s],[h,a]],[[1,e.attr(c.attributes,"y")]]),e.addLinear(A.ConstraintStrength.WEAK,0,[[1,s],[-1,a]],[[l,e.attr(c.attributes,"height")],[l-1,u]])}},e.prototype.stackingX=function(e,t,n,r,i,a,s,l,c){var u=o(e.attrs(t,["gapX"]),1)[0];if(n){if(r>0){var d=e.attr(i.glyphs[r-1].attributes,"x2"),g=e.attr(i.glyphs[r].attributes,"x1");e.addLinear(A.ConstraintStrength.HARD,0,[[1,d],[-1,g],[1,u]])}if(0==r){g=e.attr(i.glyphs[r].attributes,"x1");e.addLinear(A.ConstraintStrength.HARD,0,[[1,a]],[[1,g]])}if(r==i.glyphs.length-1){var p=e.attr(i.glyphs[r].attributes,"x2");e.addLinear(A.ConstraintStrength.HARD,0,[[1,s]],[[1,p]])}}else{var h=(r+.5)/l;e.addLinear(A.ConstraintStrength.HARD,0,[[1-h,a],[h,s]],[[1,e.attr(c.attributes,"x")]]),e.addLinear(A.ConstraintStrength.WEAK,0,[[1,s],[-1,a]],[[l,e.attr(c.attributes,"width")],[l-1,u]])}},e.prototype.fitGroups=function(e,t){var n=this.solver,r=this.plotSegment.state,o=this.plotSegment.object.properties,i=new f(n),a=o.sublayout.align;e.forEach((function(e){for(var o=e.group.map((function(e){return r.glyphs[e]})),l=e.x1,c=e.y1,u=e.x2,d=e.y2,g=0;g<o.length;g++){var p=o[g];"x"!=t&&"xy"!=t||(a.x==s.Start?n.addEquals(A.ConstraintStrength.HARD,n.attr(p.attributes,"x1"),l):i.xMin.add(n.attr(p.attributes,"x1"),l),a.x==s.End?n.addEquals(A.ConstraintStrength.HARD,n.attr(p.attributes,"x2"),u):i.xMax.add(n.attr(p.attributes,"x2"),u),a.x==s.Middle&&n.addLinear(A.ConstraintStrength.HARD,0,[[1,n.attr(p.attributes,"x1")],[1,n.attr(p.attributes,"x2")]],[[1,l],[1,u]])),"y"!=t&&"xy"!=t||(a.y==s.Start?n.addEquals(A.ConstraintStrength.HARD,n.attr(p.attributes,"y1"),c):i.yMin.add(n.attr(p.attributes,"y1"),c),a.y==s.End?n.addEquals(A.ConstraintStrength.HARD,n.attr(p.attributes,"y2"),d):i.yMax.add(n.attr(p.attributes,"y2"),d),a.y==s.Middle&&n.addLinear(A.ConstraintStrength.HARD,0,[[1,n.attr(p.attributes,"y1")],[1,n.attr(p.attributes,"y2")]],[[1,c],[1,d]]))}})),i.addConstraint(A.ConstraintStrength.MEDIUM)},e.prototype.applySublayout=function(e,t,n){if(n&&"disabled"!=n.mode){this.orderMarkGroups(e);var r=this.plotSegment.object.properties;"x-only"==n.mode||"y-only"==n.mode?r.sublayout.type==a.Packing?this.sublayoutPacking(e,"x-only"==n.mode?g.AxisMode.X:g.AxisMode.Y):r.sublayout.type==a.Jitter?this.sublayoutJitter(e,"x-only"==n.mode?g.AxisMode.X:g.AxisMode.Y):this.fitGroups(e,t):(r.sublayout.type==a.Overlap&&this.fitGroups(e,"xy"),r.sublayout.type==a.DodgeX&&this.sublayoutDodging(e,l.X,n.xAxisPrePostGap),r.sublayout.type==a.DodgeY&&this.sublayoutDodging(e,l.Y,n.yAxisPrePostGap),r.sublayout.type==a.Grid&&this.sublayoutGrid(e),r.sublayout.type==a.Packing&&this.sublayoutPacking(e),r.sublayout.type==a.Jitter&&this.sublayoutJitter(e))}else this.fitGroups(e,t)},e.prototype.sublayoutDodging=function(e,t,n){var o,i,a=this,s=this.solver,l=this.plotSegment.state,c=this.plotSegment.object.properties,u=new f(s),d=c.sublayout.align,g=0;try{for(var p=r(e),h=p.next();!h.done;h=p.next()){var m=h.value;g=Math.max(g,m.group.length)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}var y=0,I=0;n?(y="x"==t?c.sublayout.ratioX/g:c.sublayout.ratioY/g,I=y/2):(y="x"==t?c.sublayout.ratioX/(g-1):c.sublayout.ratioY/(g-1),I=0),e.forEach((function(e){var n=e.group.map((function(e){return l.glyphs[e]})),r=e.x1,o=e.y1,i=e.x2,c=e.y2;if(0!=n.length){for(var g=0;g<n.length;g++){var p=n[g];if(g>0){var h=n[g-1];switch(t){case"x":s.addLinear(A.ConstraintStrength.HARD,0,[[y,i],[-y,r],[1,s.attr(h.attributes,"x2")],[-1,s.attr(p.attributes,"x1")]]);break;case"y":s.addLinear(A.ConstraintStrength.HARD,0,[[y,c],[-y,o],[1,s.attr(h.attributes,"y2")],[-1,s.attr(p.attributes,"y1")]])}}a.setFirstSublayoutDodgingDirection(t,d,s,p,o,u,c,r,i)}var f=n[0],m=n[n.length-1];switch(t){case"x":a.setSublayoutDodgingDirectionX(r,I,i,d,s,f,u,m);break;case"y":a.setSublayoutDodgingDirectionY(o,I,c,d,s,f,u,m)}}})),u.addConstraint(A.ConstraintStrength.MEDIUM)},e.prototype.setSublayoutDodgingDirectionY=function(e,t,n,r,o,i,a,s){var l=[[1,e],[t,n],[-t,e]],c=[[1,n],[t,e],[-t,n]];"start"==r.y?o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(i.attributes,"y1")]],l):a.yMin.addComplex(o.attr(i.attributes,"y1"),l),"end"==r.y?o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(s.attributes,"y2")]],c):a.yMax.addComplex(o.attr(s.attributes,"y2"),c),"middle"==r.y&&o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(i.attributes,"y1")],[1,o.attr(s.attributes,"y2")]],[[1,e],[1,n]])},e.prototype.setSublayoutDodgingDirectionX=function(e,t,n,r,o,i,a,s){var l=[[1,e],[t,n],[-t,e]],c=[[1,n],[t,e],[-t,n]];"start"==r.x?o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(i.attributes,"x1")]],l):a.xMin.addComplex(o.attr(i.attributes,"x1"),l),"end"==r.x?o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(s.attributes,"x2")]],c):a.xMax.addComplex(o.attr(s.attributes,"x2"),c),"middle"==r.x&&o.addLinear(A.ConstraintStrength.HARD,0,[[1,o.attr(i.attributes,"x1")],[1,o.attr(s.attributes,"x2")]],[[1,e],[1,n]])},e.prototype.setFirstSublayoutDodgingDirection=function(e,t,n,r,o,i,a,s,l){switch(e){case"x":"start"==t.y?n.addEquals(A.ConstraintStrength.HARD,n.attr(r.attributes,"y1"),o):i.yMin.add(n.attr(r.attributes,"y1"),o),"end"==t.y?n.addEquals(A.ConstraintStrength.HARD,n.attr(r.attributes,"y2"),a):i.yMax.add(n.attr(r.attributes,"y2"),a),"middle"==t.y&&n.addLinear(A.ConstraintStrength.HARD,0,[[1,n.attr(r.attributes,"y1")],[1,n.attr(r.attributes,"y2")]],[[1,o],[1,a]]);break;case"y":"start"==t.x?n.addEquals(A.ConstraintStrength.HARD,n.attr(r.attributes,"x1"),s):i.xMin.add(n.attr(r.attributes,"x1"),s),"end"==t.x?n.addEquals(A.ConstraintStrength.HARD,n.attr(r.attributes,"x2"),l):i.xMax.add(n.attr(r.attributes,"x2"),l),"middle"==t.x&&n.addLinear(A.ConstraintStrength.HARD,0,[[1,n.attr(r.attributes,"x1")],[1,n.attr(r.attributes,"x2")]],[[1,s],[1,l]])}},e.prototype.getGlyphPreSolveAttributes=function(e){return this.solverContext.getGlyphAttributes(this.plotSegment.object.glyph,this.plotSegment.object.table,e)},e.prototype.sublayoutGrid=function(e,t){var n=this,r=this.solver,o=this.plotSegment.state,i=this.plotSegment.object.properties,a=i.sublayout.grid.direction;null!=t&&(a=t);var s,l,c=i.sublayout.align.x,u=i.sublayout.align.y,d=new h(r,"min"),g=new h(r,"max"),p=new h(r,"min"),f=new h(r,"max"),m=0;switch(e.forEach((function(e){m<e.group.length&&(m=e.group.length)})),a){case"x":null!=i.sublayout.grid.xCount?(s=i.sublayout.grid.xCount,l=Math.ceil(m/s)):(s=Math.ceil(Math.sqrt(m)),l=Math.ceil(m/s));break;case"y":null!=i.sublayout.grid.yCount?(l=i.sublayout.grid.yCount,s=Math.ceil(m/l)):(l=Math.ceil(Math.sqrt(m)),s=Math.ceil(m/l));break;case"x1":s=m,l=1;break;case"y1":l=m,s=1}var y=s>1?i.sublayout.ratioX/(s-1):0,I=l>1?i.sublayout.ratioY/(l-1):0,C=i.sublayout.grid.gridStartPosition;e.forEach((function(e){var t,i,A=e.group.map((function(e){return o.glyphs[e]})),h=e.x1,m=e.y1,E=e.x2,b=e.y2;"x"==a||"x1"==a?(t=Math.min(A.length,s),i=Math.ceil(A.length/s)):(i=Math.min(A.length,l),t=Math.ceil(A.length/l)),n.addGlyphConstraints(A,a,s,u,t,i,l,c,y,E,h,I,b,m,r,d,g,p,f,C)})),d.addConstraint(A.ConstraintStrength.MEDIUM),g.addConstraint(A.ConstraintStrength.MEDIUM),p.addConstraint(A.ConstraintStrength.MEDIUM),f.addConstraint(A.ConstraintStrength.MEDIUM)},e.prototype.addGlyphConstraints=function(e,t,n,r,o,i,a,s,l,u,d,g,p,h,f,m,y,I,C,E){E!==c.LeftBottom&&E!==c.RigtBottom||(e=e.reverse());for(var b=0;b<e.length;b++){var v=void 0,B=void 0;"x"==t||"x1"==t?(v=b%n,"start"==r?(v=o-1-(e.length-1-b)%n,B=Math.floor((e.length-1-b)/n)):B=i-1-Math.floor(b/n),E!==c.RightTop&&E!==c.RigtBottom||(v=n-1-v)):(B=i-1-b%a,v=Math.floor(b/a),"end"==s&&(B=(e.length-1-b)%a,v=o-1-Math.floor((e.length-1-b)/a)),E!==c.LeftTop&&E!==c.LeftBottom||(B=a-1-B)),"end"==s&&(v=v+n-o),"middle"==s&&(v+=(n-o)/2),"end"==r&&(B=B+a-i),"middle"==r&&(B+=(a-i)/2);var M=[[v/n*(1+l),u],[1-v/n*(1+l),d]],D=[[(v+1)/n*(1+l)-l,u],[1-(v+1)/n*(1+l)+l,d]],x=[[B/a*(1+g),p],[1-B/a*(1+g),h]],w=[[(B+1)/a*(1+g)-g,p],[1-(B+1)/a*(1+g)+g,h]],Q=e[b];"start"==s?f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"x1")]],M):m.addComplex(f.attr(Q.attributes,"x1"),M),"end"==s?f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"x2")]],D):y.addComplex(f.attr(Q.attributes,"x2"),D),"middle"==s&&f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"x1")],[1,f.attr(Q.attributes,"x2")]],M.concat(D)),"start"==r?f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"y1")]],x):I.addComplex(f.attr(Q.attributes,"y1"),x),"end"==r?f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"y2")]],w):C.addComplex(f.attr(Q.attributes,"y2"),w),"middle"==r&&f.addLinear(A.ConstraintStrength.HARD,0,[[1,f.attr(Q.attributes,"y1")],[1,f.attr(Q.attributes,"y2")]],x.concat(w))}},e.prototype.sublayoutHandles=function(e,t,n){var o,i,s,l,c,u;this.orderMarkGroups(e);var A=this.plotSegment.state,d=this.plotSegment.object.properties,p=[],h=0;try{for(var f=r(e),m=f.next();!m.done;m=f.next()){var y=m.value;h=Math.max(h,y.group.length)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}if(d.sublayout.type==a.DodgeX)try{for(var I=r(e),C=I.next();!C.done;C=I.next())for(var E=C.value,b=0;b<E.group.length-1;b++){var v=A.glyphs[E.group[b]],B=A.glyphs[E.group[b+1]],M=v.attributes.x2,D=Math.min(v.attributes.y1,v.attributes.y2,B.attributes.y1,B.attributes.y2),x=Math.max(v.attributes.y1,v.attributes.y2,B.attributes.y1,B.attributes.y2);p.push({type:"gap",gap:{axis:g.AxisMode.X,property:{property:"sublayout",field:"ratioX"},reference:M,value:d.sublayout.ratioX,scale:1/(t?h:h-1)*(E.x2-E.x1),span:[D,x]}})}}catch(e){s={error:e}}finally{try{C&&!C.done&&(l=I.return)&&l.call(I)}finally{if(s)throw s.error}}if(d.sublayout.type==a.DodgeY)try{for(var w=r(e),Q=w.next();!Q.done;Q=w.next())for(E=Q.value,b=0;b<E.group.length-1;b++){v=A.glyphs[E.group[b]],B=A.glyphs[E.group[b+1]],M=v.attributes.y2;var S=Math.min(v.attributes.x1,v.attributes.x2,B.attributes.x1,B.attributes.x2),N=Math.max(v.attributes.x1,v.attributes.x2,B.attributes.x1,B.attributes.x2);p.push({type:"gap",gap:{axis:g.AxisMode.Y,property:{property:"sublayout",field:"ratioY"},reference:M,value:d.sublayout.ratioY,scale:1/(n?h:h-1)*(E.y2-E.y1),span:[S,N]}})}}catch(e){c={error:e}}finally{try{Q&&!Q.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}return d.sublayout.type,a.Grid,p},e.prototype.sublayoutPacking=function(t,n){var o=this,i=this.solver,a=this.plotSegment.state,s=this.plotSegment.object.properties.sublayout.packing;t.forEach((function(t){var l=t.group.map((function(e){return a.glyphs[e]})),c=t.x1,u=t.y1,d=t.x2,g=t.y2,p={cx:0,cy:0},h=i.attr(p,"cx",{edit:!0}),f=i.attr(p,"cy",{edit:!0});i.addLinear(A.ConstraintStrength.HARD,0,[[2,h]],[[1,c],[1,d]]),i.addLinear(A.ConstraintStrength.HARD,0,[[2,f]],[[1,u],[1,g]]);var m=l.map((function(t){var n,o,a=0;try{for(var s=r(t.marks),l=s.next();!l.done;l=s.next()){var c=l.value;if(null!=c.attributes.size)a=Math.max(a,Math.sqrt(c.attributes.size/Math.PI));else{var u=c.attributes.width,A=c.attributes.height;null!=u&&null!=A&&(a=Math.max(a,Math.sqrt(u*u+A*A)/2))}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return 0==a&&(a=e.defaultJitterPackingRadius),[i.attr(t.attributes,"x"),i.attr(t.attributes,"y"),a]}));i.addPlugin(new A.ConstraintPlugins.PackingPlugin(i,h,f,m,n,o.config.getXYScale,{gravityX:s&&s.gravityX,gravityY:s&&s.gravityY,boxed:s.boxedX||s.boxedY?{x1:s.boxedX?i.getValue(t.x1):null,x2:s.boxedX?i.getValue(t.x2):null,y1:s.boxedY?i.getValue(t.y1):null,y2:s.boxedY?i.getValue(t.y2):null}:null}))}))},e.prototype.sublayoutJitter=function(t,n){var o=this.solver,i=this.plotSegment.state,a=this.plotSegment.object.properties.sublayout.jitter;t.forEach((function(t){var s=t.group.map((function(e){return i.glyphs[e]})),l=t.x1,c=t.y1,u=t.x2,d=t.y2,g=s.map((function(t){var n,i,a=0;try{for(var s=r(t.marks),l=s.next();!l.done;l=s.next()){var c=l.value;if(null!=c.attributes.size)a=Math.max(a,Math.sqrt(c.attributes.size/Math.PI));else{var u=c.attributes.width,A=c.attributes.height;null!=u&&null!=A&&(a=Math.max(a,Math.sqrt(u*u+A*A)/2))}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return 0==a&&(a=e.defaultJitterPackingRadius),[o.attr(t.attributes,"x"),o.attr(t.attributes,"y"),a]}));o.addPlugin(new A.ConstraintPlugins.JitterPlugin(o,l,c,u,d,g,n,a||{horizontal:!0,vertical:!0}))}))},e.prototype.getHandles=function(){var e=this.plotSegment.state,t=this.plotSegment.object.properties,n=t.xData?t.xData.type:"null",r=t.yData?t.yData.type:"null",o=[];switch(n){case"null":switch(r){case"null":o=o.concat(this.sublayoutHandles([{x1:e.attributes[this.x1Name],y1:e.attributes[this.y1Name],x2:e.attributes[this.x2Name],y2:e.attributes[this.y2Name],group:e.dataRowIndices.map((function(e,t){return t}))}],this.config.xAxisPrePostGap,this.config.yAxisPrePostGap));break;case"categorical":o=o.concat(this.categoricalHandles("y",!0))}break;case"numerical":switch(r){case"categorical":o=o.concat(this.categoricalHandles("y",!1))}break;case"categorical":switch(r){case"null":o=o.concat(this.categoricalHandles("x",!0));break;case"numerical":o=o.concat(this.categoricalHandles("x",!1));break;case"categorical":o=o.concat(this.categoricalHandles("xy",!0))}}return o},e.prototype.build=function(){var e=this.solver,t=this.plotSegment.state,n=t.attributes,r=this.plotSegment.object.properties,o=r.xData?r.xData.type:"null",i=r.yData?r.yData.type:"null";switch(o){case"null":this.buildXNullMode(i,e,n,t);break;case"default":this.buildXDefaultMode(i,e,n,t);break;case"numerical":this.buildXNumericalMode(i,e,n,t);break;case"categorical":this.buildXCategoricalMode(i)}e.addEquals(A.ConstraintStrength.HARD,e.attr(n,"x"),e.attr(n,this.x1Name)),e.addEquals(A.ConstraintStrength.HARD,e.attr(n,"y"),e.attr(n,this.y1Name))},e.prototype.buildXCategoricalMode=function(e){switch(e){case"null":this.categoricalMapping("x",{mode:"default"});break;case"default":this.stacking(g.AxisMode.Y),this.categoricalMapping("x",{mode:"disabled"});break;case"numerical":this.numericalMapping(g.AxisMode.Y),this.categoricalMapping("x",{mode:"x-only"});break;case"categorical":this.categoricalMapping("xy",{mode:"default"})}},e.prototype.buildXNumericalMode=function(e,t,n,r){switch(e){case"null":this.numericalMapping(g.AxisMode.X),this.applySublayout([{x1:t.attr(n,this.x1Name),y1:t.attr(n,this.y1Name),x2:t.attr(n,this.x2Name),y2:t.attr(n,this.y2Name),group:r.dataRowIndices.map((function(e,t){return t}))}],"y",{mode:"y-only"});break;case"default":this.stacking(g.AxisMode.Y),this.numericalMapping(g.AxisMode.X);break;case"numerical":this.numericalMapping(g.AxisMode.X),this.numericalMapping(g.AxisMode.Y);break;case"categorical":this.numericalMapping(g.AxisMode.X),this.categoricalMapping("y",{mode:"y-only"})}},e.prototype.buildXDefaultMode=function(e,t,n,r){switch(e){case"null":this.stacking(g.AxisMode.X),this.applySublayout([{x1:t.attr(n,this.x1Name),y1:t.attr(n,this.y1Name),x2:t.attr(n,this.x2Name),y2:t.attr(n,this.y2Name),group:r.dataRowIndices.map((function(e,t){return t}))}],"y",{mode:"y-only"});break;case"default":this.stacking(g.AxisMode.X),this.stacking(g.AxisMode.Y);break;case"numerical":this.stacking(g.AxisMode.X),this.numericalMapping(g.AxisMode.Y);break;case"categorical":this.stacking(g.AxisMode.X),this.categoricalMapping("y",{mode:"disabled"})}},e.prototype.buildXNullMode=function(e,t,n,r){switch(e){case"null":this.applySublayout([{x1:t.attr(n,this.x1Name),y1:t.attr(n,this.y1Name),x2:t.attr(n,this.x2Name),y2:t.attr(n,this.y2Name),group:r.dataRowIndices.map((function(e,t){return t}))}],"xy",{mode:"default",xAxisPrePostGap:this.config.xAxisPrePostGap,yAxisPrePostGap:this.config.yAxisPrePostGap});break;case"default":this.stacking(g.AxisMode.Y),this.applySublayout([{x1:t.attr(n,this.x1Name),y1:t.attr(n,this.y1Name),x2:t.attr(n,this.x2Name),y2:t.attr(n,this.y2Name),group:r.dataRowIndices.map((function(e,t){return t}))}],"x",{mode:"x-only"});break;case"numerical":this.numericalMapping(g.AxisMode.Y),this.applySublayout([{x1:t.attr(n,this.x1Name),y1:t.attr(n,this.y1Name),x2:t.attr(n,this.x2Name),y2:t.attr(n,this.y2Name),group:r.dataRowIndices.map((function(e,t){return t}))}],"x",{mode:"x-only"});break;case"categorical":this.categoricalMapping("y",{mode:"default"})}},e.prototype.applicableSublayoutOptions=function(){var e=this.config,t=e.icons,n=e.terminology,r={value:a.Overlap,label:n.overlap,icon:t.overlapIcon},o={value:a.Packing,label:n.packing,icon:t.packingIcon},i={value:a.DodgeX,label:n.dodgeX,icon:t.dodgeXIcon},s={value:a.DodgeY,label:n.dodgeY,icon:t.dodgeYIcon},l={value:a.Grid,label:n.grid,icon:t.gridIcon},c={value:a.Jitter,label:n.jitter,icon:t.jitterIcon},u=this.plotSegment.object.properties,A=u.xData?u.xData.type:"null",d=u.yData?u.yData.type:"null";return"null"!=A&&"categorical"!=A||"null"!=d&&"categorical"!=d?[o,c,r]:[i,s,l,o,c,r]},e.prototype.isSublayoutApplicable=function(){var e=this.plotSegment.object.properties,t=e.xData?e.xData.type:"null",n=e.yData?e.yData.type:"null";return"default"!=t&&"default"!=n&&("numerical"!=t||"numerical"!=n)},e.prototype.buildSublayoutWidgets=function(e){var t=[],n=this.plotSegment.object.properties,r=n.sublayout.type;if(r==a.DodgeX||r==a.DodgeY||r==a.Grid||r==a.Overlap){var o=n.xData&&"numerical"==n.xData.type,s=[];if(n.yData&&"numerical"==n.yData.type||s.push(e.inputSelect({property:"sublayout",field:["align","y"]},{type:"radio",options:["start","middle","end"],icons:["AlignVerticalBottom","AlignVerticalCenter","AlignVerticalTop"],labels:[p.strings.alignment.bottom,p.strings.alignment.middle,p.strings.alignment.top],tooltip:p.strings.canvas.alignItemsOnY,ignoreSearch:!0})),o||s.push(e.inputSelect({property:"sublayout",field:["align","x"]},{type:"radio",options:["start","middle","end"],icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:[p.strings.alignment.left,p.strings.alignment.middle,p.strings.alignment.right],tooltip:p.strings.canvas.alignItemsOnX,ignoreSearch:!0})),t.push(e.searchWrapper({searchPattern:[p.strings.alignment.alignment,p.strings.objects.plotSegment.subLayout]},[e.vertical(e.label(p.strings.alignment.alignment,{ignoreSearch:!0,addMargins:!1}),e.horizontal.apply(e,i([[0,0,0]],s.reverse(),[null])))])),r==a.Grid?t.push(e.searchWrapper({searchPattern:[p.strings.objects.axes.gap,p.strings.objects.plotSegment.subLayout,p.strings.coordinateSystem.x,p.strings.coordinateSystem.y]},[e.label(p.strings.objects.axes.gap,{ignoreSearch:!0}),e.searchWrapper({searchPattern:[p.strings.coordinateSystem.x,p.strings.objects.axes.gap,p.strings.objects.plotSegment.subLayout]},[e.inputNumber({property:"sublayout",field:"ratioX"},{minimum:0,maximum:1,percentage:!0,showSlider:!0,label:p.strings.coordinateSystem.x,ignoreSearch:!0})]),e.searchWrapper({searchPattern:[p.strings.coordinateSystem.y,p.strings.objects.axes.gap,p.strings.objects.plotSegment.subLayout]},[e.inputNumber({property:"sublayout",field:"ratioY"},{minimum:0,maximum:1,percentage:!0,showSlider:!0,label:p.strings.coordinateSystem.y,ignoreSearch:!0})])])):t.push(e.inputNumber({property:"sublayout",field:r==a.DodgeX?"ratioX":"ratioY"},{minimum:0,maximum:1,percentage:!0,showSlider:!0,label:p.strings.objects.axes.gap,searchSection:p.strings.objects.plotSegment.subLayout})),r==a.Grid){var u=this.config.terminology;t.push(e.inputSelect({property:"sublayout",field:["grid","direction"]},{type:"radio",options:[l.X,l.Y],icons:["GripperBarHorizontal","GripperBarVertical"],labels:[u.gridDirectionX,u.gridDirectionY],label:p.strings.objects.plotSegment.orientation,searchSection:p.strings.objects.plotSegment.subLayout}),e.inputSelect({property:"sublayout",field:["grid","gridStartPosition"]},{type:"radio",icons:["ArrowTallDownRight","ArrowTallDownLeft","ArrowTallUpLeft","ArrowTallUpRight"],options:[c.LeftTop,c.RightTop,c.LeftBottom,c.RigtBottom],labels:[p.strings.objects.plotSegment.directionDownRight,p.strings.objects.plotSegment.directionDownLeft,p.strings.objects.plotSegment.directionUpLeft,p.strings.objects.plotSegment.directionUpRight],label:p.strings.objects.plotSegment.direction,searchSection:p.strings.objects.plotSegment.subLayout}),e.inputNumber({property:"sublayout",field:"x"==n.sublayout.grid.direction?["grid","xCount"]:["grid","yCount"]},{label:p.strings.objects.axes.count,searchSection:p.strings.objects.plotSegment.subLayout,placeholder:p.strings.core.auto}))}r!=a.Overlap&&t.push(e.searchWrapper({searchPattern:[p.strings.objects.plotSegment.order,p.strings.objects.plotSegment.subLayout]},[e.label(p.strings.objects.plotSegment.order,{ignoreSearch:!0,addMargins:!1}),e.horizontal([0,0],e.orderByWidget({property:"sublayout",field:"order"},{table:this.plotSegment.object.table,shiftCallout:15}),e.inputBoolean({property:"sublayout",field:"orderReversed"},{type:"highlight",icon:"Sort",ignoreSearch:!0}))]))}r==a.Packing&&t.push(e.searchWrapper({searchPattern:[p.strings.objects.plotSegment.subLayout,p.strings.objects.plotSegment.gravity,p.strings.coordinateSystem.x,p.strings.coordinateSystem.y]},[e.label(p.strings.objects.plotSegment.gravity,{ignoreSearch:!0}),e.inputNumber({property:"sublayout",field:["packing","gravityX"]},{minimum:.1,maximum:15,label:p.strings.coordinateSystem.x,ignoreSearch:!0}),e.inputNumber({property:"sublayout",field:["packing","gravityY"]},{minimum:.1,maximum:15,label:p.strings.coordinateSystem.y,ignoreSearch:!0}),e.label(p.strings.objects.plotSegment.packingInContainer,{ignoreSearch:!0}),e.inputBoolean({property:"sublayout",field:["packing","boxedX"]},{type:"checkbox",label:p.strings.objects.plotSegment.packingX,ignoreSearch:!1}),e.inputBoolean({property:"sublayout",field:["packing","boxedY"]},{type:"checkbox",label:p.strings.objects.plotSegment.packingY,ignoreSearch:!1})])),r==a.Jitter&&t.push(e.searchWrapper({searchPattern:[p.strings.objects.plotSegment.distribution,p.strings.objects.plotSegment.subLayout]},[e.label(p.strings.objects.plotSegment.distribution,{ignoreSearch:!0}),e.inputBoolean({property:"sublayout",field:["jitter","horizontal"]},{type:"highlight",icon:"HorizontalDistributeCenter",ignoreSearch:!0}),e.inputBoolean({property:"sublayout",field:["jitter","vertical"]},{type:"highlight",icon:"VerticalDistributeCenter",ignoreSearch:!0})]));var A=this.applicableSublayoutOptions();return[e.verticalGroup({header:p.strings.objects.plotSegment.subLayout},i([e.inputSelect({property:"sublayout",field:"type"},{type:"radio",options:A.map((function(e){return e.value})),icons:A.map((function(e){return e.icon})),labels:A.map((function(e){return e.label})),label:p.strings.objects.plotSegment.type,searchSection:p.strings.objects.plotSegment.subLayout})],t))]},e.prototype.buildAxisWidgets=function(e,t,n){var r=this.plotSegment.object.properties,o="x"==n?r.xData:r.yData,a="x"==n?u.xData:u.yData,s="";if(o)switch(o.type){case d.AxisDataBindingType.Categorical:s=p.strings.objects.axes.categoricalSuffix;break;case d.AxisDataBindingType.Numerical:s=p.strings.objects.axes.numericalSuffix}var l=t+s;return[e.customCollapsiblePanel(i(g.buildAxisWidgets(o,a,e,t,{showOffset:!0,showScrolling:!0,showOnTop:!0},this.updatePlotSegment.bind(this)),this.plotSegment.buildGridLineWidgets(o,e,a,l)),{header:l,styles:{marginLeft:5}})]},e.prototype.updatePlotSegment=function(){this.chartStateManager&&this.plotSegment&&this.chartStateManager.remapPlotSegmentGlyphs(this.plotSegment.object)},e.prototype.buildPanelWidgets=function(e){var t=this.config.terminology;return this.isSublayoutApplicable()?i(this.buildAxisWidgets(e,t.xAxis,"x"),this.buildAxisWidgets(e,t.yAxis,"y"),this.buildSublayoutWidgets(e)):i(this.buildAxisWidgets(e,t.xAxis,"x"),this.buildAxisWidgets(e,t.yAxis,"y"))},e.prototype.buildPopupWidgets=function(e){var t=this.plotSegment.object.properties,n=this.config,r=n.icons,o=n.terminology,s=[];if(this.isSublayoutApplicable()){var u=[],A=t.xData&&"numerical"==t.xData.type,d=t.yData&&"numerical"==t.yData.type,g=t.sublayout.type;g!=a.DodgeX&&g!=a.DodgeY&&g!=a.Grid&&g!=a.Overlap||(A||u.push(e.inputSelect({property:"sublayout",field:["align","x"]},{type:"dropdown",showLabel:!0,labelPosition:1,options:["start","middle","end"],icons:[r.xMinIcon,r.xMiddleIcon,r.xMaxIcon],labels:[o.xMin,o.xMiddle,o.xMax],tooltip:p.strings.canvas.alignItemsOnX,hideBorder:!0,shiftCallout:15})),d||u.push(e.inputSelect({property:"sublayout",field:["align","y"]},{type:"dropdown",showLabel:!0,labelPosition:1,options:["start","middle","end"],icons:[r.yMinIcon,r.yMiddleIcon,r.yMaxIcon],labels:[o.yMin,o.yMiddle,o.yMax],tooltip:p.strings.canvas.alignItemsOnY,hideBorder:!0,shiftCallout:15})),"grid"==g&&(u.push(e.sep()),u.push(e.inputSelect({property:"sublayout",field:["grid","direction"]},{type:"dropdown",showLabel:!0,labelPosition:1,options:[l.X,l.Y],icons:["GripperBarHorizontal","GripperBarVertical"],labels:[o.gridDirectionX,o.gridDirectionY],tooltip:p.strings.canvas.gridDirection,hideBorder:!0,shiftCallout:15})),u.push(e.inputSelect({property:"sublayout",field:["grid","gridStartPosition"]},{type:"dropdown",icons:["ArrowTallDownRight","ArrowTallDownLeft","ArrowTallUpLeft","ArrowTallUpRight"],options:[c.LeftTop,c.RightTop,c.LeftBottom,c.RigtBottom],labels:[p.strings.objects.plotSegment.directionDownRight,p.strings.objects.plotSegment.directionDownLeft,p.strings.objects.plotSegment.directionUpLeft,p.strings.objects.plotSegment.directionUpRight],hideBorder:!0}))),g!=a.Overlap&&(u.push(e.sep()),u.push(e.orderByWidget({property:"sublayout",field:"order"},{table:this.plotSegment.object.table,displayLabel:!0,tooltip:p.strings.canvas.elementOrders,shiftCallout:15}),e.inputBoolean({property:"sublayout",field:"orderReversed"},{type:"highlight",icon:"Sort"}))));var h=this.applicableSublayoutOptions();s=i([e.inputSelect({property:"sublayout",field:"type"},{type:"dropdown",showLabel:!0,labelPosition:1,options:h.map((function(e){return e.value})),icons:h.map((function(e){return e.icon})),labels:h.map((function(e){return e.label})),tooltip:p.strings.canvas.sublayoutType,hideBorder:!0,shiftCallout:15})],u)}var f=t.xData&&"default"==t.xData.type,m=t.yData&&"default"==t.yData.type;return f&&!m&&("default"==t.xData.type&&s.push(e.label(o.xAxis+": Stacking")),s.push(e.inputSelect({property:"sublayout",field:["align","y"]},{type:"dropdown",showLabel:!0,labelPosition:1,options:["start","middle","end"],icons:[r.yMinIcon,r.yMiddleIcon,r.yMaxIcon],labels:[o.yMin,o.yMiddle,o.yMax],hideBorder:!0,shiftCallout:15}))),m&&!f&&("default"==t.yData.type&&s.push(e.label(o.yAxis+": Stacking")),s.push(e.inputSelect({property:"sublayout",field:["align","x"]},{type:"dropdown",showLabel:!0,labelPosition:1,options:["start","middle","end"],icons:[r.xMinIcon,r.xMiddleIcon,r.xMaxIcon],labels:[o.xMin,o.xMiddle,o.xMax],hideBorder:!0,shiftCallout:15}))),f&&m&&"default"==t.yData.type&&s.push(e.label(o.xAxis+" & "+o.yAxis+": Stacking")),i(s)},e.defaultJitterPackingRadius=5,e}();t.Region2DConstraintBuilder=y},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.type2DerivedColumns=t.isKindAcceptable=t.kind2CompatibleKinds=t.kind2Icon=void 0;var o=n(5),i=n(24),a=n(7);function s(e,t){for(var n=[],r=e;r<=t;r++){for(var o=r.toString();o.length<2;)o="0"+o;n.push(o)}return n}t.kind2Icon={categorical:"type/categorical",numerical:"type/numerical",ordinal:"type/ordinal",temporal:"type/temporal"},t.kind2CompatibleKinds={categorical:[o.Dataset.DataKind.Ordinal],numerical:[o.Dataset.DataKind.Temporal],ordinal:[],temporal:[]},t.isKindAcceptable=function(e,n){var o,i;if(null==n)return!0;try{for(var a=r(n),s=a.next();!s.done;s=a.next()){var l=s.value;if(l==e)return!0;if(null!=t.kind2CompatibleKinds[l])if(t.kind2CompatibleKinds[l].indexOf(e)>=0)return!0}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return!1},t.type2DerivedColumns={image:null,string:null,number:null,boolean:null,date:[{name:"year",displayName:a.strings.objects.derivedColumns.year,type:o.Dataset.DataType.String,function:"date.year",metadata:{kind:o.Dataset.DataKind.Categorical,orderMode:i.OrderMode.alphabetically}},{name:"month",displayName:a.strings.objects.derivedColumns.month,type:o.Dataset.DataType.String,function:"date.month",metadata:{kind:o.Dataset.DataKind.Categorical,order:a.strings.dataset.months}},{name:"monthnumber",displayName:a.strings.objects.derivedColumns.monthNumber,type:o.Dataset.DataType.String,function:"date.monthnumber",metadata:{kind:o.Dataset.DataKind.Categorical,orderMode:i.OrderMode.alphabetically}},{name:"day",displayName:a.strings.objects.derivedColumns.day,type:o.Dataset.DataType.String,function:"date.day",metadata:{kind:o.Dataset.DataKind.Categorical,orderMode:i.OrderMode.alphabetically}},{name:"weekOfYear",displayName:a.strings.objects.derivedColumns.weekOfYear,type:o.Dataset.DataType.String,function:"date.weekOfYear",metadata:{kind:o.Dataset.DataKind.Categorical,orderMode:i.OrderMode.alphabetically}},{name:"dayOfYear",displayName:a.strings.objects.derivedColumns.dayOfYear,type:o.Dataset.DataType.String,function:"date.dayOfYear",metadata:{kind:o.Dataset.DataKind.Categorical,orderMode:i.OrderMode.alphabetically}},{name:"weekday",displayName:a.strings.objects.derivedColumns.weekday,type:o.Dataset.DataType.String,function:"date.weekday",metadata:{kind:o.Dataset.DataKind.Categorical,order:a.strings.dataset.weekday}},{name:"hour",displayName:a.strings.objects.derivedColumns.hour,type:o.Dataset.DataType.String,function:"date.hour",metadata:{kind:o.Dataset.DataKind.Categorical,order:s(0,24)}},{name:"minute",displayName:a.strings.objects.derivedColumns.minute,type:o.Dataset.DataType.String,function:"date.minute",metadata:{kind:o.Dataset.DataKind.Categorical,order:s(0,59)}},{name:"second",displayName:a.strings.objects.derivedColumns.second,type:o.Dataset.DataType.String,function:"date.second",metadata:{kind:o.Dataset.DataKind.Categorical,order:s(0,59)}}]}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlotSegmentClass=void 0;var i=n(22),a=n(6),s=n(67),l=n(49),c=n(5),u=n(42),A=n(24),d=n(7),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getDisplayFormat=function(e,n,r){if(e.numericalMode===A.NumericalMode.Temporal||e.valueType===a.DataType.Date)return n?function(e){return c.getTimeFormatFunction()(n.replace(c.tickFormatParserExpression(),"$1"))(e)}:function(e){return c.getTimeFormatFunction()("%m/%d/%Y")(e)};if(n){var o=u.AxisRenderer.getTickFormat(n,null);return function(e){return o(e)}}if(e.rawExpression&&r){var i=t.getDisplayRawFormat(e,r);if(i)return i}return function(e){return e}},t}return o(t,e),t.prototype.initializeState=function(){},t.prototype.buildConstraints=function(e,t,n){},t.prototype.buildGlyphConstraints=function(e,t){},t.prototype.getPlotSegmentGraphics=function(e,t){return i.makeGroup([e,this.getGraphics(t)])},t.prototype.getPlotSegmentBackgroundGraphics=function(e){return null},t.prototype.renderControls=function(e,t){return null},t.prototype.getCoordinateSystem=function(){return new i.CartesianCoordinates},t.prototype.getDropZones=function(){return[]},t.prototype.getHandles=function(){return null},t.prototype.getBoundingBox=function(){return null},t.prototype.buildGridLineWidgets=function(e,n,r,o){return e?e.type===A.AxisDataBindingType.Default?[]:t.getGridLineAttributePanelWidgets(n,r,o):[]},t.getGridLineAttributePanelWidgets=function(e,t,n){return[e.verticalGroup({header:d.strings.objects.plotSegment.gridline},[e.inputSelect({property:t,field:["style","gridlineStyle"]},{type:"dropdown",showLabel:!0,isLocalIcons:!0,icons:["ChromeClose","stroke/solid","stroke/dashed","stroke/dotted"],options:["none","solid","dashed","dotted"],labels:[d.strings.filter.none,d.strings.objects.links.solid,d.strings.objects.links.dashed,d.strings.objects.links.dotted],label:d.strings.objects.style,searchSection:[d.strings.objects.plotSegment.gridline,n]}),e.inputColor({property:t,field:["style","gridlineColor"]},{label:d.strings.objects.color,labelKey:"gridline-color-"+t,searchSection:[d.strings.objects.plotSegment.gridline,n]}),e.inputNumber({property:t,field:["style","gridlineWidth"]},{minimum:0,maximum:100,showUpdown:!0,label:d.strings.objects.width,searchSection:[d.strings.objects.plotSegment.gridline,n]})])]},t.prototype.getAttributePanelWidgets=function(e){return[e.horizontal([0,1,1],e.label("Data",{addMargins:!0,key:"Data",ignoreSearch:!0}),e.horizontal([1],[e.filterEditor({table:this.object.table,target:{plotSegment:this.object},value:this.object.filter,mode:"button",key:"filterEditor",ignoreSearch:!0}),e.groupByEditor({table:this.object.table,target:{plotSegment:this.object},value:this.object.groupBy,mode:"button",key:"groupByEditor",ignoreSearch:!0})]))]},t.createDefault=function(t){var n=e.createDefault.call(this);return n.glyph=t._id,n.table=t.table,n},t.prototype.getDisplayRawFormat=function(e,t){var n=this.object.table,r=t.dataset.tables.find((function(e){return e.name===n})),o=function(e){var t=l.TextExpression.Parse("${"+e+"}").parts.find((function(e){if(e.expression instanceof l.FunctionCall)return e.expression.args.find((function(e){return e instanceof l.Variable}))})),n=t&&t.expression;if(n){var o=n.args.find((function(e){return e instanceof l.Variable})).name;return r.columns.find((function(e){return e.name===o})).name}return null};if(e.valueType===a.DataType.Boolean){var i=o(e.expression),s=o(e.rawExpression);if(i&&s){var u=new Map;return r.rows.forEach((function(e){var t=e[i],n=e[s];if(null!=t&&void 0!==n){var r=t.toString(),o=(n||e[c.refineColumnName(s)]).toString();u.set(r,o)}})),function(e){var t=u.get(e);return null!==t?t:e}}}return null},t.prototype.buildGlyphOrderedList=function(){var e=this.state.dataRowIndices.map((function(e,t){return t}));if(!this.object.properties.sublayout)return e;var t=this.object.properties.sublayout.order,n=this.state.dataRowIndices,r=this.parent.dataflow.getTable(this.object.table);if(null!=t&&t.expression){var o=this.parent.dataflow.cache.parse(t.expression);e.sort((function(e,t){var i=o.getValue(r.getGroupedContext(n[e])),a=o.getValue(r.getGroupedContext(n[t]));return c.getSortFunctionByData([i+"",a+""])(i,a)}))}return this.object.properties.sublayout.orderReversed&&e.reverse(),e},t.prototype.getFirstGlyphIndex=function(){var e=this.buildGlyphOrderedList();return e.length>0?e[0]:-1},t.prototype.getLastGlyphIndex=function(){var e=this.buildGlyphOrderedList();return e.length>0?e[e.length-1]:-1},t}(s.ChartElementClass);t.PlotSegmentClass=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=void 0;var r=n(50),o=n(207),i=n(163),a=n(208),s=n(208);Object.defineProperty(t,"GuideClass",{enumerable:!0,get:function(){return s.GuideClass}}),Object.defineProperty(t,"GuideAttributeNames",{enumerable:!0,get:function(){return s.GuideAttributeNames}}),Object.defineProperty(t,"GuidePropertyNames",{enumerable:!0,get:function(){return s.GuidePropertyNames}});var l=n(207);Object.defineProperty(t,"GuideCoordinatorClass",{enumerable:!0,get:function(){return l.GuideCoordinatorClass}});var c=n(163);Object.defineProperty(t,"GuidePolarCoordinatorClass",{enumerable:!0,get:function(){return c.GuidePolarCoordinatorClass}}),t.registerClasses=function(){r.ObjectClasses.Register(a.GuideClass),r.ObjectClasses.Register(o.GuideCoordinatorClass),r.ObjectClasses.Register(i.GuidePolarCoordinatorClass)}},function(e,t){e.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}},function(e,t,n){"use strict";var r=n(34);Object(r.a)("@fluentui/react","8.8.0")},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return Fe})),n.d(t,"StyleSheetConsumer",(function(){return X})),n.d(t,"StyleSheetContext",(function(){return q})),n.d(t,"StyleSheetManager",(function(){return oe})),n.d(t,"ThemeConsumer",(function(){return Ne})),n.d(t,"ThemeContext",(function(){return Se})),n.d(t,"ThemeProvider",(function(){return ke})),n.d(t,"__PRIVATE__",(function(){return Ue})),n.d(t,"createGlobalStyle",(function(){return Oe})),n.d(t,"css",(function(){return ge})),n.d(t,"isStyledComponent",(function(){return C})),n.d(t,"keyframes",(function(){return _e})),n.d(t,"useTheme",(function(){return Pe})),n.d(t,"version",(function(){return b})),n.d(t,"withTheme",(function(){return ze}));var r=n(154),o=n(0),i=n.n(o),a=n(292),s=n.n(a),l=n(293),c=n(294),u=n(191),A=n(190),d=n.n(A);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},h=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},f=Object.freeze([]),m=Object.freeze({});function y(e){return"function"==typeof e}function I(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"==typeof e.styledComponentId}var E=void 0!==e&&(Object({NODE_ENV:"production"}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production"}).SC_ATTR)||"data-styled",b="5.2.0",v="undefined"!=typeof window&&"HTMLElement"in window,B="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(Object({NODE_ENV:"production"}).REACT_APP_SC_DISABLE_SPEEDY||Object({NODE_ENV:"production"}).SC_DISABLE_SPEEDY)||!1,M={},D=function(){return n.nc};function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var w=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(E))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(E,"active"),r.setAttribute("data-styled-version","5.2.0");var a=D();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Q=function(){function e(e){var t=this.element=w(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}x(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),S=function(){function e(e){var t=this.element=w(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),N=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),T=new Map,j=new Map,L=1,R=function(e){if(T.has(e))return T.get(e);var t=L++;return T.set(e,t),j.set(t,e),t},O=function(e){return j.get(e)},_=function(e,t){t>=L&&(L=t+1),T.set(e,t),j.set(t,e)},F="style["+E+'][data-styled-version="5.2.0"]',z=new RegExp("^"+E+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),P=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},U=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(z);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(_(c,l),P(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},G=v,H={isServer:!v,useCSSOMInjection:!B},Y=function(){function e(e,t,n){void 0===e&&(e=H),void 0===t&&(t={}),this.options=g({},H,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&v&&G&&(G=!1,function(e){for(var t=document.querySelectorAll(F),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(E)&&(U(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(g({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new N(o):r?new Q(o):new S(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(R(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=O(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(void 0!==a&&0!==s.length){var l=E+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=function(e){return V(5381,e)},K=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];function J(e){var t,n,r,o,i=void 0===e?m:e,a=i.options,s=void 0===a?m:a,c=i.plugins,u=void 0===c?f:c,A=new l.a(s),d=[],g=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,l,c,u,A){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===A?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&Z.includes(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var l=e.replace(K,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),A(a||!i?"":i,c)}return A.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},g,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||x(15),V(e,t.name)}),5381).toString():"",h}var q=i.a.createContext(),X=q.Consumer,$=i.a.createContext(),ee=($.Consumer,new Y),te=J();function ne(){return Object(o.useContext)(q)||ee}function re(){return Object(o.useContext)($)||te}function oe(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ne(),l=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(o.useMemo)((function(){return J({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(q.Provider,{value:l},i.a.createElement($.Provider,{value:c},e.children))}var ie=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=te);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return x(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=te),this.name+e.hash},e}(),ae=/([A-Z])/,se=new RegExp(ae,"g"),le=/^ms-/,ce=function(e){return"-"+e.toLowerCase()};function ue(e){return ae.test(e)?e.replace(se,ce).replace(le,"-ms-"):e}var Ae=function(e){return null==e||!1===e||""===e};function de(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=de(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Ae(e)?"":C(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:de(e(t),t,n,r):e instanceof ie?n?(e.inject(n,r),e.getName(r)):e:h(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Ae(t[a])&&(h(t[a])?i.push.apply(i,e(t[a],a)):y(t[a])?i.push(ue(a)+":",t[a],";"):i.push(ue(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in c.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}function ge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||h(e)?de(p(f,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:de(p(e,n))}var pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},he=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function fe(e,t,n){var r=e[n];pe(t)&&pe(r)?me(r,t):e[n]=t}function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(pe(a))for(var s in a)he(s)&&fe(e,a[s],s)}return e}var ye=/(a)(d)/gi,Ie=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ie(t%52)+n;return(Ie(t%52)+n).replace(ye,"$1-$2")}function Ee(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!C(n))return!1}return!0}var be=W("5.2.0"),ve=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ee(e),this.componentId=t,this.baseHash=V(be,t),this.baseStyle=n,Y.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=de(this.rules,e,t,n).join(""),a=Ce(V(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=V(this.baseHash,n.hash),u="",A=0;A<l;A++){var d=this.rules[A];if("string"==typeof d)u+=d;else if(d){var g=de(d,e,t,n),p=Array.isArray(g)?g.join(""):g;c=V(c,p+A),u+=p}}if(u){var h=Ce(c>>>0);if(!t.hasNameForId(r,h)){var f=n(u,"."+h,void 0,r);t.insertRules(r,h,f)}o.push(h)}}return o.join(" ")},e}(),Be=(new Set,function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme}),Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function xe(e){return e.replace(Me,"-").replace(De,"")}function we(e){return"string"==typeof e&&!0}var Qe=function(e){return Ce(W(e)>>>0)},Se=i.a.createContext(),Ne=Se.Consumer;function ke(e){var t=Object(o.useContext)(Se),n=Object(o.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?x(8):t?g({},t,{},e):e:x(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.a.createElement(Se.Provider,{value:n},e.children):null}var Te={};function je(e,t,n){var r=C(e),a=!we(e),s=t.displayName,l=void 0===s?function(e){return we(e)?"styled."+e:"Styled("+I(e)+")"}(e):s,c=t.componentId,A=void 0===c?function(e,t){var n="string"!=typeof e?"sc":xe(e);Te[n]=(Te[n]||0)+1;var r=n+"-"+Qe("5.2.0"+n+Te[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,p=t.attrs,h=void 0===p?f:p,E=t.displayName&&t.componentId?xe(t.displayName)+"-"+t.componentId:t.componentId||A,b=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=t.shouldForwardProp;r&&e.shouldForwardProp&&(v=v?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var B,M=new ve(n,E,r?e.componentStyle:void 0),D=function(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,A=e.target,d=function(e,t,n){void 0===e&&(e=m);var r=g({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(Be(t,Object(o.useContext)(Se),a)||m,t,r),p=d[0],h=d[1],f=function(e,t,n,r){var o=ne(),i=re();return e.isStatic&&!t?e.generateAndInjectStyles(m,o,i):e.generateAndInjectStyles(n,o,i)}(i,r.length>0,p),I=n,C=h.$as||t.$as||h.as||t.as||A,E=we(C),b=h!==t?g({},t,{},h):t,v=l||E&&u.a,B={};for(var M in b)"$"!==M[0]&&"as"!==M&&("forwardedAs"===M?B.as=b[M]:v&&!v(M,u.a)||(B[M]=b[M]));return t.style&&h.style!==t.style&&(B.style=g({},t.style,{},h.style)),B.className=Array.prototype.concat(s,c,f!==c?f:null,t.className,h.className).filter(Boolean).join(" "),B.ref=I,Object(o.createElement)(C,B)}(B,e,t)};return D.displayName=l,(B=i.a.forwardRef(D)).attrs=b,B.componentStyle=M,B.displayName=l,B.shouldForwardProp=v,B.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):f,B.styledComponentId=E,B.target=r?e.target:e,B.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(we(e)?e:xe(I(e)));return je(e,g({},o,{attrs:b,componentId:i}),n)},Object.defineProperty(B,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?me({},e.defaultProps,t):t}}),B.toString=function(){return"."+B.styledComponentId},a&&d()(B,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),B}var Le=function(e){return function e(t,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return x(1,String(n));var i=function(){return t(n,o,ge.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,g({},o,{},r))},i.attrs=function(r){return e(t,n,g({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Le[e]=Le(e)}));var Re=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ee(e),Y.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(de(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Y.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ge.apply(void 0,[e].concat(n)),s="sc-global-"+Qe(JSON.stringify(a)),l=new Re(a,s);function c(e){var t=ne(),n=re(),r=Object(o.useContext)(Se),i=Object(o.useRef)(t.allocateGSInstance(s)).current;return Object(o.useLayoutEffect)((function(){return u(i,e,t,r,n),function(){return l.removeStyles(i,t)}}),[i,e,t,r,n]),null}function u(e,t,n,r,o){if(l.isStatic)l.renderStyles(e,M,n,o);else{var i=g({},t,{theme:Be(t,r,c.defaultProps)});l.renderStyles(e,i,n,o)}}return i.a.memo(c)}function _e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ge.apply(void 0,[e].concat(n)).join(""),i=Qe(o);return new ie(i,o)}var Fe=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=D();return"<style "+[n&&'nonce="'+n+'"',E+'="true"','data-styled-version="5.2.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return x(2);var n=((t={})[E]="",t["data-styled-version"]="5.2.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=D();return r&&(n.nonce=r),[i.a.createElement("style",g({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Y({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?x(2):i.a.createElement(oe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return x(3)},e}(),ze=function(e){var t=i.a.forwardRef((function(t,n){var r=Object(o.useContext)(Se),a=e.defaultProps,s=Be(t,r,a);return i.a.createElement(e,g({},t,{theme:s,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+I(e)+")",t},Pe=function(){return Object(o.useContext)(Se)},Ue={StyleSheet:Y,masterSheet:ee};t.default=Le}.call(this,n(528))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPicker=t.colorToCSS=void 0;var a=n(0),s=n(13),l=n(11),c=n(534),u=n(536),A=n(537),d=n(538),g=n(45),p=n(554),h=n(101);function f(e){return"rgb("+e.r.toFixed(0)+","+e.g.toFixed(0)+","+e.b.toFixed(0)+")"}t.colorToCSS=f;var m=function(e){function t(t){var n,r,o,a,l,c,u=e.call(this,t)||this;if(s.addPowerBIThemeColors(),u.props.defaultValue){var d=f(u.props.defaultValue),g=null;try{for(var p=i(s.predefinedPalettes.filter((function(e){return"palette"==e.type}))),h=p.next();!h.done;h=p.next()){var m=h.value;try{for(var y=(o=void 0,i(m.colors)),I=y.next();!I.done;I=y.next()){var C=I.value;try{for(var E=(l=void 0,i(C)),b=E.next();!b.done;b=E.next()){if(f(b.value)==d){g=m;break}}}catch(e){l={error:e}}finally{try{b&&!b.done&&(c=E.return)&&c.call(E)}finally{if(l)throw l.error}}if(g)break}}catch(e){o={error:e}}finally{try{I&&!I.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}if(g)break}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}u.state=g?{currentPalette:g,currentPicker:null,currentColor:u.props.defaultValue}:{currentPalette:null,currentPicker:A.PickerType.HCL,currentColor:u.props.defaultValue}}else u.state={currentPalette:s.predefinedPalettes.filter((function(e){return"Palette/ColorBrewer"==e.name}))[0],currentPicker:null};return u.state={currentPalette:s.predefinedPalettes.filter((function(e){return"Palette/ColorBrewer"==e.name}))[0],currentPicker:null,currentColor:u.props.defaultValue},u}return o(t,e),t.prototype.render=function(){var e,t,n,r=this,o=null!==(n=null===(t=null===(e=this.props)||void 0===e?void 0:e.store)||void 0===t?void 0:t.editorType)&&void 0!==n?n:g.EditorType.Chart,i=o===g.EditorType.Chart||o===g.EditorType.Nested,f=a.createElement(a.Fragment,null,a.createElement(h.PickersSectionWrapper,null,a.createElement(h.PickersSection,null,a.createElement(d.PaletteList,{palettes:s.predefinedPalettes.filter((function(e){return"palette"==e.type})),selected:this.state.currentPalette,onClick:function(e){var t;r.setState({currentPalette:e,currentPicker:null}),null===(t=r.props.parent)||void 0===t||t.forceUpdate()}}),a.createElement(l.Label,null,"Color Picker"),a.createElement(A.ColorPickerButton,{state:this.state,onClick:function(){return r.setState({currentPalette:null,currentPicker:A.PickerType.HCL})},type:A.PickerType.HCL}),a.createElement(A.ColorPickerButton,{state:this.state,onClick:function(){return r.setState({currentPalette:null,currentPicker:A.PickerType.HSV})},type:A.PickerType.HSV})),a.createElement(u.NullButton,{allowNull:this.props.allowNull,onPick:this.props.onPick}))),m=a.createElement(h.ColorsSectionWrapper,null,null!=this.state.currentPalette?a.createElement(c.ColorGrid,{colors:this.state.currentPalette.colors,defaultValue:this.state.currentColor,onClick:function(e){r.props.onPick(e),r.setState({currentColor:e}),r.props.closePicker&&r.props.closePicker()}}):null,this.state.currentPicker==A.PickerType.HCL?a.createElement(p.HCLColorPicker,{defaultValue:this.state.currentColor||{r:0,g:0,b:0},onChange:function(e){r.props.onPick(e),r.setState({currentColor:e})}}):null,this.state.currentPicker==A.PickerType.HSV?a.createElement(p.HSVColorPicker,{defaultValue:this.state.currentColor||{r:0,g:0,b:0},onChange:function(e){r.props.onPick(e),r.setState({currentColor:e})}}):null);return a.createElement(a.Fragment,null,a.createElement(h.ColorsPickerWrapper,null,a.createElement(h.ColorsPickerLeftSectionWrapper,null,i?f:m),i?m:f))},t}(a.Component);t.ColorPicker=m},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(389)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=!1;function o(e){r=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(187),o=n(134),i=n(54),a=Object(r.a)(o.a,i.c,void 0,{scope:"Icon"},!0);a.displayName="Icon"},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r,o=n(33),i=((r={})[o.a.up]=1,r[o.a.down]=1,r[o.a.left]=1,r[o.a.right]=1,r[o.a.home]=1,r[o.a.end]=1,r[o.a.tab]=1,r[o.a.pageUp]=1,r[o.a.pageDown]=1,r);function a(e){return!!i[e]}function s(e){i[e]=1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(187),o=n(136),i=n(3),a=n(15),s={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},l=Object(r.a)(o.a,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,l=e.isLoaded,c=e.shouldFadeIn,u=e.shouldStartVisible,A=e.isLandscape,d=e.isCenter,g=e.isContain,p=e.isCover,h=e.isCenterContain,f=e.isCenterCover,m=e.isNone,y=e.isError,I=e.isNotImageFit,C=e.theme,E=Object(i.R)(s,C),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},v=Object(a.a)(),B=void 0!==v&&void 0===v.navigator.msMaxTouchPoints,M=g&&A||p&&!A?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[E.root,C.fonts.medium,{overflow:"hidden"},o&&[E.rootMaximizeFrame,{height:"100%",width:"100%"}],l&&c&&!u&&i.a.fadeIn400,(d||g||p||h||f)&&{position:"relative"},t],image:[E.image,{display:"block",opacity:0},l&&["is-loaded",{opacity:1}],d&&[E.imageCenter,b],g&&[E.imageContain,B&&{width:"100%",height:"100%",objectFit:"contain"},!B&&M,!B&&b],p&&[E.imageCover,B&&{width:"100%",height:"100%",objectFit:"cover"},!B&&M,!B&&b],h&&[E.imageCenterContain,A&&{maxWidth:"100%"},!A&&{maxHeight:"100%"},b],f&&[E.imageCenterCover,A&&{maxHeight:"100%"},!A&&{maxWidth:"100%"},b],m&&[E.imageNone,{width:"auto",height:"auto"}],I&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],A&&E.imageLandscape,!A&&E.imagePortrait,!l&&"is-notLoaded",c&&"is-fadeIn",y&&"is-error"]}}),void 0,{scope:"Image"},!0);l.displayName="Image"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(290);function o(e,t){return void 0===t&&(t=!0),e&&(t&&Object(r.a)(e)||e.parentNode&&e.parentNode)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(15);function o(e){var t=null;try{var n=Object(r.a)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function i(e,t){var n;try{null===(n=Object(r.a)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=void 0;var r=n(50),o=n(327),i=n(330),a=n(205),s=n(42);Object.defineProperty(t,"defaultAxisStyle",{enumerable:!0,get:function(){return s.defaultAxisStyle}});var l=n(205);Object.defineProperty(t,"CartesianPlotSegment",{enumerable:!0,get:function(){return l.CartesianPlotSegment}}),Object.defineProperty(t,"CurvePlotSegment",{enumerable:!0,get:function(){return l.CurvePlotSegment}}),Object.defineProperty(t,"PolarPlotSegment",{enumerable:!0,get:function(){return l.PolarPlotSegment}});var c=n(84);Object.defineProperty(t,"PlotSegmentClass",{enumerable:!0,get:function(){return c.PlotSegmentClass}}),t.registerClasses=function(){r.ObjectClasses.Register(o.LineGuide),r.ObjectClasses.Register(i.MapPlotSegment),r.ObjectClasses.Register(a.CartesianPlotSegment),r.ObjectClasses.Register(a.CurvePlotSegment),r.ObjectClasses.Register(a.PolarPlotSegment)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SVGImageIcon=void 0;var i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e={};return null!=this.props.width&&(e.width=this.props.width+"px"),null!=this.props.height&&(e.height=this.props.height+"px"),this.props.url?(e.backgroundImage="url("+this.props.url+")",i.createElement("span",{className:"el-svg-icon svg-image-icon",style:e,onDragStart:function(){return!1}})):i.createElement("span",{className:"el-svg-icon svg-image-icon"})},t}(i.PureComponent);t.SVGImageIcon=a},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorsPickerLeftSectionWrapper=t.ColorsPickerWrapper=t.ColorsSectionWrapper=t.PickersSection=t.PickersSectionWrapper=t.ColorGridColumnWrapper=t.ColorGridRowWrapper=t.NullButtonWrapper=t.defaultPaletteButtonsStyles=t.defaultNoneButtonStyles=void 0;var o,i,a,s,l,c,u,A,d=n(88);t.defaultNoneButtonStyles={root:{border:"unset",width:"100%",padding:"unset",height:24},label:{textAlign:"start"}},t.defaultPaletteButtonsStyles={root:{border:"unset",height:24,width:"100%"},label:{textAlign:"start",fontWeight:400}},t.NullButtonWrapper=d.default.div(o||(o=r(["\n  border-top: 1px solid #e6e6e6;\n"],["\n  border-top: 1px solid #e6e6e6;\n"]))),t.ColorGridRowWrapper=d.default.div(i||(i=r(["\n  display: flex;\n  flex-direction: row;\n"],["\n  display: flex;\n  flex-direction: row;\n"]))),t.ColorGridColumnWrapper=d.default.div(a||(a=r(["\n  display: flex;\n  flex-direction: column;\n"],["\n  display: flex;\n  flex-direction: column;\n"]))),t.PickersSectionWrapper=d.default.div(s||(s=r(["\n  margin: 5px;\n  width: 150px;\n  display: flex;\n  flex-direction: column;\n"],["\n  margin: 5px;\n  width: 150px;\n  display: flex;\n  flex-direction: column;\n"]))),t.PickersSection=d.default.div(l||(l=r(["\n  flex-grow: 1;\n"],["\n  flex-grow: 1;\n"]))),t.ColorsSectionWrapper=d.default.div(c||(c=r(["\n  margin: 5px;\n"],["\n  margin: 5px;\n"]))),t.ColorsPickerWrapper=d.default.div(u||(u=r(["\n  display: flex;\n"],["\n  display: flex;\n"]))),t.ColorsPickerLeftSectionWrapper=d.default.div(A||(A=r(["\n  border-right: 1px solid #e6e6e6;\n  display: flex;\n"],["\n  border-right: 1px solid #e6e6e6;\n  display: flex;\n"])))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MarkSelection=t.GlyphSelection=t.ChartElementSelection=t.Selection=void 0;var i=function(){};t.Selection=i;var a=function(e){function t(t){var n=e.call(this)||this;return n.chartElement=t,n}return o(t,e),t}(i);t.ChartElementSelection=a;var s=function(e){function t(t,n){void 0===t&&(t=null);var r=e.call(this)||this;return r.plotSegment=t,r.glyph=n,r}return o(t,e),t}(i);t.GlyphSelection=s;var l=function(e){function t(t,n,r){var o=e.call(this)||this;return o.plotSegment=t,o.glyph=n,o.mark=r,o}return o(t,e),t}(i);t.MarkSelection=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.InputField=t.ColorSpacePicker=void 0;var a=n(29),s=n(0),l=n(5),c=n(555),u=n(556),A=n(557),d=n(558),g=function(e){function t(t){var n=e.call(this,t)||this;n.pickerSize=200;var r=t.defaultValue||{r:0,g:0,b:0},o=i(t.colorSpaces[0].fromRGB(r.r,r.g,r.b),3),a=o[0],s=o[1],l=o[2];return n.state={desc:t.colorSpaces[0],x1:a,x2:s,x3:l},n}return o(t,e),t.prototype.reset=function(){var e=this,t=this.props.defaultValue||{r:0,g:0,b:0},n=i(this.state.desc.fromRGB(t.r,t.g,t.b),3),r=n[0],o=n[1],a=n[2];this.setState({x1:r,x2:o,x3:a},(function(){return e.raiseChange()}))},t.prototype.raiseChange=function(){var e=this.state.desc.toRGB(this.state.x1,this.state.x2,this.state.x3),t={r:e[0],g:e[1],b:e[2]};this.props.onChange&&this.props.onChange(t)},t.prototype.renderZ=function(){var e=this,t=this.pickerSize,n=2*this.pickerSize,r=i(this.state.desc.dimension1.range,2),o=r[0],a=r[1];return s.createElement(f,{width:30,height:t,canvasWidth:5,canvasHeight:n,x1Offset:o,x1StrideZ:a-o,x2Offset:this.state.x2,x2StrideZ:0,x3Offset:this.state.x3,x3StrideZ:0,pz:(this.state.x1-o)/(a-o),toRGB:this.state.desc.toRGB,onMove:function(t,n){e.setState({x1:t*(a-o)+o},(function(){n&&e.raiseChange()}))}})},t.prototype.renderXY=function(){var e=this,t=this.pickerSize,n=this.pickerSize,r=this.pickerSize,o=this.pickerSize,a=i(this.state.desc.dimension2.range,2),l=a[0],c=a[1],u=i(this.state.desc.dimension3.range,2),A=u[0],d=u[1];return s.createElement(h,{width:t,height:n,canvasWidth:r,canvasHeight:o,x1Offset:this.state.x1,x1StrideX:0,x1StrideY:0,x2Offset:l,x2StrideX:c-l,x2StrideY:0,x3Offset:A,x3StrideX:0,x3StrideY:d-A,px:(this.state.x2-l)/(c-l),py:(this.state.x3-A)/(d-A),toRGB:this.state.desc.toRGB,onMove:function(t,n,r){e.setState({x2:t*(c-l)+l,x3:n*(d-A)+A},(function(){r&&e.raiseChange()}))}})},t.prototype.render=function(){var e=this,t=this.state.desc.toRGB(this.state.x1,this.state.x2,this.state.x3),n={r:t[0],g:t[1],b:t[2]};return s.createElement("div",{className:"hcl-color-picker"},s.createElement("div",{className:"part-picker"},s.createElement("section",{className:"palette-xy"},this.renderXY()),s.createElement("section",{className:"palette-z"},this.renderZ()),s.createElement("section",{className:"values"},s.createElement("div",{className:"row"},s.createElement(c.ColorSpaceSelect,{colorSpaces:this.props.colorSpaces,state:this.state,updateState:function(t){return e.setState(t)}})),s.createElement("div",{className:"row"},s.createElement("div",{className:"columns"},s.createElement("div",{className:"column"},s.createElement("span",{className:"current-color"},s.createElement("span",{style:{backgroundColor:l.colorToHTMLColor(n)}}))),s.createElement("div",{className:"column"},s.createElement(u.ColorHexInput,{state:this.state,updateState:function(t){e.setState(t,(function(){return e.raiseChange()}))}})))),s.createElement("div",{className:"columns"},s.createElement("div",{className:"column"},s.createElement("div",{className:"row"},s.createElement(A.ColorDimensionInput,{defaultValue:this.state.x1,range:this.state.desc.dimension1.range,updateState:function(t){e.setState({x1:t},(function(){return e.raiseChange()}))},title:this.state.desc.dimension1.name})),s.createElement("div",{className:"row"},s.createElement(A.ColorDimensionInput,{defaultValue:this.state.x2,range:this.state.desc.dimension2.range,updateState:function(t){e.setState({x2:t},(function(){return e.raiseChange()}))},title:this.state.desc.dimension2.name})),s.createElement("div",{className:"row"},s.createElement(A.ColorDimensionInput,{defaultValue:this.state.x3,range:this.state.desc.dimension3.range,updateState:function(t){e.setState({x3:t},(function(){return e.raiseChange()}))},title:this.state.desc.dimension3.name}))),s.createElement(d.ColorRgbInput,{state:this.state,updateState:function(t){e.setState(t,(function(){return e.raiseChange()}))}})))))},t}(s.Component);t.ColorSpacePicker=g;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentWillUpdate=function(e){this.inputElement.value=e.defaultValue},t.prototype.doEnter=function(){this.props.defaultValue!=this.inputElement.value&&(this.props.onEnter&&this.props.onEnter(this.inputElement.value)||(this.inputElement.value=this.props.defaultValue))},t.prototype.doCancel=function(){this.inputElement.value=this.props.defaultValue},Object.defineProperty(t.prototype,"value",{get:function(){return this.inputElement.value},set:function(e){this.inputElement.value=e},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return s.createElement("input",{type:"text",ref:function(t){return e.inputElement=t},defaultValue:this.props.defaultValue,autoFocus:!0,onKeyDown:function(t){"Enter"==t.key&&e.doEnter(),"Escape"==t.key&&e.doCancel()},onFocus:function(e){e.currentTarget.select()},onBlur:function(){e.doEnter()}})},t}(s.Component);t.InputField=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.renderCanvas(),this.hammer=new a(this.refs.canvasElement),this.hammer.add(new a.Pan({threshold:0})),this.hammer.add(new a.Tap),this.hammer.on("panstart tap pan panend",(function(t){var n=e.refs.canvasElement.getBoundingClientRect(),r=t.center.x-n.left,o=t.center.y-n.top;r/=e.props.width,o/=e.props.height;var i="tap"==t.type||"panend"==t.type;r=Math.max(0,Math.min(1,r)),o=Math.max(0,Math.min(1,o)),e.props.onMove(r,o,i)}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),this.hammer=null},t.prototype.componentDidUpdate=function(){this.renderCanvas()},t.prototype.renderCanvas=function(){var e=this,t=this.refs.canvasElement,n=t.width,r=t.height,o=t.getContext("2d");setTimeout((function(){var t=o.getImageData(0,0,n,r),i=e.props,a=i.x1Offset,s=i.x2Offset,l=i.x3Offset,c=e.props,u=c.x1StrideX,A=c.x1StrideY,d=e.props,g=d.x2StrideX,p=d.x2StrideY,h=e.props,f=h.x3StrideX,m=h.x3StrideY;u/=t.width-1,g/=t.width-1,f/=t.width-1,A/=t.height-1,p/=t.height-1,m/=t.height-1;for(var y=0,I=0;I<t.height;I++)for(var C=a+I*A,E=s+I*p,b=l+I*m,v=0;v<t.width;v++){var B=e.props.toRGB(C+v*u,E+v*g,b+v*f);t.data[y++]=B[0],t.data[y++]=B[1],t.data[y++]=B[2],t.data[y++]=B[3]?128:255}o.putImageData(t,0,0)}),0)},t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.canvasWidth,o=e.canvasHeight,i=e.px*(t-1)+.5,a=e.py*(n-1)+.5;return s.createElement("div",{className:"canvas-xy"},s.createElement("div",{className:"canvas-container",style:{padding:"2px 2px"}},s.createElement("canvas",{ref:"canvasElement",width:r,height:o,style:{width:t+"px",height:n+"px"}})),s.createElement("svg",{width:t+4,height:n+4},s.createElement("g",{transform:"translate(2, 2)"},s.createElement("circle",{className:"bg",cx:i,cy:a,r:5}),s.createElement("circle",{className:"fg",cx:i,cy:a,r:5}))))},t}(s.PureComponent),f=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.renderCanvas(),this.hammer=new a(this.refs.canvasElement),this.hammer.add(new a.Pan({threshold:0})),this.hammer.add(new a.Tap),this.hammer.on("panstart tap pan panend",(function(t){var n=e.refs.canvasElement.getBoundingClientRect(),r=t.center.y-n.top;r/=e.props.height;var o="tap"==t.type||"panend"==t.type;r=Math.max(0,Math.min(1,r)),e.props.onMove(r,o)}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),this.hammer=null},t.prototype.componentDidUpdate=function(){this.renderCanvas()},t.prototype.renderCanvas=function(){var e=this,t=this.refs.canvasElement,n=t.width,r=t.height,o=t.getContext("2d");setTimeout((function(){var t=o.getImageData(0,0,n,r),i=e.props,a=i.x1Offset,s=i.x2Offset,l=i.x3Offset,c=e.props,u=c.x1StrideZ,A=c.x2StrideZ,d=c.x3StrideZ;u/=t.height-1,A/=t.height-1,d/=t.height-1;for(var g=0,p=0;p<t.height;p++)for(var h=a+p*u,f=s+p*A,m=l+p*d,y=e.props.toRGB(h,f,m),I=0;I<t.width;I++)t.data[g++]=y[0],t.data[g++]=y[1],t.data[g++]=y[2],t.data[g++]=y[3]?128:255;o.putImageData(t,0,0)}),0)},t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.canvasWidth,o=e.canvasHeight,i=e.pz*(n-1)+.5;return s.createElement("div",{className:"canvas-z"},s.createElement("div",{className:"canvas-container",style:{padding:"2px 2px"}},s.createElement("canvas",{ref:"canvasElement",width:r,height:o,style:{width:t+"px",height:n+"px"}})),s.createElement("svg",{width:t+4,height:n+4},s.createElement("g",{transform:"translate(2, 2)"},s.createElement("rect",{className:"bg",x:0,y:i-2,width:30,height:4}),s.createElement("rect",{className:"fg",x:0,y:i-2,width:30,height:4}))))},t}(s.PureComponent)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FluentUIGradientPicker=t.Colorspace=void 0;var i,a=n(0),s=n(11),l=n(564),c=n(265);!function(e){e.LAB="lab",e.HCL="hcl"}(i=t.Colorspace||(t.Colorspace={}));var u=function(e){function t(t){var n=e.call(this,t)||this;return n.selectGradient=n.selectGradient.bind(n),n.state={currentTab:"palettes",currentGradient:n.props.defaultValue||{colorspace:i.LAB,colors:[{r:0,g:0,b:0},{r:255,g:255,b:255}]}},n}return o(t,e),t.prototype.selectGradient=function(e,t){var n=this;void 0===t&&(t=!1),this.setState({currentGradient:e},(function(){t&&n.props.onPick&&n.props.onPick(e)}))},t.prototype.render=function(){return a.createElement("div",{className:"gradient-picker"},a.createElement(s.Pivot,{"aria-label":"Basic Pivot Example"},a.createElement(s.PivotItem,{headerText:"Palettes"},a.createElement(c.GradientPalettes,{selectGradient:this.selectGradient})),a.createElement(s.PivotItem,{headerText:"Custom"},a.createElement(l.CustomGradientMenu,{currentGradient:this.state.currentGradient,selectGradient:this.selectGradient}))))},t}(a.Component);t.FluentUIGradientPicker=u},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(177);Object.defineProperty(t,"ChartComponent",{enumerable:!0,get:function(){return i.ChartComponent}});var a=n(573);Object.defineProperty(t,"ChartTemplate",{enumerable:!0,get:function(){return a.ChartTemplate}});var s=n(574);Object.defineProperty(t,"ChartContainer",{enumerable:!0,get:function(){return s.ChartContainer}}),o(n(5),t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileView=t.CurrentChartView=t.MainTabs=void 0;var s,l=n(0),c=n(13),u=n(14),A=n(9),d=n(605),g=n(607),p=n(609),h=n(610),f=n(611),m=n(7),y=n(32);!function(e){e.about="about",e.export="export",e.new="new",e.open="open",e.options="options",e.save="save"}(s=t.MainTabs||(t.MainTabs={}));var I=[s.new,s.open,s.save,s.export,s.options,null,s.about],C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={svgDataURL:null},n.renderImage(),n}return o(t,e),t.prototype.renderImage=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,this.props.store.renderLocalSVG()];case 1:return e=t.sent(),this.setState({svgDataURL:A.stringToDataURL("image/svg+xml",e)}),[2]}}))}))},t.prototype.render=function(){return l.createElement("div",{className:"current-chart-view"},l.createElement("img",{src:this.state.svgDataURL}))},t}(l.PureComponent);t.CurrentChartView=C;var E=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentTab:n.props.defaultTab||s.open},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){var t;null===(t=e.buttonBack)||void 0===t||t.focus()}),100)},t.prototype.switchTab=function(e){this.setState({currentTab:e})},t.prototype.renderContent=function(){switch(this.state.currentTab){case s.new:return l.createElement(g.FileViewNew,{store:this.props.store,onClose:this.props.onClose});case s.save:return l.createElement(h.FileViewSaveAs,{store:this.props.store,onClose:this.props.onClose});case s.export:return l.createElement(d.FileViewExport,{store:this.props.store,onClose:this.props.onClose});case s.options:return l.createElement(f.FileViewOptionsView,{onClose:this.props.onClose});case s.about:return l.createElement("iframe",{className:"charticulator__file-view-about",src:"about.html",style:{flex:"1"}});case s.open:default:return l.createElement(p.FileViewOpen,{store:this.props.store,onClose:this.props.onClose})}},t.prototype.render=function(){var e=this;return l.createElement(y.MainReactContext.Provider,{value:{store:this.props.store}},l.createElement("div",{className:"charticulator__file-view"},l.createElement("div",{className:"charticulator__file-view-tabs"},l.createElement("div",{ref:function(t){return e.buttonBack=t},tabIndex:0,className:"el-button-back",onClick:function(){return e.props.onClose()},onKeyPress:function(t){"Enter"===t.key&&e.props.onClose()}},l.createElement(u.SVGImageIcon,{url:c.getSVGIcon("toolbar/back")})),I.map((function(t,n){return null===t?l.createElement("div",{key:n,className:"el-sep"}):l.createElement("div",{tabIndex:0,key:n,className:A.classNames("el-tab",["active",e.state.currentTab==t]),onClick:function(){return e.switchTab(t)},onKeyPress:function(n){"Enter"===n.key&&e.switchTab(t)}},m.strings.mainTabs[t])}))),l.createElement(u.TelemetryContext.Consumer,null,(function(t){return l.createElement(u.ErrorBoundary,{telemetryRecorder:t},e.renderContent())}))))},t}(l.Component);t.FileView=E},function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return r.a})),n.d(t,"timeFormat",(function(){return r.b})),n.d(t,"timeParse",(function(){return r.c})),n.d(t,"utcFormat",(function(){return r.d})),n.d(t,"utcParse",(function(){return r.e})),n.d(t,"timeFormatLocale",(function(){return o.a})),n.d(t,"isoFormat",(function(){return i})),n.d(t,"isoParse",(function(){return a}));var r=n(52),o=n(128);var i=Date.prototype.toISOString?function(e){return e.toISOString()}:Object(r.d)("%Y-%m-%dT%H:%M:%S.%LZ");var a=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Object(r.e)("%Y-%m-%dT%H:%M:%S.%LZ")},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(1);function o(e,t){return void 0===e&&(e={}),(a(t)?t:function(e){return function(t){return e?Object(r.a)(Object(r.a)({},t),e):t}}(t))(e)}function i(e,t){return void 0===e&&(e={}),(a(t)?t:function(e){void 0===e&&(e={});return function(t){var n=Object(r.a)({},t);for(var o in e)e.hasOwnProperty(o)&&(n[o]=Object(r.a)(Object(r.a)({},t[o]),e[o]));return n}}(t))(e)}function a(e){return"function"==typeof e}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(r||(r={}))},function(e,t,n){"use strict";var r=n(20),o=Object(r.a)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(20),o=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=o;o.range},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Core=void 0;var r=n(5);t.Core=r;var o=n(19);Object.defineProperty(t,"Actions",{enumerable:!0,get:function(){return o.Actions}}),Object.defineProperty(t,"DragData",{enumerable:!0,get:function(){return o.DragData}});var i=n(224);Object.defineProperty(t,"Application",{enumerable:!0,get:function(){return i.Application}}),Object.defineProperty(t,"ApplicationExtensionContext",{enumerable:!0,get:function(){return i.ApplicationExtensionContext}}),Object.defineProperty(t,"NestedEditorEventType",{enumerable:!0,get:function(){return i.NestedEditorEventType}});var a=n(13);Object.defineProperty(t,"addSVGIcon",{enumerable:!0,get:function(){return a.addSVGIcon}}),Object.defineProperty(t,"getSVGIcon",{enumerable:!0,get:function(){return a.getSVGIcon}});var s=n(284);Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return s.Widgets}});var l=n(9);Object.defineProperty(t,"expect_deep_approximately_equals",{enumerable:!0,get:function(){return l.expect_deep_approximately_equals}});var c=n(76);Object.defineProperty(t,"PopupContainer",{enumerable:!0,get:function(){return c.PopupContainer}}),t.globals=n(27)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var r,o,i,a=n(148);function s(e){return r=Object(a.a)(e),o=r.format,i=r.formatPrefix,r}s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64Image=t.convertColumnType=t.inferAndConvertColumn=t.getDistinctValues=t.convertColumn=t.inferColumnType=t.dataTypes=void 0;var a=n(24),s=n(81),l=n(160);function c(e,t){var n=new RegExp("\\"+t.remove,"g");if(e=e.replace(n,""),"."!==t.decimal){var r=new RegExp("\\"+t.decimal,"g");e=e.replace(r,".")}return+e}function u(e,n){for(var r=[s.DataType.Image,s.DataType.Boolean,s.DataType.Number,s.DataType.Date],o=0;o<e.length;o++){var i=e[o];if(""!=(i=i.trim())){for(var a=0;a<r.length;a++)t.dataTypes[r[a]].test(i,n)||(r.splice(a,1),a-=1);if(0==r.length)return s.DataType.String}}return r[0]}function A(e,n,r,o){void 0===r&&(r={remove:",",decimal:"."}),void 0===o&&(o=0);var i=t.dataTypes[e].convert;return n.map((function(t){return e===s.DataType.Date?null!=t?i(t,o):null:null!=t?i(t,r):null}))}function d(e){return"string"==typeof e&&null!=e.match(/data:image\/(ico|jpg|jpeg|png|webp|svg|gif|svg\+xml);base64,/)}t.dataTypes={boolean:{test:function(e){var t=e.toLowerCase();return"true"===t||"false"===t||"yes"==t||"no"==t},convert:function(e){var t=e.toLowerCase();return"true"==t||"yes"==t||"false"!=t&&"no"!=t&&null}},number:{test:function(e,t){if("null"===e)return!0;var n=c(e,t);return!isNaN(n)},convert:function(e,t){var n=c(e,t);return isNaN(n)?null:n}},date:{test:function(e){return null!=l.parseDate(e)},convert:function(e,t){return l.parseDate(e,t)}},string:{test:function(e){return!0},convert:function(e){return e.toString()}},image:{test:function(e){return d(e)},convert:function(e){return e.toString()}}},t.inferColumnType=u,t.convertColumn=A,t.getDistinctValues=function(e){var t,n,o=new Set;try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var s=a.value;o.add(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return Array.from(o)},t.inferAndConvertColumn=function(e,t,n){var r=u(e.filter((function(e){return null!=e})),t.numberFormat),o=A(r,e,t.numberFormat,t.utcTimeZone?0:(new Date).getTimezoneOffset());switch(null==n&&(n={}),r){case s.DataType.Image:return(p={kind:s.DataKind.Categorical,unit:n.unit}).orderMode=a.OrderMode.order,p.kind=s.DataKind.Categorical,{type:s.DataType.Image,values:o,metadata:p};case s.DataType.Number:var c=o.filter((function(e){return null!=e})),d=Math.min.apply(Math,i(c)),g=Math.max.apply(Math,i(c));return c.every((function(e){return Math.round(e)==e}))&&d>=1900&&g<=2100?{type:s.DataType.String,values:o.map((function(e){return e.toString()})),metadata:{unit:"__year",kind:s.DataKind.Ordinal,orderMode:a.OrderMode.alphabetically}}:{type:s.DataType.Number,values:o,metadata:{kind:s.DataKind.Numerical,unit:n.unit}};case s.DataType.Boolean:return{type:s.DataType.Boolean,values:o,rawValues:e.map((function(e){return e&&e.toLowerCase()})),metadata:{kind:s.DataKind.Categorical}};case s.DataType.Date:return{type:s.DataType.Date,values:o,rawValues:e,metadata:{kind:s.DataKind.Temporal,unit:n.unit,format:l.getDateFormat(e[0])}};case s.DataType.String:var p={kind:s.DataKind.Categorical,unit:n.unit};return(c=o.filter((function(e){return null!=e}))).every((function(e){return null!=l.testAndNormalizeMonthName(e)}))?{type:s.DataType.String,values:o.map((function(e){return null!=e?l.testAndNormalizeMonthName(e):null})),metadata:{kind:s.DataKind.Ordinal,order:l.monthNames,unit:"__month"}}:(n.order?(p.order=n.order.split(","),p.kind=s.DataKind.Ordinal):(p.orderMode=a.OrderMode.alphabetically,p.kind=s.DataKind.Categorical),{type:s.DataType.String,values:o,metadata:p})}return console.warn("inferAndConvertColumn: inferredType is unexpected"),{type:r,values:o,metadata:{kind:s.DataKind.Categorical}}},t.convertColumnType=function(e,t){switch(t){case s.DataType.Boolean:return e.map((function(e){if(null==e)return null;if("boolean"==typeof e)return e;if("number"==typeof e)return e>0;var t=e.toString().toLowerCase();return"yes"==t||"true"==t}));case s.DataType.Number:return e.map((function(e){if(null==e)return null;var t=+e;return isNaN(t)?null:t}));case s.DataType.String:return e.map((function(e){return null==e?"":e.toString()}));case s.DataType.Date:return e.map((function(e){return null==e?null:"number"==typeof e?e:l.parseDate(e.toString())}))}},t.isBase64Image=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.Variable=t.LambdaFunction=t.Operator=t.FunctionCall=t.FieldAccess=t.DateValue=t.BooleanValue=t.NumberValue=t.StringValue=t.Value=t.TextExpression=t.Expression=t.variableReplacer=t.SimpleContext=t.ShadowContext=void 0;var l=n(317),c=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this.upstream=e,this.shadows=t}return e.prototype.getVariable=function(e){return Object.prototype.hasOwnProperty.call(this.shadows,e)?this.shadows[e]:this.upstream.getVariable(e)},e}();t.ShadowContext=c;var u=function(){function e(){this.variables={}}return e.prototype.getVariable=function(e){return this.variables[e]},e}();t.SimpleContext=u;var A=n(318),d=n(161),g=n(5);t.variableReplacer=function(e){return function(t){if(t instanceof M&&e.hasOwnProperty(t.name))return new M(e[t.name])}};var p=function(){function e(){}return e.prototype.toStringPrecedence=function(e){return this.getPrecedence()<e?"("+this.toString()+")":this.toString()},e.prototype.getNumberValue=function(e){return this.getValue(e)},e.prototype.getStringValue=function(e){var t=this.getValue(e);return null!=t?t.toString():"null"},e.Parse=function(e){return l.parse(e)},e.prototype.replace=function(e){var t=e(this);return t||this.replaceChildren(e)},e}();t.Expression=p;var h=function(){function e(e){void 0===e&&(e=[]),this.parts=e}return e.prototype.getValue=function(e){return this.parts.map((function(t){if(t.string)return t.string;if(t.expression){var n=t.expression.getValue(e);if(!t.format)return n;try{return g.getFormat()(t.format)(+n)}catch(r){try{return g.applyDateFormat(new Date(+n),t.format)}catch(r){if(t.format.match(/^%raw$/).length>0)return function(e,t,n){if(null==t)return t;if(e instanceof c&&n instanceof b&&n.args[0]instanceof M){var r=n.args[0].name,o=e.upstream.columns.find((function(e){return e.name==r}));if(o.metadata.rawColumnName&&(o.metadata.kind===g.Specification.DataKind.Temporal||o.type===g.Specification.DataType.Boolean))return e.getVariable(o.metadata.rawColumnName)}if(e instanceof d.DataflowTableGroupedContext&&n instanceof b&&n.args[0]instanceof M){var i=n.args[0].name,a=e.getTable().columns.find((function(e){return e.name==i})).metadata.rawColumnName;if(a)return e.getVariable(a)}return t}(e,n,t.expression);throw r}}}})).join("")},e.prototype.isTrivialString=function(){return this.parts.every((function(e){return null!=e.string}))},e.prototype.toString=function(){return this.parts.map((function(e){if(e.string)return e.string.replace(/([$\\])/g,"\\$1");if(e.expression){var t=e.expression.toString();return e.format?"${"+t+"}{"+e.format+"}":"${"+t+"}"}})).join("")},e.Parse=function(e){return l.parse(e,{startRule:"start_text"})},e.prototype.replace=function(t){return new e(this.parts.map((function(e){return e.string?{string:e.string}:e.expression?e.format?{expression:e.expression.replace(t),format:e.format}:{expression:e.expression.replace(t)}:void 0})))},e}();t.TextExpression=h;var f=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return o(t,e),t.prototype.getValue=function(){return this.value},t.prototype.toString=function(){return JSON.stringify(this.value)},t.prototype.getPrecedence=function(){return A.precedences.VALUE},t.prototype.replaceChildren=function(e){return new t(this.value)},t}(p);t.Value=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(f);t.StringValue=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(f);t.NumberValue=y;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(f);t.BooleanValue=I;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(f);t.DateValue=C;var E=function(e){function t(t,n){var r=e.call(this)||this;return r.expr=t,r.fields=n,r}return o(t,e),t.prototype.getValue=function(e){var t,n,r=this.expr.getValue(e);try{for(var o=i(this.fields),a=o.next();!a.done;a=o.next()){r=r[a.value]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},t.prototype.toString=function(){return this.expr.toStringPrecedence(A.precedences.FIELD_ACCESS)+"."+this.fields.map(M.VariableNameToString).join(".")},t.prototype.getPrecedence=function(){return A.precedences.FIELD_ACCESS},t.prototype.replaceChildren=function(e){return new t(this.expr.replace(e),this.fields)},t}(p);t.FieldAccess=E;var b=function(e){function t(t,n){var r,o,a=e.call(this)||this;a.name=t.join("."),a.args=n;var s=A.functions;try{for(var l=i(t),c=l.next();!c.done;c=l.next()){var u=c.value;s=Object.prototype.hasOwnProperty.call(s,u)||s[u]?s[u]:void 0}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}if(null==s)throw new SyntaxError("undefiend function "+a.name);return a.function=s,a}return o(t,e),t.prototype.getValue=function(e){var t,n=null===(t=this.args.map((function(t){return t.getValue(e)})))||void 0===t?void 0:t.filter((function(e){return void 0!==e}));return n.length?this.function.apply(this,s(n)):null},t.prototype.toString=function(){return this.name+"("+this.args.map((function(e){return e.toStringPrecedence(A.precedences.FUNCTION_ARGUMENT)})).join(", ")+")"},t.prototype.getPrecedence=function(){return A.precedences.FUNCTION_CALL},t.prototype.replaceChildren=function(e){return new t(this.name.split("."),this.args.map((function(t){return t.replace(e)})))},t}(p);t.FunctionCall=b;var v=function(e){function t(t,n,r){var o=e.call(this)||this;return o.name=t,o.lhs=n,o.rhs=r,o.op=null!=r?A.operators[t]:A.operators["unary:"+t],o}return o(t,e),t.prototype.getValue=function(e){var t=this.lhs.getValue(e);if(null!=this.rhs){var n=this.rhs.getValue(e);return this.op(t,n)}return this.op(t)},t.prototype.toString=function(){var e=this.getMyPrecedence();return null!=this.rhs?this.lhs.toStringPrecedence(e[1])+" "+this.name+" "+this.rhs.toStringPrecedence(e[2]):this.name+" "+this.lhs.toStringPrecedence(e[1])},t.prototype.getMyPrecedence=function(){return null!=this.rhs?A.precedences.OPERATORS[this.name]:A.precedences.OPERATORS["unary:"+this.name]},t.prototype.getPrecedence=function(){return this.getMyPrecedence()[0]},t.prototype.replaceChildren=function(e){return new t(this.name,this.lhs.replace(e),this.rhs?this.rhs.replace(e):null)},t}(p);t.Operator=v;var B=function(e){function t(t,n){var r=e.call(this)||this;return r.expr=t,r.argNames=n,r}return o(t,e),t.prototype.getValue=function(e){var t=this;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var o=new c(e),i=0;i<t.argNames.length;i++)o.shadows[t.argNames[i]]=n[i];return t.expr.getValue(o)}},t.prototype.toString=function(){return"("+this.argNames.join(", ")+") => "+this.expr.toStringPrecedence(A.precedences.LAMBDA_EXPRESSION)},t.prototype.getPrecedence=function(){return A.precedences.LAMBDA_FUNCTION},t.prototype.replaceChildren=function(e){var n=this;return new t(this.expr.replace((function(t){return t instanceof M&&n.argNames.indexOf(t.name)>=0?void 0:e(t)})),this.argNames)},t}(p);t.LambdaFunction=B;var M=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return o(t,e),t.prototype.getValue=function(e){var t=e.getVariable(this.name);return void 0===t?A.constants[this.name]:t},t.prototype.toString=function(){return t.VariableNameToString(this.name)},t.prototype.getPrecedence=function(){return A.precedences.VARIABLE},t.isNonEnglishVariableName=function(e){return!!e.match(/^[^\x00-\x7F]+$/)},t.VariableNameToString=function(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)?e:JSON.stringify(e).replace(/^"|"$/g,"`")},t.prototype.replaceChildren=function(e){return new t(this.name)},t}(p);t.Variable=M},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.CategoricalLegendClass=t.ReservedMappingKeyNamePrefix=void 0;var l=n(22),c=n(209),u=n(7),A=n(118);t.ReservedMappingKeyNamePrefix="reserved_";var d=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.textMeasure=new l.TextMeasurer,t}return o(n,e),n.prototype.getLegendItems=function(){var e=this.getScale();if(e){var n=a(e,1)[0],r=n.properties.mapping,o=[];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&!i.startsWith(t.ReservedMappingKeyNamePrefix))switch(n.classID){case"scale.categorical<string,boolean>":o.push({type:"boolean",label:i,value:r[i]});break;case"scale.categorical<string,number>":o.push({type:"number",label:i,value:r[i]});break;case"scale.categorical<string,color>":o.push({type:"color",label:i,value:r[i]})}return this.object.properties.order?this.object.properties.order.length!=o.length?o:this.object.properties.order.map((function(e){return{type:"color",label:e,value:r[e]}})):o}return[]},n.prototype.getLineHeight=function(){return this.object.properties.fontSize+10},n.prototype.getLineWidth=function(){var e=0,t=this.getLegendItems();if(this.object.properties.orientation===A.OrientationType.HORIZONTAL)for(var n=0;n<t.length;n++){var r=t[n];e+=10+(o=this.textMeasure.measure(r.label)).width}else{e=t[0]&&this.textMeasure.measure(t[0].label).width||0;for(n=0;n<t.length;n++){var o;r=t[n];10+(o=this.textMeasure.measure(r.label)).width>e&&(e=10+o.width)}}return e},n.prototype.getLegendSize=function(){var e=this.getLegendItems();return this.object.properties.orientation===A.OrientationType.VERTICAL||void 0===this.object.properties.orientation?[this.getLineWidth()+this.getLineHeight(),e.length*this.getLineHeight()]:[this.getLineWidth()+e.length*this.getLineHeight(),this.getLineHeight()]},n.prototype.getGraphics=function(){var e=this.object.properties.fontFamily,t=this.object.properties.fontSize,n=this.getLineHeight();this.textMeasure.setFontFamily(e),this.textMeasure.setFontSize(t);for(var r=l.makeGroup([]),o=this.getLegendItems(),i=0,a=0;a<o.length;a++){var s=o[a],c=this.textMeasure.measure(s.label),u=l.TextMeasurer.ComputeTextPosition(n,n/2,c,"left","middle",5,0),d=l.makeText(u[0],u[1],s.label,e,t,{fillColor:this.object.properties.textColor}),g=l.makeGroup([d]);switch(s.type){case"color":switch(this.object.properties.markerShape){case"rectangle":g.elements.push(l.makeRect(8,4,n,n-4,{fillColor:s.value}));break;case"triangle":g.elements.push(l.makePolygon([{x:n/2+4,y:n-4},{x:6,y:4},{x:n+4-2,y:4}],{fillColor:s.value}));break;case"circle":default:g.elements.push(l.makeCircle(n/2,n/2,n/3,{fillColor:s.value}))}}this.object.properties.orientation===A.OrientationType.HORIZONTAL?(g.transform={x:i,y:0,angle:0},i+=c.width+n+10):g.transform={x:0,y:n*(o.length-1-a),angle:0},r.elements.push(g)}var p=this.getLayoutBox(),h=p.x1,f=p.y1;return r.transform={x:h,y:f,angle:0},r},n.prototype.getLayoutBox=function(){if(this.object.properties.orientation===A.OrientationType.VERTICAL||void 0===this.object.properties.orientation)return e.prototype.getLayoutBox.call(this);var t,n,r,o,i=this.state.attributes,s=i.x,l=i.y,c=a(this.getLegendSize(),2),u=c[0],d=c[1];switch(this.object.properties.alignX){case"start":t=s,r=s+u;break;case"middle":t=s-u/2,r=s+u/2;break;case"end":t=s-u,r=s}switch(this.object.properties.alignY){case"start":n=l,o=l+d;break;case"middle":n=l-d/2,o=l+d/2;break;case"end":n=l-d,o=l}return{x1:t,y1:n,x2:r,y2:o}},n.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t);return s(n,[t.verticalGroup({header:u.strings.objects.legend.categoricalLegend},[t.inputSelect({property:"orientation"},{type:"radio",showLabel:!1,icons:["GripperBarVertical","GripperBarHorizontal"],labels:[u.strings.objects.legend.vertical,u.strings.objects.legend.horizontal],options:[A.OrientationType.VERTICAL,A.OrientationType.HORIZONTAL],label:u.strings.objects.legend.orientation,searchSection:u.strings.objects.legend.categoricalLegend})])])},n.classID="legend.categorical",n.type="legend",n.defaultProperties=i(i({},c.LegendClass.defaultProperties),{orientation:A.OrientationType.VERTICAL}),n}(c.LegendClass);t.CategoricalLegendClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrientationType=void 0,function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(t.OrientationType||(t.OrientationType={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=t.TableLinksClass=t.LayoutsLinksClass=t.SeriesLinksClass=t.LinksClass=t.facetRows=t.ArrowType=t.linkMarkTypes=void 0;var s,l=n(12),c=n(22),u=n(6),A=n(6),d=n(67),g=n(50),p=n(7),h=n(340);function f(e,t,n){var r,o;if(null==n)return[t];var a=new l.MultistringHashMap,s=function(t){var r=e.getGroupedContext(t),o=n.map((function(e){return e.getStringValue(r)}));a.has(o)?a.get(o).push(t):a.set(o,[t])};try{for(var c=i(t),u=c.next();!u.done;u=c.next()){s(u.value)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return Array.from(a.values())}t.linkMarkTypes=["solid","dashed","dotted"],function(e){e.NO_ARROW="NO_ARROW",e.ARROW="ARROW",e.DIAMOND_ARROW="DIAMOND_ARROW",e.OVAL_ARROW="OVAL_ARROW"}(s=t.ArrowType||(t.ArrowType={})),t.facetRows=f;var m=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.attributeNames=["color","opacity"],n.attributes={linkMarkType:{name:"linkMarkType",type:u.AttributeType.Enum,solverExclude:!0,defaultValue:"4 8",stateExclude:!0,defaultRange:t.linkMarkTypes},color:{name:"color",type:u.AttributeType.Color,solverExclude:!0,defaultValue:null,stateExclude:!0},strokeWidth:{name:"strokeWidth",type:u.AttributeType.Number,solverExclude:!0,defaultValue:null,stateExclude:!0},opacity:{name:"opacity",type:u.AttributeType.Number,solverExclude:!0,defaultValue:1,defaultRange:[0,1],stateExclude:!0}},n}return o(n,e),n.prototype.resolveLinkAnchorPoints=function(e,t){return e.map((function(e){return{anchorIndex:l.indexOf(t.marks,(function(e){return"mark.anchor"==e.classID})),x:{element:l.indexOf(t.marks,(function(t){return t._id==e.x.element})),attribute:e.x.attribute},y:{element:l.indexOf(t.marks,(function(t){return t._id==e.y.element})),attribute:e.y.attribute},direction:e.direction}}))},n.prototype.getAnchorPoints=function(e,t,n,r,o){var i=r.attributes.x,a=r.attributes.y,s=t[0].anchorIndex;i-=r.marks[s].attributes.x,a-=r.marks[s].attributes.y;var l=n.getCoordinateSystem();return{points:t.map((function(e){var t=e.x.element<0?r.attributes[e.x.attribute]:r.marks[e.x.element].attributes[e.x.attribute],n=e.y.element<0?r.attributes[e.y.attribute]:r.marks[e.y.element].attributes[e.y.attribute];return{x:i+t,y:a+n,direction:e.direction}})),curveness:null!=this.object.properties.curveness?this.object.properties.curveness:30,coordinateSystem:l,color:e.colorFunction(o),opacity:e.opacityFunction(o),strokeWidth:e.strokeWidthFunction(o)}},n.BandPath=function(e,t,n,r){var o,i;if(void 0===n&&(n=!1),void 0===r&&(r=!1),n?(i=t.points[0],o=t.points[1]):(o=t.points[0],i=t.points[1]),r){var a=c.transform(t.coordinateSystem.getBaseTransform(),t.coordinateSystem.transformPoint(o.x,o.y));e.moveTo(a.x,a.y)}if(t.coordinateSystem instanceof c.PolarCoordinates)e.polarLineTo(t.coordinateSystem.origin.x,t.coordinateSystem.origin.y,90-o.x,o.y,90-i.x,i.y);else{a=c.transform(t.coordinateSystem.getBaseTransform(),t.coordinateSystem.transformPoint(i.x,i.y));e.lineTo(a.x,a.y)}},n.ConnectionPath=function(e,t,n,r,o,i,a,s,c){switch(void 0===c&&(c=!1),c&&e.moveTo(n.x,n.y),t){case"line":e.lineTo(i.x,i.y);break;case"bezier":var u=o,A=s;e.cubicBezierCurveTo(n.x+r.x*u,n.y+r.y*u,i.x+a.x*A,i.y+a.y*A,i.x,i.y);break;case"circle":var d=(n.x+i.x)/2,g=(n.y+i.y)/2,p=n.y-i.y,h=i.x-n.x;if(Math.abs(r.x*p+r.y*h)<1e-6)e.lineTo(i.x,i.y);else{var f=(r.x*(d-n.x)+r.y*(g-n.y))/(r.x*p+r.y*h),m={x:d-p*f,y:g-h*f},y=l.Geometry.pointDistance(m,n),I=180/Math.PI,C=Math.atan2(n.y-m.y,n.x-m.x)*I,E=Math.atan2(i.y-m.y,i.x-m.x)*I,b=(n.y-m.y)*r.x-(n.x-m.x)*r.y;if(b>0)for(;E>C;)E-=360;if(b<0)for(;E<C;)E+=360;e.polarLineTo(m.x,m.y,C,y,E,y,!1)}}},n.LinkPath=function(e,t,r,o,i){switch(t){case"line":var a=o.coordinateSystem.transformPointWithBase(o.points[0].x,o.points[0].y),s=i.coordinateSystem.transformPointWithBase(i.points[0].x,i.points[0].y),c=o.coordinateSystem.transformDirectionAtPointWithBase(o.points[0].x,o.points[0].y,o.points[0].direction.x,o.points[0].direction.y),u=i.coordinateSystem.transformDirectionAtPointWithBase(i.points[0].x,i.points[0].y,i.points[0].direction.x,i.points[0].direction.y);n.ConnectionPath(e,r,a,c,o.curveness,s,u,i.curveness,!0);break;case"band":a=o.coordinateSystem.transformPointWithBase(o.points[0].x,o.points[0].y);var A=o.coordinateSystem.transformPointWithBase(o.points[1].x,o.points[1].y),d=(s=i.coordinateSystem.transformPointWithBase(i.points[0].x,i.points[0].y),i.coordinateSystem.transformPointWithBase(i.points[1].x,i.points[1].y)),g=(c=o.coordinateSystem.transformDirectionAtPointWithBase(o.points[0].x,o.points[0].y,o.points[0].direction.x,o.points[0].direction.y),o.coordinateSystem.transformDirectionAtPointWithBase(o.points[1].x,o.points[1].y,o.points[1].direction.x,o.points[1].direction.y)),p=(u=i.coordinateSystem.transformDirectionAtPointWithBase(i.points[0].x,i.points[0].y,i.points[0].direction.x,i.points[0].direction.y),i.coordinateSystem.transformDirectionAtPointWithBase(i.points[1].x,i.points[1].y,i.points[1].direction.x,i.points[1].direction.y));l.Geometry.vectorCross(c,{x:A.x-a.x,y:A.y-a.y})*l.Geometry.vectorCross(u,{x:d.x-s.x,y:d.y-s.y})>0?(n.BandPath(e,o,!1,!0),n.ConnectionPath(e,r,A,g,o.curveness,s,u,i.curveness,!1),n.BandPath(e,i,!1,!1),n.ConnectionPath(e,r,d,p,i.curveness,a,c,o.curveness,!1),e.closePath()):(n.BandPath(e,o,!1,!0),n.ConnectionPath(e,r,A,g,o.curveness,d,p,i.curveness,!1),n.BandPath(e,i,!0,!1),n.ConnectionPath(e,r,s,u,i.curveness,a,c,o.curveness,!1),e.closePath())}},n.prototype.renderLinks=function(e,t,r,o){var a,u,A,d,g=this.object.properties;switch(e){case"line":var p=null!==(A=g.beginArrowType)&&void 0!==A?A:s.NO_ARROW,h=null!==(d=g.endArrowType)&&void 0!==d?d:s.NO_ARROW;return c.makeGroup(r.map((function(r){for(var i=[],a=0;a<r.length-1;a++){var s=c.makePath({strokeColor:r[a][0].color,strokeOpacity:r[a][0].opacity,strokeWidth:r[a][0].strokeWidth,strokeDasharray:o,strokeLinecap:"butt",startArrowColorId:"start-arrow-color-id-"+l.getRandomNumber(),endArrowColorId:"end-arrow-color-id-"+l.getRandomNumber()});s.setBeginArrowType(p),s.setEndArrowType(h),n.LinkPath(s,e,t,r[a][0],r[a+1][1]),i.push(s.path)}return c.makeGroup(i)})));case"band":var f=new Map,m=function(e){var t=e[0].x-e[1].x,n=e[0].y-e[1].y,r=e[0].direction.x,o=e[0].direction.y;return[e[0].x,e[0].y,e[1].x,e[1].y,Math.sign(t*o-n*r)].join(",")};try{for(var y=i(r),I=y.next();!I.done;I=y.next())for(var C=I.value,E=0;E<C.length-1;E++){var b=C[E][0],v=C[E+1][1],B=m(b.points),M=m(v.points);f.has(B)?f.get(B).push([b,v]):f.set(B,[[b,v]]),f.has(M)?f.get(M).push([v,b]):f.set(M,[[v,b]])}}catch(e){a={error:e}}finally{try{I&&!I.done&&(u=y.return)&&u.call(y)}finally{if(a)throw a.error}}return f.forEach((function(e){for(var t=e[0][0].points[0].x,n=e[0][0].points[0].y,r=e[0][0].points[1].x,o=e[0][0].points[1].y,i=e[0][0].coordinateSystem.transformPoint(t,n),a=e[0][0].coordinateSystem.transformPoint(r,o),s=Math.sqrt((a.x-i.x)*(a.x-i.x)+(a.y-i.y)*(a.y-i.y)),l=(i.x+a.x)/2,c=(i.y+a.y)/2,u=e.map((function(e){var t=e[1].coordinateSystem.transformPoint(e[1].points[0].x,e[1].points[0].y),n=(t.x-l)*(a.x-i.x)+(t.y-c)*(a.y-i.y),r=Math.sqrt((t.x-l)*(t.x-l)+(t.y-c)*(t.y-c)),o=n/r/s;return o>.999999?1+r:o<-.999999?-1-r:o})),A=[],d=0,g=0;g<e.length;g++)A.push(g),d+=e[g][0].strokeWidth;A.sort((function(e,t){return u[e]-u[t]}));var p=0;for(g=0;g<e.length;g++){var h=A[g],f=p/d,m=(p+=e[h][0].strokeWidth)/d;e[h][0].points[0].x=t+(r-t)*f,e[h][0].points[0].y=n+(o-n)*f,e[h][0].points[1].x=t+(r-t)*m,e[h][0].points[1].y=n+(o-n)*m}})),c.makeGroup(r.map((function(r){for(var o=[],i=0;i<r.length-1;i++){var a=c.makePath({fillColor:r[i][0].color,fillOpacity:r[i][0].opacity});n.LinkPath(a,e,t,r[i][0],r[i+1][1]),o.push(a.path)}return c.makeGroup(o)})))}},n.prototype.getGraphics=function(e){return null},n.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[],r=[];return n.push(e.inputSelect({property:"interpolationType"},{type:"dropdown",showLabel:!0,options:["line","bezier","circle"],labels:[p.strings.objects.links.line,p.strings.objects.links.bezier,p.strings.objects.links.arc],label:p.strings.objects.links.type,searchSection:p.strings.objects.general}),"line"==t.linkType?e.inputSelect({property:"linkMarkType"},{type:"dropdown",showLabel:!0,options:["","8","1 10"],labels:[p.strings.objects.links.solid,p.strings.objects.links.dashed,p.strings.objects.links.dotted],label:p.strings.objects.links.linkMarkType,icons:["line","stroke/dashed","stroke/dotted"],isLocalIcons:!0,searchSection:p.strings.objects.general}):null),"line"==t.linkType&&(n.push(e.inputSelect({property:"beginArrowType"},{type:"dropdown",showLabel:!0,options:[s.NO_ARROW,s.ARROW,s.DIAMOND_ARROW,s.OVAL_ARROW],labels:[p.strings.objects.arrows.noArrow,p.strings.objects.arrows.arrow,p.strings.objects.arrows.diamondArrow,p.strings.objects.arrows.ovalArrow],label:p.strings.objects.arrows.beginArrowType,icons:["noArrow","beginArrow","beginDiamondArrow","beginOvalArrow"],isLocalIcons:!0,searchSection:p.strings.objects.general})),n.push(e.inputSelect({property:"endArrowType"},{type:"dropdown",showLabel:!0,options:[s.NO_ARROW,s.ARROW,s.DIAMOND_ARROW,s.OVAL_ARROW],labels:[p.strings.objects.arrows.noArrow,p.strings.objects.arrows.arrow,p.strings.objects.arrows.diamondArrow,p.strings.objects.arrows.ovalArrow],label:p.strings.objects.arrows.endArrowType,icons:["noArrow","endArrow","endDiamondArrow","endOvalArrow"],isLocalIcons:!0,searchSection:p.strings.objects.general}))),h.shouldShowCloseLink(this.parent,t)&&n.push(e.inputBoolean({property:"closeLink"},{type:"checkbox",label:p.strings.objects.links.closeLink,checkBoxStyles:{root:{marginTop:5}},searchSection:p.strings.objects.general})),"bezier"==t.interpolationType&&n.push(e.inputNumber({property:"curveness"},{showSlider:!0,minimum:0,sliderRange:[0,500],label:p.strings.objects.links.curveness,searchSection:p.strings.objects.general})),r.push(e.verticalGroup({header:p.strings.objects.general},n)),r.push(e.verticalGroup({header:p.strings.objects.style},[e.mappingEditor(p.strings.objects.color,"color",{table:t.linkTable&&t.linkTable.table,acceptLinksTable:!(!t.linkTable||!t.linkTable.table),searchSection:p.strings.objects.style}),e.mappingEditor(p.strings.objects.width,"strokeWidth",{hints:{rangeNumber:[0,5]},defaultValue:1,numberOptions:{showSlider:!0,sliderRange:[0,5],minimum:0},table:t.linkTable&&t.linkTable.table,acceptLinksTable:!(!t.linkTable||!t.linkTable.table),searchSection:p.strings.objects.style}),e.mappingEditor(p.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},table:t.linkTable&&t.linkTable.table,acceptLinksTable:!(!t.linkTable||!t.linkTable.table),searchSection:p.strings.objects.style})])),r},n.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.color&&this.object.mappings.color.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"color"},type:u.AttributeType.Color,default:this.object.mappings.color&&l.rgbToHex(this.object.mappings.color.value)}),this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"strokeWidth"},type:u.AttributeType.Number,default:this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.value}),this.object.mappings.opacity&&this.object.mappings.opacity.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:u.AttributeType.Number,default:this.object.mappings.opacity&&this.object.mappings.opacity.value}),{properties:e}},n.metadata={iconPath:"CharticulatorLine"},n}(d.ChartElementClass);t.LinksClass=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getGraphics=function(e){for(var t=this,n=this.object.properties,r=c.makeGroup([]),o={colorFunction:this.parent.resolveMapping(this.object.mappings.color,{r:0,g:0,b:0}),opacityFunction:this.parent.resolveMapping(this.object.mappings.opacity,1),strokeWidthFunction:this.parent.resolveMapping(this.object.mappings.strokeWidth,1)},i=this.parent.object,a=this.parent.state,s=l.indexOf(i.elements,(function(e){return e._id==n.linkThrough.plotSegment})),u=i.elements[s],A=l.getById(i.glyphs,u.glyph),d=a.elements[s],g=e.getPlotSegmentClass(d),p=this.parent.dataflow.getTable(u.table),m=f(p,d.dataRowIndices,n.linkThrough.facetExpressions.map((function(e){return t.parent.dataflow.cache.parse(e)}))),y=new Map,I=0;I<d.dataRowIndices.length;I++)y.set(d.dataRowIndices[I].join(","),d.glyphs[I]);var C=this.resolveLinkAnchorPoints(n.anchor1,A),E=this.resolveLinkAnchorPoints(n.anchor2,A),b=m.map((function(e){return e.map((function(e){var n=y.get(e.join(",")),r=p.getGroupedContext(e);return n?[t.getAnchorPoints(o,C,g,n,r),t.getAnchorPoints(o,E,g,n,r)]:null}))}));try{if(h.shouldShowCloseLink(this.parent,n,!0))for(I=0;I<b.length;I++){var v=b[I];v.push([v[v.length-1][1],v[0][0]])}}catch(e){}return r.elements.push(this.renderLinks(n.linkType,n.interpolationType,b,n.linkMarkType)),r},t.classID="links.through",t.type="links",t.defaultProperties={visible:!0,closeLink:!1,beginArrowType:s.NO_ARROW,endArrowType:s.NO_ARROW},t}(m);t.SeriesLinksClass=y;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getGraphics=function(e){for(var t=this.object.properties,n=c.makeGroup([]),r={colorFunction:this.parent.resolveMapping(this.object.mappings.color,{r:0,g:0,b:0}),opacityFunction:this.parent.resolveMapping(this.object.mappings.opacity,1),strokeWidthFunction:this.parent.resolveMapping(this.object.mappings.strokeWidth,1)},o=this.parent.object,i=this.parent.state,a=t.linkBetween.plotSegments.map((function(e){return l.indexOf(o.elements,(function(t){return t._id==e}))})),s=a.map((function(e){return o.elements[e]})),u=a.map((function(e){return i.elements[e]})),A=u.map((function(t){return e.getPlotSegmentClass(t)})),d=s.map((function(e){return l.getById(o.glyphs,e.glyph)})),g=this.resolveLinkAnchorPoints(t.anchor1,d[0]),p=this.resolveLinkAnchorPoints(t.anchor2,d[1]),h=0;h<u.length-1;h++){for(var f=new Map,m=0;m<u[h].dataRowIndices.length;m++)f.set(u[h].dataRowIndices[m].join(","),m);for(var y=this.parent.dataflow.getTable(s[0].table),I=[],C=0;C<u[h+1].dataRowIndices.length;C++){var E=u[h+1].dataRowIndices[C],b=E.join(",");if(f.has(b)){var v=f.get(b),B=y.getGroupedContext(E);I.push([[this.getAnchorPoints(r,g,A[h],u[h].glyphs[v],B),null],[null,this.getAnchorPoints(r,p,A[h+1],u[h+1].glyphs[C],B)]])}}n.elements.push(this.renderLinks(t.linkType,t.interpolationType,I,t.linkMarkType))}return n},t.classID="links.between",t.type="links",t.defaultProperties={visible:!0,closeLink:!1,beginArrowType:s.NO_ARROW,endArrowType:s.NO_ARROW},t}(m);t.LayoutsLinksClass=I;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getGraphics=function(e){for(var t=this,n=this.object.properties,r=c.makeGroup([]),o={colorFunction:this.parent.resolveMapping(this.object.mappings.color,{r:0,g:0,b:0}),opacityFunction:this.parent.resolveMapping(this.object.mappings.opacity,1),strokeWidthFunction:this.parent.resolveMapping(this.object.mappings.strokeWidth,1)},i=this.parent.object,s=this.parent.state,u=n.linkTable.plotSegments.map((function(e){return l.indexOf(i.elements,(function(t){return t._id==e}))})),A=u.map((function(e){return i.elements[e]})),d=u.map((function(e){return s.elements[e]})),g=d.map((function(t){return e.getPlotSegmentClass(t)})),p=A.map((function(e){return l.getById(i.glyphs,e.glyph)})),h=this.resolveLinkAnchorPoints(n.anchor1,p[0]),f=this.resolveLinkAnchorPoints(n.anchor2,p[1]),m=this.parent.dataflow.getTable(n.linkTable.table),y=A.map((function(e,n){for(var r=t.parent.dataflow.getTable(e.table),o=new Map,i=0;i<d[n].dataRowIndices.length;i++){var a=d[n].dataRowIndices[i],s=a.map((function(e){return r.getRow(e).id})).join(",");o.set(s,[a,i])}return{table:r,id2RowGlyphIndex:o}})),I=[],C=0;C<m.rows.length;C++)I.push(C);var E=[];for(C=0;C<I.length;C++){var b=I[C],v=m.getGroupedContext([b]),B=m.getRow(b),M=B.source_id&&y[0].id2RowGlyphIndex.get(B.source_id.toString()),D=B.target_id&&y[1].id2RowGlyphIndex.get(B.target_id.toString());if(M&&D){var x=a(M,2),w=(x[0],x[1]),Q=a(D,2),S=(Q[0],Q[1]);E.push([[this.getAnchorPoints(o,h,g[0],d[0].glyphs[w],v),null],[null,this.getAnchorPoints(o,f,g[1],d[1].glyphs[S],v)]])}}return r.elements.push(this.renderLinks(n.linkType,n.interpolationType,E,n.linkMarkType)),r},t.classID="links.table",t.type="links",t.defaultProperties={visible:!0,beginArrowType:s.NO_ARROW,endArrowType:s.NO_ARROW},t}(m);t.TableLinksClass=C,t.registerClasses=function(){g.ObjectClasses.Register(y),g.ObjectClasses.Register(I),g.ObjectClasses.Register(C)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MarkClass=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.initializeState=function(){},t.prototype.buildConstraints=function(e,t,n){},t.prototype.getGraphics=function(e,t,n,r,o){return null},t.prototype.getDropZones=function(){return[]},t.prototype.getLinkAnchors=function(e){return[]},t.prototype.getHandles=function(){return[]},t.prototype.getBoundingBox=function(){return null},t.prototype.getSnappingGuides=function(){return[]},t.prototype.getGlyphClass=function(){return this.parent},t.prototype.getPlotSegmentClass=function(){return this.parent.parent},t.prototype.getChartClass=function(){return this.parent.parent.parent},t}(n(31).ObjectClass);t.MarkClass=i},function(e,t,n){var r=n(86);
/*!
 * Chai - isProxyEnabled helper
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */e.exports=function(){return r.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}},function(e,t){var n=Object.getOwnPropertyDescriptor((function(){}),"length");
/*!
 * Chai - addLengthGuard utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */e.exports=function(e,t,r){return n.configurable?(Object.defineProperty(e,"length",{get:function(){if(r)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e):e}},function(e,t,n){var r=n(86),o=n(51),i=n(221),a=n(121),s=["__flags","__methods","_obj","assert"];e.exports=function(e,t){return a()?new Proxy(e,{get:function e(n,a){if("string"==typeof a&&-1===r.proxyExcludedKeys.indexOf(a)&&!Reflect.has(n,a)){if(t)throw Error("Invalid Chai property: "+t+"."+a+'. See docs for proper usage of "'+t+'".');var l=null,c=4;throw i(n).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&-1===s.indexOf(e)){var t=function(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;for(var r=[],o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(var i=0;i<t.length;i++)r[0][i]=i;for(o=1;o<=e.length;o++){var a=e.charCodeAt(o-1);for(i=1;i<=t.length;i++)Math.abs(o-i)>=n?r[o][i]=n:r[o][i]=Math.min(r[o-1][i]+1,r[o][i-1]+1,r[o-1][i-1]+(a===t.charCodeAt(i-1)?0:1))}return r[e.length][t.length]}(a,e,c);t<c&&(l=e,c=t)}})),null!==l?Error("Invalid Chai property: "+a+'. Did you mean "'+l+'"?'):Error("Invalid Chai property: "+a)}return-1!==s.indexOf(a)||o(n,"lockSsfi")||o(n,"ssfi",e),Reflect.get(n,a)}}):e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandOrCollapsePanelsUpdated=t.SearchUpdated=t.OpenNestedEditor=t.ClearMessages=t.RemoveMessage=t.AddMessage=t.SetCurrentTool=t.SetCurrentMappingAttribute=t.FocusToMarkAttribute=t.SelectChartElement=t.SelectGlyph=t.ReorderGlyphMark=t.ReorderChartElement=t.ExtendPlotSegment=t.SetObjectMappingScale=t.DeleteObjectProperty=t.SetObjectProperty=t.SetChartAttribute=t.SetChartSize=t.UpdateChartAttribute=t.AddLinks=t.BindDataToAxis=t.SnapChartElements=t.UpdateChartElementAttribute=t.ToggleLegendForScale=t.SetScaleAttribute=t.SetPlotSegmentGroupBy=t.SetPlotSegmentFilter=t.MapDataToChartElementAttribute=t.SetChartElementMapping=t.DeleteChartElement=t.AddChartElement=t.UpdateGlyphAttribute=t.SetGlyphAttribute=t.MarkActionGroup=t.SnapMarks=t.UpdateMarkAttribute=t.UnmapMarkAttribute=t.SetMarkAttribute=t.MarkAction=t.MapDataToMarkAttribute=t.RemoveMarkFromGlyph=t.AddMarkToGlyph=t.RemoveGlyph=t.AddGlyph=t.ConvertColumnDataType=t.UpdateDataAxis=t.UpdatePlotSegments=t.ReplaceDataset=t.ImportChartAndDataset=t.ImportDataset=t.Load=t.SaveAs=t.Save=t.Open=t.SaveExportTemplatePropertyName=t.ExportTemplate=t.Export=t.Reset=t.Redo=t.Undo=t.ClearSelection=t.SelectMark=t.Action=void 0;var i=n(5);Object.defineProperty(t,"Action",{enumerable:!0,get:function(){return i.Action}}),Object.defineProperty(t,"SelectMark",{enumerable:!0,get:function(){return i.SelectMark}}),Object.defineProperty(t,"ClearSelection",{enumerable:!0,get:function(){return i.ClearSelection}});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.digest=function(){return{name:"Undo"}},t}(i.Action);t.Undo=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.digest=function(){return{name:"Redo"}},t}(i.Action);t.Redo=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.digest=function(){return{name:"Reset"}},t}(i.Action);t.Reset=l;var c=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.type=t,r.options=n,r}return o(t,e),t.prototype.digest=function(){return{name:"Export",type:this.type,options:this.options}},t}(i.Action);t.Export=c;var u=function(e){function t(t,n,r){var o=e.call(this)||this;return o.kind=t,o.target=n,o.properties=r,o}return o(t,e),t.prototype.digest=function(){return{name:"ExportTemplate"}},t}(i.Action);t.ExportTemplate=u;var A=function(e){function t(t,n,r){var o=e.call(this)||this;return o.objectId=t,o.propertyName=n,o.value=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SaveExportTemplatePropertyName"}},t}(i.Action);t.SaveExportTemplatePropertyName=A;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.id=t,r.onFinish=n,r}return o(t,e),t.prototype.digest=function(){return{name:"Open",id:this.id}},t}(i.Action);t.Open=d;var g=function(e){function t(t){var n=e.call(this)||this;return n.onFinish=t,n}return o(t,e),t.prototype.digest=function(){return{name:"Save"}},t}(i.Action);t.Save=g;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.saveAs=t,r.onFinish=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SaveAs",saveAs:this.saveAs}},t}(i.Action);t.SaveAs=p;var h=function(e){function t(t){var n=e.call(this)||this;return n.projectData=t,n}return o(t,e),t.prototype.digest=function(){return{name:"Load"}},t}(i.Action);t.Load=h;var f=function(e){function t(t){var n=e.call(this)||this;return n.dataset=t,n}return o(t,e),t.prototype.digest=function(){return{name:"ImportDataset",datasetName:this.dataset.name}},t}(i.Action);t.ImportDataset=f;var m=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.specification=t,i.dataset=n,i.options=r,i.originSpecification=o,i}return o(t,e),t.prototype.digest=function(){return{name:"ImportChartAndDataset"}},t}(i.Action);t.ImportChartAndDataset=m;var y=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this)||this;return r.dataset=t,r.keepState=n,r}return o(t,e),t.prototype.digest=function(){return{name:"ReplaceDataset",datasetName:this.dataset.name,keepState:this.keepState}},t}(i.Action);t.ReplaceDataset=y;var I=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.digest=function(){return{name:"UpdatePlotSegments"}},t}(i.Action);t.UpdatePlotSegments=I;var C=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.digest=function(){return{name:"UpdateDataAxis"}},t}(i.Action);t.UpdateDataAxis=C;var E=function(e){function t(t,n,r){var o=e.call(this)||this;return o.tableName=t,o.column=n,o.type=r,o}return o(t,e),t.prototype.digest=function(){return{name:"ConvertColumnDataType"}},t}(i.Action);t.ConvertColumnDataType=E;var b=function(e){function t(t){var n=e.call(this)||this;return n.classID=t,n}return o(t,e),t.prototype.digest=function(){return{name:"AddGlyph",classID:this.classID}},t}(i.Action);t.AddGlyph=b;var v=function(e){function t(t){var n=e.call(this)||this;return n.glyph=t,n}return o(t,e),t.prototype.digest=function(){return{name:"RemoveGlyph",glyph:i.objectDigest(this.glyph)}},t}(i.Action);t.RemoveGlyph=v;var B=function(e){function t(t,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var a=e.call(this)||this;return a.glyph=t,a.classID=n,a.point=r,a.mappings=o,a.properties=i,a}return o(t,e),t.prototype.digest=function(){return{name:"AddMarkToGlyph",classID:this.classID,glyph:i.objectDigest(this.glyph),mappings:this.mappings,properties:this.properties}},t}(i.Action);t.AddMarkToGlyph=B;var M=function(e){function t(t,n){var r=e.call(this)||this;return r.glyph=t,r.mark=n,r}return o(t,e),t.prototype.digest=function(){return{name:"RemoveMarkFromGlyph",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark)}},t}(i.Action);t.RemoveMarkFromGlyph=M;var D=function(e){function t(t,n,r,o,i,a,s,l,c){var u=e.call(this)||this;return u.glyph=t,u.mark=n,u.attribute=r,u.attributeType=o,u.expression=i,u.valueType=a,u.valueMetadata=s,u.hints=l,u.expressionTable=c,u}return o(t,e),t.prototype.digest=function(){return{name:"MapDataToMarkAttribute",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark),attribute:this.attribute,attributeType:this.attributeType,expression:this.expression,valueType:this.valueType,hints:this.hints}},t}(i.Action);t.MapDataToMarkAttribute=D;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i.Action);t.MarkAction=x;var w=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.glyph=t,i.mark=n,i.attribute=r,i.mapping=o,i}return o(t,e),t.prototype.digest=function(){return{name:"SetMarkAttribute",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark),attribute:this.attribute,mapping:this.mapping}},t}(x);t.SetMarkAttribute=w;var Q=function(e){function t(t,n,r){var o=e.call(this)||this;return o.glyph=t,o.mark=n,o.attribute=r,o}return o(t,e),t.prototype.digest=function(){return{name:"UnmapMarkAttribute",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark),attribute:this.attribute}},t}(x);t.UnmapMarkAttribute=Q;var S=function(e){function t(t,n,r){var o=e.call(this)||this;return o.glyph=t,o.mark=n,o.updates=r,o}return o(t,e),t.prototype.digest=function(){return{name:"UpdateMarkAttribute",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark),updates:this.updates}},t}(x);t.UpdateMarkAttribute=S;var N=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.glyph=t,a.mark=n,a.attribute=r,a.targetMark=o,a.targetAttribute=i,a}return o(t,e),t.prototype.digest=function(){return{name:"SnapMarks",glyph:i.objectDigest(this.glyph),mark:i.objectDigest(this.mark),attribute:this.attribute,targetMark:i.objectDigest(this.targetMark),targetAttribute:this.targetAttribute}},t}(x);t.SnapMarks=N;var k=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this;return n.actions=t,n}return o(t,e),t.prototype.add=function(e){this.actions.push(e)},t.prototype.digest=function(){return{name:"MarkActionGroup",actions:this.actions.map((function(e){return e.digest()}))}},t}(x);t.MarkActionGroup=k;var T=function(e){function t(t,n,r){var o=e.call(this)||this;return o.glyph=t,o.attribute=n,o.mapping=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SetGlyphAttribute",glyph:i.objectDigest(this.glyph),attribute:this.attribute,mapping:this.mapping}},t}(i.Action);t.SetGlyphAttribute=T;var j=function(e){function t(t,n){var r=e.call(this)||this;return r.glyph=t,r.updates=n,r}return o(t,e),t.prototype.digest=function(){return{name:"UpdateGlyphAttribute",glyph:i.objectDigest(this.glyph),updates:this.updates}},t}(i.Action);t.UpdateGlyphAttribute=j;var L=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;return o.classID=t,o.mappings=n,o.properties=r,o}return o(t,e),t.prototype.digest=function(){return{name:"AddChartElement",classID:this.classID,mappings:this.mappings,attribute:this.properties}},t}(i.Action);t.AddChartElement=L;var R=function(e){function t(t){var n=e.call(this)||this;return n.chartElement=t,n}return o(t,e),t.prototype.digest=function(){return{name:"DeleteChartElement",chartElement:i.objectDigest(this.chartElement)}},t}(i.Action);t.DeleteChartElement=R;var O=function(e){function t(t,n,r){var o=e.call(this)||this;return o.chartElement=t,o.attribute=n,o.mapping=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SetChartElementMapping",chartElement:i.objectDigest(this.chartElement),attribute:this.attribute,mapping:this.mapping}},t}(i.Action);t.SetChartElementMapping=O;var _=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this)||this;return c.chartElement=t,c.attribute=n,c.attributeType=r,c.table=o,c.expression=i,c.valueType=a,c.valueMetadata=s,c.hints=l,c}return o(t,e),t.prototype.digest=function(){return{name:"MapChartElementkAttribute",chartElement:i.objectDigest(this.chartElement),attribute:this.attribute,attributeType:this.attributeType,expression:this.expression,valueType:this.valueType,hints:this.hints}},t}(i.Action);t.MapDataToChartElementAttribute=_;var F=function(e){function t(t,n){var r=e.call(this)||this;return r.plotSegment=t,r.filter=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SetPlotSegmentFilter",plotSegment:i.objectDigest(this.plotSegment),filter:this.filter}},t}(i.Action);t.SetPlotSegmentFilter=F;var z=function(e){function t(t,n){var r=e.call(this)||this;return r.plotSegment=t,r.groupBy=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SetPlotSegmentGroupBy",plotSegment:i.objectDigest(this.plotSegment),groupBy:this.groupBy}},t}(i.Action);t.SetPlotSegmentGroupBy=z;var P=function(e){function t(t,n,r){var o=e.call(this)||this;return o.scale=t,o.attribute=n,o.mapping=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SetScaleAttribute",scale:i.objectDigest(this.scale),attribute:this.attribute,mapping:this.mapping}},t}(i.Action);t.SetScaleAttribute=P;var U=function(e){function t(t,n,r){var o=e.call(this)||this;return o.scale=t,o.mapping=n,o.plotSegment=r,o}return o(t,e),t.prototype.digest=function(){return{name:"ToggleLegendForScale",scale:this.scale,mapping:this.mapping.expression}},t}(i.Action);t.ToggleLegendForScale=U;var G=function(e){function t(t,n){var r=e.call(this)||this;return r.chartElement=t,r.updates=n,r}return o(t,e),t.prototype.digest=function(){return{name:"UpdateChartElementAttribute",chartElement:i.objectDigest(this.chartElement),updates:this.updates}},t}(i.Action);t.UpdateChartElementAttribute=G;var H=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.element=t,i.attribute=n,i.targetElement=r,i.targetAttribute=o,i}return o(t,e),t.prototype.digest=function(){return{name:"SnapChartElements",element:i.objectDigest(this.element),attribute:this.attribute,targetElement:i.objectDigest(this.targetElement),targetAttribute:this.targetAttribute}},t}(i.Action);t.SnapChartElements=H;var Y=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this)||this;return l.object=t,l.property=n,l.appendToProperty=r,l.dataExpression=o,l.defineCategories=i,l.type=a,l.numericalMode=s,l}return o(t,e),t.prototype.digest=function(){return{name:"BindDataToAxis",object:i.objectDigest(this.object),property:this.property,appendToProperty:this.appendToProperty,dataExpression:{table:this.dataExpression.table.name,expression:this.dataExpression.expression,valueType:this.dataExpression.valueType,kind:this.dataExpression.metadata.kind,allowSelectValue:this.dataExpression.allowSelectValue},type:this.type,numericalMode:this.numericalMode}},t}(i.Action);t.BindDataToAxis=Y;var V=function(e){function t(t){var n=e.call(this)||this;return n.links=t,n}return o(t,e),t.prototype.digest=function(){return{name:"AddLinks",links:this.links}},t}(i.Action);t.AddLinks=V;var W=function(e){function t(t,n){var r=e.call(this)||this;return r.chart=t,r.updates=n,r}return o(t,e),t.prototype.digest=function(){return{name:"UpdateChartAttribute",updates:this.updates}},t}(i.Action);t.UpdateChartAttribute=W;var K=function(e){function t(t,n){var r=e.call(this)||this;return r.width=t,r.height=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SetChartSize",width:this.width,height:this.height}},t}(i.Action);t.SetChartSize=K;var Z=function(e){function t(t,n){var r=e.call(this)||this;return r.attribute=t,r.mapping=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SetChartAttribute",attribute:this.attribute,mapping:this.mapping}},t}(i.Action);t.SetChartAttribute=Z;var J=function(e){function t(t,n,r,o,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1);var s=e.call(this)||this;return s.object=t,s.property=n,s.field=r,s.value=o,s.noUpdateState=i,s.noComputeLayout=a,s}return o(t,e),t.prototype.digest=function(){return{name:"SetObjectProperty",object:i.objectDigest(this.object),property:this.property,field:this.field,value:this.value,noUpdateState:this.noUpdateState,noComputeLayout:this.noComputeLayout}},t}(i.Action);t.SetObjectProperty=J;var q=function(e){function t(t,n,r,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.call(this)||this;return a.object=t,a.property=n,a.field=r,a.noUpdateState=o,a.noComputeLayout=i,a}return o(t,e),t.prototype.digest=function(){return{name:"DeleteObjectProperty",object:i.objectDigest(this.object),property:this.property,field:this.field,noUpdateState:this.noUpdateState,noComputeLayout:this.noComputeLayout}},t}(i.Action);t.DeleteObjectProperty=q;var X=function(e){function t(t,n,r){var o=e.call(this)||this;return o.object=t,o.property=n,o.scaleId=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SetObjectProperty",object:i.objectDigest(this.object),property:this.property,scaleId:this.scaleId}},t}(i.Action);t.SetObjectMappingScale=X;var $=function(e){function t(t,n){var r=e.call(this)||this;return r.plotSegment=t,r.extension=n,r}return o(t,e),t.prototype.digest=function(){return{name:"ExtendPlotSegment",plotSegment:i.objectDigest(this.plotSegment),extension:this.extension}},t}(i.Action);t.ExtendPlotSegment=$;var ee=function(e){function t(t,n){var r=e.call(this)||this;return r.fromIndex=t,r.toIndex=n,r}return o(t,e),t.prototype.digest=function(){return{name:"ReorderChartElement",fromIndex:this.fromIndex,toIndex:this.toIndex}},t}(i.Action);t.ReorderChartElement=ee;var te=function(e){function t(t,n,r){var o=e.call(this)||this;return o.glyph=t,o.fromIndex=n,o.toIndex=r,o}return o(t,e),t.prototype.digest=function(){return{name:"ReorderGlyphMark",glyph:i.objectDigest(this.glyph),fromIndex:this.fromIndex,toIndex:this.toIndex}},t}(i.Action);t.ReorderGlyphMark=te;var ne=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this)||this;return o.plotSegment=t,o.glyph=n,o.glyphIndex=r,o}return o(t,e),t.prototype.digest=function(){return{name:"SelectGlyph",plotSegment:i.objectDigest(this.plotSegment),glyph:i.objectDigest(this.glyph),glyphIndex:this.glyphIndex}},t}(i.Action);t.SelectGlyph=ne;var re=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.chartElement=t,r.glyphIndex=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SelectChartElement",glyph:i.objectDigest(this.chartElement),glyphIndex:this.glyphIndex}},t}(i.Action);t.SelectChartElement=re;var oe=function(e){function t(t){var n=e.call(this)||this;return n.attributeName=t,n}return o(t,e),t.prototype.digest=function(){return{name:"FocusToMarkAttribute",attributeName:this.attributeName}},t}(i.Action);t.FocusToMarkAttribute=oe;var ie=function(e){function t(t){var n=e.call(this)||this;return n.attributeName=t,n}return o(t,e),t.prototype.digest=function(){return{name:"SetCurrentMappingAttribute",attributeName:this.attributeName}},t}(i.Action);t.SetCurrentMappingAttribute=ie;var ae=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.tool=t,r.options=n,r}return o(t,e),t.prototype.digest=function(){return{name:"SetCurrentTool",tool:this.tool,options:this.options}},t}(i.Action);t.SetCurrentTool=ae;var se=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.type=t,r.options=n,r}return o(t,e),t.prototype.digest=function(){return{name:"AddMessage",type:this.type,options:this.options}},t}(i.Action);t.AddMessage=se;var le=function(e){function t(t){var n=e.call(this)||this;return n.type=t,n}return o(t,e),t.prototype.digest=function(){return{name:"RemoveMessage",type:this.type}},t}(i.Action);t.RemoveMessage=le;var ce=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.digest=function(){return{name:"ClearMessages"}},t}(i.Action);t.ClearMessages=ce;var ue=function(e){function t(t,n,r){var o=e.call(this)||this;return o.object=t,o.property=n,o.options=r,o}return o(t,e),t.prototype.digest=function(){return{name:"OpenNestedEditor"}},t}(i.Action);t.OpenNestedEditor=ue;var Ae=function(e){function t(t){var n=e.call(this)||this;return n.searchString=t,n}return o(t,e),t.prototype.digest=function(){return{name:"SearchUpdated"}},t}(i.Action);t.SearchUpdated=Ae;var de=function(e){function t(t){var n=e.call(this)||this;return n.type=t,n}return o(t,e),t.prototype.digest=function(){return{name:"ExpandOrCollapsePanelsUpdated"}},t}(i.Action);t.ExpandOrCollapsePanelsUpdated=de},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DetailsButtonInner=t.FluentDetailsButton=t.DropZoneView=t.FluentUIWidgetManager=void 0;var A=n(0),d=n(90),g=n(27),p=n(13),h=n(5),f=n(19),m=n(14),y=n(100),I=n(58),C=n(9),E=n(70),b=n(40),v=n(590),B=n(105),M=n(49),D=n(160),x=n(273),w=n(11),Q=n(274),S=n(595),N=n(127),k=n(23),T=n(278),j=n(28),L=n(7),R=n(276),O=n(596),_=n(279),F=n(597),z=n(280),P=n(124),U=n(598),G=n(167),H=n(104),Y=n(24),V=n(600),W=n(601),K=n(602),Z=n(603),J=n(283),q=n(45),X=function(){function e(e,t,n){void 0===n&&(n=!1),this.store=e,this.objectClass=t,this.ignoreSearch=n,this.director=new _.Director,this.director.setBuilder(new _.MenuItemBuilder),this.eventManager=new G.EventManager,this.eventListener=new G.UIManagerListener(this),this.eventManager.subscribe(G.EventType.UPDATE_FIELD,this.eventListener)}return e.prototype.getKeyFromProperty=function(e){var t;return(null==e?void 0:e.property)+"-"+(null===(t=null==e?void 0:e.field)||void 0===t?void 0:t.toString())},e.prototype.searchInput=function(e){var t,n,r=this;return void 0===e&&(e={}),A.createElement(w.TextField,{styles:i(i({},k.defaultStyle),{field:i(i({},k.defaultStyle.field),{height:null,padding:"unset"}),root:{marginBottom:5,marginTop:5},prefix:{backgroundColor:"unset"}}),placeholder:e.placeholder,label:e.label,disabled:e.disabled,onRenderLabel:k.labelRender,onChange:function(e,t){var n="";(null==t?void 0:t.length)>0&&(n=t.trim()),r.store.dispatcher.dispatch(new f.Actions.SearchUpdated(n))},type:"text",underlined:null!==(t=e.underline)&&void 0!==t&&t,borderless:null!==(n=e.borderless)&&void 0!==n&&n,style:e.styles,prefix:"",onRenderPrefix:function(){return A.createElement(w.FontIcon,{"aria-label":"Search",iconName:"Search"})},autoComplete:"off",defaultValue:this.store.searchString})},e.prototype.searchWrapper=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.searchPattern,o=this.store.searchString;if(!(0!=(null==o?void 0:o.length)&&r.length>=0)||r.some((function(e){return e&&(null==e?void 0:e.toUpperCase().includes(null==o?void 0:o.toUpperCase()))})))return A.createElement(A.Fragment,null,t.map((function(e,t){return A.createElement(A.Fragment,{key:"search-"+t+"-"+h.getRandomNumber()},Array.isArray(e)?e.map((function(e){return A.createElement(A.Fragment,{key:"search-"+t+"-"+h.getRandomNumber()},e)})):e)})))},e.prototype.mappingEditor=function(e,t,n){var r,o=this,a=Array.isArray(n.searchSection)?n.searchSection:[n.searchSection];if(this.shouldDrawComponent(c([e],a))){var s=this.objectClass.attributes[t];null==n.defaultValue&&(n.defaultValue=s.defaultValue),n.acceptLinksTable=null!==(r=n.acceptLinksTable)&&void 0!==r&&r;var l=n.openMapping||t===this.store.currentAttributeFocus;return l&&setTimeout((function(){document.querySelectorAll(".ms-GroupHeader-expand").forEach((function(e){e.querySelector("i").classList.contains("is-collapsed")&&e.click()})),o.store.dispatcher.dispatch(new f.Actions.FocusToMarkAttribute(null))}),0),A.createElement(Q.FluentMappingEditor,{key:e+t,store:this.store,parent:this,attribute:t,type:s.type,options:i(i({},n),{label:e,openMapping:l})})}},e.prototype.getAttributeMapping=function(e){return this.objectClass.object.mappings[e]},e.prototype.getPropertyValue=function(e){var t=this.objectClass.object.properties[e.property];return null!=e.field?h.getField(t,e.field):t},e.prototype.getDateFormat=function(e){try{var t=this.objectClass.object.properties[e.property].expression,n=M.TextExpression.Parse("${"+t+"}").parts.find((function(e){if(e.expression instanceof M.FunctionCall)return e.expression.args.find((function(e){return e instanceof M.Variable}))})).expression;if(n){var r=n.args.find((function(e){return e instanceof M.Variable})).name,o=this.objectClass.object.table,i=this.store.dataset.tables.find((function(e){return e.name===o})),a=i.columns.find((function(e){return e.name===r}));if(a.metadata.format)return a.metadata.format;var s=a.metadata.rawColumnName;if(s&&(a.metadata.kind===h.Specification.DataKind.Temporal||a.type===h.Specification.DataType.Boolean)){var l=(i.rows[0][s]||h.refineColumnName(s)).toString();return D.getDateFormat(l)}}}catch(e){return console.warn(e),null}return null},e.prototype.emitSetProperty=function(e,t){new f.Actions.SetObjectProperty(this.objectClass.object,e.property,e.field,t,e.noUpdateState,e.noComputeLayout).dispatch(this.store.dispatcher)},e.prototype.emitUpdateProperty=function(e,t,n,r){e.preventDefault(),e.stopPropagation();var o=0===r.length?" ":r,i=this.getPropertyValue(t),a=i,s=Object.keys(a).reduce((function(e,t){return e[t===n?o:t]=i[t],e}),{});new f.Actions.SetObjectProperty(this.objectClass.object,t.property,t.field,s,t.noUpdateState,t.noComputeLayout).dispatch(this.store.dispatcher)},e.prototype.inputFormat=function(e,t){var n=this;void 0===t&&(t={});var r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(this.shouldDrawComponent(c([t.label],r)))return A.createElement(F.FluentInputFormat,{label:t.label,defaultValue:this.getPropertyValue(e),validate:function(e){if(e&&""!==e.trim())try{return B.getFormat()(null==e?void 0:e.replace(B.tickFormatParserExpression(),"$1")),{pass:!0,formatted:e}}catch(t){try{return h.applyDateFormat(new Date,null==e?void 0:e.replace(B.tickFormatParserExpression(),"$1")),{pass:!0,formatted:e}}catch(e){return{pass:!1,error:L.strings.objects.invalidFormat}}}return{pass:!0}},placeholder:t.blank||L.strings.core.none,onEnter:function(t){return t&&""!=t.trim()?n.emitSetProperty(e,t):n.emitSetProperty(e,null),!0},allowNull:t.allowNull})},e.prototype.inputNumber=function(e,t){var n=this;void 0===t&&(t={});var r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label],r))){var o=this.getPropertyValue(e);return A.createElement(T.FluentInputNumber,i({},t,{key:this.getKeyFromProperty(e),defaultValue:o,placeholder:t.placeholder,onEnter:function(r){var o,i,a,s,l;return null==r?n.emitSetProperty(e,null):n.emitSetProperty(e,r),(null===(o=t.observerConfig)||void 0===o?void 0:o.isObserver)&&((null===(i=t.observerConfig)||void 0===i?void 0:i.properties)instanceof Array?null===(a=t.observerConfig)||void 0===a||a.properties.forEach((function(e){var r;return n.eventManager.notify(G.EventType.UPDATE_FIELD,e,null===(r=t.observerConfig)||void 0===r?void 0:r.value)})):n.eventManager.notify(G.EventType.UPDATE_FIELD,null===(s=t.observerConfig)||void 0===s?void 0:s.properties,null===(l=t.observerConfig)||void 0===l?void 0:l.value)),!0}}))}},e.prototype.inputDate=function(e,t){var n=this;void 0===t&&(t={});var r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label],r))){var o=this.getPropertyValue(e),i=this.getDateFormat(e);return A.createElement(k.FluentDatePickerWrapper,null,A.createElement(w.DatePicker,{key:this.getKeyFromProperty(e),firstDayOfWeek:w.DayOfWeek.Sunday,placeholder:t.placeholder,ariaLabel:t.placeholder,defaultValue:i,value:new Date(o),label:t.label,onSelectDate:function(t){return null==t?(n.emitSetProperty(e,null),!0):(n.emitSetProperty(e,t),!0)}}))}},e.prototype.inputText=function(e,t){var n,r,o,a=this,s=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label],s))){var l=null!==(n=t.value)&&void 0!==n?n:"";return A.createElement(w.TextField,{styles:i(i({},k.defaultStyle),{field:i(i({},k.defaultStyle.field),{height:null})}),key:this.getKeyFromProperty(e),value:t.value?t.value:this.getPropertyValue(e),placeholder:t.placeholder,label:t.label,disabled:t.disabled,onRenderLabel:k.labelRender,onChange:function(n,r){t.updateProperty?a.emitUpdateProperty(n,e,l,r):a.emitSetProperty(e,r),l=r,t.emitMappingAction&&new f.Actions.SetCurrentMappingAttribute(r).dispatch(a.store.dispatcher)},onClick:function(){t.emitMappingAction&&new f.Actions.SetCurrentMappingAttribute(l).dispatch(a.store.dispatcher)},type:"text",underlined:null!==(r=t.underline)&&void 0!==r&&r,borderless:null!==(o=t.borderless)&&void 0!==o&&o,style:t.styles})}},e.prototype.inputFontFamily=function(e,t){var n=this,r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(this.shouldDrawComponent(c([t.label],r)))return A.createElement(b.FluentComboBoxFontFamily,{key:this.getKeyFromProperty(e),label:t.label,defaultValue:this.getPropertyValue(e),onEnter:function(t){return n.emitSetProperty(e,t),!0}})},e.prototype.inputComboBox=function(e,t){var n=this,r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(this.shouldDrawComponent(c([t.label],r)))return A.createElement(w.ComboBox,{styles:k.defaultStyle,key:this.getKeyFromProperty(e),selectedKey:this.getPropertyValue(e),label:t.label,autoComplete:"on",options:t.defaultRange.map((function(e){return{key:e,text:e}})),onChange:function(t,r){return n.emitSetProperty(e,r.key),!0}})},e.prototype.inputSelect=function(e,t){var n,r=this,o=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label],o))){var a=w.getTheme(),s=null!==(n=t.isLocalIcons)&&void 0!==n&&n;return"dropdown"==t.type?A.createElement(w.Dropdown,{key:this.getKeyFromProperty(e)+"-"+t.label+"-"+t.type,selectedKey:this.getPropertyValue(e),defaultValue:this.getPropertyValue(e),label:t.label,onRenderLabel:k.labelRender,onRenderOption:Z.onRenderOption,onRenderTitle:Z.onRenderTitle,options:t.options.map((function(e,n){var r;return{key:e,text:t.labels[n],data:{icon:null===(r=t.icons)||void 0===r?void 0:r[n],iconStyles:{stroke:"gray"},isLocalIcons:s}}})),onChange:function(n,o){return r.emitSetProperty(e,o.key),r.defaultNotification(t.observerConfig),t.onChange&&t.onChange(o),!0},styles:i(i({},k.defaultStyle),Z.dropdownStyles(t))}):A.createElement(A.Fragment,{key:this.getKeyFromProperty(e)+"-"+t.label+"-"+t.type},t.label&&t.label.length>0?A.createElement(w.Label,{styles:k.defaultLabelStyle},t.label):null,t.options.map((function(n,o){return A.createElement(w.IconButton,{key:r.getKeyFromProperty(e)+"-"+t.label+"-"+t.type+"-"+o,iconProps:{iconName:t.icons[o]},style:{stroke:a.palette.themePrimary+" !important"},styles:{label:null,root:i({minWidth:"unset"},k.defultBindButtonSize)},title:t.labels[o],checked:n===r.getPropertyValue(e),onClick:function(){r.emitSetProperty(e,n)}})})))}},e.prototype.inputBoolean=function(e,t){var n=this,r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label,t.headerLabel],r))){var o=e instanceof Array?e[0]:e;switch(t.type){case"checkbox-fill-width":case"checkbox":return A.createElement(A.Fragment,{key:this.getKeyFromProperty(o)},t.headerLabel?A.createElement(w.Label,{styles:k.defaultLabelStyle},t.headerLabel):null,A.createElement(k.FluentCheckbox,{style:t.styles},A.createElement(w.Checkbox,{checked:this.getPropertyValue(o),label:t.label,styles:i({label:k.defaultLabelStyle,root:i({},k.defultComponentsHeight)},t.checkBoxStyles),onChange:function(r,i){e instanceof Array?e.forEach((function(e){return n.emitSetProperty(e,i)})):n.emitSetProperty(o,i),n.defaultNotification(t.observerConfig),t.onChange&&!i&&t.onChange(i)}})));case"highlight":return A.createElement(w.IconButton,{key:this.getKeyFromProperty(o),iconProps:{iconName:t.icon},title:t.label,label:t.label,styles:i(i({},k.defultBindButtonSize),{label:k.defaultLabelStyle,root:i({minWidth:"unset"},k.defultBindButtonSize)}),text:t.label,ariaLabel:t.label,checked:this.getPropertyValue(o),onClick:function(){n.defaultNotification(t.observerConfig);var e=n.getPropertyValue(o);n.emitSetProperty(o,!e)}})}}},e.prototype.defaultNotification=function(e){var t=this;(null==e?void 0:e.isObserver)&&((null==e?void 0:e.properties)instanceof Array?null==e||e.properties.forEach((function(n){return t.eventManager.notify(G.EventType.UPDATE_FIELD,n,null==e?void 0:e.value)})):this.eventManager.notify(G.EventType.UPDATE_FIELD,null==e?void 0:e.properties,null==e?void 0:e.value))},e.prototype.inputExpression=function(e,t){var n,r=this;void 0===t&&(t={});var o=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(t.ignoreSearch||this.shouldDrawComponent(c([t.label],o))){var i=this.getPropertyValue(e),a=A.createElement(N.FluentInputExpression,{key:this.getKeyFromProperty(e),label:t.label,value:i,defaultValue:i,validate:function(e){return e&&""!==e.trim()?r.store.verifyUserExpressionWithTable(e,t.table):{pass:!0}},placeholder:null!==(n=t.placeholder)&&void 0!==n?n:L.strings.core.none,onEnter:function(t){return t&&""!=t.trim()?(r.emitSetProperty(e,t),r.store.updateDataAxes(),r.store.updatePlotSegments()):r.emitSetProperty(e,null),!0},allowNull:t.allowNull});if(t.dropzone){var s=t.noLineHeight?"charticulator__widget-section-header-no-height charticulator__widget-section-header-dropzone":"charticulator__widget-section-header charticulator__widget-section-header-dropzone";return A.createElement($,{key:t.label,filter:function(e){return e instanceof f.DragData.DataExpression},onDrop:function(n){var o,i,a,s;if("axis-data-binding"===t.dropzone.type)new f.Actions.BindDataToAxis(r.objectClass.object,t.dropzone.property,null,n,!0).dispatch(r.store.dispatcher);else{var l=n.expression;try{l=(null===(o=n.metadata)||void 0===o?void 0:o.columnName)?(null===(i=n.metadata)||void 0===i?void 0:i.columnName.split(" ").length)>1?"`"+(null===(a=n.metadata)||void 0===a?void 0:a.columnName)+"`":null===(s=n.metadata)||void 0===s?void 0:s.columnName:n.expression,r.emitSetProperty(e,l)}catch(t){r.emitSetProperty(e,l)}}},className:s,draggingHint:function(){var e;return A.createElement("span",{className:"el-dropzone-hint"},null===(e=t.dropzone)||void 0===e?void 0:e.prompt)}},a)}return a}},e.prototype.inputColor=function(e,t){var n=this,r=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(this.shouldDrawComponent(c([t.label],r))){var o=this.getPropertyValue(e);return A.createElement(S.FluentInputColor,{key:this.getKeyFromProperty(e),label:t.label,store:this.store,defaultValue:o,allowNull:t.allowNull,noDefaultMargin:t.noDefaultMargin,labelKey:t.labelKey,onEnter:function(t){return n.emitSetProperty(e,t),!0},width:t.width,underline:t.underline,pickerBeforeTextField:t.pickerBeforeTextField,styles:t.styles})}},e.prototype.inputColorGradient=function(e,t){var n=this;void 0===t&&(t=!1);var r=this.getPropertyValue(e);return t?A.createElement("span",{className:"charticulator__widget-control-input-color-gradient-inline"},A.createElement(H.FluentUIGradientPicker,{key:this.getKeyFromProperty(e),defaultValue:r,onPick:function(t){n.emitSetProperty(e,t)}})):A.createElement(K.InputColorGradient,{key:this.getKeyFromProperty(e),defaultValue:r,onEnter:function(t){return n.emitSetProperty(e,t),!0}})},e.prototype.inputImage=function(e){var t=this;return A.createElement(R.InputImage,{key:this.getKeyFromProperty(e),value:this.getPropertyValue(e),onChange:function(n){return t.emitSetProperty(e,n),!0}})},e.prototype.inputImageProperty=function(e){var t=this;return A.createElement(O.InputImageProperty,{key:this.getKeyFromProperty(e),value:this.getPropertyValue(e),onChange:function(n){return t.emitSetProperty(e,n),!0}})},e.prototype.clearButton=function(e,t,n,r){var o=this;return A.createElement(k.FluentButton,{key:this.getKeyFromProperty(e),marginTop:n?"0px":null,style:r},A.createElement(w.DefaultButton,{styles:{root:i({minWidth:"unset"},k.defultBindButtonSize)},iconProps:{iconName:t||"EraseTool"},onClick:function(){o.emitSetProperty(e,null)}}))},e.prototype.setButton=function(e,t,n,r){var o=this;if(this.shouldDrawComponent([r]))return A.createElement(w.DefaultButton,{key:this.getKeyFromProperty(e),iconProps:{iconName:n},text:r,onClick:function(){o.emitSetProperty(e,t)}})},e.prototype.scaleEditor=function(e,t){var n=this;if(this.shouldDrawComponent([t])){var r=null,o=this.objectClass.object.mappings[e],i=h.getById(this.store.chart.scales,o.scale);return A.createElement(m.ButtonRaised,{key:e,ref:function(e){return r=d.findDOMNode(e)},text:t,onClick:function(){g.popupController.popupAt((function(e){return A.createElement(I.PopupView,{context:e},A.createElement(x.ScaleValueSelector,{scale:i,scaleMapping:o,store:n.store}))}),{anchor:r})}})}},e.prototype.orderByWidget=function(e,t){var n=this,r=null,o=this.getPropertyValue(e);null!=o&&(r=o.expression);var a=r?{table:t.table,expression:r}:null,s=this.director.buildSectionHeaderFieldsMenu((function(t){null!=t?n.emitSetProperty(e,{expression:t.expression}):n.emitSetProperty(e,null)}),a,this.store),l=this.director.getMenuRender();return A.createElement($,{key:this.getKeyFromProperty(e),filter:function(e){return e instanceof f.DragData.DataExpression},onDrop:function(t){n.emitSetProperty(e,{expression:t.expression})},className:""},A.createElement(k.FluentButton,{marginTop:"0px"},A.createElement(w.IconButton,{styles:{root:i({minWidth:"unset"},k.defultBindButtonSize),label:null},key:e.property,checked:null!=this.getPropertyValue(e),iconProps:{iconName:"SortLines"},menuProps:{items:s,gapSpace:t.shiftCallout?t.shiftCallout:0,onMenuOpened:function(){Q.FluentMappingEditor.openEditor(r,!1,null)},onRenderMenuList:l}})))},e.prototype.reorderWidget=function(e,t){var n,r=this;return void 0===t&&(t={}),A.createElement(k.FluentButton,{ref:function(e){return n=e},key:this.getKeyFromProperty(e),marginTop:"1px",paddingRight:"0px"},A.createElement(w.DefaultButton,{styles:{root:i({minWidth:"unset"},k.defultComponentsHeight)},iconProps:{iconName:"SortLines"},onClick:function(){g.popupController.popupAt((function(n){var o=t.items?t.items:r.getPropertyValue(e);return A.createElement(I.PopupView,{context:n},A.createElement(W.FluentUIReorderStringsValue,i({items:o,onConfirm:function(t,o,i){r.emitSetProperty(e,t),o?(r.emitSetProperty({property:e.property,field:"orderMode"},Y.OrderMode.order),r.emitSetProperty({property:e.property,field:"order"},t)):i?r.emitSetProperty({property:e.property,field:"orderMode"},Y.OrderMode.alphabetically):(r.emitSetProperty({property:e.property,field:"orderMode"},Y.OrderMode.order),r.emitSetProperty({property:e.property,field:"order"},t)),n.close()},onReset:function(){var t=i({},r.objectClass.object.properties[e.property]);t.table=r.store.chartManager.getTable(r.objectClass.object.table),t.metadata={kind:t.dataKind,orderMode:"order"};var n=r.store.getGroupingExpression(r.objectClass.object),o=r.store.chartManager.getGroupedExpressionVector(r.objectClass.object.table,n,t.expression);return r.store.getCategoriesForDataBinding(t.metadata,t.type,o).categories}},t)))}),{anchor:n})}}))},e.prototype.arrayWidget=function(e,t,n){var r=this;void 0===n&&(n={allowDelete:!0,allowReorder:!0});var o=this.getPropertyValue(e).slice();return A.createElement("div",{className:"charticulator__widget-array-view",key:this.getKeyFromProperty(e)},A.createElement(E.ReorderListView,{enabled:n.allowReorder,onReorder:function(t,n){E.ReorderListView.ReorderArray(o,t,n),r.emitSetProperty(e,o)}},o.map((function(i,a){return A.createElement("div",{key:a,className:"charticulator__widget-array-view-item"},n.allowReorder?A.createElement("span",{className:"charticulator__widget-array-view-control charticulator__widget-array-view-order"},A.createElement(w.FontIcon,{className:j.mergeStyles({fontSize:"20px",margin:"5px"}),iconName:"CheckListText"})):null,A.createElement("span",{className:"charticulator__widget-array-view-content"},t({property:e.property,field:e.field?e.field instanceof Array?c(e.field,[a]):[e.field,a]:a})),n.allowDelete?A.createElement("span",{className:"charticulator__widget-array-view-control"},A.createElement(k.FluentButton,{marginTop:"0px"},A.createElement(w.DefaultButton,{styles:{root:{minWidth:"unset"}},iconProps:{iconName:"Delete"},onClick:function(){o.splice(a,1),r.emitSetProperty(e,o)}}))):null)}))))},e.prototype.dropTarget=function(e,t){var n=this;return A.createElement($,{key:this.getKeyFromProperty(null==e?void 0:e.property)+e.label,filter:function(e){return e instanceof f.DragData.DataExpression},onDrop:function(t){n.emitSetProperty(e.property,{expression:t.expression})},className:C.classNames("charticulator__widget-control-drop-target"),draggingHint:function(){return A.createElement("span",{className:"el-dropzone-hint"},e.label)}},t)},e.prototype.icon=function(e){return A.createElement("span",{className:"charticulator__widget-label",key:e},A.createElement(y.SVGImageIcon,{url:p.getSVGIcon(e)}))},e.prototype.label=function(e,t){var n=Array.isArray(null==t?void 0:t.searchSection)?null==t?void 0:t.searchSection:[null==t?void 0:t.searchSection];if((null==t?void 0:t.ignoreSearch)||this.shouldDrawComponent(n))return A.createElement(k.FluentLabelHeader,{key:e,marginBottom:(null==t?void 0:t.addMargins)?"5px":"0px",marginTop:(null==t?void 0:t.addMargins)?"5px":"0px"},A.createElement(w.Label,{styles:k.defaultLabelStyle},e))},e.prototype.text=function(e,t){return void 0===t&&(t="left"),A.createElement("span",{className:"charticulator__widget-text",style:{textAlign:t},key:e+t},e)},e.prototype.sep=function(){return A.createElement("span",{className:"charticulator__widget-sep"})},e.prototype.sectionHeader=function(e,t,n){var r,o=this;void 0===n&&(n={});var a=Array.isArray(n.searchSection)?n.searchSection:[n.searchSection];if(n.ignoreSearch||this.shouldDrawComponent(c([e],a))){if(this.director.setBuilder(new _.MenuItemBuilder),n.dropzone&&"axis-data-binding"==n.dropzone.type){var s=this.getPropertyValue({property:n.dropzone.property}),l=s&&s.expression?{table:null,expression:s.expression}:null,u=this.director.buildSectionHeaderFieldsMenu((function(e){if(e){var t=new f.DragData.DataExpression(o.store.getTable(e.table),e.expression,e.type,e.metadata,e.rawExpression);new f.Actions.BindDataToAxis(o.objectClass.object,n.dropzone.property,null,t,!1).dispatch(o.store.dispatcher)}else o.emitSetProperty({property:n.dropzone.property},null)}),l,this.store),d=this.director.getMenuRender(),g=n.noLineHeight?"charticulator__widget-section-header-no-height charticulator__widget-section-header-dropzone":"charticulator__widget-section-header charticulator__widget-section-header-dropzone",p=J.getDropzoneAcceptTables(this,null!==(r=n.acceptLinksTable)&&void 0!==r&&r);return A.createElement($,{key:e,filter:function(e){var t;return!(p.length>0&&!p.includes(null===(t=e.table)||void 0===t?void 0:t.name))&&e instanceof f.DragData.DataExpression},onDrop:function(e){new f.Actions.BindDataToAxis(o.objectClass.object,n.dropzone.property,null,e,!0).dispatch(o.store.dispatcher)},className:g,draggingHint:function(){return A.createElement("span",{className:"el-dropzone-hint"},n.dropzone.prompt)}},e?A.createElement(k.FluentLabelHeader,null,A.createElement(w.Label,null,e)):null,t,A.createElement(k.FluentButton,{marginTop:"0px",marginLeft:"6px"},A.createElement(w.DefaultButton,{key:e,iconProps:{iconName:"Link"},menuProps:{items:u,onRenderMenuList:d},styles:{menuIcon:{display:"none !important"},root:i({minWidth:"unset"},k.defultBindButtonSize)}})))}return A.createElement("div",{className:"charticulator__widget-section-header"},A.createElement(k.FluentLabelHeader,null,A.createElement(w.Label,null,e)),t)}},e.prototype.horizontal=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return A.createElement("div",{className:"charticulator__widget-horizontal",key:"widget-horizontal"},t.map((function(t,n){return A.createElement("span",{className:"el-layout-item el-layout-item-col-"+e[n],key:"horizontal-"+n},t)})))},e.prototype.styledHorizontal=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return A.createElement("div",{className:"charticulator__widget-horizontal",style:e},n.map((function(e,n){return A.createElement("span",{className:"el-layout-item el-layout-item-col-"+t[n],key:n},e)})))},e.prototype.filterEditor=function(e){var t=L.strings.filter.filterBy,n=Array.isArray(e.searchSection)?e.searchSection:[e.searchSection];if(e.ignoreSearch||this.shouldDrawComponent(c([t],n,[L.strings.objects.axes.data])))return A.createElement(U.FilterPanel,{key:e.key,options:i({},e),text:t,manager:this})},e.prototype.groupByEditor=function(e){var t,n=this,r=L.strings.objects.plotSegment.groupBy,o=Array.isArray(e.searchSection)?e.searchSection:[e.searchSection];if(e.ignoreSearch||this.shouldDrawComponent(c([r],o,[L.strings.objects.axes.data]))){return A.createElement("div",{key:e.key,style:{display:"inline"},ref:function(e){return t=e}},function(){var o,a;switch(e.mode){case"button":return e.value&&e.value.expression&&(r=L.strings.objects.plotSegment.groupByCategory+e.value.expression),A.createElement(k.FluentButton,{marginTop:"0px",key:n.getKeyFromProperty(null===(o=e.target)||void 0===o?void 0:o.property)+(null==e?void 0:e.table)+(null==e?void 0:e.value)},A.createElement(w.DefaultButton,{styles:{root:i({minWidth:"unset"},k.defultComponentsHeight)},text:r,elementRef:function(e){return t=e},iconProps:{iconName:"RowsGroup"},onClick:function(){g.popupController.popupAt((function(t){return A.createElement(I.PopupView,{context:t},A.createElement(v.GroupByEditor,{manager:n,value:e.value,options:e}))}),{anchor:t})}}));case"panel":return A.createElement(v.GroupByEditor,{key:n.getKeyFromProperty(null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.property)+e.table+(null==e?void 0:e.value),manager:n,value:e.value,options:e})}}())}},e.prototype.nestedChartEditor=function(e,t){var n=this,r=L.strings.menuBar.editNestedChart,o=L.strings.menuBar.importTemplate,i=Array.isArray(t.searchSection)?t.searchSection:[t.searchSection];if(this.shouldDrawComponent(c([r,o],i)))return A.createElement(A.Fragment,{key:this.getKeyFromProperty(e)},this.vertical(A.createElement(k.NestedChartButtonsWrapper,null,A.createElement(m.ButtonRaised,{text:r,onClick:function(){n.store.dispatcher.dispatch(new P.OpenNestedEditor(n.objectClass.object,e,t))}})),A.createElement(k.NestedChartButtonsWrapper,null,A.createElement(m.ButtonRaised,{text:o,onClick:function(){return a(n,void 0,void 0,(function(){var n,r,o,i,a,l,c,A,d,g,p,h,f,m,y,I;return s(this,(function(s){switch(s.label){case 0:return[4,C.showOpenFileDialog(["tmplt","json"])];case 1:return n=s.sent(),[4,C.readFileAsString(n)];case 2:r=s.sent(),o=JSON.parse(r),i=new B.ChartTemplate(o);try{for(a=u(t.dataset.tables),l=a.next();!l.done;l=a.next()){c=l.value,A=i.getDatasetSchema()[0],i.assignTable(A.name,c.name);try{for(y=void 0,d=u(A.columns),g=d.next();!g.done;g=d.next())p=g.value,i.assignColumn(A.name,p.name,p.name)}catch(e){y={error:e}}finally{try{g&&!g.done&&(I=d.return)&&I.call(d)}finally{if(y)throw y.error}}}}catch(e){f={error:e}}finally{try{l&&!l.done&&(m=a.return)&&m.call(a)}finally{if(f)throw f.error}}return h=i.instantiate(t.dataset,!1),this.emitSetProperty(e,h.chart),[2]}}))}))}}))))},e.prototype.row=function(e,t){return A.createElement("div",{className:"charticulator__widget-row",key:e},null!=e?A.createElement("span",{className:"charticulator__widget-row-label el-layout-item"},e):null,t)},e.prototype.vertical=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A.createElement("div",{className:"charticulator__widget-vertical"},e.map((function(e,t){return A.createElement("span",{className:"el-layout-item",key:t},e)})))},e.prototype.styledVertical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return A.createElement("div",{className:"charticulator__widget-vertical",style:e},t.map((function(e,t){return A.createElement("span",{className:"el-layout-item",key:t},e)})))},e.prototype.verticalGroup=function(e,t){return 0==t.filter((function(e){return Array.isArray(e)?null==e?void 0:e[0]:e})).length?null:A.createElement("div",null,A.createElement(z.CollapsiblePanel,{header:e.header,widgets:t,isCollapsed:e.isCollapsed,alignVertically:e.alignVertically,store:this.store}))},e.prototype.table=function(e){return A.createElement("table",{className:"charticulator__widget-table"},A.createElement("tbody",null,e.map((function(e,t){return A.createElement("tr",{key:t},e.map((function(e,t){return A.createElement("td",{key:t},A.createElement("span",{className:"el-layout-item"},e))})))}))))},e.prototype.scrollList=function(e,t){return void 0===t&&(t={}),A.createElement("div",{className:"charticulator__widget-scroll-list",style:{maxHeight:t.maxHeight?t.maxHeight+"px":void 0,height:t.height?t.height+"px":void 0}},e.map((function(e,n){return A.createElement("div",{className:"charticulator__widget-scroll-list-item",key:n,style:t.styles},e)})))},e.prototype.tooltip=function(e,t){return A.createElement(w.TooltipHost,{content:t},e)},e.prototype.customCollapsiblePanel=function(e,t){return void 0===t&&(t={}),0==e.filter((function(e){return Array.isArray(e)?null==e?void 0:e[0]:e})).length?null:A.createElement(V.CustomCollapsiblePanel,{widgets:e,styles:t.styles,header:t.header,store:this.store})},e.prototype.reorderByAnotherColumnWidget=function(e,t){var n,r=this;return void 0===t&&(t={}),A.createElement(k.FluentButton,{ref:function(e){return n=e},key:this.getKeyFromProperty(e),marginTop:"0px",paddingRight:"0px"},A.createElement(w.DefaultButton,{styles:{root:i({minWidth:"unset"},k.defultComponentsHeight)},iconProps:{iconName:"SortLines"},onClick:function(){g.popupController.popupAt((function(n){var o=t.items?t.items:r.getPropertyValue(e);return A.createElement(I.PopupView,{context:n},A.createElement(W.FluentUIReorderStringsValue,i({items:o,onConfirm:function(o){r.emitSetProperty(e,o),t.onConfirmClick&&t.onConfirmClick(o),r.emitSetProperty({property:e.property,field:"orderMode"},Y.OrderMode.order),t.onConfirmClick&&t.onConfirmClick(o),n.close()},onReset:function(){if(t.onResetCategories)return t.onResetCategories;var n=i({},r.objectClass.object.properties[e.property]);n.table=r.store.chartManager.getTable(r.objectClass.object.table),n.metadata={kind:n.dataKind,orderMode:"order"};var o=r.store.getGroupingExpression(r.objectClass.object),a=r.store.chartManager.getGroupedExpressionVector(r.objectClass.object.table,o,n.expression);return r.store.getCategoriesForDataBinding(n.metadata,n.type,a).categories}},t)))}),{anchor:n,alignX:r.store.editorType==q.EditorType.Embedded?I.PopupAlignment.EndInner:I.PopupAlignment.StartInner})}}))},e.prototype.shouldDrawComponent=function(e){var t=this.store.searchString,n=e.filter((function(e){return null!=e}));return!!this.ignoreSearch||!(0!=(null==t?void 0:t.length)&&n.length>=0&&!n.some((function(e){return e&&(null==e?void 0:e.toUpperCase().includes(null==t?void 0:t.toUpperCase()))})))},e}();t.FluentUIWidgetManager=X;var $=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isInSession:!1,isDraggingOver:!1,data:null},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;g.dragController.registerDroppable(this,this.dropContainer),this.tokens=[g.dragController.addListener("sessionstart",(function(){var t=g.dragController.getSession();e.props.filter(t.data)&&e.setState({isInSession:!0})})),g.dragController.addListener("sessionend",(function(){e.setState({isInSession:!1})}))]},t.prototype.componentWillUnmount=function(){g.dragController.unregisterDroppable(this),this.tokens.forEach((function(e){return e.remove()}))},t.prototype.onDragEnter=function(e){var t=this,n=e.data;if(this.props.filter(n))return this.setState({isDraggingOver:!0,data:n}),e.onLeave((function(){t.setState({isDraggingOver:!1,data:null})})),e.onDrop((function(e,r){t.props.onDrop(n,e,r)})),!0},t.prototype.render=function(){var e=this;return A.createElement("div",{className:C.classNames(this.props.className,["is-in-session",this.state.isInSession],["is-dragging-over",this.state.isDraggingOver]),onClick:this.props.onClick,ref:function(t){return e.dropContainer=t}},null==this.props.draggingHint?this.props.children:this.state.isInSession?this.props.draggingHint():this.props.children)},t}(A.Component);t.DropZoneView=$;var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidUpdate=function(){this.inner&&this.inner.forceUpdate()},t.prototype.render=function(){var e,t=this;return A.createElement(A.Fragment,null,this.props.label?A.createElement(w.Label,{styles:k.defaultLabelStyle},this.props.label):null,A.createElement(w.DefaultButton,{iconProps:{iconName:"More"},componentRef:function(t){return e=d.findDOMNode(t)},onClick:function(){g.popupController.popupAt((function(e){return A.createElement(I.PopupView,{context:e},A.createElement(te,{parent:t,ref:function(e){return t.inner=e}}))}),{anchor:e,alignX:I.getAlignment(e).alignX})}}))},t}(A.Component);t.FluentDetailsButton=ee;var te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props.parent;return A.createElement("div",{className:"charticulator__widget-popup-details"},(e=t.props.manager).vertical.apply(e,c(t.props.widgets)))},t}(A.Component);t.DetailsButtonInner=te},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.DataFieldSelector=void 0;var c=n(0),u=n(5),A=n(14),d=n(13),g=n(9),p=n(83),h=n(40),f=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getDefaultState(t),n}return o(t,e),t.prototype.getDefaultState=function(e){var t,n,r=this.props.defaultValue?this.props.defaultValue.expression:null,o=null;if(e.useAggregation&&null!=r){var i=u.Expression.parse(r);i instanceof u.Expression.FunctionCall&&(r=i.args[0].toString(),o=i.name)}if(e.defaultValue)try{for(var s=a(this.getAllFields()),l=s.next();!l.done;l=s.next()){var c=l.value;if((null==e.defaultValue.table||c.table==e.defaultValue.table)&&(null!=r&&c.expression==r))return{currentSelection:c,currentSelectionAggregation:o,currentSelections:[c],currentSelectionsAggregations:[o]}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return{currentSelection:null,currentSelectionAggregation:null,currentSelections:[],currentSelectionsAggregations:[]}},Object.defineProperty(t.prototype,"value",{get:function(){return this.props.multiSelect?this.state.currentSelections:this.state.currentSelection},enumerable:!1,configurable:!0}),t.prototype.getAllFields=function(){var e,t,n,r,o=this.getFields(),i=[];try{for(var s=a(o),l=s.next();!l.done;l=s.next()){var c=l.value;if(i.push(c),c.derived)try{for(var u=(n=void 0,a(c.derived)),A=u.next();!A.done;A=u.next()){var d=A.value;i.push(d)}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return i},t.prototype.getFields=function(){var e=this,t=this.props.datasetStore.getTables().filter((function(t){return t.name==e.props.table||null==e.props.table}))[0],n=t.columns,r=[];r.push((function(e){return!e.metadata.isRaw})),this.props.table&&r.push((function(t){return t.table==e.props.table})),this.props.kinds&&r.push((function(t){return null!=t.metadata&&p.isKindAcceptable(t.metadata.kind,e.props.kinds)})),this.props.types&&r.push((function(t){return null!=t.metadata&&e.props.types.indexOf(t.type)>=0}));var o=function(e){var t,n;try{for(var o=a(r),i=o.next();!i.done;i=o.next()){if(!(0,i.value)(e))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},i=n.map((function(e){var n,r,i={selectable:!0,table:t.name,columnName:e.name,expression:u.Expression.variable(e.name).toString(),rawExpression:u.Expression.variable(e.metadata.rawColumnName||e.name).toString(),type:e.type,displayName:e.name,metadata:e.metadata,derived:[]},s=p.type2DerivedColumns[i.type];if(s)try{for(var l=a(s),c=l.next();!c.done;c=l.next()){var A=c.value,d={table:t.name,columnName:null,expression:u.Expression.functionCall(A.function,u.Expression.parse(i.expression)).toString(),rawExpression:u.Expression.functionCall(A.function,u.Expression.parse(i.rawExpression)).toString(),type:A.type,metadata:A.metadata,displayName:A.name,selectable:!0};o(d)&&i.derived.push(d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i.selectable=o(i),i}));return i=i.filter((function(e){return(e.derived.length>0||e.selectable)&&!e.metadata.isRaw}))},t.prototype.isValueEqual=function(e,t){return e==t||null!=e&&null!=t&&(e.expression==t.expression&&e.table==t.table)},t.prototype.isValueExists=function(e,t){return!!t.find((function(t){return t==e||e.expression==t.expression&&e.table==t.table}))||(null==e||t.length,!1)},t.prototype.selectItem=function(e,t){var n,r=this;if(void 0===t&&(t=null),null==e)this.props.onChange&&this.props.onChange(null);else if(this.props.useAggregation&&null==t&&(t=u.Expression.getDefaultAggregationFunction(e.type,null===(n=e.metadata)||void 0===n?void 0:n.kind)),this.props.multiSelect?this.setState((function(n){var r=n.currentSelections.find((function(t){return t.expression===e.expression}));return i(i({},n),r?{currentSelections:n.currentSelections.filter((function(t){return t.expression!==e.expression})),currentSelectionsAggregations:n.currentSelectionsAggregations.filter((function(e){return e!==t}))}:{currentSelections:l(n.currentSelections,[e]),currentSelectionsAggregations:l(n.currentSelectionsAggregations,[t])})})):this.setState({currentSelection:e,currentSelectionAggregation:t}),this.props.onChange)if(this.props.multiSelect){var o=l(this.state.currentSelections,[e]).map((function(e){var n={table:e.table,expression:e.expression,rawExpression:e.rawExpression,columnName:e.columnName,type:e.type,metadata:e.metadata};return r.props.useAggregation&&(n.expression=u.Expression.functionCall(t,u.Expression.parse(e.expression)).toString(),n.rawExpression=u.Expression.functionCall(t,u.Expression.parse(e.rawExpression)).toString()),n}));this.props.onChangeSelectionList(o)}else{var a={table:e.table,expression:e.expression,rawExpression:e.rawExpression,columnName:e.columnName,type:e.type,metadata:e.metadata};this.props.useAggregation&&(a.expression=u.Expression.functionCall(t,u.Expression.parse(e.expression)).toString(),a.rawExpression=u.Expression.functionCall(t,u.Expression.parse(e.rawExpression)).toString()),this.props.onChange(a)}},t.prototype.renderCandidate=function(e){var t,n=this,r=function(e){e.selectable&&n.selectItem(e,n.isValueEqual(n.state.currentSelection,e)?n.state.currentSelectionAggregation:null)};return c.createElement("div",{className:"el-column-item",key:e.table+e.expression},c.createElement("div",{tabIndex:0,className:g.classNames("el-field-item",["is-active",this.props.multiSelect?this.isValueExists(e,this.state.currentSelections):this.isValueEqual(this.state.currentSelection,e)],["is-selectable",e.selectable]),onClick:function(){r(e)},onKeyPress:function(t){"Enter"===t.key&&r(e)}},c.createElement(A.SVGImageIcon,{url:d.getSVGIcon(p.kind2Icon[e.metadata.kind])}),c.createElement("span",{className:"el-text"},e.displayName),this.props.useAggregation&&this.isValueEqual(this.state.currentSelection,e)?c.createElement(h.Select,{value:this.state.currentSelectionAggregation,options:u.Expression.getCompatibleAggregationFunctionsByDataType(e.type).map((function(e){return e.name})),labels:u.Expression.getCompatibleAggregationFunctionsByDataType(e.type).map((function(e){return e.displayName})),showText:!0,onChange:function(t){n.selectItem(e,t)}}):null,e.derived&&e.derived.length>0?c.createElement(h.Button,{icon:"general/more-vertical",onClick:function(){t&&("none"==t.style.display?t.style.display="block":t.style.display="none")}}):null),e.derived&&e.derived.length>0?c.createElement("div",{className:"el-derived-fields",style:{display:"none"},ref:function(e){return t=e}},e.derived.map((function(e){return n.renderCandidate(e)}))):null)},t.prototype.render=function(){var e=this,t=this.getFields();return c.createElement("div",{className:"charticulator__data-field-selector"},this.props.nullDescription?c.createElement("div",{tabIndex:0,className:g.classNames("el-field-item","is-null","is-selectable",["is-active",!this.props.nullNotHighlightable&&null==this.state.currentSelection]),onClick:function(){return e.selectItem(null)},onKeyPress:function(t){"Enter"===t.key&&e.selectItem(null)}},this.props.nullDescription):null,0!=t.length||this.props.nullDescription?null:c.createElement("div",{className:"el-field-item is-null"},"(no suitable column)"),t.map((function(t){return e.renderCandidate(t)})))},t}(c.Component);t.DataFieldSelector=f},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentInputExpression=void 0;var o=n(0),i=n(5),a=n(11),s=n(23);t.FluentInputExpression=function(e){var t=r(o.useState(e.defaultValue),2),n=t[0],l=t[1];o.useEffect((function(){(e.value||""==e.value)&&l(e.value)}),[e.value]);var c=o.useCallback((function(){var t,r;if(e.allowNull&&""==(null==n?void 0:n.trim()))l(""),null===(t=e.onEnter)||void 0===t||t.call(e,null);else{var o=e.validate(i.replaceTabBySymbol(i.replaceNewLineBySymbol(n)));o.pass&&(l(o.formatted),null===(r=e.onEnter)||void 0===r||r.call(e,o.formatted))}}),[l,e,n]),u=o.useCallback((function(){var t;l(e.defaultValue||""),null===(t=e.onCancel)||void 0===t||t.call(e)}),[e,l]);return o.createElement("span",{className:"charticulator__widget-control-input-expression"},o.createElement(a.TextField,{styles:s.defaultStyle,label:e.label,onRenderLabel:s.labelRender,placeholder:e.placeholder,type:"text",onGetErrorMessage:function(){var t,r=null===(t=e.validate)||void 0===t?void 0:t.call(e,n);if(!r.pass)return r.error},value:i.replaceSymbolByTab(i.replaceSymbolByNewLine(n||e.allowNull&&""==n?n:e.defaultValue)),onChange:function(t,n){e.allowNull&&""==(null==n?void 0:n.trim())||i.Expression.verifyUserExpression(i.replaceTabBySymbol(i.replaceNewLineBySymbol(n)),{textExpression:e.textExpression}),l(n)},onBlur:function(){c()},onFocus:function(e){e.target.select()},onKeyDown:function(t){"Enter"==t.key&&c(),"Escape"==t.key&&u(),e.stopPropagation&&t.stopPropagation()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(64),o=n(296),i=n(65),a=n(297),s=n(110),l=n(111);function c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function u(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function A(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function d(e){var t=e.dateTime,n=e.date,s=e.time,l=e.periods,d=e.days,p=e.shortDays,h=e.months,f=e.shortMonths,m=I(l),y=C(l),X=I(d),ye=C(d),Se=I(p),Ne=C(p),ke=I(h),Te=C(h),je=I(f),Le=C(f),Re={a:function(e){return p[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return f[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:P,e:P,f:V,g:re,G:ie,H:U,I:G,j:H,L:Y,m:W,M:K,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:we,s:Qe,S:Z,u:J,U:q,V:$,w:ee,W:te,x:null,X:null,y:ne,Y:oe,Z:ae,"%":xe},Oe={a:function(e){return p[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return f[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:se,e:se,f:de,g:ve,G:Me,H:le,I:ce,j:ue,L:Ae,m:ge,M:pe,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:we,s:Qe,S:he,u:fe,U:me,V:Ie,w:Ce,W:Ee,x:null,X:null,y:be,Y:Be,Z:De,"%":xe},_e={a:function(e,t,n){var r=Se.exec(t.slice(n));return r?(e.w=Ne[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=X.exec(t.slice(n));return r?(e.w=ye[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=je.exec(t.slice(n));return r?(e.m=Le[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=ke.exec(t.slice(n));return r?(e.m=Te[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return Pe(e,t,n,r)},d:N,e:N,f:O,g:x,G:D,H:T,I:T,j:k,L:R,m:S,M:j,p:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.p=y[r[0].toLowerCase()],n+r[0].length):-1},q:Q,Q:F,s:z,S:L,u:b,U:v,V:B,w:E,W:M,x:function(e,t,r){return Pe(e,n,t,r)},X:function(e,t,n){return Pe(e,s,t,n)},y:x,Y:D,Z:w,"%":_};function Fe(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=g[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function ze(e,t){return function(n){var s,l,d=A(1900,void 0,1);if(Pe(d,e,n+="",0)!=n.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(t&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(l=(s=u(A(d.y,0,1))).getUTCDay(),s=l>4||0===l?r.a.ceil(s):Object(r.a)(s),s=o.a.offset(s,7*(d.V-1)),d.y=s.getUTCFullYear(),d.m=s.getUTCMonth(),d.d=s.getUTCDate()+(d.w+6)%7):(l=(s=c(A(d.y,0,1))).getDay(),s=l>4||0===l?i.a.ceil(s):Object(i.a)(s),s=a.a.offset(s,7*(d.V-1)),d.y=s.getFullYear(),d.m=s.getMonth(),d.d=s.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),l="Z"in d?u(A(d.y,0,1)).getUTCDay():c(A(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(l+5)%7:d.w+7*d.U-(l+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,u(d)):c(d)}}function Pe(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_e[o in g?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return Re.x=Fe(n,Re),Re.X=Fe(s,Re),Re.c=Fe(t,Re),Oe.x=Fe(n,Oe),Oe.X=Fe(s,Oe),Oe.c=Fe(t,Oe),{format:function(e){var t=Fe(e+="",Re);return t.toString=function(){return e},t},parse:function(e){var t=ze(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",Oe);return t.toString=function(){return e},t},utcParse:function(e){var t=ze(e+="",!0);return t.toString=function(){return e},t}}}var g={"-":"",_:" ",0:"0"},p=/^\s*\d+/,h=/^%/,f=/[\\^$*+?|[\]().{}]/g;function m(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function y(e){return e.replace(f,"\\$&")}function I(e){return new RegExp("^(?:"+e.map(y).join("|")+")","i")}function C(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function E(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function b(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function v(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function B(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function M(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D(e,t,n){var r=p.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function w(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Q(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function S(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function k(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function T(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function j(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function L(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function O(e,t,n){var r=p.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _(e,t,n){var r=h.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function F(e,t,n){var r=p.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function z(e,t,n){var r=p.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function P(e,t){return m(e.getDate(),t,2)}function U(e,t){return m(e.getHours(),t,2)}function G(e,t){return m(e.getHours()%12||12,t,2)}function H(e,t){return m(1+a.a.count(Object(s.a)(e),e),t,3)}function Y(e,t){return m(e.getMilliseconds(),t,3)}function V(e,t){return Y(e,t)+"000"}function W(e,t){return m(e.getMonth()+1,t,2)}function K(e,t){return m(e.getMinutes(),t,2)}function Z(e,t){return m(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function q(e,t){return m(i.b.count(Object(s.a)(e)-1,e),t,2)}function X(e){var t=e.getDay();return t>=4||0===t?Object(i.c)(e):i.c.ceil(e)}function $(e,t){return e=X(e),m(i.c.count(Object(s.a)(e),e)+(4===Object(s.a)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return m(i.a.count(Object(s.a)(e)-1,e),t,2)}function ne(e,t){return m(e.getFullYear()%100,t,2)}function re(e,t){return m((e=X(e)).getFullYear()%100,t,2)}function oe(e,t){return m(e.getFullYear()%1e4,t,4)}function ie(e,t){var n=e.getDay();return m((e=n>=4||0===n?Object(i.c)(e):i.c.ceil(e)).getFullYear()%1e4,t,4)}function ae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+m(t/60|0,"0",2)+m(t%60,"0",2)}function se(e,t){return m(e.getUTCDate(),t,2)}function le(e,t){return m(e.getUTCHours(),t,2)}function ce(e,t){return m(e.getUTCHours()%12||12,t,2)}function ue(e,t){return m(1+o.a.count(Object(l.a)(e),e),t,3)}function Ae(e,t){return m(e.getUTCMilliseconds(),t,3)}function de(e,t){return Ae(e,t)+"000"}function ge(e,t){return m(e.getUTCMonth()+1,t,2)}function pe(e,t){return m(e.getUTCMinutes(),t,2)}function he(e,t){return m(e.getUTCSeconds(),t,2)}function fe(e){var t=e.getUTCDay();return 0===t?7:t}function me(e,t){return m(r.b.count(Object(l.a)(e)-1,e),t,2)}function ye(e){var t=e.getUTCDay();return t>=4||0===t?Object(r.c)(e):r.c.ceil(e)}function Ie(e,t){return e=ye(e),m(r.c.count(Object(l.a)(e),e)+(4===Object(l.a)(e).getUTCDay()),t,2)}function Ce(e){return e.getUTCDay()}function Ee(e,t){return m(r.a.count(Object(l.a)(e)-1,e),t,2)}function be(e,t){return m(e.getUTCFullYear()%100,t,2)}function ve(e,t){return m((e=ye(e)).getUTCFullYear()%100,t,2)}function Be(e,t){return m(e.getUTCFullYear()%1e4,t,4)}function Me(e,t){var n=e.getUTCDay();return m((e=n>=4||0===n?Object(r.c)(e):r.c.ceil(e)).getUTCFullYear()%1e4,t,4)}function De(){return"+0000"}function xe(){return"%"}function we(e){return+e}function Qe(e){return Math.floor(+e/1e3)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(43),i=n(61);function a(e,t){var n,a=(n=r.useState(0)[1],function(){return n((function(e){return++e}))}),s=r.useContext(i.a).customizations,l=s.inCustomizerContext;return r.useEffect((function(){return l||o.a.observe(a),function(){l||o.a.unobserve(a)}}),[l]),o.a.getSettings(e,t,s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(15),o=0,i=function(){function e(){}return e.getValue=function(e,t){var n=a();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=a(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var s in r)r.hasOwnProperty(s)&&r[s](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=s();t||(t=e.__id__=String(o++)),n[t]=e},e.removeChangeListener=function(e){delete s()[e.__id__]},e}();function a(){var e,t=Object(r.a)()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function s(){return a().__callbacks__}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var r,o=n(33),i=n(35),a=n(97),s=n(46);function l(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=Object(a.a)("isRTL");null!==t&&c(r="1"===t);var n=Object(i.a)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),Object(s.b)(r))}return!!r}function c(e,t){void 0===t&&(t=!1);var n=Object(i.a)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&Object(a.b)("isRTL",e?"1":"0"),r=e,Object(s.b)(r)}function u(e,t){return void 0===t&&(t={}),l(t)&&(e===o.a.left?e=o.a.right:e===o.a.right&&(e=o.a.left)),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(78),o=n(150),i=n(46),a=n(63);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(e,Object(i.a)())}function l(e,t){var n,i,s={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var l=r.a.apply(void 0,e),c=[];for(var u in l)if(l.hasOwnProperty(u)){if("subComponentStyles"===u){s.subComponentStyles=l.subComponentStyles||{};continue}var A=l[u],d=Object(o.a)(A),g=d.classes,p=d.objects;if(null===(n=p)||void 0===n?void 0:n.length)(m=Object(a.d)(t||{},{displayName:u},p))&&(c.push(m),s[u]=g.concat([m.className]).join(" "));else s[u]=g.join(" ")}for(var h=0,f=c;h<f.length;h++){var m;(m=f[h])&&Object(a.a)(m,null===(i=t)||void 0===i?void 0:i.specificityMultiplier)}return s}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(150),o=n(46),i=n(63);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e,Object(o.a)())}function s(e,t){var n=e instanceof Array?e:[e],o=Object(r.a)(n),a=o.classes,s=o.objects;return s.length&&a.push(Object(i.c)(t||{},s)),a.join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(0),i=n(109),a=n(95),s=n(18),l=n(149),c=n(16),u=n(135),A=Object(l.a)({cacheSize:100}),d=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===s.c.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,s=e.styles,l=e.iconName,d=e.imageErrorAs,g=e.theme,p="string"==typeof l&&0===l.length,h=!!this.props.imageProps||this.props.iconType===i.a.image||this.props.iconType===i.a.Image,f=Object(u.c)(l)||{},m=f.iconClassName,y=f.children,I=A(s,{theme:g,className:n,iconClassName:m,isImage:h,isPlaceholder:p}),C=h?"span":"i",E=Object(c.j)(this.props,c.k,["aria-label"]),b=this.state.imageLoadError,v=Object(r.a)(Object(r.a)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),B=b&&d||a.a,M=this.props["aria-label"]||this.props.ariaLabel,D=v.alt||M,x=!!(D||this.props["aria-labelledby"]||v["aria-label"]||v["aria-labelledby"])?{role:h?void 0:"img","aria-label":h?void 0:D}:{"aria-hidden":!0};return o.createElement(C,Object(r.a)({"data-icon-name":l},x,E,{className:I.root}),h?o.createElement(B,Object(r.a)({},v)):t||y)},t}(o.Component)},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return d}));var r=n(1),o=n(0),i=n(54),a=n(47),s=n(16),l=n(151),c=n(3),u=Object(a.c)((function(e){var t=Object(c.T)(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily}:null}),void 0,!0),A=function(e){var t=e.iconName,n=e.className,a=e.style,c=void 0===a?{}:a,A=u(t)||{},d=A.iconClassName,g=A.children,p=A.fontFamily,h=Object(s.j)(e,s.k),f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:"img"}:{"aria-hidden":!0};return o.createElement("i",Object(r.a)({"data-icon-name":t},f,h,{className:Object(l.a)(i.a,i.b.root,d,!t&&i.b.placeholder,n),style:Object(r.a)({fontFamily:p},c)}),g)},d=Object(a.c)((function(e,t,n){return A({iconName:e,className:t,"aria-label":n})}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(1),o=n(0),i=n(149),a=n(16),s=n(18),l=n(627),c=Object(i.a)(),u=/\.svg$/i;var A=o.forwardRef((function(e,t){var n=o.useRef(),i=o.useRef(),A=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,i=e.onError,a=e.src,l=o.useState(s.c.notLoaded),c=l[0],A=l[1];o.useLayoutEffect((function(){A(s.c.notLoaded)}),[a]),o.useEffect((function(){c===s.c.notLoaded&&(!!t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&u.test(a))&&A(s.c.loaded))})),o.useEffect((function(){var e;null===(e=n)||void 0===e||e(c)}),[c]);var d=o.useCallback((function(e){var t;null===(t=r)||void 0===t||t(e),a&&A(s.c.loaded)}),[a,r]),g=o.useCallback((function(e){var t;null===(t=i)||void 0===t||t(e),A(s.c.error)}),[i]);return[c,d,g]}(e,i),d=A[0],g=A[1],p=A[2],h=Object(a.j)(e,a.n,["width","height"]),f=e.src,m=e.alt,y=e.width,I=e.height,C=e.shouldFadeIn,E=void 0===C||C,b=e.shouldStartVisible,v=e.className,B=e.imageFit,M=e.role,D=e.maximizeFrame,x=e.styles,w=e.theme,Q=e.loading,S=function(e,t,n,r){var i=o.useRef(t),a=o.useRef();(void 0===a||i.current===s.c.notLoaded&&t===s.c.loaded)&&(a.current=function(e,t,n,r){var o=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===s.c.loaded&&(o===s.b.cover||o===s.b.contain||o===s.b.centerContain||o===s.b.centerCover)&&n.current&&r.current){var l=void 0;if(l="number"==typeof i&&"number"==typeof a&&o!==s.b.centerContain&&o!==s.b.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>l)return s.a.landscape}return s.a.portrait}(e,t,n,r));return i.current=t,a.current}(e,d,i,n),N=c(x,{theme:w,className:v,width:y,height:I,maximizeFrame:D,shouldFadeIn:E,shouldStartVisible:b,isLoaded:d===s.c.loaded||d===s.c.notLoaded&&e.shouldStartVisible,isLandscape:S===s.a.landscape,isCenter:B===s.b.center,isCenterContain:B===s.b.centerContain,isCenterCover:B===s.b.centerCover,isContain:B===s.b.contain,isCover:B===s.b.cover,isNone:B===s.b.none,isError:d===s.c.error,isNotImageFit:void 0===B});return o.createElement("div",{className:N.root,style:{width:y,height:I},ref:n},o.createElement("img",Object(r.a)({},h,{onLoad:g,onError:p,key:"fabricImage"+e.src||"",className:N.image,ref:Object(l.a)(i,t),src:f,alt:m,role:M,loading:Q})))}));A.displayName="ImageBase"},function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(15),o=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,i=Object(r.a)(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});o=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(e,t){var n=Object(r.a)(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var A=function(t){var n=Date.now(),d=n-c,g=s?a-d:a;return d>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(A,g)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,A(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,A=0,d=Date.now(),g=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var p=function(e){g&&(r.clearTimeout(g),g=null),d=e},h=function(t){p(t),i=e.apply(r._parent,a)},f=function(e){var t=Date.now(),n=!1;e&&(l&&t-A>=s&&(n=!0),A=t);var o=t-A,a=s-o,p=t-d,m=!1;return null!==u&&(p>=u&&g?m=!0:a=Math.min(a,u-p)),o>=s||m||n?h(t):null!==g&&e||!c||(g=r.setTimeout(f,a)),i},m=function(){return!!g},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,f(!0)};return y.cancel=function(){m()&&p(Date.now())},y.flush=function(){return m()&&h(Date.now()),i},y.pending=m,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,o=0,i=Object(r.a)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[o],e.apply(n._parent)}catch(e){n._logError(e)}};o=i.requestAnimationFrame?i.requestAnimationFrame(a):i.setTimeout(a,0),this._animationFrameIds[o]=!0}return o},e.prototype.cancelAnimationFrame=function(e,t){var n=Object(r.a)(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}()},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function o(e,t){var n=r(e,t);if(!(n<0))return e[n]}function i(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function a(e,t){return e.reduce((function(e,n,r){return r%t==0?e.push([n]):e[e.length-1].push(n),e}),[])}function s(e,t){return e.filter((function(e,n){return t!==n}))}function l(e,t,n){var r=e.slice();return r[n]=t,r}function c(e,t,n){var r=e.slice();return r.splice(t,0,n),r}function u(e){var t=[];return e.forEach((function(e){return t=t.concat(e)})),t}function A(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return A}))},function(e,t,n){"use strict";function r(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(15),o=n(36),i=Object(r.a)()||{};void 0===i.__currentId__&&(i.__currentId__=0);var a=!1;function s(e){if(!a){var t=o.b.getInstance();t&&t.onReset&&t.onReset(l),a=!0}return(void 0===e?"id__":e)+i.__currentId__++}function l(e){void 0===e&&(e=0),i.__currentId__=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return A})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return f}));var r,o=n(35),i=n(133),a=n(15),s=0,l=Object(i.b)({overflow:"hidden !important"}),c="data-is-scrollable",u=function(e,t){if(e){var n=0,r=null;t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=f(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),r=e}},A=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},d=function(e){e.preventDefault()};function g(){var e=Object(o.a)();e&&e.body&&!s&&(e.body.classList.add(l),e.body.addEventListener("touchmove",d,{passive:!1,capture:!1})),s++}function p(){if(s>0){var e=Object(o.a)();e&&e.body&&1===s&&(e.body.classList.remove(l),e.body.removeEventListener("touchmove",d)),s--}}function h(){if(void 0===r){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return r}function f(e){for(var t=e,n=Object(o.a)(e);t&&t!==n.body;){if("true"===t.getAttribute(c))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(c)){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=Object(a.a)(e)),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(108);function o(e,t){var n=(t||{}).customizations,o=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:Object(r.b)(o.settings,e.settings),scopedSettings:Object(r.a)(o.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(77);function r(e,t,n,r,o){}},function(e,t,n){"use strict";function r(e,t,n){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,o=n(53),i=n(91),a=n(62),s=function(e,t){var n=Object(a.b)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},l={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:a.a,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var n=Object(a.b)(e,t);if(!n)return e+"";var o=n[0],i=n[1],s=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(a.b)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},c=function(e){return e},u=Array.prototype.map,A=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=u.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",d=void 0===e.currency?"":e.currency[1]+"",g=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(u.call(e.numerals,String)),h=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=Object(i.b)(e)).fill,n=e.align,o=e.sign,c=e.symbol,u=e.zero,y=e.width,I=e.comma,C=e.precision,E=e.trim,b=e.type;"n"===b?(I=!0,b="g"):l[b]||(void 0===C&&(C=12),E=!0,b="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var v="$"===c?s:"#"===c&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",B="$"===c?d:/[%p]/.test(b)?h:"",M=l[b],D=/[defgprs%]/.test(b);function x(e){var i,s,l,c=v,d=B;if("c"===b)d=M(e)+d,e="";else{var h=(e=+e)<0||1/e<0;if(e=isNaN(e)?m:M(Math.abs(e),C),E&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),h&&0==+e&&"+"!==o&&(h=!1),c=(h?"("===o?o:f:"-"===o||"("===o?"":o)+c,d=("s"===b?A[8+r/3]:"")+d+(h&&"("===o?")":""),D)for(i=-1,s=e.length;++i<s;)if(48>(l=e.charCodeAt(i))||l>57){d=(46===l?g+e.slice(i+1):e.slice(i))+d,e=e.slice(0,i);break}}I&&!u&&(e=a(e,1/0));var x=c.length+e.length+d.length,w=x<y?new Array(y-x+1).join(t):"";switch(I&&u&&(e=a(w+e,w.length?y-d.length:1/0),w=""),n){case"<":e=c+e+d+w;break;case"=":e=c+w+e+d;break;case"^":e=w.slice(0,x=w.length>>1)+c+e+d+w.slice(x);break;default:e=w+c+e+d}return p(e)}return C=void 0===C?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C)),x.toString=function(){return e+""},x}return{format:y,formatPrefix:function(e,t){var n=y(((e=Object(i.b)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(o.a)(t)/3))),a=Math.pow(10,-r),s=A[8+r/3];return function(e){return n(a*e)+s}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(36),o=n(132),i=n(131),a=n(15),s=0,l=r.b.getInstance();l&&l.onReset&&l.onReset((function(){return s++}));var c="__retval__";function u(e){void 0===e&&(e={});var t=new Map,n=0,r=0,l=s;return function(u,A){var g,p;if(void 0===A&&(A={}),e.useStaticStyles&&"function"==typeof u&&u.__noStyleOverride__)return u(A);r++;var h=t,f=A.theme,m=f&&void 0!==f.rtl?f.rtl:Object(i.a)(),y=e.disableCaching;(l!==s&&(l=s,t=new Map,n=0),e.disableCaching||(h=d(t,u),h=d(h,A)),!y&&h[c]||(h[c]=void 0===u?{}:Object(o.a)(["function"==typeof u?u(A):u],{rtl:!!m,specificityMultiplier:e.useStaticStyles?5:void 0}),y||n++),n>(e.cacheSize||50))&&((null===(p=null===(g=Object(a.a)())||void 0===g?void 0:g.FabricConfig)||void 0===p?void 0:p.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0);return h[c]}}function A(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function d(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=A(e,r[n])}else e=A(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=A(e,t[o]));return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(36);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],i=r.b.getInstance();function a(e){for(var t=0,r=e;t<r.length;t++){var s=r[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)a(s.split(" "));else{var l=i.argsFromClassName(s);l?a(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?a(s):"object"==typeof s&&o.push(s)}}return a(e),{classes:n,objects:o}}},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e&&!!e._virtual}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(96);function o(e,t){return e&&e!==document.body?t(e)?e:o(Object(r.a)(e),t):null}},function(e,t,n){"use strict";e.exports=n(529)},,,function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.defineCategories=t.getRandom=t.parseSafe=t.getFormat=t.tickFormatParserExpression=t.getTimeFormatFunction=t.isUtcTimeZone=t.setTimeZone=t.setFormatOptions=t.getFormatOptions=t.replaceSymbolByTab=t.replaceSymbolByNewLine=t.replaceTabBySymbol=t.splitStringByNewLine=t.replaceNewLineBySymbol=t.getTimeZoneOffset=t.refineColumnName=t.compareMarkAttributeNames=t.colorAttributes=t.applyDateFormat=t.getSortDirection=t.getSortFunctionByData=t.hexToRgb=t.rgbToHex=t.compareVersion=t.parseVersion=t.MultistringHashMap=t.HashMap=t.KeyNameMap=t.stableSortBy=t.sortBy=t.stableSort=t.gather=t.getIndexByName=t.getByName=t.getIndexById=t.getById=t.indexOf=t.fillDefaults=t.getField=t.setField=t.argMin=t.min=t.argMax=t.max=t.shallowClone=t.deepClone=t.makeRange=t.transpose=t.zipArray=t.zip=void 0;var l=n(107),c=n(158),u=n(12),A=n(24);function d(e,t){return e.map((function(e,t){return[e,t]})).sort((function(e,n){var r=t(e[0],n[0]);return 0!=r?r:e[1]-n[1]})).map((function(e){return e[0]}))}t.zip=function(e,t){var n;return a(this,(function(r){switch(r.label){case 0:n=0,r.label=1;case 1:return n<e.length?[4,[e[n],t[n]]]:[3,4];case 2:r.sent(),r.label=3;case 3:return n++,[3,1];case 4:return[2]}}))},t.zipArray=function(e,t){return e.length<t.length?e.map((function(e,n){return[e,t[n]]})):t.map((function(t,n){return[e[n],t]}))},t.transpose=function(e){if(null!=e){if(0==e.length)return[];for(var t=e[0].length,n=[],r=0;r<t;r++){for(var o=[],i=0;i<e.length;i++)o.push(e[i][r]);n.push(o)}return n}},t.makeRange=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n},t.deepClone=function(e){return JSON.parse(JSON.stringify(e))},t.shallowClone=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},t.max=function(e,t){for(var n,r,o=-1,i=e.length;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},t.argMax=function(e,t){for(var n,r,o=-1,i=e.length,a=-1;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n,a=o;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n,a=o);return a},t.min=function(e,t){for(var n,r,o=-1,i=e.length;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r},t.argMin=function(e,t){for(var n,r,o,i=-1,a=e.length;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n,o=i;++i<a;)null!=(n=t(e[i],i,e))&&r>n&&(r=n,o=i);return o},t.setField=function(e,t,n){var r=e;if("string"==typeof t||"number"==typeof t)r[t]=n;else{for(var o=0;o<t.length-1;o++)null==r[t[o]]&&(r[t[o]]={}),r=r[t[o]];r[t[t.length-1]]=n}return e},t.getField=function(e,t){var n=e;if("string"==typeof t||"number"==typeof t)return n[t];for(var r=t,o=0;o<r.length-1;o++){if(null==n[r[o]])return;n=n[r[o]]}return n[r[r.length-1]]},t.fillDefaults=function(e,t){for(var n in null==e&&(e={}),t)Object.prototype.hasOwnProperty.call(t,n)&&(Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]));return e},t.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return n;return-1},t.getById=function(e,t){for(var n=0;n<e.length;n++)if(e[n]._id==t)return e[n];return null},t.getIndexById=function(e,t){for(var n=0;n<e.length;n++)if(e[n]._id==t)return n;return-1},t.getByName=function(e,t){for(var n=0;n<e.length;n++)if(e[n].name==t)return e[n];return null},t.getIndexByName=function(e,t){for(var n=0;n<e.length;n++)if(e[n].name==t)return n;return-1},t.gather=function(e,t){var n,r,o=new Map;e.forEach((function(e,n){var r=t(e,n);o.has(r)?o.get(r).push(e):o.set(r,[e])}));var i=[];try{for(var a=s(o.values()),l=a.next();!l.done;l=a.next()){var c=l.value;i.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.stableSort=d,t.sortBy=function(e,t,n){return void 0===n&&(n=!1),n?e.sort((function(e,n){var r=t(e),o=t(n);return r==o?0:r<o?1:-1})):e.sort((function(e,n){var r=t(e),o=t(n);return r==o?0:r<o?-1:1}))},t.stableSortBy=function(e,t,n){return void 0===n&&(n=!1),d(e,n?function(e,n){var r=t(e),o=t(n);return r==o?0:r<o?1:-1}:function(e,n){var r=t(e),o=t(n);return r==o?0:r<o?-1:1})};var g=function(){function e(){this.mapping=new Map}return e.prototype.add=function(e,t,n){if(this.mapping.has(e))this.mapping.get(e)[t]=n;else{var r={};r[t]=n,this.mapping.set(e,r)}},e.prototype.delete=function(e,t){this.mapping.has(e)&&delete this.mapping.get(e)[t]},e.prototype.has=function(e,t){return!!this.mapping.has(e)&&Object.prototype.hasOwnProperty.call(this.mapping.get(e),t)},e.prototype.get=function(e,t){if(this.mapping.has(e)){var n=this.mapping.get(e);return Object.prototype.hasOwnProperty.call(n,t)?n[t]:null}return null},e.prototype.forEach=function(e){this.mapping.forEach((function(t,n){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],n,r)}))},e}();t.KeyNameMap=g;var p=function(){function e(){this.map=new Map}return e.prototype.set=function(e,t){this.map.set(this.hash(e),t)},e.prototype.get=function(e){return this.map.get(this.hash(e))},e.prototype.has=function(e){return this.map.has(this.hash(e))},e.prototype.delete=function(e){this.map.delete(this.hash(e))},e.prototype.clear=function(){this.map.clear()},e.prototype.values=function(){return this.map.values()},e}();t.HashMap=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator=Math.random().toString(36).substr(2),t}return o(t,e),t.prototype.hash=function(e){return e.join(this.separator)},t}(p);function f(e){var t=e.match(/^(\d+)\.(\d+)\.(\d+)$/);return{major:+t[1],minor:+t[2],patch:+t[3]}}function m(e){var t=Math.round(e).toString(16);return 1==t.length?"0"+t:t}t.MultistringHashMap=h,t.parseVersion=f,t.compareVersion=function(e,t){var n=f(e),r=f(t);return n.major!=r.major?n.major-r.major:n.minor!=r.minor?n.minor-r.minor:n.patch-r.patch},t.rgbToHex=function(e){return e?"#"+m(e.r)+m(e.g)+m(e.b):null},t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},t.getSortFunctionByData=function(e){return e.length>0&&e.map((function(e){return!(!(t=e.match(/(\d-)|(\d+-\d+)|(\d+\+)/))||!t.length);var t})).reduceRight((function(e,t){return e&&t}))?function(e,t){if(e&&t)return+e.match(/\d+/)[0]<+t.match(/\d+/)[0]||+e.split("-").pop()<+t.split("-").pop()?1:-1}:function(e,t){return e<t?-1:1}},t.getSortDirection=function(e){var t="ascending";if(e&&e[0]&&e[e.length-1]){var n=e[0].toString(),r=e[e.length-1].toString();t=r&&n&&r.localeCompare(n)>-1?"ascending":"descending"}return t},t.applyDateFormat=function(e,t){return E()(t)(e)},t.colorAttributes=["fill","stroke","color"],t.compareMarkAttributeNames=function(e,n){return e===n||(t.colorAttributes.indexOf(n)>-1&&t.colorAttributes.indexOf(e)>-1||void 0)},t.refineColumnName=function(e){return e.replace(/[^0-9a-zA-Z_]/g,"_")},t.getTimeZoneOffset=function(e){return 60*new Date(e).getTimezoneOffset()*1e3},t.replaceNewLineBySymbol=function(e){return null==e?void 0:e.replace(/\\n/g,"\n")},t.splitStringByNewLine=function(e){return null==e?void 0:e.split(/\\n/g)},t.replaceTabBySymbol=function(e){return null==e?void 0:e.replace(/\\t/g,"\t")},t.replaceSymbolByNewLine=function(e){return null==e?void 0:e.replace(/\n/g,"\\n")},t.replaceSymbolByTab=function(e){return null==e?void 0:e.replace(/\t/g,"\\t")};var y={decimal:".",thousands:",",grouping:[3],currency:["$",""]},I={utcTimeZone:!0};function C(){return I.utcTimeZone}function E(){return C()?l.utcFormat:l.timeFormat}t.getFormatOptions=function(){return i({},y)},t.setFormatOptions=function(e){y=i({},e)},t.setTimeZone=function(e){I={utcTimeZone:e}},t.isUtcTimeZone=C,t.getTimeFormatFunction=E,t.tickFormatParserExpression=function(){return/\{([^}]+)\}/g},t.getFormat=function(){return c.formatLocale(y).format},t.parseSafe=function(e,t){void 0===t&&(t=null);try{var n=JSON.parse(e);return null!=n?n:t}catch(e){return t}},t.getRandom=function(e,t){return e+Math.random()*(t-e)},t.defineCategories=function(e){var t=new u.Scale.CategoricalScale;e=e.sort((function(e,t){return e-t})),t.inferParameters(e,A.OrderMode.order);var n=new Array(t.length);return t.domain.forEach((function(e,t){return n[e]=t.toString()})),n}},function(e,t,n){"use strict";n.r(t);var r=n(114);n.d(t,"formatDefaultLocale",(function(){return r.a})),n.d(t,"format",(function(){return r.b})),n.d(t,"formatPrefix",(function(){return r.c}));var o=n(148);n.d(t,"formatLocale",(function(){return o.a}));var i=n(91);n.d(t,"formatSpecifier",(function(){return i.b})),n.d(t,"FormatSpecifier",(function(){return i.a}));var a=n(196);n.d(t,"precisionFixed",(function(){return a.a}));var s=n(197);n.d(t,"precisionPrefix",(function(){return s.a}));var l=n(198);n.d(t,"precisionRound",(function(){return l.a}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.setConfig=void 0,t.setConfig=function(e){r=null==e?{}:e},t.getConfig=function(){return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testAndNormalizeMonthName=t.monthNames=t.getDateFormat=t.defaultDateTimeFormat=t.parseDate=void 0,t.parseDate=function(e,t){if((e=e.trim()).match(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i)){var n=Date.parse(e);return isNaN(n)?null:n}var r=e.match(/^(((\d{4})-(\d{1,2})(-(\d{1,2}))?|(\d{1,2})(\/(\d{1,2}))?\/(\d{4}))( +((\d{2}):(\d{2})(:(\d{2}))?(am|pm)?)( +(([+-]\d{2}):(\d{2})))?)?|(\d{2}):(\d{2})(:(\d{2}))?(am|pm)?)$/i);if(r){var o=1970,i=1,a=1,s=0,l=0,c=0;null!=r[2]&&(null!=r[3]&&(o=+r[3],i=+r[4],null!=r[6]&&(a=+r[6])),null!=r[10]&&(o=+r[10],i=+r[7],null!=r[9]&&(a=+r[9])));var u=void 0;if(null!=r[12]&&(s=+r[13],l=+r[14],null!=r[16]&&(c=+r[16]),null!=r[17]&&(u=r[17].toLowerCase())),null!=r[22]&&(s=+r[22],l=+r[23],null!=r[25]&&(c=+r[25]),null!=r[26]&&(u=r[26].toLowerCase())),"am"==u){if(s<1||s>12)return null;12==s&&(s=0)}else if("pm"==u){if(s<1||s>12)return null;12!=s&&(s+=12)}var A=Date.UTC(o,i-1,a,s,l,c,0);if(null==A||isNaN(A))return null;if(null!=r[20]){var d=6e4*(60*+r[20].slice(1)+ +r[21]);"+"==r[20][0]?A+=d:A-=d}if(t)A+=d=6e4*t;return A}if(e.match(/^\d{4}?$/i)){n=Date.parse(e);return isNaN(n)?null:n}return null},t.defaultDateTimeFormat="%m/%d/%Y %H:%M:%S",t.getDateFormat=function(e){var t=null;if(e.match(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i)){var n=Date.parse(e);if(isNaN(n))return null;t="%Y-%m-%dT%H:%M:%S"}if(e.match(/^(\d{4})-(\d{1,2})/i)){n=Date.parse(e);if(isNaN(n))return null;t="%Y-%m"}if(e.match(/^(\d{1,2})\/(\d{4})/i)){n=Date.parse(e);if(isNaN(n))return null;t="%m/%Y"}if(e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/i)){n=Date.parse(e);if(isNaN(n))return null;t="%Y-%m-%d"}if(e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})/i)){n=Date.parse(e);if(isNaN(n))return null;t="%m/%d/%Y"}if(e.match(/^(((\d{4})-(\d{1,2})(-(\d{1,2}))?|(\d{1,2})(\/(\d{1,2}))?\/(\d{4}))( +((\d{2}):(\d{2})(:(\d{2}))?(am|pm)?)( +(([+-]\d{2}):(\d{2})))?)|(\d{2}):(\d{2})(:(\d{2}))?(am|pm)?)$/i)){n=Date.parse(e);if(isNaN(n))return t;t+=" %H:%M:%S"}return t},t.monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var r={jan:"Jan",january:"Jan",feb:"Feb",february:"Feb",mar:"Mar",march:"Mar",apr:"Apr",april:"Apr",may:"May",jun:"Jun",june:"Jun",jul:"Jul",july:"Jul",aug:"Aug",august:"Aug",sep:"Sep",sept:"Sep",september:"Sep",oct:"Oct",october:"Oct",nov:"Nov",november:"Nov",dec:"Dec",december:"Dec"};t.testAndNormalizeMonthName=function(e){return e.endsWith(".")&&(e=e.substr(0,e.length-1)),e=e.toLowerCase(),r[e]}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DataflowManager=t.DataflowTable=t.DataflowTableGroupedContext=void 0;var o=n(38),i=n(49),a=function(){function e(e,t){this.table=e,this.indices=t}return e.prototype.getTable=function(){return this.table},e.prototype.getVariable=function(e){var t,n=this;return Object.prototype.hasOwnProperty.call(null!==(t=this.table.rows[this.indices[0]])&&void 0!==t?t:{},e)?this.indices.map((function(t){return n.table.rows[t][e]})):this.table.getVariable(e)},e}();t.DataflowTableGroupedContext=a;var s=function(){function e(e,t,n,r,o){this.parent=e,this.name=t,this.rows=n,this.columns=r,this.options=o}return e.prototype.getVariable=function(e){return"rows"==e?this.rows:"columns"==e?this.columns:this.parent.getVariable(e)},e.prototype.getRow=function(e){return this.rows[e]},e.prototype.getRowContext=function(e){return new i.ShadowContext(this,this.rows[e])},e.prototype.getGroupedContext=function(e){return new a(this,e)},e}();t.DataflowTable=s;var l=function(){function e(e){var t,n;this.context=new o.DatasetContext(e),this.cache=new i.ExpressionCache,this.tables=new Map;try{for(var a=r(e.tables),l=a.next();!l.done;l=a.next()){var c=l.value,u=new s(this,c.name,c.rows,c.columns,{displayName:c.displayName});this.tables.set(c.name,u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}return e.prototype.getTable=function(e){return this.tables.get(e)},e.prototype.getVariable=function(e){if(this.tables.has(e))return this.tables.get(e)},e}();t.DataflowManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformDirection=t.transform=t.concatTransform=t.rotation=t.translation=t.makePath=t.PathMaker=t.makeText=t.makePolygon=t.makeLine=t.makeGroup=t.makeEllipse=t.makeCircle=t.makeRect=t.PathTextAlignment=void 0;var r=n(12);!function(e){e.Start="start",e.Middle="middle",e.End="end"}(t.PathTextAlignment||(t.PathTextAlignment={})),t.makeRect=function(e,t,n,r,o,i,a){return{type:"rect",x1:e,x2:n,y1:t,y2:r,style:o,rx:i,ry:a}},t.makeCircle=function(e,t,n,r){return{type:"circle",cx:e,cy:t,r:n,style:r}},t.makeEllipse=function(e,t,n,r,o){return{type:"ellipse",x1:e,x2:n,y1:t,y2:r,style:o}},t.makeGroup=function(e){return{type:"group",elements:e,transform:{x:0,y:0,angle:0}}},t.makeLine=function(e,t,n,r,o){return{type:"line",x1:e,x2:n,y1:t,y2:r,style:o}},t.makePolygon=function(e,t){return{type:"polygon",points:e,style:t}},t.makeText=function(e,t,n,r,o,i,a){return{type:"text",cx:e,cy:t,text:n,fontFamily:r,fontSize:o,style:i,selectable:a}};var o=function(){function e(){this.path={type:"path",cmds:[],transform:""}}return e.prototype.moveTo=function(e,t){this.path.cmds.push({cmd:"M",args:[e,t]})},e.prototype.lineTo=function(e,t){this.path.cmds.push({cmd:"L",args:[e,t]})},e.prototype.transformRotation=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),this.path.transform="rotate("+e+" "+t+" "+n+")"},e.prototype.setBeginArrowType=function(e){this.path.beginArrowType=e},e.prototype.setEndArrowType=function(e){this.path.endArrowType=e},e.prototype.cubicBezierCurveTo=function(e,t,n,r,o,i){this.path.cmds.push({cmd:"C",args:[e,t,n,r,o,i]})},e.prototype.quadraticBezierCurveTo=function(e,t,n,r){this.path.cmds.push({cmd:"Q",args:[e,t,n,r]})},e.prototype.arcTo=function(e,t,n,r,o,i,a){this.path.cmds.push({cmd:"A",args:[e,t,n,r,o,i,a]})},e.prototype.archimedeanSpiral=function(e,t,n,r,o,i,a){void 0===a&&(a=!1);for(var s=Math.ceil(Math.abs(i-o)/(Math.PI/6))+1,l=0;l<s;l++){var c=l/s*(i-o)+o,u=n+r*c,A=u*Math.cos(c),d=u*Math.sin(c),g=(l+1)/s*(i-o)+o,p=n+r*g,h=p*Math.cos(g),f=p*Math.sin(g),m=(g-c)/3;a&&0==l&&this.moveTo(e+A,t+d);var y=(r*Math.cos(c)-d)*m,I=(r*Math.sin(c)+A)*m,C=(r*Math.cos(g)-f)*m,E=(r*Math.sin(g)+h)*m;this.cubicBezierCurveTo(e+A+y,t+d+I,e+h-C,t+f-E,e+h,t+f)}},e.prototype.polarLineTo=function(e,t,n,o,i,a,s){if(void 0===s&&(s=!1),s){var l=e+Math.cos(r.Geometry.degreesToRadians(n))*o,c=t+Math.sin(r.Geometry.degreesToRadians(n))*o;this.moveTo(l,c)}if(Math.abs(i-n)<1e-6){var u=e+Math.cos(r.Geometry.degreesToRadians(i))*a,A=t+Math.sin(r.Geometry.degreesToRadians(i))*a;this.lineTo(u,A)}else if(Math.abs(o-a)<1e-6){if(i>n)for(var d=n;i>d;){(g=i)>d+180&&(g=d+180);u=e+Math.cos(r.Geometry.degreesToRadians(g))*o,A=t+Math.sin(r.Geometry.degreesToRadians(g))*o;this.arcTo(o,o,0,0,0,u,A),d=g}else if(i<n)for(d=n;i<d;){var g;(g=i)<d-180&&(g=d-180);u=e+Math.cos(r.Geometry.degreesToRadians(g))*o,A=t+Math.sin(r.Geometry.degreesToRadians(g))*o;this.arcTo(o,o,0,0,1,u,A),d=g}}else{var p=(a-o)/(i-n),h=o-p*n,f=Math.PI/180;this.archimedeanSpiral(e,t,h,p/f,n*f,i*f)}},e.prototype.closePath=function(){this.path.cmds.push({cmd:"Z",args:[]})},e}();t.PathMaker=o,t.makePath=function(e){var t=new o;return t.path.style=e,t},t.translation=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),{x:e,y:t,angle:0}},t.rotation=function(e){return{x:0,y:0,angle:e}},t.concatTransform=function(e,t){var n=r.Geometry.degreesToRadians(e.angle),o=Math.cos(n),i=Math.sin(n);return{x:e.x+t.x*o-t.y*i,y:e.y+t.x*i+t.y*o,angle:e.angle+t.angle}},t.transform=function(e,t){var n=r.Geometry.degreesToRadians(e.angle),o=Math.cos(n),i=Math.sin(n);return{x:t.x*o-t.y*i+e.x,y:t.x*i+t.y*o+e.y}},t.transformDirection=function(e,t){var n=r.Geometry.degreesToRadians(e.angle),o=Math.cos(n),i=Math.sin(n);return{x:t.x*o-t.y*i,y:t.x*i+t.y*o}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GuidePolarCoordinatorClass=t.getPointValueName=t.getRadialValueName=t.getAngularValueName=t.PolarGuideBaseAttributeNames=t.PolarGuidePropertyNames=void 0;var l=n(7),c=n(26),u=n(6),A=n(67);t.PolarGuidePropertyNames=["angularGuidesCount","endAngle","innerRatio","outerRatio","radialGuidesCount","startAngle"],t.PolarGuideBaseAttributeNames=["x","y","x1","y1","x2","y2","angle1","angle2","radial1"],t.getAngularValueName=function(e){return"angularValue"+e},t.getRadialValueName=function(e){return"radialValue"+e},t.getPointValueName=function(e,t,n){return"point"+e+t+n};var d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.buildConstraints=function(e,t,n){var r=this.state.attributes,o=this.object.properties,s=this.getValueNamesForRadial(),l=1/s.length,u=s.map((function(e,t){return[0+(0+l)*t,0+(0+l)*t+l]})),A=this.getValueNamesForAngular(),d=1/A.length,g=A.map((function(e,t){return[0+(0+d)*t,0+(0+d)*t+d]})),p=i(e.attrs(r,["x","y","x1","x2","y1","y2","angle1","angle2","radial1","radial2"]),10),h=p[0],f=p[1],m=p[2],y=p[3],I=p[4],C=p[5],E=p[6],b=p[7],v=p[8],B=p[9];r.angle1=o.startAngle,r.angle2=o.endAngle,e.makeConstant(r,"angle1"),e.makeConstant(r,"angle2"),Math.abs(r.x2-r.x1)<Math.abs(r.y2-r.y1)?(r.radial1=o.innerRatio*(r.x2-r.x1)/2,r.radial2=o.outerRatio*(r.x2-r.x1)/2,e.addLinear(c.ConstraintStrength.HARD,0,[[o.innerRatio,y],[-o.innerRatio,m]],[[2,v]]),e.addLinear(c.ConstraintStrength.HARD,0,[[o.outerRatio,y],[-o.outerRatio,m]],[[2,B]])):(r.radial1=o.innerRatio*(r.y2-r.y1)/2,r.radial2=o.outerRatio*(r.y2-r.y1)/2,e.addLinear(c.ConstraintStrength.HARD,0,[[o.innerRatio,C],[-o.innerRatio,I]],[[2,v]]),e.addLinear(c.ConstraintStrength.HARD,0,[[o.outerRatio,C],[-o.outerRatio,I]],[[2,B]])),e.addLinear(c.ConstraintStrength.HARD,0,[[2,h]],[[1,m],[1,y]]),e.addLinear(c.ConstraintStrength.HARD,0,[[2,f]],[[1,I],[1,C]]);for(var M=[],D=0;D<A.length;D++)M.push(e.attr(r,A[D]));for(var x=[],w=0;w<s.length;w++)x.push(e.attr(r,s[w]));for(D=0;D<A.length;D++){var Q=i(g[D],2),S=[[j=Q[0],b],[1-j,E]],N=[[L=Q[1],b],[1-L,E]],k=e.attr({value:e.getLinear.apply(e,a(S))},"valueX",{edit:!0}),T=e.attr({value:e.getLinear.apply(e,a(N))},"valueX",{edit:!0});e.addLinear(c.ConstraintStrength.HARD,0,S,[[1,k]]),e.addLinear(c.ConstraintStrength.HARD,0,N,[[1,T]]),e.addEquals(c.ConstraintStrength.HARD,e.attr(r,A[D],{edit:!1}),k)}for(w=0;w<s.length;w++){var j,L,R=i(u[w],2),O=[[j=R[0],B],[1-j,v]],_=[[L=R[1],B],[1-L,v]],F=e.attr({value:e.getLinear.apply(e,a(O))},"valueY",{edit:!0}),z=e.attr({value:e.getLinear.apply(e,a(_))},"valueY",{edit:!0});e.addLinear(c.ConstraintStrength.HARD,0,O,[[1,F]]),e.addLinear(c.ConstraintStrength.HARD,0,_,[[1,z]]),e.addEquals(c.ConstraintStrength.HARD,e.attr(r,s[w],{edit:!1}),z)}var P=this.parent.object.constraints;e.addPlugin(new c.ConstraintPlugins.PolarCoordinatorPlugin(e,h,f,x,M,r,P,this.object._id,n))},n.prototype.getValueNamesForAngular=function(){for(var e=[],n=0;n<this.object.properties.angularGuidesCount;n++){var r=t.getAngularValueName(n);e.push(r),this.state&&null==this.state.attributes[r]&&(this.state.attributes[r]=0)}return e},n.prototype.getValueNamesForRadial=function(){for(var e=[],n=0;n<this.object.properties.radialGuidesCount;n++){var r=t.getRadialValueName(n);e.push(r),this.state&&null==this.state.attributes[r]&&(this.state.attributes[r]=0)}return e},n.prototype.getValueNamesForPoints=function(){for(var e=[],n=0;n<this.object.properties.angularGuidesCount;n++)for(var r=0;r<this.object.properties.radialGuidesCount;r++){var o=t.getPointValueName(n,r,"X");e.push(o),this.state&&null==this.state.attributes[o]&&(this.state.attributes[o]=0);var i=t.getPointValueName(n,r,"Y");e.push(i),this.state&&null==this.state.attributes[o]&&(this.state.attributes[o]=0)}return e},Object.defineProperty(n.prototype,"attributeNames",{get:function(){return t.PolarGuideBaseAttributeNames.concat(this.getValueNamesForAngular()).concat(this.getValueNamesForRadial())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var e=this.attributeNames.map((function(e){return{name:e,type:u.AttributeType.Number}})),t={};return e.forEach((function(e){return t[e.name]=e})),t},enumerable:!1,configurable:!0}),n.prototype.initializeState=function(){var e,t,n,r,o,i,a=this.state.attributes;a.angle1=0,a.angle2=360,a.radial1=10,a.radial2=100,a.x1=-100,a.x2=100,a.y1=-100,a.y2=100,a.x=a.x1,a.y=a.y2,a.gapX=4,a.gapY=4;try{for(var l=s(this.getValueNamesForAngular()),c=l.next();!c.done;c=l.next()){var u=c.value;null==this.state.attributes[u]&&(this.state.attributes[u]=0)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}try{for(var A=s(this.getValueNamesForRadial()),d=A.next();!d.done;d=A.next()){var g=d.value;null==this.state.attributes[g]&&(this.state.attributes[g]=0)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=A.return)&&r.call(A)}finally{if(n)throw n.error}}try{for(var p=s(this.getValueNamesForPoints()),h=p.next();!h.done;h=p.next()){var f=h.value;null==this.state.attributes[f]&&(this.state.attributes[f]=0)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}},n.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",axis:"y",value:n,span:[t,r],actions:[{type:"attribute",attribute:"y1"}]},{type:"line",axis:"y",value:o,span:[t,r],actions:[{type:"attribute",attribute:"y2"}]},{type:"line",axis:"x",value:t,span:[n,o],actions:[{type:"attribute",attribute:"x1"}]},{type:"line",axis:"x",value:r,span:[n,o],actions:[{type:"attribute",attribute:"x2"}]},{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:r,y:n,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},n.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x,n=e.y,r=e.x2,o=e.y2,i=e.x1,a=e.y1,s=0;return s=Math.abs(r-i)<Math.abs(o-a)?this.object.properties.outerRatio*(r-i)/2:this.object.properties.outerRatio*(o-a)/2,{type:"circle",cx:t,cy:n,radius:Math.abs(s)}},n.prototype.getSnappingGuides=function(){for(var e=[],n=0;n<this.object.properties.angularGuidesCount;n++)for(var r=0;r<this.object.properties.radialGuidesCount;r++){var o=t.getPointValueName(n,r,"X"),i=t.getPointValueName(n,r,"Y");e.push({type:"point",angle:this.state.attributes[o],radius:this.state.attributes[i],startAngle:this.object.properties.startAngle,endAngle:this.object.properties.endAngle,angleAttribute:o,radiusAttribute:i,visible:!0,cx:this.state.attributes.x,cy:this.state.attributes.y,visibleAngle:this.state.attributes[t.getAngularValueName(n)],visibleRadius:this.state.attributes[t.getRadialValueName(r)]})}return e.push({type:"point",angle:this.state.attributes.x,radius:this.state.attributes.y,startAngle:this.object.properties.startAngle,endAngle:this.object.properties.endAngle,angleAttribute:"x",radiusAttribute:"y",visible:!0,cx:this.state.attributes.x,cy:this.state.attributes.y,visibleAngle:0,visibleRadius:0}),e},n.prototype.getAttributePanelWidgets=function(e){return[e.verticalGroup({header:l.strings.objects.guides.guideCoordinator},[e.inputNumber({property:"angularGuidesCount"},{showUpdown:!0,updownTick:1,updownRange:[1,100],minimum:2,maximum:100,label:l.strings.objects.guides.angular,searchSection:l.strings.objects.guides.guideCoordinator}),e.searchWrapper({searchPattern:[l.strings.objects.guides.angle,l.strings.objects.guides.guideCoordinator]},e.vertical(e.label(l.strings.objects.guides.angle),e.horizontal([1,0,1],e.inputNumber({property:"startAngle"},{ignoreSearch:!0}),e.label("-"),e.inputNumber({property:"endAngle"},{ignoreSearch:!0}))))])]},n.classID="guide.guide-coordinator-polar",n.type="guide",n.metadata={displayName:"GuidePolarCoordinator",iconPath:"guide/coordinator-polar",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},n.defaultAttributes={angularGuidesCount:4,radialGuidesCount:4},n}(A.ChartElementClass);t.GuidePolarCoordinatorClass=d},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var A=0;A<s.length;A++)i.call(n,s[A])&&(l[s[A]]=n[s[A]])}}return l}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedCategories=t.updateWidgetCategoriesByExpression=t.transformDataToCategoryItemsWithIds=t.getOnConfirmFunction=t.transformOnResetCategories=t.JoinSymbol=t.shouldShowTickFormatForTickExpression=t.transformOrderByExpression=t.parseDerivedColumnsExpression=t.getColumnNameByExpression=t.getColumnByExpression=t.getTableColumns=void 0;var i=n(12),a=n(5),s=n(24),l=n(6),c=n(49);function u(e){return"number"==typeof e[0]}function A(e,t){return e-t}function d(e){var n=e[0];return u(n)?Array.isArray(n)?n.sort(A).join(t.JoinSymbol):n:Array.isArray(n)?n.sort().join(t.JoinSymbol):n}function g(e){var t=e.map((function(e){return d(e)})),n=new Set(t);return o(n)}function p(e){return e.map((function(e,t){return[e,t]}))}t.getTableColumns=function(e){var t=e.store.getTables()[0];return i.deepClone(t.columns)},t.getColumnByExpression=function(e,t){var n,r=e.store.getTables()[0],o=a.Expression.parse(t);return o instanceof a.Expression.FunctionCall&&(n=o.args[0].toString()),i.deepClone(r.columns).filter((function(e){return e.displayName===n}))},t.getColumnNameByExpression=function(e){var t,n=a.Expression.parse(e);return n instanceof a.Expression.FunctionCall&&(t=n.args[0].toString()),t},t.parseDerivedColumnsExpression=function(e){return e.startsWith("date.")?e.match(/\(([^)]+)\)/)[1]:e},t.transformOrderByExpression=function(e){return e.indexOf("`")<0&&e.split(" ").length>=2||c.Variable.isNonEnglishVariableName(e)?c.Variable.VariableNameToString(e):e},t.shouldShowTickFormatForTickExpression=function(e,t){var n=!0;try{if(e.tickDataExpression){var r=t,o=r.store.chartManager,i=o.getTable(r.store.getTables()[0].name),a=o.dataflow.cache.parse(e.tickDataExpression),s=i.getRowContext(0);"string"==typeof a.getValue(s)&&(n=!1)}}catch(e){console.log(e),n=!0}return n},t.JoinSymbol=", ",t.transformOnResetCategories=g,t.getOnConfirmFunction=function(e,t,n,r){try{for(var i=o(e),a=[],c=function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];d(s)===t[e]&&r.push(s[1])}var l=function(e){var t=i.find((function(t){return t[1]===r[e]}));a.push(t)};for(o=0;o<r.length;o++)l(o)},u=0;u<t.length;u++)c(u);var A=function(e){return r.valueType==l.DataType.Number?""+e:e};r.order=a.map((function(e){return A(e[0])})),r.orderMode=s.OrderMode.order,r.categories=a.map((function(e){return A(e[0])}))}catch(e){console.log(e)}},t.transformDataToCategoryItemsWithIds=p,t.updateWidgetCategoriesByExpression=function(e){var t=[];return p(e).map((function(e){var n=d(e);t.push(n)})),t},t.getSortedCategories=function(e){return e[0]&&u(e[0][0])?g(e.sort((function(e,t){return u(e[0])&&u(t[0])?e[0][0]-t[0][0]:0}))):g(e).sort()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledGroupBy=void 0;var r=n(12),o=function(e,t){if(e.expression){var n=t.parse(e.expression);this.groupBy=function(e){var t=r.makeRange(0,e.rows.length);return r.gather(t,(function(t){return n.getStringValue(e.getRowContext(t))}))}}};t.CompiledGroupBy=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIManagerListener=t.EventManager=t.EventType=void 0,function(e){e[e.UPDATE_FIELD=0]="UPDATE_FIELD"}(t.EventType||(t.EventType={}));var r=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e,t){this.listeners.push({listener:t,type:e})},e.prototype.notify=function(e,t,n){for(var r=0;r<this.listeners.length;r++)this.listeners[r].type===e&&this.listeners[r].listener.update(t,n)},e}();t.EventManager=r;var o=function(){function e(e){this.manager=e}return e.prototype.update=function(e,t){this.manager.emitSetProperty(e,t)},e}();t.UIManagerListener=o},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=t.inferScaleType=t.ScaleClass=void 0;var o=n(358);Object.defineProperty(t,"ScaleClass",{enumerable:!0,get:function(){return o.ScaleClass}});var i=n(6),a=n(50),s=n(359),l=n(214),c=[{input:{type:[i.DataType.Number,i.DataType.Date],kind:[i.DataKind.Numerical,i.DataKind.Temporal]},output:i.AttributeType.Number,scale:"scale.linear<number,number>",priority:1},{input:{type:[i.DataType.Number,i.DataType.Date],kind:[i.DataKind.Numerical,i.DataKind.Temporal]},output:i.AttributeType.Color,scale:"scale.linear<number,color>",priority:1},{input:{type:[i.DataType.Number,i.DataType.Date],kind:[i.DataKind.Categorical,i.DataKind.Ordinal]},output:i.AttributeType.Color,scale:"scale.categorical<string,color>",priority:1},{input:{type:[i.DataType.Number,i.DataType.Date],kind:[i.DataKind.Numerical,i.DataKind.Temporal]},output:i.AttributeType.Boolean,scale:"scale.linear<number,boolean>",priority:1},{input:{type:[i.DataType.String,i.DataType.Boolean],kind:[i.DataKind.Categorical,i.DataKind.Ordinal]},output:i.AttributeType.Color,scale:"scale.categorical<string,color>",priority:1},{input:{type:[i.DataType.String,i.DataType.Boolean],kind:[i.DataKind.Categorical,i.DataKind.Ordinal]},output:i.AttributeType.Image,scale:"scale.categorical<string,image>",priority:1},{input:{type:[i.DataType.Image,i.DataType.Image],kind:[i.DataKind.Categorical,i.DataKind.Categorical]},output:i.AttributeType.Image,scale:"scale.categorical<image,image>",priority:1},{input:{type:[i.DataType.String,i.DataType.Boolean],kind:[i.DataKind.Categorical,i.DataKind.Ordinal]},output:i.AttributeType.Enum,scale:"scale.categorical<string,enum>",priority:1},{input:{type:[i.DataType.String,i.DataType.Boolean],kind:[i.DataKind.Categorical,i.DataKind.Ordinal]},output:i.AttributeType.Boolean,scale:"scale.categorical<string,boolean>",priority:1},{input:{type:i.DataType.String,kind:[i.DataKind.Ordinal]},output:i.AttributeType.Number,scale:"scale.categorical<string,number>",priority:1}];function u(e,t){return e instanceof Array?e.indexOf(t)>=0:e==t}t.inferScaleType=function(e,t,n){var o,i,a=null;try{for(var s=r(c),l=s.next();!l.done;l=s.next()){var A=l.value;u(A.input.type,e)&&(u(A.output,n)&&u(A.input.kind,t)&&(!a||a.priority<A.priority)&&(a=A))}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a?a.scale:null},t.registerClasses=function(){a.ObjectClasses.Register(s.CategoricalScaleNumber),a.ObjectClasses.Register(s.CategoricalScaleColor),a.ObjectClasses.Register(s.CategoricalScaleBoolean),a.ObjectClasses.Register(s.CategoricalScaleEnum),a.ObjectClasses.Register(s.CategoricalScaleImage),a.ObjectClasses.Register(s.CategoricalScaleBase64Image),a.ObjectClasses.Register(l.LinearScale),a.ObjectClasses.Register(l.LinearColorScale),a.ObjectClasses.Register(l.LinearBooleanScale)}},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="function"==typeof Promise,n="object"==typeof self?self:t,r="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,c=r&&void 0!==Symbol.iterator,u=r&&void 0!==Symbol.toStringTag,A=i&&"function"==typeof Set.prototype.entries,d=o&&"function"==typeof Map.prototype.entries,g=A&&Object.getPrototypeOf((new Set).entries()),p=d&&Object.getPrototypeOf((new Map).entries()),h=c&&"function"==typeof Array.prototype[Symbol.iterator],f=h&&Object.getPrototypeOf([][Symbol.iterator]()),m=c&&"function"==typeof String.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf(""[Symbol.iterator]());return function(t){var r=typeof t;if("object"!==r)return r;if(null===t)return"null";if(t===n)return"global";if(Array.isArray(t)&&(!1===u||!(Symbol.toStringTag in t)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&t===window.location)return"Location";if("object"==typeof window.document&&t===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&t===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&t===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&t instanceof window.HTMLElement){if("BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if("TD"===t.tagName)return"HTMLTableDataCellElement";if("TH"===t.tagName)return"HTMLTableHeaderCellElement"}}var c=u&&t[Symbol.toStringTag];if("string"==typeof c)return c;var A=Object.getPrototypeOf(t);return A===RegExp.prototype?"RegExp":A===Date.prototype?"Date":e&&A===Promise.prototype?"Promise":i&&A===Set.prototype?"Set":o&&A===Map.prototype?"Map":s&&A===WeakSet.prototype?"WeakSet":a&&A===WeakMap.prototype?"WeakMap":l&&A===DataView.prototype?"DataView":o&&A===p?"Map Iterator":i&&A===g?"Set Iterator":h&&A===f?"Array Iterator":m&&A===y?"String Iterator":null===A?"Object":Object.prototype.toString.call(t).slice(8,-1)}},e.exports=n()}).call(this,n(217))},function(e,t,n){var r=n(220),o=n(221),i=n(368),a=n(86);e.exports=function(e,t,n,r){return s({showHidden:t,seen:[],stylize:function(e){return e}},e,void 0===n?2:n)};function s(e,n,p){if(n&&"function"==typeof n.inspect&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var h=n.inspect(p,e);return"string"!=typeof h&&(h=s(e,h,p)),h}var f,m=function(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t==-1/0?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean");case"symbol":return e.stylize(t.toString(),"symbol")}if(null===t)return e.stylize("null","null")}(e,n);if(m)return m;if(f=n,"object"==typeof HTMLElement?f instanceof HTMLElement:f&&"object"==typeof f&&"nodeType"in f&&1===f.nodeType&&"string"==typeof f.nodeName){if("outerHTML"in n)return n.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(n);var y=document.createElementNS("http://www.w3.org/1999/xhtml","_");y.appendChild(n.cloneNode(!1));var I=y.innerHTML.replace("><",">"+n.innerHTML+"<");return y.innerHTML="",I}catch(e){}}var C,E,b=i(n),v=e.showHidden?o(n):b;if(0===v.length||d(n)&&(1===v.length&&"stack"===v[0]||2===v.length&&"description"===v[0]&&"stack"===v[1])){if("function"==typeof n)return E=(C=r(n))?": "+C:"",e.stylize("[Function"+E+"]","special");if(u(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return e.stylize(Date.prototype.toUTCString.call(n),"date");if(d(n))return l(n)}var B,M,D="",x=!1,w=!1,Q=["{","}"];if("object"==typeof(B=n)&&/\w+Array]$/.test(g(B))&&(w=!0,Q=["[","]"]),function(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===g(e)}(n)&&(x=!0,Q=["[","]"]),"function"==typeof n&&(D=" [Function"+(E=(C=r(n))?": "+C:"")+"]"),u(n)&&(D=" "+RegExp.prototype.toString.call(n)),A(n)&&(D=" "+Date.prototype.toUTCString.call(n)),d(n))return l(n);if(0===v.length&&(!x||0==n.length))return Q[0]+D+Q[1];if(p<0)return u(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");if(e.seen.push(n),x)M=function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)Object.prototype.hasOwnProperty.call(t,String(a))?i.push(c(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(c(e,t,n,r,o,!0))})),i}(e,n,p,b,v);else{if(w)return function(e){for(var t="[ ",n=0;n<e.length;++n){if(t.length>=a.truncateThreshold-7){t+="...";break}t+=e[n]+", "}-1!==(t+=" ]").indexOf(",  ]")&&(t=t.replace(",  ]"," ]"));return t}(n);M=v.map((function(t){return c(e,n,p,b,t,x)}))}return e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return e+t.length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(M,D,Q)}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,n,r,o,i){var a,l,c=Object.getOwnPropertyDescriptor(t,o);if(c&&(c.get?l=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(l=e.stylize("[Setter]","special"))),r.indexOf(o)<0&&(a="["+o+"]"),l||(e.seen.indexOf(t[o])<0?(l=s(e,t[o],null===n?null:n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return"   "+e})).join("\n")):l=e.stylize("[Circular]","special")),void 0===a){if(i&&o.match(/^\d+$/))return l;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+l}function u(e){return"object"==typeof e&&"[object RegExp]"===g(e)}function A(e){return"object"==typeof e&&"[object Date]"===g(e)}function d(e){return"object"==typeof e&&"[object Error]"===g(e)}function g(e){return Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MainView=t.LayoutDirection=t.PositionsLeftRightTop=t.PositionsLeftRight=t.UndoRedoLocation=void 0;var i,a,s,l,c=n(0),u=n(27),A=n(14),d=n(58),g=n(37),p=n(571),h=n(613),f=n(70),m=n(615),y=n(7),I=n(616),C=n(32);!function(e){e.MenuBar="menubar",e.ToolBar="toolbar"}(i=t.UndoRedoLocation||(t.UndoRedoLocation={})),function(e){e.Left="left",e.Right="right"}(a=t.PositionsLeftRight||(t.PositionsLeftRight={})),function(e){e.Left="left",e.Right="right",e.Top="top"}(s=t.PositionsLeftRightTop||(t.PositionsLeftRightTop={})),function(e){e.Vertical="vertical",e.Horizontal="horizontal"}(l=t.LayoutDirection||(t.LayoutDirection={}));var E=function(e){function t(t){var n=e.call(this,t)||this;return t.viewConfiguration?n.viewConfiguration=t.viewConfiguration:n.viewConfiguration={ColumnsPosition:a.Left,EditorPanelsPosition:a.Left,ToolbarPosition:s.Top,MenuBarButtons:a.Left,MenuBarSaveButtons:a.Left,ToolbarLabels:!0,UndoRedoLocation:i.MenuBar},n.state={glyphViewMaximized:!1,layersViewMaximized:!1,attributeViewMaximized:!1,scaleViewMaximized:!1,currentFocusComponentIndex:0},t.store.addListener(g.AppStore.EVENT_GRAPHICS,(function(){return n.forceUpdate()})),n}return o(t,e),t.prototype.shortcutKeyHandler=function(e){if(e.ctrlKey&&"F6"===e.key){var t=this.getFocusableComponents(),n=this.state.currentFocusComponentIndex;t[n].setAttribute("tabIndex",null),(n=e.shiftKey?this.state.currentFocusComponentIndex-1:this.state.currentFocusComponentIndex+1)>=t.length&&(n=0),n<0&&(n=t.length-1),this.setState({currentFocusComponentIndex:n}),t[n].setAttribute("tabIndex","0"),t[n].focus(),console.log("current index",n)}},t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.shortcutKeyHandler.bind(this))},t.prototype.getFocusableComponents=function(){return document.querySelectorAll(".charticulator__menu-bar,.charticulator__toolbar-horizontal,.minimizable-pane,.charticulator__floating-panel")},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.shortcutKeyHandler)},t.prototype.getChildContext=function(){return{store:this.props.store}},t.prototype.render=function(){var e=this,t=function(e){return c.createElement("div",{className:"charticulator__panel-editor-toolbar-"+e.layout},c.createElement(I.FluentUIToolbar,{toolbarLabels:e.toolbarLabels,undoRedoLocation:e.undoRedoLocation,layout:e.layout}))},n=function(){return c.createElement("div",{className:"charticulator__panel charticulator__panel-dataset"},c.createElement(A.MinimizablePanelView,null,c.createElement(A.MinimizablePane,{title:y.strings.mainView.datasetPanelTitle,scroll:!0,hideHeader:!0},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(p.DatasetView,{store:e.props.store}))),e.state.scaleViewMaximized?null:c.createElement(A.MinimizablePane,{title:y.strings.mainView.scalesPanelTitle,scroll:!0,onMaximize:function(){return e.setState({scaleViewMaximized:!0})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(m.ScalesPanel,{store:e.props.store})))))},r=function(){return c.createElement("div",{className:"charticulator__panel-editor-panel charticulator__panel-editor-panel-panes",style:{display:e.state.glyphViewMaximized&&e.state.attributeViewMaximized&&e.state.layersViewMaximized?"none":void 0}},c.createElement(A.MinimizablePanelView,null,e.state.glyphViewMaximized?null:c.createElement(A.MinimizablePane,{title:y.strings.mainView.glyphPaneltitle,scroll:!1,onMaximize:function(){return e.setState({glyphViewMaximized:!0})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(p.MarkEditorView,{height:300}))),e.state.layersViewMaximized?null:c.createElement(A.MinimizablePane,{title:y.strings.mainView.layersPanelTitle,scroll:!0,maxHeight:200,onMaximize:function(){return e.setState({layersViewMaximized:!0})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(f.ObjectListEditor,null))),e.state.attributeViewMaximized?null:c.createElement(A.MinimizablePane,{title:y.strings.mainView.attributesPaneltitle,scroll:!0,onMaximize:function(){return e.setState({attributeViewMaximized:!0})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(p.AttributePanel,{store:e.props.store})))))};return c.createElement("div",{className:"charticulator__application",onDragOver:function(e){return e.preventDefault()},onDrop:function(e){return e.preventDefault()}},c.createElement(C.MainReactContext.Provider,{value:{store:this.props.store}},c.createElement(A.TelemetryContext.Provider,{value:this.props.telemetry},c.createElement(h.MenuBar,{alignButtons:this.viewConfiguration.MenuBarButtons,alignSaveButton:this.viewConfiguration.MenuBarSaveButtons,undoRedoLocation:this.viewConfiguration.UndoRedoLocation,name:this.viewConfiguration.Name,ref:function(t){return e.refMenuBar=t},handlers:this.props.menuBarHandlers,tabButtons:this.props.tabButtons}),this.viewConfiguration.ToolbarPosition==s.Top&&t({layout:l.Horizontal,toolbarLabels:this.viewConfiguration.ToolbarLabels,undoRedoLocation:this.viewConfiguration.UndoRedoLocation}),c.createElement("section",{className:"charticulator__panel-container"},this.viewConfiguration.ColumnsPosition==a.Left&&n(),c.createElement("div",{className:"charticulator__panel charticulator__panel-editor"},c.createElement("div",{className:"charticulator__panel-editor-panel-container"},this.viewConfiguration.EditorPanelsPosition==a.Left&&r(),this.viewConfiguration.ToolbarPosition==s.Left&&t({layout:l.Vertical,toolbarLabels:this.viewConfiguration.ToolbarLabels,undoRedoLocation:this.viewConfiguration.UndoRedoLocation}),c.createElement("div",{className:"charticulator__panel-editor-panel charticulator__panel-editor-panel-chart"},c.createElement(A.ErrorBoundary,{telemetryRecorder:e.props.telemetry},c.createElement(p.ChartEditorView,{store:e.props.store}))),this.viewConfiguration.ToolbarPosition==s.Right&&t({layout:l.Vertical,toolbarLabels:this.viewConfiguration.ToolbarLabels,undoRedoLocation:this.viewConfiguration.UndoRedoLocation}),this.viewConfiguration.EditorPanelsPosition==a.Right&&r())),this.viewConfiguration.ColumnsPosition==a.Right&&n()),c.createElement("div",{className:"charticulator__floating-panels"},this.state.glyphViewMaximized?c.createElement(A.FloatingPanel,{peerGroup:"panels",title:y.strings.mainView.glyphPaneltitle,onClose:function(){return e.setState({glyphViewMaximized:!1})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(p.MarkEditorView,null))):null,this.state.layersViewMaximized?c.createElement(A.FloatingPanel,{scroll:!0,peerGroup:"panels",title:y.strings.mainView.layersPanelTitle,onClose:function(){return e.setState({layersViewMaximized:!1})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(f.ObjectListEditor,null))):null,this.state.attributeViewMaximized?c.createElement(A.FloatingPanel,{scroll:!0,peerGroup:"panels",title:y.strings.mainView.attributesPaneltitle,onClose:function(){return e.setState({attributeViewMaximized:!1})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(p.AttributePanel,{store:this.props.store})),c.createElement(d.PopupContainer,{controller:u.popupController})):null,this.props.store.messageState.size?c.createElement("div",{className:"charticulator__floating-panels_errors"},c.createElement(A.FloatingPanel,{floatInCenter:!0,scroll:!0,peerGroup:"messages",title:y.strings.mainView.errorsPanelTitle,closeButtonIcon:"ChromeClose",height:200,width:350},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(A.MessagePanel,{store:this.props.store})))):null,this.state.scaleViewMaximized?c.createElement(A.FloatingPanel,{scroll:!0,peerGroup:"panels",title:y.strings.mainView.scalesPanelTitle,onClose:function(){return e.setState({scaleViewMaximized:!1})}},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(m.ScalesPanel,{store:this.props.store}))):null),c.createElement(d.PopupContainer,{controller:u.popupController}),this.props.store.messageState.size?c.createElement("div",{className:"charticulator__floating-panels_errors"},c.createElement(A.FloatingPanel,{floatInCenter:!0,scroll:!0,peerGroup:"messages",title:y.strings.mainView.errorsPanelTitle,closeButtonIcon:"general/cross",height:200,width:350},c.createElement(A.ErrorBoundary,{telemetryRecorder:this.props.telemetry},c.createElement(A.MessagePanel,{store:this.props.store})))):null,c.createElement(d.DragStateView,{controller:u.dragController}))))},t.childContextTypes={store:function(e){return e instanceof g.AppStore}},t}(c.Component);t.MainView=E},function(e,t,n){"use strict";function r(e,t){return void 0!==e[t]&&null!==e[t]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(289);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(291);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(96);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartTemplateBuilder=void 0;var a=n(5),s=n(38),l=n(39),c=n(6),u=function(){function e(e,t,n,r){this.chart=e,this.dataset=t,this.manager=n,this.version=r,this.usedColumns={}}return e.prototype.reset=function(){this.template={specification:a.deepClone(this.chart),defaultAttributes:{},tables:[],inference:[],properties:[],version:this.version},this.tableColumns={},this.objectVisited={}},e.prototype.addTable=function(e){Object.prototype.hasOwnProperty.call(this.tableColumns,e)||(this.tableColumns[e]=new Set)},e.prototype.addColumn=function(e,t){null==e&&(e=this.dataset.tables[0].name);var n=a.getByName(this.dataset.tables,e);if(n){var r=a.getByName(n.columns,t);if(r){if(r.metadata.isRaw){var o=n.columns.find((function(e){return e.metadata.rawColumnName===r.name}));Object.prototype.hasOwnProperty.call(this.tableColumns,e)?this.tableColumns[e].add(o.name):this.tableColumns[e]=new Set([o.name])}Object.prototype.hasOwnProperty.call(this.tableColumns,e)?this.tableColumns[e].add(t):this.tableColumns[e]=new Set([t])}}},e.prototype.addColumnsFromExpression=function(e,t,n){var r=this;if(t){(n?a.Expression.parseTextExpression(t):a.Expression.parse(t)).replace((function(t){t instanceof a.Expression.Variable&&r.addColumn(e,t.name)}))}},e.prototype.propertyToString=function(e){var t;return"string"==typeof e||"number"==typeof e?t=e.toString():(t=e.property,e.field&&("string"==typeof e.field||"number"==typeof e.field?t+="."+e.field.toString():t+="."+e.field.join(".")),e.subfield&&("string"==typeof e.subfield||"number"==typeof e.subfield?t+="."+e.subfield.toString():t+="."+e.subfield.join("."))),t},e.prototype.addObject=function(e,t){var n,i,l,u,A,d,g=this;if(!this.objectVisited[t.object._id]){this.objectVisited[t.object._id]=!0;var p=this.template,h=t.getTemplateParameters();if(h&&h.inferences){var f=function(e){var t,n,i,l,u,A;if(e.axis&&m.addColumnsFromExpression(e.dataSource.table,e.axis.expression),e.scale){var d=new Set,h=null,f=null;try{for(var y=(t=void 0,r(a.Prototypes.forEachObject(m.template.specification))),I=y.next();!I.done;I=y.next()){var C=I.value;try{for(var E=(i=void 0,r(a.Prototypes.forEachMapping(C.object.mappings))),b=E.next();!b.done;b=E.next()){var v=o(b.value,2)[1];if(v.type==c.MappingType.scale){var B=v;if(B.scale==e.objectID)if(d.add(B.expression),"glyph"==C.kind||"mark"==C.kind){h=C.glyph.table;try{for(var M=(u=void 0,r(a.Prototypes.forEachObject(m.template.specification))),D=M.next();!D.done;D=M.next()){var x=D.value;if("chart-element"==x.kind&&a.Prototypes.isType(x.object.classID,"plot-segment")&&C.glyph._id===x.chartElement.glyph){f=x.chartElement.groupBy;break}}}catch(e){u={error:e}}finally{try{D&&!D.done&&(A=M.return)&&A.call(M)}finally{if(u)throw u.error}}}else if("chart-element"==C.kind&&a.Prototypes.isType(C.chartElement.classID,"legend.custom"))d.delete(B.expression);else if("chart-element"==C.kind&&a.Prototypes.isType(C.chartElement.classID,"links")){var w=C.object.properties.linkTable,Q=m.dataset.tables[0];h=w&&w.table||Q.name}else h=m.dataset.tables.find((function(e){return e.type===s.TableType.Main})).name}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(l=E.return)&&l.call(E)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}if(0==d.size)return"continue";e.scale.expressions=Array.from(d),e.dataSource||(e.dataSource={table:h,groupBy:f})}if(e.expression&&m.addColumnsFromExpression(e.dataSource.table,e.expression.expression),e.nestedChart){var S=e.nestedChart;Object.keys(S.columnNameMap).forEach((function(t){g.addColumn(e.dataSource.table,t)}))}if(e.axis){var N=a.Prototypes.findObjectById(m.chart,e.objectID);"undefined"!==N.properties[e.axis.property].autoDomainMin&&(e.autoDomainMin=N.properties[e.axis.property].autoDomainMin),"undefined"!==N.properties[e.axis.property].autoDomainMax&&(e.autoDomainMax=N.properties[e.axis.property].autoDomainMax),void 0===e.autoDomainMax&&(e.autoDomainMax=!0),void 0===e.autoDomainMax&&(e.autoDomainMax=!0)}p.inference.push(e)},m=this;try{for(var y=r(h.inferences),I=y.next();!I.done;I=y.next()){f(I.value)}}catch(e){n={error:e}}finally{try{I&&!I.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}}if(h&&h.properties)try{for(var C=r(h.properties),E=C.next();!E.done;E=C.next()){var b=E.value,v="";b.target.property?v=this.propertyToString(b.target.property):b.target.attribute&&(v=b.target.attribute),b.displayName=t.object.properties.name+"/"+v,p.properties.push(b)}}catch(e){l={error:e}}finally{try{E&&!E.done&&(u=C.return)&&u.call(C)}finally{if(l)throw l.error}}var B=t.object;if(a.Prototypes.isType(B.classID,"plot-segment")){this.addTable(B.table);var M=B.filter;if(M){var D=M.categories,x=M.expression;x&&this.addColumnsFromExpression(e,x),D&&this.addColumnsFromExpression(e,D.expression)}var w=B.groupBy;w&&w.expression&&this.addColumnsFromExpression(e,w.expression)}try{for(var Q=r(a.Prototypes.forEachMapping(t.object.mappings)),S=Q.next();!S.done;S=Q.next()){var N=o(S.value,2)[1];if(N.type==c.MappingType.scale){var k=N;this.addColumnsFromExpression(k.table,k.expression)}if(N.type==c.MappingType.text){var T=N;this.addColumnsFromExpression(T.table,T.textExpression,!0)}}}catch(e){A={error:e}}finally{try{S&&!S.done&&(d=Q.return)&&d.call(Q)}finally{if(A)throw A.error}}}},e.prototype.build=function(){var e,t,n,u,A,d,g,p,h,f,m=this;this.reset();var y=this.template,I=function(e){var t,n,o,i,l,c,u=null;a.Prototypes.isType(e.object.classID,"plot-segment")&&(u=e.object.table);if(a.Prototypes.isType(e.object.classID,"links")){if(a.Prototypes.isType(e.object.classID,"links.through")){var A=e.object.properties.linkThrough.facetExpressions,d=C.dataset.tables.find((function(e){return e.type===s.TableType.Main}));C.addTable(d.name);try{for(var g=(t=void 0,r(A)),p=g.next();!p.done;p=g.next()){var h=p.value;C.addColumn(d.name,h)}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}}var f=e.object.properties.linkTable;if(f){var y=f.table;C.addTable(y),C.dataset.tables.find((function(e){return e.name===y})).columns.forEach((function(e){return m.addColumn(y,e.name)}));var I=C.dataset.tables[0],E=I&&I.columns.find((function(e){return"id"===e.name}));E&&C.addColumn(I.name,E.name)}}if(C.addObject(u,e),a.Prototypes.isType(e.object.classID,"plot-segment")){var b=e.state;try{for(var v=(o=void 0,r(b.glyphs)),B=v.next();!B.done;B=v.next()){var M=B.value;C.addObject(u,C.manager.getClass(M));try{for(var D=(l=void 0,r(M.marks)),x=D.next();!x.done;x=D.next()){var w=x.value;C.addObject(u,C.manager.getClass(w))}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}break}}catch(e){o={error:e}}finally{try{B&&!B.done&&(i=v.return)&&i.call(v)}finally{if(o)throw o.error}}}},C=this;try{for(var E=r(this.manager.getElements()),b=E.next();!b.done;b=E.next()){I(b.value)}}catch(t){e={error:t}}finally{try{b&&!b.done&&(t=E.return)&&t.call(E)}finally{if(e)throw e.error}}try{for(var v=r(this.manager.chartState.scales),B=v.next();!B.done;B=v.next()){var M=B.value;this.addObject(null,this.manager.getClass(M))}}catch(e){n={error:e}}finally{try{B&&!B.done&&(u=v.return)&&u.call(v)}finally{if(n)throw n.error}}this.addObject(null,this.manager.getChartClass(this.manager.chartState));try{var D=function(e){var t,n;if(e.kind==l.ObjectItemKind.ChartElement){if(a.Prototypes.isType(e.chartElement.classID,"legend.custom"))(R=e.chartElement.mappings.mappingOptions).expression=x.trackColumnFromExpression(R.expression,R.table);if(a.Prototypes.isType(e.chartElement.classID,"plot-segment")){var u=e.chartElement,A=u.table,d=u.filter;d&&d.expression&&x.trackColumnFromExpression(d.expression,A);var y=u.groupBy;y&&y.expression&&x.trackColumnFromExpression(y.expression,A);var I=null===(O=u.properties.xData)||void 0===O?void 0:O.expression;I&&x.trackColumnFromExpression(I,A);var C=null===(g=u.properties.yData)||void 0===g?void 0:g.expression;C&&x.trackColumnFromExpression(C,A);var E=null===(p=u.properties.axis)||void 0===p?void 0:p.expression;E&&x.trackColumnFromExpression(E,A);var b=null===(f=null===(h=u.properties.sublayout)||void 0===h?void 0:h.order)||void 0===f?void 0:f.expression;b&&x.trackColumnFromExpression(b,A)}if(a.Prototypes.isType(e.chartElement.classID,"links")){if("links.through"==e.chartElement.classID){var v=e.chartElement.properties;v.linkThrough.facetExpressions&&(v.linkThrough.facetExpressions=v.linkThrough.facetExpressions.map((function(e){return m.trackColumnFromExpression(e,a.getById(m.template.specification.elements,v.linkThrough.plotSegment).table)})))}if("links.table"==e.chartElement.classID){var B=e.chartElement.properties;x.usedColumns[B.linkTable.table]||x.trackTable(B.linkTable.table)}}}if("glyph"==e.kind&&(x.usedColumns[e.glyph.table]||x.trackTable(e.glyph.table)),e.kind===l.ObjectItemKind.Mark){if(a.Prototypes.isType(e.mark.classID,"mark.nested-chart")){var M=e.mark,D=Object.keys(M.properties.columnNameMap),w=x.usedColumns[x.manager.dataset.tables.find((function(e){return e.type===s.TableType.Main})).name];D.forEach((function(e){return w[e]=e}))}if(a.Prototypes.isType(e.mark.classID,"mark.data-axis"))try{var Q=e.glyph._id,S=i(l.forEachObject(x.manager.chart)).find((function(e){return e.kind==l.ObjectItemKind.ChartElement&&a.Prototypes.isType(e.chartElement.classID,"plot-segment")&&e.chartElement.glyph===Q})),N=e.mark.properties.dataExpressions,k=S.chartElement.table;N.forEach((function(e){e.expression=m.trackColumnFromExpression(e.expression,k)}))}catch(e){console.error(e)}}var T=e.object.mappings;try{for(var j=(t=void 0,r(l.forEachMapping(T))),L=j.next();!L.done;L=j.next()){var R,O=o(L.value,2),_=O[1];if(_.type==c.MappingType.scale)(R=_).expression=x.trackColumnFromExpression(R.expression,R.table),x.usedColumns[R.table]||x.trackTable(R.table);if(_.type==c.MappingType.text){var F=_;x.usedColumns[F.table]||x.trackTable(F.table),F.textExpression=x.trackColumnFromExpression(F.textExpression,F.table,!0)}}}catch(e){t={error:e}}finally{try{L&&!L.done&&(n=j.return)&&n.call(j)}finally{if(t)throw t.error}}},x=this;try{for(var w=r(l.forEachObject(this.manager.chart)),Q=w.next();!Q.done;Q=w.next()){D(Q.value)}}catch(e){A={error:e}}finally{try{Q&&!Q.done&&(d=w.return)&&d.call(w)}finally{if(A)throw A.error}}}catch(e){console.error(e)}var S=0===Object.keys(this.usedColumns).length;return y.tables=this.dataset.tables.map((function(e){return Object.prototype.hasOwnProperty.call(m.tableColumns,e.name)&&(m.usedColumns[e.name]||S)?{name:e.name,type:e.type,columns:e.columns.filter((function(t){var n;return m.tableColumns[e.name].has(t.name)&&(null===(n=m.usedColumns[e.name])||void 0===n?void 0:n[t.name])||a.isReservedColumnName(t.name)})).map((function(e){return{displayName:e.displayName||e.name,name:e.name,type:e.type,metadata:e.metadata}}))}:null})).filter((function(e){return null!=e})),this.computeDefaultAttributes(),y},e.prototype.trackColumnFromExpression=function(e,t,n){return void 0===n&&(n=!1),n?a.Expression.parseTextExpression(e).replace(a.Expression.variableReplacer(this.trackTable(t))).toString():a.Expression.parse(e).replace(a.Expression.variableReplacer(this.trackTable(t))).toString()},e.prototype.trackTable=function(e){var t=this;return this.usedColumns[e]||(this.usedColumns[e]={hasOwnProperty:function(n){return t.usedColumns[e][n]=n,!0}}),this.usedColumns[e]},e.prototype.computeDefaultAttributes=function(){var e=this,t={};this.manager.enumerateClassesByType("mark",(function(n,r){var o=n.object._id,i=e.template.defaultAttributes[o]=e.template.defaultAttributes[o]||{};Object.keys(r.attributes).forEach((function(e){n.attributes[e]&&"number"===n.attributes[e].type&&(i[e]=i[e]||0,i[e]+=r.attributes[e]||0,t[o]=(t[o]||0)+1)}))})),Object.keys(this.template.defaultAttributes).forEach((function(n){var r=e.template.defaultAttributes[n];Object.keys(r).forEach((function(e){r[e]=r[e]/t[n]}))}))},e}();t.ChartTemplateBuilder=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartComponent=void 0;var l=n(0),c=n(5),u=n(69),A=n(6),d=function(e){function t(t){var n=e.call(this,t)||this;return n.recreateManager(t),n.updateWithNewProps(t),t.sync?(n.manager.solveConstraints(),n.state={working:!1,graphics:n.renderer.render()}):(n.state={working:!0,graphics:null},n.scheduleUpdate()),n}return o(t,e),t.prototype.applySelection=function(e){this.manager.enumeratePlotSegments((function(t){var n,r;try{for(var o=a(c.zip(t.state.dataRowIndices,t.state.glyphs)),i=o.next();!i.done;i=o.next()){var l=s(i.value,2),u=l[0],A=l[1];A.emphasized=null==e||e.isSelected(t.object.table,u)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}))},t.prototype.componentWillReceiveProps=function(e){var t=this;this.updateWithNewProps(e)?(setTimeout((function(){return t.setState({working:!0})})),this.scheduleUpdate()):e.selection!=this.props.selection?(this.applySelection(e.selection),setTimeout((function(){return t.setState({graphics:t.renderer.render()})}))):setTimeout((function(){var t;(null===(t=e.renderEvents)||void 0===t?void 0:t.afterRendered)&&e.renderEvents.afterRendered()}))},t.prototype.isEqual=function(e,t){return e==t||JSON.stringify(e)==JSON.stringify(t)},t.prototype.updateWithNewProps=function(e){var t=!1;return this.isEqual(e.chart,this.props.chart)?this.isEqual(e.dataset,this.props.dataset)?this.isEqual(e.defaultAttributes,this.props.defaultAttributes)||(this.recreateManager(e),t=!0):(this.manager.setDataset(e.dataset),t=!0):(this.recreateManager(e),t=!0),this.manager.chart.mappings.width&&e.width==this.manager.chart.mappings.width.value||(this.manager.chart.mappings.width={type:A.MappingType.value,value:e.width},t=!0),this.manager.chart.mappings.height&&e.height==this.manager.chart.mappings.height.value||(this.manager.chart.mappings.height={type:A.MappingType.value,value:e.height},t=!0),t},t.prototype.recreateManager=function(e){var t=this;this.manager=new c.Prototypes.ChartStateManager(c.deepClone(e.chart),e.dataset,null,e.defaultAttributes),this.renderer=new c.Graphics.ChartRenderer(this.manager,e.renderEvents),this.manager.onUpdate((function(){t.manager.solveConstraints(),t.setState({graphics:t.renderer.render()}),t.scheduleUpdate()}))},t.prototype.scheduleUpdate=function(){var e=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){e.timer=null,e.manager.solveConstraints(),e.applySelection(e.props.selection),e.setState({working:!1,graphics:e.renderer.render()})}),10)},t.prototype.getProperty=function(e,t){var n=c.Prototypes.findObjectById(this.manager.chart,e);return n?c.Prototypes.getProperty(n,t):null},t.prototype.setProperty=function(e,t,n){var r=c.Prototypes.findObjectById(this.manager.chart,e);r&&(this.isEqual(c.Prototypes.getProperty(r,t),n)||(c.Prototypes.setProperty(r,t,c.deepClone(n)),this.setState({working:!0}),this.scheduleUpdate()))},t.prototype.getAttributeMapping=function(e,t){var n=c.Prototypes.findObjectById(this.manager.chart,e);return n?n.mappings[t]:null},t.prototype.setAttributeMapping=function(e,t,n){var r=c.Prototypes.findObjectById(this.manager.chart,e);r&&(this.isEqual(r.mappings[t],n)||(r.mappings[t]=c.deepClone(n),this.setState({working:!0}),this.scheduleUpdate()))},t.prototype.convertGlyphEventHandler=function(e){return null==e?null:function(t,n){var r,o=t.rowIndices,i={ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey,clientX:n.clientX,clientY:n.clientY,event:n};e({table:null===(r=t.plotSegment)||void 0===r?void 0:r.table,rowIndices:o},i)}},t.prototype.render=function(){var e=this,t=i({},this.props.rendererOptions);t.onClick=this.convertGlyphEventHandler(this.props.onGlyphClick),t.onMouseEnter=this.convertGlyphEventHandler(this.props.onGlyphMouseEnter),t.onMouseLeave=this.convertGlyphEventHandler(this.props.onGlyphMouseLeave),t.onContextMenu=this.convertGlyphEventHandler(this.props.onGlyphContextMenuClick),t.selection=this.props.selection;var n=u.renderGraphicalElementSVG(this.state.graphics,t),r=l.createElement(l.Fragment,null,l.createElement("defs",null,u.renderSVGDefs(this.state.graphics)),l.createElement("g",{transform:"translate("+this.props.width/2+", "+this.props.height/2+")"},this.props.onGlyphClick?l.createElement("rect",{x:-this.props.width/2,y:-this.props.height/2,width:this.props.width,height:this.props.height,style:{fill:"none",pointerEvents:"all",stroke:"none"},onClick:function(){e.props.onGlyphClick(null,null)}}):null,n,this.renderer.renderControls(this.manager.chart,this.manager.chartState,{centerX:0,centerY:0,scale:1}),this.state.working?l.createElement("rect",{x:-this.props.width/2,y:-this.props.height/2,width:this.props.width,height:this.props.height,style:{fill:"rgba(0, 0, 0, 0.1)",stroke:"none"}}):null));switch(this.props.rootElement){case"svg":return l.createElement("svg",{x:0,y:0,width:this.props.width,height:this.props.height,className:this.props.className,style:{userSelect:"none"}},r);case"g":return l.createElement("g",{className:this.props.className},r)}},t}(l.Component);t.ChartComponent=d},function(e,t,n){var r,o=o||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=/constructor/i.test(e.HTMLElement)||e.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},l=function(e){setTimeout((function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()}),4e4)},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},u=function(t,u,A){A||(t=c(t));var d,g=this,p="application/octet-stream"===t.type,h=function(){!function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){s(e)}}}(g,"writestart progress write writeend".split(" "))};if(g.readyState=g.INIT,o)return d=n().createObjectURL(t),void setTimeout((function(){var e,t;r.href=d,r.download=u,e=r,t=new MouseEvent("click"),e.dispatchEvent(t),h(),l(d),g.readyState=g.DONE}));!function(){if((a||p&&i)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,g.readyState=g.DONE,h()},r.readAsDataURL(t),void(g.readyState=g.INIT)}(d||(d=n().createObjectURL(t)),p)?e.location.href=d:e.open(d,"_blank")||(e.location.href=d);g.readyState=g.DONE,h(),l(d)}()},A=u.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(A.abort=function(){},A.readyState=A.INIT=0,A.WRITING=1,A.DONE=2,A.error=A.onwritestart=A.onprogress=A.onwrite=A.onabort=A.onerror=A.onwriteend=null,function(e,t,n){return new u(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=o:null!==n(546)&&null!==n(547)&&(void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.Migrator=void 0;var a=n(5),s=n(38),l=n(548),c=n(6),u=n(39),A=n(9),d=n(24),g=n(214),p=n(165),h=n(118),f=n(210),m=n(42),y=n(119),I=function(){function e(){}return e.prototype.migrate=function(e,t){if(e.version||(e.version="1.0.0"),a.compareVersion(e.version,"1.3.0")<0&&a.compareVersion(t,"1.3.0")>=0){var n=e;e={version:n.version,dataset:n.dataset.dataset,chart:n.chart.chart,chartState:n.chart.chartState}}return a.compareVersion(e.version,"1.1.0")<0&&a.compareVersion(t,"1.1.0")>=0&&(e=this.fixDataRowIndices(e),e=this.fixDataMappingExpressions(e)),a.compareVersion(e.version,"1.4.0")<0&&a.compareVersion(t,"1.4.0")>=0&&(e=this.fixLinkOrder_v130(e)),a.compareVersion(e.version,"1.5.0")<0&&a.compareVersion(t,"1.5.0")>=0&&(e=this.addScaleMappings(e)),a.compareVersion(e.version,"1.5.1")<0&&a.compareVersion(t,"1.5.1")>=0&&(e=this.addTableTypes(e)),a.compareVersion(e.version,"1.6.0")<0&&a.compareVersion(t,"1.6.0")>=0&&(e=this.addOriginDataSet(e)),a.compareVersion(e.version,"1.7.0")<0&&a.compareVersion(t,"1.7.0")>=0&&(e=this.addInteractivityProperties(e),e=l.upgradeGuidesToBaseline(e)),a.compareVersion(e.version,"1.8.0")<0&&a.compareVersion(t,"1.8.0")>=0&&(e=this.setValueToLayoutPropertyOfLegend(e)),a.compareVersion(e.version,"2.0.0")<0&&a.compareVersion(t,"2.0.0")>=0&&(e=this.setValueItemShapeOfLegend(e)),a.compareVersion(e.version,"2.0.1")<0&&a.compareVersion(t,"2.0.1")>=0&&(e=this.setPolarAngularLegend(e)),a.compareVersion(e.version,"2.0.2")<0&&a.compareVersion(t,"2.0.2")>=0&&(e=this.setAllowFlipToMarks(e)),a.compareVersion(e.version,"2.0.4")<0&&a.compareVersion(t,"2.0.4")>=0&&(e=this.setMissedProperties(e)),a.compareVersion(e.version,"2.1.0")<0&&a.compareVersion(t,"2.1.0")>=0&&(e=this.setMissedGlyphRectProperties(e)),a.compareVersion(e.version,"2.1.1")<0&&a.compareVersion(t,"2.1.1")>=0&&(e=this.setMissedSortProperties(e)),a.compareVersion(e.version,"2.1.2")<0&&a.compareVersion(t,"2.1.2")>=0&&(e=this.setMissedSortProperties(e)),a.compareVersion(e.version,"2.1.5")<0&&a.compareVersion(t,"2.1.5")>=0&&(e=this.setMissedLegendProperties(e)),a.compareVersion(e.version,"2.1.6")<0&&a.compareVersion(t,"2.1.6")>=0&&(e=this.setMissedProperties_2_1_6(e)),e.version=t,e},e.prototype.addInteractivityProperties=function(e){var t,n,r,i,a,s;try{for(var l=o(e.chart.elements),c=l.next();!c.done;c=l.next()){(h=c.value).properties.enableTooltips=!0,h.properties.enableSelection=!0,h.properties.enableContextMenu=!0}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}try{for(var u=o(e.chart.glyphs),A=u.next();!A.done;A=u.next()){var d=A.value;try{for(var g=(a=void 0,o(d.marks)),p=g.next();!p.done;p=g.next()){var h;(h=p.value).properties.enableTooltips=!0,h.properties.enableSelection=!0,h.properties.enableContextMenu=!0}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}}catch(e){r={error:e}}finally{try{A&&!A.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return e},e.prototype.addOriginDataSet=function(e){return e.originDataset=a.deepClone(e.dataset),e},e.prototype.addScaleMappings=function(e){return e.chart.scaleMappings=[],e},e.prototype.addTableTypes=function(e){return e.dataset.tables[0].type=s.TableType.Main,e.dataset.tables[1]&&(e.dataset.tables[1].type=s.TableType.Links),e},e.prototype.fixDataRowIndices=function(e){var t,n;try{for(var r=o(a.zip(e.chart.elements,e.chartState.elements)),s=r.next();!s.done;s=r.next()){var l=i(s.value,2),c=l[0],u=l[1];if(a.Prototypes.isType(c.classID,"plot-segment")){var A=u;A.dataRowIndices=A.dataRowIndices.map((function(e){return[e]}))}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},e.prototype.addAggregationToExpression=function(e,t){return"number"==t?"avg("+e+")":"first("+e+")"},e.prototype.fixAxisDataMapping=function(e){e&&(e.expression=this.addAggregationToExpression(e.expression,e.valueType))},e.prototype.fixDataMappingExpressions=function(e){var t,n,r,s,l,u,A,d,g,p,h=this;try{for(var f=o(a.zip(e.chart.elements,e.chartState.elements)),m=f.next();!m.done;m=f.next()){var y=i(m.value,1)[0];if(a.Prototypes.isType(y.classID,"plot-segment")){var I=y;if(this.fixAxisDataMapping(I.properties.xData),this.fixAxisDataMapping(I.properties.yData),I.properties.sublayout){var C=I.properties.sublayout;if(C.order){var E=a.Expression.parse(C.order),b=null;if(E instanceof a.Expression.FunctionCall&&"sortBy"==E.name&&E.args[0]instanceof a.Expression.LambdaFunction){var v=E.args[0];if(v.expr instanceof a.Expression.FieldAccess){var B=v.expr.fields[0];b=a.Expression.functionCall("first",a.Expression.variable(B)).toString()}}b&&(C.order={expression:b})}}if(I.filter&&I.filter.categories.column){B=I.filter.categories.column;delete I.filter.categories.column,I.filter.categories.expression=a.Expression.variable(B).toString()}}}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var M=o(e.chart.glyphs),D=M.next();!D.done;D=M.next()){var x=D.value;try{for(var w=(l=void 0,o(x.marks)),Q=w.next();!Q.done;Q=w.next()){var S=Q.value;for(var N in S.mappings)if(Object.prototype.hasOwnProperty.call(S.mappings,N)){var k=S.mappings[N];if(k.type==c.MappingType.scale){var T=k;T.expression=this.addAggregationToExpression(T.expression,T.valueType)}k.type!=c.MappingType.scale&&k.type!=c.MappingType.text||(k.table=x.table)}}}catch(e){l={error:e}}finally{try{Q&&!Q.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}}}catch(e){r={error:e}}finally{try{D&&!D.done&&(s=M.return)&&s.call(M)}finally{if(r)throw r.error}}try{for(var j=o(e.chart.glyphs),L=j.next();!L.done;L=j.next()){x=L.value;var R=function(e){if(a.Prototypes.isType(e.classID,"mark.data-axis")){var t=e.properties,n=t.axis.valueType;t.axis.expression=O.addAggregationToExpression(t.axis.expression,n),t.dataExpressions&&(t.dataExpressions=t.dataExpressions.map((function(e,t){return{name:t.toString(),expression:h.addAggregationToExpression(e,n)}})))}},O=this;try{for(var _=(g=void 0,o(x.marks)),F=_.next();!F.done;F=_.next()){R(S=F.value)}}catch(e){g={error:e}}finally{try{F&&!F.done&&(p=_.return)&&p.call(_)}finally{if(g)throw g.error}}}}catch(e){A={error:e}}finally{try{L&&!L.done&&(d=j.return)&&d.call(j)}finally{if(A)throw A.error}}return e},e.prototype.fixLinkOrder_v130=function(e){for(var t=[],n=[],r=0;r<e.chart.elements.length;r++)a.Prototypes.isType(e.chart.elements[r].classID,"links")?t.push(r):n.push(r);var o=t.concat(n);return e.chart.elements=o.map((function(t){return e.chart.elements[t]})),e.chartState.elements=o.map((function(t){return e.chartState.elements[t]})),e},e.prototype.setValueToLayoutPropertyOfLegend=function(e){var t,n;try{for(var r=o(e.chart.elements),i=r.next();!i.done;i=r.next()){var s=i.value;if(a.Prototypes.isType(s.classID,"legend.categorical")||a.Prototypes.isType(s.classID,"legend.custom")){var l=s;void 0===l.properties.orientation&&(l.properties.orientation="vertical")}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},e.prototype.setValueItemShapeOfLegend=function(e){var t,n;try{for(var r=o(e.chart.elements),i=r.next();!i.done;i=r.next()){var s=i.value;if(a.Prototypes.isType(s.classID,"legend")){var l=s;void 0===l.properties.markerShape&&(l.properties.markerShape="circle")}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},e.prototype.setPolarAngularLegend=function(e){for(var t=0;t<e.chart.elements.length;t++){var n=e.chart.elements[t];if(a.Prototypes.isType(n.classID,"legend")){var r=e.chartState.elements[t].attributes;r.cx=0,r.cy=0,r.radius=0,r.startAngle=0,r.endAngle=0}}return e},e.prototype.updateAxis=function(e){return r(r({},e),{side:A.replaceUndefinedByNull(e.side),type:A.replaceUndefinedByNull(e.type),visible:A.replaceUndefinedByNull(e.visible),autoDomainMax:A.replaceUndefinedByNull(e.autoDomainMax),autoDomainMin:A.replaceUndefinedByNull(e.autoDomainMin),orderMode:A.replaceUndefinedByNull(e.orderMode),style:A.replaceUndefinedByNull(e.style),categories:A.replaceUndefinedByNull(e.categories),dataKind:A.replaceUndefinedByNull(e.dataKind),domainMax:A.replaceUndefinedByNull(e.domainMax),domainMin:A.replaceUndefinedByNull(e.domainMin),enablePrePostGap:A.replaceUndefinedByNull(e.enablePrePostGap),expression:A.replaceUndefinedByNull(e.expression),gapRatio:A.replaceUndefinedByNull(e.gapRatio),numericalMode:A.replaceUndefinedByNull(e.numericalMode),order:A.replaceUndefinedByNull(e.order),rawExpression:A.replaceUndefinedByNull(e.rawExpression),tickDataExpression:A.replaceUndefinedByNull(e.tickDataExpression),tickFormat:A.replaceUndefinedByNull(e.tickFormat),valueType:A.replaceUndefinedByNull(e.valueType),allowScrolling:A.replaceUndefinedByNull(e.allowScrolling),windowSize:A.replaceUndefinedByNull(e.windowSize),barOffset:A.replaceUndefinedByNull(e.barOffset),offset:A.replaceUndefinedByNull(e.offset),tickFormatType:A.replaceUndefinedByNull(e.tickFormatType),numberOfTicks:A.replaceUndefinedByNull(e.numberOfTicks),autoNumberOfTicks:A.replaceUndefinedByNull(e.autoNumberOfTicks)})},e.prototype.setMissedProperties=function(e){var t,n;try{for(var r=o(u.forEachObject(e.chart)),i=r.next();!i.done;i=r.next()){var s=i.value;if(s.kind==u.ObjectItemKind.Chart&&(s.object.properties.exposed=!0),s.kind==u.ObjectItemKind.ChartElement){var l;if(a.Prototypes.isType(s.chartElement.classID,"plot-segment.cartesian"))(l=s.chartElement).properties.xData&&(l.properties.xData=this.updateAxis(l.properties.xData),void 0===l.properties.xData&&(l.properties.xData=null)),l.properties.yData&&(l.properties.yData=this.updateAxis(l.properties.yData),void 0===l.properties.yData&&(l.properties.yData=null));if(a.Prototypes.isType(s.chartElement.classID,"plot-segment.polar"))(l=s.chartElement).properties.xData&&(l.properties.xData=this.updateAxis(l.properties.xData)),void 0===l.properties.xData&&(l.properties.xData=null),l.properties.yData&&(l.properties.yData=this.updateAxis(l.properties.yData)),void 0===l.properties.yData&&(l.properties.yData=null);if(a.Prototypes.isType(s.chartElement.classID,"plot-segment.line"))(l=s.chartElement).properties.axis&&(l.properties.axis=this.updateAxis(l.properties.axis));if(a.Prototypes.isType(s.chartElement.classID,"plot-segment.curve"))(l=s.chartElement).properties.xData&&(l.properties.xData=this.updateAxis(l.properties.xData)),void 0===l.properties.xData&&(l.properties.xData=null),l.properties.yData&&(l.properties.yData=this.updateAxis(l.properties.yData)),void 0===l.properties.yData&&(l.properties.yData=null);if(a.Prototypes.isType(s.chartElement.classID,"mark.data-axis"))(l=s.chartElement).properties.axis&&(l.properties.axis=this.updateAxis(l.properties.axis)),void 0===l.properties.axis&&(l.properties.axis=null)}if(s.kind==u.ObjectItemKind.Mark)if(a.Prototypes.isType(s.mark.classID,"mark.data-axis"))(l=s.mark).properties.axis&&(l.properties.axis=this.updateAxis(l.properties.axis)),void 0===l.properties.axis&&(l.properties.axis=null)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},e.prototype.setAllowFlipToMarks=function(e){var t,n;try{for(var r=o(u.forEachObject(e.chart)),i=r.next();!i.done;i=r.next()){var s=i.value;"mark"==s.kind&&a.Prototypes.isType(s.mark.classID,"mark.rect")&&(s.mark.properties.allowFlipping=!0)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},e.prototype.setMissedGlyphRectProperties=function(e){var t,n,r,i,s,l,c,A;try{for(var p=o(u.forEachObject(e.chart)),h=p.next();!h.done;h=p.next()){var f=h.value;if(f.kind==u.ObjectItemKind.Mark&&(a.Prototypes.isType(f.mark.classID,"mark.rect")&&(void 0===f.mark.properties.rx&&(f.mark.properties.rx=0),void 0===f.mark.properties.ry&&(f.mark.properties.ry=0)),a.Prototypes.isType(f.mark.classID,"mark.symbol")&&(f.mark.properties.rotation=0)),f.kind==u.ObjectItemKind.ChartElement&&a.Prototypes.isType(f.chartElement.classID,"plot-segment.cartesian")){var m=f.chartElement;m.properties.xData&&(m.properties.xData=this.updateAxis(m.properties.xData),void 0===m.properties.xData&&(m.properties.xData=null),void 0===m.properties.xData.offset&&(m.properties.xData.offset=0),null==m.properties.xData.tickFormatType&&(m.properties.xData.tickFormatType=d.TickFormatType.None),(null===(r=m.properties.xData)||void 0===r?void 0:r.style)&&(m.properties.xData.style.showTicks=null===(i=m.properties.xData.style.showTicks)||void 0===i||i,m.properties.xData.style.showBaseline=null===(s=m.properties.xData.style.showBaseline)||void 0===s||s)),m.properties.yData&&(m.properties.yData=this.updateAxis(m.properties.yData),void 0===m.properties.yData&&(m.properties.yData=null),void 0===m.properties.yData.offset&&(m.properties.yData.offset=0),void 0===m.properties.yData.tickFormatType&&(m.properties.yData.tickFormatType=d.TickFormatType.None),(null===(l=m.properties.yData)||void 0===l?void 0:l.style)&&(m.properties.yData.style.showTicks=null===(c=m.properties.yData.style.showTicks)||void 0===c||c,m.properties.yData.style.showBaseline=null===(A=m.properties.yData.style.showBaseline)||void 0===A||A))}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}var y=e.chart.scales;if(y)for(var I=0;I<y.length;I++)if("scale.linear<number,boolean>"==y[I].classID){var C=y[I].properties;(null==C?void 0:C.mode)&&"interval"===(null==C?void 0:C.mode)&&(C.mode=g.LinearBooleanScaleMode.Between),(null==C?void 0:C.mode)&&"greater"===(null==C?void 0:C.mode)&&((null==C?void 0:C.inclusive)&&"true"==(null==C?void 0:C.inclusive)&&(C.mode=g.LinearBooleanScaleMode.GreaterThanOrEqualTo),(null==C?void 0:C.inclusive)&&"false"==(null==C?void 0:C.inclusive)&&(C.mode=g.LinearBooleanScaleMode.GreaterThan)),(null==C?void 0:C.mode)&&"less"===(null==C?void 0:C.mode)&&((null==C?void 0:C.inclusive)&&"true"==(null==C?void 0:C.inclusive)&&(C.mode=g.LinearBooleanScaleMode.LessThanOrEqualTo),(null==C?void 0:C.inclusive)&&"false"==(null==C?void 0:C.inclusive)&&(C.mode=g.LinearBooleanScaleMode.LessThan))}return e},e.prototype.parseExpression=function(e){try{var t=void 0,n=a.Expression.parse(e);return n instanceof a.Expression.FunctionCall&&(t=null==(t=n.args[0].toString())?void 0:t.split("`").join(""),t=p.parseDerivedColumnsExpression(t)),t}catch(t){return e}},e.prototype.setMissedSortProperties=function(e){var t,n,r,i,s,l,c,A,d,g,p,h,f,m,y,I,C,E,b,v,B,M,D,x,w,Q,S,N;try{for(var k=o(u.forEachObject(e.chart)),T=k.next();!T.done;T=k.next()){var j=T.value;if(j.kind==u.ObjectItemKind.Mark&&(a.Prototypes.isType(j.mark.classID,"mark.rect")&&(void 0===j.mark.properties.rx&&(j.mark.properties.rx=0),void 0===j.mark.properties.ry&&(j.mark.properties.ry=0)),a.Prototypes.isType(j.mark.classID,"mark.symbol")&&(j.mark.properties.rotation=0)),j.kind==u.ObjectItemKind.Chart&&(j.object.properties.exposed=!0),j.kind==u.ObjectItemKind.ChartElement){var L;if(a.Prototypes.isType(j.chartElement.classID,"plot-segment.cartesian"))(L=j.chartElement).properties.xData&&(L.properties.xData=this.updateAxis(L.properties.xData),(null===(r=L.properties.xData)||void 0===r?void 0:r.style)&&(L.properties.xData.style.showTicks=null===(i=L.properties.xData.style.showTicks)||void 0===i||i,L.properties.xData.style.showBaseline=null===(s=L.properties.xData.style.showBaseline)||void 0===s||s),void 0===L.properties.xData.offset&&(L.properties.xData.offset=0),L.properties.xData.barOffset=0,null==L.properties.xData.orderByCategories&&(L.properties.xData.orderByCategories=L.properties.xData.categories),null==L.properties.xData.orderByExpression&&(L.properties.xData.orderByExpression=this.parseExpression(L.properties.xData.expression)),L.properties.xData.enableSelection=!0),void 0===L.properties.xData&&(L.properties.xData=null),L.properties.yData&&(L.properties.yData=this.updateAxis(L.properties.yData),(null===(l=L.properties.yData)||void 0===l?void 0:l.style)&&(L.properties.yData.style.showTicks=null===(c=L.properties.yData.style.showTicks)||void 0===c||c,L.properties.yData.style.showBaseline=null===(A=L.properties.yData.style.showBaseline)||void 0===A||A),void 0===L.properties.yData.offset&&(L.properties.yData.offset=0),L.properties.yData.barOffset=0,null==L.properties.yData.orderByCategories&&(L.properties.yData.orderByCategories=L.properties.yData.categories),null==L.properties.yData.orderByExpression&&(L.properties.yData.orderByExpression=this.parseExpression(L.properties.yData.expression)),L.properties.yData.enableSelection=!0),void 0===L.properties.yData&&(L.properties.yData=null);if(a.Prototypes.isType(j.chartElement.classID,"plot-segment.polar"))(L=j.chartElement).properties.xData&&(L.properties.xData=this.updateAxis(L.properties.xData),(null===(d=L.properties.xData)||void 0===d?void 0:d.style)&&(L.properties.xData.style.showTicks=null===(g=L.properties.xData.style.showTicks)||void 0===g||g,L.properties.xData.style.showBaseline=null===(p=L.properties.xData.style.showBaseline)||void 0===p||p),void 0===L.properties.xData.offset&&(L.properties.xData.offset=0),L.properties.xData.barOffset=0,null==L.properties.xData.orderByCategories&&(L.properties.xData.orderByCategories=L.properties.xData.categories),null==L.properties.xData.orderByExpression&&(L.properties.xData.orderByExpression=this.parseExpression(L.properties.xData.expression)),L.properties.xData.enableSelection=!0),void 0===L.properties.xData&&(L.properties.xData=null),L.properties.yData&&(L.properties.yData=this.updateAxis(L.properties.yData),(null===(h=L.properties.yData)||void 0===h?void 0:h.style)&&(L.properties.yData.style.showTicks=null===(f=L.properties.yData.style.showTicks)||void 0===f||f,L.properties.yData.style.showBaseline=null===(m=L.properties.yData.style.showBaseline)||void 0===m||m),null==L.properties.yData.orderByCategories&&(L.properties.yData.orderByCategories=L.properties.yData.categories),null==L.properties.yData.orderByExpression&&(L.properties.yData.orderByExpression=this.parseExpression(L.properties.yData.expression)),void 0===L.properties.yData.offset&&(L.properties.yData.offset=0),L.properties.yData.barOffset=0,L.properties.yData.enableSelection=!0),void 0===L.properties.yData&&(L.properties.yData=null);if(a.Prototypes.isType(j.chartElement.classID,"plot-segment.line"))(L=j.chartElement).properties.axis&&(L.properties.axis=this.updateAxis(L.properties.axis),(null===(y=L.properties.axis)||void 0===y?void 0:y.style)&&(L.properties.axis.style.showBaseline=null===(I=L.properties.axis.style.showBaseline)||void 0===I||I,L.properties.axis.style.showTicks=null===(C=L.properties.axis.style.showTicks)||void 0===C||C),null==L.properties.axis.orderByCategories&&(L.properties.axis.orderByCategories=L.properties.axis.categories),null==L.properties.axis.orderByExpression&&(L.properties.axis.orderByExpression=this.parseExpression(L.properties.axis.expression)),L.properties.axis.enableSelection=!0,L.properties.axis.barOffset=0);if(a.Prototypes.isType(j.chartElement.classID,"plot-segment.curve"))(L=j.chartElement).properties.xData&&(L.properties.xData=this.updateAxis(L.properties.xData),(null===(E=L.properties.xData)||void 0===E?void 0:E.style)&&(L.properties.xData.style.showTicks=null===(b=L.properties.xData.style.showTicks)||void 0===b||b,L.properties.xData.style.showBaseline=null===(v=L.properties.xData.style.showBaseline)||void 0===v||v),void 0===L.properties.xData.offset&&(L.properties.xData.offset=0),L.properties.xData.barOffset=0,null==L.properties.xData.orderByCategories&&(L.properties.xData.orderByCategories=L.properties.xData.categories),null==L.properties.xData.orderByExpression&&(L.properties.xData.orderByExpression=this.parseExpression(L.properties.xData.expression)),L.properties.xData.enableSelection=!0),void 0===L.properties.xData&&(L.properties.xData=null),L.properties.yData&&(L.properties.yData=this.updateAxis(L.properties.yData),(null===(B=L.properties.yData)||void 0===B?void 0:B.style)&&(L.properties.yData.style.showTicks=null===(M=L.properties.yData.style.showTicks)||void 0===M||M,L.properties.yData.style.showBaseline=null===(D=L.properties.yData.style.showBaseline)||void 0===D||D),null==L.properties.yData.orderByCategories&&(L.properties.yData.orderByCategories=L.properties.yData.categories),null==L.properties.yData.orderByExpression&&(L.properties.yData.orderByExpression=this.parseExpression(L.properties.yData.expression)),void 0===L.properties.yData.offset&&(L.properties.yData.offset=0),L.properties.yData.barOffset=0,L.properties.yData.enableSelection=!0),void 0===L.properties.yData&&(L.properties.yData=null);if(a.Prototypes.isType(j.chartElement.classID,"mark.data-axis"))(L=j.chartElement).properties.axis&&(L.properties.axis=this.updateAxis(L.properties.axis),null==L.properties.axis.orderByCategories&&(L.properties.axis.orderByCategories=L.properties.axis.categories),null==L.properties.axis.orderByExpression&&(L.properties.axis.orderByExpression=this.parseExpression(L.properties.axis.expression)),L.properties.axis.enableSelection=!0,L.properties.axis.barOffset=0,(null===(x=L.properties.axis)||void 0===x?void 0:x.style)&&(L.properties.axis.style.showBaseline=null===(w=L.properties.axis.style.showBaseline)||void 0===w||w,L.properties.axis.style.showTicks=null===(Q=L.properties.axis.style.showTicks)||void 0===Q||Q)),void 0===L.properties.axis&&(L.properties.axis=null)}if(j.kind==u.ObjectItemKind.Mark)if(a.Prototypes.isType(j.mark.classID,"mark.data-axis"))(L=j.mark).properties.axis&&(L.properties.axis=this.updateAxis(L.properties.axis),L.properties.axis.orderByExpression=this.parseExpression(L.properties.axis.expression),L.properties.axis.orderByCategories=L.properties.axis.categories,L.properties.axis.enableSelection=!0,L.properties.axis.style&&(L.properties.axis.style.showBaseline=null===(S=L.properties.axis.style.showBaseline)||void 0===S||S,L.properties.axis.style.showTicks=null===(N=L.properties.axis.style.showTicks)||void 0===N||N)),void 0===L.properties.axis&&(L.properties.axis=null)}}catch(e){t={error:e}}finally{try{T&&!T.done&&(n=k.return)&&n.call(k)}finally{if(t)throw t.error}}return e},e.prototype.setMissedLegendProperties=function(e){var t,n,r,i;try{for(var s=o(e.chart.elements),l=s.next();!l.done;l=s.next()){var c=l.value;if(a.Prototypes.isType(c.classID,"legend.numerical-color")){var A=c;void 0===A.properties.orientation&&(A.properties.orientation=h.OrientationType.VERTICAL),void 0===A.properties.length&&(A.properties.length=f.NumericalColorLegendClass.defaultLegendLength)}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=o(u.forEachObject(e.chart)),g=d.next();!g.done;g=d.next()){var p=g.value;if(p.kind==u.ObjectItemKind.ChartElement){if(a.Prototypes.isType(p.chartElement.classID,"plot-segment.cartesian"))(c=p.chartElement).properties.xData&&(c.properties.xData=this.updateAxis(c.properties.xData),null==c.properties.xData.numberOfTicks&&(c.properties.xData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.xData.autoNumberOfTicks&&(c.properties.xData.autoNumberOfTicks=!0)),c.properties.yData&&(c.properties.yData=this.updateAxis(c.properties.yData),null==c.properties.yData.numberOfTicks&&(c.properties.yData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.yData.autoNumberOfTicks&&(c.properties.yData.autoNumberOfTicks=!0));if(a.Prototypes.isType(p.chartElement.classID,"plot-segment.polar"))(c=p.chartElement).properties.xData&&(c.properties.xData=this.updateAxis(c.properties.xData),null==c.properties.xData.numberOfTicks&&(c.properties.xData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.xData.autoNumberOfTicks&&(c.properties.xData.autoNumberOfTicks=!0)),void 0===c.properties.xData&&(c.properties.xData=null),c.properties.yData&&(c.properties.yData=this.updateAxis(c.properties.yData),null==c.properties.yData.numberOfTicks&&(c.properties.yData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.yData.autoNumberOfTicks&&(c.properties.yData.autoNumberOfTicks=!0)),void 0===c.properties.yData&&(c.properties.yData=null);if(a.Prototypes.isType(p.chartElement.classID,"plot-segment.line"))(c=p.chartElement).properties.axis&&(c.properties.axis=this.updateAxis(c.properties.axis),null==c.properties.axis.numberOfTicks&&(c.properties.axis.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.axis.autoNumberOfTicks&&(c.properties.axis.autoNumberOfTicks=!0));if(a.Prototypes.isType(p.chartElement.classID,"plot-segment.curve"))(c=p.chartElement).properties.xData&&(c.properties.xData=this.updateAxis(c.properties.xData),null==c.properties.xData.numberOfTicks&&(c.properties.xData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.xData.autoNumberOfTicks&&(c.properties.xData.autoNumberOfTicks=!0)),void 0===c.properties.xData&&(c.properties.xData=null),c.properties.yData&&(c.properties.yData=this.updateAxis(c.properties.yData),null==c.properties.yData.numberOfTicks&&(c.properties.yData.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.yData.autoNumberOfTicks&&(c.properties.yData.autoNumberOfTicks=!0)),void 0===c.properties.yData&&(c.properties.yData=null);if(a.Prototypes.isType(p.chartElement.classID,"mark.data-axis"))(c=p.chartElement).properties.axis&&(c.properties.axis=this.updateAxis(c.properties.axis),null==c.properties.axis.numberOfTicks&&(c.properties.axis.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.axis.autoNumberOfTicks&&(c.properties.axis.autoNumberOfTicks=!0)),void 0===c.properties.axis&&(c.properties.axis=null)}if(p.kind==u.ObjectItemKind.Mark)if(a.Prototypes.isType(p.mark.classID,"mark.data-axis"))(c=p.mark).properties.axis&&(null==c.properties.axis.numberOfTicks&&(c.properties.axis.numberOfTicks=m.AxisRenderer.DEFAULT_TICKS_NUMBER),null==c.properties.axis.autoNumberOfTicks&&(c.properties.axis.autoNumberOfTicks=!0)),void 0===c.properties.axis&&(c.properties.axis=null)}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return e},e.prototype.setMissedProperties_2_1_6=function(e){var t,n,r,i;try{for(var s=o(e.chart.elements),l=s.next();!l.done;l=s.next()){var c=l.value;if(a.Prototypes.isType(c.classID,"links")){var A=c;A&&(A.properties.beginArrowType=y.ArrowType.NO_ARROW,A.properties.endArrowType=y.ArrowType.NO_ARROW)}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=o(u.forEachObject(e.chart)),g=d.next();!g.done;g=d.next()){var p=g.value;"mark"==p.kind&&a.Prototypes.isType(p.mark.classID,"mark.rect")&&(p.mark.properties.orientation=h.OrientationType.VERTICAL,p.mark.properties.cometMark=!1)}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return e},e}();t.Migrator=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=void 0;var r=n(5);t.getConfig=function(){return r.getConfig()}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CheckBox=t.UpdownButton=t.Button=void 0;var i=n(0),a=n(13),s=n(14),l=n(9),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("button",{className:l.classNames("charticulator__widget-control-button",["is-active",this.props.active],["has-text",null!=this.props.text],["has-icon",null!=this.props.icon],["is-disabled",this.props.disabled]),title:this.props.title,onClick:function(t){!0!==e.props.disabled&&(t.stopPropagation(),e.props.onClick&&e.props.onClick())}},this.props.icon?i.createElement(s.SVGImageIcon,{url:a.getSVGIcon(this.props.icon)}):null,this.props.text?i.createElement("span",{className:"el-text"},this.props.text):null)},t}(i.Component);t.Button=c,t.UpdownButton=function(e){return i.createElement("span",{className:"charticulator__widget-control-updown-button"},i.createElement("span",{className:"el-part",onClick:function(){return e.onClick("up")}},i.createElement(s.SVGImageIcon,{url:a.getSVGIcon("general/triangle-up")})),i.createElement("span",{className:"el-part",onClick:function(){return e.onClick("down")}},i.createElement(s.SVGImageIcon,{url:a.getSVGIcon("general/triangle-down")})))};var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:l.classNames("charticulator__widget-control-checkbox",["is-active",this.props.value],["is-fill-width",this.props.fillWidth],["has-text",null!=this.props.text]),title:this.props.title,onClick:function(t){t.stopPropagation(),e.props.onChange&&e.props.onChange(!e.props.value)}},i.createElement(s.SVGImageIcon,{url:a.getSVGIcon(this.props.value?"checkbox/checked":"checkbox/empty")}),this.props.text?i.createElement("span",{className:"el-text"},this.props.text):null)},t}(i.Component);t.CheckBox=u},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomGradientButtonsWrapper=t.ColorGradientWrapper=t.ColorCell=t.ColorRowWrapper=t.TabWrapper=t.PalettesWrapper=t.colorTextInputStyles=t.dropdownStyles=t.deleteColorStyles=t.colorPalettesLabelStyles=t.defaultActionButtonsStyles=void 0;var o,i,a,s,l,c,u=n(88);t.defaultActionButtonsStyles={root:{height:24,marginRight:5}},t.colorPalettesLabelStyles={root:{marginLeft:5,display:"inline-block",fontWeight:400,cursor:"pointer"}},t.deleteColorStyles={root:{height:20,width:20,minWidth:"unset",padding:"unset",border:"unset"}},t.dropdownStyles={root:{display:"inline-block",height:24,width:"100%"},dropdown:{height:24},title:{lineHeight:24,height:24,fontWeight:600},caretDown:{lineHeight:24,height:24}},t.colorTextInputStyles={root:{display:"inline-block",height:"unset",marginLeft:5,marginRight:5},fieldGroup:{height:"unset"}},t.PalettesWrapper=u.default.div(o||(o=r(["\n  cursor: pointer;\n\n  &:hover {\n    background-color: #f3f2f1;\n  }\n"],["\n  cursor: pointer;\n\n  &:hover {\n    background-color: #f3f2f1;\n  }\n"]))),t.TabWrapper=u.default.div(i||(i=r(["\n  max-height: 300px;\n  overflow-y: auto;\n"],["\n  max-height: 300px;\n  overflow-y: auto;\n"]))),t.ColorRowWrapper=u.default.div(a||(a=r(["\n  margin-top: 5px;\n  display: flex;\n"],["\n  margin-top: 5px;\n  display: flex;\n"]))),t.ColorCell=u.default.span(s||(s=r(["\n  background: ",";\n  width: 20px;\n  height: 20px;\n  display: inline-block;\n  cursor: pointer;\n  border: 1px solid #8a8886;\n  margin-right: 5px;\n"],["\n  background: ",";\n  width: 20px;\n  height: 20px;\n  display: inline-block;\n  cursor: pointer;\n  border: 1px solid #8a8886;\n  margin-right: 5px;\n"])),(function(e){return e.$color})),t.ColorGradientWrapper=u.default.span(l||(l=r(["\n  width: 50%;\n  cursor: pointer;\n"],["\n  width: 50%;\n  cursor: pointer;\n"]))),t.CustomGradientButtonsWrapper=u.default.div(c||(c=r(["\n  display: flex;\n  margin-top: 10px;\n"],["\n  display: flex;\n  margin-top: 10px;\n"])))},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SnappingSession=void 0;var o=function(){function e(e,t,n,r){switch(this.handle=t,this.threshold=n,this.candidates=[],this.currentCandidates=null,this.findClosestSnappingGuide=r,t.type){case"line":var o=t;this.candidates=e.filter((function(e){return e.guide.type==o.axis||"angular"==e.guide.type||"radial"==e.guide.type||"point"==e.guide.type}));break;case"point":this.candidates=e.filter((function(e){return"x"==e.guide.type||"y"==e.guide.type||"angular"==e.guide.type||"radial"==e.guide.type||"point"==e.guide.type}))}}return e.prototype.giveProrityToPoint=function(e,t){var n,r,o,i,a=null!==(r=null===(n=e.guide)||void 0===n?void 0:n.priority)&&void 0!==r?r:0,s=null!==(i=null===(o=t.guide)||void 0===o?void 0:o.priority)&&void 0!==i?i:0;return a>0||s>0?s-a:"point"===e.guide.type&&"point"!==t.guide.type?-1:"point"===e.guide.type&&"point"===t.guide.type?0:1},e.prototype.handleDrag=function(e){var t,n,o,i,a,s;switch(this.handle.type){case"line":var l=null,c=null,u=null,A=null,d=null,g=null;try{for(var p=r(this.candidates.sort(this.giveProrityToPoint)),h=p.next();!h.done;h=p.next()){var f=(C=h.value).guide;if(this.findClosestSnappingGuide)if("y"==f.type)((v=Math.abs(f.value-e.value))<g||null==g)&&(g=v,d=C);else if("x"==f.type){((b=Math.abs(f.value-e.value))<A||null==A)&&(A=b,u=C)}else{var m=C.guide;(B=Math.abs(m.value-e.value))<this.threshold&&(null==c||B<c-1e-5)&&(c=B,l=C)}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}this.findClosestSnappingGuide?("y"===(null===(a=this.handle)||void 0===a?void 0:a.axis)&&d&&(this.currentCandidates=[d]),"x"===(null===(s=this.handle)||void 0===s?void 0:s.axis)&&u&&(this.currentCandidates=[u])):this.currentCandidates=l?[l]:null;break;case"point":u=null,A=null,d=null,g=null;try{for(var y=r(this.candidates.sort(this.giveProrityToPoint)),I=y.next();!I.done;I=y.next()){var C;f=(C=I.value).guide;if(this.findClosestSnappingGuide){if("point"==C.guide.type){var E=C.guide,b=Math.abs(E.angle-e.x),v=Math.abs(E.radius-e.y);(b<A||null==A)&&(A=b,u=C),(v<g||null==g)&&(g=v,d=C)}else if("y"==f.type){((v=Math.abs(f.value-e.y))<g||null==g)&&(g=v,d=C)}else if("x"==f.type){((b=Math.abs(f.value-e.x))<A||null==A)&&(A=b,u=C)}}else if("point"==C.guide.type){E=C.guide;(B=Math.sqrt((E.angle-e.x)*(E.angle-e.x)+(E.radius-e.y)*(E.radius-e.y)))<this.threshold&&(null==g||B<g-1e-5)&&(g=B,d=C,A=B,u=C)}else if("x"==f.type){(B=Math.abs(f.value-e.x))<this.threshold&&(null==A||B<A-1e-5)&&(A=B,u=C)}else if("y"==f.type){var B;(B=Math.abs(f.value-e.y))<this.threshold&&(null==g||B<g-1e-5)&&(g=B,d=C)}}}catch(e){o={error:e}}finally{try{I&&!I.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}this.currentCandidates=[],u&&this.currentCandidates.push(u),d&&this.currentCandidates.push(d)}},e.prototype.handleEnd=function(e){var t,n,o,i,a=[];try{for(var s=r(this.handle.actions),l=s.next();!l.done;l=s.next()){var c=l.value,u=c.source||"value";if(void 0!==e[u]){var A=e[u];switch(null!=c.minimum&&(A=Math.max(c.minimum,A)),null!=c.maximum&&(A=Math.min(c.maximum,A)),c.type){case"attribute-value-mapping":a.push({type:"value-mapping",attribute:c.attribute,value:A});break;case"property":a.push({type:"property",property:c.property,field:c.field,value:A});break;case"attribute":var d=!1;if("value"==u&&this.currentCandidates&&1==this.currentCandidates.length){var g=this.currentCandidates[0];a.push({type:"snap",attribute:c.attribute,snapElement:g.element,snapAttribute:g.guide.attribute}),d=!0}if("x"==u||"y"==u)try{for(var p=(o=void 0,r(this.currentCandidates.sort(this.giveProrityToPoint))),h=p.next();!h.done;h=p.next()){"point"===(g=h.value).guide.type?("x"==u&&(a.push({type:"snap",attribute:c.attribute,snapElement:g.element,snapAttribute:g.guide.angleAttribute}),d=!0),"y"==u&&(a.push({type:"snap",attribute:c.attribute,snapElement:g.element,snapAttribute:g.guide.radiusAttribute}),d=!0)):u==g.guide.type&&(a.push({type:"snap",attribute:c.attribute,snapElement:g.element,snapAttribute:g.guide.attribute}),d=!0)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}d||a.push({type:"move",attribute:c.attribute,value:A})}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a},e.prototype.getCurrentCandidates=function(){return this.currentCandidates},e}();t.SnappingSession=o},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return D})),n.d(t,"scalePoint",(function(){return w})),n.d(t,"scaleIdentity",(function(){return de})),n.d(t,"scaleLinear",(function(){return Ae})),n.d(t,"scaleLog",(function(){return Ee})),n.d(t,"scaleSymlog",(function(){return Me})),n.d(t,"scaleOrdinal",(function(){return M})),n.d(t,"scaleImplicit",(function(){return B})),n.d(t,"scalePow",(function(){return Se})),n.d(t,"scaleSqrt",(function(){return Ne})),n.d(t,"scaleQuantile",(function(){return ke})),n.d(t,"scaleQuantize",(function(){return Te})),n.d(t,"scaleThreshold",(function(){return je})),n.d(t,"scaleTime",(function(){return et})),n.d(t,"scaleUtc",(function(){return ut})),n.d(t,"scaleSequential",(function(){return gt})),n.d(t,"scaleSequentialLog",(function(){return pt})),n.d(t,"scaleSequentialPow",(function(){return ft})),n.d(t,"scaleSequentialSqrt",(function(){return mt})),n.d(t,"scaleSequentialSymlog",(function(){return ht})),n.d(t,"scaleSequentialQuantile",(function(){return yt})),n.d(t,"scaleDiverging",(function(){return Ct})),n.d(t,"scaleDivergingLog",(function(){return Et})),n.d(t,"scaleDivergingPow",(function(){return vt})),n.d(t,"scaleDivergingSqrt",(function(){return Bt})),n.d(t,"scaleDivergingSymlog",(function(){return bt})),n.d(t,"tickFormat",(function(){return ce}));var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,s=(i.left,a);var l=function(e){return null===e?NaN:+e},c=Array.prototype,u=(c.slice,c.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}),A=Math.sqrt(50),d=Math.sqrt(10),g=Math.sqrt(2),p=function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=h(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i};function h(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=A?10:i>=d?5:i>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=A?10:i>=d?5:i>=g?2:1)}function f(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=A?o*=10:i>=d?o*=5:i>=g&&(o*=2),t<e?-o:o}var m=function(e,t,n){if(null==n&&(n=l),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function y(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function I(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var C=n(79),E=Array.prototype,b=E.map,v=E.slice,B={name:"implicit"};function M(){var e=Object(C.a)(),t=[],n=[],r=B;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==B)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=Object(C.a)();for(var r,i,a=-1,s=n.length;++a<s;)e.has(i=(r=n[a])+"")||e.set(i,t.push(r));return o},o.range=function(e){return arguments.length?(n=v.call(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return M(t,n).unknown(r)},y.apply(o,arguments),o}function D(){var e,t,n=M().unknown(void 0),r=n.domain,o=n.range,i=[0,1],a=!1,s=0,l=0,c=.5;function A(){var n=r().length,A=i[1]<i[0],d=i[A-0],g=i[1-A];e=(g-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(g-d-e*(n-s))*c,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=u(n).map((function(t){return d+e*t}));return o(A?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),A()):r()},n.range=function(e){return arguments.length?(i=[+e[0],+e[1]],A()):i.slice()},n.rangeRound=function(e){return i=[+e[0],+e[1]],a=!0,A()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,A()):a},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),A()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),A()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,A()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),A()):c},n.copy=function(){return D(r(),i).round(a).paddingInner(s).paddingOuter(l).align(c)},y.apply(A(),arguments)}function x(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return x(t())},e}function w(){return x(D.apply(null,arguments).paddingInner(1))}var Q=n(30);function S(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}var N=function(e){return function(){return e}};function k(e,t){return function(n){return e+n*t}}function T(e){return 1==(e=+e)?j:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):N(isNaN(t)?n:t)}}function j(e,t){var n=t-e;return n?k(e,n):N(isNaN(e)?t:e)}var L=function e(t){var n=T(t);function r(e,t){var r=n((e=Object(Q.g)(e)).r,(t=Object(Q.g)(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=j(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function R(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Object(Q.g)(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}R((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return S((n-r/t)*t,a,o,i,s)}})),R((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return S((n-r/t)*t,o,i,a,s)}}));var O=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}};function _(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function F(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=V(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}var z=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},P=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},U=function(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=V(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}},G=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H=new RegExp(G.source,"g");var Y=function(e,t){var n,r,o,i=G.lastIndex=H.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=G.exec(e))&&(r=H.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:P(n,r)})),i=H.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})},V=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?N(t):("number"===r?P:"string"===r?(n=Object(Q.e)(t))?(t=n,L):Y:t instanceof Q.e?L:t instanceof Date?z:_(t)?O:Array.isArray(t)?F:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?U:P)(e,t)},W=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},K=function(e){return+e},Z=[0,1];function J(e){return e}function q(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function X(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function $(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=q(o,r),i=n(a,i)):(r=q(r,o),i=n(i,a)),function(e){return i(r(e))}}function ee(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=q(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=s(e,t,1,r)-1;return i[n](o[n](t))}}function te(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ne(){var e,t,n,r,o,i,a=Z,s=Z,l=V,c=J;function u(){return r=Math.min(a.length,s.length)>2?ee:$,o=i=null,A}function A(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return A.invert=function(n){return c(t((i||(i=r(s,a.map(e),P)))(n)))},A.domain=function(e){return arguments.length?(a=b.call(e,K),c===J||(c=X(a)),u()):a.slice()},A.range=function(e){return arguments.length?(s=v.call(e),u()):s.slice()},A.rangeRound=function(e){return s=v.call(e),l=W,u()},A.clamp=function(e){return arguments.length?(c=e?X(a):J,A):c!==J},A.interpolate=function(e){return arguments.length?(l=e,u()):l},A.unknown=function(e){return arguments.length?(n=e,A):n},function(n,r){return e=n,t=r,u()}}function re(e,t){return ne()(e,t)}var oe=n(91),ie=n(197),ae=n(114),se=n(198),le=n(196),ce=function(e,t,n,r){var o,i=f(e,t,n);switch((r=Object(oe.b)(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=Object(ie.a)(i,a))||(r.precision=o),Object(ae.c)(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Object(se.a)(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Object(le.a)(i))||(r.precision=o-2*("%"===r.type))}return Object(ae.b)(r)};function ue(e){var t=e.domain;return e.ticks=function(e){var n=t();return p(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ce(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=h(s,l,n))>0?r=h(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=h(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function Ae(){var e=re(J,J);return e.copy=function(){return te(e,Ae())},y.apply(e,arguments),ue(e)}function de(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=b.call(t,K),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return de(e).unknown(t)},e=arguments.length?b.call(e,K):[0,1],ue(n)}var ge=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e};function pe(e){return Math.log(e)}function he(e){return Math.exp(e)}function fe(e){return-Math.log(-e)}function me(e){return-Math.exp(-e)}function ye(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ie(e){return function(t){return-e(-t)}}function Ce(e){var t,n,r=e(pe,he),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?ye:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Ie(t),n=Ie(n),e(fe,me)):e(pe,he),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),s=a[0],l=a[a.length-1];(r=l<s)&&(d=s,s=l,l=d);var c,u,A,d=t(s),g=t(l),h=null==e?10:+e,f=[];if(!(i%1)&&g-d<h){if(d=Math.round(d)-1,g=Math.round(g)+1,s>0){for(;d<g;++d)for(u=1,c=n(d);u<i;++u)if(!((A=c*u)<s)){if(A>l)break;f.push(A)}}else for(;d<g;++d)for(u=i-1,c=n(d);u>=1;--u)if(!((A=c*u)<s)){if(A>l)break;f.push(A)}}else f=p(d,g,Math.min(g-d,h)).map(n);return r?f.reverse():f},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Object(ae.b)(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(ge(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Ee(){var e=Ce(ne()).domain([1,10]);return e.copy=function(){return te(e,Ee()).base(e.base())},y.apply(e,arguments),e}function be(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ve(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Be(e){var t=1,n=e(be(t),ve(t));return n.constant=function(n){return arguments.length?e(be(t=+n),ve(t)):t},ue(n)}function Me(){var e=Be(ne());return e.copy=function(){return te(e,Me()).constant(e.constant())},y.apply(e,arguments)}function De(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function we(e){return e<0?-e*e:e*e}function Qe(e){var t=e(J,J),n=1;function r(){return 1===n?e(J,J):.5===n?e(xe,we):e(De(n),De(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},ue(t)}function Se(){var e=Qe(ne());return e.copy=function(){return te(e,Se()).exponent(e.exponent())},y.apply(e,arguments),e}function Ne(){return Se.apply(null,arguments).exponent(.5)}function ke(){var e,t=[],n=[],o=[];function i(){var e=0,r=Math.max(1,n.length);for(o=new Array(r-1);++e<r;)o[e-1]=m(t,e/r);return a}function a(t){return isNaN(t=+t)?e:n[s(o,t)]}return a.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?o[r-1]:t[0],r<o.length?o[r]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,o=0,a=e.length;o<a;++o)null==(n=e[o])||isNaN(n=+n)||t.push(n);return t.sort(r),i()},a.range=function(e){return arguments.length?(n=v.call(e),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return ke().domain(t).range(n).unknown(e)},y.apply(a,arguments)}function Te(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return t<=t?i[s(o,t,0,r)]:e}function l(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],l()):[t,n]},a.range=function(e){return arguments.length?(r=(i=v.call(e)).length-1,l()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Te().domain([t,n]).range(i).unknown(e)},y.apply(ue(a),arguments)}function je(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[s(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=v.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=v.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return je().domain(t).range(n).unknown(e)},y.apply(o,arguments)}var Le=n(110),Re=n(20),Oe=Object(Re.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),_e=Oe,Fe=(Oe.range,n(65)),ze=n(297),Pe=n(21),Ue=Object(Re.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pe.d-e.getMinutes()*Pe.c)}),(function(e,t){e.setTime(+e+t*Pe.b)}),(function(e,t){return(t-e)/Pe.b}),(function(e){return e.getHours()})),Ge=Ue,He=(Ue.range,Object(Re.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pe.d)}),(function(e,t){e.setTime(+e+t*Pe.c)}),(function(e,t){return(t-e)/Pe.c}),(function(e){return e.getMinutes()}))),Ye=He,Ve=(He.range,Object(Re.a)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Pe.d)}),(function(e,t){return(t-e)/Pe.d}),(function(e){return e.getUTCSeconds()}))),We=Ve,Ke=(Ve.range,Object(Re.a)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));Ke.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(Re.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Ke:null};var Ze=Ke,Je=(Ke.range,n(52));function qe(e){return new Date(e)}function Xe(e){return e instanceof Date?+e:+new Date(+e)}function $e(e,t,n,r,i,a,s,l,c){var u=re(J,J),A=u.invert,d=u.domain,g=c(".%L"),p=c(":%S"),h=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),I=c("%b %d"),C=c("%B"),E=c("%Y"),v=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function B(o){return(s(o)<o?g:a(o)<o?p:i(o)<o?h:r(o)<o?m:t(o)<o?n(o)<o?y:I:e(o)<o?C:E)(o)}function M(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(r-n)/t,s=o((function(e){return e[2]})).right(v,a);s===v.length?(i=f(n/31536e6,r/31536e6,t),t=e):s?(i=(s=v[a/v[s-1][2]<v[s][2]/a?s-1:s])[1],t=s[0]):(i=Math.max(f(n,r,t),1),t=l)}return null==i?t:t.every(i)}return u.invert=function(e){return new Date(A(e))},u.domain=function(e){return arguments.length?d(b.call(e,Xe)):d().map(qe)},u.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?B:c(t)},u.nice=function(e,t){var n=d();return(e=M(e,n[0],n[n.length-1],t))?d(ge(n,e)):u},u.copy=function(){return te(u,$e(e,t,n,r,i,a,s,l,c))},u}var et=function(){return y.apply($e(Le.a,_e,Fe.b,ze.a,Ge,Ye,We,Ze,Je.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},tt=n(111),nt=Object(Re.a)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),rt=nt,ot=(nt.range,n(64)),it=n(296),at=Object(Re.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Pe.b)}),(function(e,t){return(t-e)/Pe.b}),(function(e){return e.getUTCHours()})),st=at,lt=(at.range,Object(Re.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Pe.c)}),(function(e,t){return(t-e)/Pe.c}),(function(e){return e.getUTCMinutes()}))),ct=lt,ut=(lt.range,function(){return y.apply($e(tt.a,rt,ot.b,it.a,st,ct,We,Ze,Je.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)});function At(){var e,t,n,r,o,i=0,a=1,s=J,l=!1;function c(t){return isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}return c.domain=function(o){return arguments.length?(e=r(i=+o[0]),t=r(a=+o[1]),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function dt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gt(){var e=ue(At()(J));return e.copy=function(){return dt(e,gt())},I.apply(e,arguments)}function pt(){var e=Ce(At()).domain([1,10]);return e.copy=function(){return dt(e,pt()).base(e.base())},I.apply(e,arguments)}function ht(){var e=Be(At());return e.copy=function(){return dt(e,ht()).constant(e.constant())},I.apply(e,arguments)}function ft(){var e=Qe(At());return e.copy=function(){return dt(e,ft()).exponent(e.exponent())},I.apply(e,arguments)}function mt(){return ft.apply(null,arguments).exponent(.5)}function yt(){var e=[],t=J;function n(n){if(!isNaN(n=+n))return t((s(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var o,i=0,a=t.length;i<a;++i)null==(o=t[i])||isNaN(o=+o)||e.push(o);return e.sort(r),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return yt(t).domain(e)},I.apply(n,arguments)}function It(){var e,t,n,r,o,i,a,s=0,l=.5,c=1,u=J,A=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(e<t?r:o),u(A?Math.max(0,Math.min(1,e)):e))}return d.domain=function(a){return arguments.length?(e=i(s=+a[0]),t=i(l=+a[1]),n=i(c=+a[2]),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),d):[s,l,c]},d.clamp=function(e){return arguments.length?(A=!!e,d):A},d.interpolator=function(e){return arguments.length?(u=e,d):u},d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(l),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),d}}function Ct(){var e=ue(It()(J));return e.copy=function(){return dt(e,Ct())},I.apply(e,arguments)}function Et(){var e=Ce(It()).domain([.1,1,10]);return e.copy=function(){return dt(e,Et()).base(e.base())},I.apply(e,arguments)}function bt(){var e=Be(It());return e.copy=function(){return dt(e,bt()).constant(e.constant())},I.apply(e,arguments)}function vt(){var e=Qe(It());return e.copy=function(){return dt(e,vt()).exponent(e.exponent())},I.apply(e,arguments)}function Bt(){return vt.apply(null,arguments).exponent(.5)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r.a})),n.d(t,"c",(function(){return o.a})),n.d(t,"d",(function(){return i.a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l.a})),n.d(t,"g",(function(){return c.a})),n.d(t,"h",(function(){return u.a})),n.d(t,"i",(function(){return A.a})),n.d(t,"j",(function(){return d.a})),n.d(t,"k",(function(){return a.a})),n.d(t,"l",(function(){return g.a})),n.d(t,"m",(function(){return p.a})),n.d(t,"n",(function(){return h.a})),n.d(t,"a",(function(){return f.a})),n.d(t,"o",(function(){return f.b})),n.d(t,"p",(function(){return m.a}));var r=n(173),o=n(174),i=n(153),a=n(152);function s(e,t){void 0===t&&(t=!0);var n=[];if(e){for(var r=0;r<e.children.length;r++)n.push(e.children.item(r));t&&Object(a.a)(e)&&n.push.apply(n,e._virtual.children)}return n}var l=n(35),c=n(175),u=n(147),A=n(290),d=n(15),g=n(239),p=n(650),h=n(246),f=n(189),m=n(649)},function(e,t,n){"use strict";n.r(t),n.d(t,"color",(function(){return r.e})),n.d(t,"rgb",(function(){return r.g})),n.d(t,"hsl",(function(){return r.f})),n.d(t,"lab",(function(){return A})),n.d(t,"hcl",(function(){return I})),n.d(t,"lch",(function(){return y})),n.d(t,"gray",(function(){return u})),n.d(t,"cubehelix",(function(){return N}));var r=n(30),o=n(41),i=Math.PI/180,a=180/Math.PI,s=6/29,l=3*s*s;function c(e){if(e instanceof d)return new d(e.l,e.a,e.b,e.opacity);if(e instanceof C)return E(e);e instanceof r.b||(e=Object(r.h)(e));var t,n,o=f(e.r),i=f(e.g),a=f(e.b),s=g((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?t=n=s:(t=g((.4360747*o+.3850649*i+.1430804*a)/.96422),n=g((.0139322*o+.0971045*i+.7141733*a)/.82521)),new d(116*s-16,500*(t-s),200*(s-n),e.opacity)}function u(e,t){return new d(e,0,0,null==t?1:t)}function A(e,t,n,r){return 1===arguments.length?c(e):new d(e,t,n,null==r?1:r)}function d(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function g(e){return e>.008856451679035631?Math.pow(e,1/3):e/l+4/29}function p(e){return e>s?e*e*e:l*(e-4/29)}function h(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function f(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function m(e){if(e instanceof C)return new C(e.h,e.c,e.l,e.opacity);if(e instanceof d||(e=c(e)),0===e.a&&0===e.b)return new C(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*a;return new C(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function y(e,t,n,r){return 1===arguments.length?m(e):new C(n,t,e,null==r?1:r)}function I(e,t,n,r){return 1===arguments.length?m(e):new C(e,t,n,null==r?1:r)}function C(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function E(e){if(isNaN(e.h))return new d(e.l,0,0,e.opacity);var t=e.h*i;return new d(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Object(o.a)(d,A,Object(o.b)(r.a,{brighter:function(e){return new d(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new d(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*p(t),e=1*p(e),n=.82521*p(n),new r.b(h(3.1338561*t-1.6168667*e-.4906146*n),h(-.9787684*t+1.9161415*e+.033454*n),h(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Object(o.a)(C,I,Object(o.b)(r.a,{brighter:function(e){return new C(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new C(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return E(this).rgb()}}));var b=-.14861,v=1.78277,B=-.29227,M=-.90649,D=1.97294,x=D*M,w=D*v,Q=v*B-M*b;function S(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);e instanceof r.b||(e=Object(r.h)(e));var t=e.r/255,n=e.g/255,o=e.b/255,i=(Q*o+x*t-w*n)/(Q+x-w),s=o-i,l=(D*(n-i)-B*s)/M,c=Math.sqrt(l*l+s*s)/(D*i*(1-i)),u=c?Math.atan2(l,s)*a-120:NaN;return new k(u<0?u+360:u,c,i,e.opacity)}function N(e,t,n,r){return 1===arguments.length?S(e):new k(e,t,n,null==r?1:r)}function k(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Object(o.a)(k,N,Object(o.b)(r.a,{brighter:function(e){return e=null==e?r.c:Math.pow(r.c,e),new k(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?r.d:Math.pow(r.d,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*i,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(e),a=Math.sin(e);return new r.b(255*(t+n*(b*o+v*a)),255*(t+n*(B*o+M*a)),255*(t+n*(D*o)),this.opacity)}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(0),i=n(188),a=n(129),s=["theme","styles"];function l(e,t,n,l,c){var u=(l=l||{scope:"",fields:void 0}).scope,A=l.fields,d=void 0===A?s:A,g=o.forwardRef((function(s,l){var c=o.useRef(),A=Object(a.a)(d,u),g=A.styles,p=(A.dir,Object(r.d)(A,["styles","dir"])),h=n?n(s):void 0,f=c.current&&c.current.__cachedInputs__||[];if(!c.current||g!==f[1]||s.styles!==f[2]){var m=function(e){return Object(i.a)(e,t,g,s.styles)};m.__cachedInputs__=[t,g,s.styles],m.__noStyleOverride__=!g&&!s.styles,c.current=m}return o.createElement(e,Object(r.a)({ref:l},p,h,s,{styles:c.current}))}));g.displayName="Styled"+(e.displayName||e.name);var p=c?o.memo(g):g;return g.displayName&&(p.displayName=g.displayName),p}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(78);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],i=0,a=t;i<a.length;i++){var s=a[i];s&&o.push("function"==typeof s?s(e):s)}return 1===o.length?o[0]:o.length?r.a.apply(void 0,o):{}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="data-portal-element";function o(e){e.setAttribute(r,"true")}},function(e,t,n){"use strict";var r=n(154),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=g(n);o&&o!==p&&e(t,o,r)}var a=u(n);A&&(a=a.concat(A(n)));for(var s=l(t),h=l(n),f=0;f<a.length;++f){var m=a[f];if(!(i[m]||r&&r[m]||h&&h[m]||s&&s[m])){var y=d(n,m);try{c(t,m,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomNumber=t.prettyNumber=t.Geometry=void 0,function(e){function t(e,t,n,r){return!(t<n||r<e)}e.vectorLength=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.pointDistance=function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},e.vectorNormalize=function(e){var t=Math.sqrt(e.x*e.x+e.y*e.y);return{x:e.x/t,y:e.y/t}},e.vectorRotate90=function(e){return{y:e.x,x:-e.y}},e.vectorRotate=function(e,t){return{x:e.x*Math.cos(t)+e.y*Math.sin(t),y:-e.x*Math.sin(t)+e.y*Math.cos(t)}},e.vectorAdd=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},e.vectorSub=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.vectorMul=function(e,t){return{x:e.x*t.x,y:e.y*t.y}},e.vectorDiv=function(e,t){return{x:e.x/t.x,y:e.y/t.y}},e.vectorScale=function(e,t){return{x:e.x*t,y:e.y*t}},e.vectorDot=function(e,t){return e.x*t.x+e.y*t.y},e.vectorCross=function(e,t){return e.x*t.y-t.x*e.y},e.intervalOverlap=t,e.rectOverlap=function(e,n){return t(Math.min(e.x1,e.x2),Math.max(e.x1,e.x2),Math.min(n.x1,n.x2),Math.max(n.x1,n.x2))&&t(Math.min(e.y1,e.y2),Math.max(e.y1,e.y2),Math.min(n.y1,n.y2),Math.max(n.y1,n.y2))},e.applyZoom=function(e,t){return{x:t.x*e.scale+e.centerX,y:t.y*e.scale+e.centerY}},e.unapplyZoom=function(e,t){return{x:(t.x-e.centerX)/e.scale,y:(t.y-e.centerY)/e.scale}},e.degreesToRadians=function(e){return e/180*Math.PI}}(t.Geometry||(t.Geometry={})),t.prettyNumber=function(e,t){return void 0===t&&(t=8),null==e?void 0:e.toFixed(t).replace(/^([+-]?[0-9]*(\.[0-9]*[1-9]+)?)\.?0+$/,"$1")},t.getRandomNumber=function(){return+(""+Math.random()).slice(2)}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultColorPalette=t.getDefaultColorPaletteByValue=t.getDefaultColorGeneratorResetFunction=t.setDefaultColorGeneratorResetFunction=t.getDefaultColorPaletteGenerator=t.setDefaultColorPaletteGenerator=t.interpolateColors=t.interpolateColor=t.getColorConverter=t.colorToHTMLColorHEX=t.colorToHTMLColor=t.parseColorOrThrowException=t.colorFromHTMLColor=void 0;var o=n(194);function i(e){var t;return(t=e.match(/^ *rgb *\( *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *\) *$/))||(t=e.match(/^ *rgba *\( *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *\) *$/))?{r:+t[1],g:+t[2],b:+t[3]}:(t=e.match(/^ *#([0-9a-fA-F]{3}) *$/))?{r:17*parseInt(t[1][0],16),g:17*parseInt(t[1][1],16),b:17*parseInt(t[1][2],16)}:(t=e.match(/^ *#([0-9a-fA-F]{6}) *$/))?{r:parseInt(t[1].slice(0,2),16),g:parseInt(t[1].slice(2,4),16),b:parseInt(t[1].slice(4,6),16)}:{r:0,g:0,b:0}}function a(e){return e>.008856451679035631?Math.cbrt(e):e/.12841854934601665+.13793103448275862}t.colorFromHTMLColor=i,t.parseColorOrThrowException=function(e){var t;if(t=e.match(/^ *rgb *\( *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *\) *$/))return{r:+t[1],g:+t[2],b:+t[3]};if(t=e.match(/^ *rgba *\( *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *, *([0-9.\-e]+) *\) *$/))return{r:+t[1],g:+t[2],b:+t[3]};if(t=e.match(/^ *#([0-9a-fA-F]{3}) *$/))return{r:17*parseInt(t[1][0],16),g:17*parseInt(t[1][1],16),b:17*parseInt(t[1][2],16)};if(t=e.match(/^ *#([0-9a-fA-F]{6}) *$/))return{r:parseInt(t[1].slice(0,2),16),g:parseInt(t[1].slice(2,4),16),b:parseInt(t[1].slice(4,6),16)};throw new Error("Cant recognize color: "+e)},t.colorToHTMLColor=function(e){return"rgb("+e.r.toFixed(0)+","+e.g.toFixed(0)+","+e.b.toFixed(0)+")"},t.colorToHTMLColorHEX=function(e){var t=function(e){return(256|Math.round(e)).toString(16).substring(1)};return"#"+t(e.r)+t(e.g)+t(e.b)};function s(e,t,n){return[116*a(t/100)-16,500*(a(e/95.047)-a(t/100)),200*(a(t/100)-a(n/108.883))]}function l(e){return e>.20689655172413793?e*e*e:.12841854934601665*(e-.13793103448275862)}function c(e,t,n){return[95.047*l((e+16)/116+t/500),100*l((e+16)/116),108.883*l((e+16)/116-n/200)]}function u(e){return e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e}function A(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function d(e){return e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e}function g(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}var p=new Map,h=new Map;function f(e,t,n){p.set(e,{fromXYZ:t,toXYZ:n})}function m(e,t){var n,o=e+"|"+t;if(h.has(o))return h.get(o);if(e==t)n=function(e,t,n){return[e,t,n]};else if("xyz"==e)n=p.get(t).fromXYZ;else if("xyz"==t)n=p.get(e).toXYZ;else{var i=p.get(e).toXYZ,a=p.get(t).fromXYZ;n=function(e,t,n){var o=r(i(e,t,n),3),s=o[0],l=o[1],c=o[2];return a(s,l,c)}}return h.set(o,n),n}function y(e,t,n){return Math.abs(t-e)>180&&(t>e?t-=360:e-=360),n*(t-e)+e}f("lab",s,c),f("sRGB",(function(e,t,n){var r=-.9689*e+1.8758*t+.0415*n,o=.0557*e+-.204*t+1.057*n,i=255*u((3.2406*e+-1.5372*t+-.4986*n)/100),a=255*u(r/100),s=255*u(o/100),l=i<0||a<0||s<0||i>255||a>255||s>255;return[i=Math.min(255,Math.max(0,i)),a=Math.min(255,Math.max(0,a)),s=Math.min(255,Math.max(0,s)),l]}),(function(e,t,n){var r=A(e/255),o=A(t/255),i=A(n/255);return[100*(.4124*r+.3576*o+.1805*i),100*(.2126*r+.7152*o+.0722*i),100*(.0193*r+.1192*o+.9505*i)]})),f("AppleDisplayP3",(function(e,t,n){var r=-.795168*e+1.689732*t+.022647*n,o=.041242*e+-.087639*t+1.100929*n,i=255*d((2.725394*e+-1.018003*t+-.440163*n)/100),a=255*d(r/100),s=255*d(o/100),l=i<0||a<0||s<0||i>255||a>255||s>255;return[i=Math.min(255,Math.max(0,i)),a=Math.min(255,Math.max(0,a)),s=Math.min(255,Math.max(0,s)),l]}),(function(e,t,n){var r=g(e/255),o=g(t/255),i=g(n/255);return[100*(.44517*r+.277134*o+.172283*i),100*(.209492*r+.721595*o+.068913*i),100*(0*r+.047061*o+.907355*i)]})),f("hcl",(function(e,t,n){var o=r(s(e,t,n),3);return function(e,t,n){var r=Math.sqrt(t*t+n*n),o=Math.atan2(n,t)/Math.PI*180;return[o=(o%360+360)%360,r,e]}(o[0],o[1],o[2])}),(function(e,t,n){var i=r(function(e,t,n){var r=o.Geometry.degreesToRadians(e);return[n,t*Math.cos(r),t*Math.sin(r)]}(e,t,n),3);return c(i[0],i[1],i[2])})),t.getColorConverter=m,t.interpolateColor=function(e,t,n){void 0===n&&(n="lab");var o=m("sRGB",n),i=m(n,"sRGB"),a=o(e.r,e.g,e.b),s=o(t.r,t.g,t.b);return function(e){e=Math.min(1,Math.max(0,e));var t=r(i("hcl"==n?y(a[0],s[0],e):a[0]*(1-e)+s[0]*e,a[1]*(1-e)+s[1]*e,a[2]*(1-e)+s[2]*e),3);return{r:t[0],g:t[1],b:t[2]}}},t.interpolateColors=function(e,t){void 0===t&&(t="lab");var n=m("sRGB",t),o=m(t,"sRGB"),i=e.map((function(e){return n(e.r,e.g,e.b)}));return function(n){var a=(n=Math.min(1,Math.max(0,n)))*(e.length-1),s=Math.floor(a),l=s+1;s=Math.min(e.length-1,Math.max(s,0)),l=Math.min(e.length-1,Math.max(l,0));var c=a-s,u=i[s],A=i[l],d=r(o("hcl"==t?y(u[0],A[0],c):u[0]*(1-c)+A[0]*c,u[1]*(1-c)+A[1]*c,u[2]*(1-c)+A[2]*c),3);return{r:d[0],g:d[1],b:d[2]}}};var I,C=["#7fc97f","#beaed4","#fdc086"].map(i),E=["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"].map(i),b=["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"].map(i),v=null;t.setDefaultColorPaletteGenerator=function(e){v=e},t.getDefaultColorPaletteGenerator=function(){return v},t.setDefaultColorGeneratorResetFunction=function(e){I=e},t.getDefaultColorGeneratorResetFunction=function(){return I},t.getDefaultColorPaletteByValue=function(e){return null==v?void 0:v(e)},t.getDefaultColorPalette=function(e){return v?new Array(e).fill(null).map((function(e,t){return v(t.toString())})):e<=3?C:e<=6?E:b}},function(e,t,n){"use strict";var r=n(53);t.a=function(e){return Math.max(0,-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(53);t.a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(t)/3)))-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(53);t.a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Object(r.a)(t)-Object(r.a)(e))+1}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=t.RectangleChart=t.ChartClass=void 0;var s=n(12),l=n(26),c=n(6),u=n(22),A=n(31),d=n(6),g=n(7),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.setDataflow=function(e){this.dataflow=e},t.prototype.setManager=function(e){this.manager=e},t.prototype.getBackgroundGraphics=function(){return null},t.prototype.resolveMapping=function(e,t){if(e){if(e.type==d.MappingType.value){var n=e.value;return function(){return n}}if(e.type==d.MappingType.scale){var r=e,o=s.indexOf(this.object.scales,(function(e){return e._id==r.scale})),i=A.ObjectClasses.Create(this.parent,this.object.scales[o],this.state.scales[o]),a=this.dataflow.cache.parse(r.expression);return function(e){return i.mapDataToAttribute(a.getValue(e))}}}return function(){return t}},t.metadata={iconPath:"chart",displayName:"Chart"},t}(A.ObjectClass);t.ChartClass=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","y1","x2","y2","cx","cy","ox1","oy1","ox2","oy2","width","height","marginLeft","marginRight","marginTop","marginBottom"],t.attributes={x1:{name:"x1",type:c.AttributeType.Number},y1:{name:"y1",type:c.AttributeType.Number},x2:{name:"x2",type:c.AttributeType.Number},y2:{name:"y2",type:c.AttributeType.Number},cx:{name:"cx",type:c.AttributeType.Number},cy:{name:"cy",type:c.AttributeType.Number},ox1:{name:"ox1",type:c.AttributeType.Number},oy1:{name:"oy1",type:c.AttributeType.Number},ox2:{name:"ox2",type:c.AttributeType.Number},oy2:{name:"oy2",type:c.AttributeType.Number},width:{name:"width",type:c.AttributeType.Number,defaultValue:900},height:{name:"height",type:c.AttributeType.Number,defaultValue:600},marginLeft:{name:"marginLeft",type:c.AttributeType.Number,defaultValue:50},marginRight:{name:"marginRight",type:c.AttributeType.Number,defaultValue:50},marginTop:{name:"marginTop",type:c.AttributeType.Number,defaultValue:50},marginBottom:{name:"marginBottom",type:c.AttributeType.Number,defaultValue:50}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.width=900,e.height=600,e.marginLeft=50,e.marginRight=50,e.marginTop=50,e.marginBottom=50,e.cx=0,e.cy=0,e.x1=-e.width/2+e.marginLeft,e.y1=-e.height/2+e.marginBottom,e.x2=+e.width/2-e.marginRight,e.y2=+e.height/2-e.marginTop,e.ox1=-e.width/2,e.oy1=-e.height/2,e.ox2=+e.width/2,e.oy2=+e.height/2},t.prototype.getBackgroundGraphics=function(){var e=this.state.attributes;if(null!=this.object.properties.backgroundColor)return u.makeRect(-e.width/2,-e.height/2,e.width/2,e.height/2,{fillColor:this.object.properties.backgroundColor,fillOpacity:this.object.properties.backgroundOpacity})},t.prototype.buildIntrinsicConstraints=function(e){var t=this.state.attributes,n=a(e.attrs(t,["x1","y1","x2","y2","ox1","oy1","ox2","oy2","cx","cy","width","height","marginLeft","marginRight","marginTop","marginBottom"]),16),r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],u=n[5],A=n[6],d=n[7],g=n[8],p=n[9],h=n[10],f=n[11],m=n[12],y=n[13],I=n[14],C=n[15];e.makeConstant(t,"width"),e.makeConstant(t,"height"),e.makeConstant(t,"marginLeft"),e.makeConstant(t,"marginRight"),e.makeConstant(t,"marginTop"),e.makeConstant(t,"marginBottom"),e.addLinear(l.ConstraintStrength.HARD,0,[[1,c]],[[-.5,h]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,A]],[[.5,h]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,u]],[[-.5,f]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,d]],[[.5,f]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,r]],[[-.5,h],[1,m]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,i]],[[.5,h],[-1,y]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,o]],[[-.5,f],[1,C]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,s]],[[.5,f],[-1,I]]),e.addLinear(l.ConstraintStrength.HARD,0,[[2,g]],[[1,r],[1,i]]),e.addLinear(l.ConstraintStrength.HARD,0,[[2,p]],[[1,o],[1,s]])},t.prototype.getSnappingGuides=function(){var e=this.state.attributes;return[{type:"x",value:e.x1,attribute:"x1",visible:!0},{type:"x",value:e.x2,attribute:"x2",visible:!0},{type:"y",value:e.y1,attribute:"y1",visible:!0},{type:"y",value:e.y2,attribute:"y2",visible:!0},{type:"x",value:e.cx,attribute:"cx",visible:!0},{type:"y",value:e.cy,attribute:"cy",visible:!0}]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=[-1e4,1e4];return[{type:"relative-line",axis:"x",actions:[{type:"attribute-value-mapping",attribute:"marginLeft"}],reference:t-e.marginLeft,sign:1,value:e.marginLeft,span:i},{type:"relative-line",axis:"x",actions:[{type:"attribute-value-mapping",attribute:"marginRight"}],reference:r+e.marginRight,sign:-1,value:e.marginRight,span:i},{type:"relative-line",axis:"y",actions:[{type:"attribute-value-mapping",attribute:"marginTop"}],reference:o+e.marginTop,sign:-1,value:e.marginTop,span:i},{type:"relative-line",axis:"y",actions:[{type:"attribute-value-mapping",attribute:"marginBottom"}],reference:n-e.marginBottom,sign:1,value:e.marginBottom,span:i}]},t.prototype.getAttributePanelWidgets=function(e){var t=[e.sectionHeader(g.strings.objects.dimensions),e.mappingEditor(g.strings.objects.width,"width",{numberOptions:{minimum:1}}),e.mappingEditor(g.strings.objects.height,"height",{numberOptions:{minimum:1}}),e.sectionHeader(g.strings.margins.margins),e.mappingEditor(g.strings.margins.left,"marginLeft",{}),e.mappingEditor(g.strings.margins.right,"marginRight",{}),e.mappingEditor(g.strings.margins.top,"marginTop",{}),e.mappingEditor(g.strings.margins.bottom,"marginBottom",{}),e.sectionHeader(g.strings.objects.background),e.inputColor({property:"backgroundColor"},{allowNull:!0,label:g.strings.objects.color,labelKey:g.strings.objects.color}),e.sectionHeader(g.strings.objects.interactivity),e.inputBoolean({property:"enableContextMenu"},{type:"checkbox",label:g.strings.objects.contextMenu})];return null!=this.object.properties.backgroundColor&&t.push(e.inputNumber({property:"backgroundOpacity"},{showSlider:!0,sliderRange:[0,1],label:g.strings.objects.opacity,updownTick:.1,percentage:!0,step:.1})),t},t.prototype.getTemplateParameters=function(){return this.object.mappings.text&&this.object.mappings.text.type==d.MappingType.scale?null:{properties:[{objectID:this.object._id,target:{attribute:"marginLeft"},type:c.AttributeType.Number,default:this.state.attributes.marginLeft},{objectID:this.object._id,target:{attribute:"marginRight"},type:c.AttributeType.Number,default:this.state.attributes.marginRight},{objectID:this.object._id,target:{attribute:"marginTop"},type:c.AttributeType.Number,default:this.state.attributes.marginTop},{objectID:this.object._id,target:{attribute:"marginBottom"},type:c.AttributeType.Number,default:this.state.attributes.marginBottom}]}},t.classID="chart.rectangle",t.type="chart",t.defaultMappingValues={width:900,height:600,marginLeft:50,marginRight:50,marginTop:50,marginBottom:50,cx:0,cy:0},t.defaultProperties=i(i({},A.ObjectClass.defaultProperties),{backgroundColor:null,backgroundOpacity:1,enableContextMenu:!0}),t}(p);t.RectangleChart=h,t.registerClasses=function(){A.ObjectClasses.Register(h)}},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.WASMSolver=t.Matrix=t.initialize=void 0;var s=n(322),l=n(12),c=n(73);t.initialize=function(){return s.initialize()},t.Matrix=s.Matrix;var u=((o={})[c.ConstraintStrength.HARD]=s.ConstraintSolver.STRENGTH_HARD,o[c.ConstraintStrength.STRONG]=s.ConstraintSolver.STRENGTH_STRONG,o[c.ConstraintStrength.MEDIUM]=s.ConstraintSolver.STRENGTH_MEDIUM,o[c.ConstraintStrength.WEAK]=s.ConstraintSolver.STRENGTH_WEAK,o[c.ConstraintStrength.WEAKER]=s.ConstraintSolver.STRENGTH_WEAKER,o),A=function(e){function t(){var t=e.call(this)||this;return t.currentIndex=0,t.softInequalities=[],t.variables=new l.KeyNameMap,t.solver=new s.ConstraintSolver,t.solver.flags=s.ConstraintSolver.FLAG_REDUCE,t.solver.tolerance=1e-8,t}return i(t,e),t.prototype.makeConstant=function(e,t){this.solver.makeConstant(this.attr(e,t).index)},t.prototype.attr=function(e,t,n){if(this.variables.has(e,t))return this.variables.get(e,t);this.currentIndex++;var r={index:this.currentIndex,map:e,name:t};this.variables.add(e,t,r);var o=+e[t];return isNaN(o)&&(o=0),this.solver.addVariable(this.currentIndex,o,!!n&&n.edit),n||console.warn("Creating new attr "+t+" without options"),r},t.prototype.getValue=function(e){return e.map[e.name]},t.prototype.setValue=function(e,t){e.map[e.name]=t},t.prototype.addLinear=function(e,t,n,r){var o,i,s,l,c=u[e],A=[],d=[];try{for(var g=a(n),p=g.next();!p.done;p=g.next()){var h=p.value;A.push(h[0]),d.push(h[1].index)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}if(r)try{for(var f=a(r),m=f.next();!m.done;m=f.next()){h=m.value;A.push(-h[0]),d.push(h[1].index)}}catch(e){s={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}this.solver.addConstraint(c,t,d,A)},t.prototype.addSoftInequality=function(e,t,n,r){var o,i,s,l,c=u[e],A=[],d=[];try{for(var g=a(n),p=g.next();!p.done;p=g.next()){var h=p.value;A.push(h[0]),d.push(h[1].index)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}if(r)try{for(var f=a(r),m=f.next();!m.done;m=f.next()){h=m.value;A.push(-h[0]),d.push(h[1].index)}}catch(e){s={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}var y=this.solver.addConstraint(c,t,d,A);this.softInequalities.push({id:y,bias:t,variable_names:d,weights:A})},t.prototype.solve=function(){var e,t,n=this;this.variables.forEach((function(e,t,r){n.solver.setValue(e.index,t[r])})),this.solver.regularizerWeight=.001;for(var r=0;r<20;r++){this.solver.solve();var o=!1;try{for(var i=(e=void 0,a(this.softInequalities)),l=i.next();!l.done;l=i.next()){for(var c=l.value,u=c.bias,A=0;A<c.variable_names.length;A++)u+=this.solver.getValue(c.variable_names[A])*c.weights[A];u>=-1e-6?this.solver.setConstraintStrength(c.id,s.ConstraintSolver.STRENGTH_DISABLED):o=!0}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}if(!o)break;19==r&&console.warn("Soft inequalities didn't converge within 20 iterations")}return this.variables.forEach((function(e,t,r){t[r]=n.solver.getValue(e.index)})),[0,this.solver.error]},t.prototype.destroy=function(){this.solver.destroy()},t}(c.ConstraintSolver);t.WASMSolver=A},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.snapToAttribute=t.onUpdateAttribute=void 0;var i=n(157),a=n(31),s=n(50),l=n(99);function c(e,t,n,c){var u,A,d,g,p=i.zipArray(e.chart.elements,e.chartState.elements).find((function(e){return r(e,1)[0]._id===t}));if(p)(I=p[1]).attributes[n]=c;else try{for(var h=o(i.zipArray(e.chart.elements,e.chartState.elements)),f=h.next();!f.done;f=h.next()){var m=r(f.value,2),y=m[0],I=m[1];if(s.isType(y.classID,l.CartesianPlotSegment.type)){var C=y,E=I;try{for(var b=(d=void 0,o(E.glyphs)),v=b.next();!v.done;v=b.next()){var B=v.value,M=a.findObjectById(e.chart,C.glyph),D=i.zipArray(M.marks,B.marks).find((function(e){return r(e,1)[0]._id===t}));if(D)D[1].attributes[n]=c}}catch(e){d={error:e}}finally{try{v&&!v.done&&(g=b.return)&&g.call(b)}finally{if(d)throw d.error}}}}}catch(e){u={error:e}}finally{try{f&&!f.done&&(A=h.return)&&A.call(h)}finally{if(u)throw u.error}}}t.onUpdateAttribute=c,t.snapToAttribute=function(e,t,n,r,o){t.filter((function(e){return"snap"==e.type&&e.attributes.targetAttribute===r&&e.attributes.targetElement===n})).forEach((function(t){c(e,t.attributes.element,t.attributes.attribute,o)}))}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.splitByWidth=t.split=t.BREAKERS_REGEX=t.SPACE=t.TextMeasurer=void 0;var o=n(5),i=n(56),a=function(){function e(){"undefined"!=typeof document&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.fontFamily=i.defaultFont,this.fontSize=i.defaultFontSize)}return e.prototype.setFontFamily=function(e){this.fontFamily=e},e.prototype.setFontSize=function(e){this.fontSize=e},e.prototype.measure=function(t){return this.context.font=this.fontSize+'px "'+this.fontFamily+'"',{width:this.context.measureText(t).width,fontSize:this.fontSize,ideographicBaseline:this.fontSize*e.parameters.ideographicBaseline[0]+e.parameters.ideographicBaseline[1],hangingBaseline:this.fontSize*e.parameters.hangingBaseline[0]+e.parameters.hangingBaseline[1],alphabeticBaseline:this.fontSize*e.parameters.alphabeticBaseline[0]+e.parameters.alphabeticBaseline[1],middle:this.fontSize*e.parameters.middle[0]+e.parameters.middle[1]}},e.GetGlobalInstance=function(){return null==this.globalInstance&&(this.globalInstance=new e),this.globalInstance},e.Measure=function(e,t,n){var r=this.GetGlobalInstance();return r.setFontFamily(t),r.setFontSize(n),r.measure(e)},e.ComputeTextPosition=function(e,t,n,r,o,i,a){void 0===r&&(r="left"),void 0===o&&(o="middle"),void 0===i&&(i=0),void 0===a&&(a=0);var s=n.width,l=2*(n.middle-n.ideographicBaseline),c=s/2,u=l/2;return"left"==r&&(c=-i),"right"==r&&(c=s+i),"top"==o&&(u=-a),"bottom"==o&&(u=l+a),[e-c,t-l+u-n.ideographicBaseline]},e.parameters={hangingBaseline:[.7245381636743151,-.005125313493913097],ideographicBaseline:[-.2120442632498544,.008153756552125913],alphabeticBaseline:[0,0],middle:[.34642399534071056,-.22714036109493208]},e.globalInstance=null,e}();function s(e){return e.split(t.BREAKERS_REGEX)}t.TextMeasurer=a,t.SPACE=" ",t.BREAKERS_REGEX=/[\s]+/g,t.split=s,t.splitByWidth=function(e,n,i,a,l){var c,u,A=[],d=s(e),g=0,p=[];try{for(var h=r(d),f=h.next();!f.done;f=h.next()){var m=f.value;if(i>0&&A.length>=i-1)p.push(m);else{var y=o.Graphics.TextMeasurer.Measure(m,a,l).width;if(g+y>n){if(0===p.length){A.push(m),g=0,p=[];continue}A.push(p.join(t.SPACE)),g=0,p=[]}p.push(m),g+=y}}}catch(e){c={error:e}}finally{try{f&&!f.done&&(u=h.return)&&u.call(h)}finally{if(c)throw c.error}}return p&&p.length&&A.push(p.join(t.SPACE)),A}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BingMapService=t.GoogleMapService=t.StaticMapService=void 0;var i=n(7),a=n(159),s=function(){function e(){}return e.prototype.getImageryAtPoint=function(e){var t=this;return new Promise((function(n,r){var o=t.getImageryURLAtPoint(e),a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=function(){var e=document.createElement("canvas");e.width=a.width,e.height=a.height,e.getContext("2d").drawImage(a,0,0),n(e.toDataURL("image/png"))},a.onerror=function(){r(new Error(i.strings.error.imageLoad(o)))},a.src=o}))},e.GetService=function(){if(null==e.cachedService){var t=a.getConfig();if(t.MapService)switch(t.MapService.provider){case"Google":e.cachedService=new c(t.MapService.apiKey);break;case"Bing":e.cachedService=new u(t.MapService.apiKey)}}return e.cachedService},e.cachedService=null,e}();function l(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}t.StaticMapService=s;var c=function(e){function t(t){var n=e.call(this)||this;return n.apiKey=t,n}return o(t,e),t.prototype.getImageryURLAtPoint=function(e){var t={center:e.center.latitude+","+e.center.longitude,zoom:""+e.zoom,size:e.width+"x"+e.height,key:this.apiKey,format:"png"};"high"==e.resolution&&(t.scale="2"),"satellite"==e.type&&(t.maptype="satellite"),"hybrid"==e.type&&(t.maptype="hybrid"),"terrain"==e.type&&(t.maptype="terrain");var n="https://maps.googleapis.com/maps/api/staticmap";return n+="?"+l(t)},t}(s);t.GoogleMapService=c;var u=function(e){function t(t){var n=e.call(this)||this;return n.apiKey=t,n}return o(t,e),t.prototype.getImageryURLAtPoint=function(e){var t={mapSize:e.width+","+e.height,key:this.apiKey,format:"png"};"high"==e.resolution&&(t.dpi="Large",t.mapSize=2*e.width+","+2*e.height);var n="Road";"satellite"==e.type&&(n="Aerial"),"hybrid"==e.type&&(n="AerialWithLabels");var r="https://dev.virtualearth.net/REST/v1/Imagery/Map/"+n+"/";return r+=e.center.latitude+","+e.center.longitude+"/"+(e.zoom+1),r+="?"+l(t)},t}(s);t.BingMapService=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MapPlotSegment=void 0;var l=n(22),c=n(26),u=n(6),A=n(12),d=n(84),g=n(42),p=n(203),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","x2","y1","y2"],t.attributes={x1:{name:"x1",type:u.AttributeType.Number},x2:{name:"x2",type:u.AttributeType.Number},y1:{name:"y1",type:u.AttributeType.Number},y2:{name:"y2",type:u.AttributeType.Number}},t.mapService=p.StaticMapService.GetService(),t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-100,e.x2=100,e.y1=-100,e.y2=100},t.prototype.buildGlyphConstraints=function(e){var t,n,r=this.object.properties.longitudeData,o=this.object.properties.latitudeData;if(o&&r){var s=this.parent.dataflow.cache.parse(o.expression),l=this.parent.dataflow.cache.parse(r.expression),u=this.parent.dataflow.getTable(this.object.table);try{for(var d=i(A.zipArray(this.state.glyphs,this.state.dataRowIndices)),g=d.next();!g.done;g=d.next()){var p=a(g.value,2),h=p[0],f=p[1],m=u.getGroupedContext(f),y=s.getNumberValue(m),I=l.getNumberValue(m),C=this.getProjectedPoints([[y,I]])[0];e.addLinear(c.ConstraintStrength.HARD,C[0],[],[[1,e.attr(h.attributes,"x")]]),e.addLinear(c.ConstraintStrength.HARD,C[1],[],[[1,e.attr(h.attributes,"y")]])}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}}},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return{type:"rectangle",cx:(t+n)/2,cy:(r+o)/2,width:Math.abs(n-t),height:Math.abs(o-r),rotation:0}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:e.x2,attribute:"x2"},{type:"y",value:n,attribute:"y1"},{type:"y",value:e.y2,attribute:"y2"}]},t.prototype.mercatorProjection=function(e,t){return[128/180*(180+t),128/180*(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+A.Geometry.degreesToRadians(e)/2)))]},t.prototype.getProjectedPoints=function(e){var t=this,n=this.state.attributes,r=a(this.getCenterZoom(),3),o=r[0],i=r[1],s=r[2],l=a(this.mercatorProjection(o,i),2),c=l[0],u=l[1],A=Math.pow(2,s),d=n.x1,g=n.y1,p=n.x2,h=n.y2;return e.map((function(e){var n=a(t.mercatorProjection(e[0],e[1]),2),r=n[0],o=n[1];return[(r-c)*A+(d+p)/2,-(o-u)*A+(g+h)/2]}))},t.prototype.getCenterZoom=function(){var e=this.state.attributes,t=this.object.properties,n=-180,r=180,o=-50,i=50;null!=t.latitudeData&&(o=t.latitudeData.domainMin,i=t.latitudeData.domainMax),null!=t.longitudeData&&(n=t.longitudeData.domainMin,r=t.longitudeData.domainMax);var s=a(this.mercatorProjection(o,n),2),l=s[0],c=s[1],u=a(this.mercatorProjection(i,r),2),A=u[0],d=u[1],g=Math.abs(Math.abs(e.x2-e.x1)/Math.abs(A-l)),p=Math.abs(Math.abs(e.y2-e.y1)/Math.abs(d-c)),h=Math.min(g,p);return[(o+i)/2,(n+r)/2,Math.floor(Math.log2(h))]},t.prototype.getPlotSegmentGraphics=function(e){var t=this.state.attributes,n=t.x1,r=t.y1,o=t.x2,i=t.y2,s=a(this.getCenterZoom(),3),c=s[0],u=s[1],A=s[2],d=o-n,g=i-r,p={type:"image",src:this.mapService.getImageryURLAtPoint({center:{latitude:c,longitude:u},type:this.object.properties.mapType,zoom:A,width:d,height:g,resolution:"high"}),x:n,y:r,width:d,height:g};return l.makeGroup([p,e])},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=[];return i.push({type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"Longitude",dropAction:{axisInference:{property:"longitudeData"}}}),i.push({type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"Latitude",dropAction:{axisInference:{property:"latitudeData"}}}),i},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return[{type:"line",axis:"y",value:r,span:[t,n],actions:[{type:"attribute",attribute:"y1"}]},{type:"line",axis:"y",value:o,span:[t,n],actions:[{type:"attribute",attribute:"y2"}]},{type:"line",axis:"x",value:t,span:[r,o],actions:[{type:"attribute",attribute:"x1"}]},{type:"line",axis:"x",value:n,span:[r,o],actions:[{type:"attribute",attribute:"x2"}]},{type:"point",x:t,y:r,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:n,y:r,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:n,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties;return s(g.buildAxisWidgets(t.latitudeData,"latitudeData",e,"Latitude"),g.buildAxisWidgets(t.longitudeData,"longitudeData",e,"Longitude"),[e.sectionHeader("Map Style"),e.inputSelect({property:"mapType"},{type:"dropdown",showLabel:!0,labels:["Roadmap","Satellite","Hybrid","Terrain"],options:["roadmap","satellite","hybrid","terrain"]})])},t.classID="plot-segment.map",t.type="plot-segment",t.metadata={iconPath:"plot-segment/map"},t.defaultMappingValues={},t.defaultProperties={mapType:"roadmap"},t}(d.PlotSegmentClass);t.MapPlotSegment=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(331);Object.defineProperty(t,"CartesianPlotSegment",{enumerable:!0,get:function(){return r.CartesianPlotSegment}});var o=n(332);Object.defineProperty(t,"PolarPlotSegment",{enumerable:!0,get:function(){return o.PolarPlotSegment}});var i=n(334);Object.defineProperty(t,"CurvePlotSegment",{enumerable:!0,get:function(){return i.CurvePlotSegment}})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=t.RectangleGlyph=t.GlyphClass=void 0;var a=n(6),s=n(26),l=n(31),c=n(7),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.createDefault=function(t){var n=e.createDefault.call(this);return n.table=t,n.constraints=[],n.marks=[],n},t.metadata={iconPath:"glyph",displayName:"Glyph"},t}(l.ObjectClass);t.GlyphClass=u;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","y1","x2","y2","x","y","width","height","ix1","iy1","ix2","iy2","icx","icy"],t.attributes={x1:{name:"x1",type:a.AttributeType.Number},y1:{name:"y1",type:a.AttributeType.Number},x2:{name:"x2",type:a.AttributeType.Number},y2:{name:"y2",type:a.AttributeType.Number},x:{name:"x",type:a.AttributeType.Number},y:{name:"y",type:a.AttributeType.Number},width:{name:"width",type:a.AttributeType.Number,defaultRange:[30,200]},height:{name:"height",type:a.AttributeType.Number,defaultRange:[30,200]},ix1:{name:"ix1",type:a.AttributeType.Number},iy1:{name:"iy1",type:a.AttributeType.Number},ix2:{name:"ix2",type:a.AttributeType.Number},iy2:{name:"iy2",type:a.AttributeType.Number},icx:{name:"icx",type:a.AttributeType.Number},icy:{name:"icy",type:a.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x=0,e.y=0,e.width=60,e.height=100,e.x1=e.x-e.width/2,e.y1=e.y-e.height/2,e.x2=e.x+e.width/2,e.y2=e.y+e.height/2,e.ix1=-e.width/2,e.iy1=-e.height/2,e.ix2=+e.width/2,e.iy2=+e.height/2,e.icx=0,e.icy=0},t.prototype.buildIntrinsicConstraints=function(e){var t=i(e.attrs(this.state.attributes,["x1","y1","x2","y2","x","y","width","height","ix1","iy1","ix2","iy2","icx","icy"]),14),n=t[0],r=t[1],o=t[2],a=t[3],l=t[4],c=t[5],u=t[6],A=t[7],d=t[8],g=t[9],p=t[10],h=t[11],f=t[12],m=t[13];e.addLinear(s.ConstraintStrength.HARD,0,[[1,o],[-1,n]],[[1,u]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,a],[-1,r]],[[1,A]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,p],[-1,d]],[[1,u]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,h],[-1,g]],[[1,A]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,d],[1,p]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,g],[1,h]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,f]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,m]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,l]],[[.5,o],[.5,n],[1,e.attr(this.state.marks[0].attributes,"x")]]),e.addLinear(s.ConstraintStrength.HARD,0,[[1,c]],[[.5,a],[.5,r],[1,e.attr(this.state.marks[0].attributes,"y")]])},t.prototype.getAlignmentGuides=function(){var e=this.state.attributes;return[{type:"x",value:e.ix1,attribute:"ix1",visible:!0},{type:"x",value:e.ix2,attribute:"ix2",visible:!0},{type:"x",value:e.icx,attribute:"icx",visible:!0},{type:"y",value:e.iy1,attribute:"iy1",visible:!0},{type:"y",value:e.iy2,attribute:"iy2",visible:!0},{type:"y",value:e.icy,attribute:"icy",visible:!0}]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.ix1,n=e.iy1,r=[-1e4,1e4];return[{type:"line",axis:"x",actions:[{type:"attribute",attribute:"ix1"}],value:t,span:r},{type:"line",axis:"x",actions:[{type:"attribute",attribute:"ix2"}],value:e.ix2,span:r},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"iy1"}],value:n,span:r},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"iy2"}],value:e.iy2,span:r}]},t.prototype.getAttributePanelWidgets=function(e){return[e.sectionHeader(c.strings.objects.dimensions),e.mappingEditor(c.strings.objects.width,"width",{}),e.mappingEditor(c.strings.objects.height,"height",{})]},t.classID="glyph.rectangle",t.type="glyph",t}(u);t.RectangleGlyph=A,t.registerClasses=function(){l.ObjectClasses.Register(A)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GuideCoordinatorClass=void 0;var a=n(7),s=n(26),l=n(6),c=n(67),u=n(31),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.buildConstraints=function(e){var n,r,o=this.state.attributes;"x"==this.getAxis()?(n=e.attr(o,"x1"),r=e.attr(o,"x2")):(n=e.attr(o,"y1"),r=e.attr(o,"y2"));var i=this.object.properties.count-t.BaseGuidesCount;this.getValueNames().map((function(t,a){var l=(1+a)/(i+1);e.addLinear(s.ConstraintStrength.HARD,0,[[1-l,n],[l,r]],[[1,e.attr(o,t)]])}))},t.prototype.getValueNames=function(){for(var e=[],n=0;n<this.object.properties.count-t.BaseGuidesCount;n++){var r="value"+n;e.push(r),this.state&&null==this.state.attributes[r]&&(this.state.attributes[r]=0)}return e},Object.defineProperty(t.prototype,"attributeNames",{get:function(){return["x1","y1","x2","y2"].concat(this.getValueNames())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){for(var e={x1:{name:"x1",type:l.AttributeType.Number},y1:{name:"y1",type:l.AttributeType.Number},x2:{name:"x2",type:l.AttributeType.Number},y2:{name:"y2",type:l.AttributeType.Number}},n=0;n<this.object.properties.count-t.BaseGuidesCount;n++){var r="value"+n;e[r]={name:r,type:l.AttributeType.Number}}return e},enumerable:!1,configurable:!0}),t.prototype.initializeState=function(){var e,t;this.state.attributes.x1=-100,this.state.attributes.y1=-100,this.state.attributes.x2=100,this.state.attributes.y2=100;try{for(var n=i(this.getValueNames()),r=n.next();!r.done;r=n.next()){var o=r.value;null==this.state.attributes[o]&&(this.state.attributes[o]=0)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.getAxis=function(){return this.object.properties.axis},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=this.getAxis();return[{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:"y"==i?t:r,y:"x"==i?n:o,actions:[{type:"attribute",source:"x",attribute:"y"==i?"x1":"x2"},{type:"attribute",source:"y",attribute:"x"==i?"y1":"y2"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return"x"==this.getAxis()?o=n:r=t,{type:"line",visible:!0,morphing:!0,x1:t,y1:n,x2:r,y2:o}},t.prototype.getBasicValues=function(){return[]},t.prototype.getSnappingGuides=function(){var e=this;return this.getValueNames().concat(this.getBasicValues()).map((function(t){return{type:e.getAxis(),value:e.state.attributes[t],attribute:t,visible:!0,visualType:u.SnappingGuidesVisualTypes.Coordinator,priority:1}}))},t.prototype.getAttributePanelWidgets=function(e){return[e.verticalGroup({header:a.strings.objects.guides.guideCoordinator},[e.inputNumber({property:"count"},{showUpdown:!0,updownTick:1,updownRange:[1,100],minimum:1,maximum:100,label:a.strings.objects.guides.count,searchSection:a.strings.objects.guides.guideCoordinator})])]},t.classID="guide.guide-coordinator",t.type="guide",t.BaseGuidesCount=0,t.metadata={displayName:"GuideCoordinator",iconPath:"guide/coordinator-x"},t.defaultAttributes={axis:"x",count:2},t}(c.ChartElementClass);t.GuideCoordinatorClass=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.GuideClass=t.GuidePropertyNames=t.GuideAttributeNames=void 0;var a,s,l=n(26),c=n(6),u=n(67),A=n(31),d=n(206),g=n(199),p=n(7);!function(e){e.value="value",e.computedBaselineValue="computedBaselineValue"}(a=t.GuideAttributeNames||(t.GuideAttributeNames={})),function(e){e.axis="axis",e.baseline="baseline"}(s=t.GuidePropertyNames||(t.GuidePropertyNames={}));var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[a.value,a.computedBaselineValue],t.attributes={value:{name:a.value,type:c.AttributeType.Number},computedBaselineValue:{name:a.computedBaselineValue,type:c.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){this.state.attributes.value=0,this.state.attributes.computedBaselineValue=0},t.prototype.getAxis=function(){return this.object.properties.axis},t.prototype.getParentType=function(){var e=this.parent.object.classID,t=A.isType(e,d.RectangleGlyph.classID);return{rectChart:A.isType(e,g.RectangleChart.classID),rectGlyph:t}},t.prototype.buildConstraints=function(e){var t=this.getParentType(),n=t.rectGlyph,r=t.rectChart;if(n)switch(this.object.properties.baseline){case"center":case"middle":var o=i(e.attrs(this.state.attributes,[a.value,a.computedBaselineValue]),2)[1];e.addLinear(l.ConstraintStrength.HARD,this.state.attributes.value,[[-1,o]]);break;case"left":this.computeBaselineFromParentAttribute(e,["width"],(function(e,t){return[[-.5,i(e,1)[0]],[1,t]]}));break;case"right":this.computeBaselineFromParentAttribute(e,["width"],(function(e,t){return[[.5,i(e,1)[0]],[1,t]]}));break;case"top":this.computeBaselineFromParentAttribute(e,["height"],(function(e,t){return[[.5,i(e,1)[0]],[1,t]]}));break;case"bottom":this.computeBaselineFromParentAttribute(e,["height"],(function(e,t){return[[-.5,i(e,1)[0]],[1,t]]}))}else if(r)switch(this.object.properties.baseline){case"center":this.computeBaselineFromParentAttribute(e,["cx"],(function(e,t){return[[1,i(e,1)[0]],[1,t]]}));break;case"middle":this.computeBaselineFromParentAttribute(e,["cy"],(function(e,t){return[[1,i(e,1)[0]],[1,t]]}));break;case"left":this.computeBaselineFromParentAttribute(e,["width","marginLeft"],(function(e,t){var n=i(e,2);return[[-.5,n[0]],[1,n[1]],[1,t]]}));break;case"right":this.computeBaselineFromParentAttribute(e,["width","marginRight"],(function(e,t){var n=i(e,2);return[[.5,n[0]],[-1,n[1]],[1,t]]}));break;case"top":this.computeBaselineFromParentAttribute(e,["height","marginTop"],(function(e,t){var n=i(e,2);return[[.5,n[0]],[-1,n[1]],[1,t]]}));break;case"bottom":this.computeBaselineFromParentAttribute(e,["height","marginBottom"],(function(e,t){var n=i(e,2);return[[-.5,n[0]],[1,n[1]],[1,t]]}))}},t.prototype.computeBaselineFromParentAttribute=function(e,t,n){var r=this.parent.state.attributes,o=e.attrs(r,t),s=i(e.attrs(this.state.attributes,[a.value,a.computedBaselineValue]),2),c=s[0],u=s[1];e.makeConstant(this.state.attributes,a.value),e.addLinear(l.ConstraintStrength.HARD,0,[[1,u]],n(o,c))},t.prototype.getLinkAnchors=function(){return[]},t.prototype.getHandles=function(){var e=[-1e3,1e3],t=this.state.attributes.value,n=this.object.properties,r=n.axis,o=n.baseline,i=this.getParentType(),s=i.rectChart,l=i.rectGlyph,c=function(n){return[{type:"relative-line",axis:r,actions:[{type:"attribute-value-mapping",attribute:a.value,source:a.value}],reference:n,sign:1,value:t,span:e}]},u=this.parent.state.attributes;if(l)switch(o){case"center":case"middle":return[{type:"line",axis:r,actions:[{type:"attribute-value-mapping",attribute:a.value,source:a.value}],value:t,span:e}];case"left":return c(+u.ix1);case"right":return c(+u.ix2);case"top":return c(+u.iy2);case"bottom":return c(+u.iy1)}else if(s)switch(o){case"center":return c(+u.cx);case"middle":return c(+u.cy);case"left":return c(+u.x1);case"right":return c(+u.x2);case"top":return c(+u.y2);case"bottom":return c(+u.y1)}},t.prototype.getSnappingGuides=function(){var e,t,n=this;return[(e=a.computedBaselineValue,t=this.state.attributes.computedBaselineValue,{type:n.getAxis(),value:t,attribute:e,visible:!0,visualType:A.SnappingGuidesVisualTypes.Guide,priority:1})]},t.prototype.getAttributePanelWidgets=function(e){var t,n,r,o=[];if("x"===this.object.properties.axis){n=["left","center","right"],t=[p.strings.alignment.left,p.strings.alignment.center,p.strings.alignment.right],r=["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"]}else{n=["top","middle","bottom"],t=[p.strings.alignment.top,p.strings.alignment.middle,p.strings.alignment.bottom],r=["AlignVerticalTop","AlignVerticalCenter","AlignVerticalBottom"]}return o.push(e.verticalGroup({header:p.strings.objects.guides.guide},[e.inputSelect({property:s.baseline},{type:"dropdown",showLabel:!0,labels:t,options:n,icons:r,label:p.strings.objects.guides.baseline,searchSection:p.strings.objects.guides.guide}),e.mappingEditor(p.strings.objects.guides.offset,a.value,{defaultValue:this.state.attributes.value,searchSection:p.strings.objects.guides.guide})])),o},t.prototype.getTemplateParameters=function(){var e=[{objectID:this.object._id,target:{attribute:s.baseline},type:c.AttributeType.Enum,default:this.object.properties.baseline},{objectID:this.object._id,target:{attribute:a.computedBaselineValue},type:c.AttributeType.Number,default:this.state.attributes.computedBaselineValue}];return this.object.mappings.value&&this.object.mappings.value.type===c.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:a.value},type:c.AttributeType.Number,default:this.state.attributes.value}),{properties:e}},t.classID="guide.guide",t.type="guide",t.metadata={displayName:"Guide",iconPath:"guide/x"},t.defaultProperties={baseline:null},t}(u.ChartElementClass);t.GuideClass=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.LegendClass=void 0;var a=n(56),s=n(7),l=n(12),c=n(6),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x","y"],t.attributes={x:{name:"x",type:c.AttributeType.Number},y:{name:"y",type:c.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x=0,e.y=0},t.prototype.getLayoutBox=function(){var e,t,n,r,o=this.state.attributes,a=o.x,s=o.y,l=i(this.getLegendSize(),2),c=l[0],u=l[1];switch(this.object.properties.alignX){case"start":e=a,n=a+c;break;case"middle":e=a-c/2,n=a+c/2;break;case"end":e=a-c,n=a}switch(this.object.properties.alignY){case"start":t=s,r=s+u;break;case"middle":t=s-u/2,r=s+u/2;break;case"end":t=s-u,r=s}return{x1:e,y1:t,x2:n,y2:r}},t.prototype.getBoundingBox=function(){var e=this.getLayoutBox(),t=e.x1,n=e.y1,r=e.x2,o=e.y2;return{type:"rectangle",cx:(t+r)/2,cy:(n+o)/2,width:Math.abs(r-t),height:Math.abs(o-n),rotation:0}},t.prototype.getHandles=function(){var e=this.state.attributes;return[{type:"point",x:e.x,y:e.y,actions:[{type:"attribute",source:"x",attribute:"x"},{type:"attribute",source:"y",attribute:"y"}],options:{snapToClosestPoint:!0}}]},t.prototype.getScale=function(){var e=this.object.properties.scale,t=l.indexOf(this.parent.object.scales,(function(t){return t._id==e}));return t>=0?[this.parent.object.scales[t],this.parent.state.scales[t]]:null},t.prototype.getLegendSize=function(){return[10,10]},t.prototype.getOrderingObjects=function(){var e=this.getScale();if(e){var t=i(e,1)[0].properties.mapping;return Object.keys(t)}return[]},t.prototype.getAttributePanelWidgets=function(e){return[e.verticalGroup({header:s.strings.objects.legend.labels},[e.inputFontFamily({property:"fontFamily"},{label:s.strings.objects.font,searchSection:s.strings.objects.legend.labels}),e.inputNumber({property:"fontSize"},{showUpdown:!0,updownStyle:"font",updownTick:2,label:s.strings.objects.size,searchSection:s.strings.objects.legend.labels}),e.inputColor({property:"textColor"},{label:s.strings.objects.color,labelKey:s.strings.objects.color,allowNull:!0,searchSection:s.strings.objects.legend.labels}),"legend.categorical"===this.object.classID?e.inputSelect({property:"markerShape"},{type:"dropdown",showLabel:!0,icons:["RectangleShape","TriangleShape","Ellipse"],labels:[s.strings.toolbar.rectangle,s.strings.toolbar.triangle,s.strings.toolbar.ellipse],options:["rectangle","triangle","circle"],label:s.strings.objects.legend.markerShape,searchSection:s.strings.objects.legend.labels}):null,"legend.categorical"===this.object.classID?e.searchWrapper({searchPattern:[s.strings.objects.legend.ordering,s.strings.objects.legend.labels]},[e.label(s.strings.objects.legend.ordering),e.reorderWidget({property:"order"},{items:this.getOrderingObjects(),onConfirm:function(t){e.emitSetProperty({property:"order",field:null},t)}})]):null]),e.verticalGroup({header:s.strings.objects.legend.layout},[e.searchWrapper({searchPattern:[s.strings.alignment.align,s.strings.objects.legend.layout]},[e.label(s.strings.alignment.alignment),e.horizontal([0,0],e.inputSelect({property:"alignX"},{type:"radio",icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:[s.strings.alignment.left,s.strings.alignment.middle,s.strings.alignment.right],options:["start","middle","end"],ignoreSearch:!0}),e.inputSelect({property:"alignY"},{type:"radio",options:["start","middle","end"],icons:["AlignVerticalBottom","AlignVerticalCenter","AlignVerticalTop"],labels:[s.strings.alignment.bottom,s.strings.alignment.middle,s.strings.alignment.top],ignoreSearch:!0}),null)])])]},t.prototype.getTemplateParameters=function(){var e=[];return this.object.properties.fontFamily&&e.push({objectID:this.object._id,target:{property:"fontFamily"},type:c.AttributeType.FontFamily,default:this.object.properties.fontFamily}),this.object.properties.fontSize&&e.push({objectID:this.object._id,target:{property:"fontSize"},type:c.AttributeType.Number,default:this.object.properties.fontSize}),this.object.properties.textColor&&e.push({objectID:this.object._id,target:{property:"textColor"},type:c.AttributeType.Color,default:l.rgbToHex(this.object.properties.textColor)}),this.object.properties.markerShape&&e.push({objectID:this.object._id,target:{property:"markerShape"},type:c.AttributeType.Enum,default:this.object.properties.markerShape}),this.object.properties.alignY&&e.push({objectID:this.object._id,target:{property:"alignY"},type:c.AttributeType.Enum,default:this.object.properties.alignY}),this.object.properties.alignX&&e.push({objectID:this.object._id,target:{property:"alignX"},type:c.AttributeType.Enum,default:this.object.properties.alignX}),{properties:e}},t.metadata={displayName:"Legend",iconPath:"CharticulatorLegend"},t.defaultProperties={scale:null,visible:!0,alignX:"start",alignY:"end",fontFamily:a.defaultFont,fontSize:a.defaultFontSizeLegend,textColor:{r:0,g:0,b:0},dataSource:"columnValues",dataExpressions:[],markerShape:"circle",order:null},t}(n(67).ChartElementClass);t.LegendClass=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.NumericalColorLegendClass=void 0;var l=n(12),c=n(22),u=n(42),A=n(209),d=n(7),g=n(118),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gradientWidth=12,t}return o(t,e),t.prototype.getLineHeight=function(){return this.object.properties.fontSize+25+this.gradientWidth},t.prototype.getLegendSize=function(){var e=this.object.properties,n=e.length?+e.length:t.defaultLegendLength;return this.isHorizontalOrientation()?[n,this.getLineHeight()]:[this.getLineHeight(),n]},t.prototype.isHorizontalOrientation=function(){return this.object.properties.orientation===g.OrientationType.HORIZONTAL},t.prototype.getGraphics=function(){var e=this.isHorizontalOrientation()?this.getLegendSize()[0]:this.getLegendSize()[1],t=this.getLegendSize()[1]-12,n=this.getScale();if(!n)return null;var r=n[0].properties.range,o=n[0].properties.domainMin,i=n[0].properties.domainMax,a=new u.AxisRenderer;a.setLinearScale(o,i,0,e,null),a.setStyle({tickColor:this.object.properties.textColor,fontSize:this.object.properties.fontSize,fontFamily:this.object.properties.fontFamily,lineColor:this.object.properties.textColor});var s=c.makeGroup([]);this.isHorizontalOrientation()?s.elements.push(a.renderLine(0,-2,0,1)):s.elements.push(a.renderLine(19,0,90,1));for(var A=2*e,d=l.interpolateColors(r.colors,r.colorspace),g=0;g<A;g++){var p=d((g+.5)/A),h=g/A*e,f=Math.min(e,(g+1.5)/A*e);this.isHorizontalOrientation()?s.elements.push(c.makeRect(h,0,f,12,{fillColor:p})):s.elements.push(c.makeRect(5,h,17,f,{fillColor:p}))}var m=this.getLayoutBox(),y=m.x1,I=m.y1;return this.isHorizontalOrientation()?s.transform={x:y,y:I+t,angle:0}:s.transform={x:y,y:I,angle:0},s},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t);return s(n,[t.verticalGroup({header:d.strings.objects.legend.numericalColorLegend},[t.inputNumber({property:"length"},{label:this.isHorizontalOrientation()?d.strings.objects.width:d.strings.objects.height,updownTick:10,showUpdown:!0,searchSection:d.strings.objects.legend.numericalColorLegend}),t.inputSelect({property:"orientation"},{type:"radio",showLabel:!1,icons:["AlignHorizontalCenter","AlignVerticalCenter"],labels:[d.strings.objects.legend.vertical,d.strings.objects.legend.horizontal],options:[g.OrientationType.VERTICAL,g.OrientationType.HORIZONTAL],label:d.strings.objects.legend.orientation,searchSection:d.strings.objects.legend.numericalColorLegend})])])},t.classID="legend.numerical-color",t.type="legend",t.defaultLegendLength=100,t.defaultProperties=i(i({},A.LegendClass.defaultProperties),{orientation:g.OrientationType.VERTICAL,length:t.defaultLegendLength}),t}(A.LegendClass);t.NumericalColorLegendClass=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.NumericalNumberLegendClass=t.NumericalNumberLegendAttributeNames=void 0;var l,c=n(7),u=n(12),A=n(22),d=n(6),g=n(67),p=n(42),h=n(99);!function(e){e.x1="x1",e.y1="y1",e.x2="x2",e.y2="y2",e.cx="cx",e.cy="cy",e.radius="radius",e.startAngle="startAngle",e.endAngle="endAngle"}(l=t.NumericalNumberLegendAttributeNames||(t.NumericalNumberLegendAttributeNames={}));var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[l.x1,l.y1,l.x2,l.y2,l.cx,l.cy,l.radius,l.startAngle,l.endAngle],t.attributes={x1:{name:l.x1,type:d.AttributeType.Number},y1:{name:l.y1,type:d.AttributeType.Number},x2:{name:l.x2,type:d.AttributeType.Number},y2:{name:l.y2,type:d.AttributeType.Number},cx:{name:l.cx,type:d.AttributeType.Number},cy:{name:l.cx,type:d.AttributeType.Number},radius:{name:l.radius,type:d.AttributeType.Number},startAngle:{name:l.startAngle,type:d.AttributeType.Number},endAngle:{name:l.endAngle,type:d.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x1=0,e.y1=0,e.x2=0,e.y2=0,e.cx=0,e.cy=0,e.radius=0,e.startAngle=0,e.endAngle=0},t.prototype.getScale=function(){var e=this.object.properties.scale,t=u.indexOf(this.parent.object.scales,(function(t){return t._id==e}));return t>=0?[this.parent.object.scales[t],this.parent.state.scales[t]]:null},t.prototype.getBoundingBox=function(){if(this.object.properties.polarAngularMode){var e=this.state.attributes;return{type:"circle",cx:e.cx,cy:e.cy,radius:e.radius}}var t=this.state.attributes;return{type:"line",x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}},t.prototype.getHandles=function(){var e=this.state.attributes;if(this.object.properties.polarAngularMode)return[{type:"point",x:e.cx,y:e.cy,actions:[{type:"attribute",source:"x",attribute:l.cx},{type:"attribute",source:"y",attribute:l.cy}],options:{snapToClosestPoint:!0}}];var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:l.x1},{type:"attribute",source:"y",attribute:l.y1}],options:{snapToClosestPoint:!0}},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:l.x2},{type:"attribute",source:"y",attribute:l.y2}],options:{snapToClosestPoint:!0}}]},t.prototype.getGraphics=function(){var e=this.getScale();if(!e)return null;if(!this.object.properties.axis.visible)return null;var t=e[1].attributes.rangeMin,n=e[1].attributes.rangeMax,r=e[0].properties.domainMin,o=e[0].properties.domainMax;return this.object.properties.polarAngularMode?this.getPolarAxisGraphics(t,n,r,o):A.makeGroup([this.getLineAxisGraphics(t,n,r,o),this.getGridLineGraphics(t,n,r,o)])},t.prototype.getPolarAxisGraphics=function(e,t,n,r){var o=new p.AxisRenderer;o.oppositeSide="opposite"===this.object.properties.axis.side;var i=this.state.attributes,a=i.startAngle,s=i.endAngle,l=s-a,c=this.object.properties,u=(t-e)/(r-n);return o.setLinearScale(n,n+(l-e/360)/u,a,s,c.axis.tickFormat),o.setStyle(this.object.properties.axis.style),o.renderPolar(this.state.attributes.cx,this.state.attributes.cy,this.state.attributes.radius,o.oppositeSide?-1:1)},t.prototype.getLineAxisGraphics=function(e,t,n,r){var o=this.state.attributes.x2-this.state.attributes.x1,i=this.state.attributes.y2-this.state.attributes.y1,a=Math.sqrt(o*o+i*i),s=new p.AxisRenderer;s.oppositeSide="opposite"===this.object.properties.axis.side;var l=this.object.properties,c=(t-e)/(r-n);return s.setLinearScale(n,n+(a-e)/c,e,a,l.axis.tickFormat),s.setStyle(this.object.properties.axis.style),s.renderLine(this.state.attributes.x1,this.state.attributes.y1,Math.atan2(i,o)/Math.PI*180,-1)},t.prototype.getGridLineGraphics=function(e,t,n,r){var o,a,s,l,c=this.object._id,u=this.parent.object.constraints;if(u.length>0&&4===u.filter((function(e){var t;return(null===(t=e.attributes)||void 0===t?void 0:t.element)===c})).length){var A=null==u?void 0:u.find((function(e){var t;return(null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.element)===c})),d=null===(o=null==A?void 0:A.attributes)||void 0===o?void 0:o.targetElement,g=this.parent.object.elements.findIndex((function(e){return e._id===d})),h=null===(a=this.parent.state.elements[g])||void 0===a?void 0:a.attributes,f=this.state.attributes.x1,m=this.state.attributes.x2,y=this.state.attributes.y1,I=this.state.attributes.y2,C=Math.abs(m-f)<.001,E=Math.abs(I-y)<.001;if(!C&&!E)return null;var b=E?0:90,v=(null==h?void 0:h.x2)-(null==h?void 0:h.x1),B=(null==h?void 0:h.y2)-(null==h?void 0:h.y1),M=E?v:B,D=new p.AxisRenderer,x=this.object.properties,w=(t-e)/(r-n);D.setLinearScale(n,n+(M-e)/w,e,M,x.axis.tickFormat),D.setStyle(i(i({},p.defaultAxisStyle),null===(l=null===(s=this.object.properties)||void 0===s?void 0:s.axis)||void 0===l?void 0:l.style));var Q=1;return C&&(Q=Math.abs(f-(null==h?void 0:h.x1))<.001?-1:1),E&&(Q=Math.abs(y-(null==h?void 0:h.y1))<.001?1:-1),D.renderGridLine(f>m?m:f,y>I?I:y,b,Q,E?B:v)}return null},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties;return s([e.sectionHeader(c.strings.objects.axis),p.buildAxisAppearanceWidgets("axis",e,{isVisible:t.axis.visible,wordWrap:t.axis.style.wordWrap,isOffset:!1,isOnTop:!1})],h.PlotSegmentClass.getGridLineAttributePanelWidgets(e,"axis"))},t.classID="legend.numerical-number",t.type="legend",t.metadata={displayName:"Legend",iconPath:"CharticulatorLegend"},t.defaultProperties={visible:!0,axis:{side:"default",visible:!0,style:u.deepClone(p.defaultAxisStyle),tickFormat:""}},t}(g.ChartElementClass);t.NumericalNumberLegendClass=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageElementClass=t.imagePlaceholder=void 0;var l=n(7),c=n(12),u=n(22),A=n(26),d=n(6),g=n(6),p=n(31),h=n(68),f=n(344);t.imagePlaceholder={src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cmVjdCB4PSI1LjE1MTI0IiB5PSI2LjY4NDYyIiB3aWR0aD0iMjEuNjk3NTIiIGhlaWdodD0iMTguNjEyNSIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLXdpZHRoOjAuOTI2MTg0MTE3Nzk0MDM2OXB4Ii8+PHBvbHlnb24gcG9pbnRzPSIyMC4xNSAxMi45NDMgMTMuODExIDIxLjQwNCAxMC4xNTQgMTYuNDk4IDUuMTUxIDIzLjE3NiA1LjE1MSAyNS4zMDYgMTAuODg4IDI1LjMwNiAxNi43MTkgMjUuMzA2IDI2Ljg0OSAyNS4zMDYgMjYuODQ5IDIxLjkzIDIwLjE1IDEyLjk0MyIgc3R5bGU9ImZpbGwtb3BhY2l0eTowLjI7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDowLjcwMDAwMDAwMDAwMDAwMDFweCIvPjxjaXJjbGUgY3g9IjExLjkyMDI3IiBjeT0iMTIuMzk5MjMiIHI9IjEuOTAyMTYiIHN0eWxlPSJmaWxsLW9wYWNpdHk6MC4yO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MC43MDAwMDAwMDAwMDAwMDAxcHgiLz48L3N2Zz4=",width:100,height:100};var m=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=f.imageAttributes,t.attributeNames=Object.keys(f.imageAttributes),t}return o(n,e),n.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-15,e.y1=-25,e.x2=15,e.y2=25,e.cx=0,e.cy=0,e.width=30,e.height=50,e.stroke=null,e.fill=null,e.strokeWidth=1,e.opacity=1,e.visible=!0,e.image=null},n.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t);return[t.verticalGroup({header:l.strings.objects.general},[t.mappingEditor(l.strings.objects.width,"width",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.height,"height",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:l.strings.objects.general})]),t.verticalGroup({header:l.strings.toolbar.image},s([t.mappingEditor(l.strings.objects.icon.image,"image",{searchSection:l.strings.toolbar.image}),t.inputSelect({property:"imageMode"},{type:"dropdown",showLabel:!0,labels:[l.strings.objects.image.letterbox,l.strings.objects.image.stretch],options:["letterbox","stretch"],label:l.strings.objects.image.imageMode,searchSection:l.strings.toolbar.image})],"letterbox"==this.object.properties.imageMode?[t.searchWrapper({searchPattern:[l.strings.alignment.align,l.strings.objects.icon.image]},t.label(l.strings.alignment.align),t.horizontal([0,1],t.inputSelect({property:"alignX"},{type:"radio",options:["start","middle","end"],icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:[l.strings.alignment.left,l.strings.alignment.middle,l.strings.alignment.right],ignoreSearch:!0}),t.inputSelect({property:"alignY"},{type:"radio",options:["start","middle","end"],icons:["AlignVerticalBottom","AlignVerticalCenter","AlignVerticalTop"],labels:[l.strings.alignment.bottom,l.strings.alignment.middle,l.strings.alignment.top],ignoreSearch:!0})))]:[])),t.verticalGroup({header:l.strings.alignment.padding},[t.inputNumber({property:"paddingX"},{updownTick:1,showUpdown:!0,label:l.strings.coordinateSystem.x,searchSection:l.strings.alignment.padding}),t.inputNumber({property:"paddingY"},{updownTick:1,showUpdown:!0,label:l.strings.coordinateSystem.y,searchSection:l.strings.alignment.padding})]),t.verticalGroup({header:l.strings.objects.style},[t.mappingEditor(l.strings.objects.fill,"fill",{searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.stroke,"stroke",{searchSection:l.strings.objects.style}),null!=this.object.mappings.stroke?t.mappingEditor(l.strings.objects.strokeWidth,"strokeWidth",{hints:{rangeNumber:[0,5]},defaultValue:1,numberOptions:{showSlider:!0,sliderRange:[0,5],minimum:0},searchSection:l.strings.objects.style}):null,t.mappingEditor(l.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:l.strings.objects.style})])].concat(n)},n.prototype.buildConstraints=function(e){var t=a(e.attrs(this.state.attributes,["x1","y1","x2","y2","cx","cy","width","height"]),8),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=t[5],c=t[6],u=t[7];e.addLinear(A.ConstraintStrength.HARD,0,[[1,o],[-1,n]],[[1,c]]),e.addLinear(A.ConstraintStrength.HARD,0,[[1,i],[-1,r]],[[1,u]]),e.addLinear(A.ConstraintStrength.HARD,0,[[2,s]],[[1,n],[1,o]]),e.addLinear(A.ConstraintStrength.HARD,0,[[2,l]],[[1,r],[1,i]])},n.prototype.getGraphics=function(e,n,r,o,a){var s=this.state.attributes,l=this.object.properties;if(!s.visible||!this.object.properties.visible)return null;var A=l.paddingX||0,d=l.paddingY||0,g=l.alignX||"middle",p=l.alignY||"middle",f=s.image||t.imagePlaceholder;"string"==typeof f&&(f={src:f,width:100,height:100});var m=new u.CoordinateSystemHelper(e),y=u.makeGroup([]);s.fill&&y.elements.push(m.rect(s.x1+n.x,s.y1+n.y,s.x2+n.x,s.y2+n.y,{strokeColor:null,fillColor:s.fill}));var I,C,E=(s.x1+s.x2)/2,b=(s.y1+s.y2)/2,v=c.Geometry.pointDistance(e.transformPoint(s.x1+n.x,b+n.y),e.transformPoint(s.x2+n.x,b+n.y)),B=c.Geometry.pointDistance(e.transformPoint(E+n.x,s.y1+n.y),e.transformPoint(E+n.x,s.y2+n.y)),M=Math.max(0,v-2*A),D=Math.max(0,B-2*d);switch(l.imageMode){case"stretch":I=M,C=D;break;case"letterbox":default:f.width/f.height>M/D?(I=M,C=f.height/f.width*M):(C=D,I=f.width/f.height*D)}var x=E,w=b,Q=-I/2,S=-C/2;"start"==g?(x=s.x1,Q=A):"end"==g&&(x=s.x2,Q=-I-A),"start"==p?(w=s.y1,S=d):"end"==p&&(w=s.y2,S=-C-d);var N=u.makeGroup([{type:"image",src:f.src,x:Q,y:S,width:I,height:C,mode:"stretch",style:i(i({},this.generateEmphasisStyle(a)),{colorFilter:a?"alpha(opacity="+100*h.DEFAULT_POWER_BI_OPACITY+")":null})}]);return N.transform=e.getLocalTransform(x+n.x,w+n.y),y.elements.push(N),s.stroke&&y.elements.push(m.rect(s.x1+n.x,s.y1+n.y,s.x2+n.x,s.y2+n.y,{strokeColor:s.stroke,strokeWidth:s.strokeWidth,strokeLinejoin:"miter",fillColor:null})),y.style={opacity:s.opacity},y},n.prototype.getLinkAnchors=function(){var e=this.state.attributes,t=this.object._id;return[{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:-1,y:0}},{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:1,y:0}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:1,y:0}}]},{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:0,y:-1}},{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:0,y:1}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.cx,y:e.y1,xAttribute:"cx",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.cx,y:e.y2,xAttribute:"cx",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.x1,y:e.cy,xAttribute:"x1",yAttribute:"cy",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.cy,xAttribute:"x2",yAttribute:"cy",direction:{x:1,y:0}}]}]},n.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"width",accept:{kind:d.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"width",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}},{type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"height",accept:{kind:d.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"height",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}}]},n.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x1"}],value:t,span:[n,o]},{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x2"}],value:r,span:[n,o]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y1"}],value:n,span:[t,r]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y2"}],value:o,span:[t,r]},{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:r,y:n,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},n.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return{type:"rectangle",cx:(t+r)/2,cy:(n+o)/2,width:Math.abs(r-t),height:Math.abs(o-n),rotation:0}},n.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:r,attribute:"x2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:n,attribute:"y1"},{type:"y",value:o,attribute:"y2"},{type:"y",value:e.cy,attribute:"cy"}]},n.prototype.getTemplateParameters=function(){var e,t=[];return this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"strokeWidth"},type:d.AttributeType.Number,default:this.state.attributes.strokeWidth}),this.object.mappings.opacity&&this.object.mappings.opacity.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"opacity"},type:d.AttributeType.Number,default:this.state.attributes.opacity}),this.object.mappings.visible&&this.object.mappings.visible.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"visible"},type:d.AttributeType.Number,default:this.state.attributes.visible}),this.object.mappings.image&&this.object.mappings.image.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"image"},type:d.AttributeType.Image,default:null===(e=this.state.attributes.image)||void 0===e?void 0:e.src}),this.object.mappings.fill&&this.object.mappings.fill.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"fill"},type:d.AttributeType.Color,default:c.rgbToHex(this.state.attributes.fill)}),this.object.mappings.stroke&&this.object.mappings.stroke.type===g.MappingType.value&&t.push({objectID:this.object._id,target:{attribute:"stroke"},type:d.AttributeType.Color,default:c.rgbToHex(this.state.attributes.stroke)}),{properties:t}},n.classID="mark.image",n.type="mark",n.metadata={displayName:"Image",iconPath:"FileImage",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},n.defaultProperties=i(i({},p.ObjectClass.defaultProperties),{visible:!0,imageMode:"letterbox",paddingX:0,paddingY:0,alignX:"middle",alignY:"middle"}),n.defaultMappingValues={strokeWidth:1,opacity:1,visible:!0},n}(h.EmphasizableMarkClass);t.ImageElementClass=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedChartElementClass=void 0;var l=n(12),c=n(38),u=n(22),A=n(26),d=n(6),g=n(6),p=n(68),h=n(347),f=n(82),m=n(7),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=h.nestedChartAttributes,t.attributeNames=Object.keys(h.nestedChartAttributes),t}return o(t,e),t.prototype.initializeState=function(){e.prototype.initializeState.call(this);var t=this.state.attributes;t.x1=-15,t.y1=-25,t.x2=15,t.y2=25,t.cx=0,t.cy=0,t.width=30,t.height=50,t.visible=!0},t.prototype.getAttributePanelWidgets=function(e){return[e.verticalGroup({header:m.strings.objects.nestedChart.sizeAndShape},[e.mappingEditor(m.strings.objects.width,"width",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:m.strings.objects.nestedChart.sizeAndShape}),e.mappingEditor(m.strings.objects.height,"height",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:m.strings.objects.nestedChart.sizeAndShape}),e.mappingEditor(m.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:m.strings.objects.nestedChart.sizeAndShape}),e.nestedChartEditor({property:"specification"},{specification:this.object.properties.specification,dataset:this.getDataset(0),width:this.state.attributes.width,height:this.state.attributes.height,searchSection:m.strings.objects.nestedChart.sizeAndShape})])]},t.prototype.buildConstraints=function(e){var t=i(e.attrs(this.state.attributes,["x1","y1","x2","y2","cx","cy","width","height"]),8),n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7];e.addLinear(A.ConstraintStrength.HARD,0,[[1,o],[-1,n]],[[1,c]]),e.addLinear(A.ConstraintStrength.HARD,0,[[1,a],[-1,r]],[[1,u]]),e.addLinear(A.ConstraintStrength.HARD,0,[[2,s]],[[1,n],[1,o]]),e.addLinear(A.ConstraintStrength.HARD,0,[[2,l]],[[1,r],[1,a]])},t.prototype.getFilterCondition=function(){var e=this.getChartClass().manager,t=this.getPlotSegmentClass(),n=l.getByName(e.dataset.tables,t.object.table),r=t.state.dataRowIndices[0][0],o=n.rows[r];return t.object.groupBy?{column:t.object.groupBy.expression,value:o[t.object.groupBy.expression]}:null},t.prototype.getDataset=function(e){var t,n,r,o,i=this.getChartClass().manager,s=this.getPlotSegmentClass(),u=l.getByName(i.dataset.tables,s.object.table),A=this.object.properties.columnNameMap;if(u.columns.length===Object.keys(A).length){if(null==A){A={};try{for(var d=a(u.columns),g=d.next();!g.done;g=d.next()){var p=g.value;A[p.name]=p.name}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}this.object.properties.columnNameMap=A}}else{A={};try{for(var h=a(u.columns),f=h.next();!f.done;f=h.next()){p=f.value;A[p.name]=p.name}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}this.object.properties.columnNameMap=A}var m=s.state.dataRowIndices[e];return{name:"NestedData",tables:[{name:"MainTable",displayName:"MainTable",columns:u.columns.map((function(e){return{name:A[e.name],displayName:A[e.name],type:e.type,metadata:e.metadata}})),rows:function(e){return e.map((function(e){var t=u.rows[e],n={_id:t._id};for(var r in A)n[A[r]]=t[r];return n}))}(m),type:c.TableType.Main,localeNumberFormat:u.localeNumberFormat}]}},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var i=this.state.attributes;if(!i.visible||!this.object.properties.visible)return null;var a=u.makeGroup([{type:"chart-container",dataset:this.getDataset(n),chart:l.deepClone(this.object.properties.specification),selectable:{plotSegment:this.getPlotSegmentClass().object,glyphIndex:n,rowIndices:this.getPlotSegmentClass().state.dataRowIndices[n]},width:i.width,height:i.height}]);a.transform={angle:0,x:-i.width/2,y:i.height/2};var s=u.makeGroup([a]);return s.transform=e.getLocalTransform(i.cx+t.x,i.cy+t.y),s},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"width",accept:{kind:d.DataKind.Numerical},dropAction:{scaleInference:{attribute:"width",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}},{type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"height",accept:{kind:d.DataKind.Numerical},dropAction:{scaleInference:{attribute:"height",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}}]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x1"}],value:t,span:[n,o]},{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x2"}],value:r,span:[n,o]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y1"}],value:n,span:[t,r]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y2"}],value:o,span:[t,r]},{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:r,y:n,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return{type:"rectangle",cx:(t+r)/2,cy:(n+o)/2,width:Math.abs(r-t),height:Math.abs(o-n),rotation:0}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:r,attribute:"x2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:n,attribute:"y1"},{type:"y",value:o,attribute:"y2"},{type:"y",value:e.cy,attribute:"cy"}]},t.createDefault=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.createDefault.apply(this,s(t)),o=l.uniqueID(),i="MainTable";return r.properties.specification={_id:l.uniqueID(),classID:"chart.rectangle",properties:{name:"Nested Chart",backgroundColor:null,backgroundOpacity:1},mappings:{marginTop:{type:g.MappingType.value,value:25},marginBottom:{type:g.MappingType.value,value:10},marginLeft:{type:g.MappingType.value,value:10},marginRight:{type:g.MappingType.value,value:10}},glyphs:[{_id:o,classID:"glyph.rectangle",properties:{name:"Glyph"},table:i,marks:[{_id:l.uniqueID(),classID:"mark.anchor",properties:{name:"Anchor"},mappings:{x:{type:g.MappingType.parent,parentAttribute:"icx"},y:{type:g.MappingType.parent,parentAttribute:"icy"}}}],mappings:{},constraints:[]}],elements:[{_id:l.uniqueID(),classID:"plot-segment.cartesian",glyph:o,table:i,filter:null,mappings:{x1:{type:g.MappingType.parent,parentAttribute:"x1"},y1:{type:g.MappingType.parent,parentAttribute:"y1"},x2:{type:g.MappingType.parent,parentAttribute:"x2"},y2:{type:g.MappingType.parent,parentAttribute:"y2"}},properties:{name:"PlotSegment1",visible:!0,marginX1:0,marginY1:0,marginX2:0,marginY2:0,sublayout:{type:f.Region2DSublayoutType.DodgeX,order:null,ratioX:.1,ratioY:.1,align:{x:f.SublayoutAlignment.Start,y:f.SublayoutAlignment.Start},grid:{direction:f.GridDirection.X,xCount:null,yCount:null,gridStartPosition:f.GridStartPosition.LeftTop}}}},{_id:l.uniqueID(),classID:"mark.text",properties:{name:"Title",visible:!0,alignment:{x:"middle",y:"top",xMargin:0,yMargin:5},rotation:0},mappings:{x:{type:g.MappingType.parent,parentAttribute:"cx"},y:{type:g.MappingType.parent,parentAttribute:"oy2"},text:{type:g.MappingType.value,value:"Nested Chart"},fontSize:{type:g.MappingType.value,value:12},color:{type:g.MappingType.value,value:{r:0,g:0,b:0}}}}],scales:[],scaleMappings:[],constraints:[],resources:[]},r},t.prototype.getTemplateParameters=function(){return{inferences:[{objectID:this.object._id,dataSource:{table:this.getGlyphClass().object.table},nestedChart:{columnNameMap:this.object.properties.columnNameMap}}]}},t.classID="mark.nested-chart",t.type="mark",t.metadata={displayName:"NestedChart",iconPath:"BarChartVerticalFilter",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},t.defaultProperties={visible:!0},t.defaultMappingValues={visible:!0},t}(p.EmphasizableMarkClass);t.NestedChartElementClass=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.LinearBooleanScale=t.LinearBooleanScaleMode=t.LinearColorScale=t.LinearScale=void 0;var s=n(7),l=n(12),c=n(26),u=n(6),A=n(6),d=n(24),g=n(168),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["rangeMin","rangeMax"],t.attributes={rangeMin:{name:"rangeMin",type:u.AttributeType.Number,defaultValue:0},rangeMax:{name:"rangeMax",type:u.AttributeType.Number}},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){var t=this.state.attributes,n=this.object.properties,r=n.domainMin,o=n.domainMax,i=t.rangeMin;return(e-r)/(o-r)*(t.rangeMax-i)+i},t.prototype.buildConstraint=function(e,t,n){var r=this.state.attributes,o=this.object.properties,i=o.domainMin,a=(e-i)/(o.domainMax-i);n.addLinear(c.ConstraintStrength.HARD,0,[[1,t]],[[1-a,n.attr(r,"rangeMin")],[a,n.attr(r,"rangeMax")]])},t.prototype.initializeState=function(){var e=this.state.attributes;e.rangeMin=0,e.rangeMax=100},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.state.attributes,r=this.object.properties,o=new l.Scale.LinearScale,i=e.filter((function(e){return"number"==typeof e}));o.inferParameters(i),o.adjustDomain(t),(t.extendScaleMin||void 0===r.domainMin)&&(r.domainMin=o.domainMin),(t.extendScaleMax||void 0===r.domainMax)&&(r.domainMax=o.domainMax),t.reuseRange||(t.rangeNumber?(n.rangeMin=t.rangeNumber[0],n.rangeMax=t.rangeNumber[1]):(n.rangeMin=0,n.rangeMax=100),t.autoRange||(this.object.mappings.rangeMin={type:A.MappingType.value,value:n.rangeMin},this.object.mappings.rangeMax={type:A.MappingType.value,value:n.rangeMax}),"always"===t.startWithZero&&(this.object.mappings.rangeMin={type:A.MappingType.value,value:0}))},t.prototype.getAttributePanelWidgets=function(e){return[e.sectionHeader(s.strings.objects.dataAxis.domain),e.inputNumber({property:"domainMin"},{label:s.strings.objects.dataAxis.start,stopPropagation:!0}),e.inputNumber({property:"domainMax"},{label:s.strings.objects.dataAxis.end,stopPropagation:!0,styles:{marginBottom:"0.5rem"}}),e.sectionHeader(s.strings.objects.dataAxis.autoUpdateValues),e.inputBoolean({property:"autoDomainMin"},{type:"checkbox",label:s.strings.objects.dataAxis.start}),e.inputBoolean({property:"autoDomainMax"},{type:"checkbox",label:s.strings.objects.dataAxis.end}),e.sectionHeader(s.strings.objects.dataAxis.range),e.mappingEditor(s.strings.objects.dataAxis.start,"rangeMin",{defaultValue:0,stopPropagation:!0}),e.mappingEditor(s.strings.objects.dataAxis.end,"rangeMax",{defaultAuto:!0,stopPropagation:!0})]},t.prototype.getTemplateParameters=function(){var t=e.prototype.getTemplateParameters.call(this);return t.properties||(t.properties=[]),t.properties.push({objectID:this.object._id,target:{property:"domainMin"},type:u.AttributeType.Number}),t.properties.push({objectID:this.object._id,target:{property:"domainMax"},type:u.AttributeType.Number}),t.properties.push({objectID:this.object._id,target:{attribute:"rangeMin"},type:u.AttributeType.Number,default:null}),t.properties.push({objectID:this.object._id,target:{attribute:"rangeMax"},type:u.AttributeType.Number,default:null}),t},t.classID="scale.linear<number,number>",t.type="scale",t.defaultMappingValues={rangeMin:0},t.defaultProperties={autoDomainMin:!0,autoDomainMax:!0},t}(g.ScaleClass);function h(){return{colorspace:d.Colorspace.Lab,colors:[{r:255,g:255,b:255},{r:0,g:0,b:0}]}}t.LinearScale=p;var f,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){var t=this.object.properties,n=t.domainMin,r=(e-n)/(t.domainMax-n);return l.interpolateColors(t.range.colors,t.range.colorspace)(r)},t.prototype.buildConstraint=function(e,t,n){},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new l.Scale.LinearScale,o=e.filter((function(e){return"number"==typeof e}));r.inferParameters(o),(t.extendScaleMin||void 0===n.domainMin)&&(n.domainMin=r.domainMin),(t.extendScaleMax||void 0===n.domainMax)&&(n.domainMax=r.domainMax),t.reuseRange||(n.range=h())},t.prototype.getAttributePanelWidgets=function(e){return[e.sectionHeader(s.strings.objects.dataAxis.domain),e.inputNumber({property:"domainMin"},{stopPropagation:!0,label:s.strings.objects.dataAxis.start}),e.inputNumber({property:"domainMax"},{stopPropagation:!0,label:s.strings.objects.dataAxis.end,styles:{marginBottom:"0.5rem"}}),e.sectionHeader(s.strings.objects.dataAxis.autoUpdateValues),e.inputBoolean({property:"autoDomainMin"},{type:"checkbox",label:s.strings.objects.dataAxis.autoMin}),e.inputBoolean({property:"autoDomainMax"},{type:"checkbox",label:s.strings.objects.dataAxis.autoMax,styles:{marginBottom:"0.5rem"}}),e.sectionHeader(s.strings.objects.dataAxis.gradient),e.inputColorGradient({property:"range",noComputeLayout:!0},!0)]},t.prototype.getTemplateParameters=function(){var t=e.prototype.getTemplateParameters.call(this);return t.properties||(t.properties=[]),t.properties.push({objectID:this.object._id,target:{property:"domainMin"},type:u.AttributeType.Number}),t.properties.push({objectID:this.object._id,target:{property:"domainMax"},type:u.AttributeType.Number}),t},t.classID="scale.linear<number,color>",t.type="scale",t.metadata={displayName:s.strings.objects.scale,iconPath:"scale/color"},t.defaultMappingValues={range:h()},t}(g.ScaleClass);t.LinearColorScale=m,function(e){e.GreaterThan="Greater than",e.LessThan="Less than",e.Between="Between",e.EqualTo="Equal to",e.GreaterThanOrEqualTo="Greater than or equal to",e.LessThanOrEqualTo="Less than or equal to",e.NotBetween="Not between",e.NotEqualTo="Not Equal to"}(f=t.LinearBooleanScaleMode||(t.LinearBooleanScaleMode={}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){var t=this.object.properties,n=e;switch(t.mode){case f.GreaterThan:return n>t.min;case f.GreaterThanOrEqualTo:return n>=t.min;case f.LessThan:return n<t.max;case f.LessThanOrEqualTo:return n<=t.max;case f.EqualTo:return n==t.min;case f.NotEqualTo:return n!=t.min;case f.Between:return n<=t.max&&n>=t.min;case f.NotBetween:return n>t.max||n<t.min}},t.prototype.buildConstraint=function(){},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new l.Scale.LinearScale,o=e.filter((function(e){return"number"==typeof e}));r.inferParameters(o),(t.extendScaleMin||void 0===n.min)&&(n.min=r.domainMin),(t.extendScaleMax||void 0===n.max)&&(n.max=r.domainMax),n.mode=f.GreaterThan},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[],r=t.mode===f.EqualTo||t.mode===f.NotEqualTo;return t.mode!==f.GreaterThan&&t.mode!==f.GreaterThanOrEqualTo&&t.mode!==f.Between&&t.mode!==f.NotBetween&&t.mode!==f.EqualTo&&t.mode!==f.NotEqualTo||n.push(e.vertical(this.object.inputType===u.DataType.Date?e.inputDate({property:"min"},{label:r?s.strings.objects.scales.date:s.strings.objects.scales.startDate}):e.inputNumber({property:"min"},{stopPropagation:!0,label:r?s.strings.objects.scales.value:s.strings.objects.scales.minimumValue}))),t.mode!==f.LessThan&&t.mode!==f.LessThanOrEqualTo&&t.mode!==f.Between&&t.mode!==f.NotBetween||n.push(this.object.inputType===u.DataType.Date?e.inputDate({property:"max"},{label:s.strings.objects.scales.endDate}):e.inputNumber({property:"max"},{stopPropagation:!0,label:s.strings.objects.scales.maximumValue})),a([e.sectionHeader(s.strings.typeDisplayNames.boolean),e.inputSelect({property:"mode"},{type:"dropdown",options:[f.GreaterThan,f.GreaterThanOrEqualTo,f.LessThan,f.LessThanOrEqualTo,f.EqualTo,f.NotEqualTo,f.Between,f.NotBetween],labels:[f.GreaterThan,f.GreaterThanOrEqualTo,f.LessThan,f.LessThanOrEqualTo,f.EqualTo,f.NotEqualTo,f.Between,f.NotBetween],showLabel:!0,label:s.strings.objects.scales.mode})],n)},t.prototype.getTemplateParameters=function(){var t=e.prototype.getTemplateParameters.call(this),n=this.object.properties;return t.properties||(t.properties=[]),n.mode!==f.GreaterThan&&n.mode!==f.GreaterThanOrEqualTo||t.properties.push({objectID:this.object._id,target:{property:"min"},type:u.AttributeType.Number,default:this.object.properties.min}),n.mode!==f.LessThan&&n.mode!==f.LessThanOrEqualTo||t.properties.push({objectID:this.object._id,target:{property:"max"},type:u.AttributeType.Number,default:this.object.properties.max}),n.mode!==f.Between&&n.mode!==f.NotBetween||(t.properties.push({objectID:this.object._id,target:{property:"min"},type:u.AttributeType.Number,default:this.object.properties.min}),t.properties.push({objectID:this.object._id,target:{property:"max"},type:u.AttributeType.Number,default:this.object.properties.max})),n.mode!==f.EqualTo&&n.mode!==f.NotEqualTo||t.properties.push({objectID:this.object._id,target:{property:"min"},type:u.AttributeType.Number,default:this.object.properties.min}),t},t.classID="scale.linear<number,boolean>",t.type="scale",t.defaultMappingValues={min:0,max:1,mode:f.GreaterThan},t}(g.ScaleClass);t.LinearBooleanScale=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectClassCache=void 0;var r=n(50),o=function(){function e(){this.cache=new WeakMap}return e.prototype.clear=function(){this.cache=new WeakMap},e.prototype.hasClass=function(e){return this.cache.has(e)},e.prototype.getMarkClass=function(e){return this.getClass(e)},e.prototype.getGlyphClass=function(e){return this.getClass(e)},e.prototype.getPlotSegmentClass=function(e){return this.getClass(e)},e.prototype.getChartElementClass=function(e){return this.getClass(e)},e.prototype.getScaleClass=function(e){return this.getClass(e)},e.prototype.getChartClass=function(e){return this.getClass(e)},e.prototype.getClass=function(e){if(this.cache.has(e))return this.cache.get(e);throw new Error("class not found for state")},e.prototype.createMarkClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createGlyphClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createPlotSegmentClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createChartElementClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createScaleClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createChartClass=function(e,t,n){return this.createClass(e,t,n)},e.prototype.createClass=function(e,t,n){var o=r.ObjectClasses.Create(e,t,n);return this.cache.set(n,o),o},e}();t.ObjectClassCache=o},function(e,t){
/*!
 * assertion-error
 * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
 * MIT Licensed
 */
/*!
 * Return a function that will copy properties from
 * one object to another excluding any originally
 * listed. Returned function will create a new `{}`.
 *
 * @param {String} excluded properties ...
 * @return {Function}
 */
function n(){var e=[].slice.call(arguments);function t(t,n){Object.keys(n).forEach((function(r){~e.indexOf(r)||(t[r]=n[r])}))}return function(){for(var e=[].slice.call(arguments),n=0,r={};n<e.length;n++)t(r,e[n]);return r}}function r(e,t,o){var i=n("name","message","stack","constructor","toJSON")(t||{});for(var a in this.message=e||"Unspecified AssertionError",this.showDiff=!1,i)this[a]=i[a];if(o=o||r,Error.captureStackTrace)Error.captureStackTrace(this,o);else try{throw new Error}catch(e){this.stack=e.stack}}
/*!
 * Inherit from Error.prototype
 */
/*!
 * Primary Exports
 */
e.exports=r,r.prototype=Object.create(Error.prototype),
/*!
 * Statically set name
 */
r.prototype.name="AssertionError",
/*!
 * Ensure correct constructor
 */
r.prototype.constructor=r,r.prototype.toJSON=function(e){var t=n("constructor","toJSON","stack")({name:this.name},this);return!1!==e&&this.stack&&(t.stack=this.stack),t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){
/*!
 * Chai - getActual utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t){return t.length>4?t[4]:e._obj}},function(e,t,n){
/*!
 * Chai - flag utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(170),o=n(86);e.exports=function(e){var t=r(e),n=Object.prototype.toString.call(e);if(o.truncateThreshold&&t.length>=o.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var i=Object.keys(e);return"{ Object ("+(i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", "))+") }"}return t}return t}},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=r.call(e).match(o);n&&(t=n[1])}else t=e.name;return t}},function(e,t){
/*!
 * Chai - getProperties utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var r=Object.getPrototypeOf(e);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}},function(e,t){
/*!
 * Chai - getOwnEnumerablePropertySymbols utility
 * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoordinateSystemHelper=t.BezierCurveCoordinates=t.PolarCoordinates=t.CartesianCoordinates=t.CoordinateSystem=void 0;var i=n(22),a=n(12),s=n(162),l=function(){};t.CoordinateSystem=l;var c=function(e){function t(t){void 0===t&&(t={x:0,y:0});var n=e.call(this)||this;return n.origin=t,n}return o(t,e),t.prototype.getBaseTransform=function(){return{x:this.origin.x,y:this.origin.y,angle:0}},t.prototype.transformPoint=function(e,t){return{x:e,y:t}},t.prototype.transformDirectionAtPoint=function(e,t,n,r){return{x:n,y:r}},t.prototype.transformPointWithBase=function(e,t){return{x:e+this.origin.x,y:t+this.origin.y}},t.prototype.transformDirectionAtPointWithBase=function(e,t,n,r){return{x:n,y:r}},t.prototype.getLocalTransform=function(e,t){return{x:e,y:t,angle:0}},t}(l);t.CartesianCoordinates=c;var u=Math.sqrt(60),A=function(e){function t(t,n,r,o){void 0===t&&(t={x:0,y:0}),void 0===n&&(n=0),void 0===r&&(r=1),void 0===o&&(o=!1);var i=e.call(this)||this;return i.origin=t,i.radial1=n,i.radial2=r,i.distortY=o,i}return o(t,e),t.prototype.getBaseTransform=function(){return{x:this.origin.x,y:this.origin.y,angle:0}},t.prototype.transformRadial=function(e){return this.distortY?Math.sqrt(Math.max(0,(this.radial1+this.radial2)*e-this.radial1*this.radial2)):e},t.prototype.inverseTransformRadial=function(e){var t=e/u;return t*t},t.prototype.transformPoint=function(e,t){return{x:this.transformRadial(t)*Math.sin(a.Geometry.degreesToRadians(e)),y:this.transformRadial(t)*Math.cos(a.Geometry.degreesToRadians(e))}},t.prototype.transformDirectionAtPoint=function(e,t,n,r){var o=a.Geometry.degreesToRadians(-e);return{x:n*Math.cos(o)-r*Math.sin(o),y:n*Math.sin(o)+r*Math.cos(o)}},t.prototype.getLocalTransform=function(e,t){var n=a.Geometry.degreesToRadians(e);return{x:this.transformRadial(t)*Math.sin(n),y:this.transformRadial(t)*Math.cos(n),angle:-e}},t.prototype.transformPointWithBase=function(e,t){var n=a.Geometry.degreesToRadians(e);return{x:this.transformRadial(t)*Math.sin(n)+this.origin.x,y:this.transformRadial(t)*Math.cos(n)+this.origin.y}},t.prototype.transformDirectionAtPointWithBase=function(e,t,n,r){var o=a.Geometry.degreesToRadians(-e);return{x:n*Math.cos(o)-r*Math.sin(o),y:n*Math.sin(o)+r*Math.cos(o)}},t}(l);t.PolarCoordinates=A;var d=function(e){function t(t,n){void 0===t&&(t={x:0,y:0});var r=e.call(this)||this;return r.origin=t,r.curve=n,r}return o(t,e),t.prototype.getBaseTransform=function(){return{x:this.origin.x,y:this.origin.y,angle:0}},t.prototype.transformPoint=function(e,t){var n=this.curve.getFrameAtS(e);return{x:n.p.x+t*n.n.x,y:n.p.y+t*n.n.y}},t.prototype.transformDirectionAtPoint=function(e,t,n,r){var o=this.curve.getFrameAtS(e);return{x:n*o.t.x+r*o.n.x,y:n*o.t.y+r*o.n.y}},t.prototype.getLocalTransform=function(e,t){var n=this.curve.getFrameAtS(e),r=Math.atan2(n.t.y,n.t.x)/Math.PI*180;return{x:n.p.x+t*n.n.x,y:n.p.y+t*n.n.y,angle:r}},t.prototype.transformPointWithBase=function(e,t){var n=this.transformPoint(e,t);return{x:n.x+this.origin.x,y:n.y+this.origin.y}},t.prototype.transformDirectionAtPointWithBase=function(e,t,n,r){return this.transformDirectionAtPoint(e,t,n,r)},t.prototype.getLength=function(){return this.curve.getLength()},t.prototype.getCurve=function(){return this.curve},t}(l);t.BezierCurveCoordinates=d;var g=function(){function e(e){this.coordinateSystem=e}return e.prototype.rect=function(e,t,n,r,o,a,s){if(void 0===o&&(o={}),void 0===a&&(a=0),void 0===s&&(s=0),this.coordinateSystem instanceof c)return i.makeRect(e,t,n,r,o,a,s);var l=i.makePath(o);return this.lineTo(l,e,t,e,r,!0),this.lineTo(l,e,r,n,r,!1),this.lineTo(l,n,r,n,t,!1),this.lineTo(l,n,t,e,t,!1),l.closePath(),l.path},e.prototype.ellipse=function(e,t,n,r,o){if(void 0===o&&(o={}),this.coordinateSystem instanceof c)return s.makeEllipse(e,t,n,r,o);for(var a=i.makePath(o),l=(e+n)/2,u=(t+r)/2,A=Math.abs(n-e)/2,d=Math.abs(r-t)/2,g=0;g<32;g++){var p=g/32*(2*Math.PI),h=(g+1)/32*(2*Math.PI);this.lineTo(a,l+A*Math.cos(p),u+d*Math.sin(p),l+A*Math.cos(h),u+d*Math.sin(h),0==g)}return a.closePath(),a.path},e.prototype.line=function(e,t,n,r,o){if(void 0===o&&(o={}),this.coordinateSystem instanceof c)return i.makeLine(e,t,n,r,o);var a=i.makePath(o);return this.lineTo(a,e,t,n,r,!0),a.path},e.prototype.lineTo=function(e,t,n,r,o,i){var s=this.coordinateSystem;if(i){var l=s.transformPoint(t,n);e.moveTo(l.x,l.y)}if(s instanceof c&&e.lineTo(r,o),s instanceof A&&e.polarLineTo(0,0,90-t,s.transformRadial(n),90-r,s.transformRadial(o),!1),s instanceof d)if(Math.abs(t-r)<1e-6){l=s.transformPoint(r,o);e.lineTo(l.x,l.y)}else for(var u=s.getLocalTransform(t,n),g=Math.atan2(o-n,r-t),p=Math.max(2,Math.ceil(3*s.getCurve().getSegments().length*Math.abs(r-t)/s.getCurve().getLength())),h=1;h<=p;h++){var f=h/p,m=s.getLocalTransform((r-t)*f+t,(o-n)*f+n),y=a.Geometry.pointDistance(m,u)/3,I=a.Geometry.degreesToRadians(u.angle)+g,C=a.Geometry.degreesToRadians(m.angle)+g;e.cubicBezierCurveTo(u.x+Math.cos(I)*y,u.y+Math.sin(I)*y,m.x-Math.cos(C)*y,m.y-Math.sin(C)*y,m.x,m.y),u=m}},e.prototype.arcTo=function(e,t,n,r,o,i,a,s){return void 0===s&&(s=1),this.coordinateSystem instanceof c?(e.arcTo(t,n,0,0,s,i,a),e.path):(this.lineTo(e,r,o,i,a,!0),e.path)},e}();t.CoordinateSystemHelper=g},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Application=t.NestedEditorEventType=t.ApplicationExtensionContext=void 0;var i=n(0),a=n(90),s=n(171),l=n(37),c=n(5),u=n(619),A=n(9),d=n(19),g=n(106),p=n(621),h=n(7),f=n(27);n(622).initializeIcons();var m=n(56),y=n(6),I=n(45),C=function(){function e(e){this.app=e}return e.prototype.getGlobalDispatcher=function(){return this.app.appStore.dispatcher},e.prototype.getAppStore=function(){return this.app.appStore},e.prototype.getApplication=function(){return this.app},e}();t.ApplicationExtensionContext=C,function(e){e.Load="load",e.Save="save"}(t.NestedEditorEventType||(t.NestedEditorEventType={}));var E=function(){function e(){}return e.prototype.destroy=function(){a.unmountComponentAtNode(document.getElementById(this.containerID))},e.prototype.initialize=function(e,t,n,A,d,g){var h,m,y;return r(this,void 0,void 0,(function(){var r,I,E,b,v,B=this;return o(this,(function(o){switch(o.label){case 0:return this.config=e,this.containerID=t,[4,c.initialize(e)];case 1:return o.sent(),n.worker?this.worker=n.worker:this.worker=new u.CharticulatorWorker(n.workerScriptContent),[4,this.worker.initialize(e)];case 2:o.sent(),this.appStore=new l.AppStore(this.worker,p.makeDefaultDataset()),(null==g?void 0:g.nestedEditor)&&(this.nestedEditor=null==g?void 0:g.nestedEditor,(null==g?void 0:g.nestedEditor.onOpenEditor)&&this.appStore.addListener(l.AppStore.EVENT_OPEN_NESTED_EDITOR,(function(e,t,n){B.nestedEditor.onOpenEditor(e,t,n)})));try{r=c.parseSafe(window.localStorage.getItem(f.LocalStorageKeys.UtcTimeZone),!0),I=c.parseSafe(window.localStorage.getItem(f.LocalStorageKeys.CurrencySymbol),c.defaultCurrency),E=c.parseSafe(window.localStorage.getItem(f.LocalStorageKeys.DelimiterSymbol)||c.defaultDelimiter,c.defaultDelimiter),b=c.parseSafe(window.localStorage.getItem(f.LocalStorageKeys.GroupSymbol),c.defaultDigitsGroup),v=c.parseSafe(window.localStorage.getItem(f.LocalStorageKeys.NumberFormatRemove)||c.defaultNumberFormat.remove,c.defaultNumberFormat.remove),this.appStore.setLocaleFileFormat({currency:c.parseSafe(I,c.defaultCurrency),delimiter:E,group:c.parseSafe(b,c.defaultDigitsGroup),numberFormat:{decimal:","===v?".":",",remove:","===v?",":"."},utcTimeZone:void 0!==d?d:r}),c.setFormatOptions({currency:c.parseSafe(I,c.defaultCurrency),grouping:c.parseSafe(b,c.defaultDigitsGroup),decimal:","===v?".":",",thousands:","===v?",":"."}),c.setTimeZone(void 0!==d?d:r)}catch(e){c.setFormatOptions({currency:null!==(h=[null==A?void 0:A.currency,""])&&void 0!==h?h:c.defaultCurrency,grouping:c.defaultDigitsGroup,decimal:null!==(m=null==A?void 0:A.decemalDelimiter)&&void 0!==m?m:c.defaultNumberFormat.decimal,thousands:null!==(y=null==A?void 0:A.thousandsDelimiter)&&void 0!==y?y:c.defaultNumberFormat.decimal}),console.warn("Loadin localization settings failed")}return window.mainStore=this.appStore,a.render(i.createElement(s.MainView,{store:this.appStore,ref:function(e){return B.mainView=e},viewConfiguration:this.config.MainView,menuBarHandlers:null==g?void 0:g.menuBarHandlers,tabButtons:null==g?void 0:g.tabButtons,telemetry:null==g?void 0:g.telemetry}),document.getElementById(t)),this.extensionContext=new C(this),e.Extensions&&e.Extensions.forEach((function(e){var t=document.createElement("script");"string"==typeof e.script?t.src=e.script:(t.integrity=e.script.integrity,t.src=e.script.src+"?sha256="+e.script.sha256),t.onload=function(){new Function("application",e.initialize)(B)},document.body.appendChild(t)})),[4,this.processHashString()];case 3:return o.sent(),[2]}}))}))},e.prototype.setupNestedEditor=function(e,t,n,r,o){var i=this,a=this.appStore,s=function(t){var s,u=t;u.specification.mappings.width={type:y.MappingType.value,value:u.width},u.specification.mappings.height={type:y.MappingType.value,value:u.height};var A=new c.Prototypes.ChartStateManager(u.specification,u.dataset,null,{},{},c.deepClone(u.specification));u.template&&null==u.template.version&&(u.template.version=m.defaultVersionOfTemplate);var g=(new l.Migrator).migrate({chart:A.chart,chartState:A.chartState,dataset:A.dataset,version:(null===(s=u.template)||void 0===s?void 0:s.version)||m.defaultVersionOfTemplate,originDataset:a.originDataset},"2.2.0");a.dispatcher.dispatch(new d.Actions.ImportChartAndDataset(u.specification,u.dataset,{filterCondition:u.filterCondition},u.originSpecification)),u.template&&(u.template.version=g.version),r&&a.addListener(l.AppStore.EVENT_NESTED_EDITOR_CLOSE,(function(){r()}));var p=i.config.CorsPolicy&&i.config.CorsPolicy.Embedded?I.EditorType.Embedded:I.EditorType.Nested;o&&(p=o),a.setupNestedEditor((function(t){var r=c.deepClone(a.buildChartTemplate());window.opener?window.opener.postMessage({id:e,type:"save",specification:t,template:r},document.location.origin):(i.config.CorsPolicy&&i.config.CorsPolicy.TargetOrigins&&window.parent.postMessage({id:e,type:"save",specification:t,template:r},i.config.CorsPolicy.TargetOrigins),(i.config.CorsPolicy&&i.config.CorsPolicy.Embedded||n)&&n({specification:t,template:r}))}),p)}.bind(this);window.addEventListener("message",(function(t){t.data.id==e&&s(t.data)})),window.opener?window.opener.postMessage({id:e,type:"initialized"},document.location.origin):this.config.CorsPolicy&&this.config.CorsPolicy.TargetOrigins?window.parent.postMessage({id:e,type:"initialized"},this.config.CorsPolicy.TargetOrigins):(this.config.CorsPolicy&&this.config.CorsPolicy.Embedded&&t||t)&&t(e,(function(e){s(e)}))},e.prototype.processHashString=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:return(e=A.parseHashString(document.location.hash)).nestedEditor?(document.title=h.strings.app.nestedChartTitle,this.setupNestedEditor(e.nestedEditor),[3,9]):[3,1];case 1:return e.loadDataset?(n=JSON.parse(e.dataset),[4,(new c.Dataset.DatasetLoader).loadDatasetFromSourceSpecification(n)]):[3,3];case 2:return r=o.sent(),this.appStore.dispatcher.dispatch(new d.Actions.ImportDataset(r)),[3,9];case 3:return e.loadCSV?(t={delimiter:c.defaultDelimiter,numberFormat:c.defaultNumberFormat,currency:null,group:null,utcTimeZone:!0},n={tables:e.loadCSV.split("|").map((function(e){return{url:e,localeFileFormat:t}}))},[4,(new c.Dataset.DatasetLoader).loadDatasetFromSourceSpecification(n)]):[3,5];case 4:return r=o.sent(),this.appStore.dispatcher.dispatch(new d.Actions.ImportDataset(r)),[3,9];case 5:return e.load?[4,fetch(e.load)]:[3,8];case 6:return[4,o.sent().json()];case 7:return i=o.sent(),this.appStore.dispatcher.dispatch(new d.Actions.Load(i.state)),[3,9];case 8:this.mainView.refMenuBar.showFileModalWindow(g.MainTabs.new),o.label=9;case 9:return[2]}}))}))},e.prototype.addExtension=function(e){e.activate(this.extensionContext)},e.prototype.registerExportTemplateTarget=function(e,t){this.appStore.registerExportTemplateTarget(e,t)},e.prototype.unregisterExportTemplateTarget=function(e){this.appStore.unregisterExportTemplateTarget(e)},e}();t.Application=E},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonRaised=t.ButtonFlatPanel=t.ButtonFlat=t.MenuButton=t.AppButton=t.BaseButton=t.FluentToolButton=t.ToolButton=void 0;var i=n(0),a=n(9),s=n(226),l=n(100),c=n(13),u=n(7),A=n(11),d=n(23),g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1},n}return o(t,e),t.prototype.render=function(){var e=this,t=function(){e.props.onClick&&e.props.onClick()};return this.props.dragData?i.createElement(s.DraggableElement,{dragData:this.props.dragData,onDragStart:function(){return e.setState({dragging:!0})},onDragEnd:function(){return e.setState({dragging:!1})},renderDragElement:function(){return[i.createElement(l.SVGImageIcon,{url:e.props.icon,width:32,height:32}),{x:-16,y:-16}]}},i.createElement("span",{className:a.classNames("charticulator__button-tool",["is-active",this.props.active||this.state.dragging],["is-disabled",this.props.disabled]),title:this.props.title,onClick:t},this.props.icon?i.createElement(l.SVGImageIcon,{url:this.props.icon}):null,this.props.text?i.createElement("span",{className:"el-text"},this.props.text):null),i.createElement("span",{style:{position:"relative",bottom:"-7px",left:"-20px"},onClick:t},this.props.compact?i.createElement(l.SVGImageIcon,{url:c.getSVGIcon("general/triangle-right-bottom")}):null)):i.createElement("span",{className:a.classNames("charticulator__button-tool",["is-active",this.props.active],["is-disabled",this.props.disabled]),title:this.props.title,onClick:t},this.props.icon?i.createElement(l.SVGImageIcon,{url:this.props.icon}):null,this.props.text?i.createElement("span",{className:"el-text"},this.props.text):null)},t}(i.Component);t.ToolButton=g;var p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1},n}return o(t,e),t.prototype.render=function(){var e=this,t=function(){e.props.onClick&&e.props.onClick()};return this.props.dragData?i.createElement(s.DraggableElement,{dragData:this.props.dragData,onDragStart:function(){return e.setState({dragging:!0})},onDragEnd:function(){return e.setState({dragging:!1})},renderDragElement:function(){return[i.createElement(l.SVGImageIcon,{url:e.props.icon,width:32,height:32}),{x:-16,y:-16}]}},i.createElement(d.FluentButton,{marginTop:"0px"},i.createElement(A.CommandBarButton,{onClick:t,checked:this.props.active||this.state.dragging,disabled:this.props.disabled,text:this.props.text,title:this.props.title,iconProps:{iconName:this.props.icon},styles:{root:{minWidth:"unset"}}}))):i.createElement(d.FluentButton,{marginTop:"0px"},i.createElement(A.CommandBarButton,{onClick:t,checked:this.props.active,disabled:this.props.disabled,text:this.props.text,title:this.props.title,iconProps:{iconName:this.props.icon},styles:{root:{minWidth:"unset"}}}))},t}(i.Component);t.FluentToolButton=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._doClick=t.doClick.bind(t),t}return o(t,e),t.prototype.doClick=function(e){this.props.onClick&&this.props.onClick(),this.props.stopPropagation&&e.stopPropagation()},t}(i.PureComponent);t.BaseButton=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{tabIndex:0,className:"charticulator__button-menu-app charticulator-title__button",title:this.props.title,onClick:this._doClick,onKeyPress:function(t){"Enter"===t.key&&e._doClick()}},i.createElement(l.SVGImageIcon,{url:c.getSVGIcon("app-icon")}),i.createElement("span",{className:"el-text"},this.props.name||u.strings.app.name))},t}(h);t.AppButton=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props;return t.text?i.createElement("span",{tabIndex:0,className:a.classNames("charticulator__button-menu-text",["is-disabled",this.props.disabled]),title:t.title,onClick:this._doClick,onKeyPress:function(t){"Enter"===t.key&&e._doClick()}},i.createElement(l.SVGImageIcon,{url:t.url}),i.createElement("span",{className:"el-text"},t.text)):i.createElement("span",{tabIndex:0,className:"charticulator__button-menu",title:t.title,onClick:this._doClick,onKeyPress:function(t){"Enter"===t.key&&e._doClick()}},i.createElement(l.SVGImageIcon,{url:t.url}))},t}(h);t.MenuButton=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props;return e.url?e.text?i.createElement("button",{className:"charticulator__button-flat",title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url}),i.createElement("span",{className:"el-text"},e.text)):i.createElement("button",{className:"charticulator__button-flat",title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url})):i.createElement("button",{className:"charticulator__button-flat",title:e.title,onClick:this._doClick},i.createElement("span",{className:"el-text"},e.text))},t}(h);t.ButtonFlat=y;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props;return e.url?e.text?i.createElement("span",{className:a.classNames("charticulator__button-flat-panel",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url}),i.createElement("span",{className:"el-text"},e.text)):i.createElement("span",{className:a.classNames("charticulator__button-flat-panel",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url})):i.createElement("span",{className:a.classNames("charticulator__button-flat-panel",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement("span",{className:"el-text"},e.text))},t}(h);t.ButtonFlatPanel=I;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props;return e.url?e.text?i.createElement("span",{className:a.classNames("charticulator__button-raised",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url}),i.createElement("span",{className:"el-text"},e.text)):i.createElement("span",{className:a.classNames("charticulator__button-raised",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement(l.SVGImageIcon,{url:e.url})):i.createElement("span",{className:a.classNames("charticulator__button-raised",["is-disabled",this.props.disabled]),title:e.title,onClick:this._doClick},i.createElement("span",{className:"el-text"},e.text))},t}(h);t.ButtonRaised=C},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClickableSVGElement=t.DraggableElement=void 0;var i=n(0),a=n(27),s=n(9),l=n(29),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1},n}return o(t,e),t.prototype.componentDidMount=function(){a.dragController.registerDraggable(this,this.refs.draggableContainer,this.props.onTap)},t.prototype.componentWillUnmount=function(){a.dragController.unregisterDraggable(this)},t.prototype.onDragStart=function(){return this.setState({dragging:!0}),this.props.onDragStart&&this.props.onDragStart(),this.props.dragData()},t.prototype.onDragEnd=function(){this.setState({dragging:!1}),this.props.onDragEnd&&this.props.onDragEnd()},t.prototype.renderDragElement=function(){return this.props.renderDragElement?this.props.renderDragElement():[i.createElement("span",null,this.props.children),{x:0,y:0}]},t.prototype.render=function(){return i.createElement("span",{ref:"draggableContainer",className:s.classNames(this.props.className,"draggable",["dragging",this.state.dragging]),style:{display:"inline-block",cursor:"pointer"}},this.props.children)},t}(i.Component);t.DraggableElement=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new l(this.refs.container),this.hammer.add(new l.Tap),this.hammer.on("tap",(function(){e.props.onClick&&e.props.onClick()}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),this.hammer=null},t.prototype.render=function(){return i.createElement("g",{ref:"container",style:{cursor:"pointer"}},this.props.children)},t}(i.Component);t.ClickableSVGElement=u},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0wIDBoMTI4djIwNDhIMFYwem0xNDA4IDg5NkgyNTZWMzg0aDExNTJ2NTEyem0tMTI4LTM4NEgzODR2MjU2aDg5NlY1MTJ6bTY0MCA2NDB2NTEySDI1NnYtNTEyaDE2NjR6bS0xMjggMTI4SDM4NHYyNTZoMTQwOHYtMjU2eiIgLz4KPC9zdmc+"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46),o=n(36),i=n(63);function a(e){var t=o.b.getInstance(),n=t.getClassName(),a=[];for(var s in e)e.hasOwnProperty(s)&&a.push(s,"{",Object(i.b)(Object(r.a)(),e[s]),"}");var l=a.join("");return t.insertRule("@keyframes "+n+"{"+l+"}",!0),t.cacheClassName(n,l,[],["keyframes",l]),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46),o=n(36),i=n(63);function a(e){o.b.getInstance().insertRule("@font-face{"+Object(i.b)(Object(r.a)(),e)+"}",!0)}},function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var a=i[r];o(e||{},a)}return e}function o(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var a=n.indexOf(i)>-1;e[r]=a?i:o(e[r]||{},i,n)}}return n.pop(),e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t){for(var n=Object(r.a)({},t),o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];void 0===n[a]&&(n[a]=e[a])}return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,o=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,i=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,a=/\s+/g,s=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function l(e,t,n){return e?(e=function(e){return e=(e=(e=(e=e.replace(r,"")).replace(o,"")).replace(a," ")).trim()}(e),s.test(e)||!n&&i.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(15),o=function(){var e,t,n=Object(r.a)();return!!(null===(t=null===(e=n)||void 0===e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(71);function o(e){Object(r.a)(e,{componentDidMount:i,componentDidUpdate:a,componentWillUnmount:s})}function i(){l(this.props.componentRef,this)}function a(e){e.componentRef!==this.props.componentRef&&(l(e.componentRef,null),l(this.props.componentRef,this))}function s(){l(this.props.componentRef,null)}function l(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=n(0),i=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(139),o=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}},i=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&Object(r.b)(t.refs,e)||(t.resolver=o(t)),t.refs=e,t.resolver}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(0),i=n(95),a=n(16),s=n(151),l=n(54),c=function(e){var t=e.className,n=e.imageProps,c=Object(a.j)(e,a.k,["aria-label","aria-labelledby","title","aria-describedby"]),u=n.alt||e["aria-label"],A=u||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,d={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},g=A?{}:{"aria-hidden":!0};return o.createElement("div",Object(r.a)({},g,c,{className:Object(s.a)(l.a,l.b.root,l.b.image,t)}),o.createElement(i.a,Object(r.a)({},d,n,{alt:A?u:""})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function o(e,t,n){void 0===n&&(n=r);var o=[],i=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[r].apply(t,e)})};for(var a in t)i(a);return o}function i(e,t){t.forEach((function(t){return delete e[t]}))}},function(e,t,n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r,o=n(15);function i(e){if(void 0===r||e){var t=Object(o.a)(),n=t&&t.navigator.userAgent;r=!!n&&-1!==n.indexOf("Macintosh")}return!!r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"i",(function(){return A})),n.d(t,"c",(function(){return d})),n.d(t,"k",(function(){return g})),n.d(t,"j",(function(){return p})),n.d(t,"o",(function(){return h})),n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return m})),n.d(t,"l",(function(){return y})),n.d(t,"a",(function(){return I})),n.d(t,"p",(function(){return C})),n.d(t,"b",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"d",(function(){return B}));var r=n(291),o=n(289),i=n(96),a=n(15),s=n(35);function l(e,t,n){return p(e,t,!0,!1,!1,n)}function c(e,t,n){return g(e,t,!0,!1,!0,n)}function u(e,t,n,r){return void 0===r&&(r=!0),p(e,t,r,!1,!1,n,!1,!0)}function A(e,t,n,r){return void 0===r&&(r=!0),g(e,t,r,!1,!0,n,!1,!0)}function d(e){var t=p(e,e,!0,!1,!1,!0);return!!t&&(b(t),!0)}function g(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=h(t);if(o&&l&&(i||!m(t)&&!y(t))){var c=g(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&f(c,!0)||!s)return c;var u=g(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var A=c.parentElement;A&&A!==t;){var d=g(e,A.previousElementSibling,!0,!0,!0,i,a,s);if(d)return d;A=A.parentElement}}}if(n&&l&&f(t,s))return t;var p=g(e,t.previousElementSibling,!0,!0,!0,i,a,s);return p||(r?null:g(e,t.parentElement,!0,!1,!1,i,a,s))}function p(e,t,n,r,o,i,a,s){if(!t||t===e&&o&&!a)return null;var l=h(t);if(n&&l&&f(t,s))return t;if(!o&&l&&(i||!m(t)&&!y(t))){var c=p(e,t.firstElementChild,!0,!0,!1,i,a,s);if(c)return c}if(t===e)return null;var u=p(e,t.nextElementSibling,!0,!0,!1,i,a,s);return u||(r?null:p(e,t.parentElement,!1,!1,!0,i,a,s))}function h(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function f(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function m(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function y(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function I(e){var t=Object(s.a)(e),n=t&&t.activeElement;return!(!n||!Object(o.a)(e,n))}function C(e,t){return"true"!==Object(r.a)(e,t)}var E=void 0;function b(e){if(e){if(E)return void(E=e);E=e;var t=Object(a.a)(e);t&&t.requestAnimationFrame((function(){E&&E.focus(),E=void 0}))}}function v(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return n=f(n)&&h(n)?n:p(e,n,!0)||g(e,n)}function B(e,t){for(var n=[];t&&e&&t!==e;){var r=Object(i.a)(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(0),o=n(15),i=n(94),a=n(48),s=new WeakMap;function l(e,t){var n,r=s.get(e);return n=r?r+t:1,s.set(e,n),n}function c(e){r.useEffect((function(){var t,n,r=Object(o.a)(null===(t=e)||void 0===t?void 0:t.current);if(r&&!0!==(null===(n=r.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var i=l(r,1);return i<=1&&(r.addEventListener("mousedown",A,!0),r.addEventListener("pointerdown",d,!0),r.addEventListener("keydown",g,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(i=l(r,-1))&&(r.removeEventListener("mousedown",A,!0),r.removeEventListener("pointerdown",d,!0),r.removeEventListener("keydown",g,!0))}}}),[e])}var u=function(e){return c(e.rootRef),null};function A(e){Object(a.b)(!1,e.target)}function d(e){"mouse"!==e.pointerType&&Object(a.b)(!1,e.target)}function g(e){Object(i.b)(e.which)&&Object(a.b)(!0,e.target)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(0),i=n(43),a=n(61),s=n(144),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){i.a.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){i.a.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return o.createElement(a.a.Consumer,null,(function(n){var r=Object(s.a)(e.props,n);return t&&(r=t(r)),o.createElement(a.a.Provider,{value:r},e.props.children)}))},t}(o.Component)},function(e,t,n){"use strict";function r(e){var t=function(e){var t;"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0);return t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(1),o=n(0),i=n(138),a=n(72),s=n(145),l=n(146),c=n(141),u=function(e){function t(n,r){var o=e.call(this,n,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)A(e,t,n[r])}(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}return Object(r.c)(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new i.a(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new a.a(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){Object(c.a)(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){Object(l.a)(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){Object(s.a)(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(o.Component);function A(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function d(){return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(0),i=n(43),a=n(140),s=n(61),l=n(78);function c(e,t,n){return function(c){var u,A=((u=function(a){function u(e){var t=a.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return Object(r.c)(u,a),u.prototype.componentDidMount=function(){i.a.observe(this._onSettingChanged)},u.prototype.componentWillUnmount=function(){i.a.unobserve(this._onSettingChanged)},u.prototype.render=function(){var a=this;return o.createElement(s.a.Consumer,null,(function(s){var u=i.a.getSettings(t,e,s.customizations),A=a.props;if(u.styles&&"function"==typeof u.styles&&(u.styles=u.styles(Object(r.a)(Object(r.a)({},u),A))),n&&u.styles){if(a._styleCache.default!==u.styles||a._styleCache.component!==A.styles){var d=Object(l.a)(u.styles,A.styles);a._styleCache.default=u.styles,a._styleCache.component=A.styles,a._styleCache.merged=d}return o.createElement(c,Object(r.a)({},u,A,{styles:a._styleCache.merged}))}return o.createElement(c,Object(r.a)({},u,A))}))},u.prototype._onSettingChanged=function(){this.forceUpdate()},u}(o.Component)).displayName="Customized"+e,u);return Object(a.a)(c,A)}}},function(e,t,n){"use strict";function r(e){return e.clientWidth<e.scrollWidth}function o(e){return e.clientHeight<e.scrollHeight}function i(e){return r(e)||o(e)}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=/[\{\}]/g,o=/\{\d+\}/g;function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t;function a(e){var t=i[e.replace(r,"")];return null==t&&(t=""),t}return e.replace(o,a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(35);function o(e){for(var t,n=[],o=Object(r.a)(e)||document;e!==o.body;){for(var i=0,a=e.parentElement.children;i<a.length;i++){var s=a[i];s!==e&&"true"!==(null===(t=s.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(s)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(47);var o=Object(r.a)((function(e){return Object(r.a)((function(t){var n=Object(r.a)((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function i(e,t){return o(e)(t)}},function(e,t,n){"use strict";function r(){0}function o(e){}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),o=n(0),i=n(47);var a=Object(i.a)((function(e){var t=e;return Object(i.a)((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var a=n,s=Object(i.a)((function(e){return function(t){return o.createElement(a,Object(r.a)({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,Object(r.a)({},e,{defaultRender:n?s(n):a}))}}))}));function s(e,t){return a(e)(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(71),o=function(e){var t;return function(n){t||(t=new Set,Object(r.a)(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var o=requestAnimationFrame((function(){t.delete(o),n()}));t.add(o)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(72),o=n(143),i=n(147),a=function(){function e(e){this._events=new r.a(this),this._scrollableParent=Object(o.f)(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=Object(i.a)(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var r,o,i,a=this._scrollRect.top,s=this._scrollRect.left,l=a+this._scrollRect.height-100,c=s+this._scrollRect.width-100;n<a+100||n>l?(o=n,r=a,i=l,this._isVerticalScroll=!0):(o=t,r=s,i=c,this._isVerticalScroll=!1),this._scrollVelocity=o<r+100?Math.max(-15,(100-(o-r))/100*-15):o>i?Math.min(15,(o-i)/100*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}()},function(e,t,n){"use strict";function r(e,t){var n=e.left||e.x||0,r=e.top||e.y||0,o=t.left||t.x||0,i=t.top||t.y||0;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}function o(e){var t,n=e.contentSize,r=e.boundsSize,o=e.mode,i=void 0===o?"contain":o,a=e.maxScale,s=void 0===a?1:a,l=n.width/n.height,c=r.width/r.height;t=("contain"===i?l>c:l<c)?r.width/n.width:r.height/n.height;var u=Math.min(s,t);return{width:n.width*u,height:n.height*u}}function i(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function a(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(16),o={label:r.p,audio:r.b,video:r.z,ol:r.r,li:r.q,a:r.a,button:r.e,input:r.o,textarea:r.w,select:r.t,option:r.s,table:r.u,tr:r.y,th:r.x,td:r.v,colGroup:r.f,col:r.g,form:r.i,iframe:r.l,img:r.n};function i(e,t,n){var i=e&&o[e]||r.k;return Object(r.j)(t,i,n)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStore=void 0;var i=n(12),a=function(e){function t(t){var n=e.call(this)||this;return n._id=i.uniqueID(),n.parent=t,n.dispatcher=null!=t?t.dispatcher:new i.Dispatcher,n.dispatcherID=n.dispatcher.register((function(e){return n.handleAction(e)})),n}return o(t,e),t.prototype.handleAction=function(e){e.digest()},t.prototype.destroy=function(){null!=this.dispatcherID&&this.dispatcher.unregister(this.dispatcherID)},t}(i.EventEmitter);t.BaseStore=a},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionHandlerRegistry=void 0;var o=function(){function e(){this.handlers=[]}return e.prototype.add=function(e,t){this.handlers.push({constructor:e,handler:t})},e.prototype.handleAction=function(e,t){var n,o;try{for(var i=r(this.handlers),a=i.next();!a.done;a=i.next()){var s=a.value;t instanceof s.constructor&&s.handler.call(e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e}();t.ActionHandlerRegistry=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputText=void 0;var i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentWillUpdate=function(e){this.inputElement.value=null!=e.defaultValue?e.defaultValue:""},t.prototype.doEnter=function(){(null!=this.props.defaultValue?this.props.defaultValue:"")!=this.inputElement.value&&(this.props.onEnter&&this.props.onEnter(this.inputElement.value)||(this.inputElement.value=null!=this.props.defaultValue?this.props.defaultValue:""))},t.prototype.doCancel=function(){this.inputElement.value=null!=this.props.defaultValue?this.props.defaultValue:"",this.props.onCancel&&this.props.onCancel()},Object.defineProperty(t.prototype,"value",{get:function(){return this.inputElement.value},set:function(e){this.inputElement.value=e},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return i.createElement("input",{className:"charticulator__widget-control-input-field",type:"text",ref:function(t){return e.inputElement=t},defaultValue:null!=this.props.defaultValue?this.props.defaultValue:"",placeholder:this.props.placeholder,onKeyDown:function(t){"Enter"==t.key&&e.doEnter(),"Escape"==t.key&&e.doCancel()},onFocus:function(){e.inputElement.setSelectionRange(0,e.inputElement.value.length,"backward")},onBlur:function(){e.doEnter()}})},t}(i.Component);t.InputText=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var i=n(29),a=n(0),s=n(9),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentValue:t.defaultValue,dragging:!1},n}return o(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({currentValue:e.defaultValue})},t.prototype.niceValue=function(e){var t=Math.ceil(Math.log(this.props.max-this.props.min)/Math.log(10)+2);return e=parseFloat(e.toPrecision(t)),e=Math.min(this.props.max,Math.max(this.props.min,e))},t.prototype.valueToRatio=function(e){return"sqrt"==this.props.mapping?(Math.sqrt(e)-Math.sqrt(this.props.min))/(Math.sqrt(this.props.max)-Math.sqrt(this.props.min)):(e-this.props.min)/(this.props.max-this.props.min)},t.prototype.ratioToValue=function(e){if("sqrt"==this.props.mapping){var t=e*(Math.sqrt(this.props.max)-Math.sqrt(this.props.min))+Math.sqrt(this.props.min);return t*t}return e*(this.props.max-this.props.min)+this.props.min},t.prototype.componentDidMount=function(){var e=this;this.hammer=new i(this.refs.svg),this.hammer.add(new i.Pan({threshold:0})),this.hammer.add(new i.Tap);this.hammer.on("panstart pan panend tap",(function(t){var n=e.refs.svg.getBoundingClientRect().left,r=(t.center.x-n-13)/(e.props.width-13-13);r=Math.max(0,Math.min(1,r));var o=e.niceValue(e.ratioToValue(r));e.setState({currentValue:o}),e.props.onChange&&("panend"==t.type||"tap"==t.type?e.props.onChange(o,!0):e.props.onChange(o,!1)),"panstart"==t.type&&e.setState({dragging:!0}),"panend"==t.type&&e.setState({dragging:!1})}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.min,o=n.max,i=n.width,l=(e=null!=this.state.currentValue?this.state.currentValue:(r+o)/2,t.valueToRatio(e)*(i-13-13)+13);return a.createElement("span",{className:"charticulator__widget-control-slider"},a.createElement("svg",{width:i,height:24,ref:"svg",className:s.classNames(["invalid",null==this.state.currentValue],["active",this.state.dragging])},a.createElement("line",{className:"track",x1:13,x2:i-13,y1:12,y2:12}),a.createElement("line",{className:"track-highlight",x1:13,x2:l,y1:12,y2:12}),a.createElement("circle",{className:"indicator",cx:l,cy:12,r:6})))},t}(a.Component);t.Slider=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GradientView=t.GradientPalettes=void 0;var a=n(0),s=n(13),l=n(182),c=n(11),u=n(5),A=n(104),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t,n=this,r=s.predefinedPalettes.filter((function(e){return"sequential"==e.type||"diverging"==e.type})),o=[],u=new Map;try{for(var d=i(r),p=d.next();!p.done;p=d.next()){var h=p.value,f=h.name.split("/")[0],m=void 0;u.has(f)?m=o[u.get(f)][1]:(m=[],u.set(f,o.length),o.push([f,m])),m.push(h)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}return a.createElement(l.TabWrapper,null,o.map((function(e,t){return a.createElement("div",{key:"group-section-"+t},a.createElement(c.Label,null,e[0]),e[1].map((function(e){var t={colors:e.colors[0],colorspace:A.Colorspace.LAB};return a.createElement(l.PalettesWrapper,{key:e.name,onClick:function(){return n.props.selectGradient(t,!0)}},a.createElement(g,{gradient:t}),a.createElement(c.Label,{styles:l.colorPalettesLabelStyles},e.name.split("/")[1]))})))})))},t}(a.Component);t.GradientPalettes=d;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate()},t.prototype.componentDidUpdate=function(){var e=this;setTimeout((function(){if(e.refCanvas&&e.props.gradient){for(var t=e.refCanvas.getContext("2d"),n=e.refCanvas.width,r=e.refCanvas.height,o=u.interpolateColors(e.props.gradient.colors,e.props.gradient.colorspace),i=t.getImageData(0,0,n,r),a=0;a<i.width;a++)for(var s=o(a/(i.width-1)),l=0;l<i.height;l++){var c=4*(a+l*i.width);i.data[c++]=s.r,i.data[c++]=s.g,i.data[c++]=s.b,i.data[c++]=255}t.putImageData(i,0,0)}}),0)},t.prototype.render=function(){var e=this;return a.createElement(l.ColorGradientWrapper,{className:"gradient-view"},a.createElement("canvas",{ref:function(t){return e.refCanvas=t},height:2,style:{width:"100%"}}))},t}(a.PureComponent);t.GradientView=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TableView=void 0;var i=n(0),a=n(9),s=n(11),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.table,n=this.props.onTypeChange,r=t.rows.length;return null!=this.props.maxRows&&r>this.props.maxRows&&(r=this.props.maxRows),i.createElement("table",{className:"charticulator__dataset-table-view"},i.createElement("thead",null,i.createElement("tr",null,t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(e){return i.createElement("th",{key:e.name},e.name)})))),i.createElement("tbody",null,n&&i.createElement("tr",{key:-1},t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(r,o){var l=a.getConvertableTypes(r.type,t.rows.slice(0,10).map((function(e){return e[r.name]})));return i.createElement("td",{key:r.name+"-"+o},i.createElement(s.Dropdown,{onChange:function(t,o){n(r.name,o.key),e.forceUpdate()},styles:{title:{borderWidth:"0px"}},selectedKey:r.type,options:l.map((function(e){var t=e.toString();return{key:e,text:t[0].toUpperCase()+t.slice(1)}}))}))}))),t.rows.slice(0,r).map((function(e){return i.createElement("tr",{key:e._id},t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(t,n){return t.metadata.rawColumnName?i.createElement("td",{key:t.name+"-"+n},null!=e[t.metadata.rawColumnName]&&e[t.metadata.rawColumnName].toString()):i.createElement("td",{key:t.name+"-"+n},null!=e[t.name]&&e[t.name].toString())})))})),t.rows.length>r?i.createElement("tr",null,t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(e,n){return 0==n?i.createElement("td",{key:n},"(",t.rows.length-r," more rows)"):i.createElement("td",{key:n},"...")}))):null))},t}(i.Component);t.TableView=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FileViewImport=t.MappingMode=void 0;var i,a=n(0),s=n(14),l=n(32),c=n(40),u=n(81),A=n(7);!function(e){e[e.ImportTemplate=0]="ImportTemplate",e[e.ImportDataset=1]="ImportDataset"}(i=t.MappingMode||(t.MappingMode={}));var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={columnMappings:new Map},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.tables,n=new Map(this.state.columnMappings);return t.forEach((function(t,r){var o,i=null===(o=e.props.datasetTables[r])||void 0===o?void 0:o.columns;if(i){var a=new Set;t.columns.forEach((function(e){i.forEach((function(t){t.displayName!==e.name||e.type!==t.type&&e.type!==u.DataType.String||n.get(e.name)||(n.set(e.name,t.name),a.add(t))}))})),t.columns.forEach((function(e){n.get(e.name)||i.forEach((function(t){e.type!==t.type||a.has(t)||(n.set(e.name,t.name),a.add(t))}))}))}})),a.createElement(s.FloatingPanel,{floatInCenter:!0,scroll:!0,peerGroup:"import",title:A.strings.templateImport.title,closeButtonIcon:"ChromeClose",height:600,width:800,onClose:this.props.onClose},a.createElement("section",{className:"charticulator__file-view-mapping_view"},a.createElement("section",null,t&&t.map((function(t){return a.createElement("div",{className:"charticulator__file-view-mapping_table",key:t.name},a.createElement("h4",null,e.props.mode===i.ImportTemplate?A.strings.templateImport.usbtitleImportTemplate:A.strings.templateImport.usbtitleImportData),a.createElement("table",{className:"charticulator__file-view-mapping_table"},a.createElement("thead",null,a.createElement("tr",{className:"charticulator__file-view-mapping_rows"},a.createElement("th",{className:"charticulator__file-view-mapping_row_item"},e.props.mode===i.ImportTemplate?A.strings.templateImport.columnNameTemplate:A.strings.templateImport.columnNameChart),a.createElement("th",{className:"charticulator__file-view-mapping_row_item"},A.strings.templateImport.dataType),a.createElement("th",{className:"charticulator__file-view-mapping_row_item"},A.strings.templateImport.examples),a.createElement("th",{className:"charticulator__file-view-mapping_row_item"},A.strings.templateImport.mapped))),a.createElement("tbody",null,t.columns.map((function(r){var o,i,s=e.props.datasetTables.find((function(n){return n.name===(e.props.tableMapping.get(t.name)||t.name)})),l=(null==s?void 0:s.columns.filter((function(e){return e.type===r.type||r.type===u.DataType.String})).map((function(e){return e.displayName})))||[];return a.createElement(a.Fragment,{key:t.name+"-"+r.name},a.createElement("tr",{className:"charticulator__file-view-mapping_rows"}," ",a.createElement("td",{className:"charticulator__file-view-mapping_row_item"},r.name),a.createElement("td",{className:"charticulator__file-view-mapping_row_item"},A.strings.typeDisplayNames[r.type]),a.createElement("td",{className:"charticulator__file-view-mapping_row_item"},r.metadata.examples),a.createElement("td",{className:"charticulator__file-view-mapping_row_item"},a.createElement(c.Select,{labels:l,icons:null,options:l,value:(i=r.name,function(){var e=n.get(i);return e||A.strings.templateImport.unmapped})().toString(),showText:!0,onChange:(o=r.name,function(t){n.set(o,t),e.setState({columnMappings:n})})}))))})))))})),a.createElement("div",{className:"charticulator__file-view-mapping_row_button_toolbar"},a.createElement(s.ButtonRaised,{onClick:function(){e.props.onClose()},text:A.strings.button.cancel}),a.createElement(s.ButtonRaised,{onClick:function(){0===e.props.unmappedColumns.filter((function(t){return void 0===e.state.columnMappings.get(t.name)})).length&&e.props.onSave(e.state.columnMappings)},text:A.strings.templateImport.save,disabled:0!==this.props.unmappedColumns.filter((function(t){return void 0===e.state.columnMappings.get(t.name)})).length})))))},t}(l.ContextedComponent);t.FileViewImport=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BoundingBoxView=void 0;var i=n(0),a=n(5),s=n(9),l=n(69),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseLeave=n.handleMouseLeave.bind(n),n}return o(t,e),t.prototype.handleClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.handleMouseEnter=function(){this.props.onMouseEnter&&this.props.onMouseEnter()},t.prototype.handleMouseLeave=function(){this.props.onMouseLeave&&this.props.onMouseLeave()},t.prototype.render=function(){var e=this.props.boundingBox,t=this.props.zoom,n=this.props.offset||{x:0,y:0},r=this.props.coordinateSystem||new a.Graphics.CartesianCoordinates,o=new a.Graphics.CoordinateSystemHelper(r),c=s.classNames("bounding-box",["active",this.props.active],["visible",e.visible],["interactable",null!=this.props.onClick]);switch(e.type){case"rectangle":var u=(g=e).cx+n.x,A=g.cy+n.y,d=o.rect(u-g.width/2,A-g.height/2,u+g.width/2,A+g.height/2);return i.createElement("g",{className:c,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,transform:s.toSVGZoom(t)+" translate("+s.toSVGNumber(r.getBaseTransform().x)+","+s.toSVGNumber(-r.getBaseTransform().y)+")"},l.renderGraphicalElementSVG(d,{className:"element-shape ghost",noStyle:!0}),l.renderGraphicalElementSVG(d,{className:"element-shape indicator",noStyle:!0}));case"anchored-rectangle":u=(g=e).anchorX+n.x,A=g.anchorY+n.y;var g,p={x:g.cx,y:g.cy,angle:g.rotation},h=a.Graphics.concatTransform(a.Graphics.concatTransform(r.getBaseTransform(),r.getLocalTransform(u,A)),p),f=a.Geometry.applyZoom(t,{x:h.x,y:-h.y}),m=0;return i.createElement("g",{className:c,transform:"translate("+s.toSVGNumber(f.x)+","+s.toSVGNumber(f.y)+")rotate("+-h.angle+")",onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i.createElement("rect",{className:"element-shape ghost",x:-g.width/2*t.scale-m,y:-g.height/2*t.scale-m,width:g.width*t.scale+2*m,height:g.height*t.scale+2*m}),i.createElement("rect",{className:"element-shape indicator",x:-g.width/2*t.scale,y:-g.height/2*t.scale,width:g.width*t.scale,height:g.height*t.scale}));case"circle":var y=e,I=(u=y.cx+n.x,A=y.cy+n.y,r.transformPointWithBase(u,A)),C=(m=2,f=a.Geometry.applyZoom(t,{x:I.x,y:-I.y}),y.radius*t.scale);return i.createElement("g",{className:c,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i.createElement("circle",{className:"element-shape ghost",cx:f.x,cy:f.y,r:C+m}),i.createElement("circle",{className:"element-shape indicator",cx:f.x,cy:f.y,r:C}));case"line":var E=e;if(E.morphing){d=o.line(E.x1+n.x,E.y1+n.y,E.x2+n.x,E.y2+n.y);return i.createElement("g",{className:c,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,transform:s.toSVGZoom(t)+" translate("+s.toSVGNumber(r.getBaseTransform().x)+","+s.toSVGNumber(-r.getBaseTransform().y)+")"},l.renderGraphicalElementSVG(d,{className:"element-line ghost",noStyle:!0}),l.renderGraphicalElementSVG(d,{className:"element-line indicator",noStyle:!0}))}var b=r.transformPointWithBase(E.x1+n.x,E.y1+n.y),v=r.transformPointWithBase(E.x2+n.x,E.y2+n.y);return b=a.Geometry.applyZoom(t,{x:b.x,y:-b.y}),v=a.Geometry.applyZoom(t,{x:v.x,y:-v.y}),i.createElement("g",{className:c,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i.createElement("line",{className:"element-line ghost",x1:b.x,y1:b.y,x2:v.x,y2:v.y}),i.createElement("line",{className:"element-line indicator",x1:b.x,y1:b.y,x2:v.x,y2:v.y}))}},t}(i.Component);t.BoundingBoxView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.CreatingComponentFromCreatingInteraction=t.CreatingComponent=t.PointSnapping=void 0;var l=n(0),c=n(29),u=n(5),A=n(6),d=function(){function e(e,t){void 0===t&&(t=10),this.guides=e,this.snappedGuides=new Set,this.threshold=t}return e.prototype.beginSnapping=function(){this.snappedGuides=new Set},e.prototype.snapXValue=function(e){var t,n,r=null,o=null,a=1e10,s=0;try{for(var l=i(this.guides),c=l.next();!c.done;c=l.next()){var u=c.value;switch(u.guide.type){case"x":var d=u.guide,g=Math.abs(d.value-e);if(g<this.threshold&&(null==r||g<a)){if(a=g,null==u.element)r={type:A.MappingType.parent,parentAttribute:d.attribute};else r={type:A.MappingType._element,element:u.element._id,attribute:d.attribute};s=d.value,o=u}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return r?(this.snappedGuides.add(o),[s,r]):[e,null]},e.prototype.snapYValue=function(e){var t,n,r=null,o=null,a=1e10,s=0;try{for(var l=i(this.guides),c=l.next();!c.done;c=l.next()){var u=c.value;switch(u.guide.type){case"y":var d=u.guide,g=Math.abs(d.value-e);if(g<this.threshold&&(null==r||g<a)){if(a=g,null==u.element)r={type:A.MappingType.parent,parentAttribute:d.attribute};else r={type:A.MappingType._element,element:u.element._id,attribute:d.attribute};s=d.value,o=u}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return r?(this.snappedGuides.add(o),[s,r]):[e,null]},e.prototype.endSnapping=function(){return this.snappedGuides},e}();t.PointSnapping=d;var g=function(e){function t(t){var n=e.call(this,t)||this;return n.isHammering=!1,n.mode=n.props.mode,n.state={points:null,draggingPoint:null,activeGuides:[],hoverCandidateX:null,hoverCandidateY:null},n}return o(t,e),t.prototype.getPointFromEvent=function(e){var t=this.refs.handler.getBoundingClientRect(),n=u.Geometry.unapplyZoom(this.props.zoom,{x:e.x-t.left,y:e.y-t.top});return{x:n.x,y:-n.y}},t.prototype.initHammer=function(){var e=this;switch(this.hammer.remove("tap"),this.hammer.remove("pan"),this.props.mode){case"point":case"hline":case"vline":this.hammer.add(new c.Tap),this.hammer.on("tap",(function(t){var n=e.getPointFromEvent(t.center),r=e.state.hoverCandidateX,o=e.state.hoverCandidateY;null==r&&(r=[n.x,null]),null==o&&(o=[n.y,null]),"point"==e.props.mode&&e.props.onCreate(r,o),"hline"==e.props.mode&&e.props.onCreate(o),"vline"==e.props.mode&&e.props.onCreate(r)}));break;case"line":case"rectangle":this.hammer.add(new c.Pan),this.hammer.add(new c.Tap),this.hammer.on("tap",(function(){e.props.onCancel()}));var t=null,n=null,r=null,o=null;this.hammer.on("panstart",(function(r){e.isHammering=!0;var o=e.getPointFromEvent(u.Geometry.vectorSub(r.center,{x:r.deltaX,y:r.deltaY})),i=new d(e.props.guides,10/e.props.zoom.scale);i.beginSnapping(),t=i.snapXValue(o.x),n=i.snapYValue(o.y),i.endSnapping(),e.setState({points:[{x:t[0],y:n[0]}],draggingPoint:{x:t[0],y:n[0]}})})),this.hammer.on("pan",(function(i){var a=e.getPointFromEvent(i.center),s=new d(e.props.guides,10/e.props.zoom.scale);s.beginSnapping(),r=s.snapXValue(a.x),o=s.snapYValue(a.y);var l=s.endSnapping();e.setState({points:[{x:t[0],y:n[0]}],draggingPoint:{x:r[0],y:o[0]},activeGuides:Array.from(l)})})),this.hammer.on("panend",(function(){e.isHammering=!1,e.setState({points:null,draggingPoint:null,activeGuides:[]}),e.props.onCreate(t,n,r,o)}))}},t.prototype.componentDidUpdate=function(){var e;this.mode!==this.props.mode&&(this.mode=this.props.mode,null===(e=this.hammer)||void 0===e||e.destroy(),this.hammer=new c(this.refs.handler),this.initHammer())},t.prototype.componentDidMount=function(){this.hammer=new c(this.refs.handler),this.initHammer()},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.getPixelPoint=function(e){return u.Geometry.applyZoom(this.props.zoom,{x:e.x,y:-e.y})},t.prototype.renderHint=function(){switch(this.props.mode){case"point":if(null==this.state.hoverCandidateX||null==this.state.hoverCandidateY)return null;var e=this.getPixelPoint({x:this.state.hoverCandidateX[0],y:this.state.hoverCandidateY[0]});return l.createElement("circle",{cx:e.x,cy:e.y,r:3});case"hline":if(null==this.state.hoverCandidateX||null==this.state.hoverCandidateY)return null;e=this.getPixelPoint({x:this.state.hoverCandidateX[0],y:this.state.hoverCandidateY[0]});return l.createElement("line",{x1:0,x2:this.props.width,y1:e.y,y2:e.y});case"vline":if(null==this.state.hoverCandidateX||null==this.state.hoverCandidateY)return null;e=this.getPixelPoint({x:this.state.hoverCandidateX[0],y:this.state.hoverCandidateY[0]});return l.createElement("line",{y1:0,y2:this.props.height,x1:e.x,x2:e.x});case"line":var t=this.state,n=t.points,r=t.draggingPoint;if(null==n||1!=n.length||null==r)return null;var o=this.getPixelPoint(n[0]),i=this.getPixelPoint(r);return l.createElement("line",{x1:o.x,y1:o.y,x2:i.x,y2:i.y});case"rectangle":var a=this.state;n=a.points,r=a.draggingPoint;if(null==n||1!=n.length||null==r)return null;o=this.getPixelPoint(n[0]),i=this.getPixelPoint(r);return l.createElement("rect",{x:Math.min(o.x,i.x),y:Math.min(o.y,i.y),width:Math.abs(o.x-i.x),height:Math.abs(o.y-i.y)})}},t.prototype.renderSnappingGuides=function(){var e=this,t=this.state.activeGuides;return t&&0!=t.length?t.map((function(t,n){var r="m"+n;switch(t.guide.type){case"x":var o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",x1:o.value*e.props.zoom.scale+e.props.zoom.centerX,x2:o.value*e.props.zoom.scale+e.props.zoom.centerX,y1:0,y2:e.props.height});case"y":o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",y1:-o.value*e.props.zoom.scale+e.props.zoom.centerY,y2:-o.value*e.props.zoom.scale+e.props.zoom.centerY,x1:0,x2:e.props.width})}})):null},t.prototype.render=function(){var e=this;return l.createElement("g",{className:"creating-component"},this.renderSnappingGuides(),this.renderHint(),l.createElement("rect",{className:"interaction-handler",style:{cursor:"crosshair"},ref:"handler",x:0,y:0,width:this.props.width,height:this.props.height,onMouseEnter:function(){var t=function(t){var n=s(e.props.guides);switch(e.props.mode){case"hline":case"vline":n.length=0}var r=new d(n,10/e.props.zoom.scale);if(!e.isHammering){var o=e.getPointFromEvent({x:t.pageX,y:t.pageY});r.beginSnapping();var i=r.snapXValue(o.x),a=r.snapYValue(o.y);e.setState({activeGuides:Array.from(r.endSnapping()),hoverCandidateX:i,hoverCandidateY:a})}},n=function(){e.refs.handler.removeEventListener("mousemove",t),e.refs.handler.removeEventListener("mouseleave",n)};e.refs.handler.addEventListener("mousemove",t),e.refs.handler.addEventListener("mouseleave",n)}}))},t}(l.Component);t.CreatingComponent=g;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.doCreate=function(e){var t=this.props.description,n={},r={};for(var o in t.mapping){if(Object.prototype.hasOwnProperty.call(e,o))n[t.mapping[o]]=e[o]}for(var o in t.valueMappings)n[o]=[null,{type:A.MappingType.value,value:t.valueMappings[o]}];for(var o in t.attributes)r[o]=t.attributes[o];this.props.onCreate(n,r)},t.prototype.render=function(){var e=this,t=this.props.description,n="point",r=this.props.onCancel;function o(e,t){return e[0]<t[0]?[e,t]:[t,e]}switch(t.type){case"point":n="point",r=function(t,n){e.doCreate({x:t,y:n})};break;case"line-segment":n="line",r=function(t,n,r,o){e.doCreate({x1:t,y1:n,x2:r,y2:o})};break;case"rectangle":n="rectangle",r=function(t,n,r,i){var s,l;t=(s=a(o(t,r),2))[0],r=s[1],n=(l=a(o(n,i),2))[0],i=l[1],e.doCreate({xMin:t,yMin:n,xMax:r,yMax:i})}}return l.createElement(g,{width:this.props.width,height:this.props.height,zoom:this.props.zoom,guides:this.props.guides,mode:n,onCancel:this.props.onCancel,onCreate:r})},t}(l.Component);t.CreatingComponentFromCreatingInteraction=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DropZoneView=void 0;var i=n(0),a=n(5),s=n(27),l=n(9),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={active:!1},n}return o(t,e),t.prototype.componentDidMount=function(){s.dragController.registerDroppable(this,this.refs.container)},t.prototype.componentWillUnmount=function(){s.dragController.unregisterDroppable(this)},t.prototype.onDragEnter=function(e){var t=this,n=e.data,r=this.props.onDragEnter(n);return!!r&&(this.setState({active:!0}),e.onLeave((function(){t.setState({active:!1})})),e.onDrop((function(e,t){return r(e,t)})),!0)},t.prototype.makeClosePath=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"M"+e.map((function(e){return e.x+","+e.y})).join("L")+"Z"},t.prototype.makeDashedLine=function(e,t){return i.createElement("line",{className:"dropzone-element-dashline",x1:e.x,y1:e.y,x2:t.x,y2:t.y})},t.prototype.makeLine=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var o=a.Geometry.vectorScale(a.Geometry.vectorNormalize(a.Geometry.vectorSub(t,e)),n),s=a.Geometry.vectorScale(a.Geometry.vectorRotate90(o),.25),l=a.Geometry.vectorAdd(e,o),c=a.Geometry.vectorAdd(l,s),u=a.Geometry.vectorSub(l,s),A=a.Geometry.vectorScale(a.Geometry.vectorNormalize(a.Geometry.vectorSub(t,e)),r),d=a.Geometry.vectorScale(a.Geometry.vectorRotate90(A),.25),g=a.Geometry.vectorSub(t,A),p=a.Geometry.vectorAdd(g,d),h=a.Geometry.vectorSub(g,d);return i.createElement("g",{className:"dropzone-element-line"},i.createElement("line",{x1:l.x,y1:l.y,x2:g.x,y2:g.y,style:{strokeLinecap:"butt"}}),n>0?i.createElement("path",{d:this.makeClosePath(c,u,e)}):null,",",r>0?i.createElement("path",{d:this.makeClosePath(p,h,t)}):null)},t.prototype.makeTextAtCenter=function(e,t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=0);var a=(e.x+t.x)/2,s=(e.y+t.y)/2,l=Math.atan2(t.y-e.y,t.x-e.x),c="";return Math.abs(l)<Math.PI/2&&(c="translate(0, -4.5) rotate(180) translate(0, 4.5)"),i.createElement("g",{transform:"translate("+a+","+s+") rotate("+(l+Math.PI)/Math.PI*180+") translate("+r+","+o+") "+c},i.createElement("text",{className:"dropzone-element-text",x:0,y:0,style:{textAnchor:"middle"}},n))},t.prototype.renderElement=function(e){switch(e.type){case"line":var t=(s=e).p1,n=s.p2;n=a.Geometry.applyZoom(this.props.zoom,{x:n.x,y:-n.y}),t=a.Geometry.applyZoom(this.props.zoom,{x:t.x,y:-t.y});var r=a.Geometry.vectorNormalize(a.Geometry.vectorSub(t,n)),o=a.Geometry.vectorRotate90(r);return i.createElement("g",null,i.createElement("path",{className:"dropzone-highlighter",d:this.makeClosePath(a.Geometry.vectorAdd(n,a.Geometry.vectorScale(o,-10)),a.Geometry.vectorAdd(t,a.Geometry.vectorScale(o,-10)),a.Geometry.vectorAdd(t,a.Geometry.vectorScale(o,25)),a.Geometry.vectorAdd(n,a.Geometry.vectorScale(o,25)))}),i.createElement("path",{className:"dropzone-element-solid",d:this.makeClosePath(n,t,a.Geometry.vectorAdd(t,a.Geometry.vectorScale(o,5)),a.Geometry.vectorAdd(n,a.Geometry.vectorScale(o,5)))}),this.makeTextAtCenter(n,t,s.title,0,-6));case"arc":var s=e,l=a.Geometry.applyZoom(this.props.zoom,{x:s.center.x,y:-s.center.y}),c=s.radius*this.props.zoom.scale,u=5,A=s.angleStart,d=s.angleEnd,g=(A+d)/2;(d-A)%360==0&&(d-=1e-4);var p=(I=l.x,C=l.y,b=A,v=d,B=[I+(E=c+u/2)*Math.cos(a.Geometry.degreesToRadians(-90+b)),C+E*Math.sin(a.Geometry.degreesToRadians(-90+b))],M=[I+E*Math.cos(a.Geometry.degreesToRadians(-90+v)),C+E*Math.sin(a.Geometry.degreesToRadians(-90+v))],D=v-b<180?0:1,["M",B[0].toFixed(6),B[1].toFixed(6),"A",E.toFixed(6),E.toFixed(6),0,D,1,M[0].toFixed(6),M[1].toFixed(6)].join(" ")),h=a.Geometry.vectorAdd(l,a.Geometry.vectorRotate({x:c+5,y:0},a.Geometry.degreesToRadians(1-g+90))),f=a.Geometry.vectorAdd(l,a.Geometry.vectorRotate({x:c+5,y:0},a.Geometry.degreesToRadians(-g-1+90)));return i.createElement("g",null,i.createElement("path",{className:"dropzone-highlighter-stroke",d:p,style:{strokeWidth:25}}),i.createElement("path",{className:"dropzone-element-arc",d:p,style:{strokeWidth:5}}),this.makeTextAtCenter(h,f,s.title,0,8));case"region":s=e,h=a.Geometry.applyZoom(this.props.zoom,{x:s.p1.x,y:-s.p1.y}),f=a.Geometry.applyZoom(this.props.zoom,{x:s.p2.x,y:-s.p2.y});return i.createElement("g",null,i.createElement("rect",{className:"dropzone-highlighter",opacity:.5,x:Math.min(h.x,f.x),y:Math.min(h.y,f.y),width:Math.abs(f.x-h.x),height:Math.abs(f.y-h.y)}),i.createElement("rect",{className:"dropzone-element-solid",opacity:.5,x:Math.min(h.x,f.x),y:Math.min(h.y,f.y),width:Math.abs(f.x-h.x),height:Math.abs(f.y-h.y)}),this.makeTextAtCenter({x:h.x,y:(h.y+f.y)/2},{x:f.x,y:(h.y+f.y)/2},s.title,0,0));case"rectangle":s=e;var m=a.Geometry.applyZoom(this.props.zoom,{x:s.cx,y:-s.cy}),y=(u=this.props.zoom.scale*s.width,this.props.zoom.scale*s.height);return i.createElement("g",{transform:"translate("+m.x+","+m.y+") rotate("+-s.rotation+")"},i.createElement("rect",{className:"dropzone-highlighter",opacity:.5,x:-u/2,y:-y/2,width:u,height:y}),i.createElement("rect",{className:"dropzone-element-solid",opacity:.5,x:-u/2,y:-y/2,width:u,height:y}),this.makeTextAtCenter({x:-u/2,y:y/2},{x:u/2,y:y/2},s.title,0,0))}var I,C,E,b,v,B,M,D},t.prototype.render=function(){var e=this.props.zone;return i.createElement("g",{ref:"container",className:l.classNames("dropzone","dropzone-"+e.type,["active",this.state.active])},this.renderElement(e))},t}(i.Component);t.DropZoneView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HandlesView=void 0;var a=n(0),s=n(576),l=n(577),c=n(578),u=n(579),A=n(580),d=n(581),g=n(582),p=n(583),h=n(584),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderHandle=function(e){var t,n,r=!1;if(this.props.isAttributeSnapped)try{for(var o=i(e.actions),f=o.next();!f.done;f=o.next()){var m=f.value;"attribute"==m.type&&(r=r||this.props.isAttributeSnapped(m.attribute))}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}switch(e.type){case"point":return a.createElement(c.PointHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,snapped:r,onDragStart:this.props.onDragStart,handle:e});case"line":return a.createElement(h.LineHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,snapped:r,onDragStart:this.props.onDragStart,handle:e});case"relative-line":return a.createElement(p.RelativeLineHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e});case"gap-ratio":return a.createElement(g.GapRatioHandleView,{zoom:this.props.zoom,active:this.props.active,visible:!1,onDragStart:this.props.onDragStart,handle:e});case"margin":return a.createElement(d.MarginHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e});case"angle":return a.createElement(A.AngleHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e});case"distance-ratio":return a.createElement(u.DistanceRatioHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e});case"text-alignment":return a.createElement(l.TextAlignmentHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e});case"input-curve":return a.createElement(s.InputCurveHandleView,{zoom:this.props.zoom,active:this.props.active,visible:this.props.visible,onDragStart:this.props.onDragStart,handle:e})}},t.prototype.render=function(){var e=this;return a.createElement("g",null,this.props.handles.map((function(t,n){return a.createElement("g",{key:"m"+n},e.renderHandle(t))})))},t}(a.Component);t.HandlesView=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MoveSnappingSession=void 0;var a=function(e){function t(t){return e.call(this,[],t,10,t.options&&t.options.snapToClosestPoint)||this}return o(t,e),t.prototype.getUpdates=function(e){var t,n,r={};try{for(var o=i(e),a=o.next();!a.done;a=o.next()){var s=a.value;r[s.attribute]=s.value}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},t}(n(183).SnappingSession);t.MoveSnappingSession=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleValueSelector=void 0;var i=n(0),a=n(13),s=n(5),l=n(19),c=n(14),u=n(37),A=n(125),d=function(e){function t(t){var n,r=e.call(this,t)||this,o=s.Expression.parse(r.props.scaleMapping.expression);try{n=o.args[0].args[0].args[1].value}catch(e){n=0}return r.state={selectedIndex:n},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.token=this.props.store.addListener(u.AppStore.EVENT_GRAPHICS,(function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.token.remove()},t.prototype.render=function(){var e=this,t=this.props,n=t.scale,r=t.store,o=t.scaleMapping,s=r.chartManager.getClassById(n._id),u=new A.FluentUIWidgetManager(this.props.store,s,!0);u.onEditMappingHandler=function(e,t){new l.Actions.SetScaleAttribute(n,e,t).dispatch(r.dispatcher)};var d=!1;return"function"==typeof this.props.onSelect&&(d=!0),i.createElement("div",{className:"scale-editor-view",style:{width:"400px",padding:"10px"}},i.createElement("div",{className:"attribute-editor"},i.createElement("section",{className:"attribute-editor-element"},i.createElement("div",{className:"header"},i.createElement(c.EditableTextView,{text:n.properties.name,onEdit:function(e){new l.Actions.SetObjectProperty(n,"name",null,e,!0).dispatch(r.dispatcher)}})),u.sectionHeader("Color Mapping"),u.vertical(u.scrollList(Object.keys(n.properties.mapping).map((function(t,n){return i.createElement("div",{className:e.props.onSelect&&e.state.selectedIndex===n?"is-active":"",onClick:function(){e.setState({selectedIndex:n}),null!=n&&e.props.onSelect&&e.props.onSelect(n)}},u.horizontal([2,3],u.label(t),u.inputColor({property:"mapping",field:t,noComputeLayout:!0},{labelKey:t,noDefaultMargin:!0,stopPropagation:!0,styles:{marginTop:"0px"}})))})))),d?i.createElement("div",{className:"action-buttons"},i.createElement(c.ButtonRaised,{url:a.getSVGIcon("CharticulatorLegend"),text:r.isLegendExistForScale(n._id)?"Remove Legend":"Add Legend",onClick:function(){new l.Actions.ToggleLegendForScale(n._id,o,null).dispatch(r.dispatcher)}})):null)))},t}(i.Component);t.ScaleValueSelector=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.parentOfType=t.DataMappAndScaleEditor=t.FluentMappingEditor=void 0;var s=n(0),l=n(5),c=n(19),u=n(89),A=n(32),d=n(83),g=n(275),p=n(592),h=n(273),f=n(593),m=n(127),y=n(11),I=n(23),C=n(594),E=n(279),b=n(7),v=n(6),B=n(282),M=n(283),D=function(e){function t(t){var n=e.call(this,t)||this;return n.updateEvents=new l.EventEmitter,n.state={showNoneAsValue:!1,isDataFieldValueSelectionOpen:!1,isColorPickerOpen:!1},n.director=null,n.director=new E.Director,n.director.setBuilder(new E.MenuItemBuilder),n}return o(t,e),t.prototype.changeDataFieldValueSelectionState=function(){this.setState(i(i({},this.state),{isDataFieldValueSelectionOpen:!this.state.isDataFieldValueSelectionOpen}))},t.prototype.changeColorPickerState=function(){this.setState(i(i({},this.state),{isColorPickerOpen:!this.state.isColorPickerOpen}))},t.prototype.openDataFieldValueSelection=function(){var e=this,t=this.props.parent,n=this.props.attribute,r=t.getAttributeMapping(n),o=r;if(null==o?void 0:o.scale){var i=l.getById(this.props.store.chart.scales,o.scale);return s.createElement(s.Fragment,null,this.state.isDataFieldValueSelectionOpen&&s.createElement(y.Callout,{target:"#dataFieldValueSelection",onDismiss:function(){return e.changeDataFieldValueSelectionState()}},s.createElement(h.ScaleValueSelector,{scale:i,scaleMapping:r,store:this.props.store,onSelect:function(t){var n=l.Expression.parse(o.expression);n.args[1].value=t,o.expression=n.toString(),e.props.parent.onEditMappingHandler(e.props.attribute,o),e.changeDataFieldValueSelectionState()}})))}return null},t.prototype.initiateValueEditor=function(){switch(this.props.type){case"number":case"font-family":case"text":this.setState(i(i({},this.state),{showNoneAsValue:!0}));break;case"color":if(null==this.noneLabel)return;this.changeColorPickerState()}},t.prototype.setValueMapping=function(e){this.props.parent.onEditMappingHandler(this.props.attribute,{type:"value",value:e})},t.prototype.clearMapping=function(){this.props.parent.onEditMappingHandler(this.props.attribute,null),this.setState(i(i({},this.state),{showNoneAsValue:!1}))},t.prototype.mapData=function(e,t){this.props.parent.onMapDataHandler(this.props.attribute,e,t)},t.prototype.componentDidUpdate=function(){this.updateEvents.emit("update")},t.prototype.getTableOrDefault=function(){return this.props.options.table?this.props.options.table:this.props.parent.store.getTables()[0].name},t.prototype.renderValueEditor=function(e){var t=this,n=this.props.options.defaultAuto?b.strings.core.auto:b.strings.core.none;null!=this.props.options.defaultValue&&(n=this.props.options.defaultValue.toString());var r=this.props.parent,o=this.props.attribute,i=this.props.options,a=r.getAttributeMapping(o),l=a?a.table:i.table,c=w.bind(this)(r,o,i),u=this.director.buildFieldsMenu(c.onClick,c.defaultValue,r.store,this,o,l,i.acceptKinds),A=this.director.getMenuRender();return s.createElement(s.Fragment,null,s.createElement(f.FluentValueEditor,{label:this.props.options.label,value:e,type:this.props.type,placeholder:n,onClear:function(){return t.clearMapping()},onEmitValue:function(e){return t.setValueMapping(e)},onEmitMapping:function(e){return t.props.parent.onEditMappingHandler(t.props.attribute,e)},onBeginDataFieldSelection:function(){t.mappingButton&&t.mappingButton.click()},getTable:function(){return t.getTableOrDefault()},hints:this.props.options.hints,numberOptions:this.props.options.numberOptions,stopPropagation:this.props.options.stopPropagation,mainMenuItems:u,menuRender:A}))},t.prototype.renderColorPicker=function(){var e=this;return s.createElement(s.Fragment,null,this.state.isColorPickerOpen&&s.createElement(y.Callout,{target:"#id_"+this.props.options.label,onDismiss:function(){return e.changeColorPickerState()}},s.createElement(u.ColorPicker,{store:this.props.store,defaultValue:null,allowNull:!0,onPick:function(t){null==t?e.clearMapping():e.setValueMapping(t)},closePicker:function(){e.changeColorPickerState()},parent:this})))},t.prototype.renderCurrentAttributeMapping=function(){var e=this,n=this.props.parent,r=this.props.attribute,o=this.props.options,a=n.getAttributeMapping(r);if(!a){if(null!=o.defaultValue)return this.renderValueEditor(o.defaultValue);var c=!1;if(this.props.type!=l.Specification.AttributeType.Number&&this.props.type!=l.Specification.AttributeType.Enum&&this.props.type!=l.Specification.AttributeType.Image||(c=!0),this.state.showNoneAsValue||c)return this.renderValueEditor(null);return s.createElement(B.EmptyMapping,{options:o,onClick:function(){a&&null!=a.valueIndex||e.initiateValueEditor()}.bind(this),renderColorPicker:this.renderColorPicker.bind(this),type:this.props.type})}switch(a.type){case l.Specification.MappingType.value:var u=a;return this.renderValueEditor(u.value);case l.Specification.MappingType.text:var A=a;return s.createElement(m.FluentInputExpression,{label:this.props.options.label,defaultValue:A.textExpression,textExpression:!0,value:A.textExpression,validate:function(e){return n.store.verifyUserExpressionWithTable(e,A.table,{textExpression:!0,expectedTypes:["string"]})},allowNull:!0,onEnter:function(t){return null==t||""==t.trim()?e.clearMapping():l.Expression.parseTextExpression(t).isTrivialString()?e.props.parent.onEditMappingHandler(e.props.attribute,{type:l.Specification.MappingType.value,value:t}):e.props.parent.onEditMappingHandler(e.props.attribute,{type:l.Specification.MappingType.text,table:A.table,textExpression:t}),!0}});case l.Specification.MappingType.scale:var d=a,g=a?a.table:o.table,p=w.bind(this)(n,r,o),h=this.director.buildFieldsMenu(p.onClick,p.defaultValue,n.store,this,r,g,o.acceptKinds),f=this.director.getMenuRender();return d.scale?s.createElement(s.Fragment,null,this.props.options.label?s.createElement(y.Label,{styles:I.defaultLabelStyle},this.props.options.label):null,s.createElement(I.FluentActionButton,null,s.createElement(y.ActionButton,{elementRef:function(t){return e.mappingButton=t},styles:{menuIcon:i({display:"none !important"},I.defultComponentsHeight),root:i({},I.defultComponentsHeight)},title:b.strings.mappingEditor.bindData,menuProps:{items:h,onRenderMenuList:f,onMenuOpened:function(){var o,i=n.getAttributeMapping(r);t.openEditor(null===(o=i)||void 0===o?void 0:o.expression,!1,e.mappingButton)}},text:d.expression,iconProps:{iconName:"ColumnFunction"},onMenuClick:function(t){d.expression.startsWith("get")&&(t.preventDefault(),e.changeDataFieldValueSelectionState())}}))):s.createElement(s.Fragment,null,this.props.options.label?s.createElement(y.Label,{styles:I.defaultLabelStyle},this.props.options.label):null,s.createElement(I.FluentActionButton,null,s.createElement(y.ActionButton,{text:d.expression,elementRef:function(t){return e.mappingButton=t},iconProps:{iconName:"ColumnFunction"}})));case l.Specification.MappingType.expressionScale:var C=a;g=a?C.table:o.table,p=w.bind(this)(n,r,o),h=this.director.buildFieldsMenu(p.onClick,p.defaultValue,n.store,this,r,g,o.acceptKinds),f=this.director.getMenuRender();return s.createElement(s.Fragment,null,this.props.options.label?s.createElement(y.Label,{styles:I.defaultLabelStyle},this.props.options.label):null,s.createElement(I.FluentRowLayout,null,s.createElement(I.FluentActionButton,{style:{flex:1,marginRight:"2px"}},s.createElement(y.ActionButton,{elementRef:function(t){return e.mappingButton=t},styles:{menuIcon:i({display:"none !important"},I.defultComponentsHeight),root:i({},I.defultComponentsHeight)},title:b.strings.mappingEditor.keyColumnExpression,text:C.expression,iconProps:{iconName:"ColumnFunction"},onMenuClick:function(t){C.expression.startsWith("get")&&(t.preventDefault(),e.changeDataFieldValueSelectionState())}})),s.createElement(I.FluentActionButton,{style:{flex:1}},s.createElement(y.ActionButton,{elementRef:function(t){return e.mappingButton=t},styles:{menuIcon:i({display:"none !important"},I.defultComponentsHeight),root:i({},I.defultComponentsHeight)},title:b.strings.mappingEditor.bindData,menuProps:{items:h,onRenderMenuList:f,onMenuOpened:function(){var o,i=n.getAttributeMapping(r);t.openEditor(null===(o=i)||void 0===o?void 0:o.valueExpression,!1,e.mappingButton)}},text:C.valueExpression,iconProps:{iconName:"ColumnFunction"},onMenuClick:function(t){C.expression.startsWith("get")&&(t.preventDefault(),e.changeDataFieldValueSelectionState())}}))));default:return s.createElement("span",null,"(...)")}},t.prototype.render=function(){var e=this,n=this.props.parent,r=this.props.attribute,o=this.props.options,a=n.getAttributeMapping(r),u=null!=n.onMapDataHandler,A=null!=a&&("scale"==a.type||"value"==a.type),g=a&&a.valueIndex;this.props.options.openMapping&&setTimeout((function(){var n;t.openEditor(null===(n=a)||void 0===n?void 0:n.expression,!0,e.mappingButton)}),0);var h=a?a.table:o.table,f=w.bind(this)(n,r,o),m=this.director.buildFieldsMenu(f.onClick,f.defaultValue,n.store,this,r,h,o.acceptKinds),C=this.director.getMenuRender(),E=M.getDropzoneAcceptTables(this.props.parent,o.acceptLinksTable);return s.createElement("div",{ref:function(t){return e.noneLabel=t},key:r},s.createElement(p.DropZoneView,{filter:function(e){var t;return!(E.length>0&&!E.includes(null===(t=e.table)||void 0===t?void 0:t.name))&&(!!u&&(e instanceof c.DragData.DataExpression&&d.isKindAcceptable(e.metadata.kind,o.acceptKinds)))},onDrop:function(t,n,r){o.hints||(o.hints={}),o.hints.newScale=r.shiftKey,o.hints.scaleID=t.scaleID;var a=l.Expression.parse(t.expression);t.allowSelectValue&&"get"!==a.name&&(t.expression="get("+t.expression+", 0)"),"get"===a.name&&(t.allowSelectValue=!0),e.mapData(t,i(i({},o.hints),{allowSelectValue:t.allowSelectValue}))},className:"charticulator__widget-control-mapping-editor"},n.styledHorizontal({alignItems:"start"},[1,0],this.renderCurrentAttributeMapping(),s.createElement("span",null,A?s.createElement(I.FluentButton,null,s.createElement(y.DefaultButton,{iconProps:{iconName:"EraseTool"},styles:{root:i({minWidth:"unset"},I.defultBindButtonSize)},checked:!1,title:b.strings.mappingEditor.remove,onClick:function(){n.getAttributeMapping(r)&&e.clearMapping(),e.setState(i(i({},e.state),{showNoneAsValue:!1}))}})):null,null==g&&u?s.createElement(s.Fragment,null,s.createElement(I.FluentButton,null,s.createElement(y.DefaultButton,{elementRef:function(t){return e.mappingButton=t},iconProps:{iconName:"Link"},styles:{menuIcon:{display:"none !important"},root:i({minWidth:"unset"},I.defultBindButtonSize)},title:b.strings.mappingEditor.bindData,checked:A,menuProps:{items:m,onRenderMenuList:C}}))):null,null!=g?s.createElement(I.FluentButton,null,s.createElement(y.DefaultButton,{iconProps:{iconName:"Link"},id:"dataFieldValueSelection",styles:{root:i({minWidth:"unset"},I.defultBindButtonSize)},title:b.strings.mappingEditor.bindDataValue,elementRef:function(t){return e.mappingButton=t},onClick:function(){e.changeDataFieldValueSelectionState()},checked:A})):null,this.openDataFieldValueSelection()))))},t.menuKeyClick=function(e){setTimeout((function(){var t=document.querySelector("body :last-child.ms-Layer"),n=null==t?void 0:t.querySelector("button.ms-ContextualMenu-splitMenu");if(null==n){var r=document.querySelector("body :last-child.ms-Layer"),o='//ul//span[text()="'+e+'"]',i=document.evaluate(o,r,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;setTimeout((function(){null==i||i.click(),setTimeout((function(){var e=document.querySelector("body :last-child.ms-Layer"),t=null==e?void 0:e.querySelector("button.ms-ContextualMenu-splitMenu");null==t||t.click()}),100)}),100)}else null==n||n.click()}),100)},t.openEditor=function(e,n,r){setTimeout((function(){n&&(null==r||r.click()),setTimeout((function(){var n,r=null,o=null;if(null!=e){var i=l.Expression.parse(e);if(i instanceof l.Expression.FunctionCall){if(r=i.args[0].toString(),i.name.startsWith("get"))return;r.startsWith("date.")&&(o=null===(n=d.type2DerivedColumns.date.find((function(e){return r.startsWith(e.function)})))||void 0===n?void 0:n.displayName)}r=null==r?void 0:r.split("`").join("");try{var a=document.querySelector("body :last-child.ms-Layer"),s='//ul//span[contains(text(), "'+r+'")]',c=document.evaluate(s,a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(null==c){var u='//ul//span[contains(text(), "'+o+'")]',A=document.evaluate(u,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;setTimeout((function(){null==A||A.click(),t.menuKeyClick(o)}))}else setTimeout((function(){null==c||c.click(),t.menuKeyClick(o)}),0)}catch(e){console.log(e)}}}),0)}))},t}(s.Component);t.FluentMappingEditor=D;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={currentMapping:t.props.defaultMapping},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.tokens=[this.props.parent.updateEvents.addListener("update",(function(){e.setState({currentMapping:e.props.parent.props.parent.getAttributeMapping(e.props.attribute)})}))]},t.prototype.componentWillUnmount=function(){var e,t;try{for(var n=a(this.tokens),r=n.next();!r.done;r=n.next()){r.value.remove()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.renderScaleEditor=function(){var e=this.state.currentMapping;if(e&&"scale"==e.type){var t=e;if(t.scale){var n=l.getById(this.store.chart.scales,t.scale);return s.createElement(g.ScaleEditor,{scale:n,scaleMapping:t,store:this.store,plotSegment:this.props.plotSegment})}}return null},t.prototype.renderDataPicker=function(){var e=this,t=this.props.options,n=null,r=this.state.currentMapping;return null!=r&&"scale"==r.type&&(n=r.expression),s.createElement("div",null,s.createElement(C.DataFieldSelector,{table:r?r.table:t.table,datasetStore:this.store,kinds:t.acceptKinds,useAggregation:!0,defaultValue:n?{table:t.table,expression:n}:null,nullDescription:b.strings.core.none,nullNotHighlightable:!0,onChange:function(n){null!=n?e.props.parent.mapData(new c.DragData.DataExpression(e.store.getTable(n.table),n.expression,n.type,n.metadata,n.rawExpression),t.hints):(e.props.parent.clearMapping(),e.props.onClose())}}))},t.prototype.render=function(){var e=this.renderScaleEditor();return e?s.createElement("div",{className:"charticulator__data-mapping-and-scale-editor"},s.createElement("div",{className:this.props.alignLeft?"el-scale-editor-left":"el-scale-editor"},e),s.createElement("div",{className:"el-data-picker"},this.renderDataPicker())):s.createElement("div",{className:"charticulator__data-mapping-and-scale-editor"},s.createElement("div",{className:"el-data-picker"},this.renderDataPicker()))},t}(A.ContextedComponent);function w(e,t,n){var r,o=this,i=e.getAttributeMapping(t),a=i?i.table:n.table,s=e.getAttributeMapping(t),l=null;return null!=s&&(s.type==v.MappingType.text&&(l=s.textExpression),s.type==v.MappingType.scale&&(l=s.expression)),{onClick:function(e){null!=e?o.mapData(new c.DragData.DataExpression(o.props.store.getTable(e.table),e.expression,e.type,e.metadata,e.rawExpression),n.hints):o.clearMapping()},defaultValue:l?{table:null!==(r=null==n?void 0:n.table)&&void 0!==r?r:a,expression:l,type:null==s?void 0:s.type}:null}}t.DataMappAndScaleEditor=x,t.parentOfType=function(e,t){for(;e;){if(l.Prototypes.isType(e.object.classID,t))return e;e=e.parent}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleEditor=void 0;var s=n(0),l=n(5),c=n(19),u=n(14),A=n(37),d=n(125),g=n(117),p=n(7),h=n(11),f=n(167),m=n(591),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.token=this.props.store.addListener(A.AppStore.EVENT_GRAPHICS,(function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.token.remove()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.scale,o=n.store,i=n.scaleMapping,A=o.chartManager.getClassById(r._id),y=new d.FluentUIWidgetManager(this.props.store,A,!0);y.onEditMappingHandler=function(e,t){new c.Actions.SetScaleAttribute(r,e,t).dispatch(o.dispatcher)};var I=!0;(r.classID.startsWith("scale.format")||"scale.categorical<string,image>"===r.classID||"scale.categorical<string,boolean>"===r.classID||"scale.linear<number,boolean>"===r.classID)&&(I=!1);var C=!1;"scale.categorical<string,color>"!==r.classID&&"scale.categorical<date,color>"!==r.classID||(C=!0);var E=this.props.store.currentMappingAttributeFocus;return s.createElement(m.ScaleEditorWrapper,{className:"scale-editor-view"},s.createElement("div",{className:"attribute-editor"},s.createElement("section",{className:"attribute-editor-element"},s.createElement("div",{className:"header"},s.createElement(u.EditableTextView,{text:r.properties.name,onEdit:function(e){new c.Actions.SetObjectProperty(r,"name",null,e,!0).dispatch(o.dispatcher)}})),y.vertical.apply(y,a(A.getAttributePanelWidgets(y))),s.createElement("div",{className:"action-buttons"},C?s.createElement(s.Fragment,null,s.createElement(h.DefaultButton,{iconProps:{iconName:"Add"},text:p.strings.scaleEditor.add,onClick:function(){y.eventManager.notify(f.EventType.UPDATE_FIELD,{property:"autoDomainMin"},!1),y.eventManager.notify(f.EventType.UPDATE_FIELD,{property:"autoDomainMax"},!1);var e=Object.keys(r.properties.mapping),n=e[e.length-1],o=r.properties.mapping[n];new c.Actions.SetObjectProperty(r,"mapping",g.ReservedMappingKeyNamePrefix+l.uniqueID(),o,!0,!0).dispatch(t.props.store.dispatcher)}}),s.createElement(h.DefaultButton,{iconProps:{iconName:"Remove"},disabled:0===(null!==(e=null==E?void 0:E.length)&&void 0!==e?e:0),text:p.strings.scaleEditor.removeSelected,onClick:function(){(null==E?void 0:E.length)>0&&(new c.Actions.DeleteObjectProperty(r,"mapping",E,!1,!0).dispatch(t.props.store.dispatcher),new c.Actions.SetCurrentMappingAttribute(null).dispatch(t.props.store.dispatcher))}})):null,I?s.createElement(h.DefaultButton,{iconProps:{iconName:"CharticulatorLegend"},text:o.isLegendExistForScale(r._id)?p.strings.scaleEditor.removeLegend:p.strings.scaleEditor.addLegend,onClick:function(){new c.Actions.ToggleLegendForScale(r._id,i,t.props.plotSegment).dispatch(o.dispatcher)}}):null))))},t}(s.Component);t.ScaleEditor=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputImageProperty=t.ImageUploader=t.ImageChooser=t.InputImage=void 0;var a=n(0),s=n(13),l=n(27),c=n(32),u=n(76),A=n(9),d=n(7),g=n(11),p=n(23),h=n(277),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dragOver:!1},t.startChooseImage=function(){l.popupController.popupAt((function(e){return a.createElement(u.PopupView,{context:e},a.createElement(m,{value:t.props.value,onChoose:function(n){e.close(),t.props.onChange&&t.props.onChange(n)}}))}),{anchor:t.element})},t.handleDragEnter=function(){t.setState({dragOver:!0})},t.handleDragLeave=function(){t.setState({dragOver:!1})},t.handleDragOver=function(e){e.preventDefault()},t.handleDrop=function(e){if(e.preventDefault(),t.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var n=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));y.ParseURIs(n).then((function(e){t.emitOnChange(e)})).catch((function(e){console.log(e)}))}e.dataTransfer.files.length>0&&y.ParseFiles(e.dataTransfer.files).then((function(e){t.emitOnChange(e)}))},t}return o(t,e),t.prototype.resolveImage=function(e){return e},t.prototype.emitOnChange=function(e){1==e.length&&this.props.onChange({src:e[0].dataURL,width:e[0].width,height:e[0].height})},t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.src:null;return r&&r.startsWith("data:")&&(r="(data url)"),a.createElement("span",{className:A.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onClick:this.startChooseImage},this.state.dragOver?a.createElement("div",{style:{width:"100%"}},this.props.label?a.createElement(g.Label,{styles:p.defaultLabelStyle,style:{padding:0}},this.props.label):null,a.createElement("span",{className:"el-drag-over-attrubutes"},d.strings.objects.image.dropImage)):a.createElement("div",{style:{width:"100%"}},this.props.label?a.createElement(g.Label,{styles:p.defaultLabelStyle,style:{padding:0}},this.props.label):null,a.createElement(p.FluentActionButton,{style:{width:"100%",height:p.defultBindButtonSize.height}},a.createElement(g.ActionButton,{styles:{root:{height:p.defultBindButtonSize.height}},text:t?d.strings.core.none:r,iconProps:{imageProps:{src:t?s.getSVGIcon("FileImage"):n.src,style:{height:"16px",width:"16px"}}}}))))},t}(c.ContextedComponent);t.InputImage=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"charticulator__image-chooser"},a.createElement(y,{focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChoose({src:t[0].dataURL,width:t[0].width,height:t[0].height})}}))},t}(c.ContextedComponent);t.ImageChooser=m;var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={dragOver:!1},n.handleDragEnter=function(){n.setState({dragOver:!0})},n.handleDragLeave=function(){n.setState({dragOver:!1})},n.handleDragOver=function(e){e.preventDefault()},n.handleDrop=function(e){if(e.preventDefault(),n.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var r=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));t.ParseURIs(r).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)}))}e.dataTransfer.files.length>0&&t.ParseFiles(e.dataTransfer.files).then((function(e){n.emitOnUpload(e)}))},n.handlePaste=function(e){e.clipboardData.files.length>0&&(e.preventDefault(),t.ParseFiles(e.clipboardData.files).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)})))},n.handleOpenFile=function(){var e=document.createElement("input");e.setAttribute("type","file"),e.onchange=function(){e.files.length>0&&t.ParseFiles(e.files).then((function(e){n.emitOnUpload(e)}))},e.click()},n.handleClearFile=function(){n.props.onClear&&n.props.onClear()},n}return o(t,e),t.ReadFileAsImage=function(e,t){return new Promise((function(n){var r=new FileReader;r.onload=function(){var t=new Image;t.onload=function(){n({name:e,width:t.width,height:t.height,dataURL:r.result})},t.src=r.result},r.readAsDataURL(t)}))},t.ParseFiles=function(e){for(var t=this,n=[],r=function(e){n.push(t.ReadFileAsImage(e.name,e))},o=0;o<e.length;o++){r(e[o])}return Promise.all(n)},t.ParseURIs=function(e){var t=this;return Promise.all(e.map((function(e){return fetch(e).then((function(e){return e.blob()})).then((function(e){return new Promise((function(n,r){e.type.startsWith("image/")?n(t.ReadFileAsImage("blob",e)):r(new Error("not an image"))}))}))})))},t.prototype.showError=function(e){},t.prototype.emitOnUpload=function(e){this.props.onUpload&&this.props.onUpload(e)},t.prototype.render=function(){var e=this;return a.createElement("div",{className:"charticulator__image-uploader",ref:function(t){return e.refContainer=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop},this.state.dragOver?a.createElement(h.ImageMappingDragStateWrapper,null,d.strings.objects.image.dropImage):a.createElement("span",{className:"el-input-wrapper"},a.createElement(g.TextField,{value:this.props.placeholder||d.strings.objects.image.defaultPlaceholder,disabled:!0,styles:h.ImageMappingTextFieldStyles,onPaste:this.handlePaste}),a.createElement(p.FluentButton,{marginTop:"0px"},a.createElement(g.DefaultButton,{styles:{root:i(i({minWidth:"unset"},p.defultBindButtonSize),{marginLeft:5})},iconProps:{iconName:"OpenFolderHorizontal"},onClick:this.handleOpenFile}))))},t}(a.Component);t.ImageUploader=y;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.name:null;return r&&r.startsWith("data:")&&(r="(data url)"),a.createElement("span",{className:A.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop},this.state.dragOver?a.createElement("span",{className:"el-drag-over"},d.strings.objects.image.dropImage):[a.createElement(g.Image,{key:"image",src:t?s.getSVGIcon("FileImage"):n.src,width:30,height:30}),a.createElement(y,{key:0,placeholder:t?d.strings.core.none:r,focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChange&&e.props.onChange({src:t[0].dataURL,width:t[0].width,height:t[0].height,name:t[0].name})}})])},t}(f);t.InputImageProperty=I},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.ToolTipHostStyles=t.ImageMappingTextFieldStyles=t.ImageMappingDragStateWrapper=void 0;var o,i=n(88);t.ImageMappingDragStateWrapper=i.default.div(o||(o=r(["\n  border: 1px solid #fa9e13;\n  padding-left: 4px;\n  width: 96%;\n  background: #fa9e136b;\n"],["\n  border: 1px solid #fa9e13;\n  padding-left: 4px;\n  width: 96%;\n  background: #fa9e136b;\n"]))),t.ImageMappingTextFieldStyles={root:{height:25},wrapper:{height:25},field:{height:25}},t.ToolTipHostStyles={root:{width:"100%",display:"unset",paddingLeft:"4px",paddingRight:"4px"}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentInputNumber=void 0;var i=n(11),a=n(0),s=n(5),l=n(23);t.FluentInputNumber=function(e){var t=o(a.useState(e.defaultValue),2),n=t[0],c=t[1];a.useEffect((function(){c(e.defaultValue)}),[e.defaultValue]);var u,A,d,g=function(t){return null==t?"":t!=t?"N/A":e.percentage?s.prettyNumber(100*t,null!=e.digits?e.digits:2):s.prettyNumber(t,null!=e.digits?e.digits:2)},p=function(t){return""==(t=t.trim())||isNaN(+t)?null:e.percentage?+(t=t.replace(/%$/,""))/100:+t},h=function(t){return null==t||(null!=e.minimum&&(t=Math.max(e.minimum,t)),null!=e.maximum&&(t=Math.min(e.maximum,t))),e.onEnter(t)};return a.createElement(a.Fragment,null,e.showSlider?a.createElement(i.Label,{styles:l.defaultLabelStyle},e.label):null,a.createElement(l.FluentRowLayout,{style:e.styles},a.createElement(l.FluentLayoutItem,{flex:1},e.showUpdown?(d=e.updownTick||.1,a.createElement(a.Fragment,null,a.createElement(i.SpinButton,{label:e.showSlider?null:e.label,labelPosition:i.Position.top,value:g(+n),iconProps:"font"==e.updownStyle?{iconName:"Font"}:null,step:d,onIncrement:function(e){h(p(e)+d)&&c(p(e)+d)},onDecrement:function(e){h(p(e)-d)&&c(p(e)-d)},onValidate:function(t){var n=p(t);if(h(n)){var r=n;return null!=e.minimum&&(r=Math.max(e.minimum,n)),null!=e.maximum&&(r=Math.min(e.maximum,n)),c(r),g(p(t))}},styles:r(r({},l.defaultStyle),{label:{lineHeight:"unset",fontWeight:l.defaultFontWeight,height:25},spinButtonWrapper:{height:l.defaultStyle.fieldGroup.height,lineHeight:l.defaultStyle.fieldGroup.lineHeight}})}))):a.createElement(l.PlaceholderStyle,null,a.createElement(i.TextField,{styles:l.defaultStyle,onRenderLabel:l.labelRender,label:e.showSlider?null:e.label,placeholder:e.placeholder,value:"string"==typeof n&&(n.indexOf(".")===n.length-1||0===n.indexOf("-")&&1===n.length)?n:null==n?null:g(+n),onChange:function(e,t){if(""!=t&&t.indexOf(".")===t.length-1||0===t.indexOf("-")&&1===t.length)c(t);else{var n=p(t);h(n)&&c(n)}},onKeyDown:function(t){e.stopPropagation&&t.stopPropagation()},suffix:e.percentage?"%":void 0}))),e.showSlider?a.createElement(l.FluentLayoutItem,{flex:2},(u=0,A=1,null!=e.minimum&&(u=e.minimum),null!=e.maximum&&(A=e.maximum),e.percentage&&(A=1,u=0),null!=e.sliderRange&&(u=e.sliderRange[0],A=e.sliderRange[1]),a.createElement(i.Slider,{styles:{root:r({},l.defultComponentsHeight),slideBox:r({},l.defultComponentsHeight)},min:u,max:A,value:+n,showValue:!0,step:e.percentage?.01:null!=e.step?e.step:1,onChange:function(e){c(+e.toFixed(4)),h(e)}}))):null))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.Director=t.MenuItemBuilder=void 0;var s=n(5),l=n(11),c=n(83),u=n(275),A=n(274),d=n(7),g=n(6),p=n(23),h=n(280),f=n(0),m=function(){function e(){this.menuItems=[],this.nullDescription=d.strings.core.none,this.fields=[],this.nullSelectable=!0,this.onClick=function(){alert()},this.useAggregation=!1,this.useDerivedColumns=!1,this.isDerivedColumns=!1,this.derivedColumnsIdx=[],this.selectedKey=null,this.defaultValue=null}return e.prototype.onToggleSelect=function(e,t,n){t&&t.preventDefault&&t.preventDefault(),n&&e&&(this.selectedKey=e.columnName+"-"+n.key)},e.prototype.onToggleDerivedSelect=function(e,t,n,r){n&&n.preventDefault(),t&&e&&r&&(this.selectedKey=e.columnName+"-"+t+"-"+r.key)},e.prototype.setFieds=function(e,t,n,r){this.fields=this.getTableFields(e,t,n,r)},e.prototype.getTableFields=function(e,t,n,r){var i=e.getTables().filter((function(e){return e.name==t||null==t}))[0],a=e.getTables().filter((function(e){return e.name.endsWith("Images")}))[0],l=s.deepClone(i.columns);if(a){var u=a.columns.filter((function(e){return e.type===g.DataType.Image}))[0];l.push(u)}var A=[];A.push((function(e){return!e.metadata.isRaw})),t&&A.push((function(e){return e.table==t})),n&&A.push((function(e){return null!=e.metadata&&c.isKindAcceptable(e.metadata.kind,n)})),r&&A.push((function(e){return null!=e.metadata&&r.indexOf(e.type)>=0}));var d=function(e){var t,n;try{for(var r=o(A),i=r.next();!i.done;i=r.next()){if(!(0,i.value)(e))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!0},p=l.map((function(e){var t,n,r={selectable:!0,table:i.name,columnName:e.name,expression:s.Expression.variable(e.name).toString(),rawExpression:s.Expression.variable(e.metadata.rawColumnName||e.name).toString(),type:e.type,displayName:e.name,metadata:e.metadata,derived:[]},a=c.type2DerivedColumns[r.type];if(a)try{for(var l=o(a),u=l.next();!u.done;u=l.next()){var A=u.value,g={table:i.name,columnName:null,expression:s.Expression.functionCall(A.function,s.Expression.parse(r.expression)).toString(),rawExpression:s.Expression.functionCall(A.function,s.Expression.parse(r.rawExpression)).toString(),type:A.type,metadata:A.metadata,displayName:A.name,selectable:!0};d(g)&&r.derived.push(g)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return r.selectable=d(r),r}));return p=p.filter((function(e){return(e.derived.length>0||e.selectable)&&!e.metadata.isRaw}))},e.prototype.transformField=function(e,t){var n;void 0===t&&(t=null),null==t&&(t=s.Expression.getDefaultAggregationFunction(e.type,null===(n=e.metadata)||void 0===n?void 0:n.kind));var r={table:e.table,expression:e.expression,rawExpression:e.rawExpression,columnName:e.columnName,type:e.type,metadata:e.metadata};return this.useAggregation&&(r.expression=s.Expression.functionCall(t,s.Expression.parse(e.expression)).toString(),r.rawExpression=s.Expression.functionCall(t,s.Expression.parse(e.rawExpression)).toString()),r},e.prototype.transformDerivedField=function(e,t,n){var r;void 0===n&&(n=null),null==n&&(n=s.Expression.getDefaultAggregationFunction(e.type,null===(r=e.metadata)||void 0===r?void 0:r.kind));var o={table:e.table,expression:e.expression+t,rawExpression:e.rawExpression+t,columnName:e.columnName,type:e.type,metadata:e.metadata};return this.useAggregation&&(o.expression=t,o.rawExpression=s.Expression.functionCall(n,s.Expression.parse(e.rawExpression)).toString()),o},e.prototype.checkSelection=function(e){return 0===e.localeCompare(this.selectedKey)},e.prototype.buildMenuFieldsItems=function(){var e,t,n,r=this,o=null===(n=null===(t=null===(e=this.parent)||void 0===e?void 0:e.props)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.getAttributeMapping(this.attribute);this.menuItems=this.fields.map((function(e,t){var n=function(t,n){var i=r.transformField(e,null==n?void 0:n.key);(null==o?void 0:o.type)===g.MappingType.text?r.textMappingOnClick(i.expression,e):r.onClick(i),r.onToggleSelect(e,t,n)},i=null,a=c.type2DerivedColumns[e.type];a&&(r.isDerivedColumns=!0,r.derivedColumnsIdx.push([t,e]));var l=r.useAggregation?{items:s.Expression.getCompatibleAggregationFunctionsByDataKind(e.metadata.kind).map((function(t){var o=e.columnName+"-"+t.name,a=r.checkSelection(o);a&&(i=t.displayName);var s=r.scaleEditorMenu(a);return{key:t.name,text:t.displayName,isChecked:a,canCheck:!0,onClick:n,split:s.isMappingEditor,subMenuProps:s.scaleEditorSubMenuProps}}))}:null,u=e.columnName+"-"+e.columnName,A=e.columnName+"";return{key:e.columnName+(a?"_derived":""),text:A,subMenuProps:l,canCheck:!l||null,isChecked:r.checkSelection(u),onClick:l?null:n,data:i}}))},e.prototype.renderScaleEditor=function(e,t){var n,r,o=null===(r=null===(n=this.parent)||void 0===n?void 0:n.props)||void 0===r?void 0:r.parent.getAttributeMapping(this.attribute);if(o&&o.type==g.MappingType.scale){var i=o;if(i.scale){var a=s.getById(this.store.chart.scales,i.scale);return f.createElement(u.ScaleEditor,{scale:a,scaleMapping:i,store:t,plotSegment:A.parentOfType(e.props.parent.objectClass.parent,"plot-segment")})}return null}return null},e.prototype.produceScaleEditor=function(e,t,n){this.attribute=t,this.parent=n,this.store=e},e.prototype.appendNull=function(){var e=this;this.menuItems=a([{key:this.nullDescription,text:this.nullDescription,onClick:function(){return e.onClick(null)}}],this.menuItems)},e.prototype.scaleEditorMenu=function(e){var t,n,r,o=this,i=null===(r=null===(n=null===(t=this.parent)||void 0===t?void 0:t.props)||void 0===n?void 0:n.parent)||void 0===r?void 0:r.getAttributeMapping(this.attribute),a=!(!i||i.type!=g.MappingType.scale||!i.scale);return{scaleEditorSubMenuProps:e&&a?{items:[{key:"mapping",onRender:function(){return o.renderScaleEditor(o.parent,o.store)}}]}:null,isMappingEditor:a}},e.prototype.textMappingOnClick=function(e,t){var n,r,o,i,a,l,c="${"+e+"}";s.Expression.parseTextExpression(c).isTrivialString()?null===(o=null===(r=null===(n=null==this?void 0:this.parent)||void 0===n?void 0:n.props)||void 0===r?void 0:r.parent)||void 0===o||o.onEditMappingHandler(this.attribute,{type:"value",value:c}):null===(l=null===(a=null===(i=null==this?void 0:this.parent)||void 0===i?void 0:i.props)||void 0===a?void 0:a.parent)||void 0===l||l.onEditMappingHandler(this.attribute,{type:"text",table:t.table,textExpression:c})},e.prototype.getDerivedColumnExpression=function(e,t,n){var r=s.Expression.functionCall(e.function,s.Expression.variable(t.columnName)).toString();return n.name+"("+r+")"},e.prototype.appendDerivedColumn=function(){var e,t,n,r=this;null===(n=null===(t=null===(e=this.parent)||void 0===e?void 0:e.props)||void 0===t?void 0:t.parent)||void 0===n||n.getAttributeMapping(this.attribute);if(this.useAggregation&&this.isDerivedColumns){for(var o=function(e){var t=i.derivedColumnsIdx[e][0],n=i.derivedColumnsIdx[e][1],o=c.type2DerivedColumns[n.type],a=null,l=i.useAggregation?{items:o.map((function(e){var t=r.useAggregation?{items:s.Expression.getCompatibleAggregationFunctionsByDataKind(e.metadata.kind).map((function(t){var o,i,s,l=n.columnName+"-"+e.name+"-"+t.name,c=r.checkSelection(l);c&&(a=e.displayName+"-"+t.displayName);var u=null===(s=null===(i=null===(o=r.parent)||void 0===o?void 0:o.props)||void 0===i?void 0:i.parent)||void 0===s?void 0:s.getAttributeMapping(r.attribute),A=r.scaleEditorMenu(c);return{key:t.name,text:t.displayName,isChecked:c,canCheck:!0,onClick:function(o,i){var a=r.getDerivedColumnExpression(e,n,t);(null==u?void 0:u.type)===g.MappingType.text||(null==u?void 0:u.type)===g.MappingType.value?r.textMappingOnClick(a,n):r.onClick(r.transformDerivedField(n,a,null==i?void 0:i.key)),r.onToggleDerivedSelect(n,e.name,o,i)},split:A.isMappingEditor,subMenuProps:A.scaleEditorSubMenuProps}}))}:null;return{key:e.name,text:e.displayName,canCheck:!0,subMenuProps:t}}))}:null,u=n.columnName+"-"+n.columnName,A=n.columnName+d.strings.objects.derivedColumns.menuSuffix+"",p={key:n.columnName,text:A,subMenuProps:l,canCheck:!l||null,isChecked:i.checkSelection(u),data:a};i.menuItems.splice(t+1,0,p)},i=this,a=0;a<this.derivedColumnsIdx.length;a++)o(a);this.derivedColumnsIdx=[]}},e.prototype.buildMenu=function(){this.buildMenuFieldsItems(),this.useDerivedColumns&&this.appendDerivedColumn(),this.appendNull()},e.prototype.parseDerivedColumnsExpression=function(e){return e.startsWith("date.")?e.match(/\(([^)]+)\)/)[1]+"-"+e.match(/\.([^(]+)\(/)[1]:e},e.prototype.produceDefaultValue=function(e){var t,n,r=null==e?void 0:e.type;this.defaultValue=e;var o=null,i=null;if(null!=e){if(null!=e.expression){var a=void 0;(a=r===g.MappingType.text?null===(n=null===(t=s.Expression.parseTextExpression(e.expression))||void 0===t?void 0:t.parts[0])||void 0===n?void 0:n.expression:s.Expression.parse(e.expression))instanceof s.Expression.FunctionCall&&(o=a.args[0].toString(),i=a.name,o=null==o?void 0:o.split("`").join(""),o=this.parseDerivedColumnsExpression(o))}var l=(o?o+"-":"")+i;l&&(this.selectedKey=l)}},e}(),y=function(){function e(){this.reset()}return e.prototype.produceScaleEditor=function(e,t,n){this.menuItemsCreator.produceScaleEditor(e,t,n)},e.prototype.produceDerivedColumns=function(){this.menuItemsCreator.useDerivedColumns=!0},e.prototype.produceOnChange=function(e){this.menuItemsCreator.onClick=e},e.prototype.getMenuItems=function(){return this.menuItemsCreator.menuItems},e.prototype.reset=function(){this.menuItemsCreator=new m},e.prototype.produceNullDescription=function(e){this.menuItemsCreator.nullDescription=e},e.prototype.produceUsingAggregation=function(e){this.menuItemsCreator.useAggregation=e},e.prototype.produceFields=function(e,t,n,r){this.menuItemsCreator.setFieds(e,t,n,r)},e.prototype.produceDefaultValue=function(e){this.menuItemsCreator.produceDefaultValue(e)},e.prototype.buildMenu=function(){return this.menuItemsCreator.buildMenu()},e}();t.MenuItemBuilder=y;var I=function(){function e(){}return e.prototype.setBuilder=function(e){this.builder=e},e.prototype.buildNullMenu=function(){return this.builder.buildMenu(),this.builder.getMenuItems()},e.prototype.buildFieldsMenu=function(e,t,n,r,o,i,a,s){return this.builder.produceFields(n,i,a,s),this.builder.produceOnChange(e),this.builder.produceUsingAggregation(!0),this.builder.produceDefaultValue(t),this.builder.produceScaleEditor(n,o,r),this.builder.produceDerivedColumns(),this.builder.buildMenu(),this.builder.getMenuItems()},e.prototype.buildSectionHeaderFieldsMenu=function(e,t,n,r,o,i){return this.builder.produceFields(n,r,o,i),this.builder.produceOnChange(e),this.builder.produceUsingAggregation(!0),this.builder.produceDefaultValue(t),this.builder.buildMenu(),this.builder.getMenuItems()},e.prototype.getMenuRender=function(){var e=l.getTheme(),t=function(t){var n,o=t.item,i=t.defaultKey;return o.subMenuProps&&(n=o.subMenuProps.items.find((function(e){return e.isChecked})))&&(i=n.key),f.createElement(p.FluentDataBindingMenuItem,{key:o.key,backgroundColor:n?e.semanticColors.buttonBackgroundChecked:null,backgroundColorHover:e.semanticColors.buttonBackgroundHovered},f.createElement(p.FluentDataBindingMenuLabel,null,f.createElement(l.Label,{onClick:function(e){var t,n=null===(t=o.subMenuProps)||void 0===t?void 0:t.items.find((function(e){return e.key===i}));n?n.onClick(e,n):o.onClick(e,o)},styles:p.defaultLabelStyle},o.text)),o.subMenuProps?f.createElement(l.Dropdown,{styles:r(r({},p.defaultStyle),{title:r(r({},p.defaultStyle.title),{lineHeight:p.defultBindButtonSize.height,borderWidth:"0px"}),dropdownOptionText:{boxSizing:"unset",lineHeight:p.defultBindButtonSize.height},callout:{minWidth:180}}),selectedKey:i,options:o.subMenuProps.items.map((function(e){return{key:e.key,text:e.text}})),onChange:function(e,t){var n=o.subMenuProps.items.find((function(e){return e.key===t.key}));n?n.onClick(e,n):o.onClick(e,o)}}):null)};return function(e){var n=null,o=e.items.filter((function(e){return e.subMenuProps})).flatMap((function(e){return e.subMenuProps&&e.subMenuProps.items.find((function(e){return"year"===e.key}))?e.subMenuProps.items:e})).find((function(e){return e.subMenuProps.items.filter((function(e){return e.isChecked&&e.subMenuProps})).length>0}));o&&(n=o.subMenuProps.items.find((function(e){return e.isChecked&&e.subMenuProps})).subMenuProps.items.find((function(e){return"mapping"===e.key})));return f.createElement("div",{id:"mappingMenuAnchor"},n?f.createElement(l.Callout,{target:"#mappingMenuAnchor",directionalHint:l.DirectionalHint.leftCenter},n.onRender(n,(function(){return null}))):null,e.items.find((function(e){return"first"===e.key||"avg"===e.key}))?f.createElement(l.ContextualMenu,r({},e)):f.createElement(f.Fragment,null,e.items.map((function(e){var n,r;if(null===(n=e.subMenuProps)||void 0===n?void 0:n.items.find((function(e){return"year"===e.key}))){var o=e.subMenuProps.items.find((function(e){return e.subMenuProps.items.find((function(e){return e.isChecked}))}));return f.createElement(h.CollapsiblePanel,{key:e.key,header:function(){return f.createElement(l.Label,{styles:p.defaultLabelStyle},e.text)},isCollapsed:null===o,widgets:e.subMenuProps.items.map((function(e){var n,r=null===(n=e.subMenuProps)||void 0===n?void 0:n.items[0].key;return f.createElement(t,{key:e.key,item:e,defaultKey:r})}))})}var i=null===(r=e.subMenuProps)||void 0===r?void 0:r.items[0].key;return f.createElement(t,{key:e.key,item:e,defaultKey:i})}))))}},e}();t.Director=I},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsiblePanel=void 0;var i=n(11),a=n(0),s=n(0),l=n(23),c=n(113),u=n(24),A=n(5),d=n(281);t.CollapsiblePanel=function(e){var t=e.header,n=e.widgets,g=e.isCollapsed,p=e.alignVertically,h=e.store,f=!h&&(void 0!==g&&g),m=o(a.useState(f),2),y=m[0],I=m[1],C=o(a.useState(!1),2),E=C[0],b=C[1];s.useEffect((function(){var e=h?(null==h?void 0:h.collapseOrExpandPanelsType)===u.CollapseOrExpandPanels.Collapse:void 0!==g&&g;I(e)}),[h,null==h?void 0:h.collapseOrExpandPanelsType,g]);var v="calloutId-"+A.getRandomNumber(),B=a.useCallback((function(e){e.preventDefault(),b(!E)}),[E]);return a.createElement(l.FluentGroupedList,{marginLeft:p?0:null},a.createElement(i.GroupedList,{groupProps:{onRenderHeader:function(e){return a.createElement(i.GroupHeader,r({onRenderGroupHeaderCheckbox:function(){return null}},e,{styles:l.groupHeaderStyles,onToggleCollapse:function(e){I(!e.isCollapsed),h&&h.dispatcher.dispatch(new c.Actions.ExpandOrCollapsePanelsUpdated(u.CollapseOrExpandPanels.Custom))},onGroupHeaderClick:function(t){e.onToggleCollapse(t),I(t.isCollapsed)},onRenderTitle:"string"==typeof t?function(){return a.createElement(i.Label,{onContextMenu:B,id:v,style:{width:"100%"}},t)}:t}))}},selectionMode:i.SelectionMode.none,items:n.filter((function(e){return Array.isArray(e)?null!=(null==e?void 0:e[0]):null!=e})).map((function(e,t){return{key:t,item:e}})),onRenderCell:function(e,t,n){return t&&t.item&&"number"==typeof n&&n>-1?a.createElement("div",{className:"charticulator__widget-collapsible-panel-item",key:n},t.item):null},groups:[{count:n.length,key:"group",level:0,name:"string"==typeof t?t:"",startIndex:0,isCollapsed:y}],compact:!0,styles:r(r({},l.groupStyles),{groupIsDropping:{}}),focusZoneProps:{handleTabKey:1}}),a.createElement(d.ContextMenuCallout,{store:h,calloutId:v,hideCallout:function(e){return b(e)},calloutVisible:E}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuCallout=void 0;var r=n(0),o=n(7),i=n(113),a=n(24),s=n(11),l=n(23);t.ContextMenuCallout=function(e){var t=e.store,n=e.calloutId,c=e.hideCallout,u=e.calloutVisible,A=r.useMemo((function(){var e=[];return t&&(e=[{name:o.strings.panels.collapseAllCategories,onClick:function(){t.dispatcher.dispatch(new i.Actions.ExpandOrCollapsePanelsUpdated(a.CollapseOrExpandPanels.Collapse))}},{name:o.strings.panels.expandAllCategories,onClick:function(){t.dispatcher.dispatch(new i.Actions.ExpandOrCollapsePanelsUpdated(a.CollapseOrExpandPanels.Expand))}}]),e}),[t]);return r.createElement(r.Fragment,null,u&&r.createElement(s.Callout,{target:"#"+n,isBeakVisible:!1,onRestoreFocus:function(){return c(!1)},directionalHint:5,onDismiss:function(){return c(!1)}},r.createElement("div",null,r.createElement(s.List,{items:A,onRenderCell:function(e){var t=s.getTheme();return r.createElement(l.FluentDataBindingMenuItem,{backgroundColorHover:t.semanticColors.buttonBackgroundHovered,onClick:function(){e.onClick(),c(!1)}},r.createElement(l.FluentDataBindingMenuLabel,{style:{padding:5}},e.name))}}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyColorButton=t.EmptyMapping=void 0;var o=n(0),i=n(11),a=n(23),s=n(7),l=n(5);t.EmptyMapping=function(e){var t=e.renderColorPicker,n=e.onClick,r=e.options,u=e.type;return o.createElement(o.Fragment,null,r.defaultAuto?o.createElement(o.Fragment,null,t(),u===l.Specification.AttributeType.Color?o.createElement(c,{onClick:n,label:r.label}):o.createElement(i.TextField,{id:"id_"+r.label,styles:a.defaultStyle,label:r.label,onRenderLabel:a.labelRender,placeholder:s.strings.core.auto,onClick:n})):o.createElement(o.Fragment,null,t(),u===l.Specification.AttributeType.Color?o.createElement(c,{onClick:n,label:r.label}):o.createElement(i.TextField,{id:"id_"+r.label,styles:a.defaultStyle,label:r.label,onRenderLabel:a.labelRender,placeholder:s.strings.core.none,onClick:n})))};var c=function(e){var n=e.label,r=e.onClick;return o.createElement("span",{className:"el-color-value"},o.createElement(a.FluentTextField,null,o.createElement(i.TextField,{id:"id_"+n,styles:a.defaultStyle,label:n,onRenderLabel:a.labelRender,placeholder:s.strings.core.none,type:"text",onClick:r})),o.createElement(t.EmptyColorButton,{onClick:r}))};t.EmptyColorButton=function(e){var t=e.onClick,n=e.styles;return o.createElement(a.FluentButton,{marginTop:null==n?void 0:n.marginTop},o.createElement(i.DefaultButton,{iconProps:{iconName:"UnSetColor"},styles:{root:r(r({minWidth:"unset"},a.defultBindButtonSize),{marginLeft:5})},onClick:t,title:s.strings.mappingEditor.chooseColor}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDropzoneAcceptTables=void 0;var r=n(38);function o(e,t){return e.filter((function(e){return t.includes(e.type)}))}function i(e){return e.map((function(e){return e.name}))}t.getDropzoneAcceptTables=function(e,t){var n=[];try{var a=e.store.getTables();if(t)n=i(o(a,[r.TableType.Links,r.TableType.ParentLinks]));else n=i(o(a,[r.TableType.Main,r.TableType.Image,r.TableType.ParentMain]));return n}catch(e){console.log(e)}return n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(604),t),t.Widgets=n(40)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelRadioControl=void 0;var a=n(0),s=n(11),l=n(14),c=n(13),u=n(23),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("span",null,this.props.options.map((function(t,n){return a.createElement(s.DefaultButton,{checked:e.props.value==t,title:e.props.labels[n],key:t,onClick:function(){e.props&&e.props.onChange(t)},iconProps:e.props.icons?{iconName:e.props.icons[n]}:null,text:e.props.labels&&e.props.showText?e.props.labels[n]:null,styles:{root:i({marginRight:5,marginLeft:5},u.defultComponentsHeight)},onRenderIcon:function(){return e.props.icons?a.createElement("span",{style:{marginRight:"0.3rem"}},a.createElement(l.SVGImageIcon,{url:c.getSVGIcon(e.props.icons[n])})):null}})})))},t}(a.Component);t.PanelRadioControl=A},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerHostProcess=t.WorkerRPC=void 0;var i=function(){function e(e){var t=this;this.currentUniqueID=0,this.idCallbacks=new Map,this.worker=new Worker(e),this.worker.onmessage=function(e){var n=e.data;t.idCallbacks.has(n.instanceID)&&t.idCallbacks.get(n.instanceID)(n)}}return e.prototype.newUniqueID=function(){return this.currentUniqueID+=1,"ID"+this.currentUniqueID},e.prototype.rpc=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new Promise((function(r,o){var i=t.newUniqueID();t.idCallbacks.set(i,(function(e){"rpc-result"==e.type&&(t.idCallbacks.delete(i),r(e.returnValue)),"rpc-error"==e.type&&(t.idCallbacks.delete(i),o(new Error(e.errorMessage)))})),t.worker.postMessage({type:"rpc-call",instanceID:i,path:e,args:n})}))},e}();t.WorkerRPC=i;var a=function(){function e(){var e=this;this.rpcMethods=new Map,onmessage=function(t){var n=t.data;e.handleMessage(n)}}return e.prototype.registerRPC=function(e,t){this.rpcMethods.set(e,t)},e.prototype.handleMessage=function(e){switch(e.type){case"rpc-call":try{var t=this.rpcMethods.get(e.path);if(t){var n=t.apply(void 0,o(e.args));n instanceof Promise?n.then((function(t){postMessage({type:"rpc-result",instanceID:e.instanceID,returnValue:t},void 0)})).catch((function(t){postMessage({type:"rpc-error",instanceID:e.instanceID,errorMessage:t.message+"\n"+t.stack},void 0)})):postMessage({type:"rpc-result",instanceID:e.instanceID,returnValue:n},void 0)}else postMessage({type:"rpc-error",instanceID:e.instanceID,errorMessage:'RPC method "'+e.path+'" not found'},void 0)}catch(t){postMessage({type:"rpc-error",instanceID:e.instanceID,errorMessage:t.message+"\n"+t.stack},void 0)}}},e}();t.WorkerHostProcess=a},function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationClassNames",(function(){return ke})),n.d(t,"FontClassNames",(function(){return Je})),n.d(t,"ColorClassNames",(function(){return vt})),n.d(t,"AnimationStyles",(function(){return Ee})),n.d(t,"AnimationVariables",(function(){return Ce})),n.d(t,"DefaultPalette",(function(){return qe})),n.d(t,"DefaultEffects",(function(){return lt})),n.d(t,"DefaultFontStyles",(function(){return Ve})),n.d(t,"registerDefaultFontFaces",(function(){return Ze})),n.d(t,"FontSizes",(function(){return Qe})),n.d(t,"FontWeights",(function(){return Se})),n.d(t,"IconFontSizes",(function(){return Ne})),n.d(t,"createFontStyles",(function(){return Oe})),n.d(t,"getFocusStyle",(function(){return Vt})),n.d(t,"focusClear",(function(){return Kt})),n.d(t,"getFocusOutlineStyle",(function(){return Zt})),n.d(t,"getInputFocusStyle",(function(){return Jt})),n.d(t,"hiddenContentStyle",(function(){return qt})),n.d(t,"PulsingBeaconAnimationStyles",(function(){return nn})),n.d(t,"getGlobalClassNames",(function(){return pn})),n.d(t,"getThemedContext",(function(){return mn})),n.d(t,"ThemeSettingName",(function(){return mt})),n.d(t,"getTheme",(function(){return It})),n.d(t,"loadTheme",(function(){return bt})),n.d(t,"createTheme",(function(){return pt})),n.d(t,"registerOnThemeChangeCallback",(function(){return Ct})),n.d(t,"removeOnThemeChangeCallback",(function(){return Et})),n.d(t,"HighContrastSelector",(function(){return Dt})),n.d(t,"HighContrastSelectorWhite",(function(){return xt})),n.d(t,"HighContrastSelectorBlack",(function(){return wt})),n.d(t,"EdgeChromiumHighContrastSelector",(function(){return Qt})),n.d(t,"ScreenWidthMinSmall",(function(){return St})),n.d(t,"ScreenWidthMinMedium",(function(){return Nt})),n.d(t,"ScreenWidthMinLarge",(function(){return kt})),n.d(t,"ScreenWidthMinXLarge",(function(){return Tt})),n.d(t,"ScreenWidthMinXXLarge",(function(){return jt})),n.d(t,"ScreenWidthMinXXXLarge",(function(){return Lt})),n.d(t,"ScreenWidthMaxSmall",(function(){return Rt})),n.d(t,"ScreenWidthMaxMedium",(function(){return Ot})),n.d(t,"ScreenWidthMaxLarge",(function(){return _t})),n.d(t,"ScreenWidthMaxXLarge",(function(){return Ft})),n.d(t,"ScreenWidthMaxXXLarge",(function(){return zt})),n.d(t,"ScreenWidthMinUhfMobile",(function(){return Pt})),n.d(t,"getScreenSelector",(function(){return Ut})),n.d(t,"getHighContrastNoAdjustStyle",(function(){return Gt})),n.d(t,"getEdgeChromiumNoHighContrastAdjustSelector",(function(){return Ht})),n.d(t,"normalize",(function(){return yn})),n.d(t,"noWrap",(function(){return In})),n.d(t,"getFadedOverflowStyle",(function(){return Cn})),n.d(t,"getPlaceholderStyles",(function(){return bn})),n.d(t,"ZIndexes",(function(){return Yt})),n.d(t,"buildClassMap",(function(){return _})),n.d(t,"getIcon",(function(){return Sn})),n.d(t,"registerIcons",(function(){return xn})),n.d(t,"registerIconAlias",(function(){return Qn})),n.d(t,"unregisterIcons",(function(){return wn})),n.d(t,"setIconOptions",(function(){return Nn})),n.d(t,"getIconClassName",(function(){return Rn})),n.d(t,"InjectionMode",(function(){return i})),n.d(t,"Stylesheet",(function(){return c})),n.d(t,"concatStyleSets",(function(){return On})),n.d(t,"concatStyleSetsWithProps",(function(){return _n})),n.d(t,"fontFace",(function(){return Te})),n.d(t,"keyframes",(function(){return F})),n.d(t,"mergeStyleSets",(function(){return Fn})),n.d(t,"mergeStyles",(function(){return R}));var r,o=n(1),i={none:0,insertNode:1,appendChild:2},a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window}catch(Ge){}var l,c=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=Object(o.a)({injectionMode:i.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(r=s.__stylesheet__)||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var n=(null===(t=s)||void 0===t?void 0:t.FabricConfig)||{};r=s.__stylesheet__=new e(n.mergeStyles)}return r},e.prototype.setConfig=function(e){this._config=Object(o.a)(Object(o.a)({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==i.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case i.insertNode:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case i.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=c.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=o.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function A(){return void 0===l&&(l="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),l}function d(){return{rtl:A()}}l=A();var g,p={};var h={"user-select":1};function f(e,t){var n=function(){if(!g){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;g=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return g}(),r=e[t];if(h[r]){var o=e[t+1];h[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var m,y=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function I(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=y.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var C="left",E="right",b=((m={})[C]=E,m[E]=C,m),v={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function B(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(C)>=0)t[n]=r.replace(C,E);else if(r.indexOf(E)>=0)t[n]=r.replace(E,C);else if(String(o).indexOf(C)>=0)t[n+1]=o.replace(C,E);else if(String(o).indexOf(E)>=0)t[n+1]=o.replace(E,C);else if(b[r])t[n]=b[r];else if(v[o])t[n+1]=v[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function M(e){var t=e&&e["&"];return t?t.displayName:void 0}var D=/\:global\((.+?)\)/g;function x(e,t){return e.indexOf(":global(")>=0?e.replace(D,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function w(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?Q([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!D.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return Q([r],t,x(n,e))})):Q([r],t,x(n,e))}function Q(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=c.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"==typeof s){var l=r.argsFromClassName(s);l&&Q(l,t,n)}else if(Array.isArray(s))Q(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var A=s[u];if("selectors"===u){var d=s.selectors;for(var g in d)d.hasOwnProperty(g)&&w(n,t,g,d[g])}else"object"==typeof A?null!==A&&w(n,t,u,A):void 0!==A&&("margin"===u||"padding"===u?S(o,u,A):o[u]=A)}}return t}function S(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function N(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function k(e,t){return t<=0?"":1===t?e:e+k(e,t-1)}function T(e,t){if(!t)return"";var n,r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s<i.length;s+=2)o=void 0,"-"!==(o=(n=i)[r=s]).charAt(0)&&(n[r]=p[o]=p[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),I(i,s),B(e,i,s),f(i,s);for(s=1;s<i.length;s+=4)i.splice(s,1,":",i[s],";");return i.join("")}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Q(t),o=N(e,r);if(o){var i=c.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(M(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var A=u[l];s.push(A,T(e,r[A]))}a.rulesToInsert=s}return a}}function L(e,t){void 0===t&&(t=1);var n=c.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],A=(u=u.replace(/&/g,k("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(A)}}n.cacheClassName(r,o,i,a)}}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O(e,d())}function O(e,t){var n=u(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j.apply(void 0,Object(o.e)([e],t));return r?(L(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}function _(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=R(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}function F(e){var t=c.getInstance(),n=t.getClassName(),r=[];for(var o in e)e.hasOwnProperty(o)&&r.push(o,"{",T(d(),e[o]),"}");var i=r.join("");return t.insertRule("@keyframes "+n+"{"+i+"}",!0),t.cacheClassName(n,i,[],["keyframes",i]),n}var z="cubic-bezier(.1,.9,.2,1)",P="cubic-bezier(.1,.25,.75,.9)",U=F({from:{opacity:0},to:{opacity:1}}),G=F({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),H=ve(-10),Y=ve(-20),V=ve(-40),W=ve(-400),K=ve(10),Z=ve(20),J=ve(40),q=ve(400),X=Be(10),$=Be(20),ee=Be(-10),te=Be(-20),ne=Me(10),re=Me(20),oe=Me(40),ie=Me(400),ae=Me(-10),se=Me(-20),le=Me(-40),ce=Me(-400),ue=De(-10),Ae=De(-20),de=De(10),ge=De(20),pe=F({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),he=F({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),fe=F({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),me=F({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),ye=F({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Ie=F({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Ce={easeFunction1:z,easeFunction2:P,durationValue1:"0.167s",durationValue2:"0.267s",durationValue3:"0.367s",durationValue4:"0.467s"},Ee={slideRightIn10:be(U+","+H,"0.367s",z),slideRightIn20:be(U+","+Y,"0.367s",z),slideRightIn40:be(U+","+V,"0.367s",z),slideRightIn400:be(U+","+W,"0.367s",z),slideLeftIn10:be(U+","+K,"0.367s",z),slideLeftIn20:be(U+","+Z,"0.367s",z),slideLeftIn40:be(U+","+J,"0.367s",z),slideLeftIn400:be(U+","+q,"0.367s",z),slideUpIn10:be(U+","+X,"0.367s",z),slideUpIn20:be(U+","+$,"0.367s",z),slideDownIn10:be(U+","+ee,"0.367s",z),slideDownIn20:be(U+","+te,"0.367s",z),slideRightOut10:be(G+","+ne,"0.367s",z),slideRightOut20:be(G+","+re,"0.367s",z),slideRightOut40:be(G+","+oe,"0.367s",z),slideRightOut400:be(G+","+ie,"0.367s",z),slideLeftOut10:be(G+","+ae,"0.367s",z),slideLeftOut20:be(G+","+se,"0.367s",z),slideLeftOut40:be(G+","+le,"0.367s",z),slideLeftOut400:be(G+","+ce,"0.367s",z),slideUpOut10:be(G+","+ue,"0.367s",z),slideUpOut20:be(G+","+Ae,"0.367s",z),slideDownOut10:be(G+","+de,"0.367s",z),slideDownOut20:be(G+","+ge,"0.367s",z),scaleUpIn100:be(U+","+pe,"0.367s",z),scaleDownIn100:be(U+","+fe,"0.367s",z),scaleUpOut103:be(G+","+me,"0.167s",P),scaleDownOut98:be(G+","+he,"0.167s",P),fadeIn100:be(U,"0.167s",P),fadeIn200:be(U,"0.267s",P),fadeIn400:be(U,"0.367s",P),fadeIn500:be(U,"0.467s",P),fadeOut100:be(G,"0.167s",P),fadeOut200:be(G,"0.267s",P),fadeOut400:be(G,"0.367s",P),fadeOut500:be(G,"0.467s",P),rotate90deg:be(ye,"0.1s",P),rotateN90deg:be(Ie,"0.1s",P)};function be(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function ve(e){return F({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Be(e){return F({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Me(e){return F({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function De(e){return F({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var xe,we,Qe,Se,Ne,ke=_(Ee);function Te(e){c.getInstance().insertRule("@font-face{"+T(d(),e)+"}",!0)}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(xe||(xe={})),function(e){e.Arabic="'"+xe.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+xe.Cyrillic+"'",e.EastEuropean="'"+xe.EastEuropean+"'",e.Greek="'"+xe.Greek+"'",e.Hebrew="'"+xe.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+xe.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+xe.Vietnamese+"'",e.WestEuropean="'"+xe.WestEuropean+"'",e.Armenian="'"+xe.Armenian+"'",e.Georgian="'"+xe.Georgian+"'"}(we||(we={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Qe||(Qe={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Se||(Se={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Ne||(Ne={}));var je="'Segoe UI', '"+xe.WestEuropean+"'",Le={ar:we.Arabic,bg:we.Cyrillic,cs:we.EastEuropean,el:we.Greek,et:we.EastEuropean,he:we.Hebrew,hi:we.Hindi,hr:we.EastEuropean,hu:we.EastEuropean,ja:we.Japanese,kk:we.EastEuropean,ko:we.Korean,lt:we.EastEuropean,lv:we.EastEuropean,pl:we.EastEuropean,ru:we.Cyrillic,sk:we.EastEuropean,"sr-latn":we.EastEuropean,th:we.Thai,tr:we.EastEuropean,uk:we.Cyrillic,vi:we.Vietnamese,"zh-hans":we.ChineseSimplified,"zh-hant":we.ChineseTraditional,hy:we.Armenian,ka:we.Georgian};function Re(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function Oe(e){var t=function(e){for(var t in Le)if(Le.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Le[t];return je}(e),n=t+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:Re(Qe.mini,Se.regular,n),xSmall:Re(Qe.xSmall,Se.regular,n),small:Re(Qe.small,Se.regular,n),smallPlus:Re(Qe.smallPlus,Se.regular,n),medium:Re(Qe.medium,Se.regular,n),mediumPlus:Re(Qe.mediumPlus,Se.regular,n),large:Re(Qe.large,Se.regular,n),xLarge:Re(Qe.xLarge,Se.semibold,n),xLargePlus:Re(Qe.xLargePlus,Se.semibold,n),xxLarge:Re(Qe.xxLarge,Se.semibold,n),xxLargePlus:Re(Qe.xxLargePlus,Se.semibold,n),superLarge:Re(Qe.superLarge,Se.semibold,n),mega:Re(Qe.mega,Se.semibold,n)}}var _e=!1;function Fe(e){if(!_e&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var ze,Pe=void 0;try{Pe=window}catch(e){}function Ue(e){if(!_e&&void 0!==Pe){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Pe}}var Ge,He,Ye,Ve=Oe(function(e){if(void 0===e&&(e="localStorage"),void 0===ze){var t=Fe(),n="localStorage"===e?function(e){var t=null;try{var n=Ue();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language"):"sessionStorage"===e?function(e){var t=null;try{var n=Ue();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}("language"):void 0;n&&(ze=n),void 0===ze&&t&&(ze=t.documentElement.getAttribute("lang")),void 0===ze&&(ze="en")}return ze}("sessionStorage"));function We(e,t,n,r){Te({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Ke(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;We(t,i+"-light",Se.light,o&&o+" Light"),We(t,i+"-semilight",Se.semilight,o&&o+" SemiLight"),We(t,i+"-regular",Se.regular,o),We(t,i+"-semibold",Se.semibold,o&&o+" SemiBold"),We(t,i+"-bold",Se.bold,o&&o+" Bold")}function Ze(e){if(e){var t=e+"/fonts";Ke(t,xe.Thai,"leelawadeeui-thai","leelawadeeui"),Ke(t,xe.Arabic,"segoeui-arabic"),Ke(t,xe.Cyrillic,"segoeui-cyrillic"),Ke(t,xe.EastEuropean,"segoeui-easteuropean"),Ke(t,xe.Greek,"segoeui-greek"),Ke(t,xe.Hebrew,"segoeui-hebrew"),Ke(t,xe.Vietnamese,"segoeui-vietnamese"),Ke(t,xe.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Ke(t,we.Selawik,"selawik","selawik"),Ke(t,xe.Armenian,"segoeui-armenian"),Ke(t,xe.Georgian,"segoeui-georgian"),We("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Se.light),We("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Se.semibold)}}Ze(null!=(Ye=null===(He=null===(Ge=Ue())||void 0===Ge?void 0:Ge.FabricConfig)||void 0===He?void 0:He.fontBaseUrl)?Ye:"https://static2.sharepointonline.com/files/fabric/assets");var Je=_(Ve),qe={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},Xe=0,$e=function(){function e(){}return e.getValue=function(e,t){var n=et();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=et(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=tt();t||(t=e.__id__=String(Xe++)),n[t]=e},e.removeChangeListener=function(e){delete tt()[e.__id__]},e}();function et(){var e,t=Ue()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function tt(){return et().__callbacks__}var nt,rt={settings:{},scopedSettings:{},inCustomizerContext:!1},ot=$e.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),it=[],at=function(){function e(){}return e.reset=function(){ot.settings={},ot.scopedSettings={}},e.applySettings=function(t){ot.settings=Object(o.a)(Object(o.a)({},ot.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){ot.scopedSettings[t]=Object(o.a)(Object(o.a)({},ot.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=rt);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&ot.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||ot.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){it.push(e)},e.unobserve=function(e){it=it.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||it.forEach((function(e){return e()}))},e}(),st=n(25);!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(nt||(nt={}));var lt={elevation4:nt.depth4,elevation8:nt.depth8,elevation16:nt.depth16,elevation64:nt.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];ut(e||{},i)}return e}function ut(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:ut(e[r]||{},o,n)}}return n.pop(),e}function At(e,t,n,r,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(dt(e,t,Object(o.a)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),i)}function dt(e,t,n,r,i){var a,s,l;void 0===i&&(i=!1);var c={},u=e||{},A=u.white,d=u.black,g=u.themePrimary,p=u.themeDark,h=u.themeDarker,f=u.themeDarkAlt,m=u.themeLighter,y=u.neutralLight,I=u.neutralLighter,C=u.neutralDark,E=u.neutralQuaternary,b=u.neutralQuaternaryAlt,v=u.neutralPrimary,B=u.neutralSecondary,M=u.neutralSecondaryAlt,D=u.neutralTertiary,x=u.neutralTertiaryAlt,w=u.neutralLighterAlt,Q=u.accent;return A&&(c.bodyBackground=A,c.bodyFrameBackground=A,c.accentButtonText=A,c.buttonBackground=A,c.primaryButtonText=A,c.primaryButtonTextHovered=A,c.primaryButtonTextPressed=A,c.inputBackground=A,c.inputForegroundChecked=A,c.listBackground=A,c.menuBackground=A,c.cardStandoutBackground=A),d&&(c.bodyTextChecked=d,c.buttonTextCheckedHovered=d),g&&(c.link=g,c.primaryButtonBackground=g,c.inputBackgroundChecked=g,c.inputIcon=g,c.inputFocusBorderAlt=g,c.menuIcon=g,c.menuHeader=g,c.accentButtonBackground=g),p&&(c.primaryButtonBackgroundPressed=p,c.inputBackgroundCheckedHovered=p,c.inputIconHovered=p),h&&(c.linkHovered=h),f&&(c.primaryButtonBackgroundHovered=f),m&&(c.inputPlaceholderBackgroundChecked=m),y&&(c.bodyBackgroundChecked=y,c.bodyFrameDivider=y,c.bodyDivider=y,c.variantBorder=y,c.buttonBackgroundCheckedHovered=y,c.buttonBackgroundPressed=y,c.listItemBackgroundChecked=y,c.listHeaderBackgroundPressed=y,c.menuItemBackgroundPressed=y,c.menuItemBackgroundChecked=y),I&&(c.bodyBackgroundHovered=I,c.buttonBackgroundHovered=I,c.buttonBackgroundDisabled=I,c.buttonBorderDisabled=I,c.primaryButtonBackgroundDisabled=I,c.disabledBackground=I,c.listItemBackgroundHovered=I,c.listHeaderBackgroundHovered=I,c.menuItemBackgroundHovered=I),E&&(c.primaryButtonTextDisabled=E,c.disabledSubtext=E),b&&(c.listItemBackgroundCheckedHovered=b),D&&(c.disabledBodyText=D,c.variantBorderHovered=(null===(a=n)||void 0===a?void 0:a.variantBorderHovered)||D,c.buttonTextDisabled=D,c.inputIconDisabled=D,c.disabledText=D),v&&(c.bodyText=v,c.actionLink=v,c.buttonText=v,c.inputBorderHovered=v,c.inputText=v,c.listText=v,c.menuItemText=v),w&&(c.bodyStandoutBackground=w,c.defaultStateBackground=w),C&&(c.actionLinkHovered=C,c.buttonTextHovered=C,c.buttonTextChecked=C,c.buttonTextPressed=C,c.inputTextHovered=C,c.menuItemTextHovered=C),B&&(c.bodySubtext=B,c.focusBorder=B,c.inputBorder=B,c.smallInputBorder=B,c.inputPlaceholderText=B),M&&(c.buttonBorder=M),x&&(c.disabledBodySubtext=x,c.disabledBorder=x,c.buttonBackgroundChecked=x,c.menuDivider=x),Q&&(c.accentButtonBackground=Q),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(c.cardShadow=t.elevation4),!r&&(null===(l=t)||void 0===l?void 0:l.elevation8)?c.cardShadowHovered=t.elevation8:c.variantBorderHovered&&(c.cardShadowHovered="0 0 1px "+c.variantBorderHovered),c=Object(o.a)(Object(o.a)({},c),n)}var gt={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function pt(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o,i;void 0===t&&(t={});var a=ct({},e,t,{semanticColors:dt(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=ct(a.fonts[c],t.defaultFontStyle,null===(i=null===(o=t)||void 0===o?void 0:o.fonts)||void 0===i?void 0:i[c])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:qe,effects:lt,fonts:Ve,spacing:gt,isInverted:n,disableGlobalClassNames:!1,semanticColors:At(qe,lt,void 0,n,t),rtl:void 0},e)}var ht=pt({}),ft=[],mt="theme";function yt(){var e,t,n;if(!at.getSettings([mt]).theme){var r=Ue();(null===(n=null===(t=r)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.theme)&&(ht=pt(r.FabricConfig.theme)),at.applySettings(((e={})[mt]=ht,e))}}function It(e){return void 0===e&&(e=!1),!0===e&&(ht=pt({},e)),ht}function Ct(e){-1===ft.indexOf(e)&&ft.push(e)}function Et(e){var t=ft.indexOf(e);-1!==t&&ft.splice(t,1)}function bt(e,t){var n;return void 0===t&&(t=!1),ht=pt(e,t),Object(st.b)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},ht.palette),ht.semanticColors),ht.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(ht))),at.applySettings(((n={})[mt]=ht,n)),ft.forEach((function(e){try{e(ht)}catch(e){}})),ht}yt();var vt={};for(var Bt in qe)qe.hasOwnProperty(Bt)&&(Mt(vt,Bt,"",!1,"color"),Mt(vt,Bt,"Hover",!0,"color"),Mt(vt,Bt,"Background",!1,"background"),Mt(vt,Bt,"BackgroundHover",!0,"background"),Mt(vt,Bt,"Border",!1,"borderColor"),Mt(vt,Bt,"BorderHover",!0,"borderColor"));function Mt(e,t,n,r,o){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[o]=It().palette[t],e);return R(r?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}var Dt="@media screen and (-ms-high-contrast: active), (forced-colors: active)",xt="@media screen and (-ms-high-contrast: black-on-white), (forced-colors: black-on-white)",wt="@media screen and (-ms-high-contrast: white-on-black), (forced-colors: white-on-black)",Qt="@media screen and (forced-colors: active)",St=320,Nt=480,kt=640,Tt=1024,jt=1366,Lt=1920,Rt=Nt-1,Ot=kt-1,_t=Tt-1,Ft=jt-1,zt=Lt-1,Pt=768;function Ut(e,t){return"@media only screen and (min-width: "+e+"px) and (max-width: "+t+"px)"}function Gt(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}function Ht(){var e;return(e={})[Qt]={forcedColorAdjust:"none"},e}var Yt;function Vt(e,t,n,r,o,i,a){return Wt(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a})}function Wt(e,t){var n,r;void 0===t&&(t={});var o=t.inset,i=void 0===o?0:o,a=t.width,s=void 0===a?1:a,l=t.position,c=void 0===l?"relative":l,u=t.highContrastStyle,A=t.borderColor,d=void 0===A?e.palette.white:A,g=t.outlineColor,p=void 0===g?e.palette.neutralSecondary:g,h=t.isFocusedOnly;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===h||h?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+d,outline:s+"px solid "+p,zIndex:Yt.FocusStyle,selectors:(r={},r[Dt]=u,r)},n)}}function Kt(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}function Zt(e,t,n,r){var o;return void 0===t&&(t=0),void 0===n&&(n=1),{selectors:(o={},o[":global(ms-Fabric--isFocusVisible) &:focus"]={outline:n+" solid "+(r||e.palette.neutralSecondary),outlineOffset:-t+"px"},o)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Yt||(Yt={}));var Jt=function(e,t,n,r){var o,i,a;void 0===n&&(n="border"),void 0===r&&(r=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:r,top:r,bottom:r,right:s?0:r},o[n]="2px solid "+e,o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(i={},i[Dt]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},qt={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"};function Xt(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function $t(e){return{opacity:1,borderWidth:e}}function en(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function tn(e,t){return Object(o.a)(Object(o.a)({},Xt(e,t)),{opacity:0})}var nn={continuousPulseAnimationDouble:function(e,t,n,r,o){return F({"0%":Xt(e,n),"1.42%":$t(o),"3.57%":{opacity:1},"7.14%":en(t,r),"8%":tn(e,n),"29.99%":tn(e,n),"30%":Xt(e,n),"31.42%":$t(o),"33.57%":{opacity:1},"37.14%":en(t,r),"38%":tn(e,n),"79.42%":tn(e,n),79.43:Xt(e,n),81.85:$t(o),83.42:{opacity:1},"87%":en(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return F({"0%":Xt(e,n),"14.2%":$t(o),"35.7%":{opacity:1},"71.4%":en(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},rn=!1,on=0,an={empty:!0},sn={},ln="undefined"==typeof WeakMap?null:WeakMap;function cn(){on++}function un(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!ln)return e;if(!rn){var r=c.getInstance();r&&r.onReset&&c.getInstance().onReset(cn),rn=!0}var o,i=0,a=on;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==on||t>0&&i>t)&&(o=dn(),i=0,a=on),l=o;for(var c=0;c<r.length;c++){var u=An(r[c]);l.map.has(u)||l.map.set(u,dn()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function An(e){return e?"object"==typeof e||"function"==typeof e?e:(sn[e]||(sn[e]={val:e}),sn[e]):an}function dn(){return{map:ln?new ln:null}}var gn=un((function(e,t){var n=c.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function pn(e,t,n){return gn(e,void 0!==n?n:t.disableGlobalClassNames)}function hn(e,t){return void 0===e&&(e={}),(fn(t)?t:function(e){return function(t){return e?Object(o.a)(Object(o.a)({},t),e):t}}(t))(e)}function fn(e){return"function"==typeof e}function mn(e,t,n){var r,o=e,i=n||at.getSettings(["theme"],void 0,e.customizations).theme;n&&(r={theme:n});var a=t&&i&&i.schemes&&i.schemes[t];return i&&a&&i!==a&&((r={theme:a}).theme.schemes=i.schemes),r&&(o={customizations:{settings:hn(e.customizations.settings,r),scopedSettings:e.customizations.scopedSettings}}),o}var yn={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},In={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Cn(e,t,n,r,o){void 0===t&&(t="bodyBackground"),void 0===n&&(n="horizontal"),void 0===r&&(r=En("width",n)),void 0===o&&(o=En("height",n));var i=e.semanticColors[t]||e.palette[t],a=function(e){if("#"===e[0])return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)};if(0===e.indexOf("rgba(")){var t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2]}}return{r:255,g:255,b:255}}(i);return{content:'""',position:"absolute",right:0,bottom:0,width:r,height:o,pointerEvents:"none",backgroundImage:"linear-gradient("+("vertical"===n?"to bottom":"to right")+", "+("rgba("+a.r+", "+a.g+", "+a.b+", 0)")+" 0%, "+i+" 100%)"}}function En(e,t){return"width"===e?"horizontal"===t?20:"100%":"vertical"===t?"50%":"100%"}function bn(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}function vn(e){console&&console.warn&&console.warn(e)}var Bn=$e.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),Mn=c.getInstance();Mn&&Mn.onReset&&Mn.onReset((function(){for(var e in Bn)Bn.hasOwnProperty(e)&&Bn[e].subset&&(Bn[e].subset.className=void 0)}));var Dn=function(e){return e.toLowerCase()};function xn(e,t){var n=Object(o.a)(Object(o.a)({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var i in t=t?Object(o.a)(Object(o.a)({},Bn.__options),t):Bn.__options,r)if(r.hasOwnProperty(i)){var a=r[i],s=Dn(i);Bn[s]?jn(i):Bn[s]={code:a,subset:n}}}function wn(e){for(var t=Bn.__options,n=function(e){var n=Dn(e);Bn[n]?delete Bn[n]:t.disableWarnings||vn('The icon "'+e+'" tried to unregister but was not registered.'),Bn.__remapped[n]&&delete Bn.__remapped[n],Object.keys(Bn.__remapped).forEach((function(e){Bn.__remapped[e]===n&&delete Bn.__remapped[e]}))},r=0,o=e;r<o.length;r++){n(o[r])}}function Qn(e,t){Bn.__remapped[Dn(e)]=Dn(t)}function Sn(e){var t=void 0,n=Bn.__options;if(e=e?Dn(e):"",e=Bn.__remapped[e]||e)if(t=Bn[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(Te(r.fontFace),r.isRegistered=!0),r.className||(r.className=R(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&vn('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}function Nn(e){Bn.__options=Object(o.a)(Object(o.a)({},Bn.__options),e)}var kn=[],Tn=void 0;function jn(e){var t=Bn.__options;t.disableWarnings||(kn.push(e),void 0===Tn&&(Tn=setTimeout((function(){vn("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+kn.slice(0,10).join(", ")+(kn.length>10?" (+ "+(kn.length-10)+" more)":"")),Tn=void 0,kn=[]}),2e3)))}var Ln={display:"inline-block"};function Rn(e){var t="",n=Sn(e);return n&&(t=R(n.subset.className,Ln,{selectors:{"::before":{content:'"'+n.code+'"'}}})),t}function On(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,a=e;i<a.length;i++){var s=a[i];if(s)for(var l in s)if(s.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var u in c)c.hasOwnProperty(u)&&(r.hasOwnProperty(u)?r[u].push(c[u]):r[u]=[c[u]]);continue}var A=n[l],d=s[l];n[l]=void 0===A?d:Object(o.e)(Array.isArray(A)?A:[A],Array.isArray(d)?d:[d])}}if(Object.keys(r).length>0){n.subComponentStyles={};var g=n.subComponentStyles,p=function(e){if(r.hasOwnProperty(e)){var t=r[e];g[e]=function(e){return On.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var u in r)p(u)}return n}function _n(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?On.apply(void 0,r):{}}function Fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zn(e,d())}function zn(e,t){var n,r,o={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var i=On.apply(void 0,e),a=[];for(var s in i)if(i.hasOwnProperty(s)){if("subComponentStyles"===s){o.subComponentStyles=i.subComponentStyles||{};continue}var l=u(i[s]),c=l.classes,A=l.objects;if(null===(n=A)||void 0===n?void 0:n.length)(p=j(t||{},{displayName:s},A))&&(a.push(p),o[s]=c.concat([p.className]).join(" "));else o[s]=c.join(" ")}for(var d=0,g=a;d<g.length;d++){var p;(p=g[d])&&L(p,null===(r=t)||void 0===r?void 0:r.specificityMultiplier)}return o}var Pn=n(295);Object(Pn.a)("@uifabric/styling","7.18.0"),yt()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(35),o=n(15);var i,a=n(97);function s(e){if(void 0===e&&(e="sessionStorage"),void 0===i){var t=Object(r.a)(),n="localStorage"===e?function(e){var t=null;try{var n=Object(o.a)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language"):"sessionStorage"===e?a.a("language"):void 0;n&&(i=n),void 0===i&&t&&(i=t.documentElement.getAttribute("lang")),void 0===i&&(i="en")}return i}function l(e,t){var n=Object(r.a)();n&&n.documentElement.setAttribute("lang",e);var s=!0===t?"none":t||"sessionStorage";"localStorage"===s?function(e,t){try{var n=Object(o.a)();n&&n.localStorage.setItem(e,t)}catch(e){}}("language",e):"sessionStorage"===s&&a.b("language",e),i=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(96);function o(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)if(e===t)o=!0;else for(o=!1;t;){var i=Object(r.a)(t);if(i===e){o=!0;break}t=i}else e.contains&&(o=e.contains(t));return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(152);function o(e){var t;return e&&Object(r.a)(e)&&(t=e._virtual.parent),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(153);function o(e,t){var n=Object(r.a)(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],A=t[c];if(!1===(o=n?n.call(r,u,A,c):void 0)||void 0===o&&u!==A)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===Q||2===Q&&o(l,1)?"-webkit-"+l+l:l}if(0===Q||2===Q&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(M,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(A,":-webkit-")+a.replace(A,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(I,"tb");break;case 232:l=a.replace(I,"tb-rl");break;case 220:l=a.replace(I,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(b,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(b,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===B.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(v,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,c,u){for(var A,d=0,g=t;d<k;++d)switch(A=N[d].call(l,e,g,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:g=A}if(g!==t)return g}function s(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?Q=1:(Q=2,T=e):Q=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<k){var l=a(-1,n,s,s,x,D,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var A=function e(n,s,l,A,d){for(var g,p,h,I,E,b=0,v=0,B=0,M=0,N=0,T=0,L=h=g=0,R=0,O=0,_=0,F=0,z=l.length,P=z-1,U="",G="",H="",Y="";R<z;){if(p=l.charCodeAt(R),R===P&&0!==v+M+B+b&&(0!==v&&(p=47===v?10:47),M=B=b=0,z++,P++),0===v+M+B+b){if(R===P&&(0<O&&(U=U.replace(u,"")),0<U.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(R)}p=59}switch(p){case 123:for(g=(U=U.trim()).charCodeAt(0),h=1,F=++R;R<z;){switch(p=l.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(p=l.charCodeAt(R+1)){case 42:case 47:e:{for(L=R+1;L<P;++L)switch(l.charCodeAt(L)){case 47:if(42===p&&42===l.charCodeAt(L-1)&&R+2!==L){R=L+1;break e}break;case 10:if(47===p){R=L+1;break e}}R=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;R++<P&&l.charCodeAt(R)!==p;);}if(0===h)break;R++}switch(h=l.substring(F,R),0===g&&(g=(U=U.replace(c,"").trim()).charCodeAt(0)),g){case 64:switch(0<O&&(U=U.replace(u,"")),p=U.charCodeAt(1)){case 100:case 109:case 115:case 45:O=s;break;default:O=S}if(F=(h=e(s,O,h,p,d+1)).length,0<k&&(E=a(3,h,O=t(S,U,_),s,x,D,F,p,d,A),U=O.join(""),void 0!==E&&0===(F=(h=E.trim()).length)&&(p=0,h="")),0<F)switch(p){case 115:U=U.replace(C,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(f,"$1 $2"))+"{"+h+"}",h=1===Q||2===Q&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===A&&(G+=h,h="")}else h="";break;default:h=e(s,t(s,U,_),h,A,d+1)}H+=h,h=_=O=L=g=0,U="",p=l.charCodeAt(++R);break;case 125:case 59:if(1<(F=(U=(0<O?U.replace(u,""):U).trim()).length))switch(0===L&&(g=U.charCodeAt(0),45===g||96<g&&123>g)&&(F=(U=U.replace(" ",":")).length),0<k&&void 0!==(E=a(1,U,s,n,x,D,G.length,A,d,A))&&0===(F=(U=E.trim()).length)&&(U="\0\0"),g=U.charCodeAt(0),p=U.charCodeAt(1),g){case 0:break;case 64:if(105===p||99===p){Y+=U+l.charAt(R);break}default:58!==U.charCodeAt(F-1)&&(G+=r(U,g,p,U.charCodeAt(2)))}_=O=L=g=0,U="",p=l.charCodeAt(++R)}}switch(p){case 13:case 10:47===v?v=0:0===1+g&&107!==A&&0<U.length&&(O=1,U+="\0"),0<k*j&&a(0,U,s,n,x,D,G.length,A,d,A),D=1,x++;break;case 59:case 125:if(0===v+M+B+b){D++;break}default:switch(D++,I=l.charAt(R),p){case 9:case 32:if(0===M+b+v)switch(N){case 44:case 58:case 9:case 32:I="";break;default:32!==p&&(I=" ")}break;case 0:I="\\0";break;case 12:I="\\f";break;case 11:I="\\v";break;case 38:0===M+v+b&&(O=_=1,I="\f"+I);break;case 108:if(0===M+v+b+w&&0<L)switch(R-L){case 2:112===N&&58===l.charCodeAt(R-3)&&(w=N);case 8:111===T&&(w=T)}break;case 58:0===M+v+b&&(L=R);break;case 44:0===v+B+M+b&&(O=1,I+="\r");break;case 34:case 39:0===v&&(M=M===p?0:0===M?p:M);break;case 91:0===M+v+B&&b++;break;case 93:0===M+v+B&&b--;break;case 41:0===M+v+b&&B--;break;case 40:if(0===M+v+b){if(0===g)switch(2*N+3*T){case 533:break;default:g=1}B++}break;case 64:0===v+B+M+b+L+h&&(h=1);break;case 42:case 47:if(!(0<M+b+B))switch(v){case 0:switch(2*p+3*l.charCodeAt(R+1)){case 235:v=47;break;case 220:F=R,v=42}break;case 42:47===p&&42===N&&F+2!==R&&(33===l.charCodeAt(F+2)&&(G+=l.substring(F,R+1)),I="",v=0)}}0===v&&(U+=I)}T=N,N=p,R++}if(0<(F=G.length)){if(O=s,0<k&&(void 0!==(E=a(2,G,O,n,x,D,F,A,d,A))&&0===(G=E).length))return Y+G+H;if(G=O.join(",")+"{"+G+"}",0!=Q*w){switch(2!==Q||o(G,2)||(w=0),w){case 111:G=G.replace(y,":-moz-$1")+G;break;case 112:G=G.replace(m,"::-webkit-input-$1")+G.replace(m,"::-moz-$1")+G.replace(m,":-ms-input-$1")+G}w=0}}return Y+G+H}(S,s,n,0,0);return 0<k&&(void 0!==(l=a(-2,A,s,s,x,D,A.length,0,0,0))&&(A=l)),"",w=0,D=x=1,A}var c=/^\0+/g,u=/[\0\r\f]/g,A=/: */g,d=/zoo|gra/,g=/([,: ])(transform)/g,p=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,f=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,I=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,b=/-self|flex-/g,v=/[^]*?(:[rp][el]a[\w-]+)[^]*/,B=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,D=1,x=1,w=0,Q=1,S=[],N=[],k=0,T=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:k=N.length=0;break;default:if("function"==typeof t)N[k++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}i("@uifabric/set-version","6.0.0")},function(e,t,n){"use strict";var r=n(20),o=n(21),i=Object(r.a)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.a}),(function(e){return e.getUTCDate()-1}));t.a=i;i.range},function(e,t,n){"use strict";var r=n(20),o=n(21),i=Object(r.a)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.c)/o.a}),(function(e){return e.getDate()-1}));t.a=i;i.range},,,,,,,,,,,function(e,t,n){"use strict";function r(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectHash=t.uniqueID=t.uuid=void 0,t.uuid=function(){return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()};var o=new Set;t.uniqueID=function(){for(;;){var e=Math.random().toString(36).substr(2);if(!o.has(e))return o.add(e),e}};var i=1,a=new WeakMap;t.objectHash=function(e){if(a.has(e))return a.get(e);var t="<#"+i.toString()+">";return i+=1,a.set(e,t),t}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Scale=void 0;var l=n(184),c=n(107),u=n(12),A=n(24);!function(e){var t=function(){function e(){}return e.prototype.map=function(e){var t=this;return e.map((function(e){return null==e?null:t.get(e)}))},e}();e.BaseScale=t;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.inferParameters=function(e){e=e.filter((function(e){return!isNaN(e)}));var t=l.scaleLinear().domain([Math.min.apply(Math,a(e)),Math.max.apply(Math,a(e))]).nice();this.domainMin=t.domain()[0],this.domainMax=t.domain()[1],this.domainMax==this.domainMin&&(this.domainMax=this.domainMin+1)},t.prototype.adjustDomain=function(e){"default"==e.startWithZero||null==e.startWithZero?this.domainMin>0&&(this.domainMin=0):"always"==e.startWithZero&&(this.domainMin=0)},t.prototype.get=function(e){return(e-this.domainMin)/(this.domainMax-this.domainMin)},t.prototype.ticks=function(e){return void 0===e&&(e=10),l.scaleLinear().domain([this.domainMin,this.domainMax]).ticks(e)},t.prototype.tickFormat=function(e,t){return void 0===e&&(e=10),l.scaleLinear().domain([this.domainMin,this.domainMax]).tickFormat(e,t)},t}(t);e.LinearScale=n;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.inferParameters=function(e){var t=Math.min.apply(Math,a(e)),n=l.scaleLog().domain([t<=0?1:t,Math.max.apply(Math,a(e))]).nice();this.domainMin=n.domain()[0],this.domainMax=n.domain()[1],this.domainMax==this.domainMin&&(this.domainMax=this.domainMin+1)},t.prototype.get=function(e){return(Math.log(e)-Math.log(this.domainMin))/(Math.log(this.domainMax)-Math.log(this.domainMin))},t.prototype.ticks=function(e){return void 0===e&&(e=10),l.scaleLog().domain([this.domainMin,this.domainMax]).ticks(e)},t.prototype.tickFormat=function(e,t){return void 0===e&&(e=10),l.scaleLog().domain([this.domainMin,this.domainMax]).tickFormat(e,t)},t}(t);e.LogarithmicScale=r;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.inferParameters=function(e,t){void 0===t&&(t=!0);var n=e.filter((function(e){return!isNaN(e)})),r=(u.isUtcTimeZone()?l.scaleUtc():l.scaleTime()).domain([Math.min.apply(Math,a(n)),Math.max.apply(Math,a(n))]);t&&(r=r.nice()),this.domainMin=r.domain()[0].getTime(),this.domainMax=r.domain()[1].getTime(),this.domainMax==this.domainMin&&(this.domainMax=this.domainMin+1e3)},t.prototype.ticks=function(e){return void 0===e&&(e=10),(u.isUtcTimeZone()?l.scaleUtc():l.scaleTime()).domain([this.domainMin,this.domainMax]).ticks(e).map((function(e){return e.getTime()}))},t.prototype.tickFormat=function(e,t){void 0===e&&(e=10);var n=u.isUtcTimeZone()?c.utcFormat(t):c.timeFormat(t);return function(e){return n(new Date(e))}},t}(n);e.DateScale=i;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.inferParameters=function(e,t){var n,r;void 0===t&&(t=A.OrderMode.alphabetically);var o=new Map,i=[];try{for(var a=s(e),l=a.next();!l.done;l=a.next()){var c=l.value;null!=c&&(c=c.toString(),o.has(c)?o.set(c,o.get(c)+1):(o.set(c,1),i.push(c)))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}switch(t){case"alphabetically":i.sort(u.getSortFunctionByData(i));break;case"occurrence":i.sort((function(e,t){var n=o.get(e),r=o.get(t);return n!=r?r-n:e<t?-1:1}))}this.domain=new Map;for(var d=0;d<i.length;d++)this.domain.set(i[d],d);this.length=i.length},t.prototype.get=function(e){return this.domain.get(e)},t}(t);e.CategoricalScale=d}(t.Scale||(t.Scale={}))},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Dispatcher=t.EventEmitter=t.EventSubscription=void 0;var a=function(){function e(e,t,n){this.emitter=e,this.event=t,this.listener=n}return e.prototype.remove=function(){this.emitter.removeSubscription(this)},e}();t.EventSubscription=a;var s=function(){function e(){this.eventSubscriptions=new Map}return e.prototype.addListener=function(e,t){var n=new a(this,e,t);if(n.prev=null,n.next=null,this.eventSubscriptions.has(e)){var r=this.eventSubscriptions.get(e);null==r.first?(r.first=n,r.last=n):(r.last.next=n,n.prev=r.last,r.last=n)}else this.eventSubscriptions.set(e,{first:n,last:n});return n},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this.eventSubscriptions.has(e))for(var r=this.eventSubscriptions.get(e).first;r;)r.listener.apply(r,o(t)),r=r.next},e.prototype.removeSubscription=function(e){var t=this.eventSubscriptions.get(e.event);null!=e.prev?e.prev.next=e.next:t.first=e.next,null!=e.next?e.next.prev=e.prev:t.last=e.prev},e}();function l(e,t){return e[0]==t[0]?e[1]-t[1]:e[0]-t[0]}t.EventEmitter=s;var c=function(){function e(){this.registeredItems=new Map,this.currentID=0,this.isDispatching=!1,this.dispatchingIndex=0}return e.prototype.dispatch=function(e){var t,n;if(this.isDispatching)throw new Error("Dispatcher: cannot dispatch in the middle of a dispatch");this.isDispatching=!0,this.dispatchingIndex=0,this.currentAction=e,this.registeredItems.forEach((function(e){return e.stage=0}));try{var r=Array.from(this.registeredItems.values());r=r.sort((function(e,t){return l(e.order,t.order)}));try{for(var o=i(r),a=o.next();!a.done;a=o.next()){var s=a.value;0==s.stage&&this.invoke(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}finally{delete this.currentAction,this.isDispatching=!1}},e.prototype.invoke=function(e){e.stage=1,e.callback(this.currentAction),this.dispatchingIndex+=1,e.stage=2},e.prototype.register=function(t,n){void 0===n&&(n=e.PRIORITY_DEFAULT);var r="ID"+(this.currentID++).toString();return this.registeredItems.set(r,{order:[n,this.currentID],stage:0,callback:t}),r},e.prototype.unregister=function(e){this.registeredItems.delete(e)},e.prototype.waitFor=function(e){var t,n,r=this;e=e.filter((function(e){return r.registeredItems.has(e)})).sort((function(e,t){return l(r.registeredItems.get(e).order,r.registeredItems.get(t).order)}));try{for(var o=i(e),a=o.next();!a.done;a=o.next()){var s=a.value,c=this.registeredItems.get(s);1!=c.stage?2!=c.stage&&this.invoke(c):console.warn("Dispatcher: circular dependency detected in waitFor "+s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.PRIORITY_LOW=70,e.PRIORITY_DEFAULT=50,e.PRIORITY_HIGH=30,e}();t.Dispatcher=c},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.fontList=t.primaryButtonStyles=t.defaultDigitsGroup=t.defaultCurrencySymbol=t.defaultCurrency=t.defaultNumberFormat=t.defaultDelimiter=t.ImageKeyColumn=t.KeyColumn=t.isReservedColumnName=t.LinkTargetKeyColumn=t.LinkSourceKeyColumn=t.messageTypes=t.MessageType=void 0,function(e){e[e.GeneralError=0]="GeneralError",e[e.ParsingDataError=1]="ParsingDataError",e[e.ConstraintSolvingError=2]="ConstraintSolvingError",e[e.LinkGuideCreatingError=3]="LinkGuideCreatingError",e[e.InvalidLinksData=4]="InvalidLinksData",e[e.NoID=5]="NoID",e[e.NoSourceOrTargetID=6]="NoSourceOrTargetID"}(r=t.MessageType||(t.MessageType={})),t.messageTypes=Object.values(r),t.LinkSourceKeyColumn="source_id",t.LinkTargetKeyColumn="target_id",t.isReservedColumnName=function(e){return e===t.LinkSourceKeyColumn||e===t.LinkTargetKeyColumn||e===t.KeyColumn||e===t.ImageKeyColumn},t.KeyColumn="id",t.ImageKeyColumn="imageId",t.defaultDelimiter=",",t.defaultNumberFormat=Object.freeze({remove:",",decimal:"."}),t.defaultCurrency=["$",""],t.defaultCurrencySymbol="$",t.defaultDigitsGroup=[3],t.primaryButtonStyles={root:{backgroundColor:"#F2C811",color:"black",borderRadius:2,borderColor:"#676666",height:35},rootHovered:{backgroundColor:"#F2C811",color:"black"},rootChecked:{backgroundColor:"#F2C811",color:"black"},rootPressed:{backgroundColor:"#F2C811",color:"black"}},t.fontList=["Arial Black","Arial","Comic Sans MS","Consolas","Courier New","Geneva","Georgia","Helvetica","Impact","Inconsolata","Lato","Lucida Console","Lucida Grande","Palatino","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Bold","Tahoma","Times","Trebuchet MS","Verdana"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadDataFromURL=void 0,t.loadDataFromURL=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=10),fetch(e).then((function(e){if(e.ok&&200==e.status)return"text"==t?e.text():"json"==t?e.json():"arraybuffer"==t?e.arrayBuffer():"blob"==t?e.blob():e.text();throw new Error("failed to fetch url")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetLoader=void 0;var i=n(81),a=n(315),s=function(){function e(){}return e.prototype.loadTextData=function(e){return fetch(e).then((function(e){return e.text()}))},e.prototype.loadDSVFromURL=function(e,t){return this.loadTextData(e).then((function(n){return a.parseDataset(e,n,t)}))},e.prototype.loadDSVFromContents=function(e,t,n){return a.parseDataset(e,t,n)},e.prototype.loadTableFromSourceSpecification=function(e){return r(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return e.url?[4,this.loadTextData(e.url)]:[3,2];case 1:return t=r.sent(),e.url.toLowerCase().endsWith(".tsv")&&(e.localeFileFormat.delimiter="\t"),n=a.parseDataset(e.url.split("/").pop(),t,e.localeFileFormat),e.name&&(n.name=e.name),[2,n];case 2:if(e.content)return(n=a.parseDataset(e.name,e.content,e.localeFileFormat)).name=e.name,[2,n];throw new Error("invalid table specification, url or content must be specified");case 3:return[2]}}))}))},e.prototype.loadDatasetFromSourceSpecification=function(e){return r(this,void 0,void 0,(function(){var t,n,r=this;return o(this,(function(o){switch(o.label){case 0:return[4,Promise.all(e.tables.map((function(e){return r.loadTableFromSourceSpecification(e)})))];case 1:return(t=o.sent())[0].type=i.TableType.Main,t[1]&&(t[1].type=i.TableType.Links),n={name:e.name,tables:t},!e.name&&t.length>0&&(n.name=t[0].name),[2,n]}}))}))},e}();t.DatasetLoader=s},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.parseDataset=t.parseHints=void 0;var o=n(626),i=n(115),a=n(81),s=n(12);function l(e){var t,n,o=e.match(/ *\*(.*)/);if(o){var i=o[1].trim().split(";").map((function(e){return e.trim()})).filter((function(e){return""!=e})),a={};try{for(var s=r(i),l=s.next();!l.done;l=s.next()){var c=l.value.split(":").map((function(e){return e.trim()}));2==c.length?a[c[0]]=c[1]:1==c.length&&(a[c[0]]="true")}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}return{}}t.parseHints=l,t.parseDataset=function(e,t,n){var r,c=e.replace(/\W/g,"_");if((r=(r=o.dsvFormat(n.delimiter).parseRows(t)).filter((function(e){return e.length>0}))).length>0){var u=r[0],A=r.slice(1);A.length>0&&A[0].every((function(e){return/^ *\*/.test(e)}))?(A[0].map(l),A=A.slice(1)):u.map((function(){return{}}));var d=u.map((function(e,t){var r=A.map((function(e){return e[t]}));return i.inferAndConvertColumn(r,n)})),g=[];d.forEach((function(e,t){if(e.rawValues){var n=s.deepClone(e);n.metadata.isRaw=!0,n.values=n.rawValues,delete n.rawValues;var r=u[t]+a.rawColumnPostFix;e.metadata.rawColumnName=r,delete e.rawValues,u.push(r),g.push(n)}})),d=d.concat(g);var p=A.map((function(e,t){var n={_id:t.toString()};return d.forEach((function(e,r){n[u[r]]=d[r].values[t],d[r].rawValues&&(n[u[r]+a.rawColumnPostFix]=d[r].rawValues[t],u.find((function(e){return e===u[r]+a.rawColumnPostFix}))||u.push(u[r]+a.rawColumnPostFix))})),n}));return{name:c,displayName:c,columns:d.map((function(e,t){return{name:u[t],displayName:u[t],type:e.type,metadata:e.metadata}})),rows:p,type:null,localeNumberFormat:n.numberFormat}}return null}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RowContext=t.TableContext=t.DatasetContext=void 0;var o=function(){function e(e){var t,n;this.dataset=e,this.fields={};try{for(var o=r(e.tables),i=o.next();!i.done;i=o.next()){var a=i.value;this.fields[a.name]=a.rows}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}return e.prototype.getTableContext=function(e){return new i(this,e)},e.prototype.getVariable=function(e){return this.fields[e]},e}();t.DatasetContext=o;var i=function(){function e(e,t){this.parent=e,this.table=t,this.fields={},this.fields.table=t.rows}return e.prototype.getRowContext=function(e){return new a(this,e)},e.prototype.getVariable=function(e){if(void 0===this.fields[e])return this.parent.getVariable(e)},e}();t.TableContext=i;var a=function(){function e(e,t){this.parent=e,this.row=t}return e.prototype.getVariable=function(e){var t=this.row[e];return void 0===t?this.parent.getVariable(e):t},e}();t.RowContext=a},function(e,t,n){"use strict";function r(e,t,n,o){this.message=e,this.expected=t,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?i(e.parts[t][0])+"-"+i(e.parts[t][1]):i(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}return"Expected "+function(e){var t,r,o,i=new Array(e.length);for(t=0;t<e.length;t++)i[t]=(o=e[t],n[o.type](o));if(i.sort(),i.length>0){for(t=1,r=1;t<i.length;t++)i[t-1]!==i[t]&&(i[r]=i[t],r++);i.length=r}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:r,parse:function(e,t){t=void 0!==t?t:{};var o,i={},a={start:0,start_text:1},s=0,l=[function(e){return new B.TextExpression(e)},"${",f("${",!1),"}{",f("}{",!1),/^[^}]/,m(["}"],!0,!1),"}",f("}",!1),function(e,t){return{expression:e,format:M(t)}},function(e){return{expression:e}},function(e){return{string:e.join("")}},/^[^$\\]/,m(["$","\\"],!0,!1),function(e){return M(e)},"\\",f("\\",!1),/^[$\\]/,m(["$","\\"],!1,!1),function(e){return M(e)},function(e){return e},y("operator"),"and",f("and",!1),"or",f("or",!1),">=",f(">=",!1),">",f(">",!1),"<=",f("<=",!1),"<",f("<",!1),"==",f("==",!1),"!=",f("!=",!1),"in",f("in",!1),"+",f("+",!1),"-",f("-",!1),"*",f("*",!1),"/",f("/",!1),"^",f("^",!1),"not",f("not",!1),function(e){return D("not",e)},function(e,t){return function(e,t){for(var n=e,r=0;r<t.length;r++){var o=M(t[r][1]),i=t[r][3];n=D(o,n,i)}return n}(e,t)},function(e,t){return D(M(e),t)},y('"("'),"(",f("(",!1),y('")"'),")",f(")",!1),y("\",'"),",",f(",",!1),y("."),".",f(".",!1),function(e,t){return new B.FieldAccess(e,t.map((function(e){return e[3]})))},function(e,t){return[e].concat(t.map(e=>e[1]))},y("variable"),function(e){return new B.Variable(e)},function(e){return[e]},function(e,t){return[e].concat(t)},function(e){for(var t=[],n=0;n<e.length;n++)2==e[n].length||t.push(e[n][0]);return t},function(){return[]},function(e,t){return new B.FunctionCall(e,t)},"=>",f("=>",!1),function(e,t){return new B.LambdaFunction(t,e)},function(e,t){return new B.LambdaFunction(t,[e])},y("value"),y("floating point"),/^[+\-]/,m(["+","-"],!1,!1),/^[0-9]/,m([["0","9"]],!1,!1),/^[eE]/,m(["e","E"],!1,!1),function(e){return new B.NumberValue(parseFloat(M(e)))},y("boolean"),"true",f("true",!1),function(){return new B.BooleanValue(!0)},"false",f("false",!1),function(){return new B.BooleanValue(!1)},y("string"),'"',f('"',!1),/^[^"]/,m(['"'],!0,!1),function(e){var t=JSON.parse(M(e));return new B.StringValue(t)},y("name"),/^[a-zA-Z_]/,m([["a","z"],["A","Z"],"_"],!1,!1),/^[a-zA-Z0-9_]/,m([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),function(e){return M(e)},"`",f("`",!1),/^[^`]/,m(["`"],!0,!1),function(e){return JSON.parse(M(e).replace(/\`/g,'"'))},y("whitespace"),/^[ \n]/,m([" ","\n"],!1,!1)],c=[v(";$"),v('%$;"0#*;"&/\' 8!: !! )'),v('%2!""6!7"/#;$/{$2#""6#7$/l$;H/c$$4%""5!7&/,#0)*4%""5!7&&&&#/A$;H/8$2\'""6\'7(/)$8\':)\'"%")(\'\'#(&\'#(%\'#($\'#(#\'#("\'#&\'#.o &%2!""6!7"/@#;$/7$2\'""6\'7(/($8#:*#!!)(#\'#("\'#&\'#.< &%$;#/&#0#*;#&&&#/\' 8!:+!! )'),v('%$4,""5!7-/,#0)*4,""5!7-&&&#/\' 8!:.!! ).G &%2/""6/70/7#41""5!72/($8":3"! )("\'#&\'#'),v("%;H/:#;%/1$;H/($8#:4#!!)(#'#(\"'#&'#"),v("%;,/' 8!:4!! )"),v('<26""6677.) &28""6879=." 75'),v('<2:""6:7;.e &2<""6<7=.Y &2>""6>7?.M &2@""6@7A.A &2B""6B7C.5 &2D""6D7E.) &2F""6F7G=." 75'),v('<2H""6H7I.) &2J""6J7K=." 75'),v('<2L""6L7M.) &2N""6N7O=." 75'),v('<2P""6P7Q=." 75'),v('<2J""6J7K.) &2H""6H7I=." 75'),v("%2R\"\"6R7S/:#;H/1$;,/($8#:T#! )(#'#(\"'#&'#. &%;-/#$%;H/>#;&/5$;H/,$;-/#$+$)($'#(#'#(\"'#&'#0H*%;H/>#;&/5$;H/,$;-/#$+$)($'#(#'#(\"'#&'#&/)$8\":U\"\"! )(\"'#&'#"),v("%;./#$%;H/>#;'/5$;H/,$;./#$+$)($'#(#'#(\"'#&'#0H*%;H/>#;'/5$;H/,$;./#$+$)($'#(#'#(\"'#&'#&/)$8\":U\"\"! )(\"'#&'#"),v("%;//#$%;H/>#;(/5$;H/,$;//#$+$)($'#(#'#(\"'#&'#0H*%;H/>#;(/5$;H/,$;//#$+$)($'#(#'#(\"'#&'#&/)$8\":U\"\"! )(\"'#&'#"),v("%;0/#$%;H/>#;)/5$;H/,$;0/#$+$)($'#(#'#(\"'#&'#0H*%;H/>#;)/5$;H/,$;0/#$+$)($'#(#'#(\"'#&'#&/)$8\":U\"\"! )(\"'#&'#"),v("%;1/#$%;H/>#;*/5$;H/,$;1/#$+$)($'#(#'#(\"'#&'#0H*%;H/>#;*/5$;H/,$;1/#$+$)($'#(#'#(\"'#&'#&/)$8\":U\"\"! )(\"'#&'#"),v(";7.E &%;+/;#;H/2$;1/)$8#:V#\"\" )(#'#(\"'#&'#"),v('<2X""6X7Y=." 7W'),v('<2[""6[7\\=." 7Z'),v('<2^""6^7_=." 7]'),v('<2a""6a7b=." 7`'),v("%;2/L#;H/C$;,/:$;H/1$;3/($8%:4%!\")(%'#($'#(#'#(\"'#&'#"),v(";C.; &;@.5 &;B./ &;9.) &;<.# &;6"),v(";<.# &;6"),v("%;8/#$%;H/>#;5/5$;H/,$;G/#$+$)($'#(#'#(\"'#&'#/K#0H*%;H/>#;5/5$;H/,$;G/#$+$)($'#(#'#(\"'#&'#&&&#/)$8\":c\"\"! )(\"'#&'#"),v(";9.) &;<.# &;6"),v('%;G/k#$%2a""6a7b/,#;G/#$+")("\'#&\'#0<*%2a""6a7b/,#;G/#$+")("\'#&\'#&/)$8":d""! )("\'#&\'#'),v("<%;G/' 8!:f!! )=.\" 7e"),v("%;%/' 8!:g!! )"),v("%;=/M#;H/D$;4/;$;H/2$;>/)$8%:h%\"$ )(%'#($'#(#'#(\"'#&'#./ &%;=/' 8!:g!! )"),v("%;2/L#;H/C$;>/:$;H/1$;3/($8%:i%!\")(%'#($'#(#'#(\"'#&'#.O &%2X\"\"6X7Y/?#;H/6$2[\"\"6[7\\/'$8#:j# )(#'#(\"'#&'#"),v("%;;/;#;H/2$;?/)$8#:k#\"\" )(#'#(\"'#&'#"),v("%;G/M#;H/D$;4/;$;H/2$;A/)$8%:h%\"$ )(%'#($'#(#'#(\"'#&'#./ &%;G/' 8!:g!! )"),v("%;2/w#;H/n$;A/e$;H/\\$;3/S$;H/J$2l\"\"6l7m/;$;H/2$;$/)$8):n)\"& )()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#.] &%;G/S#;H/J$2l\"\"6l7m/;$;H/2$;$/)$8%:o%\"$ )(%'#($'#(#'#(\"'#&'#"),v('<;D.) &;E.# &;F=." 7p'),v('<%%4r""5!7s." &"/Ù#$4t""5!7u/,#0)*4t""5!7u&&&#/·$%2a""6a7b/E#$4t""5!7u/,#0)*4t""5!7u&&&#/#$+")("\'#&\'#." &"/w$%4v""5!7w/Y#4r""5!7s." &"/E$$4t""5!7u/,#0)*4t""5!7u&&&#/#$+#)(#\'#("\'#&\'#." &"/#$+$)($\'#(#\'#("\'#&\'#/\' 8!:x!! )=." 7q'),v('<%2z""6z7{/& 8!:|! ).4 &%2}""6}7~/& 8!:! )=." 7y'),v('<%%2""67/N#$4""5!70)*4""5!7&/2$2""67/#$+#)(#\'#("\'#&\'#/\' 8!:!! )=." 7'),v('<%%4""5!7/?#$4""5!70)*4""5!7&/#$+")("\'#&\'#/\' 8!:!! ).j &%%2""67/N#$4""5!70)*4""5!7&/2$2""67/#$+#)(#\'#("\'#&\'#/\' 8!:!! )=." 7'),v('<$4""5!70)*4""5!7&=." 7')],u=0,A=[{line:1,column:1}],d=0,g=[],p=0,h={};if("startRule"in t){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=a[t.startRule]}function f(e,t){return{type:"literal",text:e,ignoreCase:t}}function m(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function y(e){return{type:"other",description:e}}function I(t){var n,r=A[t];if(r)return r;for(n=t-1;!A[n];)n--;for(r={line:(r=A[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return A[t]=r,r}function C(e,t){var n=I(e),r=I(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function E(e){u<d||(u>d&&(d=u,g=[]),g.push(e))}function b(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function v(e){var t,n=new Array(e.length);for(t=0;t<e.length;t++)n[t]=e.charCodeAt(t)-32;return n}var B=n(116);function M(e){if(e instanceof Array){for(var t="",n=0;n<e.length;n++)t+=M(e[n]);return t}return e||""}function D(e,t,n){return null!=n?new B.Operator(e,t,n):new B.Operator(e,t)}if((o=function t(n){var r,o,a=c[n],s=0,A=[],d=a.length,g=[],f=[],m=41*u+n,y=h[m];if(y)return u=y.nextPos,y.result;for(;;){for(;s<d;)switch(a[s]){case 0:f.push(l[a[s+1]]),s+=2;break;case 1:f.push(void 0),s++;break;case 2:f.push(null),s++;break;case 3:f.push(i),s++;break;case 4:f.push([]),s++;break;case 5:f.push(u),s++;break;case 6:f.pop(),s++;break;case 7:u=f.pop(),s++;break;case 8:f.length-=a[s+1],s+=2;break;case 9:f.splice(-2,1),s++;break;case 10:f[f.length-2].push(f.pop()),s++;break;case 11:f.push(f.splice(f.length-a[s+1],a[s+1])),s+=2;break;case 12:f.push(e.substring(f.pop(),u)),s++;break;case 13:g.push(d),A.push(s+3+a[s+1]+a[s+2]),f[f.length-1]?(d=s+3+a[s+1],s+=3):(d=s+3+a[s+1]+a[s+2],s+=3+a[s+1]);break;case 14:g.push(d),A.push(s+3+a[s+1]+a[s+2]),f[f.length-1]===i?(d=s+3+a[s+1],s+=3):(d=s+3+a[s+1]+a[s+2],s+=3+a[s+1]);break;case 15:g.push(d),A.push(s+3+a[s+1]+a[s+2]),f[f.length-1]!==i?(d=s+3+a[s+1],s+=3):(d=s+3+a[s+1]+a[s+2],s+=3+a[s+1]);break;case 16:f[f.length-1]!==i?(g.push(d),A.push(s),d=s+2+a[s+1],s+=2):s+=2+a[s+1];break;case 17:g.push(d),A.push(s+3+a[s+1]+a[s+2]),e.length>u?(d=s+3+a[s+1],s+=3):(d=s+3+a[s+1]+a[s+2],s+=3+a[s+1]);break;case 18:g.push(d),A.push(s+4+a[s+2]+a[s+3]),e.substr(u,l[a[s+1]].length)===l[a[s+1]]?(d=s+4+a[s+2],s+=4):(d=s+4+a[s+2]+a[s+3],s+=4+a[s+2]);break;case 19:g.push(d),A.push(s+4+a[s+2]+a[s+3]),e.substr(u,l[a[s+1]].length).toLowerCase()===l[a[s+1]]?(d=s+4+a[s+2],s+=4):(d=s+4+a[s+2]+a[s+3],s+=4+a[s+2]);break;case 20:g.push(d),A.push(s+4+a[s+2]+a[s+3]),l[a[s+1]].test(e.charAt(u))?(d=s+4+a[s+2],s+=4):(d=s+4+a[s+2]+a[s+3],s+=4+a[s+2]);break;case 21:f.push(e.substr(u,a[s+1])),u+=a[s+1],s+=2;break;case 22:f.push(l[a[s+1]]),u+=l[a[s+1]].length,s+=2;break;case 23:f.push(i),0===p&&E(l[a[s+1]]),s+=2;break;case 24:f[f.length-1-a[s+1]],s+=2;break;case 25:u,s++;break;case 26:for(r=a.slice(s+4,s+4+a[s+3]),o=0;o<a[s+3];o++)r[o]=f[f.length-1-r[o]];f.splice(f.length-a[s+2],a[s+2],l[a[s+1]].apply(null,r)),s+=4+a[s+3];break;case 27:f.push(t(a[s+1])),s+=2;break;case 28:p++,s++;break;case 29:p--,s++;break;default:throw new Error("Invalid opcode: "+a[s]+".")}if(!(g.length>0))break;d=g.pop(),s=A.pop()}return h[m]={nextPos:u,result:f[0]},f[0]}(s))!==i&&u===e.length)return o;throw o!==i&&u<e.length&&E({type:"end"}),b(g,d<e.length?e.charAt(d):null,d<e.length?C(d,d+1):C(d,d))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.precedences=t.operators=t.functions=t.constants=void 0;var r=n(160),o=n(12),i=n(107);function a(e){return function(t){return t instanceof Array?t.map(e):e(t)}}function s(e){return function(t,n){return t instanceof Array&&n instanceof Array?t.map((function(t,r){return e(t,n[r])})):t instanceof Array?t.map((function(t){return e(t,n)})):n instanceof Array?n.map((function(n){return e(t,n)})):e(t,n)}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r instanceof Array)for(var o=0;o<r.length;o++)null!=r[o]&&e(r[o]);else null!=r&&e(r)}}function c(e,t){var n=[];l((function(e){n.push(e)}),t),n.sort((function(e,t){return e-t}));var r=(n.length-1)*e,o=Math.floor(r),i=r-o;return n[o+1]&&n[o]+i*(n[o+1]-n[o])||n[o]}t.constants={},t.functions={},t.operators={},t.precedences={LAMBDA_EXPRESSION:1,FUNCTION_ARGUMENT:0,OPERATORS:{"unary:not":[11,11],and:[12,12,12],or:[13,13,13],">":[14,14,15],"<":[14,14,15],">=":[14,14,15],"<=":[14,14,15],"==":[14,14,15],"!=":[14,14,15],"+":[16,16,16],"-":[16,16,17],"*":[18,18,18],"/":[18,18,19],"^":[20,20,21],"unary:+":[22,22],"unary:-":[23,23]},FUNCTION_CALL:100,LAMBDA_FUNCTION:100,VARIABLE:100,FIELD_ACCESS:100,VALUE:100},t.constants.PI=Math.PI,t.constants.E=Math.E,t.functions.abs=a(Math.abs),t.functions.sign=a(Math.sign),t.functions.floor=a(Math.floor),t.functions.ceil=a(Math.ceil),t.functions.exp=a(Math.exp),t.functions.log=a(Math.log),t.functions.log10=a(Math.log10),t.functions.sin=a(Math.sin),t.functions.cos=a(Math.cos),t.functions.tan=a(Math.tan),t.functions.asin=a(Math.asin),t.functions.acos=a(Math.acos),t.functions.atan=a(Math.atan),t.functions.atan2=s(Math.atan2),t.functions.tanh=a(Math.tanh),t.functions.sqrt=a(Math.sqrt),t.functions.pow=s(Math.pow),t.functions.array=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},t.functions.list=t.functions.array,t.functions.length=function(e){return e.length},t.functions.range=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<=t;o+=n)r.push(o);return r},t.functions.get=function(e,t){return e[t]},t.functions.first=function(e){return e[0]},t.functions.last=function(e){return e[e.length-1]},t.functions.map=function(e,t){return e.map((function(e){return t(e)}))},t.functions.filter=function(e,t){return e.filter((function(e){return t(e)}))},t.functions.min=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return l((function(e){(null==n||e<n)&&(n=e)}),e),n},t.functions.max=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return l((function(e){(null==n||e>n)&&(n=e)}),e),n},t.functions.sum=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return l((function(e){return n+=e}),e),n},t.functions.count=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return l((function(e){return n+=1}),e),n},t.functions.stdev=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0,r=0,o=0;return l((function(e){n+=1,r+=e,o+=e*e}),e),o/=n,r/=n,Math.sqrt(o-r*r)},t.functions.variance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0,r=0,o=0;return l((function(e){n+=1,r+=e,o+=e*e}),e),(o/=n)-(r/=n)*r},t.functions.median=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[];return l((function(e){n.push(e)}),e),n.sort((function(e,t){return e-t})),n.length%2==0?(n[n.length/2]+n[n.length/2+1])/2:n[(n.length-1)/2]},t.functions.avg=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0,r=0;return l((function(e){n+=e,r+=1}),e),0==r?NaN:n/r},t.functions.mean=t.functions.avg,t.functions.average=t.functions.avg,t.functions.quantile=function(e,t){return c(e,t)},t.functions.quartile1=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(.25,e)},t.functions.quartile3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(.75,e)},t.functions.iqr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(.75,e)-c(.25,e)},t.operators["+"]=s((function(e,t){return e+t})),t.operators["-"]=s((function(e,t){return e-t})),t.operators["*"]=s((function(e,t){return e*t})),t.operators["/"]=s((function(e,t){return e/t})),t.operators["^"]=s((function(e,t){return Math.pow(e,t)})),t.operators["unary:+"]=a((function(e){return+e})),t.operators["unary:-"]=a((function(e){return-e})),t.operators["<"]=s((function(e,t){return e<t})),t.operators[">"]=s((function(e,t){return e>t})),t.operators["<="]=s((function(e,t){return e<=t})),t.operators[">="]=s((function(e,t){return e>=t})),t.operators["=="]=s((function(e,t){return e==t})),t.operators["!="]=s((function(e,t){return e!=t})),t.operators.and=s((function(e,t){return e&&t})),t.operators.or=s((function(e,t){return e||t})),t.operators["unary:not"]=a((function(e){return!e}));var u=function(){function e(){}return Object.defineProperty(e.prototype,"hour",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%H"):i.timeFormat("%H"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parse",{get:function(){return a((function(e){return o.isUtcTimeZone()?i.utcParse(e):r.parseDate(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"year",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%Y"):i.timeFormat("%Y"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%b"):i.timeFormat("%b"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"monthnumber",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%m"):i.timeFormat("%m"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"day",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%d"):i.timeFormat("%d"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"weekOfYear",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%U"):i.timeFormat("%U"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dayOfYear",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%j"):i.timeFormat("%j"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"weekday",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%a"):i.timeFormat("%a"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minute",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%M"):i.timeFormat("%M"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return a(o.isUtcTimeZone()?i.utcFormat("%S"):i.timeFormat("%S"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestamp",{get:function(){return a((function(e){return e.getTime()/1e3}))},enumerable:!1,configurable:!0}),e}();t.functions.date=new u,t.functions.format=s((function(e,t){return o.getFormat()(t)(e)})),t.functions.json={parse:a((function(e){return JSON.parse(e)})),stringify:a((function(e){return JSON.stringify(e)}))},t.functions.sortBy=function(e,t){void 0===t&&(t=!1);var n=t?1:-1,r=t?-1:1;return"string"==typeof e?function(t,o){var i=t[e],a=o[e];return i==a?0:i<a?n:r}:function(t,o){var i=e(t),a=e(o);return i==a?0:i<a?n:r}},t.functions.columnName=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e instanceof Array?e.filter((function(e){return t.find((function(t){return t==e.name}))})).map((function(e){return e.displayName||e.name})):e.displayName||e.name}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.verifyUserExpression=t.ExpressionCache=t.getDefaultAggregationFunction=t.getCompatibleAggregationFunctionsByDataKind=t.getCompatibleAggregationFunctionsByDataType=t.aggregationFunctions=t.date=t.boolean=t.string=t.number=t.div=t.mul=t.sub=t.add=t.fields=t.lambda=t.functionCall=t.variable=void 0;var o=n(116),i=n(6);t.variable=function(e){return new o.Variable(e)},t.functionCall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.split(".");return new o.FunctionCall(r,t)},t.lambda=function(e,t){return new o.LambdaFunction(t,e)},t.fields=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new o.FieldAccess(e,t)},t.add=function(e,t){return new o.Operator("+",e,t)},t.sub=function(e,t){return new o.Operator("-",e,t)},t.mul=function(e,t){return new o.Operator("*",e,t)},t.div=function(e,t){return new o.Operator("/",e,t)},t.number=function(e){return new o.NumberValue(e)},t.string=function(e){return new o.StringValue(e)},t.boolean=function(e){return new o.BooleanValue(e)},t.date=function(e){return new o.DateValue(e)},t.aggregationFunctions=[{name:"avg",displayName:"Average",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"median",displayName:"Median",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"sum",displayName:"Sum",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"min",displayName:"Min",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"max",displayName:"Max",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"stdev",displayName:"Standard Deviation",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"variance",displayName:"Variance",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"first",displayName:"First",inputTypes:[i.DataType.String,i.DataType.Boolean],inputKind:[i.DataKind.Categorical,i.DataKind.Ordinal]},{name:"last",displayName:"Last",inputTypes:[i.DataType.String,i.DataType.Boolean],inputKind:[i.DataKind.Categorical,i.DataKind.Ordinal]},{name:"count",displayName:"Count",inputTypes:[i.DataType.String,i.DataType.Boolean],inputKind:[i.DataKind.Categorical,i.DataKind.Ordinal]},{name:"quartile1",displayName:"1st Quartile",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"quartile3",displayName:"3rd Quartile",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]},{name:"iqr",displayName:"Inter Quartile Range (IQR)",inputTypes:[i.DataType.Number],inputKind:[i.DataKind.Numerical,i.DataKind.Temporal]}],t.getCompatibleAggregationFunctionsByDataType=function(e){return t.aggregationFunctions.filter((function(t){return null==t.inputTypes||t.inputTypes.indexOf(e)>=0}))},t.getCompatibleAggregationFunctionsByDataKind=function(e){return t.aggregationFunctions.filter((function(t){return null==t.inputKind||t.inputKind.indexOf(e)>=0}))},t.getDefaultAggregationFunction=function(e,t){return e==i.DataType.Number||e==i.DataType.Date?t===i.DataKind.Categorical||t===i.DataKind.Ordinal?"first":"avg":"first"};var a=function(){function e(){this.items=new Map,this.textItems=new Map}return e.prototype.clear=function(){this.items.clear(),this.textItems.clear()},e.prototype.parse=function(e){if(this.items.has(e))return this.items.get(e);var t=o.Expression.Parse(e);return this.items.set(e,t),t},e.prototype.parseTextExpression=function(e){if(this.textItems.has(e))return this.textItems.get(e);var t=o.TextExpression.Parse(e);return this.textItems.set(e,t),t},e}();t.ExpressionCache=a,t.verifyUserExpression=function(e,t){var n,i,a,s,l;try{l=t.textExpression?o.TextExpression.Parse(e):o.Expression.Parse(e)}catch(e){return{pass:!1,error:"Parse Error: "+e.message}}if(t.table)try{l.getValue(t.table)}catch(e){return{pass:!1,error:"Evaluate Error: "+e.message}}else if(t.data)if(t.expectedTypes){var c=new Set(t.expectedTypes);try{try{for(var u=r(t.data),A=u.next();!A.done;A=u.next()){var d=A.value,g=l.getValue(d),p=typeof g;if(null!=g&&"undefined"!=p||(p="null"),!c.has(p))return{pass:!1,error:"Type Error: unexpected "+p+" returned"}}}catch(e){n={error:e}}finally{try{A&&!A.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(e){return{pass:!1,error:"Evaluate Error: "+e.message}}}else try{try{for(var h=r(t.data),f=h.next();!f.done;f=h.next()){d=f.value;l.getValue(d)}}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}}catch(e){return{pass:!1,error:"Evaluate Error: "+e.message}}return{pass:!0,formatted:l.toString()}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartRenderer=t.facetRows=void 0;var l=n(12),c=n(39),u=n(223),A=n(162);t.facetRows=function(e,t,n){var r,o;if(null==n)return[t];var a=new l.MultistringHashMap,s=function(t){var r=e[t],o=n.map((function(e){return r[e]}));a.has(o)?a.get(o).push(t):a.set(o,[t])};try{for(var c=i(t),u=c.next();!u.done;u=c.next()){s(u.value)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return Array.from(a.values())};var d=function(){function e(e,t){this.manager=e,this.renderEvents=t,this.manager=e}return e.prototype.renderGlyphMarks=function(e,t,n,r,o,i,s){var c=this;return l.zipArray(o.marks,i.marks).map((function(o){var l=a(o,2),u=l[0],d=l[1];if(!u.properties.visible)return null;var g=c.manager.getMarkClass(d),p=g.getGraphics(n,r,s,c.manager,i.emphasized);return null!=p?(p.selectable={plotSegment:e,glyphIndex:s,rowIndices:t.dataRowIndices[s],enableTooltips:g.object.properties.enableTooltips,enableContextMenu:g.object.properties.enableContextMenu,enableSelection:g.object.properties.enableSelection},A.makeGroup([p])):null}))},e.prototype.renderChart=function(e,t,n){var r,o,d,g,p=[],h=this.manager.getChartClass(n).getBackgroundGraphics();h&&p.push(h);var f=A.makeGroup([]);p.push(f);var m=l.zipArray(t.elements,n.elements);try{for(var y=i(m),I=y.next();!I.done;I=y.next()){var C=a(I.value,2),E=C[0],b=C[1];if(E.properties.visible)if(c.isType(E.classID,"plot-segment")){var v=E,B=b,M=l.getById(t.glyphs,v.glyph),D=this.manager.getPlotSegmentClass(B),x=D.getCoordinateSystem(),w=[];try{for(var Q=(d=void 0,i(B.glyphs.entries())),S=Q.next();!S.done;S=Q.next()){var N=a(S.value,2),k=N[0],T=N[1],j=T.marks[0].attributes.x,L=T.marks[0].attributes.y,R=T.attributes.x-j,O=T.attributes.y-L,_=this.renderGlyphMarks(v,B,x,{x:R,y:O},M,T,k);w.push(_)}}catch(e){d={error:e}}finally{try{S&&!S.done&&(g=Q.return)&&g.call(Q)}finally{if(d)throw d.error}}var F=l.transpose(w).map((function(e){return A.makeGroup(e)})),z=A.makeGroup(F);z.transform=x.getBaseTransform();var P=D.getPlotSegmentGraphics(z,this.manager),U=A.makeGroup([]),G=D.getPlotSegmentBackgroundGraphics(this.manager);U.elements.push(G),(Y=A.makeGroup([])).elements.push(U),Y.elements.push(P),Y.key=E._id,p.push(Y)}else if(c.isType(E.classID,"mark")){var H=new u.CartesianCoordinates({x:0,y:0}),Y=A.makeGroup([]);P=this.manager.getMarkClass(b).getGraphics(H,{x:0,y:0},null,this.manager);Y.elements.push(P),Y.key=E._id,p.push(Y)}else{Y=A.makeGroup([]),P=this.manager.getChartElementClass(b).getGraphics(this.manager);Y.elements.push(P),Y.key=E._id,p.push(Y)}}}catch(e){r={error:e}}finally{try{I&&!I.done&&(o=y.return)&&o.call(y)}finally{if(r)throw r.error}}var V=A.makeRect(n.attributes.x1,n.attributes.y1,n.attributes.x2,n.attributes.y2,{fillColor:null,opacity:1});return t.properties.enableContextMenu&&(V.selectable={plotSegment:null,glyphIndex:null,rowIndices:null,enableTooltips:!1,enableContextMenu:void 0===t.properties.enableContextMenu||t.properties.enableContextMenu,enableSelection:!1}),A.makeGroup(s([V],p))},e.prototype.renderControls=function(e,t,n){var r,o,s=l.zipArray(e.elements,t.elements),u=[];try{for(var A=i(s),d=A.next();!d.done;d=A.next()){var g=a(d.value,2),p=g[0],h=g[1];if(p.properties.visible&&c.isType(p.classID,"plot-segment")){var f=h,m=this.manager.getPlotSegmentClass(f).renderControls(this.manager,n);u=u.concat(m)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}return u},e.prototype.render=function(){var e,t=this.renderChart(this.manager.dataset,this.manager.chart,this.manager.chartState);return(null===(e=this.renderEvents)||void 0===e?void 0:e.afterRendered)&&this.renderEvents.afterRendered(),t},e}();t.ChartRenderer=d,o(n(202),t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.GlyphConstraintAnalyzer=t.ChartConstraintSolver=void 0;var s=n(38),l=n(49),c=n(39),u=n(12),A=n(73),d=n(200),g=n(49),p=n(6),h=function(){function e(e){this.supportVariables=new u.KeyNameMap,this.glyphAnalyzeResults=new WeakMap,this.solver=new d.WASMSolver,this.stage=e}return e.prototype.setManager=function(e){this.chart=e.chart,this.chartState=e.chartState,this.manager=e,this.dataset=e.dataset,this.datasetContext=new s.DatasetContext(this.dataset),this.expressionCache=new l.ExpressionCache},e.prototype.setDataset=function(e){this.dataset=e,this.datasetContext=new s.DatasetContext(this.dataset),this.expressionCache=new l.ExpressionCache},e.prototype.solve=function(){var e=this.solver.solve();return this.solver.applyPlugins(),{softLoss:e[1],hardLoss:e[0]}},e.prototype.destroy=function(){this.solver&&this.solver.destroy()},e.prototype.addMapping=function(e,t,n,r,o,i,a){var s,l;if(null==i&&(o.type==p.MappingType.scale||o.type==p.MappingType.text)){var c=o||o;i=this.manager.getChartDataContext(c.table)}switch(o.type){case p.MappingType.scale:if(null!=(E=o).scale){var d=(b=this.expressionCache.parse(E.expression)).getValue(i),h=this.manager.getClassById(E.scale);r.solverExclude||h.buildConstraint(d,this.solver.attr(e,n),this.solver);var f=h.mapDataToAttribute(d);e[n]=f}else{d=(b=this.expressionCache.parse(E.expression)).getValue(i);e[n]=d,r.solverExclude||this.solver.makeConstant(e,n)}break;case p.MappingType.expressionScale:var m=this.manager.dataset.tables.filter((function(e){return"Main"===e.type})),y=null===(s=null==m?void 0:m[0])||void 0===s?void 0:s.rows[a[0]][u.ImageKeyColumn],I=this.manager.dataset.tables.filter((function(e){return"Image"===e.type})),C=null===(l=null==I?void 0:I[0])||void 0===l?void 0:l.rows.find((function(e){return e[u.ImageKeyColumn]==y})),E=o;i=this.manager.dataflow.getTable(E.table).getGroupedContext(a);d="",h=this.manager.getClassById(E.scale);r.solverExclude||h.buildConstraint(d,this.solver.attr(e,n),this.solver);f=h.mapDataToAttribute(C[u.ImageKeyColumn]);e[n]=f;break;case p.MappingType.text:var b,v=o;(b=this.expressionCache.parseTextExpression(v.textExpression)).parts.find((function(e){return e.expression instanceof g.FunctionCall&&"columnName"===e.expression.name}))?e[n]=b.getValue(i.getTable()):e[n]=b.getValue(i);break;case p.MappingType.value:var B=o;e[n]=B.value,r.solverExclude||this.solver.makeConstant(e,n);break;case p.MappingType.parent:var M=o;this.solver.addEquals(A.ConstraintStrength.HARD,this.solver.attr(e,n),this.solver.attr(t,M.parentAttribute))}},e.prototype.addObject=function(e,t,n,r,o,a){var s,l,c=this.manager.getClass(t);try{for(var u=i(c.attributeNames),A=u.next();!A.done;A=u.next()){var d=A.value,g=c.attributes[d];if(g.solverExclude||(null==t.attributes[d]&&(t.attributes[d]=0),this.addAttribute(t.attributes,d,o||g.editableInGlyphStage)),!g.stateExclude)if(Object.prototype.hasOwnProperty.call(e.mappings,d)){var p=e.mappings[d];this.addMapping(t.attributes,null!=n?n.attributes:null,d,g,p,r,a)}else void 0!==g.defaultValue&&(t.attributes[d]=g.defaultValue)}}catch(e){s={error:e}}finally{try{A&&!A.done&&(l=u.return)&&l.call(u)}finally{if(s)throw s.error}}},e.prototype.addScales=function(e){var t,n;void 0===e&&(e=!0);var r=this.chart,o=this.chartState;try{for(var s=i(u.zip(r.scales,o.scales)),l=s.next();!l.done;l=s.next()){var c=a(l.value,2),A=c[0],d=c[1];this.addObject(A,d,null,null,e,[0])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}},e.prototype.getSupportVariable=function(e,t,n){if(this.supportVariables.has(e,t))return this.solver.attr(this.supportVariables.get(e,t),"value");var r={};return r.value=n,this.supportVariables.add(e,t,r),this.solver.attr(r,"value",{edit:!0})},e.prototype.addMark=function(e,t,n,r,o,i,a){var s=this;this.addObject(o,i,r,n,!0,a),this.manager.getMarkClass(i).buildConstraints(this.solver,{rowContext:n,getExpressionValue:function(e,t){return s.manager.dataflow.cache.parse(e).getNumberValue(t)}},this.manager)},e.prototype.getAttachedAttributes=function(e){var t,n,r=new Set;try{for(var o=i(e.marks),a=o.next();!a.done;a=o.next()){var s=a.value;if("mark.anchor"!=s.classID)for(var l in s.mappings){var c=s.mappings[l];c.type==p.MappingType.parent&&r.add(c.parentAttribute)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},e.prototype.getGlyphAnalyzeResult=function(e){if(this.glyphAnalyzeResults.has(e))return this.glyphAnalyzeResults.get(e);var t=new f(e,this.manager);return t.solve(),this.glyphAnalyzeResults.set(e,t),t},e.prototype.addGlyph=function(e,t,n,r,o){var s,l,d,g,p,h;this.addObject(n,r,null,t,!0,o);var f=this.getGlyphAnalyzeResult(n),m=this.manager.getGlyphClass(r);try{for(var y=i(m.attributeNames),I=y.next();!I.done;I=y.next()){var C=I.value;if("width"==C&&f.widthFree){var E=this.getSupportVariable(e,n._id+"/"+C,r.attributes[C]);this.solver.addEquals(A.ConstraintStrength.HARD,E,this.solver.attr(r.attributes,C))}if("height"==C&&f.heightFree){E=this.getSupportVariable(e,n._id+"/"+C,r.attributes[C]);this.solver.addEquals(A.ConstraintStrength.HARD,E,this.solver.attr(r.attributes,C))}}}catch(e){s={error:e}}finally{try{I&&!I.done&&(l=y.return)&&l.call(y)}finally{if(s)throw s.error}}try{for(var b=i(u.zip(n.marks,r.marks)),v=b.next();!v.done;v=b.next()){var B=a(v.value,2),M=B[0],D=B[1];this.addMark(e,n,t,r,M,D,o)}}catch(e){d={error:e}}finally{try{v&&!v.done&&(g=b.return)&&g.call(b)}finally{if(d)throw d.error}}m.buildIntrinsicConstraints(this.solver);try{for(var x=i(n.constraints),w=x.next();!w.done;w=x.next()){var Q=w.value;c.Constraints.ConstraintTypeClass.getClass(Q.type).buildConstraints(Q,n.marks,r.marks,this.solver)}}catch(e){p={error:e}}finally{try{w&&!w.done&&(h=x.return)&&h.call(x)}finally{if(p)throw p.error}}},e.prototype.addAttribute=function(e,t,n){this.solver.attr(e,t,{edit:n})},e.prototype.addChart=function(){var e,t,n,r,o,s,l=this,A=this.chart,d=this.chartState;this.addObject(A,d,null,null,"chart"==this.stage,[0]),this.manager.getChartClass(d).buildIntrinsicConstraints(this.solver);try{for(var g=i(u.zip(A.elements,d.elements)),p=g.next();!p.done;p=g.next()){var h=a(p.value,2),f=h[0],m=h[1];this.addObject(f,m,d,null,"chart"==this.stage,[0]);var y=this.manager.getChartElementClass(m);if(y.buildConstraints(this.solver,{getExpressionValue:function(e,t){return l.manager.dataflow.cache.parse(e).getNumberValue(t)},getGlyphAttributes:function(e,t,n){return l.getGlyphAnalyzeResult(u.getById(l.chart.glyphs,e)).computeAttributes(l.manager.dataflow.getTable(t).getGroupedContext(n))}},this.manager),"glyphs"==this.stage&&c.isType(f.classID,"plot-segment")){var I=f,C=m,E=u.getById(A.glyphs,I.glyph),b=this.manager.dataflow.getTable(I.table);try{for(var v=(n=void 0,i(u.zip(C.dataRowIndices,C.glyphs))),B=v.next();!B.done;B=v.next()){var M=a(B.value,2),D=M[0],x=M[1];this.addGlyph(I,b.getGroupedContext(D),E,x,D)}}catch(e){n={error:e}}finally{try{B&&!B.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}y.buildGlyphConstraints(this.solver,{getExpressionValue:function(e,t){return l.manager.dataflow.cache.parse(e).getNumberValue(t)},getGlyphAttributes:function(e,t,n){return l.getGlyphAnalyzeResult(u.getById(l.chart.glyphs,e)).computeAttributes(l.manager.dataflow.getTable(t).getGroupedContext(n))}})}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}try{for(var w=i(A.constraints),Q=w.next();!Q.done;Q=w.next()){var S=Q.value;c.Constraints.ConstraintTypeClass.getClass(S.type).buildConstraints(S,A.elements,d.elements,this.solver)}}catch(e){o={error:e}}finally{try{Q&&!Q.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}},e.prototype.setup=function(e){this.setManager(e),this.addScales(!0),this.addChart()},e}();t.ChartConstraintSolver=h;var f=function(e){function t(t,n){var r,o,s,l,A,d,g,p,h,f,m=e.call(this)||this;m.variableRegistry=new u.KeyNameMap,m.indexToAttribute=new Map,m.currentVariableIndex=0,m.linears=[],m.inputBiases=new Map,m.indexToBias=new Map,m.inputBiasesCount=0,m.dataInputList=new Map,m.manager=n;var y={attributes:{},marks:[]},I=c.ObjectClasses.Create(null,t,y);I.initializeState();try{for(var C=i(t.marks),E=C.next();!E.done;E=C.next()){var b=E.value,v={attributes:{}};y.marks.push(v),(S=c.ObjectClasses.Create(I,b,v)).initializeState()}}catch(e){r={error:e}}finally{try{E&&!E.done&&(o=C.return)&&o.call(C)}finally{if(r)throw r.error}}try{for(var B=i(I.attributeNames),M=B.next();!M.done;M=B.next()){var D=M.value;I.attributes[D].solverExclude||(m.addAttribute(y.attributes,D,t._id),Object.prototype.hasOwnProperty.call(t.mappings,D)&&m.addMapping(y.attributes,D,t.mappings[D],null))}}catch(e){s={error:e}}finally{try{M&&!M.done&&(l=B.return)&&l.call(B)}finally{if(s)throw s.error}}try{for(var x=i(u.zip(t.marks,y.marks)),w=x.next();!w.done;w=x.next()){var Q=a(w.value,2),S=(b=Q[0],v=Q[1],c.ObjectClasses.Create(I,b,v));try{for(var N=(g=void 0,i(S.attributeNames)),k=N.next();!k.done;k=N.next()){D=k.value;S.attributes[D].solverExclude||(m.addAttribute(v.attributes,D,b._id),Object.prototype.hasOwnProperty.call(b.mappings,D)&&m.addMapping(v.attributes,D,b.mappings[D],y.attributes))}}catch(e){g={error:e}}finally{try{k&&!k.done&&(p=N.return)&&p.call(N)}finally{if(g)throw g.error}}S.buildConstraints(m,{getExpressionValue:function(){return 1}},m.manager)}}catch(e){A={error:e}}finally{try{w&&!w.done&&(d=x.return)&&d.call(x)}finally{if(A)throw A.error}}I.buildIntrinsicConstraints(m),m.addInputAttribute("x",m.attr(y.attributes,"x")),m.addInputAttribute("y",m.attr(y.attributes,"y"));try{for(var T=i(t.constraints),j=T.next();!j.done;j=T.next()){var L=j.value;c.Constraints.ConstraintTypeClass.getClass(L.type).buildConstraints(L,t.marks,y.marks,m)}}catch(e){h={error:e}}finally{try{j&&!j.done&&(f=T.return)&&f.call(T)}finally{if(h)throw h.error}}return m.glyphState=y,m}return o(t,e),t.prototype.addAttribute=function(e,t,n){var r={index:this.currentVariableIndex,type:"object",id:n,attribute:t};return this.variableRegistry.add(e,t,r),this.indexToAttribute.set(r.index,r),this.currentVariableIndex+=1,r},t.prototype.attr=function(e,t){if(this.variableRegistry.has(e,t))return this.variableRegistry.get(e,t);var n={index:this.currentVariableIndex,id:u.uniqueID(),type:"object",attribute:t};return console.warn("Adding unnamed attribute",t),this.variableRegistry.add(e,t,n),this.indexToAttribute.set(n.index,n),this.currentVariableIndex+=1,n},t.prototype.addLinear=function(e,t,n,r){void 0===r&&(r=[]),this.linears.push([t,n.map((function(e){var t=a(e,2);return{weight:t[0],index:t[1].index}})).concat(r.map((function(e){var t=a(e,2);return{weight:-t[0],index:t[1].index}})))])},t.prototype.addSoftInequality=function(e,t,n,r){void 0===r&&(r=[]),this.linears.push([t,n.map((function(e){var t=a(e,2);return{weight:t[0],index:t[1].index}})).concat(r.map((function(e){var t=a(e,2);return{weight:-t[0],index:t[1].index}})))])},t.prototype.addInputAttribute=function(e,t){if(this.inputBiases.has(e)){var n=this.inputBiases.get(e).index;this.linears.push([0,[{weight:1,index:t.index},{weight:1,biasIndex:n}]])}else{n=this.inputBiasesCount;this.inputBiasesCount++;var r={index:n,type:"input",id:null,attribute:e};this.inputBiases.set(e,r),this.indexToBias.set(r.index,r),this.linears.push([0,[{weight:1,index:t.index},{weight:1,biasIndex:n}]])}},t.prototype.addDataInput=function(e,t){this.dataInputList.set(e,l.parse(t))},t.prototype.addMapping=function(e,t,n,r){switch(n.type){case p.MappingType.scale:var o=n;this.addInputAttribute("scale/"+o.scale+"/"+o.expression,this.attr(e,t)),this.addDataInput("scale/"+o.scale+"/"+o.expression,o.expression);break;case p.MappingType.value:var i=n;e[t]=i.value,this.addLinear(A.ConstraintStrength.HARD,i.value,[[-1,this.attr(e,t)]]);break;case p.MappingType.parent:var a=n;this.addEquals(A.ConstraintStrength.HARD,this.attr(e,t),this.attr(r,a.parentAttribute))}},t.prototype.setValue=function(){},t.prototype.getValue=function(){return 0},t.prototype.makeConstant=function(e){console.warn("(unimplemented) Make Constant: ",e)},t.prototype.destroy=function(){},t.prototype.solve=function(){var e,t,n=this.currentVariableIndex,r=this.linears,o=new d.Matrix;o.init(r.length,n);var a=new d.Matrix;a.init(r.length,this.inputBiasesCount+1);for(var s=o.data(),l=o.rowStride,c=o.colStride,u=a.data(),A=a.rowStride,g=a.colStride,p=0;p<r.length;p++){u[p*A]=-r[p][0];try{for(var h=(e=void 0,i(r[p][1])),f=h.next();!f.done;f=h.next()){var m=f.value;null!=m.index&&(s[p*l+m.index*c]=m.weight),null!=m.biasIndex&&(u[p*A+(1+m.biasIndex)*g]=m.weight)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}}var y=new d.Matrix,I=new d.Matrix;d.Matrix.SolveLinearSystem(y,I,o,a),this.X0=[],this.ker=[];var C=y.data(),E=y.colStride,b=y.rowStride;for(p=0;p<y.cols;p++){for(var v=new Float64Array(n),B=0;B<n;B++)v[B]=C[p*E+B*b];this.X0.push(v)}var M=I.data(),D=I.colStride,x=I.rowStride;for(p=0;p<I.cols;p++){for(v=new Float64Array(n),B=0;B<n;B++)v[B]=M[p*D+B*x];this.ker.push(v)}return y.destroy(),I.destroy(),o.destroy(),a.destroy(),null},t.prototype.isAttributeFree=function(e){var t,n,r=!1;try{for(var o=i(this.ker),a=o.next();!a.done;a=o.next()){var s=a.value;Math.abs(s[e.index])>1e-8&&(r=!0)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},Object.defineProperty(t.prototype,"widthFree",{get:function(){return this.isAttributeFree(this.attr(this.glyphState.attributes,"width"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"heightFree",{get:function(){return this.isAttributeFree(this.attr(this.glyphState.attributes,"height"))},enumerable:!1,configurable:!0}),t.prototype.computeAttribute=function(e,t){for(var n=0,r=0;r<this.X0.length;r++){var o=this.X0[r][e.index];if(0==r)n+=o;else{var i=this.indexToBias.get(r-1);i&&this.dataInputList.has(i.attribute)&&(n+=o*this.dataInputList.get(i.attribute).getNumberValue(t))}}return n},t.prototype.computeAttributes=function(e){return{width:this.computeAttribute(this.attr(this.glyphState.attributes,"width"),e),height:this.computeAttribute(this.attr(this.glyphState.attributes,"height"),e)}},t}(A.ConstraintSolver);t.GlyphConstraintAnalyzer=f},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,A=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):A=-1,c.length&&g())}function g(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++A<t;)l&&l[A].run();A=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=n(5),o=n(6),i=n(7);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return A(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),o=(e=s(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|g(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function A(e,t){if(u(t),e=s(e,t<0?0:0|g(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|g(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Q(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return w(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var A=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){A=!1;break}if(A)return i}return-1}function I(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function C(e,t,n,r){return P(F(t,e.length-n),e,n,r)}function E(e,t,n,r){return P(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function b(e,t,n,r){return E(e,t,n,r)}function v(e,t,n,r){return P(z(t),e,n,r)}function B(e,t,n,r){return P(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,A=c>239?4:c>223?3:c>191?2:1;if(o+A<=n)switch(A){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,A=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=A}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function w(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Q(e,t,n){var r,o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=t;a<n;++a)i+=(r=e[a])<16?"0"+r.toString(16):r.toString(16);return i}function S(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function T(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function O(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return A(null,e)},l.allocUnsafeSlow=function(e){return A(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):h.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),A=0;A<s;++A)if(c[A]!==u[A]){i=c[A],a=u[A];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return v(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);k(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);k(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:F(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function F(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(t,n(4))},function(e,t,n){var r,o=!1,i=[],a=!0;"undefined"==typeof WebAssembly&&(a=!1),a?(r=n(3)()).onRuntimeInitialized=function(){o=!0;for(let e=0;e<i.length;e++)i[e]()}:(console.warn("WASMSolver: not using web assembly"),r=n(8)(),o=!0);var s=r.cwrap("memory_alloc","number",["number"]),l=r.cwrap("memory_free",null,["number"]),c=function(e,t){return new Uint32Array(r.HEAPU32.buffer,e,t)},u=function(e,t){return new Float64Array(r.HEAPF64.buffer,e,t)},A=r.cwrap("solver_create","number",[]),d=r.cwrap("solver_destroy",null,["number"]),g=r.cwrap("solver_add_variable",null,["number","number","number","boolean"]),p=r.cwrap("solver_make_constant",null,["number","number"]),h=r.cwrap("solver_add_constraint","number",["number","number","number","number","number","number"]),f=r.cwrap("solver_add_constraint_coefficient",null,["number","number","number","number"]),m=r.cwrap("solver_set_constraint_strength",null,["number","number","number"]),y=r.cwrap("solver_set_constraint_bias",null,["number","number","number"]),I=r.cwrap("solver_clear_constraint_coefficients",null,["number","number"]),C=(r.cwrap("solver_set_values",null,["number","number","number","number"]),r.cwrap("solver_get_values",null,["number","number","number","number"]),r.cwrap("solver_set_value",null,["number","number","number"])),E=r.cwrap("solver_get_value","number",["number","number"]),b=r.cwrap("solver_solve",null,["number"]),v=r.cwrap("solver_compute_loss",null,["number"]),B=r.cwrap("solver_set_attribute_i",null,["number","number","number"]),M=r.cwrap("solver_set_attribute_f",null,["number","number","number"]),D=r.cwrap("solver_get_attribute_i","number",["number","number"]),x=r.cwrap("solver_get_attribute_f","number",["number","number"]),w=r.cwrap("linalg_matrix_create","number",[]),Q=r.cwrap("linalg_matrix_init",null,["number","number","number","number"]),S=r.cwrap("linalg_matrix_fill",null,["number","number"]),N=r.cwrap("linalg_matrix_destroy",null,["number"]),k=r.cwrap("linalg_matrix_data",null,["number"]),T=r.cwrap("linalg_matrix_size","number",["number"]),j=r.cwrap("linalg_matrix_rows","number",["number"]),L=r.cwrap("linalg_matrix_cols","number",["number"]),R=r.cwrap("linalg_matrix_row_stride","number",["number"]),O=r.cwrap("linalg_matrix_col_stride","number",["number"]),_=r.cwrap("linalg_matrix_norm",null,["number"]),F=r.cwrap("linalg_matrix_l1_norm",null,["number"]),z=r.cwrap("linalg_matrix_add",null,["number","number","number"]),P=r.cwrap("linalg_matrix_sub",null,["number","number","number"]),U=r.cwrap("linalg_matrix_scale",null,["number","number","number"]),G=r.cwrap("linalg_matrix_add_scale",null,["number","number","number","number","number"]),H=r.cwrap("linalg_matrix_emul",null,["number","number","number"]),Y=r.cwrap("linalg_matrix_ediv",null,["number","number","number"]),V=r.cwrap("linalg_matrix_mmul",null,["number","number","number"]),W=r.cwrap("linalg_solve_linear_system",null,["number","number","number","number"]),K=function(){this.byte_size=64,this.pointer=s(this.byte_size),this._setupArrays()};K.prototype._setupArrays=function(){this.U32=c(this.pointer,this.byte_size/4),this.F64=u(this.pointer,this.byte_size/8)},K.prototype.destroy=function(){this.byte_size=0,this.U32=null,this.F64=null,l(this.pointer)},K.prototype.reserve=function(e){var t;this.byte_size>=e||(l(this.pointer),this.byte_size=(t=2*e)%8==0?t:t+(8-t%8),this.pointer=s(this.byte_size),this._setupArrays())};var Z=function(){this.solver=A(),this.buffer=new K};function J(e,t,n,r){desc={},"i"==n&&(desc.get=function(){return D(this.solver,e)},desc.set=function(t){B(this.solver,e,t)}),"f"==n&&(desc.get=function(){return x(this.solver,e)},desc.set=function(t){M(this.solver,e,t)}),r&&(desc.set=function(){throw new Error("property "+t+" is readonly")}),Object.defineProperty(Z.prototype,t,desc)}function q(){this.matrix=w()}Z.STRENGTH_HARD=0,Z.STRENGTH_STRONG=1,Z.STRENGTH_MEDIUM=2,Z.STRENGTH_WEAK=3,Z.STRENGTH_WEAKER=4,Z.STRENGTH_DISABLED=10,Z.FLAG_DEFAULT=0,Z.FLAG_REDUCE=2,Z.FLAG_LAGRANGE=4,Z.prototype.destroy=function(){d(this.solver),this.buffer.destroy()},Z.prototype.addVariable=function(e,t,n){g(this.solver,e,t,n)},Z.prototype.makeConstant=function(e){p(this.solver,e)},Z.prototype.addConstraint=function(e,t,n,r){if(null!=n&&null!=r){this.buffer.reserve(16*r.length);let i=this.buffer.U32,a=this.buffer.F64;for(var o=0;o<r.length;o++)i[o]=n[o],a[o+r.length]=r[o];return h(this.solver,e,t,r.length,this.buffer.pointer,this.buffer.pointer+8*r.length)}return h(this.solver,e,t,0,0,0)},Z.prototype.addConstraintCoefficient=function(e,t,n){f(this.solver,e,t,n)},Z.prototype.setConstraintStrength=function(e,t){m(this.solver,e,t)},Z.prototype.setConstraintBias=function(e,t){y(this.solver,e,t)},Z.prototype.clearConstraintCoefficients=function(e){I(this.solver,e)},Z.prototype.solve=function(){b(this.solver)},Z.prototype.computeLoss=function(){v(this.solver)},Z.prototype.setValue=function(e,t){C(this.solver,e,t)},Z.prototype.getValue=function(e){return E(this.solver,e)},J(30,"regularizerWeight","f"),J(12,"maxIterations","i"),J(2,"tolerance","f"),J(3,"flags","i"),J(11,"numConstraints","i",!0),J(10,"numVariables","i",!0),J(1,"numIterations","i",!0),J(13,"error","f",!0),J(20,"hardLoss","f",!0),J(21,"softLoss","f",!0),q.prototype.destroy=function(){N(this.matrix)},q.prototype.init=function(e,t){Q(this.matrix,e,t,0)},q.prototype.fill=function(e){S(this.matrix,e)},q.prototype.data=function(){var e=T(this.matrix);return u(k(this.matrix),e)},q.prototype.norm=function(){return _(this.matrix)},q.prototype.l1Norm=function(){return F(this.matrix)},q.Add=function(e,t,n){z(e.matrix,t.matrix,n.matrix)},q.Sub=function(e,t,n){P(e.matrix,t.matrix,n.matrix)},q.Scale=function(e,t,n){U(e.matrix,t.matrix,n)},q.AddScale=function(e,t,n,r,o){G(e.matrix,t.matrix,n,r.matrix,o)},q.EMul=function(e,t,n){H(e.matrix,t.matrix,n.matrix)},q.EDiv=function(e,t,n){Y(e.matrix,t.matrix,n.matrix)},q.MMul=function(e,t,n){V(e.matrix,t.matrix,n.matrix)},Object.defineProperty(q.prototype,"rows",{get:function(){return j(this.matrix)},set:function(){throw new Error("property rows is readonly")}}),Object.defineProperty(q.prototype,"rowStride",{get:function(){return R(this.matrix)},set:function(){throw new Error("property row_stride is readonly")}}),Object.defineProperty(q.prototype,"cols",{get:function(){return L(this.matrix)},set:function(){throw new Error("property cols is readonly")}}),Object.defineProperty(q.prototype,"colStride",{get:function(){return O(this.matrix)},set:function(){throw new Error("property col_stride is readonly")}}),q.SolveLinearSystem=function(e,t,n,r){W(e.matrix,t.matrix,n.matrix,r.matrix)},t.memoryAlloc=s,t.memoryFree=l,t.getUint8Array=function(e,t){return new Uint8Array(r.HEAPU8.buffer,e,t)},t.getUint16Array=function(e,t){return new Uint16Array(r.HEAPU16.buffer,e,t)},t.getUint32Array=c,t.getFloat64Array=u,t.getFloat32Array=function(e,t){return new Float32Array(r.HEAPF32.buffer,e,t)},t.ConstraintSolver=Z,t.Matrix=q,t.initialize=function(){return new Promise((function(e,t){o?e():i.push((function(){e()}))}))}},function(e,t,n){(function(t,n,r){var o,i=(o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){e=void 0!==(e=e||{})?e:{};var i,a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);e.arguments=[],e.thisProgram="./this.program",e.quit=function(e,t){throw t},e.preRun=[],e.postRun=[];var s=!1,l=!1,c=!1,u=!1;s="object"==typeof window,l="function"==typeof importScripts,c="object"==typeof t&&!s&&!l,u=!s&&!c&&!l;var A,d,g="";function p(t){return e.locateFile?e.locateFile(t,g):g+t}c?(g=n+"/",e.read=function(e,t){var n;return(n=Oe(e))||(A||(A=null),d||(d=null),e=d.normalize(e),n=A.readFileSync(e)),t?n:n.toString()},e.readBinary=function(t){var n=e.read(t,!0);return n.buffer||(n=new Uint8Array(n)),v(n.buffer),n},t.argv.length>1&&(e.thisProgram=t.argv[1].replace(/\\/g,"/")),e.arguments=t.argv.slice(2),t.on("uncaughtException",(function(e){if(!(e instanceof He))throw e})),t.on("unhandledRejection",(function(e,n){t.exit(1)})),e.quit=function(e){t.exit(e)},e.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(e.read=function(e){var t=Oe(e);return t?je(t):read(e)}),e.readBinary=function(e){var t;return(t=Oe(e))?t:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(v("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments),"function"==typeof quit&&(e.quit=function(e){quit(e)})):(s||l)&&(s?document.currentScript&&(g=document.currentScript.src):g=self.location.href,o&&(g=o),g=0!==g.indexOf("blob:")?g.substr(0,g.lastIndexOf("/")+1):"",e.read=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=Oe(e);if(n)return je(n);throw t}},l&&(e.readBinary=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=Oe(e);if(n)return n;throw t}}),e.readAsync=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var o=Oe(e);o?t(o.buffer):n()}},r.onerror=n,r.send(null)},e.setWindowTitle=function(e){document.title=e});var h=e.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),f=e.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||h);for(i in a)a.hasOwnProperty(i)&&(e[i]=a[i]);a=void 0;var m=16;function y(e){var t=z;return z=z+e+15&-16,t}function I(e,t){return t||(t=m),e=Math.ceil(e/t)*t}var C={"f64-rem":function(e,t){return e%t},debugger:function(){}},E=(new Array(0),1024),b=!1;function v(e,t){e||Ve("Assertion failed: "+t)}function B(t){var n=e["_"+t];return v(n,"Cannot call unknown function "+t+", make sure it is exported"),n}var M={stackSave:function(){Ge()},stackRestore:function(){Ue()},arrayToC:function(e){var t=Pe(e.length);return pe(e,t),t},stringToC:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);j(e,t=Pe(n),n)}return t}},D={string:M.stringToC,array:M.arrayToC};function x(e,t,n,r,o){var i=B(e),a=[],s=0;if(r)for(var l=0;l<r.length;l++){var c=D[n[l]];c?(0===s&&(s=Ge()),a[l]=c(r[l])):a[l]=r[l]}var u=i.apply(null,a);return u=function(e){return"string"===t?Q(e):"boolean"===t?Boolean(e):e}(u),0!==s&&Ue(s),u}function w(e,t,n,r){var o=(n=n||[]).every((function(e){return"number"===e}));return"string"!==t&&o&&!r?B(e):function(){return x(e,t,n,arguments)}}function Q(e,t){if(0===t||!e)return"";for(var n,r=0,o=0;r|=n=O[e+o>>0],(0!=n||t)&&(o++,!t||o!=t););t||(t=o);var i="";if(r<128){for(var a;t>0;)a=String.fromCharCode.apply(String,O.subarray(e,e+Math.min(t,1024))),i=i?i+a:a,e+=1024,t-=1024;return i}return k(e)}var S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function N(e,t){for(var n=t;e[n];)++n;if(n-t>16&&e.subarray&&S)return S.decode(e.subarray(t,n));for(var r,o,i,a,s,l="";;){if(!(r=e[t++]))return l;if(128&r)if(o=63&e[t++],192!=(224&r))if(i=63&e[t++],224==(240&r)?r=(15&r)<<12|o<<6|i:(a=63&e[t++],240==(248&r)?r=(7&r)<<18|o<<12|i<<6|a:(s=63&e[t++],r=248==(252&r)?(3&r)<<24|o<<18|i<<12|a<<6|s:(1&r)<<30|o<<24|i<<18|a<<12|s<<6|63&e[t++])),r<65536)l+=String.fromCharCode(r);else{var c=r-65536;l+=String.fromCharCode(55296|c>>10,56320|1023&c)}else l+=String.fromCharCode((31&r)<<6|o);else l+=String.fromCharCode(r)}}function k(e){return N(O,e)}function T(e,t,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(n>=i)break;t[n++]=s}else if(s<=2047){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=2097151){if(n+3>=i)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=67108863){if(n+4>=i)break;t[n++]=248|s>>24,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+5>=i)break;t[n++]=252|s>>30,t[n++]=128|s>>24&63,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-o}function j(e,t,n){return T(e,O,t,n)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var L,R,O,_,F,z,P,U,G,H,Y=65536,V=16777216,W=16777216;function K(e,t){return e%t>0&&(e+=t-e%t),e}function Z(t){e.buffer=L=t}function J(){e.HEAP8=R=new Int8Array(L),e.HEAP16=new Int16Array(L),e.HEAP32=_=new Int32Array(L),e.HEAPU8=O=new Uint8Array(L),e.HEAPU16=new Uint16Array(L),e.HEAPU32=new Uint32Array(L),e.HEAPF32=new Float32Array(L),e.HEAPF64=new Float64Array(L)}function q(){Ve("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value "+ee+", (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ")}function X(){var t=e.usingWasm?Y:V,n=2147483648-t;if(_[H>>2]>n)return!1;var r=ee;for(ee=Math.max(ee,W);ee<_[H>>2];)ee=ee<=536870912?K(2*ee,t):Math.min(K((3*ee+2147483648)/4,t),n);var o=e.reallocBuffer(ee);return o&&o.byteLength==ee?(Z(o),J(),!0):(ee=r,!1)}F=z=P=U=G=H=0,e.reallocBuffer||(e.reallocBuffer=function(e){var t;try{var n=R;t=new ArrayBuffer(e),new Int8Array(t).set(n)}catch(e){return!1}return!!Fe(t)&&t});try{Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get)(new ArrayBuffer(4))}catch(e){}var $=e.TOTAL_STACK||5242880,ee=e.TOTAL_MEMORY||16777216;function te(){return ee}function ne(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?e.dynCall_v(r):e.dynCall_vi(r,n.arg):r(void 0===n.arg?null:n.arg)}else n()}}ee<$&&f("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+ee+"! (TOTAL_STACK="+$+")"),e.buffer?L=e.buffer:("object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(e.wasmMemory=new WebAssembly.Memory({initial:ee/Y}),L=e.wasmMemory.buffer):L=new ArrayBuffer(ee),e.buffer=L),J();var re=[],oe=[],ie=[],ae=[],se=!1;function le(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)de(e.preRun.shift());ne(re)}function ce(){se||(se=!0,ne(oe))}function ue(){ne(ie)}function Ae(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)ge(e.postRun.shift());ne(ae)}function de(e){re.unshift(e)}function ge(e){ae.unshift(e)}function pe(e,t){R.set(e,t)}var he=0,fe=null,me=null;function ye(t){he++,e.monitorRunDependencies&&e.monitorRunDependencies(he)}function Ie(t){if(he--,e.monitorRunDependencies&&e.monitorRunDependencies(he),0==he&&(null!==fe&&(clearInterval(fe),fe=null),me)){var n=me;me=null,n()}}e.preloadedImages={},e.preloadedAudios={};var Ce="data:application/octet-stream;base64,";function Ee(e){return String.prototype.startsWith?e.startsWith(Ce):0===e.indexOf(Ce)}function be(){var t="",n="data:application/octet-stream;base64,[encoded data, 137036 characters]",r="";Ee(t)||(t=p(t)),Ee(n)||(n=p(n)),Ee(r)||(r=p(r));var o={global:null,env:null,asm2wasm:C,parent:e},i=null;function a(){try{if(e.wasmBinary)return new Uint8Array(e.wasmBinary);var t=Oe(n);if(t)return t;if(e.readBinary)return e.readBinary(n);throw"both async and sync fetching of the wasm failed"}catch(e){Ve(e)}}function c(t,r,c){if("object"!=typeof WebAssembly)return f("no native wasm support detected"),!1;if(!(e.wasmMemory instanceof WebAssembly.Memory))return f("no native wasm Memory in use"),!1;function u(t,n){(i=t.exports).memory&&function(t){var n=e.buffer;t.byteLength<n.byteLength&&f("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here");var r=new Int8Array(n);new Int8Array(t).set(r),Z(t),J()}(i.memory),e.asm=i,e.usingWasm=!0,Ie()}if(r.memory=e.wasmMemory,o.global={NaN:NaN,Infinity:1/0},o["global.Math"]=Math,o.env=r,ye(),e.instantiateWasm)try{return e.instantiateWasm(o,u)}catch(e){return f("Module.instantiateWasm callback failed with error: "+e),!1}function A(e){u(e.instance,e.module)}function d(t){(e.wasmBinary||!s&&!l||"function"!=typeof fetch?new Promise((function(e,t){e(a())})):fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+n+"'";return e.arrayBuffer()})).catch((function(){return a()}))).then((function(e){return WebAssembly.instantiate(e,o)})).then(t).catch((function(e){f("failed to asynchronously prepare wasm: "+e),Ve(e)}))}return e.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||Ee(n)||"function"!=typeof fetch?d(A):WebAssembly.instantiateStreaming(fetch(n,{credentials:"same-origin"}),o).then(A).catch((function(e){f("wasm streaming compile failed: "+e),f("falling back to ArrayBuffer instantiation"),d(A)})),{}}e.asmPreload=e.asm;var u=e.reallocBuffer;e.reallocBuffer=function(t){return"asmjs"===A?u(t):function(t){t=K(t,e.usingWasm?Y:V);var n=e.buffer.byteLength;if(e.usingWasm)try{return-1!==e.wasmMemory.grow((t-n)/65536)?e.buffer=e.wasmMemory.buffer:null}catch(e){return null}}(t)};var A="";e.asm=function(t,n,r){if(!(n=n).table){var o=e.wasmTableSize;void 0===o&&(o=1024);var i=e.wasmMaxTableSize;"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Table?n.table=void 0!==i?new WebAssembly.Table({initial:o,maximum:i,element:"anyfunc"}):new WebAssembly.Table({initial:o,element:"anyfunc"}):n.table=new Array(o),e.wasmTable=n.table}var a;return n.memoryBase||(n.memoryBase=e.STATIC_BASE),n.tableBase||(n.tableBase=0),v(a=c(0,n),"no binaryen method succeeded."),a}}be(),z=(F=E)+6976,oe.push();var ve=6976;function Be(e,t,n,r){Ve("Assertion failed: "+Q(e)+", at: "+[t?Q(t):"unknown filename",n,r?Q(r):"unknown function"])}function Me(e){return ze(e)}function De(){return!!De.uncaught_exception}e.STATIC_BASE=F,e.STATIC_BUMP=ve,z+=16;var xe={last:0,caught:[],infos:{},deAdjust:function(e){if(!e||xe.infos[e])return e;for(var t in xe.infos){var n=+t;if(xe.infos[n].adjusted===e)return n}return e},addRef:function(e){e&&xe.infos[e].refcount++},decRef:function(t){if(t){var n=xe.infos[t];v(n.refcount>0),n.refcount--,0!==n.refcount||n.rethrown||(n.destructor&&e.dynCall_vi(n.destructor,t),delete xe.infos[t],___cxa_free_exception(t))}},clearRef:function(e){e&&(xe.infos[e].refcount=0)}};function we(e,t,n){throw xe.infos[e]={ptr:e,adjusted:e,type:t,destructor:n,refcount:0,caught:!1,rethrown:!1},xe.last=e,"uncaught_exception"in De?De.uncaught_exception++:De.uncaught_exception=1,e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function Qe(){e.abort()}function Se(){Ve("trap!")}function Ne(e,t,n){return O.set(O.subarray(t,t+n),e),e}function ke(t){return e.___errno_location&&(_[e.___errno_location()>>2]=t),t}H=y(4),P=U=I(z),G=I(P+$),_[H>>2]=G;var Te=!1;function je(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r>255&&(Te&&v(!1,"Character code "+r+" ("+String.fromCharCode(r)+")  at offset "+n+" not in 0x00-0xFF."),r&=255),t.push(String.fromCharCode(r))}return t.join("")}var Le="function"==typeof atob?atob:function(e){var t,n,r,o,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(c++))<<2|(o=s.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(i=s.indexOf(e.charAt(c++)))>>2,r=(3&i)<<6|(a=s.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!==i&&(l+=String.fromCharCode(n)),64!==a&&(l+=String.fromCharCode(r))}while(c<e.length);return l};function Re(e){if("boolean"==typeof c&&c){var t;try{t=r.from(e,"base64")}catch(n){t=new r(e,"base64")}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}try{for(var n=Le(e),o=new Uint8Array(n.length),i=0;i<n.length;++i)o[i]=n.charCodeAt(i);return o}catch(e){throw new Error("Converting base64 string to bytes failed.")}}function Oe(e){if(Ee(e))return Re(e.slice(Ce.length))}e.wasmTableSize=35,e.wasmMaxTableSize=35,e.asmGlobalArg={},e.asmLibraryArg={abort:Ve,enlargeMemory:X,getTotalMemory:te,abortOnCannotGrowMemory:q,___assert_fail:Be,___cxa_allocate_exception:Me,___cxa_throw:we,___setErrNo:ke,_abort:Qe,_emscripten_memcpy_big:Ne,_llvm_trap:Se,DYNAMICTOP_PTR:H,STACKTOP:U};var _e=e.asm(e.asmGlobalArg,e.asmLibraryArg,L);e.asm=_e;var Fe=e._emscripten_replace_memory=function(){return e.asm._emscripten_replace_memory.apply(null,arguments)},ze=(e._linalg_matrix_add=function(){return e.asm._linalg_matrix_add.apply(null,arguments)},e._linalg_matrix_add_scale=function(){return e.asm._linalg_matrix_add_scale.apply(null,arguments)},e._linalg_matrix_col_stride=function(){return e.asm._linalg_matrix_col_stride.apply(null,arguments)},e._linalg_matrix_cols=function(){return e.asm._linalg_matrix_cols.apply(null,arguments)},e._linalg_matrix_create=function(){return e.asm._linalg_matrix_create.apply(null,arguments)},e._linalg_matrix_data=function(){return e.asm._linalg_matrix_data.apply(null,arguments)},e._linalg_matrix_destroy=function(){return e.asm._linalg_matrix_destroy.apply(null,arguments)},e._linalg_matrix_ediv=function(){return e.asm._linalg_matrix_ediv.apply(null,arguments)},e._linalg_matrix_emul=function(){return e.asm._linalg_matrix_emul.apply(null,arguments)},e._linalg_matrix_fill=function(){return e.asm._linalg_matrix_fill.apply(null,arguments)},e._linalg_matrix_init=function(){return e.asm._linalg_matrix_init.apply(null,arguments)},e._linalg_matrix_l1_norm=function(){return e.asm._linalg_matrix_l1_norm.apply(null,arguments)},e._linalg_matrix_mmul=function(){return e.asm._linalg_matrix_mmul.apply(null,arguments)},e._linalg_matrix_norm=function(){return e.asm._linalg_matrix_norm.apply(null,arguments)},e._linalg_matrix_row_stride=function(){return e.asm._linalg_matrix_row_stride.apply(null,arguments)},e._linalg_matrix_rows=function(){return e.asm._linalg_matrix_rows.apply(null,arguments)},e._linalg_matrix_scale=function(){return e.asm._linalg_matrix_scale.apply(null,arguments)},e._linalg_matrix_size=function(){return e.asm._linalg_matrix_size.apply(null,arguments)},e._linalg_matrix_sub=function(){return e.asm._linalg_matrix_sub.apply(null,arguments)},e._linalg_solve_linear_system=function(){return e.asm._linalg_solve_linear_system.apply(null,arguments)},e._malloc=function(){return e.asm._malloc.apply(null,arguments)}),Pe=(e._memory_alloc=function(){return e.asm._memory_alloc.apply(null,arguments)},e._memory_free=function(){return e.asm._memory_free.apply(null,arguments)},e._solver_add_constraint=function(){return e.asm._solver_add_constraint.apply(null,arguments)},e._solver_add_constraint_coefficient=function(){return e.asm._solver_add_constraint_coefficient.apply(null,arguments)},e._solver_add_variable=function(){return e.asm._solver_add_variable.apply(null,arguments)},e._solver_clear_constraint_coefficients=function(){return e.asm._solver_clear_constraint_coefficients.apply(null,arguments)},e._solver_compute_loss=function(){return e.asm._solver_compute_loss.apply(null,arguments)},e._solver_create=function(){return e.asm._solver_create.apply(null,arguments)},e._solver_destroy=function(){return e.asm._solver_destroy.apply(null,arguments)},e._solver_get_attribute_f=function(){return e.asm._solver_get_attribute_f.apply(null,arguments)},e._solver_get_attribute_i=function(){return e.asm._solver_get_attribute_i.apply(null,arguments)},e._solver_get_value=function(){return e.asm._solver_get_value.apply(null,arguments)},e._solver_get_values=function(){return e.asm._solver_get_values.apply(null,arguments)},e._solver_make_constant=function(){return e.asm._solver_make_constant.apply(null,arguments)},e._solver_set_attribute_f=function(){return e.asm._solver_set_attribute_f.apply(null,arguments)},e._solver_set_attribute_i=function(){return e.asm._solver_set_attribute_i.apply(null,arguments)},e._solver_set_constraint_bias=function(){return e.asm._solver_set_constraint_bias.apply(null,arguments)},e._solver_set_constraint_strength=function(){return e.asm._solver_set_constraint_strength.apply(null,arguments)},e._solver_set_value=function(){return e.asm._solver_set_value.apply(null,arguments)},e._solver_set_values=function(){return e.asm._solver_set_values.apply(null,arguments)},e._solver_solve=function(){return e.asm._solver_solve.apply(null,arguments)},e.stackAlloc=function(){return e.asm.stackAlloc.apply(null,arguments)}),Ue=e.stackRestore=function(){return e.asm.stackRestore.apply(null,arguments)},Ge=e.stackSave=function(){return e.asm.stackSave.apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Ye(t){function n(){e.calledRun||(e.calledRun=!0,b||(ce(),ue(),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Ae()))}t=t||e.arguments,he>0||(le(),he>0||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),n()}),1)):n()))}function Ve(t){throw e.onAbort&&e.onAbort(t),void 0!==t?(h(t),f(t),t=JSON.stringify(t)):t="",b=!0,"abort("+t+"). Build with -s ASSERTIONS=1 for more info."}if(e.dynCall_v=function(){return e.asm.dynCall_v.apply(null,arguments)},e.dynCall_vi=function(){return e.asm.dynCall_vi.apply(null,arguments)},e.asm=_e,e.cwrap=w,e.then=function(t){if(e.calledRun)t(e);else{var n=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){n&&n(),t(e)}}return e},He.prototype=new Error,He.prototype.constructor=He,me=function t(){e.calledRun||Ye(),e.calledRun||(me=t)},e.run=Ye,e.abort=Ve,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return e.noExitRuntime=!0,Ye(),e});e.exports=i}).call(t,n(0),"/",n(1).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],a=n[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),l=0,u=a>0?r-4:r,A=0;A<u;A+=4)t=o[e.charCodeAt(A)]<<18|o[e.charCodeAt(A+1)]<<12|o[e.charCodeAt(A+2)]<<6|o[e.charCodeAt(A+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=o[e.charCodeAt(A)]<<2|o[e.charCodeAt(A+1)]>>4,s[l++]=255&t),1===a&&(t=o[e.charCodeAt(A)]<<10|o[e.charCodeAt(A+1)]<<4|o[e.charCodeAt(A+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,A=n?o-1:0,d=n?-1:1,g=e[t+A];for(A+=d,i=g&(1<<-u)-1,g>>=-u,u+=s;u>0;i=256*i+e[t+A],A+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+A],A+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,r),i-=c}return(g?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,A=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:i-1,p=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+A>=1?d/l:d*Math.pow(2,1-A))*l>=2&&(a++,l/=2),a+A>=u?(s=0,a=u):a+A>=1?(s=(t*l-1)*Math.pow(2,o),a+=A):(s=t*Math.pow(2,A-1)*Math.pow(2,o),a=0));o>=8;e[n+g]=255&s,g+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+g]=255&a,g+=p,a/=256,c-=8);e[n+g-p]|=128*h}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t,n,r){var o,i=(o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){e=void 0!==(e=e||{})?e:{};var i,a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);e.arguments=[],e.thisProgram="./this.program",e.quit=function(e,t){throw t},e.preRun=[],e.postRun=[];var s=!1,l=!1,c=!1,u=!1;s="object"==typeof window,l="function"==typeof importScripts,c="object"==typeof t&&!s&&!l,u=!s&&!c&&!l;var A,d,g="";function p(t){return e.locateFile?e.locateFile(t,g):g+t}c?(g=n+"/",e.read=function(e,t){var n;return(n=Oe(e))||(A||(A=null),d||(d=null),e=d.normalize(e),n=A.readFileSync(e)),t?n:n.toString()},e.readBinary=function(t){var n=e.read(t,!0);return n.buffer||(n=new Uint8Array(n)),v(n.buffer),n},t.argv.length>1&&(e.thisProgram=t.argv[1].replace(/\\/g,"/")),e.arguments=t.argv.slice(2),t.on("uncaughtException",(function(e){if(!(e instanceof He))throw e})),t.on("unhandledRejection",(function(e,n){t.exit(1)})),e.quit=function(e){t.exit(e)},e.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(e.read=function(e){var t=Oe(e);return t?je(t):read(e)}),e.readBinary=function(e){var t;return(t=Oe(e))?t:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(v("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments),"function"==typeof quit&&(e.quit=function(e){quit(e)})):(s||l)&&(s?document.currentScript&&(g=document.currentScript.src):g=self.location.href,o&&(g=o),g=0!==g.indexOf("blob:")?g.substr(0,g.lastIndexOf("/")+1):"",e.read=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=Oe(e);if(n)return je(n);throw t}},l&&(e.readBinary=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=Oe(e);if(n)return n;throw t}}),e.readAsync=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var o=Oe(e);o?t(o.buffer):n()}},r.onerror=n,r.send(null)},e.setWindowTitle=function(e){document.title=e});var h=e.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),f=e.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||h);for(i in a)a.hasOwnProperty(i)&&(e[i]=a[i]);a=void 0;var m=16;function y(e){var t=z;return z=z+e+15&-16,t}function I(e,t){return t||(t=m),e=Math.ceil(e/t)*t}var C={"f64-rem":function(e,t){return e%t},debugger:function(){}},E=(new Array(0),1024),b=!1;function v(e,t){e||Ve("Assertion failed: "+t)}function B(t){var n=e["_"+t];return v(n,"Cannot call unknown function "+t+", make sure it is exported"),n}var M={stackSave:function(){Ge()},stackRestore:function(){Ue()},arrayToC:function(e){var t=Pe(e.length);return pe(e,t),t},stringToC:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);j(e,t=Pe(n),n)}return t}},D={string:M.stringToC,array:M.arrayToC};function x(e,t,n,r,o){var i=B(e),a=[],s=0;if(r)for(var l=0;l<r.length;l++){var c=D[n[l]];c?(0===s&&(s=Ge()),a[l]=c(r[l])):a[l]=r[l]}var u=i.apply(null,a);return u=function(e){return"string"===t?Q(e):"boolean"===t?Boolean(e):e}(u),0!==s&&Ue(s),u}function w(e,t,n,r){var o=(n=n||[]).every((function(e){return"number"===e}));return"string"!==t&&o&&!r?B(e):function(){return x(e,t,n,arguments)}}function Q(e,t){if(0===t||!e)return"";for(var n,r=0,o=0;r|=n=O[e+o>>0],(0!=n||t)&&(o++,!t||o!=t););t||(t=o);var i="";if(r<128){for(var a;t>0;)a=String.fromCharCode.apply(String,O.subarray(e,e+Math.min(t,1024))),i=i?i+a:a,e+=1024,t-=1024;return i}return k(e)}var S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function N(e,t){for(var n=t;e[n];)++n;if(n-t>16&&e.subarray&&S)return S.decode(e.subarray(t,n));for(var r,o,i,a,s,l="";;){if(!(r=e[t++]))return l;if(128&r)if(o=63&e[t++],192!=(224&r))if(i=63&e[t++],224==(240&r)?r=(15&r)<<12|o<<6|i:(a=63&e[t++],240==(248&r)?r=(7&r)<<18|o<<12|i<<6|a:(s=63&e[t++],r=248==(252&r)?(3&r)<<24|o<<18|i<<12|a<<6|s:(1&r)<<30|o<<24|i<<18|a<<12|s<<6|63&e[t++])),r<65536)l+=String.fromCharCode(r);else{var c=r-65536;l+=String.fromCharCode(55296|c>>10,56320|1023&c)}else l+=String.fromCharCode((31&r)<<6|o);else l+=String.fromCharCode(r)}}function k(e){return N(O,e)}function T(e,t,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(n>=i)break;t[n++]=s}else if(s<=2047){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=2097151){if(n+3>=i)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=67108863){if(n+4>=i)break;t[n++]=248|s>>24,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+5>=i)break;t[n++]=252|s>>30,t[n++]=128|s>>24&63,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-o}function j(e,t,n){return T(e,O,t,n)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var L,R,O,_,F,z,P,U,G,H,Y=65536,V=16777216,W=16777216;function K(e,t){return e%t>0&&(e+=t-e%t),e}function Z(t){e.buffer=L=t}function J(){e.HEAP8=R=new Int8Array(L),e.HEAP16=new Int16Array(L),e.HEAP32=_=new Int32Array(L),e.HEAPU8=O=new Uint8Array(L),e.HEAPU16=new Uint16Array(L),e.HEAPU32=new Uint32Array(L),e.HEAPF32=new Float32Array(L),e.HEAPF64=new Float64Array(L)}function q(){Ve("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value "+ee+", (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ")}function X(){var t=e.usingWasm?Y:V,n=2147483648-t;if(_[H>>2]>n)return!1;var r=ee;for(ee=Math.max(ee,W);ee<_[H>>2];)ee=ee<=536870912?K(2*ee,t):Math.min(K((3*ee+2147483648)/4,t),n);var o=e.reallocBuffer(ee);return o&&o.byteLength==ee?(Z(o),J(),!0):(ee=r,!1)}F=z=P=U=G=H=0,e.reallocBuffer||(e.reallocBuffer=function(e){var t;try{var n=R;t=new ArrayBuffer(e),new Int8Array(t).set(n)}catch(e){return!1}return!!Fe(t)&&t});try{Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get)(new ArrayBuffer(4))}catch(e){}var $=e.TOTAL_STACK||5242880,ee=e.TOTAL_MEMORY||16777216;function te(){return ee}function ne(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?e.dynCall_v(r):e.dynCall_vi(r,n.arg):r(void 0===n.arg?null:n.arg)}else n()}}ee<$&&f("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+ee+"! (TOTAL_STACK="+$+")"),e.buffer?L=e.buffer:("object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(e.wasmMemory=new WebAssembly.Memory({initial:ee/Y}),L=e.wasmMemory.buffer):L=new ArrayBuffer(ee),e.buffer=L),J();var re=[],oe=[],ie=[],ae=[],se=!1;function le(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)de(e.preRun.shift());ne(re)}function ce(){se||(se=!0,ne(oe))}function ue(){ne(ie)}function Ae(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)ge(e.postRun.shift());ne(ae)}function de(e){re.unshift(e)}function ge(e){ae.unshift(e)}function pe(e,t){R.set(e,t)}var he=0,fe=null,me=null;function ye(t){he++,e.monitorRunDependencies&&e.monitorRunDependencies(he)}function Ie(t){if(he--,e.monitorRunDependencies&&e.monitorRunDependencies(he),0==he&&(null!==fe&&(clearInterval(fe),fe=null),me)){var n=me;me=null,n()}}e.preloadedImages={},e.preloadedAudios={};var Ce="data:application/octet-stream;base64,";function Ee(e){return String.prototype.startsWith?e.startsWith(Ce):0===e.indexOf(Ce)}function be(){var t="",n="data:application/octet-stream;base64,[encoded data, 137036 characters]",r="";Ee(t)||(t=p(t)),Ee(n)||(n=p(n)),Ee(r)||(r=p(r));var o={global:null,env:null,asm2wasm:C,parent:e},i=null;function a(){try{if(e.wasmBinary)return new Uint8Array(e.wasmBinary);var t=Oe(n);if(t)return t;if(e.readBinary)return e.readBinary(n);throw"both async and sync fetching of the wasm failed"}catch(e){Ve(e)}}function c(t,r,c){if("object"!=typeof WebAssembly)return f("no native wasm support detected"),!1;if(!(e.wasmMemory instanceof WebAssembly.Memory))return f("no native wasm Memory in use"),!1;function u(t,n){(i=t.exports).memory&&function(t){var n=e.buffer;t.byteLength<n.byteLength&&f("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here");var r=new Int8Array(n);new Int8Array(t).set(r),Z(t),J()}(i.memory),e.asm=i,e.usingWasm=!0,Ie()}if(r.memory=e.wasmMemory,o.global={NaN:NaN,Infinity:1/0},o["global.Math"]=Math,o.env=r,ye(),e.instantiateWasm)try{return e.instantiateWasm(o,u)}catch(e){return f("Module.instantiateWasm callback failed with error: "+e),!1}function A(e){u(e.instance,e.module)}function d(t){(e.wasmBinary||!s&&!l||"function"!=typeof fetch?new Promise((function(e,t){e(a())})):fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+n+"'";return e.arrayBuffer()})).catch((function(){return a()}))).then((function(e){return WebAssembly.instantiate(e,o)})).then(t).catch((function(e){f("failed to asynchronously prepare wasm: "+e),Ve(e)}))}return e.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||Ee(n)||"function"!=typeof fetch?d(A):WebAssembly.instantiateStreaming(fetch(n,{credentials:"same-origin"}),o).then(A).catch((function(e){f("wasm streaming compile failed: "+e),f("falling back to ArrayBuffer instantiation"),d(A)})),{}}e.asmPreload=e.asm;var u=e.reallocBuffer;e.reallocBuffer=function(t){return"asmjs"===A?u(t):function(t){t=K(t,e.usingWasm?Y:V);var n=e.buffer.byteLength;if(e.usingWasm)try{return-1!==e.wasmMemory.grow((t-n)/65536)?e.buffer=e.wasmMemory.buffer:null}catch(e){return null}}(t)};var A="";e.asm=function(t,n,r){if(!(n=n).table){var o=e.wasmTableSize;void 0===o&&(o=1024);var i=e.wasmMaxTableSize;"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Table?n.table=void 0!==i?new WebAssembly.Table({initial:o,maximum:i,element:"anyfunc"}):new WebAssembly.Table({initial:o,element:"anyfunc"}):n.table=new Array(o),e.wasmTable=n.table}var a;return n.memoryBase||(n.memoryBase=e.STATIC_BASE),n.tableBase||(n.tableBase=0),v(a=c(0,n),"no binaryen method succeeded."),a}}be(),z=(F=E)+6976,oe.push();var ve=6976;function Be(e,t,n,r){Ve("Assertion failed: "+Q(e)+", at: "+[t?Q(t):"unknown filename",n,r?Q(r):"unknown function"])}function Me(e){return ze(e)}function De(){return!!De.uncaught_exception}e.STATIC_BASE=F,e.STATIC_BUMP=ve,z+=16;var xe={last:0,caught:[],infos:{},deAdjust:function(e){if(!e||xe.infos[e])return e;for(var t in xe.infos){var n=+t;if(xe.infos[n].adjusted===e)return n}return e},addRef:function(e){e&&xe.infos[e].refcount++},decRef:function(t){if(t){var n=xe.infos[t];v(n.refcount>0),n.refcount--,0!==n.refcount||n.rethrown||(n.destructor&&e.dynCall_vi(n.destructor,t),delete xe.infos[t],___cxa_free_exception(t))}},clearRef:function(e){e&&(xe.infos[e].refcount=0)}};function we(e,t,n){throw xe.infos[e]={ptr:e,adjusted:e,type:t,destructor:n,refcount:0,caught:!1,rethrown:!1},xe.last=e,"uncaught_exception"in De?De.uncaught_exception++:De.uncaught_exception=1,e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function Qe(){e.abort()}function Se(){Ve("trap!")}function Ne(e,t,n){return O.set(O.subarray(t,t+n),e),e}function ke(t){return e.___errno_location&&(_[e.___errno_location()>>2]=t),t}H=y(4),P=U=I(z),G=I(P+$),_[H>>2]=G;var Te=!1;function je(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r>255&&(Te&&v(!1,"Character code "+r+" ("+String.fromCharCode(r)+")  at offset "+n+" not in 0x00-0xFF."),r&=255),t.push(String.fromCharCode(r))}return t.join("")}var Le="function"==typeof atob?atob:function(e){var t,n,r,o,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(c++))<<2|(o=s.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(i=s.indexOf(e.charAt(c++)))>>2,r=(3&i)<<6|(a=s.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!==i&&(l+=String.fromCharCode(n)),64!==a&&(l+=String.fromCharCode(r))}while(c<e.length);return l};function Re(e){if("boolean"==typeof c&&c){var t;try{t=r.from(e,"base64")}catch(n){t=new r(e,"base64")}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}try{for(var n=Le(e),o=new Uint8Array(n.length),i=0;i<n.length;++i)o[i]=n.charCodeAt(i);return o}catch(e){throw new Error("Converting base64 string to bytes failed.")}}function Oe(e){if(Ee(e))return Re(e.slice(Ce.length))}e.wasmTableSize=35,e.wasmMaxTableSize=35,e.asmGlobalArg={},e.asmLibraryArg={abort:Ve,enlargeMemory:X,getTotalMemory:te,abortOnCannotGrowMemory:q,___assert_fail:Be,___cxa_allocate_exception:Me,___cxa_throw:we,___setErrNo:ke,_abort:Qe,_emscripten_memcpy_big:Ne,_llvm_trap:Se,DYNAMICTOP_PTR:H,STACKTOP:U};var _e=e.asm(e.asmGlobalArg,e.asmLibraryArg,L);e.asm=_e;var Fe=e._emscripten_replace_memory=function(){return e.asm._emscripten_replace_memory.apply(null,arguments)},ze=(e._linalg_matrix_add=function(){return e.asm._linalg_matrix_add.apply(null,arguments)},e._linalg_matrix_add_scale=function(){return e.asm._linalg_matrix_add_scale.apply(null,arguments)},e._linalg_matrix_col_stride=function(){return e.asm._linalg_matrix_col_stride.apply(null,arguments)},e._linalg_matrix_cols=function(){return e.asm._linalg_matrix_cols.apply(null,arguments)},e._linalg_matrix_create=function(){return e.asm._linalg_matrix_create.apply(null,arguments)},e._linalg_matrix_data=function(){return e.asm._linalg_matrix_data.apply(null,arguments)},e._linalg_matrix_destroy=function(){return e.asm._linalg_matrix_destroy.apply(null,arguments)},e._linalg_matrix_ediv=function(){return e.asm._linalg_matrix_ediv.apply(null,arguments)},e._linalg_matrix_emul=function(){return e.asm._linalg_matrix_emul.apply(null,arguments)},e._linalg_matrix_fill=function(){return e.asm._linalg_matrix_fill.apply(null,arguments)},e._linalg_matrix_init=function(){return e.asm._linalg_matrix_init.apply(null,arguments)},e._linalg_matrix_l1_norm=function(){return e.asm._linalg_matrix_l1_norm.apply(null,arguments)},e._linalg_matrix_mmul=function(){return e.asm._linalg_matrix_mmul.apply(null,arguments)},e._linalg_matrix_norm=function(){return e.asm._linalg_matrix_norm.apply(null,arguments)},e._linalg_matrix_row_stride=function(){return e.asm._linalg_matrix_row_stride.apply(null,arguments)},e._linalg_matrix_rows=function(){return e.asm._linalg_matrix_rows.apply(null,arguments)},e._linalg_matrix_scale=function(){return e.asm._linalg_matrix_scale.apply(null,arguments)},e._linalg_matrix_size=function(){return e.asm._linalg_matrix_size.apply(null,arguments)},e._linalg_matrix_sub=function(){return e.asm._linalg_matrix_sub.apply(null,arguments)},e._linalg_solve_linear_system=function(){return e.asm._linalg_solve_linear_system.apply(null,arguments)},e._malloc=function(){return e.asm._malloc.apply(null,arguments)}),Pe=(e._memory_alloc=function(){return e.asm._memory_alloc.apply(null,arguments)},e._memory_free=function(){return e.asm._memory_free.apply(null,arguments)},e._solver_add_constraint=function(){return e.asm._solver_add_constraint.apply(null,arguments)},e._solver_add_constraint_coefficient=function(){return e.asm._solver_add_constraint_coefficient.apply(null,arguments)},e._solver_add_variable=function(){return e.asm._solver_add_variable.apply(null,arguments)},e._solver_clear_constraint_coefficients=function(){return e.asm._solver_clear_constraint_coefficients.apply(null,arguments)},e._solver_compute_loss=function(){return e.asm._solver_compute_loss.apply(null,arguments)},e._solver_create=function(){return e.asm._solver_create.apply(null,arguments)},e._solver_destroy=function(){return e.asm._solver_destroy.apply(null,arguments)},e._solver_get_attribute_f=function(){return e.asm._solver_get_attribute_f.apply(null,arguments)},e._solver_get_attribute_i=function(){return e.asm._solver_get_attribute_i.apply(null,arguments)},e._solver_get_value=function(){return e.asm._solver_get_value.apply(null,arguments)},e._solver_get_values=function(){return e.asm._solver_get_values.apply(null,arguments)},e._solver_make_constant=function(){return e.asm._solver_make_constant.apply(null,arguments)},e._solver_set_attribute_f=function(){return e.asm._solver_set_attribute_f.apply(null,arguments)},e._solver_set_attribute_i=function(){return e.asm._solver_set_attribute_i.apply(null,arguments)},e._solver_set_constraint_bias=function(){return e.asm._solver_set_constraint_bias.apply(null,arguments)},e._solver_set_constraint_strength=function(){return e.asm._solver_set_constraint_strength.apply(null,arguments)},e._solver_set_value=function(){return e.asm._solver_set_value.apply(null,arguments)},e._solver_set_values=function(){return e.asm._solver_set_values.apply(null,arguments)},e._solver_solve=function(){return e.asm._solver_solve.apply(null,arguments)},e.stackAlloc=function(){return e.asm.stackAlloc.apply(null,arguments)}),Ue=e.stackRestore=function(){return e.asm.stackRestore.apply(null,arguments)},Ge=e.stackSave=function(){return e.asm.stackSave.apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Ye(t){function n(){e.calledRun||(e.calledRun=!0,b||(ce(),ue(),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Ae()))}t=t||e.arguments,he>0||(le(),he>0||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),n()}),1)):n()))}function Ve(t){throw e.onAbort&&e.onAbort(t),void 0!==t?(h(t),f(t),t=JSON.stringify(t)):t="",b=!0,"abort("+t+"). Build with -s ASSERTIONS=1 for more info."}if(e.dynCall_v=function(){return e.asm.dynCall_v.apply(null,arguments)},e.dynCall_vi=function(){return e.asm.dynCall_vi.apply(null,arguments)},e.asm=_e,e.cwrap=w,e.then=function(t){if(e.calledRun)t(e);else{var n=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){n&&n(),t(e)}}return e},He.prototype=new Error,He.prototype.constructor=He,me=function t(){e.calledRun||Ye(),e.calledRun||(me=t)},e.run=Ye,e.abort=Ve,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return e.noExitRuntime=!0,Ye(),e});e.exports=i}).call(t,n(0),"/",n(1).Buffer)}])},e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(324);Object.defineProperty(t,"PackingPlugin",{enumerable:!0,get:function(){return r.PackingPlugin}});var o=n(325);Object.defineProperty(t,"PolarCoordinatorPlugin",{enumerable:!0,get:function(){return o.PolarCoordinatorPlugin}});var i=n(335);Object.defineProperty(t,"PolarPlotSegmentPlugin",{enumerable:!0,get:function(){return i.PolarPlotSegmentPlugin}});var a=n(336);Object.defineProperty(t,"JitterPlugin",{enumerable:!0,get:function(){return a.JitterPlugin}})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PackingPlugin=void 0;var i=n(625),a=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this)||this;return l.solver=t,l.cx=n,l.cy=r,l.points=o,l.xEnable=null==i||"x"==i,l.yEnable=null==i||"y"==i,l.getXYScale=a,l.gravityX=s.gravityX,l.gravityY=s.gravityY,l.boxed=s.boxed,l}return o(t,e),t.prototype.apply=function(){var e=this,t=1,n=1;if(null!=this.getXYScale){var r=this.getXYScale(),o=r.x,a=r.y;t=o,n=a}var s=this.solver.getValue(this.cx),l=this.solver.getValue(this.cy),c=this.points.map((function(r){var o=(e.solver.getValue(r[0])-s)/t,i=(e.solver.getValue(r[1])-l)/n;return{fx:e.xEnable?void 0:o,fy:e.yEnable?void 0:i,r:r[2]}})),u=i.forceSimulation(c);u.force("collision",i.forceCollide((function(e){return e.r}))),u.force("gravityX",i.forceX().strength(this.gravityX||.1)),u.force("gravityY",i.forceY().strength(this.gravityY||.1)),u.stop();for(var A=Math.ceil(Math.log(u.alphaMin())/Math.log(1-u.alphaDecay())),d=0;d<2*A;d++)u.tick();for(d=0;d<c.length;d++)this.xEnable&&(this.boxed&&null!=this.boxed.x1&&null!=this.boxed.x2&&(c[d].x<(this.boxed.x1-s)/t?c[d].x=(this.boxed.x1-s)/t:c[d].x>(this.boxed.x2-s)/t&&(c[d].x=(this.boxed.x2-s)/t)),this.solver.setValue(this.points[d][0],c[d].x*t+s)),this.yEnable&&(this.boxed&&null!=this.boxed.y1&&null!=this.boxed.y2&&(c[d].y<(this.boxed.y1-l)/n?c[d].y=(this.boxed.y1-l)/n:c[d].y>(this.boxed.y2-l)/n&&(c[d].y=(this.boxed.y2-l)/n)),this.solver.setValue(this.points[d][1],c[d].y*n+l));return!0},t}(n(73).ConstraintPlugin);t.PackingPlugin=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolarCoordinatorPlugin=void 0;var i=n(5),a=n(163),s=n(201),l=function(e){function t(t,n,r,o,i,a,s,l,c){var u=e.call(this)||this;return u.solver=t,u.cx=n,u.cy=r,u.radialVarable=o,u.angleVarable=i,u.attrs=a,u.chartConstraints=s,u.coordinatoObjectID=l,u.chartMananger=c,u}return o(t,e),t.prototype.apply=function(){for(var e=this.solver.getValue(this.cx),t=this.solver.getValue(this.cy),n=this.attrs,r=0;r<this.angleVarable.length;r++)for(var o=this.solver.attr(n,this.angleVarable[r].name,{edit:!1}),l=0;l<this.radialVarable.length;l++){var c=a.getPointValueName(r,l,"X"),u=a.getPointValueName(r,l,"Y"),A=this.solver.attr(n,this.radialVarable[l].name,{edit:!1}),d=this.solver.attr(n,c,{edit:!1}),g=this.solver.attr(n,u,{edit:!1}),p=this.solver.getValue(o),h=i.Geometry.degreesToRadians(p),f=Math.abs(this.solver.getValue(A)),m=Math.sin(h)*f,y=Math.cos(h)*f;this.solver.setValue(d,e+m),this.solver.setValue(g,t+y),s.snapToAttribute(this.chartMananger,this.chartConstraints,this.coordinatoObjectID,c,e+m),s.snapToAttribute(this.chartMananger,this.chartConstraints,this.coordinatoObjectID,u,t+y)}return!0},t}(n(73).ConstraintPlugin);t.PolarCoordinatorPlugin=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.LineGuide=void 0;var l=n(22),c=n(26),u=n(6),A=n(42),d=n(84),g=n(5),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","x2","y1","y2"],t.attributes={x1:{name:"x1",type:u.AttributeType.Number},y1:{name:"y1",type:u.AttributeType.Number},x2:{name:"x2",type:u.AttributeType.Number},y2:{name:"y2",type:u.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-100,e.x2=100,e.y1=-100,e.y2=100},t.prototype.buildGlyphConstraints=function(e){var t,n,r=this.object.properties,o=this.parent.dataflow.getTable(this.object.table),s=i(e.attrs(this.state.attributes,["x1","y1","x2","y2"]),4),l=s[0],u=s[1],d=s[2],g=s[3],p=this.state.dataRowIndices.length,h=this.state.dataRowIndices;try{for(var f=a(this.state.glyphs.entries()),m=f.next();!m.done;m=f.next()){var y=i(m.value,2),I=y[0],C=y[1],E=(.5+I)/p;if(null==r.axis)E=(.5+I)/p;else{var b=r.axis;switch(b.type){case"numerical":var v=o.getGroupedContext(h[I]),B=this.parent.dataflow.cache.parse(b.expression).getNumberValue(v);E=A.getNumericalInterpolate(b)(B);break;case"categorical":var M=A.getCategoricalAxis(r.axis,!1,!1),D=(v=o.getGroupedContext(h[I]),B=this.parent.dataflow.cache.parse(b.expression).getStringValue(v),b.categories.indexOf(B));E=(M.ranges[D][0]+M.ranges[D][1])/2;break;case"default":E=(.5+I)/p}}e.addLinear(c.ConstraintStrength.HARD,0,[[E,d],[1-E,l]],[[1,e.attr(C.attributes,"x")]]),e.addLinear(c.ConstraintStrength.HARD,0,[[E,g],[1-E,u]],[[1,e.attr(C.attributes,"y")]])}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=[];return i.push({type:"line",p1:{x:t,y:n},p2:{x:r,y:o},title:"Axis",dropAction:{axisInference:{property:"axis"}},accept:{table:this.object.table}}),i},t.prototype.getHandles=function(){var e=this.state.attributes;return[{type:"point",x:e.x1,y:e.y1,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:e.x2,y:e.y2,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.x2;return{type:"line",x1:t,y1:e.y1,x2:n,y2:e.y2}},t.prototype.getGraphics=function(e){var t=this.state.attributes,n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=this.object.properties,s=Math.sqrt((o-n)*(o-n)+(i-r)*(i-r));if(null==a.axis)return l.makeLine(n,r,o,i,{strokeColor:{r:0,g:0,b:0},fillColor:null});if(a.axis&&a.axis.visible){var c=new A.AxisRenderer;return c.setAxisDataBinding(a.axis,0,s,!1,!1,this.getDisplayFormat(a.axis,a.axis.tickFormat,e)),c.renderLine(n,r,Math.atan2(i-r,o-n)/Math.PI*180,1)}},t.prototype.getAttributePanelWidgets=function(t){var n=this.object.properties;return s(e.prototype.getAttributePanelWidgets.call(this,t),A.buildAxisWidgets(n.axis,"axis",t,"Axis",{showScrolling:!1,showOffset:!1,showOnTop:!1}))},t.prototype.buildGridLineWidgets=function(){return[]},t.prototype.getTemplateParameters=function(){var e=[],t=[];if(this.object.properties.axis&&(e.push(A.buildAxisInference(this.object,"axis")),t=t.concat(A.buildAxisProperties(this.object,"axis"))),this.object.properties.axis&&(this.object.properties.axis.autoDomainMin||this.object.properties.axis.autoDomainMax)){var n=this.object.properties.axis.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:"axis",field:"categories"}},type:u.AttributeType.Enum,default:r})}return{inferences:e,properties:t}},t.classID="plot-segment.line",t.type="plot-segment",t.metadata={displayName:"PlotSegment",iconPath:"plot-segment/line",creatingInteraction:{type:"line-segment",mapping:{x1:"x1",y1:"y1",x2:"x2",y2:"y2"}}},t.defaultProperties={visible:!0},t}(d.PlotSegmentClass);t.LineGuide=p},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualScrollBar=void 0;var o=n(0),i=n(0),a=n(24);t.VirtualScrollBar=function(e){var t,n=e.handlerBarWidth,s=e.vertical,l=e.height,c=e.initialPosition,u=e.onScroll,A=e.width,d=e.x,g=e.y,p=e.zoom,h=e.scrollBarRatio,f=e.windowSize,m=e.dataType,y=A;s&&(y=l),t=m==a.AxisDataBindingType.Categorical?s?l*h:A*h:s?l/10:A/10;var I=o.useCallback((function(e){var r=0,o=0;return e>100&&(e=100),e<0&&(e=0),e=(y-2*n-t)/100*(100-e)+n,s?o=e:r=e,[r,o]}),[t,n,y,s]),C=r(o.useState(c),2),E=C[0],b=C[1],v=r(o.useState(!1),2),B=v[0],M=v[1];i.useEffect((function(){u(E)}),[f]);var D=r(o.useMemo((function(){return I(E)}),[E,I]),2),x=D[0],w=D[1],Q=0,S=0,N=n,k=n;s?(S=t,Q=n):(Q=t,S=n);var T=o.useRef(null),j=o.useRef(null),L=o.useCallback((function(e){if(B){var n=s?l/f:A/f,r=s?n/l:n/A,o=T.current.getBoundingClientRect(),i=e.clientX-o.left,c=e.clientY-o.top,d=j.current.getBoundingClientRect(),g=e.clientX-d.left,h=e.clientY-d.top;g>0&&g<t*p.scale&&(i-=g),h>0&&h<t*p.scale&&(c-=h);var y=E;if(s)y=c/Math.abs(o.bottom-o.top)*100;else y=100-i/Math.abs(o.right-o.left)*100;y>100&&(y=100),m==a.AxisDataBindingType.Categorical&&y-100*r<0&&(y=0),b(Math.round(y)),u(Math.round(y))}}),[m,t,l,B,u,E,s,A,f,p.scale,T,j]),R=o.useCallback((function(e){var t=E+5*e;t>100&&(t=100),t<0&&(t=0),b(Math.round(t)),u(t)}),[u,E]);return o.createElement(o.Fragment,null,o.createElement("g",{className:"controls"},o.createElement("rect",{ref:T,className:"track",x:Math.min(d,d+A)+(s?0:N),y:-Math.max(g,g+l)+(s?k:0),width:Math.abs(A)-(s?0:2*N),height:Math.abs(l)-(s?2*k:0),onMouseUp:function(){M(!1)},style:{fill:"#e1e1e1",opacity:1},onMouseMove:L}),o.createElement("rect",{ref:j,className:"handler",x:Math.min(d+x,d+x+Q),y:-Math.max(g+w,g+w+S),width:Math.abs(Q),height:Math.abs(S),style:{fill:"#b3b0ad",opacity:1},onMouseDown:function(){M(!0)},onMouseUp:function(){M(!1)}}),s?o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("rect",{ref:j,className:"downButton",x:Math.min(d,d+N),y:-Math.max(g,g+k),width:Math.abs(N),height:Math.abs(k),style:{fill:"#b3b0ad"},onClick:function(){R(1)}}),o.createElement("path",{transform:"translate("+(Math.min(d,d+N)+N)+", "+(-Math.max(g,g+k)+N)+") scale(0.005) rotate(180)",d:"M1955 1533l-931-930-931 930-90-90L1024 421l1021 1022-90 90z"})),o.createElement("g",null,o.createElement("rect",{ref:j,className:"upButton",x:Math.min(d,d+A),y:-Math.max(g,g+l),width:Math.abs(N),height:Math.abs(k),style:{fill:"#b3b0ad"},onClick:function(){R(-1)}}),o.createElement("path",{onClick:function(){R(-1)},transform:"translate("+Math.min(d,d+A)+", "+-Math.max(g,g+l)+") scale(0.005)",d:"M1955 1533l-931-930-931 930-90-90L1024 421l1021 1022-90 90z"})),o.createElement("rect",{className:"interaction-handler",x:Math.min(d,d+A)-l,y:-Math.max(g,g+l)-l,width:Math.abs(A)+2*A,height:Math.abs(l)+2*A,onMouseMove:L,onMouseOut:function(){M(!1)}})):o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("rect",{ref:j,className:"leftButton",x:Math.min(d,d+A),y:-Math.max(g,g+l),width:Math.abs(N),height:Math.abs(l),style:{fill:"#b3b0ad"},onClick:function(){R(1)}}),o.createElement("path",{onClick:function(){R(1)},transform:"translate("+Math.min(d,d+A)+", "+(-Math.max(g,g+l)+N)+") scale(0.005) rotate(-90)",d:"M1955 1533l-931-930-931 930-90-90L1024 421l1021 1022-90 90z"})),o.createElement("g",null,o.createElement("rect",{ref:j,className:"rightButton",x:Math.max(d,d+A)-N,y:-Math.max(g,g+l),width:Math.abs(N),height:Math.abs(l),style:{fill:"#b3b0ad"},onClick:function(){R(-1)}}),o.createElement("path",{transform:"translate("+Math.max(d,d+A)+", "+-Math.max(g,g+l)+") scale(0.005) rotate(90)",d:"M1955 1533l-931-930-931 930-90-90L1024 421l1021 1022-90 90z"})),o.createElement("rect",{className:"interaction-handler",x:Math.min(d,d+A)-A,y:-Math.max(g,g+l)-A,width:Math.abs(A)+2*l,height:Math.abs(l)+2*l,onMouseMove:L,onMouseOut:function(){M(!1)}}))))}},function(e,t,n){"use strict";
/** @license React v16.14.0
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(164),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,A=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,p=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,f="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I={};function C(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||y}function E(){}function b(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||y}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=C.prototype;var v=b.prototype=new E;v.constructor=b,r(v,C.prototype),v.isPureReactComponent=!0;var B={current:null},M=Object.prototype.hasOwnProperty,D={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)M.call(t,r)&&!D.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:B.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var Q=/\/+/g,S=[];function N(e,t,n,r){if(S.length){var o=S.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function k(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>S.length&&S.push(e)}function T(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+j(s=t[c],c);l+=e(s,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=f&&t[f]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+j(s,c++),r,o);else if("object"===s)throw r=""+t,Error(m(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?O(e,r,n,(function(e){return e})):null!=e&&(w(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Q,"$&/")+"/")+n)),r.push(e))}function O(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(Q,"$&/")+"/"),T(e,R,t=N(t,i,r,o)),k(t)}var _={current:null};function F(){var e=_.current;if(null===e)throw Error(m(321));return e}var z={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:B,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return O(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;T(e,L,t=N(null,null,t,n)),k(t)},count:function(e){return T(e,(function(){return null}),null)},toArray:function(e){var t=[];return O(e,t,null,(function(e){return e})),t},only:function(e){if(!w(e))throw Error(m(143));return e}},t.Component=C,t.Fragment=s,t.Profiler=c,t.PureComponent=b,t.StrictMode=l,t.Suspense=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=B.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)M.call(t,u)&&!D.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var A=0;A<u;A++)c[A]=arguments[A+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:A,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=w,t.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(203);Object.defineProperty(t,"StaticMapService",{enumerable:!0,get:function(){return r.StaticMapService}});var o=n(204);Object.defineProperty(t,"MapPlotSegment",{enumerable:!0,get:function(){return o.MapPlotSegment}}),n(204)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CartesianPlotSegment=t.config=void 0;var l=n(22),c=n(6),u=n(42),A=n(82),d=n(84),g=n(5),p=n(7),h=n(24),f=n(184),m=n(167);t.config={terminology:p.strings.cartesianTerminology,icons:{xMinIcon:"AlignHorizontalLeft",xMiddleIcon:"AlignHorizontalCenter",xMaxIcon:"AlignHorizontalRight",yMiddleIcon:"AlignVerticalCenter",yMinIcon:"AlignVerticalBottom",yMaxIcon:"AlignVerticalTop",dodgeXIcon:"HorizontalDistributeCenter",dodgeYIcon:"VerticalDistributeCenter",gridIcon:"GridViewSmall",packingIcon:"sublayout/packing",jitterIcon:"sublayout/jitter",overlapIcon:"Stack"},xAxisPrePostGap:!1,yAxisPrePostGap:!1};var y=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","x2","y1","y2","x","y","gapX","gapY"],t.attributes={x1:{name:"x1",type:c.AttributeType.Number},x2:{name:"x2",type:c.AttributeType.Number},y1:{name:"y1",type:c.AttributeType.Number},y2:{name:"y2",type:c.AttributeType.Number},x:{name:"x",type:c.AttributeType.Number},y:{name:"y",type:c.AttributeType.Number},gapX:{name:"gapX",type:c.AttributeType.Number,editableInGlyphStage:!0},gapY:{name:"gapY",type:c.AttributeType.Number,editableInGlyphStage:!0}},t.getTickData=function(e,n){t.chartManager=n;for(var r=n.getTable(t.object.table),o=n.dataflow.cache.parse(e.expression),i=n.dataflow.cache.parse(e.tickDataExpression),a=[],s=0;s<r.rows.length;s++){var l=r.getRowContext(s),c=o.getValue(l),u=i.getValue(l);a.push({value:c,tick:u})}return a},t}return o(n,e),n.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-100,e.x2=100,e.y1=-100,e.y2=100,e.gapX=4,e.gapY=4,e.x=e.x1,e.y=e.y2},n.prototype.createBuilder=function(e,n){return new A.Region2DConstraintBuilder(this,t.config,"x1","x2","y1","y2",e,n,this.chartManager)},n.prototype.buildGlyphConstraints=function(e,t){this.createBuilder(e,t).build()},n.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return{type:"rectangle",cx:(t+n)/2,cy:(r+o)/2,width:Math.abs(n-t),height:Math.abs(o-r),rotation:0}},n.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1;return[{type:"x",value:t,attribute:"x1",priority:2},{type:"x",value:e.x2,attribute:"x2",priority:2},{type:"y",value:n,attribute:"y1",priority:2},{type:"y",value:e.y2,attribute:"y2",priority:2}]},n.prototype.getAttributePanelWidgets=function(t){var n=t;n.eventManager.subscribe(m.EventType.UPDATE_FIELD,{update:function(e){"object"!=typeof e||"xData"!==e.property&&"yData"!==e.property&&"axis"!==e.property||"windowSize"!==e.field||(n.store.updatePlotSegments(),n.store.emit("graphics"))}});var r=this.createBuilder();return a(e.prototype.getAttributePanelWidgets.call(this,t),r.buildPanelWidgets(t))},n.prototype.getPopupEditor=function(e){var t=this.createBuilder().buildPopupWidgets(e);if(0==t.length)return null;var n=this.state.attributes;return{anchor:{x:n.x1,y:n.y2},widgets:a(t)}},n.prototype.getGraphics=function(e){this.chartManager=e;var t=l.makeGroup([]),n=this.object.properties;return n.xData&&n.xData.visible&&n.xData.onTop&&t.elements.push(this.getPlotSegmentAxisXDataGraphics(e)),n.yData&&n.yData.visible&&n.yData.onTop&&t.elements.push(this.getPlotSegmentAxisYDataGraphics(e)),t},n.prototype.getPlotSegmentAxisXDataGraphics=function(e){var t;this.chartManager=e;var n=l.makeGroup([]),r=this.state.attributes,o=this.object.properties;if(o.xData&&o.xData.visible){var i=(new u.AxisRenderer).setAxisDataBinding(o.xData,0,r.x2-r.x1,!1,!1,this.getDisplayFormat(o.xData,o.xData.tickFormat,e),this.object,this.parent.dataflow);o.xData.tickDataExpression&&i.setTicksByData(this.getTickData(o.xData,e),o.xData.tickFormat),n.elements.push(i.renderCartesian(r.x1,"default"!=o.xData.side?r.y2:r.y1,u.AxisMode.X,null===(t=o.xData)||void 0===t?void 0:t.offset))}return n},n.prototype.getPlotSegmentAxisYDataGraphics=function(e){var t;this.chartManager=e;var n=l.makeGroup([]),r=this.state.attributes,o=this.object.properties;if(o.yData&&o.yData.visible){var i=(new u.AxisRenderer).setAxisDataBinding(o.yData,0,r.y2-r.y1,!1,!0,this.getDisplayFormat(o.yData,o.yData.tickFormat,e),this.object,this.parent.dataflow);o.yData.tickDataExpression&&i.setTicksByData(this.getTickData(o.yData,e),o.yData.tickFormat),i.setCartesianChartMargin(this),n.elements.push(i.renderCartesian("default"!=o.yData.side?r.x2:r.x1,r.y1,u.AxisMode.Y,null===(t=o.yData)||void 0===t?void 0:t.offset))}return n},n.prototype.getPlotSegmentBackgroundGraphics=function(e){this.chartManager=e;var t=l.makeGroup([]),n=this.state.attributes,r=this.object.properties;if(r.xData&&r.xData.visible){var o=(new u.AxisRenderer).setAxisDataBinding(r.xData,0,n.x2-n.x1,!1,!1,this.getDisplayFormat(r.xData,r.xData.tickFormat,e));t.elements.push(o.renderGridlinesForAxes(n.x1,"default"!=r.xData.side?n.y2:n.y1,u.AxisMode.X,n.y2-n.y1))}if(r.yData&&r.yData.visible){o=(new u.AxisRenderer).setAxisDataBinding(r.yData,0,n.y2-n.y1,!1,!0,this.getDisplayFormat(r.yData,r.yData.tickFormat,e));t.elements.push(o.renderGridlinesForAxes("default"!=r.yData.side?n.x2:n.x1,n.y1,u.AxisMode.Y,n.x2-n.x1))}return r.xData&&r.xData.visible&&(r.xData.onTop||t.elements.push(this.getPlotSegmentAxisXDataGraphics(e))),r.yData&&r.yData.visible&&(r.yData.onTop||t.elements.push(this.getPlotSegmentAxisYDataGraphics(e))),t},n.prototype.renderControls=function(e,t){var n=this;this.chartManager=e;var r=this.state.attributes,o=this.object.properties,i=[];if(o.xData&&o.xData.visible&&o.xData.allowScrolling&&(o.xData.allCategories&&o.xData.allCategories.length>o.xData.windowSize||void 0!==o.xData.dataDomainMax&&void 0!==o.xData.dataDomainMin)){var a=(new u.AxisRenderer).setAxisDataBinding(o.xData,0,r.x2-r.x1,!1,!1,this.getDisplayFormat(o.xData,o.xData.tickFormat,e));i.push(a.renderVirtualScrollBar(r.x1,("default"!=o.xData.side?r.y2:r.y1)+(o.xData.barOffset?("default"===o.xData.side?-1:1)*o.xData.barOffset:0),u.AxisMode.X,o.xData.scrollPosition?o.xData.scrollPosition:0,(function(t){if(o.xData.type===h.AxisDataBindingType.Categorical){if(!o.xData.allCategories)return;o.xData.scrollPosition=100-t;var r=Math.floor((o.xData.allCategories.length-o.xData.windowSize)/100*o.xData.scrollPosition);o.xData.categories=o.xData.allCategories.slice(r,r+o.xData.windowSize),0===o.xData.categories.length&&o.xData.allCategories.slice(r-1,r+o.xData.windowSize)}else if(o.xData.type===h.AxisDataBindingType.Numerical){var i=f.scaleLinear().domain([100,0]).range([o.xData.dataDomainMin,o.xData.dataDomainMax]);o.xData.scrollPosition=t;r=i(t);o.xData.domainMin=r,o.xData.domainMax=r+o.xData.windowSize}e.remapPlotSegmentGlyphs(n.object),e.solveConstraints()}),t))}if(o.yData&&o.yData.visible&&o.yData.allowScrolling&&(o.yData.allCategories&&o.yData.allCategories.length>o.yData.windowSize||void 0!==o.yData.dataDomainMax&&void 0!==o.yData.dataDomainMin)){a=(new u.AxisRenderer).setAxisDataBinding(o.yData,0,r.y2-r.y1,!1,!0,this.getDisplayFormat(o.yData,o.yData.tickFormat,e));i.push(a.renderVirtualScrollBar(("default"!=o.yData.side?r.x2:r.x1)+(o.yData.barOffset?("default"===o.yData.side?-1:1)*o.yData.barOffset:0),r.y1,u.AxisMode.Y,o.yData.scrollPosition?o.yData.scrollPosition:0,(function(t){var r;if((null===(r=o.yData)||void 0===r?void 0:r.type)===h.AxisDataBindingType.Categorical){if(!o.yData.allCategories)return;o.yData.scrollPosition=t;var i=Math.floor((o.yData.allCategories.length-o.yData.windowSize)/100*t);o.yData.categories=o.yData.allCategories.slice(i,i+o.yData.windowSize),0===o.yData.categories.length&&o.yData.allCategories.slice(i-1,i+o.yData.windowSize)}else if(o.yData.type===h.AxisDataBindingType.Numerical){var a=f.scaleLinear().domain([100,0]).range([o.yData.dataDomainMin,o.yData.dataDomainMax]);o.yData.scrollPosition=t;i=a(t);o.yData.domainMin=i,o.yData.domainMax=i+o.yData.windowSize}e.remapPlotSegmentGlyphs(n.object),e.solveConstraints()}),t))}return i},n.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=[];return i.push({type:"region",accept:{scaffolds:["cartesian-y"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Add Y Scaffold"}),i.push({type:"region",accept:{scaffolds:["cartesian-x"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Add X Scaffold"}),i.push({type:"region",accept:{scaffolds:["polar"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Convert to Polar Coordinates"}),i.push({type:"region",accept:{scaffolds:["curve"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Convert to Curve Coordinates"}),i.push({type:"region",accept:{scaffolds:["map"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Convert to Map"}),i.push({type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"X Axis",dropAction:{axisInference:{property:A.PlotSegmentAxisPropertyNames.xData}},accept:{table:this.object.table}}),i.push({type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"Y Axis",dropAction:{axisInference:{property:A.PlotSegmentAxisPropertyNames.yData}},accept:{table:this.object.table}}),i},n.prototype.getAxisModes=function(){var e=this.object.properties;return[e.xData?e.xData.type:"null",e.yData?e.yData.type:"null"]},n.prototype.getHandles=function(){var e,t,n=this.state.attributes,r=n.x1,o=n.x2,i=n.y1,a=n.y2,l=[{type:"line",axis:"y",value:i,span:[r,o],actions:[{type:"attribute",attribute:"y1"}],options:{snapToClosestPoint:!0}},{type:"line",axis:"y",value:a,span:[r,o],actions:[{type:"attribute",attribute:"y2"}],options:{snapToClosestPoint:!0}},{type:"line",axis:"x",value:r,span:[i,a],actions:[{type:"attribute",attribute:"x1"}],options:{snapToClosestPoint:!0}},{type:"line",axis:"x",value:o,span:[i,a],actions:[{type:"attribute",attribute:"x2"}],options:{snapToClosestPoint:!0}},{type:"point",x:r,y:i,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}],options:{snapToClosestPoint:!0}},{type:"point",x:o,y:i,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}],options:{snapToClosestPoint:!0}},{type:"point",x:r,y:a,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}],options:{snapToClosestPoint:!0}},{type:"point",x:o,y:a,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}],options:{snapToClosestPoint:!0}}],c=this.createBuilder().getHandles();try{for(var u=s(c),A=u.next();!A.done;A=u.next()){var d=A.value;l.push({type:"gap-ratio",axis:d.gap.axis,reference:d.gap.reference,value:d.gap.value,scale:d.gap.scale,span:d.gap.span,range:[0,1],coordinateSystem:this.getCoordinateSystem(),actions:[{type:"property",property:d.gap.property.property,field:d.gap.property.field}]})}}catch(t){e={error:t}}finally{try{A&&!A.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return l},n.prototype.getTemplateParameters=function(){var e=[],t=[];if(this.object.properties.xData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.xData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.xData))),this.object.properties.yData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.yData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.yData))),this.object.properties.sublayout.order&&this.object.properties.sublayout.order.expression&&e.push({objectID:this.object._id,dataSource:{table:this.object.table,groupBy:this.object.groupBy},expression:{expression:this.object.properties.sublayout.order.expression,property:{property:"sublayout",field:["order","expression"]}}}),this.object.properties.sublayout.order&&this.object.properties.sublayout.order.expression&&t.push({objectID:this.object._id,target:{property:{property:"sublayout",field:"order"}},type:c.AttributeType.Object,default:this.object.properties.sublayout.order}),this.object.properties.xData&&(this.object.properties.xData.autoDomainMin||this.object.properties.xData.autoDomainMax)){var n=this.object.properties.xData.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.xData,field:"categories"}},type:c.AttributeType.Enum,default:r})}if(this.object.properties.yData&&(this.object.properties.yData.autoDomainMin||this.object.properties.yData.autoDomainMax)){n=this.object.properties.yData.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.yData,field:"categories"}},type:c.AttributeType.Enum,default:r})}if(this.object.properties.axis){n=this.object.properties.axis.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:"axis",field:"categories"}},type:c.AttributeType.Enum,default:r})}return{inferences:e,properties:t}},n.classID="plot-segment.cartesian",n.type="plot-segment",n.metadata={displayName:"PlotSegment",iconPath:"plot-segment/cartesian",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},n.defaultMappingValues={},n.defaultProperties={marginX1:0,marginY1:0,marginX2:0,marginY2:0,visible:!0,sublayout:{type:A.Region2DSublayoutType.DodgeX,order:null,ratioX:.1,ratioY:.1,align:{x:A.SublayoutAlignment.Start,y:A.SublayoutAlignment.Start},grid:{direction:A.GridDirection.X,xCount:null,yCount:null,gridStartPosition:A.GridStartPosition.LeftTop},jitter:{horizontal:!0,vertical:!0},packing:{gravityX:.1,gravityY:.1,boxedX:null,boxedY:null},orderReversed:null}},n}(d.PlotSegmentClass);t.CartesianPlotSegment=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.PolarPlotSegment=t.icons=void 0;var s=n(22),l=n(26),c=n(6),u=n(42),A=n(82),d=n(84),g=n(5),p=n(7),h=n(333);t.icons={xMinIcon:"AlignHorizontalLeft",xMiddleIcon:"AlignHorizontalCenter",xMaxIcon:"AlignHorizontalRight",yMiddleIcon:"AlignHorizontalRight",yMinIcon:"AlignVerticalBottom",yMaxIcon:"AlignVerticalTop",dodgeXIcon:"CharticulatorArrangePolar",dodgeYIcon:"CharticulatorStackRadial",gridIcon:"sublayout/polar-grid",packingIcon:"sublayout/packing",overlapIcon:"Stack",jitterIcon:"sublayout/jitter"};var f=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","x2","y1","y2","angle1","angle2","radial1","radial2","gapX","gapY","x","y","cx","cy","a1r1x","a1r1y","a1r2x","a1r2y","a2r1x","a2r1y","a2r2x","a2r2y"],t.attributes={x1:{name:"x1",type:c.AttributeType.Number},x2:{name:"x2",type:c.AttributeType.Number},y1:{name:"y1",type:c.AttributeType.Number},y2:{name:"y2",type:c.AttributeType.Number},angle1:{name:"angle1",type:c.AttributeType.Number,defaultValue:-90},angle2:{name:"angle2",type:c.AttributeType.Number,defaultValue:90},radial1:{name:"radial1",type:c.AttributeType.Number},radial2:{name:"radial2",type:c.AttributeType.Number},x:{name:"x",type:c.AttributeType.Number},y:{name:"y",type:c.AttributeType.Number},gapX:{name:"gapX",type:c.AttributeType.Number,editableInGlyphStage:!0},gapY:{name:"gapY",type:c.AttributeType.Number,editableInGlyphStage:!0},cx:{name:"cx",type:c.AttributeType.Number},cy:{name:"cy",type:c.AttributeType.Number},a1r1x:{name:"a1r1x",type:c.AttributeType.Number},a1r1y:{name:"a1r1y",type:c.AttributeType.Number},a1r2x:{name:"a1r2x",type:c.AttributeType.Number},a1r2y:{name:"a1r2y",type:c.AttributeType.Number},a2r1x:{name:"a2r1x",type:c.AttributeType.Number},a2r1y:{name:"a2r1y",type:c.AttributeType.Number},a2r2x:{name:"a2r2x",type:c.AttributeType.Number},a2r2y:{name:"a2r2y",type:c.AttributeType.Number}},t}return o(n,e),n.prototype.initializeState=function(){var e=this.state.attributes;e.angle1=0,e.angle2=360,e.radial1=10,e.radial2=100,e.x1=-100,e.x2=100,e.y1=-100,e.y2=100,e.x=e.x1,e.y=e.y2,e.gapX=4,e.gapY=4,e.cx=0,e.cy=0,e.a1r1x=0,e.a1r1y=0,e.a1r2x=0,e.a1r2y=0,e.a2r1x=0,e.a2r1y=0,e.a2r2x=0,e.a2r2y=0},n.prototype.createBuilder=function(e,n){var r=this,o=this.object.properties,i={terminology:p.strings.polarTerminology,icons:t.icons,xAxisPrePostGap:(o.endAngle-o.startAngle)%360==0,yAxisPrePostGap:!1,getXYScale:function(){return{x:57.29577951308232/((r.state.attributes.radial1+r.state.attributes.radial2)/2),y:1}}};return new A.Region2DConstraintBuilder(this,i,"angle1","angle2","radial1","radial2",e,n)},n.prototype.buildConstraints=function(e,t,n){var r=this.state.attributes,o=this.object.properties,a=i(e.attrs(r,["x1","y1","x2","y2","radial1","radial2"]),6),s=a[0],c=a[1],u=a[2],A=a[3],d=a[4],g=a[5];r.angle1=o.startAngle,r.angle2=o.endAngle,e.makeConstant(r,"angle1"),e.makeConstant(r,"angle2");var p=h.getCenterByAngle(o,r);h.setRadiiByCenter(o,r,p),r.x2-r.x1<r.y2-r.y1?(e.addLinear(l.ConstraintStrength.HARD,0,[[o.innerRatio,u],[-o.innerRatio,s]],[[2,d]]),e.addLinear(l.ConstraintStrength.HARD,0,[[o.outerRatio,u],[-o.outerRatio,s]],[[2,g]])):(e.addLinear(l.ConstraintStrength.HARD,0,[[o.innerRatio,A],[-o.innerRatio,c]],[[2,d]]),e.addLinear(l.ConstraintStrength.HARD,0,[[o.outerRatio,A],[-o.outerRatio,c]],[[2,g]])),e.makeConstant(r,"cx"),e.makeConstant(r,"cy"),e.makeConstant(r,"a1r1x"),e.makeConstant(r,"a1r1y"),e.makeConstant(r,"a1r2x"),e.makeConstant(r,"a1r2y"),e.makeConstant(r,"a2r1x"),e.makeConstant(r,"a2r1y"),e.makeConstant(r,"a2r2x"),e.makeConstant(r,"a2r2y"),e.addPlugin(new l.ConstraintPlugins.PolarPlotSegmentPlugin(r,this.parent.object.constraints,this.object._id,n,this.object.properties))},n.prototype.buildGlyphConstraints=function(e,t){this.createBuilder(e,t).build()},n.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return{type:"rectangle",cx:e.cx,cy:e.cy,width:Math.abs(n-t),height:Math.abs(o-r),rotation:0}},n.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:e.x2,attribute:"x2"},{type:"y",value:n,attribute:"y1"},{type:"y",value:e.y2,attribute:"y2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:e.cy,attribute:"cy"}]},n.prototype.getGraphics=function(e){var t=this.createBuilder(),n=s.makeGroup([]),r=this.state.attributes,o=this.object.properties,i=o.yData,a=o.xData,l=o.startAngle,c=o.endAngle,A=r.radial1,d=r.radial2,g=h.getCenterByAngle(o,r);i&&i.visible&&((p=new u.AxisRenderer).setAxisDataBinding(i,A,d,!1,!0,this.getDisplayFormat(o.yData,o.yData.tickFormat,e)),n.elements.push(p.renderLine(g.cx,g.cy,90-("opposite"==i.side?c:l),-1)));if(a&&a.visible){var p=(new u.AxisRenderer).setAxisDataBinding(a,l,c,t.config.xAxisPrePostGap,!1,this.getDisplayFormat(o.xData,o.xData.tickFormat,e));n.elements.push(p.renderPolar(g.cx,g.cy,"opposite"==a.side?A:d,"opposite"==a.side?-1:1))}return n},n.prototype.getPlotSegmentBackgroundGraphics=function(e){var t=s.makeGroup([]),n=this.createBuilder(),r=this.state.attributes,o=this.object.properties,i=o.yData,a=o.xData,l=o.startAngle,c=o.endAngle,A=r.radial1,d=r.radial2,g=h.getCenterByAngle(o,r);i&&i.visible&&((p=new u.AxisRenderer).setAxisDataBinding(i,A,d,!1,!0,this.getDisplayFormat(o.yData,o.yData.tickFormat,e)),t.elements.push(p.renderPolarArcGridLine(g.cx,g.cy,A,d,l,c)));if(a&&a.visible){var p=(new u.AxisRenderer).setAxisDataBinding(a,l,c,n.config.xAxisPrePostGap,!1,this.getDisplayFormat(o.xData,o.xData.tickFormat,e));t.elements.push(p.renderPolarRadialGridLine(g.cx,g.cy,A,d))}return t},n.prototype.getCoordinateSystem=function(){var e=this.state.attributes,t=h.getCenterByAngle(this.object.properties,e);return new s.PolarCoordinates({x:t.cx,y:t.cy},e.radial1,e.radial2,this.object.properties.equalizeArea)},n.prototype.getDropZones=function(){var e=this.state.attributes,t=this.object.properties,n=e.x1,r=e.y1,o=e.x2,i=e.y2,a=e.radial1,s=e.radial2,l=h.getCenterByAngle(t,e),c=[];c.push({type:"region",accept:{scaffolds:["polar"]},dropAction:{extendPlotSegment:{}},p1:{x:n,y:r},p2:{x:o,y:i},title:"Add Angular Scaffold"}),c.push({type:"region",accept:{scaffolds:["curve"]},dropAction:{extendPlotSegment:{}},p1:{x:n,y:r},p2:{x:o,y:i},title:"Convert to Curve Coordinates"}),c.push({type:"region",accept:{scaffolds:["cartesian-x","cartesian-y"]},dropAction:{extendPlotSegment:{}},p1:{x:n,y:r},p2:{x:o,y:i},title:"Convert to Cartesian Coordinates"});var u=h.getRadialAxisDropZoneLineCenter(l,a,s);return c.push({type:"line",p1:u.p1,p2:u.p2,title:"Radial Axis",dropAction:{axisInference:{property:A.PlotSegmentAxisPropertyNames.yData}},accept:{table:this.object.table}}),c.push({type:"arc",center:{x:l.cx,y:l.cy},radius:s,angleStart:e.angle1,angleEnd:e.angle2,title:"Angular Axis",dropAction:{axisInference:{property:A.PlotSegmentAxisPropertyNames.xData}},accept:{table:this.object.table}}),c},n.prototype.getAxisModes=function(){var e=this.object.properties;return[e.xData?e.xData.type:"null",e.yData?e.yData.type:"null"]},n.prototype.getHandles=function(){var e=this,t=this.state.attributes,n=this.object.properties,r=t.x1,o=t.x2,i=t.y1,s=t.y2,l=h.getCenterByAngle(n,t),c=h.getHandlesRadius(n,t,l),u=this.createBuilder();return a([{type:"line",axis:"y",value:i,span:[r,o],actions:[{type:"attribute",attribute:"y1"}]},{type:"line",axis:"y",value:s,span:[r,o],actions:[{type:"attribute",attribute:"y2"}]},{type:"line",axis:"x",value:r,span:[i,s],actions:[{type:"attribute",attribute:"x1"}]},{type:"line",axis:"x",value:o,span:[i,s],actions:[{type:"attribute",attribute:"x2"}]},{type:"point",x:r,y:i,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:o,y:i,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:r,y:s,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:o,y:s,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}],u.getHandles().map((function(t){return{type:"gap-ratio",axis:t.gap.axis,reference:t.gap.reference,value:t.gap.value,scale:t.gap.scale,span:t.gap.span,range:[0,1],coordinateSystem:e.getCoordinateSystem(),actions:[{type:"property",property:t.gap.property.property,field:t.gap.property.field}]}})),[{type:"angle",actions:[{type:"property",property:"endAngle"}],cx:l.cx,cy:l.cy,radius:c*Math.max(n.innerRatio,n.outerRatio),value:n.endAngle,clipAngles:[n.startAngle,null],icon:"<"},{type:"angle",actions:[{type:"property",property:"startAngle"}],cx:l.cx,cy:l.cy,radius:c*Math.max(n.innerRatio,n.outerRatio),value:n.startAngle,clipAngles:[null,n.endAngle],icon:">"},{type:"distance-ratio",actions:[{type:"property",property:"outerRatio"}],cx:l.cx,cy:l.cy,value:n.outerRatio,startDistance:0,endDistance:c,startAngle:n.startAngle,endAngle:n.endAngle,clipRange:[n.innerRatio+.01,1]},{type:"distance-ratio",actions:[{type:"property",property:"innerRatio"}],cx:l.cx,cy:l.cy,value:n.innerRatio,startDistance:0,endDistance:c,startAngle:n.startAngle,endAngle:n.endAngle,clipRange:[0,n.outerRatio-.01]}])},n.prototype.getPopupEditor=function(e){var t=this.createBuilder().buildPopupWidgets(e);if(0==t.length)return null;var n=this.state.attributes;return{anchor:{x:n.x1,y:n.y2},widgets:a(t)}},n.prototype.getAttributePanelWidgets=function(t){var n=this.createBuilder();return a(e.prototype.getAttributePanelWidgets.call(this,t),[t.verticalGroup({header:p.strings.objects.plotSegment.polarCoordinates},[t.searchWrapper({searchPattern:[p.strings.objects.plotSegment.polarCoordinates,p.strings.objects.plotSegment.angle]},[t.label(p.strings.objects.plotSegment.angle,{ignoreSearch:!0}),t.horizontal([1,0,1],t.inputNumber({property:"startAngle"},{ignoreSearch:!0}),t.label("-",{ignoreSearch:!0}),t.inputNumber({property:"endAngle"},{ignoreSearch:!0}))]),t.searchWrapper({searchPattern:[p.strings.objects.plotSegment.polarCoordinates,p.strings.objects.plotSegment.radius,p.strings.objects.plotSegment.inner,p.strings.objects.plotSegment.outer]},[t.label(p.strings.objects.plotSegment.radius,{ignoreSearch:!0}),t.horizontal([0,1,0,1],t.label(p.strings.objects.plotSegment.inner,{ignoreSearch:!0}),t.inputNumber({property:"innerRatio"},{ignoreSearch:!0}),t.label(p.strings.objects.plotSegment.outer,{ignoreSearch:!0}),t.inputNumber({property:"outerRatio"},{maximum:1,ignoreSearch:!0}))]),t.inputBoolean({property:"autoAlignment"},{type:"checkbox",label:p.strings.objects.plotSegment.autoAlignment,headerLabel:p.strings.objects.plotSegment.origin,searchSection:p.strings.objects.plotSegment.polarCoordinates}),t.inputBoolean({property:"equalizeArea"},{type:"checkbox",label:p.strings.objects.plotSegment.heightToArea,headerLabel:p.strings.objects.plotSegment.equalizeArea,searchSection:p.strings.objects.plotSegment.polarCoordinates})])],n.buildPanelWidgets(t))},n.prototype.getTemplateParameters=function(){var e=[],t=[];if(this.object.properties.xData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.xData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.xData))),this.object.properties.yData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.yData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.yData))),this.object.properties.sublayout.order&&this.object.properties.sublayout.order.expression&&e.push({objectID:this.object._id,dataSource:{table:this.object.table,groupBy:this.object.groupBy},expression:{expression:this.object.properties.sublayout.order.expression,property:{property:"sublayout",field:["order","expression"]}}}),this.object.properties.xData&&(this.object.properties.xData.autoDomainMin||this.object.properties.xData.autoDomainMax)){var n=this.object.properties.xData.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.xData,field:"categories"}},type:c.AttributeType.Enum,default:r})}if(this.object.properties.yData&&(this.object.properties.yData.autoDomainMin||this.object.properties.yData.autoDomainMax)){n=this.object.properties.yData.categories,r=g.getSortDirection(n);t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.yData,field:"categories"}},type:c.AttributeType.Enum,default:r})}return{inferences:e,properties:t}},n.classID="plot-segment.polar",n.type="plot-segment",n.metadata={displayName:"PlotSegment",iconPath:"plot-segment/polar",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},n.defaultProperties={marginX1:0,marginY1:0,marginX2:0,marginY2:0,visible:!0,sublayout:{type:A.Region2DSublayoutType.DodgeX,order:null,ratioX:.1,ratioY:.1,align:{x:"start",y:"start"},grid:{direction:A.GridDirection.X,xCount:null,yCount:null,gridStartPosition:A.GridStartPosition.LeftTop}},startAngle:0,endAngle:360,innerRatio:.5,outerRatio:.9,autoAlignment:!1},n}(d.PlotSegmentClass);t.PolarPlotSegment=f},function(e,t,n){"use strict";var r;function o(e,t,n,o,i){var a=Math.abs(t.x2-t.x1),s=Math.abs(t.y2-t.y1);if(e.autoAlignment)if(n.isHalf){var l=void 0;l=n.side===r.VERTICAL?Math.min(s/2,a):Math.min(s,a/2),t.radial1=e.innerRatio*l,t.radial2=e.outerRatio*l}else if(n.isCorner){l=Math.min(s,a);t.radial1=e.innerRatio*l,t.radial2=e.outerRatio*l}else t.radial1=e.innerRatio*(i-o)/2,t.radial2=e.outerRatio*(i-o)/2;else t.radial1=e.innerRatio*(i-o)/2,t.radial2=e.outerRatio*(i-o)/2}Object.defineProperty(t,"__esModule",{value:!0}),t.getRadialAxisDropZoneLineCenter=t.setRadiiByCenter=t.getHandlesRadius=t.getCenterByAngle=t.SIDE=void 0,function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL",e[e.NONE=2]="NONE"}(r=t.SIDE||(t.SIDE={})),t.getCenterByAngle=function(e,t){var n,o,i,a=null!==(n=e.autoAlignment)&&void 0!==n&&n,s=t.angle1,l=t.angle2,c=t.x1,u=t.y1,A=t.x2,d=t.y2,g=!1,p=r.NONE,h=!1,f=!1;if(a){var m=Math.abs(s-l),y=s%360;y>=0&&y<90?m<=90-y?(o=c,i=u,f=!0):m<=180-y?(o=c,i=(d+u)/2,g=!0,p=r.VERTICAL):m+y>180&&(o=(A+c)/2,i=(d+u)/2):y>=90&&y<180?m<=180-y?(o=c,i=d,f=!0):m<=270-y?(o=(A+c)/2,i=d,g=!0,p=r.VERTICAL,h=!0):m+y>270&&(o=(A+c)/2,i=(d+u)/2):y>=180&&y<270?m<=270-y?(o=A,i=d,f=!0):m<=360-y?(o=A,i=(d+u)/2,g=!0,p=r.VERTICAL,h=!0):m+y>360&&(o=(A+c)/2,i=(d+u)/2):y>=270&&y<360&&(m<=360-y?(o=A,i=u,f=!0):m<=450-y?(o=(A+c)/2,i=u,g=!0,p=r.HORIZONTAL):m+y>450&&(o=(A+c)/2,i=(d+u)/2)),y<0&&y>=-90?m<=90-(90+y)?(o=A,i=u,f=!0):m<=180-(90+y)?(o=(c+A)/2,i=u,g=!0,p=r.HORIZONTAL):m-y>=180&&(o=(A+c)/2,i=(d+u)/2):y<=-90&&y>=-180?m<=90-(180+y)?(o=A,i=d,f=!0):m<=180-(180+y)?(o=A,i=(d+u)/2,g=!0,p=r.VERTICAL,h=!0):m-y>=-270&&(o=(A+c)/2,i=(d+u)/2):y<=-180&&y>=-270?m<=90-(270+y)?(o=c,i=d,f=!0):m<=180-(270+y)?(o=(A+c)/2,i=d,g=!0,p=r.HORIZONTAL):m-y>=-360&&(o=(A+c)/2,i=(d+u)/2):y<=-270&&y>-360&&(m<=90-(360+y)?(o=c,i=u,f=!0):m<=180-(360+y)?(o=c,i=(d+u)/2,g=!0,p=r.VERTICAL):m-y>=-450&&(o=(A+c)/2,i=(d+u)/2))}else o=(A+c)/2,i=(d+u)/2;return{cx:o,cy:i,isHalf:g,side:p,isRightHalf:h,isCorner:f}},t.getHandlesRadius=function(e,t,n){var o=t.x1,i=t.x2,a=t.y1,s=t.y2,l=Math.abs(t.x2-t.x1),c=Math.abs(t.y2-t.y1);return e.autoAlignment?n.isHalf?n.side===r.VERTICAL?Math.min(c/2,l):Math.min(c,l/2):n.isCorner?Math.min(c,l):Math.min(Math.abs(i-o),Math.abs(s-a))/2:Math.min(Math.abs(i-o),Math.abs(s-a))/2},t.setRadiiByCenter=function(e,t,n){t.x2-t.x1<t.y2-t.y1?o(e,t,n,t.x1,t.x2):o(e,t,n,t.y1,t.y2)},t.getRadialAxisDropZoneLineCenter=function(e,t,n){return e.isHalf&&e.isRightHalf?{p1:{x:e.cx-t,y:e.cy},p2:{x:e.cx-n,y:e.cy}}:{p1:{x:e.cx+t,y:e.cy},p2:{x:e.cx+n,y:e.cy}}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.CurvePlotSegment=t.icons=void 0;var s=n(22),l=n(26),c=n(6),u=n(42),A=n(82),d=n(84),g=n(7);t.icons={xMinIcon:"AlignHorizontalLeft",xMiddleIcon:"AlignHorizontalCenter",xMaxIcon:"AlignHorizontalRight",yMiddleIcon:"align/y-middle",yMinIcon:"Bottom",yMaxIcon:"Top",dodgeXIcon:"HorizontalDistributeCenter",dodgeYIcon:"VerticalDistributeCenter",gridIcon:"GridViewSmall",packingIcon:"sublayout/packing",jitterIcon:"sublayout/jitter",overlapIcon:"Stack"};var p=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x1","x2","y1","y2","tangent1","tangent2","normal1","normal2","gapX","gapY","x","y"],t.attributes={x1:{name:"x1",type:c.AttributeType.Number},x2:{name:"x2",type:c.AttributeType.Number},y1:{name:"y1",type:c.AttributeType.Number},y2:{name:"y2",type:c.AttributeType.Number},tangent1:{name:"tangent1",type:c.AttributeType.Number},tangent2:{name:"tangent2",type:c.AttributeType.Number},normal1:{name:"normal1",type:c.AttributeType.Number},normal2:{name:"normal2",type:c.AttributeType.Number},x:{name:"x",type:c.AttributeType.Number},y:{name:"y",type:c.AttributeType.Number},gapX:{name:"gapX",type:c.AttributeType.Number,editableInGlyphStage:!0},gapY:{name:"gapY",type:c.AttributeType.Number,editableInGlyphStage:!0}},t}return o(n,e),n.prototype.initializeState=function(){var e=this.state.attributes;e.tangent1=0,e.tangent2=360,e.normal1=10,e.normal2=100,e.x1=-100,e.x2=100,e.y1=-100,e.y2=100,e.x=e.x1,e.y=e.y2,e.gapX=4,e.gapY=4},n.prototype.createBuilder=function(e,n){var r={terminology:g.strings.curveTerminology,icons:t.icons,xAxisPrePostGap:!1,yAxisPrePostGap:!1};return new A.Region2DConstraintBuilder(this,r,"tangent1","tangent2","normal1","normal2",e,n)},n.prototype.getCurveArcLength=function(){return new s.MultiCurveParametrization(this.object.properties.curve.map((function(e){return new s.BezierCurveParameterization(e[0],e[1],e[2],e[3])}))).getLength()},n.prototype.buildConstraints=function(e,t){var n=this.state.attributes,r=this.object.properties,o=i(e.attrs(n,["x1","y1","x2","y2","tangent1","tangent2","normal1","normal2"]),8),a=o[0],s=(o[1],o[2]),c=(o[3],o[4],o[5]),u=o[6],A=o[7],d=this.getCurveArcLength();n.tangent1=0,e.makeConstant(n,"tangent1"),e.addLinear(l.ConstraintStrength.HARD,0,[[1,c]],[[d/2,s],[-d/2,a]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,u]],[[r.normalStart/2,s],[-r.normalStart/2,a]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,A]],[[r.normalEnd/2,s],[-r.normalEnd/2,a]])},n.prototype.buildGlyphConstraints=function(e,t){this.createBuilder(e,t).build()},n.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return{type:"rectangle",cx:(t+n)/2,cy:(r+o)/2,width:Math.abs(n-t),height:Math.abs(o-r),rotation:0}},n.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:e.x2,attribute:"x2"},{type:"y",value:n,attribute:"y1"},{type:"y",value:e.y2,attribute:"y2"}]},n.prototype.getGraphics=function(e){var t=this.state.attributes,n=t.tangent1,r=t.tangent2,o=t.normal1,i=t.normal2,a=s.makeGroup([]),l=this.object.properties,c=this.getCoordinateSystem();if(l.xData&&l.xData.visible&&a.elements.push((new u.AxisRenderer).setAxisDataBinding(l.xData,n,r,!1,!1,this.getDisplayFormat(l.xData,l.xData.tickFormat,e)).renderCurve(c,"opposite"==l.xData.side?i:o,"opposite"==l.xData.side?-1:1)),l.yData&&l.yData.visible){var A=c.getLocalTransform("opposite"==l.yData.side?r:n,0);A=s.concatTransform(c.getBaseTransform(),A),a.elements.push((new u.AxisRenderer).setAxisDataBinding(l.yData,o,i,!1,!0,this.getDisplayFormat(l.yData,l.yData.tickFormat,e)).renderLine(A.x,A.y,A.angle+90,"opposite"==l.yData.side?1:-1))}return a},n.prototype.getCoordinateSystem=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=(t+r)/2,i=(n+e.y2)/2,a=(r-t)/2;return new s.BezierCurveCoordinates({x:o,y:i},new s.MultiCurveParametrization(this.object.properties.curve.map((function(e){var t=e.map((function(e){return{x:e.x*a,y:e.y*a}}));return new s.BezierCurveParameterization(t[0],t[1],t[2],t[3])}))))},n.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=[];return i.push({type:"region",accept:{scaffolds:["polar"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Convert to Polar Coordinates"}),i.push({type:"region",accept:{scaffolds:["cartesian-x","cartesian-y"]},dropAction:{extendPlotSegment:{}},p1:{x:t,y:n},p2:{x:r,y:o},title:"Convert to Cartesian Coordinates"}),i},n.prototype.getAxisModes=function(){var e=this.object.properties;return[e.xData?e.xData.type:"null",e.yData?e.yData.type:"null"]},n.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.x2,r=e.y1,o=e.y2;return[{type:"line",axis:"y",value:r,span:[t,n],actions:[{type:"attribute",attribute:"y1"}]},{type:"line",axis:"y",value:o,span:[t,n],actions:[{type:"attribute",attribute:"y2"}]},{type:"line",axis:"x",value:t,span:[r,o],actions:[{type:"attribute",attribute:"x1"}]},{type:"line",axis:"x",value:n,span:[r,o],actions:[{type:"attribute",attribute:"x2"}]},{type:"point",x:t,y:r,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:n,y:r,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:n,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"input-curve",x1:t,y1:r,x2:n,y2:o,actions:[{type:"property",property:"curve"}]}]},n.prototype.getPopupEditor=function(e){var t=this.createBuilder().buildPopupWidgets(e);if(0==t.length)return null;var n=this.state.attributes;return{anchor:{x:n.x1,y:n.y2},widgets:a(t)}},n.prototype.buildGridLineWidgets=function(){return[]},n.prototype.getAttributePanelWidgets=function(t){var n=this.createBuilder();return a(e.prototype.getAttributePanelWidgets.call(this,t),[t.verticalGroup({header:g.strings.objects.plotSegment.curveCoordinates},[t.searchWrapper({searchPattern:[g.strings.objects.plotSegment.normal,g.strings.objects.plotSegment.curveCoordinates]},[t.label(g.strings.objects.plotSegment.normal,{ignoreSearch:!0}),t.horizontal([1,0,1],t.inputNumber({property:"normalStart"},{ignoreSearch:!0}),t.label("-",{ignoreSearch:!0}),t.inputNumber({property:"normalEnd"},{ignoreSearch:!0}))])])],n.buildPanelWidgets(t))},n.prototype.getTemplateParameters=function(){var e=[],t=[];return this.object.properties.xData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.xData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.xData))),this.object.properties.yData&&(e.push(u.buildAxisInference(this.object,A.PlotSegmentAxisPropertyNames.yData)),t=t.concat(u.buildAxisProperties(this.object,A.PlotSegmentAxisPropertyNames.yData))),this.object.properties.sublayout.order&&this.object.properties.sublayout.order.expression&&e.push({objectID:this.object._id,dataSource:{table:this.object.table,groupBy:this.object.groupBy},expression:{expression:this.object.properties.sublayout.order.expression,property:{property:"sublayout",field:["order","expression"]}}}),this.object.properties.xData&&(this.object.properties.xData.autoDomainMin||this.object.properties.xData.autoDomainMax)&&t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.xData,field:"categories"}},type:c.AttributeType.Enum,default:"ascending"}),this.object.properties.yData&&(this.object.properties.yData.autoDomainMin||this.object.properties.yData.autoDomainMax)&&t.push({objectID:this.object._id,target:{property:{property:A.PlotSegmentAxisPropertyNames.yData,field:"categories"}},type:c.AttributeType.Enum,default:"ascending"}),{inferences:e,properties:t}},n.classID="plot-segment.curve",n.type="plot-segment",n.metadata={displayName:"PlotSegment",iconPath:"plot-segment/curve",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},n.defaultProperties={marginX1:0,marginY1:0,marginX2:0,marginY2:0,visible:!0,sublayout:{type:A.Region2DSublayoutType.DodgeX,order:null,ratioX:.1,ratioY:.1,align:{x:"start",y:"start"},grid:{direction:A.GridDirection.X,xCount:null,yCount:null,gridStartPosition:A.GridStartPosition.LeftTop}},curve:[[{x:-1,y:0},{x:-.25,y:-.5},{x:.25,y:.5},{x:1,y:0}]],normalStart:-.2,normalEnd:.2},n}(d.PlotSegmentClass);t.CurvePlotSegment=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolarPlotSegmentPlugin=void 0;var i=n(73),a=n(12),s=n(201),l=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.attrs=t,a.chartConstraints=n,a.objectID=r,a.manager=o,a.properties=i,a}return o(t,e),t.prototype.apply=function(){var e=this,t=this.attrs,n=t.angle1,r=t.angle2,o=t.radial1,i=t.radial2,l=t.x1,c=t.x2,u=t.y1,A=t.y2;t.cx=(c+l)/2,t.cy=(A+u)/2;var d=t.cx,g=t.cy,p=function(e,t){var n=a.Geometry.degreesToRadians(t);return{x:d+Math.sin(n)*e,y:g+Math.cos(n)*e}},h=p(o,n);t.a1r1x=h.x,t.a1r1y=h.y;var f=p(i,n);t.a1r2x=f.x,t.a1r2y=f.y;var m=p(o,r);t.a2r1x=m.x,t.a2r1y=m.y;var y=p(i,r);return t.a2r2x=y.x,t.a2r2y=y.y,["a1r1x","a1r1y","a1r2x","a1r2y","a2r1x","a2r1y","a2r2x","a2r2y"].forEach((function(n){s.snapToAttribute(e.manager,e.chartConstraints,e.objectID,n,t[n])})),!0},t}(i.ConstraintPlugin);t.PolarPlotSegmentPlugin=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.JitterPlugin=void 0;var i=n(5),a=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this)||this;return c.solver=t,c.x1=n,c.y1=r,c.x2=o,c.y2=i,c.points=a,c.xEnable=null==s||"x"==s,c.yEnable=null==s||"y"==s,c.options=l,c}return o(t,e),t.prototype.apply=function(){for(var e=this.solver.getValue(this.x1),t=this.solver.getValue(this.x2),n=this.solver.getValue(this.y1),r=this.solver.getValue(this.y2),o=this.points.map((function(){return{x:i.getRandom(e,t),y:i.getRandom(n,r)}})),a=0;a<o.length;a++)this.options.horizontal&&this.solver.setValue(this.points[a][0],o[a].x),this.options.vertical&&this.solver.setValue(this.points[a][1],o[a].y);return!0},t}(n(73).ConstraintPlugin);t.JitterPlugin=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=t.SnapConstraintClass=t.ConstraintTypeClass=void 0;var r=n(12),o=n(26),i=function(){function e(){}return e.register=function(t){e._classes.set(t.type,t)},e.getClass=function(t){return e._classes.get(t)},e._classes=new Map,e}();t.ConstraintTypeClass=i;var a=function(){function e(){this.type="snap"}return e.prototype.buildConstraints=function(e,t,n,i){var a=e.attributes,s=a.attribute,l=a.element,c=a.targetAttribute,u=a.targetElement,A=e.attributes.gap;null==A&&(A=0);var d=r.getIndexById(t,l),g=r.getIndexById(t,u),p=i.attr(n[d].attributes,s),h=i.attr(n[g].attributes,c);i.addLinear(o.ConstraintStrength.HARD,A,[[1,p],[-1,h]])},e}();t.SnapConstraintClass=a,t.registerClasses=function(){i.register(new a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerClasses=void 0;var r=n(31),o=n(339),i=n(117),a=n(210),s=n(211);t.registerClasses=function(){r.ObjectClasses.Register(o.CustomLegendClass),r.ObjectClasses.Register(i.CategoricalLegendClass),r.ObjectClasses.Register(a.NumericalColorLegendClass),r.ObjectClasses.Register(s.NumericalNumberLegendClass)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomLegendClass=void 0;var i=n(117),a=n(7),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t);return this.getScale()&&n.push(t.vertical(t.label(a.strings.objects.colors,{addMargins:!0,searchSection:a.strings.objects.colors}),t.horizontal([1],t.scaleEditor("mappingOptions",a.strings.objects.legend.editColors)))),n},t.classID="legend.custom",t.type="legend",t.metadata={displayName:a.strings.objects.legend.legend,iconPath:"CharticulatorLegend",creatingInteraction:{type:"point",mapping:{x:"x",y:"y"}}},t}(i.CategoricalLegendClass);t.CustomLegendClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldShowCloseLink=void 0;var r=n(99);t.shouldShowCloseLink=function(e,t,n){if(t.linkTable)return!1;if(!e)return!1;if(!e.object.elements)return!1;if(t.linkThrough){var o=e.object.elements.find((function(e){return e._id==t.linkThrough.plotSegment}));if((null==o?void 0:o.classID)==r.PolarPlotSegment.classID)return!n||t.closeLink}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.symbolTypesList=t.MarkClass=t.registerClasses=void 0;var r=n(50),o=n(120);Object.defineProperty(t,"MarkClass",{enumerable:!0,get:function(){return o.MarkClass}});var i=n(342),a=n(343),s=n(212),l=n(345),c=n(213),u=n(348),A=n(350);Object.defineProperty(t,"symbolTypesList",{enumerable:!0,get:function(){return A.symbolTypesList}});var d=n(352),g=n(354),p=n(356);t.registerClasses=function(){r.ObjectClasses.Register(i.AnchorElement),r.ObjectClasses.Register(u.RectElementClass),r.ObjectClasses.Register(l.LineElementClass),r.ObjectClasses.Register(A.SymbolElementClass),r.ObjectClasses.Register(d.TextElementClass),r.ObjectClasses.Register(p.TextboxElementClass),r.ObjectClasses.Register(s.ImageElementClass),r.ObjectClasses.Register(g.IconElementClass),r.ObjectClasses.Register(c.NestedChartElementClass),r.ObjectClasses.Register(a.DataAxisClass)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnchorElement=void 0;var i=n(7),a=n(6),s=n(6),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["x","y"],t.attributes={x:{name:"x",type:a.AttributeType.Number},y:{name:"y",type:a.AttributeType.Number}},t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x=0,e.y=0},t.prototype.getHandles=function(){return[]},t.createDefault=function(t){var n=e.createDefault.call(this,t);return n.mappings.x={type:s.MappingType.parent,parentAttribute:"icx"},n.mappings.y={type:s.MappingType.parent,parentAttribute:"icy"},n},t.prototype.getAttributePanelWidgets=function(e){return[e.label(i.strings.objects.anchor.label)]},t.classID="mark.anchor",t.type="mark",t.metadata={displayName:"Anchor",iconPath:"mark/anchor"},t}(n(120).MarkClass);t.AnchorElement=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.DataAxisClass=void 0;var c=n(120),u=n(26),A=n(6),d=n(57),g=n(31),p=n(42),h=n(0),f=n(7),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTickData=function(e,n){for(var r,o,i=n.getTable(null===(o=null===(r=t.getPlotSegmentClass())||void 0===r?void 0:r.object)||void 0===o?void 0:o.table),a=n.dataflow.cache.parse(e.expression),s=n.dataflow.cache.parse(e.tickDataExpression),l=[],c=0;c<i.rows.length;c++){var u=i.getRowContext(c),A=a.getValue(u),d=s.getValue(u);l.push({value:A,tick:d})}return l},t}return o(t,e),t.prototype.getAttributeNames=function(e){return["anchorX"+e.name,"anchorY"+e.name]},Object.defineProperty(t.prototype,"attributeNames",{get:function(){var e,t,n=["x1","y1","x2","y2"];try{for(var r=a(this.object.properties.dataExpressions),o=r.next();!o.done;o=r.next()){var i=o.value,l=s(this.getAttributeNames(i),2),c=l[0],u=l[1];n.push(c),n.push(u)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e,t,n=i({},d.AttrBuilder.line());try{for(var r=a(this.object.properties.dataExpressions),o=r.next();!o.done;o=r.next()){var l=o.value,c=s(this.getAttributeNames(l),2),u=c[0],g=c[1];n[u]={name:u,type:A.AttributeType.Number},n[g]={name:g,type:A.AttributeType.Number}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),t.prototype.buildConstraints=function(e,t){var n,r;if(null!=t){var o=this.state.attributes,i=this.object.properties,l=s(e.attrs(o,["x1","y1","x2","y2"]),4),c=l[0],A=l[1],d=l[2],g=l[3];if(i.axis&&"numerical"==i.axis.type)try{for(var h=a(i.dataExpressions),f=h.next();!f.done;f=h.next()){var m=f.value,y=s(this.getAttributeNames(m),2),I=y[0],C=y[1],E=t.getExpressionValue(m.expression,t.rowContext),b=p.getNumericalInterpolate(i.axis)(E);null==o[I]&&(o[I]=o.x1),null==o[C]&&(o[C]=o.y1),e.addLinear(u.ConstraintStrength.HARD,0,[[b,d],[1-b,c]],[[1,e.attr(o,I)]]),e.addLinear(u.ConstraintStrength.HARD,0,[[b,g],[1-b,A]],[[1,e.attr(o,C)]])}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}},t.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-10,e.y1=-10,e.x2=10,e.y2=10},t.prototype.getHandles=function(){var e=this.state.attributes;return[{type:"point",x:e.x1,y:e.y1,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:e.x2,y:e.y2,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},t.prototype.getGraphics=function(e,t,n,r){void 0===n&&(n=0);var o=this.state.attributes,i=this.object.properties,a=this.getPlotSegmentClass();switch(i.visibleOn){case"all":break;case"last":if(n!=(null==a?void 0:a.getLastGlyphIndex()))return null;break;case"first":default:if(n!=(null==a?void 0:a.getFirstGlyphIndex()))return null}if(i.axis){if(i.axis.visible){var s,l;if((s=new p.AxisRenderer).setAxisDataBinding(i.axis,0,Math.sqrt((o.x2-o.x1)*(o.x2-o.x1)+(o.y2-o.y1)*(o.y2-o.y1)),!1,!1),i.axis.tickDataExpression)try{s.setTicksByData(this.getTickData(i.axis,r),i.axis.tickFormat)}catch(e){console.log(e)}return(l=s.renderLine(0,0,Math.atan2(o.y2-o.y1,o.x2-o.x1)/Math.PI*180,-1)).transform=e.getLocalTransform(o.x1+t.x,o.y1+t.y),l}return null}return(s=new p.AxisRenderer).setAxisDataBinding(null,0,Math.sqrt((o.x2-o.x1)*(o.x2-o.x1)+(o.y2-o.y1)*(o.y2-o.y1)),!1,!1),(l=s.renderLine(0,0,Math.atan2(o.y2-o.y1,o.x2-o.x1)/Math.PI*180,-1)).transform=e.getLocalTransform(o.x1+t.x,o.y1+t.y),l},t.prototype.getSnappingGuides=function(){var e,t,n,r,o,i,l=this.state.attributes,c=[];if(l.x1!=l.x2)try{for(var u=a(this.object.properties.dataExpressions),A=u.next();!A.done;A=u.next()){var d=A.value,g=this.getAttributeNames(d)[0];c.push({type:"x",value:l[g],attribute:g})}}catch(t){e={error:t}}finally{try{A&&!A.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}if(l.y1!=l.y2)try{for(var p=a(this.object.properties.dataExpressions),h=p.next();!h.done;h=p.next()){d=h.value,g=this.getAttributeNames(d)[1];c.push({type:"y",value:l[g],attribute:g})}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=a(this.object.properties.dataExpressions),m=f.next();!m.done;m=f.next()){d=m.value;var y=s(this.getAttributeNames(d),2),I=y[0],C=y[1];c.push({type:"label",x:l[I],y:l[C],text:d.expression})}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}return c},t.prototype.getBoundingBox=function(){var e=this.state.attributes;return{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}},t.prototype.getDropZones=function(){var e=this.state.attributes;return[{type:"line",p1:{x:e.x1,y:e.y1},p2:{x:e.x2,y:e.y2},title:"Data Axis",dropAction:{axisInference:{property:"axis",appendToProperty:"dataExpressions"}}}]},t.prototype.getAttributePanelWidgets=function(e){var t=this,n=this.object.properties,r=p.buildAxisWidgets(n.axis,"axis",e,f.strings.toolbar.dataAxis,{showOffset:!1,showScrolling:!1,showOnTop:!1}),o=l([e.verticalGroup({header:f.strings.objects.general},[e.inputSelect({property:"visibleOn"},{labels:[f.strings.objects.visibleOn.all,f.strings.objects.visibleOn.first,f.strings.objects.visibleOn.last],showLabel:!0,options:["all","first","last"],type:"dropdown",label:f.strings.objects.visibleOn.label})])],r);return n.dataExpressions.length>0&&o.push(e.verticalGroup({header:f.strings.objects.axes.dataExpressions},[e.arrayWidget({property:"dataExpressions"},(function(n,r){var o=e.inputExpression({property:"dataExpressions",field:n.field instanceof Array?l(n.field,["expression"]):[n.field,"expression"]},{table:t.getGlyphClass().object.table});return h.createElement("Fragment",{key:r},o)}),{allowDelete:!0,allowReorder:!0})])),o},t.prototype.getTemplateParameters=function(){var e=this,t=this.object.properties,n={table:this.getGlyphClass().object.table,groupBy:null},r=[];if(this.object.properties.axis&&(r=r.concat(p.buildAxisProperties(this.object,"axis"))).push({objectID:this.object._id,target:{property:{property:"axis",field:"categories"}},type:A.AttributeType.Enum,default:"ascending"}),t.dataExpressions&&t.dataExpressions.length>0)return{inferences:l([{objectID:this.object._id,dataSource:n,axis:{expression:t.dataExpressions[0].expression,additionalExpressions:t.dataExpressions.map((function(e){return e.expression})),type:t.axis.type,property:"axis",defineCategories:!1}}],t.dataExpressions.map((function(t,r){return{objectID:e.object._id,dataSource:n,expression:{expression:t.expression,property:{property:"dataExpressions",field:[r,"expression"]}}}}))),properties:r}},t.classID="mark.data-axis",t.type="mark",t.metadata={displayName:"DataAxis",iconPath:"mark/data-axis",creatingInteraction:{type:"line-segment",mapping:{x1:"x1",y1:"y1",x2:"x2",y2:"y2"}}},t.defaultProperties=i(i({},g.ObjectClass.defaultProperties),{dataExpressions:[],axis:null,visible:!0,visibleOn:"first"}),t}(c.MarkClass);t.DataAxisClass=m},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.imageAttributes=void 0;var o=n(57);t.imageAttributes=r(r(r(r(r({},o.AttrBuilder.line()),o.AttrBuilder.center()),o.AttrBuilder.size()),o.AttrBuilder.style({fill:!0})),o.AttrBuilder.image())},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.LineElementClass=void 0;var s=n(12),l=n(26),c=n(6),u=n(6),A=n(346),d=n(31),g=n(22),p=n(68),h=n(7),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=A.lineAttributes,t.attributeNames=Object.keys(A.lineAttributes),t}return o(t,e),t.prototype.initializeState=function(){e.prototype.initializeState.call(this);var t=this.state.attributes;t.x1=-15,t.y1=-25,t.x2=15,t.y2=25,t.cx=0,t.cy=0,t.dx=0,t.dy=0,t.stroke={r:0,g:0,b:0},t.strokeWidth=1,t.opacity=1,t.visible=!0},t.prototype.getLinkAnchors=function(e){var t=this.state.attributes;return[{element:this.object._id,points:[{x:t.cx,y:t.cy,xAttribute:"cx",yAttribute:"cy",direction:{x:"begin"==e?1:-1,y:0}}]},{element:this.object._id,points:[{x:t.x1,y:t.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:"begin"==e?1:-1,y:0}}]},{element:this.object._id,points:[{x:t.x2,y:t.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:"begin"==e?1:-1,y:0}}]}]},t.prototype.buildConstraints=function(e){var t=a(e.attrs(this.state.attributes,["x1","y1","x2","y2","cx","cy","dx","dy"]),8),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],c=t[5],u=t[6],A=t[7];e.addLinear(l.ConstraintStrength.HARD,0,[[2,s]],[[1,n],[1,o]]),e.addLinear(l.ConstraintStrength.HARD,0,[[2,c]],[[1,r],[1,i]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,u]],[[1,o],[-1,n]]),e.addLinear(l.ConstraintStrength.HARD,0,[[1,A]],[[1,i],[-1,r]])},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var a=this.state.attributes;return a.visible&&this.object.properties.visible?new g.CoordinateSystemHelper(e).line(a.x1+t.x,a.y1+t.y,a.x2+t.x,a.y2+t.y,i({strokeColor:a.stroke,strokeOpacity:a.opacity,strokeWidth:a.strokeWidth,strokeDasharray:d.strokeStyleToDashArray(this.object.properties.strokeStyle)},this.generateEmphasisStyle(o))):null},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=t;return[{type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"dx",accept:{kind:u.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"dx",attributeType:"number",hints:{autoRange:!0,startWithZero:"always"}}}},{type:"line",p1:{x:i,y:n},p2:{x:i,y:o},title:"dy",accept:{kind:u.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"dy",attributeType:"number",hints:{autoRange:!0,startWithZero:"always"}}}}]},t.prototype.getHandles=function(){var e=this.state.attributes;return[{type:"point",x:e.x1,y:e.y1,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:e.x2,y:e.y2,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:e.cx,y:e.cy,actions:[{type:"attribute",source:"x",attribute:"cx"},{type:"attribute",source:"y",attribute:"cy"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes;return{type:"line",morphing:!0,x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:r,attribute:"x2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:n,attribute:"y1"},{type:"y",value:o,attribute:"y2"},{type:"y",value:e.cy,attribute:"cy"}]},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t);return[t.verticalGroup({header:h.strings.toolbar.line},[t.mappingEditor(h.strings.objects.line.xSpan,"dx",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[c.DataKind.Numerical],defaultAuto:!0,searchSection:h.strings.toolbar.line}),t.mappingEditor(h.strings.objects.line.ySpan,"dy",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[c.DataKind.Numerical],defaultAuto:!0,searchSection:h.strings.toolbar.line}),t.mappingEditor(h.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:h.strings.toolbar.line})]),t.verticalGroup({header:h.strings.objects.style},[t.mappingEditor(h.strings.objects.stroke,"stroke",{searchSection:h.strings.objects.style}),t.mappingEditor(h.strings.objects.strokeWidth,"strokeWidth",{hints:{rangeNumber:[0,5]},defaultValue:1,numberOptions:{showSlider:!0,sliderRange:[0,10],minimum:0},searchSection:h.strings.objects.style}),t.inputSelect({property:"strokeStyle"},{type:"dropdown",showLabel:!0,icons:["stroke/solid","stroke/dashed","stroke/dotted"],isLocalIcons:!0,labels:[h.strings.objects.links.solid,h.strings.objects.links.dashed,h.strings.objects.links.dotted],options:["solid","dashed","dotted"],label:h.strings.objects.line.lineStyle,searchSection:h.strings.objects.style}),t.mappingEditor(h.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:h.strings.objects.style})])].concat(n)},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.visible&&this.object.mappings.visible.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:c.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.stroke&&this.object.mappings.stroke.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"stroke"},type:c.AttributeType.Color,default:this.state.attributes.stroke&&s.rgbToHex(this.state.attributes.stroke)}),this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.type===u.MappingType.value&&(e.push({objectID:this.object._id,target:{attribute:"strokeWidth"},type:c.AttributeType.Number,default:this.state.attributes.strokeWidth}),e.push({objectID:this.object._id,target:{property:"strokeStyle"},type:c.AttributeType.Enum,default:this.object.properties.strokeStyle})),this.object.mappings.opacity&&this.object.mappings.opacity.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:c.AttributeType.Number,default:this.state.attributes.opacity}),{properties:e}},t.classID="mark.line",t.type="mark",t.metadata={displayName:"Line",iconPath:"Line",creatingInteraction:{type:"line-segment",mapping:{x1:"x1",y1:"y1",x2:"x2",y2:"y2"}}},t.defaultProperties=i(i({},d.ObjectClass.defaultProperties),{strokeStyle:"solid",visible:!0}),t.defaultMappingValues={stroke:{r:0,g:0,b:0},strokeWidth:1,opacity:1,visible:!0},t}(p.EmphasizableMarkClass);t.LineElementClass=f},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.lineAttributes=void 0;var o=n(57);t.lineAttributes=r(r(r(r({},o.AttrBuilder.line()),o.AttrBuilder.center()),o.AttrBuilder.dXdY()),o.AttrBuilder.style())},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nestedChartAttributes=void 0;var o=n(57);t.nestedChartAttributes=r(r(r(r(r({},o.AttrBuilder.line()),o.AttrBuilder.center()),o.AttrBuilder.size()),o.AttrBuilder.opacity()),o.AttrBuilder.visible())},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.RectElementClass=t.ShapeType=void 0;var s,l=n(12),c=n(22),u=n(26),A=n(6),d=n(6),g=n(31),p=n(68),h=n(349),f=n(7),m=n(118),y=n(22);!function(e){e.Rectangle="rectangle",e.Triangle="triangle",e.Ellips="ellipse"}(s=t.ShapeType||(t.ShapeType={}));var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=h.rectAttributes,t.attributeNames=Object.keys(h.rectAttributes),t}return o(t,e),t.prototype.initializeState=function(){e.prototype.initializeState.call(this);var t=this.state.attributes;t.x1=-15,t.y1=-25,t.x2=15,t.y2=25,t.cx=0,t.cy=0,t.width=30,t.height=50,t.stroke=null,t.fill={r:200,g:200,b:200},t.strokeWidth=1,t.opacity=1,t.visible=!0},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.fill&&this.object.mappings.fill.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fill"},type:A.AttributeType.Color,default:l.rgbToHex(this.state.attributes.fill)}),this.object.mappings.visible&&this.object.mappings.visible.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:A.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.stroke&&this.object.mappings.stroke.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"stroke"},type:A.AttributeType.Color,default:l.rgbToHex(this.state.attributes.stroke)}),this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.type===d.MappingType.value&&(e.push({objectID:this.object._id,target:{attribute:"strokeWidth"},type:A.AttributeType.Number,default:this.state.attributes.strokeWidth}),e.push({objectID:this.object._id,target:{property:"strokeStyle"},type:A.AttributeType.Enum,default:this.object.properties.strokeStyle})),this.object.mappings.opacity&&this.object.mappings.opacity.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:A.AttributeType.Number,default:this.state.attributes.opacity}),e.push({objectID:this.object._id,target:{property:"rx"},type:A.AttributeType.Number,default:0}),e.push({objectID:this.object._id,target:{property:"ry"},type:A.AttributeType.Number,default:0}),{properties:e}},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t),r=[t.verticalGroup({header:f.strings.objects.general},[t.mappingEditor(f.strings.objects.width,"width",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:f.strings.objects.general}),t.mappingEditor(f.strings.objects.height,"height",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[d.DataKind.Numerical],defaultAuto:!0,searchSection:f.strings.objects.general}),t.inputSelect({property:"shape"},{type:"dropdown",showLabel:!0,label:f.strings.objects.rect.shape,icons:["RectangleShape","TriangleShape","Ellipse"],labels:[f.strings.objects.rect.shapes.rectangle,f.strings.objects.rect.shapes.triangle,f.strings.objects.rect.shapes.ellipse],options:[s.Rectangle,s.Triangle,s.Ellips],searchSection:f.strings.objects.general}),t.inputBoolean({property:"allowFlipping"},{type:"checkbox",label:f.strings.objects.rect.flipping,searchSection:f.strings.objects.general,styles:{marginTop:5}}),this.object.properties.shape===s.Triangle?t.inputBoolean({property:"cometMark"},{type:"checkbox",label:f.strings.objects.rect.shapes.comet,styles:{marginTop:5},searchSection:f.strings.objects.general}):null,this.object.properties.shape===s.Triangle?t.inputSelect({property:"orientation"},{type:"radio",showLabel:!1,icons:["GripperBarVertical","GripperBarHorizontal"],labels:[f.strings.objects.legend.vertical,f.strings.objects.legend.horizontal],options:[m.OrientationType.VERTICAL,m.OrientationType.HORIZONTAL],label:f.strings.objects.legend.orientation,searchSection:f.strings.objects.general}):null,t.mappingEditor(f.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:f.strings.objects.general})]),t.verticalGroup({header:f.strings.objects.style},[t.mappingEditor(f.strings.objects.fill,"fill",{searchSection:f.strings.objects.style}),t.mappingEditor(f.strings.objects.stroke,"stroke",{searchSection:f.strings.objects.style}),null!=this.object.mappings.stroke?t.mappingEditor(f.strings.objects.strokeWidth,"strokeWidth",{hints:{rangeNumber:[0,5]},defaultValue:1,numberOptions:{showSlider:!0,sliderRange:[0,5],minimum:0},searchSection:f.strings.objects.style}):null,null!=this.object.mappings.stroke?t.inputSelect({property:"strokeStyle"},{type:"dropdown",showLabel:!0,label:f.strings.objects.line.lineStyle,icons:["line","stroke/dashed","stroke/dotted"],isLocalIcons:!0,labels:[f.strings.objects.links.solid,f.strings.objects.links.dashed,f.strings.objects.links.dotted],options:["solid","dashed","dotted"],searchSection:f.strings.objects.style}):null,t.mappingEditor(f.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:f.strings.objects.style}),this.object.properties.shape===s.Rectangle?t.inputNumber({property:"rx"},{label:f.strings.objects.roundX,showUpdown:!0,updownTick:1,minimum:0,searchSection:f.strings.objects.style}):null,this.object.properties.shape===s.Rectangle?t.inputNumber({property:"ry"},{label:f.strings.objects.roundY,showUpdown:!0,updownTick:1,minimum:0,searchSection:f.strings.objects.style}):null])];return r=r.concat(n)},t.prototype.buildConstraints=function(e){var t=a(e.attrs(this.state.attributes,["x1","y1","x2","y2","cx","cy","width","height"]),8),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=t[5],c=t[6],A=t[7];e.addLinear(u.ConstraintStrength.HARD,0,[[1,o],[-1,n]],[[1,c]]),e.addLinear(u.ConstraintStrength.HARD,0,[[1,i],[-1,r]],[[1,A]]),e.addLinear(u.ConstraintStrength.HARD,0,[[2,s]],[[1,n],[1,o]]),e.addLinear(u.ConstraintStrength.HARD,0,[[2,l]],[[1,r],[1,i]]),this.object.properties.allowFlipping||void 0===this.object.properties.allowFlipping||(e.addSoftInequality(u.ConstraintStrength.WEAKER,0,[[1,o]],[[1,n]]),e.addSoftInequality(u.ConstraintStrength.WEAKER,0,[[1,i]],[[1,r]]))},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var a=this.state.attributes,l=this.object.properties;if(!a.visible||!this.object.properties.visible)return null;var u=new c.CoordinateSystemHelper(e);switch(this.object.properties.shape){case s.Ellips:return u.ellipse(a.x1+t.x,a.y1+t.y,a.x2+t.x,a.y2+t.y,i({strokeColor:a.stroke,strokeWidth:a.strokeWidth,strokeLinejoin:"miter",strokeDasharray:g.strokeStyleToDashArray(this.object.properties.strokeStyle),fillColor:a.fill,opacity:a.opacity},this.generateEmphasisStyle(o)));case s.Triangle:return this.drawTriangleOrCometMarks(u,t,o);case s.Rectangle:default:return u.rect(a.x1+t.x,a.y1+t.y,a.x2+t.x,a.y2+t.y,i({strokeColor:a.stroke,strokeWidth:a.strokeWidth,strokeLinejoin:"miter",strokeDasharray:g.strokeStyleToDashArray(this.object.properties.strokeStyle),fillColor:a.fill,opacity:a.opacity},this.generateEmphasisStyle(o)),l.rx,l.ry)}},t.prototype.getLinkAnchors=function(){var e=this.state.attributes,t=this.object._id;return[{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:-1,y:0}},{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:1,y:0}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:1,y:0}}]},{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:0,y:-1}},{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:0,y:1}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.cx,y:e.y1,xAttribute:"cx",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.cx,y:e.y2,xAttribute:"cx",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.x1,y:e.cy,xAttribute:"x1",yAttribute:"cy",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.cy,xAttribute:"x2",yAttribute:"cy",direction:{x:1,y:0}}]}]},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"width",accept:{kind:d.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"width",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}},{type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"height",accept:{kind:d.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"height",attributeType:d.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}}]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x1"}],value:t,span:[n,o],options:{snapToClosestPoint:!0}},{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x2"}],value:r,span:[n,o],options:{snapToClosestPoint:!0}},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y1"}],value:n,span:[t,r],options:{snapToClosestPoint:!0}},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y2"}],value:o,span:[t,r],options:{snapToClosestPoint:!0}},{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}],options:{snapToClosestPoint:!0}},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}],options:{snapToClosestPoint:!0}},{type:"point",x:r,y:n,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}],options:{snapToClosestPoint:!0}},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}],options:{snapToClosestPoint:!0}}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return{type:"rectangle",cx:(t+r)/2,cy:(n+o)/2,width:Math.abs(r-t),height:Math.abs(o-n),rotation:0}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:r,attribute:"x2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:n,attribute:"y1"},{type:"y",value:o,attribute:"y2"},{type:"y",value:e.cy,attribute:"cy"}]},t.prototype.drawTriangleOrCometMarks=function(e,t,n){var r=new c.PathMaker,o=this.object.properties,a=this.state.attributes,s=a.x1+t.x,l=a.x2+t.x,u=a.y1+t.y,A=a.y2+t.y,d=Math.abs(u-A)/2,p=Math.abs(s-l)/2,h=Math.min(d,p);if(o.orientation==m.OrientationType.HORIZONTAL&&e.coordinateSystem instanceof y.CartesianCoordinates){var f=s;1==o.cometMark?(r.moveTo(f,Math.max(u,A)),e.arcTo(r,h,d,f,Math.max(u,A),f,Math.min(u,A),l>s?0:1),e.lineTo(r,f,Math.max(u,A),l,(u+A)/2,!1)):(e.lineTo(r,s,u,s,A,!0),e.lineTo(r,s,A,l,(u+A)/2,!1))}else if(1==o.cometMark&&e.coordinateSystem instanceof y.CartesianCoordinates){var I=u;r.moveTo(Math.max(s,l),I),e.arcTo(r,p,h,Math.max(s,l),I,Math.min(s,l),I,A>u?1:0),e.lineTo(r,Math.max(s,l),I,(s+l)/2,A,!1)}else e.lineTo(r,s,u,(s+l)/2,A,!0),e.lineTo(r,(s+l)/2,A,l,u,!1);r.closePath();var C=r.path;return C.style=i({strokeColor:a.stroke,strokeWidth:a.strokeWidth,strokeLinejoin:"miter",strokeDasharray:g.strokeStyleToDashArray(o.strokeStyle),fillColor:a.fill,opacity:a.opacity},this.generateEmphasisStyle(n)),C},t.classID="mark.rect",t.type="mark",t.metadata={displayName:"Shape",iconPath:"RectangleShape",creatingInteraction:{type:s.Rectangle,mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},t.defaultProperties=i(i({},g.ObjectClass.defaultProperties),{visible:!0,strokeStyle:"solid",shape:s.Rectangle,allowFlipping:!0,rx:0,ry:0,orientation:m.OrientationType.VERTICAL,cometMark:!1}),t.defaultMappingValues={fill:{r:17,g:141,b:255},strokeWidth:1,opacity:1,visible:!0},t}(p.EmphasizableMarkClass);t.RectElementClass=I},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.rectAttributes=void 0;var o=n(57);t.rectAttributes=r(r(r(r({},o.AttrBuilder.line()),o.AttrBuilder.center()),o.AttrBuilder.size()),o.AttrBuilder.style({fill:!0}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SymbolElementClass=t.symbolTypesList=void 0;var a=n(7),s=n(12),l=n(22),c=n(22),u=n(6),A=n(6),d=n(31),g=n(68),p=n(351);t.symbolTypesList=p.symbolTypes;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=p.symbolAttributes,t.attributeNames=Object.keys(p.symbolAttributes),t}return o(t,e),t.prototype.initializeState=function(){e.prototype.initializeState.call(this);var t=this.state.attributes;t.x=0,t.y=0,t.size=60,t.fill={r:128,g:128,b:128},t.strokeWidth=1,t.opacity=1,t.visible=!0,t.symbol="circle"},t.prototype.getLinkAnchors=function(e){var t=this.state.attributes;return[{element:this.object._id,points:[{x:t.x,y:t.y,xAttribute:"x",yAttribute:"y",direction:{x:"begin"==e?1:-1,y:0}}]}]},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var a=this.state.attributes;if(!a.visible||!this.object.properties.visible)return null;if(a.size<=0)return null;var s=e.transformPoint(a.x+t.x,a.y+t.y),u=this.object.properties.rotation,A=i({strokeColor:a.stroke,strokeWidth:a.strokeWidth,fillColor:a.fill,opacity:a.opacity},this.generateEmphasisStyle(o));switch(a.symbol){case"square":var d=Math.sqrt(a.size),g={type:"rect",style:A,x1:-d/2,y1:-d/2,x2:d/2,y2:d/2,rotation:u};return(v=c.makeGroup([g])).transform.x=s.x,v.transform.y=s.y,v;case"cross":var p=Math.sqrt(a.size/5)/2;return(b=l.makePath(A)).moveTo(-3*p,-p),b.lineTo(-p,-p),b.lineTo(-p,-3*p),b.lineTo(-p,-3*p),b.lineTo(+p,-3*p),b.lineTo(+p,-p),b.lineTo(3*p,-p),b.lineTo(3*p,+p),b.lineTo(+p,+p),b.lineTo(+p,3*p),b.lineTo(-p,3*p),b.lineTo(-p,+p),b.lineTo(-3*p,+p),b.transformRotation(u),b.closePath(),(v=c.makeGroup([b.path])).transform.x=s.x,v.transform.y=s.y,v;case"diamond":var h=.5773502691896257*(f=Math.sqrt(a.size/1.1547005383792515));return(b=l.makePath(A)).moveTo(0,-f),b.lineTo(h,0),b.lineTo(0,f),b.lineTo(-h,0),b.transformRotation(u),b.closePath(),(v=c.makeGroup([b.path])).transform.x=s.x,v.transform.y=s.y,v;case"star":h=.22451398828979266*(p=Math.sqrt(.8908130915292852*a.size));var f=-.3090169943749474*p;(b=l.makePath(A)).moveTo(0,-p),b.lineTo(h,f);for(var m=1;m<5;++m){var y=2*Math.PI*m/5,I=Math.cos(y),C=Math.sin(y);b.lineTo(C*p,-I*p),b.lineTo(I*h-C*f,C*h+I*f)}return b.transformRotation(u),b.closePath(),(v=c.makeGroup([b.path])).transform.x=s.x,v.transform.y=s.y,v;case"triangle":var E=Math.sqrt(3);f=-Math.sqrt(a.size/(3*E));return(b=l.makePath(A)).moveTo(0,2*f),b.lineTo(-E*f,-f),b.lineTo(E*f,-f),b.transformRotation(u),b.closePath(),(v=c.makeGroup([b.path])).transform.x=s.x,v.transform.y=s.y,v;case"wye":I=-.5,C=Math.sqrt(3)/2;var b,v,B=1/Math.sqrt(12),M=(y=3*(B/2+1),(p=Math.sqrt(a.size/y))/2),D=p*B,x=M,w=p*B+p,Q=-x,S=w;return(b=l.makePath(A)).moveTo(M,D),b.lineTo(x,w),b.lineTo(Q,S),b.lineTo(I*M-C*D,C*M+I*D),b.lineTo(I*x-C*w,C*x+I*w),b.lineTo(I*Q-C*S,C*Q+I*S),b.lineTo(I*M+C*D,I*D-C*M),b.lineTo(I*x+C*w,I*w-C*x),b.lineTo(I*Q+C*S,I*S-C*Q),b.transformRotation(u),b.closePath(),(v=c.makeGroup([b.path])).transform.x=s.x,v.transform.y=s.y,v;default:return{type:"circle",style:A,cx:s.x,cy:s.y,r:Math.sqrt(a.size/Math.PI)}}},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x,n=e.y,r=e.size,o=Math.sqrt(r);return[{type:"line",p1:{x:t+o,y:n},p2:{x:t-o,y:n},title:"size",dropAction:{scaleInference:{attribute:"size",attributeType:u.AttributeType.Number,hints:{rangeNumber:[0,200*Math.PI]}}},accept:{kind:A.DataKind.Numerical,table:this.parent.object.table}}]},t.prototype.getHandles=function(){var e=this.state.attributes;return[{type:"point",x:e.x,y:e.y,actions:[{type:"attribute",source:"x",attribute:"x"},{type:"attribute",source:"y",attribute:"y"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x,n=e.y,r=e.size;return{type:"circle",cx:t,cy:n,radius:Math.sqrt(r/Math.PI)}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes;return[{type:"x",value:e.x,attribute:"x"},{type:"y",value:e.y,attribute:"y"}]},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t),r=[t.verticalGroup({header:a.strings.objects.general},[t.mappingEditor(a.strings.objects.rect.shape,"symbol",{acceptKinds:[u.DataKind.Categorical],hints:{rangeEnum:p.symbolTypes},defaultValue:"circle",searchSection:a.strings.objects.general}),t.mappingEditor(a.strings.objects.size,"size",{acceptKinds:[u.DataKind.Numerical],hints:{rangeNumber:[0,200*Math.PI]},defaultValue:60,numberOptions:{showSlider:!0,minimum:0,sliderRange:[0,3600],sliderFunction:"sqrt"},searchSection:a.strings.objects.general}),t.mappingEditor(a.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:a.strings.objects.general}),t.inputNumber({property:"rotation"},{label:a.strings.objects.rotation,showUpdown:!0,updownTick:5,searchSection:a.strings.objects.general})]),t.verticalGroup({header:a.strings.objects.style},[t.mappingEditor(a.strings.objects.fill,"fill",{searchSection:a.strings.objects.style}),t.mappingEditor(a.strings.objects.stroke,"stroke",{searchSection:a.strings.objects.style}),null!=this.object.mappings.stroke?t.mappingEditor(a.strings.objects.strokeWidth,"strokeWidth",{hints:{rangeNumber:[0,5]},defaultValue:1,numberOptions:{showSlider:!0,sliderRange:[0,5],minimum:0},searchSection:a.strings.objects.style}):null,t.mappingEditor(a.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:a.strings.objects.style})])];return(r=r.concat([])).concat(n)},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.visible&&this.object.mappings.visible.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:u.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.fill&&this.object.mappings.fill.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fill"},type:u.AttributeType.Color,default:s.rgbToHex(this.state.attributes.fill)}),this.object.mappings.strokeWidth&&this.object.mappings.strokeWidth.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"strokeWidth"},type:u.AttributeType.Number,default:this.state.attributes.strokeWidth}),this.object.mappings.stroke&&this.object.mappings.stroke.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"stroke"},type:u.AttributeType.Color,default:s.rgbToHex(this.state.attributes.stroke)}),this.object.mappings.size&&this.object.mappings.size.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"size"},type:u.AttributeType.Number,default:this.state.attributes.size}),this.object.mappings.opacity&&this.object.mappings.opacity.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:u.AttributeType.Number,default:this.state.attributes.opacity}),this.object.mappings.symbol&&this.object.mappings.symbol.type===A.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"symbol"},type:u.AttributeType.Enum,default:this.state.attributes.symbol}),{properties:e}},t.classID="mark.symbol",t.type="mark",t.metadata={displayName:"Symbol",iconPath:"Shapes",creatingInteraction:{type:"point",mapping:{x:"x",y:"y"}}},t.defaultProperties=i(i({},d.ObjectClass.defaultProperties),{visible:!0,rotation:0}),t.defaultMappingValues={fill:{r:17,g:141,b:255},strokeWidth:1,opacity:1,size:60,visible:!0},t}(g.EmphasizableMarkClass);t.SymbolElementClass=h},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.symbolAttributes=t.symbolTypes=void 0;var o=n(57);t.symbolTypes=["circle","cross","diamond","square","star","triangle","wye"],t.symbolAttributes=r(r(r(r({},o.AttrBuilder.point()),o.AttrBuilder.number("size",!1,{defaultRange:[0,200*Math.PI],defaultValue:60})),o.AttrBuilder.enum("symbol",{defaultRange:t.symbolTypes})),o.AttrBuilder.style({fill:!0}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.TextElementClass=void 0;var s=n(56),l=n(7),c=n(12),u=n(22),A=n(6),d=n(6),g=n(24),p=n(31),h=n(68),f=n(353),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=f.textAttributes,t.attributeNames=Object.keys(f.textAttributes),t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x=0,e.y=0,e.text="Text",e.fontFamily=s.defaultFont,e.fontSize=s.defaultFontSize,e.color={r:0,g:0,b:0},e.backgroundColor=null,e.backgroundColorFilterId="text-color-filter-"+c.getRandomNumber(),e.visible=!0,e.outline=null,e.opacity=1},t.prototype.buildConstraints=function(e){},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var s=this.state.attributes,l=this.object.properties;if(!s.visible||!this.object.properties.visible)return null;s.backgroundColorFilterId||(s.backgroundColorFilterId="text-color-filter-"+c.getRandomNumber());var A=u.TextMeasurer.Measure(s.text,s.fontFamily,s.fontSize),d=a(u.TextMeasurer.ComputeTextPosition(0,0,A,l.alignment.x,l.alignment.y,l.alignment.xMargin,l.alignment.yMargin),2),g=d[0],p=d[1],h=e.getLocalTransform(s.x+t.x,s.y+t.y);h.angle+=l.rotation;var f=null,m=s.text&&c.splitStringByNewLine(c.replaceNewLineBySymbol(s.text));if(m&&m.length>1){for(var y=s.fontSize,I=[],C=0;C<m.length;C++)I.push(u.makeText(g,p-y*C,m[C],s.fontFamily,s.fontSize,i({strokeColor:s.outline,fillColor:s.color,backgroundColor:s.backgroundColor,backgroundColorId:s.backgroundColorFilterId,opacity:s.opacity},this.generateEmphasisStyle(o))));f=u.makeGroup(I)}else f=u.makeText(g,p,s.text,s.fontFamily,s.fontSize,i({strokeColor:s.outline,fillColor:s.color,backgroundColor:s.backgroundColor,backgroundColorId:s.backgroundColorFilterId,opacity:s.opacity},this.generateEmphasisStyle(o)));var E=u.makeGroup([f]);return E.transform=h,E},t.prototype.getDropZones=function(){return[i(i({type:"rectangle"},this.getBoundingRectangle()),{title:"text",dropAction:{scaleInference:{attribute:"text",attributeType:A.AttributeType.Text}},accept:{table:this.parent.object.table}})]},t.prototype.getHandles=function(){var e=this.state.attributes,t=this.object.properties,n=e.x,r=e.y,o=this.getBoundingRectangle();return[{type:"point",x:n,y:r,actions:[{type:"attribute",source:"x",attribute:"x"},{type:"attribute",source:"y",attribute:"y"}]},{type:"text-alignment",actions:[{type:"property",source:"alignment",property:"alignment"},{type:"property",source:"rotation",property:"rotation"},{type:"attribute-value-mapping",source:"text",attribute:"text"}],textWidth:o.width,textHeight:o.height,anchorX:n,anchorY:r,text:e.text,alignment:t.alignment,rotation:t.rotation}]},t.prototype.getBoundingRectangle=function(){var e=this.object.properties,t=this.state.attributes,n=u.TextMeasurer.Measure(t.text,t.fontFamily,t.fontSize),r=a(u.TextMeasurer.ComputeTextPosition(0,0,n,e.alignment.x,e.alignment.y,e.alignment.xMargin,e.alignment.yMargin),2),o=r[0],i=r[1],s=o+n.width/2,l=i+n.middle,A=this.object.properties.rotation,d=Math.cos(c.Geometry.degreesToRadians(A)),g=Math.sin(c.Geometry.degreesToRadians(A));return{cx:t.x+s*d-l*g,cy:t.y+s*g+l*d,width:n.width,height:2*(n.middle-n.ideographicBaseline),rotation:A}},t.prototype.getBoundingBox=function(){var e=this.getBoundingRectangle(),t=this.state.attributes;return{type:"anchored-rectangle",anchorX:t.x,anchorY:t.y,cx:e.cx-t.x,cy:e.cy-t.y,width:e.width,height:e.height,rotation:e.rotation}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes;return[{type:"x",value:e.x,attribute:"x"},{type:"y",value:e.y,attribute:"y"}]},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t),r=this.object.properties;return[t.verticalGroup({header:l.strings.objects.general},[t.mappingEditor(l.strings.toolbar.text,"text",{searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.font,"fontFamily",{defaultValue:s.defaultFont,searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.size,"fontSize",{hints:{rangeNumber:[0,36]},defaultValue:s.defaultFontSize,numberOptions:{showUpdown:!0,updownStyle:"font",minimum:0,updownTick:2},searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:l.strings.objects.general})]),t.verticalGroup({header:l.strings.objects.anchorAndRotation},[t.inputSelect({property:"alignment",field:"x"},{type:"radio",icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:["Left","Middle","Right"],options:["left","middle","right"],label:l.strings.objects.anchorX,searchSection:l.strings.objects.anchorAndRotation}),"middle"!=r.alignment.x?t.inputNumber({property:"alignment",field:"xMargin"},{updownTick:1,showUpdown:!0,label:"Margin",searchSection:l.strings.objects.anchorAndRotation}):null,t.inputSelect({property:"alignment",field:"y"},{type:"radio",icons:["AlignVerticalTop","AlignVerticalCenter","AlignVerticalBottom"],labels:["Top","Middle","Bottom"],options:["top","middle","bottom"],label:l.strings.objects.anchorY,searchSection:l.strings.objects.anchorAndRotation}),"middle"!=r.alignment.y?t.inputNumber({property:"alignment",field:"yMargin"},{updownTick:1,showUpdown:!0,label:l.strings.objects.text.margin,searchSection:l.strings.objects.anchorAndRotation}):null,t.inputNumber({property:"rotation"},{label:l.strings.objects.rotation,showUpdown:!0,updownTick:1,searchSection:l.strings.objects.anchorAndRotation})]),t.verticalGroup({header:l.strings.objects.style},[t.mappingEditor(l.strings.objects.color,"color",{searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.outline,"outline",{searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.background,"backgroundColor",{defaultValue:null,searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:l.strings.objects.style})])].concat(n)},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.fontFamily&&this.object.mappings.fontFamily.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fontFamily"},type:A.AttributeType.FontFamily,default:this.state.attributes.fontFamily}),this.object.mappings.fontSize&&this.object.mappings.fontSize.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fontSize"},type:A.AttributeType.Number,default:this.state.attributes.fontSize}),this.object.mappings.color&&this.object.mappings.color.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"color"},type:A.AttributeType.Color,default:c.rgbToHex(this.state.attributes.color)}),this.object.mappings.backgroundColor&&this.object.mappings.backgroundColor.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"backgroundColor"},type:A.AttributeType.Color,default:null}),this.object.mappings.visible&&this.object.mappings.visible.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:A.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.opacity&&this.object.mappings.opacity.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:A.AttributeType.Number,default:this.state.attributes.opacity}),this.object.mappings.text&&this.object.mappings.text.type===d.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"text"},type:A.AttributeType.Text,default:this.state.attributes.text}),{properties:e}},t.classID="mark.text",t.type="mark",t.metadata={displayName:"Text",iconPath:"FontColorA",creatingInteraction:{type:"point",mapping:{x:"x",y:"y"}}},t.defaultMappingValues=i(i({},p.ObjectClass.defaultProperties),{text:"Text",fontFamily:s.defaultFont,fontSize:s.defaultFontSize,color:{r:0,g:0,b:0},opacity:1,visible:!0}),t.defaultProperties=i(i({},p.ObjectClass.defaultProperties),{alignment:{x:g.TextAlignmentHorizontal.Middle,y:g.TextAlignmentVertical.Top,xMargin:5,yMargin:5},rotation:0,visible:!0}),t}(h.EmphasizableMarkClass);t.TextElementClass=m},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.textAttributes=void 0;var o=n(56),i=n(6),a=n(57);t.textAttributes=r(r(r(r({},a.AttrBuilder.point()),{text:{name:"text",type:i.AttributeType.Text,solverExclude:!0,defaultValue:""},fontFamily:{name:"fontFamily",type:i.AttributeType.FontFamily,solverExclude:!0,defaultValue:o.defaultFont},fontSize:{name:"fontSize",type:i.AttributeType.Number,solverExclude:!0,defaultRange:[0,24],defaultValue:o.defaultFontSize},color:{name:"color",type:i.AttributeType.Color,solverExclude:!0,defaultValue:null},backgroundColor:{name:"backgroundColor",type:i.AttributeType.Color,solverExclude:!0,defaultValue:null},backgroundColorFilterId:{name:"backgroundColorFilterId",type:i.AttributeType.Text,solverExclude:!0,defaultValue:null},outline:{name:"outline",type:i.AttributeType.Color,solverExclude:!0,defaultValue:null}}),a.AttrBuilder.opacity()),a.AttrBuilder.visible())},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.IconElementClass=void 0;var a=n(7),s=n(12),l=n(22),c=n(6),u=n(6),A=n(24),d=n(31),g=n(68),p=n(355),h=n(212),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=p.iconAttributes,t.attributeNames=Object.keys(p.iconAttributes),t}return o(t,e),t.prototype.initializeState=function(){e.prototype.initializeState.call(this);var t=this.state.attributes;t.x=0,t.y=0,t.size=400,t.opacity=1,t.visible=!0,t.image=null},t.prototype.getLinkAnchors=function(e){var t=this.state.attributes;return[{element:this.object._id,points:[{x:t.x,y:t.y,xAttribute:"x",yAttribute:"y",direction:{x:"begin"==e?1:-1,y:0}}]}]},t.prototype.getLayoutProps=function(){var e=this.state.attributes,t=e.image||h.imagePlaceholder;if("string"==typeof t&&(t={src:t,width:100,height:100}),e.size<=0)return{width:0,height:0,dx:0,dy:0};var n=Math.sqrt(e.size*t.height/t.width),r=n*t.width/t.height,o=this.getCenterOffset(this.object.properties.alignment,r,n);return{width:r,height:n,dx:o[0],dy:o[1]}},t.prototype.getCenterOffset=function(e,t,n){var r=t/2,o=n/2;return"left"==e.x&&(r=-e.xMargin),"right"==e.x&&(r=t+e.xMargin),"bottom"==e.y&&(o=-e.yMargin),"top"==e.y&&(o=n+e.yMargin),[r,o]},t.prototype.getGraphics=function(e,t,n,r,o){void 0===n&&(n=0);var i=this.state.attributes;if(!i.visible||!this.object.properties.visible)return null;if(i.size<=0)return null;var a=i.image||h.imagePlaceholder;"string"==typeof a&&(a={src:a,width:100,height:100});var s=this.getLayoutProps(),c=l.makeGroup([{type:"image",src:a.src,x:-s.dx,y:-s.dy,width:s.width,height:s.height,mode:"stretch"}]);return c.transform=e.getLocalTransform(i.x+t.x,i.y+t.y),c.transform.angle+=this.object.properties.rotation,c.style={opacity:i.opacity},c},t.prototype.getDropZones=function(){return[i(i({type:"rectangle"},this.getBoundingRectangle()),{title:"size",dropAction:{scaleInference:{attribute:"size",attributeType:c.AttributeType.Number}},accept:{kind:u.DataKind.Numerical,table:this.parent.object.table}})]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x,n=e.y,r=this.getBoundingRectangle(),o=this.object.properties;return[{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x"},{type:"attribute",source:"y",attribute:"y"}]},{type:"text-alignment",actions:[{type:"property",source:"alignment",property:"alignment"},{type:"property",source:"rotation",property:"rotation"},{type:"attribute-value-mapping",source:"text",attribute:"text"}],textWidth:r.width,textHeight:r.height,anchorX:t,anchorY:n,text:null,alignment:o.alignment,rotation:o.rotation}]},t.prototype.getBoundingRectangle=function(){var e=this.state.attributes,t=this.object.properties.rotation,n=this.getLayoutProps(),r=Math.cos(s.Geometry.degreesToRadians(t)),o=Math.sin(s.Geometry.degreesToRadians(t)),i=n.dx-n.width/2,a=n.dy-n.height/2;return{cx:e.x-i*r+a*o,cy:e.y-i*o-a*r,width:n.width,height:n.height,rotation:t}},t.prototype.getBoundingBox=function(){var e=this.getBoundingRectangle(),t=this.state.attributes;return{type:"anchored-rectangle",anchorX:t.x,anchorY:t.y,cx:e.cx-t.x,cy:e.cy-t.y,width:e.width,height:e.height,rotation:e.rotation}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes;return[{type:"x",value:e.x,attribute:"x"},{type:"y",value:e.y,attribute:"y"}]},t.prototype.getAttributePanelWidgets=function(t){var n=e.prototype.getAttributePanelWidgets.call(this,t),r=this.object.properties,o=[t.verticalGroup({header:a.strings.toolbar.icon},[t.mappingEditor(a.strings.objects.icon.image,"image",{searchSection:a.strings.toolbar.icon}),t.mappingEditor(a.strings.objects.size,"size",{acceptKinds:[c.DataKind.Numerical],hints:{rangeNumber:[0,100]},defaultValue:400,numberOptions:{showSlider:!0,minimum:0,sliderRange:[0,3600],sliderFunction:"sqrt"},searchSection:a.strings.toolbar.icon}),t.mappingEditor(a.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:a.strings.toolbar.icon}),t.mappingEditor(a.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:a.strings.toolbar.icon})])];return(o=o.concat([t.verticalGroup({header:a.strings.objects.anchorAndRotation},[t.horizontal([0,1],t.inputSelect({property:"alignment",field:"x"},{type:"radio",icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:[a.strings.alignment.left,a.strings.alignment.middle,a.strings.alignment.right],options:["left","middle","right"],label:a.strings.objects.anchorX,searchSection:a.strings.objects.anchorAndRotation}),"middle"!=r.alignment.x?t.inputNumber({property:"alignment",field:"xMargin"},{label:a.strings.margins.margin,searchSection:a.strings.objects.anchorAndRotation}):null),t.horizontal([0,1],t.inputSelect({property:"alignment",field:"y"},{type:"radio",icons:["AlignVerticalTop","AlignVerticalCenter","AlignVerticalBottom"],labels:[a.strings.alignment.top,a.strings.alignment.middle,a.strings.alignment.bottom],options:["top","middle","bottom"],label:a.strings.objects.anchorY,searchSection:a.strings.objects.anchorAndRotation}),"middle"!=r.alignment.y?t.inputNumber({property:"alignment",field:"yMargin"},{label:a.strings.margins.margin,searchSection:a.strings.objects.anchorAndRotation}):null)])])).concat(n)},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.visible&&this.object.mappings.visible.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:c.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.size&&this.object.mappings.size.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"size"},type:c.AttributeType.Number,default:this.state.attributes.size}),this.object.mappings.opacity&&this.object.mappings.opacity.type===u.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:c.AttributeType.Number,default:this.state.attributes.opacity}),{properties:e}},t.classID="mark.icon",t.type="mark",t.metadata={displayName:"Icon",iconPath:"ImagePixel",creatingInteraction:{type:"point",mapping:{x:"x",y:"y"}}},t.defaultProperties=i(i({},d.ObjectClass.defaultProperties),{alignment:{x:A.TextAlignmentHorizontal.Middle,y:A.TextAlignmentVertical.Top,xMargin:5,yMargin:5},rotation:0,visible:!0}),t.defaultMappingValues={opacity:1,size:400,visible:!0},t}(g.EmphasizableMarkClass);t.IconElementClass=f},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.iconAttributes=void 0;var o=n(57);t.iconAttributes=r(r(r(r(r({},o.AttrBuilder.point()),o.AttrBuilder.number("size",!1,{defaultRange:[0,3600],defaultValue:400})),o.AttrBuilder.opacity()),o.AttrBuilder.visible()),o.AttrBuilder.image())},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.TextboxElementClass=void 0;var s=n(56),l=n(7),c=n(12),u=n(22),A=n(22),d=n(26),g=n(6),p=n(6),h=n(31),f=n(68),m=n(357),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributes=m.textboxAttributes,t.attributeNames=Object.keys(m.textboxAttributes),t}return o(t,e),t.prototype.initializeState=function(){var e=this.state.attributes;e.x1=-15,e.y1=-25,e.x2=15,e.y2=25,e.cx=0,e.cy=0,e.width=30,e.height=50,e.color={r:0,g:0,b:0},e.backgroundColor=null,e.backgroundColorFilterId="text-color-filter-"+c.getRandomNumber(),e.visible=!0,e.outline=null,e.opacity=1,e.text=null,e.fontFamily=s.defaultFont,e.fontSize=s.defaultFontSize},t.prototype.getAttributePanelWidgets=function(t){var n=this.object.properties,r=e.prototype.getAttributePanelWidgets.call(this,t);return[t.verticalGroup({header:l.strings.objects.general},[t.mappingEditor(l.strings.objects.width,"width",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[g.DataKind.Numerical],defaultAuto:!0,searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.height,"height",{hints:{autoRange:!0,startWithZero:"always"},acceptKinds:[g.DataKind.Numerical],defaultAuto:!0,searchSection:l.strings.objects.general}),t.mappingEditor(l.strings.objects.visibleOn.visibility,"visible",{defaultValue:!0,searchSection:l.strings.objects.general})]),t.verticalGroup({header:l.strings.toolbar.text},[t.mappingEditor(l.strings.toolbar.text,"text",{searchSection:l.strings.toolbar.text}),t.mappingEditor(l.strings.objects.font,"fontFamily",{defaultValue:s.defaultFont,searchSection:l.strings.toolbar.text}),t.mappingEditor(l.strings.objects.size,"fontSize",{hints:{rangeNumber:[0,36]},defaultValue:s.defaultFontSize,numberOptions:{showUpdown:!0,updownStyle:"font",minimum:0,updownTick:2},searchSection:l.strings.toolbar.text})]),t.verticalGroup({header:l.strings.objects.layout},[t.inputSelect({property:"alignX"},{type:"radio",options:["start","middle","end"],icons:["AlignHorizontalLeft","AlignHorizontalCenter","AlignHorizontalRight"],labels:[l.strings.alignment.left,l.strings.alignment.middle,l.strings.alignment.right],label:l.strings.objects.alignX,searchSection:l.strings.objects.layout}),"middle"!=n.alignX?t.inputNumber({property:"paddingX"},{updownTick:1,showUpdown:!0,label:l.strings.objects.text.margin,searchSection:l.strings.objects.layout}):null,t.inputSelect({property:"alignY"},{type:"radio",options:["start","middle","end"],icons:["AlignVerticalBottom","AlignVerticalCenter","AlignVerticalTop"],labels:[l.strings.alignment.bottom,l.strings.alignment.middle,l.strings.alignment.top],label:l.strings.objects.alignX,searchSection:l.strings.objects.layout}),"middle"!=n.alignY?t.inputNumber({property:"paddingY"},{updownTick:1,showUpdown:!0,label:l.strings.objects.text.margin,searchSection:l.strings.objects.layout}):null,t.inputBoolean({property:"wordWrap"},{type:"checkbox",headerLabel:l.strings.objects.text.textDisplaying,label:l.strings.objects.text.wrapText,searchSection:l.strings.objects.layout}),n.wordWrap?t.inputBoolean({property:"overFlow"},{type:"checkbox",label:l.strings.objects.text.overflow,searchSection:l.strings.objects.layout}):null,n.wordWrap?t.inputSelect({property:"alignText"},{type:"radio",options:["end","middle","start"],icons:["AlignVerticalBottom","AlignVerticalCenter","AlignVerticalTop"],labels:[l.strings.alignment.bottom,l.strings.alignment.middle,l.strings.alignment.top],label:l.strings.alignment.alignment,searchSection:l.strings.objects.layout}):null]),t.verticalGroup({header:l.strings.objects.style},[t.mappingEditor(l.strings.objects.color,"color",{searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.outline,"outline",{searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.background,"backgroundColor",{defaultValue:null,searchSection:l.strings.objects.style}),t.mappingEditor(l.strings.objects.opacity,"opacity",{hints:{rangeNumber:[0,1]},defaultValue:1,numberOptions:{showSlider:!0,minimum:0,maximum:1,step:.1},searchSection:l.strings.objects.style})])].concat(r)},t.prototype.buildConstraints=function(e){var t=a(e.attrs(this.state.attributes,["x1","y1","x2","y2","cx","cy","width","height"]),8),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=t[5],c=t[6],u=t[7];e.addLinear(d.ConstraintStrength.HARD,0,[[1,o],[-1,n]],[[1,c]]),e.addLinear(d.ConstraintStrength.HARD,0,[[1,i],[-1,r]],[[1,u]]),e.addLinear(d.ConstraintStrength.HARD,0,[[2,s]],[[1,n],[1,o]]),e.addLinear(d.ConstraintStrength.HARD,0,[[2,l]],[[1,r],[1,i]])},t.prototype.getGraphics=function(e,t,n,r){var o=this.state.attributes,a=this.object.properties;if(!o.text||!o.color&&!o.outline||!o.visible||0==o.opacity)return u.makeGroup([]);o.backgroundColorFilterId||(o.backgroundColorFilterId="text-color-filter-"+c.getRandomNumber());var s,l=u.TextMeasurer.Measure(o.text,o.fontFamily,o.fontSize),d=new u.CoordinateSystemHelper(e),g=2*(l.middle-l.ideographicBaseline),p=0;switch(a.alignY){case"start":p=o.y1-l.ideographicBaseline+a.paddingY;break;case"middle":p=o.cy-g/2-l.ideographicBaseline;break;case"end":p=o.y2-g-l.ideographicBaseline-a.paddingY}var h=function(e,t){if(t.outline){if(t.color){var n=u.makeGroup([i(i({},e),{style:{strokeColor:t.outline}}),i(i({},e),{style:{fillColor:t.color}})]);return n.style={opacity:t.opacity},n}return i(i({},e),{style:{strokeColor:t.outline,opacity:t.opacity}})}return i(i({},e),{style:{fillColor:t.color,opacity:t.opacity}})},f=c.replaceNewLineBySymbol(o.text);if(f&&c.splitStringByNewLine(f).length>1||a.wordWrap){var m=o.fontSize,y=1e3;a.overFlow||(y=Math.floor(Math.abs(o.y2-o.y1)/m));var I=[f];a.wordWrap&&(I=A.splitByWidth(c.replaceSymbolByTab(c.replaceSymbolByNewLine(o.text)),Math.abs(o.x2-o.x1)-10,y,o.fontFamily,o.fontSize)),I=I.flatMap((function(e){return c.splitStringByNewLine(e)}));var C=[],E=0;switch(a.alignY){case"start":switch(a.alignText){case"start":E=-m;break;case"middle":E=I.length*m/2-m;break;case"end":E=I.length*m-m}break;case"middle":switch(a.alignText){case"start":E=-m/2;break;case"middle":E=I.length*m/2-m/2;break;case"end":E=I.length*m-m/2}break;case"end":switch(a.alignText){case"start":E=0;break;case"middle":E=I.length*m/2;break;case"end":E=I.length*m}}for(var b=0;b<I.length;b++){var v=new u.PathMaker;d.lineTo(v,o.x1+t.x+a.paddingX,p+t.y+E-m*b,o.x2+t.x-a.paddingX,p+t.y+E-m*b,!0);var B=h({key:b,type:"text-on-path",pathCmds:v.path.cmds,text:I[b],fontFamily:o.fontFamily,fontSize:o.fontSize,align:a.alignX},o);C.push(B)}return u.makeGroup(C)}v=new u.PathMaker;d.lineTo(v,o.x1+t.x+a.paddingX,p+t.y,o.x2+t.x-a.paddingX,p+t.y,!0),s={type:"text-on-path",pathCmds:v.path.cmds,text:o.text,fontFamily:o.fontFamily,fontSize:o.fontSize,align:a.alignX};var M={type:"rect",x1:o.x1+t.x,y1:o.y1+t.y,x2:o.x2+t.x,y2:o.y2+t.y,style:{fillColor:o.backgroundColor}};return u.makeGroup([M,h(s,o)])},t.prototype.getLinkAnchors=function(){var e=this.state.attributes,t=this.object._id;return[{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:-1,y:0}},{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:1,y:0}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:1,y:0}}]},{element:t,points:[{x:e.x1,y:e.y1,xAttribute:"x1",yAttribute:"y1",direction:{x:0,y:-1}},{x:e.x2,y:e.y1,xAttribute:"x2",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.x1,y:e.y2,xAttribute:"x1",yAttribute:"y2",direction:{x:0,y:1}},{x:e.x2,y:e.y2,xAttribute:"x2",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.cx,y:e.y1,xAttribute:"cx",yAttribute:"y1",direction:{x:0,y:-1}}]},{element:t,points:[{x:e.cx,y:e.y2,xAttribute:"cx",yAttribute:"y2",direction:{x:0,y:1}}]},{element:t,points:[{x:e.x1,y:e.cy,xAttribute:"x1",yAttribute:"cy",direction:{x:-1,y:0}}]},{element:t,points:[{x:e.x2,y:e.cy,xAttribute:"x2",yAttribute:"cy",direction:{x:1,y:0}}]}]},t.prototype.getDropZones=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",p1:{x:r,y:n},p2:{x:t,y:n},title:"width",accept:{kind:g.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"width",attributeType:g.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}},{type:"line",p1:{x:t,y:n},p2:{x:t,y:o},title:"height",accept:{kind:g.DataKind.Numerical,table:this.parent.object.table},dropAction:{scaleInference:{attribute:"height",attributeType:g.AttributeType.Number,hints:{autoRange:!0,startWithZero:"always"}}}}]},t.prototype.getHandles=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x1"}],value:t,span:[n,o]},{type:"line",axis:"x",actions:[{type:"attribute",attribute:"x2"}],value:r,span:[n,o]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y1"}],value:n,span:[t,r]},{type:"line",axis:"y",actions:[{type:"attribute",attribute:"y2"}],value:o,span:[t,r]},{type:"point",x:t,y:n,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:t,y:o,actions:[{type:"attribute",source:"x",attribute:"x1"},{type:"attribute",source:"y",attribute:"y2"}]},{type:"point",x:r,y:n,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y1"}]},{type:"point",x:r,y:o,actions:[{type:"attribute",source:"x",attribute:"x2"},{type:"attribute",source:"y",attribute:"y2"}]}]},t.prototype.getBoundingBox=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return{type:"rectangle",cx:(t+r)/2,cy:(n+o)/2,width:Math.abs(r-t),height:Math.abs(o-n),rotation:0}},t.prototype.getSnappingGuides=function(){var e=this.state.attributes,t=e.x1,n=e.y1,r=e.x2,o=e.y2;return[{type:"x",value:t,attribute:"x1"},{type:"x",value:r,attribute:"x2"},{type:"x",value:e.cx,attribute:"cx"},{type:"y",value:n,attribute:"y1"},{type:"y",value:o,attribute:"y2"},{type:"y",value:e.cy,attribute:"cy"}]},t.prototype.getTemplateParameters=function(){var e=[];return this.object.mappings.vistextible&&this.object.mappings.text.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"text"},type:g.AttributeType.Text,default:this.state.attributes.text}),this.object.mappings.fontFamily&&this.object.mappings.fontFamily.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fontFamily"},type:g.AttributeType.FontFamily,default:this.state.attributes.fontFamily}),this.object.mappings.fontSize&&this.object.mappings.fontSize.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"fontSize"},type:g.AttributeType.Number,default:this.state.attributes.fontSize}),this.object.mappings.color&&this.object.mappings.color.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"color"},type:g.AttributeType.Color,default:c.rgbToHex(this.state.attributes.color)}),this.object.mappings.backgroundColor&&this.object.mappings.backgroundColor.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"backgroundColor"},type:g.AttributeType.Color,default:null}),this.object.mappings.visible&&this.object.mappings.visible.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"visible"},type:g.AttributeType.Boolean,default:this.state.attributes.visible}),this.object.mappings.opacity&&this.object.mappings.opacity.type===p.MappingType.value&&e.push({objectID:this.object._id,target:{attribute:"opacity"},type:g.AttributeType.Number,default:this.state.attributes.opacity}),void 0!==this.object.properties.wordWrap&&e.push({objectID:this.object._id,target:{attribute:"wordWrap"},type:g.AttributeType.Boolean,default:this.object.properties.wordWrap}),{properties:e}},t.classID="mark.textbox",t.type="mark",t.metadata={displayName:"Textbox",iconPath:"TextField",creatingInteraction:{type:"rectangle",mapping:{xMin:"x1",yMin:"y1",xMax:"x2",yMax:"y2"}}},t.defaultProperties=i(i({},h.ObjectClass.defaultProperties),{visible:!0,paddingX:0,paddingY:0,alignX:"middle",alignY:"middle",wordWrap:!1,overFlow:!0,alignText:"start"}),t.defaultMappingValues={text:"Text",fontFamily:s.defaultFont,fontSize:s.defaultFontSize,color:{r:0,g:0,b:0},opacity:1,visible:!0},t}(f.EmphasizableMarkClass);t.TextboxElementClass=y},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.textboxAttributes=void 0;var o=n(6),i=n(57),a=n(56);t.textboxAttributes=r(r(r(r(r(r({},i.AttrBuilder.line()),i.AttrBuilder.center()),i.AttrBuilder.size()),{text:{name:"text",type:o.AttributeType.Text,solverExclude:!0,defaultValue:""},fontFamily:{name:"fontFamily",type:o.AttributeType.FontFamily,solverExclude:!0,defaultValue:a.defaultFont},fontSize:{name:"fontSize",type:o.AttributeType.Number,solverExclude:!0,defaultRange:[0,24],defaultValue:a.defaultFontSize},color:{name:"color",type:o.AttributeType.Color,solverExclude:!0,defaultValue:null},backgroundColor:{name:"backgroundColor",type:o.AttributeType.Color,solverExclude:!0,defaultValue:null},backgroundColorFilterId:{name:"backgroundColorFilterId",type:o.AttributeType.Text,solverExclude:!0,defaultValue:null},outline:{name:"outline",type:o.AttributeType.Color,solverExclude:!0,defaultValue:null}}),i.AttrBuilder.opacity()),i.AttrBuilder.visible())},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleClass=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.buildConstraint=function(e,t,n){},t.prototype.getTemplateParameters=function(){return{inferences:[{objectID:this.object._id,autoDomainMax:this.object.properties.autoDomainMax,autoDomainMin:this.object.properties.autoDomainMin,scale:{classID:this.object.classID,expressions:[],properties:{mapping:"mapping"}}}]}},t.metadata={displayName:"Scale",iconPath:"scale/scale"},t}(n(31).ObjectClass);t.ScaleClass=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CategoricalScaleBase64Image=t.CategoricalScaleImage=t.CategoricalScaleBoolean=t.CategoricalScaleEnum=t.CategoricalScaleColor=t.CategoricalScaleNumber=void 0;var a=n(12),s=n(26),l=n(6),c=n(168),u=n(186),A=n(24),d=n(117),g=n(7);function p(e,t){var n,r,o={},a=[];try{for(var s=i(Object.keys(t)),l=s.next();!l.done;l=s.next()){var c=l.value;e.has(c)?o[c]=t[c]:a.push(t[c])}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return e.forEach((function(e,t){if(!Object.prototype.hasOwnProperty.call(o,t)){if(!(a.length>0))return null;o[t]=a[0],a.splice(0,1)}})),o}var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=["rangeScale"],t.attributes={rangeScale:{name:"rangeScale",type:l.AttributeType.Number}},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){var t=this.state.attributes,n=this.object.properties.mapping[e?null==e?void 0:e.toString():null];return(null!=n?n:0)*t.rangeScale},t.prototype.buildConstraint=function(e,t,n){var r=this.state.attributes,o=this.object.properties.mapping[null==e?void 0:e.toString()];n.addLinear(s.ConstraintStrength.HARD,0,[[1,t]],[[o,n.attr(r,"rangeScale")]])},t.prototype.initializeState=function(){this.state.attributes.rangeScale=10},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.state.attributes,r=this.object.properties,o=new a.Scale.CategoricalScale,i=e.filter((function(e){return"string"==typeof e}));o.inferParameters(i,A.OrderMode.order),r.mapping={};var s=[1,o.domain.size];t.rangeNumber&&(s=t.rangeNumber),o.domain.forEach((function(e,t){r.mapping[t]=e/(o.domain.size-1)*(s[1]-s[0])+s[0]})),n.rangeScale=s[1]},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[];for(var r in t.mapping)Object.prototype.hasOwnProperty.call(t.mapping,r)&&n.push(r);return[e.sectionHeader(g.strings.objects.scales.numberMapping),e.scrollList(n.map((function(t){return e.horizontal([2,3],e.text(t,"right"),e.inputNumber({property:"mapping",field:t}))}))),e.sectionHeader(g.strings.objects.scales.exportProperties),e.row("",e.vertical(e.inputBoolean({property:"autoDomainMin"},{type:"checkbox",label:g.strings.objects.scales.autoMin}),e.inputBoolean({property:"autoDomainMax"},{type:"checkbox",label:g.strings.objects.scales.autoMax})))]},t.classID="scale.categorical<string,number>",t.type="scale",t.defaultProperties={exposed:!0,autoDomainMin:!0,autoDomainMax:!0},t}(c.ScaleClass);t.CategoricalScaleNumber=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){return this.object.properties.mapping[null==e?void 0:e.toString()]},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new a.Scale.CategoricalScale,o=e.filter((function(e){return null!=e})).map((function(e){return e.toString()}));if(r.inferParameters(o,A.OrderMode.order),n.autoDomainMin=!0,n.autoDomainMax=!0,t.reuseRange){if(null!=n.mapping)if(t.extendScaleMin||t.extendScaleMax){var i=p(r.domain,n.mapping),s=m(o);s||(s=a.getDefaultColorPalette(r.length)),r.domain.forEach((function(e,t){i[t]||(i[t]=s[e%s.length])}));var l=Object.keys(i),c=Object.keys(n.mapping);l.length<c.length&&c.slice(l.length,c.length).filter((function(e){return e.startsWith(d.ReservedMappingKeyNamePrefix)})).forEach((function(e){i[e]=n.mapping[e]})),n.mapping=i}else n.mapping=p(r.domain,n.mapping)}else n.mapping=null;if(null==n.mapping){n.mapping={};var u=m(o);u?r.domain.forEach((function(e,t){n.mapping[t]=u[e%u.length]})):a.getDefaultColorPaletteGenerator()?r.domain.forEach((function(e,t){n.mapping[t]=a.getDefaultColorPaletteByValue(t)})):(u=a.getDefaultColorPalette(r.length),r.domain.forEach((function(e,t){n.mapping[t]=u[e%u.length]})))}},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[];for(var r in t.mapping)Object.prototype.hasOwnProperty.call(t.mapping,r)&&n.push(r);return[e.inputBoolean([{property:"autoDomainMin"},{property:"autoDomainMax"}],{type:"checkbox",label:g.strings.objects.dataAxis.autoUpdateValues}),e.sectionHeader(g.strings.objects.scales.colorMapping),e.scrollList(n.map((function(t){return e.horizontal([1,0],e.inputText({property:"mapping"},{updateProperty:!0,value:t,underline:!0,styles:{textAlign:"right"},emitMappingAction:!0}),e.inputColor({property:"mapping",field:t,noComputeLayout:!0},{noDefaultMargin:!0,stopPropagation:!0,labelKey:t,width:100,underline:!0,pickerBeforeTextField:!0,styles:{marginTop:"0px"}}))})))]},t.metadata={displayName:"Scale",iconPath:"scale/color"},t.classID="scale.categorical<string,color>",t.type="scale",t}(c.ScaleClass);function m(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r];if(!n[o]){var i=u.color(o);if(!i)return null;var a=i.rgb(),s=a.r,l=a.g,c=a.b;if(1!==a.opacity)return null;t.push({r:s,g:l,b:c}),n[o]=!0}}return t}t.CategoricalScaleColor=f;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){return this.object.properties.mapping[null==e?void 0:e.toString()]},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new a.Scale.CategoricalScale,o=e.filter((function(e){return null!=e})).map((function(e){return e.toString()}));r.inferParameters(o,A.OrderMode.order),t.reuseRange?null!=n.mapping&&(n.mapping=p(r.domain,n.mapping)):n.mapping=null,null==n.mapping&&(n.mapping={},t.rangeEnum&&(n.defaultRange=t.rangeEnum.slice()),r.domain.forEach((function(e,r){t.rangeEnum?n.mapping[r]=t.rangeEnum[e%t.rangeEnum.length]:n.mapping[r]=r})))},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[];for(var r in t.mapping)Object.prototype.hasOwnProperty.call(t.mapping,r)&&n.push(r);return[e.sectionHeader(g.strings.objects.scales.stringMapping),e.scrollList(n.map((function(n){return e.horizontal([2,3],e.inputText({property:"mapping"},{updateProperty:!0,value:n,underline:!0,styles:{textAlign:"right"}}),e.inputComboBox({property:"mapping",field:n},{defaultRange:t.defaultRange,valuesOnly:!1}))})))]},t.classID="scale.categorical<string,enum>",t.type="scale",t}(c.ScaleClass);t.CategoricalScaleEnum=y;var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){return this.object.properties.mapping[null==e?void 0:e.toString()]},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new a.Scale.CategoricalScale,o=e.filter((function(e){return null!=e})).map((function(e){return e.toString()}));r.inferParameters(o,A.OrderMode.order),t.reuseRange?null!=n.mapping&&(n.mapping=p(r.domain,n.mapping)):n.mapping=null,null==n.mapping&&(n.mapping={},r.domain.forEach((function(e,t){n.mapping[t]=!0})))},t.prototype.getAttributePanelWidgets=function(e){var t=[],n=this.object.properties,r={},o={};for(var i in n.mapping)Object.prototype.hasOwnProperty.call(n.mapping,i)&&(t.push(e.inputBoolean({property:"mapping",field:i},{type:"checkbox-fill-width",label:i,styles:{overflowX:"hidden"}})),r[i]=!0,o[i]=!1);return[e.inputBoolean([{property:"autoDomainMin"},{property:"autoDomainMax"}],{type:"checkbox",label:g.strings.objects.dataAxis.autoUpdateValues}),e.sectionHeader(g.strings.objects.scales.booleanMapping),e.row(null,e.horizontal([0,0],e.setButton({property:"mapping"},r,null,g.strings.objects.scales.selectAll),e.setButton({property:"mapping"},o,null,g.strings.objects.scales.clear))),e.scrollList(t)]},t.classID="scale.categorical<string,boolean>",t.type="scale",t}(c.ScaleClass);t.CategoricalScaleBoolean=I;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){return this.object.properties.mapping[null==e?void 0:e.toString()]},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){void 0===t&&(t={});var n=this.object.properties,r=new a.Scale.CategoricalScale,o=e.filter((function(e){return null!=e})).map((function(e){return e.toString()}));r.inferParameters(o,A.OrderMode.order),t.reuseRange?null!=n.mapping&&(n.mapping=p(r.domain,n.mapping)):n.mapping=null,null==n.mapping&&(n.mapping={},r.domain.forEach((function(e,r){t.rangeImage?n.mapping[r]=t.rangeImage[e%t.rangeImage.length]:n.mapping[r]=null})))},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[];for(var r in t.mapping)Object.prototype.hasOwnProperty.call(t.mapping,r)&&n.push(r);return[e.inputBoolean([{property:"autoDomainMin"},{property:"autoDomainMax"}],{type:"checkbox",label:g.strings.objects.dataAxis.autoUpdateValues}),e.sectionHeader(g.strings.objects.scales.imageMapping),e.scrollList(n.map((function(t){return e.horizontal([2,5,0],e.inputText({property:"mapping"},{updateProperty:!0,value:t,underline:!0,styles:{textAlign:"right"}}),e.inputImageProperty({property:"mapping",field:t}),e.clearButton({property:"mapping",field:t},"",!0))})),{styles:{paddingBottom:5,paddingTop:5}})]},t.classID="scale.categorical<string,image>",t.type="scale",t}(c.ScaleClass);t.CategoricalScaleImage=C;var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.attributeNames=[],t.attributes={},t}return o(t,e),t.prototype.mapDataToAttribute=function(e){return this.object.properties.mapping[null==e?void 0:e.toString()]},t.prototype.initializeState=function(){},t.prototype.inferParameters=function(e,t){var n=this.object.properties,r=new a.Scale.CategoricalScale,o=e.filter((function(e){return null!=e})).map((function(e){return e.toString()}));r.inferParameters(o,A.OrderMode.order),t.reuseRange?null!=n.mapping&&(n.mapping=p(r.domain,n.mapping)):n.mapping=null,null==n.mapping&&(n.mapping={},r.domain.forEach((function(e,r){t.rangeImage?n.mapping[r]=t.rangeImage[e%t.rangeImage.length]:n.mapping[r]=null})))},t.prototype.getAttributePanelWidgets=function(e){var t=this.object.properties,n=[];for(var r in t.mapping)t.mapping.hasOwnProperty(r)&&n.push(r);return[e.inputBoolean([{property:"autoDomainMin"},{property:"autoDomainMax"}],{type:"checkbox",label:g.strings.objects.dataAxis.autoUpdateValues}),e.sectionHeader(g.strings.objects.scales.imageMapping),e.scrollList(n.map((function(t){return e.horizontal([2,5],e.inputText({property:"mapping"},{updateProperty:!0,value:t,underline:!0,styles:{textAlign:"right"}}),e.inputImageProperty({property:"mapping",field:t}),e.clearButton({property:"mapping",field:t},"",!0))})),{styles:{paddingTop:5,paddingBottom:5}})]},t.classID="scale.categorical<image,image>",t.type="scale",t}(c.ScaleClass);t.CategoricalScaleBase64Image=E},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartStateManager=t.defaultDifferenceApproximation=void 0;var s=n(12),l=n(49),c=n(6),u=n(39),A=n(39),d=n(215),g=n(161),p=n(361),h=n(50),f=n(26),m=n(9),y=n(24);t.defaultDifferenceApproximation=.01;var I=function(){function e(e,t,n,r,o,i){void 0===n&&(n=null),void 0===r&&(r={}),void 0===o&&(o={}),this.classCache=new d.ObjectClassCache,this.idIndex=new Map,this.onUpdateListeners=[],this.chart=e,this.chartOrigin=i||s.deepClone(e),this.dataset=t,this.dataflow=new g.DataflowManager(t),this.options=o,null==n?this.initialize(r):this.setState(n)}return e.prototype.getOriginChart=function(){return this.chartOrigin},e.prototype.updateState=function(e,t,n){this.chart=e,this.dataset=t,this.chartState=n,this.initialize({})},e.prototype.resetDifference=function(){this.chartOrigin=s.deepClone(this.chart)},e.prototype.onUpdate=function(e){this.onUpdateListeners.push(e)},e.prototype.clearOnUpdateListener=function(e){var t=this.onUpdateListeners.findIndex((function(t){return t===e}));-1!=t&&(this.onUpdateListeners=i(this.onUpdateListeners.slice(0,t),this.onUpdateListeners.slice(t+1,this.onUpdateListeners.length)))},e.prototype.hasUnsavedChanges=function(){var e,n,r,o,a,s,l,c,d,g,p=this.chartOrigin,h=this.chart,f=h.properties,y=p.properties;try{m.expect_deep_approximately_equals(f,y,t.defaultDifferenceApproximation,!0)}catch(e){return!0}if(p.constraints.length!==h.constraints.length)return!0;for(var I=0;I<p.constraints.length;I++){var C=p.constraints[I],E=h.constraints[I];try{m.expect_deep_approximately_equals(C,E,t.defaultDifferenceApproximation,!0)}catch(e){return!0}}var b=i(A.forEachObject(h)),v=i(A.forEachObject(p));if(b.length!=v.length)return!0;for(I=0;I<b.length;I++){var B=b[I],M=v[I];if(B.kind!=M.kind)return!0;if((null===(e=B.glyph)||void 0===e?void 0:e.classID)!=(null===(n=M.glyph)||void 0===n?void 0:n.classID))return!0;if((null===(r=B.object)||void 0===r?void 0:r._id)!=(null===(o=M.object)||void 0===o?void 0:o._id))return!0;if((null===(a=B.scale)||void 0===a?void 0:a._id)!=(null===(s=M.scale)||void 0===s?void 0:s._id))return!0;if(B.kind==A.ObjectItemKind.ChartElement&&B.kind==A.ObjectItemKind.ChartElement){if(B.chartElement&&M.chartElement){if(B.chartElement._id!=M.chartElement._id)return!0;if(B.chartElement.classID!=M.chartElement.classID)return!0}if(u.isType(B.chartElement.classID,"plot-segment")&&u.isType(M.chartElement.classID,"plot-segment")){var D=B.chartElement,x=M.chartElement;if(D.glyph!=x.glyph)return!0;if(D.table!=x.table)return!0;try{m.expect_deep_approximately_equals(D.filter,x.filter,t.defaultDifferenceApproximation,!0),m.expect_deep_approximately_equals(D.groupBy,x.groupBy,t.defaultDifferenceApproximation,!0),m.expect_deep_approximately_equals(D.order,x.order,t.defaultDifferenceApproximation,!0),m.expect_deep_approximately_equals(D.mappings,x.mappings,t.defaultDifferenceApproximation,!0),m.expect_deep_approximately_equals(D.properties,x.properties,t.defaultDifferenceApproximation,!0)}catch(e){return!0}}try{var w=B.chartElement.properties,Q=M.chartElement.properties;m.expect_deep_approximately_equals(w,Q,t.defaultDifferenceApproximation,!0)}catch(e){return!0}}if(B.kind==A.ObjectItemKind.Glyph&&M.kind==A.ObjectItemKind.Glyph&&B.glyph.table!=M.glyph.table)return!0;if(B.kind==A.ObjectItemKind.Mark&&M.kind==A.ObjectItemKind.Mark){if((null===(l=B.mark)||void 0===l?void 0:l.classID)!=(null===(c=M.mark)||void 0===c?void 0:c.classID))return!0;try{var S=B.mark.properties,N=M.mark.properties;m.expect_deep_approximately_equals(S,N,t.defaultDifferenceApproximation,!0)}catch(e){return!0}}try{var k=B.object.mappings,T=M.object.mappings;m.expect_deep_approximately_equals(k,T,t.defaultDifferenceApproximation,!0)}catch(e){return!0}try{var j=null===(d=B.object)||void 0===d?void 0:d.properties,L=null===(g=M.object)||void 0===g?void 0:g.properties;m.expect_deep_approximately_equals(j,L,t.defaultDifferenceApproximation,!0)}catch(e){return!0}}return!1},e.prototype.setState=function(e){this.chartState=e,this.rebuildID2Object(),this.initializeCache()},e.prototype.setDataset=function(e){this.dataset=e,this.dataflow=new g.DataflowManager(e),this.initialize({})},e.prototype.getTable=function(e){return this.dataflow.getTable(e)},e.prototype.getObjectById=function(e){return this.idIndex.get(e)[0]},e.prototype.getClassById=function(e){var t=o(this.idIndex.get(e),2),n=(t[0],t[1]);return this.classCache.getClass(n)},e.prototype.getElements=function(){var e=this;return s.zipArray(this.chart.elements,this.chartState.elements).map((function(t){var n=o(t,2),r=(n[0],n[1]);return e.classCache.getClass(r)}))},e.prototype.createChartState=function(){var e=this,t=this.chart;return{elements:t.elements.map((function(t){var n={attributes:{}};return u.isType(t.classID,"plot-segment")&&e.mapPlotSegmentState(t,n),n})),scales:t.scales.map((function(){return{attributes:{}}})),scaleMappings:t.scaleMappings,attributes:{}}},e.prototype.initializeCache=function(){var e,t,n,r;this.classCache=new d.ObjectClassCache;var i=this.classCache.createChartClass(null,this.chart,this.chartState);i.setDataflow(this.dataflow),i.setManager(this);try{for(var l=a(s.zip(this.chart.scales,this.chartState.scales)),c=l.next();!c.done;c=l.next()){var A=o(c.value,2),g=A[0],p=A[1];this.classCache.createScaleClass(i,g,p)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}try{for(var h=a(s.zip(this.chart.elements,this.chartState.elements)),f=h.next();!f.done;f=h.next()){var m=o(f.value,2),y=m[0],I=m[1];this.classCache.createChartElementClass(i,y,I),u.isType(y.classID,"plot-segment")&&this.initializePlotSegmentCache(y,I)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}},e.prototype.enumerateClasses=function(e){var t,n,r,i,l,c,A,d;e(this.classCache.getChartClass(this.chartState),this.chartState);try{for(var g=a(s.zip(this.chart.scales,this.chartState.scales)),p=g.next();!p.done;p=g.next()){var h=o(p.value,2),f=(h[0],h[1]);e(this.classCache.getClass(f),f)}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}try{for(var m=a(s.zip(this.chart.elements,this.chartState.elements)),y=m.next();!y.done;y=m.next()){var I=o(y.value,2),C=I[0],E=I[1];if(e(this.classCache.getClass(E),E),u.isType(C.classID,"plot-segment")){var b=C,v=E,B=this.getObjectById(b.glyph);try{for(var M=(l=void 0,a(v.glyphs)),D=M.next();!D.done;D=M.next()){var x=D.value;e(this.classCache.getClass(x),x);try{for(var w=(A=void 0,a(s.zip(B.marks,x.marks))),Q=w.next();!Q.done;Q=w.next()){var S=o(Q.value,2),N=(S[0],S[1]);e(this.classCache.getClass(N),N)}}catch(e){A={error:e}}finally{try{Q&&!Q.done&&(d=w.return)&&d.call(w)}finally{if(A)throw A.error}}}}catch(e){l={error:e}}finally{try{D&&!D.done&&(c=M.return)&&c.call(M)}finally{if(l)throw l.error}}}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}},e.prototype.enumerateClassesByType=function(e,t){this.enumerateClasses((function(n,r){u.isType(n.object.classID,e)&&t(n,r)}))},e.prototype.enumeratePlotSegments=function(e){var t,n;try{for(var r=a(s.zip(this.chart.elements,this.chartState.elements)),i=r.next();!i.done;i=r.next()){var l=o(i.value,2),c=l[0],A=l[1],d=this.classCache.getClass(A);u.isType(c.classID,"plot-segment")&&e(d)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.initializeState=function(e){void 0===e&&(e={}),this.enumerateClasses((function(t){t.initializeState();var n=e[t.object._id];n&&(t.state.attributes=r(r({},t.state.attributes),n))}))},e.prototype.initialize=function(e){this.chartState=this.createChartState(),this.rebuildID2Object(),this.initializeCache(),this.initializeState(e)},e.prototype.rebuildID2Object=function(){var e,t,n,r,i,l,c,u;this.idIndex.clear();try{for(var A=a(s.zipArray(this.chart.elements,this.chartState.elements)),d=A.next();!d.done;d=A.next()){var g=o(d.value,2),p=g[0],h=g[1];this.idIndex.set(p._id,[p,h])}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=A.return)&&t.call(A)}finally{if(e)throw e.error}}try{for(var f=a(s.zipArray(this.chart.scales,this.chartState.scales)),m=f.next();!m.done;m=f.next()){var y=o(m.value,2),I=y[0],C=y[1];this.idIndex.set(I._id,[I,C])}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}try{for(var E=a(this.chart.glyphs),b=E.next();!b.done;b=E.next()){var v=b.value;this.idIndex.set(v._id,[v,null]);try{for(var B=(c=void 0,a(v.marks)),M=B.next();!M.done;M=B.next()){p=M.value;this.idIndex.set(p._id,[p,null])}}catch(e){c={error:e}}finally{try{M&&!M.done&&(u=B.return)&&u.call(B)}finally{if(c)throw c.error}}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(l=E.return)&&l.call(E)}finally{if(i)throw i.error}}},e.prototype.isNameUsed=function(e){var t,n,r,o,i,s,l,c,u=this.chart,A=new Set;try{for(var d=a(u.scales),g=d.next();!g.done;g=d.next()){var p=g.value;A.add(p.properties.name)}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var h=a(u.elements),f=h.next();!f.done;f=h.next()){var m=f.value;A.add(m.properties.name)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}try{for(var y=a(u.glyphs),I=y.next();!I.done;I=y.next()){var C=I.value;A.add(C.properties.name);try{for(var E=(l=void 0,a(C.marks)),b=E.next();!b.done;b=E.next()){m=b.value;A.add(m.properties.name)}}catch(e){l={error:e}}finally{try{b&&!b.done&&(c=E.return)&&c.call(E)}finally{if(l)throw l.error}}}}catch(e){i={error:e}}finally{try{I&&!I.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}return A.has(e)},e.prototype.findUnusedName=function(e){for(var t=1;;t++){var n=e+t.toString();if(!this.isNameUsed(n))return n}},e.prototype.createObject=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r="Object",o=h.ObjectClasses.GetMetadata(e);o&&o.displayName&&(r=o.displayName);var a=h.ObjectClasses.CreateDefault.apply(h.ObjectClasses,i([e],t)),s=this.findUnusedName(r);return a.properties.name=s,a},e.prototype.addGlyph=function(e,t){var n={_id:s.uniqueID(),classID:e,properties:{name:this.findUnusedName("Glyph")},table:t,marks:[{_id:s.uniqueID(),classID:"mark.anchor",properties:{name:"Anchor"},mappings:{x:{type:c.MappingType.parent,parentAttribute:"icx"},y:{type:c.MappingType.parent,parentAttribute:"icy"}}}],mappings:{},constraints:[]};return this.idIndex.set(n._id,[n,null]),this.idIndex.set(n.marks[0]._id,[n.marks[0],null]),this.chart.glyphs.push(n),n},e.prototype.removeGlyph=function(e){var t,n,r,o,i,s,l=this.chart.glyphs.indexOf(e);if(!(l<0)){this.idIndex.delete(e._id);try{for(var c=a(e.marks),A=c.next();!A.done;A=c.next()){var d=A.value;this.idIndex.delete(d._id)}}catch(e){t={error:e}}finally{try{A&&!A.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.chart.glyphs.splice(l,1);var g=[];try{for(var p=a(this.chart.elements),h=p.next();!h.done;h=p.next()){d=h.value;if(u.isType(d.classID,"plot-segment"))(y=d).glyph==e._id&&g.push(y)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}try{for(var f=a(g),m=f.next();!m.done;m=f.next()){var y=m.value;this.removeChartElement(y)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}},e.prototype.addMarkToGlyph=function(e,t){var n=this;t.marks.push(e),this.enumeratePlotSegments((function(r){var o,i;if(r.object.glyph==t._id)try{for(var s=a(r.state.glyphs),l=s.next();!l.done;l=s.next()){var c=l.value,u=n.classCache.getGlyphClass(c),A={attributes:{}};c.marks.push(A),n.classCache.createMarkClass(u,e,A).initializeState()}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}))},e.prototype.removeMarkFromGlyph=function(e,t){var n=t.marks.indexOf(e);n<0||(t.marks.splice(n,1),t.constraints=this.validateConstraints(t.constraints,t.marks),this.idIndex.delete(e._id),this.enumeratePlotSegments((function(e){var r,o;if(e.object.glyph==t._id)try{for(var i=a(e.state.glyphs),s=i.next();!s.done;s=i.next()){s.value.marks.splice(n,1)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}})))},e.prototype.addChartElement=function(e,t){void 0===t&&(t=null);var n={attributes:{}};u.isType(e.classID,"plot-segment")&&this.mapPlotSegmentState(e,n),null!=t&&t>=0&&t<=this.chart.elements.length?(this.chart.elements.splice(t,0,e),this.chartState.elements.splice(t,0,n)):(this.chart.elements.push(e),this.chartState.elements.push(n));var r=this.classCache.createChartElementClass(this.classCache.getChartClass(this.chartState),e,n);u.isType(e.classID,"plot-segment")&&this.initializePlotSegmentCache(e,n),r.initializeState(),u.isType(e.classID,"plot-segment")&&this.initializePlotSegmentState(r),this.idIndex.set(e._id,[e,n])},e.prototype.reorderArray=function(e,t,n){var r=e.splice(t,1)[0];t<n?e.splice(n-1,0,r):e.splice(n,0,r)},e.prototype.reorderChartElement=function(e,t){t!=e&&t!=e+1&&(this.reorderArray(this.chart.elements,e,t),this.reorderArray(this.chartState.elements,e,t))},e.prototype.reorderGlyphElement=function(e,t,n){var r,i,l,c;if(n!=t&&n!=t+1){try{for(var A=a(s.zip(this.chart.elements,this.chartState.elements)),d=A.next();!d.done;d=A.next()){var g=o(d.value,2),p=g[0],h=g[1];if(u.isType(p.classID,"plot-segment")){var f=h;if(p.glyph==e._id)try{for(var m=(l=void 0,a(f.glyphs)),y=m.next();!y.done;y=m.next()){var I=y.value;this.reorderArray(I.marks,t,n)}}catch(e){l={error:e}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(l)throw l.error}}}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=A.return)&&i.call(A)}finally{if(r)throw r.error}}this.reorderArray(e.marks,t,n)}},e.prototype.applyScrollingFilter=function(e,t){var n,r=[],o=this.getTable(t);if(e.type===y.AxisDataBindingType.Default)return o.rows.map((function(e,t){return t}));var i=null===(n=l.parse(null==e?void 0:e.expression))||void 0===n?void 0:n.args[0];if(e.type===y.AxisDataBindingType.Categorical)for(var a=function(t){var n=o.getRowContext(t);void 0===e.categories.find((function(e){return e===i.getStringValue(n)}))&&e.allCategories||r.push(t)},s=0;s<o.rows.length;s++)a(s);else if(e.type===y.AxisDataBindingType.Numerical)for(s=0;s<o.rows.length;s++){var c=o.getRowContext(s),u=i.getValue(c);e.domainMin<e.domainMax?u>=e.domainMin&&u<=e.domainMax&&r.push(s):u>=e.domainMax&&u<=e.domainMin&&r.push(s)}return r},e.prototype.mapPlotSegmentState=function(e,t){var n,r,i,l,c=s.getById(this.chart.glyphs,e.glyph),u=this.getTable(c.table),A=new Map;if(t.dataRowIndices)try{for(var d=a(s.zip(t.dataRowIndices,t.glyphs)),g=d.next();!g.done;g=d.next()){var h=o(g.value,2),f=h[0],m=h[1];A.set(f.join(","),m)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var y=u.rows.map((function(e,t){return t}));if(e.properties.xData&&e.properties.yData){var I=e.properties.xData,C=this.applyScrollingFilter(I,e.table),E=e.properties.yData,b=this.applyScrollingFilter(E,e.table);y=C.filter((function(e){return b.includes(e)}))}else{if(e.properties.xData){var v=e.properties.xData;y=this.applyScrollingFilter(v,e.table)}if(e.properties.yData){v=e.properties.yData;y=this.applyScrollingFilter(v,e.table)}}if(e.properties.axis){v=e.properties.axis;y=this.applyScrollingFilter(v,e.table)}if(t.dataRowIndices=y.map((function(e){return[e]})),e.filter)try{var B=new p.CompiledFilter(e.filter,this.dataflow.cache);y=y.filter((function(e){return B.filter(u.getRowContext(e))}))}catch(e){}if(e.groupBy){if(e.groupBy.expression){var M=this.dataflow.cache.parse(e.groupBy.expression),D=new Map;t.dataRowIndices=[];try{for(var x=a(y),w=x.next();!w.done;w=x.next()){var Q=w.value,S=M.getStringValue(u.getRowContext(Q));if(D.has(S))D.get(S).push(Q);else{var N=[Q];D.set(S,N),t.dataRowIndices.push(N)}}}catch(e){i={error:e}}finally{try{w&&!w.done&&(l=x.return)&&l.call(x)}finally{if(i)throw i.error}}}}else t.dataRowIndices=y.map((function(e){return[e]}));t.glyphs=t.dataRowIndices.map((function(e){return A.has(e.join(","))?A.get(e.join(",")):{marks:c.marks.map((function(){return{attributes:{}}})),attributes:{}}}))},e.prototype.initializePlotSegmentCache=function(e,t){var n,r,i,l,c=e,u=t,A=this.classCache.getPlotSegmentClass(u),d=this.getObjectById(c.glyph);try{for(var g=a(u.glyphs),p=g.next();!p.done;p=g.next()){var h=p.value;if(!this.classCache.hasClass(h)){var f=this.classCache.createGlyphClass(A,d,h);try{for(var m=(i=void 0,a(s.zip(d.marks,h.marks))),y=m.next();!y.done;y=m.next()){var I=o(y.value,2),C=I[0],E=I[1];this.classCache.createMarkClass(f,C,E)}}catch(e){i={error:e}}finally{try{y&&!y.done&&(l=m.return)&&l.call(m)}finally{if(i)throw i.error}}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}},e.prototype.initializePlotSegmentState=function(e){var t,n,r,i,l=this.getObjectById(e.object.glyph);try{for(var c=a(e.state.glyphs),u=c.next();!u.done;u=c.next()){var A=u.value;this.classCache.getGlyphClass(A).initializeState();try{for(var d=(r=void 0,a(s.zip(l.marks,A.marks))),g=d.next();!g.done;g=d.next()){var p=o(g.value,2),h=(p[0],p[1]);this.classCache.getMarkClass(h).initializeState()}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},e.prototype.triggerUpdateListeners=function(){var e=this;this.onUpdateListeners.forEach((function(t){return t(e.chart)}))},e.prototype.removeChartElement=function(e){var t=this.chart.elements.indexOf(e);t<0||(this.chart.elements.splice(t,1),this.chartState.elements.splice(t,1),this.idIndex.delete(e._id),this.chart.constraints=this.validateConstraints(this.chart.constraints,this.chart.elements))},e.prototype.remapPlotSegmentGlyphs=function(e){var t=this.chart.elements.indexOf(e);if(!(t<0)){var n=this.chartState.elements[t];this.mapPlotSegmentState(e,n),this.initializePlotSegmentCache(e,n),this.solveConstraints(),this.triggerUpdateListeners()}},e.prototype.addScale=function(e){var t={attributes:{}};this.chart.scales.push(e),this.chartState.scales.push(t),this.classCache.createScaleClass(this.classCache.getChartClass(this.chartState),e,t).initializeState(),this.idIndex.set(e._id,[e,t])},e.prototype.removeScale=function(e){var t=this.chart.scales.indexOf(e);t<0||(this.chart.scales.splice(t,1),this.chartState.scales.splice(t,1),this.idIndex.delete(e._id))},e.prototype.getMarkClass=function(e){return this.classCache.getMarkClass(e)},e.prototype.getGlyphClass=function(e){return this.classCache.getGlyphClass(e)},e.prototype.getChartElementClass=function(e){return this.classCache.getChartElementClass(e)},e.prototype.getPlotSegmentClass=function(e){return this.classCache.getPlotSegmentClass(e)},e.prototype.getScaleClass=function(e){return this.classCache.getScaleClass(e)},e.prototype.getChartClass=function(e){return this.classCache.getChartClass(e)},e.prototype.getClass=function(e){return this.classCache.getClass(e)},e.prototype.findGlyphState=function(e,t,n){return void 0===n&&(n=0),null==n&&(n=0),this.getClassById(e._id).state.glyphs[n]},e.prototype.findMarkState=function(e,t,n,r){var o;void 0===r&&(r=0);var i=t.marks.indexOf(n);return null===(o=this.findGlyphState(e,t,r))||void 0===o?void 0:o.marks[i]},e.prototype.validateConstraints=function(e,t){var n,r,o=new Set;try{for(var i=a(t),s=i.next();!s.done;s=i.next()){var l=s.value;o.add(l._id)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e.filter((function(e){switch(e.type){case"snap":return o.has(e.attributes.element)&&o.has(e.attributes.targetElement);default:return!0}}))},e.prototype.resolveResource=function(e){var t,n,r=e.match(/^resource:([.*]+)$/);if(!r||!this.chart.resources)return e;var o=r[1];try{for(var i=a(this.chart.resources),s=i.next();!s.done;s=i.next()){var l=s.value;if(l.id==o)return l.data}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.getChartDataContext=function(e){if(null==e)return null;var t=this.dataflow.getTable(e);return t.getGroupedContext(s.makeRange(0,t.rows.length))},e.prototype.getGlpyhDataContext=function(e,t){var n=this.dataflow.getTable(e.table),r=this.getClassById(e._id).state.dataRowIndices[t];return n.getGroupedContext(r)},e.prototype.getGlpyhDataContexts=function(e,t){var n=this.dataflow.getTable(e.table);return this.getClassById(e._id).state.dataRowIndices.map((function(e){return n.getGroupedContext(e)}))},e.prototype.getGroupedExpressionVector=function(e,t,n){var r=this.dataflow.cache.parse(n),o=this.dataflow.getTable(e);if(!o)return[];for(var i=[],a=0;a<o.rows.length;a++)i.push(a);if(t&&t.expression){var l=this.dataflow.cache.parse(t.expression);return s.gather(i,(function(e){return l.getStringValue(o.getRowContext(e))})).map((function(e){return r.getValue(o.getGroupedContext(e))}))}return i.map((function(e){return r.getValue(o.getGroupedContext([e]))}))},e.prototype.solveConstraints=function(e,t){var n,r;if(void 0===e&&(e=null),void 0===t&&(t=!1),t)(u=new f.ChartConstraintSolver("glyphs")).setup(this),u.destroy();else for(var o=null!=e?2:1,i=["chart","glyphs"],s=0;s<o;s++){try{for(var l=(n=void 0,a(i)),c=l.next();!c.done;c=l.next()){var u,A=c.value;(u=new f.ChartConstraintSolver(A)).setup(this),e&&e(u),u.solve(),u.destroy()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}e=null}},e}();t.ChartStateManager=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledFilter=void 0;var r=function(e,t){if(e.categories){var n=t.parse(e.categories.expression),r=e.categories.values;this.filter=function(e){var t=n.getStringValue(e);return Object.prototype.hasOwnProperty.call(r,t)&&1==r[t]}}else if(e.expression){var o=t.parse(e.expression);this.filter=function(e){return o.getValue(e)}}};t.CompiledFilter=r},function(e,t,n){e.exports=n(74)},function(e,t,n){
/*!
 * chai
 * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Dependencies that are used for multiple exports are required here only once
 */
var r=n(364);
/*!
 * test utility
 */t.test=n(365),
/*!
 * type utility
 */
t.type=n(169),
/*!
 * expectTypes utility
 */
t.expectTypes=n(366),
/*!
 * message utility
 */
t.getMessage=n(367),
/*!
 * actual utility
 */
t.getActual=n(218),
/*!
 * Inspect util
 */
t.inspect=n(170),
/*!
 * Object Display util
 */
t.objDisplay=n(219),
/*!
 * Flag utility
 */
t.flag=n(51),
/*!
 * Flag transferring utility
 */
t.transferFlags=n(75),
/*!
 * Deep equal utility
 */
t.eql=n(369),
/*!
 * Deep path info
 */
t.getPathInfo=r.getPathInfo,
/*!
 * Check if a property exists
 */
t.hasProperty=r.hasProperty,
/*!
 * Function name
 */
t.getName=n(220),
/*!
 * add Property
 */
t.addProperty=n(370),
/*!
 * add Method
 */
t.addMethod=n(371),
/*!
 * overwrite Property
 */
t.overwriteProperty=n(372),
/*!
 * overwrite Method
 */
t.overwriteMethod=n(373),
/*!
 * Add a chainable method
 */
t.addChainableMethod=n(374),
/*!
 * Overwrite chainable method
 */
t.overwriteChainableMethod=n(375),
/*!
 * Compare by inspect method
 */
t.compareByInspect=n(376),
/*!
 * Get own enumerable property symbols method
 */
t.getOwnEnumerablePropertySymbols=n(222),
/*!
 * Get own enumerable properties method
 */
t.getOwnEnumerableProperties=n(377),
/*!
 * Checks error against a given set of criteria
 */
t.checkError=n(378),
/*!
 * Proxify util
 */
t.proxify=n(123),
/*!
 * addLengthGuard util
 */
t.addLengthGuard=n(122),
/*!
 * isProxyEnabled helper
 */
t.isProxyEnabled=n(121),
/*!
 * isNaN method
 */
t.isNaN=n(379)},function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}function o(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(e){if("constructor"===e||"__proto__"===e||"prototype"===e)return{};var t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,"$1")}}))}function i(e,t,n){var r=e,o=null;n=void 0===n?t.length:n;for(var i=0;i<n;i++){var a=t[i];r&&(r=void 0===a.p?r[a.i]:r[a.p],i===n-1&&(o=r))}return o}function a(e,t){var n=o(t),a=n[n.length-1],s={parent:n.length>1?i(e,n,n.length-1):e,name:a.p||a.i,value:i(e,n)};return s.exists=r(s.parent,s.name),s}e.exports={hasProperty:r,getPathInfo:a,getPathValue:function(e,t){return a(e,t).value},setPathValue:function(e,t,n){return function(e,t,n){for(var r=e,o=n.length,i=null,a=0;a<o;a++){var s=null,l=null;if(i=n[a],a===o-1)r[s=void 0===i.p?i.i:i.p]=t;else if(void 0!==i.p&&r[i.p])r=r[i.p];else if(void 0!==i.i&&r[i.i])r=r[i.i];else{var c=n[a+1];s=void 0===i.p?i.i:i.p,l=void 0===c.p?[]:{},r[s]=l,r=r[s]}}}(e,n,o(t)),e}}},function(e,t,n){
/*!
 * Chai - test utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(51);e.exports=function(e,t){var n=r(e,"negate"),o=t[0];return n?!o:o}},function(e,t,n){
/*!
 * Chai - expectTypes utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(216),o=n(51),i=n(169);e.exports=function(e,t){var n=o(e,"message"),a=o(e,"ssfi");n=n?n+": ":"",e=o(e,"object"),(t=t.map((function(e){return e.toLowerCase()}))).sort();var s=t.map((function(e,n){var r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+r+" "+e})).join(", "),l=i(e).toLowerCase();if(!t.some((function(e){return l===e})))throw new r(n+"object tested must be "+s+", but "+l+" given",void 0,a)}},function(e,t,n){
/*!
 * Chai - message composition utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(51),o=n(218),i=n(219);e.exports=function(e,t){var n=r(e,"negate"),a=r(e,"object"),s=t[3],l=o(e,t),c=n?t[2]:t[1],u=r(e,"message");return"function"==typeof c&&(c=c()),c=(c=c||"").replace(/#\{this\}/g,(function(){return i(a)})).replace(/#\{act\}/g,(function(){return i(l)})).replace(/#\{exp\}/g,(function(){return i(s)})),u?u+": "+c:c}},function(e,t){
/*!
 * Chai - getEnumerableProperties utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},function(e,t,n){"use strict";
/*!
 * deep-eql
 * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */var r=n(169);function o(){this._key="chai/deep-eql__"+Math.random()+Date.now()}o.prototype={get:function(e){return e[this._key]},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}};var i="function"==typeof WeakMap?WeakMap:o;
/*!
 * Check to see if the MemoizeMap has recorded a result of the two operands
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {MemoizeMap} memoizeMap
 * @returns {Boolean|null} result
*/function a(e,t,n){if(!n||f(e)||f(t))return null;var r=n.get(e);if(r){var o=r.get(t);if("boolean"==typeof o)return o}return null}
/*!
 * Set the result of the equality into the MemoizeMap
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {MemoizeMap} memoizeMap
 * @param {Boolean} result
*/function s(e,t,n,r){if(n&&!f(e)&&!f(t)){var o=n.get(e);o?o.set(t,r):((o=new i).set(t,r),n.set(e,o))}}
/*!
 * Primary Export
 */function l(e,t,n){if(n&&n.comparator)return u(e,t,n);var r=c(e,t);return null!==r?r:u(e,t,n)}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!f(e)&&!f(t)&&null}
/*!
 * The main logic of the `deepEqual` function.
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {Object} [options] (optional) Additional options
 * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
 * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
    complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
    references to blow the stack.
 * @return {Boolean} equal match
*/function u(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new i);var o=n&&n.comparator,u=a(e,t,n.memoize);if(null!==u)return u;var f=a(t,e,n.memoize);if(null!==f)return f;if(o){var m=o(e,t);if(!1===m||!0===m)return s(e,t,n.memoize,m),m;var y=c(e,t);if(null!==y)return y}var I=r(e);if(I!==r(t))return s(e,t,n.memoize,!1),!1;s(e,t,n.memoize,!0);var C=function(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return l(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":case"Error":return e===t;case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(e,t,r);case"RegExp":
/*!
 * Compare two Regular Expressions for equality.
 *
 * @param {RegExp} leftHandOperand
 * @param {RegExp} rightHandOperand
 * @return {Boolean} result
 */
return function(e,t){return e.toString()===t.toString()}
/*!
 * Compare two Sets/Maps for equality. Faster than other equality functions.
 *
 * @param {Set} leftHandOperand
 * @param {Set} rightHandOperand
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */(e,t);case"Generator":
/*!
 * Simple equality for generator objects such as those returned by generator functions.
 *
 * @param {Iterable} leftHandOperand
 * @param {Iterable} rightHandOperand
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */
return function(e,t,n){return d(p(e),p(t),n)}
/*!
 * Determine if the given object has an @@iterator function.
 *
 * @param {Object} target
 * @return {Boolean} `true` if the object has an @@iterator function.
 */(e,t,r);case"DataView":return d(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return d(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return A(e,t,r);default:
/*!
 * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
 * for each enumerable key in the object.
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */
return function(e,t,n){var r=h(e),o=h(t);if(r.length&&r.length===o.length)return r.sort(),o.sort(),!1!==d(r,o)&&
/*!
 * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
 * each key. If any value of the given key is not equal, the function will return false (early).
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */
function(e,t,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===l(e[n[i]],t[n[i]],r))return!1;return!0}(e,t,r,n);var i=g(e),a=g(t);if(i.length&&i.length===a.length)return i.sort(),a.sort(),d(i,a,n);if(0===r.length&&0===i.length&&0===o.length&&0===a.length)return!0;return!1}
/*!
 * Returns true if the argument is a primitive.
 *
 * This intentionally returns true for all objects that can be compared by reference,
 * including functions and symbols.
 *
 * @param {Mixed} value
 * @return {Boolean} result
 */(e,t,r)}}(e,t,I,n);return s(e,t,n.memoize,C),C}function A(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var r=[],o=[];return e.forEach((function(e,t){r.push([e,t])})),t.forEach((function(e,t){o.push([e,t])})),d(r.sort(),o.sort(),n)}
/*!
 * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
 *
 * @param {Iterable} leftHandOperand
 * @param {Iterable} rightHandOperand
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */function d(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===l(e[o],t[o],n))return!1;return!0}
/*!
 * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
 * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
 *
 * @param {Object} target
 * @returns {Array} an array of entries from the @@iterator function
 */
function g(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return p(e[Symbol.iterator]())}catch(e){return[]}return[]}
/*!
 * Gets all entries from a Generator. This will consume the generator - which could have side effects.
 *
 * @param {Generator} target
 * @returns {Array} an array of entries from the Generator.
 */function p(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}
/*!
 * Gets all own and inherited enumerable keys from a target.
 *
 * @param {Object} target
 * @returns {Array} an array of own and inherited enumerable keys from the target.
 */function h(e){var t=[];for(var n in e)t.push(n);return t}function f(e){return null===e||"object"!=typeof e}e.exports=l,e.exports.MemoizeMap=i},function(e,t,n){
/*!
 * Chai - addProperty utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(74),o=n(51),i=n(121),a=n(75);e.exports=function(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:function e(){i()||o(this,"lockSsfi")||o(this,"ssfi",e);var t=n.call(this);if(void 0!==t)return t;var s=new r.Assertion;return a(this,s),s},configurable:!0})}},function(e,t,n){
/*!
 * Chai - addMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(122),o=n(74),i=n(51),a=n(123),s=n(75);e.exports=function(e,t,n){var l=function(){i(this,"lockSsfi")||i(this,"ssfi",l);var e=n.apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return s(this,t),t};r(l,t,!1),e[t]=a(l,t)}},function(e,t,n){
/*!
 * Chai - overwriteProperty utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(74),o=n(51),i=n(121),a=n(75);e.exports=function(e,t,n){var s=Object.getOwnPropertyDescriptor(e,t),l=function(){};s&&"function"==typeof s.get&&(l=s.get),Object.defineProperty(e,t,{get:function e(){i()||o(this,"lockSsfi")||o(this,"ssfi",e);var t=o(this,"lockSsfi");o(this,"lockSsfi",!0);var s=n(l).call(this);if(o(this,"lockSsfi",t),void 0!==s)return s;var c=new r.Assertion;return a(this,c),c},configurable:!0})}},function(e,t,n){
/*!
 * Chai - overwriteMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(122),o=n(74),i=n(51),a=n(123),s=n(75);e.exports=function(e,t,n){var l=e[t],c=function(){throw new Error(t+" is not a function")};l&&"function"==typeof l&&(c=l);var u=function(){i(this,"lockSsfi")||i(this,"ssfi",u);var e=i(this,"lockSsfi");i(this,"lockSsfi",!0);var t=n(c).apply(this,arguments);if(i(this,"lockSsfi",e),void 0!==t)return t;var r=new o.Assertion;return s(this,r),r};r(u,t,!1),e[t]=a(u,t)}},function(e,t,n){
/*!
 * Chai - addChainingMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(122),o=n(74),i=n(51),a=n(123),s=n(75),l="function"==typeof Object.setPrototypeOf,c=function(){},u=Object.getOwnPropertyNames(c).filter((function(e){var t=Object.getOwnPropertyDescriptor(c,e);return"object"!=typeof t||!t.configurable})),A=Function.prototype.call,d=Function.prototype.apply;e.exports=function(e,t,n,c){"function"!=typeof c&&(c=function(){});var g={method:n,chainingBehavior:c};e.__methods||(e.__methods={}),e.__methods[t]=g,Object.defineProperty(e,t,{get:function(){g.chainingBehavior.call(this);var n=function(){i(this,"lockSsfi")||i(this,"ssfi",n);var e=g.method.apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return s(this,t),t};if(r(n,t,!0),l){var c=Object.create(this);c.call=A,c.apply=d,Object.setPrototypeOf(n,c)}else{Object.getOwnPropertyNames(e).forEach((function(t){if(-1===u.indexOf(t)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)}}))}return s(this,n),a(n)},configurable:!0})}},function(e,t,n){
/*!
 * Chai - overwriteChainableMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(74),o=n(75);e.exports=function(e,t,n,i){var a=e.__methods[t],s=a.chainingBehavior;a.chainingBehavior=function(){var e=i(s).call(this);if(void 0!==e)return e;var t=new r.Assertion;return o(this,t),t};var l=a.method;a.method=function(){var e=n(l).apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return o(this,t),t}}},function(e,t,n){
/*!
 * Chai - compareByInspect utility
 * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(170);e.exports=function(e,t){return r(e)<r(t)?-1:1}},function(e,t,n){
/*!
 * Chai - getOwnEnumerableProperties utility
 * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=n(222);e.exports=function(e){return Object.keys(e).concat(r(e))}},function(e,t,n){"use strict";var r=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;function o(e){var t="";if(void 0===e.name){var n=String(e).match(r);n&&(t=n[1])}else t=e.name;return t}e.exports={compatibleInstance:function(e,t){return t instanceof Error&&e===t},compatibleConstructor:function(e,t){return t instanceof Error?e.constructor===t.constructor||e instanceof t.constructor:(t.prototype instanceof Error||t===Error)&&(e.constructor===t||e instanceof t)},compatibleMessage:function(e,t){var n="string"==typeof e?e:e.message;return t instanceof RegExp?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)},getMessage:function(e){var t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t},getConstructorName:function(e){var t=e;return e instanceof Error?t=o(e.constructor):"function"==typeof e&&(t=o(e).trim()||o(new e)),t}}},function(e,t){e.exports=Number.isNaN||
/*!
 * Chai - isNaN utility
 * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
 * MIT Licensed
 */
function(e){return e!=e}},function(e,t,n){
/*!
 * chai
 * http://chaijs.com
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=n(86);e.exports=function(e,t){
/*!
   * Module dependencies.
   */
var n=e.AssertionError,o=t.flag;
/*!
   * Module export.
   */
/*!
   * Assertion Constructor
   *
   * Creates object for chaining.
   *
   * `Assertion` objects contain metadata in the form of flags. Three flags can
   * be assigned during instantiation by passing arguments to this constructor:
   *
   * - `object`: This flag contains the target of the assertion. For example, in
   *   the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
   *   contain `numKittens` so that the `equal` assertion can reference it when
   *   needed.
   *
   * - `message`: This flag contains an optional custom error message to be
   *   prepended to the error message that's generated by the assertion when it
   *   fails.
   *
   * - `ssfi`: This flag stands for "start stack function indicator". It
   *   contains a function reference that serves as the starting point for
   *   removing frames from the stack trace of the error that's created by the
   *   assertion when it fails. The goal is to provide a cleaner stack trace to
   *   end users by removing Chai's internal functions. Note that it only works
   *   in environments that support `Error.captureStackTrace`, and only when
   *   `Chai.config.includeStack` hasn't been set to `false`.
   *
   * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
   *   should retain its current value, even as assertions are chained off of
   *   this object. This is usually set to `true` when creating a new assertion
   *   from within another assertion. It's also temporarily set to `true` before
   *   an overwritten assertion gets called by the overwriting assertion.
   *
   * @param {Mixed} obj target of the assertion
   * @param {String} msg (optional) custom error message
   * @param {Function} ssfi (optional) starting point for removing stack frames
   * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
   * @api private
   */
function i(e,n,r,a){return o(this,"ssfi",r||i),o(this,"lockSsfi",a),o(this,"object",e),o(this,"message",n),t.proxify(this)}e.Assertion=i,Object.defineProperty(i,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack=e}}),Object.defineProperty(i,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff=e}}),i.addProperty=function(e,n){t.addProperty(this.prototype,e,n)},i.addMethod=function(e,n){t.addMethod(this.prototype,e,n)},i.addChainableMethod=function(e,n,r){t.addChainableMethod(this.prototype,e,n,r)},i.overwriteProperty=function(e,n){t.overwriteProperty(this.prototype,e,n)},i.overwriteMethod=function(e,n){t.overwriteMethod(this.prototype,e,n)},i.overwriteChainableMethod=function(e,n,r){t.overwriteChainableMethod(this.prototype,e,n,r)},i.prototype.assert=function(e,i,a,s,l,c){var u=t.test(this,arguments);if(!1!==c&&(c=!0),void 0===s&&void 0===l&&(c=!1),!0!==r.showDiff&&(c=!1),!u){i=t.getMessage(this,arguments);var A=t.getActual(this,arguments);throw new n(i,{actual:A,expected:s,showDiff:c},r.includeStack?this.assert:o(this,"ssfi"))}},
/*!
   * ### ._obj
   *
   * Quick reference to stored `actual` value for plugin developers.
   *
   * @api private
   */
Object.defineProperty(i.prototype,"_obj",{get:function(){return o(this,"object")},set:function(e){o(this,"object",e)}})}},function(e,t){
/*!
 * chai
 * http://chaijs.com
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t){var n=e.Assertion,r=e.AssertionError,o=t.flag;function i(e,n){n&&o(this,"message",n),e=e.toLowerCase();var r=o(this,"object"),i=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(r).toLowerCase(),"expected #{this} to be "+i+e,"expected #{this} not to be "+i+e)}function a(e,n){return t.isNaN(e)&&t.isNaN(n)||e===n}function s(){o(this,"contains",!0)}function l(e,i){i&&o(this,"message",i);var s=o(this,"object"),l=t.type(s).toLowerCase(),c=o(this,"message"),u=o(this,"negate"),A=o(this,"ssfi"),d=o(this,"deep"),g=d?"deep ":"";c=c?c+": ":"";var p=!1;switch(l){case"string":p=-1!==s.indexOf(e);break;case"weakset":if(d)throw new r(c+"unable to use .deep.include with WeakSet",void 0,A);p=s.has(e);break;case"map":var h=d?t.eql:a;s.forEach((function(t){p=p||h(t,e)}));break;case"set":d?s.forEach((function(n){p=p||t.eql(n,e)})):p=s.has(e);break;case"array":p=d?s.some((function(n){return t.eql(n,e)})):-1!==s.indexOf(e);break;default:if(e!==Object(e))throw new r(c+"object tested must be an array, a map, an object, a set, a string, or a weakset, but "+l+" given",void 0,A);var f=Object.keys(e),m=null,y=0;if(f.forEach((function(i){var a=new n(s);if(t.transferFlags(this,a,!0),o(a,"lockSsfi",!0),u&&1!==f.length)try{a.property(i,e[i])}catch(e){if(!t.checkError.compatibleConstructor(e,r))throw e;null===m&&(m=e),y++}else a.property(i,e[i])}),this),u&&f.length>1&&y===f.length)throw m;return}this.assert(p,"expected #{this} to "+g+"include "+t.inspect(e),"expected #{this} to not "+g+"include "+t.inspect(e))}function c(){var e=o(this,"object"),n=t.type(e);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function u(e,t){t&&o(this,"message",t);var n=o(this,"object");if(o(this,"deep")){var r=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(e),o(this,"lockSsfi",r)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function A(e,n){n&&o(this,"message",n),this.assert(t.eql(e,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function d(e,i){i&&o(this,"message",i);var a,s=o(this,"object"),l=o(this,"doLength"),c=o(this,"message"),u=c?c+": ":"",A=o(this,"ssfi"),d=t.type(s).toLowerCase(),g=t.type(e).toLowerCase(),p=!0;if(l&&"map"!==d&&"set"!==d&&new n(s,c,A,!0).to.have.property("length"),l||"date"!==d||"date"===g)if("number"===g||!l&&"number"!==d)if(l||"date"===d||"number"===d)p=!1;else{a=u+"expected "+("string"===d?"'"+s+"'":s)+" to be a number or a date"}else a=u+"the argument to above must be a number";else a=u+"the argument to above must be a date";if(p)throw new r(a,void 0,A);if(l){var h,f="length";"map"===d||"set"===d?(f="size",h=s.size):h=s.length,this.assert(h>e,"expected #{this} to have a "+f+" above #{exp} but got #{act}","expected #{this} to not have a "+f+" above #{exp}",e,h)}else this.assert(s>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function g(e,i){i&&o(this,"message",i);var a,s=o(this,"object"),l=o(this,"doLength"),c=o(this,"message"),u=c?c+": ":"",A=o(this,"ssfi"),d=t.type(s).toLowerCase(),g=t.type(e).toLowerCase(),p=!0;if(l&&"map"!==d&&"set"!==d&&new n(s,c,A,!0).to.have.property("length"),l||"date"!==d||"date"===g)if("number"===g||!l&&"number"!==d)if(l||"date"===d||"number"===d)p=!1;else{a=u+"expected "+("string"===d?"'"+s+"'":s)+" to be a number or a date"}else a=u+"the argument to least must be a number";else a=u+"the argument to least must be a date";if(p)throw new r(a,void 0,A);if(l){var h,f="length";"map"===d||"set"===d?(f="size",h=s.size):h=s.length,this.assert(h>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,h)}else this.assert(s>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function p(e,i){i&&o(this,"message",i);var a,s=o(this,"object"),l=o(this,"doLength"),c=o(this,"message"),u=c?c+": ":"",A=o(this,"ssfi"),d=t.type(s).toLowerCase(),g=t.type(e).toLowerCase(),p=!0;if(l&&"map"!==d&&"set"!==d&&new n(s,c,A,!0).to.have.property("length"),l||"date"!==d||"date"===g)if("number"===g||!l&&"number"!==d)if(l||"date"===d||"number"===d)p=!1;else{a=u+"expected "+("string"===d?"'"+s+"'":s)+" to be a number or a date"}else a=u+"the argument to below must be a number";else a=u+"the argument to below must be a date";if(p)throw new r(a,void 0,A);if(l){var h,f="length";"map"===d||"set"===d?(f="size",h=s.size):h=s.length,this.assert(h<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,h)}else this.assert(s<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function h(e,i){i&&o(this,"message",i);var a,s=o(this,"object"),l=o(this,"doLength"),c=o(this,"message"),u=c?c+": ":"",A=o(this,"ssfi"),d=t.type(s).toLowerCase(),g=t.type(e).toLowerCase(),p=!0;if(l&&"map"!==d&&"set"!==d&&new n(s,c,A,!0).to.have.property("length"),l||"date"!==d||"date"===g)if("number"===g||!l&&"number"!==d)if(l||"date"===d||"number"===d)p=!1;else{a=u+"expected "+("string"===d?"'"+s+"'":s)+" to be a number or a date"}else a=u+"the argument to most must be a number";else a=u+"the argument to most must be a date";if(p)throw new r(a,void 0,A);if(l){var h,f="length";"map"===d||"set"===d?(f="size",h=s.size):h=s.length,this.assert(h<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,h)}else this.assert(s<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function f(e,n){n&&o(this,"message",n);var i=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var l=i instanceof e}catch(n){if(n instanceof TypeError)throw new r((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+t.type(e)+" was given.",void 0,a);throw n}var c=t.getName(e);null===c&&(c="an unnamed constructor"),this.assert(l,"expected #{this} to be an instance of "+c,"expected #{this} to not be an instance of "+c)}function m(e,n,i){i&&o(this,"message",i);var a=o(this,"nested"),s=o(this,"own"),l=o(this,"message"),c=o(this,"object"),u=o(this,"ssfi"),A=typeof e;if(l=l?l+": ":"",a){if("string"!==A)throw new r(l+"the argument to property must be a string when using nested syntax",void 0,u)}else if("string"!==A&&"number"!==A&&"symbol"!==A)throw new r(l+"the argument to property must be a string, number, or symbol",void 0,u);if(a&&s)throw new r(l+'The "nested" and "own" flags cannot be combined.',void 0,u);if(null==c)throw new r(l+"Target cannot be null or undefined.",void 0,u);var d,g=o(this,"deep"),p=o(this,"negate"),h=a?t.getPathInfo(c,e):null,f=a?h.value:c[e],m="";g&&(m+="deep "),s&&(m+="own "),a&&(m+="nested "),m+="property ",d=s?Object.prototype.hasOwnProperty.call(c,e):a?h.exists:t.hasProperty(c,e),p&&1!==arguments.length||this.assert(d,"expected #{this} to have "+m+t.inspect(e),"expected #{this} to not have "+m+t.inspect(e)),arguments.length>1&&this.assert(d&&(g?t.eql(n,f):n===f),"expected #{this} to have "+m+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+t.inspect(e)+" of #{act}",n,f),o(this,"object",f)}function y(e,t,n){o(this,"own",!0),m.apply(this,arguments)}function I(e,n,r){"string"==typeof n&&(r=n,n=null),r&&o(this,"message",r);var i=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(i),e);a&&n?this.assert(t.eql(n,a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to match "+t.inspect(n)+", got "+t.inspect(a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to not match "+t.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+t.inspect(e),"expected #{this} to not have an own property descriptor for "+t.inspect(e)),o(this,"object",a)}function C(){o(this,"doLength",!0)}function E(e,r){r&&o(this,"message",r);var i,a=o(this,"object"),s=t.type(a).toLowerCase(),l=o(this,"message"),c=o(this,"ssfi"),u="length";switch(s){case"map":case"set":u="size",i=a.size;break;default:new n(a,l,c,!0).to.have.property("length"),i=a.length}this.assert(i==e,"expected #{this} to have a "+u+" of #{exp} but got #{act}","expected #{this} to not have a "+u+" of #{act}",e,i)}function b(e,t){t&&o(this,"message",t);var n=o(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function v(e){var n,i,a=o(this,"object"),s=t.type(a),l=t.type(e),c=o(this,"ssfi"),u=o(this,"deep"),A="",d=!0,g=o(this,"message"),p=(g=g?g+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)A=u?"deeply ":"",i=[],a.forEach((function(e,t){i.push(t)})),"Array"!==l&&(e=Array.prototype.slice.call(arguments));else{switch(i=t.getOwnEnumerableProperties(a),l){case"Array":if(arguments.length>1)throw new r(p,void 0,c);break;case"Object":if(arguments.length>1)throw new r(p,void 0,c);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return"symbol"==typeof e?e:String(e)}))}if(!e.length)throw new r(g+"keys required",void 0,c);var h=e.length,f=o(this,"any"),m=o(this,"all"),y=e;if(f||m||(m=!0),f&&(d=y.some((function(e){return i.some((function(n){return u?t.eql(e,n):e===n}))}))),m&&(d=y.every((function(e){return i.some((function(n){return u?t.eql(e,n):e===n}))})),o(this,"contains")||(d=d&&e.length==i.length)),h>1){var I=(e=e.map((function(e){return t.inspect(e)}))).pop();m&&(n=e.join(", ")+", and "+I),f&&(n=e.join(", ")+", or "+I)}else n=t.inspect(e[0]);n=(h>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(d,"expected #{this} to "+A+n,"expected #{this} to not "+A+n,y.slice(0).sort(t.compareByInspect),i.sort(t.compareByInspect),!0)}function B(e,r,i){i&&o(this,"message",i);var a,s=o(this,"object"),l=o(this,"ssfi"),c=o(this,"message"),u=o(this,"negate")||!1;new n(s,c,l,!0).is.a("function"),(e instanceof RegExp||"string"==typeof e)&&(r=e,e=null);try{s()}catch(e){a=e}var A=void 0===e&&void 0===r,d=Boolean(e&&r),g=!1,p=!1;if(A||!A&&!u){var h="an error";e instanceof Error?h="#{exp}":e&&(h=t.checkError.getConstructorName(e)),this.assert(a,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&t.checkError.getConstructorName(a))}if(e&&a){if(e instanceof Error)t.checkError.compatibleInstance(a,e)===u&&(d&&u?g=!0:this.assert(u,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!u?" but #{act} was thrown":""),e.toString(),a.toString()));t.checkError.compatibleConstructor(a,e)===u&&(d&&u?g=!0:this.assert(u,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)))}if(a&&null!=r){var f="including";r instanceof RegExp&&(f="matching"),t.checkError.compatibleMessage(a,r)===u&&(d&&u?p=!0:this.assert(u,"expected #{this} to throw error "+f+" #{exp} but got #{act}","expected #{this} to throw error not "+f+" #{exp}",r,t.checkError.getMessage(a)))}g&&p&&this.assert(u,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)),o(this,"object",a)}function M(e,n){n&&o(this,"message",n);var r=o(this,"object"),i=o(this,"itself"),a="function"!=typeof r||i?r[e]:r.prototype[e];this.assert("function"==typeof a,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function D(e,n){n&&o(this,"message",n);var r=e(o(this,"object"));this.assert(r,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!o(this,"negate"),r)}function x(e,t,i){i&&o(this,"message",i);var a=o(this,"object"),s=o(this,"message"),l=o(this,"ssfi");if(new n(a,s,l,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new r((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers",void 0,l);this.assert(Math.abs(a-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function w(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),s=o(this,"message"),l=o(this,"ssfi");new n(a,s,l,!0).is.a("function"),t?(new n(e,s,l,!0).to.have.property(t),i=e[t]):(new n(e,s,l,!0).is.a("function"),i=e()),a();var c=null==t?e():e[t],u=null==t?i:"."+t;o(this,"deltaMsgObj",u),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","change"),o(this,"realDelta",c!==i),this.assert(i!==c,"expected "+u+" to change","expected "+u+" to not change")}function Q(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),s=o(this,"message"),l=o(this,"ssfi");new n(a,s,l,!0).is.a("function"),t?(new n(e,s,l,!0).to.have.property(t),i=e[t]):(new n(e,s,l,!0).is.a("function"),i=e()),new n(i,s,l,!0).is.a("number"),a();var c=null==t?e():e[t],u=null==t?i:"."+t;o(this,"deltaMsgObj",u),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","increase"),o(this,"realDelta",c-i),this.assert(c-i>0,"expected "+u+" to increase","expected "+u+" to not increase")}function S(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),s=o(this,"message"),l=o(this,"ssfi");new n(a,s,l,!0).is.a("function"),t?(new n(e,s,l,!0).to.have.property(t),i=e[t]):(new n(e,s,l,!0).is.a("function"),i=e()),new n(i,s,l,!0).is.a("number"),a();var c=null==t?e():e[t],u=null==t?i:"."+t;o(this,"deltaMsgObj",u),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","decrease"),o(this,"realDelta",i-c),this.assert(c-i<0,"expected "+u+" to decrease","expected "+u+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still"].forEach((function(e){n.addProperty(e)})),n.addProperty("not",(function(){o(this,"negate",!0)})),n.addProperty("deep",(function(){o(this,"deep",!0)})),n.addProperty("nested",(function(){o(this,"nested",!0)})),n.addProperty("own",(function(){o(this,"own",!0)})),n.addProperty("ordered",(function(){o(this,"ordered",!0)})),n.addProperty("any",(function(){o(this,"any",!0),o(this,"all",!1)})),n.addProperty("all",(function(){o(this,"all",!0),o(this,"any",!1)})),n.addChainableMethod("an",i),n.addChainableMethod("a",i),n.addChainableMethod("include",l,s),n.addChainableMethod("contain",l,s),n.addChainableMethod("contains",l,s),n.addChainableMethod("includes",l,s),n.addProperty("ok",(function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(t.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",(function(){var e=o(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")})),n.addProperty("empty",(function(){var e,n=o(this,"object"),i=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",t.type(n).toLowerCase()){case"array":case"string":e=n.length;break;case"map":case"set":e=n.size;break;case"weakmap":case"weakset":throw new r(a+".empty was passed a weak collection",void 0,i);case"function":var s=a+".empty was passed a function "+t.getName(n);throw new r(s.trim(),void 0,i);default:if(n!==Object(n))throw new r(a+".empty was passed non-string primitive "+t.inspect(n),void 0,i);e=Object.keys(n).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",c),n.addProperty("Arguments",c),n.addMethod("equal",u),n.addMethod("equals",u),n.addMethod("eq",u),n.addMethod("eql",A),n.addMethod("eqls",A),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",g),n.addMethod("gte",g),n.addMethod("below",p),n.addMethod("lt",p),n.addMethod("lessThan",p),n.addMethod("most",h),n.addMethod("lte",h),n.addMethod("within",(function(e,i,a){a&&o(this,"message",a);var s,l=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),A=u?u+": ":"",d=o(this,"ssfi"),g=t.type(l).toLowerCase(),p=t.type(e).toLowerCase(),h=t.type(i).toLowerCase(),f=!0,m="date"===p&&"date"===h?e.toUTCString()+".."+i.toUTCString():e+".."+i;if(c&&"map"!==g&&"set"!==g&&new n(l,u,d,!0).to.have.property("length"),c||"date"!==g||"date"===p&&"date"===h)if("number"===p&&"number"===h||!c&&"number"!==g)if(c||"date"===g||"number"===g)f=!1;else{s=A+"expected "+("string"===g?"'"+l+"'":l)+" to be a number or a date"}else s=A+"the arguments to within must be numbers";else s=A+"the arguments to within must be dates";if(f)throw new r(s,void 0,d);if(c){var y,I="length";"map"===g||"set"===g?(I="size",y=l.size):y=l.length,this.assert(y>=e&&y<=i,"expected #{this} to have a "+I+" within "+m,"expected #{this} to not have a "+I+" within "+m)}else this.assert(l>=e&&l<=i,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)})),n.addMethod("instanceof",f),n.addMethod("instanceOf",f),n.addMethod("property",m),n.addMethod("ownProperty",y),n.addMethod("haveOwnProperty",y),n.addMethod("ownPropertyDescriptor",I),n.addMethod("haveOwnPropertyDescriptor",I),n.addChainableMethod("length",E,C),n.addChainableMethod("lengthOf",E,C),n.addMethod("match",b),n.addMethod("matches",b),n.addMethod("string",(function(e,r){r&&o(this,"message",r);var i=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(i,a,s,!0).is.a("string"),this.assert(~i.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))})),n.addMethod("keys",v),n.addMethod("key",v),n.addMethod("throw",B),n.addMethod("throws",B),n.addMethod("Throw",B),n.addMethod("respondTo",M),n.addMethod("respondsTo",M),n.addProperty("itself",(function(){o(this,"itself",!0)})),n.addMethod("satisfy",D),n.addMethod("satisfies",D),n.addMethod("closeTo",x),n.addMethod("approximately",x),n.addMethod("members",(function(e,r){r&&o(this,"message",r);var i=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(i,a,s,!0).to.be.an("array"),new n(e,a,s,!0).to.be.an("array");var l,c,u,A=o(this,"contains"),d=o(this,"ordered");A?(c="expected #{this} to be "+(l=d?"an ordered superset":"a superset")+" of #{exp}",u="expected #{this} to not be "+l+" of #{exp}"):(c="expected #{this} to have the same "+(l=d?"ordered members":"members")+" as #{exp}",u="expected #{this} to not have the same "+l+" as #{exp}");var g=o(this,"deep")?t.eql:void 0;this.assert(function(e,t,n,r,o){if(!r){if(e.length!==t.length)return!1;t=t.slice()}return e.every((function(e,i){if(o)return n?n(e,t[i]):e===t[i];if(!n){var a=t.indexOf(e);return-1!==a&&(r||t.splice(a,1),!0)}return t.some((function(o,i){return!!n(e,o)&&(r||t.splice(i,1),!0)}))}))}(e,i,g,A,d),c,u,e,i,!0)})),n.addMethod("oneOf",(function(e,t){t&&o(this,"message",t);var r=o(this,"object"),i=o(this,"message"),a=o(this,"ssfi");new n(e,i,a,!0).to.be.an("array"),this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)})),n.addMethod("change",w),n.addMethod("changes",w),n.addMethod("increase",Q),n.addMethod("increases",Q),n.addMethod("decrease",S),n.addMethod("decreases",S),n.addMethod("by",(function(e,t){t&&o(this,"message",t);var n,r=o(this,"deltaMsgObj"),i=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),l=o(this,"realDelta");n="change"===s?Math.abs(a-i)===Math.abs(e):l===Math.abs(e),this.assert(n,"expected "+r+" to "+s+" by "+e,"expected "+r+" to not "+s+" by "+e)})),n.addProperty("extensible",(function(){var e=o(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var e=o(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var e=o(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(e){var t=o(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))}},function(e,t){
/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t){e.expect=function(t,n){return new e.Assertion(t,n)},e.expect.fail=function(t,n,r,o){throw arguments.length<2&&(r=t,t=void 0),r=r||"expect.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:o},e.expect.fail)}}},function(e,t){
/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t){var n=e.Assertion;function r(){Object.defineProperty(Object.prototype,"should",{set:function(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})},get:function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol?new n(this.valueOf(),null,e):new n(this,null,e)},configurable:!0});var t={fail:function(n,r,o,i){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new e.AssertionError(o,{actual:n,expected:r,operator:i},t.fail)},equal:function(e,t,r){new n(e,r).to.equal(t)},Throw:function(e,t,r,o){new n(e,o).to.Throw(t,r)},exist:function(e,t){new n(e,t).to.exist},not:{}};return t.not.equal=function(e,t,r){new n(e,r).to.not.equal(t)},t.not.Throw=function(e,t,r,o){new n(e,o).to.not.Throw(t,r)},t.not.exist=function(e,t){new n(e,t).to.not.exist},t.throw=t.Throw,t.not.throw=t.not.Throw,t}e.should=r,e.Should=r}},function(e,t){
/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
e.exports=function(e,t){
/*!
   * Chai dependencies.
   */
var n=e.Assertion,r=t.flag,o=e.assert=function(t,r){new n(null,null,e.assert,!0).assert(t,r,"[ negation message unavailable ]")};
/*!
   * Module export.
   */o.fail=function(t,n,r,i){throw arguments.length<2&&(r=t,t=void 0),r=r||"assert.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:i},o.fail)},o.isOk=function(e,t){new n(e,t,o.isOk,!0).is.ok},o.isNotOk=function(e,t){new n(e,t,o.isNotOk,!0).is.not.ok},o.equal=function(e,t,i){var a=new n(e,i,o.equal,!0);a.assert(t==r(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},o.notEqual=function(e,t,i){var a=new n(e,i,o.notEqual,!0);a.assert(t!=r(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},o.strictEqual=function(e,t,r){new n(e,r,o.strictEqual,!0).to.equal(t)},o.notStrictEqual=function(e,t,r){new n(e,r,o.notStrictEqual,!0).to.not.equal(t)},o.deepEqual=o.deepStrictEqual=function(e,t,r){new n(e,r,o.deepEqual,!0).to.eql(t)},o.notDeepEqual=function(e,t,r){new n(e,r,o.notDeepEqual,!0).to.not.eql(t)},o.isAbove=function(e,t,r){new n(e,r,o.isAbove,!0).to.be.above(t)},o.isAtLeast=function(e,t,r){new n(e,r,o.isAtLeast,!0).to.be.least(t)},o.isBelow=function(e,t,r){new n(e,r,o.isBelow,!0).to.be.below(t)},o.isAtMost=function(e,t,r){new n(e,r,o.isAtMost,!0).to.be.most(t)},o.isTrue=function(e,t){new n(e,t,o.isTrue,!0).is.true},o.isNotTrue=function(e,t){new n(e,t,o.isNotTrue,!0).to.not.equal(!0)},o.isFalse=function(e,t){new n(e,t,o.isFalse,!0).is.false},o.isNotFalse=function(e,t){new n(e,t,o.isNotFalse,!0).to.not.equal(!1)},o.isNull=function(e,t){new n(e,t,o.isNull,!0).to.equal(null)},o.isNotNull=function(e,t){new n(e,t,o.isNotNull,!0).to.not.equal(null)},o.isNaN=function(e,t){new n(e,t,o.isNaN,!0).to.be.NaN},o.isNotNaN=function(e,t){new n(e,t,o.isNotNaN,!0).not.to.be.NaN},o.exists=function(e,t){new n(e,t,o.exists,!0).to.exist},o.notExists=function(e,t){new n(e,t,o.notExists,!0).to.not.exist},o.isUndefined=function(e,t){new n(e,t,o.isUndefined,!0).to.equal(void 0)},o.isDefined=function(e,t){new n(e,t,o.isDefined,!0).to.not.equal(void 0)},o.isFunction=function(e,t){new n(e,t,o.isFunction,!0).to.be.a("function")},o.isNotFunction=function(e,t){new n(e,t,o.isNotFunction,!0).to.not.be.a("function")},o.isObject=function(e,t){new n(e,t,o.isObject,!0).to.be.a("object")},o.isNotObject=function(e,t){new n(e,t,o.isNotObject,!0).to.not.be.a("object")},o.isArray=function(e,t){new n(e,t,o.isArray,!0).to.be.an("array")},o.isNotArray=function(e,t){new n(e,t,o.isNotArray,!0).to.not.be.an("array")},o.isString=function(e,t){new n(e,t,o.isString,!0).to.be.a("string")},o.isNotString=function(e,t){new n(e,t,o.isNotString,!0).to.not.be.a("string")},o.isNumber=function(e,t){new n(e,t,o.isNumber,!0).to.be.a("number")},o.isNotNumber=function(e,t){new n(e,t,o.isNotNumber,!0).to.not.be.a("number")},o.isFinite=function(e,t){new n(e,t,o.isFinite,!0).to.be.finite},o.isBoolean=function(e,t){new n(e,t,o.isBoolean,!0).to.be.a("boolean")},o.isNotBoolean=function(e,t){new n(e,t,o.isNotBoolean,!0).to.not.be.a("boolean")},o.typeOf=function(e,t,r){new n(e,r,o.typeOf,!0).to.be.a(t)},o.notTypeOf=function(e,t,r){new n(e,r,o.notTypeOf,!0).to.not.be.a(t)},o.instanceOf=function(e,t,r){new n(e,r,o.instanceOf,!0).to.be.instanceOf(t)},o.notInstanceOf=function(e,t,r){new n(e,r,o.notInstanceOf,!0).to.not.be.instanceOf(t)},o.include=function(e,t,r){new n(e,r,o.include,!0).include(t)},o.notInclude=function(e,t,r){new n(e,r,o.notInclude,!0).not.include(t)},o.deepInclude=function(e,t,r){new n(e,r,o.deepInclude,!0).deep.include(t)},o.notDeepInclude=function(e,t,r){new n(e,r,o.notDeepInclude,!0).not.deep.include(t)},o.nestedInclude=function(e,t,r){new n(e,r,o.nestedInclude,!0).nested.include(t)},o.notNestedInclude=function(e,t,r){new n(e,r,o.notNestedInclude,!0).not.nested.include(t)},o.deepNestedInclude=function(e,t,r){new n(e,r,o.deepNestedInclude,!0).deep.nested.include(t)},o.notDeepNestedInclude=function(e,t,r){new n(e,r,o.notDeepNestedInclude,!0).not.deep.nested.include(t)},o.ownInclude=function(e,t,r){new n(e,r,o.ownInclude,!0).own.include(t)},o.notOwnInclude=function(e,t,r){new n(e,r,o.notOwnInclude,!0).not.own.include(t)},o.deepOwnInclude=function(e,t,r){new n(e,r,o.deepOwnInclude,!0).deep.own.include(t)},o.notDeepOwnInclude=function(e,t,r){new n(e,r,o.notDeepOwnInclude,!0).not.deep.own.include(t)},o.match=function(e,t,r){new n(e,r,o.match,!0).to.match(t)},o.notMatch=function(e,t,r){new n(e,r,o.notMatch,!0).to.not.match(t)},o.property=function(e,t,r){new n(e,r,o.property,!0).to.have.property(t)},o.notProperty=function(e,t,r){new n(e,r,o.notProperty,!0).to.not.have.property(t)},o.propertyVal=function(e,t,r,i){new n(e,i,o.propertyVal,!0).to.have.property(t,r)},o.notPropertyVal=function(e,t,r,i){new n(e,i,o.notPropertyVal,!0).to.not.have.property(t,r)},o.deepPropertyVal=function(e,t,r,i){new n(e,i,o.deepPropertyVal,!0).to.have.deep.property(t,r)},o.notDeepPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)},o.ownProperty=function(e,t,r){new n(e,r,o.ownProperty,!0).to.have.own.property(t)},o.notOwnProperty=function(e,t,r){new n(e,r,o.notOwnProperty,!0).to.not.have.own.property(t)},o.ownPropertyVal=function(e,t,r,i){new n(e,i,o.ownPropertyVal,!0).to.have.own.property(t,r)},o.notOwnPropertyVal=function(e,t,r,i){new n(e,i,o.notOwnPropertyVal,!0).to.not.have.own.property(t,r)},o.deepOwnPropertyVal=function(e,t,r,i){new n(e,i,o.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)},o.notDeepOwnPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)},o.nestedProperty=function(e,t,r){new n(e,r,o.nestedProperty,!0).to.have.nested.property(t)},o.notNestedProperty=function(e,t,r){new n(e,r,o.notNestedProperty,!0).to.not.have.nested.property(t)},o.nestedPropertyVal=function(e,t,r,i){new n(e,i,o.nestedPropertyVal,!0).to.have.nested.property(t,r)},o.notNestedPropertyVal=function(e,t,r,i){new n(e,i,o.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)},o.deepNestedPropertyVal=function(e,t,r,i){new n(e,i,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)},o.notDeepNestedPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)},o.lengthOf=function(e,t,r){new n(e,r,o.lengthOf,!0).to.have.lengthOf(t)},o.hasAnyKeys=function(e,t,r){new n(e,r,o.hasAnyKeys,!0).to.have.any.keys(t)},o.hasAllKeys=function(e,t,r){new n(e,r,o.hasAllKeys,!0).to.have.all.keys(t)},o.containsAllKeys=function(e,t,r){new n(e,r,o.containsAllKeys,!0).to.contain.all.keys(t)},o.doesNotHaveAnyKeys=function(e,t,r){new n(e,r,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},o.doesNotHaveAllKeys=function(e,t,r){new n(e,r,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},o.hasAnyDeepKeys=function(e,t,r){new n(e,r,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},o.hasAllDeepKeys=function(e,t,r){new n(e,r,o.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},o.containsAllDeepKeys=function(e,t,r){new n(e,r,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},o.doesNotHaveAnyDeepKeys=function(e,t,r){new n(e,r,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},o.doesNotHaveAllDeepKeys=function(e,t,r){new n(e,r,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},o.throws=function(e,t,i,a){("string"==typeof t||t instanceof RegExp)&&(i=t,t=null);var s=new n(e,a,o.throws,!0).to.throw(t,i);return r(s,"object")},o.doesNotThrow=function(e,t,r,i){("string"==typeof t||t instanceof RegExp)&&(r=t,t=null),new n(e,i,o.doesNotThrow,!0).to.not.throw(t,r)},o.operator=function(i,a,s,l){var c;switch(a){case"==":c=i==s;break;case"===":c=i===s;break;case">":c=i>s;break;case">=":c=i>=s;break;case"<":c=i<s;break;case"<=":c=i<=s;break;case"!=":c=i!=s;break;case"!==":c=i!==s;break;default:throw l=l?l+": ":l,new e.AssertionError(l+'Invalid operator "'+a+'"',void 0,o.operator)}var u=new n(c,l,o.operator,!0);u.assert(!0===r(u,"object"),"expected "+t.inspect(i)+" to be "+a+" "+t.inspect(s),"expected "+t.inspect(i)+" to not be "+a+" "+t.inspect(s))},o.closeTo=function(e,t,r,i){new n(e,i,o.closeTo,!0).to.be.closeTo(t,r)},o.approximately=function(e,t,r,i){new n(e,i,o.approximately,!0).to.be.approximately(t,r)},o.sameMembers=function(e,t,r){new n(e,r,o.sameMembers,!0).to.have.same.members(t)},o.notSameMembers=function(e,t,r){new n(e,r,o.notSameMembers,!0).to.not.have.same.members(t)},o.sameDeepMembers=function(e,t,r){new n(e,r,o.sameDeepMembers,!0).to.have.same.deep.members(t)},o.notSameDeepMembers=function(e,t,r){new n(e,r,o.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},o.sameOrderedMembers=function(e,t,r){new n(e,r,o.sameOrderedMembers,!0).to.have.same.ordered.members(t)},o.notSameOrderedMembers=function(e,t,r){new n(e,r,o.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},o.sameDeepOrderedMembers=function(e,t,r){new n(e,r,o.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},o.notSameDeepOrderedMembers=function(e,t,r){new n(e,r,o.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},o.includeMembers=function(e,t,r){new n(e,r,o.includeMembers,!0).to.include.members(t)},o.notIncludeMembers=function(e,t,r){new n(e,r,o.notIncludeMembers,!0).to.not.include.members(t)},o.includeDeepMembers=function(e,t,r){new n(e,r,o.includeDeepMembers,!0).to.include.deep.members(t)},o.notIncludeDeepMembers=function(e,t,r){new n(e,r,o.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},o.includeOrderedMembers=function(e,t,r){new n(e,r,o.includeOrderedMembers,!0).to.include.ordered.members(t)},o.notIncludeOrderedMembers=function(e,t,r){new n(e,r,o.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},o.includeDeepOrderedMembers=function(e,t,r){new n(e,r,o.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},o.notIncludeDeepOrderedMembers=function(e,t,r){new n(e,r,o.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},o.oneOf=function(e,t,r){new n(e,r,o.oneOf,!0).to.be.oneOf(t)},o.changes=function(e,t,r,i){3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.changes,!0).to.change(t,r)},o.changesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.changesBy,!0).to.change(t,r).by(i)},o.doesNotChange=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotChange,!0).to.not.change(t,r)},o.changesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.changesButNotBy,!0).to.change(t,r).but.not.by(i)},o.increases=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.increases,!0).to.increase(t,r)},o.increasesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.increasesBy,!0).to.increase(t,r).by(i)},o.doesNotIncrease=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotIncrease,!0).to.not.increase(t,r)},o.increasesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.increasesButNotBy,!0).to.increase(t,r).but.not.by(i)},o.decreases=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.decreases,!0).to.decrease(t,r)},o.decreasesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.decreasesBy,!0).to.decrease(t,r).by(i)},o.doesNotDecrease=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotDecrease,!0).to.not.decrease(t,r)},o.doesNotDecreaseBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);return new n(e,a,o.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(i)},o.decreasesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=r,a=s}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(i)}
/*!
   * ### .ifError(object)
   *
   * Asserts if value is not a false value, and throws if it is a true value.
   * This is added to allow for chai to be a drop-in replacement for Node's
   * assert class.
   *
   *     var err = new Error('I am a custom error');
   *     assert.ifError(err); // Rethrows err!
   *
   * @name ifError
   * @param {Object} object
   * @namespace Assert
   * @api public
   */,o.ifError=function(e){if(e)throw e},o.isExtensible=function(e,t){new n(e,t,o.isExtensible,!0).to.be.extensible},o.isNotExtensible=function(e,t){new n(e,t,o.isNotExtensible,!0).to.not.be.extensible},o.isSealed=function(e,t){new n(e,t,o.isSealed,!0).to.be.sealed},o.isNotSealed=function(e,t){new n(e,t,o.isNotSealed,!0).to.not.be.sealed},o.isFrozen=function(e,t){new n(e,t,o.isFrozen,!0).to.be.frozen},o.isNotFrozen=function(e,t){new n(e,t,o.isNotFrozen,!0).to.not.be.frozen},o.isEmpty=function(e,t){new n(e,t,o.isEmpty,!0).to.be.empty},o.isNotEmpty=function(e,t){new n(e,t,o.isNotEmpty,!0).to.not.be.empty},
/*!
   * Aliases.
   */
function e(t,n){return o[n]=o[t],e}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function a(e,t,n,r,o,i){if(void 0===i&&(i=new Array(o)),0==o)return i;i[0]=t;for(var a=t,s=n,l=1;l<o;l++){var c=e(s,a),u=e(s+r/2,a+r*c/2),A=e(s+r/2,a+r*u/2),d=a+r/6*(c+2*u+2*A+e(s+r,a+r*A)),g=s+r;i[l]=d,a=d,s=g}return i}function s(e,t){var n,r,o=t*(e.length-1);r=(n=Math.floor(o))+1;var i=o-n;return n<0&&(n=0,r=0),n>=e.length-1&&(n=e.length-1,r=e.length-1),e[n]*(1-i)+e[r]*i}function l(e,t){for(var n=0;n<e.length-1;n++){var r=e[n],o=e[n+1];if(t>=r&&t<=o)return[n,t-r]}return t<e[0]?[0,0]:[e.length-2,e[e.length-1]-e[e.length-2]]}function c(e,t){void 0===t&&(t=new Array(e.length));for(var n=e[0],r=e[e.length-1],o=0,i=0;i<e.length;i++){for(var a=n+(r-n)*i/(e.length-1);o+2<e.length&&a>=e[o+1];)o+=1;var s=e[o],l=o/(e.length-1),c=(a-s)/(e[o+1]-s)*((o+1)/(e.length-1)-l)+l;t[i]=c}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.MultiCurveParametrization=t.LineSegmentParametrization=t.BezierCurveParameterization=t.CurveParameterization=t.linearInvert=t.findSegment=t.linearApproximation=t.RK4=void 0,t.RK4=a,t.linearApproximation=s,t.findSegment=l,t.linearInvert=c;var u=function(){function e(){}return e.prototype.getNormalAtT=function(e){var t=this.getTangentAtT(e);return{x:-t.y,y:t.x}},e}();t.CurveParameterization=u;var A=function(e){function t(t,n,r,o){var i=e.call(this)||this;i.k3x=3*(n.x-r.x)+o.x-t.x,i.k2x=3*(t.x+r.x-2*n.x),i.k1x=3*(n.x-t.x),i.k0x=t.x,i.k3y=3*(n.y-r.y)+o.y-t.y,i.k2y=3*(t.y+r.y-2*n.y),i.k1y=3*(n.y-t.y),i.k0y=t.y;return i.tToS=a((function(e){return i.getDsDtAtT(e)}),0,0,1/99,100),i.len=i.tToS[99],i.sToT=c(i.tToS),i}return o(t,e),t.prototype.getPointAtT=function(e){return{x:this.k0x+e*(this.k1x+e*(this.k2x+e*this.k3x)),y:this.k0y+e*(this.k1y+e*(this.k2y+e*this.k3y))}},t.prototype.getTangentAtT=function(e){var t=e*e,n=3*t*this.k3x+2*e*this.k2x+this.k1x,r=3*t*this.k3y+2*e*this.k2y+this.k1y,o=Math.sqrt(n*n+r*r);return{x:n/o,y:r/o}},t.prototype.getDsDtAtT=function(e){var t=e*e,n=3*t*this.k3x+2*e*this.k2x+this.k1x,r=3*t*this.k3y+2*e*this.k2y+this.k1y;return Math.sqrt(n*n+r*r)},t.prototype.getSFromT=function(e){return s(this.tToS,e)},t.prototype.getTFromS=function(e){return s(this.sToT,e/this.len)},t.prototype.getLength=function(){return this.len},t}(u);t.BezierCurveParameterization=A;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.p1=t,r.p2=n,r.length=Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)),r.tangent={x:(n.x-t.x)/r.length,y:(n.y-t.y)/r.length},r}return o(t,e),t.prototype.getTangentAtT=function(e){return this.tangent},t.prototype.getPointAtT=function(e){return{x:this.p1.x+(this.p2.x-this.p1.x)*e,y:this.p1.y+(this.p2.y-this.p1.y)*e}},t.prototype.getSFromT=function(e){return e*this.length},t.prototype.getTFromS=function(e){return e/this.length},t.prototype.getLength=function(){return this.length},t}(u);t.LineSegmentParametrization=d;var g=function(){function e(e){this.segments=e,this.len=0,this.sBounds=new Array(this.segments.length+1),this.sBounds[0]=0;for(var t=0;t<this.segments.length;t++)this.len+=this.segments[t].getLength(),this.sBounds[t+1]=this.len}return e.prototype.getSegmentAtS=function(e){var t=i(l(this.sBounds,e),2),n=t[0],r=t[1],o=this.segments[n],a=o.getTFromS(r);return[o,a]},e.prototype.getPointAtS=function(e){var t=i(this.getSegmentAtS(e),2),n=t[0],r=t[1];return n.getPointAtT(r)},e.prototype.getTangentAtS=function(e){var t=i(this.getSegmentAtS(e),2),n=t[0],r=t[1];return n.getTangentAtT(r)},e.prototype.getNormalAtS=function(e){var t=i(this.getSegmentAtS(e),2),n=t[0],r=t[1];return n.getNormalAtT(r)},e.prototype.getFrameAtS=function(e){var t=i(this.getSegmentAtS(e),2),n=t[0],r=t[1];return{p:n.getPointAtT(r),t:n.getTangentAtT(r),n:n.getNormalAtT(r)}},e.prototype.getLength=function(){return this.len},e.prototype.getSegments=function(){return this.segments},e}();t.MultiCurveParametrization=g},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(387),t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){return e?[e.classID,e._id]:null}Object.defineProperty(t,"__esModule",{value:!0}),t.ClearSelection=t.SelectMark=t.Action=t.objectDigest=void 0,t.objectDigest=i;var a=function(){function e(){}return e.prototype.dispatch=function(e){e.dispatch(this)},e.prototype.digest=function(){return{name:this.constructor.name}},e}();t.Action=a;var s=function(e){function t(t,n,r,o){void 0===o&&(o=null);var i=e.call(this)||this;return i.plotSegment=t,i.glyph=n,i.mark=r,i.glyphIndex=o,i}return o(t,e),t.prototype.digest=function(){return{name:"SelectMark",plotSegment:i(this.plotSegment),glyph:i(this.glyph),mark:i(this.mark),glyphIndex:this.glyphIndex}},t}(a);t.SelectMark=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.digest=function(){return{name:"ClearSelection"}},t}(a);t.ClearSelection=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DataExpression=t.DropZoneData=t.ScaffoldType=t.ObjectType=void 0;var i=function(e,t){void 0===t&&(t=null),this.classID=e,this.options=t};t.ObjectType=i;var a=function(e){this.type=e};t.ScaffoldType=a;var s=function(){};t.DropZoneData=s;var l=function(e){function t(t,n,r,o,i,a,s,l){void 0===o&&(o=null);var c=e.call(this)||this;return c.table=t,c.expression=n,c.valueType=r,c.metadata=o,c.rawColumnExpression=i,c.scaleID=a,c.allowSelectValue=s,c.type=l,c}return o(t,e),t}(s);t.DataExpression=l},function(e,t,n){"use strict";
/** @license React v16.14.0
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(0),o=n(164),i=n(390);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,A=null,d={onError:function(e){l=!0,c=e}};function g(e,t,n,r,o,i,a,u,A){l=!1,c=null,s.apply(d,arguments)}var p=null,h=null,f=null;function m(e,t,n){var r=e.type||"unknown-event";e.currentTarget=f(n),function(e,t,n,r,o,i,s,d,p){if(g.apply(this,arguments),l){if(!l)throw Error(a(198));var h=c;l=!1,c=null,u||(u=!0,A=h)}}(r,t,void 0,e),e.currentTarget=null}var y=null,I={};function C(){if(y)for(var e in I){var t=I[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!b[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in b[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(v.hasOwnProperty(l))throw Error(a(99,l));v[l]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&E(c[o],s,l);o=!0}else i.registrationName?(E(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function E(e,t,n){if(B[e])throw Error(a(100,e));B[e]=t,M[e]=t.eventTypes[n].dependencies}var b=[],v={},B={},M={};function D(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!I.hasOwnProperty(t)||I[t]!==r){if(I[t])throw Error(a(102,t));I[t]=r,n=!0}}n&&C()}var x=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),w=null,Q=null,S=null;function N(e){if(e=h(e)){if("function"!=typeof w)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),w(e.stateNode,e.type,t))}}function k(e){Q?S?S.push(e):S=[e]:Q=e}function T(){if(Q){var e=Q,t=S;if(S=Q=null,N(e),t)for(e=0;e<t.length;e++)N(t[e])}}function j(e,t){return e(t)}function L(e,t,n,r,o){return e(t,n,r,o)}function R(){}var O=j,_=!1,F=!1;function z(){null===Q&&null===S||(R(),T())}function P(e,t,n){if(F)return e(t,n);F=!0;try{return O(e,t,n)}finally{F=!1,z()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,G=Object.prototype.hasOwnProperty,H={},Y={};function V(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Z);W[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Z);W[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Z);W[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function q(e,t,n,r){var o=W.hasOwnProperty(t)?W[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!G.call(Y,e)||!G.call(H,e)&&(U.test(e)?Y[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,$="function"==typeof Symbol&&Symbol.for,ee=$?Symbol.for("react.element"):60103,te=$?Symbol.for("react.portal"):60106,ne=$?Symbol.for("react.fragment"):60107,re=$?Symbol.for("react.strict_mode"):60108,oe=$?Symbol.for("react.profiler"):60114,ie=$?Symbol.for("react.provider"):60109,ae=$?Symbol.for("react.context"):60110,se=$?Symbol.for("react.concurrent_mode"):60111,le=$?Symbol.for("react.forward_ref"):60112,ce=$?Symbol.for("react.suspense"):60113,ue=$?Symbol.for("react.suspense_list"):60120,Ae=$?Symbol.for("react.memo"):60115,de=$?Symbol.for("react.lazy"):60116,ge=$?Symbol.for("react.block"):60121,pe="function"==typeof Symbol&&Symbol.iterator;function he(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function fe(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Ae:return fe(e.type);case ge:return fe(e.render);case de:if(e=1===e._status?e._result:null)return fe(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=fe(e.type);n=null,r&&(n=fe(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(X,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ce(e){e._valueTracker||(e._valueTracker=function(e){var t=Ie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ie(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function be(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ve(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Be(e,t){null!=(t=t.checked)&&q(e,"checked",t,!1)}function Me(e,t){Be(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?xe(e,t.type,n):t.hasOwnProperty("defaultValue")&&xe(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function De(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function xe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function we(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Qe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function ke(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Te(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var je="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var _e,Fe=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((_e=_e||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_e.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Pe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:Pe("Animation","AnimationEnd"),animationiteration:Pe("Animation","AnimationIteration"),animationstart:Pe("Animation","AnimationStart"),transitionend:Pe("Transition","TransitionEnd")},Ge={},He={};function Ye(e){if(Ge[e])return Ge[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return Ge[e]=n[t];return e}x&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var Ve=Ye("animationend"),We=Ye("animationiteration"),Ke=Ye("animationstart"),Ze=Ye("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qe=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=qe.get(e);return void 0===t&&(t=new Map,qe.set(e,t)),t}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if($e(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return tt(o),e;if(i===r)return tt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)m(e,t[r],n[r]);else t&&m(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(ot(e,at),it)throw Error(a(95));if(u)throw e=A,u=!1,A=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!x)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function At(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var o=ut.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function gt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=xn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<b.length;l++){var c=b[l];c&&(c=c.extractEvents(r,t,i,o,a))&&(s=rt(s,c))}st(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Je.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var ht,ft,mt,yt=!1,It=[],Ct=null,Et=null,bt=null,vt=new Map,Bt=new Map,Mt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),xt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function wt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Qt(e,t){switch(e){case"focus":case"blur":Ct=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":bt=null;break;case"pointerover":case"pointerout":vt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bt.delete(t.pointerId)}}function St(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=wt(t,n,r,o,i),null!==t&&(null!==(t=wn(t))&&ft(t)),e):(e.eventSystemFlags|=r,e)}function Nt(e){var t=xn(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){mt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=wn(t);return null!==n&&ft(n),e.blockedOn=t,!1}return!0}function Tt(e,t,n){kt(e)&&n.delete(t)}function jt(){for(yt=!1;0<It.length;){var e=It[0];if(null!==e.blockedOn){null!==(e=wn(e.blockedOn))&&ht(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:It.shift()}null!==Ct&&kt(Ct)&&(Ct=null),null!==Et&&kt(Et)&&(Et=null),null!==bt&&kt(bt)&&(bt=null),vt.forEach(Tt),Bt.forEach(Tt)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Rt(e){function t(t){return Lt(t,e)}if(0<It.length){Lt(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ct&&Lt(Ct,e),null!==Et&&Lt(Et,e),null!==bt&&Lt(bt,e),vt.forEach(t),Bt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Mt.shift()}var Ot={},_t=new Map,Ft=new Map,zt=["abort","abort",Ve,"animationEnd",We,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function Pt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),_t.set(r,i),Ot[o]=i}}Pt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pt(zt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Gt=0;Gt<Ut.length;Gt++)Ft.set(Ut[Gt],0);var Ht=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,Vt=!0;function Wt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Zt.bind(null,t,1,e);break;case 1:r=Jt.bind(null,t,1,e);break;default:r=qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){_||R();var o=qt,i=_;_=!0;try{L(o,e,t,n,r)}finally{(_=i)||z()}}function Jt(e,t,n,r){Yt(Ht,qt.bind(null,e,t,n,r))}function qt(e,t,n,r){if(Vt)if(0<It.length&&-1<Dt.indexOf(e))e=wt(null,e,t,n,r),It.push(e);else{var o=Xt(e,t,n,r);if(null===o)Qt(e,r);else if(-1<Dt.indexOf(e))e=wt(o,e,t,n,r),It.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return Ct=St(Ct,e,t,n,r,o),!0;case"dragenter":return Et=St(Et,e,t,n,r,o),!0;case"mouseover":return bt=St(bt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return vt.set(i,St(vt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Bt.set(i,St(Bt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Qt(e,r),e=dt(e,r,null,t);try{P(gt,e)}finally{At(e)}}}}function Xt(e,t,n,r){if(null!==(n=xn(n=lt(r)))){var o=$e(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=et(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{P(gt,e)}finally{At(e)}return null}var $t={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||$t.hasOwnProperty(e)&&$t[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys($t).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$t[t]=$t[e]}))}));var rn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=je;function ln(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=M[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function An(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=An(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=An(r)}}function gn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hn=null,fn=null;function mn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var In="function"==typeof setTimeout?setTimeout:void 0,Cn="function"==typeof clearTimeout?clearTimeout:void 0;function En(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function bn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),Bn="__reactInternalInstance$"+vn,Mn="__reactEventHandlers$"+vn,Dn="__reactContainere$"+vn;function xn(e){var t=e[Bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[Bn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=bn(e);null!==e;){if(n=e[Bn])return n;e=bn(e)}return t}n=(e=n).parentNode}return null}function wn(e){return!(e=e[Bn]||e[Dn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Sn(e){return e[Mn]||null}function Nn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function kn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Tn(e,t,n){(t=kn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Nn(t);for(t=n.length;0<t--;)Tn(n[t],"captured",e);for(t=0;t<n.length;t++)Tn(n[t],"bubbled",e)}}function Ln(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=kn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){e&&e.dispatchConfig.registrationName&&Ln(e._targetInst,null,e)}function On(e){ot(e,jn)}var _n=null,Fn=null,zn=null;function Pn(){if(zn)return zn;var e,t,n=Fn,r=n.length,o="value"in _n?_n.value:_n.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return zn=o.slice(e,1<t?1-t:void 0)}function Un(){return!0}function Gn(){return!1}function Hn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Un:Gn,this.isPropagationStopped=Gn,this}function Yn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Vn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=Yn,e.release=Vn}o(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){this.isPersistent=Un},isPersistent:Gn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Gn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(Hn);var Kn=Hn.extend({data:null}),Zn=Hn.extend({data:null}),Jn=[9,13,27,32],qn=x&&"CompositionEvent"in window,Xn=null;x&&"documentMode"in document&&(Xn=document.documentMode);var $n=x&&"TextEvent"in window&&!Xn,er=x&&(!qn||Xn&&8<Xn&&11>=Xn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(qn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else ar?or(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(ar||i!==nr.compositionStart?i===nr.compositionEnd&&ar&&(o=Pn()):(Fn="value"in(_n=r)?_n.value:_n.textContent,ar=!0)),i=Kn.getPooled(i,t,n,r),o?i.data=o:null!==(o=ir(n))&&(i.data=o),On(i),o=i):o=null,(e=$n?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!qn&&or(e,t)?(e=Pn(),zn=Fn=_n=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Zn.getPooled(nr.beforeInput,t,n,r)).data=e,On(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ar(e,t,n){return(e=Hn.getPooled(ur.change,e,t,n)).type="change",k(n),On(e),e}var dr=null,gr=null;function pr(e){st(e)}function hr(e){if(Ee(Qn(e)))return e}function fr(e,t){if("change"===e)return t}var mr=!1;function yr(){dr&&(dr.detachEvent("onpropertychange",Ir),gr=dr=null)}function Ir(e){if("value"===e.propertyName&&hr(gr))if(e=Ar(gr,e,lt(e)),_)st(e);else{_=!0;try{j(pr,e)}finally{_=!1,z()}}}function Cr(e,t,n){"focus"===e?(yr(),gr=n,(dr=t).attachEvent("onpropertychange",Ir)):"blur"===e&&yr()}function Er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return hr(gr)}function br(e,t){if("click"===e)return hr(t)}function vr(e,t){if("input"===e||"change"===e)return hr(t)}x&&(mr=ct("input")&&(!document.documentMode||9<document.documentMode));var Br={eventTypes:ur,_isInputEventSupported:mr,extractEvents:function(e,t,n,r){var o=t?Qn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=fr;else if(cr(o))if(mr)a=vr;else{a=Er;var s=Cr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=br);if(a&&(a=a(e,t)))return Ar(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&xe(o,"number",o.value)}},Mr=Hn.extend({view:null,detail:null}),Dr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dr[e])&&!!t[e]}function wr(){return xr}var Qr=0,Sr=0,Nr=!1,kr=!1,Tr=Mr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:wr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Qr;return Qr=e.screenX,Nr?"mousemove"===e.type?e.screenX-t:0:(Nr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Sr;return Sr=e.screenY,kr?"mousemove"===e.type?e.screenY-t:0:(kr=!0,0)}}),jr=Tr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Rr={eventTypes:Lr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?xn(t):null)&&(t!==$e(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Tr,l=Lr.mouseLeave,c=Lr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=jr,l=Lr.pointerLeave,c=Lr.pointerEnter,u="pointer");if(e=null==a?i:Qn(a),i=null==t?i:Qn(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=Nn(e))a++;for(e=0,t=c;t;t=Nn(t))e++;for(;0<a-e;)s=Nn(s),a--;for(;0<e-a;)c=Nn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Nn(s),c=Nn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Nn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=Nn(u);for(u=0;u<s.length;u++)Ln(s[u],"bubbled",l);for(u=r.length;0<u--;)Ln(r[u],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},_r=Object.prototype.hasOwnProperty;function Fr(e,t){if(Or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!_r.call(t,n[r])||!Or(e[n[r]],t[n[r]]))return!1;return!0}var zr=x&&"documentMode"in document&&11>=document.documentMode,Pr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ur=null,Gr=null,Hr=null,Yr=!1;function Vr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Ur||Ur!==un(n)?null:("selectionStart"in(n=Ur)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&Fr(Hr,n)?null:(Hr=n,(e=Hn.getPooled(Pr.select,Gr,e,t)).type="select",e.target=Ur,On(e),e))}var Wr={eventTypes:Pr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Xe(o),i=M.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Qn(t):window,e){case"focus":(cr(o)||"true"===o.contentEditable)&&(Ur=o,Gr=t,Hr=null);break;case"blur":Hr=Gr=Ur=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Vr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Vr(n,r)}return null}},Kr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jr=Mr.extend({relatedTarget:null});function qr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$r={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo=Mr.extend({key:function(e){if(e.key){var t=Xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?$r[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:wr,charCode:function(e){return"keypress"===e.type?qr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=Tr.extend({dataTransfer:null}),no=Mr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:wr}),ro=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Tr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),io={eventTypes:Ot,extractEvents:function(e,t,n,r){var o=_t.get(e);if(!o)return null;switch(e){case"keypress":if(0===qr(n))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=Jr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=no;break;case Ve:case We:case Ke:e=Kr;break;case Ze:e=ro;break;case"scroll":e=Mr;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=Zr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=jr;break;default:e=Hn}return On(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),C(),p=Sn,h=wn,f=Qn,D({SimpleEventPlugin:io,EnterLeaveEventPlugin:Rr,ChangeEventPlugin:Br,SelectEventPlugin:Wr,BeforeInputEventPlugin:sr});var ao=[],so=-1;function lo(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function co(e,t){so++,ao[so]=e.current,e.current=t}var uo={},Ao={current:uo},go={current:!1},po=uo;function ho(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fo(e){return null!=(e=e.childContextTypes)}function mo(){lo(go),lo(Ao)}function yo(e,t,n){if(Ao.current!==uo)throw Error(a(168));co(Ao,t),co(go,n)}function Io(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,fe(t)||"Unknown",i));return o({},n,{},r)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,po=Ao.current,co(Ao,e),co(go,go.current),!0}function Eo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Io(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,lo(go),lo(Ao),co(Ao,e)):lo(go),co(go,n)}var bo=i.unstable_runWithPriority,vo=i.unstable_scheduleCallback,Bo=i.unstable_cancelCallback,Mo=i.unstable_requestPaint,Do=i.unstable_now,xo=i.unstable_getCurrentPriorityLevel,wo=i.unstable_ImmediatePriority,Qo=i.unstable_UserBlockingPriority,So=i.unstable_NormalPriority,No=i.unstable_LowPriority,ko=i.unstable_IdlePriority,To={},jo=i.unstable_shouldYield,Lo=void 0!==Mo?Mo:function(){},Ro=null,Oo=null,_o=!1,Fo=Do(),zo=1e4>Fo?Do:function(){return Do()-Fo};function Po(){switch(xo()){case wo:return 99;case Qo:return 98;case So:return 97;case No:return 96;case ko:return 95;default:throw Error(a(332))}}function Uo(e){switch(e){case 99:return wo;case 98:return Qo;case 97:return So;case 96:return No;case 95:return ko;default:throw Error(a(332))}}function Go(e,t){return e=Uo(e),bo(e,t)}function Ho(e,t,n){return e=Uo(e),vo(e,t,n)}function Yo(e){return null===Ro?(Ro=[e],Oo=vo(wo,Wo)):Ro.push(e),To}function Vo(){if(null!==Oo){var e=Oo;Oo=null,Bo(e)}Wo()}function Wo(){if(!_o&&null!==Ro){_o=!0;var e=0;try{var t=Ro;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ro=null}catch(t){throw null!==Ro&&(Ro=Ro.slice(e+1)),vo(wo,Vo),t}finally{_o=!1}}}function Ko(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jo={current:null},qo=null,Xo=null,$o=null;function ei(){$o=Xo=qo=null}function ti(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ri(e,t){qo=e,$o=Xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Sa=!0),e.firstContext=null)}function oi(e,t){if($o!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||($o=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xo){if(null===qo)throw Error(a(308));Xo=t,qo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xo=Xo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ci(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ui(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Ai(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=i.baseState,u=0,A=null,d=null,g=null;if(null!==l)for(var p=l;;){if((s=p.expirationTime)<r){var h={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===g?(d=g=h,A=c):g=g.next=h,s>u&&(u=s)}else{null!==g&&(g=g.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),il(s,p.suspenseConfig);e:{var f=e,m=p;switch(s=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){c=f.call(h,c,s);break e}c=f;break e;case 3:f.effectTag=-4097&f.effectTag|64;case 0:if(null==(s="function"==typeof(f=m.payload)?f.call(h,c,s):f))break e;c=o({},c,s);break e;case 2:ii=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[p]:s.push(p))}if(null===(p=p.next)||p===l){if(null===(s=i.shared.pending))break;p=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===g?A=c:g.next=d,i.baseState=A,i.baseQueue=g,al(u),e.expirationTime=u,e.memoizedState=c}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var gi=J.ReactCurrentBatchConfig,pi=(new r.Component).refs;function hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var fi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Vs(),o=gi.suspense;(o=li(r=Ws(r,e,o),o)).payload=t,null!=n&&(o.callback=n),ci(e,o),Ks(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Vs(),o=gi.suspense;(o=li(r=Ws(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),ci(e,o),Ks(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Vs(),r=gi.suspense;(r=li(n=Ws(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ci(e,r),Ks(e,n)}};function mi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(o,i))}function yi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=fo(t)?po:Ao.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=fi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ii(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fi.enqueueReplaceState(t,t.state,null)}function Ci(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=fo(t)?po:Ao.current,o.context=ho(e,i)),Ai(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&fi.enqueueReplaceState(o,o.state,null),Ai(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ei=Array.isArray;function bi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function vi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Bi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ql(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=xl(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Sl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function A(e,t,n,r,i){return null===t||7!==t.tag?((t=wl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=xl(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case te:return(t=Sl(t,e.mode,n)).return=e,t}if(Ei(t)||he(t))return(t=wl(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?A(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(Ei(n)||he(n))return null!==o?null:A(e,t,n,r,null);vi(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?A(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ei(r)||he(r))return A(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function h(o,a,s,l){for(var c=null,u=null,A=a,h=a=0,f=null;null!==A&&h<s.length;h++){A.index>h?(f=A,A=null):f=A.sibling;var m=g(o,A,s[h],l);if(null===m){null===A&&(A=f);break}e&&A&&null===m.alternate&&t(o,A),a=i(m,a,h),null===u?c=m:u.sibling=m,u=m,A=f}if(h===s.length)return n(o,A),c;if(null===A){for(;h<s.length;h++)null!==(A=d(o,s[h],l))&&(a=i(A,a,h),null===u?c=A:u.sibling=A,u=A);return c}for(A=r(o,A);h<s.length;h++)null!==(f=p(A,o,h,s[h],l))&&(e&&null!==f.alternate&&A.delete(null===f.key?h:f.key),a=i(f,a,h),null===u?c=f:u.sibling=f,u=f);return e&&A.forEach((function(e){return t(o,e)})),c}function f(o,s,l,c){var u=he(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var A=u=null,h=s,f=s=0,m=null,y=l.next();null!==h&&!y.done;f++,y=l.next()){h.index>f?(m=h,h=null):m=h.sibling;var I=g(o,h,y.value,c);if(null===I){null===h&&(h=m);break}e&&h&&null===I.alternate&&t(o,h),s=i(I,s,f),null===A?u=I:A.sibling=I,A=I,h=m}if(y.done)return n(o,h),u;if(null===h){for(;!y.done;f++,y=l.next())null!==(y=d(o,y.value,c))&&(s=i(y,s,f),null===A?u=y:A.sibling=y,A=y);return u}for(h=r(o,h);!y.done;f++,y=l.next())null!==(y=p(h,o,f,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?f:y.key),s=i(y,s,f),null===A?u=y:A.sibling=y,A=y);return e&&h.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=bi(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=wl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=xl(i.type,i.key,i.props,null,e.mode,l)).ref=bi(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Sl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ql(i,e.mode,l)).return=e,e=r),s(e);if(Ei(i))return h(e,r,i,l);if(he(i))return f(e,r,i,l);if(u&&vi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Mi=Bi(!0),Di=Bi(!1),xi={},wi={current:xi},Qi={current:xi},Si={current:xi};function Ni(e){if(e===xi)throw Error(a(174));return e}function ki(e,t){switch(co(Si,t),co(Qi,e),co(wi,xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oe(null,"");break;default:t=Oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(wi),co(wi,t)}function Ti(){lo(wi),lo(Qi),lo(Si)}function ji(e){Ni(Si.current);var t=Ni(wi.current),n=Oe(t,e.type);t!==n&&(co(Qi,e),co(wi,n))}function Li(e){Qi.current===e&&(lo(wi),lo(Qi))}var Ri={current:0};function Oi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function _i(e,t){return{responder:e,props:t}}var Fi=J.ReactCurrentDispatcher,zi=J.ReactCurrentBatchConfig,Pi=0,Ui=null,Gi=null,Hi=null,Yi=!1;function Vi(){throw Error(a(321))}function Wi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Or(e[n],t[n]))return!1;return!0}function Ki(e,t,n,r,o,i){if(Pi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fi.current=null===e||null===e.memoizedState?ma:ya,e=n(r,o),t.expirationTime===Pi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Hi=Gi=null,t.updateQueue=null,Fi.current=Ia,e=n(r,o)}while(t.expirationTime===Pi)}if(Fi.current=fa,t=null!==Gi&&null!==Gi.next,Pi=0,Hi=Gi=Ui=null,Yi=!1,t)throw Error(a(300));return e}function Zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hi?Ui.memoizedState=Hi=e:Hi=Hi.next=e,Hi}function Ji(){if(null===Gi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=Gi.next;var t=null===Hi?Ui.memoizedState:Hi.next;if(null!==t)Hi=t,Gi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Gi=e).memoizedState,baseState:Gi.baseState,baseQueue:Gi.baseQueue,queue:Gi.queue,next:null},null===Hi?Ui.memoizedState=Hi=e:Hi=Hi.next=e}return Hi}function qi(e,t){return"function"==typeof t?t(e):t}function Xi(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Gi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.expirationTime;if(u<Pi){var A={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=A,i=r):l=l.next=A,u>Ui.expirationTime&&(Ui.expirationTime=u,al(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),il(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,Or(r,t.memoizedState)||(Sa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function $i(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Or(i,t.memoizedState)||(Sa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ea(e){var t=Zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:qi,lastRenderedState:e}).dispatch=ha.bind(null,Ui,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ui.updateQueue)?(t={lastEffect:null},Ui.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Ji().memoizedState}function ra(e,t,n,r){var o=Zi();Ui.effectTag|=e,o.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function oa(e,t,n,r){var o=Ji();r=void 0===r?null:r;var i=void 0;if(null!==Gi){var a=Gi.memoizedState;if(i=a.destroy,null!==r&&Wi(r,a.deps))return void ta(t,n,i,r)}Ui.effectTag|=e,o.memoizedState=ta(1|t,n,i,r)}function ia(e,t){return ra(516,4,e,t)}function aa(e,t){return oa(516,4,e,t)}function sa(e,t){return oa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)}function ua(){}function Aa(e,t){return Zi().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pa(e,t,n){var r=Po();Go(98>r?98:r,(function(){e(!0)})),Go(97<r?97:r,(function(){var r=zi.suspense;zi.suspense=void 0===t?null:t;try{e(!1),n()}finally{zi.suspense=r}}))}function ha(e,t,n){var r=Vs(),o=gi.suspense;o={expirationTime:r=Ws(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Ui||null!==i&&i===Ui)Yi=!0,o.expirationTime=Pi,Ui.expirationTime=Pi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,Or(s,a))return}catch(e){}Ks(e,r)}}var fa={readContext:oi,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useResponder:Vi,useDeferredValue:Vi,useTransition:Vi},ma={readContext:oi,useCallback:Aa,useContext:oi,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ha.bind(null,Ui,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Zi().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:_i,useDeferredValue:function(e,t){var n=ea(e),r=n[0],o=n[1];return ia((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{o(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[Aa(pa.bind(null,t,e),[t,e]),n]}},ya={readContext:oi,useCallback:da,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:ga,useReducer:Xi,useRef:na,useState:function(){return Xi(qi)},useDebugValue:ua,useResponder:_i,useDeferredValue:function(e,t){var n=Xi(qi),r=n[0],o=n[1];return aa((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{o(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xi(qi),n=t[0];return t=t[1],[da(pa.bind(null,t,e),[t,e]),n]}},Ia={readContext:oi,useCallback:da,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:ga,useReducer:$i,useRef:na,useState:function(){return $i(qi)},useDebugValue:ua,useResponder:_i,useDeferredValue:function(e,t){var n=$i(qi),r=n[0],o=n[1];return aa((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{o(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=$i(qi),n=t[0];return t=t[1],[da(pa.bind(null,t,e),[t,e]),n]}},Ca=null,Ea=null,ba=!1;function va(e,t){var n=Bl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ba(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ma(e){if(ba){var t=Ea;if(t){var n=t;if(!Ba(e,t)){if(!(t=En(n.nextSibling))||!Ba(e,t))return e.effectTag=-1025&e.effectTag|2,ba=!1,void(Ca=e);va(Ca,n)}Ca=e,Ea=En(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ba=!1,Ca=e}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ca=e}function xa(e){if(e!==Ca)return!1;if(!ba)return Da(e),ba=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=Ea;t;)va(e,t),t=En(t.nextSibling);if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ea=En(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ea=null}}else Ea=Ca?En(e.stateNode.nextSibling):null;return!0}function wa(){Ea=Ca=null,ba=!1}var Qa=J.ReactCurrentOwner,Sa=!1;function Na(e,t,n,r){t.child=null===e?Di(t,null,n,r):Mi(t,e.child,n,r)}function ka(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=Ki(e,t,n,r,i,o),null===e||Sa?(t.effectTag|=1,Na(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function Ta(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ml(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=xl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ja(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(o,r)&&e.ref===t.ref)?Ka(e,t,i):(t.effectTag|=1,(e=Dl(a,r)).ref=t.ref,e.return=t,t.child=e)}function ja(e,t,n,r,o,i){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Sa=!1,o<i)?(t.expirationTime=e.expirationTime,Ka(e,t,i)):Ra(e,t,n,r,i)}function La(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ra(e,t,n,r,o){var i=fo(n)?po:Ao.current;return i=ho(t,i),ri(t,o),n=Ki(e,t,n,r,i,o),null===e||Sa?(t.effectTag|=1,Na(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function Oa(e,t,n,r,o){if(fo(n)){var i=!0;Co(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,r),Ci(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oi(c):c=ho(t,c=fo(n)?po:Ao.current);var u=n.getDerivedStateFromProps,A="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;A||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ii(t,a,r,c),ii=!1;var d=t.memoizedState;a.state=d,Ai(t,r,a,o),l=t.memoizedState,s!==r||d!==l||go.current||ii?("function"==typeof u&&(hi(t,n,u,r),l=t.memoizedState),(s=ii||mi(t,n,s,r,d,l,c))?(A||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,si(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Zo(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oi(c):c=ho(t,c=fo(n)?po:Ao.current),(A="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ii(t,a,r,c),ii=!1,l=t.memoizedState,a.state=l,Ai(t,r,a,o),d=t.memoizedState,s!==r||l!==d||go.current||ii?("function"==typeof u&&(hi(t,n,u,r),d=t.memoizedState),(u=ii||mi(t,n,s,r,l,d,c))?(A||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){La(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Eo(t,n,!1),Ka(e,t,i);r=t.stateNode,Qa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Mi(t,e.child,null,i),t.child=Mi(t,null,s,i)):Na(e,t,s,i),t.memoizedState=r.state,o&&Eo(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yo(0,t.context,!1),ki(e,t.containerInfo)}var za,Pa,Ua,Ga={dehydrated:null,retryTime:0};function Ha(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Ri.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),co(Ri,1&a),null===e){if(void 0!==i.fallback&&Ma(t),s){if(s=i.fallback,(i=wl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=wl(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ga,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Di(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Dl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Dl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ga,t.child=n,o}return n=Mi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=wl(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=wl(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ga,t.child=i,n}return t.memoizedState=null,t.child=Mi(t,e,i.children,n)}function Ya(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Va(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Wa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Na(e,t,r.children,n),0!=(2&(r=Ri.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ya(e,n);else if(19===e.tag)Ya(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co(Ri,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Oi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Va(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Oi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Va(t,!0,n,null,i,t.lastEffect);break;case"together":Va(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&al(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fo(t.type)&&mo(),null;case 3:return Ti(),lo(go),lo(Ao),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!xa(t)||(t.effectTag|=4),null;case 5:Li(t),n=Ni(Si.current);var i=t.type;if(null!==e&&null!=t.stateNode)Pa(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ni(wi.current),xa(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Bn]=t,r[Mn]=s,i){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Je.length;e++)Wt(Je[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":ve(r,s),Wt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",r),ln(n,"onChange");break;case"textarea":Ne(r,s),Wt("invalid",r),ln(n,"onChange")}for(var l in on(i,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):B.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(i){case"input":Ce(r),De(r,s,!0);break;case"textarea":Ce(r),Te(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Re(i)),e===sn?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[Bn]=t,e[Mn]=r,za(e,t),t.stateNode=e,l=an(i,r),i){case"iframe":case"object":case"embed":Wt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Je.length;c++)Wt(Je[c],e);c=r;break;case"source":Wt("error",e),c=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),c=r;break;case"form":Wt("reset",e),Wt("submit",e),c=r;break;case"details":Wt("toggle",e),c=r;break;case"input":ve(e,r),c=be(e,r),Wt("invalid",e),ln(n,"onChange");break;case"option":c=we(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),Wt("invalid",e),ln(n,"onChange");break;case"textarea":Ne(e,r),c=Se(e,r),Wt("invalid",e),ln(n,"onChange");break;default:c=r}on(i,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var A=u[s];"style"===s?nn(e,A):"dangerouslySetInnerHTML"===s?null!=(A=A?A.__html:void 0)&&Fe(e,A):"children"===s?"string"==typeof A?("textarea"!==i||""!==A)&&ze(e,A):"number"==typeof A&&ze(e,""+A):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(B.hasOwnProperty(s)?null!=A&&ln(n,s):null!=A&&q(e,s,A,l))}switch(i){case"input":Ce(e),De(e,r,!1);break;case"textarea":Ce(e),Te(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Qe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Qe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}mn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ua(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ni(Si.current),Ni(wi.current),xa(t)?(n=t.stateNode,r=t.memoizedProps,n[Bn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Bn]=t,t.stateNode=n)}return null;case 13:return lo(Ri),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&xa(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ri.current)?xs===Cs&&(xs=Es):(xs!==Cs&&xs!==Es||(xs=bs),0!==ks&&null!==Bs&&(Tl(Bs,Ds),jl(Bs,ks)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ti(),null;case 10:return ti(t),null;case 17:return fo(t.type)&&mo(),null;case 19:if(lo(Ri),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)Za(r,!1);else if(xs!==Cs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Oi(s))){for(t.effectTag|=64,Za(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return co(Ri,1&Ri.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Oi(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Za(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Za(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=zo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zo(),n.sibling=null,t=Ri.current,co(Ri,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function qa(e){switch(e.tag){case 1:fo(e.type)&&mo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ti(),lo(go),lo(Ao),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Li(e),null;case 13:return lo(Ri),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Ri),null;case 4:return Ti(),null;case 10:return ti(e),null;default:return null}}function Xa(e,t){return{value:e,source:t,stack:me(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pa=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(Ni(wi.current),e=null,n){case"input":a=be(c,a),r=be(c,r),e=[];break;case"option":a=we(c,a),r=we(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Se(c,a),r=Se(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(B.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(B.hasOwnProperty(s)?(null!=u&&ln(i,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ua=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var $a="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=me(n)),null!==n&&fe(n.type),t=t.value,null!==e&&1===e.tag&&fe(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void os(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&mn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Rt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof bl&&bl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Go(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){yl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function us(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,A=c;;)if(as(l,A,u),null!==A.child&&4!==A.tag)A.child.return=A,A=A.child;else{if(A===c)break e;for(;null===A.sibling;){if(null===A.return||A.return===c)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}o?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(as(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function As(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Mn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Be(n,r),an(e,o),t=an(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Fe(n,l):"children"===s?ze(n,l):q(n,s,l,t)}switch(e){case"input":Me(n,r);break;case"textarea":ke(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Qe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Qe(n,!!r.multiple,r.defaultValue,!0):Qe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,js=zo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=tn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(a(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $a),t.forEach((function(t){var r=Cl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var gs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rs||(Rs=!0,Os=r),es(e,t)},n}function hs(e,t,n){(n=li(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return es(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===_s?_s=new Set([this]):_s.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var fs,ms=Math.ceil,ys=J.ReactCurrentDispatcher,Is=J.ReactCurrentOwner,Cs=0,Es=3,bs=4,vs=0,Bs=null,Ms=null,Ds=0,xs=Cs,ws=null,Qs=1073741823,Ss=1073741823,Ns=null,ks=0,Ts=!1,js=0,Ls=null,Rs=!1,Os=null,_s=null,Fs=!1,zs=null,Ps=90,Us=null,Gs=0,Hs=null,Ys=0;function Vs(){return 0!=(48&vs)?1073741821-(zo()/10|0):0!==Ys?Ys:Ys=1073741821-(zo()/10|0)}function Ws(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Po();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&vs))return Ds;if(null!==n)e=Ko(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Ko(e,150,100);break;case 97:case 96:e=Ko(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Bs&&e===Ds&&--e,e}function Ks(e,t){if(50<Gs)throw Gs=0,Hs=null,Error(a(185));if(null!==(e=Zs(e,t))){var n=Po();1073741823===t?0!=(8&vs)&&0==(48&vs)?$s(e):(qs(e),0===vs&&Vo()):qs(e),0==(4&vs)||98!==n&&99!==n||(null===Us?Us=new Map([[e,t]]):(void 0===(n=Us.get(e))||n>t)&&Us.set(e,t))}}function Zs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Bs===o&&(al(t),xs===bs&&Tl(o,Ds)),jl(o,t)),o}function Js(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!kl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function qs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yo($s.bind(null,e));else{var t=Js(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Vs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==To&&Bo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yo($s.bind(null,e)):Ho(r,Xs.bind(null,e),{timeout:10*(1073741821-t)-zo()}),e.callbackNode=t}}}function Xs(e,t){if(Ys=0,t)return Ll(e,t=Vs()),qs(e),null;var n=Js(e);if(0!==n){if(t=e.callbackNode,0!=(48&vs))throw Error(a(327));if(hl(),e===Bs&&n===Ds||nl(e,n),null!==Ms){var r=vs;vs|=16;for(var o=ol();;)try{ll();break}catch(t){rl(e,t)}if(ei(),vs=r,ys.current=o,1===xs)throw t=ws,nl(e,n),Tl(e,n),qs(e),t;if(null===Ms)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=xs,Bs=null,r){case Cs:case 1:throw Error(a(345));case 2:Ll(e,2<n?2:n);break;case Es:if(Tl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Al(o)),1073741823===Qs&&10<(o=js+500-zo())){if(Ts){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Js(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=In(dl.bind(null,e),o);break}dl(e);break;case bs:if(Tl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Al(o)),Ts&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(o=Js(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ss?r=10*(1073741821-Ss)-zo():1073741823===Qs?r=0:(r=10*(1073741821-Qs)-5e3,0>(r=(o=zo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ms(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=In(dl.bind(null,e),r);break}dl(e);break;case 5:if(1073741823!==Qs&&null!==Ns){i=Qs;var s=Ns;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=zo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Tl(e,n),e.timeoutHandle=In(dl.bind(null,e),r);break}}dl(e);break;default:throw Error(a(329))}if(qs(e),e.callbackNode===t)return Xs.bind(null,e)}}return null}function $s(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&vs))throw Error(a(327));if(hl(),e===Bs&&t===Ds||nl(e,t),null!==Ms){var n=vs;vs|=16;for(var r=ol();;)try{sl();break}catch(t){rl(e,t)}if(ei(),vs=n,ys.current=r,1===xs)throw n=ws,nl(e,t),Tl(e,t),qs(e),n;if(null!==Ms)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Bs=null,dl(e),qs(e)}return null}function el(e,t){var n=vs;vs|=1;try{return e(t)}finally{0===(vs=n)&&Vo()}}function tl(e,t){var n=vs;vs&=-2,vs|=8;try{return e(t)}finally{0===(vs=n)&&Vo()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Cn(n)),null!==Ms)for(n=Ms.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&mo();break;case 3:Ti(),lo(go),lo(Ao);break;case 5:Li(r);break;case 4:Ti();break;case 13:case 19:lo(Ri);break;case 10:ti(r)}n=n.return}Bs=e,Ms=Dl(e.current,null),Ds=t,xs=Cs,ws=null,Ss=Qs=1073741823,Ns=null,ks=0,Ts=!1}function rl(e,t){for(;;){try{if(ei(),Fi.current=fa,Yi)for(var n=Ui.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Pi=0,Hi=Gi=Ui=null,Yi=!1,null===Ms||null===Ms.return)return xs=1,ws=t,Ms=null;e:{var o=e,i=Ms.return,a=Ms,s=t;if(t=Ds,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Ri.current),A=i;do{var d;if(d=13===A.tag){var g=A.memoizedState;if(null!==g)d=null!==g.dehydrated;else{var p=A.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!u)}}if(d){var h=A.updateQueue;if(null===h){var f=new Set;f.add(l),A.updateQueue=f}else h.add(l);if(0==(2&A.mode)){if(A.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var m=li(1073741823,null);m.tag=2,ci(a,m)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new gs,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var I=Il.bind(null,o,l,a);l.then(I,I)}A.effectTag|=4096,A.expirationTime=t;break e}A=A.return}while(null!==A);s=Error((fe(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+me(a))}5!==xs&&(xs=2),s=Xa(s,a),A=i;do{switch(A.tag){case 3:l=s,A.effectTag|=4096,A.expirationTime=t,ui(A,ps(A,l,t));break e;case 1:l=s;var C=A.type,E=A.stateNode;if(0==(64&A.effectTag)&&("function"==typeof C.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===_s||!_s.has(E)))){A.effectTag|=4096,A.expirationTime=t,ui(A,hs(A,l,t));break e}}A=A.return}while(null!==A)}Ms=ul(Ms)}catch(e){t=e;continue}break}}function ol(){var e=ys.current;return ys.current=fa,null===e?fa:e}function il(e,t){e<Qs&&2<e&&(Qs=e),null!==t&&e<Ss&&2<e&&(Ss=e,Ns=t)}function al(e){e>ks&&(ks=e)}function sl(){for(;null!==Ms;)Ms=cl(Ms)}function ll(){for(;null!==Ms&&!jo();)Ms=cl(Ms)}function cl(e){var t=fs(e.alternate,e,Ds);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),Is.current=null,t}function ul(e){Ms=e;do{var t=Ms.alternate;if(e=Ms.return,0==(2048&Ms.effectTag)){if(t=Ja(t,Ms,Ds),1===Ds||1!==Ms.childExpirationTime){for(var n=0,r=Ms.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Ms.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ms.firstEffect),null!==Ms.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ms.firstEffect),e.lastEffect=Ms.lastEffect),1<Ms.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ms:e.firstEffect=Ms,e.lastEffect=Ms))}else{if(null!==(t=qa(Ms)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ms.sibling))return t;Ms=e}while(null!==Ms);return xs===Cs&&(xs=5),null}function Al(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=Po();return Go(99,gl.bind(null,e,t)),null}function gl(e,t){do{hl()}while(null!==zs);if(0!=(48&vs))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Al(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Bs&&(Ms=Bs=null,Ds=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=vs;vs|=32,Is.current=null,hn=Vt;var s=gn();if(pn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,A=c.focusNode;c=c.focusOffset;try{l.nodeType,A.nodeType}catch(e){l=null;break e}var d=0,g=-1,p=-1,h=0,f=0,m=s,y=null;t:for(;;){for(var I;m!==l||0!==u&&3!==m.nodeType||(g=d+u),m!==A||0!==c&&3!==m.nodeType||(p=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(I=m.firstChild);)y=m,m=I;for(;;){if(m===s)break t;if(y===l&&++h===u&&(g=d),y===A&&++f===c&&(p=d),null!==(I=m.nextSibling))break;y=(m=y).parentNode}m=I}l=-1===g||-1===p?null:{start:g,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;fn={activeElementDetached:null,focusedElem:s,selectionRange:l},Vt=!1,Ls=o;do{try{pl()}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);Ls=o;do{try{for(s=e,l=t;null!==Ls;){var C=Ls.effectTag;if(16&C&&ze(Ls.stateNode,""),128&C){var E=Ls.alternate;if(null!==E){var b=E.ref;null!==b&&("function"==typeof b?b(null):b.current=null)}}switch(1038&C){case 2:cs(Ls),Ls.effectTag&=-3;break;case 6:cs(Ls),Ls.effectTag&=-3,As(Ls.alternate,Ls);break;case 1024:Ls.effectTag&=-1025;break;case 1028:Ls.effectTag&=-1025,As(Ls.alternate,Ls);break;case 4:As(Ls.alternate,Ls);break;case 8:us(s,u=Ls,l),ss(u)}Ls=Ls.nextEffect}}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);if(b=fn,E=gn(),C=b.focusedElem,l=b.selectionRange,E!==C&&C&&C.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(C.ownerDocument.documentElement,C)){null!==l&&pn(C)&&(E=l.start,void 0===(b=l.end)&&(b=E),"selectionStart"in C?(C.selectionStart=E,C.selectionEnd=Math.min(b,C.value.length)):(b=(E=C.ownerDocument||document)&&E.defaultView||window).getSelection&&(b=b.getSelection(),u=C.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!b.extend&&s>l&&(u=l,l=s,s=u),u=dn(C,s),A=dn(C,l),u&&A&&(1!==b.rangeCount||b.anchorNode!==u.node||b.anchorOffset!==u.offset||b.focusNode!==A.node||b.focusOffset!==A.offset)&&((E=E.createRange()).setStart(u.node,u.offset),b.removeAllRanges(),s>l?(b.addRange(E),b.extend(A.node,A.offset)):(E.setEnd(A.node,A.offset),b.addRange(E))))),E=[];for(b=C;b=b.parentNode;)1===b.nodeType&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<E.length;C++)(b=E[C]).element.scrollLeft=b.left,b.element.scrollTop=b.top}Vt=!!hn,fn=hn=null,e.current=n,Ls=o;do{try{for(C=e;null!==Ls;){var v=Ls.effectTag;if(36&v&&is(C,Ls.alternate,Ls),128&v){E=void 0;var B=Ls.ref;if(null!==B){var M=Ls.stateNode;switch(Ls.tag){case 5:E=M;break;default:E=M}"function"==typeof B?B(E):B.current=E}}Ls=Ls.nextEffect}}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);Ls=null,Lo(),vs=i}else e.current=n;if(Fs)Fs=!1,zs=e,Ps=t;else for(Ls=o;null!==Ls;)t=Ls.nextEffect,Ls.nextEffect=null,Ls=t;if(0===(t=e.firstPendingTime)&&(_s=null),1073741823===t?e===Hs?Gs++:(Gs=0,Hs=e):Gs=0,"function"==typeof El&&El(n.stateNode,r),qs(e),Rs)throw Rs=!1,e=Os,Os=null,e;return 0!=(8&vs)||Vo(),null}function pl(){for(;null!==Ls;){var e=Ls.effectTag;0!=(256&e)&&ns(Ls.alternate,Ls),0==(512&e)||Fs||(Fs=!0,Ho(97,(function(){return hl(),null}))),Ls=Ls.nextEffect}}function hl(){if(90!==Ps){var e=97<Ps?97:Ps;return Ps=90,Go(e,fl)}}function fl(){if(null===zs)return!1;var e=zs;if(zs=null,0!=(48&vs))throw Error(a(331));var t=vs;for(vs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),os(5,n)}}catch(t){if(null===e)throw Error(a(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return vs=t,Vo(),!0}function ml(e,t,n){ci(e,t=ps(e,t=Xa(n,t),1073741823)),null!==(e=Zs(e,1073741823))&&qs(e)}function yl(e,t){if(3===e.tag)ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_s||!_s.has(r))){ci(n,e=hs(n,e=Xa(t,e),1073741823)),null!==(n=Zs(n,1073741823))&&qs(n);break}}n=n.return}}function Il(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Bs===e&&Ds===n?xs===bs||xs===Es&&1073741823===Qs&&zo()-js<500?nl(e,Ds):Ts=!0:kl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,qs(e)))}function Cl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Vs(),e,null)),null!==(e=Zs(e,t))&&qs(e)}fs=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||go.current)Sa=!0;else{if(r<n){switch(Sa=!1,t.tag){case 3:Fa(t),wa();break;case 5:if(ji(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:fo(t.type)&&Co(t);break;case 4:ki(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,co(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(co(Ri,1&Ri.current),null!==(t=Ka(e,t,n))?t.sibling:null);co(Ri,1&Ri.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Wa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),co(Ri,Ri.current),!r)return null}return Ka(e,t,n)}Sa=!1}}else Sa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=ho(t,Ao.current),ri(t,n),o=Ki(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fo(r)){var i=!0;Co(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&hi(t,r,s,e),o.updater=fi,t.stateNode=o,o._reactInternalFiber=t,Ci(t,r,e,n),t=_a(null,t,r,!0,i,n)}else t.tag=0,Na(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ml(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===Ae)return 14}return 2}(o),e=Zo(o,e),i){case 0:t=Ra(null,t,o,e,n);break e;case 1:t=Oa(null,t,o,e,n);break e;case 11:t=ka(null,t,o,e,n);break e;case 14:t=Ta(null,t,o,Zo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ra(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),Ai(t,r,null,n),(r=t.memoizedState.element)===o)wa(),t=Ka(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ea=En(t.stateNode.containerInfo.firstChild),Ca=t,o=ba=!0),o)for(n=Di(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Na(e,t,r,n),wa();t=t.child}return t;case 5:return ji(t),null===e&&Ma(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,yn(r,o)?s=null:null!==i&&yn(r,i)&&(t.effectTag|=16),La(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Na(e,t,s,n),t=t.child),t;case 6:return null===e&&Ma(t),null;case 13:return Ha(e,t,n);case 4:return ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Mi(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ka(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(co(Jo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=Or(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!go.current){t=Ka(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=li(n,null)).tag=2,ci(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ni(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Na(e,t,r,n),t.child;case 14:return i=Zo(o=t.type,t.pendingProps),Ta(e,t,o,i=Zo(o.type,i),r,n);case 15:return ja(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,fo(r)?(e=!0,Co(t)):e=!1,ri(t,n),yi(t,r,o),Ci(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var El=null,bl=null;function vl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Bl(e,t,n,r){return new vl(e,t,n,r)}function Ml(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Bl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ml(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return wl(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=Bl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Bl(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Bl(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case Ae:s=14;break e;case de:s=16,r=null;break e;case ge:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function wl(e,t,n,r){return(e=Bl(7,e,r,t)).expirationTime=n,e}function Ql(e,t,n){return(e=Bl(6,e,null,t)).expirationTime=n,e}function Sl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function kl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Tl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function jl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ll(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Rl(e,t,n,r){var o=t.current,i=Vs(),s=gi.suspense;i=Ws(i,o,s);e:if(n){t:{if($e(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(fo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(fo(c)){n=Io(n,c,l);break e}}n=l}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ci(o,t),Ks(o,i),i}function Ol(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function _l(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fl(e,t){_l(e,t),(e=e.alternate)&&_l(e,t)}function zl(e,t,n){var r=new Nl(e,t,n=null!=n&&!0===n.hydrate),o=Bl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ai(o),e[Dn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);Dt.forEach((function(e){pt(e,t,n)})),xt.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Pl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ul(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Ol(a);s.call(e)}}Rl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Ol(a);l.call(e)}}tl((function(){Rl(t,a,e,o)}))}return Ol(a)}function Gl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Pl(t))throw Error(a(200));return Gl(e,t,null,n)}zl.prototype.render=function(e){Rl(e,this._internalRoot,null,null)},zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Rl(null,e,null,(function(){t[Dn]=null}))},ht=function(e){if(13===e.tag){var t=Ko(Vs(),150,100);Ks(e,t),Fl(e,t)}},ft=function(e){13===e.tag&&(Ks(e,3),Fl(e,3))},mt=function(e){if(13===e.tag){var t=Vs();Ks(e,t=Ws(t,e,null)),Fl(e,t)}},w=function(e,t,n){switch(t){case"input":if(Me(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Sn(r);if(!o)throw Error(a(90));Ee(r),Me(r,o)}}}break;case"textarea":ke(e,n);break;case"select":null!=(t=n.value)&&Qe(e,!!n.multiple,t,!1)}},j=el,L=function(e,t,n,r,o){var i=vs;vs|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(vs=i)&&Vo()}},R=function(){0==(49&vs)&&(function(){if(null!==Us){var e=Us;Us=null,e.forEach((function(e,t){Ll(t,e),qs(t)})),Vo()}}(),hl())},O=function(e,t){var n=vs;vs|=2;try{return e(t)}finally{0===(vs=n)&&Vo()}};var Yl,Vl,Wl={Events:[wn,Qn,Sn,D,v,On,function(e){ot(e,Rn)},k,T,qt,st,hl,{current:!1}]};Vl=(Yl={findFiberByHostInstance:xn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);El=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},bl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},Yl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Vl?Vl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wl,t.createPortal=Hl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&vs))throw Error(a(187));var n=vs;vs|=1;try{return Go(99,e.bind(null,t))}finally{vs=n,Vo()}},t.hydrate=function(e,t,n){if(!Pl(t))throw Error(a(200));return Ul(null,e,t,!0,n)},t.render=function(e,t,n){if(!Pl(t))throw Error(a(200));return Ul(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Pl(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){Ul(null,null,e,!1,(function(){e._reactRootContainer=null,e[Dn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Hl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Ul(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(391)},function(e,t,n){"use strict";
/** @license React v0.19.1
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r,o,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},A=Date.now();t.unstable_now=function(){return Date.now()-A},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,g=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=g.now();t.unstable_now=function(){return g.now()-m}}var y=!1,I=null,C=-1,E=5,b=0;a=function(){return t.unstable_now()>=b},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):E=0<e?Math.floor(1e3/e):5};var v=new MessageChannel,B=v.port2;v.port1.onmessage=function(){if(null!==I){var e=t.unstable_now();b=e+E;try{I(!0,e)?B.postMessage(null):(y=!1,I=null)}catch(e){throw B.postMessage(null),e}}else y=!1},r=function(e){I=e,y||(y=!0,B.postMessage(null))},o=function(e,n){C=p((function(){e(t.unstable_now())}),n)},i=function(){h(C),C=-1}}function M(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<w(o,t)))break e;e[r]=t,e[n]=o,n=r}}function D(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>w(a,n))void 0!==l&&0>w(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>w(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var Q=[],S=[],N=1,k=null,T=3,j=!1,L=!1,R=!1;function O(e){for(var t=D(S);null!==t;){if(null===t.callback)x(S);else{if(!(t.startTime<=e))break;x(S),t.sortIndex=t.expirationTime,M(Q,t)}t=D(S)}}function _(e){if(R=!1,O(e),!L)if(null!==D(Q))L=!0,r(F);else{var t=D(S);null!==t&&o(_,t.startTime-e)}}function F(e,n){L=!1,R&&(R=!1,i()),j=!0;var r=T;try{for(O(n),k=D(Q);null!==k&&(!(k.expirationTime>n)||e&&!a());){var s=k.callback;if(null!==s){k.callback=null,T=k.priorityLevel;var l=s(k.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?k.callback=l:k===D(Q)&&x(Q),O(n)}else x(Q);k=D(Q)}if(null!==k)var c=!0;else{var u=D(S);null!==u&&o(_,u.startTime-n),c=!1}return c}finally{k=null,T=r,j=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var P=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||j||(L=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return D(Q)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:N++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,M(S,e),null===D(Q)&&e===D(S)&&(R?i():R=!0,o(_,l-s))):(e.sortIndex=a,M(Q,e),L||j||(L=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();O(e);var n=D(Q);return n!==k&&null!==k&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<k.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.DragStateView=t.DragController=t.DragSession=t.DragContext=void 0;var a=n(0),s=n(29),l=n(5),c=function(){function e(){this._onleave=null,this._onover=null,this._ondrop=null}return e.prototype.onLeave=function(e){this._onleave=e},e.prototype.onOver=function(e){this._onover=e},e.prototype.onDrop=function(e){this._ondrop=e},e}();t.DragContext=c;var u=function(){function e(e,t,n){this.candidates=[],this.states=new Map,this.parent=e,this.obj=t,this.startPoint=n,this.point=n,this.data=t.onDragStart()}return e.prototype.handlePan=function(e,t){var n=this;this.point=e;for(var r=document.elementFromPoint(e.x,e.y),o=new Set;null!=r;){var i=this.parent.getDroppableFromElement(r);i&&o.add(i),r=r.parentElement}o.forEach((function(r){var o=n.states.get(r);if(o||((o=new c).draggable=n.obj,o.data=n.data,o._state=0,n.states.set(r,o)),0==o._state){var i=!1;try{i=!!r.onDragEnter&&r.onDragEnter(o)}catch(e){console.trace(e)}o._state=i?1:-1}else 1==o._state&&o._onover&&o._onover(e,t)})),this.states.forEach((function(e,t){o.has(t)||1==e._state&&(e._onleave&&e._onleave(),e._state=0,e._onover=null,e._onleave=null,e._ondrop=null)})),this.parent.emit("session")},e.prototype.handleEnd=function(e,t){if(this.states.forEach((function(n){if(1==n._state&&n._ondrop)try{n._ondrop(e,t)}catch(e){console.trace(e)}})),this.states.forEach((function(e){if(1==e._state&&e._onleave)try{e._onleave()}catch(e){console.trace(e)}})),this.states.clear(),this.obj.onDragEnd)try{this.obj.onDragEnd()}catch(e){console.trace(e)}},e.prototype.pushCandidate=function(e,t){this.candidates.push([e,t])},e.prototype.popCandidate=function(e){this.candidates=this.candidates.filter((function(t){var n=i(t,2),r=n[0],o=n[1];return r!==e||(o(),!1)}))},e.prototype.removeCandidate=function(e){this.states.delete(e)},e}();t.DragSession=u;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._draggables=new WeakMap,t._droppables=new WeakMap,t._element2Droppable=new WeakMap,t._dragSession=null,t}return o(t,e),t.prototype.getDroppableFromElement=function(e){return this._element2Droppable.get(e)},t.prototype.registerDroppable=function(e,t){var n=this;this.unregisterDroppable(e),this._element2Droppable.set(t,e),this._droppables.set(e,{remove:function(){n._element2Droppable.delete(t)}})},t.prototype.unregisterDroppable=function(e){this._droppables.has(e)&&(this._droppables.get(e).remove(),this._droppables.delete(e)),this._dragSession&&this._dragSession.removeCandidate(e)},t.prototype.registerDraggable=function(e,t,n){var r=this;this.unregisterDraggable(e);var o=new s.Manager(t);o.add(new s.Pan),o.on("panstart",(function(t){try{r._dragSession=new u(r,e,{x:t.center.x,y:t.center.y})}catch(t){return void console.trace(t)}r.emit("sessionstart"),r.emit("session")})),o.on("pan",(function(e){if(null!=r._dragSession){var t={shiftKey:e.srcEvent.shiftKey,ctrlKey:e.srcEvent.ctrlKey};r._dragSession.handlePan({x:e.center.x,y:e.center.y},t)}})),o.on("panend",(function(e){if(null!=r._dragSession){var t={shiftKey:e.srcEvent.shiftKey,ctrlKey:e.srcEvent.ctrlKey};r._dragSession.handleEnd({x:e.center.x,y:e.center.y},t),r._dragSession=null,r.emit("session"),r.emit("sessionend")}})),n&&(o.add(new s.Tap),o.on("tap",n)),this._draggables.set(e,{hammer:o})},t.prototype.unregisterDraggable=function(e){this._draggables.has(e)&&(this._draggables.get(e).hammer.destroy(),this._draggables.delete(e))},t.prototype.getSession=function(){return this._dragSession},t}(l.EventEmitter);t.DragController=A;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onSession=function(){this.forceUpdate()},t.prototype.componentDidMount=function(){this.token=this.props.controller.addListener("session",this.onSession.bind(this))},t.prototype.componentWillUnmount=function(){this.token.remove()},t.prototype.render=function(){var e=this.props.controller.getSession();if(!e)return a.createElement("div",null);var t=i(e.obj.renderDragElement(),2),n=t[0],r=t[1];return a.createElement("div",{className:"drag-state-view",style:{position:"fixed",left:0,right:0,top:0,bottom:0,pointerEvents:"none"}},a.createElement("div",{style:{position:"absolute",left:e.point.x+r.x+"px",top:e.point.y+r.y+"px"}},n))},t}(a.Component);t.DragStateView=d},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getSVGIcon=t.addSVGIcon=void 0;var o=new Map;function i(e,t){var n,i;if(e instanceof Array)try{for(var a=r(e),s=a.next();!s.done;s=a.next()){var l=s.value;o.set(l,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}else o.set(e,t)}t.addSVGIcon=i,t.getSVGIcon=function e(t){var n=o.get(t);return n||(console.warn("Icon "+t+" is undefined, using default instead"),i(t,e("ChromeClose")),e("ChromeClose"))},i("ChevronUp",n(394)),i("ChevronDown",n(395)),i("ChevronRight",n(396)),i("ChevronLeft",n(397)),i("ChromeClose",n(398)),i("general/plus",n(399)),i("general/minus",n(400)),i("Copy",n(401)),i("general/sort",n(402)),i("Sort",n(403)),i("general/dropdown",n(404)),i("Edit",n(405)),i("general/eraser",n(406)),i("general/bind-data",n(407)),i("general/confirm",n(408)),i("general/more-horizontal",n(409)),i("general/more-vertical",n(410)),i("general/replace",n(411)),i("general/eye",n(412)),i("general/eye-faded",n(413)),i("general/popout",n(414)),i("SortLines",n(415)),i("ZoomIn",n(416)),i("ZoomOut",n(417)),i("ZoomToFit",n(418)),i("general/triangle-up",n(419)),i("general/triangle-down",n(420)),i("general/triangle-left",n(421)),i("general/triangle-right-bottom",n(422)),i("general/triangle-right",n(423)),i("general/text-size-up",n(424)),i("general/text-size-down",n(425)),i("general/digits-more",n(426)),i("general/digits-less",n(427)),i("toolbar/new",n(428)),i("toolbar/open",n(429)),i("toolbar/save",n(430)),i("toolbar/save-changes",n(431)),i("toolbar/copy",n(432)),i("toolbar/download",n(433)),i("toolbar/export-template",n(434)),i("toolbar/export",n(435)),i("Undo",n(436)),i("Redo",n(437)),i("toolbar/help",n(438)),i("toolbar/import",n(439)),i("toolbar/import-template",n(440)),i("toolbar/back",n(441)),i("toolbar/trash",n(442)),i("app-icon",n(443)),i("scaffold/cartesian-x",n(444)),i("scaffold/cartesian-y",n(445)),i("scaffold/circle",n(446)),i("scaffold/curve",n(447)),i("scaffold/spiral",n(448)),i("GripperBarHorizontal",n(449)),i("GripperBarVertical",n(450)),i("scaffold/map",n(451)),i("Line",n(452)),i("plot/curve",n(453)),i("BorderDot",n(454)),i("chart",n(455)),i("glyph",n(456)),i("plot-segment/cartesian",n(457)),i("plot-segment/polar",n(458)),i("plot-segment/line",n(459)),i("plot-segment/curve",n(460)),i("guide/x",n(461)),i("guide/y",n(462)),i("guide/coordinator-x",n(463)),i("guide/coordinator-y",n(464)),i("guide/coordinator-polar",n(465)),i("CharticulatorLine",n(466)),i("link/line",n(467)),i("link/band",n(468)),i("link/between",n(469)),i("link/table",n(470)),i("link/through",n(471)),i("mark/anchor",n(472)),i("RectangleShape",n(473)),i("Ellipse",n(474)),i("TriangleShape",n(475)),i("FileImage",n(476)),i("ImagePixel",n(477)),i("Shapes",n(478)),i("Line",n(479)),i("FontColorA",n(480)),i("TextField",n(481)),i("mark/data-axis",n(482)),i("rect-zoom",n(483)),i("BarChartVerticalFilter",n(484)),i("stroke/dashed",n(485)),i("stroke/dotted",n(486)),i("stroke/solid",n(487)),i("Stack",n(488)),i("HorizontalDistributeCenter",n(489)),i("VerticalDistributeCenter",n(490)),i("CharticulatorArrangePolar",n(491)),i("CharticulatorStackRadial",n(492)),i("GridViewSmall",n(493)),i("sublayout/polar-grid",n(494)),i("sublayout/packing",n(495)),i("sublayout/jitter",n(496)),i("align/left",n(227)),i("AlignHorizontalLeft",n(227)),i("AlignHorizontalCenter",n(497)),i("AlignHorizontalRight",n(498)),i("AlignVerticalTop",n(499)),i("AlignVerticalCenter",n(500)),i("AlignVerticalBottom",n(501)),i("text-align/left",n(502)),i("text-align/x-middle",n(503)),i("text-align/right",n(504)),i("text-align/top",n(505)),i("text-align/y-middle",n(506)),i("text-align/bottom",n(507)),i("type/boolean",n(508)),i("type/categorical",n(509)),i("type/numerical",n(510)),i("type/ordinal",n(511)),i("type/temporal",n(512)),i("checkbox/empty",n(513)),i("checkbox/checked",n(514)),i("CharticulatorLegend",n(515)),i("scale/scale",n(516)),i("scale/color",n(517)),i("loading",n(518)),i("line",n(519)),i("noArrow",n(520)),i("beginArrow",n(521)),i("beginDiamondArrow",n(522)),i("beginOvalArrow",n(523)),i("endArrow",n(524)),i("endDiamondArrow",n(525)),i("endOvalArrow",n(526))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xOTU1IDE1MzNsLTkzMS05MzAtOTMxIDkzMC05MC05MEwxMDI0IDQyMWwxMDIxIDEwMjItOTAgOTB6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTQuMjE5NjcgOC40Njk2N0M0LjUxMjU2IDguMTc2NzggNC45ODc0NCA4LjE3Njc4IDUuMjgwMzMgOC40Njk2N0wxMiAxNS4xODkzTDE4LjcxOTcgOC40Njk2N0MxOS4wMTI2IDguMTc2NzggMTkuNDg3NCA4LjE3Njc4IDE5Ljc4MDMgOC40Njk2N0MyMC4wNzMyIDguNzYyNTYgMjAuMDczMiA5LjIzNzQ0IDE5Ljc4MDMgOS41MzAzM0wxMi41MzAzIDE2Ljc4MDNDMTIuMjM3NCAxNy4wNzMyIDExLjc2MjYgMTcuMDczMiAxMS40Njk3IDE2Ljc4MDNMNC4yMTk2NyA5LjUzMDMzQzMuOTI2NzggOS4yMzc0NCAzLjkyNjc4IDguNzYyNTYgNC4yMTk2NyA4LjQ2OTY3WiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2NCAoOTM1MzcpIC0gaHR0cHM6Ly9za2V0Y2guY29tIC0tPgogIDx0aXRsZT5pY19mbHVlbnRfY2hldnJvbl9yaWdodF8yNF9maWxsZWQ8L3RpdGxlPgogIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogIDxnIGlkPSLwn5SNLVN5c3RlbS1JY29ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICA8ZyBpZD0iaWNfZmx1ZW50X2NoZXZyb25fcmlnaHRfMjRfZmlsbGVkIiBmaWxsPSIjMDAwMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICA8cGF0aCBkPSJNOC4yOTI4OSw0LjI5Mjg5IEM3LjkwMjM3LDQuNjgzNDIgNy45MDIzNyw1LjMxNjU4IDguMjkyODksNS43MDcxMSBMMTQuNTg1OCwxMiBMOC4yOTI4OSwxOC4yOTI5IEM3LjkwMjM3LDE4LjY4MzQgNy45MDIzNywxOS4zMTY2IDguMjkyODksMTkuNzA3MSBDOC42ODM0MiwyMC4wOTc2IDkuMzE2NTgsMjAuMDk3NiA5LjcwNzExLDE5LjcwNzEgTDE2LjcwNzEsMTIuNzA3MSBDMTcuMDk3NiwxMi4zMTY2IDE3LjA5NzYsMTEuNjgzNCAxNi43MDcxLDExLjI5MjkgTDkuNzA3MTEsNC4yOTI4OSBDOS4zMTY1OCwzLjkwMjM3IDguNjgzNDIsMy45MDIzNyA4LjI5Mjg5LDQuMjkyODkgWiIgaWQ9IvCfjqgtQ29sb3IiPjwvcGF0aD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTE1LjUzMDMgNC4yMTk2N0MxNS44MjMyIDQuNTEyNTYgMTUuODIzMiA0Ljk4NzQ0IDE1LjUzMDMgNS4yODAzM0w4LjgxMDY2IDEyTDE1LjUzMDMgMTguNzE5N0MxNS44MjMyIDE5LjAxMjYgMTUuODIzMiAxOS40ODc0IDE1LjUzMDMgMTkuNzgwM0MxNS4yMzc0IDIwLjA3MzIgMTQuNzYyNiAyMC4wNzMyIDE0LjQ2OTcgMTkuNzgwM0w3LjIxOTY3IDEyLjUzMDNDNi45MjY3OCAxMi4yMzc0IDYuOTI2NzggMTEuNzYyNiA3LjIxOTY3IDExLjQ2OTdMMTQuNDY5NyA0LjIxOTY3QzE0Ljc2MjYgMy45MjY3OCAxNS4yMzc0IDMuOTI2NzggMTUuNTMwMyA0LjIxOTY3WiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICB5PSIwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBkPSJNMCwwaDI0djI0SDBWMHoiIC8+CiAgICA8cGF0aCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLCA0KSBzY2FsZSgwLjcpIgogICAgICAgIGQ9Ik0yMi43NSwyNGMtMC4zMiwwLTAuNjQtMC4xMjItMC44ODQtMC4zNjZMMTIsMTMuNzY4bC05Ljg2Niw5Ljg2NmMtMC40ODgsMC40ODgtMS4yNzksMC40ODgtMS43NjgsMCYjeEE7IHMtMC40ODgtMS4yNzksMC0xLjc2OEwxMC4yMzIsMTJMMC4zNjYsMi4xMzRjLTAuNDg4LTAuNDg4LTAuNDg4LTEuMjc5LDAtMS43NjhzMS4yNzktMC40ODgsMS43NjgsMEwxMiwxMC4yMzJsOS44NjYtOS44NjYmI3hBOyBjMC40ODgtMC40ODgsMS4yNzktMC40ODgsMS43NjgsMHMwLjQ4OCwxLjI3OSwwLDEuNzY4TDEzLjc2OCwxMmw5Ljg2Niw5Ljg2NmMwLjQ4OCwwLjQ4OCwwLjQ4OCwxLjI3OSwwLDEuNzY4JiN4QTsgQzIzLjM5LDIzLjg3OCwyMy4wNywyNCwyMi43NSwyNHoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48bGluZSB4MT0iMTYuMDI5ODkiIHkxPSI2LjY4NjkzIiB4Mj0iMTYuMDQ5ODIiIHkyPSIyNS4zMzMiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuNXB4Ii8+PGxpbmUgeDE9IjI1LjMyMzA0IiB5MT0iMTYiIHgyPSI2LjY3Njk2IiB5Mj0iMTYuMDE5OTMiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuNXB4Ii8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGxpbmUgeDE9IjI1LjMyMzA0IiB5MT0iMTYiIHgyPSI2LjY3Njk2IiB5Mj0iMTYuMDE5OTMiCiAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS41cHgiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1OS4xICg4NjE0NCkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgPHRpdGxlPmljX2ZsdWVudF9jb3B5XzI0X3JlZ3VsYXI8L3RpdGxlPgogIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogIDxnIGlkPSLwn5SNLVByb2R1Y3QtSWNvbnMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgaWQ9ImljX2ZsdWVudF9jb3B5XzI0X3JlZ3VsYXIiIGZpbGw9IiMyMTIxMjEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgIDxwYXRoIGQ9Ik01LjUwMjgwMzgxLDQuNjI3MDQwMzggTDUuNSw2Ljc1IEw1LjUsMTcuMjU0MjA4NyBDNS41LDE5LjA0OTEzNDIgNi45NTUwNzQ1NiwyMC41MDQyMDg3IDguNzUsMjAuNTA0MjA4NyBMMTcuMzY2Mjg2OCwyMC41MDQ0NjIyIEMxNy4wNTczMzgsMjEuMzc4MjI0MSAxNi4yMjM5NzUxLDIyLjAwNDIwODcgMTUuMjQ0NDA1NywyMi4wMDQyMDg3IEw4Ljc1LDIyLjAwNDIwODcgQzYuMTI2NjQ3NDQsMjIuMDA0MjA4NyA0LDE5Ljg3NzU2MTMgNCwxNy4yNTQyMDg3IEw0LDYuNzUgQzQsNS43NjkyODg0OCA0LjYyNzQ0NTIzLDQuOTM1MTI0NjQgNS41MDI4MDM4MSw0LjYyNzA0MDM4IFogTTE3Ljc1LDIgQzE4Ljk5MjY0MDcsMiAyMCwzLjAwNzM1OTMxIDIwLDQuMjUgTDIwLDE3LjI1IEMyMCwxOC40OTI2NDA3IDE4Ljk5MjY0MDcsMTkuNSAxNy43NSwxOS41IEw4Ljc1LDE5LjUgQzcuNTA3MzU5MzEsMTkuNSA2LjUsMTguNDkyNjQwNyA2LjUsMTcuMjUgTDYuNSw0LjI1IEM2LjUsMy4wMDczNTkzMSA3LjUwNzM1OTMxLDIgOC43NSwyIEwxNy43NSwyIFogTTE3Ljc1LDMuNSBMOC43NSwzLjUgQzguMzM1Nzg2NDQsMy41IDgsMy44MzU3ODY0NCA4LDQuMjUgTDgsMTcuMjUgQzgsMTcuNjY0MjEzNiA4LjMzNTc4NjQ0LDE4IDguNzUsMTggTDE3Ljc1LDE4IEMxOC4xNjQyMTM2LDE4IDE4LjUsMTcuNjY0MjEzNiAxOC41LDE3LjI1IEwxOC41LDQuMjUgQzE4LjUsMy44MzU3ODY0NCAxOC4xNjQyMTM2LDMuNSAxNy43NSwzLjUgWiIgaWQ9IvCfjqgtQ29sb3IiPjwvcGF0aD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0zODQgMTYzOGwxNjMtMTYzIDkwIDkwLTMxNyAzMThMMyAxNTY1bDkwLTkwIDE2MyAxNjNWMTI4aDEyOHYxNTEwem0zODQtMzU4di0xMjhoNTEydjEyOEg3Njh6bTAtMzg0Vjc2OGg4OTZ2MTI4SDc2OHptMC01MTJoMTI4MHYxMjhINzY4VjM4NHoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KICA8cGF0aCBkPSJNMi4yMTk2NSA5LjIxOTc1TDYuNzE0NDEgNC43MjQ3QzYuOTgwNDcgNC40NTg2MiA3LjM5Njc2IDQuNDM0MjEgNy42OTAzOCA0LjY1MTYyTDcuNzc0NTEgNC43MjQxTDEyLjI3OTQgOS4yMTkxNkMxMi41NzI2IDkuNTExNzMgMTIuNTczMSA5Ljk4NjYgMTIuMjgwNSAxMC4yNzk4QzEyLjAxNDUgMTAuNTQ2NCAxMS41OTc5IDEwLjU3MSAxMS4zMDQxIDEwLjM1MzVMMTEuMjE5OSAxMC4yODFMNy45OTcgNy4wNjQxMkw3Ljk5NzY2IDE4Ljc2QzcuOTk3NjYgMTkuMTM5NyA3LjcxNTUxIDE5LjQ1MzQgNy4zNDk0MyAxOS41MDMxTDcuMjQ3NjYgMTkuNTFDNi44Njc5NyAxOS41MSA2LjU1NDE3IDE5LjIyNzggNi41MDQ1MSAxOC44NjE3TDYuNDk3NjYgMTguNzZMNi40OTcgNy4wNjIxMkwzLjI4MDM1IDEwLjI4MDRDMy4wMTQwOSAxMC41NDY3IDIuNTk3NDMgMTAuNTcwOSAyLjMwMzgxIDEwLjM1M0wyLjIxOTY5IDEwLjI4MDRDMS45NTM0MSAxMC4wMTQyIDEuOTI5MTkgOS41OTc0OSAyLjE0NzA0IDkuMzAzODdMMi4yMTk2NSA5LjIxOTc1TDYuNzE0NDEgNC43MjQ3TDIuMjE5NjUgOS4yMTk3NVpNMTYuNjQ5MSA0LjUwMTk2TDE2Ljc1MDkgNC40OTUxMkMxNy4xMzA2IDQuNDk1MTIgMTcuNDQ0NCA0Ljc3NzI3IDE3LjQ5NCA1LjE0MzM1TDE3LjUwMDkgNS4yNDUxMkwxNy41IDE2Ljk0MTFMMjAuNzE5NCAxMy43MkMyMC45ODU2IDEzLjQ1MzYgMjEuNDAyMyAxMy40MjkyIDIxLjY5NiAxMy42NDY5TDIxLjc4MDEgMTMuNzE5NUMyMi4wNDY1IDEzLjk4NTcgMjIuMDcwOSAxNC40MDIzIDIxLjg1MzEgMTQuNjk2TDIxLjc4MDYgMTQuNzgwMkwxNy4yODQzIDE5LjI4MDJDMTcuMDE4MiAxOS41NDY1IDE2LjYwMTUgMTkuNTcwOSAxNi4zMDc4IDE5LjM1MzJMMTYuMjIzNyAxOS4yODA2TDExLjcxOTkgMTQuNzgwNkMxMS40MjY5IDE0LjQ4NzggMTEuNDI2NyAxNC4wMTMgMTEuNzE5NCAxMy43MkMxMS45ODU2IDEzLjQ1MzYgMTIuNDAyMyAxMy40MjkyIDEyLjY5NiAxMy42NDY5TDEyLjc4MDEgMTMuNzE5NUwxNiAxNi45MzcxTDE2LjAwMDkgNS4yNDUxMkMxNi4wMDA5IDQuODY1NDIgMTYuMjgzIDQuNTUxNjMgMTYuNjQ5MSA0LjUwMTk2TDE2Ljc1MDkgNC40OTUxMkwxNi42NDkxIDQuNTAxOTZaIiBmaWxsPSIjMjEyMTIxIiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xMDI0IDIxOUw0MjkgODEzbC05MC05MCA2ODUtNjg2IDY4NSA2ODYtOTAgOTAtNTk1LTU5NHptMCAxNjEwbDU5NS01OTQgOTAgOTAtNjg1IDY4Ni02ODUtNjg2IDkwLTkwIDU5NSA1OTR6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0ibTIuNjc4IDEwLjYyNWE0LjE3OSA0LjE3OSAwIDAgMSAyLjcgMi43bDcuNTYyLTcuNTc0LTIuNjkxLTIuNjkxem0uMzA5IDIuMzg4YTIuOTMxIDIuOTMxIDAgMCAwIC0uNjctLjUgMi45NTQgMi45NTQgMCAwIDAgLS44LS4zbC0xLjUgMy40MzVhLjI1LjI1IDAgMCAwIC4zMjkuMzI5bDMuNDM1LTEuNWEyLjk1MiAyLjk1MiAwIDAgMCAtLjMtLjggMi45MzEgMi45MzEgMCAwIDAgLS40OTQtLjY2NHptMTIuMS0xMS41My0uNTY5LS41NjlhMS41IDEuNSAwIDAgMCAtMi4xMjEgMGwtLjczMy43MzIgMi42OSAyLjY5LjczMi0uNzMzYTEuNSAxLjUgMCAwIDAgMC0yLjEyMXptLS4wMDEtLjAwMS0uNTY4LS41NjhhMS41IDEuNSAwIDAgMCAtMi4xMjEgMGwtLjczMi43MzIgMi42OSAyLjY5LjczMS0uNzMzYTEuNSAxLjUgMCAwIDAgMC0yLjEyMXptLTEwLjczMyAxMC4xNjVhNC4xOTIgNC4xOTIgMCAwIDEgMS4wMjIgMS42NzRsNy41NjUtNy41Ny0yLjY5MS0yLjY5MS03LjU3MSA3LjU2NWE0LjIgNC4yIDAgMCAxIDEuNjc1IDEuMDIyem0tMi44MzMuNTY3LTEuNSAzLjQzNWEuMjUuMjUgMCAwIDAgLjMyOS4zMjlsMy40MzUtMS41YTIuOTMzIDIuOTMzIDAgMCAwIC0xLjQ2OC0xLjk2OCAyLjk1IDIuOTUgMCAwIDAgLS43OTYtLjI5NnoiIC8+CiAgPHBhdGggZD0ibTAgMGgxNnYxNmgtMTZ6IiBmaWxsPSJub25lIiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTE1Ljg3IDIuNjY4ODFMMjAuODM4NSA3LjYzNzMzQzIxLjcxNzIgOC41MTYwMSAyMS43MTcyIDkuOTQwNjMgMjAuODM4NSAxMC44MTkzTDEyLjE1NjcgMTkuNDk5OEwxOC4yNTQ2IDE5LjVDMTguNjM0MyAxOS41IDE4Ljk0ODEgMTkuNzgyMSAxOC45OTc3IDIwLjE0ODJMMTkuMDA0NiAyMC4yNUMxOS4wMDQ2IDIwLjYyOTcgMTguNzIyNCAyMC45NDM1IDE4LjM1NjMgMjAuOTkzMUwxOC4yNTQ2IDIxTDkuODQ0NTUgMjEuMDAxMkM5LjIyODM0IDIxLjAzNDkgOC42MDA5NCAyMC44MTYzIDguMTMwMjIgMjAuMzQ1NkwzLjE2MTcgMTUuMzc3MUMyLjI4MzAyIDE0LjQ5ODQgMi4yODMwMiAxMy4wNzM4IDMuMTYxNyAxMi4xOTUxTDEyLjY4OCAyLjY2ODgxQzEzLjU2NjcgMS43OTAxMyAxNC45OTEzIDEuNzkwMTMgMTUuODcgMi42Njg4MVpNNS43MDg2OSAxMS43Njc4TDQuMjIyMzYgMTMuMjU1N0MzLjkyOTQ2IDEzLjU0ODYgMy45Mjk0NiAxNC4wMjM1IDQuMjIyMzYgMTQuMzE2NEw5LjE5MDg4IDE5LjI4NDlDOS4zMzczMyAxOS40MzE0IDkuNTI5MjcgMTkuNTA0NiA5LjcyMTIxIDE5LjUwNDZMOS43NTAwOSAxOS41TDkuNzg4NTkgMTkuNTAxNkM5Ljk1NzQ5IDE5LjQ4NjQgMTAuMTIyMiAxOS40MTQyIDEwLjI1MTUgMTkuMjg0OUwxMS43Mzc3IDE3Ljc5NzhMNS43MDg2OSAxMS43Njc4Wk0xMy43NDg2IDMuNzI5NDdMNi43Njk2OSAxMC43MDY4TDEyLjc5ODcgMTYuNzM2OEwxOS43Nzc4IDkuNzU4NjVDMjAuMDcwNyA5LjQ2NTc2IDIwLjA3MDcgOC45OTA4OSAxOS43Nzc4IDguNjk3OTlMMTQuODA5MyAzLjcyOTQ3QzE0LjUxNjQgMy40MzY1NyAxNC4wNDE1IDMuNDM2NTcgMTMuNzQ4NiAzLjcyOTQ3WiIgZmlsbD0iIzIxMjEyMSIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPHJlY3QgeD0iNy4yMzk1IiB5PSI3Ljc3MjM5IiB3aWR0aD0iNy44Mzk1NiIgaGVpZ2h0PSIxMy40MjI4NiIgcng9IjIuMTMxMjMiCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTYuOTczMTMgMTIuMTMzMDEpIHJvdGF0ZSgtNDUpIgogICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuNXB4IiAvPgogICAgPHBhdGgKICAgICAgICBkPSJNMTYuMjk5NTUsMTIuMzE4MiwxNy40NDY3LDExLjE3MWExLjgzODQzLDEuODM4NDMsMCwwLDEsMi41OTIzLDBsNi44OTkxLDYuODk5MWExLjgzODQzLDEuODM4NDMsMCwwLDEsMCwyLjU5MjNMMjMuOTg3LDIzLjYxMzU1YTEuODM4NDEsMS44Mzg0MSwwLDAsMS0yLjU5MjMsMEwxNC40OTU2LDE2LjcxNDQ2YTEuODM4NDEsMS44Mzg0MSwwLDAsMSwwLTIuNTkyMyIKICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxLjVweCIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cG9seWxpbmUgcG9pbnRzPSI2LjM0MyAxNy4xMjYgMTIuMTk3IDIyLjk4IDI1LjY1NyA5LjAyIiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MS41cHgiLz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48Y2lyY2xlIGN4PSIyMy42NDgzNCIgY3k9IjE1Ljk5MDE3IiByPSIyLjQ3NzU3Ii8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNS45OTAxNyIgcj0iMi40Nzc1NyIvPjxjaXJjbGUgY3g9IjguMzUxNjYiIGN5PSIxNS45OTAxNyIgcj0iMi40Nzc1NyIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48Y2lyY2xlIGN4PSIxNiIgY3k9IjguMzQxODMiIHI9IjIuNDc3NTciLz48Y2lyY2xlIGN4PSIxNiIgY3k9IjE1Ljk5MDE3IiByPSIyLjQ3NzU3Ii8+PGNpcmNsZSBjeD0iMTYiIGN5PSIyMy42Mzg1MSIgcj0iMi40Nzc1NyIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNOS4xMTQ0OSwxNS43NTQxMXY0Ljk5NDQxYTIuODYxNzksMi44NjE3OSwwLDAsMCwyLjg1MzQsMi44NTMzOWgzLjA0ODY0IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweCIvPjxsaW5lIHgxPSI5LjExNDQ5IiB5MT0iMTUuNzU0MTEiIHgyPSIxMS43OTgyMiIgeTI9IjE4LjQzNzg0IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweCIvPjxsaW5lIHgxPSI5LjExNDQ5IiB5MT0iMTUuNzU0MTEiIHgyPSI2LjQzMDc2IiB5Mj0iMTguNDM3ODQiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuMjAwMDAwMDAwMDAwMDAwMnB4Ii8+PHJlY3QgeD0iNC45MTk1OCIgeT0iNC4yMDMxOCIgd2lkdGg9IjguMzg5ODIiIGhlaWdodD0iOC4zODk4MiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTcuNTEyNTggLTAuNzE2NCkgcm90YXRlKDkwKSIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLXdpZHRoOjEuNXB4Ii8+PHBhdGggZD0iTTIyLjg4NTUxLDE2LjI0NTg5VjExLjI1MTQ4YTIuODYxNzksMi44NjE3OSwwLDAsMC0yLjg1MzQtMi44NTMzOUgxNi45ODM0NyIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4yMDAwMDAwMDAwMDAwMDAycHgiLz48bGluZSB4MT0iMjIuODg1NTEiIHkxPSIxNi4yNDU4OSIgeDI9IjIwLjIwMTc4IiB5Mj0iMTMuNTYyMTYiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuMjAwMDAwMDAwMDAwMDAwMnB4Ii8+PGxpbmUgeDE9IjIyLjg4NTUxIiB5MT0iMTYuMjQ1ODkiIHgyPSIyNS41NjkyNCIgeTI9IjEzLjU2MjE2IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweCIvPjxwb2x5bGluZSBwb2ludHM9IjE5Ljg3OCAxOS40MDcgMTguNjkxIDE5LjQwNyAxOC42OTEgMjAuNTk1IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MS4yMDAwMDAwMDAwMDAwMDAycHgiLz48bGluZSB4MT0iMTguNjkwNjEiIHkxPSIyMi44NTAxNCIgeDI9IjE4LjY5MDYxIiB5Mj0iMjUuNDgxMzQiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweDtzdHJva2UtZGFzaGFycmF5OjEuNTAzNTQ1NTIyNjg5ODE5MywyLjI1NTMxNzkyNjQwNjg2MDQiLz48cG9seWxpbmUgcG9pbnRzPSIxOC42OTEgMjYuNjA5IDE4LjY5MSAyNy43OTcgMTkuODc4IDI3Ljc5NyIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLXdpZHRoOjEuMjAwMDAwMDAwMDAwMDAwMnB4Ii8+PGxpbmUgeDE9IjIyLjEzMzczIiB5MT0iMjcuNzk2ODMiIHgyPSIyNC43NjQ5NSIgeTI9IjI3Ljc5NjgzIiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MS4yMDAwMDAwMDAwMDAwMDAycHg7c3Ryb2tlLWRhc2hhcnJheToxLjUwMzU0NTUyMjY4OTgxOTMsMi4yNTUzMTc5MjY0MDY4NjA0Ii8+PHBvbHlsaW5lIHBvaW50cz0iMjUuODkzIDI3Ljc5NyAyNy4wOCAyNy43OTcgMjcuMDggMjYuNjA5IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MS4yMDAwMDAwMDAwMDAwMDAycHgiLz48bGluZSB4MT0iMjcuMDgwNDQiIHkxPSIyNC4zNTM2OCIgeDI9IjI3LjA4MDQ0IiB5Mj0iMjEuNzIyNDkiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweDtzdHJva2UtZGFzaGFycmF5OjEuNTAzNTQ1NTIyNjg5ODE5MywyLjI1NTMxNzkyNjQwNjg2MDQiLz48cG9seWxpbmUgcG9pbnRzPSIyNy4wOCAyMC41OTUgMjcuMDggMTkuNDA3IDI1Ljg5MyAxOS40MDciIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweCIvPjxsaW5lIHgxPSIyMy42MzcyNyIgeTE9IjE5LjQwNyIgeDI9IjIxLjAwNjEiIHkyPSIxOS40MDciIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoxLjIwMDAwMDAwMDAwMDAwMDJweDtzdHJva2UtZGFzaGFycmF5OjEuNTAzNTQ1NTIyNjg5ODE5MywyLjI1NTMxNzkyNjQwNjg2MDQiLz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2NCAoOTM1MzcpIC0gaHR0cHM6Ly9za2V0Y2guY29tIC0tPgogIDx0aXRsZT5pY19mbHVlbnRfZXllX3Nob3dfMjRfcmVndWxhcjwvdGl0bGU+CiAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgPGcgaWQ9IvCflI0tU3lzdGVtLUljb25zIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxnIGlkPSJpY19mbHVlbnRfZXllX3Nob3dfMjRfcmVndWxhciIgZmlsbD0iIzIxMjEyMSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgPHBhdGggZD0iTTEyLDkuMDA0NjI0NiBDMTQuMjA5MTM5LDkuMDA0NjI0NiAxNiwxMC43OTU0ODU2IDE2LDEzLjAwNDYyNDYgQzE2LDE1LjIxMzc2MzYgMTQuMjA5MTM5LDE3LjAwNDYyNDYgMTIsMTcuMDA0NjI0NiBDOS43OTA4NjEsMTcuMDA0NjI0NiA4LDE1LjIxMzc2MzYgOCwxMy4wMDQ2MjQ2IEM4LDEwLjc5NTQ4NTYgOS43OTA4NjEsOS4wMDQ2MjQ2IDEyLDkuMDA0NjI0NiBaIE0xMiwxMC41MDQ2MjQ2IEMxMC42MTkyODgxLDEwLjUwNDYyNDYgOS41LDExLjYyMzkxMjcgOS41LDEzLjAwNDYyNDYgQzkuNSwxNC4zODUzMzY1IDEwLjYxOTI4ODEsMTUuNTA0NjI0NiAxMiwxNS41MDQ2MjQ2IEMxMy4zODA3MTE5LDE1LjUwNDYyNDYgMTQuNSwxNC4zODUzMzY1IDE0LjUsMTMuMDA0NjI0NiBDMTQuNSwxMS42MjM5MTI3IDEzLjM4MDcxMTksMTAuNTA0NjI0NiAxMiwxMC41MDQ2MjQ2IFogTTEyLDUuNSBDMTYuNjEzNTEyLDUuNSAyMC41OTYwODY5LDguNjUwMDA2NDEgMjEuNzAxMTE1NywxMy4wNjQzODY1IEMyMS44MDE3LDEzLjQ2NjIwMTkgMjEuNTU3NTA0LDEzLjg3MzQ3NzUgMjEuMTU1Njg4NSwxMy45NzQwNjE4IEMyMC43NTM4NzMxLDE0LjA3NDY0NjIgMjAuMzQ2NTk3NiwxMy44MzA0NTAyIDIwLjI0NjAxMzIsMTMuNDI4NjM0NyBDMTkuMzA3MTI1OSw5LjY3Nzk1ODU0IDE1LjkyMTM2NDQsNyAxMiw3IEM4LjA3NjkzMjU3LDcgNC42OTAwOTc2NSw5LjY4MDI2NDE3IDMuNzUyODU3ODYsMTMuNDMzMTQ5OSBDMy42NTI0OTUyNSwxMy44MzUwMjA4IDMuMjQ1MzU0NTUsMTQuMDc5NDQxNiAyLjg0MzQ4MzY1LDEzLjk3OTA3OSBDMi40NDE2MTI3NSwxMy44Nzg3MTY0IDIuMTk3MTkxOTgsMTMuNDcxNTc1NyAyLjI5NzU1NDU5LDEzLjA2OTcwNDggQzMuNDAwNjQ1OSw4LjY1MjcxODA2IDcuMzg0NDgyOTMsNS41IDEyLDUuNSBaIiBpZD0i8J+OqC1Db2xvciI+PC9wYXRoPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTIuMjE5NjcgMi4yMTk2N0MxLjk1MzQgMi40ODU5NCAxLjkyOTIgMi45MDI2IDIuMTQ3MDUgMy4xOTYyMUwyLjIxOTY3IDMuMjgwMzNMNi4yNTQyNCA3LjMxNDlDNC4zMzIyNSA4LjY2NDM3IDIuODk1NzcgMTAuNjc5OSAyLjI5ODg4IDEzLjA2NDRDMi4xOTgzIDEzLjQ2NjIgMi40NDI1IDEzLjg3MzUgMi44NDQzMSAxMy45NzQxQzMuMjQ2MTMgMTQuMDc0NiAzLjY1MzQgMTMuODMwNSAzLjc1Mzk5IDEzLjQyODZDNC4yODM0NiAxMS4zMTM1IDUuNTkxMTIgOS41Mzk0NyA3LjMzNDE2IDguMzk0NTJMOS4xNDM3OSAxMC4yMDQzQzguNDM2MjggMTAuOTI1OCA4IDExLjkxNDMgOCAxMy4wMDQ2QzggMTUuMjEzOCA5Ljc5MDg2IDE3LjAwNDYgMTIgMTcuMDA0NkMxMy4wOTA0IDE3LjAwNDYgMTQuMDc4OCAxNi41NjgzIDE0LjgwMDQgMTUuODYwOEwyMC43MTk3IDIxLjc4MDNDMjEuMDEyNiAyMi4wNzMyIDIxLjQ4NzQgMjIuMDczMiAyMS43ODAzIDIxLjc4MDNDMjIuMDQ2NiAyMS41MTQxIDIyLjA3MDggMjEuMDk3NCAyMS44NTI5IDIwLjgwMzhMMjEuNzgwMyAyMC43MTk3TDE1LjY2NjggMTQuNjA1NUwxNS42NjggMTQuNjA0TDguNzE4NzcgNy42NTc4Mkw4LjcyIDcuNjU2TDcuNTg2NzIgNi41MjU0OUwzLjI4MDMzIDIuMjE5NjdDMi45ODc0NCAxLjkyNjc4IDIuNTEyNTYgMS45MjY3OCAyLjIxOTY3IDIuMjE5NjdaTTEyIDUuNUMxMC45OTk3IDUuNSAxMC4wMjkxIDUuNjQ4MDcgOS4xMTEwOSA1LjkyNUwxMC4zNDgxIDcuMTYxMTlDMTAuODgzOSA3LjA1NTMyIDExLjQzNjQgNyAxMiA3QzE1LjkyMzEgNyAxOS4zMDk5IDkuNjgwMjYgMjAuMjQ3MSAxMy40MzMyQzIwLjM0NzUgMTMuODM1IDIwLjc1NDYgMTQuMDc5NCAyMS4xNTY1IDEzLjk3OTFDMjEuNTU4NCAxMy44Nzg3IDIxLjgwMjggMTMuNDcxNiAyMS43MDI0IDEzLjA2OTdDMjAuNTk5NCA4LjY1MjcyIDE2LjYxNTUgNS41IDEyIDUuNVpNMTIuMTk0NyA5LjAwOTI4TDE1Ljk5NiAxMi44MUMxNS44OTQyIDEwLjc1MzEgMTQuMjQ3MiA5LjEwNzY0IDEyLjE5NDcgOS4wMDkyOFoiIGZpbGw9IiMyMTIxMjEiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xOTkwIDc0OHEtMzMgMzMtNjQgNjB0LTY1IDQ3LTczIDI5LTkwIDExcS0zNCAwLTY1LTZsLTM3OSAzNzlxMTMgMzggMTkgNzh0NiA4MHEwIDY1LTEzIDExOHQtMzcgMTAwLTYwIDg5LTc5IDg3bC0zODYtMzg2LTU2OCA1NjktMTM2IDQ1IDQ1LTEzNiA1NjktNTY4LTM4Ni0zODYgNDUtNDVxNzAtNzAgMTYwLTEwN3QxOTAtMzdxODIgMCAxNTcgMjVsMzc5LTM3OXEtNi0zMS02LTY1IDAtNDkgMTAtODh0MzAtNzQgNDYtNjUgNjEtNjVsNjkwIDY5MHptLTI5MiAxOXE1NSAwIDEwNC0yNmwtNDk1LTQ5NXEtMjYgNDktMjYgMTA0IDAgMjggNiA1MnQxNSA1MUw4MTAgOTQ0cS0yNS0xMC00Ny0xOXQtNDQtMTUtNDUtOS01MS00cS01NyAwLTExMCAxNnQtMTAwIDQ5bDY3MyA2NzNxMzItNDYgNDktOTl0MTctMTEwcTAtMjctMy01MHQtMTAtNDYtMTYtNDUtMTktNDdsNDkxLTQ5MnEyNiA4IDUwIDE0dDUzIDd6IiAvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cmVjdCB4PSI3LjU3NjAyIiB5PSI4LjM0MTgzIiB3aWR0aD0iMTYuODQ3OTciIGhlaWdodD0iMy4wNjMyNyIgcng9IjAuNzUiLz48cmVjdCB4PSI3LjU3NjAyIiB5PSIyMC41OTQ5IiB3aWR0aD0iMTYuODQ3OTciIGhlaWdodD0iMy4wNjMyNyIgcng9IjAuNzUiLz48cmVjdCB4PSI3LjU3NjAyIiB5PSIxNC40NjgzNyIgd2lkdGg9IjE2Ljg0Nzk3IiBoZWlnaHQ9IjMuMDYzMjciIHJ4PSIwLjc1Ii8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjg4ODcgMTEuMzYxM0MxMS45NjI5IDExLjQzNTUgMTIgMTEuNTIzNCAxMiAxMS42MjVDMTIgMTEuNzI2NiAxMS45NjI5IDExLjgxNDUgMTEuODg4NyAxMS44ODg3QzExLjgxNDUgMTEuOTYyOSAxMS43MjY2IDEyIDExLjYyNSAxMkMxMS41MjM0IDEyIDExLjQzNTUgMTEuOTYyOSAxMS4zNjEzIDExLjg4ODdMNi43NjE3MiA3LjI5NDkyQzYuMzg2NzIgNy42MDM1MiA1Ljk3NDYxIDcuODM5ODQgNS41MjUzOSA4LjAwMzkxQzUuMDgwMDggOC4xNjc5NyA0LjYxMzI4IDguMjUgNC4xMjUgOC4yNUMzLjc0NjA5IDguMjUgMy4zODA4NiA4LjIwMTE3IDMuMDI5MyA4LjEwMzUyQzIuNjc3NzMgOC4wMDU4NiAyLjM0OTYxIDcuODY3MTkgMi4wNDQ5MiA3LjY4NzVDMS43NDAyMyA3LjUwNzgxIDEuNDYwOTQgNy4yOTI5NyAxLjIwNzAzIDcuMDQyOTdDMC45NTcwMzEgNi43ODkwNiAwLjc0MjE4OCA2LjUwOTc3IDAuNTYyNSA2LjIwNTA4QzAuMzgyODEyIDUuOTAwMzkgMC4yNDQxNDEgNS41NzIyNyAwLjE0NjQ4NCA1LjIyMDdDMC4wNDg4MjgxIDQuODY5MTQgMCA0LjUwMzkxIDAgNC4xMjVDMCAzLjc0NjA5IDAuMDQ4ODI4MSAzLjM4MDg2IDAuMTQ2NDg0IDMuMDI5M0MwLjI0NDE0MSAyLjY3NzczIDAuMzgyODEyIDIuMzQ5NjEgMC41NjI1IDIuMDQ0OTJDMC43NDIxODggMS43NDAyMyAwLjk1NzAzMSAxLjQ2Mjg5IDEuMjA3MDMgMS4yMTI4OUMxLjQ2MDk0IDAuOTU4OTg0IDEuNzQwMjMgMC43NDIxODggMi4wNDQ5MiAwLjU2MjVDMi4zNDk2MSAwLjM4MjgxMiAyLjY3NzczIDAuMjQ0MTQxIDMuMDI5MyAwLjE0NjQ4NEMzLjM4MDg2IDAuMDQ4ODI4MSAzLjc0NjA5IDAgNC4xMjUgMEM0LjUwMzkxIDAgNC44NjkxNCAwLjA0ODgyODEgNS4yMjA3IDAuMTQ2NDg0QzUuNTcyMjcgMC4yNDQxNDEgNS45MDAzOSAwLjM4MjgxMiA2LjIwNTA4IDAuNTYyNUM2LjUwOTc3IDAuNzQyMTg4IDYuNzg3MTEgMC45NTg5ODQgNy4wMzcxMSAxLjIxMjg5QzcuMjkxMDIgMS40NjI4OSA3LjUwNzgxIDEuNzQwMjMgNy42ODc1IDIuMDQ0OTJDNy44NjcxOSAyLjM0OTYxIDguMDA1ODYgMi42Nzc3MyA4LjEwMzUyIDMuMDI5M0M4LjIwMTE3IDMuMzgwODYgOC4yNSAzLjc0NjA5IDguMjUgNC4xMjVDOC4yNSA0LjYxMzI4IDguMTY3OTcgNS4wODIwMyA4LjAwMzkxIDUuNTMxMjVDNy44Mzk4NCA1Ljk3NjU2IDcuNjAzNTIgNi4zODY3MiA3LjI5NDkyIDYuNzYxNzJMMTEuODg4NyAxMS4zNjEzWk00LjEyNSA3LjVDNC41ODk4NCA3LjUgNS4wMjczNCA3LjQxMjExIDUuNDM3NSA3LjIzNjMzQzUuODQ3NjYgNy4wNTY2NCA2LjIwNTA4IDYuODE0NDUgNi41MDk3NyA2LjUwOTc3QzYuODE0NDUgNi4yMDUwOCA3LjA1NDY5IDUuODQ3NjYgNy4yMzA0NyA1LjQzNzVDNy40MTAxNiA1LjAyNzM0IDcuNSA0LjU4OTg0IDcuNSA0LjEyNUM3LjUgMy42NjAxNiA3LjQxMDE2IDMuMjIyNjYgNy4yMzA0NyAyLjgxMjVDNy4wNTQ2OSAyLjQwMjM0IDYuODE0NDUgMi4wNDQ5MiA2LjUwOTc3IDEuNzQwMjNDNi4yMDUwOCAxLjQzNTU1IDUuODQ3NjYgMS4xOTUzMSA1LjQzNzUgMS4wMTk1M0M1LjAyNzM0IDAuODM5ODQ0IDQuNTg5ODQgMC43NSA0LjEyNSAwLjc1QzMuNjYwMTYgMC43NSAzLjIyMjY2IDAuODM5ODQ0IDIuODEyNSAxLjAxOTUzQzIuNDAyMzQgMS4xOTUzMSAyLjA0NDkyIDEuNDM1NTUgMS43NDAyMyAxLjc0MDIzQzEuNDM1NTUgMi4wNDQ5MiAxLjE5MzM2IDIuNDAyMzQgMS4wMTM2NyAyLjgxMjVDMC44Mzc4OTEgMy4yMjI2NiAwLjc1IDMuNjYwMTYgMC43NSA0LjEyNUMwLjc1IDQuNTg5ODQgMC44Mzc4OTEgNS4wMjczNCAxLjAxMzY3IDUuNDM3NUMxLjE5MzM2IDUuODQ3NjYgMS40MzU1NSA2LjIwNTA4IDEuNzQwMjMgNi41MDk3N0MyLjA0NDkyIDYuODE0NDUgMi40MDIzNCA3LjA1NjY0IDIuODEyNSA3LjIzNjMzQzMuMjIyNjYgNy40MTIxMSAzLjY2MDE2IDcuNSA0LjEyNSA3LjVaTTQuNSAzLjc1SDZWNC41SDQuNVY2SDMuNzVWNC41SDIuMjVWMy43NUgzLjc1VjIuMjVINC41VjMuNzVaIiBmaWxsPSIjMjUyNDIzIi8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDExLjU4OThDMTIgMTEuNjk5MiAxMS45NjY4IDExLjc5NDkgMTEuOTAwNCAxMS44NzdDMTEuODM0IDExLjk1OSAxMS43NDIyIDEyIDExLjYyNSAxMkMxMS41MjM0IDEyIDExLjQzNTUgMTEuOTYyOSAxMS4zNjEzIDExLjg4ODdMNi43NjE3MiA3LjI5NDkyQzYuMzg2NzIgNy42MDM1MiA1Ljk3NDYxIDcuODM5ODQgNS41MjUzOSA4LjAwMzkxQzUuMDgwMDggOC4xNjc5NyA0LjYxMzI4IDguMjUgNC4xMjUgOC4yNUMzLjc0NjA5IDguMjUgMy4zODA4NiA4LjIwMTE3IDMuMDI5MyA4LjEwMzUyQzIuNjc3NzMgOC4wMDU4NiAyLjM0OTYxIDcuODY3MTkgMi4wNDQ5MiA3LjY4NzVDMS43NDAyMyA3LjUwNzgxIDEuNDYwOTQgNy4yOTI5NyAxLjIwNzAzIDcuMDQyOTdDMC45NTcwMzEgNi43ODkwNiAwLjc0MjE4OCA2LjUwOTc3IDAuNTYyNSA2LjIwNTA4QzAuMzgyODEyIDUuOTAwMzkgMC4yNDQxNDEgNS41NzIyNyAwLjE0NjQ4NCA1LjIyMDdDMC4wNDg4MjgxIDQuODY5MTQgMCA0LjUwMzkxIDAgNC4xMjVDMCAzLjc0NjA5IDAuMDQ4ODI4MSAzLjM4MDg2IDAuMTQ2NDg0IDMuMDI5M0MwLjI0NDE0MSAyLjY3NzczIDAuMzgyODEyIDIuMzQ5NjEgMC41NjI1IDIuMDQ0OTJDMC43NDIxODggMS43NDAyMyAwLjk1NzAzMSAxLjQ2Mjg5IDEuMjA3MDMgMS4yMTI4OUMxLjQ2MDk0IDAuOTU4OTg0IDEuNzQwMjMgMC43NDIxODggMi4wNDQ5MiAwLjU2MjVDMi4zNDk2MSAwLjM4MjgxMiAyLjY3NzczIDAuMjQ0MTQxIDMuMDI5MyAwLjE0NjQ4NEMzLjM4MDg2IDAuMDQ4ODI4MSAzLjc0NjA5IDAgNC4xMjUgMEM0LjUwMzkxIDAgNC44NjkxNCAwLjA0ODgyODEgNS4yMjA3IDAuMTQ2NDg0QzUuNTcyMjcgMC4yNDQxNDEgNS45MDAzOSAwLjM4MjgxMiA2LjIwNTA4IDAuNTYyNUM2LjUwOTc3IDAuNzQyMTg4IDYuNzg3MTEgMC45NTg5ODQgNy4wMzcxMSAxLjIxMjg5QzcuMjkxMDIgMS40NjI4OSA3LjUwNzgxIDEuNzQwMjMgNy42ODc1IDIuMDQ0OTJDNy44NjcxOSAyLjM0OTYxIDguMDA1ODYgMi42Nzc3MyA4LjEwMzUyIDMuMDI5M0M4LjIwMTE3IDMuMzgwODYgOC4yNSAzLjc0NjA5IDguMjUgNC4xMjVDOC4yNSA0LjYxMzI4IDguMTY3OTcgNS4wODIwMyA4LjAwMzkxIDUuNTMxMjVDNy44Mzk4NCA1Ljk3NjU2IDcuNjAzNTIgNi4zODY3MiA3LjI5NDkyIDYuNzYxNzJDNy4zNTM1MiA2LjgyMDMxIDcuNDY0ODQgNi45MzE2NCA3LjYyODkxIDcuMDk1N0M3Ljc5Njg4IDcuMjU5NzcgNy45OTYwOSA3LjQ1NTA4IDguMjI2NTYgNy42ODE2NEM4LjQ2MDk0IDcuOTA4MiA4LjcxNDg0IDguMTU4MiA4Ljk4ODI4IDguNDMxNjRDOS4yNjU2MiA4LjcwMTE3IDkuNTQyOTcgOC45NzY1NiA5LjgyMDMxIDkuMjU3ODFDMTAuMTAxNiA5LjUzNTE2IDEwLjM3MyA5LjgwNjY0IDEwLjYzNDggMTAuMDcyM0MxMC44OTY1IDEwLjMzNzkgMTEuMTI4OSAxMC41NzgxIDExLjMzMiAxMC43OTNDMTEuNTM1MiAxMS4wMDc4IDExLjY5NzMgMTEuMTg3NSAxMS44MTg0IDExLjMzMkMxMS45Mzk1IDExLjQ3MjcgMTIgMTEuNTU4NiAxMiAxMS41ODk4Wk00LjEyNSA3LjVDNC41ODk4NCA3LjUgNS4wMjczNCA3LjQxMjExIDUuNDM3NSA3LjIzNjMzQzUuODQ3NjYgNy4wNTY2NCA2LjIwNTA4IDYuODE0NDUgNi41MDk3NyA2LjUwOTc3QzYuODE0NDUgNi4yMDUwOCA3LjA1NDY5IDUuODQ3NjYgNy4yMzA0NyA1LjQzNzVDNy40MTAxNiA1LjAyNzM0IDcuNSA0LjU4OTg0IDcuNSA0LjEyNUM3LjUgMy42NjAxNiA3LjQxMDE2IDMuMjIyNjYgNy4yMzA0NyAyLjgxMjVDNy4wNTQ2OSAyLjQwMjM0IDYuODE0NDUgMi4wNDQ5MiA2LjUwOTc3IDEuNzQwMjNDNi4yMDUwOCAxLjQzNTU1IDUuODQ3NjYgMS4xOTUzMSA1LjQzNzUgMS4wMTk1M0M1LjAyNzM0IDAuODM5ODQ0IDQuNTg5ODQgMC43NSA0LjEyNSAwLjc1QzMuNjYwMTYgMC43NSAzLjIyMjY2IDAuODM5ODQ0IDIuODEyNSAxLjAxOTUzQzIuNDAyMzQgMS4xOTUzMSAyLjA0NDkyIDEuNDM1NTUgMS43NDAyMyAxLjc0MDIzQzEuNDM1NTUgMi4wNDQ5MiAxLjE5MzM2IDIuNDAyMzQgMS4wMTM2NyAyLjgxMjVDMC44Mzc4OTEgMy4yMjI2NiAwLjc1IDMuNjYwMTYgMC43NSA0LjEyNUMwLjc1IDQuNTg5ODQgMC44Mzc4OTEgNS4wMjczNCAxLjAxMzY3IDUuNDM3NUMxLjE5MzM2IDUuODQ3NjYgMS40MzU1NSA2LjIwNTA4IDEuNzQwMjMgNi41MDk3N0MyLjA0NDkyIDYuODE0NDUgMi40MDIzNCA3LjA1NjY0IDIuODEyNSA3LjIzNjMzQzMuMjIyNjYgNy40MTIxMSAzLjY2MDE2IDcuNSA0LjEyNSA3LjVaTTIuMjUgMy43NUg2VjQuNUgyLjI1VjMuNzVaIiBmaWxsPSIjMjUyNDIzIi8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMzg4NjcgMi42NzE4OEwzLjg2MTMzIDIuMTM4NjdMNiAwTDguMTM4NjcgMi4xMzg2N0w3LjYxMTMzIDIuNjcxODhMNiAxLjA2MDU1TDQuMzg4NjcgMi42NzE4OFpNNy42MTEzMyA5LjMyODEyTDguMTM4NjcgOS44NjEzM0w2IDEyTDMuODYxMzMgOS44NjEzM0w0LjM4ODY3IDkuMzI4MTJMNiAxMC45Mzk1TDcuNjExMzMgOS4zMjgxMlpNMi42NzE4OCA0LjM4ODY3TDEuMDYwNTUgNkwyLjY3MTg4IDcuNjExMzNMMi4xMzg2NyA4LjEzODY3TDAgNkwyLjEzODY3IDMuODYxMzNMMi42NzE4OCA0LjM4ODY3Wk0xMiA2TDkuODYxMzMgOC4xMzg2N0w5LjMyODEyIDcuNjExMzNMMTAuOTM5NSA2TDkuMzI4MTIgNC4zODg2N0w5Ljg2MTMzIDMuODYxMzNMMTIgNlpNMy43NSAzLjc1SDguMjVWOC4yNUgzLjc1VjMuNzVaTTQuNSA3LjVINy41VjQuNUg0LjVWNy41WiIgZmlsbD0iIzI1MjQyMyIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNMjYuMDExMTksMjIuNzAwMDVINS45ODg4MWExLjY5NDQ2LDEuNjk0NDYsMCwwLDEtMS4xOTgxNi0yLjg5MjYyTDE0LjgwMTg0LDkuNzk2MjVhMS42OTQ0NSwxLjY5NDQ1LDAsMCwxLDIuMzk2MzIsMEwyNy4yMDkzNSwxOS44MDc0M0ExLjY5NDQ2LDEuNjk0NDYsMCwwLDEsMjYuMDExMTksMjIuNzAwMDVaIi8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNNS45ODg4MSw5LjNIMjYuMDExMTlhMS42OTQ0NiwxLjY5NDQ2LDAsMCwxLDEuMTk4MTYsMi44OTI2MkwxNy4xOTgxNiwyMi4yMDM3NWExLjY5NDQ1LDEuNjk0NDUsMCwwLDEtMi4zOTYzMiwwTDQuNzkwNjUsMTIuMTkyNTdBMS42OTQ0NiwxLjY5NDQ2LDAsMCwxLDUuOTg4ODEsOS4zWiIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNMjIuNzAwMDUsNS45ODg4MVYyNi4wMTExOWExLjY5NDQ2LDEuNjk0NDYsMCwwLDEtMi44OTI2MiwxLjE5ODE2TDkuNzk2MjUsMTcuMTk4MTZhMS42OTQ0NSwxLjY5NDQ1LDAsMCwxLDAtMi4zOTYzMkwxOS44MDc0Myw0Ljc5MDY1QTEuNjk0NDYsMS42OTQ0NiwwLDAsMSwyMi43MDAwNSw1Ljk4ODgxWiIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPHBhdGggdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTcuNSAyNy41KSByb3RhdGUoLTQ1IDAgMCkgc2NhbGUoMC41LDAuNSkiCiAgICAgICAgZD0iTTUuOTg4ODEsOS4zSDI2LjAxMTE5YTEuNjk0NDYsMS42OTQ0NiwwLDAsMSwxLjE5ODE2LDIuODkyNjJMMTcuMTk4MTYsMjIuMjAzNzVhMS42OTQ0NSwxLjY5NDQ1LDAsMCwxLTIuMzk2MzIsMEw0Ljc5MDY1LDEyLjE5MjU3QTEuNjk0NDYsMS42OTQ0NiwwLDAsMSw1Ljk4ODgxLDkuM1oiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNOS4zLDI2LjAxMTE5VjUuOTg4ODFhMS42OTQ0NiwxLjY5NDQ2LDAsMCwxLDIuODkyNjItMS4xOTgxNkwyMi4yMDM3NSwxNC44MDE4NGExLjY5NDQ1LDEuNjk0NDUsMCwwLDEsMCwyLjM5NjMyTDEyLjE5MjU3LDI3LjIwOTM1QTEuNjk0NDYsMS42OTQ0NiwwLDAsMSw5LjMsMjYuMDExMTlaIi8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTEyLjU5MDkgNC4yNzYzOUwxMi42NTMzIDQuMzY3OTlMMTIuNzAzOSA0LjQ3MjY2TDE4LjA3MTkgMTcuOTcyN0MxOC4yMjQ5IDE4LjM1NzYgMTguMDM3IDE4Ljc5MzcgMTcuNjUyMSAxOC45NDY3QzE3LjI5OTIgMTkuMDg3IDE2LjkwMzQgMTguOTQwOCAxNi43MjIgMTguNjE4OUwxNi42NzggMTguNTI2OUwxNS4wNzcgMTQuNDk5MUg4LjkyNjk2TDcuMzIxNjMgMTguNTI3NUM3LjE4MTAyIDE4Ljg4MDIgNi44MDI3MiAxOS4wNjcyIDYuNDQ0MjggMTguOTc3OEw2LjM0NzIxIDE4Ljk0NjVDNS45OTQ1MSAxOC44MDU4IDUuODA3NTIgMTguNDI3NSA1Ljg5Njk1IDE4LjA2OTFMNS45MjgyOCAxNy45NzJMMTEuMzEwMyA0LjQ3MjA0QzExLjUzMTkgMy45MTYxNyAxMi4yNTIzIDMuODUxMDkgMTIuNTkwOSA0LjI3NjM5Wk0xMi4wMDYgNi43NzYwOEw5LjUyNDk2IDEyLjk5OTFIMTQuNDhMMTIuMDA2IDYuNzc2MDhaTTE3LjY4MzQgMy4wNzA1QzE3Ljg4NDUgMi45NzY1IDE4LjExNzQgMi45NzY1IDE4LjMxODUgMy4wNzA1TDE4LjQxNjEgMy4xMjUzNEwyMC42NjcxIDQuNjIxMTRMMjAuNzU0OSA0LjY4OTI1QzIxLjAyNjQgNC45MzQwMyAyMS4wODUgNS4zNDcyNiAyMC44NzY2IDUuNjYwODlDMjAuNjY4MiA1Ljk3NDUxIDIwLjI2NDYgNi4wODA1NyAxOS45MzM3IDUuOTI1MDJMMTkuODM2OSA1Ljg3MDQ2TDE4LjAwMSA0LjY1MDhMMTYuMTY1IDUuODcwNDZMMTYuMDY4MiA1LjkyNTAyQzE1LjczNzQgNi4wODA1NyAxNS4zMzM3IDUuOTc0NTEgMTUuMTI1MyA1LjY2MDg5QzE0LjkxNjkgNS4zNDcyNiAxNC45NzU1IDQuOTM0MDMgMTUuMjQ3MSA0LjY4OTI1TDE1LjMzNDkgNC42MjExNEwxNy41ODU5IDMuMTI1MzRMMTcuNjgzNCAzLjA3MDVaIiBmaWxsPSIjMjEyMTIxIiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTEyLjU4NDcgNy4yODY2TDEyLjY0NyA3LjM3ODU1TDEyLjY5NzUgNy40ODM2NEwxNi40NDc1IDE2Ljk4MDRDMTYuNTk5NyAxNy4zNjU3IDE2LjQxMDcgMTcuODAxMyAxNi4wMjU0IDE3Ljk1MzRDMTUuNjcyMyAxOC4wOTI5IDE1LjI3NjggMTcuOTQ1NyAxNS4wOTYxIDE3LjYyMzVMMTUuMDUyNCAxNy41MzEzTDE0LjA1NSAxNS4wMDUySDkuOTQ0OTZMOC45NDc1NCAxNy41MzEzQzguODA4MDkgMTcuODg0NSA4LjQzMDQgMTguMDcyNyA4LjA3MTY3IDE3Ljk4NDRMNy45NzQ1IDE3Ljk1MzRDNy42MjEzNCAxNy44MTQgNy40MzMxIDE3LjQzNjMgNy41MjEzNiAxNy4wNzc2TDcuNTUyMzcgMTYuOTgwNEwxMS4zMDI0IDcuNDgzNjRDMTEuNTIyOCA2LjkyNTM1IDEyLjI0NTkgNi44NTk2NyAxMi41ODQ3IDcuMjg2NlpNMTIgOS44MDAxOUwxMC41MzcgMTMuNTA1MkgxMy40NjNMMTIgOS44MDAxOVpNMjAuODc2NiAzLjMzNjk1QzIxLjA4NSAzLjY1MDU3IDIxLjAyNjQgNC4wNjM4MSAyMC43NTQ5IDQuMzA4NThMMjAuNjY3MSA0LjM3NjdMMTguNDE2MSA1Ljg3MjQ5QzE4LjE5NiA2LjAxODcyIDE3LjkxOCA2LjAzNyAxNy42ODM0IDUuOTI3MzNMMTcuNTg1OSA1Ljg3MjQ5TDE1LjMzNDkgNC4zNzY3QzE0Ljk4OTkgNC4xNDc0NSAxNC44OTYgMy42ODE5NCAxNS4xMjUzIDMuMzM2OTVDMTUuMzMzNyAzLjAyMzMyIDE1LjczNzQgMi45MTcyNiAxNi4wNjgyIDMuMDcyODFMMTYuMTY1IDMuMTI3MzdMMTguMDAxIDQuMzQ2MTlMMTkuODM2OSAzLjEyNzM3QzIwLjE4MTkgMi44OTgxMyAyMC42NDc0IDIuOTkxOTUgMjAuODc2NiAzLjMzNjk1WiIgZmlsbD0iIzIxMjEyMSIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 5540 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 5524 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHBhdGggZD0iTTE0LjUsNC4zVjE2SDEuNVYwaDguN1pNMTMuNSwxNVY1aC00VjFoLTdWMTVabS0zLTExaDIuM0wxMC41LDEuN1oiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xOTIwIDc2OHEyNiAwIDQ5IDEwdDQxIDI3IDI4IDQxIDEwIDQ5cTAgMzAtMTQgNThsLTQxOSA4MzlIMFYzODRxMC0yNyAxMC01MHQyNy00MCA0MS0yOCA1MC0xMGgzNTJxNDUgMCA3NyA5dDU4IDI0IDQ2IDMxIDQwIDMxIDQ0IDIzIDU1IDEwaDczNnEyNyAwIDUwIDEwdDQwIDI3IDI4IDQxIDEwIDUwdjI1NmgyNTZ6TTEyOCAxNDU3bDMwOS02MThxMTctMzMgNDctNTJ0NjgtMTloOTg0VjUxMkg4MDBxLTQ1IDAtNzctOXQtNTgtMjQtNDYtMzEtNDAtMzEtNDQtMjMtNTUtMTBIMTI4djEwNzN6bTE3OTItNTYxSDU1MmwtMzg0IDc2OGgxMzY4bDM4NC03Njh6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNzkyIDEyOHEyNyAwIDUwIDEwdDQwIDI3IDI4IDQxIDEwIDUwdjE2NjRIMzU3bC0yMjktMjMwVjI1NnEwLTI3IDEwLTUwdDI3LTQwIDQxLTI4IDUwLTEwaDE1MzZ6TTUxMiA4OTZoMTAyNFYyNTZINTEydjY0MHptNzY4IDUxMkg2NDB2Mzg0aDEyOHYtMjU2aDEyOHYyNTZoMzg0di0zODR6bTUxMi0xMTUyaC0xMjh2NzY4SDM4NFYyNTZIMjU2djEzODFsMTU0IDE1NWgxMDJ2LTUxMmg4OTZ2NTEyaDM4NFYyNTZ6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxnIHRyYW5zZm9ybT0ic2NhbGUoMC45KSI+CiAgICA8cGF0aCBmaWxsPSIjMDAwMDAwIiBkPSJNMTc5MiAxMjhxMjcgMCA1MCAxMHQ0MCAyNyAyOCA0MSAxMCA1MHYxNjY0SDM1N2wtMjI5LTIzMFYyNTZxMC0yNyAxMC01MHQyNy00MCA0MS0yOCA1MC0xMGgxNTM2ek01MTIgODk2aDEwMjRWMjU2SDUxMnY2NDB6bTc2OCA1MTJINjQwdjM4NGgxMjh2LTI1NmgxMjh2MjU2aDM4NHYtMzg0em01MTItMTE1MmgtMTI4djc2OEgzODRWMjU2SDI1NnYxMzgxbDE1NCAxNTVoMTAydi01MTJoODk2djUxMmgzODRWMjU2eiIgLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJzY2FsZSgwLjYpIHRyYW5zbGF0ZSgxNTAwLCAxNTAwKSI+CiAgICA8cGF0aCBmaWxsPSIjMDAwMDAwIiBkPSJNMTkyMCAxOTIwSDBMOTYwIDBsOTYwIDE5MjB6TTIwNyAxNzkyaDE1MDZMOTYwIDI4NiAyMDcgMTc5MnptODE3LTEwMjR2NjQwSDg5NlY3NjhoMTI4em0tMTI4IDc2OGgxMjh2MTI4SDg5NnYtMTI4eiIgLz4KICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cmVjdCB4PSIxMi4yNDc1NyIgeT0iMTAuNzM4NjIiIHdpZHRoPSIxMy41ODA1IiBoZWlnaHQ9IjE2LjU5ODM4IiByeD0iMC43NSIvPjxwYXRoIGQ9Ik0xMC43NDc1NiwxMC43Mzg2MnYtLjc1YS43NS43NSwwLDAsMSwuNzUtLjc1aDguMjU0ODlWNS40MTNhLjc1Ljc1LDAsMCwwLS43NS0uNzVINi45MjE5NGEuNzUuNzUsMCwwLDAtLjc1Ljc1VjIwLjUxMTM4YS43NS43NSwwLDAsMCwuNzUuNzVoMy44MjU2MloiLz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHRpdGxlPm1kbEFzc2V0IDQwaWNvbnM8L3RpdGxlPgogIDxnPgogICAgPGc+CiAgICAgIDxwYXRoIGQ9Ik0xMi45LDguNCw4LDEzLjIsMy4xLDguNGwuOC0uOCwzLjYsMy43VjBoMVYxMS4zbDMuNi0zLjdaTTMuNSwxNlYxNWg5djFaIiAvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNDk3IDU4OWwzMDggMzA5SDI2MnYxMjhoMTU0MGwtMzA1IDMwNSA5MCA5MCA0NjEtNDYxLTQ2MS00NjEtOTAgOTB6TTEzNCA1MTJINnY4OTZoMTI4VjUxMnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNDk3IDU4OWwzMDggMzA5SDI2MnYxMjhoMTU0MGwtMzA1IDMwNSA5MCA5MCA0NjEtNDYxLTQ2MS00NjEtOTAgOTB6TTEzNCA1MTJINnY4OTZoMTI4VjUxMnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoCiAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAgMzUwKSBzY2FsZSgwLjcpIgogICAgZD0iTTEwODggNHE5NiAwIDE4NSAyNXQxNjcgNzEgMTQyIDExMCAxMTAgMTQyIDcxIDE2NyAyNSAxODVxMCAxMzctNTIgMjY0dC0xNTAgMjI1bC04MzcgODM2LTkwLTkwIDgzNi04MzdxNzktNzkgMTIyLTE4MnQ0My0yMTZxMC0xMTctNDUtMjIxdC0xMjQtMTgyLTE4Mi0xMjMtMjIxLTQ2cS0xMDggMC0xOTAgMzJ0LTE1MyA4Ni0xMzQgMTIyLTEzNiAxNDBoNDIxdjEyOEgyNTZWMGgxMjh2NDIxcTU1LTU2IDEwNS0xMDh0MTAxLTk5IDEwMy04NSAxMTItNjYgMTI5LTQzIDE1NC0xNnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoCiAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAgMzUwKSBzY2FsZSgwLjcpIgogICAgZD0iTTExNTIgNTEyaDQyMXEtNzEtNzItMTM1LTE0MHQtMTM1LTEyMS0xNTItODYtMTkxLTMzcS0xMTcgMC0yMjEgNDVUNTU3IDMwMSA0MzQgNDgzdC00NiAyMjFxMCAxMTIgNDMgMjE1dDEyMiAxODNsODM2IDgzNy05MCA5MC04MzctODM2cS05Ny05Ny0xNDktMjI0dC01My0yNjVxMC05NiAyNS0xODV0NzEtMTY3IDExMC0xNDIgMTQyLTExMCAxNjctNzFUOTYwIDRxODQgMCAxNTMgMTV0MTI5IDQzIDExMiA2NiAxMDMgODUgMTAxIDk5IDEwNiAxMDlWMGgxMjh2NjQwaC02NDBWNTEyeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 5092 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik01NTcgNTg5TDI0OSA4OThoMTU0M3YxMjhIMjUybDMwNSAzMDUtOTAgOTBMNiA5NjBsNDYxLTQ2MSA5MCA5MHptMTM2My03N2gxMjh2ODk2aC0xMjhWNTEyeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik01NTcgNTg5TDI0OSA4OThoMTU0M3YxMjhIMjUybDMwNSAzMDUtOTAgOTBMNiA5NjBsNDYxLTQ2MSA5MCA5MHptMTM2My03N2gxMjh2ODk2aC0xMjhWNTEyeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik05NjAgMHExMzMgMCAyNTUgMzR0MjMwIDk2IDE5NCAxNTAgMTUwIDE5NSA5NyAyMjkgMzQgMjU2cTAgMTMzLTM0IDI1NXQtOTYgMjMwLTE1MCAxOTQtMTk1IDE1MC0yMjkgOTctMjU2IDM0cS0xMzMgMC0yNTUtMzR0LTIzMC05Ni0xOTQtMTUwLTE1MC0xOTUtOTctMjI5VDAgOTYwcTAtMTMzIDM0LTI1NXQ5Ni0yMzAgMTUwLTE5NCAxOTUtMTUwIDIyOS05N1Q5NjAgMHptMCAxNzkycTExNSAwIDIyMS0zMHQxOTgtODQgMTY5LTEzMCAxMzAtMTY4IDg0LTE5OSAzMC0yMjFxMC0xMTUtMzAtMjIxdC04NC0xOTgtMTMwLTE2OS0xNjgtMTMwLTE5OS04NC0yMjEtMzBxLTExNSAwLTIyMSAzMHQtMTk4IDg0LTE2OSAxMzAtMTMwIDE2OC04NCAxOTktMzAgMjIxcTAgMTE1IDMwIDIyMXQ4NCAxOTggMTMwIDE2OSAxNjggMTMwIDE5OSA4NCAyMjEgMzB6TTcyNyA4OTZoNjgxdjEyOEg3MjdsMjc4IDI3NC05MCA5Mi00MzQtNDMwIDQzNC00MzAgOTAgOTItMjc4IDI3NHoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNzkyIDM4NGgtMTI4djE0NzJxMCA0MC0xNSA3NXQtNDEgNjEtNjEgNDEtNzUgMTVINDQ4cS00MCAwLTc1LTE1dC02MS00MS00MS02MS0xNS03NVYzODRIMTI4VjI1Nmg1MTJWMTI4cTAtMjcgMTAtNTB0MjctNDAgNDEtMjggNTAtMTBoMzg0cTI3IDAgNTAgMTB0NDAgMjcgMjggNDEgMTAgNTB2MTI4aDUxMnYxMjh6TTc2OCAyNTZoMzg0VjEyOEg3Njh2MTI4em03NjggMTI4SDM4NHYxNDcycTAgMjYgMTkgNDV0NDUgMTloMTAyNHEyNiAwIDQ1LTE5dDE5LTQ1VjM4NHpNNzY4IDE2NjRINjQwVjY0MGgxMjh2MTAyNHptMjU2IDBIODk2VjY0MGgxMjh2MTAyNHptMjU2IDBoLTEyOFY2NDBoMTI4djEwMjR6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 46148 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgPHBhdGggdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjA0OCwgMDAwKSByb3RhdGUoOTApIgogICAgZD0iTSAxOTIwIDAgdiAyMDQ4IGggLTEyOCBWIDAgaCAxMjggeiBNIDUxMiAzODQgaCAxMTUyIHYgNTEyIEggMCBWIDM4NCB6IG0gMTI4IDM4NCBoIDg5NiBWIDUxMiBIIDEyOHYgMjU2IHogTSAwIDExNTIgaCAxNjY0IHYgNTEyIEggMCB2IC01MTIgeiBtIDEyOCAzODQgaCAxNDA4IHYgLTI1NiBIIDEyOCB2IDI1NiB6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoCiAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTI1LCAwKSByb3RhdGUoMTgwLCAxMDI0LCAxMDI0KSIKICAgIGQ9Ik0gMTkyMCAwIHYgMjA0OCBoIC0xMjggViAwIGggMTI4IHogTSA1MTIgMzg0IGggMTE1MiB2IDUxMiBIIDAgViAzODQgeiBtIDEyOCAzODQgaCA4OTYgViA1MTIgSCAxMjh2IDI1NiB6IE0gMCAxMTUyIGggMTY2NCB2IDUxMiBIIDAgdiAtNTEyIHogbSAxMjggMzg0IGggMTQwOCB2IC0yNTYgSCAxMjggdiAyNTYgeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAwKSBzY2FsZSg3MCkiPgogICAgICAgIDxjaXJjbGUgY3g9IjE2LjAxNjU3IiBjeT0iMTYuMDA2ODYiIHI9IjQuNTYxODgiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIC8+CiAgICAgICAgPHBhdGgKICAgICAgICAgICAgZD0iTTMuOTM4LDE2Ljk4OTU0LDkuOTk3MSwxNi41MDEyYTUuOTk3NjYsNS45OTc2NiwwLDAsMSwyLjg2MjY1LTUuNjQxMjdMOS42OTQzLDUuNjcyNTFBMTIuMDMyNDcsMTIuMDMyNDcsMCwwLDAsMy45MzgsMTYuOTg5NTRaIgogICAgICAgICAgICAvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy42ODIsMTAuNDM0NDNhNi4wNDEsNi4wNDEsMCwwLDEsNi4yNjQzMS45ODg4OUwyMy45MDE0Myw2LjgxQTEyLjEyMiwxMi4xMjIsMCwwLDAsMTEuMzQ0LDQuODIwMTdaIgogICAgICAgICAgICAvPgogICAgICAgIDxwYXRoIGQ9Ik0yMC42MDAxMiwxMi4wNzcxN2E2LjA0MSw2LjA0MSwwLDAsMSwuOTg4ODksNi4yNjQzbDUuNjE0MjYsMi4zMzc5NEExMi4xMjIsMTIuMTIyLDAsMCwwLDI1LjIxMzQ1LDguMTIyWiIKICAgICAgICAgICAgLz4KICAgICAgICA8cGF0aCBkPSJNMTQuNjExMDgsMjEuODc4YTYuMDAyLDYuMDAyLDAsMCwxLTQuNDY1Ni00LjQ2NTZsLTUuOTExMSwxLjQwNzM1YTEyLjA0MzcxLDEyLjA0MzcxLDAsMCwwLDguOTY5MzUsOC45NjkzNVoiCiAgICAgICAgICAgIC8+CiAgICAgICAgPHBhdGgKICAgICAgICAgICAgZD0iTTIxLjE2MzUxLDE5LjE2MzY4YTUuOTk3NzgsNS45OTc3OCwwLDAsMS01LjY0MTMyLDIuODYyN2wtLjQ4ODI5LDYuMDU5MDlhMTIuMDMyNDMsMTIuMDMyNDMsMCwwLDAsMTEuMzE3LTUuNzU2MzRaIgogICAgICAgIC8+CiAgICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0xOTg0IDE3OTJxMjYgMCA0NSAxOHQxOSA0NnEwIDI0LTE3IDQ0LTMwIDM1LTY5IDYydC04MyA0Ny05MSAyOS05MiAxMHEtOTkgMC0xODMtMzh0LTE1Mi0xMTBxLTQ5LTUxLTEwOS03OXQtMTMyLTI5cS03MCAwLTEzMSAyOHQtMTEwIDgwbC05IDlxLTkgOS0yMyAyMnQtMzAgMzAtMzAgMzAtMjUgMjUtMTMgMTNxLTE5IDE5LTQ1IDE5dC00NS0xOS0xOS00NXEwLTI2IDE5LTQ1IDU0LTU0IDEwMi0xMDR0MTAwLTg4IDExNC02MCAxNDUtMjNxOTkgMCAxODMgMzh0MTUyIDExMHE0OSA1MSAxMDkgNzl0MTMyIDI5cTc2IDAgMTMyLTI4dDEwOS04MHExMS0xMCAyMS0xNXQyNi01ek0xMjM1IDI5MHExNCA4IDIzIDIzdDkgMzJxMCA4LTIgMTV0LTUgMTRMNTUzIDE3ODlxLTkgMTktMjggMjhsLTE3MyA4N3EtMzIgMTYtNjkgMTZoLTlxLTQgMC0xMC0xbC00NyA5NHEtOCAxNi0yMyAyNXQtMzQgMTBxLTI2IDAtNDUtMTl0LTE5LTQ1cTAtMTIgNy0zMHQxNi0zNyAyMC0zNyAxNS0yOHEtMjYtNDAtMjYtODd2LTE2NXEwLTE2IDctMjlMNzExIDQxOWwtNjUtMzItMjM3IDQ3NHEtOCAxNi0yMyAyNXQtMzQgMTBxLTI2IDAtNDUtMTl0LTE5LTQ1cTAtMTMgNy0yOWwyMzktNDc4cTE2LTMyIDQzLTUwdDYzLTE5cTM1IDAgNjYgMTd0NjIgMzJsNzEtMTQycTgtMTcgMjMtMjZ0MzQtOXExMyAwIDIyIDQgMTItMjQgMjMtNDd0MjYtNDMgMzYtMzAgNTMtMTJxMzIgMCA2MSAxNWw5NCA0N3EzMiAxNiA1MCA0MnQxOSA2NHEwIDM0LTE1IDYzdC0zMCA1OXptLTIwMi0xMDFsODcgNDMgMjktNTgtODctNDMtMjkgNTh6bTg0IDE4NWwtMTkyLTk2LTY2OSAxMzM3djE1MHEwIDExIDggMTl0MTkgOHE0IDAgMTYtNXQyOS0xMyAzNS0xNyAzNi0xOSAzMC0xNiAxOS0xMGw2NjktMTMzOHoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZD0iTTkuNSwxLjVDNS45MTYsMS41LDMsNC40MTYsMyw4YzAsMi44OTUsMi4zNTUsNS4yNSw1LjI1LDUuMjVjMi44OTUsMCw1LjI1LTIuMzU1LDUuMjUtNS4yNWMwLTIuMjA2LTEuNzk0LTQtNC00CgljLTIuMjA2LDAtNCwxLjc5NC00LDRjMCwxLjUxNywxLjIzMywyLjc1LDIuNzUsMi43NVMxMSw5LjUxNywxMSw4YzAtMC44MjctMC42NzMtMS41LTEuNS0xLjVTOCw3LjE3Myw4LDgKCWMwLDAuMjc2LDAuMjI0LDAuNSwwLjUsMC41UzksOC4yNzYsOSw4YzAtMC4yNzYsMC4yMjUtMC41LDAuNS0wLjVTMTAsNy43MjQsMTAsOGMwLDAuOTY1LTAuNzg1LDEuNzUtMS43NSwxLjc1UzYuNSw4Ljk2NSw2LjUsOAoJYzAtMS42NTQsMS4zNDYtMywzLTNzMywxLjM0NiwzLDNjMCwyLjM0NC0xLjkwNiw0LjI1LTQuMjUsNC4yNUM1LjkwNywxMi4yNSw0LDEwLjM0NCw0LDhjMC0zLjAzMywyLjQ2Ny01LjUsNS41LTUuNQoJQzEyLjUzMiwyLjUsMTUsNC45NjcsMTUsOGMwLDMuNzk0LTMuMDkxLDctNi43NSw3QzQuNDU2LDE1LDEsMTEuNjYzLDEsOGMwLTIuNjE1LDEuMjgyLTUuMDY5LDMuNDMtNi41NjcKCWMwLjIyNy0wLjE1OCwwLjI4Mi0wLjQ3LDAuMTI0LTAuNjk2QzQuMzk3LDAuNTExLDQuMDg2LDAuNDU2LDMuODU4LDAuNjEzQzEuNDQyLDIuMjk3LDAsNS4wNTksMCw4YzAsNC4xODcsMy45MzIsOCw4LjI1LDgKCUMxMi40NTEsMTYsMTYsMTIuMzM3LDE2LDhDMTYsNC40MTYsMTMuMDg0LDEuNSw5LjUsMS41eiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMTIuMzE3LDJIMFYxaDE1djAuOTg3VjJoLTAuMDMxbC0zLjk0OCwxLjYwN2wtMC4zNzctMC45MjZMMTIuMzE3LDJ6IE0xMC42NDQsOC42ODFsMC4zNzcsMC45MjZMMTQuOTY5LDhIMTVWNy45ODdWN0gyLjY4MwoJbDEuNjc0LTAuNjgxTDMuOTc5LDUuMzkzTDAuMDMxLDdIMHYwLjAxM3YwLjU0VjhoMTIuMzE3TDEwLjY0NCw4LjY4MXogTTUuNTkxLDUuODE2bDQuMTk0LTEuNzA3TDkuNDA4LDMuMTg0TDUuMjE0LDQuODkxCglMNS41OTEsNS44MTZ6IE01LjU5MSwxMS44MTZsNC4xOTQtMS43MDdMOS40MDgsOS4xODRsLTQuMTk0LDEuNzA3TDUuNTkxLDExLjgxNnogTTEzLjcwNywxMS4zNzlMMTMsMTIuMDg2TDEzLjkxNCwxM0gyLjY4MwoJbDEuNjc0LTAuNjgxbC0wLjM3Ny0wLjkyNkwwLjAzMSwxM0gwdjAuMDEzVjE0aDEzLjkxNEwxMywxNC45MTRsMC43MDcsMC43MDdsMi4xMjEtMi4xMjFMMTMuNzA3LDExLjM3OXoiLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMi42ODEsMTAuNjQ0bDAuOTI2LDAuMzc3TDIsMTQuOTY5VjE1SDEuOTg3SDFWMGgxdjEyLjMxN0wyLjY4MSwxMC42NDR6IE04LDEyLjMxN1YwSDcuNTUyaC0wLjU0SDd2MC4wMzFMNS4zOTMsMy45NzkKCWwwLjkyNiwwLjM3N0w3LDIuNjgzVjE1aDAuOTg3SDh2LTAuMDMxbDEuNjA3LTMuOTQ4bC0wLjkyNi0wLjM3N0w4LDEyLjMxN3ogTTMuMTg0LDkuNDA4bDAuOTI2LDAuMzc3bDEuNzA3LTQuMTk0TDQuODkxLDUuMjE0CglMMy4xODQsOS40MDh6IE0xMC44OTEsNS4yMTRMOS4xODQsOS40MDhsMC45MjYsMC4zNzdsMS43MDctNC4xOTRMMTAuODkxLDUuMjE0eiBNMTQuOTE0LDEzTDE0LDEzLjkxNFYwaC0wLjk4N0gxM3YwLjAzMQoJbC0xLjYwNywzLjk0OGwwLjkyNiwwLjM3N0wxMywyLjY4M3YxMS4yMzFMMTIuMDg2LDEzbC0wLjcwNywwLjcwN2wyLjEyMSwyLjEyMWwyLjEyMS0yLjEyMUwxNC45MTQsMTN6Ii8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0xMDI0IDBxMTQxIDAgMjcyIDM2dDI0NSAxMDMgMjA3IDE2MCAxNjAgMjA4IDEwMyAyNDUgMzcgMjcycTAgMTQxLTM2IDI3MnQtMTAzIDI0NS0xNjAgMjA3LTIwOCAxNjAtMjQ1IDEwMy0yNzIgMzdxLTE0MSAwLTI3Mi0zNnQtMjQ1LTEwMy0yMDctMTYwLTE2MC0yMDgtMTAzLTI0NC0zNy0yNzNxMC0xNDEgMzYtMjcydDEwMy0yNDUgMTYwLTIwNyAyMDgtMTYwVDc1MSAzN3QyNzMtMzd6bTgwOSA2NDBxLTM4LTgxLTkyLTE1MnQtMTIwLTEzMS0xNDMtMTA1LTE2MS03NXEzNiA1MCA2NSAxMDZ0NTEgMTE1IDM5IDEyMSAyOCAxMjFoMzMzem04NyAzODRxMC0xMzMtMzctMjU2aC0zNjNxOCA2NCAxMiAxMjd0NCAxMjlxMCA2NS00IDEyOHQtMTIgMTI4aDM2M3EzNy0xMjMgMzctMjU2em0tODk2IDg5NnE0OSAwIDkxLTI3dDc5LTcxIDY0LTk5IDUxLTExMyAzNy0xMTAgMjMtOTJINjc5cTggMzkgMjMgOTJ0MzcgMTEwIDUwIDExMiA2NSAxMDAgNzggNzEgOTIgMjd6bTM2Ny02NDBxOC02NCAxMi0xMjd0NS0xMjlxMC02NS00LTEyOHQtMTMtMTI4SDY1N3EtOCA2NC0xMiAxMjd0LTUgMTI5cTAgNjUgNCAxMjh0MTMgMTI4aDczNHpNMTI4IDEwMjRxMCAxMzMgMzcgMjU2aDM2M3EtOC02NC0xMi0xMjd0LTQtMTI5cTAtNjUgNC0xMjh0MTItMTI4SDE2NXEtMzcgMTIzLTM3IDI1NnptODk2LTg5NnEtNDkgMC05MSAyN3QtNzkgNzEtNjQgOTktNTEgMTEzLTM3IDExMC0yMyA5Mmg2OTBxLTgtMzktMjMtOTJ0LTM3LTExMC01MC0xMTItNjUtMTAwLTc4LTcxLTkyLTI3em0tMjkzIDQ5cS04NCAyOS0xNjEgNzVUNDI3IDM1NyAzMDcgNDg3dC05MiAxNTNoMzMzcTEyLTYwIDI4LTEyMXQzOC0xMjAgNTItMTE2IDY1LTEwNnpNMjE1IDE0MDhxMzggODEgOTIgMTUydDEyMCAxMzEgMTQzIDEwNSAxNjEgNzVxLTM2LTUwLTY1LTEwNnQtNTEtMTE1LTM5LTEyMS0yOC0xMjFIMjE1em0xMTAyIDQ2M3E4NC0yOSAxNjEtNzV0MTQzLTEwNSAxMjAtMTMwIDkyLTE1M2gtMzMzcS0xMiA2MC0yOCAxMjF0LTM4IDEyMC01MiAxMTYtNjUgMTA2eiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGxpbmUgeDE9IjcuMjM0NjciIHkxPSIxMC41NzM4NCIgeDI9IjI0Ljc2NTMzIiB5Mj0iMjEuNDI2MTYiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjEuNXB4IiAvPgogICAgPGNpcmNsZSBjeD0iNS4zMTE0MSIgY3k9IjkuMzgzMjYiIHI9IjIuMDU0ODciIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjEuNXB4IiAvPgogICAgPGNpcmNsZSBjeD0iMjYuNjg4NTkiIGN5PSIyMi42MTY3NCIgcj0iMi4wNTQ4NyIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6MS41cHgiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cGF0aCBkPSJNNS41NTA3NCwxMS41NTFjLjA5NDI0LDEuMjQ0ODEuMzM3ODMsMi42NS45NDkyNiwyLjk0OSwyLjAwODY5Ljk4MjQyLDYtNSw4LTQsMi41LDEuMjUtLjQ3MSw5LjY5MzU1LDIsMTEsMi4xNzY3LDEuMTUwODYsNi44MTMyOS01LjEzMTczLDktNCwuNjAzMTYuMzEyMTcuODQ3NDgsMS43MTEuOTQ0MSwyLjk0OTkiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTAiLz48Y2lyY2xlIGN4PSI1LjQ5NDA3IiBjeT0iOS41IiByPSIyLjA1NDg3IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwIi8+PGNpcmNsZSBjeD0iMjYuNTA0NzMiIGN5PSIyMi41IiByPSIyLjA1NDg3IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwIi8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS41LCAxLjUpIHNjYWxlKDAuNzUpIgogICAgICAgIGQ9Ik0wIDBIMS4xMjVWMS4xMjVIMFYwWk0zLjM3NSAwSDQuNVYxLjEyNUgzLjM3NVYwWk02Ljc1IDBINy44NzVWMS4xMjVINi43NVYwWk0xMC4xMjUgMEgxMS4yNVYxLjEyNUgxMC4xMjVWMFpNMTMuNSAwSDE0LjYyNVYxLjEyNUgxMy41VjBaTTE4IDBWMS4xMjVIMTYuODc1VjBIMThaTTAgMTYuODc1SDEuMTI1VjE4SDBWMTYuODc1Wk0zLjM3NSAxNi44NzVINC41VjE4SDMuMzc1VjE2Ljg3NVpNNi43NSAxNi44NzVINy44NzVWMThINi43NVYxNi44NzVaTTEwLjEyNSAxNi44NzVIMTEuMjVWMThIMTAuMTI1VjE2Ljg3NVpNMTMuNSAxNi44NzVIMTQuNjI1VjE4SDEzLjVWMTYuODc1Wk0wIDEzLjVIMS4xMjVWMTQuNjI1SDBWMTMuNVpNMCAxMC4xMjVIMS4xMjVWMTEuMjVIMFYxMC4xMjVaTTAgNi43NUgxLjEyNVY3Ljg3NUgwVjYuNzVaTTAgMy4zNzVIMS4xMjVWNC41SDBWMy4zNzVaTTE2Ljg3NSAxMy41SDE4VjE0LjYyNUgxNi44NzVWMTMuNVpNMTYuODc1IDEwLjEyNUgxOFYxMS4yNUgxNi44NzVWMTAuMTI1Wk0xNi44NzUgNi43NUgxOFY3Ljg3NUgxNi44NzVWNi43NVpNMTYuODc1IDMuMzc1SDE4VjQuNUgxNi44NzVWMy4zNzVaTTE2Ljg3NSAxNi44NzVIMThWMThIMTYuODc1VjE2Ljg3NVoiCiAgICAgICAgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuNzUgMC44NzVWMTIuMjVIMTMuMTI1VjEzLjEyNUgwLjg3NVYwLjg3NUgxLjc1Wk0xMi4yNSAxLjc1VjMuNUgxMC41VjEuNzVIMTIuMjVaTTUuMjUgMi42MjVWNC4zNzVIMy41VjIuNjI1SDUuMjVaTTguNzUgNS4yNVY3SDdWNS4yNUg4Ljc1Wk01LjI1IDguNzVWMTAuNUgzLjVWOC43NUg1LjI1Wk0xMS4zNzUgNy44NzVIMTMuMTI1VjkuNjI1SDExLjM3NVY3Ljg3NVoiIGZpbGw9IiMyNTI0MjMiLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguMjUgMi4yNVY2LjAwNTg2TDcuNSA2Ljc1NTg2VjEuNUg5Ljc1VjQuNjExMzNDOS41OTc2NiA0LjY5NzI3IDkuNDY0ODQgNC43OTY4OCA5LjM1MTU2IDQuOTEwMTZDOS4yNDIxOSA1LjAxOTUzIDkuMTI1IDUuMTM2NzIgOSA1LjI2MTcyVjIuMjVIOC4yNVpNMy43NSAzVjkuNzVIMS41VjNIMy43NVpNMyA5VjMuNzVIMi4yNVY5SDNaTTEyIDYuNDEwMTZDMTIgNi41NjI1IDExLjk3MDcgNi43MTA5NCAxMS45MTIxIDYuODU1NDdDMTEuODUzNSA3IDExLjc2OTUgNy4xMjY5NSAxMS42NjAyIDcuMjM2MzNMNy40NTg5OCAxMS40Mzc1TDUuMjUgMTEuOTg4M0w1LjgwMDc4IDkuNzc5M0wxMC4wMDIgNS41ODM5OEMxMC4xMTUyIDUuNDcwNyAxMC4yNDAyIDUuMzg2NzIgMTAuMzc3IDUuMzMyMDNDMTAuNTE3NiA1LjI3NzM0IDEwLjY2OCA1LjI1IDEwLjgyODEgNS4yNUMxMC45OTIyIDUuMjUgMTEuMTQ0NSA1LjI3OTMgMTEuMjg1MiA1LjMzNzg5QzExLjQyOTcgNS4zOTY0OCAxMS41NTQ3IDUuNDc4NTIgMTEuNjYwMiA1LjU4Mzk4QzExLjc2NTYgNS42ODU1NSAxMS44NDc3IDUuODA4NTkgMTEuOTA2MiA1Ljk1MzEyQzExLjk2ODggNi4wOTM3NSAxMiA2LjI0NjA5IDEyIDYuNDEwMTZaTTExLjI1IDYuNDEwMTZDMTEuMjUgNi4yODUxNiAxMS4yMTA5IDYuMTg1NTUgMTEuMTMyOCA2LjExMTMzQzExLjA1NDcgNi4wMzcxMSAxMC45NTMxIDYgMTAuODI4MSA2QzEwLjc3MzQgNiAxMC43MjA3IDYuMDA5NzcgMTAuNjY5OSA2LjAyOTNDMTAuNjE5MSA2LjA0NDkyIDEwLjU3NDIgNi4wNzIyNyAxMC41MzUyIDYuMTExMzNMNi40ODA0NyAxMC4xNjZMNi4yODEyNSAxMC45NTdMNy4wNzIyNyAxMC43NTc4TDExLjEyNyA2LjcwODk4QzExLjIwOSA2LjYyNjk1IDExLjI1IDYuNTI3MzQgMTEuMjUgNi40MTAxNlpNNS4yNSA5SDUuMjU1ODZDNS4yMDUwOCA5LjA1MDc4IDUuMTU0MyA5LjEwMTU2IDUuMTAzNTIgOS4xNTIzNEM1LjA1NjY0IDkuMTk5MjIgNS4wMDU4NiA5LjI0ODA1IDQuOTUxMTcgOS4yOTg4M0M0LjkzMTY0IDkuMzc2OTUgNC45MTIxMSA5LjQ1MzEyIDQuODkyNTggOS41MjczNEM0Ljg3Njk1IDkuNjAxNTYgNC44NTkzOCA5LjY3NTc4IDQuODM5ODQgOS43NUg0LjVWNC41SDYuNzVWNy41MDU4Nkw2LjAwNTg2IDguMjVINlY1LjI1SDUuMjVWOVpNMC43NSAwLjc1VjEwLjVINC42NTIzNEw0LjQ2NDg0IDExLjI1SDBWMC43NUgwLjc1WiIgZmlsbD0iIzI1MjQyMyIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMTUsMTV2LTFoLTF2LTNoMXYtMWgtMVY3aDFWNmgtMVYzaDFWMmgtMVYxaC0xdjFoLTNWMUg5djFINlYxSDV2MUgyVjFIMXYxNEgxNXogTTksM3YzSDZWM0g5eiBNOSw3djNINlY3SDl6IE0yLDNoM3YzSDJWMwoJeiBNMiw3aDN2M0gyVjd6IE0yLDE0di0zaDN2M0gyeiBNNiwxNHYtM2gzdjNINnogTTEzLDE0aC0zdi0zaDNWMTR6IE0xMywxMGgtM1Y3aDNWMTB6IE0xMyw2aC0zVjNoM1Y2eiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnPgoJCTxwYXRoIGQ9Ik04LjI4Niw1LjEzOUw3Ljc3Myw2LjAyN2MwLjM0NSwwLjA2NCwwLjY0NSwwLjI0NywwLjg2NCwwLjUwNGwwLjUxNi0wLjg5M0M4LjkwMiw1LjQxNiw4LjYxLDUuMjQ3LDguMjg2LDUuMTM5CgkJCUw4LjI4Niw1LjEzOXoiLz4KCTwvZz4KCTxnPgoJCTxwYXRoIGQ9Ik02LjcxNCw1LjEzOUM2LjM5LDUuMjQ3LDYuMDk4LDUuNDE2LDUuODQ4LDUuNjM4bDAuNTE2LDAuODkzYzAuMjE5LTAuMjU3LDAuNTE5LTAuNDQsMC44NjQtMC41MDRMNi43MTQsNS4xMzkKCQkJTDYuNzE0LDUuMTM5eiIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZD0iTTYuMzYzLDguNDY5TDUuODQ4LDkuMzYyYzAuMjUsMC4yMjIsMC41NDIsMC4zOTEsMC44NjYsMC41bDAuNTEzLTAuODg5QzYuODgyLDguOTA5LDYuNTgyLDguNzI1LDYuMzYzLDguNDY5TDYuMzYzLDguNDY5CgkJCXoiLz4KCTwvZz4KCTxnPgoJCTxwYXRoIGQ9Ik04LjYzNyw4LjQ2OWMtMC4yMTksMC4yNTctMC41MTksMC40NC0wLjg2NCwwLjUwNGwwLjUxMywwLjg4OWMwLjMyNC0wLjEwOCwwLjYxNi0wLjI3OCwwLjg2Ni0wLjVMOC42MzcsOC40NjkKCQkJTDguNjM3LDguNDY5eiIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZD0iTTQuMDUsN2gtMUMzLjAzMiw3LjE2NiwzLDcuMzI5LDMsNy41UzMuMDMyLDcuODM0LDMuMDUxLDhoMUM0LjAyNyw3LjgzNSw0LDcuNjcxLDQsNy41UzQuMDI3LDcuMTY1LDQuMDUsN0w0LjA1LDd6Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBkPSJNNi4wOTIsN0g1LjA1MUM1LjAxOCw3LjE2Miw1LDcuMzI5LDUsNy41UzUuMDE4LDcuODM4LDUuMDUxLDhoMS4wNDFDNi4wMzYsNy44NDMsNiw3LjY3Niw2LDcuNVM2LjAzNiw3LjE1Nyw2LjA5Miw3CgkJCUw2LjA5Miw3eiIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZD0iTTEwLjgxNywwLjc1NWwtMC41MTMsMC44ODhDOS40NTQsMS4yMzUsOC41MDYsMSw3LjUsMVM1LjU0NiwxLjIzNSw0LjY5NiwxLjY0M0w0LjE4MywwLjc1NWwtMC44NjYsMC41bDAuNTEsMC44ODQKCQkJQzIuMjUsMy4yMjEsMS4xNzksNC45ODIsMS4wMjUsN0gwdjFoMS4wMjVjMC4xNTQsMi4wMTgsMS4yMjUsMy43NzksMi44MDIsNC44NjFsLTAuNTEsMC44ODRsMC44NjYsMC41bDAuNTEzLTAuODg4CgkJCUM1LjU0NiwxMy43NjUsNi40OTQsMTQsNy41LDE0czEuOTU0LTAuMjM1LDIuODA0LTAuNjQzbDAuNTEzLDAuODg4bDAuODY2LTAuNWwtMC41MS0wLjg4NGMxLjU3Ny0xLjA4MywyLjY0OC0yLjg0MywyLjgwMi00Ljg2MQoJCQlIMTVWN2gtMS4wMjVjLTAuMTU0LTIuMDE4LTEuMjI1LTMuNzc5LTIuODAyLTQuODYxbDAuNTEtMC44ODRMMTAuODE3LDAuNzU1TDEwLjgxNywwLjc1NXogTTcuNSwxMwoJCQljLTAuODMxLDAtMS42MTYtMC4xOS0yLjMyMi0wLjUyMUM0Ljg4NiwxMi4zNDIsNC42MDgsMTIuMTgzLDQuMzQ3LDEyQzIuOTMsMTEuMDA0LDIsOS4zNiwyLDcuNVMyLjkzLDMuOTk2LDQuMzQ3LDMKCQkJYzAuMjYxLTAuMTgzLDAuNTM5LTAuMzQyLDAuODMtMC40NzlDNS44ODQsMi4xOSw2LjY2OSwyLDcuNSwyczEuNjE2LDAuMTksMi4zMjMsMC41MjJjMC4yOTEsMC4xMzYsMC41NjksMC4yOTYsMC44MywwLjQ3OQoJCQljMS4yODksMC45MDYsMi4xNzIsMi4zNDcsMi4zMjIsNEg3LjVDNy4yMjQsNyw3LDcuMjI0LDcsNy41QzcsNy43NzYsNy4yMjQsOCw3LjUsOGg1LjQ3NWMtMC4xNSwxLjY1My0xLjAzMywzLjA5NC0yLjMyMiw0CgkJCWMtMC4yNjEsMC4xODMtMC41MzksMC4zNDMtMC44MywwLjQ3OUM5LjExNiwxMi44MSw4LjMzMSwxMyw3LjUsMTNMNy41LDEzeiIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZD0iTTUuMzQzLDEwLjIzN2wtMC41MDQsMC44NzJjMC4yNjgsMC4xOTgsMC41NTIsMC4zNzQsMC44NjEsMC41MDlsMC41MDQtMC44NzNDNS44ODksMTAuNjIsNS42MDQsMTAuNDQzLDUuMzQzLDEwLjIzNwoJCQlMNS4zNDMsMTAuMjM3eiIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZD0iTTkuMywzLjM4Mkw4Ljc5Niw0LjI1NUM5LjExMSw0LjM4LDkuMzk2LDQuNTU3LDkuNjU3LDQuNzYzbDAuNTA0LTAuODcyQzkuODkzLDMuNjkzLDkuNjA5LDMuNTE3LDkuMywzLjM4Mkw5LjMsMy4zODJ6Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBkPSJNNS43LDMuMzgyQzUuMzkxLDMuNTE3LDUuMTA3LDMuNjkzLDQuODM5LDMuODkxbDAuNTA0LDAuODcyQzUuNjA0LDQuNTU3LDUuODg5LDQuMzgsNi4yMDQsNC4yNTVMNS43LDMuMzgyTDUuNywzLjM4MnoiLz4KCTwvZz4KCTxnPgoJCTxwYXRoIGQ9Ik05LjY1NywxMC4yMzdjLTAuMjYyLDAuMjA3LTAuNTQ3LDAuMzgzLTAuODYxLDAuNTA5TDkuMywxMS42MThjMC4zMDktMC4xMzUsMC41OTMtMC4zMTEsMC44NjEtMC41MDlMOS42NTcsMTAuMjM3CgkJCUw5LjY1NywxMC4yMzd6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48bGluZSB4MT0iNC41IiB5MT0iMjcuNSIgeDI9IjI3LjUiIHkyPSI0LjUiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoxLjVweCIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNOCwyQzUsMCwwLDAsMCwwdjEyYzAsMCw1LDAsOCwyczgsMiw4LDJWNEMxNiw0LDExLDQsOCwyeiBNNC4zNDksOC4wMzdsMC4yODktMi44OTNjMC45OTUsMC4yNjksMS45OTEsMC42NDUsMi44MDcsMS4xODkKCWMwLjAwNiwwLjAwNCwwLjAxNCwwLjAwOCwwLjAyLDAuMDEyTDYuNzIsOC44MDlDNS45NTYsOC40NzEsNS4xNDEsOC4yMjIsNC4zNDksOC4wMzd6IE02LjQyNiw5Ljc4bC0wLjY0MSwyLjExOAoJYy0wLjYtMC4xOS0xLjE5Ny0wLjMzOS0xLjc3Ny0wLjQ1NmwwLjI0LTIuNDAxQzQuOTg4LDkuMjIsNS43MzQsOS40NjIsNi40MjYsOS43OHogTTguMzU1LDYuODU4YzAuODQsMC40MjcsMS43NSwwLjczNSwyLjY0NSwwLjk2OAoJdjIuOTdDOS45NDYsMTAuNTAzLDguODg2LDEwLjA5LDgsOS41QzcuODc5LDkuNDIsNy43NTEsOS4zNDgsNy42MjQsOS4yNzNMOC4zNTUsNi44NTh6IE04LjY0OSw1Ljg4NGwwLjYzOC0yLjExCglDOS44NTIsMy45OTksMTAuNDI4LDQuMTc3LDExLDQuMzI3djIuNDdDMTAuMTkyLDYuNTcyLDkuMzgzLDYuMjc2LDguNjQ5LDUuODg0eiBNOC4zNjcsMy4zNjVMNy43NjQsNS4zNTgKCUM2Ljg1Miw0Ljc5OCw1Ljc4OCw0LjQwNCw0LjczOSw0LjEzMWwwLjI0LTIuMzk3QzUuODU4LDEuOTk2LDYuNzIzLDIuMzUsNy40NDUsMi44MzJDNy43MzgsMy4wMjcsOC4wNDgsMy4yMDQsOC4zNjcsMy4zNjV6CgkgTTEsMS4wNDZDMS43NTMsMS4xLDIuODQ5LDEuMjIxLDMuOTk5LDEuNDhMMy43NTcsMy45MDhDMi42NzksMy42OTMsMS42OTMsMy41OTEsMSwzLjU0M1YxLjA0NnogTTEsNC41NDYKCWMwLjY3NywwLjA0OSwxLjYzNSwwLjE1NiwyLjY1NiwwLjM2NUwzLjM2NCw3LjgzM0MyLjQ0LDcuNjY4LDEuNjA4LDcuNTg1LDEsNy41NDNWNC41NDZ6IE0xLDguNTQ2CgljMC41OSwwLjA0MywxLjM5MiwwLjEyNywyLjI2NCwwLjI4NWwtMC4yNDMsMi40MzRDMi4yMzYsMTEuMTQ0LDEuNTI3LDExLjA3MywxLDExLjAzOVY4LjU0NnogTTYuNzI4LDEyLjIzMmwwLjU5Ni0xLjk3CgljMC4wMzksMC4wMjUsMC4wODMsMC4wNDQsMC4xMjEsMC4wN2MxLjA2LDAuNzA2LDIuMzI0LDEuMTczLDMuNTU1LDEuNDk1djIuNDMyYy0wLjg3Mi0wLjI2MS0xLjcyOC0wLjYxMy0yLjQ0NS0xLjA5MQoJQzcuOTkzLDEyLjc5Myw3LjM3LDEyLjQ4OSw2LjcyOCwxMi4yMzJ6IE0xNSwxNC45NTRjLTAuNzUzLTAuMDU0LTEuODUtMC4xNzUtMy0wLjQzNXYtMi40NmMxLjE3OCwwLjIzOSwyLjI2MSwwLjM1NCwzLDAuNDAyVjE0Ljk1NAoJeiBNMTUsMTEuNDU3Yy0wLjc0NS0wLjA1MS0xLjgyOC0wLjE2NC0zLTAuNDE0VjguMDZjMS4xNzgsMC4yMzksMi4yNjEsMC4zNTQsMywwLjQwMlYxMS40NTd6IE0xMiw3LjA0MlY0LjU2CgljMS4xNzgsMC4yMzksMi4yNjEsMC4zNTQsMywwLjQwMnYyLjQ5NkMxNC4yNTUsNy40MDYsMTMuMTcyLDcuMjkyLDEyLDcuMDQyeiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGxpbmUgeDE9IjQuNTkwNDYiIHkxPSIxNiIgeDI9IjI3LjQwOTU0IiB5Mj0iMTYiCiAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5OjMsMjtvcGFjaXR5OjAuOCIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KICAgIDx0aXRsZT5pY29uczwvdGl0bGU+CiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIHNjYWxlKDAuMjUsIDAuMjUpIj4KICAgICAgICA8bGluZSB4MT0iMTYiIHkxPSI0LjU5MDQ2IiB4Mj0iMTYiIHkyPSIyNy40MDk1NCIKICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6MywyO29wYWNpdHk6MC44IiAvPgogICAgPC9nPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0xNCwwaC0xdjJoMVYwTDE0LDB6IE0xMCwwSDl2MmgxVjBMMTAsMHogTTYsMEg1djJoMVYwTDYsMHogTTIsMEgxdjJoMVYwTDIsMHogTTE0LDNoLTF2MmgxVjNMMTQsM3ogTTEwLDNIOXYyaDFWM0wxMCwzegoJCSBNNiwzSDV2MmgxVjNMNiwzeiBNMiwzSDF2MmgxVjNMMiwzeiBNMTQsNmgtMXYyaDFWNkwxNCw2eiBNMTAsNkg5djJoMVY2TDEwLDZ6IE02LDZINXYyaDFWNkw2LDZ6IE0yLDZIMXYyaDFWNkwyLDZ6IE0xNCw5aC0xdjJoMQoJCVY5TDE0LDl6IE0xMCw5SDl2MmgxVjlMMTAsOXogTTYsOUg1djJoMVY5TDYsOXogTTIsOUgxdjJoMVY5TDIsOXogTTE0LDEyaC0xdjFIMnYtMUgxdjNoMXYtMWgxMXYxaDFWMTJMMTQsMTJ6Ii8+CjwvZz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0xNSwxaC0ydjFoMlYxTDE1LDF6IE0xMiwxaC0ydjFoMlYxTDEyLDF6IE05LDFIN3YxaDJWMUw5LDF6IE02LDFINHYxaDJWMUw2LDF6IE0zLDFIMHYxaDF2MTFIMHYxaDN2LTFIMlYyaDFWMUwzLDF6CgkJIE0xNSw1aC0ydjFoMlY1TDE1LDV6IE0xMiw1aC0ydjFoMlY1TDEyLDV6IE05LDVIN3YxaDJWNUw5LDV6IE02LDVINHYxaDJWNUw2LDV6IE0xNSw5aC0ydjFoMlY5TDE1LDl6IE0xMiw5aC0ydjFoMlY5TDEyLDl6IE05LDkKCQlIN3YxaDJWOUw5LDl6IE02LDlINHYxaDJWOUw2LDl6IE0xNSwxM2gtMnYxaDJWMTNMMTUsMTN6IE0xMiwxM2gtMnYxaDJWMTNMMTIsMTN6IE05LDEzSDd2MWgyVjEzTDksMTN6IE02LDEzSDR2MWgyVjEzTDYsMTN6Ii8+CjwvZz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNOCwwQzMuNTgyLDAsMCwzLjU4MiwwLDhzMy41ODIsOCw4LDhzOC0zLjU4Miw4LThTMTIuNDE4LDAsOCwweiBNMTIuNTE4LDEzLjMzN2wtMC41OTEtMC44MDkKCWMtMC4yNTIsMC4yMTgtMC41MjIsMC40MTQtMC44MDgsMC41ODlsMC41OSwwLjgwN0MxMC42MzMsMTQuNjAyLDkuMzYzLDE1LDgsMTVjLTEuMzYzLDAtMi42MzMtMC4zOTgtMy43MS0xLjA3NWwwLjU5LTAuODA3CgljLTAuMjg2LTAuMTc1LTAuNTU2LTAuMzcxLTAuODA4LTAuNTg5bC0wLjU5MSwwLjgwOUMxLjk2NiwxMi4wNTIsMSwxMC4xMzgsMSw4YzAtMC41OSwwLjA4MS0xLjE2MSwwLjIyLTEuNzA5bDAuOTUsMC4zMTMKCWMwLjA3OC0wLjMyOCwwLjE3OC0wLjY0OCwwLjMwOC0wLjk1MkwxLjUyOCw1LjM0QzIuNTE3LDIuOTQzLDQuNzk5LDEuMjE4LDcuNSwxLjAyNXYxQzcuNjY1LDIuMDEyLDcuODMxLDIsOCwyCglzMC4zMzUsMC4wMTIsMC41LDAuMDI1di0xYzIuNzAxLDAuMTkyLDQuOTgzLDEuOTE4LDUuOTcyLDQuMzE1bC0wLjk0OSwwLjMxM2MwLjEzLDAuMzA1LDAuMjI5LDAuNjI0LDAuMzA3LDAuOTUybDAuOTUtMC4zMTMKCUMxNC45MTksNi44MzksMTUsNy40MSwxNSw4QzE1LDEwLjEzOCwxNC4wMzQsMTIuMDUyLDEyLjUxOCwxMy4zMzd6IE01LjA0NSw3LjU1M2wtMS45Mi0wLjYzM2MwLjA3My0wLjMzLDAuMTgtMC42NDcsMC4zMTUtMC45NQoJbDEuOTIsMC42MzNDNS4yMDUsNi44OTUsNS4wOTYsNy4yMTMsNS4wNDUsNy41NTN6IE0xMC4xNDcsMTAuMDkxbDEuMTgsMS42MTVjLTAuMjQ4LDAuMjIzLTAuNTE4LDAuNDE5LTAuODA4LDAuNTg5bC0xLjE4NC0xLjYyMQoJQzkuNjM2LDEwLjUyMyw5LjkxMywxMC4zMywxMC4xNDcsMTAuMDkxeiBNNS44NTMsMTAuMDkxYzAuMjMzLDAuMjQsMC41MSwwLjQzMiwwLjgxMiwwLjU4M2wtMS4xODQsMS42MjEKCWMtMC4yOS0wLjE3MS0wLjU1OS0wLjM2Ni0wLjgwOC0wLjU4OUw1Ljg1MywxMC4wOTF6IE04LDVDNy44MjksNSw3LjY2Myw1LjAyMyw3LjUsNS4wNXYtMkM3LjY2NywzLjAzNCw3LjgyOSwzLDgsMwoJczAuMzMzLDAuMDM0LDAuNSwwLjA1MXYyQzguMzM3LDUuMDIzLDguMTcxLDUsOCw1eiBNOS41NCw5LjI2Yy0wLjIxNCwwLjI2LTAuNDg2LDAuNDY5LTAuODA0LDAuNTk1TDgsOC44NDhMNy4yNjQsOS44NTUKCUM2Ljk0Niw5LjcyOSw2LjY3NCw5LjUyMSw2LjQ2LDkuMjZsMC43MzEtMUw2LjAxMyw3Ljg3MkM2LjAzNiw3LjUyMyw2LjE0Miw3LjE5OCw2LjMyMiw2LjkyTDcuNSw3LjMwOFY2LjA3MQoJQzcuNjYxLDYuMDI5LDcuODI2LDYsOCw2czAuMzM5LDAuMDI5LDAuNSwwLjA3MXYxLjIzN0w5LjY3OCw2LjkyYzAuMTc5LDAuMjc4LDAuMjg2LDAuNjAzLDAuMzA5LDAuOTUyTDguODA5LDguMjZMOS41NCw5LjI2egoJIE0xMi41Niw1Ljk3YzAuMTM1LDAuMzAyLDAuMjQyLDAuNjE5LDAuMzE1LDAuOTQ5bC0xLjkyLDAuNjMzYy0wLjA1MS0wLjM0LTAuMTYtMC42NTctMC4zMTUtMC45NUwxMi41Niw1Ljk3eiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0xOTIgMTI4MHE0MCAwIDc1IDE1dDYxIDQxIDQxIDYxIDE1IDc1cTAgNDAtMTUgNzV0LTQxIDYxLTYxIDQxLTc1IDE1cS00MCAwLTc1LTE1dC02MS00MS00MS02MS0xNS03NXEwLTQwIDE1LTc1dDQxLTYxIDYxLTQxIDc1LTE1em0wIDI2OXEzMiAwIDU0LTIydDIzLTU1cTAtMzItMjItNTR0LTU1LTIzcS0zMiAwLTU0IDIydC0yMyA1NXEwIDMyIDIyIDU0dDU1IDIzek0xODU2IDM4NHE0MCAwIDc1IDE1dDYxIDQxIDQxIDYxIDE1IDc1cTAgNDAtMTUgNzV0LTQxIDYxLTYxIDQxLTc1IDE1cS00MCAwLTc1LTE1dC02MS00MS00MS02MS0xNS03NXEwLTQwIDE1LTc1dDQxLTYxIDYxLTQxIDc1LTE1em0wIDI2OXEzMiAwIDU0LTIydDIzLTU1cTAtMzItMjItNTR0LTU1LTIzcS0zMiAwLTU0IDIydC0yMyA1NXEwIDMyIDIyIDU0dDU1IDIzek00NjkgMTI1N2wxMDU1LTU2OHEyMCA1NyA1NSAxMDJMNTI0IDEzNTlxLTIwLTU3LTU1LTEwMnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMS41LDEwLjljMC4zMzEsMCwwLjYsMC4yNjksMC42LDAuNnMtMC4yNjksMC42LTAuNiwwLjZzLTAuNi0wLjI2OS0wLjYtMC42UzEuMTY5LDEwLjksMS41LDEwLjkgTTEuNSwxMAoJQzAuNjcyLDEwLDAsMTAuNjcyLDAsMTEuNVMwLjY3MiwxMywxLjUsMTNTMywxMi4zMjgsMywxMS41UzIuMzI4LDEwLDEuNSwxMEwxLjUsMTB6IE0xNC41LDMuOWMwLjMzMSwwLDAuNiwwLjI2OSwwLjYsMC42CglzLTAuMjY5LDAuNi0wLjYsMC42cy0wLjYtMC4yNjktMC42LTAuNlMxNC4xNjksMy45LDE0LjUsMy45IE0xNC41LDNDMTMuNjcyLDMsMTMsMy42NzIsMTMsNC41UzEzLjY3Miw2LDE0LjUsNlMxNiw1LjMyOCwxNiw0LjUKCVMxNS4zMjgsMywxNC41LDNMMTQuNSwzeiBNNC4wOTEsMTAuNjE2bDguMjQ0LTQuNDRjLTAuMTg0LTAuMjM3LTAuMzI4LTAuNTAyLTAuNDI3LTAuNzkyTDMuNjY0LDkuODIzCglDMy44NDgsMTAuMDYxLDMuOTkyLDEwLjMyNiw0LjA5MSwxMC42MTZ6Ii8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMSw3djZIMFY3SDFMMSw3eiBNMTYsM2gtMXYxMGgxVjNMMTYsM3ogTTEzLDQuMzg3TDMsNy43MjFWMTJoMTBWNC4zODcgTTE0LDN2MTBIMlY3TDE0LDNMMTQsM3oiLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGNpcmNsZSBjeD0iNi40OTk4IiBjeT0iOC4zNzQ1IiByPSIxLjUzODQ3IiBzdHlsZT0ib3BhY2l0eTowLjgiIC8+CiAgICA8Y2lyY2xlIGN4PSI2LjQ5OTgiIGN5PSIxMy40NTE2MiIgcj0iMS41Mzg0NyIgc3R5bGU9Im9wYWNpdHk6MC44IiAvPgogICAgPGNpcmNsZSBjeD0iNi41MDAyIiBjeT0iMTguNTI4NzMiIHI9IjEuNTM4NDciIHN0eWxlPSJvcGFjaXR5OjAuOCIgLz4KICAgIDxjaXJjbGUgY3g9IjYuNDk5OCIgY3k9IjIzLjYwNTg0IiByPSIxLjUzODQ3IiBzdHlsZT0ib3BhY2l0eTowLjgiIC8+CiAgICA8Y2lyY2xlIGN4PSIyNS40OTk4IiBjeT0iOC4zNzQ1IiByPSIxLjUzODQ3IiBzdHlsZT0ib3BhY2l0eTowLjgiIC8+CiAgICA8Y2lyY2xlIGN4PSIyNS40OTk4IiBjeT0iMTMuNDUxNjIiIHI9IjEuNTM4NDciIHN0eWxlPSJvcGFjaXR5OjAuOCIgLz4KICAgIDxjaXJjbGUgY3g9IjI1LjUwMDIiIGN5PSIxOC41Mjg3MyIgcj0iMS41Mzg0NyIgc3R5bGU9Im9wYWNpdHk6MC44IiAvPgogICAgPGNpcmNsZSBjeD0iMjUuNDk5OCIgY3k9IjIzLjYwNTg0IiByPSIxLjUzODQ3IiBzdHlsZT0ib3BhY2l0eTowLjgiIC8+CiAgICA8bGluZSB4MT0iOC45ODc4MiIgeTE9IjguOTI3OTYiIHgyPSIyMy4wMTE4MSIgeTI9IjEyLjg5ODE3IgogICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuMHB4IiAvPgogICAgPGxpbmUgeDE9IjguOTg3NzkiIHkxPSIxNC43ODEyOCIgeDI9IjIzLjAxMTgzIiB5Mj0iMjIuMjc2MTkiCiAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4wcHgiIC8+CiAgICA8bGluZSB4MT0iOC45ODc3OCIgeTE9IjIyLjk0MTAzIiB4Mj0iMjMuMDExODIiIHkyPSIxOS4xOTM2NSIKICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxLjBweCIgLz4KICAgIDxsaW5lIHgxPSI4Ljk4Nzc4IiB5MT0iMTcuMTk5MjYiIHgyPSIyMy4wMTE4MiIgeTI9IjkuNzA0MTkiCiAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4wcHgiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMTQuNSw2Yy0wLjEyNywwLTAuMjQ4LDAuMDIxLTAuMzY2LDAuMDVjMCwwLDAsMCwwLDBsLTIuNDM3LTMuNjU1bDAsMEMxMS44ODUsMi4xNDQsMTIsMS44MzcsMTIsMS41CglDMTIsMC42NzIsMTEuMzI4LDAsMTAuNSwwUzksMC42NzIsOSwxLjVjMCwwLjMzNywwLjExNSwwLjY0NCwwLjMwMywwLjg5NWwwLDBMNi44NjYsNi4wNWMwLDAsMCwwLDAsMEM2Ljc0OCw2LjAyMSw2LjYyNyw2LDYuNSw2CglDNi4yMSw2LDUuOTQxLDYuMDg2LDUuNzEyLDYuMjI5bDAsMGwtMi44LTIuMjRsMCwwQzIuOTY1LDMuODM1LDMsMy42NzIsMywzLjVDMywyLjY3MiwyLjMyOCwyLDEuNSwyUzAsMi42NzIsMCwzLjUKCWMwLDAuNjUyLDAuNDE5LDEuMjAyLDEsMS40MDhjMCwwLDAsMCwwLDB2NS4xODRjMCwwLDAsMCwwLDBjLTAuNTgxLDAuMjA3LTEsMC43NTYtMSwxLjQwOEMwLDEyLjMyOCwwLjY3MiwxMywxLjUsMTMKCVMzLDEyLjMyOCwzLDExLjVjMC0wLjE3Mi0wLjAzNS0wLjMzNS0wLjA4OC0wLjQ4OWwwLDBsMi44LTIuMjRsMCwwQzUuOTQxLDguOTE0LDYuMjEsOSw2LjUsOWMwLjEyNywwLDAuMjQ4LTAuMDIxLDAuMzY2LTAuMDUKCWMwLDAsMCwwLDAsMGwyLjQzNywzLjY1NWwwLDBDOS4xMTUsMTIuODU2LDksMTMuMTYzLDksMTMuNWMwLDAuODI4LDAuNjcyLDEuNSwxLjUsMS41czEuNS0wLjY3MiwxLjUtMS41UzExLjMyOCwxMiwxMC41LDEyCgljLTAuMTI3LDAtMC4yNDgsMC4wMjEtMC4zNjYsMC4wNWMwLDAsMCwwLDAsMEw3LjY5OCw4LjM5NWwwLDBDNy43ODcsOC4yNzUsNy44NTcsOC4xNDMsNy45MDgsOGMwLDAsMCwwLDAsMGg1LjE4NGMwLDAsMCwwLDAsMAoJYzAuMjA3LDAuNTgxLDAuNzU2LDEsMS40MDgsMUMxNS4zMjgsOSwxNiw4LjMyOCwxNiw3LjVTMTUuMzI4LDYsMTQuNSw2eiBNMTEuMSwxMy41YzAsMC4zMzEtMC4yNjksMC42LTAuNiwwLjZzLTAuNi0wLjI2OS0wLjYtMC42CgljMC0wLjMzMSwwLjI2OS0wLjYsMC42LTAuNlMxMS4xLDEzLjE2OSwxMS4xLDEzLjV6IE0xMC41LDAuOWMwLjMzMSwwLDAuNiwwLjI2OSwwLjYsMC42YzAsMC4zMzEtMC4yNjksMC42LTAuNiwwLjYKCVM5LjksMS44MzEsOS45LDEuNUM5LjksMS4xNjksMTAuMTY5LDAuOSwxMC41LDAuOXogTTcuNjk4LDYuNjA1bDIuNDM3LTMuNjU1YzAsMCwwLDAsMCwwQzEwLjI1MiwyLjk3OSwxMC4zNzMsMywxMC41LDMKCXMwLjI0OC0wLjAyMSwwLjM2Ni0wLjA1YzAsMCwwLDAsMCwwbDIuNDM3LDMuNjU1bDAsMEMxMy4yMTMsNi43MjUsMTMuMTQzLDYuODU3LDEzLjA5Miw3YzAsMCwwLDAsMCwwSDcuOTA4YzAsMCwwLDAsMCwwCglDNy44NTcsNi44NTcsNy43ODcsNi43MjUsNy42OTgsNi42MDVMNy42OTgsNi42MDV6IE01LjM0MSw2LjU1OEM1LjMzOCw2LjU2Myw1LjMzNCw2LjU2Nyw1LjMzLDYuNTcyCglDNS4zMzQsNi41NjcsNS4zMzgsNi41NjMsNS4zNDEsNi41NTh6IE0yLjY3LDQuNDI4QzIuNjY2LDQuNDMzLDIuNjYyLDQuNDM3LDIuNjU5LDQuNDQyQzIuNjYyLDQuNDM3LDIuNjY2LDQuNDMzLDIuNjcsNC40Mjh6CgkgTTEuNSwyLjljMC4zMzEsMCwwLjYsMC4yNjksMC42LDAuNmMwLDAuMzMxLTAuMjY5LDAuNi0wLjYsMC42UzAuOSwzLjgzMSwwLjksMy41QzAuOSwzLjE2OSwxLjE2OSwyLjksMS41LDIuOXogTTEuNSwxMi4xCgljLTAuMzMxLDAtMC42LTAuMjY5LTAuNi0wLjZjMC0wLjMzMSwwLjI2OS0wLjYsMC42LTAuNnMwLjYsMC4yNjksMC42LDAuNkMyLjEsMTEuODMxLDEuODMxLDEyLjEsMS41LDEyLjF6IE0yLjY1OSwxMC41NTgKCWMwLjAwNCwwLjAwNSwwLjAwNywwLjAwOSwwLjAxMSwwLjAxM0MyLjY2NiwxMC41NjcsMi42NjIsMTAuNTYzLDIuNjU5LDEwLjU1OHogTTIuMjg4LDEwLjIyOUwyLjI4OCwxMC4yMjkKCUMyLjE5OCwxMC4xNzMsMi4xMDEsMTAuMTI4LDIsMTAuMDkyYzAsMCwwLDAsMCwwVjQuOTA4YzAsMCwwLDAsMCwwYzAuMTAyLTAuMDM2LDAuMTk4LTAuMDgxLDAuMjg4LTAuMTM3bDAsMGwyLjgsMi4yNGwwLDAKCUM1LjAzNSw3LjE2NSw1LDcuMzI4LDUsNy41czAuMDM1LDAuMzM1LDAuMDg4LDAuNDg5bDAsMEwyLjI4OCwxMC4yMjl6IE01LjMzLDguNDI4YzAuMDA0LDAuMDA0LDAuMDA3LDAuMDA5LDAuMDExLDAuMDEzCglDNS4zMzgsOC40MzcsNS4zMzQsOC40MzMsNS4zMyw4LjQyOHogTTUuOSw3LjVjMC0wLjMzMSwwLjI2OS0wLjYsMC42LTAuNnMwLjYsMC4yNjksMC42LDAuNmMwLDAuMzMxLTAuMjY5LDAuNi0wLjYsMC42CglTNS45LDcuODMxLDUuOSw3LjV6IE0xNC41LDguMWMtMC4zMzEsMC0wLjYtMC4yNjktMC42LTAuNmMwLTAuMzMxLDAuMjY5LTAuNiwwLjYtMC42czAuNiwwLjI2OSwwLjYsMC42CglDMTUuMSw3LjgzMSwxNC44MzEsOC4xLDE0LjUsOC4xeiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMTQuNSw2QzEzLjY3Miw2LDEzLDYuNjcyLDEzLDcuNWMwLDAuMTcyLDAuMDM1LDAuMzM1LDAuMDg4LDAuNDg5bDAsMGwtMi44LDIuMjRDMTAuMDU5LDEwLjA4Niw5Ljc5LDEwLDkuNSwxMAoJYy0wLjAzMiwwLTAuMDYzLDAuMDA4LTAuMDk0LDAuMDFMNy41MTUsNS41OTljMCwwLDAsMCwwLDBDNy44MTEsNS4zMjUsOCw0LjkzNiw4LDQuNUM4LDMuNjcyLDcuMzI4LDMsNi41LDNTNSwzLjY3Miw1LDQuNQoJYzAsMC4xNzIsMC4wMzUsMC4zMzUsMC4wODgsMC40ODlsMCwwbC0yLjgsMi4yNGwwLDBDMi4wNTksNy4wODYsMS43OSw3LDEuNSw3QzAuNjcyLDcsMCw3LjY3MiwwLDguNVMwLjY3MiwxMCwxLjUsMTBTMyw5LjMyOCwzLDguNQoJYzAtMC4xNzItMC4wMzUtMC4zMzUtMC4wODgtMC40ODlsMCwwbDIuOC0yLjI0bDAsMEM1Ljk0MSw1LjkxNCw2LjIxLDYsNi41LDZjMC4wMzIsMCwwLjA2My0wLjAwOCwwLjA5NS0wLjAxbDEuODksNC40MTEKCUM4LjE4OSwxMC42NzYsOCwxMS4wNjUsOCwxMS41QzgsMTIuMzI4LDguNjcyLDEzLDkuNSwxM3MxLjUtMC42NzIsMS41LTEuNWMwLTAuMTcyLTAuMDM1LTAuMzM1LTAuMDg4LTAuNDg5bDAsMGwyLjgtMi4yNGwwLDAKCUMxMy45NDEsOC45MTQsMTQuMjEsOSwxNC41LDlDMTUuMzI4LDksMTYsOC4zMjgsMTYsNy41UzE1LjMyOCw2LDE0LjUsNnogTTEuNSw5LjFjLTAuMzMxLDAtMC42LTAuMjY5LTAuNi0wLjYKCWMwLTAuMzMxLDAuMjY5LTAuNiwwLjYtMC42czAuNiwwLjI2OSwwLjYsMC42QzIuMSw4LjgzMSwxLjgzMSw5LjEsMS41LDkuMXogTTIuNjU5LDcuNTU4QzIuNjYyLDcuNTYzLDIuNjY2LDcuNTY3LDIuNjcsNy41NzIKCUMyLjY2Niw3LjU2NywyLjY2Miw3LjU2MywyLjY1OSw3LjU1OHogTTUuMzMsNS40MjhjMC4wMDQsMC4wMDQsMC4wMDcsMC4wMDksMC4wMTEsMC4wMTNDNS4zMzgsNS40MzcsNS4zMzQsNS40MzMsNS4zMyw1LjQyOHoKCSBNNS45LDQuNWMwLTAuMzMxLDAuMjY5LTAuNiwwLjYtMC42czAuNiwwLjI2OSwwLjYsMC42YzAsMC4zMzEtMC4yNjksMC42LTAuNiwwLjZTNS45LDQuODMxLDUuOSw0LjV6IE05LjUsMTIuMQoJYy0wLjMzMSwwLTAuNi0wLjI2OS0wLjYtMC42YzAtMC4zMzEsMC4yNjktMC42LDAuNi0wLjZzMC42LDAuMjY5LDAuNiwwLjZDMTAuMSwxMS44MzEsOS44MzEsMTIuMSw5LjUsMTIuMXogTTEwLjY1OSwxMC41NTkKCWMwLjAwNCwwLjAwNCwwLjAwNywwLjAwOCwwLjAxMSwwLjAxM0MxMC42NjYsMTAuNTY3LDEwLjY2MywxMC41NjMsMTAuNjU5LDEwLjU1OXogTTEzLjMzLDguNDI4CgljMC4wMDQsMC4wMDQsMC4wMDcsMC4wMDksMC4wMTEsMC4wMTNDMTMuMzM4LDguNDM3LDEzLjMzNCw4LjQzMywxMy4zMyw4LjQyOHogTTE0LjUsOC4xYy0wLjMzMSwwLTAuNi0wLjI2OS0wLjYtMC42CgljMC0wLjMzMSwwLjI2OS0wLjYsMC42LTAuNnMwLjYsMC4yNjksMC42LDAuNkMxNS4xLDcuODMxLDE0LjgzMSw4LjEsMTQuNSw4LjF6Ii8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPHJlY3QgeD0iMTAuODk2NjUiIHk9IjEwLjg5NjY1IiB3aWR0aD0iMTAuMjA2NyIgaGVpZ2h0PSIxMC4yMDY3IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNiAtNi42Mjc0Mikgcm90YXRlKDQ1KSIKICAgICAgICBzdHlsZT0iZmlsbC1vcGFjaXR5OjAuMDtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwgMS41KSBzY2FsZSgwLjc1KSIKICAgICAgICBkPSJNMTEuNjI1IDE4TDAuMzc0OTk5IDE4TDAuMzc1IC02LjM5Mjc5ZS0wN0wxMS42MjUgLTEuNDc1MjZlLTA3TDExLjYyNSAxOFpNMTAuNSAxNi44NzVMMTAuNSAxLjEyNUwxLjUgMS4xMjVMMS41IDE2Ljg3NUwxMC41IDE2Ljg3NVoiCiAgICAgICAgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTEyIDMuNUM3LjMwNTU4IDMuNSAzLjUgNy4zMDU1OCAzLjUgMTJDMy41IDE2LjY5NDQgNy4zMDU1OCAyMC41IDEyIDIwLjVDMTYuNjk0NCAyMC41IDIwLjUgMTYuNjk0NCAyMC41IDEyQzIwLjUgNy4zMDU1OCAxNi42OTQ0IDMuNSAxMiAzLjVaTTIgMTJDMiA2LjQ3NzE1IDYuNDc3MTUgMiAxMiAyQzE3LjUyMjggMiAyMiA2LjQ3NzE1IDIyIDEyQzIyIDE3LjUyMjggMTcuNTIyOCAyMiAxMiAyMkM2LjQ3NzE1IDIyIDIgMTcuNTIyOCAyIDEyWiIgZmlsbD0iIzIxMjEyMSIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xOTIwIDE5MjBIMEw5NjAgMGw5NjAgMTkyMHpNMjA3IDE3OTJoMTUwNkw5NjAgMjg2IDIwNyAxNzkyeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwgMS41KSBzY2FsZSgwLjc1KSIKICAgICAgICBkPSJNMTUuNzUgMTMuNUgyLjI1VjMuMzc1SDE1Ljc1VjEzLjVaTTMuMzc1IDQuNVY4Ljc3MTQ4TDYuNDY4NzUgNS42Nzc3M0wxMC40MDYyIDkuNjA2NDVMMTIuMDkzOCA3LjkyNzczTDE0LjYyNSAxMC40NTAyVjQuNUgzLjM3NVpNMy4zNzUgMTIuMzc1SDExLjU3NTJMNi40Njg3NSA3LjI2ODU1TDMuMzc1IDEwLjM1MzVWMTIuMzc1Wk0xNC42MjUgMTIuMzc1VjEyLjA0OThMMTIuMDkzOCA5LjUxODU1TDExLjE5NzMgMTAuNDA2MkwxMy4xNzQ4IDEyLjM3NUgxNC42MjVaTTEyLjkzNzUgNi43NUMxMi43ODUyIDYuNzUgMTIuNjUzMyA2LjY5NDM0IDEyLjU0MiA2LjU4MzAxQzEyLjQzMDcgNi40NzE2OCAxMi4zNzUgNi4zMzk4NCAxMi4zNzUgNi4xODc1QzEyLjM3NSA2LjAzNTE2IDEyLjQzMDcgNS45MDMzMiAxMi41NDIgNS43OTE5OUMxMi42NTMzIDUuNjgwNjYgMTIuNzg1MiA1LjYyNSAxMi45Mzc1IDUuNjI1QzEzLjA4OTggNS42MjUgMTMuMjIxNyA1LjY4MDY2IDEzLjMzMyA1Ljc5MTk5QzEzLjQ0NDMgNS45MDMzMiAxMy41IDYuMDM1MTYgMTMuNSA2LjE4NzVDMTMuNSA2LjMzOTg0IDEzLjQ0NDMgNi40NzE2OCAxMy4zMzMgNi41ODMwMUMxMy4yMjE3IDYuNjk0MzQgMTMuMDg5OCA2Ljc1IDEyLjkzNzUgNi43NVpNMTggMFYxOEgwVjBIMThaTTE2Ljg3NSAxLjEyNUgxLjEyNVYxNi44NzVIMTYuODc1VjEuMTI1WiIKICAgICAgICBmaWxsPSIjMjUyNTI1IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxNSAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwgMS41KSBzY2FsZSgwLjc1KSIKICAgICAgICBkPSJNOS45MjQ4IDBMMTQuNzUgNC44MjUyVjE4SDAuMTI1VjBIOS45MjQ4Wk0xMC4yNSAxLjkyNDhWNC41SDEyLjgyNTJMMTAuMjUgMS45MjQ4Wk0xMy42MjUgMTYuODc1VjUuNjI1SDkuMTI1VjEuMTI1SDEuMjVWMTYuODc1SDEzLjYyNVpNNi44NzUgNy4zMzAwOFY2Ljc1SDEyLjVWMTIuMzc1SDkuMzI3MTVMMTEuMjA4IDE1Ljc1SDMuNjY2OTlMNS41NjU0MyAxMi4zMzExQzUuNTAwOTggMTIuMzQyOCA1LjQzNjUyIDEyLjM1NDUgNS4zNzIwNyAxMi4zNjYyQzUuMzEzNDggMTIuMzcyMSA1LjI1MTk1IDEyLjM3NSA1LjE4NzUgMTIuMzc1QzQuODAwNzggMTIuMzc1IDQuNDM0NTcgMTIuMzAxOCA0LjA4ODg3IDEyLjE1NTNDMy43NDkwMiAxMi4wMDg4IDMuNDUwMiAxMS44MDk2IDMuMTkyMzggMTEuNTU3NkMyLjk0MDQzIDExLjI5OTggMi43NDEyMSAxMS4wMDEgMi41OTQ3MyAxMC42NjExQzIuNDQ4MjQgMTAuMzE1NCAyLjM3NSA5Ljk0OTIyIDIuMzc1IDkuNTYyNUMyLjM3NSA5LjE3NTc4IDIuNDQ4MjQgOC44MTI1IDIuNTk0NzMgOC40NzI2NkMyLjc0MTIxIDguMTMyODEgMi45NDA0MyA3LjgzNjkxIDMuMTkyMzggNy41ODQ5NkMzLjQ1MDIgNy4zMjcxNSAzLjc0OTAyIDcuMTI1IDQuMDg4ODcgNi45Nzg1MkM0LjQzNDU3IDYuODI2MTcgNC44MDA3OCA2Ljc1IDUuMTg3NSA2Ljc1QzUuNDkyMTkgNi43NSA1Ljc4ODA5IDYuNzk5OCA2LjA3NTIgNi44OTk0MUM2LjM2MjMgNi45OTkwMiA2LjYyODkxIDcuMTQyNTggNi44NzUgNy4zMzAwOFpNNS4xODc1IDExLjI1QzUuNDE2MDIgMTEuMjUgNS42MzI4MSAxMS4yMDYxIDUuODM3ODkgMTEuMTE4MkM2LjA0Mjk3IDExLjAzMDMgNi4yMjE2OCAxMC45MTAyIDYuMzc0MDIgMTAuNzU3OEM2LjUzMjIzIDEwLjU5OTYgNi42NTUyNyAxMC40MTggNi43NDMxNiAxMC4yMTI5QzYuODMxMDUgMTAuMDA3OCA2Ljg3NSA5Ljc5MTAyIDYuODc1IDkuNTYyNUM2Ljg3NSA5LjMyODEyIDYuODMxMDUgOS4xMDg0IDYuNzQzMTYgOC45MDMzMkM2LjY1NTI3IDguNjk4MjQgNi41MzUxNiA4LjUxOTUzIDYuMzgyODEgOC4zNjcxOUM2LjIzMDQ3IDguMjE0ODQgNi4wNTE3NiA4LjA5NDczIDUuODQ2NjggOC4wMDY4NEM1LjY0MTYgNy45MTg5NSA1LjQyMTg4IDcuODc1IDUuMTg3NSA3Ljg3NUM0Ljk1MzEyIDcuODc1IDQuNzMzNCA3LjkxODk1IDQuNTI4MzIgOC4wMDY4NEM0LjMyMzI0IDguMDk0NzMgNC4xNDQ1MyA4LjIxNDg0IDMuOTkyMTkgOC4zNjcxOUMzLjgzOTg0IDguNTE5NTMgMy43MTk3MyA4LjY5ODI0IDMuNjMxODQgOC45MDMzMkMzLjU0Mzk1IDkuMTA4NCAzLjUgOS4zMjgxMiAzLjUgOS41NjI1QzMuNSA5Ljc5Njg4IDMuNTQzOTUgMTAuMDE2NiAzLjYzMTg0IDEwLjIyMTdDMy43MTk3MyAxMC40MjY4IDMuODM5ODQgMTAuNjA1NSAzLjk5MjE5IDEwLjc1NzhDNC4xNDQ1MyAxMC45MTAyIDQuMzIzMjQgMTEuMDMwMyA0LjUyODMyIDExLjExODJDNC43MzM0IDExLjIwNjEgNC45NTMxMiAxMS4yNSA1LjE4NzUgMTEuMjVaTTggNy44NzVWOS45NzU1OUw4LjcwMzEyIDExLjI1SDExLjM3NVY3Ljg3NUg4Wk05LjI5MTk5IDE0LjYyNUw3LjQzNzUgMTEuMjg1Mkw1LjU4MzAxIDE0LjYyNUg5LjI5MTk5WiIKICAgICAgICBmaWxsPSIjMjUyNTI1IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxOCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwgMS41KSBzY2FsZSgwLjc1KSIKICAgICAgICBkPSJNMTggMTAuMjVIMTQuMzE3NEwxNy41NjkzIDE1Ljg3NUg1LjIyOTQ5TDcuNTc2MTcgMTEuODA1N0M3LjE4OTQ1IDEyLjAyODMgNi43ODUxNiAxMi4yMDEyIDYuMzYzMjggMTIuMzI0MkM1Ljk0MTQxIDEyLjQ0MTQgNS41MDc4MSAxMi41IDUuMDYyNSAxMi41QzQuMzY1MjMgMTIuNSAzLjcwODk4IDEyLjM2ODIgMy4wOTM3NSAxMi4xMDQ1QzIuNDc4NTIgMTEuODM1IDEuOTQyMzggMTEuNDcxNyAxLjQ4NTM1IDExLjAxNDZDMS4wMjgzMiAxMC41NTc2IDAuNjY1MDM5IDEwLjAyMTUgMC4zOTU1MDggOS40MDYyNUMwLjEzMTgzNiA4Ljc5MTAyIDAgOC4xMzQ3NyAwIDcuNDM3NUMwIDYuNzQwMjMgMC4xMzE4MzYgNi4wODM5OCAwLjM5NTUwOCA1LjQ2ODc1QzAuNjY1MDM5IDQuODUzNTIgMS4wMjgzMiA0LjMxNzM4IDEuNDg1MzUgMy44NjAzNUMxLjk0MjM4IDMuNDAzMzIgMi40Nzg1MiAzLjA0Mjk3IDMuMDkzNzUgMi43NzkzQzMuNzA4OTggMi41MDk3NyA0LjM2NTIzIDIuMzc1IDUuMDYyNSAyLjM3NUM1LjU2MDU1IDIuMzc1IDYuMDQ2ODggMi40NDgyNCA2LjUyMTQ4IDIuNTk0NzNDNy4wMDE5NSAyLjczNTM1IDcuNDUzMTIgMi45NDYyOSA3Ljg3NSAzLjIyNzU0VjAuMTI1SDE4VjEwLjI1Wk01LjA2MjUgMTEuMzc1QzUuNjA3NDIgMTEuMzc1IDYuMTE3MTkgMTEuMjcyNSA2LjU5MTggMTEuMDY3NEM3LjA3MjI3IDEwLjg1NjQgNy40ODgyOCAxMC41NzIzIDcuODM5ODQgMTAuMjE0OEM4LjE5NzI3IDkuODU3NDIgOC40Nzg1MiA5LjQ0MTQxIDguNjgzNTkgOC45NjY4QzguODk0NTMgOC40ODYzMyA5IDcuOTc2NTYgOSA3LjQzNzVDOSA2Ljg5ODQ0IDguODk0NTMgNi4zOTE2IDguNjgzNTkgNS45MTY5OUM4LjQ3ODUyIDUuNDM2NTIgOC4xOTcyNyA1LjAxNzU4IDcuODM5ODQgNC42NjAxNkM3LjQ4ODI4IDQuMzAyNzMgNy4wNzIyNyA0LjAyMTQ4IDYuNTkxOCAzLjgxNjQxQzYuMTE3MTkgMy42MDU0NyA1LjYwNzQyIDMuNSA1LjA2MjUgMy41QzQuNTE3NTggMy41IDQuMDA0ODggMy42MDU0NyAzLjUyNDQxIDMuODE2NDFDMy4wNDk4IDQuMDIxNDggMi42MzM3OSA0LjMwMjczIDIuMjc2MzcgNC42NjAxNkMxLjkyNDggNS4wMTE3MiAxLjY0MzU1IDUuNDI3NzMgMS40MzI2MiA1LjkwODJDMS4yMjc1NCA2LjM4MjgxIDEuMTI1IDYuODkyNTggMS4xMjUgNy40Mzc1QzEuMTI1IDcuOTgyNDIgMS4yMjc1NCA4LjQ5NTEyIDEuNDMyNjIgOC45NzU1OUMxLjY0MzU1IDkuNDUwMiAxLjkyNDggOS44NjYyMSAyLjI3NjM3IDEwLjIyMzZDMi42MzM3OSAxMC41NzUyIDMuMDQ5OCAxMC44NTY0IDMuNTI0NDEgMTEuMDY3NEM0LjAwNDg4IDExLjI3MjUgNC41MTc1OCAxMS4zNzUgNS4wNjI1IDExLjM3NVpNMTUuNjE4MiAxNC43NUMxNC45MDkyIDEzLjUyNTQgMTQuMjA2MSAxMi4zMDY2IDEzLjUwODggMTEuMDkzOEMxMi44MTE1IDkuODgwODYgMTIuMTA4NCA4LjY2MjExIDExLjM5OTQgNy40Mzc1QzEwLjY5MDQgOC42NjIxMSA5Ljk4NzMgOS44ODA4NiA5LjI5MDA0IDExLjA5MzhDOC41OTI3NyAxMi4zMDY2IDcuODg5NjUgMTMuNTI1NCA3LjE4MDY2IDE0Ljc1SDE1LjYxODJaTTE2Ljg3NSAxLjI1SDlWNC4yOTk4QzkuMzU3NDIgNC43MzkyNiA5LjYzMjgxIDUuMjI1NTkgOS44MjYxNyA1Ljc1ODc5QzEwLjAxOTUgNi4yODYxMyAxMC4xMTkxIDYuODMzOTggMTAuMTI1IDcuNDAyMzRMMTEuMzk5NCA1LjE4NzVMMTMuNjY3IDkuMTI1SDE2Ljg3NVYxLjI1WiIKICAgICAgICBmaWxsPSIjMjUyNTI1IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGxpbmUgeDE9IjcuOTM4MzUiIHkxPSIyNC40NjI4MiIgeDI9IjI0LjA2MTY1IiB5Mj0iNy41MzcxOCIKICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwIiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNTgyIDE2NjRoLTEzNWwtMTcwLTUxMkg2NDNsLTE3MCA1MTJIMzM4TDg5MyAwaDEzNGw1NTUgMTY2NHptLTM0OC02NDBMOTYwIDIwM2wtMjc0IDgyMWg1NDh6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0yMDQ4IDB2MjA0OEgwVjBoMjA0OHptLTEyOCAxMjhIMTI4djE3OTJoMTc5MlYxMjh6TTM5NyA4OTRIMjgzbDIzNS02MjhoMTE3bDIzNCA2MjhINzU0bC01Ni0xNjBINDUxbC01NCAxNjB6bTE3Ni01MzVxLTIgMTAtMyAyMHQtNSAyMGwtODcgMjUwaDE5M2wtODgtMjUwcS0zLTktNC0xOXQtNC0yMWgtMnptNDYwIDUzNUg5MzFWMjMwaDEwMnYyOTRoMXEyNi00MyA2My02NnQ4OS0yM3E0OCAwIDgyIDE4dDU3IDUwIDMyIDcxIDEwIDgzcTAgNDgtMTEgOTJ0LTM2IDc5LTYyIDU1LTkyIDIxcS04NiAwLTEzMi03NWgtMXY2NXptLTEtMTg4cTAgMjQgOCA0NXQyMiAzOCAzNCAyNSA0NiAxMHEzNSAwIDU4LTE1dDM3LTM5IDIwLTU0IDYtNTlxMC0yNi02LTUxdC0xOS00Ni0zNC0zMi01Mi0xMnEtMjkgMC01MSAxMXQtMzggMjktMjMgNDMtOCA1MnY1NXptNjMyIDE5OHEtNTAgMC05MS0xNnQtNzAtNDYtNDUtNzEtMTYtOTFxMC01NSAxNy0xMDB0NDgtNzcgNzYtNTAgMTAxLTE4cTI4IDAgNTUgNXQ1MyAxNnY5NXEtMjItMTYtNDctMjV0LTUzLTEwcS0zNSAwLTYyIDEydC00NSAzNC0yOSA1MC0xMCA2MnEwIDY2IDM3IDEwOHQxMDUgNDJxMjkgMCA1NS0xMHQ0OS0yOXY4OHEtMjkgMTctNjIgMjR0LTY2IDd6TTQzOCAxNzkycS00OCAwLTgyLTE5dC01Ny01MC0zMi03Mi0xMS04M3EwLTQ3IDExLTkxdDM3LTc4IDYyLTU1IDkxLTIxcTQzIDAgNzcgMTd0NTUgNTZoMnYtMjc4aDEwMXY2NjRINTkxdi03N2gtMnEtNTAgODctMTUxIDg3em00NC0zODhxLTM1IDAtNTggMTR0LTM4IDM2LTIwIDUxLTYgNTlxMCAyNyA2IDUzdDIwIDQ4IDM1IDM0IDU0IDEzcTI4IDAgNTAtMTF0MzctMzAgMjItNDMgOC01MXYtNTlxMC00OC0zMC04MXQtODAtMzN6bTUzMC04MXE1MSAwIDg3IDE3dDU5IDQ4IDM1IDcxIDExIDg3djM5SDg5OXEyIDYzIDM5IDk2dDk5IDM0cTM2IDAgNjktMTF0NjMtMzJ2ODFxLTM2IDIzLTc4IDMxdC04NCA4cS01NCAwLTkzLTE3dC02Ni00OS0zOS03My0xMy05NHEwLTQ4IDE1LTkwdDQzLTc1IDY4LTUyIDkwLTE5em05NCAxOTBxMC0yMy01LTQ0dC0xNy0zNi0zMC0yNS00NC0xMHEtMjQgMC00MyA5dC0zNCAyNi0yMiAzNy0xMiA0M2gyMDd6bTIyNi0yNTJxMC0zNiAxMi02NHQzNS00OCA1MS0zMCA2NS0xMXExNSAwIDMwIDJ0MjkgN3Y4NHEtMjEtMTItNDctMTItNDEgMC01NyAyM3QtMTcgNjF2NjBoMTA0djgwaC0xMDN2MzY5aC0xMDJ2LTM2OWgtNzZ2LTgwaDc2di03MnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIj4KIDxnIHRyYW5zZm9ybT0ic2NhbGUoMC4wMTkgMC4wMTkpIj4KICA8cGF0aCBkPSJNMTQ3MiAwbDU3NiA1NzZMNTc2IDIwNDggMCAxNDcyIDE0NzIgMHpNMTgxIDE0NzJsMzk1IDM5NUwxODY3IDU3NmwtMzk1LTM5NS04OCA4OCAxMTUgMTE1LTkxIDkxLTExNS0xMTUtMTY1IDE2NSAxOTcgMTk4LTkwIDkwLTE5OC0xOTctMTY1IDE2NSAxMTUgMTE2LTkwIDkwLTExNi0xMTUtMTY1IDE2NSAxOTcgMTk4LTkwIDkwLTE5OC0xOTctMTY1IDE2NSAxMTUgMTE1LTkxIDkxLTExNS0xMTUtODggODh6IiAvPgo8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 4292 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwgMS41KSBzY2FsZSgwLjc1KSIKICAgICAgICBkPSJNMTUuODc1IDE0Ljc1VjE1Ljg3NUgwLjEyNVYwLjEyNUgxLjI1VjE0Ljc1SDE1Ljg3NVpNNS43NSAxMy42MjVIMi4zNzVWMy41SDUuNzVWMTMuNjI1Wk00LjYyNSA4SDMuNVYxMi41SDQuNjI1VjhaTTQuNjI1IDQuNjI1SDMuNVY2Ljg3NUg0LjYyNVY0LjYyNVpNMTAuMjUgMTMuNjI1SDYuODc1VjUuNzVIMTAuMjVWMTMuNjI1Wk05LjEyNSAxMC4yNUg4VjEyLjVIOS4xMjVWMTAuMjVaTTkuMTI1IDYuODc1SDhWOS4xMjVIOS4xMjVWNi44NzVaTTE0Ljc1IDEzLjYyNUgxMS4zNzVWMS4yNUgxNC43NVYxMy42MjVaTTEzLjYyNSA1Ljc1SDEyLjVWMTIuNUgxMy42MjVWNS43NVpNMTMuNjI1IDIuMzc1SDEyLjVWNC42MjVIMTMuNjI1VjIuMzc1WiIKICAgICAgICBmaWxsPSIjMjUyNTI1IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMyw4djAuOTkySDBWOEgzeiBNNyw4djAuOTkySDRWOEg3eiBNMTEsOHYwLjk5Mkg4VjhIMTF6IE0xNSw4djAuOTkyaC0zVjhIMTV6Ii8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNMSw4djAuOTkySDBWOEgxeiBNMyw4djAuOTkySDJWOEgzeiBNNSw4djAuOTkySDRWOEg1eiBNNyw4djAuOTkySDZWOEg3eiBNOSw4djAuOTkySDhWOEg5eiBNMTEsOHYwLjk5MmgtMVY4SDExeiBNMTMsOAoJdjAuOTkyaC0xVjhIMTN6IE0xNSw4djAuOTkyaC0xVjhIMTV6Ii8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+CiAgICAgICAgaWNvbnMKICAgIDwvdGl0bGU+CiAgICA8bGluZSB4MT0iNC41OTA0NiIgeTE9IjE2IiB4Mj0iMjcuNDA5NTQiIHkyPSIxNiIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMCIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0xOTIwIDM4NHYxNjY0SDUxMnYtMzg0SDEyOFYwaDE0MDh2Mzg0aDM4NHpNMjU2IDE1MzZoMTE1MlYxMjhIMjU2djE0MDh6TTE3OTIgNTEyaC0yNTZ2MTE1Mkg2NDB2MjU2aDExNTJWNTEyeiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LCAwKSByb3RhdGUoOTApIiBkPSJNMiwwaDEydjdIMlYweiBNMTQsOHY3SDJWOEgxNHogTTEzLDFIM3Y1aDEwVjF6IE0zLDE0aDEwVjlIM1YxNHoiLz4KPC9nPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0yLDBoMTJ2N0gyVjB6IE0xNCw4djdIMlY4SDE0eiBNMTMsMUgzdjVoMTBWMXogTTMsMTRoMTBWOUgzVjE0eiIvPgo8L2c+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNOS45MjEsMi40NTJjMS42MDUsMC4xODMsMy4xNTQsMC41OTEsNC42MjYsMS4yMTlsLTQuNTA4LDkuMDE2Yy0wLjIyMy0wLjA3Mi0wLjQ0OC0wLjEzMy0wLjY3Ni0wLjE4MUw5LjkyMSwyLjQ1MgoJIE04Ljk3OSwxLjM2OUw4LjMxMywxMy4zNzNjMC43NjIsMC4wNDIsMS41MDgsMC4yNDEsMi4yMDYsMC41ODlsNS4zODMtMTAuNzY2QzEzLjcxOSwyLjEwNSwxMS4zNjIsMS41MDEsOC45NzksMS4zNjlMOC45NzksMS4zNjl6CgkgTTYuMDc5LDIuNDUybDAuNTU5LDEwLjA1NWMtMC4yMjgsMC4wNDgtMC40NTMsMC4xMDktMC42NzYsMC4xODFMMS40NTMsMy42NzFDMi45MjUsMy4wNDMsNC40NzQsMi42MzQsNi4wNzksMi40NTIgTTcuMDIxLDEuMzY5CgljLTIuMzgzLDAuMTMyLTQuNzQsMC43MzYtNi45MjIsMS44MjhsNS4zODMsMTAuNzY2YzAuNjk4LTAuMzQ5LDEuNDQ0LTAuNTQ3LDIuMjA2LTAuNTg5TDcuMDIxLDEuMzY5TDcuMDIxLDEuMzY5eiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnPgoJCTxwYXRoIGQ9Ik04LDIuMzM1YzIuMjQ1LDAsNC40ODgsMC40Niw2LjU0NiwxLjMzNmwtMS4zMjEsMi42NDJDMTEuNTc2LDUuNjM2LDkuNzg4LDUuMjgxLDgsNS4yODFTNC40MjQsNS42MzYsMi43NzUsNi4zMTMKCQkJTDEuNDU0LDMuNjcxQzMuNTEyLDIuNzk1LDUuNzU1LDIuMzM1LDgsMi4zMzUgTTgsMS4zMzVjLTIuNzEsMC01LjQyLDAuNjItNy45MDIsMS44NjFsMi4yMTIsNC40MjUKCQkJQzQuMDk3LDYuNzI4LDYuMDQ5LDYuMjgxLDgsNi4yODFzMy45MDMsMC40NDcsNS42ODksMS4zNGwyLjIxMi00LjQyNUMxMy40MiwxLjk1NiwxMC43MSwxLjMzNSw4LDEuMzM1TDgsMS4zMzV6Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBkPSJNOCw5LjQwMWMxLjE1MSwwLDIuMzAxLDAuMjEsMy4zNzYsMC42MTFsLTEuMzM4LDIuNjc3QzkuMzgsMTIuNDc4LDguNjg5LDEyLjM2OCw4LDEyLjM2OHMtMS4zOCwwLjExLTIuMDM3LDAuMzIyCgkJCWwtMS4zMzgtMi42NzdDNS42OTksOS42MTEsNi44NDksOS40MDEsOCw5LjQwMSBNOCw4LjQwMWMtMS42MjYsMC0zLjI1MiwwLjM3Mi00Ljc0MSwxLjExN2wyLjIyMiw0LjQ0NQoJCQlDNi4yNzUsMTMuNTY2LDcuMTM3LDEzLjM2OCw4LDEzLjM2OHMxLjcyNSwwLjE5OCwyLjUxOSwwLjU5NWwyLjIyMi00LjQ0NUMxMS4yNTIsOC43NzQsOS42MjYsOC40MDEsOCw4LjQwMUw4LDguNDAxeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0wIDBoMjA0OHYyMDQ4SDBWMHptNjQwIDE5MjB2LTUxMkgxMjh2NTEyaDUxMnptMC02NDBWNzY4SDEyOHY1MTJoNTEyem0wLTY0MFYxMjhIMTI4djUxMmg1MTJ6bTY0MCAxMjgwdi01MTJINzY4djUxMmg1MTJ6bTAtNjQwVjc2OEg3Njh2NTEyaDUxMnptMC02NDBWMTI4SDc2OHY1MTJoNTEyem02NDAgMTI4MHYtNTEyaC01MTJ2NTEyaDUxMnptMC02NDBWNzY4aC01MTJ2NTEyaDUxMnptMC02NDBWMTI4aC01MTJ2NTEyaDUxMnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,[encoded data, 9384 characters]"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGNpcmNsZSBjeD0iOS44NzE0MyIgY3k9IjIyLjI3NTYzIiByPSI1LjMzMzMzIiBzdHlsZT0iZmlsbC1vcGFjaXR5OjAuMDtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6MnB4IiAvPgogICAgPGNpcmNsZSBjeD0iMjMuMTE0NDIiIGN5PSIyMi4yNzU2MyIgcj0iNS4zMzMzMyIgc3R5bGU9ImZpbGwtb3BhY2l0eTowLjA7c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjJweCIgLz4KICAgIDxjaXJjbGUgY3g9IjE1Ljk5MjkyIiBjeT0iMTAuNjcyODkiIHI9IjUuMzMzMzMiIHN0eWxlPSJmaWxsLW9wYWNpdHk6MC4wO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDoycHgiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgogICAgPGNpcmNsZSBjeD0iMTAiIGN5PSI0IiByPSIyLjMzMzMzIiBzdHlsZT0iZmlsbC1vcGFjaXR5OjAuMDtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6MXB4IiAvPgogICAgPGNpcmNsZSBjeD0iMjAiIGN5PSIxMSIgcj0iMi4zMzMzMyIgc3R5bGU9ImZpbGwtb3BhY2l0eTowLjA7c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjFweCIgLz4KICAgIDxjaXJjbGUgY3g9IjgiIGN5PSIyMiIgcj0iMi4zMzMzMyIgc3R5bGU9ImZpbGwtb3BhY2l0eTowLjA7c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjFweCIgLz4KICAgIDxjaXJjbGUgY3g9IjIzIiBjeT0iMjIiIHI9IjIuMzMzMzMiIHN0eWxlPSJmaWxsLW9wYWNpdHk6MC4wO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDoxcHgiIC8+CiAgICA8Y2lyY2xlIGN4PSI0IiBjeT0iMTIiIHI9IjIuMzMzMzMiIHN0eWxlPSJmaWxsLW9wYWNpdHk6MC4wO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDoxcHgiIC8+CiAgICA8Y2lyY2xlIGN4PSIxNCIgY3k9IjE2IiByPSIyLjMzMzMzIiBzdHlsZT0iZmlsbC1vcGFjaXR5OjAuMDtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6MXB4IiAvPgogICAgPGNpcmNsZSBjeD0iMjEiIGN5PSIzIiByPSIyLjMzMzMzIiBzdHlsZT0iZmlsbC1vcGFjaXR5OjAuMDtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6MXB4IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNzkyIDE2NjRoLTc2OHYzODRIODk2di0zODRIMTI4di01MTJoNzY4Vjg5NkgzODRWMzg0aDUxMlYwaDEyOHYzODRoNTEydjUxMmgtNTEydjI1Nmg3Njh2NTEyek01MTIgNzY4aDg5NlY1MTJINTEydjI1NnptMTE1MiA1MTJIMjU2djI1NmgxNDA4di0yNTZ6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xOTIwIDB2MjA0OGgtMTI4VjBoMTI4ek01MTIgMzg0aDExNTJ2NTEySDUxMlYzODR6bTEyOCAzODRoODk2VjUxMkg2NDB2MjU2ek0wIDExNTJoMTY2NHY1MTJIMHYtNTEyem0xMjggMzg0aDE0MDh2LTI1NkgxMjh2MjU2eiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0yMDQ4IDB2MTI4SDBWMGgyMDQ4em0tODk2IDI1Nmg1MTJ2MTE1MmgtNTEyVjI1NnptMTI4IDEwMjRoMjU2VjM4NGgtMjU2djg5NnpNMzg0IDI1Nmg1MTJ2MTY2NEgzODRWMjU2em0xMjggMTUzNmgyNTZWMzg0SDUxMnYxNDA4eiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0yMDQ4IDEwMjRoLTM4NHY1MTJoLTUxMnYtNTEySDg5NnY3NjhIMzg0di03NjhIMFY4OTZoMzg0VjEyOGg1MTJ2NzY4aDI1NlYzODRoNTEydjUxMmgzODR2MTI4ek03NjggMjU2SDUxMnYxNDA4aDI1NlYyNTZ6bTc2OCAyNTZoLTI1NnY4OTZoMjU2VjUxMnoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0yMDQ4IDE3OTJ2MTI4SDB2LTEyOGgyMDQ4em0tMzg0LTEyOGgtNTEyVjUxMmg1MTJ2MTE1MnpNMTUzNiA2NDBoLTI1NnY4OTZoMjU2VjY0MHpNODk2IDE2NjRIMzg0VjBoNTEydjE2NjR6TTc2OCAxMjhINTEydjE0MDhoMjU2VjEyOHoiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2NCAoOTM1MzcpIC0gaHR0cHM6Ly9za2V0Y2guY29tIC0tPgogIDx0aXRsZT5pY19mbHVlbnRfdGV4dF9hbGlnbl9sZWZ0XzI0X2ZpbGxlZDwvdGl0bGU+CiAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgPGcgaWQ9IvCflI0tU3lzdGVtLUljb25zIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxnIGlkPSJpY19mbHVlbnRfdGV4dF9hbGlnbl9sZWZ0XzI0X2ZpbGxlZCIgZmlsbD0iIzIxMjEyMSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgPHBhdGggZD0iTTE0LDE3IEMxNC41NTIzLDE3IDE1LDE3LjQ0NzcgMTUsMTggQzE1LDE4LjU1MjMgMTQuNTUyMywxOSAxNCwxOSBMMywxOSBDMi40NDc3MiwxOSAyLDE4LjU1MjMgMiwxOCBDMiwxNy40NDc3IDIuNDQ3NzIsMTcgMywxNyBMMTQsMTcgWiBNMjEsMTEgQzIxLjU1MjMsMTEgMjIsMTEuNDQ3NyAyMiwxMiBDMjIsMTIuNTEyODUgMjEuNjEzOTczLDEyLjkzNTUwOTIgMjEuMTE2NjIzOSwxMi45OTMyNzI1IEwyMSwxMyBMMywxMyBDMi40NDc3MiwxMyAyLDEyLjU1MjMgMiwxMiBDMiwxMS40ODcxNSAyLjM4NjA0NDI5LDExLjA2NDQ5MDggMi44ODMzNzk3NSwxMS4wMDY3Mjc1IEwzLDExIEwyMSwxMSBaIE0xOCw1IEMxOC41NTIzLDUgMTksNS40NDc3MiAxOSw2IEMxOSw2LjU1MjI4IDE4LjU1MjMsNyAxOCw3IEwzLDcgQzIuNDQ3NzIsNyAyLDYuNTUyMjggMiw2IEMyLDUuNDQ3NzIgMi40NDc3Miw1IDMsNSBMMTgsNSBaIiBpZD0i8J+OqC1Db2xvciI+PC9wYXRoPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2NCAoOTM1MzcpIC0gaHR0cHM6Ly9za2V0Y2guY29tIC0tPgogIDx0aXRsZT5pY19mbHVlbnRfdGV4dF9hbGlnbl9jZW50ZXJfMjRfZmlsbGVkPC90aXRsZT4KICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICA8ZyBpZD0i8J+UjS1TeXN0ZW0tSWNvbnMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgaWQ9ImljX2ZsdWVudF90ZXh0X2FsaWduX2NlbnRlcl8yNF9maWxsZWQiIGZpbGw9IiMyMTIxMjEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgIDxwYXRoIGQ9Ik0xNywxNyBDMTcuNTUyMywxNyAxOCwxNy40NDc3IDE4LDE4IEMxOCwxOC41NTIzIDE3LjU1MjMsMTkgMTcsMTkgTDcsMTkgQzYuNDQ3NzIsMTkgNiwxOC41NTIzIDYsMTggQzYsMTcuNDQ3NyA2LjQ0NzcyLDE3IDcsMTcgTDE3LDE3IFogTTIxLDExIEMyMS41NTIzLDExIDIyLDExLjQ0NzcgMjIsMTIgQzIyLDEyLjUxMjg1IDIxLjYxMzk3MywxMi45MzU1MDkyIDIxLjExNjYyMzksMTIuOTkzMjcyNSBMMjEsMTMgTDMsMTMgQzIuNDQ3NzIsMTMgMiwxMi41NTIzIDIsMTIgQzIsMTEuNDg3MTUgMi4zODYwNDQyOSwxMS4wNjQ0OTA4IDIuODgzMzc5NzUsMTEuMDA2NzI3NSBMMywxMSBMMjEsMTEgWiBNMTksNSBDMTkuNTUyMyw1IDIwLDUuNDQ3NzIgMjAsNiBDMjAsNi41NTIyOCAxOS41NTIzLDcgMTksNyBMNSw3IEM0LjQ0NzcyLDcgNCw2LjU1MjI4IDQsNiBDNCw1LjQ0NzcyIDQuNDQ3NzIsNSA1LDUgTDE5LDUgWiIgaWQ9IvCfjqgtQ29sb3IiPjwvcGF0aD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2NCAoOTM1MzcpIC0gaHR0cHM6Ly9za2V0Y2guY29tIC0tPgogIDx0aXRsZT5pY19mbHVlbnRfdGV4dF9hbGlnbl9yaWdodF8yNF9yZWd1bGFyPC90aXRsZT4KICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICA8ZyBpZD0i8J+UjS1TeXN0ZW0tSWNvbnMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgaWQ9ImljX2ZsdWVudF90ZXh0X2FsaWduX3JpZ2h0XzI0X3JlZ3VsYXIiIGZpbGw9IiMyMTIxMjEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgIDxwYXRoIGQ9Ik0yMS4yNSwxOCBDMjEuNjY0MiwxOCAyMiwxOC4zMzU4IDIyLDE4Ljc1IEMyMiwxOS4xNjQyIDIxLjY2NDIsMTkuNSAyMS4yNSwxOS41IEwxMC43NSwxOS41IEMxMC4zMzU4LDE5LjUgMTAsMTkuMTY0MiAxMCwxOC43NSBDMTAsMTguMzM1OCAxMC4zMzU4LDE4IDEwLjc1LDE4IEwyMS4yNSwxOCBaIE0yMS4yNSwxMS41IEMyMS42NjQyLDExLjUgMjIsMTEuODM1OCAyMiwxMi4yNSBDMjIsMTIuNjI5NjgzMyAyMS43MTc4MzQ3LDEyLjk0MzQ4ODkgMjEuMzUxNzY3NywxMi45OTMxNTMxIEwyMS4yNSwxMyBMMi43NSwxMyBDMi4zMzU3OSwxMyAyLDEyLjY2NDIgMiwxMi4yNSBDMiwxMS44NzAzMTY3IDIuMjgyMTU2ODgsMTEuNTU2NTExMSAyLjY0ODIzMDE5LDExLjUwNjg0NjkgTDIuNzUsMTEuNSBMMjEuMjUsMTEuNSBaIE0yMS4yNSw1IEMyMS42NjQyLDUgMjIsNS4zMzU3OSAyMiw1Ljc1IEMyMiw2LjE2NDIxIDIxLjY2NDIsNi41IDIxLjI1LDYuNSBMNS43NSw2LjUgQzUuMzM1NzksNi41IDUsNi4xNjQyMSA1LDUuNzUgQzUsNS4zMzU3OSA1LjMzNTc5LDUgNS43NSw1IEwyMS4yNSw1IFoiIGlkPSLwn46oLUNvbG9yIj48L3BhdGg+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTIxIDUuNzVDMjEgNC4yMzEyMiAxOS43Njg4IDMgMTguMjUgM0g1Ljc1QzQuMjMxMjIgMyAzIDQuMjMxMjIgMyA1Ljc1VjE4LjI1QzMgMTkuNzY4OCA0LjIzMTIyIDIxIDUuNzUgMjFIMTguMjVDMTkuNzY4OCAyMSAyMSAxOS43Njg4IDIxIDE4LjI1VjUuNzVaTTUuNzUgNC41SDE4LjI1QzE4Ljk0MDQgNC41IDE5LjUgNS4wNTk2NCAxOS41IDUuNzVWMTguMjVDMTkuNSAxOC45NDA0IDE4Ljk0MDQgMTkuNSAxOC4yNSAxOS41SDUuNzVDNS4wNTk2NCAxOS41IDQuNSAxOC45NDA0IDQuNSAxOC4yNVY1Ljc1QzQuNSA1LjA1OTY0IDUuMDU5NjQgNC41IDUuNzUgNC41Wk02Ljc1IDcuNUgxNy4yNUMxNy42NjQyIDcuNSAxOCA3LjgzNTc5IDE4IDguMjVDMTggOC42Mjk3IDE3LjcxNzggOC45NDM0OSAxNy4zNTE4IDguOTkzMTVMMTcuMjUgOUg2Ljc1QzYuMzM1NzkgOSA2IDguNjY0MjEgNiA4LjI1QzYgNy44NzAzIDYuMjgyMTUgNy41NTY1MSA2LjY0ODIzIDcuNTA2ODVMNi43NSA3LjVaTTE3LjI1IDEwLjVINi43NUw2LjY0ODIzIDEwLjUwNjhDNi4yODIxNSAxMC41NTY1IDYgMTAuODcwMyA2IDExLjI1QzYgMTEuNjY0MiA2LjMzNTc5IDEyIDYuNzUgMTJIMTcuMjVMMTcuMzUxOCAxMS45OTMyQzE3LjcxNzggMTEuOTQzNSAxOCAxMS42Mjk3IDE4IDExLjI1QzE4IDEwLjgzNTggMTcuNjY0MiAxMC41IDE3LjI1IDEwLjVaIiBmaWxsPSIjMjEyMTIxIiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTcgMTBIMTdDMTcuNTUyMyAxMCAxOCAxMC4zMzU4IDE4IDEwLjc1QzE4IDExLjEyOTcgMTcuNjIzOCAxMS40NDM1IDE3LjEzNTcgMTEuNDkzMkwxNyAxMS41SDdDNi40NDc3MiAxMS41IDYgMTEuMTY0MiA2IDEwLjc1QzYgMTAuMzcwMyA2LjM3NjIxIDEwLjA1NjUgNi44NjQzMSAxMC4wMDY4TDcgMTBaIiBmaWxsPSIjMjEyMTIxIiAvPgogIDxwYXRoIGQ9Ik0xNyAxM0g3TDYuODY0MzEgMTMuMDA2OEM2LjM3NjIxIDEzLjA1NjUgNiAxMy4zNzAzIDYgMTMuNzVDNiAxNC4xNjQyIDYuNDQ3NzIgMTQuNSA3IDE0LjVIMTdMMTcuMTM1NyAxNC40OTMyQzE3LjYyMzggMTQuNDQzNSAxOCAxNC4xMjk3IDE4IDEzLjc1QzE4IDEzLjMzNTggMTcuNTUyMyAxMyAxNyAxM1oiIGZpbGw9IiMyMTIxMjEiIC8+CiAgPHBhdGggZD0iTTIxIDUuNzVDMjEgNC4yMzEyMiAxOS43Njg4IDMgMTguMjUgM0g1Ljc1QzQuMjMxMjIgMyAzIDQuMjMxMjIgMyA1Ljc1VjE4LjI1QzMgMTkuNzY4OCA0LjIzMTIyIDIxIDUuNzUgMjFIMTguMjVDMTkuNzY4OCAyMSAyMSAxOS43Njg4IDIxIDE4LjI1VjUuNzVaTTUuNzUgNC41SDE4LjI1QzE4Ljk0MDQgNC41IDE5LjUgNS4wNTk2NCAxOS41IDUuNzVWMTguMjVDMTkuNSAxOC45NDA0IDE4Ljk0MDQgMTkuNSAxOC4yNSAxOS41SDUuNzVDNS4wNTk2NCAxOS41IDQuNSAxOC45NDA0IDQuNSAxOC4yNVY1Ljc1QzQuNSA1LjA1OTY0IDUuMDU5NjQgNC41IDUuNzUgNC41WiIgZmlsbD0iIzIxMjEyMSIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTYuNzUgMTMuNUgxNy4yNUMxNy42NjQyIDEzLjUgMTggMTMuODM1OCAxOCAxNC4yNUMxOCAxNC42Mjk3IDE3LjcxNzggMTQuOTQzNSAxNy4zNTE4IDE0Ljk5MzJMMTcuMjUgMTVINi43NUM2LjMzNTc5IDE1IDYgMTQuNjY0MiA2IDE0LjI1QzYgMTMuODcwMyA2LjI4MjE1IDEzLjU1NjUgNi42NDgyMyAxMy41MDY4TDYuNzUgMTMuNVoiIGZpbGw9IiMyMTIxMjEiIC8+CiAgPHBhdGggZD0iTTE3LjI1IDE2LjVINi43NUw2LjY0ODIzIDE2LjUwNjhDNi4yODIxNSAxNi41NTY1IDYgMTYuODcwMyA2IDE3LjI1QzYgMTcuNjY0MiA2LjMzNTc5IDE4IDYuNzUgMThIMTcuMjVMMTcuMzUxOCAxNy45OTMyQzE3LjcxNzggMTcuOTQzNSAxOCAxNy42Mjk3IDE4IDE3LjI1QzE4IDE2LjgzNTggMTcuNjY0MiAxNi41IDE3LjI1IDE2LjVaIiBmaWxsPSIjMjEyMTIxIiAvPgogIDxwYXRoIGQ9Ik0yMSA1Ljc1QzIxIDQuMjMxMjIgMTkuNzY4OCAzIDE4LjI1IDNINS43NUM0LjIzMTIyIDMgMyA0LjIzMTIyIDMgNS43NVYxOC4yNUMzIDE5Ljc2ODggNC4yMzEyMiAyMSA1Ljc1IDIxSDE4LjI1QzE5Ljc2ODggMjEgMjEgMTkuNzY4OCAyMSAxOC4yNVY1Ljc1Wk01Ljc1IDQuNUgxOC4yNUMxOC45NDA0IDQuNSAxOS41IDUuMDU5NjQgMTkuNSA1Ljc1VjE4LjI1QzE5LjUgMTguOTQwNCAxOC45NDA0IDE5LjUgMTguMjUgMTkuNUg1Ljc1QzUuMDU5NjQgMTkuNSA0LjUgMTguOTQwNCA0LjUgMTguMjVWNS43NUM0LjUgNS4wNTk2NCA1LjA1OTY0IDQuNSA1Ljc1IDQuNVoiIGZpbGw9IiMyMTIxMjEiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48bGluZSB4MT0iMjQuNjE2MjUiIHkxPSI3LjM4Mzc1IiB4Mj0iNy4zODM3NSIgeTI9IjI0LjYxNjI1IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwIi8+PHBhdGggZD0iTTE1LjA5NzksOC40MjE2OUgxMS44Njk0OHY5LjA2OTU1SDkuODc4NTVWOC40MjE2OUg2LjY1MDEzVjYuNzg1NDFIMTUuMDk3OVoiLz48cGF0aCBkPSJNMjEuNDU1LDE2LjY2NzI0VjE5LjgzNjNoNC4wMTIzMXYxLjU5MTM3SDIxLjQ1NXY0LjM2MDg4aC0xLjk5OTNWMTUuMDgyNzJoNi43NTIxMnYxLjU4NDUyWiIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8dGl0bGU+aWNvbnM8L3RpdGxlPgoKPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTQuODI5MzEgNC42MDk3NkM0Ljk4NTk5IDQuMjQwMTEgNS4zNDg1NCA0IDUuNzUwMDMgNEgxOC4yNUMxOC44MDIzIDQgMTkuMjUgNC40NDc3MiAxOS4yNSA1QzE5LjI1IDUuNTUyMjggMTguODAyMyA2IDE4LjI1IDZIOC4xMDkzNkwxMy4wNTk1IDExLjExNTJDMTMuNDE4NSAxMS40ODYyIDEzLjQzNjIgMTIuMDY5NCAxMy4xMDAyIDEyLjQ2MTRMNy45MjQyNSAxOC41SDE4LjI1QzE4LjgwMjMgMTguNSAxOS4yNSAxOC45NDc3IDE5LjI1IDE5LjVDMTkuMjUgMjAuMDUyMyAxOC44MDIzIDIwLjUgMTguMjUgMjAuNUg1Ljc1MDAzQzUuMzU5NSAyMC41IDUuMDA0NyAyMC4yNzI3IDQuODQxNTEgMTkuOTE3OUM0LjY3ODMzIDE5LjU2MzEgNC43MzY2MiAxOS4xNDU3IDQuOTkwNzcgMTguODQ5MkwxMC45ODg5IDExLjg1MTRMNS4wMzE0MiA1LjY5NTQyQzQuNzUyMjMgNS40MDY5MiA0LjY3MjY0IDQuOTc5NDEgNC44MjkzMSA0LjYwOTc2WiIgZmlsbD0iIzIxMjEyMSIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik0xNTM2IDI1NmgzODR2MTUzNmgtMzg0VjI1NnptMjU2IDE0MDhWMzg0aC0xMjh2MTI4MGgxMjh6bS03NjggMTI4VjY0MGgzODR2MTE1MmgtMzg0em0xMjgtMTAyNHY4OTZoMTI4Vjc2OGgtMTI4ek01MTIgMTc5MnYtNzY4aDM4NHY3NjhINTEyem0xMjgtNjQwdjUxMmgxMjh2LTUxMkg2NDB6TTAgMTc5MnYtMzg0aDM4NHYzODRIMHptMTI4LTI1NnYxMjhoMTI4di0xMjhIMTI4eiIgLz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPgogIDxwYXRoIGQ9Ik03NjggNzY4aDEyOHYxMjhINzY4Vjc2OHptMzg0IDc2OGgxMjh2MTI4aC0xMjh2LTEyOHptMzg0LTc2OGgxMjh2MTI4aC0xMjhWNzY4em0tMzg0IDBoMTI4djEyOGgtMTI4Vjc2OHptLTM4NCAyNTZoMTI4djEyOEg3Njh2LTEyOHptLTM4NCAwaDEyOHYxMjhIMzg0di0xMjh6bTExNTIgMGgxMjh2MTI4aC0xMjh2LTEyOHptLTM4NCAwaDEyOHYxMjhoLTEyOHYtMTI4em0tMzg0IDI1NmgxMjh2MTI4SDc2OHYtMTI4em0tMzg0IDBoMTI4djEyOEgzODR2LTEyOHptMTE1MiAwaDEyOHYxMjhoLTEyOHYtMTI4em0tMzg0IDBoMTI4djEyOGgtMTI4di0xMjh6bS0zODQgMjU2aDEyOHYxMjhINzY4di0xMjh6bS0zODQgMGgxMjh2MTI4SDM4NHYtMTI4ek0yMDQ4IDEyOHYxNzkySDBWMTI4aDM4NFYwaDEyOHYxMjhoMTAyNFYwaDEyOHYxMjhoMzg0ek0xMjggMjU2djI1NmgxNzkyVjI1NmgtMjU2djEyOGgtMTI4VjI1Nkg1MTJ2MTI4SDM4NFYyNTZIMTI4em0xNzkyIDE1MzZWNjQwSDEyOHYxMTUyaDE3OTJ6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1OS4xICg4NjE0NCkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgPHRpdGxlPmljX2ZsdWVudF9jaGVja2JveF91bmNoZWNrZWRfMjRfcmVndWxhcjwvdGl0bGU+CiAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgPGcgaWQ9IvCflI0tUHJvZHVjdC1JY29ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICA8ZyBpZD0iaWNfZmx1ZW50X2NoZWNrYm94X3VuY2hlY2tlZF8yNF9yZWd1bGFyIiBmaWxsPSIjMjEyMTIxIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICA8cGF0aCBkPSJNNS43NSwzIEwxOC4yNSwzIEMxOS43Njg3ODMxLDMgMjEsNC4yMzEyMTY5NCAyMSw1Ljc1IEwyMSwxOC4yNSBDMjEsMTkuNzY4NzgzMSAxOS43Njg3ODMxLDIxIDE4LjI1LDIxIEw1Ljc1LDIxIEM0LjIzMTIxNjk0LDIxIDMsMTkuNzY4NzgzMSAzLDE4LjI1IEwzLDUuNzUgQzMsNC4yMzEyMTY5NCA0LjIzMTIxNjk0LDMgNS43NSwzIFogTTUuNzUsNC41IEM1LjA1OTY0NDA2LDQuNSA0LjUsNS4wNTk2NDQwNiA0LjUsNS43NSBMNC41LDE4LjI1IEM0LjUsMTguOTQwMzU1OSA1LjA1OTY0NDA2LDE5LjUgNS43NSwxOS41IEwxOC4yNSwxOS41IEMxOC45NDAzNTU5LDE5LjUgMTkuNSwxOC45NDAzNTU5IDE5LjUsMTguMjUgTDE5LjUsNS43NSBDMTkuNSw1LjA1OTY0NDA2IDE4Ljk0MDM1NTksNC41IDE4LjI1LDQuNSBMNS43NSw0LjUgWiIgaWQ9IvCfjqhDb2xvciI+PC9wYXRoPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1OS4xICg4NjE0NCkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgPHRpdGxlPmljX2ZsdWVudF9jaGVja2JveF9jaGVja2VkXzI0X3JlZ3VsYXI8L3RpdGxlPgogIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogIDxnIGlkPSLwn5SNLVByb2R1Y3QtSWNvbnMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgaWQ9ImljX2ZsdWVudF9jaGVja2JveF9jaGVja2VkXzI0X3JlZ3VsYXIiIGZpbGw9IiMyMTIxMjEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgIDxwYXRoIGQ9Ik0xOC4yNSwzIEMxOS43Njg3ODMxLDMgMjEsNC4yMzEyMTY5NCAyMSw1Ljc1IEwyMSwxOC4yNSBDMjEsMTkuNzY4NzgzMSAxOS43Njg3ODMxLDIxIDE4LjI1LDIxIEw1Ljc1LDIxIEM0LjIzMTIxNjk0LDIxIDMsMTkuNzY4NzgzMSAzLDE4LjI1IEwzLDUuNzUgQzMsNC4yMzEyMTY5NCA0LjIzMTIxNjk0LDMgNS43NSwzIEwxOC4yNSwzIFogTTE4LjI1LDQuNSBMNS43NSw0LjUgQzUuMDU5NjQ0MDYsNC41IDQuNSw1LjA1OTY0NDA2IDQuNSw1Ljc1IEw0LjUsMTguMjUgQzQuNSwxOC45NDAzNTU5IDUuMDU5NjQ0MDYsMTkuNSA1Ljc1LDE5LjUgTDE4LjI1LDE5LjUgQzE4Ljk0MDM1NTksMTkuNSAxOS41LDE4Ljk0MDM1NTkgMTkuNSwxOC4yNSBMMTkuNSw1Ljc1IEMxOS41LDUuMDU5NjQ0MDYgMTguOTQwMzU1OSw0LjUgMTguMjUsNC41IFogTTEwLDE0LjQzOTMzOTggTDE2LjQ2OTY2OTksNy45Njk2Njk5MSBDMTYuNzYyNTYzMSw3LjY3Njc3NjcgMTcuMjM3NDM2OSw3LjY3Njc3NjcgMTcuNTMwMzMwMSw3Ljk2OTY2OTkxIEMxNy43OTY1OTY2LDguMjM1OTM2NDggMTcuODIwODAyNyw4LjY1MjYwMDE2IDE3LjYwMjk0ODIsOC45NDYyMTE2NSBMMTcuNTMwMzMwMSw5LjAzMDMzMDA5IEwxMC41MzAzMzAxLDE2LjAzMDMzMDEgQzEwLjI2NDA2MzUsMTYuMjk2NTk2NiA5Ljg0NzM5OTg0LDE2LjMyMDgwMjcgOS41NTM3ODgzNSwxNi4xMDI5NDgyIEw5LjQ2OTY2OTkxLDE2LjAzMDMzMDEgTDYuNDY5NjY5OTEsMTMuMDMwMzMwMSBDNi4xNzY3NzY3LDEyLjczNzQzNjkgNi4xNzY3NzY3LDEyLjI2MjU2MzEgNi40Njk2Njk5MSwxMS45Njk2Njk5IEM2LjczNTkzNjQ4LDExLjcwMzQwMzQgNy4xNTI2MDAxNiwxMS42NzkxOTczIDcuNDQ2MjExNjUsMTEuODk3MDUxOCBMNy41MzAzMzAwOSwxMS45Njk2Njk5IEwxMCwxNC40MzkzMzk4IEwxNi40Njk2Njk5LDcuOTY5NjY5OTEgTDEwLDE0LjQzOTMzOTggWiIgaWQ9IvCfjqhDb2xvciI+PC9wYXRoPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik02NDAgMTI4djUxMkgxMjhWMTI4aDUxMnpNNTEyIDUxMlYyNTZIMjU2djI1NmgyNTZ6bS0zODQgNTEycTAtNTMgMjAtMTAwdDU0LTgxIDgyLTU1IDEwMC0yMHE1MyAwIDk5IDIwdDgyIDU1IDU1IDgxIDIwIDEwMHEwIDUzLTIwIDk5dC01NSA4Mi04MSA1NS0xMDAgMjBxLTUzIDAtOTktMjB0LTgyLTU1LTU1LTgxLTIwLTEwMHptMTEyIDBxMCAzMCAxMSA1NnQzMSA0NSA0NiAzMSA1NiAxMnEzMCAwIDU2LTExdDQ1LTMxIDMxLTQ2IDEyLTU2cTAtMzAtMTEtNTZ0LTMxLTQ1LTQ2LTMxLTU2LTEycS0zMCAwLTU2IDExdC00NSAzMS0zMSA0Ni0xMiA1NnptNjU2LTc2OGgxMTUydjEyOEg4OTZWMjU2em0wIDc2OFY4OTZoMTE1MnYxMjhIODk2em0wIDY0MHYtMTI4aDExNTJ2MTI4SDg5NnptLTUxMiAzMjBMNjQgMTQwOGg2NDBsLTMyMCA1NzZ6bTAtMjYzbDEwMi0xODVIMjgybDEwMiAxODV6IiAvPgo8L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPmljb25zPC90aXRsZT48cG9seWxpbmUgcG9pbnRzPSIxNi40NzcgMTcuNzY3IDE4LjE1MiAxNi4wOTIgMjEuNjg3IDE5LjYyNyAyMC4wMTIgMjEuMzAyIiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwIi8+PHBvbHlsaW5lIHBvaW50cz0iOS40MDggMTAuNjk4IDExLjA4MyA5LjAyMyAxNC42MTggMTIuNTU3IDEyLjk0MyAxNC4yMzMiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTAiLz48cG9seWxpbmUgcG9pbnRzPSIyMS44NzIgMjYuNTEyIDI1LjIyMiAyMy4xNjIgNy41NDggNS40ODggNC4xOTggOC44MzgiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kIi8+PHBvbHlsaW5lIHBvaW50cz0iMTcuNzkzIDkuNDc3IDIwLjc4MiA2LjQ4OCAyNy44MDIgNi40ODgiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kIi8+PHBvbHlnb24gcG9pbnRzPSIxOS41MjEgOS44MDMgMTQuNjYxIDEyLjYwOSAxNy40NjcgNy43NDkgMTkuNTIxIDkuODAzIi8+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiIHdpZHRoPSIyMDQ4IiBoZWlnaHQ9IjIwNDgiPgogIDxwYXRoIGQ9Ik0xMDI0IDBxMTQxIDAgMjcyIDM2dDI0NCAxMDQgMjA3IDE2MCAxNjEgMjA3IDEwMyAyNDUgMzcgMjcycTAgMTQxLTM2IDI3MnQtMTA0IDI0NC0xNjAgMjA3LTIwNyAxNjEtMjQ1IDEwMy0yNzIgMzdxLTUzIDAtOTktMjB0LTgyLTU1LTU1LTgxLTIwLTEwMHEwLTUzIDEzLTEwM3Q0Mi05NnE2LTExIDExLTE3dDEyLTE2cTI1LTM5IDM3LTcxdDEzLTgxcTAtNTMtMjAtOTl0LTU1LTgyLTgxLTU1LTEwMC0yMHEtNDggMC04MCAxMnQtNzIgMzhxLTEwIDctMTYgMTJ0LTE3IDExcS00NSAyOC05NSA0MXQtMTA0IDE0cS01MyAwLTk5LTIwdC04Mi01NS01NS04MS0yMC0xMDBxMC0xNDEgMzYtMjcydDEwNC0yNDQgMTYwLTIwNyAyMDctMTYxVDc1MiAzN3QyNzItMzd6bTM4NCA0ODBxLTMzIDAtNjIgMTJ0LTUxIDM1LTM0IDUxLTEzIDYycTAgMzMgMTIgNjJ0MzUgNTEgNTEgMzQgNjIgMTNxMzMgMCA2Mi0xMnQ1MS0zNSAzNC01MSAxMy02MnEwLTMzLTEyLTYydC0zNS01MS01MS0zNC02Mi0xM3pNNTEyIDkyOHEzMyAwIDYyLTEydDUxLTM1IDM0LTUxIDEzLTYycTAtMzMtMTItNjJ0LTM1LTUxLTUxLTM0LTYyLTEzcS0zMyAwLTYyIDEydC01MSAzNS0zNCA1MS0xMyA2MnEwIDMzIDEyIDYydDM1IDUxIDUxIDM0IDYyIDEzem0zODQtMjU2cTMzIDAgNjItMTJ0NTEtMzUgMzQtNTEgMTMtNjJxMC0zMy0xMi02MnQtMzUtNTEtNTEtMzQtNjItMTNxLTMzIDAtNjIgMTJ0LTUxIDM1LTM0IDUxLTEzIDYycTAgMzMgMTIgNjJ0MzUgNTEgNTEgMzQgNjIgMTN6bTM4NCAxMDI0cTMzIDAgNjItMTJ0NTEtMzUgMzQtNTEgMTMtNjJxMC0zMy0xMi02MnQtMzUtNTEtNTEtMzQtNjItMTNxLTMzIDAtNjIgMTJ0LTUxIDM1LTM0IDUxLTEzIDYycTAgMzMgMTIgNjJ0MzUgNTEgNTEgMzQgNjIgMTN6bTI1Ni0zODRxMzMgMCA2Mi0xMnQ1MS0zNSAzNC01MSAxMy02MnEwLTMzLTEyLTYydC0zNS01MS01MS0zNC02Mi0xM3EtMzMgMC02MiAxMnQtNTEgMzUtMzQgNTEtMTMgNjJxMCAzMyAxMiA2MnQzNSA1MSA1MSAzNCA2MiAxM3oiIC8+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8c3R5bGU+CiAgICAgICAgQGtleWZyYW1lcyByb3RhdGUxIHsKICAgICAgICAgICAgMTAwJSB7CiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIEBrZXlmcmFtZXMgcm90YXRlMiB7CiAgICAgICAgICAgIDEwMCUgewogICAgICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoLTM2MGRlZyk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLmdyb3VwMSB7CiAgICAgICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IDEwLjI0cHggMTAuMjRweDsKICAgICAgICAgICAgYW5pbWF0aW9uOiByb3RhdGUxIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgIH0KICAgICAgICAuZ3JvdXAyIHsKICAgICAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogMTUuNXB4IDE1LjVweDsKICAgICAgICAgICAgYW5pbWF0aW9uOiByb3RhdGUyIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGcgY2xhc3M9Imdyb3VwMSI+CiAgICAgICAgPHBhdGgKICAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMCkgc2NhbGUoMC4wMSkiCiAgICAgICAgICAgIGQ9Ik0xMDI0IDk2cTMzIDAgNjIgMTJ0NTEgMzUgMzQgNTEgMTMgNjJxMCAzMy0xMiA2MnQtMzUgNTEtNTEgMzQtNjIgMTNxLTMzIDAtNjItMTJ0LTUxLTM1LTM0LTUxLTEzLTYycTAtMzMgMTItNjJ0MzUtNTEgNTEtMzQgNjItMTN6TTMzNyA0ODFxMC0zMCAxMS01NnQzMC00NSA0Ni0zMSA1Ny0xMnEzMCAwIDU2IDExdDQ1IDMxIDMxIDQ2IDEyIDU2cTAgMzAtMTEgNTZ0LTMxIDQ2LTQ2IDMxLTU2IDExcS0zMCAwLTU2LTExdC00Ni0zMC0zMS00Ni0xMS01N3ptLTgxIDQxNXEyNyAwIDUwIDEwdDQwIDI3IDI4IDQxIDEwIDUwcTAgMjctMTAgNTB0LTI3IDQwLTQxIDI4LTUwIDEwcS0yNyAwLTUwLTEwdC00MC0yNy0yOC00MS0xMC01MHEwLTI3IDEwLTUwdDI3LTQwIDQxLTI4IDUwLTEwem0xMTMgNjcxcTAtMjMgOS00M3QyNC0zNiAzNS0yNCA0NC05cTIzIDAgNDMgOXQzNiAyNCAyNCAzNSA5IDQ0cTAgMjMtOSA0M3QtMjQgMzYtMzUgMjQtNDQgOXEtMjMgMC00My05dC0zNi0yNC0yNC0zNS05LTQ0em02NTUgMTI5cTQwIDAgNjggMjh0MjggNjhxMCA0MC0yOCA2OHQtNjggMjhxLTQwIDAtNjgtMjh0LTI4LTY4cTAtNDAgMjgtNjh0NjgtMjh6bTQ2My0xMjlxMC0zNCAyMy01N3Q1Ny0yM3EzNCAwIDU3IDIzdDIzIDU3cTAgMzQtMjMgNTd0LTU3IDIzcS0zNCAwLTU3LTIzdC0yMy01N3ptMzA1LTYwN3EyNiAwIDQ1IDE5dDE5IDQ1cTAgMjYtMTkgNDV0LTQ1IDE5cS0yNiAwLTQ1LTE5dC0xOS00NXEwLTI2IDE5LTQ1dDQ1LTE5em0tMjI1LTY1NXEzNiAwIDY4IDE0dDU2IDM4IDM4IDU2IDE0IDY4cTAgMzYtMTQgNjh0LTM4IDU2LTU2IDM4LTY4IDE0cS0zNiAwLTY4LTE0dC01Ni0zOC0zOC01Ni0xNC02OHEwLTM2IDE0LTY4dDM4LTU2IDU2LTM4IDY4LTE0eiIgLz4KICAgIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMzJINTciIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMzJINTciIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuOTk5OTUgMzIuMDAwMUwxNy45OTk5IDM3Ljc3MzZWMjYuMjI2Nkw3Ljk5OTk1IDMyLjAwMDFaTTU2Ljk5OTkgMzEuMDAwMUwxNi45OTk5IDMxLjAwMDFWMzMuMDAwMUw1Ni45OTk5IDMzLjAwMDFWMzEuMDAwMVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguMjI2NSAzMkwxNCAzNy43NzM1TDE5Ljc3MzUgMzJMMTQgMjYuMjI2NUw4LjIyNjUgMzJaTTE0IDMzTDU3IDMzVjMxTDE0IDMxVjMzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDMyTDU3IDMyIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiLz4KPGNpcmNsZSBjeD0iMTUiIGN5PSIzMiIgcj0iNiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTU3IDMyTDQ3IDI2LjIyNjVWMzcuNzczNUw1NyAzMlpNOCAzM0g0OFYzMUg4VjMzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTU2Ljc3MzUgMzJMNTEgMjYuMjI2NUw0NS4yMjY1IDMyTDUxIDM3Ljc3MzVMNTYuNzczNSAzMlpNOCAzM0g1MVYzMUg4VjMzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMzJMNTAgMzIiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMiIvPgo8Y2lyY2xlIGN4PSI1MCIgY3k9IjMyIiByPSI2IiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.addColorPalette=t.addPowerBIThemeColors=t.transformPowerBIThemeColors=t.addPalette=t.predefinedPalettes=void 0;var i=n(5);t.predefinedPalettes=[];var a=i.getColorConverter("sRGB","sRGB");function s(e,n){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];t.predefinedPalettes.push({name:e,type:n,colors:r.map((function(e){return e.map((function(e){var t=i.colorFromHTMLColor(e),n=o(a(t.r,t.g,t.b),3);return{r:n[0],g:n[1],b:n[2]}}))}))})}function l(e){for(var t=[],n=0;n<10;n++)t.push([]);for(n=0;n<e.length;n++)t[n%10].push(e[n]);return t}t.addPalette=s,t.transformPowerBIThemeColors=l,t.addPowerBIThemeColors=function(){var e=i.getDefaultColorPalette(60);if(60==e.length){u({name:"Palette/Power BI Theme",type:"palette",colors:l(e)});var t=i.getDefaultColorGeneratorResetFunction();t&&t()}};var c=!1;function u(e){c||(t.predefinedPalettes.push(r({},e)),c=!0)}t.addColorPalette=u,s("D3/Category 10","qualitative",["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]),s("D3/Category 20","qualitative",["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"]),s("D3/Category 20 b","qualitative",["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"]),s("D3/Category 20 c","qualitative",["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]),s("Palette/ColorBrewer","palette",["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"].reverse(),["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"].reverse(),["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"].reverse(),["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"].reverse(),["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"].reverse(),["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"].reverse()),s("Palette/Material","palette",["#fafafa","#f5f5f5","#eeeeee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"].reverse(),["#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#607d8b","#546e7a","#455a64","#37474f","#263238"].reverse(),["#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"].reverse(),["#ffebee","#ffcdd2","#ef9a9a","#e57373","#ef5350","#f44336","#e53935","#d32f2f","#c62828","#b71c1c"].reverse(),["#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"].reverse(),["#f3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"].reverse(),["#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"].reverse(),["#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"].reverse(),["#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0d47a1"].reverse(),["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"].reverse(),["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"].reverse(),["#e0f2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"].reverse(),["#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"].reverse(),["#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"].reverse(),["#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#cddc39","#c0ca33","#afb42b","#9e9d24","#827717"].reverse(),["#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"].reverse(),["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"].reverse(),["#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"].reverse(),["#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"].reverse()),s("Palette/Universal","palette",["#f2f2f2","#e6e6e6","#cccccc","#767676","#393939","#2b2b2b","#1f1f1f"].reverse(),["#cbc6c4","#b1adab","#989391","#7a7574","#6e6a68","#5d5a58","#4c4a48"].reverse(),["#bac8cc","#a0aeb2","#859599","#69797e","#5a686c","#4a5459","#394146"].reverse(),["#cae0d9","#a3bfb7","#7d9d95","#567c73","#486860","#3b534d","#2d3f3a"].reverse(),["#f7d7c4","#d8b094","#bb9167","#ac744c","#8e562e","#603d30","#4d291c"].reverse(),["#ffc0c0","#ff8c8c","#ff6767","#ff4343","#d13438","#a4262c","#761721"].reverse(),["#f4abba","#e6808a","#e74856","#e81123","#c50f1f","#a80000","#750b1c"].reverse(),["#edbed3","#ed7eac","#ee3f86","#ea005e","#c30052","#970044","#6b0036"].reverse(),["#e8a3de","#e66fc2","#e43ba6","#e3008c","#bf0077","#9b0062","#77004d"].reverse(),["#de94e0","#d066c9","#c239b3","#b4009e","#9a0089","#800074","#5c005c"].reverse(),["#dea2ed","#c774d7","#b146c2","#881798","#721481","#5c126b","#460f54"].reverse(),["#cfc4f5","#ab94d6","#8764b8","#744da9","#5c2e91","#4e257f","#401b6c"].reverse(),["#c3c3f4","#afa6ee","#9c89e9","#886ce4","#735bc1","#5e4a9d","#49397a"].reverse(),["#b5b5e2","#9c96e0","#8378de","#7160e8","#5a4ebc","#49409a","#373277"].reverse(),["#bebee5","#9493dd","#6b69d6","#4f4bd9","#413eb3","#32318c","#242466"].reverse(),["#a6bdff","#7c96f9","#4f6bed","#2849ec","#203dbd","#19318d","#11255e"].reverse(),["#abc9ed","#7ba7ff","#3b78ff","#0046ff","#0037da","#0027b4","#00188f"].reverse(),["#b3dbf2","#83beec","#3a96dd","#0078d7","#0063b1","#004e8c","#003966"].reverse(),["#99ecff","#69eaff","#31d2f7","#00bcf2","#0099bc","#006f94","#005b70"].reverse(),["#91e5df","#61d6d6","#30c6cc","#00b7c3","#009ca4","#038387","#006666"].reverse(),["#c2f2e9","#81e6d3","#41dabc","#00cea6","#00b294","#008272","#005e50"].reverse(),["#a8e5c2","#70dda5","#38d487","#00cc6a","#00ae56","#10893e","#00722e"].reverse(),["#aae5aa","#79db75","#47d041","#16c60c","#13a10e","#107c10","#0b6a0b"].reverse(),["#d5e5ae","#b7df74","#9ad93a","#7cd300","#6bb700","#599b00","#498205"].reverse(),["#f8ffb3","#e4f577","#d1ec3c","#bad80a","#a4cf0c","#8cbd18","#73aa24"].reverse(),["#f9f1a5","#faec6e","#fff100","#fce100","#dfbe00","#c19c00","#986f0b"].reverse(),["#ffe5b6","#ffd679","#ffc83d","#ffb900","#eaa300","#d48c00","#ab620d"].reverse(),["#ffdabb","#ffc988","#ffaa44","#ff8c00","#d47300","#b05e0d","#7f4200"].reverse(),["#f2d5c9","#f7b189","#f7894a","#f7630c","#ca5010","#a74109","#7f2f08"].reverse(),["#eec7c2","#ee9889","#ef6950","#f03a17","#da3b01","#a52613","#7f1d10"].reverse()),s("Palette/Power BI","palette",["#666666","#808080","#b3b3b3","#cccccc","#e6e6e6","#ffffff"].reverse(),["#000000","#1a1a1a","#333333","#666666","#999999","#000000"].reverse(),["#015c55","#018a80","#34c6bb","#67d4cc","#99e3dd","#01b8aa"].reverse(),["#1c2325","#293537","#5f6b6d","#879092","#afb5b6","#374649"].reverse(),["#7f312f","#be4a47","#fd817e","#fea19e","#fec0bf","#fd625e"].reverse(),["#796408","#b6960b","#f5d33f","#f7de6f","#fae99f","#f2c80f"].reverse(),["#303637","#475052","#7f898a","#9fa6a7","#bfc4c5","#5f6b6d"].reverse(),["#456a76","#689fb0","#a1ddef","#b9e5f3","#d0eef7","#8ad4eb"].reverse(),["#118dff","#a0d1ff","#70bbff","#41a4ff","#0d6abf","#094780"].reverse(),["#7f4b33","#bf714d","#feab85","#fec0a3","#ffd5c2","#fe9666"].reverse(),["#53354d","#7d4f73","#b887ad","#caa5c2","#dbc3d6","#a66999"].reverse()),s("ColorBrewer/Reds","sequential",["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]),s("ColorBrewer/Oranges","sequential",["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]),s("ColorBrewer/Greens","sequential",["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]),s("ColorBrewer/Blues","sequential",["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]),s("ColorBrewer/Purples","sequential",["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]),s("ColorBrewer/Greys","sequential",["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]),s("ColorBrewer/BrBG","diverging",["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"].reverse()),s("ColorBrewer/PiYG","diverging",["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"].reverse()),s("ColorBrewer/PRGn","diverging",["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"].reverse()),s("ColorBrewer/PuOr","diverging",["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"].reverse()),s("ColorBrewer/RdBu","diverging",["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"].reverse()),s("ColorBrewer/RdGy","diverging",["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"].reverse()),s("ColorBrewer/RdYlBu","diverging",["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"].reverse()),s("ColorBrewer/RdYlGn","diverging",["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"].reverse()),s("ColorBrewer/Spectral","diverging",["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"].reverse()),s("ColorBrewer/BuGn","sequential",["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]),s("ColorBrewer/BuPu","sequential",["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]),s("ColorBrewer/GnBu","sequential",["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]),s("ColorBrewer/OrRd","sequential",["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]),s("ColorBrewer/PuBu","sequential",["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]),s("ColorBrewer/PuBuGn","sequential",["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]),s("ColorBrewer/PuRd","sequential",["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]),s("ColorBrewer/RdPu","sequential",["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]),s("ColorBrewer/YlGn","sequential",["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]),s("ColorBrewer/YlGnBu","sequential",["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]),s("ColorBrewer/YlOrBr","sequential",["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]),s("ColorBrewer/YlOrRd","sequential",["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]),s("ColorBrewer/Accent","qualitative",["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]),s("ColorBrewer/Dark2","qualitative",["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]),s("ColorBrewer/Paired","qualitative",["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]),s("ColorBrewer/Pastel1","qualitative",["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]),s("ColorBrewer/Pastel2","qualitative",["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]),s("ColorBrewer/Set1","qualitative",["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]),s("ColorBrewer/Set2","qualitative",["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]),s("ColorBrewer/Set3","qualitative",["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"])},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,A=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):A=-1,c.length&&g())}function g(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++A<t;)l&&l[A].run();A=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,g=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,I=r?Symbol.for("react.fundamental"):60117,C=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case A:case d:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case g:case m:case f:case c:return e;default:return t}}case i:return t}}}function v(e){return b(e)===d}t.AsyncMode=A,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=g,t.Fragment=a,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return v(e)||b(e)===A},t.isConcurrentMode=v,t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===g},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===m},t.isMemo=function(e){return b(e)===f},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||e.$$typeof===I||e.$$typeof===C||e.$$typeof===E||e.$$typeof===y)},t.typeOf=b},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionView=void 0;var a=n(0),s=n(29),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getDefaultState(),n}return o(t,e),t.prototype.getDefaultState=function(){return{marquee:null}},t.prototype.componentDidMount=function(){var e=this;this.hammer=new s(this.refs.handler),this.hammer.add(new s.Pan),this.hammer.add(new s.Tap),this.hammer.on("tap",(function(){e.setState({marquee:null}),e.props.onTap&&e.props.onTap()}));var t=null;this.hammer.on("panstart",(function(n){var r=e.refs.handler.getBoundingClientRect(),o=i([n.center.x-r.left,n.center.y-r.top],2),a=o[0],s=o[1];t={x1:a,y1:s,x2:a,y2:s}})),this.hammer.on("pan",(function(n){var r=e.refs.handler.getBoundingClientRect(),o=i([n.center.x-r.left,n.center.y-r.top],2),a=o[0],s=o[1];t.x2=a,t.y2=s,e.setState({marquee:t})})),this.hammer.on("panend",(function(n){var r=e.refs.handler.getBoundingClientRect(),o=i([n.center.x-r.left,n.center.y-r.top],2),a=o[0],s=o[1];t.x2=a,t.y2=s,e.props.onMarqueeSelect&&e.props.onMarqueeSelect(t),e.setState({marquee:null})}))},t.prototype.render=function(){return a.createElement("g",null,a.createElement("rect",{ref:"handler",className:"interaction-handler",style:{cursor:"crosshair"},x:this.props.x,y:this.props.y,width:this.props.width,height:this.props.height}),this.state.marquee?a.createElement("rect",{className:"marquee-selection",x:Math.min(this.state.marquee.x1,this.state.marquee.x2),y:Math.min(this.state.marquee.y1,this.state.marquee.y2),width:Math.abs(this.state.marquee.x2-this.state.marquee.x1),height:Math.abs(this.state.marquee.y2-this.state.marquee.y1)}):null)},t}(a.Component);t.SelectionView=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalSplitPaneView=void 0;var i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return i.createElement("div",{className:"split-pane-view-horizontal"},i.createElement("div",{className:"row"},i.Children.map(this.props.children,(function(e){return i.createElement("div",{className:"pane"},e)}))))},t}(i.Component);t.HorizontalSplitPaneView=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomableCanvas=void 0;var i=n(0),a=n(29),s=n(5),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={zoom:{centerX:t.width/2,centerY:t.height/2,scale:1}},n}return o(t,e),t.prototype.setZooming=function(e){this.setState({zoom:e})},t.prototype.canvasToPixel=function(e){return s.Geometry.applyZoom(this.state.zoom,e)},t.prototype.pixelToCanvas=function(e){return s.Geometry.unapplyZoom(this.state.zoom,e)},t.prototype.getRelativePoint=function(e){var t=this.refs.container.getBoundingClientRect();return{x:e.x-t.left,y:e.y-t.top}},t.prototype.componentDidMount=function(){this.hammer=new a(this.refs.handler)},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e="translate("+this.state.zoom.centerX+","+this.state.zoom.centerY+") scale("+this.state.zoom.scale+")";return i.createElement("g",{ref:"container"},i.createElement("rect",{ref:"handler",x:0,y:0,width:this.props.width,height:this.props.height,style:{fill:"transparent",stroke:"none",pointerEvents:"fill"}}),i.createElement("g",{transform:e},this.props.children))},t}(i.Component);t.ZoomableCanvas=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GradientView=t.GradientPicker=void 0;var s=n(0),l=n(5),c=n(13),u=n(89),A=n(103),d=n(559),g=n(70),p=n(40),h=n(11),f=n(104),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentTab:"palettes",currentGradient:n.props.defaultValue||{colorspace:f.Colorspace.LAB,colors:[{r:0,g:0,b:0},{r:255,g:255,b:255}]},isPickerOpen:!1,currentItemId:"",currentColor:null,currentItemIdx:null},n}return o(t,e),t.prototype.selectGradient=function(e,t){var n=this;void 0===t&&(t=!1),this.setState({currentGradient:e},(function(){t&&n.props.onPick&&n.props.onPick(e)}))},t.prototype.renderGradientPalettes=function(){var e,t,n=this,r=c.predefinedPalettes.filter((function(e){return"sequential"==e.type||"diverging"==e.type})),o=[],i=new Map;try{for(var l=a(r),u=l.next();!u.done;u=l.next()){var A=u.value,d=A.name.split("/")[0],g=void 0;i.has(d)?g=o[i.get(d)][1]:(g=[],i.set(d,o.length),o.push([d,g])),g.push(A)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return s.createElement("section",{className:"palettes"},s.createElement("ul",null,o.map((function(e,t){return s.createElement("li",{key:"m"+t},s.createElement("div",{className:"label"},e[0]),s.createElement("ul",null,e[1].map((function(e){var t={colors:e.colors[0],colorspace:f.Colorspace.LAB};return s.createElement("li",{key:e.name,className:"item",onClick:function(){return n.selectGradient(t,!0)}},s.createElement(y,{gradient:t}),s.createElement("label",null,e.name.split("/")[1]))}))))}))))},t.prototype.changeColorPickerState=function(e,t,n){this.setState(i(i({},this.state),{isPickerOpen:!this.state.isPickerOpen,currentItemId:e,currentColor:t,currentItemIdx:n}))},t.prototype.renderColorPicker=function(){var e=this;return s.createElement(s.Fragment,null,this.state.isPickerOpen&&s.createElement(h.Callout,{target:"#"+this.state.currentItemId,onDismiss:function(){return e.changeColorPickerState(e.state.currentItemId,null,null)},alignTargetEdge:!0},s.createElement(u.ColorPicker,{defaultValue:this.state.currentColor,onPick:function(t){var n=l.deepClone(e.state.currentGradient);n.colors[e.state.currentItemIdx]=t,e.selectGradient(n,!0)},parent:this})))},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"gradient-picker"},s.createElement(d.TabsView,{tabs:t.tabs,currentTab:this.state.currentTab,onSelect:function(t){return e.setState({currentTab:t})}}),"palettes"==this.state.currentTab?this.renderGradientPalettes():null,"custom"==this.state.currentTab?s.createElement("section",{className:"gradient-editor"},s.createElement("div",{className:"row"},s.createElement(y,{gradient:this.state.currentGradient})),s.createElement("div",{className:"colors-scroll"},s.createElement(g.ReorderListView,{enabled:!0,onReorder:function(t,n){var r=l.deepClone(e.state.currentGradient);g.ReorderListView.ReorderArray(r.colors,t,n),e.selectGradient(r,!0)}},this.state.currentGradient.colors.map((function(t,n){return s.createElement("div",{className:"color-row",key:"m"+n},s.createElement("span",{id:"color_"+n,className:"color-item",style:{background:u.colorToCSS(t)},onClick:function(){e.changeColorPickerState("color_"+n,t,n)}}),s.createElement(A.InputField,{defaultValue:l.colorToHTMLColorHEX(t),onEnter:function(t){var r=l.colorFromHTMLColor(t),o=l.deepClone(e.state.currentGradient);return o.colors[n]=r,e.selectGradient(o,!0),!0}}),s.createElement(p.Button,{icon:"ChromeClose",onClick:function(){if(e.state.currentGradient.colors.length>1){var t=l.deepClone(e.state.currentGradient);t.colors.splice(n,1),e.selectGradient(t,!0)}}}))})),this.renderColorPicker())),s.createElement("div",{className:"row"},s.createElement(p.Button,{icon:"general/plus",text:"Add",onClick:function(){var t=l.deepClone(e.state.currentGradient);t.colors.push({r:150,g:150,b:150}),e.selectGradient(t,!0)}})," ",s.createElement(p.Button,{icon:"Sort",text:"Reverse",onClick:function(){var t=l.deepClone(e.state.currentGradient);t.colors.reverse(),e.selectGradient(t,!0)}})," ",s.createElement(h.Dropdown,{options:[{key:f.Colorspace.HCL,text:"HCL"},{key:f.Colorspace.LAB,text:"Lab"}],onChange:function(t,n){if(n){var r=l.deepClone(e.state.currentGradient);r.colorspace=n.key,e.selectGradient(r,!0)}}}))):null)},t.tabs=[{name:"palettes",label:"Palettes"},{name:"custom",label:"Custom"}],t}(s.Component);t.GradientPicker=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate()},t.prototype.componentDidUpdate=function(){var e=this;setTimeout((function(){if(e.refCanvas&&e.props.gradient){for(var t=e.refCanvas.getContext("2d"),n=e.refCanvas.width,r=e.refCanvas.height,o=l.interpolateColors(e.props.gradient.colors,e.props.gradient.colorspace),i=t.getImageData(0,0,n,r),a=0;a<i.width;a++)for(var s=o(a/(i.width-1)),c=0;c<i.height;c++){var u=4*(a+c*i.width);i.data[u++]=s.r,i.data[u++]=s.g,i.data[u++]=s.b,i.data[u++]=255}t.putImageData(i,0,0)}}),0)},t.prototype.render=function(){var e=this;return s.createElement("span",{className:"gradient-view"},s.createElement("canvas",{ref:function(t){return e.refCanvas=t},width:50,height:2}))},t}(s.PureComponent);t.GradientView=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorGrid=void 0;var i=n(0),a=n(535),s=n(101),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(s.ColorGridRowWrapper,null,this.props.colors.map((function(t,n){return i.createElement(s.ColorGridColumnWrapper,{key:"column-color-"+n},t.map((function(t,n){return i.createElement(a.ColorGridItem,{key:"color-item-"+n,color:t,onClick:e.props.onClick,defaultValue:e.props.defaultValue})})))})))},t}(i.PureComponent);t.ColorGrid=l},function(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorGridItem=void 0;var a,s=n(89),l=n(0),c=n(88).default.span(a||(a=o(["\n  display: block;\n  box-sizing: border-box;\n  border: 1px solid #8a8886;\n  width: 20px;\n  height: 20px;\n  margin: 4px;\n  background-color: ",";\n  cursor: pointer;\n"],["\n  display: block;\n  box-sizing: border-box;\n  border: 1px solid #8a8886;\n  width: 20px;\n  height: 20px;\n  margin: 4px;\n  background-color: ",";\n  cursor: pointer;\n"])),(function(e){return e.color})),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement("span",{onClick:function(){e.props.onClick&&e.props.onClick(e.props.color)}},l.createElement(c,{color:s.colorToCSS(this.props.color)}))},t}(l.Component);t.ColorGridItem=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NullButton=void 0;var i=n(0),a=n(11),s=n(101),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(i.Fragment,null,this.props.allowNull?i.createElement(s.NullButtonWrapper,null,i.createElement(a.DefaultButton,{text:"none",iconProps:{iconName:"ChromeClose"},styles:s.defaultNoneButtonStyles,onClick:function(){e.props.onPick(null)}})):null)},t}(i.Component);t.NullButton=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerButton=t.PickerType=void 0;var i,a=n(0),s=n(11),l=n(101);!function(e){e.HCL="hcl",e.HSV="hsv"}(i=t.PickerType||(t.PickerType={}));var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props.type===i.HCL?"HCL Picker":"HSV Picker";return a.createElement(s.DefaultButton,{text:e,onClick:this.props.onClick,checked:this.props.state.currentPicker==this.props.type,styles:l.defaultPaletteButtonsStyles})},t}(a.Component);t.ColorPickerButton=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.PaletteList=void 0;var a=n(0),s=n(11),l=n(101),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t,n=this,r=this.props.palettes,o=[],c=new Map;try{for(var u=i(r),A=u.next();!A.done;A=u.next()){var d=A.value,g=d.name.split("/")[0],p=void 0;c.has(g)?p=o[c.get(g)][1]:(p=[],c.set(g,o.length),o.push([g,p])),p.push(d)}}catch(t){e={error:t}}finally{try{A&&!A.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return a.createElement("ul",null,o.map((function(e,t){return a.createElement(a.Fragment,{key:"palette-group-wrapper-"+t},a.createElement(s.Label,{key:"palette-label-"+t},e[0]),e[1].map((function(e){return a.createElement(s.DefaultButton,{key:e.name,onClick:function(){return n.props.onClick(e)},text:e.name.split("/")[1],styles:l.defaultPaletteButtonsStyles,checked:n.props.selected==e})})))})))},t}(a.PureComponent);t.PaletteList=c},function(e,t,n){"use strict";function r(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function o(){return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedDBBackend=t.uuid=void 0,t.uuid=o;var i=function(){function e(e){void 0===e&&(e="charticulator"),this.databaseName=e,this.database=null}return e.prototype.open=function(){var e=this;return new Promise((function(t,n){if(e.database)t();else{var r=indexedDB.open(e.databaseName,2);r.onupgradeneeded=function(){e.database=r.result;var t=e.database.createObjectStore("items",{keyPath:"id"});t.createIndex("TypeIndex","type"),t.createIndex("DataIDIndex","dataID"),t.createIndex("NameIndex","metadata.name"),t.createIndex("TimeCreatedIndex","metadata.timeCreated"),t.createIndex("TimeModifiedIndex","metadata.timeModified"),e.database.createObjectStore("data",{keyPath:"id"})},r.onerror=function(){n(new Error("could not open database"))},r.onsuccess=function(){e.database=r.result,t()}}}))},e.prototype.list=function(e,t,n,r){var o=this;return void 0===t&&(t="timeCreated"),void 0===n&&(n=0),void 0===r&&(r=50),this.open().then((function(){return new Promise((function(i,a){var s=o.database.transaction("items","readonly").objectStore("items").index("TypeIndex").openCursor(e),l=[];s.onsuccess=function(){var e=s.result;if(e){var o=e.value;l.push(o),e.continue()}else{var a=l.sort((function(e,n){return n.metadata[t]-e.metadata[t]}));a=a.slice(n,n+r),i({items:a,totalCount:l.length})}},s.onerror=function(){a(new Error("could not read from the database"))}}))}))},e.prototype.get=function(e){var t=this;return this.open().then((function(){return new Promise((function(n,r){var o=t.database.transaction(["items","data"],"readonly"),i=o.objectStore("items"),a=o.objectStore("data"),s=i.get(e);s.onsuccess=function(){var e=s.result,t=a.get(e.dataID);t.onsuccess=function(){e.data=t.result.data,n(e)},t.onerror=function(){r(new Error("could not read from the database"))}},s.onerror=function(){r(new Error("could not read from the database"))}}))}))},e.prototype.put=function(e,t,n){var r=this;return this.open().then((function(){return new Promise((function(o,i){var a=r.database.transaction(["items","data"],"readwrite"),s=a.objectStore("items"),l=a.objectStore("data"),c=s.get(e);c.onerror=function(){i(new Error("could not write to the database"))},c.onsuccess=function(){var r=c.result;n.timeCreated=r.metadata.timeCreated,n.timeModified=(new Date).getTime();var u={id:e,dataID:c.result.dataID,type:r.type,metadata:n},A={id:c.result.dataID,data:t};l.put(A),s.put(u),a.oncomplete=function(){o()},a.onerror=function(){i(new Error("could not write to the database"))}}}))}))},e.prototype.create=function(e,t,n){var r=this;return this.open().then((function(){return new Promise((function(i,a){var s=r.database.transaction(["items","data"],"readwrite"),l=s.objectStore("items"),c=s.objectStore("data");n.timeCreated=(new Date).getTime(),n.timeModified=n.timeCreated;var u={id:o(),dataID:o(),type:e,metadata:n},A={id:u.dataID,data:t};c.put(A),l.put(u),s.oncomplete=function(){i(u.id)},s.onerror=function(){a(new Error("could not write to the database"))}}))}))},e.prototype.delete=function(e){var t=this;return this.open().then((function(){return new Promise((function(n,r){var o=t.database.transaction(["items","data"],"readwrite"),i=o.objectStore("items"),a=o.objectStore("data"),s=i.get(e);s.onsuccess=function(){var t=s.result.dataID;i.delete(e),a.delete(t),o.oncomplete=function(){n()},o.onerror=function(){r(new Error("could not write to the database"))}},s.onerror=function(){r(new Error("could not write to the database"))}}))}))},e}();t.IndexedDBBackend=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.renderChartToLocalString=t.renderChartToString=t.ChartDisplayView=void 0;var i=n(0),a=n(541),s=n(5),l=n(7),c=n(69),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props.manager.chartState,t=e.attributes.width,n=e.attributes.height,r=new s.Graphics.ChartRenderer(this.props.manager),o=r.render();return i.createElement("svg",{x:0,y:0,width:t,height:n,viewBox:"0 0 "+t.toFixed(6)+" "+n.toFixed(6),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve"},i.createElement("g",{transform:"translate("+(t/2).toFixed(6)+","+(n/2).toFixed(6)+")"},i.createElement(c.GraphicalElementDisplay,{element:o}),r.renderControls(this.props.manager.chart,this.props.manager.chartState,{centerX:0,centerY:0,scale:1})))},t}(i.Component);t.ChartDisplayView=u,t.renderChartToString=function(e,t,n){var r=new s.Prototypes.ChartStateManager(t,e,n);return a.renderToString(i.createElement(u,{manager:r}))},t.renderChartToLocalString=function(e,t,n){var r=new s.Prototypes.ChartStateManager(t,e,n),o=n.attributes.width,u=n.attributes.height,A=new s.Graphics.ChartRenderer(r).render(),d=new Map,g=[];return c.renderGraphicalElementSVG(A,{chartComponentSync:!0,externalResourceResolver:function(e){var t=new Promise((function(t,n){var r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=function(){var e=document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),t(e.toDataURL("image/png"))},r.onerror=function(){n(new Error(l.strings.error.imageLoad(e)))},r.src=e})).then((function(t){d.set(e,t)}));return g.push(t),e}}),Promise.all(g).then((function(){return a.renderToString(i.createElement("svg",{x:0,y:0,width:o,height:u,viewBox:"0 0 "+o.toFixed(6)+" "+u.toFixed(6),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve"},i.createElement("defs",null,c.renderSVGDefs(A)),i.createElement("g",{transform:"translate("+(o/2).toFixed(6)+","+(u/2).toFixed(6)+")"},c.renderGraphicalElementSVG(A,{chartComponentSync:!0,externalResourceResolver:function(e){return d.get(e)}}))))}))}},function(e,t,n){"use strict";e.exports=n(542)},function(e,t,n){"use strict";
/** @license React v16.14.0
 * react-dom-server.browser.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(164),o=n(0);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,c=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,A=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,g=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,I=a?Symbol.for("react.block"):60121,C=a?Symbol.for("react.fundamental"):60117,E=a?Symbol.for("react.scope"):60119;function b(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case s:return"Portal";case u:return"Profiler";case c:return"StrictMode";case h:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case A:return"Context.Provider";case p:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return b(e.type);case I:return b(e.render);case y:if(e=1===e._status?e._result:null)return b(e)}return null}var v=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;v.hasOwnProperty("ReactCurrentDispatcher")||(v.ReactCurrentDispatcher={current:null}),v.hasOwnProperty("ReactCurrentBatchConfig")||(v.ReactCurrentBatchConfig={suspense:null});var B={};function M(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var D=new Uint16Array(16),x=0;15>x;x++)D[x]=x+1;D[15]=0;var w=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Q=Object.prototype.hasOwnProperty,S={},N={};function k(e){return!!Q.call(N,e)||!Q.call(S,e)&&(w.test(e)?N[e]=!0:(S[e]=!0,!1))}function T(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){j[e]=new T(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];j[t]=new T(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){j[e]=new T(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){j[e]=new T(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){j[e]=new T(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){j[e]=new T(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){j[e]=new T(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){j[e]=new T(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){j[e]=new T(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function R(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(L,R);j[t]=new T(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,R);j[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,R);j[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){j[e]=new T(e,1,!1,e.toLowerCase(),null,!1)})),j.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){j[e]=new T(e,1,!1,e.toLowerCase(),null,!0)}));var O=/["'&<>]/;function _(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=O.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function F(e,t){var n,r=j.hasOwnProperty(e)?j[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+_(t)+'"')):k(e)?e+'="'+_(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},P=null,U=null,G=null,H=!1,Y=!1,V=null,W=0;function K(){if(null===P)throw Error(i(321));return P}function Z(){if(0<W)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function J(){return null===G?null===U?(H=!1,U=G=Z()):(H=!0,G=U):null===G.next?(H=!1,G=G.next=Z()):(H=!0,G=G.next),G}function q(e,t,n,r){for(;Y;)Y=!1,W+=1,G=null,n=e(t,r);return U=P=null,W=0,G=V=null,n}function X(e,t){return"function"==typeof t?t(e):t}function $(e,t,n){if(P=K(),G=J(),H){var r=G.queue;if(t=r.dispatch,null!==V&&void 0!==(n=V.get(r))){V.delete(r),r=G.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return G.memoizedState=r,[r,t]}return[G.memoizedState,t]}return e=e===X?"function"==typeof t?t():t:void 0!==n?n(t):t,G.memoizedState=e,e=(e=G.queue={last:null,dispatch:null}).dispatch=ee.bind(null,P,e),[G.memoizedState,e]}function ee(e,t,n){if(!(25>W))throw Error(i(301));if(e===P)if(Y=!0,e={action:n,next:null},null===V&&(V=new Map),void 0===(n=V.get(t)))V.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return M(e,t),e[t]},useContext:function(e){K();var t=ne;return M(e,t),e[t]},useMemo:function(e,t){if(P=K(),t=void 0===t?null:t,null!==(G=J())){var n=G.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!z(t[o],r[o])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),G.memoizedState=[e,t],e},useReducer:$,useRef:function(e){P=K();var t=(G=J()).memoizedState;return null===t?(e={current:e},G.memoizedState=e):t},useState:function(e){return $(X,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},oe="http://www.w3.org/1999/xhtml";function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ae={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},se=r({menuitem:!0},ae),le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ce=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ce.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ue=/([A-Z])/g,Ae=/^ms-/,de=o.Children.toArray,ge=v.ReactCurrentDispatcher,pe={listing:!0,pre:!0,textarea:!0},he=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fe={},me={};var ye=Object.prototype.hasOwnProperty,Ie={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ce(e,t){if(void 0===e)throw Error(i(152,b(t)||"Component"))}function Ee(e,t,n){function a(o,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return M(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=B;return t}(a,t,n,s),c=[],u=!1,A={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(o.props,l,A),"function"==typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,o.props,s.state);null!=d&&(s.state=r({},s.state,d))}}else if(P={},s=a(o.props,l,A),null==(s=q(a,o.props,s,l))||null==s.render)return void Ce(e=s,a);if(s.props=o.props,s.context=l,s.updater=A,void 0===(A=s.state)&&(s.state=A=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){A=c;var g=u;if(c=null,u=!1,g&&1===A.length)s.state=A[0];else{d=g?A[0]:s.state;var p=!0;for(g=g?1:0;g<A.length;g++){var h=A[g];null!=(h="function"==typeof h?h.call(s,d,o.props,l):h)&&(p?(p=!1,d=r({},d,h)):r(d,h))}s.state=d}}else c=null;if(Ce(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(o=a.childContextTypes)){var f=s.getChildContext();for(var m in f)if(!(m in o))throw Error(i(108,b(a)||"Unknown",m))}f&&(t=r({},t,f))}for(;o.isValidElement(e);){var s=e,l=s.type;if("function"!=typeof l)break;a(s,l)}return{child:e,context:t}}var be=function(){function e(e,t){o.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:de(e)):e=de(e),e={type:null,domNamespace:oe,children:e,childIndex:0,context:B,footer:""};var n=D[0];if(0===n){var r=D,a=2*(n=r.length);if(!(65536>=a))throw Error(i(304));var s=new Uint16Array(a);for(s.set(r),(D=s)[0]=n+1,r=n;r<a-1;r++)D[r]=r+1;D[a-1]=0}else D[0]=D[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;D[e]=D[0],D[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;M(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=ge.current;ge.current=re;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;D[a]=D[0],D[0]=a;break}var s=this.stack[this.stack.length-1];if(o||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===A)this.popProvider(s.type);else if(s.type===h){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var u=s.fallbackFrame;if(!u)throw Error(i(303));this.stack.push(u),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var d=s.children[s.childIndex++],g="";try{g+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=g}}return r[0]}finally{ge.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?_(n):this.previousWasTextNode?"\x3c!-- --\x3e"+_(n):(this.previousWasTextNode=!0,_(n));if(e=(t=Ee(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case c:case g:case u:case f:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(i(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case p:P={};var I=a.render(e.props,e.ref);return I=q(a.render,e.props,I,e.ref),I=de(I),this.stack.push({type:null,domNamespace:n,children:I,childIndex:0,context:t,footer:""}),"";case m:return e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case A:return n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,I=e.props;var b=this.threadID;return M(a,b),a=de(I.children(a[b])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case C:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case E:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===oe&&ie(a),!fe.hasOwnProperty(a)){if(!he.test(a))throw Error(i(65,a));fe[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}l=""+c}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var A=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var d=0;d<c.length;d++)if(""+c[d]===A){l=!0;break}}else l=""+c===A;s=r({selected:void 0,children:void 0},s,{selected:l,children:u})}}if(l=s){if(se[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(i(62,""))}for(C in l=s,c=this.makeStaticMarkup,u=1===this.stack.length,A="<"+e.type,l)if(ye.call(l,C)){var g=l[C];if(null!=g){if("style"===C){d=void 0;var p="",h="";for(d in g)if(g.hasOwnProperty(d)){var f=0===d.indexOf("--"),m=g[d];if(null!=m){if(f)var y=d;else if(y=d,me.hasOwnProperty(y))y=me[y];else{var I=y.replace(ue,"-$1").toLowerCase().replace(Ae,"-ms-");y=me[y]=I}p+=h+y+":",h=d,p+=f=null==m||"boolean"==typeof m||""===m?"":f||"number"!=typeof m||0===m||le.hasOwnProperty(h)&&le[h]?(""+m).trim():m+"px",h=";"}}g=p||null}d=null;e:if(f=a,m=l,-1===f.indexOf("-"))f="string"==typeof m.is;else switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":f=!1;break e;default:f=!0}f?Ie.hasOwnProperty(C)||(d=k(d=C)&&null!=g?d+'="'+_(g)+'"':""):d=F(C,g),d&&(A+=" "+d)}}c||u&&(A+=' data-reactroot=""');var C=A;l="",ae.hasOwnProperty(a)?C+="/>":(C+=">",l="</"+e.type+">");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=_(c);break e}c=null}return null!=c?(s=[],pe.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(C+="\n"),C+=c):s=de(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,C},e}(),ve={renderToString:function(e){e=new be(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new be(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=ve.default||ve},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActionHandlerRegistry=t.registerActionHandlers=void 0;var r=n(261);Object.defineProperty(t,"ActionHandlerRegistry",{enumerable:!0,get:function(){return r.ActionHandlerRegistry}});var o=n(544),i=n(545),a=n(549),s=n(550),l=n(551),c=n(552);t.registerActionHandlers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),l.default(e),c.default(e)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),a=n(19),s=n(45),l=n(102),c=n(6),u=n(9);t.default=function(e){e.add(a.Actions.MapDataToChartElementAttribute,(function(e){var t=e.hints&&e.hints.scaleID||this.scaleInference({chart:{table:e.table}},{expression:e.expression,valueType:e.valueType,valueKind:e.valueMetadata.kind,outputType:e.attributeType,hints:e.hints});if(null!=t)e.chartElement.mappings[e.attribute]={type:c.MappingType.scale,table:e.table,expression:e.expression,valueType:e.valueType,scale:t,valueIndex:e.hints&&null!=e.hints.allowSelectValue?0:null};else if((e.valueType==i.Specification.DataType.String||e.valueType==i.Specification.DataType.Boolean||e.valueType==i.Specification.DataType.Number||e.valueType==i.Specification.DataType.Date)&&e.attributeType==i.Specification.AttributeType.Text){var n=void 0;e.valueType==i.Specification.DataType.Number&&(n=".1f"),e.valueType==i.Specification.DataType.Date&&(n="%m/%d/%Y"),e.chartElement.mappings[e.attribute]={type:c.MappingType.text,table:e.table,textExpression:new i.Expression.TextExpression([{expression:i.Expression.parse(e.expression),format:n}]).toString()}}this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.AddChartElement,(function(e){if(this.saveHistory(),"mark.nested-chart"!==e.classID){var t=this.currentGlyph;(!t||this.chart.glyphs.indexOf(t)<0)&&(t=this.chart.glyphs[0]);var n=this.chartManager.createObject(e.classID,t);for(var r in e.properties)n.properties[r]=e.properties[r];i.Prototypes.isType(e.classID,"plot-segment")&&(n.filter=null,n.order=null),this.chartManager.addChartElement(n);var a=this.chart.elements.indexOf(n),u=this.chartManager.getChartElementClass(this.chartState.elements[a]);for(var r in e.mappings)if(Object.prototype.hasOwnProperty.call(e.mappings,r)){var A=o(e.mappings[r],2),d=A[0],g=A[1];if(null!=g)if(g.type==c.MappingType._element){var p=g;this.chartManager.chart.constraints.push({type:"snap",attributes:{element:n._id,attribute:r,targetElement:p.element,targetAttribute:p.attribute,gap:0}})}else n.mappings[r]=g;if(null!=d){var h=this.chart.elements.indexOf(n);this.chartState.elements[h].attributes[r]=d,u.attributes[r].solverExclude||this.addPresolveValue(i.Solver.ConstraintStrength.HARD,this.chartState.elements[h].attributes,r,d)}}if(e.properties.snapToClosestGuide){var f=this.chart.elements.indexOf(n),m=this.chartState.elements[f].attributes.x,y=this.chartState.elements[f].attributes.y,I=o(this.getClosestSnappingGuide({x:m,y:y}),2),C=I[0],E=I[1];this.chartState.elements[f].attributes.x=C.guide.value,this.chartState.elements[f].attributes.y=E.guide.value}this.currentSelection=new l.ChartElementSelection(n),this.emit(s.AppStore.EVENT_SELECTION),this.solveConstraintsAndUpdateGraphics()}})),e.add(a.Actions.SetPlotSegmentFilter,(function(e){this.saveHistory(),e.plotSegment.filter=e.filter,this.chartManager.remapPlotSegmentGlyphs(e.plotSegment),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SetPlotSegmentGroupBy,(function(e){this.saveHistory(),e.plotSegment.groupBy=e.groupBy,this.chartManager.remapPlotSegmentGlyphs(e.plotSegment),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.UpdateChartElementAttribute,(function(e){this.saveHistory();var t=this.chart.elements.indexOf(e.chartElement);if(!(t<0)){var n=this.chartState.elements[t],r=function(t){if(!Object.prototype.hasOwnProperty.call(e.updates,t))return"continue";delete e.chartElement.mappings[t],o.chart.constraints=o.chart.constraints.filter((function(n){return"snap"!=n.type||n.attributes.element!=e.chartElement._id||n.attributes.attribute!=t})),n.attributes[t]=e.updates[t],o.addPresolveValue(i.Solver.ConstraintStrength.STRONG,n.attributes,t,e.updates[t])},o=this;for(var a in e.updates)r(a);this.solveConstraintsAndUpdateGraphics()}})),e.add(a.Actions.SetChartElementMapping,(function(e){this.saveHistory(),null==e.mapping?delete e.chartElement.mappings[e.attribute]:(e.chartElement.mappings[e.attribute]=e.mapping,this.chart.constraints=this.chart.constraints.filter((function(t){return"snap"!=t.type||t.attributes.element!=e.chartElement._id||t.attributes.attribute!=e.attribute}))),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SnapChartElements,(function(e){this.saveHistory(),delete e.element.mappings[e.attribute],this.chart.constraints=this.chart.constraints.filter((function(t){return"snap"!=t.type||t.attributes.element!=e.element._id||t.attributes.attribute!=e.attribute})),this.chart.constraints.push({type:"snap",attributes:{element:e.element._id,attribute:e.attribute,targetElement:e.targetElement._id,targetAttribute:e.targetAttribute,gap:0}}),this.addPresolveValue(i.Solver.ConstraintStrength.STRONG,this.chartManager.getClassById(e.element._id).state.attributes,e.attribute,this.chartManager.getClassById(e.targetElement._id).state.attributes[e.targetAttribute]),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SetObjectMappingScale,(function(e){this.saveHistory(),null!=e.scaleId&&e.object.mappings[e.property].type==c.MappingType.scale&&(e.object.mappings[e.property].scale=e.scaleId,this.solveConstraintsAndUpdateGraphics())})),e.add(a.Actions.SetScaleAttribute,(function(e){this.saveHistory(),null==e.mapping?delete e.scale.mappings[e.attribute]:e.scale.mappings[e.attribute]=e.mapping,this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.UpdateChartAttribute,(function(e){for(var t in this.saveHistory(),e.updates)Object.prototype.hasOwnProperty.call(e.updates,t)&&(this.chartState.attributes[t]=e.updates[t],this.addPresolveValue(i.Solver.ConstraintStrength.STRONG,this.chartState.attributes,t,e.updates[t]));this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.BindDataToAxis,(function(e){this.saveHistory(),this.bindDataToAxis(r(r({},e),{autoDomainMax:!0,autoDomainMin:!0,domainMax:null,domainMin:null})),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SetChartAttribute,(function(e){this.saveHistory(),null==e.mapping?delete this.chart.mappings[e.attribute]:this.chart.mappings[e.attribute]=e.mapping,this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SetChartSize,(function(e){this.saveHistory(),this.chartState.attributes.width=e.width,this.chartState.attributes.height=e.height,this.chart.mappings.width={type:c.MappingType.value,value:e.width},this.chart.mappings.height={type:c.MappingType.value,value:e.height},this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.SetObjectProperty,(function(e){this.setProperty(e)})),e.add(a.Actions.DeleteObjectProperty,(function(e){if("name"!==e.property){if(this.saveHistory(),null==e.field)delete e.object.properties[e.property];else delete e.object.properties[e.property][e.field];e.noUpdateState?this.emit(s.AppStore.EVENT_GRAPHICS):this.solveConstraintsAndUpdateGraphics(e.noComputeLayout)}})),e.add(a.Actions.ExtendPlotSegment,(function(e){this.saveHistory();var t,n=e.plotSegment,r=this.chartState.elements[this.chart.elements.indexOf(n)];switch(e.extension){case"cartesian-x":t="plot-segment.cartesian";break;case"cartesian-y":t=n.classID;break;case"polar":t="plot-segment.polar";break;case"curve":t="plot-segment.curve"}if(n.classID!=t){var o=n.mappings;n.classID=t,n.mappings={},o.x1&&(n.mappings.x1=o.x1),o.x2&&(n.mappings.x2=o.x2),o.y1&&(n.mappings.y1=o.y1),o.y2&&(n.mappings.y2=o.y2),n.properties={name:u.replaceUndefinedByNull(n.properties.name),visible:u.replaceUndefinedByNull(n.properties.visible),sublayout:u.replaceUndefinedByNull(n.properties.sublayout),xData:u.replaceUndefinedByNull(n.properties.xData),yData:u.replaceUndefinedByNull(n.properties.yData),marginX1:u.replaceUndefinedByNull(n.properties.marginX1),marginY1:u.replaceUndefinedByNull(n.properties.marginY1),marginX2:u.replaceUndefinedByNull(n.properties.marginX2),marginY2:u.replaceUndefinedByNull(n.properties.marginY2)},"plot-segment.polar"==t&&(n.properties.startAngle=i.Prototypes.PlotSegments.PolarPlotSegment.defaultProperties.startAngle,n.properties.endAngle=i.Prototypes.PlotSegments.PolarPlotSegment.defaultProperties.endAngle,n.properties.innerRatio=i.Prototypes.PlotSegments.PolarPlotSegment.defaultProperties.innerRatio,n.properties.outerRatio=i.Prototypes.PlotSegments.PolarPlotSegment.defaultProperties.outerRatio),"plot-segment.curve"==t&&(n.properties.curve=i.Prototypes.PlotSegments.CurvePlotSegment.defaultProperties.curve,n.properties.normalStart=i.Prototypes.PlotSegments.CurvePlotSegment.defaultProperties.normalStart,n.properties.normalEnd=i.Prototypes.PlotSegments.CurvePlotSegment.defaultProperties.normalEnd),this.chartManager.initializeCache();var a=this.chartManager.getPlotSegmentClass(r);r.attributes={},a.initializeState()}else"cartesian-x"!=e.extension&&"polar"!=e.extension&&"curve"!=e.extension||(n.properties.xData={type:"default",gapRatio:.1}),"cartesian-y"==e.extension&&(n.properties.yData={type:"default",gapRatio:.1});this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.ReorderGlyphMark,(function(e){this.saveHistory(),this.chartManager.reorderGlyphElement(e.glyph,e.fromIndex,e.toIndex),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.ToggleLegendForScale,(function(e){this.saveHistory(),this.toggleLegendForScale(e.scale,e.mapping,e.plotSegment),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.ReorderChartElement,(function(e){this.saveHistory(),this.chartManager.reorderChartElement(e.fromIndex,e.toIndex),this.solveConstraintsAndUpdateGraphics()})),e.add(a.Actions.AddLinks,(function(e){this.saveHistory(),e.links.properties.name=this.chartManager.findUnusedName("Link"),this.chartManager.addChartElement(e.links,0);var t=new l.ChartElementSelection(e.links);this.currentSelection=t,this.emit(s.AppStore.EVENT_GRAPHICS),this.emit(s.AppStore.EVENT_SELECTION)})),e.add(a.Actions.DeleteChartElement,(function(e){this.saveHistory(),this.currentSelection instanceof l.ChartElementSelection&&this.currentSelection.chartElement==e.chartElement&&(this.currentSelection=null,this.emit(s.AppStore.EVENT_SELECTION)),this.chartManager.removeChartElement(e.chartElement),this.solveConstraintsAndUpdateGraphics()}))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(178),a=n(178),s=n(5),l=n(19),c=n(9),u=n(45),A=n(179),d=n(180),g=n(176),p=n(224);t.default=function(e){e.add(l.Actions.Export,(function(e){r(this,void 0,void 0,(function(){var t,n,r,i,l,u,A,g;return o(this,(function(o){switch(o.label){case 0:return"svg"!=e.type?[3,2]:[4,this.renderLocalSVG()];case 1:t=o.sent(),g=new Blob([t],{type:"image/svg;charset=utf-8"}),a.saveAs(g,"charticulator.svg",!0),o.label=2;case 2:return"png"!=e.type&&"jpeg"!=e.type?[3,4]:(r=c.stringToDataURL,i=["image/svg+xml"],[4,this.renderLocalSVG()]);case 3:n=r.apply(void 0,i.concat([o.sent()])),c.renderDataURLToPNG(n,{mode:"scale",scale:e.options.scale||2,background:"#ffffff"}).then((function(t){t.toBlob((function(t){a.saveAs(t,"charticulator."+("png"==e.type?"png":"jpg"),!0)}),"image/"+e.type)})),o.label=4;case 4:return"html"!=e.type?[3,7]:[4,fetch(d.getConfig().ContainerURL)];case 5:return[4,o.sent().text()];case 6:l=o.sent(),u=s.deepClone(this.buildChartTemplate()),A='\n          <!DOCTYPE html>\n          <html>\n          <head>\n            <meta charset="utf-8" />\n            <title>Charticulator HTML Export</title>\n            <script type="text/javascript">'+l+'<\/script>\n            <style type="text/css">\n              #container {\n                display: block;\n                position: absolute;\n                left: 0; right: 0; top: 0; bottom: 0;\n              }\n            </style>\n          </head>\n          <body>\n            <div id="container"></div>\n            <script type="text/javascript">\n              CharticulatorContainer.initialize().then(function() {\n                const currentChart = '+JSON.stringify(this.chart)+";\n                const chartState = "+JSON.stringify(this.chartState)+";\n                const dataset = "+JSON.stringify(this.dataset)+";\n                const template = "+JSON.stringify(u)+';\n                const chartTemplate = new CharticulatorContainer.ChartTemplate(\n                  template\n                );\n                chartTemplate.reset();\n\n                const defaultTable = dataset.tables[0];\n                const columns = defaultTable.columns;\n                chartTemplate.assignTable(defaultTable.name, defaultTable.name);\n                for (const column of columns) {\n                  chartTemplate.assignColumn(\n                    defaultTable.name,\n                    column.name,\n                    column.name\n                  );\n                }\n\n                // links table\n                const linksTable = dataset.tables[1];\n                const links = linksTable && (linksTable.columns);\n                if (links) {\n                  chartTemplate.assignTable(linksTable.name, linksTable.name);\n                  for (const column of links) {\n                    chartTemplate.assignColumn(\n                      linksTable.name,\n                      column.name,\n                      column.name\n                    );\n                  }\n                }\n                const instance = chartTemplate.instantiate(dataset);\n\n                const { chart } = instance;\n\n                for (const property of template.properties) {\n                  if (property.target.attribute) {\n                    CharticulatorContainer.ChartTemplate.SetChartAttributeMapping(\n                      chart,\n                      property.objectID,\n                      property.target.attribute,\n                      {\n                        type: "value",\n                        value: property.default,\n                      }\n                    );\n                  }\n                  \n                }\n\n                const container = new CharticulatorContainer.ChartContainer({ chart: chart }, dataset);\n                const width = document.getElementById("container").getBoundingClientRect().width;\n                const height = document.getElementById("container").getBoundingClientRect().height;\n                container.mount("container", width, height);\n                window.addEventListener("resize", function() {\n                  container.resize(\n                    document.getElementById("container").getBoundingClientRect().width,\n                    document.getElementById("container").getBoundingClientRect().height\n                  );\n                });\n              });\n            <\/script>\n          </body>\n          </html>\n        ',g=new Blob([A]),a.saveAs(g,"charticulator.html",!0),o.label=7;case 7:return[2]}}))}))})),e.add(l.Actions.ExportTemplate,(function(e){e.target.generate(e.properties).then((function(t){for(var n=atob(t),r=new Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);var a=new Uint8Array(r),s=new Blob([a],{type:"application/x-binary"});i.saveAs(s,e.target.getFileName?e.target.getFileName(e.properties):"charticulator."+e.target.getFileExtension(e.properties))}))})),e.add(l.Actions.Save,(function(e){this.backendSaveChart().then((function(){e.onFinish&&e.onFinish()})).catch((function(t){e.onFinish&&e.onFinish(t)}))})),e.add(l.Actions.SaveAs,(function(e){this.backendSaveChartAs(e.saveAs).then((function(){e.onFinish&&e.onFinish()})).catch((function(t){e.onFinish&&e.onFinish(t)}))})),e.add(l.Actions.Open,(function(e){this.backendOpenChart(e.id).then((function(){e.onFinish&&e.onFinish()})).catch((function(t){e.onFinish&&e.onFinish(t)}))})),e.add(l.Actions.Load,(function(e){this.historyManager.clear();var t=(new A.Migrator).migrate(e.projectData,"2.2.0");this.loadState(t)})),e.add(l.Actions.ImportDataset,(function(e){this.currentChartID=null,this.dataset=e.dataset,this.originDataset=s.deepClone(this.dataset),this.historyManager.clear(),this.newChartEmpty(),this.emit(u.AppStore.EVENT_DATASET),this.solveConstraintsAndUpdateGraphics()})),e.add(l.Actions.ImportChartAndDataset,(function(e){var t=this;this.currentChartID=null,this.currentSelection=null,this.dataset=e.dataset,this.originDataset=s.deepClone(this.dataset),this.chart=e.specification,this.chartManager=new s.Prototypes.ChartStateManager(this.chart,this.dataset,null,{},{},e.originSpecification?s.deepClone(e.originSpecification):this.chartManager.getOriginChart()),this.chartManager.onUpdate((function(){t.solveConstraintsAndUpdateGraphics()})),this.chartState=this.chartManager.chartState,this.emit(u.AppStore.EVENT_DATASET),this.emit(u.AppStore.EVENT_SELECTION),this.solveConstraintsAndUpdateGraphics()})),e.add(l.Actions.UpdatePlotSegments,(function(){this.updatePlotSegments(),this.solveConstraintsAndUpdateGraphics(),this.emit(u.AppStore.EVENT_DATASET),this.emit(u.AppStore.EVENT_SELECTION)})),e.add(l.Actions.UpdateDataAxis,(function(){this.updateDataAxes(),this.updateScales(),this.solveConstraintsAndUpdateGraphics(),this.emit(u.AppStore.EVENT_DATASET),this.emit(u.AppStore.EVENT_SELECTION)})),e.add(l.Actions.ReplaceDataset,(function(e){var t=this;this.currentChartID=null,this.currentSelection=null,this.dataset=e.dataset,this.originDataset=s.deepClone(this.dataset),this.chartManager=new s.Prototypes.ChartStateManager(this.chart,this.dataset,null,{},{},e.keepState?this.chartManager.getOriginChart():null),this.chartManager.onUpdate((function(){t.solveConstraintsAndUpdateGraphics()})),this.chartState=this.chartManager.chartState,this.updatePlotSegments(),this.updateDataAxes(),this.updateScales(),this.solveConstraintsAndUpdateGraphics(),this.emit(u.AppStore.EVENT_DATASET),this.emit(u.AppStore.EVENT_SELECTION)})),e.add(l.Actions.ConvertColumnDataType,(function(e){this.saveHistory();var t=this.dataset.tables.find((function(t){return t.name===e.tableName}));if(t){var n=t.columns.find((function(t){return t.name===e.column}));if(n){var r=this.originDataset.tables.find((function(t){return t.name===e.tableName})),o=r.columns.find((function(t){return t.name===e.column}));o.metadata.rawColumnName&&(o=r.columns.find((function(e){return e.name===o.metadata.rawColumnName})));var i=c.convertColumns(t,n,r,e.type);i&&this.messageState.set("columnConvertError",i),this.updatePlotSegments(),this.updateDataAxes(),this.updateScales(),this.solveConstraintsAndUpdateGraphics(),this.emit(u.AppStore.EVENT_DATASET),this.emit(u.AppStore.EVENT_SELECTION)}}})),e.add(l.Actions.Undo,(function(){var e=this.historyManager.undo(this.saveDecoupledState());if(e){var t=this.saveSelectionState();this.loadState(e),this.loadSelectionState(t)}})),e.add(l.Actions.Redo,(function(){var e=this.historyManager.redo(this.saveDecoupledState());if(e){var t=this.saveSelectionState();this.loadState(e),this.loadSelectionState(t)}})),e.add(l.Actions.Reset,(function(){this.saveHistory(),this.currentSelection=null,this.currentTool=null,this.emit(u.AppStore.EVENT_SELECTION),this.emit(u.AppStore.EVENT_CURRENT_TOOL),this.newChartEmpty(),this.solveConstraintsAndUpdateGraphics()})),e.add(l.Actions.OpenNestedEditor,(function(e){var t=this,n=e.options,r=e.object,o=e.property;this.emit(u.AppStore.EVENT_OPEN_NESTED_EDITOR,n,r,o);var i=s.uniqueID(),a=window.open("index.html#!nestedEditor="+i,"nested_chart_"+n.specification._id);window.addEventListener("message",(function(e){if(e.origin==document.location.origin){var s=e.data;if(s.id==i)switch(s.type){case"initialized":var l=new g.ChartTemplateBuilder(n.specification,n.dataset,t.chartManager,"2.2.0").build();a.postMessage({id:i,type:p.NestedEditorEventType.Load,specification:n.specification,dataset:n.dataset,width:n.width,template:l,height:n.height,filterCondition:n.filterCondition},document.location.origin);break;case"save":t.setProperty({object:r,property:o.property,field:o.field,value:s.specification,noUpdateState:o.noUpdateState,noComputeLayout:o.noComputeLayout})}}}))})),e.add(l.Actions.SearchUpdated,(function(e){this.searchString=e.searchString,this.emit(u.AppStore.EVENT_GRAPHICS)})),e.add(l.Actions.ExpandOrCollapsePanelsUpdated,(function(e){this.collapseOrExpandPanelsType=e.type,this.emit(u.AppStore.EVENT_GRAPHICS)}))}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.upgradeGuidesToBaseline=void 0;var r,o,i,a=n(6),s=n(85),l=n(5),c=n(39),u=n(213);function A(e,t,n){var r=[];return e.forEach((function(e,o){if(n(e)){var i=t&&t[o];r.push({element:e,index:o,state:i})}})),r}function d(e,t){if(e){e.properties[s.GuidePropertyNames.baseline]="center"}t&&(t.attributes[s.GuideAttributeNames.computedBaselineValue]=t.attributes[s.GuideAttributeNames.value])}function g(e,t){e&&(delete e.properties[r.gap],delete e.properties[i.value],delete e.properties[i.value2]),t&&delete t.attributes[o.value2]}function p(e,t,n){return{element:{_id:l.uniqueID(),classID:"guide.guide",properties:{baseline:"y"===e?"middle":"center",name:(t.properties[r.name]||"Guide")+" gap",axis:e},mappings:{}},state:{attributes:{value:n,computedBaselineValue:n}}}}!function(e){e.name="name",e.gap="gap"}(r||(r={})),function(e){e.value2="value2"}(o||(o={})),function(e){e.value="value",e.value2="value2"}(i||(i={})),t.upgradeGuidesToBaseline=function(e){var t,n;return t=e.chart,n=e.chartState,function(e,t){A(e.elements,t.elements,(function(e){return e.classID===s.GuideClass.classID})).forEach((function(n){var i=n.element,l=n.state,c=i.mappings.value;if(c&&c.type===a.MappingType.parent){var u=c.parentAttribute;l.attributes[s.GuideAttributeNames.value]=t.attributes[u],delete i.mappings.value}e.constraints.forEach((function(n){"snap"===n.type&&n.attributes.targetElement===i._id&&function(e,t,n,i,a){if(!e)throw new Error("constraint bound to unknown element");if(!e.properties)throw new Error("constraint target element has no properties");var l=+e.properties[r.gap];if(t.attributes.targetAttribute===o.value2&&l){var c=e.properties[s.GuidePropertyNames.axis],u=n+l,d=p(c,e,u);i.push(d.element),a.push(d.state),t.attributes.targetElement=d.element._id,A(i,a,(function(e){return e._id===t.attributes.element})).forEach((function(e){var n=t.attributes.attribute;e.state.attributes[n]=u}))}t.attributes.targetAttribute="computedBaselineValue"}(i,n,+l.attributes[s.GuideAttributeNames.value],e.elements,t.elements)})),d(i,l),g(i,l)}))}(t,n),function e(t,n,l){void 0===l&&(l=!1),t.glyphs.forEach((function(h){var f={};h.marks.forEach((function(t){c.isType(t.classID,s.GuideClass.classID)?f[t._id]=t:c.isType(t.classID,u.NestedChartElementClass.classID)&&e(t.properties.specification,null,!0)}));var m=A(t.elements,n&&n.elements,(function(e){return e.glyph===h._id}));for(var y in h.constraints.forEach((function(e){if("snap"===e.type){var t=e.attributes.targetElement,n=f[t];if(n&&e.attributes.targetAttribute===o.value2){var c=p(n.properties[s.GuidePropertyNames.axis],n,+n.properties[i.value]+ +n.properties[r.gap]);if(h.marks.push(c.element),m.forEach((function(e){var t=e.state;t&&t.glyphs&&t.glyphs.forEach((function(e){e.marks.push(c.state)}))})),l){var u={type:a.MappingType.value,value:c.state.attributes[s.GuideAttributeNames.value]};c.element.mappings.value=u}e.attributes.targetElement=c.element._id,e.attributes.targetAttribute=s.GuideAttributeNames.computedBaselineValue}}})),f){var I=f[y];d(I),g(I),m.forEach((function(e){var t=e.state;t&&t.glyphs&&t.glyphs.forEach((function(e){e.marks.forEach((function(e){d(null,e),g(null,e)}))}))}))}}))}(t,n),e}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),a=n(6),s=n(19),l=n(45),c=n(102);t.default=function(e){e.add(s.Actions.AddGlyph,(function(e){this.saveHistory();var t=this.chartManager.addGlyph(e.classID,this.dataset.tables[0].name);this.currentSelection=new c.GlyphSelection(null,t),this.currentGlyph=t,this.solveConstraintsAndUpdateGraphics()})),e.add(s.Actions.RemoveGlyph,(function(e){this.saveHistory(),this.chartManager.removeGlyph(e.glyph),this.currentSelection=null,this.currentGlyph=null,this.solveConstraintsAndUpdateGraphics()})),e.add(s.Actions.SetGlyphAttribute,(function(e){this.saveHistory(),null==e.mapping?delete e.glyph.mappings[e.attribute]:e.glyph.mappings[e.attribute]=e.mapping,this.solveConstraintsAndUpdateGraphics()})),e.add(s.Actions.UpdateGlyphAttribute,(function(e){var t=this;for(var n in this.saveHistory(),e.updates)Object.prototype.hasOwnProperty.call(e.updates,n)&&delete e.glyph.mappings[n];this.forAllGlyph(e.glyph,(function(n){for(var r in e.updates)Object.prototype.hasOwnProperty.call(e.updates,r)&&(n.attributes[r]=e.updates[r],t.addPresolveValue(i.Solver.ConstraintStrength.STRONG,n.attributes,r,e.updates[r]))})),this.solveConstraintsAndUpdateGraphics()})),e.add(s.Actions.AddMarkToGlyph,(function(e){var t,n,s=this;if(this.saveHistory(),!i.Prototypes.isType(e.classID,"plot-segment")){var u=this.chartManager.createObject(e.classID);for(var A in e.properties)u.properties[A]=e.properties[A];this.chartManager.isNameUsed(u.properties.name)&&(u.properties.name=this.chartManager.findUnusedName(u.properties.name)),this.chartManager.addMarkToGlyph(u,e.glyph);var d=!1,g=function(t){if(Object.prototype.hasOwnProperty.call(e.mappings,t)){var n=r(e.mappings[t],2),o=n[0],l=n[1];if(null!=l)if(l.type==a.MappingType._element){var c=l;e.glyph.constraints.push({type:"snap",attributes:{element:u._id,attribute:t,targetElement:c.element,targetAttribute:c.attribute,gap:0}})}else u.mappings[t]=l;if(null!=o){var A=e.glyph.marks.indexOf(u);p.forAllGlyph(e.glyph,(function(e){e.marks[A].attributes[t]=o,s.addPresolveValue(i.Solver.ConstraintStrength.STRONG,e.marks[A].attributes,t,o)}))}d=!0}},p=this;for(var h in e.mappings)g(h);if(!d)switch(e.classID){case"mark.rect":case"mark.nested-chart":case"mark.textbox":case"mark.image":case"mark.line":u.mappings.x1={type:a.MappingType.parent,parentAttribute:"ix1"},u.mappings.y1={type:a.MappingType.parent,parentAttribute:"iy1"},u.mappings.x2={type:a.MappingType.parent,parentAttribute:"ix2"},u.mappings.y2={type:a.MappingType.parent,parentAttribute:"iy2"};break;case"mark.symbol":case"mark.text":case"mark.icon":u.mappings.x={type:a.MappingType.parent,parentAttribute:"icx"},u.mappings.y={type:a.MappingType.parent,parentAttribute:"icy"};break;case"mark.data-axis":u.mappings.x1={type:a.MappingType.parent,parentAttribute:"ix1"},u.mappings.y1={type:a.MappingType.parent,parentAttribute:"iy1"},u.mappings.x2={type:a.MappingType.parent,parentAttribute:"ix1"},u.mappings.y2={type:a.MappingType.parent,parentAttribute:"iy2"}}if("mark.nested-chart"==e.classID){var f={};try{for(var m=o(this.getTable(e.glyph.table).columns),y=m.next();!y.done;y=m.next()){var I=y.value;f[I.name]=I.name}}catch(e){t={error:e}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}u.properties.columnNameMap=f}this.currentSelection=new c.MarkSelection(this.findPlotSegmentForGlyph(e.glyph),e.glyph,e.glyph.marks[e.glyph.marks.length-1]),this.currentGlyph=e.glyph,this.solveConstraintsAndUpdateGraphics(),this.emit(l.AppStore.EVENT_SELECTION)}})),e.add(s.Actions.RemoveMarkFromGlyph,(function(e){this.saveHistory(),"mark.anchor"!=e.mark.classID&&(this.chartManager.removeMarkFromGlyph(e.mark,e.glyph),this.currentSelection=null,this.emit(l.AppStore.EVENT_SELECTION),this.solveConstraintsAndUpdateGraphics())}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s=n(38),l=n(6),c=n(19),u=n(261);t.default=function(e){var t=new u.ActionHandlerRegistry;t.add(c.Actions.UpdateMarkAttribute,(function(e){var t=this,n=function(t){if(!Object.prototype.hasOwnProperty.call(e.updates,t))return"continue";delete e.mark.mappings[t],e.glyph.constraints=e.glyph.constraints.filter((function(n){return"snap"!=n.type||n.attributes.element!=e.mark._id||n.attributes.attribute!=t}))};for(var r in e.updates)n(r);this.forAllGlyph(e.glyph,(function(n){var r,s;try{for(var l=o(a.zipArray(e.glyph.marks,n.marks)),c=l.next();!c.done;c=l.next()){var u=i(c.value,2),A=u[0],d=u[1];if(A==e.mark)for(var g in e.updates)Object.prototype.hasOwnProperty.call(e.updates,g)&&(d.attributes[g]=e.updates[g],t.addPresolveValue(a.Solver.ConstraintStrength.WEAK,d.attributes,g,e.updates[g]))}}catch(e){r={error:e}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(r)throw r.error}}}))})),t.add(c.Actions.SetObjectProperty,(function(e){if("name"!==e.property||!this.chartManager.isNameUsed(e.value))if(null==e.field)e.object.properties[e.property]=e.value;else{var t=e.object.properties[e.property];e.object.properties[e.property]=a.setField(t,e.field,e.value)}})),t.add(c.Actions.SetMarkAttribute,(function(e){null==e.mapping?delete e.mark.mappings[e.attribute]:(e.mark.mappings[e.attribute]=e.mapping,e.glyph.constraints=e.glyph.constraints.filter((function(t){return"snap"!=t.type||t.attributes.element!=e.mark._id||t.attributes.attribute!=e.attribute})))})),t.add(c.Actions.UnmapMarkAttribute,(function(e){delete e.mark.mappings[e.attribute]})),t.add(c.Actions.SnapMarks,(function(e){var t=this,n=e.glyph.marks.indexOf(e.mark);if(!(n<0)){var r=e.glyph.marks.indexOf(e.targetMark);r<0||(delete e.mark.mappings[e.attribute],e.glyph.constraints=e.glyph.constraints.filter((function(t){return"snap"!=t.type||t.attributes.element!=e.mark._id||t.attributes.attribute!=e.attribute})),e.glyph.constraints.push({type:"snap",attributes:{element:e.mark._id,attribute:e.attribute,targetElement:e.targetMark._id,targetAttribute:e.targetAttribute,gap:0}}),this.forAllGlyph(e.glyph,(function(o){var i=o.marks[n],s=o.marks[r];i.attributes[e.attribute]=s.attributes[e.targetAttribute],t.addPresolveValue(a.Solver.ConstraintStrength.STRONG,i.attributes,e.attribute,s.attributes[e.targetAttribute])})))}})),t.add(c.Actions.MarkActionGroup,(function(e){var n,r;try{for(var i=o(e.actions),a=i.next();!a.done;a=i.next()){var s=a.value;t.handleAction(this,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}})),e.add(c.Actions.MarkAction,(function(e){this.saveHistory(),t.handleAction(this,e),this.solveConstraintsAndUpdateGraphics()})),e.add(c.Actions.MapDataToMarkAttribute,(function(e){var t,n,o;this.saveHistory();var i=e.hints&&e.hints.scaleID||this.scaleInference({glyph:e.glyph,chart:{table:e.expressionTable}},{expression:e.expression,valueType:e.valueType,valueKind:e.valueMetadata.kind,outputType:e.attributeType,hints:e.hints,markAttribute:e.attribute});if(null!=i)e.valueType==a.Specification.DataType.Image&&e.valueType===a.Specification.DataType.Image?e.mark.mappings[e.attribute]={type:l.MappingType.expressionScale,table:null!==(t=e.expressionTable)&&void 0!==t?t:e.glyph.table,expression:"first("+a.ImageKeyColumn+")",valueExpression:e.expression,valueType:e.valueType,scale:i,attribute:e.attribute,valueIndex:e.hints&&null!=e.hints.allowSelectValue?0:null}:e.mark.mappings[e.attribute]={type:l.MappingType.scale,table:null!==(n=e.expressionTable)&&void 0!==n?n:e.glyph.table,expression:e.expression,valueType:e.valueType,scale:i,attribute:e.attribute,valueIndex:e.hints&&null!=e.hints.allowSelectValue?0:null},this.chart.scaleMappings.find((function(e){return e.scale===i}))||this.chart.scaleMappings.push(r(r({},e.mark.mappings[e.attribute]),{attribute:e.attribute}));else if((e.valueType==a.Specification.DataType.Boolean||e.valueType==a.Specification.DataType.String||e.valueType==a.Specification.DataType.Number||e.valueType==a.Specification.DataType.Date)&&e.attributeType==a.Specification.AttributeType.Text){var c=void 0;e.valueMetadata.kind===s.DataKind.Categorical?c=void 0:e.valueType==a.Specification.DataType.Number?c=".1f":e.valueType==a.Specification.DataType.Date&&(c="%m/%d/%Y"),e.mark.mappings[e.attribute]={type:l.MappingType.text,table:null!==(o=e.expressionTable)&&void 0!==o?o:e.glyph.table,textExpression:new a.Expression.TextExpression([{expression:a.Expression.parse(e.expression),format:c}]).toString()}}this.solveConstraintsAndUpdateGraphics()}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(19),i=n(45),a=n(102);t.default=function(e){e.add(o.Actions.SelectChartElement,(function(e){var t=new a.ChartElementSelection(e.chartElement);if(r.Prototypes.isType(e.chartElement.classID,"plot-segment")){var n=e.chartElement;null!=e.glyphIndex&&this.setSelectedGlyphIndex(e.chartElement._id,e.glyphIndex),this.currentGlyph=r.getById(this.chart.glyphs,n.glyph)}this.currentSelection=t,this.emit(i.AppStore.EVENT_SELECTION)})),e.add(o.Actions.SelectMark,(function(e){null==e.plotSegment&&(e.plotSegment=this.findPlotSegmentForGlyph(e.glyph));var t=new a.MarkSelection(e.plotSegment,e.glyph,e.mark);null!=e.glyphIndex&&this.setSelectedGlyphIndex(e.plotSegment._id,e.glyphIndex),this.currentGlyph=t.glyph,this.currentSelection=t,this.emit(i.AppStore.EVENT_SELECTION)})),e.add(o.Actions.SelectGlyph,(function(e){null==e.plotSegment&&(e.plotSegment=this.findPlotSegmentForGlyph(e.glyph));var t=new a.GlyphSelection(e.plotSegment,e.glyph);null!=e.glyphIndex&&this.setSelectedGlyphIndex(e.plotSegment._id,e.glyphIndex),this.currentSelection=t,this.currentGlyph=t.glyph,this.emit(i.AppStore.EVENT_SELECTION)})),e.add(o.Actions.ClearSelection,(function(){this.currentSelection=null,this.emit(i.AppStore.EVENT_SELECTION)})),e.add(o.Actions.SetCurrentTool,(function(e){this.currentTool=e.tool,this.currentToolOptions=e.options,this.emit(i.AppStore.EVENT_CURRENT_TOOL)})),e.add(o.Actions.FocusToMarkAttribute,(function(e){this.currentAttributeFocus=e.attributeName,this.emit(i.AppStore.EVENT_GRAPHICS)})),e.add(o.Actions.SetCurrentMappingAttribute,(function(e){this.currentMappingAttributeFocus=e.attributeName,this.emit(i.AppStore.EVENT_GRAPHICS)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(45);t.default=function(e){e.add(r.Actions.AddMessage,(function(e){this.messageState.set(e.type,e.options.text),this.emit(o.AppStore.EVENT_GRAPHICS)})),e.add(r.Actions.ClearMessages,(function(){this.messageState.clear(),this.emit(o.AppStore.EVENT_GRAPHICS)})),e.add(r.Actions.RemoveMessage,(function(e){this.messageState.delete(e.type),this.emit(o.AppStore.EVENT_GRAPHICS)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryManager=void 0;var r=function(){function e(){this.statesBefore=[],this.statesAfter=[]}return e.prototype.addState=function(e){this.statesAfter=[],this.statesBefore.push(e)},e.prototype.undo=function(e){if(this.statesBefore.length>0){var t=this.statesBefore.pop();return this.statesAfter.push(e),t}return null},e.prototype.redo=function(e){if(this.statesAfter.length>0){var t=this.statesAfter.pop();return this.statesBefore.push(e),t}return null},e.prototype.clear=function(){this.statesAfter=[],this.statesBefore=[]},e.prototype.getState=function(){return{statesAfter:this.statesAfter,statesBefore:this.statesBefore}},e.prototype.setState=function(e,t){this.statesAfter=e,this.statesBefore=t},e}();t.HistoryManager=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.HSVColorPicker=t.HCLColorPicker=void 0;var s=n(0),l=n(5),c=n(103),u=l.getColorConverter("sRGB","hcl"),A=l.getColorConverter("hcl","sRGB");function d(e,t,n){var r,o,i;e/=360,t/=100,n/=100;var a=Math.floor(6*e),s=6*e-a,l=n*(1-t),c=n*(1-s*t),u=n*(1-(1-s)*t);switch(a%6){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}return[Math.max(0,Math.min(255,255*r)),Math.max(0,Math.min(255,255*o)),Math.max(0,Math.min(255,255*i)),!1]}function g(e,t,n){var r,o=Math.max(e,t,n),i=Math.min(e,t,n),a=o-i,s=0===o?0:a/o,l=o/255;switch(o){case i:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[360*r,100*s,100*l]}var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return s.createElement(c.ColorSpacePicker,i({},this.props,{colorSpaces:t.colorSpaces}))},t.colorSpaces=[{name:"Lightness",description:"Hue, Chroma | Lightness",dimension1:{name:"Lightness",range:[100,0]},dimension2:{name:"Hue",range:[0,360]},dimension3:{name:"Chroma",range:[100,0]},toRGB:function(e,t,n){return A(t,n,e)},fromRGB:function(e,t,n){var r=a(u(e,t,n),3),o=r[0],i=r[1];return[r[2],o,i]}},{name:"Hue",description:"Chroma, Lightness | Hue",dimension1:{name:"Hue",range:[0,360]},dimension2:{name:"Chroma",range:[0,100]},dimension3:{name:"Lightness",range:[100,0]},toRGB:function(e,t,n){return A(e,t,n)},fromRGB:function(e,t,n){return u(e,t,n)}},{name:"Chroma",description:"Hue, Lightness | Chroma",dimension1:{name:"Chroma",range:[100,0]},dimension2:{name:"Hue",range:[0,360]},dimension3:{name:"Lightness",range:[100,0]},toRGB:function(e,t,n){return A(t,e,n)},fromRGB:function(e,t,n){var r=a(u(e,t,n),3),o=r[0];return[r[1],o,r[2]]}}],t}(s.Component);t.HCLColorPicker=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return s.createElement(c.ColorSpacePicker,i({},this.props,{colorSpaces:t.colorSpaces}))},t.colorSpaces=[{name:"Hue",description:"Saturation, Value | Hue",dimension1:{name:"Hue",range:[360,0]},dimension2:{name:"Saturation",range:[0,100]},dimension3:{name:"Value",range:[100,0]},toRGB:d,fromRGB:g},{name:"Saturation",description:"Hue, Value | Saturation",dimension1:{name:"Saturation",range:[100,0]},dimension2:{name:"Hue",range:[360,0]},dimension3:{name:"Value",range:[100,0]},toRGB:function(e,t,n){return d(t,e,n)},fromRGB:function(e,t,n){var r=a(g(e,t,n),3),o=r[0];return[r[1],o,r[2]]}},{name:"Value",description:"Hue, Saturation | Value",dimension1:{name:"Value",range:[100,0]},dimension2:{name:"Hue",range:[360,0]},dimension3:{name:"Saturation",range:[100,0]},toRGB:function(e,t,n){return d(t,n,e)},fromRGB:function(e,t,n){var r=a(g(e,t,n),3),o=r[0],i=r[1];return[r[2],o,i]}}],t}(s.Component);t.HSVColorPicker=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpaceSelect=void 0;var l=n(0),c=n(11),u=n(23),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.colorSpaces.map((function(e){return{key:e.name,text:e.name}}));return l.createElement(c.ComboBox,{options:t,defaultSelectedKey:this.props.state.desc.name,onChange:function(t,n){var r,o;if(n)try{for(var i=a(e.props.colorSpaces),l=i.next();!l.done;l=i.next()){var c=l.value;if(c.name==n.key){var u=s(e.props.state.desc.toRGB(e.props.state.x1,e.props.state.x2,e.props.state.x3),3),A=u[0],d=u[1],g=u[2],p=s(c.fromRGB(A,d,g),3),h=p[0],f=p[1],m=p[2];e.props.updateState({desc:c,x1:h,x2:f,x3:m})}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},styles:{root:i({},u.defultComponentsHeight),input:{width:"100px !important"}}})},t}(l.Component);t.ColorSpaceSelect=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorHexInput=void 0;var a=n(0),s=n(5),l=n(103),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.state.desc.toRGB(this.props.state.x1,this.props.state.x2,this.props.state.x3),n={r:t[0],g:t[1],b:t[2]};return a.createElement(a.Fragment,null,a.createElement("label",null,"HEX"),a.createElement(l.InputField,{defaultValue:s.colorToHTMLColorHEX(n),onEnter:function(t){var n=s.colorFromHTMLColor(t);if(n){var r=i(e.props.state.desc.fromRGB(n.r,n.g,n.b),3),o=r[0],a=r[1],l=r[2];return e.props.updateState({x1:o,x2:a,x3:l,desc:e.props.state.desc}),!0}}}))},t}(a.Component);t.ColorHexInput=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDimensionInput=void 0;var i=n(0),a=n(5),s=n(103);var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(i.Fragment,null,i.createElement("label",null,this.props.title),i.createElement(s.InputField,{defaultValue:a.prettyNumber(this.props.defaultValue,1),onEnter:function(t){var n=parseFloat(t);if(n==n&&null!=n)return n=function(e,t){return t[0]<t[1]?Math.max(t[0],Math.min(t[1],e)):Math.max(t[1],Math.min(t[0],e))}(n,e.props.range),e.props.updateState(n),!0}}))},t}(i.Component);t.ColorDimensionInput=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorRgbInput=void 0;var a=n(0),s=n(5),l=n(103),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.transformColorValue=function(e){var t=s.prettyNumber(e,0);return t.length>0?t:"0"},t.prototype.render=function(){var e=this,t=this.props.state.desc.toRGB(this.props.state.x1,this.props.state.x2,this.props.state.x3),n={r:t[0],g:t[1],b:t[2]};return a.createElement(a.Fragment,null,a.createElement("div",{className:"column"},a.createElement("div",{className:"row"},a.createElement("label",null,"R"),a.createElement(l.InputField,{defaultValue:this.transformColorValue(n.r),onEnter:function(t){var r=parseFloat(t);if(r==r&&null!=r){r=Math.max(0,Math.min(255,r));var o=i(e.props.state.desc.fromRGB(r,n.g,n.b),3),a=o[0],s=o[1],l=o[2];return e.props.updateState({x1:a,x2:s,x3:l,desc:e.props.state.desc}),!0}}})),a.createElement("div",{className:"row"},a.createElement("label",null,"G"),a.createElement(l.InputField,{defaultValue:this.transformColorValue(n.g),onEnter:function(t){var r=parseFloat(t);if(r==r&&null!=r){r=Math.max(0,Math.min(255,r));var o=i(e.props.state.desc.fromRGB(n.r,r,n.b),3),a=o[0],s=o[1],l=o[2];return e.props.updateState({x1:a,x2:s,x3:l,desc:e.props.state.desc}),!0}}})),a.createElement("div",{className:"row"},a.createElement("label",null,"B"),a.createElement(l.InputField,{defaultValue:this.transformColorValue(n.b),onEnter:function(t){var r=parseFloat(t);if(r==r&&null!=r){r=Math.max(0,Math.min(255,r));var o=i(e.props.state.desc.fromRGB(n.r,n.g,r),3),a=o[0],s=o[1],l=o[2];return e.props.updateState({x1:a,x2:s,x3:l,desc:e.props.state.desc}),!0}}}))))},t}(a.Component);t.ColorRgbInput=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TabsView=void 0;var i=n(0),a=n(100),s=n(9),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"charticulator__tabs-view"},i.createElement("div",{className:"charticulator__tabs-view-tabs"},this.props.tabs.map((function(t){return i.createElement("span",{key:t.name,className:s.classNames("charticulator__tabs-view-tab",["is-active",e.props.currentTab==t.name]),onClick:function(){return e.props.onSelect(t.name)}},t.icon?i.createElement(a.SVGImageIcon,{url:t.icon}):null,i.createElement("span",{className:"el-label"},t.label))}))))},t}(i.Component);t.TabsView=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentComboBoxFontFamily=void 0;var a=n(0),s=n(11),l=n(5),c=n(23);t.FluentComboBoxFontFamily=function(e){var t=o(a.useState(e.defaultValue),2),n=t[0],u=t[1],A=a.useMemo((function(){return i(new Set(i(l.fontList,[n]))).map((function(e){return{key:e,text:e,styles:{optionText:{fontFamily:e},root:r(r({},c.defultComponentsHeight),{minHeight:c.defultComponentsHeight.height})}}}))}),[n]),d=a.useCallback((function(){var t;return null===(t=e.onCancel)||void 0===t?void 0:t.call(e)}),[e]),g=a.useCallback((function(t,n){var r,o,i,a=t.target.value,s=null!==(o=null===(r=null==n?void 0:n.key)||void 0===r?void 0:r.toString())&&void 0!==o?o:a.length>0?a:e.defaultValue;u(s),null===(i=e.onEnter)||void 0===i||i.call(e,s)}),[e]);return a.createElement(s.ComboBox,{styles:r(r({},c.defaultStyle),{root:r({},c.defultComponentsHeight)}),selectedKey:n,label:e.label,onRenderLabel:function(e){var t=e.props;return a.createElement(s.Label,{styles:c.defaultLabelStyle},t.label)},autoComplete:"on",options:A,onChange:g,onAbort:d,allowFreeform:!0})}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputImageProperty=t.ImageUploader=t.ImageChooser=t.InputImage=void 0;var i=n(0),a=n(13),s=n(27),l=n(32),c=n(76),u=n(9),A=n(181),d=n(7),g=n(262),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dragOver:!1},t.startChooseImage=function(){s.popupController.popupAt((function(e){return i.createElement(c.PopupView,{context:e},i.createElement(h,{value:t.props.value,onChoose:function(n){e.close(),t.props.onChange&&t.props.onChange(n)}}))}),{anchor:t.element})},t.handleDragEnter=function(){t.setState({dragOver:!0})},t.handleDragLeave=function(){t.setState({dragOver:!1})},t.handleDragOver=function(e){e.preventDefault()},t.handleDrop=function(e){if(e.preventDefault(),t.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var n=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));f.ParseURIs(n).then((function(e){t.emitOnChange(e)}))}e.dataTransfer.files.length>0&&f.ParseFiles(e.dataTransfer.files).then((function(e){t.emitOnChange(e)})).catch((function(e){console.log(e)}))},t}return o(t,e),t.prototype.resolveImage=function(e){return e},t.prototype.emitOnChange=function(e){1==e.length&&this.props.onChange({src:e[0].dataURL,width:e[0].width,height:e[0].height})},t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.src:null;return r&&r.startsWith("data:")&&(r="(data url)"),i.createElement("span",{className:u.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onClick:this.startChooseImage},this.state.dragOver?i.createElement("span",{className:"el-drag-over"},"Drop Image Here"):[i.createElement("img",{key:"image",className:"el-image",src:t?a.getSVGIcon("FileImage"):n.src}),i.createElement("span",{key:"text",className:"el-text-wrapper"},i.createElement("span",{className:"el-text"},t?d.strings.core.none:r))])},t}(l.ContextedComponent);t.InputImage=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"charticulator__image-chooser"},i.createElement(f,{focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChoose({src:t[0].dataURL,width:t[0].width,height:t[0].height})}}))},t}(l.ContextedComponent);t.ImageChooser=h;var f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={dragOver:!1},n.handleDragEnter=function(){n.setState({dragOver:!0})},n.handleDragLeave=function(){n.setState({dragOver:!1})},n.handleDragOver=function(e){e.preventDefault()},n.handleDrop=function(e){if(e.preventDefault(),n.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var r=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));t.ParseURIs(r).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)}))}e.dataTransfer.files.length>0&&t.ParseFiles(e.dataTransfer.files).then((function(e){n.emitOnUpload(e)}))},n.handlePaste=function(e){e.clipboardData.files.length>0&&(e.preventDefault(),t.ParseFiles(e.clipboardData.files).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)})))},n.handleOpenFile=function(){var e=document.createElement("input");e.setAttribute("type","file"),e.onchange=function(){e.files.length>0&&t.ParseFiles(e.files).then((function(e){n.emitOnUpload(e)}))},e.click()},n.handleClearFile=function(){n.props.onClear&&n.props.onClear()},n}return o(t,e),t.prototype.componentDidMount=function(){this.props.focusOnMount&&this.refInput.focus()},t.ReadFileAsImage=function(e,t){return new Promise((function(n){var r=new FileReader;r.onload=function(){var t=new Image;t.onload=function(){n({name:e,width:t.width,height:t.height,dataURL:r.result})},t.src=r.result},r.readAsDataURL(t)}))},t.ParseFiles=function(e){for(var t=this,n=[],r=function(e){n.push(t.ReadFileAsImage(e.name,e))},o=0;o<e.length;o++){r(e[o])}return Promise.all(n)},t.ParseURIs=function(e){var t=this;return Promise.all(e.map((function(e){return fetch(e).then((function(e){return e.blob()})).then((function(e){return new Promise((function(n,r){e.type.startsWith("image/")?n(t.ReadFileAsImage("blob",e)):r(new Error("not an image"))}))}))})))},t.prototype.showError=function(e){},t.prototype.emitOnUpload=function(e){this.props.onUpload&&this.props.onUpload(e)},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"charticulator__image-uploader",ref:function(t){return e.refContainer=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop},this.state.dragOver?i.createElement("span",{className:"el-dropzone"},"Drop Image Here"):i.createElement("span",{className:"el-input-wrapper"},i.createElement("input",{ref:function(t){return e.refInput=t},className:"el-input",onPaste:this.handlePaste,value:"",onChange:g.noop,type:"text",placeholder:this.props.placeholder||"Drop/Paste Image"}),i.createElement(A.Button,{icon:"toolbar/open",onClick:this.handleOpenFile})))},t}(i.Component);t.ImageUploader=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.name:null;return r&&r.startsWith("data:")&&(r="(data url)"),i.createElement("span",{className:u.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop},this.state.dragOver?i.createElement("span",{className:"el-drag-over"},"Drop Image Here"):[i.createElement("img",{key:"image",className:"el-image2",src:t?a.getSVGIcon("FileImage"):n.src}),i.createElement(f,{key:0,placeholder:t?d.strings.core.none:r,focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChange&&e.props.onChange({src:t[0].dataURL,width:t[0].width,height:t[0].height,name:t[0].name})}})])},t}(p);t.InputImageProperty=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputNumber=void 0;var i=n(0),a=n(5),s=n(181),l=n(263),c=n(264),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.formatNumber=function(e){return null==e?"":e!=e?"N/A":this.props.percentage?a.prettyNumber(100*e,null!=this.props.digits?this.props.digits:2)+"%":a.prettyNumber(e,null!=this.props.digits?this.props.digits:2)},t.prototype.parseNumber=function(e){return""==(e=e.trim())?null:this.props.percentage?+(e=e.replace(/%$/,""))/100:+e},t.prototype.reportValue=function(e){return null==e||(null!=this.props.minimum&&(e=Math.max(this.props.minimum,e)),null!=this.props.maximum&&(e=Math.min(this.props.maximum,e))),this.props.onEnter(e)},t.prototype.renderSlider=function(){var e=this,t=0,n=1;return null!=this.props.minimum&&(t=this.props.minimum),null!=this.props.maximum&&(n=this.props.maximum),null!=this.props.sliderRange&&(t=this.props.sliderRange[0],n=this.props.sliderRange[1]),i.createElement(c.Slider,{width:70,min:t,max:n,defaultValue:this.props.defaultValue,mapping:this.props.sliderFunction,onChange:function(t,n){e.textInput.value=e.formatNumber(t),n&&e.reportValue(t)}})},t.prototype.renderUpdown=function(){var e=this,t=this.props.updownTick||.1;return"font"==this.props.updownStyle?[i.createElement(s.Button,{key:"up",icon:"general/text-size-up",onClick:function(){e.reportValue(e.props.defaultValue+t)}}),i.createElement(s.Button,{key:"down",icon:"general/text-size-down",onClick:function(){e.reportValue(e.props.defaultValue-t)}})]:i.createElement(s.UpdownButton,{onClick:function(n){"up"==n?e.reportValue(e.props.defaultValue+t):e.reportValue(e.props.defaultValue-t)}})},t.prototype.render=function(){var e=this;return i.createElement("span",{className:"charticulator__widget-control-input-number"},i.createElement("div",{className:"charticulator__widget-control-input-number-input"},i.createElement(l.InputText,{ref:function(t){return e.textInput=t},placeholder:this.props.placeholder,defaultValue:this.formatNumber(this.props.defaultValue),onEnter:function(t){var n=e.parseNumber(t);return e.reportValue(n)}})),this.props.showSlider?this.renderSlider():null,this.props.showUpdown?this.renderUpdown():null)},t}(i.Component);t.InputNumber=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Radio=t.Select=t.DropdownListView=void 0;var i=n(0),a=n(14),s=n(76),l=n(27),c=n(13),u=n(9);function A(e){return i.createElement("ul",{className:"dropdown-list"},e.list.map((function(t){return i.createElement("li",{tabIndex:0,key:t.name,className:e.selected==t.name?"is-active":null,onClick:function(){var n;e.onClick&&e.onClick(t.name),e.context.close(),null===(n=e.onClose)||void 0===n||n.call(e)},onKeyPress:function(n){var r;"Enter"===n.key&&(e.onClick&&e.onClick(t.name),e.context.close(),null===(r=e.onClose)||void 0===r||r.call(e))}},null!=t.url?i.createElement(a.SVGImageIcon,{url:t.url}):null,null!=t.text?i.createElement("span",{className:"text",style:{fontFamily:t.font}},t.text):null)})))}t.DropdownListView=A;var d=function(e){function t(t){var n=e.call(this,t)||this;return n._startDropdown=function(e){e.stopPropagation(),n.startDropdown()},n.state={active:!1},n}return o(t,e),t.prototype.startDropdown=function(){var e=this;l.popupController.popupAt((function(t){t.addListener("close",(function(){e.setState({active:!1})}));var n=e.props.options.map((function(t,n){return{url:e.props.icons?c.getSVGIcon(e.props.icons[n]):null,name:t,text:e.props.labels?e.props.labels[n]:null}}));return i.createElement(s.PopupView,{context:t},i.createElement(A,{selected:e.props.value,list:n,context:t,onClick:function(t){e.props.onChange(t)}}))}),{anchor:this.anchor}),this.setState({active:!0})},t.prototype.render=function(){var e=this,t=this.props.options.indexOf(this.props.value),n=this.props;return 1===n.labelPosition?i.createElement("div",{className:"charticulator__widget-control-select-container",title:n.tooltip},i.createElement("span",{className:u.classNames("charticulator__widget-control-select",["is-active",this.state.active],["has-text",null!=this.props.labels&&n.showText],["has-icon",null!=this.props.icons]),ref:function(t){return e.anchor=t},onClick:this._startDropdown},null!=n.icons?i.createElement(a.SVGImageIcon,{url:c.getSVGIcon(n.icons[t])}):null,i.createElement(a.SVGImageIcon,{url:c.getSVGIcon("ChevronDown")})),i.createElement("span",{className:"el-text"},n.labels[t])):i.createElement("span",{className:u.classNames("charticulator__widget-control-select",["is-active",this.state.active],["has-text",null!=this.props.labels&&n.showText],["has-icon",null!=this.props.icons]),ref:function(t){return e.anchor=t},onClick:this._startDropdown},null!=n.icons?i.createElement(a.SVGImageIcon,{url:c.getSVGIcon(n.icons[t])}):null,null!=n.labels&&n.showText?i.createElement("span",{className:"el-text"},n.labels[t]):null,i.createElement(a.SVGImageIcon,{url:c.getSVGIcon("ChevronDown")}))},t}(i.Component);t.Select=d;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:"charticulator__widget-control-radio"},this.props.options.map((function(t,n){return i.createElement("span",{key:t,className:u.classNames("charticulator__widget-control-radio-item",["is-active",t==e.props.value]),title:e.props.labels?e.props.labels[n]:null,onClick:function(){e.props.onChange(t)}},e.props.icons?i.createElement(a.SVGImageIcon,{url:c.getSVGIcon(e.props.icons[n])}):null,e.props.showText?i.createElement("span",{className:"el-text"},e.props.labels[n]):null)})))},t}(i.Component);t.Radio=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomGradientMenu=void 0;var i=n(0),a=n(70),s=n(5),l=n(89),c=n(11),u=n(182),A=n(265),d=n(565),g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isPickerOpen:!1,currentItemId:"",currentColor:null,currentItemIdx:null},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.currentGradient;return i.createElement("div",null,i.createElement("div",null,i.createElement(A.GradientView,{gradient:t})),i.createElement("div",null,i.createElement(a.ReorderListView,{enabled:!0,onReorder:function(n,r){var o=s.deepClone(t);a.ReorderListView.ReorderArray(o.colors,n,r),e.props.selectGradient(o,!0)}},t.colors.map((function(n,r){return i.createElement(u.ColorRowWrapper,{key:"m"+r},i.createElement("div",null,i.createElement(u.ColorCell,{id:"color_"+r,onClick:function(){e.changeColorPickerState("color_"+r,n,r)},$color:l.colorToCSS(n)})),i.createElement(c.TextField,{defaultValue:s.colorToHTMLColorHEX(n),onChange:function(n,o){if(o){var i=s.colorFromHTMLColor(o),a=s.deepClone(t);a.colors[r]=i,e.props.selectGradient(a,!0)}},underlined:!0,styles:u.colorTextInputStyles}),i.createElement(c.DefaultButton,{iconProps:{iconName:"ChromeClose"},styles:u.deleteColorStyles,onClick:function(){if(t.colors.length>1){var n=s.deepClone(e.props.currentGradient);n.colors.splice(r,1),e.props.selectGradient(n,!0)}}}))})),this.renderColorPicker())),i.createElement(d.CustomGradientButtons,{selectGradient:this.props.selectGradient,currentGradient:t}))},t.prototype.changeColorPickerState=function(e,t,n){this.setState({isPickerOpen:!this.state.isPickerOpen,currentItemId:e,currentColor:t,currentItemIdx:n})},t.prototype.renderColorPicker=function(){var e=this;return i.createElement(i.Fragment,null,this.state.isPickerOpen&&i.createElement(c.Callout,{target:"#"+this.state.currentItemId,onDismiss:function(){return e.changeColorPickerState(e.state.currentItemId,null,null)},alignTargetEdge:!0},i.createElement(l.ColorPicker,{defaultValue:this.state.currentColor,onPick:function(t){var n=s.deepClone(e.props.currentGradient);n.colors[e.state.currentItemIdx]=t,e.props.selectGradient(n,!0)},parent:this})))},t}(i.Component);t.CustomGradientMenu=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomGradientButtons=void 0;var i=n(0),a=n(11),s=n(7),l=n(5),c=n(182),u=n(104),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.currentGradient,n=[{key:u.Colorspace.HCL,text:"HCL"},{key:u.Colorspace.LAB,text:"Lab"}];return i.createElement(c.CustomGradientButtonsWrapper,null,i.createElement("div",null,i.createElement(a.DefaultButton,{iconProps:{iconName:"Add"},text:s.strings.scaleEditor.add,onClick:function(){var n=l.deepClone(t);n.colors.push({r:150,g:150,b:150}),e.props.selectGradient(n,!0)},styles:c.defaultActionButtonsStyles})),i.createElement("div",null,i.createElement(a.DefaultButton,{iconProps:{iconName:"Sort"},text:s.strings.scaleEditor.reverse,onClick:function(){var n=l.deepClone(t);n.colors.reverse(),e.props.selectGradient(n,!0)},styles:c.defaultActionButtonsStyles})),i.createElement(a.Dropdown,{options:n,onChange:function(n,r){if(r){var o=l.deepClone(t);o.colorspace=r.key,e.props.selectGradient(o,!0)}},defaultSelectedKey:t.colorspace,styles:c.dropdownStyles}))},t}(i.Component);t.CustomGradientButtons=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingPanel=t.MinimizablePane=t.MinimizablePanelView=void 0;var a=n(0),s=n(13),l=n(225),c=n(29),u=n(9),A=n(11),d=n(23),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",{className:"minimizable-panel-view"},this.props.children)},t}(a.Component);t.MinimizablePanelView=g;var p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={minimized:t.defaultMinimized||!1},n}return o(t,e),t.prototype.renderHeader=function(){var e=this;return this.props.hideHeader?null:a.createElement("div",{className:"header",onClick:function(){return e.setState({minimized:!e.state.minimized})}},a.createElement(A.DefaultButton,{onClick:function(){return e.setState({minimized:!e.state.minimized})},iconProps:{iconName:this.state.minimized?"ChevronRight":"ChevronDown",styles:{root:{fontSize:"unset",height:12}}},styles:d.PanelHeaderStyles}),a.createElement("span",{className:"title"},this.props.title),this.props.onMaximize?a.createElement("span",{className:"buttons",onClick:function(e){return e.stopPropagation()}},a.createElement(l.ButtonFlat,{title:"Show as separate window",url:s.getSVGIcon("general/popout"),onClick:function(){return e.props.onMaximize()}})):null)},t.prototype.render=function(){return this.state.minimized?a.createElement("div",{className:"minimizable-pane"},this.renderHeader()):this.props.scroll?null!=this.props.height?a.createElement("div",{className:"minimizable-pane minimizable-pane-scrollable"},this.renderHeader(),a.createElement("div",{className:"content",style:{height:this.props.height+"px"}},this.props.children)):null!=this.props.maxHeight?a.createElement("div",{className:"minimizable-pane minimizable-pane-scrollable"},this.renderHeader(),a.createElement("div",{className:"content",style:{maxHeight:this.props.maxHeight+"px"}},this.props.children)):a.createElement("div",{className:"minimizable-pane minimizable-pane-scrollable minimizable-pane-autosize"},this.renderHeader(),a.createElement("div",{className:"content",style:{flex:"1 1"}},this.props.children)):a.createElement("div",{className:"minimizable-pane"},this.renderHeader(),a.createElement("div",{className:"content"},this.props.children))},t}(a.Component);t.MinimizablePane=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getInitialState(),t}return o(t,e),t.prototype.getInitialState=function(){var e,n,r=100,o=100,a=this.props.width||324,s=this.props.height||324;if(this.props.floatInCenter)r=window.innerWidth/2-a/2,o=window.innerHeight/2-s/2;else for(;;){var l=!1;if(t.peerGroups.has(this.props.peerGroup))try{for(var c=(e=void 0,i(t.peerGroups.get(this.props.peerGroup))),u=c.next();!u.done;u=c.next()){var A=u.value;if(A.state.x==r&&A.state.y==o){l=!0;break}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!(l&&r<400&&o<400))break;r+=50,o+=50}return{x:r,y:o,width:a,height:s,focus:!1,minimized:!1}},t.prototype.componentDidMount=function(){var e=this;this.hammer=new c.Manager(this.refContainer),this.hammer.add(new c.Pan({threshold:0})),this.hammer.on("panstart",(function(t){if(t.target==e.refHeader){var n=e.state.x-t.deltaX,r=e.state.y-t.deltaY,o=function(t){e.setState({x:n+t.deltaX,y:Math.max(0,r+t.deltaY)})},i=function(){e.hammer.off("pan",o),e.hammer.off("panend",i)};e.hammer.on("pan",o),e.hammer.on("panend",i)}if(t.target==e.refResizer){var a=e.state.width-t.deltaX,s=e.state.height-t.deltaY,l=function(t){e.setState({width:Math.max(324,a+t.deltaX),height:Math.max(100,s+t.deltaY)})},c=function(){e.hammer.off("pan",l),e.hammer.off("panend",c)};e.hammer.on("pan",l),e.hammer.on("panend",c)}})),t.peerGroups.has(this.props.peerGroup)?t.peerGroups.get(this.props.peerGroup).add(this):t.peerGroups.set(this.props.peerGroup,new Set([this])),this.focus()},t.prototype.focus=function(){var e,n;if(t.peerGroups.has(this.props.peerGroup))try{for(var r=i(t.peerGroups.get(this.props.peerGroup)),o=r.next();!o.done;o=r.next()){var a=o.value;a!=this&&a.setState({focus:!1})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.setState({focus:!0})},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),t.peerGroups.has(this.props.peerGroup)&&t.peerGroups.get(this.props.peerGroup).delete(this)},t.prototype.render=function(){var e=this;return a.createElement("div",{className:u.classNames("charticulator__floating-panel",["is-focus",this.state.focus],["is-scroll",this.props.scroll]),ref:function(t){return e.refContainer=t},style:{left:this.state.x+"px",top:this.state.y+"px",width:this.state.width+"px",height:this.state.minimized?void 0:this.state.height+"px"},onMouseDown:function(){e.focus()},onTouchStart:function(){e.focus()}},a.createElement("div",{className:"charticulator__floating-panel-header",ref:function(t){return e.refHeader=t}},a.createElement("span",{className:"title"},this.props.title),a.createElement("span",{className:"buttons",onClick:function(e){return e.stopPropagation()}},a.createElement(l.ButtonFlat,{url:s.getSVGIcon("general/minus"),title:"Minimize",onClick:function(){return e.setState({minimized:!e.state.minimized})}}),this.props.onClose?a.createElement(l.ButtonFlat,{url:s.getSVGIcon(this.props.closeButtonIcon||"general/popout"),title:"Restore to panel",onClick:function(){return e.props.onClose()}}):null)),this.state.minimized?null:a.createElement("div",{className:"charticulator__floating-panel-content"},this.props.children),this.state.minimized?null:a.createElement("div",{className:"charticulator__floating-panel-resizer",ref:function(t){return e.refResizer=t}}))},t.peerGroups=new Map,t}(a.Component);t.FloatingPanel=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.TelemetryContext=t.TelemetryActionType=void 0;var i,a=n(0),s=n(14),l=n(9);!function(e){e.Exception="exception",e.ExportTemplate="exportTempalte"}(i=t.TelemetryActionType||(t.TelemetryActionType={})),t.TelemetryContext=a.createContext(null);var c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return o(t,e),t.prototype.componentDidCatch=function(e,t){var n;this.setState({hasError:!0,errorString:e.name+" \n "+e.message+" \n "+(e.stack&&e.stack)+" \n "+t.componentStack}),null===(n=this.props.telemetryRecorder)||void 0===n||n.record(i.Exception,{name:e.name,message:e.message,stack:e.stack}),console.log(e,t)},t.prototype.render=function(){var e=this;if(this.state.hasError){var t=this.props.maxWidth?this.props.maxWidth+"px":void 0;return a.createElement("div",{className:"charticulator__error-boundary-report",style:{margin:"1em",maxWidth:t}},a.createElement("p",null,"Oops! Something went wrong here. This must be a software bug. As a last resort, you can undo the previous change and try again."),a.createElement("p",null,a.createElement(s.ButtonRaised,{text:"Try Again",onClick:function(){e.setState({hasError:!1})}})),a.createElement("p",null,a.createElement(s.ButtonRaised,{text:"Copy diagnostic information to clipboard",onClick:function(){l.copyToClipboard(e.state.errorString)}})))}return this.props.children},t}(a.Component);t.ErrorBoundary=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EditableTextView=void 0;var i=n(0),a=n(23),s=n(11),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editing:n.props.autofocus||!1,currentText:n.props.text},n.confirmEdit=n.confirmEdit.bind(n),n.cancelEdit=n.cancelEdit.bind(n),n.startEdit=n.startEdit.bind(n),n}return o(t,e),t.prototype.confirmEdit=function(){var e=this.state.currentText;this.setState({editing:!1}),this.props.onEdit&&this.props.onEdit(e)},t.prototype.cancelEdit=function(){this.setState({editing:!1})},t.prototype.startEdit=function(){this.setState({editing:!0,currentText:this.props.text})},t.prototype.render=function(){var e=this;return i.createElement("div",null,i.createElement(a.FluentTextField,null,i.createElement(s.TextField,{value:this.state.currentText,onRenderLabel:a.labelRender,type:"text",onChange:function(t,n){e.setState({currentText:n})},onBlur:function(){e.state.currentText==e.props.text?e.cancelEdit():e.setState({currentText:e.props.text})},onKeyDown:function(t){"Enter"==t.key&&e.confirmEdit(),"Escape"==t.key&&e.cancelEdit()},autoFocus:!1,styles:{fieldGroup:{border:!this.state.editing&&"none"}}})))},t}(i.Component);t.EditableTextView=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePanel=void 0;var a=n(0),s=n(13),l=n(5),c=n(37),u=n(32),A=n(14),d=n(124),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.tokens=[this.store.addListener(c.AppStore.EVENT_GRAPHICS,(function(){return e.forceUpdate()}))]},t.prototype.componentWillUnmount=function(){this.tokens.forEach((function(e){return e.remove()})),this.tokens=[]},t.prototype.renderUnexpectedState=function(e){return a.createElement("div",{className:"attribute-editor charticulator__widget-container"},a.createElement("div",{className:"attribute-editor-unexpected"},e))},t.prototype.render=function(){var e=this,t=this.props.store.messageState;return a.createElement("div",{className:"charticulator__object-list-editor"},Array.from(t,(function(e){return i(e,1)[0]})).map((function(n,r){var o=t.get(n);return l.messageTypes.find((function(e){return e===n}))?a.createElement("div",{key:r},a.createElement("div",{key:r,className:"el-object-item auto-height"},a.createElement("span",{className:"el-text"},o))):a.createElement("div",{key:r},a.createElement("div",{key:r,className:"el-object-item auto-height",onClick:function(){e.store.dispatcher.dispatch(new d.RemoveMessage(n))}},a.createElement("span",{className:"el-text"},o),a.createElement(A.SVGImageIcon,{url:s.getSVGIcon("ChromeClose")})))})))},t}(u.ContextedComponent);t.MessagePanel=g},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeListeners=void 0;var i=function(){function e(e){var t=e.getBoundingClientRect();this.previousWidth=t.width,this.previousHeight=t.height,this.currentID=0,this.callbacks=new Map,this.element=e}return e.prototype.addCallback=function(e){return this.currentID+=1,this.callbacks.set(this.currentID,e),this.currentID},e.prototype.removeCallback=function(e){this.callbacks.delete(e)},e.prototype.timerCallback=function(){var e=this.element.getBoundingClientRect();e.width==this.previousWidth&&e.height==this.previousHeight||(this.previousWidth=e.width,this.previousHeight=e.height,this.callbacks.forEach((function(e){e()})))},e}(),a=function(){function e(){this.entries=new Map,this.timer=setInterval(this.timerCallback.bind(this),200)}return e.prototype.addListener=function(e,t){if(this.entries.has(e))return this.entries.get(e).addCallback(t);var n=new i(e);return this.entries.set(e,n),n.addCallback(t)},e.prototype.removeListener=function(e,t){if(this.entries.has(e)){var n=this.entries.get(e);n.removeCallback(t),0==n.callbacks.size&&this.entries.delete(e)}},e.prototype.timerCallback=function(){var e,t;try{for(var n=r(this.entries),i=n.next();!i.done;i=n.next()){o(i.value,2)[1].timerCallback()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e}();t.ResizeListeners=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(572);Object.defineProperty(t,"DatasetView",{enumerable:!0,get:function(){return r.DatasetView}});var o=n(575);Object.defineProperty(t,"MarkEditorView",{enumerable:!0,get:function(){return o.MarkEditorView}});var i=n(586);Object.defineProperty(t,"ChartEditorView",{enumerable:!0,get:function(){return i.ChartEditorView}});var a=n(284);Object.defineProperty(t,"AttributePanel",{enumerable:!0,get:function(){return a.AttributePanel}});var s=n(106);Object.defineProperty(t,"FileView",{enumerable:!0,get:function(){return s.FileView}})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnView=t.ColumnViewState=t.ColumnViewProps=t.ColumnsView=t.DatasetView=void 0;var s=n(0),l=n(5),c=n(19),u=n(14),A=n(58),d=n(27),g=n(13),p=n(37),h=n(9),f=n(40),m=n(83),y=n(266),I=n(38),C=n(6),E=n(176),b=n(105),v=n(267),B=n(7),M=n(45),D=n(11),x=n(23),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.store.addListener(p.AppStore.EVENT_DATASET,(function(){return e.forceUpdate()}))},t.prototype.render=function(){var e=this,t=this.props.store.getTables(),n=[I.TableType.Main,I.TableType.Links,I.TableType.Image];return s.createElement("div",{className:"charticulator__dataset-view"},t.filter((function(e){return n.find((function(t){return t===e.type}))})).map((function(t,n){return s.createElement(S,{key:"t"+n,table:t,store:e.props.store})})))},t.prototype.onImportConnections=function(){alert(B.strings.error.notImplemented)},t}(s.Component);t.DatasetView=w;var Q={root:{height:x.defultBindButtonSize+"px",width:x.defultBindButtonSize+"px",minWidth:x.defultBindButtonSize+"px",padding:"0px",border:"none"}},S=function(e){function t(t){var n=e.call(this,t)||this;return n.popupController=new A.PopupController,n.state={selectedColumn:null,tableViewIsOpened:!1},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.table;return s.createElement(s.Fragment,null,s.createElement(A.PopupContainer,{controller:this.popupController}),s.createElement("div",{className:"charticulator__dataset-view-columns"},s.createElement("h2",{className:"el-title"},s.createElement("span",{className:"el-text"},I.tableTypeName[this.props.table.type]),this.props.store.editorType===M.EditorType.Chart?s.createElement(D.DefaultButton,{iconProps:{iconName:"general/replace"},styles:Q,title:B.strings.dataset.replaceWithCSV,onClick:function(){h.showOpenFileDialog(["csv"]).then((function(n){var r=new l.Dataset.DatasetLoader,o=new FileReader;o.onload=function(){var i=r.loadDSVFromContents(t.name,o.result,e.props.store.getLocaleFileFormat());i.displayName=h.getFileNameWithoutExtension(n.name),i.name=t.name,i.type=t.type;var l=e.props.store,u={name:l.dataset.name,tables:l.dataset.tables.map((function(e){return e.name==t.name?i:e}))},d=new E.ChartTemplateBuilder(l.chart,l.dataset,l.chartManager,"2.2.0").build(),g=[];d.tables[0].columns.forEach((function(e){g=g.concat(l.checkColumnsMapping(e,I.TableType.Main,u))})),d.tables[1]&&d.tables[1].columns.forEach((function(e){g=g.concat(l.checkColumnsMapping(e,I.TableType.Links,u))}));var p=new Map;p.set(d.tables[0].name,l.dataset.tables[0].name),d.tables[1]&&l.dataset.tables[1]&&p.set(d.tables[1].name,l.dataset.tables[1].name);g.length>0?e.popupController.showModal((function(e){return s.createElement(A.ModalView,{context:e},s.createElement("div",{onClick:function(e){return e.stopPropagation()}},s.createElement(v.FileViewImport,{mode:v.MappingMode.ImportDataset,tables:d.tables,datasetTables:u.tables,tableMapping:p,unmappedColumns:g,onSave:function(t){!function(e,t,n,r){var o,i,s,l,A=new b.ChartTemplate(r);try{for(var d=a(A.getDatasetSchema()),g=d.next();!g.done;g=d.next()){var p=g.value;A.assignTable(p.name,t.get(p.name)||p.name);try{for(var h=(s=void 0,a(p.columns)),f=h.next();!f.done;f=h.next()){var m=f.value;A.assignColumn(p.name,m.name,n.get(m.name)||m.name)}}catch(e){s={error:e}}finally{try{f&&!f.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}var y=A.instantiate(u,!1);e.dispatcher.dispatch(new c.Actions.ImportChartAndDataset(y.chart,u,{})),e.dispatcher.dispatch(new c.Actions.ReplaceDataset(u))}(l,p,t,d),e.close()},onClose:function(){e.close()}})))}),{anchor:null}):l.dispatcher.dispatch(new c.Actions.ReplaceDataset(u))},o.readAsText(n)}))}}):null,s.createElement(D.DefaultButton,{iconProps:{iconName:"More"},styles:Q,id:"charticulator__dataset-view-detail-"+this.props.table.displayName,title:B.strings.dataset.showDataValues,onClick:function(){e.setState({tableViewIsOpened:!e.state.tableViewIsOpened})}}),this.state.tableViewIsOpened?s.createElement(D.Callout,{target:"#charticulator__dataset-view-detail-"+this.props.table.displayName,onDismiss:function(){e.setState({tableViewIsOpened:!1})}},s.createElement("div",{className:"charticulator__dataset-view-detail"},s.createElement("h2",null,t.displayName||t.name),s.createElement("p",null,B.strings.dataset.dimensions(t.rows.length,t.columns.length)),s.createElement(y.TableView,{table:t,onTypeChange:this.props.store.editorType===M.EditorType.Chart?function(n,r){e.props.store.dispatcher.dispatch(new c.Actions.ConvertColumnDataType(t.name,n,r))}:null}))):null),s.createElement("p",{className:"el-details"},t.displayName||t.name),t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(t,n){return s.createElement(T,{key:"t"+n,store:e.props.store,table:e.props.table,column:t})}))))},t}(s.Component);t.ColumnsView=S;var N=function(){};t.ColumnViewProps=N;var k=function(){};t.ColumnViewState=k;var T=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isSelected:null,isExpanded:!1},n}return o(t,e),t.prototype.renderDerivedColumns=function(){var e=this,t=this.props.column,n=m.type2DerivedColumns[t.type];return n?s.createElement("div",{className:"charticulator__dataset-view-derived-fields"},n.map((function(t){var n=l.Expression.functionCall(t.function,l.Expression.variable(e.props.column.name)).toString(),r=l.Expression.lambda(["x"],l.Expression.functionCall(t.function,l.Expression.fields(l.Expression.variable("x"),e.props.column.name))).toString(),o=t.type;return e.renderColumnControl(t.name,g.getSVGIcon(m.kind2Icon[t.metadata.kind]),n,r,o,null,t.metadata,void 0,n,t.displayName)}))):null},t.prototype.applyAggregation=function(e,t,n){var r=l.Expression.getDefaultAggregationFunction(t,n);return l.Expression.functionCall(r,l.Expression.parse(e)).toString()},t.prototype.renderColumnControl=function(e,t,n,r,o,a,l,p,y,I){var E,b=this;void 0===a&&(a=null);var v=function(){p&&d.popupController.popupAt((function(t){return s.createElement(A.PopupView,{key:e,context:t},s.createElement("div",null,s.createElement(f.DropdownListView,{selected:o,list:h.getConvertableDataKind(o).map((function(e){return{name:e.toString(),text:e.toString(),url:g.getSVGIcon(m.kind2Icon[e])}})),context:t,onClick:function(t){p(e,t)},onClose:function(){null==E||E.focus()}})))}),{anchor:E,alignX:A.PopupAlignment.Outer,alignY:A.PopupAlignment.StartInner})};return s.createElement("div",{tabIndex:0,key:e,className:"click-handler",ref:function(e){return E=e},onClick:v,onKeyPress:function(e){"Enter"===e.key&&v()}},s.createElement(u.DraggableElement,{key:n,className:h.classNames("charticulator__dataset-view-column",["is-active",this.state.isSelected==n]),onDragStart:function(){return b.setState({isSelected:n})},onDragEnd:function(){return b.setState({isSelected:null})},dragData:function(){return b.setState({isSelected:n}),new c.DragData.DataExpression(b.props.table,b.applyAggregation(n,o,l.kind),o,i(i({},l),{columnName:null!=I?I:e}),y?b.applyAggregation(y,C.DataType.String,l.kind):b.applyAggregation(n,o,l.kind))},renderDragElement:function(){return[s.createElement("span",{className:"dragging-table-cell"},n),{x:-10,y:-8}]}},s.createElement(u.SVGImageIcon,{url:t}),s.createElement("span",{className:"el-text"},null!=I?I:e),a))},t.prototype.render=function(){var e=this,t=this.props.column,n=this.renderDerivedColumns();return null!=n?s.createElement("div",null,this.renderColumnControl(t.name,g.getSVGIcon(m.kind2Icon[t.metadata.kind]),l.Expression.variable(t.name).toString(),l.Expression.lambda(["x"],l.Expression.fields(l.Expression.variable("x"),t.name)).toString(),t.type,s.createElement(u.ButtonFlat,{title:B.strings.dataset.showDerivedFields,stopPropagation:!0,url:this.state.isExpanded?g.getSVGIcon("ChevronDown"):g.getSVGIcon("ChevronLeft"),onClick:function(){e.setState({isExpanded:!e.state.isExpanded})}}),t.metadata,(function(n,r){t.metadata.kind=r,e.forceUpdate(),e.props.store.dispatcher.dispatch(new c.Actions.UpdatePlotSegments)}),l.Expression.variable(t.metadata.rawColumnName||t.name).toString(),t.displayName),this.state.isExpanded?n:null):this.renderColumnControl(t.name,g.getSVGIcon(m.kind2Icon[t.metadata.kind]),l.Expression.variable(t.name).toString(),l.Expression.lambda(["x"],l.Expression.fields(l.Expression.variable("x"),t.name)).toString(),t.type,null,t.metadata,(function(n,r){t.metadata.kind=r,e.props.store.dispatcher.dispatch(new c.Actions.UpdatePlotSegments),e.forceUpdate()}),l.Expression.variable(t.metadata.rawColumnName||t.name).toString(),t.displayName)},t}(s.Component);t.ColumnView=T},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartTemplate=void 0;var s=n(5),l=n(39),c=n(166),u=n(24),A=n(6),d=n(85),g=n(184),p=function(){function e(e){this.template=e,this.columnAssignment={},this.tableAssignment={}}return e.prototype.getDatasetSchema=function(){return this.template.tables},e.prototype.reset=function(){this.columnAssignment={},this.tableAssignment={}},e.prototype.assignTable=function(e,t){this.tableAssignment[e]=t},e.prototype.assignColumn=function(e,t,n){Object.prototype.hasOwnProperty.call(this.columnAssignment,e)||(this.columnAssignment[e]={}),this.columnAssignment[e][t]=n},e.prototype.getVariableMap=function(e){var t={};return this.columnAssignment[e]&&(t=r({},this.columnAssignment[e])),this.tableAssignment&&(t=r(r({},t),this.tableAssignment)),t},e.prototype.transformExpression=function(e,t){return s.Expression.parse(e).replace(s.Expression.variableReplacer(this.getVariableMap(t))).toString()},e.prototype.transformTextExpression=function(e,t){return s.Expression.parseTextExpression(e).replace(s.Expression.variableReplacer(this.getVariableMap(t))).toString()},e.prototype.transformGroupBy=function(e,t){return e?e.expression?{expression:this.transformExpression(e.expression,t)}:void 0:null},e.prototype.instantiate=function(e,t){var n,r,p,h,f,m,y=this;void 0===t&&(t=!0);var I=s.deepClone(this.template.specification),C=function(e){var t,n;if("chart-element"==e.kind){if(s.Prototypes.isType(e.chartElement.classID,"legend.custom"))(x=e.chartElement.mappings.mappingOptions).expression=E.transformExpression(x.expression,x.table);if(s.Prototypes.isType(e.chartElement.classID,"guide.guide")){var r=E.template.properties.filter((function(t){return t.objectID===e.chartElement._id&&t.target.attribute===d.GuideAttributeNames.value}))[0];if(r){var c={type:A.MappingType.value,value:r.default};e.chartElement.mappings.value=c}}if(s.Prototypes.isType(e.chartElement.classID,"plot-segment")){var u=e.chartElement,g=u.table;if(u.table=E.tableAssignment[g],u.filter&&(u.filter.categories&&(u.filter.categories.expression=E.transformExpression(u.filter.categories.expression,g)),u.filter.expression&&(u.filter.expression=E.transformExpression(u.filter.expression,g))),u.groupBy&&u.groupBy.expression&&(u.groupBy.expression=E.transformExpression(u.groupBy.expression,g)),u.properties.xData&&(u.properties.xData.expression&&(u.properties.xData.expression=E.transformExpression(u.properties.xData.expression,g)),u.properties.xData.rawExpression&&(u.properties.xData.rawExpression=E.transformExpression(u.properties.xData.rawExpression,g))),u.properties.yData&&(u.properties.yData.expression&&(u.properties.yData.expression=E.transformExpression(u.properties.yData.expression,g)),u.properties.yData.rawExpression&&(u.properties.yData.rawExpression=E.transformExpression(u.properties.yData.rawExpression,g))),u.properties.axis&&(u.properties.axis.expression&&(u.properties.axis.expression=E.transformExpression(u.properties.axis.expression,g)),u.properties.axis.rawExpression&&(u.properties.axis.rawExpression=E.transformExpression(u.properties.axis.rawExpression,g))),u.properties.sublayout){var p=null===(D=u.properties.sublayout.order)||void 0===D?void 0:D.expression;p&&(u.properties.sublayout.order.expression=E.transformExpression(p,g))}}if(s.Prototypes.isType(e.chartElement.classID,"links")){if("links.through"==e.chartElement.classID){var h=e.chartElement.properties;h.linkThrough.facetExpressions&&(h.linkThrough.facetExpressions=h.linkThrough.facetExpressions.map((function(e){return y.transformExpression(e,s.getById(y.template.specification.elements,h.linkThrough.plotSegment).table)})))}if("links.table"==e.chartElement.classID){var f=e.chartElement.properties;f.linkTable.table=E.tableAssignment[f.linkTable.table]}}}if("glyph"==e.kind&&(e.glyph.table=E.tableAssignment[e.glyph.table]),"mark"==e.kind&&s.Prototypes.isType(e.mark.classID,"mark.data-axis"))try{var m=e.glyph._id,C=i(l.forEachObject(I)).find((function(e){return"chart-element"==e.kind&&s.Prototypes.isType(e.chartElement.classID,"plot-segment")&&e.chartElement.glyph===m})),b=e.mark.properties.dataExpressions,v=Object.keys(E.tableAssignment).find((function(e){return y.tableAssignment[e]===C.chartElement.table}))||C.chartElement.table;b.forEach((function(e){e.expression=y.transformExpression(e.expression,v)}))}catch(e){console.error(e)}var B=e.object.mappings;try{for(var M=(t=void 0,a(l.forEachMapping(B))),D=M.next();!D.done;D=M.next()){var x,w=o(D.value,2)[1];if(w.type==A.MappingType.scale)(x=w).expression=E.transformExpression(x.expression,x.table),x.table=E.tableAssignment[x.table];if(w.type==A.MappingType.text){var Q=w;Q.textExpression=E.transformTextExpression(Q.textExpression,Q.table),Q.table=E.tableAssignment[Q.table]}}}catch(e){t={error:e}}finally{try{D&&!D.done&&(n=M.return)&&n.call(M)}finally{if(t)throw t.error}}},E=this;try{for(var b=a(l.forEachObject(I)),v=b.next();!v.done;v=b.next()){C(v.value)}}catch(e){n={error:e}}finally{try{v&&!v.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}if(!t)return{chart:I,defaultAttributes:this.template.defaultAttributes};var B=new s.Prototypes.Dataflow.DataflowManager(e),M=function(e,t,n){var r=s.Expression.parse(e),o=B.getTable(t);return(n?new c.CompiledGroupBy(n,B.cache).groupBy(o):s.makeRange(0,o.rows.length).map((function(e){return[e]}))).map((function(e){return r.getValue(o.getGroupedContext(e))}))},D=function(e){var t,n,r=l.findObjectById(I,e.objectID);if(e.expression){var o=x.transformExpression(e.expression.expression,e.dataSource.table);l.setProperty(r,e.expression.property,o)}if(e.axis){var i=e.axis;if("default"==i.type)return"continue";var c=x.transformExpression(e.axis.expression,e.dataSource.table),A=l.getProperty(r,i.property);if(A.expression=c,e.autoDomainMin||e.autoDomainMax){var d=M(c,x.tableAssignment[e.dataSource.table],x.transformGroupBy(e.dataSource.groupBy,e.dataSource.table));if(e.axis.additionalExpressions)try{for(var p=(t=void 0,a(e.axis.additionalExpressions)),h=p.next();!h.done;h=p.next()){var C=h.value;o=x.transformExpression(C,e.dataSource.table);d=d.concat(M(o,x.tableAssignment[e.dataSource.table],x.transformGroupBy(e.dataSource.groupBy,e.dataSource.table)))}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}if("categorical"==i.type){var E=new s.Scale.CategoricalScale;E.inferParameters(d,e.axis.orderMode||u.OrderMode.order),A.categories=new Array(E.domain.size);var b=new Array(E.domain.size);if(E.domain.forEach((function(e,t){b[e]=t})),A.order&&A.orderMode===u.OrderMode.order){A.order=A.order.filter((function(e){return E.domain.has(e)}));var v=b.filter((function(e){return!A.order.find((function(t){return t===e}))}));A.categories=new Array(A.order.length),A.order.forEach((function(e,t){A.categories[t]=e})),A.categories=A.categories.concat(v),A.order=A.order.concat(v)}else A.categories=new Array(E.domain.size),E.domain.forEach((function(e,t){A.categories[e]=t}));if(A.allCategories=s.deepClone(A.categories),A.allowScrolling){var B=Math.floor((A.categories.length-A.windowSize)/100*A.scrollPosition);A.categories=A.categories.slice(B,B+A.windowSize)}}else if("numerical"==i.type){if((D=new s.Scale.LinearScale).inferParameters(d),e.autoDomainMin&&(A.dataDomainMin=D.domainMin,A.domainMin=D.domainMin),e.autoDomainMax&&(A.dataDomainMax=D.domainMax,A.domainMax=D.domainMax),A.allowScrolling){B=g.scaleLinear().domain([0,100]).range([A.dataDomainMin,A.dataDomainMax])(A.scrollPosition);A.domainMin=B,A.domainMax=B+A.windowSize}else e.autoDomainMin&&(A.dataDomainMin=D.domainMin),e.autoDomainMax&&(A.dataDomainMax=D.domainMax);i.defineCategories&&(A.categories=s.defineCategories(d))}}}if(e.scale&&(null==e.autoDomainMin&&null!=e.disableAutoMin&&(e.autoDomainMin=!e.disableAutoMin),null==e.autoDomainMax&&null!=e.disableAutoMax&&(e.autoDomainMax=!e.disableAutoMax),e.autoDomainMin||e.autoDomainMax)){d=(D=e.scale).expressions.map((function(t){return y.transformExpression(t,e.dataSource.table)})).map((function(t){return M(t,y.tableAssignment[e.dataSource.table],y.transformGroupBy(e.dataSource.groupBy,e.dataSource.table))})).reduce((function(e,t){return e.concat(t)}),[]);var D,w=s.Prototypes.ObjectClasses.Create(null,r,{attributes:{}});"scale.categorical<string,color>"===r.classID?w.inferParameters(d,{reuseRange:!0,extendScaleMin:!0,extendScaleMax:!0}):w.inferParameters(d,{extendScaleMax:e.autoDomainMax,extendScaleMin:e.autoDomainMin,reuseRange:!0,rangeNumber:[null===(f=r.mappings.rangeMin)||void 0===f?void 0:f.value,null===(m=r.mappings.rangeMax)||void 0===m?void 0:m.value]})}if(e.nestedChart){var Q=e.nestedChart,S={};Object.keys(Q.columnNameMap).forEach((function(t){var n=y.columnAssignment[e.dataSource.table][t];S[n]=Q.columnNameMap[t]})),l.setProperty(r,"columnNameMap",S)}},x=this;try{for(var w=a(this.template.inference),Q=w.next();!Q.done;Q=w.next()){D(Q.value)}}catch(e){p={error:e}}finally{try{Q&&!Q.done&&(h=w.return)&&h.call(w)}finally{if(p)throw p.error}}return{chart:I,defaultAttributes:this.template.defaultAttributes}},e.SetChartProperty=function(e,t,n,r){var o=s.Prototypes.findObjectById(e,t);o&&s.Prototypes.setProperty(o,n,r)},e.GetChartProperty=function(e,t,n){var r=s.Prototypes.findObjectById(e,t);return r?s.Prototypes.getProperty(r,n):null},e.SetChartAttributeMapping=function(e,t,n,r){var o=s.Prototypes.findObjectById(e,t);o&&(o.mappings[n]=r)},e.GetChartAttributeMapping=function(e,t,n){var r=s.Prototypes.findObjectById(e,t);return r?r.mappings[n]:null},e}();t.ChartTemplate=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartContainer=t.ChartContainerEvent=t.ChartContainerComponent=void 0;var a,s=n(0),l=n(90),c=n(5),u=n(177),A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={width:null!=n.props.defaultWidth?n.props.defaultWidth:900,height:null!=n.props.defaultHeight?n.props.defaultHeight:900,selection:null,localization:null},n.handleGlyphClick=function(e,t){null==e?n.clearSelection(!0):n.setSelection(e.table,e.rowIndices,t.shiftKey||t.ctrlKey||t.metaKey,!0)},n.handleGlyphContextMenuClick=function(e,t){n.props.onMouseContextMenuClickGlyph&&n.props.onMouseContextMenuClickGlyph(e,t)},n.handleGlyphMouseEnter=function(e){n.props.onMouseEnterGlyph&&n.props.onMouseEnterGlyph(e)},n.handleGlyphMouseLeave=function(e){n.props.onMouseLeaveGlyph&&n.props.onMouseLeaveGlyph(e)},n}return o(t,e),t.prototype.setSelection=function(e,t,n,r){var o,a;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new Set(t);if(n&&this.state.selection&&this.state.selection.table==e)try{for(var l=i(this.state.selection.indices),c=l.next();!c.done;c=l.next()){var u=c.value;s.add(u)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}this.setState({selection:{table:e,indices:s,isSelected:function(t,n){return e==t&&n.find((function(e){return s.has(e)}))>=0}}}),r&&this.props.onSelectionChange&&this.props.onSelectionChange({table:e,rowIndices:Array.from(s)})},t.prototype.clearSelection=function(e){void 0===e&&(e=!1),this.setState({selection:null}),e&&this.props.onSelectionChange&&this.props.onSelectionChange(null)},t.prototype.resize=function(e,t){this.setState({width:e,height:t})},t.prototype.getProperty=function(e,t){return this.component.getProperty(e,t)},t.prototype.setProperty=function(e,t,n){return this.component.setProperty(e,t,n)},t.prototype.getAttributeMapping=function(e,t){return this.component.getAttributeMapping(e,t)},t.prototype.setAttributeMapping=function(e,t,n){return this.component.setAttributeMapping(e,t,n)},t.prototype.render=function(){var e=this;return s.createElement(u.ChartComponent,{ref:function(t){return e.component=t},chart:this.props.chart,dataset:this.props.dataset,defaultAttributes:this.props.defaultAttributes,width:this.state.width,height:this.state.height,rootElement:"svg",selection:this.state.selection,onGlyphClick:this.handleGlyphClick,onGlyphMouseEnter:this.handleGlyphMouseEnter,onGlyphMouseLeave:this.handleGlyphMouseLeave,onGlyphContextMenuClick:this.handleGlyphContextMenuClick,renderEvents:this.props.renderEvents})},t}(s.Component);t.ChartContainerComponent=A,function(e){e.Selection="selection",e.MouseEnter="mouseenter",e.MouseLeave="mouseleave",e.ContextMenu="contextmenu"}(a=t.ChartContainerEvent||(t.ChartContainerEvent={}));var d=function(e){function t(t,n,r,o,i){var a,s,l,u=e.call(this)||this;return u.instance=t,u.dataset=n,u.renderEvents=r,u.localizaiton=o,u.utcTimeZone=i,u.width=1200,u.height=800,u.chart=t.chart,u.defaultAttributes=t.defaultAttributes,c.setFormatOptions({currency:null!==(a=[null==o?void 0:o.currency,""])&&void 0!==a?a:c.defaultCurrency,grouping:c.defaultDigitsGroup,decimal:null!==(s=null==o?void 0:o.decemalDelimiter)&&void 0!==s?s:c.defaultNumberFormat.decimal,thousands:null!==(l=null==o?void 0:o.thousandsDelimiter)&&void 0!==l?l:c.defaultNumberFormat.decimal}),c.setTimeZone(i),u}return o(t,e),t.prototype.resize=function(e,t){this.component&&this.component.resize(e,t)},t.prototype.addSelectionListener=function(e){return this.addListener(a.Selection,e)},t.prototype.addContextMenuListener=function(e){return this.addListener(a.ContextMenu,e)},t.prototype.addMouseEnterListener=function(e){return this.addListener(a.MouseEnter,e)},t.prototype.addMouseLeaveListener=function(e){return this.addListener(a.MouseLeave,e)},t.prototype.setSelection=function(e,t){this.component.setSelection(e,t)},t.prototype.clearSelection=function(){this.component.clearSelection()},t.prototype.getProperty=function(e,t){return this.component.getProperty(e,t)},t.prototype.setProperty=function(e,t,n){return this.component.setProperty(e,t,n)},t.prototype.getAttributeMapping=function(e,t){return this.component.getAttributeMapping(e,t)},t.prototype.setAttributeMapping=function(e,t,n){return this.component.setAttributeMapping(e,t,n)},t.prototype.setChart=function(e){this.chart=e,l.render(this.reactMount(this.width,this.height),this.container)},t.setFormatOptions=function(e){c.setFormatOptions(e)},t.setUtcTimeZone=function(e){c.setTimeZone(e)},t.prototype.reactMount=function(e,t){var n=this;return void 0===e&&(e=1200),void 0===t&&(t=800),this.width=e,this.height=t,s.createElement(A,{ref:function(e){return n.component=e},chart:this.chart,dataset:this.dataset,defaultWidth:e,defaultHeight:t,defaultAttributes:this.defaultAttributes,onSelectionChange:function(e){null==e?n.emit(a.Selection):n.emit(a.Selection,e.table,e.rowIndices)},onMouseEnterGlyph:function(e){n.emit(a.MouseEnter,e.table,e.rowIndices)},onMouseLeaveGlyph:function(e){n.emit(a.MouseLeave,e.table,e.rowIndices)},onMouseContextMenuClickGlyph:function(e,t){n.emit(a.ContextMenu,e.table,e.rowIndices,t)},renderEvents:this.renderEvents})},t.prototype.mount=function(e,t,n){void 0===t&&(t=1200),void 0===n&&(n=800),this.container&&this.unmount(),"string"==typeof e&&(e=document.getElementById(e)),this.container=e,l.render(this.reactMount(t,n),e)},t.prototype.unmount=function(){this.container&&(l.unmountComponentAtNode(this.container),this.container=null)},t}(c.EventEmitter);t.ChartContainer=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.SingleMarkView=t.MarkEditorView=void 0;var l=n(0),c=n(27),u=n(5),A=n(19),d=n(69),g=n(37),p=n(9),h=n(40),f=n(268),m=n(269),y=n(270),I=n(271),C=n(585),E=n(272),b=n(32),v=n(85),B=n(7),M=n(6),D=n(39),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subs=[],t.state={currentCreation:null,width:300,height:300},t.resize=function(){var e=t.refContainer.getBoundingClientRect();t.setState({width:e.width,height:null!=t.props.height?t.props.height:e.height})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.store;this.subs.push(t.addListener(g.AppStore.EVENT_GRAPHICS,(function(){return e.forceUpdate()}))),this.subs.push(t.addListener(g.AppStore.EVENT_SELECTION,(function(){return e.forceUpdate()}))),this.subs.push(t.addListener(g.AppStore.EVENT_CURRENT_TOOL,(function(){e.setState({currentCreation:t.currentTool,currentCreationOptions:t.currentToolOptions})}))),this.resizeListenerHandle=c.resizeListeners.addListener(this.refContainer,this.resize),this.resize()},t.prototype.componentWillUnmount=function(){var e,t;try{for(var n=i(this.subs),r=n.next();!r.done;r=n.next()){r.value.remove()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.subs=[],c.resizeListeners.removeListener(this.refContainer,this.resizeListenerHandle)},t.prototype.getGlyphState=function(e){var t=this.store,n=u.indexOf(t.chart.elements,(function(t){return u.Prototypes.isType(t.classID,"plot-segment")&&t.glyph==e._id}));if(-1==n)return null;var r=t.chartState.elements[n],o=t.getSelectedGlyphIndex(t.chart.elements[n]._id);return o<0?r.glyphs[0]:r.glyphs[o]},t.prototype.render=function(){var e=this,t=this.store.currentGlyph;return(null==t||this.store.chart.glyphs.indexOf(t)<0)&&(t=this.store.chart.glyphs[0]),l.createElement("div",{className:"mark-editor-view",ref:function(t){return e.refContainer=t}},t?l.createElement(w,{ref:function(t){e.refSingleMarkView=t},glyph:t,glyphState:this.getGlyphState(t),parent:this,width:this.state.width,height:this.state.height-30}):l.createElement("div",{className:"mark-editor-single-view"},l.createElement("div",{className:"mark-view-container",style:{width:this.state.width+"px",height:this.state.height-24+"px"}},l.createElement("div",{className:"mark-view-container-notice"},"No glyph to edit"))),l.createElement("div",{className:"canvas-controls"},l.createElement("div",{className:"canvas-controls-left"},l.createElement("span",{className:"glyph-tabs"},this.store.chart.glyphs.map((function(n){return l.createElement("span",{tabIndex:0,className:p.classNames("el-item",["is-active",n==t]),key:n._id,onClick:function(){e.dispatch(new A.Actions.SelectGlyph(null,n))},onKeyPress:function(t){"Enter"===t.key&&e.dispatch(new A.Actions.SelectGlyph(null,n))}},n.properties.name)}))),l.createElement(h.Button,{icon:"general/plus",title:B.strings.canvas.newGlyph,onClick:function(){e.dispatch(new A.Actions.AddGlyph("glyph.rectangle"))}})),l.createElement("div",{className:"canvas-controls-right"},l.createElement(h.Button,{icon:"ZoomIn",title:B.strings.canvas.zoomIn,onClick:function(){e.refSingleMarkView.doZoom(1.1)}}),l.createElement(h.Button,{icon:"ZoomOut",title:B.strings.canvas.zoomOut,onClick:function(){e.refSingleMarkView.doZoom(1/1.1)}}),l.createElement(h.Button,{icon:"ZoomToFit",title:B.strings.canvas.zoomAuto,onClick:function(){e.refSingleMarkView.doZoomAuto()}}),l.createElement(h.Button,{icon:"rect-zoom",title:"Rectangle zoom",onClick:function(){e.dispatch(new A.Actions.SetCurrentTool("rectangle-zoom"))}}))))},t.prototype.getCurrentCreation=function(){return this.state.currentCreation},t.prototype.getCurrentCreationOptions=function(){return this.state.currentCreationOptions},t}(b.ContextedComponent);t.MarkEditorView=x;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(),t.tokens=[],t}return o(t,e),t.prototype.getDefaultState=function(){return{showIndicator:!1,showIndicatorActive:!1,dataForDropZones:!1,selectedElement:null,snappingCandidates:null,zoom:{centerX:this.props.width/2,centerY:this.props.height/2,scale:1}}},t.prototype.doZoom=function(e){var t=this.state.zoom,n=t.scale,r=t.centerX,o=t.centerY,i=u.Geometry.unapplyZoom(this.state.zoom,{x:this.props.width/2,y:this.props.height/2}),a=n*e;a=Math.min(20,Math.max(.05,a)),this.setState({zoom:{centerX:r+(n-a)*i.x,centerY:o+(n-a)*i.y,scale:a}})},t.prototype.doCustomZoom=function(e,t,n,r){var o=this.props.width/2-e,i=this.props.height/2+t,a=this.props.width>this.props.height?this.props.height/r:this.props.width/n;this.setState({zoom:{centerX:o,centerY:i,scale:1}}),this.doZoom(a)},t.prototype.doZoomAuto=function(){var e=this.getFitViewZoom(this.props.width,this.props.height);e&&this.setState({zoom:e})},t.prototype.getFitViewZoom=function(e,t){var n,r,o=this.props.glyphState;if(!o)return null;var a=this.store.chartManager,l=[];try{for(var c=i(o.marks),A=c.next();!A.done;A=c.next()){var d=A.value,g=a.getMarkClass(d).getBoundingBox();if(g){var p=[],h=[];switch(g.type){case"anchored-rectangle":var f=g,m=Math.cos(u.Geometry.degreesToRadians(f.rotation)),y=Math.sin(u.Geometry.degreesToRadians(f.rotation));p=[f.anchorX+f.cx+f.width/2*m+f.height/2*y,f.anchorX+f.cx-f.width/2*m+f.height/2*y,f.anchorX+f.cx+f.width/2*m-f.height/2*y,f.anchorX+f.cx-f.width/2*m-f.height/2*y],h=[f.anchorY+f.cy+f.width/2*-y+f.height/2*m,f.anchorY+f.cy-f.width/2*-y+f.height/2*m,f.anchorY+f.cy+f.width/2*-y-f.height/2*m,f.anchorY+f.cy-f.width/2*-y-f.height/2*m];break;case"rectangle":p=[(f=g).cx+f.width/2,f.cx-f.width/2],h=[f.cy+f.height/2,f.cy-f.height/2];break;case"circle":var I=g;p=[I.cx-I.radius,I.cx+I.radius],h=[I.cy-I.radius,I.cy+I.radius];break;case"line":var C=g;p=[C.x1,C.x2],h=[C.y1,C.y2]}p.length>0&&l.push([Math.min.apply(Math,s(p)),Math.max.apply(Math,s(p)),Math.min.apply(Math,s(h)),Math.max.apply(Math,s(h))])}}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(0==l.length){var E=0,b=0,v=o.attributes,B=v.x1,M=v.x2,D=v.y1,x=v.y2,w=.4,Q=e/(1+Math.abs(M-B)*(1+w)),S=t/(1+Math.abs(x-D)*(1+w));return{centerX:e/2-E*(N=Math.min(Q,S)),centerY:t/2+b*N,scale:N}}var N;E=((B=Math.min.apply(Math,s(l.map((function(e){return e[0]})))))+(M=Math.max.apply(Math,s(l.map((function(e){return e[1]}))))))/2,b=((D=Math.min.apply(Math,s(l.map((function(e){return e[2]})))))+(x=Math.max.apply(Math,s(l.map((function(e){return e[3]}))))))/2,w=.4,Q=e/(1+Math.abs(M-B)*(1+w)),S=t/(1+Math.abs(x-D)*(1+w));return{centerX:e/2-E*(N=Math.min(Q,S)),centerY:t/2+b*N,scale:N}},t.prototype.doAutoFit=function(){var e=this.getFitViewZoom(this.props.width,this.props.height);e&&this.setState({zoom:e})},t.prototype.scheduleAutoFit=function(){var e=this,t=this.store.addListener(g.AppStore.EVENT_GRAPHICS,(function(){e.doAutoFit(),t.remove()}))},t.prototype.getRelativePoint=function(e){var t=this.refs.canvas.getBoundingClientRect();return{x:e.x-t.left,y:e.y-t.top}},t.prototype.onDragEnter=function(e){var t=this;this.dispatch(new A.Actions.SetCurrentTool(null));var n=e.data;return!!(n instanceof A.DragData.ObjectType&&(u.Prototypes.isType(n.classID,"mark")||u.Prototypes.isType(n.classID,"guide")))&&(this.setState({showIndicatorActive:!0}),e.onLeave((function(){t.setState({showIndicatorActive:!1})})),e.onDrop((function(e){e=t.getRelativePoint(e);var r={},o=JSON.parse(n.options);for(var i in t.scheduleAutoFit(),o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);t.dispatch(new A.Actions.AddMarkToGlyph(t.props.glyph,n.classID,u.Geometry.unapplyZoom(t.state.zoom,e),{},r))})),!0)},t.prototype.componentDidMount=function(){var e=this;this.hammer=new Hammer(this.refs.canvasInteraction),this.hammer.add(new Hammer.Tap);var t=new Hammer.Pan,n=new Hammer.Pinch;n.recognizeWith(t),this.hammer.add([n]),this.hammer.on("tap",(function(){e.dispatch(new A.Actions.SelectGlyph(null,e.props.glyph))}));var r,o,i,a,s=null,l=0,d=0,g=null,p=1;this.hammer.on("pinchstart panstart",(function(t){g=u.Geometry.unapplyZoom(e.state.zoom,e.getRelativePoint({x:t.center.x,y:t.center.y})),s=e.state.zoom.centerX,l=e.state.zoom.centerY,d=e.state.zoom.scale,r=0,o=0,i=0,a=0,p=1})),this.hammer.on("pinch pan",(function(t){"pan"==t.type&&(t.scale=p),p=t.scale;var n=d*t.scale;n=Math.min(20,Math.max(.05,n)),e.setState({zoom:{centerX:s+t.deltaX-r+(d-n)*g.x,centerY:l+t.deltaY-o+(d-n)*g.y,scale:n}}),i=t.deltaX,a=t.deltaY})),this.refs.canvas.onwheel=function(t){var n=u.Geometry.unapplyZoom(e.state.zoom,e.getRelativePoint({x:t.pageX,y:t.pageY})),c=e.state.zoom,A=c.centerX,g=c.centerY,p=c.scale,h=-t.deltaY;t.deltaMode==t.DOM_DELTA_LINE&&(h*=33.3);var f=p*Math.exp(h/1e3);f=Math.min(20,Math.max(.05,f)),e.setState({zoom:{centerX:A+(p-f)*n.x,centerY:g+(p-f)*n.y,scale:f}}),s=e.state.zoom.centerX,l=e.state.zoom.centerY,r=i,o=a,d=e.state.zoom.scale,t.stopPropagation(),t.preventDefault()},c.dragController.registerDroppable(this,this.refs.canvas),this.tokens.push(c.dragController.addListener("sessionstart",(function(){var t=c.dragController.getSession();t&&t.data instanceof A.DragData.DropZoneData&&e.setState({dataForDropZones:t.data}),t&&t.data instanceof A.DragData.ObjectType&&(u.Prototypes.isType(t.data.classID,"mark")||u.Prototypes.isType(t.data.classID,"guide"))&&e.setState({showIndicator:!0})}))),this.tokens.push(c.dragController.addListener("sessionend",(function(){e.setState({dataForDropZones:!1,showIndicator:!1})})))},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),c.dragController.unregisterDroppable(this),this.tokens.forEach((function(e){return e.remove()})),this.tokens=[]},t.prototype.renderElementDefs=function(e,t){var n=this.store,r=n.chartManager.getMarkClass(t).getGraphics(new u.Graphics.CartesianCoordinates,{x:0,y:0},0,n.chartManager);return r?d.renderSVGDefs(r):null},t.prototype.renderElement=function(e,t){var n=this.store,r=n.chartManager.getMarkClass(t).getGraphics(new u.Graphics.CartesianCoordinates,{x:0,y:0},0,n.chartManager);return r?d.renderGraphicalElementSVG(r):null},t.prototype.renderDropIndicator=function(){return this.state.showIndicator?l.createElement("rect",{x:0,y:0,width:this.props.width,height:this.props.height,className:p.classNames("drop-indicator",["active",this.state.showIndicatorActive])}):null},t.prototype.getSnappingGuides=function(){var e,t,n,r=this.store,o=this.props.glyphState;if(!o)return[];n=r.chartManager.getGlyphClass(o).getAlignmentGuides().map((function(e){return{element:null,guide:e}}));var s=function(e,t){var o=r.chartManager.getMarkClass(t);n=n.concat(o.getSnappingGuides().map((function(t){return{element:e,guide:t}})))};try{for(var l=i(u.zip(this.props.glyph.marks,o.marks)),c=l.next();!c.done;c=l.next()){var A=a(c.value,2);s(A[0],A[1])}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n},t.prototype.renderHandles=function(){return l.createElement("g",null,this.renderElementHandles())},t.prototype.renderBoundsGuides=function(){var e=this;return this.getSnappingGuides().map((function(t,n){var r=t.guide;if(r.visible){if("x"==r.type){var o=r;return l.createElement("line",{className:p.classNames("mark-guide",["coordinator",t.guide.visualType===D.SnappingGuidesVisualTypes.Coordinator],["single",t.guide.visualType===D.SnappingGuidesVisualTypes.Guide]),key:"k"+n,x1:o.value*e.state.zoom.scale+e.state.zoom.centerX,x2:o.value*e.state.zoom.scale+e.state.zoom.centerX,y1:0,y2:e.props.height})}if("y"==r.type){o=r;return l.createElement("line",{className:p.classNames("mark-guide",["coordinator",t.guide.visualType===D.SnappingGuidesVisualTypes.Coordinator],["single",t.guide.visualType===D.SnappingGuidesVisualTypes.Guide]),key:"k"+n,x1:0,x2:e.props.width,y1:-o.value*e.state.zoom.scale+e.state.zoom.centerY,y2:-o.value*e.state.zoom.scale+e.state.zoom.centerY})}if("point"==r.type){var i=r;return l.createElement(l.Fragment,null,l.createElement("circle",{className:"mark-guide",key:"ck"+n,cx:i.angle*e.state.zoom.scale+e.state.zoom.centerX,cy:-i.radius*e.state.zoom.scale+e.state.zoom.centerY,r:Math.abs(3*e.state.zoom.scale)}),l.createElement("circle",{className:"mark-guide",key:"ck"+n+"display",cx:i.cx*e.state.zoom.scale+e.state.zoom.centerX,cy:-i.cy*e.state.zoom.scale+e.state.zoom.centerY,r:Math.abs(i.visibleRadius*e.state.zoom.scale)}),l.createElement("line",{key:"lk"+n+"display",className:"mark-guide",x1:i.cx*e.state.zoom.scale+e.state.zoom.centerX,y1:-i.cy*e.state.zoom.scale+e.state.zoom.centerY,x2:i.angle*e.state.zoom.scale+e.state.zoom.centerX,y2:-i.radius*e.state.zoom.scale+e.state.zoom.centerY}))}}}))},t.prototype.renderMarkHandles=function(){var e=this,t=this.store,n=this.props.glyphState,r=t.chartManager.getGlyphClass(n).getHandles();return r.map((function(t,n){return l.createElement(I.HandlesView,{key:"m"+n,handles:r,zoom:e.state.zoom,active:!1,onDragStart:function(t,n){var r=new E.MoveSnappingSession(t);n.onDrag((function(e){r.handleDrag(e)})),n.onEnd((function(t){var n=r.getUpdates(r.handleEnd(t));n&&e.dispatch(new A.Actions.UpdateGlyphAttribute(e.props.glyph,n))}))}})}))},t.prototype.renderAnchorHandles=function(){var e=this;return u.zipArray(this.props.glyph.marks,this.props.glyphState.marks).filter((function(e){return"mark.anchor"==e[0].classID})).map((function(t){var n=a(t,2),r=n[0],o=n[1],i=e.store.chartManager.getMarkClass(o).getHandles();return l.createElement(I.HandlesView,{key:"m"+r._id,handles:i,zoom:e.state.zoom,active:e.state.selectedElement==r,onDragStart:function(t,n){var i=e.getSnappingGuides(),a=new C.MarkSnappingSession(i,e.props.glyph,r,o,t,10/e.state.zoom.scale,t.options&&t.options.snapToClosestPoint);n.onDrag((function(t){a.handleDrag(t),e.setState({snappingCandidates:a.getCurrentCandidates()})})),n.onEnd((function(t){e.setState({snappingCandidates:null});var n=a.getActions(a.handleEnd(t));n&&e.dispatch(n)}))}})}))},t.prototype.renderElementHandles=function(){var e=this;return u.zipArray(this.props.glyph.marks,this.props.glyphState.marks).filter((function(e){return"mark.anchor"!=e[0].classID})).sort((function(t,n){var r=e.store.currentSelection instanceof g.MarkSelection&&e.store.currentSelection.mark==t[0],o=e.store.currentSelection instanceof g.MarkSelection&&e.store.currentSelection.mark==n[0];return r?1:o?-1:e.props.glyph.marks.indexOf(t[0])-e.props.glyph.marks.indexOf(n[0])})).map((function(t){var n=a(t,2),r=n[0],o=n[1],s=e.store.chartManager.getMarkClass(o),c=e.store.currentSelection instanceof g.MarkSelection&&e.store.currentSelection.mark==r;if(!c){var u=s.getBoundingBox();if(u)return l.createElement(f.BoundingBoxView,{key:"m"+r._id,zoom:e.state.zoom,boundingBox:u,onClick:function(){e.dispatch(new A.Actions.SelectMark(null,e.props.glyph,r))}})}var d=s.getHandles(),p=s.getBoundingBox();return l.createElement("g",{key:"m"+r._id},p?l.createElement(f.BoundingBoxView,{zoom:e.state.zoom,boundingBox:p,active:!0}):null,l.createElement(I.HandlesView,{handles:d,zoom:e.state.zoom,active:!1,visible:c,isAttributeSnapped:function(t){var n,o;if(null!=r.mappings[t])return!0;try{for(var a=i(e.props.glyph.constraints),s=a.next();!s.done;s=a.next()){var l=s.value;if("snap"==l.type){if(l.attributes.element==r._id&&l.attributes.attribute==t)return!0;if(l.attributes.targetElement==r._id&&l.attributes.targetAttribute==t)return!0}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return!1},onDragStart:function(t,n){var i=e.getSnappingGuides(),a=new C.MarkSnappingSession(i,e.props.glyph,r,o,t,10/e.state.zoom.scale,t.options&&t.options.snapToClosestPoint);n.onDrag((function(t){a.handleDrag(t),e.setState({snappingCandidates:a.getCurrentCandidates()})})),n.onEnd((function(t){e.setState({snappingCandidates:null});var n=a.getActions(a.handleEnd(t));n&&e.dispatch(n)}))}}))}))},t.prototype.renderDropZoneForElement=function(e,t,n){var r=this;return this.store.chartManager.getMarkClass(n).getDropZones().map((function(n,o){if(n.accept){if(n.accept.table&&e.table.name!=n.accept.table)return null;if(n.accept.kind&&e.metadata.kind!=n.accept.kind)return null}return l.createElement(y.DropZoneView,{key:"m"+o,onDragEnter:function(e){if(e instanceof A.DragData.DataExpression){if(n.accept){if(n.accept.table&&e.table.name!=n.accept.table)return null;if(n.accept.kind&&e.metadata.kind!=n.accept.kind)return null}if(n.dropAction.scaleInference)return function(o,i){return n.dropAction.scaleInference.hints||(n.dropAction.scaleInference.hints={}),n.dropAction.scaleInference.hints.newScale=i.shiftKey,r.dispatch(new A.Actions.MapDataToMarkAttribute(r.props.glyph,t,n.dropAction.scaleInference.attribute,n.dropAction.scaleInference.attributeType,e.expression,e.valueType,e.metadata,n.dropAction.scaleInference.hints,e.table.name)),!0};if(n.dropAction.axisInference)return function(){return r.dispatch(new A.Actions.BindDataToAxis(t,n.dropAction.axisInference.property,n.dropAction.axisInference.appendToProperty,e,!1)),!0}}},zone:n,zoom:r.state.zoom})}))},t.prototype.renderSnappingGuidesLabels=function(){var e,t,n,r,o=this,s=[];try{for(var c=i(u.zip(this.props.glyph.marks,this.props.glyphState.marks)),A=c.next();!A.done;A=c.next()){var d=a(A.value,2)[1],g=this.store.chartManager.getMarkClass(d).getSnappingGuides();try{for(var p=(n=void 0,i(g)),h=p.next();!h.done;h=p.next()){var f=h.value;"label"!=f.type&&"point"!=f.type||s.push(f)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{A&&!A.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return 0==s.length?null:l.createElement("g",null,s.map((function(e,t){switch(e.type){case"point":var n=e;return l.createElement(l.Fragment,null,l.createElement("circle",{className:"snapping-guide",key:"k"+t,cx:n.angle*o.state.zoom.scale+o.state.zoom.centerX,cy:-n.radius*o.state.zoom.scale+o.state.zoom.centerY,r:Math.abs(5*o.state.zoom.scale)}));case"label":var r=e,i=r.x*o.state.zoom.scale+o.state.zoom.centerX,a=-r.y*o.state.zoom.scale+o.state.zoom.centerY;return l.createElement("g",{transform:"translate("+i+","+a+")",className:"snapping-guide-label",key:t},l.createElement("circle",{cx:0,cy:0,r:2}),l.createElement("text",{x:5,y:5,transform:"rotate(45)"},r.text))}})))},t.prototype.renderSnappingGuides=function(){var e=this,t=this.state.snappingCandidates;return t&&0!=t.length?t.map((function(t,n){var r="m"+n;switch(t.guide.type){case"x":var o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",x1:o.value*e.state.zoom.scale+e.state.zoom.centerX,x2:o.value*e.state.zoom.scale+e.state.zoom.centerX,y1:0,y2:e.props.height});case"y":o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",y1:-o.value*e.state.zoom.scale+e.state.zoom.centerY,y2:-o.value*e.state.zoom.scale+e.state.zoom.centerY,x1:0,x2:e.props.width})}})):null},t.prototype.renderMarkGuides=function(){var e=this;return this.store.chartManager.getGlyphClass(this.props.glyphState).getAlignmentGuides().map((function(t,n){if("x"==t.type){var r=t;return l.createElement("line",{className:"mark-guide",key:"k"+n,x1:r.value*e.state.zoom.scale+e.state.zoom.centerX,x2:r.value*e.state.zoom.scale+e.state.zoom.centerX,y1:0,y2:e.props.height})}if("y"==t.type){r=t;return l.createElement("line",{className:"mark-guide",key:"k"+n,y1:-r.value*e.state.zoom.scale+e.state.zoom.centerY,y2:-r.value*e.state.zoom.scale+e.state.zoom.centerY,x1:0,x2:e.props.width})}}))},t.prototype.renderAnchor=function(){var e=this.props,t=e.glyph,n=e.glyphState,r=u.indexOf(t.marks,(function(e){return"mark.anchor"==e.classID})),o={x:n.marks[r].attributes.x,y:-n.marks[r].attributes.y};return o=u.Geometry.applyZoom(this.state.zoom,o),l.createElement("path",{d:"M"+(o.x-5)+","+o.y+"L"+o.x+","+(o.y-5)+"L"+(o.x+5)+","+o.y+"L"+o.x+","+(o.y+5)+"Z",className:"mark-anchor"})},t.prototype.renderCreatingComponent=function(){var e=this,t=this.props.parent.getCurrentCreation(),n=this.props.parent.getCurrentCreationOptions();if(null==t)return null;var r=u.Prototypes.ObjectClasses.GetMetadata(t);if(r&&r.creatingInteraction){var o=t;return l.createElement(m.CreatingComponentFromCreatingInteraction,{width:this.props.width,height:this.props.height,zoom:this.state.zoom,guides:this.getSnappingGuides(),description:r.creatingInteraction,onCreate:function(t,r){e.dispatch(new A.Actions.SetCurrentTool(null));var i=JSON.parse(n);for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a]);e.dispatch(new A.Actions.AddMarkToGlyph(e.props.glyph,o,{x:0,y:0},t,r))},onCancel:function(){e.dispatch(new A.Actions.SetCurrentTool(null))}})}var i=null,a="point",c=function(t,n,r,o,i,a,s,l){var c,u,d=t[0],g=+e.props.glyphState.attributes[r],p=+e.props.glyphState.attributes[o],h=+e.props.glyphState.attributes[i],f=g/4;d<p+f?(u=a,c=d-p):d<f?(u=s,c=d):(u=l,c=d-h);var m=[c,t[1]],y={axis:n,baseline:u};e.dispatch(new A.Actions.AddMarkToGlyph(e.props.glyph,"guide.guide",{x:0,y:0},{value:[m[0],{type:M.MappingType.value,value:m[0]}]},y))};switch(t){case"guide-x":a="vline",i=function(e){return c(e,"x","width","ix1","ix2","left","center","right")};break;case"guide-y":a="hline",i=function(e){return c(e,"y","height","iy1","iy2","bottom","middle","top")};break;case"guide-coordinator-x":a="line",i=function(t,n,r,o){e.dispatch(new A.Actions.AddMarkToGlyph(e.props.glyph,"guide.guide-coordinator",{x:0,y:0},{x1:t,y1:n,x2:r,y2:o},{axis:"x",count:v.GuideCoordinatorClass.defaultAttributes.count}))};break;case"guide-coordinator-y":a="line",i=function(t,n,r,o){e.dispatch(new A.Actions.AddMarkToGlyph(e.props.glyph,"guide.guide-coordinator",{x:0,y:0},{x1:t,y1:n,x2:r,y2:o},{axis:"y",count:v.GuideCoordinatorClass.defaultAttributes.count}))};break;case"rectangle-zoom":a="rectangle",i=function(t,n,r,o){var i=Math.abs(r[0]-t[0]),a=Math.abs(o[0]-n[0]),s=Math.min(r[0],t[0])+i/2,l=Math.min(o[0],n[0])+a/2;e.doCustomZoom(s,l,i,a)}}return l.createElement(m.CreatingComponent,{width:this.props.width,height:this.props.height,zoom:this.state.zoom,mode:a,key:a,guides:this.getSnappingGuides(),onCreate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.dispatch(new A.Actions.SetCurrentTool(null)),i&&i.apply(void 0,s(t))},onCancel:function(){e.dispatch(new A.Actions.SetCurrentTool(null))}})},t.prototype.render=function(){var e=this,t=this.props,n=t.glyph,r=t.glyphState,o="translate("+this.state.zoom.centerX+","+this.state.zoom.centerY+") scale("+this.state.zoom.scale+")";return r?l.createElement("div",{className:"mark-editor-single-view"},l.createElement("div",{className:"mark-view-container",style:{width:this.props.width,height:this.props.height}},l.createElement("svg",{className:"canvas-view canvas-view-mark",ref:"canvas",x:0,y:0,width:this.props.width-4,height:this.props.height},l.createElement("defs",null,u.zipArray(n.marks,r.marks).map((function(t){var n=a(t,2),r=n[0],o=n[1];return l.createElement(l.Fragment,{key:"SVGDefs-"+r._id},e.renderElementDefs(r,o))}))),l.createElement("rect",{ref:"canvasInteraction",className:"interaction-handler",x:0,y:0,width:this.props.width,height:this.props.height}),this.renderBoundsGuides(),l.createElement("g",{ref:"zoomable",transform:o,className:"graphics"},u.zipArray(n.marks,r.marks).map((function(t){var n=a(t,2),r=n[0],o=n[1];return l.createElement("g",{key:"m"+r._id},e.renderElement(r,o))}))),this.renderSnappingGuides(),this.renderSnappingGuidesLabels(),l.createElement("g",null,this.state.dataForDropZones?null:this.renderHandles()),l.createElement("g",null,this.state.dataForDropZones?u.zipArray(n.marks,r.marks).map((function(t){var n=a(t,2),r=n[0],o=n[1];return l.createElement("g",{key:"m"+r._id},e.renderDropZoneForElement(e.state.dataForDropZones,r,o))})):null),l.createElement("g",null,this.renderDropIndicator()),this.renderCreatingComponent()))):l.createElement("div",{className:"mark-editor-single-view"},l.createElement("div",{className:"mark-view-container"},l.createElement("svg",{className:"canvas-view canvas-view-mark",ref:"canvas",x:0,y:0,width:this.props.width-4,height:this.props.height},l.createElement("rect",{ref:"canvasInteraction",className:"interaction-handler",x:0,y:0,width:this.props.width,height:this.props.height})),l.createElement("div",{className:"mark-view-container-notice"},B.strings.canvas.markContainer)))},t}(b.ContextedComponent);t.SingleMarkView=w},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.InputCurveHandleView=void 0;var a=n(0),s=n(29),l=n(5),c=n(27),u=n(13),A=n(9),d=n(58),g=n(14),p=n(40),h=n(59),f=n(7),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={enabled:!1,drawing:!1,points:[]},t}return o(t,e),t.prototype.getPoint=function(e,t){var n=this.refs.interaction.getBoundingClientRect();e-=n.left,t-=n.top+n.height,e/=this.props.zoom.scale,t/=-this.props.zoom.scale;var r=Math.abs(this.props.handle.x2-this.props.handle.x1);return{x:(e-r/2)/(r/2),y:(t-Math.abs(this.props.handle.y2-this.props.handle.y1)/2)/(r/2)}},t.prototype.getBezierCurvesFromMousePoints=function(e){if(e.length<2)return[];for(var t=[],n=0;n<e.length-1;n++)t.push(new l.Graphics.LineSegmentParametrization(e[n],e[n+1]));var r=new l.Graphics.MultiCurveParametrization(t),o=r.getLength(),a=Math.ceil(o/.2),s=function(e){for(var t=r.getPointAtS(e),n=0,i=0,s=-5;s<=5;s++){var c=e+s/40*o/a;c=Math.max(0,Math.min(o,c));var u=r.getTangentAtS(c);n+=u.x,i+=u.y}return[t,l.Geometry.vectorNormalize({x:n,y:i})]},c=i(s(0),2),u=c[0],A=c[1],d=0,g=[];for(n=1;n<=a;n++){var p=n/a*o,h=i(s(p),2),f=h[0],m=h[1],y=(p-d)/3;g.push([u,l.Geometry.vectorAdd(u,l.Geometry.vectorScale(A,y)),l.Geometry.vectorAdd(f,l.Geometry.vectorScale(m,-y)),f]),d=p,u=f,A=m}return g},t.prototype.componentDidMount=function(){var e=this;this.hammer=new s(this.refs.interaction),this.hammer.on("panstart",(function(t){var n=t.center.x-t.deltaX,r=t.center.y-t.deltaY;e.setState({drawing:!0,points:[e.getPoint(n,r)]})})),this.hammer.on("pan",(function(t){e.state.points.push(e.getPoint(t.center.x,t.center.y)),e.setState({points:e.state.points})})),this.hammer.on("panend",(function(){var t=e.getBezierCurvesFromMousePoints(e.state.points),n=new h.HandlesDragContext;e.props.onDragStart(e.props.handle,n),n.emit("end",{value:t}),e.setState({drawing:!1,enabled:!1})}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.renderDrawing=function(){var e=this,t=this.props.handle,n=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},r=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY};return a.createElement("path",{d:"M"+this.state.points.map((function(e){var o=function(e){var o=Math.abs(t.x2-t.x1)/2,i=e.x*o+(t.x1+t.x2)/2,a=e.y*o+(t.y1+t.y2)/2;return{x:n(i),y:r(a)}}(e);return A.toSVGNumber(o.x)+","+A.toSVGNumber(o.y)})).join("L"),className:"handle-hint element-line"})},t.prototype.renderButton=function(e,t){var n=this,r=e-16-2,o=t+16+2;return a.createElement("g",{className:"handle-button",onClick:function(){n.setState({enabled:!0})}},a.createElement("rect",{x:r-16,y:o-16,width:32,height:32}),a.createElement("image",{xlinkHref:u.getSVGIcon("Edit"),x:r-12,y:o-12,width:24,height:24}))},t.prototype.renderSpiralButton=function(e,t){var n,r=this,o=e-16-2,i=t+16+2;return a.createElement("g",{className:"handle-button",onClick:function(){c.popupController.popupAt((function(e){var t=4,n=180;return a.createElement(d.PopupView,{context:e},a.createElement("div",{style:{padding:"10px"}},a.createElement("div",{className:"charticulator__widget-row"},a.createElement("span",{className:"charticulator__widget-row-label"},f.strings.handles.windings,":"),a.createElement(p.InputNumber,{defaultValue:t,onEnter:function(e){return t=e,!0}})),a.createElement("div",{className:"charticulator__widget-row"},a.createElement("span",{className:"charticulator__widget-row-label"},f.strings.handles.startAngle,":"),a.createElement(p.InputNumber,{defaultValue:n,onEnter:function(e){return n=e,!0}})),a.createElement("div",{style:{textAlign:"right",marginTop:"10px"}},a.createElement(g.ButtonRaised,{text:f.strings.handles.drawSpiral,onClick:function(){e.close();var o=new h.HandlesDragContext,i=[];r.props.onDragStart(r.props.handle,o);for(var a=l.Geometry.degreesToRadians(n),s=a+t*Math.PI*2,c=1/s,u=function(e){return{x:e.y,y:e.x}},A=0;A<64;A++){var d=a+A/64*(s-a),g=a+(A+1)/64*(s-a),p=3/(g-d),f=c*d,m=c*g,y={x:f*Math.cos(d),y:f*Math.sin(d)},I={x:m*Math.cos(g),y:m*Math.sin(g)},C={x:y.x+c*(Math.cos(d)-d*Math.sin(d))/p,y:y.y+c*(Math.sin(d)+d*Math.cos(d))/p},E={x:I.x-c*(Math.cos(g)-g*Math.sin(g))/p,y:I.y-c*(Math.sin(g)+g*Math.cos(g))/p};i.push([y,C,E,I].map(u))}o.emit("end",{value:i})}}))))}),{anchor:n})}},a.createElement("rect",{x:o-16,y:i-16,width:32,height:32,ref:function(e){return n=e}}),a.createElement("image",{xlinkHref:u.getSVGIcon("scaffold/spiral"),x:o-12,y:i-12,width:24,height:24}))},t.prototype.render=function(){var e=this,t=this.props.handle,n=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},r=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY};return a.createElement("g",{className:"handle"},a.createElement("rect",{ref:"interaction",style:{pointerEvents:this.state.enabled?"fill":"none",cursor:"crosshair"},className:"handle-ghost element-region",x:Math.min(n(t.x1),n(t.x2)),y:Math.min(r(t.y1),r(t.y2)),width:Math.abs(n(t.x1)-n(t.x2)),height:Math.abs(r(t.y1)-r(t.y2))}),this.state.drawing?this.renderDrawing():null,this.state.enabled?null:a.createElement("g",null,this.renderSpiralButton(Math.max(n(t.x1),n(t.x2))-38,Math.min(r(t.y1),r(t.y2))),this.renderButton(Math.max(n(t.x1),n(t.x2)),Math.min(r(t.y1),r(t.y2)))))},t}(a.Component);t.InputCurveHandleView=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignmentHandleView=void 0;var a=n(0),s=n(29),l=n(5),c=n(27),u=n(9),A=n(58),d=n(14),g=n(59),p=n(24),h=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n.state={dragging:!1,newAlignment:t.handle.alignment,newRotation:t.handle.rotation},n}return o(t,e),t.prototype.getRelativePoint=function(e,t){var n=this.anchorCircle.getBoundingClientRect(),r=e-(n.left+n.width/2),o=t-(n.top+n.height/2);return{x:r/this.props.zoom.scale,y:-o/this.props.zoom.scale}},t.prototype.componentDidMount=function(){var e=this;this.hammer=new s(this.container),this.hammer.add(new s.Pan({threshold:1})),this.hammer.add(new s.Tap);var t,n,r,o=null,a=0,c=0,u=0,A=0,d=0,h=0,f=null,m=function(t,o,i,a){var s=e.getRectFromAlignment(n,r),c=s.cx-e.props.handle.anchorX,u=s.cy-e.props.handle.anchorY,A={x:n.x,y:n.y,xMargin:n.xMargin,yMargin:n.yMargin},d=Math.cos(l.Geometry.degreesToRadians(i)),g=Math.sin(l.Geometry.degreesToRadians(i)),h=c*d+u*g+(t*d+o*g),f=-c*g+u*d+(-t*g+o*d);return a&&Math.abs(f)<5/e.props.zoom.scale?A.y=p.TextAlignmentVertical.Middle:f<0?(A.y=p.TextAlignmentVertical.Top,A.yMargin=-f-e.props.handle.textHeight/2,Math.abs(A.yMargin)<5/e.props.zoom.scale&&(A.yMargin=0)):(A.y=p.TextAlignmentVertical.Bottom,A.yMargin=f-e.props.handle.textHeight/2,Math.abs(A.yMargin)<5/e.props.zoom.scale&&(A.yMargin=0)),a&&Math.abs(h)<5/e.props.zoom.scale?A.x=p.TextAlignmentHorizontal.Middle:h<0?(A.x=p.TextAlignmentHorizontal.Right,A.xMargin=-h-e.props.handle.textWidth/2,Math.abs(A.xMargin)<5/e.props.zoom.scale&&(A.xMargin=0)):(A.x=p.TextAlignmentHorizontal.Left,A.xMargin=h-e.props.handle.textWidth/2,Math.abs(A.xMargin)<5/e.props.zoom.scale&&(A.xMargin=0)),[A,i]},y=function(t,o){void 0===o&&(o=!1);var i=e.getRectFromAlignment(n,r),a=i.cx-e.props.handle.anchorX,s=i.cy-e.props.handle.anchorY,l=Math.atan2(t.y-s,t.x-a)/Math.PI*180+180;l=15*Math.round(l/15);var c=m(0,0,l,!1)[0];o?(e.setState({dragging:!1}),f.emit("end",{alignment:c,rotation:l})):(e.setState({newAlignment:c,newRotation:l}),f.emit("drag",{alignment:c,rotation:l}))},I=function(n,o){void 0===o&&(o=!1);var a=i(m(n.x-t.x,n.y-t.y,r,!0),1)[0];o?(e.setState({dragging:!1}),f.emit("end",{alignment:a,rotation:r})):(e.setState({newAlignment:a}),f.emit("drag",{alignment:a,rotation:r}))};this.hammer.on("panstart",(function(i){var s=i.center.x-i.deltaX,l=i.center.y-i.deltaY;a=s,c=l,A=i.deltaX,h=i.deltaY,u=i.deltaX,d=i.deltaY;var p=document.elementFromPoint(s,l);f=new g.HandlesDragContext,e.props.onDragStart(e.props.handle,f),t=e.getRelativePoint(s,l);var m=e.getRelativePoint(s+i.deltaX,l+i.deltaY);n=e.props.handle.alignment,r=e.props.handle.rotation,p==e.rotationCircle?(o="rotation",y(m)):(o="alignment",I(m)),e.setState({dragging:!0,newAlignment:n,newRotation:r})})),this.hammer.on("pan",(function(t){u+=t.deltaX-A,d+=t.deltaY-h,A=t.deltaX,h=t.deltaY;var n=a+u,r=c+d,i=e.getRelativePoint(n,r);"rotation"==o?y(i):I(i)})),this.hammer.on("panend",(function(t){u+=t.deltaX-A,d+=t.deltaY-h,A=t.deltaX,h=t.deltaY;var n=a+u,r=c+d,i=e.getRelativePoint(n,r);"rotation"==o?y(i,!0):I(i,!0),f=null}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.handleClick=function(){var e=this;null!=this.props.handle.text&&c.popupController.popupAt((function(t){return a.createElement(A.PopupView,{context:t},a.createElement("div",{className:"handle-text-view-popup"},a.createElement(d.EditableTextView,{text:e.props.handle.text,autofocus:!0,onEdit:function(n){var r=new g.HandlesDragContext;e.props.onDragStart(e.props.handle,r),r.emit("end",{text:n}),t.close()}})))}),{anchor:this.container})},t.prototype.getRectFromAlignment=function(e,t){var n=Math.cos(l.Geometry.degreesToRadians(t)),r=Math.sin(l.Geometry.degreesToRadians(t)),o=0,i=0;"left"==e.x&&(o=this.props.handle.textWidth/2+e.xMargin),"right"==e.x&&(o=-this.props.handle.textWidth/2-e.xMargin);var a=o-this.props.handle.textWidth/2-10/this.props.zoom.scale;return"top"==e.y&&(i=-this.props.handle.textHeight/2-e.yMargin),"bottom"==e.y&&(i=+this.props.handle.textHeight/2+e.yMargin),{cx:this.props.handle.anchorX+o*n-i*r,cy:this.props.handle.anchorY+o*r+i*n,fx:this.props.handle.anchorX+a*n-i*r,fy:this.props.handle.anchorY+a*r+i*n,width:this.props.handle.textWidth,height:this.props.handle.textHeight,rotation:t}},t.prototype.renderDragging=function(){if(this.state.dragging){var e=this.props.zoom,t=this.getRectFromAlignment(this.state.newAlignment,this.state.newRotation),n=l.Geometry.applyZoom(e,{x:t.cx,y:-t.cy});return a.createElement("g",null,a.createElement("rect",{className:"element-shape handle-hint",transform:"translate("+n.x.toFixed(6)+","+n.y.toFixed(6)+")rotate("+-t.rotation+")",x:-t.width/2*e.scale-0,y:-t.height/2*e.scale-0,width:t.width*e.scale+0,height:t.height*e.scale+0}))}return null},t.prototype.render=function(){var e=this,t=this.props.handle,n=this.props.zoom,r=this.getRectFromAlignment(t.alignment,t.rotation),o=l.Geometry.applyZoom(n,{x:r.cx,y:-r.cy}),i=l.Geometry.applyZoom(n,{x:t.anchorX,y:-t.anchorY}),s=l.Geometry.applyZoom(n,{x:r.fx,y:-r.fy});return a.createElement("g",{className:u.classNames("handle","handle-text-input",["active",this.state.dragging],["visible",t.visible||this.props.visible]),onClick:this.handleClick,ref:function(t){return e.container=t}},a.createElement("circle",{className:"element-shape handle-ghost",cx:i.x,cy:i.y,r:0,ref:function(t){return e.anchorCircle=t}}),a.createElement("g",{transform:"translate("+(s.x-16)+","+(s.y-16)+")"},a.createElement("path",{className:"element-solid handle-highlight",d:"M22.05664,15a.99974.99974,0,0,0-1,1,5.05689,5.05689,0,1,1-6.07794-4.95319v2.38654l6.04468-3.49042L14.9787,6.45245V9.02539A7.05306,7.05306,0,1,0,23.05664,16,.99973.99973,0,0,0,22.05664,15Z"})),a.createElement("line",{className:"element-line handle-dashed-highlight",x1:i.x,y1:i.y,x2:o.x,y2:o.y}),a.createElement("rect",{className:"element-shape handle-ghost element-text-rect",transform:"translate("+o.x.toFixed(6)+","+o.y.toFixed(6)+")rotate("+-r.rotation+")",x:-r.width/2*n.scale-0,y:-r.height/2*n.scale-0,width:r.width*n.scale+0,height:r.height*n.scale+0}),a.createElement("circle",{className:"element-shape handle-ghost element-rotation",ref:function(t){return e.rotationCircle=t},cx:s.x,cy:s.y,r:8}),this.renderDragging())},t}(a.Component);t.TextAlignmentHandleView=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PointHandleView=void 0;var i=n(0),a=n(29),s=n(5),l=n(9),c=n(59),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newXValue:n.props.handle.x,newYValue:n.props.handle.y},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.circle),this.hammer.add(new a.Pan);var t,n,r=null,o=0,i=0,s=0,l=0;this.hammer.on("panstart",(function(){r=new c.HandlesDragContext,t=e.props.handle.x,n=e.props.handle.y,i=0,l=0,o=0,s=0,e.setState({dragging:!0,newXValue:t,newYValue:n}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,r)})),this.hammer.on("pan",(function(a){if(r){o+=(a.deltaX-i)/e.props.zoom.scale,s+=-(a.deltaY-l)/e.props.zoom.scale,i=a.deltaX,l=a.deltaY;var c=o+t,u=s+n;e.setState({newXValue:c,newYValue:u}),r.emit("drag",{x:c,y:u})}})),this.hammer.on("panend",(function(a){if(r){o+=(a.deltaX-i)/e.props.zoom.scale,s+=-(a.deltaY-l)/e.props.zoom.scale,i=a.deltaX,l=a.deltaY;var c=o+t,u=s+n;r.emit("end",{x:c,y:u}),e.setState({dragging:!1}),r=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this.props.handle,t=s.Geometry.applyZoom(this.props.zoom,{x:e.x,y:-e.y}),n=t.x,r=t.y,o=s.Geometry.applyZoom(this.props.zoom,{x:this.state.newXValue,y:-this.state.newYValue}),a=o.x,c=o.y;return i.createElement("g",{ref:"circle",className:l.classNames("handle","handle-point",["active",this.state.dragging],["snapped",this.props.snapped],["visible",e.visible||this.props.visible])},i.createElement("circle",{className:"element-shape handle-ghost",cx:n,cy:r,r:6}),i.createElement("circle",{className:"element-shape handle-highlight",cx:n,cy:r,r:3}),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",x1:a,y1:c,x2:n,y2:r}),i.createElement("circle",{className:"element-shape handle-hint",cx:a,cy:c,r:3})):null)},t}(i.Component);t.PointHandleView=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DistanceRatioHandleView=void 0;var i=n(0),a=n(29),s=n(5),l=n(9),c=n(69),u=n(59),A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.clip=function(e){var t=this.props.handle.clipRange[0],n=this.props.handle.clipRange[1];return e<t&&(e=t),e>n&&(e=n),e<.05&&(e=0),e},t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.margin),this.hammer.add(new a.Pan({threshold:1}));var t=null,n=0;this.hammer.on("panstart",(function(){t=new u.HandlesDragContext,n=e.props.handle.value,e.setState({dragging:!0,newValue:n}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,t)})),this.hammer.on("pan",(function(n){if(t){var r=e.refs.centerCircle.getBoundingClientRect(),o=n.center.x-(r.left+r.width/2),i=n.center.y-(r.top+r.height/2),a=Math.sqrt(o*o+i*i)/e.props.zoom.scale;a=(a-e.props.handle.startDistance)/(e.props.handle.endDistance-e.props.handle.startDistance);var s=a=e.clip(a);e.setState({newValue:s}),t.emit("drag",{value:s})}})),this.hammer.on("panend",(function(n){if(t){var r=e.refs.centerCircle.getBoundingClientRect(),o=n.center.x-(r.left+r.width/2),i=n.center.y-(r.top+r.height/2),a=Math.sqrt(o*o+i*i)/e.props.zoom.scale;a=(a-e.props.handle.startDistance)/(e.props.handle.endDistance-e.props.handle.startDistance);var s=a=e.clip(a);t.emit("end",{value:s}),e.setState({dragging:!1}),t=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this,t=this.props.handle,n=t.cx*e.props.zoom.scale+e.props.zoom.centerX,r=-t.cy*e.props.zoom.scale+e.props.zoom.centerY,o=t.startDistance*this.props.zoom.scale,a=t.endDistance*this.props.zoom.scale,u=function(e){return e*(a-o)+o},A=function(e){var n=s.Graphics.makePath();return n.polarLineTo(0,0,90-t.startAngle,u(e),90-t.endAngle,u(e),!0),c.renderSVGPath(n.path.cmds)},d=function(e){var n=s.Geometry.degreesToRadians(90-t.startAngle);return Math.cos(n)*u(e)},g=function(e){var n=s.Geometry.degreesToRadians(90-t.startAngle);return-Math.sin(n)*u(e)};return i.createElement("g",{ref:"margin",className:l.classNames("handle","handle-distance",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{transform:"translate("+n+","+r+")"},i.createElement("circle",{ref:"centerCircle",cx:0,cy:0,r:0}),i.createElement("path",{d:A(t.value),className:"element-line handle-ghost"}),i.createElement("path",{d:A(t.value),className:"element-line handle-highlight"}),0==t.value?i.createElement("circle",{cx:d(t.value),cy:g(t.value),r:3,className:"element-shape handle-highlight"}):null),this.state.dragging?i.createElement("g",{transform:"translate("+n+","+r+")"},i.createElement("path",{d:A(this.state.newValue),className:"element-line handle-hint"}),0==this.state.newValue?i.createElement("circle",{cx:d(this.state.newValue),cy:g(this.state.newValue),r:3,className:"element-shape handle-hint"}):null):null)},t}(i.Component);t.DistanceRatioHandleView=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AngleHandleView=void 0;var i=n(0),a=n(29),s=n(9),l=n(59),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.clipAngle=function(e){e=15*Math.round(e/15);var t=this.props.handle.clipAngles[0],n=this.props.handle.clipAngles[1];if(null!=t){for(;e>=t;)e-=360;for(;e<=t;)e+=360}if(null!=n){for(;e<=n;)e+=360;for(;e>=n;)e-=360}return e},t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.margin),this.hammer.add(new a.Pan({threshold:1}));var t=null,n=0;this.hammer.on("panstart",(function(){t=new l.HandlesDragContext,n=e.props.handle.value,e.setState({dragging:!0,newValue:n}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,t)})),this.hammer.on("pan",(function(n){if(t){var r=e.refs.centerCircle.getBoundingClientRect(),o=n.center.x-(r.left+r.width/2),i=n.center.y-(r.top+r.height/2),a=e.clipAngle(Math.atan2(-o,i)/Math.PI*180+180);e.setState({newValue:a}),t.emit("drag",{value:a})}})),this.hammer.on("panend",(function(n){if(t){var r=e.refs.centerCircle.getBoundingClientRect(),o=n.center.x-(r.left+r.width/2),i=n.center.y-(r.top+r.height/2),a=e.clipAngle(Math.atan2(-o,i)/Math.PI*180+180);t.emit("end",{value:a}),e.setState({dragging:!1}),t=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this,n=this.props.handle,r=n.cx*e.props.zoom.scale+e.props.zoom.centerX,o=-n.cy*e.props.zoom.scale+e.props.zoom.centerY,a=n.radius*this.props.zoom.scale+10,l=t.shapeCircle;return"<"==n.icon&&(l=t.shapeLeft),">"==n.icon&&(l=t.shapeRight),i.createElement("g",{ref:"margin",className:s.classNames("handle","handle-angle",["active",this.state.dragging],["visible",n.visible||this.props.visible])},i.createElement("g",{transform:"translate("+r+","+o+") rotate("+(180+n.value)+")"},i.createElement("circle",{ref:"centerCircle",cx:0,cy:0,r:0}),i.createElement("line",{x1:0,y1:0,x2:0,y2:a,className:"element-line handle-ghost"}),i.createElement("path",{d:l(9),transform:"translate(0,"+a+")",className:"element-shape handle-ghost"}),i.createElement("line",{x1:0,y1:0,x2:0,y2:a,className:"element-line handle-highlight"}),i.createElement("path",{d:l(5),transform:"translate(0,"+a+")",className:"element-shape handle-highlight"})),this.state.dragging?i.createElement("g",{transform:"translate("+r+","+o+") rotate("+(180+this.state.newValue)+")"},i.createElement("line",{x1:0,y1:0,x2:0,y2:a,className:"element-line handle-hint"}),i.createElement("path",{d:l(5),transform:"translate(0,"+a+")",className:"element-shape handle-hint"})):null)},t.shapeCircle=function(e){return"M -"+e+" 0 A "+e+" "+e+" 0 1 0 "+e+" 0 A "+e+" "+e+" 0 1 0 "+-e+" 0 Z"},t.shapeRight=function(e){return"M 0 "+-e+" L "+-1.5*e+" 0 L 0 "+e+" Z"},t.shapeLeft=function(e){return"M 0 "+-e+" L "+1.5*e+" 0 L 0 "+e+" Z"},t}(i.Component);t.AngleHandleView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MarginHandleView=void 0;var i=n(0),a=n(29),s=n(9),l=n(59),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.margin),this.hammer.add(new a.Pan({threshold:1}));var t,n,r,o=null,i=0,s=0,c=0,u=0;this.hammer.on("panstart",(function(){o=new l.HandlesDragContext,t=e.props.handle.value,n=e.props.handle.sign,r=null!=e.props.handle.total?e.props.handle.total:1,s=0,u=0,i=0,c=0,e.setState({dragging:!0,newValue:t}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,o)})),this.hammer.on("pan",(function(a){if(o){i+=(a.deltaX-s)/e.props.zoom.scale,c+=-(a.deltaY-u)/e.props.zoom.scale,s=a.deltaX,u=a.deltaY;var l=("x"==e.props.handle.axis?i:c)*n/r+t;e.props.handle.range&&(l=Math.min(e.props.handle.range[1],Math.max(l,e.props.handle.range[0]))),e.setState({newValue:l}),o.emit("drag",{value:l})}})),this.hammer.on("panend",(function(a){if(o){i+=(a.deltaX-s)/e.props.zoom.scale,c+=-(a.deltaY-u)/e.props.zoom.scale,s=a.deltaX,u=a.deltaY;var l=("x"==e.props.handle.axis?i:c)*n/r+t;e.props.handle.range&&(l=Math.min(e.props.handle.range[1],Math.max(l,e.props.handle.range[0]))),o.emit("end",{value:l}),e.setState({dragging:!1}),o=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e,t,n,r,o,a=this,l=this.props.handle,c=function(e){return e*a.props.zoom.scale+a.props.zoom.centerX},u=function(e){return-e*a.props.zoom.scale+a.props.zoom.centerY},A=this.props.handle.total||1;switch(l.axis){case"x":e=c(l.x+l.value*l.sign*A),t=u(l.y),n=c(l.x+this.state.newValue*l.sign*A),r=u(l.y),o="M0,0l5,12.72l-10,0Z";break;case"y":e=c(l.x),t=u(l.y+l.value*l.sign*A),n=c(l.x),r=u(l.y+this.state.newValue*l.sign*A),o="M0,0l-12.72,5l0,-10Z"}return i.createElement("g",{ref:"margin",className:s.classNames("handle","handle-gap-"+l.axis,["active",this.state.dragging],["visible",l.visible||this.props.visible])},i.createElement("path",{className:"element-shape handle-ghost",transform:"translate("+e.toFixed(6)+","+t.toFixed(6)+")",d:o}),i.createElement("path",{className:"element-shape handle-highlight",transform:"translate("+e.toFixed(6)+","+t.toFixed(6)+")",d:o}),this.state.dragging?i.createElement("path",{className:"element-shape handle-hint",transform:"translate("+n.toFixed(6)+","+r.toFixed(6)+")",d:o}):null)},t}(i.Component);t.MarginHandleView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GapRatioHandleView=void 0;var i=n(0),a=n(29),s=n(5),l=n(9),c=n(69),u=n(59),A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.line),this.hammer.add(new a.Pan({threshold:1}));var t,n=null,r=0,o=0,i=0,l=0,c=0,A=0,d=1/this.props.handle.scale,g=function(){var n=e.props.handle.coordinateSystem;if(null==n||n instanceof s.Graphics.CartesianCoordinates){if("x"==e.props.handle.axis)return t+d*i;if("y"==e.props.handle.axis)return t+d*c}if(n instanceof s.Graphics.PolarCoordinates){if("x"==e.props.handle.axis){var a=function(e,t){return 90-Math.atan2(t,e)/Math.PI*180},l=a(r,o),u=a(r+i,o+c);return u>l+180&&(u-=360),u<l-180&&(u+=360),t+d*(u-l)}if("y"==e.props.handle.axis){var A=r+i,g=o+c,p=Math.sqrt(r*r+o*o),h=Math.sqrt(A*A+g*g);return t+d*(h-p)}}return t};this.hammer.on("panstart",(function(a){if(n=new u.HandlesDragContext,t=e.props.handle.value,e.refs.cOrigin){var s=e.refs.cOrigin.getBoundingClientRect();r=(a.center.x-a.deltaX-s.left)/e.props.zoom.scale,o=-(a.center.y-a.deltaY-s.top)/e.props.zoom.scale}else r=(a.center.x-a.deltaX)/e.props.zoom.scale,o=-(a.center.y-a.deltaY)/e.props.zoom.scale;l=a.deltaX,A=a.deltaY,i=a.deltaX/e.props.zoom.scale,c=-a.deltaY/e.props.zoom.scale,d=1/e.props.handle.scale,e.setState({dragging:!0,newValue:t}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,n)})),this.hammer.on("pan",(function(t){if(n){i+=(t.deltaX-l)/e.props.zoom.scale,c+=-(t.deltaY-A)/e.props.zoom.scale,l=t.deltaX,A=t.deltaY;var r=g();r=e.props.handle.range?Math.min(e.props.handle.range[1],Math.max(r,e.props.handle.range[0])):Math.min(1,Math.max(r,0)),e.setState({newValue:r}),n.emit("drag",{value:r})}})),this.hammer.on("panend",(function(t){if(n){i+=(t.deltaX-l)/e.props.zoom.scale,c+=-(t.deltaY-A)/e.props.zoom.scale,l=t.deltaX,A=t.deltaY;var r=g();r=e.props.handle.range?Math.min(e.props.handle.range[1],Math.max(r,e.props.handle.range[0])):Math.min(1,Math.max(r,0)),n.emit("end",{value:r}),e.setState({dragging:!1}),n=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this.props.handle;return null==e.coordinateSystem||e.coordinateSystem instanceof s.Graphics.CartesianCoordinates?this.renderCartesian():e.coordinateSystem instanceof s.Graphics.PolarCoordinates?this.renderPolar():null},t.prototype.renderPolar=function(){var e=this.props.handle,t=e.coordinateSystem,n=s.Geometry.applyZoom(this.props.zoom,{x:t.origin.x,y:-t.origin.y});switch(e.axis){case"x":var r=s.Graphics.makePath(),o=s.Graphics.makePath(),a=e.reference+e.scale*e.value,u=e.reference,A=e.span[0]*this.props.zoom.scale,d=e.span[1]*this.props.zoom.scale;r.polarLineTo(n.x,-n.y,90-a,A,90-a,d,!0),o.polarLineTo(n.x,-n.y,90-a,A,90-a,d,!0),o.polarLineTo(n.x,-n.y,90-a,d,90-u,d,!1),o.polarLineTo(n.x,-n.y,90-u,d,90-u,A,!1),o.polarLineTo(n.x,-n.y,90-u,A,90-a,A,!1),o.closePath();var g=s.Graphics.makePath();if(this.state.dragging){var p=e.reference+e.scale*this.state.newValue;g.polarLineTo(n.x,-n.y,90-p,A,90-p,d,!0)}return i.createElement("g",{className:l.classNames("handle","handle-line-angular",["active",this.state.dragging],["visible",e.visible||this.props.visible])},i.createElement("circle",{ref:"cOrigin",cx:n.x,cy:n.y,r:0}),i.createElement("g",{ref:"line"},i.createElement("path",{d:c.renderSVGPath(o.path.cmds),className:"element-region handle-ghost"}),i.createElement("path",{d:c.renderSVGPath(r.path.cmds),className:"element-line handle-ghost"}),i.createElement("path",{d:c.renderSVGPath(o.path.cmds),className:"element-region handle-highlight"}),i.createElement("path",{d:c.renderSVGPath(r.path.cmds),className:"element-line handle-highlight"})),this.state.dragging?i.createElement("path",{d:c.renderSVGPath(g.path.cmds),className:"element-line handle-hint"}):null);case"y":r=s.Graphics.makePath(),o=s.Graphics.makePath();var h=(e.reference+e.scale*e.value)*this.props.zoom.scale,f=e.reference*this.props.zoom.scale,m=e.span[0],y=e.span[1];r.polarLineTo(n.x,-n.y,90-m,h,90-y,h,!0),o.polarLineTo(n.x,-n.y,90-m,h,90-y,h,!0),o.polarLineTo(n.x,-n.y,90-y,h,90-y,f,!1),o.polarLineTo(n.x,-n.y,90-y,f,90-m,f,!1),o.polarLineTo(n.x,-n.y,90-m,f,90-m,h,!1),o.closePath();g=s.Graphics.makePath();if(this.state.dragging){var I=(e.reference+e.scale*this.state.newValue)*this.props.zoom.scale;g.polarLineTo(n.x,-n.y,90-m,I,90-y,I,!0)}return i.createElement("g",{className:l.classNames("handle","handle-line-radial",["active",this.state.dragging],["visible",e.visible||this.props.visible])},i.createElement("circle",{ref:"cOrigin",cx:n.x,cy:n.y,r:0}),i.createElement("g",{ref:"line"},i.createElement("path",{d:c.renderSVGPath(o.path.cmds),className:"element-region handle-ghost"}),i.createElement("path",{d:c.renderSVGPath(r.path.cmds),className:"element-line handle-ghost"}),i.createElement("path",{d:c.renderSVGPath(o.path.cmds),className:"element-region handle-highlight"}),i.createElement("path",{d:c.renderSVGPath(r.path.cmds),className:"element-line handle-highlight"})),this.state.dragging?i.createElement("path",{d:c.renderSVGPath(g.path.cmds),className:"element-line handle-hint"}):null)}},t.prototype.renderCartesian=function(){var e=this,t=this.props.handle,n=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},r=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY};switch(t.axis){case"x":var o=n(t.reference),a=n(t.reference+t.scale*t.value),s=r(t.span[0]),c=r(t.span[1]);return i.createElement("g",{className:l.classNames("handle","handle-line-x",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",x1:a,x2:a,y1:s,y2:c}),i.createElement("rect",{className:"element-region handle-ghost",x:Math.min(o,a),width:Math.abs(o-a),y:Math.min(s,c),height:Math.abs(c-s)}),i.createElement("line",{className:"element-line handle-highlight",x1:a,x2:a,y1:s,y2:c}),i.createElement("rect",{className:"element-region handle-highlight",x:Math.min(o,a),width:Math.abs(o-a),y:Math.min(s,c),height:Math.abs(c-s)})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",x1:n(t.reference+t.scale*this.state.newValue),x2:n(t.reference+t.scale*this.state.newValue),y1:r(t.span[0]),y2:r(t.span[1])})):null);case"y":var u=r(t.reference),A=r(t.reference+t.scale*t.value),d=n(t.span[0]),g=n(t.span[1]);return i.createElement("g",{className:l.classNames("handle","handle-line-y",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",y1:A,y2:A,x1:d,x2:g}),i.createElement("rect",{className:"element-region handle-ghost",y:Math.min(u,A),height:Math.abs(u-A),x:Math.min(d,g),width:Math.abs(g-d)}),i.createElement("line",{className:"element-line handle-highlight",y1:A,y2:A,x1:d,x2:g}),i.createElement("rect",{className:"element-region handle-highlight",y:Math.min(u,A),height:Math.abs(u-A),x:Math.min(d,g),width:Math.abs(g-d)})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",y1:r(t.reference+t.scale*this.state.newValue),y2:r(t.reference+t.scale*this.state.newValue),x1:d,x2:g})):null)}},t}(i.Component);t.GapRatioHandleView=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeLineHandleView=void 0;var i=n(0),a=n(29),s=n(9),l=n(59),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.line),this.hammer.add(new a.Pan({threshold:1}));var t,n=null,r=0,o=0,i=0,s=0,c=this.props.handle.sign;this.hammer.on("panstart",(function(){n=new l.HandlesDragContext,t=e.props.handle.value,o=0,s=0,r=0,i=0,e.setState({dragging:!0,newValue:t}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,n)})),this.hammer.on("pan",(function(a){if(n){r+=(a.deltaX-o)/e.props.zoom.scale,i+=-(a.deltaY-s)/e.props.zoom.scale,o=a.deltaX,s=a.deltaY;var l=("x"==e.props.handle.axis?r:i)*c+t;e.setState({newValue:l}),n.emit("drag",{value:l})}})),this.hammer.on("panend",(function(a){if(n){r+=(a.deltaX-o)/e.props.zoom.scale,i+=-(a.deltaY-s)/e.props.zoom.scale,o=a.deltaX,s=a.deltaY;var l=("x"==e.props.handle.axis?r:i)*c+t;n.emit("end",{value:l}),e.setState({dragging:!1}),n=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this,t=this.props.handle,n=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},r=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY};switch(t.axis){case"x":return i.createElement("g",{className:s.classNames("handle","handle-line-x",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",x1:n(t.reference+t.sign*t.value),x2:n(t.reference+t.sign*t.value),y1:r(t.span[0]),y2:r(t.span[1])}),i.createElement("line",{className:"element-line handle-highlight",x1:n(t.reference+t.sign*t.value),x2:n(t.reference+t.sign*t.value),y1:r(t.span[0]),y2:r(t.span[1])})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",x1:n(t.reference+t.sign*this.state.newValue),x2:n(t.reference+t.sign*this.state.newValue),y1:r(t.span[0]),y2:r(t.span[1])})):null);case"y":return i.createElement("g",{className:s.classNames("handle","handle-line-y",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",y1:r(t.reference+t.sign*t.value),y2:r(t.reference+t.sign*t.value),x1:n(t.span[0]),x2:n(t.span[1])}),i.createElement("line",{className:"element-line handle-highlight",y1:r(t.reference+t.sign*t.value),y2:r(t.reference+t.sign*t.value),x1:n(t.span[0]),x2:n(t.span[1])})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",y1:r(t.reference+t.sign*this.state.newValue),y2:r(t.reference+t.sign*this.state.newValue),x1:n(t.span[0]),x2:n(t.span[1])})):null)}},t}(i.Component);t.RelativeLineHandleView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LineHandleView=void 0;var i=n(0),a=n(29),s=n(9),l=n(59),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dragging:!1,newValue:n.props.handle.value},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.line),this.hammer.add(new a.Pan({threshold:1}));var t,n=null,r=0,o=0,i=0,s=0;this.hammer.on("panstart",(function(){n=new l.HandlesDragContext,t=e.props.handle.value,o=0,s=0,r=0,i=0,e.setState({dragging:!0,newValue:t}),e.props.onDragStart&&e.props.onDragStart(e.props.handle,n)})),this.hammer.on("pan",(function(a){if(n){r+=(a.deltaX-o)/e.props.zoom.scale,i+=-(a.deltaY-s)/e.props.zoom.scale,o=a.deltaX,s=a.deltaY;var l=("x"==e.props.handle.axis?r:i)+t;e.setState({newValue:l}),n.emit("drag",{value:l})}})),this.hammer.on("panend",(function(a){if(n){r+=(a.deltaX-o)/e.props.zoom.scale,i+=-(a.deltaY-s)/e.props.zoom.scale,o=a.deltaX,s=a.deltaY;var l=("x"==e.props.handle.axis?r:i)+t;n.emit("end",{value:l}),e.setState({dragging:!1}),n=null}}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this,t=this.props.handle,n=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},r=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY};switch(t.axis){case"x":return i.createElement("g",{className:s.classNames("handle","handle-line-x",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",x1:n(t.value),x2:n(t.value),y1:r(t.span[0]),y2:r(t.span[1])}),i.createElement("line",{className:"element-line handle-highlight",x1:n(t.value),x2:n(t.value),y1:r(t.span[0]),y2:r(t.span[1])})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",x1:n(this.state.newValue),x2:n(this.state.newValue),y1:r(t.span[0]),y2:r(t.span[1])})):null);case"y":return i.createElement("g",{className:s.classNames("handle","handle-line-y",["active",this.state.dragging],["visible",t.visible||this.props.visible])},i.createElement("g",{ref:"line"},i.createElement("line",{className:"element-line handle-ghost",y1:r(t.value),y2:r(t.value),x1:n(t.span[0]),x2:n(t.span[1])}),i.createElement("line",{className:"element-line handle-highlight",y1:r(t.value),y2:r(t.value),x1:n(t.span[0]),x2:n(t.span[1])})),this.state.dragging?i.createElement("g",null,i.createElement("line",{className:"element-line handle-hint",y1:r(this.state.newValue),y2:r(this.state.newValue),x1:n(t.span[0]),x2:n(t.span[1])})):null)}},t}(i.Component);t.LineHandleView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MarkSnappingSession=void 0;var a=n(19),s=n(85),l=n(39),c=n(183),u=n(6),A=function(e){function t(t,n,r,o,i,a,c){var u=e.call(this,t.filter((function(e){return e.element!==r&&(r.classID!==s.GuideClass.classID||!e.element||!l.isType(e.element.classID,"mark"))})),i,a,c)||this;return u.mark=n,u.element=r,u}return o(t,e),t.prototype.getActions=function(e){var t,n,r=new a.Actions.MarkActionGroup,o={},s=!1;try{for(var l=i(e),c=l.next();!c.done;c=l.next()){var A=c.value;switch(A.type){case"snap":null==A.snapElement?r.add(new a.Actions.SetMarkAttribute(this.mark,this.element,A.attribute,{type:u.MappingType.parent,parentAttribute:A.snapAttribute})):r.add(new a.Actions.SnapMarks(this.mark,this.element,A.attribute,A.snapElement,A.snapAttribute));break;case"move":o[A.attribute]=A.value,s=!0;break;case"property":r.add(new a.Actions.SetObjectProperty(this.element,A.property,A.field,A.value));break;case"value-mapping":r.add(new a.Actions.SetMarkAttribute(this.mark,this.element,A.attribute,{type:u.MappingType.value,value:A.value}))}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s&&r.add(new a.Actions.UpdateMarkAttribute(this.mark,this.element,o)),r},t}(c.SnappingSession);t.MarkSnappingSession=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartEditorView=void 0;var l=n(0),c=n(13),u=n(27),A=n(5),d=n(19),g=n(69),p=n(37),h=n(40),f=n(268),m=n(269),y=n(270),I=n(587),C=n(271),E=n(588),b=n(589),v=n(272),B=n(85),M=n(7),D=n(6),x=n(39),w=n(9),Q=n(125),S=n(11),N=function(e){function t(t){var n=e.call(this,t)||this;return n.state={zoom:{centerX:50,centerY:50,scale:1},snappingCandidates:null,graphics:n.getGraphics(),currentCreation:null,currentSelection:n.props.store.currentSelection,dropZoneData:!1,viewWidth:100,viewHeight:100,isSolving:!1,canvasToolbar:!0},n.tokens=[],n}return o(t,e),t.prototype.getRelativePoint=function(e){var t=this.refs.canvas.getBoundingClientRect();return{x:e.x-t.left,y:e.y-t.top}},t.prototype.getFitViewZoom=function(e,t){var n=this.props.store.chartState,r=n.attributes.x1,o=n.attributes.y1,i=n.attributes.x2,a=n.attributes.y2,s=e/(1.4*Math.abs(i-r)),l=t/(1.4*Math.abs(a-o));return{centerX:e/2,centerY:t/2,scale:Math.min(s,l)}},t.prototype.componentDidMount=function(){var e=this;this.hammer=new Hammer(this.refs.canvasInteraction),this.hammer.add(new Hammer.Tap);var t=new Hammer.Pan,n=new Hammer.Pinch;n.recognizeWith(t),this.hammer.add([n]),this.hammer.on("tap",(function(){(new d.Actions.ClearSelection).dispatch(e.props.store.dispatcher)}));var r,o,i,a,s=null,l=0,c=0,g=null,h=1;this.hammer.on("pinchstart panstart",(function(t){g=A.Geometry.unapplyZoom(e.state.zoom,e.getRelativePoint({x:t.center.x,y:t.center.y})),s=e.state.zoom.centerX,l=e.state.zoom.centerY,c=e.state.zoom.scale,r=0,o=0,i=0,a=0,h=1})),this.hammer.on("pinch pan",(function(t){"pan"==t.type&&(t.scale=h),h=t.scale;var n=c*t.scale;n=Math.min(20,Math.max(.05,n)),e.setState({zoom:{centerX:s+t.deltaX-r+(c-n)*g.x,centerY:l+t.deltaY-o+(c-n)*g.y,scale:n}}),i=t.deltaX,a=t.deltaY})),this.refs.canvas.onwheel=function(t){var n=A.Geometry.unapplyZoom(e.state.zoom,e.getRelativePoint({x:t.pageX,y:t.pageY})),u=e.state.zoom,d=u.centerX,g=u.centerY,p=u.scale,h=-t.deltaY;t.deltaMode==t.DOM_DELTA_LINE&&(h*=33.3);var f=p*Math.exp(h/1e3);f=Math.min(20,Math.max(.05,f)),e.setState({zoom:{centerX:d+(p-f)*n.x,centerY:g+(p-f)*n.y,scale:f}}),s=e.state.zoom.centerX,l=e.state.zoom.centerY,r=i,o=a,c=e.state.zoom.scale,t.stopPropagation(),t.preventDefault()},u.dragController.registerDroppable(this,this.refs.canvas),this.tokens.push(this.props.store.addListener(p.AppStore.EVENT_GRAPHICS,this.updateGraphics.bind(this))),this.tokens.push(this.props.store.addListener(p.AppStore.EVENT_SELECTION,this.updateSelection.bind(this))),this.tokens.push(this.props.store.addListener(p.AppStore.EVENT_CURRENT_TOOL,(function(){e.setState({currentCreation:e.props.store.currentTool,currentCreationOptions:e.props.store.currentToolOptions})})));var f=null;this.tokens.push(this.props.store.addListener(p.AppStore.EVENT_SOLVER_STATUS,(function(){e.props.store.solverStatus.solving?f||(f=setTimeout((function(){e.setState({isSolving:!0})}),500)):(f&&(clearTimeout(f),f=null),e.setState({isSolving:!1}))})));var m=function(){if(e.refs.canvasContainer){var t=e.refs.canvasContainer.getBoundingClientRect(),n=t.width,r=t.height;e.setState({viewWidth:n,viewHeight:r,zoom:e.getFitViewZoom(n,r)})}};u.resizeListeners.addListener(this.refs.canvasContainer,m),m(),this.tokens.push(u.dragController.addListener("sessionstart",(function(){var t=u.dragController.getSession();t&&t.data instanceof d.DragData.DropZoneData&&e.setState({dropZoneData:{data:t.data}})}))),this.tokens.push(u.dragController.addListener("sessionend",(function(){e.setState({dropZoneData:!1})})))},t.prototype.componentWillUnmount=function(){this.hammer.destroy(),this.tokens.forEach((function(e){return e.remove()})),u.dragController.unregisterDroppable(this)},t.prototype.onDragEnter=function(e){var t=this;new d.Actions.SetCurrentTool(null).dispatch(this.props.store.dispatcher);var n=e.data;return n instanceof d.DragData.ScaffoldType&&(this.setState({dropZoneData:{layout:n}}),e.onLeave((function(){t.setState({dropZoneData:!1})})),!0)},t.prototype.getGraphics=function(){return new A.Graphics.ChartRenderer(this.props.store.chartManager,this.props.store.renderEvents).render()},t.prototype.updateSelection=function(){this.setState({currentSelection:this.props.store.currentSelection}),this.setState({canvasToolbar:!0})},t.prototype.updateGraphics=function(){this.setState({graphics:this.getGraphics()})},t.prototype.renderGraphics=function(){var e=new A.Graphics.ChartRenderer(this.props.store.chartManager,this.props.store.renderEvents);return l.createElement(l.Fragment,{key:"graphics"},l.createElement(g.GraphicalElementDisplay,{element:this.state.graphics}),l.createElement("g",{className:"canvas-chart-controls"},e.renderControls(this.props.store.chart,this.props.store.chartState,this.state.zoom)))},t.prototype.renderEditingLink=function(){var e=this.props.store;if(e.currentSelection instanceof p.ChartElementSelection){var t=e.currentSelection.chartElement;if(A.Prototypes.isType(t.classID,"links"))return l.createElement(I.EditingLink,{width:this.state.viewWidth,height:this.state.viewHeight,zoom:this.state.zoom,store:e,link:t})}return null},t.prototype.renderCreatingComponent=function(){var e=this;if(null==this.state.currentCreation)return null;var t=A.Prototypes.ObjectClasses.GetMetadata(this.state.currentCreation);if(t&&t.creatingInteraction){var n=this.state.currentCreation,r=this.state.currentCreationOptions;return l.createElement(m.CreatingComponentFromCreatingInteraction,{width:this.state.viewWidth,height:this.state.viewHeight,zoom:this.state.zoom,guides:this.getSnappingGuides(),description:t.creatingInteraction,onCreate:function(t,o){new d.Actions.SetCurrentTool(null).dispatch(e.props.store.dispatcher);var i=JSON.parse(r);for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a]);new d.Actions.AddChartElement(n,t,o).dispatch(e.props.store.dispatcher)},onCancel:function(){new d.Actions.SetCurrentTool(null).dispatch(e.props.store.dispatcher)}})}var o=null,i="point",s=function(t,n,r,o,i,a,s,l){var c,u,A=+e.props.store.chartState.attributes[r],g=+e.props.store.chartState.attributes[o],p=+e.props.store.chartState.attributes[i],h=A/2+t[0],f=(A-g-p)/2,m=f/2,y=g+f;h<g+m?(u=a,c=h-g):h<y+m?(u=s,c=h-y):(u=l,c=h-(A-p));var I=[c,t[1]],C={axis:n,baseline:u};new d.Actions.AddChartElement("guide.guide",{value:[I[0],{type:D.MappingType.value,value:I[0]}]},C).dispatch(e.props.store.dispatcher)};switch(this.state.currentCreation){case"guide-x":i="vline",o=function(e){return s(e,"x","width","marginLeft","marginRight","left","center","right")};break;case"guide-y":i="hline",o=function(e){return s(e,"y","height","marginBottom","marginTop","bottom","middle","top")};break;case"guide-coordinator-x":i="line",o=function(t,n,r,o){new d.Actions.AddChartElement("guide.guide-coordinator",{x1:t,y1:n,x2:r,y2:o},{axis:"x",count:B.GuideCoordinatorClass.defaultAttributes.count}).dispatch(e.props.store.dispatcher)};break;case"guide-coordinator-y":i="line",o=function(t,n,r,o){new d.Actions.AddChartElement("guide.guide-coordinator",{x1:t,y1:n,x2:r,y2:o},{axis:"y",count:B.GuideCoordinatorClass.defaultAttributes.count}).dispatch(e.props.store.dispatcher)};break;case"guide-coordinator-polar":i="rectangle",o=function(t,n,r,o){new d.Actions.AddChartElement("guide.guide-coordinator-polar",{x1:t,y1:n,x2:r,y2:o},{axis:"xy",angularGuidesCount:4,radialGuidesCount:1,startAngle:0,endAngle:360,innerRatio:0,outerRatio:1}).dispatch(e.props.store.dispatcher)};break;case"rectangle-zoom":i="rectangle",o=function(t,n,r,o){var i=Math.abs(r[0]-t[0]),a=Math.abs(o[0]-n[0]),s=Math.min(r[0],t[0])+i/2,l=Math.min(o[0],n[0])+a/2;e.doCustomZoom(s,l,i,a)}}return l.createElement(m.CreatingComponent,{width:this.state.viewWidth,height:this.state.viewHeight,zoom:this.state.zoom,mode:i,key:i,guides:this.getSnappingGuides(),onCreate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];new d.Actions.SetCurrentTool(null).dispatch(e.props.store.dispatcher),o&&o.apply(void 0,a(t))},onCancel:function(){new d.Actions.SetCurrentTool(null).dispatch(e.props.store.dispatcher)}})},t.prototype.doCustomZoom=function(e,t,n,r){var o=this.state.viewWidth,i=this.state.viewHeight,a=o/2-e,s=i/2+t,l=o>i?i/r:o/n;this.setState({zoom:{centerX:a,centerY:s,scale:1}}),this.doZoom(l)},t.prototype.renderBoundsGuides=function(){var e=this;return this.getSnappingGuides().map((function(t,n){var r=t.guide;if(r.visible){if("x"==r.type){var o=r;return l.createElement("line",{className:w.classNames("mark-guide",["coordinator",t.guide.visualType===x.SnappingGuidesVisualTypes.Coordinator],["single",t.guide.visualType===x.SnappingGuidesVisualTypes.Guide]),key:"k"+n,x1:o.value*e.state.zoom.scale+e.state.zoom.centerX,x2:o.value*e.state.zoom.scale+e.state.zoom.centerX,y1:0,y2:e.state.viewHeight})}if("y"==r.type){o=r;return l.createElement("line",{className:w.classNames("mark-guide",["coordinator",t.guide.visualType===x.SnappingGuidesVisualTypes.Coordinator],["single",t.guide.visualType===x.SnappingGuidesVisualTypes.Guide]),key:"k"+n,x1:0,x2:e.state.viewWidth,y1:-o.value*e.state.zoom.scale+e.state.zoom.centerY,y2:-o.value*e.state.zoom.scale+e.state.zoom.centerY})}if("point"==r.type){var i=r;return l.createElement(l.Fragment,{key:"fk"+n},l.createElement("circle",{className:"mark-guide",key:"ck"+n+"display",cx:i.cx*e.state.zoom.scale+e.state.zoom.centerX,cy:-i.cy*e.state.zoom.scale+e.state.zoom.centerY,r:Math.abs(i.visibleRadius*e.state.zoom.scale)}),l.createElement("line",{key:"lk"+n+"display",className:"mark-guide",x1:i.cx*e.state.zoom.scale+e.state.zoom.centerX,y1:-i.cy*e.state.zoom.scale+e.state.zoom.centerY,x2:i.angle*e.state.zoom.scale+e.state.zoom.centerX,y2:-i.radius*e.state.zoom.scale+e.state.zoom.centerY}))}}}))},t.prototype.getSnappingGuides=function(){var e=this,t=this.props.store.chartManager.getChartClass(this.props.store.chartState).getSnappingGuides().map((function(e){return{element:null,guide:e}})),n=this.props.store.chart.elements,r=this.props.store.chartState.elements;return A.zipArray(n,r).forEach((function(n){var r=i(n,2),o=r[0],a=r[1],s=e.props.store.chartManager.getChartElementClass(a);t=t.concat(s.getSnappingGuides().map((function(e){return{element:o,guide:e}})))})),t},t.prototype.renderChartHandles=function(){var e=this,t=this.props.store.chartManager.getChartClass(this.props.store.chartState).getHandles();return t.map((function(n,r){return l.createElement(C.HandlesView,{key:"m"+r,handles:t,zoom:e.state.zoom,active:!1,onDragStart:function(t,n){var r=new v.MoveSnappingSession(t);n.onDrag((function(e){r.handleDrag(e)})),n.onEnd((function(t){var n=r.getUpdates(r.handleEnd(t));if(n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&new d.Actions.SetChartAttribute(o,{type:D.MappingType.value,value:n[o]}).dispatch(e.props.store.dispatcher)}))}})}))},t.prototype.renderMarkHandlesInPlotSegment=function(e,t){var n=this,r=[],o=this.props.store.chartManager.getPlotSegmentClass(t).getCoordinateSystem(),i=A.getById(this.props.store.chart.glyphs,e.glyph);return t.glyphs.forEach((function(t,a){var s=t.attributes.x,c=t.attributes.y;t.marks.forEach((function(t,u){var g=i.marks[u],h=n.props.store.chartManager.getMarkClass(t);if(!A.Prototypes.isType(g.classID,B.GuideCoordinatorClass.classID)){var m=h.getBoundingBox(),y=!1;n.props.store.currentSelection instanceof p.MarkSelection&&n.props.store.currentSelection.plotSegment==e&&n.props.store.currentSelection.glyph==i&&n.props.store.currentSelection.mark==g&&a==n.props.store.getSelectedGlyphIndex(e._id)&&(y=!0),m&&r.push(l.createElement(f.BoundingBoxView,{key:a+"/"+u,boundingBox:m,coordinateSystem:o,offset:{x:s,y:c},zoom:n.state.zoom,active:y,onClick:function(){new d.Actions.SelectMark(e,i,g,a).dispatch(n.props.store.dispatcher)}}))}}))})),l.createElement("g",null,r)},t.prototype.renderLayoutHandles=function(){var e=this,t=this.props.store.chart.elements,n=this.props.store.chartState.elements;return A.stableSortBy(A.zipArray(t,n),(function(t){var n=i(t,1)[0];return e.state.currentSelection instanceof p.ChartElementSelection&&e.state.currentSelection.chartElement==n?1:0})).map((function(t){var n=i(t,2),r=n[0],o=n[1],a=e.props.store.chartManager.getChartElementClass(o),c=e.state.currentSelection instanceof p.ChartElementSelection&&e.state.currentSelection.chartElement==r,u=a.getBoundingBox();if(!c&&u){var g=l.createElement(f.BoundingBoxView,{key:r._id,boundingBox:u,zoom:e.state.zoom,onClick:function(){new d.Actions.SelectChartElement(r,null).dispatch(e.props.store.dispatcher),e.props.store.dispatcher.dispatch(new d.Actions.SearchUpdated(""))}});return A.Prototypes.isType(r.classID,"plot-segment")?l.createElement("g",{key:r._id},e.renderMarkHandlesInPlotSegment(r,o),g):g}var h=a.getHandles();return l.createElement("g",{key:"m"+r._id},u?l.createElement(f.BoundingBoxView,{zoom:e.state.zoom,boundingBox:u,active:!0}):null,A.Prototypes.isType(r.classID,"plot-segment")?e.renderMarkHandlesInPlotSegment(r,o):null,l.createElement(C.HandlesView,{handles:h,zoom:e.state.zoom,active:!1,visible:c,isAttributeSnapped:function(t){var n,o;if(null!=r.mappings[t])return!0;try{for(var i=s(e.props.store.chart.constraints),a=i.next();!a.done;a=i.next()){var l=a.value;if("snap"==l.type){if(l.attributes.element==r._id&&l.attributes.attribute==t)return!0;if(l.attributes.targetElement==r._id&&l.attributes.targetAttribute==t)return!0}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!1},onDragStart:function(t,n){var o=e.getSnappingGuides(),i=new b.ChartSnappingSession(o,r,t,10/e.state.zoom.scale,t.options&&t.options.snapToClosestPoint);n.onDrag((function(t){i.handleDrag(t),e.setState({snappingCandidates:i.getCurrentCandidates()})})),n.onEnd((function(t){e.setState({snappingCandidates:null});var n=i.getActions(i.handleEnd(t));n&&n.forEach((function(t){return t.dispatch(e.props.store.dispatcher)}))}))}}))}))},t.prototype.renderHandles=function(){return l.createElement("g",null,this.renderChartHandles(),this.renderLayoutHandles())},t.prototype.renderControls=function(){var e=this,t=this.props.store.chart.elements,n=this.props.store.chartState.elements;return l.createElement("div",{className:"canvas-popups"},A.zipArray(t,n).filter((function(e){var t=i(e,1)[0];return A.Prototypes.isType(t.classID,"plot-segment")})).map((function(t,n){var r=i(t,2),o=r[0],s=r[1];if(e.state.currentSelection instanceof p.ChartElementSelection&&e.state.currentSelection.chartElement==o){var c=e.props.store.chartManager.getPlotSegmentClass(s),u=new Q.FluentUIWidgetManager(e.props.store,c),d=c.getPopupEditor(u);if(!d)return null;var g=A.Geometry.applyZoom(e.state.zoom,{x:d.anchor.x,y:-d.anchor.y});return g.x<0||g.y<0||!e.state.canvasToolbar?null:l.createElement(l.Fragment,{key:"canvas"},l.createElement("div",{className:"charticulator__canvas-popup",key:"m"+n,id:"anchor"+n,style:{left:g.x.toFixed(0)+"px",bottom:(e.state.viewHeight-g.y+5).toFixed(0)+"px"}}),l.createElement(S.Callout,{target:"#anchor"+n,directionalHint:S.DirectionalHint.topLeftEdge,styles:{root:{padding:10},calloutMain:{overflow:"hidden"}},onDismiss:function(){return e.setState({canvasToolbar:!1})}},u.horizontal.apply(u,a([d.widgets.map((function(){return 0}))],d.widgets))))}})))},t.prototype.renderSnappingGuides=function(){var e=this,t=this.state.snappingCandidates;return t&&0!=t.length?t.map((function(t,n){var r="m"+n;switch(t.guide.type){case"x":var o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",x1:o.value*e.state.zoom.scale+e.state.zoom.centerX,x2:o.value*e.state.zoom.scale+e.state.zoom.centerX,y1:0,y2:e.state.viewHeight});case"y":o=t.guide;return l.createElement("line",{key:r,className:"snapping-guide",y1:-o.value*e.state.zoom.scale+e.state.zoom.centerY,y2:-o.value*e.state.zoom.scale+e.state.zoom.centerY,x1:0,x2:e.state.viewWidth});case"point":o=t.guide;return l.createElement(l.Fragment,{key:"snapping-guid-"+n},o.visibleRadius?l.createElement("circle",{className:"snapping-guide",key:"ck"+n+"display",cx:o.cx*e.state.zoom.scale+e.state.zoom.centerX,cy:-o.cy*e.state.zoom.scale+e.state.zoom.centerY,r:Math.abs(o.visibleRadius*e.state.zoom.scale)}):l.createElement(l.Fragment,{key:"snapping-link-"+n},l.createElement("line",{key:"lk"+n+"display1",className:"snapping-guide",x1:o.cx*e.state.zoom.scale+e.state.zoom.centerX,y1:-(o.cy-10)*e.state.zoom.scale+e.state.zoom.centerY,x2:o.cx*e.state.zoom.scale+e.state.zoom.centerX,y2:-(o.cy+10)*e.state.zoom.scale+e.state.zoom.centerY}),l.createElement("line",{key:"lk"+n+"display1",className:"snapping-guide",x1:(o.cx-10)*e.state.zoom.scale+e.state.zoom.centerX,y1:-o.cy*e.state.zoom.scale+e.state.zoom.centerY,x2:(o.cx+10)*e.state.zoom.scale+e.state.zoom.centerX,y2:-o.cy*e.state.zoom.scale+e.state.zoom.centerY})),l.createElement("line",{key:"lk"+n+"display",className:"snapping-guide",x1:o.cx*e.state.zoom.scale+e.state.zoom.centerX,y1:-o.cy*e.state.zoom.scale+e.state.zoom.centerY,x2:o.angle*e.state.zoom.scale+e.state.zoom.centerX,y2:-o.radius*e.state.zoom.scale+e.state.zoom.centerY}))}})):null},t.prototype.renderChartCanvas=function(){var e=this,t=this.props.store.chartState,n={x:-t.attributes.width/2,y:-t.attributes.height/2},r={x:+t.attributes.width/2,y:+t.attributes.height/2},o=A.Geometry.applyZoom(this.state.zoom,n),i=A.Geometry.applyZoom(this.state.zoom,r),a=function(e,t,n,r,o){return"m"+(Math.min(e,n)+8)+","+Math.min(t,r)+" \n      h"+(Math.abs(n-e)-2*o)+" \n      a"+o+","+o+" 0 0 1 "+o+","+o+" \n      v"+(Math.abs(r-t)-2*o)+" \n      a"+o+","+o+" 0 0 1 -"+o+","+o+" \n      h-"+(Math.abs(n-e)-2*o)+" \n      a"+o+","+o+" 0 0 1 -"+o+",-"+o+" \n      v-"+(Math.abs(r-t)-2*o)+" \n      a"+o+","+o+" 0 0 1 "+o+",-"+o+" \n      z"};return l.createElement("g",null,l.createElement("path",{className:"canvas-region-outer",d:a(o.x-1,o.y-1,i.x+1,i.y+1,8)}),l.createElement("path",{className:"canvas-region",d:a(o.x,o.y,i.x,i.y,8)}),l.createElement(E.ResizeHandleView,{zoom:this.state.zoom,cx:(n.x+r.x)/2,cy:(n.y+r.y)/2,width:Math.abs(r.x-n.x),height:Math.abs(r.y-n.y),onResize:function(t,n){new d.Actions.SetChartSize(t,n).dispatch(e.props.store.dispatcher)}}))},t.prototype.renderDropZoneForMarkLayout=function(e,t){var n=this;return this.props.store.chartManager.getPlotSegmentClass(t).getDropZones().filter((function(e){if(e.dropAction.scaleInference)return!1;if(n.state.dropZoneData){if(e.accept){if(null!=e.accept.table){if(!(n.state.dropZoneData.data instanceof d.DragData.DataExpression))return!1;if(n.state.dropZoneData.data.table.name!=e.accept.table)return!1}return!e.accept.scaffolds||!!n.state.dropZoneData.layout&&e.accept.scaffolds.indexOf(n.state.dropZoneData.layout.type)>=0}return n.state.dropZoneData.data instanceof d.DragData.DataExpression}return!1})).map((function(t,r){return l.createElement(y.DropZoneView,{key:"m"+r,onDragEnter:function(r){var o=t.dropAction;return o.axisInference?function(){return new d.Actions.BindDataToAxis(e,o.axisInference.property,o.axisInference.appendToProperty,r,!0).dispatch(n.props.store.dispatcher),!0}:o.extendPlotSegment?function(){return new d.Actions.ExtendPlotSegment(e,r.type).dispatch(n.props.store.dispatcher),!0}:void 0},zone:t,zoom:n.state.zoom})}))},t.prototype.renderDropZones=function(){var e=this,t=this.props.store,n=t.chart,r=t.chartState;return this.state.dropZoneData?l.createElement("g",null,A.zipArray(n.elements,r.elements).filter((function(e){var t=i(e,1)[0];return A.Prototypes.isType(t.classID,"plot-segment")})).map((function(t){var n=i(t,2),r=n[0],o=n[1];return l.createElement("g",{key:"m"+r._id},e.renderDropZoneForMarkLayout(r,o))}))):null},t.prototype.doZoom=function(e){var t=this.state.zoom,n=t.scale,r=t.centerX,o=t.centerY,i=A.Geometry.unapplyZoom(this.state.zoom,{x:this.state.viewWidth/2,y:this.state.viewHeight/2}),a=n*e;a=Math.min(20,Math.max(.05,a)),this.setState({zoom:{centerX:r+(n-a)*i.x,centerY:o+(n-a)*i.y,scale:a}})},t.prototype.render=function(){var e=this,t=this.state.viewWidth,n=this.state.viewHeight,r="translate("+this.state.zoom.centerX+","+this.state.zoom.centerY+") scale("+this.state.zoom.scale+")";return l.createElement("div",{className:"chart-editor-view"},l.createElement("div",{className:"chart-editor-canvas-view",ref:"canvasContainer"},l.createElement("svg",{className:"canvas-view",ref:"canvas",x:0,y:0,width:t,height:n},l.createElement("defs",null,g.renderSVGDefs(this.state.graphics)),l.createElement("rect",{className:"interaction-handler",ref:"canvasInteraction",x:0,y:0,width:t,height:n}),this.renderChartCanvas(),this.renderBoundsGuides(),l.createElement("g",{className:"graphics",transform:r},this.renderGraphics()),this.renderSnappingGuides(),this.renderHandles(),this.renderDropZones(),this.renderEditingLink(),this.renderCreatingComponent()),this.renderControls()),l.createElement("div",{className:"canvas-controls"},l.createElement("div",{className:"canvas-controls-left"}),l.createElement("div",{className:"canvas-controls-right"},l.createElement(h.Button,{icon:"ZoomIn",onClick:function(){e.doZoom(1.1)}}),l.createElement(h.Button,{icon:"ZoomOut",onClick:function(){e.doZoom(1/1.1)}}),l.createElement(h.Button,{icon:"ZoomToFit",onClick:function(){var t=e.getFitViewZoom(e.state.viewWidth,e.state.viewHeight);t&&e.setState({zoom:t})}}),l.createElement(h.Button,{icon:"rect-zoom",title:"Rectangle zoom",onClick:function(){new d.Actions.SetCurrentTool("rectangle-zoom").dispatch(e.props.store.dispatcher)}}))),this.state.isSolving?l.createElement("div",{className:"solving-hint"},l.createElement("div",{className:"el-box"},l.createElement("img",{src:c.getSVGIcon("loading")}),M.strings.app.working)):null)},t}(l.Component);t.ChartEditorView=N},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.EditingLink=void 0;var a=n(29),s=n(0),l=n(5),c=n(19),u=n(69),A=function(e){function t(t){var n=e.call(this,t)||this;return n.markPlaceholders=new WeakMap,n.state={stage:"select-source",firstAnchor:null,secondAnchor:null,currentMouseLocation:{x:0,y:0}},n}return o(t,e),t.prototype.getMarkAtPoint=function(e,t){for(var n=document.elementFromPoint(e,t),r=null;n;){if(n instanceof SVGGElement&&this.markPlaceholders.has(n)){r=this.markPlaceholders.get(n);break}n=n.parentElement}return r},t.prototype.componentDidMount=function(){var e=this;this.hammer=new a(this.refs.container),this.hammer.add(new a.Pan),this.hammer.add(new a.Tap),this.hammer.on("tap panend",(function(t){var n=t.center.x,r=t.center.y,o=e.getMarkAtPoint(n,r);if(o){var i=o.anchor.points.map((function(e){return{x:{element:o.anchor.element,attribute:e.xAttribute},y:{element:o.anchor.element,attribute:e.yAttribute},direction:e.direction}}));"begin"==o.mode?new c.Actions.SetObjectProperty(e.props.link,"anchor1",null,i).dispatch(e.props.store.dispatcher):new c.Actions.SetObjectProperty(e.props.link,"anchor2",null,i).dispatch(e.props.store.dispatcher)}else(new c.Actions.ClearSelection).dispatch(e.props.store.dispatcher)}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.renderAnchor=function(e,t,n,r){var o=this;if(2==r.points.length){var i=l.Graphics.makePath();l.Prototypes.Links.LinksClass.BandPath(i,{points:r.points.map((function(e){return{x:e.x+t,y:e.y+n,direction:e.direction}})),coordinateSystem:e,curveness:this.props.link.properties.curveness},!1,!0);var a="translate("+this.props.zoom.centerX+","+this.props.zoom.centerY+") scale("+this.props.zoom.scale+")",c=u.renderSVGPath(i.path.cmds);return s.createElement("g",{transform:a},s.createElement("path",{d:c,className:"element-ghost-stroke",vectorEffect:"non-scaling-stroke"}),s.createElement("path",{d:c,className:"element-stroke",vectorEffect:"non-scaling-stroke"}))}var A=function(r){var i=r.x+t,a=r.y+n,s=e.transformPoint(i,a);return s=l.Graphics.transform(e.getBaseTransform(),s),l.Geometry.applyZoom(o.props.zoom,{x:s.x,y:-s.y})}(r.points[0]);return s.createElement("g",null,s.createElement("circle",{className:"element-ghost-shape",cx:A.x,cy:A.y,r:8}),s.createElement("circle",{className:"element-shape",cx:A.x,cy:A.y,r:3}))},t.prototype.renderMarkPlaceholders=function(){var e,t,n=this,r=this.props.store.chartManager,o=this.props.link.properties,a=o.linkType,c=[];switch(this.props.link.classID){case"links.through":for(var A=r.getClassById(o.linkThrough.plotSegment),d=A.getCoordinateSystem(),g=l.Prototypes.Links.facetRows(r.dataflow.getTable(A.object.table),A.state.dataRowIndices,o.linkThrough.facetExpressions.map((function(e){return r.dataflow.cache.parse(e)}))),p=l.getById(r.chart.glyphs,A.object.glyph),h=new Map,f=0;f<A.state.dataRowIndices.length;f++)h.set(A.state.dataRowIndices[f].join(","),A.state.glyphs[f]);for(var m=0;m<g.length&&!(g[m].length>=2);m++);m<g.length&&(c=[{glyph:p,glyphState:h.get(g[m][0].join(",")),coordinateSystem:d},{glyph:p,glyphState:h.get(g[m][1].join(",")),coordinateSystem:d}]);break;case"links.between":c=[{glyph:(I=(y=o.linkBetween.plotSegments.map((function(e){return r.getClassById(e)}))).map((function(e){return l.getById(r.chart.glyphs,e.object.glyph)})))[0],glyphState:y[0].state.glyphs[0],coordinateSystem:y[0].getCoordinateSystem()},{glyph:I[1],glyphState:y[1].state.glyphs[0],coordinateSystem:y[1].getCoordinateSystem()}];break;case"links.table":var y,I=(y=o.linkTable.plotSegments.map((function(e){return r.getClassById(e)}))).map((function(e){return l.getById(r.chart.glyphs,e.object.glyph)})),C=this.props.store.chartManager.dataflow.getTable(o.linkTable.table),E=y.map((function(e){for(var t=n.props.store.chartManager.dataflow.getTable(e.object.table),r=new Map,o=0;o<e.state.dataRowIndices.length;o++){var i=e.state.dataRowIndices[o],a=i.map((function(e){return t.getRow(e).id})).join(",");r.set(a,[i,o])}return{table:t,id2RowGlyphIndex:r}})),b=C.rows.find((function(e){return e.source_id&&null!=E[0].id2RowGlyphIndex.get(e.source_id.toString())&&e.target_id&&null!=E[1].id2RowGlyphIndex.get(e.target_id.toString())}));if(b){var v=i(E[0].id2RowGlyphIndex.get(null===(e=b.source_id)||void 0===e?void 0:e.toString()),2)[1],B=i(E[1].id2RowGlyphIndex.get(null===(t=b.target_id)||void 0===t?void 0:t.toString()),2)[1];c=[{glyph:I[0],glyphState:y[0].state.glyphs[v],coordinateSystem:y[0].getCoordinateSystem()},{glyph:I[1],glyphState:y[1].state.glyphs[B],coordinateSystem:y[1].getCoordinateSystem()}]}else c=[]}var M=c.map((function(e,t){var o=e.glyph,i=e.glyphState,l=e.coordinateSystem,c=i.marks[0].attributes.x,u=i.marks[0].attributes.y,A=i.attributes.x-c,d=i.attributes.y-u,g=o.marks.map((function(e,c){if(o.marks.length>1&&"mark.anchor"==e.classID)return null;var u=r.getMarkClass(i.marks[c]),g=0==t?"begin":"end",p=u.getLinkAnchors?u.getLinkAnchors(g):[];return p=p.filter((function(e){return"line"==a?1==e.points.length:"band"==a?2==e.points.length:void 0})),s.createElement("g",{key:e._id},p.map((function(t,r){return s.createElement("g",{className:"anchor",key:"m"+r,ref:function(r){null!=r&&n.markPlaceholders.set(r,{mode:g,markID:e._id,anchor:t,offsetX:A,offsetY:d,coordinateSystem:l})}},n.renderAnchor(l,A,d,t))})))}));return s.createElement("g",{key:t},g)})),D=c.map((function(e,t){var n=e.glyph,r=e.glyphState,i=e.coordinateSystem,a=r.marks[0].attributes.x,s=r.marks[0].attributes.y,c=r.attributes.x-a,u=r.attributes.y-s,A=0==t?o.anchor1:o.anchor2,d=A[0].x.element;if(!d)return null;var g=r.marks[l.getIndexById(n.marks,d)];return{coordinateSystem:i,offsetX:c,offsetY:u,anchor:{element:d,points:A.map((function(e){return{x:g.attributes[e.x.attribute],xAttribute:e.x.attribute,y:g.attributes[e.y.attribute],yAttribute:e.y.attribute,direction:e.direction}}))}}})).filter((function(e){return null!=e})),x=null;if(2==D.length){var w=l.Graphics.makePath(),Q={coordinateSystem:D[0].coordinateSystem,points:D[0].anchor.points.map((function(e){return{x:e.x+D[0].offsetX,y:e.y+D[0].offsetY,direction:e.direction}})),curveness:this.props.link.properties.curveness},S={coordinateSystem:D[1].coordinateSystem,points:D[1].anchor.points.map((function(e){return{x:e.x+D[1].offsetX,y:e.y+D[1].offsetY,direction:e.direction}})),curveness:this.props.link.properties.curveness};l.Prototypes.Links.LinksClass.LinkPath(w,o.linkType,o.interpolationType,Q,S);var N="translate("+this.props.zoom.centerX+","+this.props.zoom.centerY+") scale("+this.props.zoom.scale+")";x=s.createElement("g",{transform:N},s.createElement("path",{d:u.renderSVGPath(w.path.cmds),className:"link-hint-"+o.linkType}))}return s.createElement("g",null,x,M,D.map((function(e,t){var r=e.coordinateSystem,o=e.offsetX,i=e.offsetY,a=e.anchor;return s.createElement("g",{className:"anchor active",key:t},n.renderAnchor(r,o,i,a))})))},t.prototype.getPointFromEvent=function(e){var t=this.refs.handler.getBoundingClientRect(),n=l.Geometry.unapplyZoom(this.props.zoom,{x:e.x-t.left,y:e.y-t.top});return{x:n.x,y:-n.y}},t.prototype.render=function(){return s.createElement("g",{className:"creating-link",ref:"container"},this.renderMarkPlaceholders())},t}(s.Component);t.EditingLink=A},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandleView=void 0;var a=n(0),s=n(29),l=n(9),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dragging:!1,newX1:t.props.cx-t.props.width/2,newY1:t.props.cy-t.props.height/2,newX2:t.props.cx+t.props.width/2,newY2:t.props.cy+t.props.height/2},t}return o(t,e),t.prototype.componentDidMount=function(){var e,t,n,r,o,a,l,c,u=this;this.hammer=new s(this.refs.container),this.hammer.add(new s.Pan);var A=function(){var o=e+n*l*2,i=t+r*c*2;return o<50&&(o=50),i<50&&(i=50),[o,i]};this.hammer.on("panstart",(function(s){var d=document.elementFromPoint(s.center.x-s.deltaX,s.center.y-s.deltaY);for(e=u.props.width,t=u.props.height,n=s.deltaX/u.props.zoom.scale,o=s.deltaX,r=-s.deltaY/u.props.zoom.scale,a=s.deltaY,l=0,c=0;d;)d==u.refs.lineX1&&(l=-1),d==u.refs.lineX2&&(l=1),d==u.refs.lineY1&&(c=-1),d==u.refs.lineY2&&(c=1),d==u.refs.cornerX1Y1&&(l=-1,c=-1),d==u.refs.cornerX1Y2&&(l=-1,c=1),d==u.refs.cornerX2Y1&&(l=1,c=-1),d==u.refs.cornerX2Y2&&(l=1,c=1),d=d.parentElement;var g=i(A(),2),p=g[0],h=g[1];u.setState({dragging:!0,newX1:u.props.cx-p/2,newY1:u.props.cy-h/2,newX2:u.props.cx+p/2,newY2:u.props.cy+h/2})})),this.hammer.on("pan",(function(e){n+=(e.deltaX-o)/u.props.zoom.scale,o=e.deltaX,r+=-(e.deltaY-a)/u.props.zoom.scale,a=e.deltaY;var t=i(A(),2),s=t[0],l=t[1];u.setState({newX1:u.props.cx-s/2,newY1:u.props.cy-l/2,newX2:u.props.cx+s/2,newY2:u.props.cy+l/2})})),this.hammer.on("panend",(function(e){n+=(e.deltaX-o)/u.props.zoom.scale,o=e.deltaX,r+=-(e.deltaY-a)/u.props.zoom.scale,a=e.deltaY;var t=i(A(),2),s=t[0],l=t[1];u.setState({dragging:!1}),u.props.onResize(s,l)}))},t.prototype.componentWillUnmount=function(){this.hammer.destroy()},t.prototype.render=function(){var e=this,t=function(t){return t*e.props.zoom.scale+e.props.zoom.centerX},n=function(t){return-t*e.props.zoom.scale+e.props.zoom.centerY},r=this.props.cx-this.props.width/2,o=this.props.cy-this.props.height/2,i=this.props.cx+this.props.width/2,s=this.props.cy+this.props.height/2;return a.createElement("g",{className:l.classNames("handle","handle-resize",["active",this.state.dragging]),ref:"container"},a.createElement("g",{ref:"lineY1",style:{cursor:"ns-resize"}},a.createElement("line",{className:"element-line handle-ghost",x1:t(r),y1:n(o),x2:t(i),y2:n(o)}),a.createElement("line",{className:"element-line handle-highlight",x1:t(r),y1:n(o),x2:t(i),y2:n(o)})),a.createElement("g",{ref:"lineY2",style:{cursor:"ns-resize"}},a.createElement("line",{className:"element-line handle-ghost",x1:t(r),y1:n(s),x2:t(i),y2:n(s)}),a.createElement("line",{className:"element-line handle-highlight",x1:t(r),y1:n(s),x2:t(i),y2:n(s)})),a.createElement("g",{ref:"lineX1",style:{cursor:"ew-resize"}},a.createElement("line",{className:"element-line handle-ghost",x1:t(r),y1:n(o),x2:t(r),y2:n(s)}),a.createElement("line",{className:"element-line handle-highlight",x1:t(r),y1:n(o),x2:t(r),y2:n(s)})),a.createElement("g",{ref:"lineX2",style:{cursor:"ew-resize"}},a.createElement("line",{className:"element-line handle-ghost",x1:t(i),y1:n(o),x2:t(i),y2:n(s)}),a.createElement("line",{className:"element-line handle-highlight",x1:t(i),y1:n(o),x2:t(i),y2:n(s)})),a.createElement("circle",{className:"element-shape handle-ghost",style:{cursor:"nesw-resize"},ref:"cornerX1Y1",cx:t(r),cy:n(o),r:5}),a.createElement("circle",{className:"element-shape handle-ghost",style:{cursor:"nwse-resize"},ref:"cornerX2Y1",cx:t(i),cy:n(o),r:5}),a.createElement("circle",{className:"element-shape handle-ghost",style:{cursor:"nwse-resize"},ref:"cornerX1Y2",cx:t(r),cy:n(s),r:5}),a.createElement("circle",{className:"element-shape handle-ghost",style:{cursor:"nesw-resize"},ref:"cornerX2Y2",cx:t(i),cy:n(s),r:5}),this.state.dragging?a.createElement("g",null,a.createElement("line",{className:"element-line handle-hint",x1:t(this.state.newX1),y1:n(this.state.newY1),x2:t(this.state.newX2),y2:n(this.state.newY1)}),a.createElement("line",{className:"element-line handle-hint",x1:t(this.state.newX1),y1:n(this.state.newY2),x2:t(this.state.newX2),y2:n(this.state.newY2)}),a.createElement("line",{className:"element-line handle-hint",x1:t(this.state.newX1),y1:n(this.state.newY1),x2:t(this.state.newX1),y2:n(this.state.newY2)}),a.createElement("line",{className:"element-line handle-hint",x1:t(this.state.newX2),y1:n(this.state.newY1),x2:t(this.state.newX2),y2:n(this.state.newY2)})):null)},t}(a.Component);t.ResizeHandleView=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartSnappingSession=void 0;var a=n(6),s=n(19),l=function(e){function t(t,n,r,o,i){var a=e.call(this,t.filter((function(e){return e.element!=n})),r,o,i)||this;return a.markLayout=n,a}return o(t,e),t.prototype.getActions=function(e){var t,n,r=[];try{for(var o=i(e),l=o.next();!l.done;l=o.next()){var c=l.value;switch(c.type){case"snap":null==c.snapElement?r.push(new s.Actions.SetChartElementMapping(this.markLayout,c.attribute,{type:a.MappingType.parent,parentAttribute:c.snapAttribute})):r.push(new s.Actions.SnapChartElements(this.markLayout,c.attribute,c.snapElement,c.snapAttribute));break;case"move":var u={};u[c.attribute]=c.value,r.push(new s.Actions.UpdateChartElementAttribute(this.markLayout,u));break;case"property":r.push(new s.Actions.SetObjectProperty(this.markLayout,c.property,c.field,c.value));break;case"value-mapping":r.push(new s.Actions.SetChartElementMapping(this.markLayout,c.attribute,{type:a.MappingType.value,value:c.value}))}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},t}(n(183).SnappingSession);t.ChartSnappingSession=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GroupByEditor=void 0;var i=n(0),a=n(5),s=n(7),l=n(19),c=n(126),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(t.props.value),t}return o(t,e),t.prototype.getDefaultState=function(e){var t="none";return e&&e.expression&&(t="expression"),{type:t,currentValue:e}},t.prototype.emitUpdateGroupBy=function(e){this.props.options.target.property&&this.props.manager.emitSetProperty(this.props.options.target.property,e),this.props.options.target.plotSegment&&this.props.manager.store.dispatcher.dispatch(new l.Actions.SetPlotSegmentGroupBy(this.props.options.target.plotSegment,e)),this.setState(this.getDefaultState(e))},t.prototype.render=function(){var e=this,t=this.props.options;return i.createElement("div",{className:"charticulator__groupby-editor"},i.createElement(c.DataFieldSelector,{defaultValue:this.state.currentValue&&this.state.currentValue.expression?{table:t.table,expression:this.state.currentValue.expression}:null,table:t.table,nullDescription:s.strings.core.none,datasetStore:this.props.manager.store,kinds:[a.Specification.DataKind.Categorical],onChange:function(t){null==t?e.emitUpdateGroupBy(null):e.emitUpdateGroupBy({expression:t.expression})}}))},t}(i.Component);t.GroupByEditor=u},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleEditorWrapper=void 0;var o,i=n(88);t.ScaleEditorWrapper=i.default.div(o||(o=r(["\n  padding: 10px;\n  min-width: 200px;\n  max-width: 600px;\n  overflow-x: auto;\n"],["\n  padding: 10px;\n  min-width: 200px;\n  max-width: 600px;\n  overflow-x: auto;\n"])))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReorderStringsValue=t.DropZoneView=void 0;var i=n(0),a=n(27),s=n(14),l=n(9),c=n(70),u=n(40),A=n(105),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isInSession:!1,isDraggingOver:!1,data:null},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;a.dragController.registerDroppable(this,this.dropContainer),this.tokens=[a.dragController.addListener("sessionstart",(function(){var t=a.dragController.getSession();e.props.filter(t.data)&&e.setState({isInSession:!0})})),a.dragController.addListener("sessionend",(function(){e.setState({isInSession:!1})}))]},t.prototype.componentWillUnmount=function(){a.dragController.unregisterDroppable(this),this.tokens.forEach((function(e){return e.remove()}))},t.prototype.onDragEnter=function(e){var t=this,n=e.data;if(this.props.filter(n))return this.setState({isDraggingOver:!0,data:n}),e.onLeave((function(){t.setState({isDraggingOver:!1,data:null})})),e.onDrop((function(e,r){t.props.onDrop(n,e,r)})),!0},t.prototype.render=function(){var e=this;return i.createElement("div",{className:l.classNames(this.props.className,["is-in-session",this.state.isInSession],["is-dragging-over",this.state.isDraggingOver]),onClick:this.props.onClick,ref:function(t){return e.dropContainer=t}},null==this.props.draggingHint?this.props.children:this.state.isInSession?this.props.draggingHint():this.props.children)},t}(i.Component);t.DropZoneView=d;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={items:t.props.items.slice(),customOrder:!1},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.state.items.slice();return i.createElement("div",{className:"charticulator__widget-popup-reorder-widget"},i.createElement("div",{className:"el-row el-list-view"},i.createElement(c.ReorderListView,{enabled:!0,onReorder:function(n,r){c.ReorderListView.ReorderArray(t,n,r),e.setState({items:t,customOrder:!0})}},t.map((function(e){return i.createElement("div",{key:e,className:"el-item"},e)})))),i.createElement("div",{className:"el-row"},i.createElement(u.Button,{icon:"Sort",text:"Reverse",onClick:function(){e.setState({items:e.state.items.reverse()})}})," ",i.createElement(u.Button,{icon:"general/sort",text:"Sort",onClick:function(){e.setState({items:e.state.items.sort(A.getSortFunctionByData(e.state.items)),customOrder:!1})}}),this.props.allowReset&&i.createElement(i.Fragment,null," ",i.createElement(u.Button,{icon:"general/clear",text:"Reset",onClick:function(){if(e.props.onReset){var t=e.props.onReset();e.setState({items:t})}}}))),i.createElement("div",{className:"el-row"},i.createElement(s.ButtonRaised,{text:"OK",onClick:function(){e.props.onConfirm(e.state.items,e.state.customOrder)}})))},t}(i.Component);t.ReorderStringsValue=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentValueEditor=void 0;var a=n(11),s=n(0),l=n(5),c=n(89),u=n(32),A=n(40),d=n(127),g=n(7),p=n(23),h=n(276),f=n(278),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={open:!1,value:t.props.type===l.Specification.AttributeType.Color?l.colorToHTMLColorHEX(t.props.value):""},t}return o(t,e),t.prototype.emitClearValue=function(){this.props.onClear()},t.prototype.emitSetValue=function(e){this.props.onEmitValue(e)},t.prototype.emitMapping=function(e){this.props.onEmitMapping(e)},t.prototype.componentWillReceiveProps=function(e){var t="";this.props.type===l.Specification.AttributeType.Color&&e.value&&(t=l.colorToHTMLColorHEX(e.value)),t!==this.state.value&&this.setState({value:t})},t.prototype.render=function(){var e,t,n=this,r=this.props.value,o=this.props.placeholder||g.strings.core.none;switch(null!=this.props.defaultValue&&(o=this.props.defaultValue.toString()),this.props.type){case l.Specification.AttributeType.Number:var u=this.props.numberOptions;return u||(u={digits:2}),s.createElement(f.FluentInputNumber,i({label:this.props.label,stopPropagation:this.props.stopPropagation,placeholder:this.props.placeholder,defaultValue:this.props.value,onEnter:function(e){return null==e?(n.emitClearValue(),!0):e==e&&(n.emitSetValue(e),!0)}},u));case l.Specification.AttributeType.Color:var m=r,y=l.colorToHTMLColorHEX(m);return s.createElement("span",{className:"el-color-value"},s.createElement(p.FluentTextField,null,s.createElement(a.TextField,{styles:p.defaultStyle,label:this.props.label,placeholder:this.props.placeholder,onRenderLabel:p.labelRender,value:this.state.value,type:"text",onChange:function(e,t){if(""==(t=t.trim()))n.emitClearValue();else{n.setState({value:t});try{var r=l.parseColorOrThrowException(t);if(!r)return!1;n.emitSetValue(r)}catch(e){}}},onKeyDown:function(e){n.props.stopPropagation&&e.stopPropagation()}})),s.createElement("span",{className:"el-color-item",style:{backgroundColor:y},id:"color_picker",onClick:function(){n.setState({open:!n.state.open})}}),this.state.open&&s.createElement(a.Callout,{target:"#color_picker",onDismiss:function(){return n.setState({open:!n.state.open})}},s.createElement(c.ColorPicker,{store:this.store,allowNull:!0,defaultValue:l.colorFromHTMLColor(y),onPick:function(e){null==e?n.emitClearValue():n.emitSetValue(e)},parent:this,closePicker:function(){n.setState({open:!n.state.open})}})));case l.Specification.AttributeType.FontFamily:return s.createElement(A.FluentComboBoxFontFamily,{label:this.props.label,defaultValue:r,onEnter:function(e){return n.emitSetValue(e),!0}});case l.Specification.AttributeType.Text:var I=r;return this.props.onEmitMapping?s.createElement(d.FluentInputExpression,{label:this.props.label,textExpression:!0,validate:function(e){return n.context.store.verifyUserExpressionWithTable(e,n.props.getTable(),{textExpression:!0,expectedTypes:["string"]})},defaultValue:new l.Expression.TextExpression([{string:I}]).toString(),value:new l.Expression.TextExpression([{string:I}]).toString(),placeholder:o,allowNull:!0,onEnter:function(e){return null==e||""==e.trim()?n.emitClearValue():l.Expression.parseTextExpression(e).isTrivialString()?n.emitMapping({type:"value",value:e}):n.emitMapping({type:"text",table:n.props.getTable(),textExpression:e}),!0},stopPropagation:this.props.stopPropagation}):s.createElement(s.Fragment,null,s.createElement(a.TextField,{label:this.props.label,defaultValue:I,onRenderLabel:p.labelRender,placeholder:o,onChange:function(e,t){return null==t?n.emitClearValue():n.emitSetValue(t),!0},styles:p.defaultStyle,onKeyDown:function(e){n.props.stopPropagation&&e.stopPropagation()}}));case l.Specification.AttributeType.Enum:I=r;var C=this.props.hints.rangeEnum;return s.createElement(a.Dropdown,{styles:i(i({},p.defaultStyle),{title:i(i({},p.defaultStyle.title),{lineHeight:p.defultBindButtonSize.height})}),label:this.props.label,onRenderLabel:p.labelRender,selectedKey:I,options:C.map((function(e){return{key:e,text:e}})),onChange:function(e,t){return null==t?n.emitClearValue():n.emitSetValue(t.key),!0}});case l.Specification.AttributeType.Boolean:var E=r;return this.props.onEmitMapping?s.createElement(s.Fragment,null,s.createElement(a.Label,{styles:p.defaultLabelStyle},g.strings.objects.visibleOn.visibility),s.createElement(a.DefaultButton,{styles:{root:i({},p.defultComponentsHeight),menuIcon:{display:"none !important"}},text:g.strings.attributesPanel.conditionedBy,menuProps:{items:null!==(e=this.props.mainMenuItems)&&void 0!==e?e:[],onRenderMenuList:null!==(t=this.props.menuRender)&&void 0!==t?t:null}})):s.createElement(s.Fragment,null,s.createElement(a.Label,{styles:p.defaultLabelStyle},g.strings.objects.visibleOn.visibility),s.createElement(a.DefaultButton,{checked:!1,iconProps:{iconName:E?"CheckboxComposite":"Checkbox"},onClick:function(){n.emitSetValue(!E)}}));case l.Specification.AttributeType.Image:I=r;return s.createElement(h.InputImage,{label:this.props.label,value:I,onChange:function(e){return null==e?n.emitClearValue():n.emitSetValue(e),!0}})}return s.createElement("span",null,"(not implemented)")},t}(u.ContextedComponent);t.FluentValueEditor=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.DataFieldSelector=void 0;var c=n(0),u=n(5),A=n(14),d=n(13),g=n(9),p=n(83),h=n(40),f=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getDefaultState(t),n}return o(t,e),t.prototype.getDefaultState=function(e){var t,n,r=this.props.defaultValue?this.props.defaultValue.expression:null,o=null;if(e.useAggregation&&null!=r){var i=u.Expression.parse(r);i instanceof u.Expression.FunctionCall&&(r=i.args[0].toString(),o=i.name)}if(e.defaultValue)try{for(var s=a(this.getAllFields()),l=s.next();!l.done;l=s.next()){var c=l.value;if((null==e.defaultValue.table||c.table==e.defaultValue.table)&&(null!=r&&c.expression==r))return{currentSelection:c,currentSelectionAggregation:o,currentSelections:[c],currentSelectionsAggregations:[o]}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return{currentSelection:null,currentSelectionAggregation:null,currentSelections:[],currentSelectionsAggregations:[]}},Object.defineProperty(t.prototype,"value",{get:function(){return this.props.multiSelect?this.state.currentSelections:this.state.currentSelection},enumerable:!1,configurable:!0}),t.prototype.getAllFields=function(){var e,t,n,r,o=this.getFields(),i=[];try{for(var s=a(o),l=s.next();!l.done;l=s.next()){var c=l.value;if(i.push(c),c.derived)try{for(var u=(n=void 0,a(c.derived)),A=u.next();!A.done;A=u.next()){var d=A.value;i.push(d)}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return i},t.prototype.getFields=function(){var e=this,t=this.props.datasetStore.getTables().filter((function(t){return t.name==e.props.table||null==e.props.table}))[0],n=t.columns,r=[];r.push((function(e){return!e.metadata.isRaw})),this.props.table&&r.push((function(t){return t.table==e.props.table})),this.props.kinds&&r.push((function(t){return null!=t.metadata&&p.isKindAcceptable(t.metadata.kind,e.props.kinds)})),this.props.types&&r.push((function(t){return null!=t.metadata&&e.props.types.indexOf(t.type)>=0}));var o=function(e){var t,n;try{for(var o=a(r),i=o.next();!i.done;i=o.next()){if(!(0,i.value)(e))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},i=n.map((function(e){var n,r,i={selectable:!0,table:t.name,columnName:e.name,expression:u.Expression.variable(e.name).toString(),rawExpression:u.Expression.variable(e.metadata.rawColumnName||e.name).toString(),type:e.type,displayName:e.name,metadata:e.metadata,derived:[]},s=p.type2DerivedColumns[i.type];if(s)try{for(var l=a(s),c=l.next();!c.done;c=l.next()){var A=c.value,d={table:t.name,columnName:null,expression:u.Expression.functionCall(A.function,u.Expression.parse(i.expression)).toString(),rawExpression:u.Expression.functionCall(A.function,u.Expression.parse(i.rawExpression)).toString(),type:A.type,metadata:A.metadata,displayName:A.name,selectable:!0};o(d)&&i.derived.push(d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i.selectable=o(i),i}));return i=i.filter((function(e){return(e.derived.length>0||e.selectable)&&!e.metadata.isRaw}))},t.prototype.isValueEqual=function(e,t){return e==t||null!=e&&null!=t&&(e.expression==t.expression&&e.table==t.table)},t.prototype.isValueExists=function(e,t){return!!t.find((function(t){return t==e||e.expression==t.expression&&e.table==t.table}))||(null==e||t.length,!1)},t.prototype.selectItem=function(e,t){var n,r=this;if(void 0===t&&(t=null),null==e)this.props.onChange&&this.props.onChange(null);else if(this.props.useAggregation&&null==t&&(t=u.Expression.getDefaultAggregationFunction(e.type,null===(n=e.metadata)||void 0===n?void 0:n.kind)),this.props.multiSelect?this.setState((function(n){var r=n.currentSelections.find((function(t){return t.expression===e.expression}));return i(i({},n),r?{currentSelections:n.currentSelections.filter((function(t){return t.expression!==e.expression})),currentSelectionsAggregations:n.currentSelectionsAggregations.filter((function(e){return e!==t}))}:{currentSelections:l(n.currentSelections,[e]),currentSelectionsAggregations:l(n.currentSelectionsAggregations,[t])})})):this.setState({currentSelection:e,currentSelectionAggregation:t}),this.props.onChange)if(this.props.multiSelect){var o=l(this.state.currentSelections,[e]).map((function(e){var n={table:e.table,expression:e.expression,rawExpression:e.rawExpression,columnName:e.columnName,type:e.type,metadata:e.metadata};return r.props.useAggregation&&(n.expression=u.Expression.functionCall(t,u.Expression.parse(e.expression)).toString(),n.rawExpression=u.Expression.functionCall(t,u.Expression.parse(e.rawExpression)).toString()),n}));this.props.onChangeSelectionList(o)}else{var a={table:e.table,expression:e.expression,rawExpression:e.rawExpression,columnName:e.columnName,type:e.type,metadata:e.metadata};this.props.useAggregation&&(a.expression=u.Expression.functionCall(t,u.Expression.parse(e.expression)).toString(),a.rawExpression=u.Expression.functionCall(t,u.Expression.parse(e.rawExpression)).toString()),this.props.onChange(a)}},t.prototype.renderCandidate=function(e){var t,n=this,r=function(e){e.selectable&&n.selectItem(e,n.isValueEqual(n.state.currentSelection,e)?n.state.currentSelectionAggregation:null)};return c.createElement("div",{className:"el-column-item",key:e.table+e.expression},c.createElement("div",{tabIndex:0,className:g.classNames("el-field-item",["is-active",this.props.multiSelect?this.isValueExists(e,this.state.currentSelections):this.isValueEqual(this.state.currentSelection,e)],["is-selectable",e.selectable]),onClick:function(){return r(e)},onKeyPress:function(t){"Enter"===t.key&&r(e)}},c.createElement(A.SVGImageIcon,{url:d.getSVGIcon(p.kind2Icon[e.metadata.kind])}),c.createElement("span",{className:"el-text"},e.displayName),this.props.useAggregation&&this.isValueEqual(this.state.currentSelection,e)?c.createElement(h.Select,{value:this.state.currentSelectionAggregation,options:u.Expression.getCompatibleAggregationFunctionsByDataType(e.type).map((function(e){return e.name})),labels:u.Expression.getCompatibleAggregationFunctionsByDataType(e.type).map((function(e){return e.displayName})),showText:!0,onChange:function(t){n.selectItem(e,t)}}):null,e.derived&&e.derived.length>0?c.createElement(h.Button,{icon:"general/more-vertical",onClick:function(){t&&("none"==t.style.display?t.style.display="block":t.style.display="none")}}):null),e.derived&&e.derived.length>0?c.createElement("div",{className:"el-derived-fields",style:{display:"none"},ref:function(e){return t=e}},e.derived.map((function(e){return n.renderCandidate(e)}))):null)},t.prototype.render=function(){var e=this,t=this.getFields();return c.createElement("div",{className:"charticulator__data-field-selector"},this.props.nullDescription?c.createElement("div",{tabIndex:0,className:g.classNames("el-field-item","is-null","is-selectable",["is-active",!this.props.nullNotHighlightable&&null==this.state.currentSelection]),onClick:function(){return e.selectItem(null)},onKeyPress:function(t){"Enter"===t.key&&e.selectItem(null)}},this.props.nullDescription):null,0!=t.length||this.props.nullDescription?null:c.createElement("div",{className:"el-field-item is-null"},"(no suitable column)"),t.map((function(t){return e.renderCandidate(t)})))},t}(c.Component);t.DataFieldSelector=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputColorGradient=t.FluentInputColor=void 0;var a=n(0),s=n(27),l=n(5),c=n(14),u=n(76),A=n(89),d=n(11),g=n(23),p=n(7),h=n(104),f=n(282),m=function(e){function t(t){var n=e.call(this,t)||this,r="";return n.props.defaultValue&&(r=l.colorToHTMLColorHEX(n.props.defaultValue)),n.state={open:!1,color:r,value:r},n}return o(t,e),t.prototype.componentWillReceiveProps=function(e){var t="";e.defaultValue&&(t=l.colorToHTMLColorHEX(e.defaultValue)),t!==this.state.value&&this.setState({value:t})},t.prototype.renderPicker=function(){var e=this,t="";this.props.defaultValue&&(t=l.colorToHTMLColorHEX(this.props.defaultValue));var n=this.props.labelKey.replace(/\W/g,"_");return a.createElement("span",{className:"el-color-display",style:{backgroundColor:""==t?"transparent":t,marginTop:this.props.noDefaultMargin?0:null,marginRight:5},id:"id_"+n,onClick:function(){e.setState({open:!e.state.open})}})},t.prototype.renderEmptyColorPicker=function(){var e=this,t=this.props.labelKey.replace(/\W/g,"_");return a.createElement("span",{id:"id_"+t},a.createElement(f.EmptyColorButton,{onClick:function(){e.setState({open:!e.state.open})},styles:this.props.styles}))},t.prototype.render=function(){var e,t=this,n="";this.props.defaultValue&&(n=l.colorToHTMLColorHEX(this.props.defaultValue));var r=this.props.labelKey.replace(/\W/g,"_"),o=this.renderPicker(),s=this.renderEmptyColorPicker();return a.createElement("span",{className:"charticulator__widget-control-input-color"},this.props.pickerBeforeTextField&&(""==n?s:o),a.createElement(g.FluentTextField,null,a.createElement(d.TextField,{label:this.props.label,onRenderLabel:g.labelRender,onChange:function(e,n){if(""==(n=n.trim()))return!!t.props.allowNull&&t.props.onEnter(null);t.setState({value:n});try{var r=l.parseColorOrThrowException(n);return!!r&&t.props.onEnter(r)}catch(e){}},placeholder:this.props.allowNull?p.strings.core.none:"",value:this.state.value,onKeyDown:function(e){t.props.stopPropagation&&e.stopPropagation()},styles:i(i({},g.defaultStyle),{fieldGroup:i(i({},g.defultComponentsHeight),{width:this.props.width}),root:i({},g.defultComponentsHeight),subComponentStyles:{label:i({},g.defaultLabelStyle)}}),underlined:null!==(e=this.props.underline)&&void 0!==e&&e})),!this.props.pickerBeforeTextField&&(""==n?s:o),this.state.open&&a.createElement(d.Callout,{target:"#id_"+r,onDismiss:function(){return t.setState({open:!t.state.open})}},a.createElement(A.ColorPicker,{store:this.props.store,allowNull:!0,onPick:function(e){null==e?t.props.onEnter(null):t.props.onEnter(e)},defaultValue:l.colorFromHTMLColor(n),parent:this,closePicker:function(){t.setState({open:!t.state.open})}})))},t}(a.Component);t.FluentInputColor=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this;return a.createElement("span",{className:"charticulator__widget-control-input-color-gradient"},a.createElement("span",{className:"el-color-gradient-display",ref:function(t){return e=t},onClick:function(){s.popupController.popupAt((function(e){return a.createElement(u.PopupView,{context:e},a.createElement(h.FluentUIGradientPicker,{defaultValue:t.props.defaultValue,onPick:function(e){t.props.onEnter(e)}}))}),{anchor:e})}},a.createElement(c.GradientView,{gradient:this.props.defaultValue})))},t}(a.Component);t.InputColorGradient=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputImageProperty=t.ImageUploader=t.ImageChooser=t.InputImage=void 0;var a=n(0),s=n(13),l=n(27),c=n(32),u=n(76),A=n(9),d=n(7),g=n(11),p=n(23),h=n(277),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dragOver:!1},t.startChooseImage=function(){l.popupController.popupAt((function(e){return a.createElement(u.PopupView,{context:e},a.createElement(m,{value:t.props.value,onChoose:function(n){e.close(),t.props.onChange&&t.props.onChange(n)}}))}),{anchor:t.element})},t.handleDragEnter=function(){t.setState({dragOver:!0})},t.handleDragLeave=function(){t.setState({dragOver:!1})},t.handleDragOver=function(e){e.preventDefault()},t.handleDrop=function(e){if(e.preventDefault(),t.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var n=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));y.ParseURIs(n).then((function(e){t.emitOnChange(e)})).catch((function(){}))}e.dataTransfer.files.length>0&&y.ParseFiles(e.dataTransfer.files).then((function(e){t.emitOnChange(e)}))},t}return o(t,e),t.prototype.resolveImage=function(e){return e},t.prototype.emitOnChange=function(e){1==e.length&&this.props.onChange({src:e[0].dataURL,width:e[0].width,height:e[0].height})},t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.src:null;return r&&r.startsWith("data:")&&(r="(data url)"),a.createElement("span",{className:A.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onClick:this.startChooseImage},this.state.dragOver?a.createElement("div",{style:{width:"100%"}},this.props.label?a.createElement(g.Label,{styles:p.defaultLabelStyle,style:{padding:0}},this.props.label):null,a.createElement("span",{className:"el-drag-over-attrubutes"},d.strings.objects.image.dropImage)):a.createElement("div",{style:{width:"100%"}},this.props.label?a.createElement(g.Label,{styles:p.defaultLabelStyle,style:{padding:0}},this.props.label):null,a.createElement(p.FluentActionButton,{style:{width:"100%",height:p.defultBindButtonSize.height}},a.createElement(g.ActionButton,{styles:{root:{height:p.defultBindButtonSize.height}},text:t?d.strings.core.none:r,iconProps:{imageProps:{src:t?s.getSVGIcon("FileImage"):n.src,style:{height:"16px",width:"16px"}}}}))))},t}(c.ContextedComponent);t.InputImage=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"charticulator__image-chooser"},a.createElement(y,{focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChoose({src:t[0].dataURL,width:t[0].width,height:t[0].height})}}))},t}(c.ContextedComponent);t.ImageChooser=m;var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={dragOver:!1},n.handleDragEnter=function(){n.setState({dragOver:!0})},n.handleDragLeave=function(){n.setState({dragOver:!1})},n.handleDragOver=function(e){e.preventDefault()},n.handleDrop=function(e){if(e.preventDefault(),n.setState({dragOver:!1}),e.dataTransfer.types.indexOf("text/uri-list")>=0){var r=e.dataTransfer.getData("text/uri-list").replace(/\r/g,"").split("\n").map((function(e){return e.trim()})).filter((function(e){return!e.startsWith("#")}));t.ParseURIs(r).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)}))}e.dataTransfer.files.length>0&&t.ParseFiles(e.dataTransfer.files).then((function(e){n.emitOnUpload(e)}))},n.handlePaste=function(e){e.clipboardData.files.length>0&&(e.preventDefault(),t.ParseFiles(e.clipboardData.files).then((function(e){n.emitOnUpload(e)})).catch((function(e){n.showError(e)})))},n.handleOpenFile=function(){var e=document.createElement("input");e.setAttribute("type","file"),e.onchange=function(){e.files.length>0&&t.ParseFiles(e.files).then((function(e){n.emitOnUpload(e)}))},e.click()},n.handleClearFile=function(){n.props.onClear&&n.props.onClear()},n}return o(t,e),t.ReadFileAsImage=function(e,t){return new Promise((function(n){var r=new FileReader;r.onload=function(){var t=new Image;t.onload=function(){n({name:e,width:t.width,height:t.height,dataURL:r.result})},t.src=r.result},r.readAsDataURL(t)}))},t.ParseFiles=function(e){for(var t=this,n=[],r=function(e){n.push(t.ReadFileAsImage(e.name,e))},o=0;o<e.length;o++){r(e[o])}return Promise.all(n)},t.ParseURIs=function(e){var t=this;return Promise.all(e.map((function(e){return fetch(e).then((function(e){return e.blob()})).then((function(e){return new Promise((function(n,r){e.type.startsWith("image/")?n(t.ReadFileAsImage("blob",e)):r(new Error("not an image"))}))}))})))},t.prototype.render=function(){var e=this;return a.createElement("div",{className:"charticulator__image-uploader",ref:function(t){return e.refContainer=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,style:{marginRight:5}},this.state.dragOver?a.createElement(h.ImageMappingDragStateWrapper,null,d.strings.objects.image.dropImage):a.createElement("span",{style:{width:"100%",display:"flex"}},a.createElement(g.TooltipHost,{content:this.props.placeholder||d.strings.objects.image.defaultPlaceholder,styles:h.ToolTipHostStyles},a.createElement(g.TextField,{value:this.props.placeholder||d.strings.objects.image.defaultPlaceholder,disabled:!0,styles:h.ImageMappingTextFieldStyles})),a.createElement(p.FluentButton,{marginTop:"0px"},a.createElement(g.DefaultButton,{styles:{root:i({minWidth:"unset"},p.defultBindButtonSize)},iconProps:{iconName:"OpenFolderHorizontal"},onClick:this.handleOpenFile}))))},t.prototype.showError=function(e){},t.prototype.emitOnUpload=function(e){this.props.onUpload&&this.props.onUpload(e)},t}(a.Component);t.ImageUploader=y;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this,t=null==this.props.value,n=t?null:this.resolveImage(this.props.value),r=n?n.name:null;return r&&r.startsWith("data:")&&(r="(data url)"),a.createElement("span",{className:A.classNames("charticulator__widget-control-input-image",["is-none",t],["is-drag-over",this.state.dragOver]),ref:function(t){return e.element=t},onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,style:{marginRight:5,marginLeft:5}},this.state.dragOver?a.createElement(h.ImageMappingDragStateWrapper,null,d.strings.objects.image.dropImage):[a.createElement(g.Image,{key:"image",src:t?s.getSVGIcon("FileImage"):n.src,width:24,height:24}),a.createElement(y,{key:0,placeholder:t?d.strings.core.none:r,focusOnMount:!0,onUpload:function(t){1==t.length&&e.props.onChange&&e.props.onChange({src:t[0].dataURL,width:t[0].width,height:t[0].height,name:t[0].name})}})])},t}(f);t.InputImageProperty=I},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentInputFormat=void 0;var o=n(11),i=n(0),a=n(5),s=n(23);t.FluentInputFormat=function(e){var t=r(i.useState(e.defaultValue),2),n=t[0],l=t[1],c=i.useCallback((function(){if(e.allowNull&&""==(null==n?void 0:n.trim()))l(""),e.onEnter(null);else{var t=e.validate(a.replaceTabBySymbol(a.replaceNewLineBySymbol(n)));t.pass&&(l(t.formatted),e.onEnter(t.formatted))}}),[e,n]),u=i.useCallback((function(){l(e.defaultValue||""),e.onCancel&&e.onCancel()}),[e]);return i.createElement("span",{className:"charticulator__widget-control-input-expression"},i.createElement(o.TextField,{styles:s.defaultStyle,label:e.label,onRenderLabel:s.labelRender,placeholder:e.placeholder,type:"text",onGetErrorMessage:function(){var t,r=null===(t=e.validate)||void 0===t?void 0:t.call(e,n);if(!r.pass)return r.error},defaultValue:a.replaceSymbolByTab(a.replaceSymbolByNewLine(n||e.defaultValue)),onChange:function(t,n){e.allowNull&&""==(null==n?void 0:n.trim())||a.Expression.verifyUserExpression(a.replaceTabBySymbol(a.replaceNewLineBySymbol(n)),{textExpression:e.textExpression}),l(n)},onBlur:function(){c()},onFocus:function(e){e.target.select()},onKeyDown:function(e){"Enter"==e.key&&c(),"Escape"==e.key&&u()}}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterPanel=void 0;var i=n(11),a=n(0),s=n(7),l=n(23),c=n(599);t.FilterPanel=function(e){var t=e.text,n=e.options,u=e.manager,A=o(a.useState(!1),2),d=A[0],g=A[1];switch(n.mode){case"button":return n.value&&(n.value.categories&&(t=s.strings.filter.filterBy+n.value.categories.expression),n.value.expression&&(t=s.strings.filter.filterBy+n.value.expression)),a.createElement(a.Fragment,null,a.createElement(l.FluentButton,{marginTop:"0px"},a.createElement(i.DefaultButton,{id:"filterTarget",text:t,iconProps:{iconName:"Filter"},onClick:function(){g(!d)},styles:{root:r({minWidth:"unset"},l.defultComponentsHeight)}})),d?a.createElement(i.Callout,{onDismiss:function(){return g(!1)},target:"#filterTarget",directionalHint:i.DirectionalHint.topCenter},a.createElement(c.FluentUIFilterEditor,{manager:u,value:n.value,options:n})):null);case"panel":return a.createElement(c.FluentUIFilterEditor,{manager:u,value:n.value,options:n})}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentUIFilterEditor=void 0;var s=n(11),l=n(0),c=n(5),u=n(7),A=n(19),d=n(126),g=n(23),p=n(127),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(t.props.value),t}return o(t,e),t.prototype.getDefaultState=function(e){var t="none";return e&&(e.expression&&(t="expression"),e.categories&&(t="categories")),{type:t,currentValue:e}},t.prototype.emitUpdateFilter=function(e){this.props.options.target.property&&this.props.manager.emitSetProperty(this.props.options.target.property,e),this.props.options.target.plotSegment&&this.props.manager.store.dispatcher.dispatch(new A.Actions.SetPlotSegmentFilter(this.props.options.target.plotSegment,e)),this.setState(this.getDefaultState(e))},t.prototype.render=function(){var e=this,t=this.props,n=t.manager,r=t.options,o=this.state.currentValue,i=[];switch(this.state.type){case"expression":i=[l.createElement(p.FluentInputExpression,{validate:function(e){return e?n.store.verifyUserExpressionWithTable(e,r.table,{expectedTypes:["boolean"]}):{pass:!0}},allowNull:!0,value:this.state.currentValue.expression,onEnter:function(t){return e.emitUpdateFilter({expression:t}),!0},label:u.strings.filter.expression})];break;case"categories":var A=[];if(o&&o.categories){for(var h in o.categories.values)Object.prototype.hasOwnProperty.call(o.categories.values,h)&&A.push(h);A.sort((function(e,t){return e<t?-1:1}))}i=[n.vertical(n.label(u.strings.filter.column),l.createElement("div",{className:"charticulator__filter-editor-column-selector"},l.createElement(d.DataFieldSelector,{defaultValue:{table:r.table,expression:this.state.currentValue.categories.expression},table:r.table,datasetStore:this.props.manager.store,kinds:[c.Specification.DataKind.Categorical],onChange:function(t){if(t.expression){for(var n=c.Expression.parse(t.expression),r=e.props.manager.store.chartManager.dataflow.getTable(t.table),o={},i=0;i<r.rows.length;i++){var a=r.getRowContext(i);o[n.getStringValue(a)]=!0}e.emitUpdateFilter({categories:{expression:t.expression,values:o}})}}}))),A.length>0?n.vertical(n.label(u.strings.filter.values),l.createElement("div",{className:"charticulator__filter-editor-values-selector"},l.createElement("div",{className:"el-buttons"},l.createElement(s.DefaultButton,{text:u.strings.filter.selectAll,onClick:function(){for(var t in o.categories.values)Object.prototype.hasOwnProperty.call(o.categories.values,t)&&(o.categories.values[t]=!0);e.emitUpdateFilter({categories:{expression:o.categories.expression,values:o.categories.values}})}})," ",l.createElement(s.DefaultButton,{text:u.strings.filter.clear,onClick:function(){for(var t in o.categories.values)Object.prototype.hasOwnProperty.call(o.categories.values,t)&&(o.categories.values[t]=!1);e.emitUpdateFilter({categories:{expression:o.categories.expression,values:o.categories.values}})}})),l.createElement("div",null,A.map((function(t){return l.createElement("div",{key:t},l.createElement(g.FluentCheckbox,null,l.createElement(s.Checkbox,{checked:o.categories.values[t],label:t,onChange:function(n,r){o.categories.values[t]=r,e.emitUpdateFilter({categories:{expression:o.categories.expression,values:o.categories.values}})}})))}))))):null]}return l.createElement("div",{className:"charticulator__filter-editor"},l.createElement("div",{className:"attribute-editor"},l.createElement("div",{className:"header"},u.strings.filter.editFilter),n.vertical.apply(n,a([l.createElement(s.Dropdown,{label:u.strings.filter.filterType,styles:{root:{minWidth:105}},onRenderLabel:g.labelRender,options:[u.strings.filter.none,u.strings.filter.categories,u.strings.filter.expression].map((function(e){return{key:e.toLowerCase(),text:e}})),selectedKey:this.state.type,onChange:function(t,n){e.state.type!=n.key&&("none"==n.key?e.emitUpdateFilter(null):e.setState({type:n.key,currentValue:{expression:"",categories:{expression:"",values:{}}}}))}})],i))))},t}(l.Component);t.FluentUIFilterEditor=h},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelHeader=t.CustomCollapsiblePanel=void 0;var o=n(0),i=n(0),a=n(11),s=n(23),l=n(5),c=n(281);t.CustomCollapsiblePanel=function(e){var n=e.widgets,a=e.header,s=e.styles,u=e.store,A=r(i.useState(!1),2),d=A[0],g=A[1],p=r(i.useState(!1),2),h=p[0],f=p[1],m=i.useMemo((function(){return d?null:n.filter((function(e){return Array.isArray(e)?null!=(null==e?void 0:e[0]):null!=e})).map((function(e,t){return Array.isArray(e)?e.map((function(e,t){return o.createElement("div",{key:"inner-widget-"+t},e)})):o.createElement("div",{key:"widget-"+t},e)}))}),[n,d]),y=null!=a?a:"",I="calloutId-"+l.getRandomNumber(),C=i.useCallback((function(e){e.preventDefault(),f(!h)}),[h]);return o.createElement("div",{key:"panel-"+y},o.createElement("div",{id:I,onContextMenu:function(e){return C(e)}},o.createElement(t.PanelHeader,{header:y,setCollapsed:g,collapsed:d,key:"panelHeader-"+y})),o.createElement("div",{style:s,key:"panelWidgets-"+y},m),o.createElement(c.ContextMenuCallout,{store:u,calloutId:I,hideCallout:function(e){return f(e)},calloutVisible:h}))},t.PanelHeader=function(e){var t=e.header,n=e.setCollapsed,r=e.collapsed;return o.createElement("div",{onClick:function(){return n(!r)}},o.createElement(a.DefaultButton,{iconProps:{iconName:r?"ChevronRight":"ChevronDown",styles:{root:{fontSize:"unset",height:12}}},styles:s.PanelHeaderStyles,onClick:function(){n(!r)}}),o.createElement(a.Label,{styles:{root:{display:"inline-block",cursor:"pointer"}}},t))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.FluentUIReorderStringsValue=void 0;var l=n(0),c=n(70),u=n(14),A=n(7),d=n(11),g=n(23),p=n(5),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={items:t.props.items.slice(),customOrder:!1,sortOrder:!1},t}return o(t,e),t.prototype.render=function(){var e,t=this,n=this.state.items;return l.createElement("div",{className:"charticulator__widget-popup-reorder-widget"},l.createElement("div",{className:"el-row el-list-view"},l.createElement(c.ReorderListView,{enabled:null===(e=this.props.allowDragItems)||void 0===e||e,onReorder:function(e,r){c.ReorderListView.ReorderArray(n,e,r),t.setState({items:n,customOrder:!0,sortOrder:!1}),t.props.onReorderHandler&&t.props.onReorderHandler()}},n.map((function(e){return l.createElement("div",{key:e+p.getRandomNumber(),className:"el-item"},l.createElement(d.TooltipHost,{content:e},e))})))),l.createElement("div",{className:"el-row"},l.createElement(d.DefaultButton,{iconProps:{iconName:"SortLines"},text:A.strings.reOrder.sort,onClick:function(){var e;t.setState({items:null!==(e=s(t.props.sortedCategories))&&void 0!==e?e:t.state.items.sort(),customOrder:!1,sortOrder:!0}),t.props.onButtonHandler&&t.props.onButtonHandler()},styles:{root:i(i({minWidth:"unset"},g.defultComponentsHeight),{padding:0,marginRight:5})}}),l.createElement(d.DefaultButton,{iconProps:{iconName:"Sort"},styles:{root:i(i({minWidth:"unset"},g.defultComponentsHeight),{padding:0,marginRight:5})},text:A.strings.reOrder.reverse,onClick:function(){t.setState({items:t.state.items.reverse(),customOrder:!0}),t.props.onButtonHandler&&t.props.onButtonHandler()}}),this.props.allowReset&&l.createElement(l.Fragment,null,l.createElement(d.DefaultButton,{iconProps:{iconName:"Clear"},styles:{root:i(i({minWidth:"unset"},g.defultComponentsHeight),{padding:0})},text:A.strings.reOrder.reset,onClick:function(){if(t.props.onReset){var e=t.props.onReset();t.setState({items:e,customOrder:!1,sortOrder:!1}),t.props.onButtonHandler&&t.props.onButtonHandler()}}}))),l.createElement("div",{className:"el-row"},l.createElement(u.ButtonRaised,{text:"OK",onClick:function(){t.props.onConfirm(t.state.items,t.state.customOrder,t.state.sortOrder)}})))},t}(l.Component);t.FluentUIReorderStringsValue=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputColorGradient=void 0;var i=n(0),a=n(27),s=n(58),l=n(14),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this;return i.createElement("span",{className:"charticulator__widget-control-input-color-gradient"},i.createElement("span",{className:"el-color-gradient-display",ref:function(t){return e=t},onClick:function(){a.popupController.popupAt((function(e){return i.createElement(s.PopupView,{context:e},i.createElement(l.GradientPicker,{defaultValue:t.props.defaultValue,onPick:function(e){t.props.onEnter(e)}}))}),{anchor:e})}},i.createElement(l.GradientView,{gradient:this.props.defaultValue})))},t}(i.Component);t.InputColorGradient=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.onRenderTitle=t.onRenderOption=t.iconStyles=t.dropdownStyles=void 0;var o=n(23),i=n(17),a=n(0),s=n(14),l=n(13);t.dropdownStyles=function(e){return{title:r(r({},o.defultComponentsHeight),{borderWidth:e.hideBorder?"0px":null}),dropdownItemsWrapper:{minWidth:90},callout:{marginTop:e.shiftCallout?e.shiftCallout:null}}},t.iconStyles={marginRight:"8px"},t.onRenderOption=function(e){return a.createElement(a.Fragment,null,e.data&&e.data.icon&&a.createElement(o.FluentDropdown,null,e.data.isLocalIcons?a.createElement("span",{style:t.iconStyles},a.createElement(s.SVGImageIcon,{url:l.getSVGIcon(e.data.icon)})):a.createElement(i.Icon,{style:t.iconStyles,iconName:e.data.icon,"aria-hidden":"true",title:e.data.icon})),a.createElement("span",null,e.text))},t.onRenderTitle=function(e){var n=e[0];return a.createElement(o.FluentDropdownWrapper,null,n.data&&n.data.icon&&a.createElement(o.FluentDropdown,null,n.data.isLocalIcons?a.createElement("span",{style:t.iconStyles},a.createElement(s.SVGImageIcon,{url:l.getSVGIcon(n.data.icon)})):a.createElement(i.Icon,{style:t.iconStyles,iconName:n.data.icon,"aria-hidden":"true",title:n.data.icon})),a.createElement("span",null,n.text))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributePanel=void 0;var s=n(0),l=n(13),c=n(5),u=n(19),A=n(14),d=n(37),g=n(125),p=n(7);var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tokens=[],t}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.tokens.push(this.props.store.addListener(d.AppStore.EVENT_GRAPHICS,(function(){e.forceUpdate()}))),this.tokens.push(this.props.store.addListener(d.AppStore.EVENT_SELECTION,(function(){e.forceUpdate()})))},t.prototype.componentWillUnmount=function(){this.tokens.forEach((function(e){return e.remove()})),this.tokens=[]},t.prototype.renderUnexpectedState=function(e){return s.createElement("div",{className:"attribute-editor charticulator__widget-container"},s.createElement("div",{className:"attribute-editor-unexpected"},e))},t.prototype.render=function(){var e,t,n,r,o=this,i=this.props.store.currentSelection;if(i){if(i instanceof d.GlyphSelection){if(!i.plotSegment)return this.renderUnexpectedState(p.strings.canvas.markContainer);var h=i.glyph;e=h,t=this.props.store.chartManager.getGlyphClass(this.props.store.chartManager.findGlyphState(i.plotSegment,i.glyph,this.props.store.getSelectedGlyphIndex(i.plotSegment._id))),(n=new g.FluentUIWidgetManager(this.props.store,t)).onEditMappingHandler=function(e,t){new u.Actions.SetGlyphAttribute(h,e,t).dispatch(o.props.store.dispatcher)}}if(i instanceof d.MarkSelection){if(!i.plotSegment)return this.renderUnexpectedState(p.strings.canvas.markContainer);var f=i.glyph,m=i.mark;e=m,t=this.props.store.chartManager.getMarkClass(this.props.store.chartManager.findMarkState(i.plotSegment,i.glyph,i.mark,this.props.store.getSelectedGlyphIndex(i.plotSegment._id))),(n=new g.FluentUIWidgetManager(this.props.store,t)).onEditMappingHandler=function(e,t){new u.Actions.SetMarkAttribute(f,m,e,t).dispatch(o.props.store.dispatcher)},n.onMapDataHandler=function(e,n,r){new u.Actions.MapDataToMarkAttribute(f,m,e,t.attributes[e].type,n.expression,n.valueType,n.metadata,r,n.table.name).dispatch(o.props.store.dispatcher)}}if(i instanceof d.ChartElementSelection){var y=i.chartElement,I=this.props.store.chartManager.getClassById(y._id);e=y,t=I,(n=new g.FluentUIWidgetManager(this.props.store,t)).onEditMappingHandler=function(e,t){new u.Actions.SetChartElementMapping(y,e,t).dispatch(o.props.store.dispatcher)},n.onMapDataHandler=function(e,n,r){new u.Actions.MapDataToChartElementAttribute(y,e,t.attributes[e].type,n.table.name,n.expression,n.valueType,n.metadata,r).dispatch(o.props.store.dispatcher)}}}else{var C=this.props.store.chart,E=this.props.store.chartManager.getChartClass(this.props.store.chartState);e=C,t=E,(n=new g.FluentUIWidgetManager(this.props.store,t)).onEditMappingHandler=function(e,t){new u.Actions.SetChartAttribute(e,t).dispatch(o.props.store.dispatcher)}}if(n)return s.createElement("div",{className:"attribute-editor charticulator__widget-container"},s.createElement("section",{className:"attribute-editor-element",key:e._id},s.createElement("div",{className:"header",key:"header"},s.createElement(A.SVGImageIcon,{url:(r=e.classID,l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(r).iconPath||"object")),height:32,width:32}),s.createElement(A.EditableTextView,{text:e.properties.name,onEdit:function(t){new u.Actions.SetObjectProperty(e,"name",null,t,!0).dispatch(o.props.store.dispatcher)}})),n.searchInput({placeholder:"Search"}),n.vertical.apply(n,a(t.getAttributePanelWidgets(n)))))},t}(s.Component);t.AttributePanel=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ExportTemplateView=t.FileViewExport=t.ExportHTMLView=t.ExportImageView=t.InputGroup=void 0;var l=n(11),c=n(0),u=n(106),A=n(5),d=n(606),g=n(39),p=n(7),h=n(19),f=n(14),m=n(13),y=n(9),I=n(40),C=n(262),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return c.createElement("div",{className:"form-group"},c.createElement("input",{ref:function(t){return e.ref=t},type:"text",required:!0,value:this.props.value||"",onChange:function(){e.props.onChange(e.ref.value)}}),c.createElement("label",null,this.props.label),c.createElement("i",{className:"bar"}))},t}(c.Component);t.InputGroup=E;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dpi:"144"},t}return o(t,e),t.prototype.getScaler=function(){var e=+this.state.dpi;return(e<1||e!=e)&&(e=144),(e=Math.max(Math.min(e,1200),36))/72},t.prototype.render=function(){var e=this;return c.createElement("div",{className:"el-horizontal-layout-item is-fix-width"},c.createElement(u.CurrentChartView,{store:this.props.store}),c.createElement(E,{label:p.strings.fileExport.imageDPI,value:this.state.dpi,onChange:function(t){e.setState({dpi:t})}}),c.createElement("div",{className:"buttons"},c.createElement(l.DefaultButton,{text:p.strings.fileExport.typePNG,iconProps:{iconName:"Export"},styles:A.primaryButtonStyles,onClick:function(){e.props.store.dispatcher.dispatch(new h.Actions.Export("png",{scale:e.getScaler()}))}})," ",c.createElement(l.DefaultButton,{text:p.strings.fileExport.typeJPEG,iconProps:{iconName:"Export"},styles:A.primaryButtonStyles,onClick:function(){e.props.store.dispatcher.dispatch(new h.Actions.Export("jpeg",{scale:e.getScaler()}))}})," ",c.createElement(l.DefaultButton,{text:p.strings.fileExport.typeSVG,iconProps:{iconName:"Export"},styles:A.primaryButtonStyles,onClick:function(){e.props.store.dispatcher.dispatch(new h.Actions.Export("svg"))}})))},t}(c.Component);t.ExportImageView=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return c.createElement("div",{className:"el-horizontal-layout-item is-fix-width"},c.createElement(u.CurrentChartView,{store:this.props.store}),c.createElement("div",{className:"buttons"},c.createElement(l.DefaultButton,{text:p.strings.fileExport.typeHTML,iconProps:{iconName:"Export"},styles:A.primaryButtonStyles,onClick:function(){e.props.store.dispatcher.dispatch(new h.Actions.Export("html"))}})))},t}(c.Component);t.ExportHTMLView=v;var B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={exportMode:"image"},t}return o(t,e),t.prototype.renderExportView=function(e){return"image"==e?c.createElement(b,{store:this.props.store}):"html"==e?c.createElement(v,{store:this.props.store}):void 0},t.prototype.renderExportTemplate=function(){return c.createElement("div",{className:"el-horizontal-layout-item is-fix-width"},c.createElement(u.CurrentChartView,{store:this.props.store}),c.createElement(M,{store:this.props.store,exportKind:this.state.exportMode}))},t.prototype.render=function(){var e=this;return c.createElement("div",{className:"charticulator__file-view-content"},c.createElement("h1",null,p.strings.mainTabs.export),c.createElement("div",{className:"el-horizontal-layout"},c.createElement("div",{className:"el-horizontal-layout-item"},c.createElement("div",{className:"charticulator__list-view"},c.createElement("div",{tabIndex:0,className:y.classNames("el-item",["is-active","image"==this.state.exportMode]),onClick:function(){return e.setState({exportMode:"image"})},onKeyPress:function(t){"Enter"===t.key&&e.setState({exportMode:"image"})}},c.createElement(f.SVGImageIcon,{url:m.getSVGIcon("toolbar/export")}),c.createElement("span",{className:"el-text"},p.strings.fileExport.asImage)),c.createElement("div",{tabIndex:0,className:y.classNames("el-item",["is-active","html"==this.state.exportMode]),onClick:function(){return e.setState({exportMode:"html"})},onKeyPress:function(t){"Enter"===t.key&&e.setState({exportMode:"html"})}},c.createElement(f.SVGImageIcon,{url:m.getSVGIcon("toolbar/export")}),c.createElement("span",{className:"el-text"},p.strings.fileExport.asHTML)),this.props.store.listExportTemplateTargets().map((function(t){return c.createElement("div",{tabIndex:0,key:t,className:y.classNames("el-item",["is-active",e.state.exportMode==t]),onClick:function(){return e.setState({exportMode:t})},onKeyPress:function(n){"Enter"===n.key&&e.setState({exportMode:t})}},c.createElement(f.SVGImageIcon,{url:m.getSVGIcon("toolbar/export")}),c.createElement("span",{className:"el-text"},t))})))),c.createElement(f.TelemetryContext.Consumer,null,(function(t){return c.createElement(f.ErrorBoundary,{maxWidth:300,telemetryRecorder:t},"image"==e.state.exportMode||"html"==e.state.exportMode?e.renderExportView(e.state.exportMode):e.renderExportTemplate())}))))},t}(c.Component);t.FileViewExport=B;var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(t.props.exportKind),t}return o(t,e),t.prototype.getDefaultState=function(e){var t,n;this.props.store.dataset.tables.forEach((function(e){return d.ensureColumnsHaveExamples(e)}));var r=A.deepClone(this.props.store.buildChartTemplate()),o=this.props.store.createExportTemplateTarget(e,r),i={};try{for(var s=a(o.getProperties()),l=s.next();!l.done;l=s.next()){var c=l.value;i[c.name]=this.props.store.getPropertyExportName(c.name)||c.default}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return{template:r,target:o,targetProperties:i}},t.prototype.componentWillReceiveProps=function(e){this.setState(this.getDefaultState(e.exportKind))},t.prototype.renderInput=function(e,t,n,r,o){var i;switch(t){case"string":return c.createElement("div",{className:"form-group"},c.createElement("input",{ref:function(e){return i=e},type:"text",required:!0,value:n||"",onChange:function(){o(i.value)}}),c.createElement("label",null,e),c.createElement("i",{className:"bar"}));case"boolean":var a=!!n;return c.createElement("div",{className:"el-inference-item",onClick:function(){o(!a)}},c.createElement(f.SVGImageIcon,{url:a?m.getSVGIcon("checkbox/checked"):m.getSVGIcon("checkbox/empty")}),c.createElement("span",{className:"el-text"},e));case"file":return c.createElement("div",{className:"form-group-file"},c.createElement("label",null,e),c.createElement("div",{style:{display:"flex",flexDirection:"row"}},c.createElement(I.InputImageProperty,{value:n,onChange:function(e){return o(e),!0}}),c.createElement(I.Button,{icon:"general/eraser",onClick:function(){o(r)}})),c.createElement("i",{className:"bar"}))}},t.prototype.renderTargetProperties=function(){var e=this;return this.state.target.getProperties().map((function(t){var n=e.props.store.getPropertyExportName(t.name),r=e.state.targetProperties;return c.createElement("div",{key:t.name},e.renderInput(t.displayName,t.type,n||r[t.name],t.default,(function(n){var o;e.props.store.setPropertyExportName(t.name,n),e.setState({targetProperties:i(i({},r),(o={},o[t.name]=n,o))})})))}))},t.prototype.renderSlots=function(){var e=this;return 0==this.state.template.tables.length?c.createElement("p",null,p.strings.core.none):this.state.template.tables.map((function(t){return c.createElement("div",{key:t.name},t.columns.filter((function(e){return!e.metadata.isRaw})).map((function(n){return c.createElement("div",{key:n.name},e.renderInput(p.strings.fileExport.slotColumnName(n.name),"string",n.displayName,null,(function(r){[e.getOriginalColumn(t.name,n.name),n].forEach((function(e){return e.displayName=r})),e.setState({template:e.state.template})})),e.renderInput(p.strings.fileExport.slotColumnExample(n.name),"string",n.metadata.examples,null,(function(r){[e.getOriginalColumn(t.name,n.name),n].forEach((function(e){return e.metadata.examples=r})),e.setState({template:e.state.template})})))})))}))},t.prototype.getOriginalColumn=function(e,t){return this.props.store.dataset.tables.find((function(t){return t.name===e})).columns.find((function(e){return e.name===t}))},t.prototype.renderInferences=function(){var e=this,t=this.state.template;return 0==t.inference.length?c.createElement("p",null,p.strings.core.none):t.inference.filter((function(e){return e.axis||e.scale})).map((function(n,r){var o,i,a=g.findObjectById(e.props.store.chart,n.objectID),s=g.findObjectById(t.specification,n.objectID),l=a.properties.name;n.scale&&(o=p.strings.fileExport.inferScaleMin(l),i=p.strings.fileExport.inferScaleMax(l)),n.axis&&(o=p.strings.fileExport.inferAxisMin(l,n.axis.property.toString()),i=p.strings.fileExport.inferAxisMax(l,n.axis.property.toString()));var u=C.noop,A=C.noop,d=null,y=null;return n.axis&&(void 0===a.properties[n.axis.property].autoDomainMax?(e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,n.axis.property,"autoDomainMax",!0,!0,!0)),s.properties.autoDomainMax=!0,n.autoDomainMax=!0):n.autoDomainMax=a.properties[n.axis.property].autoDomainMax,A=function(){e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,n.axis.property,"autoDomainMax",!a.properties[n.axis.property].autoDomainMax,!0,!0)),e.setState({template:t})},y=function(){return a.properties[n.axis.property].autoDomainMax}),n.scale&&(void 0===a.properties.autoDomainMax?(e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,"autoDomainMax",null,!0,!0,!0)),s.properties.autoDomainMax=!0,n.autoDomainMax=!0):n.autoDomainMax=s.properties.autoDomainMax,A=function(){e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,"autoDomainMax",null,!a.properties.autoDomainMax,!0,!0)),e.setState({template:t})},y=function(){return a.properties.autoDomainMax}),n.axis&&(void 0===a.properties[n.axis.property].autoDomainMin?(e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,n.axis.property,"autoDomainMin",!0,!0,!0)),s.properties.autoDomainMin=!0,n.autoDomainMin=!0):n.autoDomainMin=a.properties[n.axis.property].autoDomainMin,u=function(){e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,n.axis.property,"autoDomainMin",!a.properties[n.axis.property].autoDomainMin,!0,!0)),e.setState({template:t})},d=function(){return a.properties[n.axis.property].autoDomainMin}),n.scale&&(void 0===a.properties.autoDomainMin?(e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,"autoDomainMin",null,!0,!0,!0)),s.properties.autoDomainMin=!0,n.autoDomainMin=!0):n.autoDomainMin=a.properties.autoDomainMin,u=function(){e.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(a,"autoDomainMin",null,!a.properties.autoDomainMin,!0,!0)),e.setState({template:t})},d=function(){return a.properties.autoDomainMin}),c.createElement(c.Fragment,{key:r},c.createElement("div",{className:"el-inference-item",onClick:u},c.createElement(f.SVGImageIcon,{url:d()?m.getSVGIcon("checkbox/checked"):m.getSVGIcon("checkbox/empty")}),c.createElement("span",{className:"el-text"},o)),c.createElement("div",{className:"el-inference-item",onClick:A},c.createElement(f.SVGImageIcon,{url:y()?m.getSVGIcon("checkbox/checked"):m.getSVGIcon("checkbox/empty")}),c.createElement("span",{className:"el-text"},i)))}))},t.prototype.renderExposedProperties=function(){var e,t,n,r,o=this,i=this.state.template,l=[],u=new Map;try{for(var d=a(this.state.template.properties),p=d.next();!p.done;p=d.next()){var y=p.value,I=y.objectID;if((v=g.findObjectById(this.props.store.chart,I))&&(y.target.attribute||y.target.property)){if(null==v.properties.exposed)this.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(v,"exposed",null,!0,!0,!0)),g.findObjectById(this.state.template.specification,I).properties.exposed=!0;u.set(I,v)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}var C=function(e,t){if(A.Prototypes.isType(t.classID,"guide"))return"continue";var n=function(){o.props.store.dispatcher.dispatch(new h.Actions.SetObjectProperty(t,"exposed",null,!(void 0===t.properties.exposed||t.properties.exposed),!0,!0));var e=g.findObjectById(o.state.template.specification,t._id);e.properties.exposed=!e.properties.exposed,o.setState({template:i})};l.push(c.createElement("div",{"aria-checked":void 0===t.properties.exposed||t.properties.exposed?"true":"false",tabIndex:0,key:e,className:"el-inference-item",onClick:n,onKeyPress:function(e){"Enter"===e.key&&n()}},c.createElement(f.SVGImageIcon,{url:void 0===t.properties.exposed||t.properties.exposed?m.getSVGIcon("checkbox/checked"):m.getSVGIcon("checkbox/empty")}),c.createElement(f.SVGImageIcon,{url:m.getSVGIcon(A.Prototypes.ObjectClasses.GetMetadata(t.classID).iconPath)}),c.createElement("span",{className:"el-text"},t.properties.name)))};try{for(var E=a(u),b=E.next();!b.done;b=E.next()){var v,B=s(b.value,2);C(B[0],v=B[1])}}catch(e){n={error:e}}finally{try{b&&!b.done&&(r=E.return)&&r.call(E)}finally{if(n)throw n.error}}return l},t.prototype.render=function(){var e=this;return c.createElement("div",{className:"charticulator__export-template-view"},c.createElement("h2",null,p.strings.fileExport.labelSlots),this.renderSlots(),c.createElement("h2",null,p.strings.fileExport.labelAxesAndScales),this.renderInferences(),c.createElement("h2",null,p.strings.fileExport.labelExposedObjects),this.renderExposedProperties(),c.createElement("h2",null,p.strings.fileExport.labelProperties(this.props.exportKind)),this.renderTargetProperties(),c.createElement("div",{className:"buttons"},c.createElement(l.DefaultButton,{text:this.props.exportKind,iconProps:{iconName:"Export"},styles:A.primaryButtonStyles,onClick:function(){e.props.store.dispatcher.dispatch(new h.Actions.ExportTemplate(e.props.exportKind,e.state.target,e.state.targetProperties))}})))},t}(c.Component);t.ExportTemplateView=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureColumnsHaveExamples=void 0;var r=n(81);t.ensureColumnsHaveExamples=function(e){e.columns.forEach((function(t){if(!t.metadata.examples){var n=[];if(t.type===r.DataType.Boolean)n=["true","false"];else{var o=function(e,t){var n={};return e.rows.forEach((function(e){var r=e[t.name].toString();n[r]=null})),Object.keys(n)}(e,t);t.metadata.kind===r.DataKind.Ordinal&&o.sort(),n=o.slice(0,3)}n=n.map((function(e){return e.indexOf(",")>=0?JSON.stringify(e):e})),t.metadata.examples=n.join(", ")}}))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FileViewNew=void 0;var i=n(0),a=n(7),s=n(19),l=n(608),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("section",{className:"charticulator__file-view-content"},i.createElement("h1",null,a.strings.mainTabs.new),i.createElement(l.ImportDataView,{store:this.props.store,onConfirmImport:function(t){e.props.store.dispatcher.dispatch(new s.Actions.ImportDataset(t)),e.props.onClose()}}))},t}(i.Component);t.FileViewNew=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportDataView=t.FileUploader=void 0;var l=n(0),c=n(13),u=n(27),A=n(180),d=n(5),g=n(9),p=n(14),h=n(100),f=n(266),m=n(58),y=n(38),I=n(37),C=n(124),E=n(7),b=n(11),v=function(e){function t(t){var n=e.call(this,t)||this;return n.state={draggingOver:!1,filename:t.filename},n}return o(t,e),t.prototype.reset=function(){this.inputElement.value=null,this.setState({filename:null})},t.prototype.onInputChange=function(){1==this.inputElement.files.length&&(this.setState({filename:this.inputElement.files[0].name}),this.props.onChange&&this.props.onChange(this.inputElement.files[0]))},t.prototype.showOpenFile=function(){this.reset(),this.inputElement.click()},t.prototype.isDataTransferValid=function(e){return!(!e||1!=e.items.length||"file"!=e.items[0].kind)},t.prototype.getFileFromDataTransfer=function(e){if(e&&1==e.items.length&&"file"==e.items[0].kind){var t=e.items[0].getAsFile(),n=g.getExtensionFromFileName(t.name);return this.props.extensions.indexOf(n)>=0?t:null}return e&&1==e.files.length?e.files[0]:null},t.prototype.render=function(){var e=this;return l.createElement("div",{tabIndex:0,className:g.classNames("charticulator__file-uploader",["is-dragging-over",this.state.draggingOver],["is-active",null!=this.state.filename]),onClick:function(){return e.showOpenFile()},onKeyPress:function(t){"Enter"===t.key&&e.showOpenFile()},onDragOver:function(t){t.preventDefault(),e.isDataTransferValid(t.dataTransfer)&&e.setState({draggingOver:!0})},onDragLeave:function(){e.setState({draggingOver:!1})},onDragExit:function(){e.setState({draggingOver:!1})},onDrop:function(t){t.preventDefault(),e.setState({draggingOver:!1});var n=e.getFileFromDataTransfer(t.dataTransfer);null!=n&&(e.setState({filename:n.name}),e.props.onChange&&e.props.onChange(n))}},l.createElement("input",{style:{display:"none"},accept:this.props.extensions.map((function(e){return"."+e})).join(","),ref:function(t){return e.inputElement=t},type:"file",onChange:function(){return e.onInputChange()}}),null==this.state.filename?l.createElement("span",{className:"charticulator__file-uploader-prompt"},l.createElement(h.SVGImageIcon,{url:c.getSVGIcon("toolbar/import")}),E.strings.fileImport.fileUpload):l.createElement("span",{className:"charticulator__file-uploader-filename"},this.state.filename))},t}(l.Component);t.FileUploader=v;var B=function(e){function t(t){var n=e.call(this,t)||this;return n.state={dataTable:null,imagesTable:null,linkTable:null,dataTableOrigin:null,linkTableOrigin:null},n.props.store.addListener(I.AppStore.EVENT_GRAPHICS,(function(){n.isComponentMounted&&n.forceUpdate()})),n}return o(t,e),t.prototype.componentDidMount=function(){this.isComponentMounted=!0},t.prototype.componentWillUnmount=function(){this.isComponentMounted=!1},t.prototype.loadFileAsTable=function(e){var t=this;return g.readFileAsString(e).then((function(n){var r=t.props.store.getLocaleFileFormat(),o=g.getExtensionFromFileName(e.name),a=g.getFileNameWithoutExtension(e.name),l=new d.Dataset.DatasetLoader;switch(o){case"csv":var c=l.loadDSVFromContents(a,n,r),u=c.columns.filter((function(e){return e.name===d.ImageKeyColumn||e.type===d.Dataset.DataType.Image}));if(2===u.length){var A=c.rows.map((function(e){return null==e?void 0:e[d.ImageKeyColumn]})),p=s(new Set(A)).map((function(e){return c.rows.find((function(t){return t[d.ImageKeyColumn]===e}))})),h=i(i({},c),{name:c.name+"Images",displayName:c.displayName+"Images",columns:u,rows:p.map((function(e){var t={_id:e._id};return u.forEach((function(n){t[n.name]=e[n.name]})),t}))});return c.columns=c.columns.filter((function(e){return e.type!==d.Dataset.DataType.Image&&e.displayName!==d.ImageKeyColumn})),[c,h]}return[c,null];case"tsv":return[l.loadDSVFromContents(a,n,{delimiter:"\t",numberFormat:r.numberFormat,currency:null,group:null,utcTimeZone:!0}),null]}}))},t.prototype.renderTable=function(e,t){return l.createElement("div",{className:"wide-content"},l.createElement(f.TableView,{table:e,maxRows:5,onTypeChange:t}))},t.prototype.render=function(){var e,t=this,n=A.getConfig().SampleDatasets;return l.createElement("div",{className:"charticulator__import-data-view"},null!=n?l.createElement("div",{ref:function(t){return e=t}},l.createElement(p.ButtonRaised,{text:E.strings.fileImport.loadSample,onClick:function(){u.popupController.popupAt((function(e){return l.createElement(m.PopupView,{context:e},l.createElement("div",{className:"charticulator__sample-dataset-list"},n.map((function(n){return l.createElement("div",{className:"charticulator__sample-dataset-list-item",key:n.name,onClick:function(){Promise.all(n.tables.map((function(e,n){return(new d.Dataset.DatasetLoader).loadDSVFromURL(e.url,t.props.store.getLocaleFileFormat()).then((function(t){return t.name=e.name,t.displayName=e.name,t.type=0==n?y.TableType.Main:y.TableType.Links,t}))}))).then((function(r){e.close();var o={name:n.name,tables:r};t.props.onConfirmImport(o)}))}},l.createElement("div",{className:"el-title"},n.name),l.createElement("div",{className:"el-description"},n.description))}))))}),{anchor:e})}})):null,l.createElement("h2",null,"Data",this.state.dataTable?": "+this.state.dataTable.name:null),this.state.dataTable?l.createElement(l.Fragment,null,l.createElement("div",{className:"charticulator__import-data-view-table"},this.renderTable(this.state.dataTable,(function(e,n){var r=t.state.dataTable.columns.find((function(t){return t.name===e})),o=g.convertColumns(t.state.dataTable,r,t.state.dataTableOrigin,n);o?t.props.store.dispatcher.dispatch(new C.AddMessage("parsingDataError",{text:o})):(t.setState({dataTable:t.state.dataTable}),r.type=n,r.metadata.kind=g.getPreferredDataKind(n))})),l.createElement(b.DefaultButton,{text:E.strings.fileImport.removeButtonText,iconProps:{iconName:"ChromeClose"},styles:d.primaryButtonStyles,title:E.strings.fileImport.removeButtonTitle,onClick:function(){t.setState({dataTable:null,dataTableOrigin:null})}})),this.state.imagesTable?l.createElement("div",{className:"charticulator__import-data-view-table"},this.renderTable(this.state.imagesTable,(function(e,n){var r=t.state.imagesTable.columns.find((function(t){return t.name===e})),o=g.convertColumns(t.state.imagesTable,r,t.state.dataTableOrigin,n);o?t.props.store.dispatcher.dispatch(new C.AddMessage("parsingDataError",{text:o})):(t.setState({imagesTable:t.state.imagesTable}),r.type=n,r.metadata.kind=g.getPreferredDataKind(n))}))):null):l.createElement(v,{extensions:["csv","tsv"],onChange:function(e){t.loadFileAsTable(e).then((function(e){var n=a(e,2),r=n[0],o=n[1];r.type=y.TableType.Main,o&&(o.type=y.TableType.Image),t.checkKeyColumn(r,t.state.linkTable),t.setState({dataTable:r,dataTableOrigin:d.deepClone(r),imagesTable:o})}))}}),l.createElement("h2",null,E.strings.fileImport.links,this.state.linkTable?": "+this.state.linkTable.name:null),this.state.linkTable?l.createElement("div",{className:"charticulator__import-data-view-table"},this.renderTable(this.state.linkTable,(function(e,n){var r=t.state.linkTable.columns.find((function(t){return t.name===e})),o=g.convertColumns(t.state.linkTable,r,t.state.dataTableOrigin,n);o&&t.props.store.dispatcher.dispatch(new C.AddMessage("parsingDataError",{text:o})),t.setState({linkTable:t.state.linkTable,linkTableOrigin:t.state.linkTable})})),l.createElement(b.DefaultButton,{text:E.strings.fileImport.removeButtonText,iconProps:{iconName:"ChromeClose"},title:E.strings.fileImport.removeButtonTitle,styles:d.primaryButtonStyles,onClick:function(){t.setState({linkTable:null,linkTableOrigin:null}),t.checkSourceAndTargetColumns(null),t.checkKeyColumn(t.state.dataTable,null)}})):l.createElement(v,{extensions:["csv","tsv"],onChange:function(e){t.loadFileAsTable(e).then((function(e){var n=a(e,1)[0];n.type=y.TableType.Links,t.checkSourceAndTargetColumns(n),t.checkKeyColumn(t.state.dataTable,n),t.setState({linkTable:n,linkTableOrigin:d.deepClone(n)})}))}}),l.createElement("div",{className:"el-actions"},l.createElement(b.DefaultButton,{text:E.strings.fileImport.doneButtonText,iconProps:{iconName:"CheckMark"},styles:d.primaryButtonStyles,title:E.strings.fileImport.doneButtonTitle,disabled:null==this.state.dataTable||void 0!==this.props.store.messageState.get("noID")||void 0!==this.props.store.messageState.get("noSourceOrTargetID"),onClick:function(){if(null!=t.state.dataTable&&void 0===t.props.store.messageState.get("noID")&&void 0===t.props.store.messageState.get("noSourceOrTargetID")){var e={name:t.state.dataTable.name,tables:[t.state.dataTable,t.state.imagesTable].filter((function(e){return null!=e}))};null!=t.state.linkTable&&e.tables.push(t.state.linkTable),t.props.onConfirmImport(e)}}})),l.createElement("div",{className:"charticulator__credits"},l.createElement("p",{dangerouslySetInnerHTML:{__html:A.getConfig().LegalNotices&&A.getConfig().LegalNotices.privacyStatementHTML}})))},t.prototype.checkSourceAndTargetColumns=function(e){var t=e&&e.columns.filter((function(e){return e.name===d.LinkSourceKeyColumn||e.name===d.LinkTargetKeyColumn})).length;e&&t<2?this.props.store.dispatcher.dispatch(new C.AddMessage("noSourceOrTargetID",{text:E.strings.fileImport.messageNoSourceOrTargetID(d.LinkSourceKeyColumn,d.LinkTargetKeyColumn)})):this.props.store.dispatcher.dispatch(new C.RemoveMessage("noSourceOrTargetID"))},t.prototype.checkKeyColumn=function(e,t){!(e&&e.columns.find((function(e){return e.name===d.KeyColumn})))&&t?this.props.store.dispatcher.dispatch(new C.AddMessage("noID",{text:E.strings.fileImport.messageNoID(d.KeyColumn)})):this.props.store.dispatcher.dispatch(new C.RemoveMessage("noID"))},t}(l.Component);t.ImportDataView=B},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileViewOpen=void 0;var s=n(178),l=n(0),c=n(13),u=n(14),A=n(19),d=n(9),g=n(7),p=n(11),h=n(5),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={chartList:[],chartCount:0},t}return o(t,e),t.prototype.componentDidMount=function(){this.updateChartList()},t.prototype.updateChartList=function(){var e=this;this.props.store.backend.list("chart","timeCreated",0,1e3).then((function(t){e.setState({chartList:t.items,chartCount:t.totalCount})}))},t.prototype.renderChartList=function(){var e=this,t=this.props.store.backend;return null==this.state.chartList?l.createElement("p",{className:"loading-indicator"},l.createElement(u.SVGImageIcon,{url:c.getSVGIcon("loading")})," ",g.strings.app.loading):0==this.state.chartCount?l.createElement("p",null,g.strings.fileOpen.noChart):l.createElement("ul",{className:"chart-list"},this.state.chartList.map((function(n){return l.createElement("li",{key:n.id,tabIndex:0,onClick:function(){e.props.store.dispatcher.dispatch(new A.Actions.Open(n.id,(function(t){t||e.props.onClose()})))},onKeyPress:function(t){"Enter"===t.key&&e.props.store.dispatcher.dispatch(new A.Actions.Open(n.id,(function(t){t||e.props.onClose()})))}},l.createElement("div",{className:"thumbnail"},l.createElement("img",{src:n.metadata.thumbnail})),l.createElement("div",{className:"description"},l.createElement("div",{className:"name",onClick:function(e){return e.stopPropagation()}},l.createElement(u.EditableTextView,{text:n.metadata.name,onEdit:function(r){t.get(n.id).then((function(n){n.metadata.name=r,t.put(n.id,n.data,n.metadata).then((function(){e.updateChartList()}))}))}})),l.createElement("div",{className:"metadata"},n.metadata.dataset),l.createElement("div",{className:"footer"},l.createElement("div",{className:"metadata"},new Date(n.metadata.timeCreated).toLocaleString()),l.createElement("div",{className:"actions"},l.createElement(u.ButtonFlat,{url:c.getSVGIcon("toolbar/trash"),title:g.strings.fileOpen.delete,stopPropagation:!0,onClick:function(){confirm(g.strings.fileOpen.deleteConfirmation(n.metadata.name))&&t.delete(n.id).then((function(){e.updateChartList()}))}}),l.createElement(u.ButtonFlat,{url:c.getSVGIcon("toolbar/copy"),title:g.strings.fileOpen.copy,stopPropagation:!0,onClick:function(){t.get(n.id).then((function(n){t.create("chart",n.data,n.metadata).then((function(){e.updateChartList()}))}))}}),l.createElement(u.ButtonFlat,{url:c.getSVGIcon("toolbar/download"),title:g.strings.fileOpen.download,stopPropagation:!0,onClick:function(){t.get(n.id).then((function(e){var t=new Blob([JSON.stringify(e.data,null,2)]);s.saveAs(t,e.metadata.name.replace(/[^0-9a-zA-Z\ \.\-\_]+/g,"_")+".chart")}))}})))))})))},t.prototype.render=function(){var e=this;return l.createElement("section",{className:"charticulator__file-view-content is-fix-width"},l.createElement("h1",null,g.strings.mainTabs.open),l.createElement("div",{style:{marginBottom:"12px"}},l.createElement(p.DefaultButton,{iconProps:{iconName:"OpenFolderHorizontal"},styles:h.primaryButtonStyles,text:g.strings.fileOpen.open,onClick:function(){return i(e,void 0,void 0,(function(){var e,t,n;return a(this,(function(r){switch(r.label){case 0:return[4,d.showOpenFileDialog(["chart"])];case 1:return e=r.sent(),[4,d.readFileAsString(e)];case 2:return t=r.sent(),n=JSON.parse(t),this.props.store.dispatcher.dispatch(new A.Actions.Load(n.state)),this.props.onClose(),[2]}}))}))}})),this.renderChartList())},t}(l.Component);t.FileViewOpen=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FileViewSaveAs=void 0;var i=n(0),a=n(13),s=n(106),l=n(14),c=n(19),u=n(7),A=n(11),d=n(105),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t}return o(t,e),t.prototype.render=function(){var e,t=this;return i.createElement("section",{className:"charticulator__file-view-content is-fix-width"},i.createElement("h1",null,u.strings.mainTabs.save),i.createElement("section",null,i.createElement(s.CurrentChartView,{store:this.props.store}),i.createElement("div",{className:"form-group"},i.createElement("input",{ref:function(t){return e=t},type:"text",required:!0,defaultValue:this.props.store.dataset.name}),i.createElement("label",null,u.strings.fileSave.chartName),i.createElement("i",{className:"bar"})),i.createElement("div",{className:"buttons"},i.createElement("span",{className:"el-progress"},this.state.saving?i.createElement(l.SVGImageIcon,{url:a.getSVGIcon("loading")}):null),i.createElement(A.DefaultButton,{iconProps:{iconName:"Save"},styles:d.primaryButtonStyles,text:u.strings.fileSave.saveButton,onClick:function(){var n=e.value.trim();t.setState({saving:!0},(function(){t.props.store.dispatcher.dispatch(new c.Actions.SaveAs(n,(function(e){e?t.setState({saving:!0,error:e.message}):t.props.onClose()})))}))}})),this.state.error?i.createElement("div",{className:"error"},this.state.error):null))},t}(i.Component);t.FileViewSaveAs=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FileViewOptions=t.FileViewOptionsView=void 0;var s=n(0),l=n(0),c=n(12),u=n(7),A=n(32),d=n(27),g=n(612);t.FileViewOptionsView=function(){var e=l.useContext(A.MainReactContext).store,t=e.getLocaleFileFormat(),n=a(g.useLocalStorage(t.numberFormat.remove,d.LocalStorageKeys.NumberFormatRemove),2),r=n[0],o=n[1],p=a(g.useLocalStorage(t.delimiter,d.LocalStorageKeys.DelimiterSymbol),2),h=p[0],f=p[1],m=a(g.useLocalStorage(t.utcTimeZone,d.LocalStorageKeys.UtcTimeZone),2),y=m[0],I=m[1],C=function(t){e.setLocaleFileFormat(t),e.solveConstraintsAndUpdateGraphics()};return s.createElement("section",{className:"charticulator__file-view-content"},s.createElement("h1",null,u.strings.mainTabs.options),s.createElement("div",null,s.createElement("h2",null,u.strings.options.fileFormat),s.createElement("div",null,s.createElement("div",{className:"form-group"},s.createElement("select",{onChange:function(e){C(i(i({},t),{delimiter:e.target.options[e.target.selectedIndex].value})),f(e.target.options[e.target.selectedIndex].value)},value:h},s.createElement("option",{value:","},u.strings.options.comma),s.createElement("option",{value:";"},u.strings.options.semicolon)),s.createElement("label",null,u.strings.options.delimiter)),s.createElement("div",{className:"form-group"},s.createElement("select",{onChange:function(e){var n=","===e.target.options[e.target.selectedIndex].value;C(i(i({},t),{numberFormat:{decimal:n?".":",",remove:n?",":"."}})),o(n?",":"."),c.setFormatOptions({decimal:n?".":",",thousands:n?",":".",currency:c.parseSafe(t.currency,c.defaultCurrency),grouping:c.parseSafe(t.group,c.defaultDigitsGroup)})},value:r},s.createElement("option",{value:","},u.strings.options.numberFormatDot),s.createElement("option",{value:"."},u.strings.options.numberFormatComma)),s.createElement("label",null,u.strings.options.numberFormat)),s.createElement("div",{className:"form-group"},s.createElement("select",{onChange:function(e){C(i(i({},t),{utcTimeZone:"true"===e.target.options[e.target.selectedIndex].value})),I("true"===e.target.options[e.target.selectedIndex].value),c.setTimeZone("true"===e.target.options[e.target.selectedIndex].value)},value:y?"true":"false"},s.createElement("option",{value:"true"},u.strings.options.utc),s.createElement("option",{value:"false"},u.strings.options.local)),s.createElement("label",null,u.strings.options.timeZone)))))};var p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.render=function(){return s.createElement(t.FileViewOptionsView,{onClose:this.props.onClose})},n}(s.Component);t.FileViewOptions=p},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.useLocalStorage=void 0;var o=n(0);t.useLocalStorage=function(e,t){var n=r(o.useState((function(){try{var n=window.localStorage.getItem(t);return n?JSON.parse(n):e}catch(t){return console.log(t),e}})),2),i=n[0],a=n[1];return[i,function(e){try{return window.localStorage.setItem(t,JSON.stringify(e)),a(e),!0}catch(e){return console.log(e),!1}}]}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuBar=t.HelpButton=void 0;var s=n(0),l=n(90),c=n(27),u=n(13),A=n(11),d=n(5),g=n(19),p=n(14),h=n(32),f=n(58),m=n(106),y=n(37),I=n(9),C=n(105),E=n(38),b=n(267),v=n(7),B=n(171),M=n(180),D=n(45),x=n(614),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this,n={onClick:null===(e=this.props.handlers)||void 0===e?void 0:e.onContactUsLink};return n.onClick||(n.href=M.getConfig().ContactUsHref||"mailto:charticulator@microsoft.com"),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/help"),title:v.strings.menuBar.help,ref:"helpButton",onClick:function(){c.popupController.popupAt((function(e){return s.createElement(f.PopupView,{context:e,className:"charticulator__menu-popup"},s.createElement("div",{className:"charticulator__menu-dropdown",onClick:function(){return e.close()}},s.createElement("div",{className:"el-item"},s.createElement("a",{target:"_blank",href:"https://charticulator.com/docs/getting-started.html"},v.strings.help.gettingStarted)),s.createElement("div",{className:"el-item"},s.createElement("a",{target:"_blank",href:"https://charticulator.com/gallery/index.html"},v.strings.help.gallery)),t.props.hideReportIssues?null:s.createElement("div",{className:"el-item"},s.createElement("a",{target:"_blank",href:"https://github.com/Microsoft/charticulator/issues/new"},v.strings.help.issues)),s.createElement("div",{className:"el-item"},s.createElement("a",{target:"_blank",href:"https://charticulator.com/"},v.strings.help.home)),s.createElement("div",{className:"el-item"},s.createElement("a",i({},n),v.strings.help.contact)),s.createElement("div",{className:"el-item-version"},v.strings.help.version("2.2.0"))))}),{anchor:l.findDOMNode(t.refs.helpButton),alignX:f.PopupAlignment.EndInner})}})},t}(s.Component);t.HelpButton=w;var Q=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupController=new f.PopupController,r.keyboardMap={"ctrl-z":"undo","ctrl-y":"redo","ctrl-s":"save","ctrl-shift-s":"export","ctrl-n":"new","ctrl-o":"open",backspace:"delete",delete:"delete",escape:"escape"},r.onKeyDown=function(e){if(e.target==document.body){var t="";e.shiftKey&&(t="shift-"+t),(e.ctrlKey||e.metaKey)&&(t="ctrl-"+t);var n=(""+t+e.key).toLowerCase();if(r.keyboardMap[n]){switch(r.keyboardMap[n]){case"new":case"open":r.showFileModalWindow(m.MainTabs.open);break;case"save":r.context.store.editorType==D.EditorType.Nested||r.context.store.editorType==D.EditorType.Embedded||r.context.store.editorType==D.EditorType.NestedEmbedded?r.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_EDIT):r.context.store.currentChartID?r.dispatch(new g.Actions.Save):r.showFileModalWindow(m.MainTabs.save);break;case"export":r.showFileModalWindow(m.MainTabs.export);break;case"undo":(new g.Actions.Undo).dispatch(r.context.store.dispatcher);break;case"redo":(new g.Actions.Redo).dispatch(r.context.store.dispatcher);break;case"delete":r.store.deleteSelection();break;case"escape":r.store.handleEscapeKey()}e.preventDefault()}}},r.state={showSaveDialog:!1},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this;window.addEventListener("keydown",this.onKeyDown),this.editor=this.context.store.addListener(y.AppStore.EVENT_IS_NESTED_EDITOR,(function(){return e.forceUpdate()})),this.graphics=this.context.store.addListener(y.AppStore.EVENT_GRAPHICS,(function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){window.removeEventListener("keydown",this.onKeyDown),this.editor.remove(),this.graphics.remove()},t.prototype.hideFileModalWindow=function(){c.popupController.reset()},t.prototype.showFileModalWindow=function(e){var t=this;void 0===e&&(e=m.MainTabs.open),this.context.store.disableFileView||c.popupController.showModal((function(n){return s.createElement(f.ModalView,{context:n},s.createElement(m.FileView,{backend:t.context.store.backend,defaultTab:e,store:t.context.store,onClose:function(){return n.close()}}))}),{anchor:null})},t.prototype.renderSaveNested=function(){var e=this;return s.createElement(s.Fragment,null,s.createElement(A.Dialog,{dialogContentProps:{title:v.strings.dialogs.saveChanges.saveChangesTitle,subText:v.strings.dialogs.saveChanges.saveChanges("chart")},hidden:!this.state.showSaveDialog,minWidth:"80%",onDismiss:function(){e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_CLOSE)}},s.createElement(A.DialogFooter,null,s.createElement(A.PrimaryButton,{styles:C.primaryButtonStyles,onClick:function(){e.setState({showSaveDialog:!1}),e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_EDIT),setTimeout((function(){return e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_CLOSE)}))},text:v.strings.menuBar.saveButton}),s.createElement(A.DefaultButton,{onClick:function(){e.setState({showSaveDialog:!1}),e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_CLOSE)},text:v.strings.menuBar.dontSaveButton}))),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/save"),text:v.strings.menuBar.saveNested,title:v.strings.menuBar.save,onClick:function(){e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_EDIT),e.setState({showSaveDialog:!1})}}),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/cross"),text:v.strings.menuBar.closeNested,title:v.strings.menuBar.closeNested,onClick:function(){e.store.chartManager.hasUnsavedChanges()?e.setState({showSaveDialog:!0}):(e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_CLOSE),e.setState({showSaveDialog:!1}))}}),s.createElement("span",{className:"charticulator__menu-bar-separator"}))},t.prototype.renderImportButton=function(e){var t,n=this;return s.createElement(s.Fragment,null,s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/import-template"),text:"",title:v.strings.menuBar.importTemplate,onClick:(null===(t=e.handlers)||void 0===t?void 0:t.onImportTemplateClick)||function(){var e=document.createElement("input");e.type="file";var t=null;e.accept=["tmplt","json"].map((function(e){return"."+e})).join(","),e.onchange=function(){1==e.files.length&&(t=e.files[0])&&I.readFileAsString(t).then((function(e){var t=JSON.parse(e),r=[];t.tables[0].columns.forEach((function(e){r=r.concat(n.store.checkColumnsMapping(e,E.TableType.Main,n.store.dataset))})),t.tables[1]&&t.tables[1].columns.forEach((function(e){r=r.concat(n.store.checkColumnsMapping(e,E.TableType.Links,n.store.dataset))}));var o=new Map;o.set(t.tables[0].name,n.store.dataset.tables[0].name),t.tables[1]&&n.store.dataset.tables[1]&&o.set(t.tables[1].name,n.store.dataset.tables[1].name);var i=function(e,r){var o,i,s,l,c=new C.ChartTemplate(t);try{for(var u=a(c.getDatasetSchema()),A=u.next();!A.done;A=u.next()){var d=A.value;c.assignTable(d.name,e.get(d.name)||d.name);try{for(var p=(s=void 0,a(d.columns)),h=p.next();!h.done;h=p.next()){var f=h.value;c.assignColumn(d.name,f.name,r.get(f.name)||f.name)}}catch(e){s={error:e}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}}}catch(e){o={error:e}}finally{try{A&&!A.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var m=c.instantiate(n.store.dataset,!1);n.store.dispatcher.dispatch(new g.Actions.ImportChartAndDataset(m.chart,n.store.dataset,{})),n.store.dispatcher.dispatch(new g.Actions.ReplaceDataset(n.store.dataset))};r.length>0?n.popupController.showModal((function(e){return s.createElement(f.ModalView,{context:e},s.createElement("div",{onClick:function(e){return e.stopPropagation()}},s.createElement(b.FileViewImport,{mode:b.MappingMode.ImportTemplate,tables:t.tables,datasetTables:n.store.dataset.tables,tableMapping:o,unmappedColumns:r,onSave:function(t){i(o,t),e.close()},onClose:function(){e.close()}})))}),{anchor:null}):i(o,new Map)}))},e.click()}}))},t.prototype.renderExportButton=function(e){var t,n=this;return s.createElement(s.Fragment,null,s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/export-template"),text:"",title:v.strings.menuBar.exportTemplate,onClick:(null===(t=e.handlers)||void 0===t?void 0:t.onExportTemplateClick)||function(){var e,t,r=d.deepClone(n.store.buildChartTemplate()),o=n.store.createExportTemplateTarget(v.strings.menuBar.defaultTemplateName,r),i={};try{for(var s=a(o.getProperties()),l=s.next();!l.done;l=s.next()){var c=l.value;i[c.name]=n.store.getPropertyExportName(c.name)||c.default}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}n.dispatch(new g.Actions.ExportTemplate("",o,i))}}))},t.prototype.renderCopyToClipboard=function(e){var t;return s.createElement(s.Fragment,null,s.createElement(p.MenuButton,{url:u.getSVGIcon("Copy"),text:"",title:v.strings.menuBar.copyTemplate,onClick:null===(t=e.handlers)||void 0===t?void 0:t.onCopyToClipboardClick}))},t.prototype.renderSaveEmbedded=function(){var e=this,t=this.store.chartManager.hasUnsavedChanges();return s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/save"),text:v.strings.menuBar.saveButton,disabled:!t,title:v.strings.menuBar.save,onClick:function(){e.context.store.dispatcher.dispatch(new g.Actions.UpdatePlotSegments),e.context.store.dispatcher.dispatch(new g.Actions.UpdateDataAxis),e.context.store.emit(y.AppStore.EVENT_NESTED_EDITOR_EDIT)}})},t.prototype.renderDelete=function(){return s.createElement(x.DeleteDialog,{context:this.context})},t.prototype.renderNewOpenSave=function(){var e=this;return s.createElement(s.Fragment,null,s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/new"),title:v.strings.menuBar.new,onClick:function(){e.showFileModalWindow(m.MainTabs.new)}}),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/open"),title:v.strings.menuBar.open,onClick:function(){e.showFileModalWindow(m.MainTabs.open)}}),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/save"),title:v.strings.menuBar.save,text:v.strings.menuBar.saveButton,onClick:function(){e.context.store.currentChartID?e.dispatch(new g.Actions.Save):e.showFileModalWindow(m.MainTabs.save)}}),this.renderImportButton(this.props),s.createElement(p.MenuButton,{url:u.getSVGIcon("toolbar/export"),title:v.strings.menuBar.export,onClick:function(){e.showFileModalWindow(m.MainTabs.export)}}))},t.prototype.toolbarButtons=function(e){var t=this;return s.createElement(s.Fragment,null,this.context.store.editorType===D.EditorType.Chart?this.renderNewOpenSave():null,this.context.store.editorType===D.EditorType.Embedded&&e.alignSaveButton===e.alignButtons?this.renderSaveEmbedded():null,this.context.store.editorType===D.EditorType.Embedded||this.context.store.editorType===D.EditorType.NestedEmbedded?s.createElement(s.Fragment,null,s.createElement("span",{className:"charticulator__menu-bar-separator"}),this.renderImportButton(e),this.renderExportButton(e),this.renderCopyToClipboard(e)):null,s.createElement("span",{className:"charticulator__menu-bar-separator"}),this.props.undoRedoLocation===B.UndoRedoLocation.MenuBar?s.createElement(s.Fragment,null,s.createElement(p.MenuButton,{url:u.getSVGIcon("Undo"),title:v.strings.menuBar.undo,disabled:0===this.context.store.historyManager.statesBefore.length,onClick:function(){return(new g.Actions.Undo).dispatch(t.context.store.dispatcher)}}),s.createElement(p.MenuButton,{url:u.getSVGIcon("Redo"),title:v.strings.menuBar.redo,disabled:0===this.context.store.historyManager.statesAfter.length,onClick:function(){return(new g.Actions.Redo).dispatch(t.context.store.dispatcher)}})):null,s.createElement("span",{className:"charticulator__menu-bar-separator"}),this.renderDelete())},t.prototype.toolbarTabButtons=function(e){var t;return s.createElement(s.Fragment,null,null===(t=e.tabButtons)||void 0===t?void 0:t.map((function(e){return s.createElement(s.Fragment,null,s.createElement("span",{className:"charticulator__menu-bar-separator"}),s.createElement(p.MenuButton,{url:u.getSVGIcon(e.icon),title:e.tooltip,onClick:e.onClick,text:e.text,disabled:!e.active}))})))},t.prototype.render=function(){var e,t=this;return s.createElement(s.Fragment,null,s.createElement(f.PopupContainer,{controller:this.popupController}),s.createElement("section",{className:"charticulator__menu-bar"},s.createElement("div",{className:"charticulator__menu-bar-left"},this.context.store.editorType===D.EditorType.Embedded||this.context.store.editorType===D.EditorType.NestedEmbedded?null:s.createElement(p.AppButton,{name:this.props.name,title:v.strings.menuBar.home,onClick:function(){return t.showFileModalWindow(m.MainTabs.open)}}),this.props.alignButtons===B.PositionsLeftRight.Left?s.createElement(s.Fragment,null,s.createElement("span",{className:"charticulator__menu-bar-separator"}),this.toolbarButtons(this.props)):null,this.context.store.editorType===D.EditorType.Embedded&&this.props.alignSaveButton==B.PositionsLeftRight.Left&&this.props.alignSaveButton!==this.props.alignButtons?this.renderSaveEmbedded():null,this.context.store.editorType===D.EditorType.Embedded&&this.props.tabButtons?this.toolbarTabButtons(this.props):null,this.context.store.editorType===D.EditorType.Nested||this.context.store.editorType===D.EditorType.NestedEmbedded?this.renderSaveNested():null),s.createElement("div",{className:"charticulator__menu-bar-center el-text"},s.createElement("p",{className:I.classNames("charticulator__menu-bar-center",["nested-chart",this.context.store.editorType===D.EditorType.NestedEmbedded])},""+(null===(e=this.context.store.chart)||void 0===e?void 0:e.properties.name)+(this.context.store.editorType===D.EditorType.Embedded||this.context.store.editorType===D.EditorType.NestedEmbedded?" - "+this.props.name||!1:""))),s.createElement("div",{className:"charticulator__menu-bar-right"},this.props.alignButtons===B.PositionsLeftRight.Right?s.createElement(s.Fragment,null,this.toolbarButtons(this.props),s.createElement("span",{className:"charticulator__menu-bar-separator"})):null,this.context.store.editorType!==D.EditorType.Embedded&&this.context.store.editorType!==D.EditorType.NestedEmbedded||this.props.alignSaveButton!=B.PositionsLeftRight.Right||this.props.alignSaveButton===this.props.alignButtons?null:this.renderSaveEmbedded(),s.createElement(w,{handlers:this.props.handlers,hideReportIssues:!1}))))},t}(h.ContextedComponent);t.MenuBar=Q},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteDialog=void 0;var o=n(0),i=n(0),a=n(11),s=n(13),l=n(7),c=n(9),u=n(19),A=n(14),d=n(5),g={type:a.DialogType.normal,title:l.strings.dialog.deleteChart,subText:l.strings.dialog.resetConfirm};t.DeleteDialog=function(e){var t=e.context,n=r(i.useState(!0),2),p=n[0],h=n[1],f=i.useCallback((function(){c.isInIFrame()?h(!1):confirm(l.strings.dialog.resetConfirm)&&(new u.Actions.Reset).dispatch(t.store.dispatcher)}),[t]),m=i.useCallback((function(){h(!0)}),[]),y=i.useCallback((function(){t.store.dispatcher.dispatch(new u.Actions.Reset),h(!0),d.getDefaultColorGeneratorResetFunction()()}),[t]);return o.createElement(o.Fragment,null,o.createElement(A.MenuButton,{url:s.getSVGIcon("toolbar/trash"),title:l.strings.menuBar.reset,text:l.strings.menuBar.reset,onClick:f}),o.createElement(a.Dialog,{hidden:p,onDismiss:m,dialogContentProps:g},o.createElement(a.DialogFooter,null,o.createElement(a.DefaultButton,{styles:d.primaryButtonStyles,onClick:y,text:l.strings.button.yes}),o.createElement(a.DefaultButton,{onClick:m,text:l.strings.button.no}))))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScalesPanel=void 0;var i=n(0),a=n(13),s=n(5),l=n(14),c=n(37),u=n(70),A=n(32),d=n(6),g=n(113),p=n(9),h=n(49),f=function(e){function t(t){var n=e.call(this,t,null)||this;return n.state={isSelected:""},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;this.tokens=[this.store.addListener(c.AppStore.EVENT_GRAPHICS,(function(){return e.forceUpdate()})),this.store.addListener(c.AppStore.EVENT_SELECTION,(function(){return e.forceUpdate()})),this.store.addListener(c.AppStore.EVENT_SAVECHART,(function(){return e.forceUpdate()}))]},t.prototype.componentWillUnmount=function(){this.tokens.forEach((function(e){return e.remove()})),this.tokens=[]},t.prototype.renderUnexpectedState=function(e){return i.createElement("div",{className:"attribute-editor charticulator__widget-container"},i.createElement("div",{className:"attribute-editor-unexpected"},e))},t.prototype.getPropertyDisplayName=function(e){return e[0].toUpperCase()+e.slice(1)},t.prototype.render=function(){var e=this,t=this.props.store,n=t.chart.scales,r=function(e){return function(t){return null!=Object.keys(t.mappings).find((function(n){var r=t.mappings[n];return(r.type===d.MappingType.scale||r.type===d.MappingType.expressionScale)&&r.scale===e}))}},o=function(e,t){return Object.keys(t.mappings).filter((function(n){var r=t.mappings[n];return(r.type===d.MappingType.scale||r.type===d.MappingType.expressionScale)&&r.scale===e}))},c=(n=n.sort((function(e,t){return e.properties.name<t.properties.name?-1:e.properties.name>t.properties.name?1:0}))).flatMap((function(e){return[0].map((function(){return{scale:e,mark:null,property:null,glyph:null}})).concat(t.chart.elements.filter(r(e._id)).flatMap((function(t){return o(e._id,t).map((function(n){return{property:n,mark:t,scale:e,glyph:null}}))}))).concat(t.chart.glyphs.flatMap((function(e){return e.marks.map((function(t){return{glyph:e,mark:t}}))})).filter((function(t){var n=t.mark;return r(e._id)(n)})).flatMap((function(t){var n=t.mark,r=t.glyph;return o(e._id,n).map((function(t){return{property:t,mark:n,scale:e,glyph:r}}))})))}));return i.createElement("div",{className:"charticulator__object-list-editor charticulator__object-scales"},i.createElement(u.ReorderListView,{restrict:!0,enabled:!0,onReorder:function(e,n){if(c[e].property&&e!==n){for(n>0&&n--;n>0&&!c[n]&&null!=c[n].property;)n--;t.dispatcher.dispatch(new g.Actions.SetObjectMappingScale(c[e].mark,c[e].property,c[n].scale._id))}}},c.map((function(t){return(n=t.scale,function(t,r){return function(o){if(r){var c=r.mappings[o].expression,u=null;return i.createElement("div",{className:"el-object-item el-object-scale-attribute",key:n._id+"_"+r._id+"_"+o,onClick:function(){t?e.dispatch(new g.Actions.SelectMark(null,t,r)):e.dispatch(new g.Actions.SelectChartElement(r)),e.dispatch(new g.Actions.FocusToMarkAttribute(o))}},i.createElement(l.DraggableElement,{key:o,className:p.classNames("charticulator__scale-panel-property",["is-active",e.state.isSelected===c]),onDragStart:function(){return e.setState({isSelected:c})},onDragEnd:function(){return e.setState({isSelected:null})},dragData:function(){var t,n=r.mappings[o].valueType,i=r.mappings[o].scale,a=r.mappings[o].allowSelectValue,l=s.Expression.getDefaultAggregationFunction(n,null),A=e.store.dataset.tables.find((function(e){return e.name===r.mappings[o].table})),d=s.Expression.parse(c),p={};if(d instanceof h.FunctionCall&&d.args[0]instanceof h.Variable){var f=d.args[0];p=A.columns.find((function(e){return e.name===f.name})).metadata,u=p.rawColumnName&&(t=p.rawColumnName,s.Expression.functionCall(l,s.Expression.parse(t)).toString())}return e.setState({isSelected:c}),new g.DragData.DataExpression(A,c,n,p,u,i,a)},renderDragElement:function(){return[i.createElement("span",{className:"dragging-table-cell"},r.mappings[o].expression),{x:-10,y:-8}]}},i.createElement(l.SVGImageIcon,{url:a.getSVGIcon(s.Prototypes.ObjectClasses.GetMetadata(r.classID).iconPath)}),i.createElement("span",{className:"el-text"},r.properties.name+"."+e.getPropertyDisplayName(o))))}return i.createElement("div",{key:n._id,className:"el-object-item"},i.createElement(l.SVGImageIcon,{url:a.getSVGIcon(s.Prototypes.ObjectClasses.GetMetadata(n.classID).iconPath)}),i.createElement("span",{className:"el-text"},n.properties.name))}})(t.glyph,t.mark)(t.property);var n}))))},t}(A.ContextedComponent);t.ScalesPanel=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxButton=t.LegendButton=t.LinkButton=t.ScaffoldButton=t.MultiObjectButton=t.ObjectButton=t.FluentUIToolbar=void 0;var l=n(0),c=n(13),u=n(19),A=n(14),d=n(32),g=n(617),p=n(618),h=n(37),f=n(7),m=n(171),y=n(0),I=n(11),C=n(13),E=n(45),b=n(0),v=n(0),B=n(17),M=Object.freeze({guides:1090,plotSegments:1120,scaffolds:1211});t.FluentUIToolbar=function(e){var n=y.useContext(d.MainReactContext).store,r=i(b.useState(window.innerWidth),2),o=r[0],s=r[1],c=function(){s(window.innerWidth)};v.useEffect((function(){return s(window.innerWidth),window.addEventListener("resize",c),function(){window.removeEventListener("resize",c)}}),[s]);var g,p=[];if("embedded"===n.editorType){var h=(void 0===(g=e.toolbarLabels)&&(g=!0),[l.createElement(l.Fragment,null,l.createElement(t.LinkButton,{label:!0}),l.createElement(t.LegendButton,null),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),g&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.guides),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"guide-y",title:f.strings.toolbar.guideY,icon:"guide/x",options:'{"shape":"rectangle"}'},{classID:"guide-x",title:f.strings.toolbar.guideX,icon:"guide/y",options:'{"shape":"ellipse"}'},{classID:"guide-coordinator-x",title:f.strings.toolbar.guideX,icon:"CharticulatorGuideX",options:'{"shape":"triangle"}'},{classID:"guide-coordinator-y",title:f.strings.toolbar.guideY,icon:"CharticulatorGuideY",options:'{"shape":"triangle"}'},{classID:"guide-coordinator-polar",title:f.strings.toolbar.guidePolar,icon:"CharticulatorGuideCoordinator",options:""}]}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),g&&l.createElement(l.Fragment,null,l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},e.layout===m.LayoutDirection.Vertical?f.strings.toolbar.plot:f.strings.toolbar.plotSegments)),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"plot-segment.cartesian",title:f.strings.toolbar.region2D,icon:"BorderDot",noDragging:!0},{classID:"plot-segment.line",title:f.strings.toolbar.line,icon:"Line",noDragging:!0}]}),l.createElement(l.Fragment,null,l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),g&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.scaffolds),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"scaffold/cartesian-x",title:f.strings.toolbar.lineH,icon:"scaffold/cartesian-x",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("cartesian-x")}},{classID:"scaffold/cartesian-y",title:f.strings.toolbar.lineV,icon:"scaffold/cartesian-y",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("cartesian-y")}},{classID:"scaffold/circle",title:f.strings.toolbar.polar,icon:"scaffold/circle",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("polar")}},{classID:"scaffold/curve",title:f.strings.toolbar.curve,icon:"scaffold/curve",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("curve")}}]})))]),I=function(t){return void 0===t&&(t=!0),[l.createElement(l.Fragment,null,l.createElement(l.Fragment,null,l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),t&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.marks),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.rect",title:f.strings.toolbar.rectangle,icon:"RectangleShape",options:'{"shape":"rectangle"}'},{classID:"mark.rect",title:f.strings.toolbar.ellipse,icon:"Ellipse",options:'{"shape":"ellipse"}'},{classID:"mark.rect",title:f.strings.toolbar.triangle,icon:"TriangleShape",options:'{"shape":"triangle"}'}]}),l.createElement(D,{classID:"mark.symbol",title:f.strings.toolbar.symbol,icon:"Shapes"}),l.createElement(D,{classID:"mark.line",title:f.strings.toolbar.line,icon:"Line"}),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.text",title:f.strings.toolbar.text,icon:"FontColorA"},{classID:"mark.textbox",title:f.strings.toolbar.textbox,icon:"TextField"}]}),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.icon",title:f.strings.toolbar.icon,icon:"ImagePixel"},{classID:"mark.image",title:f.strings.toolbar.image,icon:"FileImage"}]}),l.createElement(D,{classID:"mark.data-axis",title:f.strings.toolbar.dataAxis,icon:"mark/data-axis"}),n.editorType===E.EditorType.Embedded?l.createElement(D,{classID:"mark.nested-chart",title:f.strings.toolbar.nestedChart,icon:"BarChartVerticalFilter"}):null,e.undoRedoLocation===m.UndoRedoLocation.ToolBar?l.createElement(l.Fragment,null,l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),l.createElement(A.FluentToolButton,{title:f.strings.menuBar.undo,disabled:0===n.historyManager.statesBefore.length,icon:"Undo",onClick:function(){return(new u.Actions.Undo).dispatch(n.dispatcher)}}),l.createElement(A.FluentToolButton,{title:f.strings.menuBar.redo,disabled:0===n.historyManager.statesAfter.length,icon:"Redo",onClick:function(){return(new u.Actions.Redo).dispatch(n.dispatcher)}})):null))]}(e.toolbarLabels);p=a(h,I)}else p=[function(r,o){return void 0===r&&(r=!0),void 0===o&&(o=window.innerWidth),l.createElement(l.Fragment,null,e.undoRedoLocation===m.UndoRedoLocation.ToolBar?l.createElement(l.Fragment,null,l.createElement(A.FluentToolButton,{title:f.strings.menuBar.undo,disabled:0===n.historyManager.statesBefore.length,icon:"Undo",onClick:function(){return(new u.Actions.Undo).dispatch(n.dispatcher)}}),l.createElement(A.FluentToolButton,{title:f.strings.menuBar.redo,disabled:0===n.historyManager.statesAfter.length,icon:"Redo",onClick:function(){return(new u.Actions.Redo).dispatch(n.dispatcher)}}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"})):null,r&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.marks),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.rect",title:f.strings.toolbar.rectangle,icon:"RectangleShape",options:'{"shape":"rectangle"}'},{classID:"mark.rect",title:f.strings.toolbar.ellipse,icon:"Ellipse",options:'{"shape":"ellipse"}'},{classID:"mark.rect",title:f.strings.toolbar.triangle,icon:"TriangleShape",options:'{"shape":"triangle"}'}]}),l.createElement(D,{classID:"mark.symbol",title:"Symbol",icon:"Shapes"}),l.createElement(D,{classID:"mark.line",title:"Line",icon:"Line"}),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.text",title:f.strings.toolbar.text,icon:"FontColorA"},{classID:"mark.textbox",title:f.strings.toolbar.textbox,icon:"TextField"}]}),l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"mark.icon",title:f.strings.toolbar.icon,icon:"ImagePixel"},{classID:"mark.image",title:f.strings.toolbar.image,icon:"FileImage"}]}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),l.createElement(D,{classID:"mark.data-axis",title:f.strings.toolbar.dataAxis,icon:"mark/data-axis"}),l.createElement(D,{classID:"mark.nested-chart",title:f.strings.toolbar.nestedChart,icon:"BarChartVerticalFilter"}),l.createElement(t.LegendButton,null),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),l.createElement(t.LinkButton,{label:r}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),r&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.guides),o>M.guides?l.createElement(l.Fragment,null,l.createElement(D,{classID:"guide-y",title:f.strings.toolbar.guideY,icon:"guide/x"}),l.createElement(D,{classID:"guide-x",title:f.strings.toolbar.guideX,icon:"guide/y"}),l.createElement(D,{classID:"guide-coordinator-x",title:f.strings.toolbar.guideX,icon:"CharticulatorGuideX"}),l.createElement(D,{classID:"guide-coordinator-y",title:f.strings.toolbar.guideY,icon:"CharticulatorGuideY"}),l.createElement(D,{classID:"guide-coordinator-polar",title:f.strings.toolbar.guidePolar,icon:"CharticulatorGuideCoordinator"})):l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"guide-y",title:f.strings.toolbar.guideY,icon:"guide/x"},{classID:"guide-x",title:f.strings.toolbar.guideX,icon:"guide/y",options:""},{classID:"guide-coordinator-x",title:f.strings.toolbar.guideX,icon:"CharticulatorGuideX",options:""},{classID:"guide-coordinator-y",title:f.strings.toolbar.guideY,icon:"CharticulatorGuideY",options:""},{classID:"guide-coordinator-polar",title:f.strings.toolbar.guidePolar,icon:"CharticulatorGuideCoordinator",options:""}]}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),r&&l.createElement(l.Fragment,null,l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},e.layout===m.LayoutDirection.Vertical?f.strings.toolbar.plot:f.strings.toolbar.plotSegments)),l.createElement(D,{classID:"plot-segment.cartesian",title:f.strings.toolbar.region2D,icon:"BorderDot",noDragging:!0}),l.createElement(D,{classID:"plot-segment.line",title:f.strings.toolbar.line,icon:"Line",noDragging:!0}),l.createElement("span",{className:"charticulator__toolbar-horizontal-separator"}),r&&l.createElement("span",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-label":"charticulator__toolbar-label"},f.strings.toolbar.scaffolds),o>M.scaffolds?l.createElement(l.Fragment,null,l.createElement(t.ScaffoldButton,{type:"cartesian-x",title:f.strings.toolbar.lineH,icon:"scaffold/cartesian-x",currentTool:n.currentTool}),l.createElement(t.ScaffoldButton,{type:"cartesian-y",title:f.strings.toolbar.lineV,icon:"scaffold/cartesian-y",currentTool:n.currentTool}),l.createElement(t.ScaffoldButton,{type:"polar",title:f.strings.toolbar.polar,icon:"scaffold/circle",currentTool:n.currentTool}),l.createElement(t.ScaffoldButton,{type:"curve",title:f.strings.toolbar.curve,icon:"scaffold/curve",currentTool:n.currentTool})):l.createElement(x,{compact:e.layout===m.LayoutDirection.Vertical,tools:[{classID:"scaffold/cartesian-x",title:f.strings.toolbar.lineH,icon:"scaffold/cartesian-x",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("cartesian-x")}},{classID:"scaffold/cartesian-y",title:f.strings.toolbar.lineV,icon:"scaffold/cartesian-y",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("cartesian-y")}},{classID:"scaffold/circle",title:f.strings.toolbar.polar,icon:"scaffold/circle",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("polar")}},{classID:"scaffold/curve",title:f.strings.toolbar.curve,icon:"scaffold/curve",onClick:function(){return null},onDrag:function(){return new u.DragData.ScaffoldType("curve")}}]}))}(e.toolbarLabels,o)];return l.createElement(l.Fragment,null,l.createElement("div",{className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical":"charticulator__toolbar-horizontal"},l.createElement("div",{className:"charticulator__toolbar-buttons-align-left"},p.map((function(t,n){return l.createElement(l.Fragment,{key:n},l.createElement("div",{key:n,className:e.layout===m.LayoutDirection.Vertical?"charticulator__toolbar-vertical-group":"charticulator__toolbar-horizontal-group"},t))})))))};var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIsActive=function(){return this.store.currentTool==this.props.classID&&this.store.currentToolOptions==this.props.options},t.prototype.componentDidMount=function(){var e=this;this.token=this.context.store.addListener(h.AppStore.EVENT_CURRENT_TOOL,(function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.token.remove()},t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(A.DraggableElement,{dragData:this.props.noDragging?null:this.props.onDrag?this.props.onDrag:function(){return new u.DragData.ObjectType(e.props.classID,e.props.options)},onDragStart:function(){return e.setState({dragging:!0})},onDragEnd:function(){return e.setState({dragging:!1})},renderDragElement:function(){return[l.createElement(A.SVGImageIcon,{url:C.getSVGIcon(e.props.icon),width:32,height:32}),{x:-16,y:-16}]}},l.createElement(I.IconButton,{iconProps:{iconName:this.props.icon},title:this.props.title,text:this.props.text,checked:this.getIsActive(),onClick:function(){e.dispatch(new u.Actions.SetCurrentTool(e.props.classID,e.props.options)),e.props.onClick&&e.props.onClick()}})))},t}(d.ContextedComponent);t.ObjectButton=D;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={currentSelection:{classID:t.props.tools[0].classID,options:t.props.tools[0].options},dragging:!1},t}return o(t,e),t.prototype.isActive=function(){var e,t,n=this.store;try{for(var r=s(this.props.tools),o=r.next();!o.done;o=r.next()){var i=o.value;if(i.classID==n.currentTool&&i.options==n.currentToolOptions)return!0}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return!1},t.prototype.getSelectedTool=function(){var e,t;try{for(var n=s(this.props.tools),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.classID==this.state.currentSelection.classID&&o.options==this.state.currentSelection.options)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.props.tools[0]},t.prototype.componentDidMount=function(){var e=this;this.token=this.store.addListener(h.AppStore.EVENT_CURRENT_TOOL,(function(){var t,n;try{for(var r=s(e.props.tools),o=r.next();!o.done;o=r.next()){var i=o.value;if(e.store.currentTool==i.classID&&e.store.currentToolOptions==i.options){e.setState({currentSelection:{classID:i.classID,options:i.options}});break}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.token.remove()},t.prototype.render=function(){var e=this,t=this.getSelectedTool();return l.createElement(A.DraggableElement,{dragData:function(){return(null==t?void 0:t.onDrag)?null==t?void 0:t.onDrag():new u.DragData.ObjectType(t.classID,t.options)},onDragStart:function(){return e.setState({dragging:!0})},onDragEnd:function(){return e.setState({dragging:!1})},renderDragElement:function(){return[l.createElement(B.Icon,{iconName:t.icon,"aria-hidden":"true"}),{x:16,y:16}]}},l.createElement(I.IconButton,{split:!0,menuProps:{items:this.props.tools.map((function(e,t){return{key:e.classID+t,data:{classID:e.classID,options:e.options},text:e.title,iconProps:{iconName:e.icon}}})),onItemClick:function(t,n){n.data&&e.dispatch(new u.Actions.SetCurrentTool(n.data.classID,n.data.options))}},iconProps:{iconName:t.icon},onMenuClick:function(){t&&e.dispatch(new u.Actions.SetCurrentTool(t.classID,t.options))}}))},t}(d.ContextedComponent);t.MultiObjectButton=x,t.ScaffoldButton=function(e){return l.createElement(A.FluentToolButton,{icon:e.icon,active:e.currentTool==e.type,title:e.title,onClick:function(){},dragData:function(){return new u.DragData.ScaffoldType(e.type)}})},t.LinkButton=function(e){var t=l.useContext(d.MainReactContext).store,n=i(l.useState(!1),2),r=n[0],o=n[1];return l.createElement("span",{id:"linkCreator"},l.createElement(I.IconButton,{title:f.strings.toolbar.link,text:e.label?f.strings.toolbar.link:"",iconProps:{iconName:"CharticulatorLine"},checked:"link"==t.currentTool,onClick:function(){o(!0)}}),r?l.createElement(I.Callout,{target:"#linkCreator",hidden:!r,onDismiss:function(){return o(!1)}},l.createElement(g.LinkCreationPanel,{onFinish:function(){return o(!1)}})):null)},t.LegendButton=function(){var e=l.useContext(d.MainReactContext).store,t=i(l.useState(!1),2),n=t[0],r=t[1];return l.useEffect((function(){return function(){r(!1)}}),[r]),l.createElement("span",{id:"createLegend"},l.createElement(I.IconButton,{title:f.strings.toolbar.legend,iconProps:{iconName:"CharticulatorLegend"},checked:"legend"==e.currentTool,onClick:function(){r(!n)}}),n?l.createElement(I.Callout,{onDismiss:function(){return r(!1)},target:"#createLegend",directionalHint:I.DirectionalHint.bottomLeftEdge},l.createElement(p.LegendCreationPanel,{onFinish:function(){return r(!1)}})):null)};var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return l.createElement("span",{className:"charticulator__toolbar-checkbox",onClick:function(){var t=!e.props.value;e.props.onChange&&e.props.onChange(t)}},l.createElement(A.SVGImageIcon,{url:c.getSVGIcon(this.props.value?"checkbox/checked":"checkbox/empty")}),l.createElement("span",{className:"el-label"},this.props.text))},t}(l.Component);t.CheckboxButton=w},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PlotSegmentSelector=t.LinkCreationPanel=void 0;var s=n(0),l=n(13),c=n(5),u=n(19),A=n(14),d=n(32),g=n(9),p=n(126),h=n(70),f=n(285),m=n(6),y=n(11),I=n(119),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(),t}return o(t,e),t.prototype.getDefaultState=function(){var e=this.store.chart.elements,t=(e=e.filter((function(e){return c.Prototypes.isType(e.classID,"plot-segment")}))).map((function(e){return e._id}));return{linkType:"line",linkMode:1==t.length?this.isLinkDataPresent()?"link-table":"link-through":"link-between",plotSegments:e,selectedPlotSegments:t,errorReport:null}},t.prototype.isLinkDataPresent=function(){return this.store.dataset.tables.length>1},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"charticulator__link-type-table"},s.createElement("div",{className:"el-row"},s.createElement("h2",null,"Link using:"),s.createElement(f.PanelRadioControl,{options:["line","band"],icons:["link/line","link/band"],labels:["Line","Band"],value:this.state.linkType,onChange:function(t){return e.setState({linkType:t})},showText:!0})),this.state.plotSegments.length>1?s.createElement("div",{className:"el-row"},s.createElement("h2",null,"Plot Segment(s):"),s.createElement(E,{items:this.state.plotSegments,defaultSelection:this.state.selectedPlotSegments,onChange:function(t){var n=e.state.linkMode;n=1==t.length?e.isLinkDataPresent()?"link-table":"link-through":"link-between",e.setState({linkMode:n,selectedPlotSegments:t})}})):null,1==this.state.selectedPlotSegments.length&&this.isLinkDataPresent()?s.createElement("div",{className:"el-row"},s.createElement("h2",null,"Link Mode:"),s.createElement(f.PanelRadioControl,{options:["link-through","link-table"],icons:["link/through","link/table"],labels:["Sequentially","By Link Data"],value:this.state.linkMode,onChange:function(t){return e.setState({linkMode:t})},showText:!0,asList:!0})):null,"link-through"==this.state.linkMode?s.createElement("div",null,s.createElement("h2",null,"Connect by:"),s.createElement("div",{className:"el-row"},s.createElement(p.DataFieldSelector,{ref:function(t){return e.groupBySelector=t},kinds:[c.Specification.DataKind.Categorical],datasetStore:this.store,nullDescription:"(link all items)"}))):null,s.createElement("div",{className:"el-row"},s.createElement(y.PrimaryButton,{text:"Create Links",onClick:function(){var t=e.getLinkObject();null!=t?(e.dispatch(new u.Actions.AddLinks(t)),e.props.onFinish&&e.props.onFinish()):e.setState({errorReport:"Cannot Create Link!"})}}),this.state.errorReport?s.createElement("span",null,this.state.errorReport):null))},t.prototype.getDefaultAnchor=function(e,t,n,r,o,s,l){var u,A,d,g,p,h;switch(this.state.linkType){case"line":p={type:m.MappingType.value,value:{r:0,g:0,b:0}},h={type:m.MappingType.value,value:1};break;case"band":p={type:m.MappingType.value,value:{r:0,g:0,b:0}},h={type:m.MappingType.value,value:.5}}var f=[],y=[];try{for(var I=i(o.marks),C=I.next();!C.done;C=I.next()){var E=C.value;(B=e.getMarkClass(E)).getLinkAnchors&&(f=f.concat(B.getLinkAnchors("begin")))}}catch(e){u={error:e}}finally{try{C&&!C.done&&(A=I.return)&&A.call(I)}finally{if(u)throw u.error}}try{for(var b=i(l.marks),v=b.next();!v.done;v=b.next()){var B;E=v.value;(B=e.getMarkClass(E)).getLinkAnchors&&(y=y.concat(B.getLinkAnchors("end")))}}catch(e){d={error:e}}finally{try{v&&!v.done&&(g=b.return)&&g.call(b)}finally{if(d)throw d.error}}switch(this.state.linkType){case"line":f=f.filter((function(e){return 1==e.points.length})),y=y.filter((function(e){return 1==e.points.length}));break;case"band":f=f.filter((function(e){return 2==e.points.length})),y=y.filter((function(e){return 2==e.points.length}))}var M=o.attributes,D=l.attributes,x=function(e,t,n,r){var o,i;return e=(o=a([Math.min(e,t),Math.max(e,t)],2))[0],t=o[1],n=(i=a([Math.min(n,r),Math.max(n,r)],2))[0],r=i[1],t<=n?"after":e>=r?"before":"overlap"},w=x(M.x1,M.x2,D.x1,D.x2),Q=x(M.y1,M.y2,D.y1,D.y2),S=function(e){var t,n,r=0,o=0;try{for(var a=i(e),s=a.next();!s.done;s=a.next()){var l=s.value;r+=l.x,o+=l.y}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{x:r/e.length,y:o/e.length}},N=null,k=null;switch("after"==w?"link-table"==t?(N=f[c.argMin(f,(function(e){return S(e.points).y}))],k=y[c.argMin(y,(function(e){return S(e.points).y}))]):(N=f[c.argMax(f,(function(e){return S(e.points).x}))],k=y[c.argMin(y,(function(e){return S(e.points).x}))]):"before"==w?"link-table"==t?(N=f[c.argMin(f,(function(e){return S(e.points).y}))],k=y[c.argMin(y,(function(e){return S(e.points).y}))]):(N=f[c.argMin(f,(function(e){return S(e.points).x}))],k=y[c.argMax(y,(function(e){return S(e.points).x}))]):"after"==Q?"link-table"==t?(N=f[c.argMin(f,(function(e){return S(e.points).x}))],k=y[c.argMin(y,(function(e){return S(e.points).x}))]):(N=f[c.argMax(f,(function(e){return S(e.points).y}))],k=y[c.argMin(y,(function(e){return S(e.points).y}))]):"before"==Q?"link-table"==t?(N=f[c.argMin(f,(function(e){return S(e.points).x}))],k=y[c.argMin(y,(function(e){return S(e.points).x}))]):(N=f[c.argMin(f,(function(e){return S(e.points).y}))],k=y[c.argMax(y,(function(e){return S(e.points).y}))]):(N=f[c.argMin(f,(function(e){return Math.abs(S(e.points).y)}))],k=y[c.argMin(y,(function(e){return Math.abs(S(e.points).y)}))]),this.state.linkType){case"line":null==N&&(N={element:null,points:[{xAttribute:"icx",yAttribute:"icy",x:0,y:0,direction:{x:0,y:0}}]}),null==k&&(k={element:null,points:[{xAttribute:"icx",yAttribute:"icy",x:0,y:0,direction:{x:0,y:0}}]});break;case"band":null==N&&(N={element:null,points:[{xAttribute:"icx",yAttribute:"iy1",x:0,y:0,direction:{x:1,y:0}},{xAttribute:"icx",yAttribute:"iy2",x:0,y:0,direction:{x:1,y:0}}]}),null==k&&(k={element:null,points:[{xAttribute:"icx",yAttribute:"iy1",x:0,y:0,direction:{x:-1,y:0}},{xAttribute:"icx",yAttribute:"iy2",x:0,y:0,direction:{x:-1,y:0}}]})}var T=N.points.map((function(e){return{x:{element:N.element,attribute:e.xAttribute},y:{element:N.element,attribute:e.yAttribute},direction:e.direction}})),j=k.points.map((function(e){return{x:{element:k.element,attribute:e.xAttribute},y:{element:k.element,attribute:e.yAttribute},direction:e.direction}}));if("link-table"!=t&&null!=N.element){var L=c.getById(r.marks,N.element);switch(L.classID){case"mark.symbol":case"mark.rect":null!=L.mappings.fill&&(p=L.mappings.fill)}}var R="line";return R=n instanceof c.Graphics.PolarCoordinates?"bezier":"line",c.Geometry.vectorDot(T[0].direction,j[0].direction)>0&&"line"==R&&(R="circle"),{linkType:this.state.linkType,interpolationType:R,anchor1:T,anchor2:j,color:p,opacity:h}},t.prototype.getLinkObject=function(){var e=this.store.chartManager,t=this.state.selectedPlotSegments,n=t.map((function(t){return e.getClassById(t)})),r=n.map((function(t){return e.getObjectById(t.object.glyph)}));switch(this.state.linkMode){case"link-through":for(var o=n[0],i=r[0],a=this.groupBySelector&&this.groupBySelector.value?[this.groupBySelector.value.expression]:[],s=c.Prototypes.Links.facetRows(e.dataflow.getTable(o.object.table),o.state.dataRowIndices,a.map((function(t){return e.dataflow.cache.parse(t)}))),l=o.state,u=new Map,A=0;A<l.dataRowIndices.length;A++)u.set(l.dataRowIndices[A].join(","),l.glyphs[A]);var d=this.getDefaultAnchor(e,"link-through",o.getCoordinateSystem(),i,u.get(s[0][0].join(",")),i,u.get(s[0][1]?s[0][1].join(","):s[0][0].join(","))),g=d.linkType,p=d.interpolationType,h=d.anchor1,f=d.anchor2,m=d.color,y=d.opacity;return{_id:c.uniqueID(),classID:"links.through",mappings:{color:m,opacity:y},properties:{name:"Link",linkMarkType:"",visible:!0,linkType:g,interpolationType:p,anchor1:h,anchor2:f,linkThrough:{plotSegment:this.state.selectedPlotSegments[0],facetExpressions:a},curveness:30,closeLink:!1,beginArrowType:I.ArrowType.NO_ARROW,endArrowType:I.ArrowType.NO_ARROW}};case"link-between":var C=n.map((function(e){return e.state.glyphs[0]})),E=this.getDefaultAnchor(e,"link-between",new c.Graphics.CartesianCoordinates,r[0],C[0],r[1],C[1]);g=E.linkType,p=E.interpolationType,h=E.anchor1,f=E.anchor2,m=E.color,y=E.opacity;return{_id:c.uniqueID(),classID:"links.between",mappings:{color:m,opacity:y},properties:{name:"Link",linkMarkType:"",visible:!0,linkType:g,interpolationType:p,anchor1:h,anchor2:f,linkBetween:{plotSegments:t},curveness:30,closeLink:!1,beginArrowType:I.ArrowType.NO_ARROW,endArrowType:I.ArrowType.NO_ARROW}};case"link-table":C=n[0].state.glyphs;var b=this.getDefaultAnchor(e,"link-table",n[0].getCoordinateSystem(),r[0],C[0],r[0],C[1]);g=b.linkType,p=b.interpolationType,h=b.anchor1,f=b.anchor2,m=b.color,y=b.opacity;return{_id:c.uniqueID(),classID:"links.table",mappings:{color:m,opacity:y},properties:{name:"Link",linkMarkType:"",visible:!0,linkType:g,interpolationType:p,anchor1:h,anchor2:f,linkTable:{table:this.store.dataset.tables[1].name,plotSegments:[n[0].object._id,n[0].object._id]},curveness:30,closeLink:!1,beginArrowType:I.ArrowType.NO_ARROW,endArrowType:I.ArrowType.NO_ARROW}}}},t}(d.ContextedComponent);t.LinkCreationPanel=C;var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getInitialState(),t}return o(t,e),t.prototype.getInitialState=function(){var e=this.props.items;return{order:e.map((function(e){return e._id})),selection:this.props.defaultSelection||e.map((function(e){return e._id}))}},t.prototype.notify=function(){this.props.onChange&&this.props.onChange(this.state.selection)},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"charticulator__plot-segment-selector charticulator-panel-list-view is-list"},s.createElement(h.ReorderListView,{enabled:!0,onReorder:function(t,n){var r=e.state.order.slice();h.ReorderListView.ReorderArray(r,t,n);var o=e.state.order.filter((function(t){return e.state.selection.indexOf(t)>=0}));e.setState({order:r,selection:o},(function(){return e.notify()}))}},this.state.order.map((function(t){var n=c.getById(e.props.items,t);return s.createElement("div",{key:t,className:g.classNames("el-item",["is-active",e.state.selection.indexOf(t)>=0]),onClick:function(n){if(n.shiftKey){var r=e.state.order.filter((function(n){return n==t||e.state.selection.indexOf(n)>=0}));e.setState({selection:r},(function(){return e.notify()}))}else e.setState({selection:[t]},(function(){return e.notify()}))}},s.createElement(A.SVGImageIcon,{url:l.getSVGIcon(c.Prototypes.ObjectClasses.GetMetadata(n.classID).iconPath)}),s.createElement("span",{className:"el-text"},n.properties.name))}))))},t}(d.ContextedComponent);t.PlotSegmentSelector=E},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LegendCreationPanel=void 0;var i=n(0),a=n(5),s=n(32),l=n(126),c=n(285),u=n(38),A=n(6),d=n(11),g=n(7),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getDefaultState(),t}return o(t,e),t.prototype.getDefaultState=function(){return{legendDataSource:"columnValues",errorReport:null,legendType:"color"}},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"charticulator__link-type-table"},i.createElement("div",{className:"el-row"},i.createElement(d.Label,null,g.strings.legendCreator.legendType),i.createElement(c.PanelRadioControl,{options:["columnValues","columnNames"],labels:["Column values","Column names"],value:this.state.legendDataSource,onChange:function(t){return e.setState({legendDataSource:t})},showText:!0})),"columnValues"==this.state.legendDataSource?i.createElement("div",null,i.createElement(d.Label,null,g.strings.legendCreator.connectBy),i.createElement("div",{className:"el-row"},i.createElement(l.DataFieldSelector,{multiSelect:!1,ref:function(t){return e.groupBySelector=t},kinds:[a.Specification.DataKind.Categorical,a.Specification.DataKind.Numerical,a.Specification.DataKind.Temporal,a.Specification.DataKind.Ordinal],datasetStore:this.store,nullDescription:"(select column to create legend)"}))):i.createElement("div",null,i.createElement(d.Label,null,g.strings.legendCreator.connectBy),i.createElement("div",{className:"el-row"},i.createElement(l.DataFieldSelector,{multiSelect:!0,ref:function(t){return e.groupBySelector=t},kinds:[a.Specification.DataKind.Categorical,a.Specification.DataKind.Numerical,a.Specification.DataKind.Temporal,a.Specification.DataKind.Ordinal],datasetStore:this.store,nullDescription:"(select column names to create legend)"}))),i.createElement("div",{className:"el-row"},i.createElement(d.PrimaryButton,{text:g.strings.legendCreator.createLegend,title:g.strings.legendCreator.createLegend,onClick:function(){var t,n=e.groupBySelector&&e.groupBySelector.value?e.groupBySelector.props.multiSelect?e.groupBySelector.value:[e.groupBySelector.value]:[],r=A.AttributeType.Color;if("columnNames"===e.state.legendDataSource){var o=a.Specification.DataType.String,i=a.Specification.DataKind.Categorical,s=a.Specification.AttributeType.Color,l=a.Prototypes.Scales.inferScaleType(o,i,s),c=e.store.dataset.tables.find((function(e){return e.type===u.TableType.Main})).name,d=e.store.chartManager.dataflow.getTable(c),g="list("+n.map((function(e){var t=d.columns.findIndex((function(t){return t.name==e.columnName}));return"get(get("+e.table+".columns, "+t+'), "displayName")'})).filter((function(e){return null!=e})).map((function(e){return""+e})).join(",")+")",p=e.store.chartManager.dataflow.cache.parse(g).getValue(d),h=e.store.chartManager.createObject(l);h.properties.name=e.store.chartManager.findUnusedName("Scale"),h.inputType=o,h.outputType=s,e.store.chartManager.addScale(h),e.store.chartManager.getClassById(h._id).inferParameters(p,{}),(E=e.store.chartManager.createObject("legend.custom")).properties.scale=h._id,E.mappings.x={type:A.MappingType.parent,parentAttribute:"x2"},E.mappings.y={type:A.MappingType.parent,parentAttribute:"y2"},e.store.chartManager.addChartElement(E),e.store.chartManager.chart.mappings.marginRight={type:A.MappingType.value,value:100};var f={type:A.MappingType.scale,table:c,expression:g,valueType:o,scale:h._id,allowSelectValue:!0};E.mappings||(E.mappings={}),E.mappings.mappingOptions=f}else{switch(e.groupBySelector.value.metadata.kind){case u.DataKind.Numerical:case u.DataKind.Temporal:r=A.AttributeType.Number;break;case u.DataKind.Ordinal:r=A.AttributeType.Text}}if("columnValues"===e.state.legendDataSource){var m=a.Expression.getDefaultAggregationFunction(n[0].type,null===(t=n[0].metadata)||void 0===t?void 0:t.kind),y=a.Expression.functionCall(m,a.Expression.parse(n[0].expression)).toString(),I=n[0].table,C=e.store.scaleInference({chart:{table:I}},{expression:y,valueType:n[0].type,valueKind:n[0].metadata.kind,outputType:r,hints:{}}),E=null;switch(a.getById(e.store.chartManager.chart.scales,C).classID){case"scale.categorical<string,color>":(E=e.store.chartManager.createObject("legend.categorical")).properties.scale=C,E.mappings.x={type:A.MappingType.parent,parentAttribute:"x2"},E.mappings.y={type:A.MappingType.parent,parentAttribute:"y2"},e.store.chartManager.addChartElement(E),e.store.chartManager.chart.mappings.marginRight={type:A.MappingType.value,value:100};break;case"scale.linear<number,color>":case"scale.linear<integer,color>":(E=e.store.chartManager.createObject("legend.numerical-color")).properties.scale=C,E.mappings.x={type:A.MappingType.parent,parentAttribute:"x2"},E.mappings.y={type:A.MappingType.parent,parentAttribute:"y2"},e.store.chartManager.addChartElement(E),e.store.chartManager.chart.mappings.marginRight={type:A.MappingType.value,value:100};break;case"scale.linear<number,number>":case"scale.linear<integer,number>":(E=e.store.chartManager.createObject("legend.numerical-number")).properties.scale=C,E.mappings.x1={type:A.MappingType.parent,parentAttribute:"x1"},E.mappings.y1={type:A.MappingType.parent,parentAttribute:"y1"},E.mappings.x2={type:A.MappingType.parent,parentAttribute:"x1"},E.mappings.y2={type:A.MappingType.parent,parentAttribute:"y2"},e.store.chartManager.addChartElement(E)}E.mappings.mappingOptions={type:A.MappingType.scale,table:I,expression:y,valueType:n[0].type,scale:C}}e.store.solveConstraintsAndUpdateGraphics(),e.props.onFinish()}}),this.state.errorReport?i.createElement("span",null,this.state.errorReport):null))},t}(s.ContextedComponent);t.LegendCreationPanel=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CharticulatorWorker=void 0;var c=n(5),u=n(286),A=n(620);Object.defineProperty(t,"CharticulatorWorkerProcess",{enumerable:!0,get:function(){return A.CharticulatorWorkerProcess}});var d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.initialize=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.rpc("initialize",e)];case 1:return t.sent(),[2]}}))}))},t.prototype.solveChartConstraints=function(e,t,n,r,o){return void 0===o&&(o=!1),i(this,void 0,void 0,(function(){var i,u,A,d,g,p,h,f,m,y,I,C,E,b,v,B,M,D,x,w,Q,S,N,k,T,j,L,R;return a(this,(function(a){switch(a.label){case 0:return[4,this.rpc("solveChartConstraints",e,t,n,r,o)];case 1:for(i=a.sent(),(u=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t.attributes,i.attributes),A=0;A<t.elements.length;A++)if(d=t.elements[A],g=i.elements[A],u(d.attributes,g.attributes),c.Prototypes.isType(e.elements[A].classID,"plot-segment")){p=d,h=g;try{for(N=void 0,f=s(c.zipArray(p.glyphs,h.glyphs)),m=f.next();!m.done;m=f.next()){y=l(m.value,2),I=y[0],C=y[1],u(I.attributes,C.attributes);try{for(T=void 0,E=s(c.zipArray(I.marks,C.marks)),b=E.next();!b.done;b=E.next())v=l(b.value,2),B=v[0],M=v[1],u(B.attributes,M.attributes)}catch(e){T={error:e}}finally{try{b&&!b.done&&(j=E.return)&&j.call(E)}finally{if(T)throw T.error}}}}catch(e){N={error:e}}finally{try{m&&!m.done&&(k=f.return)&&k.call(f)}finally{if(N)throw N.error}}}try{for(D=s(c.zipArray(t.scales,i.scales)),x=D.next();!x.done;x=D.next())w=l(x.value,2),Q=w[0],S=w[1],u(Q.attributes,S.attributes)}catch(e){L={error:e}}finally{try{x&&!x.done&&(R=D.return)&&R.call(D)}finally{if(L)throw L.error}}return[2,t]}}))}))},t}(u.WorkerRPC);t.CharticulatorWorker=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CharticulatorWorkerProcess=void 0;var c=n(5),u=function(e){function t(){var t=e.call(this)||this;return t.registerRPC("initialize",t.initialize.bind(t)),t.registerRPC("solveChartConstraints",t.solveChartConstraints.bind(t)),t}return o(t,e),t.prototype.initialize=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,c.initialize(e)];case 1:return t.sent(),[2]}}))}))},t.prototype.solveChartConstraints=function(e,t,n,r,o){return void 0===r&&(r=null),void 0===o&&(o=!1),null!=r&&r.length>0?this.doSolveChartConstraints(e,t,n,(function(e){var t,n;try{for(var o=s(r),i=o.next();!i.done;i=o.next()){var a=l(i.value,4),c=a[0],u=a[1],A=a[2],d=a[3];e.solver.addEqualToConstant(c,e.solver.attr(u,A),d)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}),o):this.doSolveChartConstraints(e,t,n,null,o)},t.prototype.doSolveChartConstraints=function(e,t,n,r,o){return void 0===r&&(r=null),void 0===o&&(o=!1),new c.Prototypes.ChartStateManager(e,n,t).solveConstraints(r,o),t},t}(n(286).WorkerHostProcess);t.CharticulatorWorkerProcess=u,new u},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultDataset=void 0;var o=n(5),i=n(38),a=n(7);t.makeDefaultDataset=function(){var e,t,n,s,l=[],c=a.strings.dataset.months,u=0;try{for(var A=r(c),d=A.next();!d.done;d=A.next()){var g=d.value,p=0;try{for(var h=(n=void 0,r(["City1","City2","City3"])),f=h.next();!f.done;f=h.next()){var m=f.value,y=50+30*Math.sin((u+.5)*Math.PI/12+p*Math.PI/2);l.push({_id:"ID"+l.length,Month:g,City:m,Value:+y.toFixed(1)}),p+=1}}catch(e){n={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(n)throw n.error}}u+=1}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=A.return)&&t.call(A)}finally{if(e)throw e.error}}return{tables:[{name:"Temperature",displayName:a.strings.defaultDataset.temperature,columns:[{name:"Month",displayName:a.strings.defaultDataset.month,type:o.Dataset.DataType.String,metadata:{kind:o.Dataset.DataKind.Categorical,order:c}},{name:"City",displayName:a.strings.defaultDataset.city,type:o.Dataset.DataType.String,metadata:{kind:o.Dataset.DataKind.Categorical}},{name:"Value",displayName:a.strings.defaultDataset.value,type:o.Dataset.DataType.Number,metadata:{kind:o.Dataset.DataKind.Numerical,format:".1f"}}],rows:l,type:i.TableType.Main}],name:"demo"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeIcons=void 0;var r=n(623),o=n(624);t.initializeIcons=function(e,t){void 0===e&&(e="https://spoprod-a.akamaihd.net/files/fabric/assets/icons/"),[r.initializeIcons].forEach((function(n){return n(e,t)})),o.registerIconAliases()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeIcons=void 0;var r=n(0),o=n(287);t.initializeIcons=function(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a1ad4051.woff') format('woff')"},icons:{"6PointStar":"",AADLogo:"",Accept:"",AcceptMedium:"",AccessibiltyChecker:"",AccessLogo:"",AccountActivity:"",AccountBrowser:"",AccountManagement:"",Accounts:"",ActionCenter:"",ActivateOrders:"",ActivityFeed:"",Add:"",AddBookmark:"",AddConnection:"",AddEvent:"",AddFavorite:"",AddFavoriteFill:"",AddField:"",AddFriend:"",AddGroup:"",AddHome:"",AddIn:"",AddLink:"",AddMedium:"",AddMultiple:"",AddNotes:"",AddOnlineMeeting:"",AddPhone:"",AddReaction:"",AddSpaceAfter:"",AddSpaceBefore:"",AddTable:"",AddTo:"",AddToShoppingList:"",AddWork:"",Admin:"",AdminALogo32:"",AdminALogoFill32:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",Airplane:"",AirplaneSolid:"",AirTickets:"",AlarmClock:"",Album:"",AlbumRemove:"",AlertSettings:"",AlertSolid:"",AlignCenter:"",AlignHorizontalCenter:"",AlignHorizontalLeft:"",AlignHorizontalRight:"",AlignJustify:"",AlignLeft:"",AlignRight:"",AlignVerticalBottom:"",AlignVerticalCenter:"",AlignVerticalTop:"",AllApps:"",AllAppsMirrored:"",AllCurrency:"",AltText:"",AmazonWebServicesLogo:"",AnalyticsLogo:"",AnalyticsQuery:"",AnalyticsReport:"",AnalyticsView:"",AnchorLock:"",AndroidLogo:"",Annotation:"",ApacheIvyLogo32:"",ApacheMavenLogo:"",AppIconDefault:"",AppIconDefaultAdd:"",AppIconDefaultEdit:"",AppIconDefaultList:"",Archive:"",ArchiveUndo:"",AreaChart:"",ArrangeBringForward:"",ArrangeBringToFront:"",ArrangeByFrom:"",ArrangeSendBackward:"",ArrangeSendToBack:"",Arrivals:"",ArrowDownRight8:"",ArrowDownRightMirrored8:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowUpRight:"",ArrowUpRight8:"",ArrowUpRightMirrored8:"",Articles:"",Ascending:"",AspectRatio:"",AssessmentGroup:"",AssessmentGroupTemplate:"",AssetLibrary:"",Assign:"",AssignPolicy:"",Asterisk:"",AsteriskSolid:"",ATPLogo:"",Attach:"",AustralianRules:"",AuthenticatorApp:"",AutoDeploySettings:"",AutoEnhanceOff:"",AutoEnhanceOn:"",AutoFillTemplate:"",AutoFitContents:"",AutoFitWindow:"",AutoHeight:"",AutomateFlow:"",AutoRacing:"",AwayStatus:"",AzureAPIManagement:"",AzureDataExplorer:"",AzureIcon:"",AzureKeyVault:"",AzureServiceEndpoint:"",Back:"",BackgroundColor:"",Backlog:"",BacklogBoard:"",BacklogList:"",BackToWindow:"",Badge:"",Balloons:"",Bank:"",BankSolid:"",BarChart4:"",BarChartHorizontal:"",BarChartVertical:"",BarChartVerticalEdit:"",BarChartVerticalFill:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",Baseball:"",BeerMug:"",BIDashboard:"",BidiLtr:"",BidiRtl:"",Bill:"",BingLogo:"",BirthdayCake:"",BitbucketLogo32:"",BlobStorage:"",BlockContact:"",Blocked:"",Blocked12:"",Blocked2:"",Blocked2Solid:"",BlockedSite:"",BlockedSiteSolid12:"",BlockedSolid:"",Blog:"",BlowingSnow:"",Blur:"",Boards:"",Bold:"",BoldBulgarian:"",BoldF:"",BoldG:"",BoldK:"",BoldKazakh:"",BoldKorean:"",BoldN:"",BoldP:"",BoldRussion:"",BoldSerbian:"",BoldT:"",BookAnswers:"",BookingsLogo:"",BookmarkReport:"",Bookmarks:"",BookmarksMirrored:"",BorderAll:"",BorderDash:"",BorderDot:"",BorderInside:"",BorderInsideHorizontal:"",BorderInsideVertical:"",BorderNone:"",BoxAdditionSolid:"",BoxCheckmarkSolid:"",BoxLogo:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxSubtractSolid:"",BranchCommit:"",BranchCompare:"",BranchFork:"",BranchFork2:"",BranchLocked:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",Breadcrumb:"",Breakfast:"",Brightness:"",Broom:"",BrowserScreenShot:"",BrowserTab:"",BrowserTabScreenshot:"",Brunch:"",Brush:"",BucketColor:"",BucketColorFill:"",BufferTimeAfter:"",BufferTimeBefore:"",BufferTimeBoth:"",Bug:"",BugAction:"",BugBlock:"",BugSolid:"",BugSync:"",BugWarning:"",Build:"",BuildDefinition:"",BuildIssue:"",BuildQueue:"",BuildQueueNew:"",BulkPageBlock:"",BulkUpload:"",BulletedList:"",BulletedList2:"",BulletedList2Mirrored:"",BulletedListBullet:"",BulletedListBulletMirrored:"",BulletedListMirrored:"",BulletedListText:"",BulletedListTextMirrored:"",BulletedTreeList:"",Bullseye:"",BullseyeTarget:"",BullseyeTargetDelete:"",BullseyeTargetEdit:"",Bus:"",BusinessCard:"",BusinessCenterLogo:"",BusinessHoursSign:"",BusinessRule:"",BusSolid:"",ButtonControl:"",Cafe:"",Cake:"",CalculatedTable:"",Calculator:"",CalculatorAddition:"",CalculatorDelta:"",CalculatorEqualTo:"",CalculatorGroup:"",CalculatorMultiply:"",CalculatorNotEqualTo:"",CalculatorPercentage:"",CalculatorSubtract:"",Calendar:"",CalendarAgenda:"",CalendarDay:"",CalendarMirrored:"",CalendarReply:"",CalendarSettings:"",CalendarSettingsMirrored:"",CalendarWeek:"",CalendarWorkWeek:"",CalendarYear:"",Calories:"",CaloriesAdd:"",Camera:"",CampaignTemplate:"",Cancel:"",CannedChat:"",CanvasAppTemplate32:"",Car:"",CareActivity:"",CarePlan:"",CarePlanTemplate:"",CaretBottomLeftCenter8:"",CaretBottomLeftSolid8:"",CaretBottomRightCenter8:"",CaretBottomRightSolid8:"",CaretDown8:"",CaretDownSolid8:"",CaretHollow:"",CaretHollowMirrored:"",CaretLeft8:"",CaretLeftSolid8:"",CaretRight:"",CaretRight8:"",CaretRightSolid8:"",CaretSolid:"",CaretSolid16:"",CaretSolidAlt:"",CaretSolidDown:"",CaretSolidLeft:"",CaretSolidMirrored:"",CaretSolidRight:"",CaretSolidUp:"",CaretTopLeftCenter8:"",CaretTopLeftSolid8:"",CaretTopRightCenter8:"",CaretTopRightSolid8:"",CaretUp8:"",CaretUpSolid8:"",Cat:"",CategoryClassification:"",CC:"",CCSolid:"",CellPhone:"",Certificate:"",CertifiedDatabase:"",ChangeEntitlements:"",Chart:"",CharticulatorArrangePolar:"",CharticulatorArrangePolarAngles:"",CharticulatorBand:"",CharticulatorGuideCoordinator:"",CharticulatorGuideX:"",CharticulatorGuideY:"",CharticulatorLegend:"",CharticulatorLine:"",CharticulatorLineStyleDashed:"",CharticulatorLineStyleDotted:"",CharticulatorLinkingData:"",CharticulatorLinkingSequence:"",CharticulatorOrderColumn:"",CharticulatorOrderRow:"",CharticulatorPlotCartesian:"",CharticulatorPlotCurve:"",CharticulatorPolarCoordinates:"",CharticulatorSpiral:"",CharticulatorStackRadial:"",CharticulatorStackY:"",ChartSeries:"",ChartTemplate:"",ChartXAngle:"",ChartYAngle:"",Chat:"",ChatBot:"",ChatInviteFriend:"",ChatSettings:"",ChatSolid:"",Checkbox:"",CheckboxComposite:"",CheckboxCompositeReversed:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxIndeterminateCombo:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CheckList:"",CheckListCheck:"",CheckListCheckMirrored:"",CheckListText:"",CheckListTextMirrored:"",CheckMark:"",ChevronDown:"",ChevronDownEnd:"",ChevronDownEnd6:"",ChevronDownMed:"",ChevronDownSmall:"",ChevronFold10:"",ChevronLeft:"",ChevronLeftEnd6:"",ChevronLeftMed:"",ChevronLeftSmall:"",ChevronRight:"",ChevronRightEnd6:"",ChevronRightMed:"",ChevronRightSmall:"",ChevronUnfold10:"",ChevronUp:"",ChevronUpEnd:"",ChevronUpEnd6:"",ChevronUpMed:"",ChevronUpSmall:"",Childof:"",ChoiceColumn:"",Chopsticks:"",ChromeBack:"",ChromeBackMirrored:"",ChromeClose:"",ChromeFullScreen:"",ChromeMinimize:"",ChromeRestore:"",ChronosLogo:"",CircleAddition:"",CircleAdditionSolid:"",CircleDollar:"",CircleFill:"",CircleHalfFull:"",CirclePause:"",CirclePauseSolid:"",CirclePlus:"",CircleRing:"",CircleShape:"",CircleShapeSolid:"",CircleStop:"",CircleStopSolid:"",CityNext:"",CityNext2:"",ClassNotebookLogo16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill16:"",ClassNotebookLogoFill32:"",ClassNotebookLogoInverse:"",ClassNotebookLogoInverse16:"",ClassNotebookLogoInverse32:"",ClassroomLogo:"",Clear:"",ClearFilter:"",ClearFormatting:"",ClearFormattingA:"",ClearFormattingEraser:"",ClearNight:"",ClearSelection:"",ClearSelectionMirrored:"",Clicked:"",ClinicalImpression:"",ClipboardList:"",ClipboardListAdd:"",ClipboardListMirrored:"",ClipboardListQuestion:"",ClipboardListReply:"",ClipboardSolid:"",Clock:"",CloneToDesktop:"",ClosedCaption:"",ClosePane:"",ClosePaneMirrored:"",Cloud:"",CloudAdd:"",CloudDownload:"",CloudEdit:"",CloudFlow:"",CloudImportExport:"",CloudLink:"",CloudNotSynced:"",CloudSearch:"",CloudSecure:"",CloudUpload:"",CloudWeather:"",Cloudy:"",Cocktails:"",Code:"",CodeEdit:"",Coffee:"",CoffeeScript:"",CollapseContent:"",CollapseContentSingle:"",CollapseMenu:"",CollegeFootball:"",CollegeHoops:"",Color:"",ColorSolid:"",Column:"",ColumnFunction:"",ColumnLeftTwoThirds:"",ColumnLeftTwoThirdsEdit:"",ColumnOptions:"",ColumnQuestion:"",ColumnQuestionMirrored:"",ColumnRightTwoThirds:"",ColumnRightTwoThirdsEdit:"",ColumnSigma:"",ColumnVerticalSection:"",ColumnVerticalSectionEdit:"",Combine:"",Combobox:"",CommandPrompt:"",Comment:"",CommentActive:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",CommentSolid:"",CommentUrgent:"",Commitments:"",CommonDataServiceCDS:"",CommunicationDetails:"",CommunicationDetailsMirrored:"",Communications:"",CompanyDirectory:"",CompanyDirectoryMirrored:"",Compare:"",CompareUneven:"",CompassNW:"",Completed:"",Completed12:"",CompletedSolid:"",ComplianceAudit:"",ConfigurationSolid:"",ConnectContacts:"",ConnectVirtualMachine:"",ConstructionCone:"",ConstructionConeSolid:"",Contact:"",ContactCard:"",ContactCardSettings:"",ContactCardSettingsMirrored:"",ContactHeart:"",ContactInfo:"",ContactLink:"",ContactList:"",ContactLock:"",ContentFeed:"",ContentSettings:"",ContentUnderstandingApp:"",ContextMenu:"",Contrast:"",Copy:"",CopyEdit:"",CortanaLogoBeckonInner:"",CortanaLogoBeckonOuter:"",CortanaLogoInner:"",CortanaLogoOuter:"",CortanaLogoReadyInner:"",CortanaLogoReadyOuter:"",CostContralLedgerAdmin:"",CostControl:"",Cotton:"",Count:"",Coupon:"",CPlusPlus:"",CPlusPlusLanguage:"",CreateMailRule:"",Cricket:"",CriticalErrorSolid:"",CRMProcesses:"",CRMReport:"",CRMServices:"",Crop:"",Crown:"",CrownSolid:"",CSharp:"",CSharpLanguage:"",CSS:"",CtrlButton:"",CubeShape:"",CubeShapeSolid:"",Currency:"",CustomEntity:"",CustomerAssets:"",CustomizeToolbar:"",CustomList:"",CustomListMirrored:"",Cut:"",Cycling:"",D365BusinessCentral:"",D365CoreHR:"",D365CustomerInsights:"",D365CustomerVoiceApp:"",D365ProjectOperations:"",D365TalentInsight:"",D365TalentLearn:"",DashboardAdd:"",Database:"",DatabaseBlock:"",DatabaseSource:"",DatabaseSync:"",DatabaseView:"",DataConnectionLibrary:"",DataEnrichment:"",DataFlow:"",Dataflows:"",DataflowsLink:"",DataManagementSettings:"",DateTime:"",DateTime12:"",DateTime2:"",DateTimeMirrored:"",DeactivateOrders:"",Decimals:"",DecisionSolid:"",DeclineCall:"",DecreaseIndent:"",DecreaseIndentArrow:"",DecreaseIndentArrowMirrored:"",DecreaseIndentMirrored:"",DecreaseIndentText:"",DecreaseIndentTextMirrored:"",DefaultRatio:"",DefectSolid:"",DefenderApp:"",DefenderBadge12:"",DefenderTVM:"",Delete:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",DeliveryTruck:"",DelveAnalytics:"",DelveAnalyticsLogo:"",DelveLogo:"",DelveLogoFill:"",DelveLogoInverse:"",DensityComfy:"",DensityDefault:"",DependencyAdd:"",DependencyRemove:"",Deploy:"",Descending:"",Design:"",DesktopFlow:"",DesktopScreenshot:"",DeveloperTools:"",DeviceBug:"",DeviceOff:"",DeviceRun:"",Devices2:"",Devices3:"",Devices4:"",Diagnostic:"",DiagnosticDataBarTooltip:"",DiagnosticDataViewerApp:"",Dialpad:"",Diamond:"",DiamondSolid:"",DiamondUser:"",Dictionary:"",DictionaryRemove:"",DietPlanNotebook:"",DiffInline:"",DiffSideBySide:"",DisableUpdates:"",DisconnectVirtualMachine:"",Dislike:"",DislikeSolid:"",DistributeDown:"",DockerLogo:"",DockLeft:"",DockLeftMirrored:"",DockRight:"",DocLibrary:"",DocsLogoInverse:"",Document:"",DocumentApproval:"",Documentation:"",DocumentManagement:"",DocumentReply:"",DocumentSearch:"",DocumentSet:"",DOM:"",DonutChart:"",Door:"",DoubleBookmark:"",DoubleChevronDown:"",DoubleChevronDown12:"",DoubleChevronDown8:"",DoubleChevronLeft:"",DoubleChevronLeft12:"",DoubleChevronLeft8:"",DoubleChevronLeftMed:"",DoubleChevronLeftMedMirrored:"",DoubleChevronRight:"",DoubleChevronRight12:"",DoubleChevronRight8:"",DoubleChevronUp:"",DoubleChevronUp12:"",DoubleChevronUp8:"",DoubleColumn:"",DoubleColumnEdit:"",DoubleDownArrow:"",Down:"",Download:"",DownloadDocument:"",DragObject:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",DrillThrough:"",DriverOff:"",DRM:"",Drop:"",DropboxLogo:"",Dropdown:"",DropShape:"",DropShapeSolid:"",DuplicateRow:"",Duststorm:"",DynamicList:"",Dynamics365Logo:"",DynamicSMBLogo:"",EaseOfAccess:"",EatDrink:"",EdgeLogo:"",EdgeLogo16:"",EdgeOldLogo:"",eDiscovery:"",Edit:"",EditContact:"",EditCreate:"",EditEvent:"",EditListPencil:"",EditMail:"",EditMirrored:"",EditNote:"",EditPhoto:"",EditSolid12:"",EditSolidMirrored12:"",EditStyle:"",EditTable:"",Education:"",EgnyteLogo:"",Ellipse:"",Embed:"",EMI:"",Emoji:"",Emoji2:"",EmojiDisappointed:"",EmojiNeutral:"",EmojiTabSymbols:"",EmptyRecycleBin:"",Encounter:"",Encryption:"",EndPointSolid:"",EngineeringGroup:"",EntitlementPolicy:"",EntitlementRedemption:"",EntityExtraction:"",EntryDecline:"",EntryView:"",Equalizer:"",EraseTool:"",Error:"",ErrorBadge:"",ErrorBadge12:"",Event:"",Event12:"",EventAccepted:"",EventDate:"",EventDateMissed12:"",EventDeclined:"",EventInfo:"",EventTentative:"",EventTentativeMirrored:"",EventToDoLogo:"",ExcelDocument:"",ExcelLogo:"",ExcelLogo16:"",ExcelLogoInverse:"",ExcelLogoInverse16:"",ExchangeLogo:"",ExchangeLogoInverse:"",ExerciseTracker:"",ExpandMenu:"",ExploreContent:"",ExploreContentSingle:"",ExploreData:"",Export:"",ExportMirrored:"",ExpressRouteCircuits:"",ExternalBuild:"",ExternalGit:"",ExternalTFVC:"",ExternalUser:"",ExternalXAML:"",Eyedropper:"",EyeShadow:"",F12DevTools:"",FabricAssetLibrary:"",FabricChannelFolder:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFolder:"",FabricFolderConfirm:"",FabricFolderFill:"",FabricFolderLink:"",FabricFolderSearch:"",FabricFolderUpload:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricMovetoFolder:"",FabricNetworkFolder:"",FabricNewFolder:"",FabricOpenFolderHorizontal:"",FabricPictureLibrary:"",FabricPublicFolder:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricSyncFolder:"",FabricTextHighlight:"",FabricTextHighlightComposite:"",FabricUnsyncFolder:"",FabricUserFolder:"",FacebookLogo:"",Factory:"",Family:"",FangBody:"",FastForward:"",FastForwardEightX:"",FastForwardFourX:"",FastForwardOneFiveX:"",FastForwardOneX:"",FastForwardPointFiveX:"",FastForwardTwoX:"",FastMode:"",Favicon:"",FavoriteList:"",FavoriteStar:"",FavoriteStarFill:"",Fax:"",Feedback:"",FeedbackRequestMirroredSolid:"",FeedbackRequestSolid:"",FeedbackResponseSolid:"",Ferry:"",FerrySolid:"",FieldChanged:"",FieldEmpty:"",FieldFilled:"",FieldNotChanged:"",FieldReadOnly:"",FieldRequired:"",FileASPX:"",FileBug:"",FileCode:"",FileComment:"",FileCSS:"",FileHTML:"",FileImage:"",FileJAVA:"",FileLess:"",FileOff:"",FilePDB:"",FileRequest:"",FileSass:"",FileSQL:"",FileSymlink:"",FileSystem:"",FileTemplate:"",FileTypeSolution:"",FileYML:"",Filter:"",FilterAscending:"",FilterDescending:"",Filters:"",FilterSettings:"",FilterSolid:"",FiltersSolid:"",Financial:"",FinancialMirroredSolid:"",FinancialSolid:"",Fingerprint:"",FitPage:"",FitWidth:"",FiveTileGrid:"",FixedAssetManagement:"",FixedColumnWidth:"",Flag:"",FlameSolid:"",FlashAuto:"",Flashlight:"",FlashOff:"",FlickDown:"",FlickLeft:"",FlickRight:"",FlickUp:"",Flow:"",FlowChart:"",Flower:"",FlowTemplate:"",FlowTrigger:"",FluidLogo:"",FocalPoint:"",Focus:"",FocusView:"",Fog:"",Folder:"",FolderFill:"",FolderHorizontal:"",FolderList:"",FolderListMirrored:"",FolderOpen:"",FolderQuery:"",FolderSearch:"",FollowUser:"",Font:"",FontColor:"",FontColorA:"",FontColorKorean:"",FontColorSwatch:"",FontDecrease:"",FontIncrease:"",FontSize:"",FontSize2:"",FontStyleKorean:"",Footer:"",FormatPainter:"",FormLibrary:"",FormLibraryMirrored:"",FormProcessing:"",Forum:"",Forward:"",ForwardEvent:"",Freezing:"",FreezingRain:"",Frigid:"",FrontCamera:"",FSharp:"",FSharpLanguage:"",FullCircleMask:"",FullHistory:"",FullScreen:"",FullView:"",FullWidth:"",FullWidthEdit:"",FunctionalManagerDashboard:"",FunnelChart:"",GallatinLogo:"",Game:"",Gather:"",Generate:"",GenericScan:"",GenericScanFilled:"",GIF:"",Giftbox:"",GiftboxOpen:"",GiftBoxSolid:"",GiftCard:"",GitFork:"",GitGraph:"",GitHubLogo:"",GitLogo:"",Glasses:"",Glimmer:"",GlobalNavButton:"",GlobalNavButtonActive:"",Globe:"",Globe2:"",GlobeFavorite:"",Go:"",Golf:"",GoMirrored:"",GoogleDriveLogo:"",GoogleDriveLogoBottomBlue:"",GoogleDriveLogoLeftGreen:"",GoogleDriveLogoRightYellow:"",GoToDashboard:"",GotoToday:"",GradleLogo32:"",GraphSymbol:"",GreetingCard:"",GridViewLarge:"",GridViewMedium:"",GridViewSmall:"",GripperBarHorizontal:"",GripperBarVertical:"",GripperDotsVertical:"",GripperTool:"",Group:"",GroupedAscending:"",GroupedDescending:"",GroupedList:"",GroupList:"",GroupObject:"",GroupRemove:"",GUID:"",Guitar:"",HailDay:"",HailNight:"",HalfAlpha:"",HalfCircle:"",HandsFree:"",Handwriting:"",HardDrive:"",HardDriveGroup:"",HardDriveLock:"",HardDriveUnlock:"",HazyDay:"",HazyNight:"",Header:"",Header1:"",Header2:"",Header3:"",Header4:"",Headset:"",HeadsetSolid:"",Health:"",HealthRefresh:"",HealthSolid:"",Heart:"",HeartBroken:"",HeartFill:"",Help:"",HelpMirrored:"",HexaditeInvestigation:"",HexaditeInvestigationCancel:"",HexaditeInvestigationSemiAuto:"",Hexagon:"",Hide:"",Hide2:"",Hide3:"",HideVisualFilter:"",Highlight:"",HighlightMappedShapes:"",HintText:"",HistoricalWeather:"",History:"",Home:"",HomeDropdown:"",HomeGroup:"",HomeSolid:"",HomeVerify:"",HorizontalDistributeCenter:"",HorizontalTabKey:"",Hospital:"",Hot:"",Hotel:"",HourGlass:"",Ice:"",IconSetsFlag:"",IDBadge:"",IgnoreConversation:"",ImageCrosshair:"",ImageDiff:"",ImageInAR:"",ImagePixel:"",ImageSearch:"",Import:"",ImportAllMirrored:"",Important:"",ImportMirrored:"",Inbox:"",InboxActive:"",InboxCheck:"",IncidentTriangle:"",IncomingCall:"",IncreaseIndent:"",IncreaseIndentArrow:"",IncreaseIndentArrowMirrored:"",IncreaseIndentHanging:"",IncreaseIndentHangingMirrored:"",IncreaseIndentMirrored:"",IncreaseIndentText:"",IncreaseIndentTextMirrored:"",IndentFirstLine:"",Info:"",Info12:"",Info2:"",InformationBarriers:"",InfoSolid:"",InkingTool:"",InputAddress:"",Insert:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",InsertSignatureLine:"",InsertTextBox:"",InsertTextBoxKorean:"",Insights:"",Installation:"",InstallToDrive:"",IntermittentCloudsDay:"",IntermittentCloudsNight:"",InternalInvestigation:"",InternetSharing:"",IntersectShape:"",Invoice:"",iOSAppStoreLogo:"",IOT:"",IoTSecure:"",IRMForward:"",IRMForwardMirrored:"",IRMReply:"",IRMReplyMirrored:"",IssueSolid:"",IssueTracking:"",IssueTrackingMirrored:"",Italic:"",ItalicC:"",ItalicD:"",ItalicK:"",ItalicKazakh:"",ItalicKorean:"",ItalicL:"",ItalicS:"",ItalicT:"",JavaLogo:"",JavaScriptLanguage:"",JenkinsLogo:"",JoinOnlineMeeting:"",JS:"",KaizalaLogo:"",KeubernetesLogo:"",KeyboardClassic:"",KeyPhraseExtraction:"",KnowledgeArticle:"",KnowledgeManagementApp:"",Label:"",LadybugSolid:"",Lamp:"",LandscapeOrientation:"",LaptopSecure:"",LaptopSelected:"",LargeGrid:"",LearningApp:"",LearningTools:"",Leave:"",LeaveUser:"",Library:"",LibraryAddTo:"",Lifesaver:"",LifesaverLock:"",Light:"",Lightbulb:"",LightningBolt:"",LightningBoltSolid:"",LightningSecure:"",LightSnow:"",LightWeight:"",Like:"",LikeSolid:"",Line:"",LineChart:"",LineSpacing:"",LineStyle:"",LineThickness:"",Link:"",Link12:"",LinkedDatabase:"",LinkedInLogo:"",LinuxLogo32:"",List:"",ListMirrored:"",LiveSite:"",LocalAdmin:"",LocaleLanguage:"",Location:"",LocationCircle:"",LocationDot:"",LocationFill:"",LocationOutline:"",Lock:"",Lock12:"",LockShare:"",LockSolid:"",LogRemove:"",LookupEntities:"",LowerBrightness:"",LowerCase:"",LyncLogo:"",M365InvoicingLogo:"",MachineLearning:"",Mail:"",MailAlert:"",MailAttached:"",MailCheck:"",MailFill:"",MailForward:"",MailForwardMirrored:"",MailLink:"",MailLowImportance:"",MailOptions:"",MailPause:"",MailReminder:"",MailRepeat:"",MailReply:"",MailReplyAll:"",MailReplyAllMirrored:"",MailReplyMirrored:"",MailSchedule:"",MailSecure:"",MailSolid:"",MailTentative:"",MailTentativeMirrored:"",MailUndelivered:"",ManagerSelfService:"",Manufacturing:"",MapDirections:"",MapLayers:"",MapPin:"",MapPin12:"",MapPinSolid:"",MarkAsProtected:"",MarkDownLanguage:"",Market:"",MarketDown:"",MasterDatabase:"",MaximumValue:"",Medal:"",MedalSolid:"",Media:"",MediaAdd:"",Medical:"",MedicalCare:"",MedicationAdmin:"",MedicationRequest:"",Megaphone:"",MegaphoneSolid:"",Memo:"",Merge:"",MergeCase:"",MergeDuplicate:"",Message:"",MessageFill:"",MessageFriendRequest:"",MetricsFailure:"",MetricsInstall:"",MetricsUsage:"",MicOff:"",MicOff2:"",Microphone:"",MicrosoftListsLogo48:"",MicrosoftStaffhubLogo:"",MicrosoftTranslatorLogo:"",MicrosoftTranslatorLogoBlue:"",MicrosoftTranslatorLogoGreen:"",MiniContract:"",MiniContractMirrored:"",MiniExpand:"",MiniExpandMirrored:"",MiniLink:"",MinimumValue:"",MiracastLogoLarge:"",MixerLogo:"",MobileAngled:"",MobileReport:"",MobileSelected:"",ModelAppTemplate32:"",ModelingView:"",Money:"",More:"",MoreSports:"",MoreVertical:"",MostyClearNight:"",MostyCloudyFlurriesDay:"",MostyCloudyFlurriesNight:"",MostyCloudyShowersDay:"",MostyCloudyTStormsDay:"",MostyCloudyTStormsNight:"",MostySunnyDay:"",MountainClimbing:"",Move:"",Movers:"",MoveToFolder:"",MSListsConnected:"",MSNLogo:"",MSNVideos:"",MSNVideosSolid:"",MSNVolume:"",MTMLogo:"",MultiSelect:"",MultiSelectMirrored:"",MusicInCollection:"",MusicInCollectionFill:"",MusicNote:"",MuteChat:"",MyMoviesTV:"",MyNetwork:"",Nav2DMapView:"",NavigateBack:"",NavigateBackMirrored:"",NavigateExternalInline:"",NavigateForward:"",NavigateForwardMirrored:"",NavigationFlipper:"",NetworkDeviceScanning:"",NetworkTower:"",NewAnalyticsQuery:"",NewFolder:"",NewMail:"",News:"",NewsSearch:"",NewTeamProject:"",Next:"",NonprofitLogo32:"",NormalWeight:"",NoteForward:"",NotePinned:"",NoteReply:"",NotExecuted:"",NotImpactedSolid:"",NPMLogo:"",NugetLogo:"",NUIFace:"",Number:"",NumberedList:"",NumberedListMirrored:"",NumberedListNumber:"",NumberedListNumberMirrored:"",NumberedListText:"",NumberedListTextMirrored:"",NumberField:"",NumberSequence:"",NumberSymbol:"",Oauth:"",ObjectRecognition:"",Octagon:"",ODLink:"",ODLink12:"",OEM:"",OfficeAddinsLogo:"",OfficeAssistantLogo:"",OfficeCatchUp:"",OfficeChat:"",OfficeChatSolid:"",OfficeFormsLogo:"",OfficeFormsLogo16:"",OfficeFormsLogo24:"",OfficeFormsLogoInverse:"",OfficeFormsLogoInverse16:"",OfficeFormsLogoInverse24:"",OfficeLogo:"",OfficeStoreLogo:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",OfficeVideoLogoInverse:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",OfflineStorage:"",OfflineStorageSolid:"",Onboarding:"",OneDriveAdd:"",OneDriveFileVault:"",OneDriveFolder16:"",OneDriveLogo:"",OneNoteDocType:"",OneNoteEduLogoInverse:"",OneNoteLogo:"",OneNoteLogo16:"",OneNoteLogoInverse:"",OneNoteLogoInverse16:"",OpenEnrollment:"",OpenFile:"",OpenFolderHorizontal:"",OpenInNewTab:"",OpenInNewWindow:"",OpenPane:"",OpenPaneMirrored:"",OpenSource:"",OpenWith:"",OpenWithMirrored:"",OrderLock:"",Org:"",Orientation:"",Orientation2:"",OutlookLogo:"",OutlookLogo16:"",OutlookLogoInverse:"",OutlookLogoInverse16:"",OutlookSpacesBucket:"",OutOfOffice:"",PAAction:"",Package:"",Packages:"",Padding:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",PaddingTop:"",Page:"",PageAdd:"",PageArrowRight:"",PageBlock:"",PageCheckedin:"",PageCheckedOut:"",PageData:"",PageEdit:"",PageHeader:"",PageHeaderEdit:"",PageLeft:"",PageLink:"",PageList:"",PageListFilter:"",PageListMirroredSolid:"",PageListSolid:"",PageLock:"",PagePermission:"",PageRemove:"",PageRight:"",PageShared:"",PageSolid:"",PanoIndicator:"",Parachute:"",ParachuteSolid:"",Parameter:"",ParatureLogo:"",ParkingLocation:"",ParkingLocationMirrored:"",ParkingMirroredSolid:"",ParkingSolid:"",PartlyClearNight:"",PartlyCloudyDay:"",PartlyCloudyNight:"",PartlySunnyDay:"",PartlySunnyFlurriesDay:"",PartlySunnyShowersDay:"",PartlySunnyShowersNight:"",PartlySunnyTStormsDay:"",PartlySunnyTStormsNight:"",PartyLeader:"",PassiveAuthentication:"",PasswordField:"",Paste:"",PasteAsCode:"",PasteAsText:"",Pause:"",PaymentCard:"",PBIAnomaliesMarker:"",PBIAnomaly:"",PBIDirectQuery:"",PBIDual:"",PBIGoalEntry:"",PBIGoalEntryAdd:"",PBIImport:"",PBILiveConnect:"",PBIReportTemplate:"",PC1:"",PDF:"",PencilReply:"",Pentagon:"",PenWorkspace:"",People:"",PeopleAdd:"",PeopleAlert:"",PeopleBlock:"",PeopleExternalShare:"",PeoplePause:"",PeopleRepeat:"",Permissions:"",PermissionsSolid:"",Personalize:"",Phishing:"",PhishingCampaign:"",PhishingHook:"",Phone:"",Photo:"",Photo2:"",Photo2Add:"",Photo2Fill:"",Photo2Remove:"",PhotoBlock:"",PhotoCollection:"",PhotoError:"",PhotoVideoMedia:"",Picture:"",PictureCenter:"",PictureFill:"",PictureLibrary:"",PicturePosition:"",PictureStretch:"",PictureTile:"",PieDouble:"",PieSingle:"",PieSingleSolid:"",Pill:"",Pin:"",Pinned:"",PinnedFill:"",PinnedSolid:"",PinSolid12:"",PinSolidOff12:"",PinToTab:"",PivotChart:"",PlainText:"",PlannerLogo:"",PlanView:"",Play:"",PlaybackRate1x:"",PlayerSettings:"",PlayResume:"",PlayReverse:"",PlayReverseResume:"",PlaySolid:"",Plug:"",PlugConnected:"",PlugDisconnected:"",PlugSolid:"",POI:"",POISolid:"",PollResults:"",PopExpand:"",PortalAppTemplate32:"",PostUpdate:"",PowerApps:"",PowerApps2Logo:"",PowerAppsLogo:"",PowerAppsTemplate:"",PowerAutomateLogo:"",PowerBILogo:"",PowerBILogo16:"",PowerBILogoBackplate16:"",PowerButton:"",PowerPointDocument:"",PowerPointLogo:"",PowerPointLogo16:"",PowerPointLogoInverse:"",PowerPointLogoInverse16:"",PowerShell:"",PowerShell2:"",PowerStandby:"",PowerVirtualAgentsLogo:"",Precipitation:"",PresenceChickletVideo:"",Presentation:"",Presentation12:"",Preview:"",PreviewBelow:"",PreviewLink:"",PreviewSideBySide:"",Previous:"",PrimaryCalendar:"",Print:"",PrintfaxPrinterFile:"",Priority:"",Process:"",ProcessAdvisor:"",Processing:"",ProcessingCancel:"",ProcessingPause:"",ProcessingRun:"",ProcessMap:"",ProcessMetaTask:"",Product:"",ProductCatalog:"",ProductionFloorManagement:"",ProductList:"",ProductRelease:"",ProductVariant:"",ProductWarning:"",ProfileSearch:"",ProFootball:"",ProgressLoopInner:"",ProgressLoopOuter:"",ProgressRing5:"",ProgressRingDots:"",ProHockey:"",Project2019Document:"",ProjectCollection:"",ProjectDocument:"",ProjectLogo16:"",ProjectLogo32:"",ProjectLogoInverse:"",PromotedDatabase:"",Pronouns:"",ProtectedDocument:"",ProtectionCenterLogo32:"",ProtectRestrict:"",ProvisioningPackage:"",PublicCalendar:"",PublicContactCard:"",PublicContactCardMirrored:"",PublicEmail:"",PublicFolder:"",PublishContent:"",PublishCourse:"",PublisherLogo:"",PublisherLogo16:"",PublisherLogoInverse16:"",Puzzle:"",PY:"",PythonLanguage:"",PythonLogoBlue:"",PythonLogoYellow:"",QandA:"",QandAMirror:"",QRCode:"",QuadColumn:"",Quantity:"",QuarterCircle:"",QueryList:"",Questionnaire:"",QuestionnaireMirrored:"",QueueAdvanced:"",QuickNote:"",QuickNoteSolid:"",Quotes:"",R:"",RadioBtnOff:"",RadioBtnOn:"",RadioBullet:"",Rain:"",RainShowersDay:"",RainShowersNight:"",RainSnow:"",Rate:"",RawSource:"",ReactLogo:"",Read:"",ReadingMode:"",ReadingModeSolid:"",ReadOutLoud:"",RealEstate:"",ReceiptCheck:"",ReceiptForward:"",ReceiptProcessing:"",ReceiptReply:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",ReceiptUndelivered:"",Recent:"",Record2:"",RecordRouting:"",RecruitmentManagement:"",RectangleShape:"",RectangleShapeSolid:"",RectangularClipping:"",RecurringEvent:"",RecurringTask:"",RecycleBin:"",Redeploy:"",RedEye:"",RedEye12:"",Redo:"",Refresh:"",RegistryEditor:"",Relationship:"",ReleaseDefinition:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",ReminderGroup:"",ReminderPerson:"",ReminderTime:"",Remote:"",Remove:"",RemoveContent:"",RemoveEvent:"",RemoveFilter:"",RemoveFromShoppingList:"",RemoveFromTrash:"",RemoveLink:"",RemoveLinkChain:"",RemoveLinkX:"",RemoveOccurrence:"",Rename:"",RenewalCurrent:"",RenewalFuture:"",ReopenPages:"",Repair:"",RepeatAll:"",RepeatHeaderRows:"",RepeatOne:"",Reply:"",ReplyAll:"",ReplyAllAlt:"",ReplyAllMirrored:"",ReplyAlt:"",ReplyMirrored:"",Repo:"",ReportAdd:"",ReportAlert:"",ReportAlertMirrored:"",ReportDocument:"",ReportHacked:"",ReportLibrary:"",ReportLibraryMirrored:"",ReportLock:"",ReportTrophy:"",ReportWarning:"",RepoSolid:"",Rerun:"",ReservationOrders:"",Reset:"",ResetDevice:"",ResponsesMenu:"",ReturnKey:"",ReturnToSession:"",ReviewRequestMirroredSolid:"",ReviewRequestSolid:"",ReviewResponseSolid:"",ReviewSolid:"",RevToggleKey:"",RewardsLogo:"",RewardsLogoArt64:"",RewardsLogoSolid:"",Rewind:"",RewindEightX:"",RewindFourX:"",RewindOneFiveX:"",RewindOneX:"",RewindPointFiveX:"",RewindTwoX:"",Ribbon:"",RibbonSolid:"",RightDoubleQuote:"",RightTriangle:"",Ringer:"",RingerActive:"",RingerOff:"",RingerRemove:"",RingerSolid:"",Robot:"",Rocket:"",Room:"",Rotate:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",RowsChild:"",RowsGroup:"",RubyGemsLogo:"",Rugby:"",Running:"",RustLanguageLogo:"",Sad:"",SadSolid:"",SamsungGallery:"",Save:"",SaveAll:"",SaveAndClose:"",SaveAs:"",SavedOffline:"",SaveTemplate:"",SaveToMobile:"",Savings:"",ScaleUp:"",ScaleVolume:"",ScatterChart:"",ScheduleEventAction:"",SchoolDataSyncLogo:"",ScopeTemplate:"",Screen:"",ScreenCast:"",ScreenPreviewOn:"",ScreenTime:"",Script:"",ScrollUpDown:"",SDCard:"",Search:"",SearchAndApps:"",SearchArt64:"",SearchBookmark:"",SearchCalendar:"",SearchData:"",SearchIssue:"",SearchIssueMirrored:"",SearchNearby:"",SecondaryNav:"",Section:"",Sections:"",SecurityCamera:"",SecurityGroup:"",SecurityTest:"",SeeDo:"",SelectAll:"",Sell:"",SemiboldWeight:"",Send:"",SendMirrored:"",SentimentAnalysis:"",Separator:"",Server:"",ServerEnviroment:"",ServerProcesses:"",ServiceOff:"",SetAction:"",Settings:"",SettingsAdd:"",SettingsSecure:"",SettingsSync:"",ShakeDevice:"",Shapes:"",ShapeSolid:"",Share:"",SharedDatabase:"",ShareiOS:"",Sharepoint2013LogoInverse:"",SharepointAppIcon16:"",SharepointLogo:"",SharepointLogoInverse:"",Shield:"",ShieldAlert:"",ShieldSolid:"",Shirt:"",Shop:"",ShoppingCart:"",ShoppingCartSolid:"",ShopServer:"",Showers:"",ShowGrid:"",ShowResults:"",ShowResultsMirrored:"",ShowTimeAs:"",ShowVisualFilter:"",SidePanel:"",SidePanelMirrored:"",Signin:"",SignOut:"",SimplifiedView:"",SingleBookmark:"",SingleBookmarkSolid:"",SingleColumn:"",SingleColumnEdit:"",SIPMove:"",SiteScan:"",SizeLegacy:"",SkipBack10:"",SkipForward30:"",SkiResorts:"",SkypeArrow:"",SkypeCheck:"",SkypeCircleArrow:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeCircleSlash:"",SkypeClock:"",SkypeForBusinessLogo:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill:"",SkypeForBusinessLogoFill16:"",SkypeLogo:"",SkypeLogo16:"",SkypeMessage:"",SkypeMinus:"",SkypeSlash:"",Sleet:"",Slider:"",SliderHandleSize:"",SliderThumb:"",Slideshow:"",SmartGlassRemote:"",SnapToGrid:"",Snooze:"",Snow:"",Snowflake:"",SnowShowerDay:"",SnowShowerNight:"",Soccer:"",SocialListeningLogo:"",Sort:"",SortDown:"",SortLines:"",SortLinesAscending:"",SortUp:"",Source:"",Spacer:"",Speakers:"",SpecialEvent:"",Speech:"",SpeechOff:"",SpeedHigh:"",Spelling:"",Split:"",SplitObject:"",Sprint:"",SQLAnalyticsPool:"",SQLServerLogo:"",Squalls:"",SquareShape:"",SquareShapeSolid:"",Stack:"",StackColumnChart:"",StackedBarChart:"",StackedBarChartFull:"",StackedColumnChart2:"",StackedColumnChart2Fill:"",StackedLineChart:"",StackIndicator:"",StaffNotebookLogo16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill16:"",StaffNotebookLogoFill32:"",StaffNotebookLogoInverted16:"",StaffNotebookLogoInverted32:"",Starburst:"",StarburstSolid:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleCheckmark:"",StatusCircleErrorX:"",StatusCircleExclamation:"",StatusCircleInfo:"",StatusCircleInner:"",StatusCircleOuter:"",StatusCircleQuestionMark:"",StatusCircleRing:"",StatusCircleSync:"",StatusErrorFull:"",StatusTriangle:"",StatusTriangleExclamation:"",StatusTriangleInner:"",StatusTriangleOuter:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",StickyNotesOutlineAppIcon:"",StickyNotesSolidAppIcon:"",StockDown:"",StockUp:"",Stop:"",StopSolid:"",Stopwatch:"",StorageAcount:"",StorageOptical:"",StoreLogo16:"",StoreLogoMed20:"",Storyboard:"",StreamDiscover:"",Streaming:"",StreamingOff:"",StreamLogo:"",Street:"",StreetsideSplitMinimize:"",Strikethrough:"",StrikethroughKorean:"",Subscribe:"",Subscript:"",SubstitutionsIn:"",SubtractShape:"",Suitcase:"",SunAdd:"",Sunny:"",SunQuestionMark:"",Superscript:"",SurveyQuestionResponse:"",SurveyQuestions:"",SVNLogo:"",SwayLogo16:"",SwayLogo32:"",SwayLogoFill16:"",SwayLogoFill32:"",SwayLogoInverse:"",SwiftLogo:"",Switch:"",SwitcherStartEnd:"",SwitchUser:"",Sync:"",SyncError:"",SyncFolder:"",SyncOccurence:"",SyncOccurenceCancel:"",SyncStatus:"",SyncStatusSolid:"",SyncToPC:"",System:"",Tab:"",TabCenter:"",Table:"",TableBrandedColumn:"",TableBrandedRow:"",TableColumn:"",TableComputed:"",TableFirstColumn:"",TableGroup:"",TableHeaderRow:"",TableLastColumn:"",TableLink:"",TablePermission:"",Tablet:"",TabletMode:"",TableTotalRow:"",TabletSelected:"",TabOneColumn:"",TabThreeColumn:"",TabTwoColumn:"",Tag:"",TagGroup:"",TagSolid:"",TagUnknown:"",TagUnknown12:"",TagUnknown12Mirror:"",TagUnknownMirror:"",TaskAdd:"",Taskboard:"",TaskGroup:"",TaskGroupMirrored:"",TaskList:"",TaskLogo:"",TaskManager:"",TaskManagerMirrored:"",TaskSolid:"",Taxi:"",TeamFavorite:"",TeamsLogo:"",TeamsLogo16:"",TeamsLogoInverse:"",Teamwork:"",Teeth:"",Telemarketer:"",TemporaryAccessPass:"",TemporaryUser:"",Tennis:"",TestAdd:"",TestAutoSolid:"",TestBeaker:"",TestBeakerSolid:"",TestCase:"",TestExploreSolid:"",TestImpactSolid:"",TestParameter:"",TestPlan:"",TestRemove:"",TestStep:"",TestSuite:"",TestUserSolid:"",TextAlignBottom:"",TextAlignMiddle:"",TextAlignTop:"",TextBox:"",TextCallout:"",TextDocument:"",TextDocumentEdit:"",TextDocumentSettings:"",TextDocumentShared:"",TextField:"",TextOverflow:"",TextParagraphOption:"",TextRecognition:"",TextRotate270Degrees:"",TextRotate90Degrees:"",TextRotateHorizontal:"",TextRotation:"",TFVCLogo:"",ThisPC:"",ThreeQuarterCircle:"",ThumbnailView:"",ThumbnailViewMirrored:"",Thunderstorms:"",Ticket:"",Tiles:"",Tiles2:"",TimeEntry:"",Timeline:"",TimelineDelivery:"",TimelineMatrixView:"",TimelineProgress:"",TimePicker:"",Timer:"",TimeSheet:"",ToDoLogoBottom:"",ToDoLogoInverse:"",ToDoLogoOutline:"",ToDoLogoTop:"",ToggleBorder:"",ToggleFilled:"",ToggleLeft:"",ToggleRight:"",ToggleThumb:"",Toll:"",Toolbox:"",Total:"",Touch:"",TouchPointer:"",Trackers:"",TrackersMirrored:"",Train:"",TrainSolid:"",TransferCall:"",Transition:"",TransitionEffect:"",TransitionPop:"",TransitionPush:"",Translate:"",Trending12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",TriangleShape:"",TriangleShapeSolid:"",TriangleSolid:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleSolidUp12:"",TriangleUp12:"",TriggerApproval:"",TriggerAuto:"",TriggerPhrase:"",TriggerUser:"",Trim:"",TrimEnd:"",TrimStart:"",TripleColumn:"",TripleColumnEdit:"",TripleColumnWide:"",Trophy:"",Trophy2:"",Trophy2Solid:"",TurnRight:"",TVMonitor:"",TVMonitorSelected:"",TwitterLogo:"",TypeScriptLanguage:"",Umbrella:"",UnavailableOffline:"",Underline:"",UnderlineA:"",UnderlineKorean:"",UnderlineP:"",UnderlineRussian:"",UnderlineS:"",UnderlineSerbian:"",Undo:"",Uneditable:"",Uneditable2:"",Uneditable2Mirrored:"",UneditableMirrored:"",UneditableSolid12:"",UneditableSolidMirrored12:"",Unfavorite:"",UngroupObject:"",UniteShape:"",Unknown:"",UnknownCall:"",UnknownMirrored:"",UnknownMirroredSolid:"",UnknownSolid:"",Unlock:"",UnlockSolid:"",Unpin:"",UnpublishContent:"",UnSetColor:"",UnstackSelected:"",Unsubscribe:"",UnsyncFolder:"",UnsyncOccurence:"",Untag:"",Up:"",UpdateRestore:"",UpgradeAnalysis:"",Upload:"",UpperCase:"",URLBlock:"",USB:"",UserEvent:"",UserFollowed:"",UserGauge:"",UserOptional:"",UserPause:"",UserRemove:"",UserSync:"",UserWarning:"",UserWindow:"",Vacation:"",Vaccination:"",VaccinationRecent:"",Variable:"",Variable2:"",Variable3:"",VariableGroup:"",VB:"",VennDiagram:"",VerifiedBrand:"",VerifiedBrandSolid:"",VersionControlPush:"",VerticalDistributeCenter:"",Video:"",Video360Generic:"",VideoLightOff:"",VideoOff:"",VideoOff2:"",VideoSearch:"",VideoSolid:"",View:"",ViewAll:"",ViewAll2:"",ViewDashboard:"",ViewInAR:"",ViewList:"",ViewListGroup:"",ViewListTree:"",ViewOriginal:"",VirtualNetwork:"",VisioDiagram:"",VisioDiagramSync:"",VisioDocument:"",VisioLogo:"",VisioLogo16:"",VisioLogoInverse:"",VisioLogoInverse16:"",VisualBasicLanguage:"",VisuallyImpaired:"",VisualsFolder:"",VisualsStore:"",VisualStudioForWindows:"",VisualStudioForWindowsAlt:"",VoicemailForward:"",VoicemailIRM:"",VoicemailReply:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",VolumeDisabled:"",VSTSAltLogo1:"",VSTSAltLogo2:"",VSTSLogo:"",Waffle:"",WaffleOffice365:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",Warning:"",Warning12:"",WarningSolid:"",WavingHand:"",WebAppBuilderFragment:"",WebAppBuilderFragmentCreate:"",WebAppBuilderFragmentLock:"",WebAppBuilderFragmentTest:"",WebAppBuilderModule:"",WebAppBuilderModuleLock:"",WebAppBuilderModuleTest:"",WebAppBuilderSlot:"",Webcam2:"",Webcam2Off:"",WebComponents:"",WebEnvironment:"",WebPublish:"",WebSearch:"",Website:"",WebTemplate:"",Weights:"",Wheelchair:"",WhiteBoardApp16:"",WhiteBoardApp32:"",WifiEthernet:"",WifiWarning4:"",WindDirection:"",WindowEdit:"",WindowsLogo:"",Wines:"",WipePhone:"",WordDocument:"",WordLogo:"",WordLogo16:"",WordLogoInverse:"",WordLogoInverse16:"",Work:"",WorkFlow:"",WorkforceManagement:"",WorkItem:"",WorkItemAlert:"",WorkItemBar:"",WorkItemBarSolid:"",WorkItemBug:"",World:"",WorldClock:"",XamarinLogo:"",XboxController:"",XboxLogo:"",XboxOneConsole:"",XPowerY:"",XRay:"",YammerLogo:"",ZeroDayCalendar:"",ZipFolder:"",Zoom:"",ZoomIn:"",ZoomOut:"",ZoomToFit:"","mark/data-axis":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{d:"M1472 0l576 576L576 2048 0 1472 1472 0zM181 1472l395 395L1867 576l-395-395-88 88 115 115-91 91-115-115-165 165 197 198-90 90-198-197-165 165 115 116-90 90-116-115-165 165 197 198-90 90-198-197-165 165 115 115-91 91-115-115-88 88z"})),"guide/x":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{d:"M512 1151v-127h384v127H512zm1024-127h384v127h-384v-127zM0 1151v-127h384v127H0zm1024 0v-127h384v127h-384z"})),"guide/y":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("g",{transform:"translate(2048, 50) rotate(90)"},r.createElement("path",{d:"M512 1151v-127h384v127H512zm1024-127h384v127h-384v-127zM0 1151v-127h384v127H0zm1024 0v-127h384v127h-384z"}))),"sublayout/packing":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"16",height:"16",style:{stroke:"#0078d4"}},r.createElement("circle",{cx:"9.87143",cy:"22.27563",r:"5.33333",style:{fillOpacity:0,strokeWidth:"2px"}}),r.createElement("circle",{cx:"23.11442",cy:"22.27563",r:"5.33333",style:{fillOpacity:0,strokeWidth:"2px"}}),r.createElement("circle",{cx:"15.99292",cy:"10.67289",r:"5.33333",style:{fillOpacity:0,strokeWidth:"2px"}})),"sublayout/jitter":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{d:"M5.5,4.5c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S6.603,4.5,5.5,4.5z M5.5,1.5c-0.551,0-1,0.449-1,1s0.449,1,1,1\n          s1-0.449,1-1S6.051,1.5,5.5,1.5z M2.5,9.5c-1.103,0-2-0.897-2-2c0-1.103,0.897-2,2-2s2,0.897,2,2C4.5,8.603,3.603,9.5,2.5,9.5z\n           M2.5,6.5c-0.551,0-1,0.449-1,1c0,0.552,0.449,1,1,1s1-0.448,1-1C3.5,6.949,3.051,6.5,2.5,6.5z M13.5,15.5c-1.103,0-2-0.897-2-2\n          s0.897-2,2-2s2,0.897,2,2S14.603,15.5,13.5,15.5z M13.5,12.5c-0.552,0-1,0.448-1,1s0.448,1,1,1s1-0.448,1-1S14.052,12.5,13.5,12.5z\n           M6.5,15.5c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S7.603,15.5,6.5,15.5z M6.5,12.5c-0.551,0-1,0.448-1,1s0.449,1,1,1\n          s1-0.448,1-1S7.051,12.5,6.5,12.5z M13.5,9.5c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S14.603,9.5,13.5,9.5z M13.5,6.5\n          c-0.552,0-1,0.449-1,1s0.448,1,1,1s1-0.449,1-1S14.052,6.5,13.5,6.5z M8.5,10.5c-1.103,0-2-0.897-2-2c0-1.103,0.897-2,2-2\n          c1.103,0,2,0.897,2,2C10.5,9.603,9.603,10.5,8.5,10.5z M8.5,7.5c-0.551,0-1,0.449-1,1c0,0.552,0.449,1,1,1c0.552,0,1-0.448,1-1\n          C9.5,7.949,9.052,7.5,8.5,7.5z M12.5,4.5c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S13.603,4.5,12.5,4.5z M12.5,1.5\n          c-0.552,0-1,0.449-1,1s0.448,1,1,1s1-0.449,1-1S13.052,1.5,12.5,1.5z"})),"scaffold/cartesian-x":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{transform:"translate(2048, 000) rotate(90)",d:"M 1920 0 v 2048 h -128 V 0 h 128 z M 512 384 h 1152 v 512 H 0 V 384 z m 128 384 h 896 V 512 H 128v 256 z M 0 1152 h 1664 v 512 H 0 v -512 z m 128 384 h 1408 v -256 H 128 v 256 z"})),"scaffold/cartesian-y":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{transform:"translate(-125, 0) rotate(180, 1024, 1024)",d:"M 1920 0 v 2048 h -128 V 0 h 128 z M 512 384 h 1152 v 512 H 0 V 384 z m 128 384 h 896 V 512 H 128v 256 z M 0 1152 h 1664 v 512 H 0 v -512 z m 128 384 h 1408 v -256 H 128 v 256 z"})),"scaffold/circle":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("title",null,"icons"),r.createElement("g",{transform:"translate(0, 0) scale(70)"},r.createElement("circle",{cx:"16.01657",cy:"16.00686",r:"4.56188",style:{fill:"none",strokeMiterlimit:10}}),r.createElement("path",{d:"M3.938,16.98954,9.9971,16.5012a5.99766,5.99766,0,0,1,2.86265-5.64127L9.6943,5.67251A12.03247,12.03247,0,0,0,3.938,16.98954Z"}),r.createElement("path",{d:"M13.682,10.43443a6.041,6.041,0,0,1,6.26431.98889L23.90143,6.81A12.122,12.122,0,0,0,11.344,4.82017Z"}),r.createElement("path",{d:"M20.60012,12.07717a6.041,6.041,0,0,1,.98889,6.2643l5.61426,2.33794A12.122,12.122,0,0,0,25.21345,8.122Z"}),r.createElement("path",{d:"M14.61108,21.878a6.002,6.002,0,0,1-4.4656-4.4656l-5.9111,1.40735a12.04371,12.04371,0,0,0,8.96935,8.96935Z"}),r.createElement("path",{d:"M21.16351,19.16368a5.99778,5.99778,0,0,1-5.64132,2.8627l-.48829,6.05909a12.03243,12.03243,0,0,0,11.317-5.75634Z"}))),"scaffold/curve":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{d:"M1984 1792q26 0 45 18t19 46q0 24-17 44-30 35-69 62t-83 47-91 29-92 10q-99 0-183-38t-152-110q-49-51-109-79t-132-29q-70 0-131 28t-110 80l-9 9q-9 9-23 22t-30 30-30 30-25 25-13 13q-19 19-45 19t-45-19-19-45q0-26 19-45 54-54 102-104t100-88 114-60 145-23q99 0 183 38t152 110q49 51 109 79t132 29q76 0 132-28t109-80q11-10 21-15t26-5zM1235 290q14 8 23 23t9 32q0 8-2 15t-5 14L553 1789q-9 19-28 28l-173 87q-32 16-69 16h-9q-4 0-10-1l-47 94q-8 16-23 25t-34 10q-26 0-45-19t-19-45q0-12 7-30t16-37 20-37 15-28q-26-40-26-87v-165q0-16 7-29L711 419l-65-32-237 474q-8 16-23 25t-34 10q-26 0-45-19t-19-45q0-13 7-29l239-478q16-32 43-50t63-19q35 0 66 17t62 32l71-142q8-17 23-26t34-9q13 0 22 4 12-24 23-47t26-43 36-30 53-12q32 0 61 15l94 47q32 16 50 42t19 64q0 34-15 63t-30 59zm-202-101l87 43 29-58-87-43-29 58zm84 185l-192-96-669 1337v150q0 11 8 19t19 8q4 0 16-5t29-13 35-17 36-19 30-16 19-10l669-1338z"})),"scaffold/spiral":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4"}},r.createElement("path",{d:"M9.5,1.5C5.916,1.5,3,4.416,3,8c0,2.895,2.355,5.25,5.25,5.25c2.895,0,5.25-2.355,5.25-5.25c0-2.206-1.794-4-4-4\n          c-2.206,0-4,1.794-4,4c0,1.517,1.233,2.75,2.75,2.75S11,9.517,11,8c0-0.827-0.673-1.5-1.5-1.5S8,7.173,8,8\n          c0,0.276,0.224,0.5,0.5,0.5S9,8.276,9,8c0-0.276,0.225-0.5,0.5-0.5S10,7.724,10,8c0,0.965-0.785,1.75-1.75,1.75S6.5,8.965,6.5,8\n          c0-1.654,1.346-3,3-3s3,1.346,3,3c0,2.344-1.906,4.25-4.25,4.25C5.907,12.25,4,10.344,4,8c0-3.033,2.467-5.5,5.5-5.5\n          C12.532,2.5,15,4.967,15,8c0,3.794-3.091,7-6.75,7C4.456,15,1,11.663,1,8c0-2.615,1.282-5.069,3.43-6.567\n          c0.227-0.158,0.282-0.47,0.124-0.696C4.397,0.511,4.086,0.456,3.858,0.613C1.442,2.297,0,5.059,0,8c0,4.187,3.932,8,8.25,8\n          C12.451,16,16,12.337,16,8C16,4.416,13.084,1.5,9.5,1.5z"})),"sublayout/polar-grid":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("g",null,r.createElement("path",{d:"M10.766,1.558c0.242,0.038,0.483,0.082,0.723,0.13C11.249,1.64,11.008,1.596,10.766,1.558L10.766,1.558z M11.489,1.688\n              c0.317,0.064,0.632,0.137,0.945,0.218C12.121,1.825,11.806,1.752,11.489,1.688L11.489,1.688z"}),r.createElement("path",{d:"M14.353,2.521c0.524,0.202,1.042,0.422,1.548,0.676C15.395,2.943,14.877,2.722,14.353,2.521L14.353,2.521z"}),r.createElement("path",{d:"M5.234,1.558C4.992,1.596,4.751,1.64,4.511,1.688C4.751,1.64,4.992,1.596,5.234,1.558L5.234,1.558z M4.511,1.688\n              C4.194,1.752,3.879,1.825,3.566,1.906C3.879,1.825,4.194,1.752,4.511,1.688L4.511,1.688z"}),r.createElement("path",{d:"M1.647,2.521C1.123,2.722,0.605,2.943,0.098,3.197C0.605,2.943,1.123,2.723,1.647,2.521L1.647,2.521z"}),r.createElement("path",{d:"M3.398,1.95c-0.321,0.086-0.639,0.18-0.956,0.284C2.759,2.131,3.078,2.037,3.398,1.95L3.398,1.95z M2.443,2.235\n              C2.238,2.302,2.034,2.373,1.831,2.448C2.034,2.373,2.238,2.302,2.443,2.235L2.443,2.235z"}),r.createElement("path",{d:"M12.602,1.95c0.321,0.086,0.639,0.181,0.956,0.284C13.241,2.131,12.922,2.036,12.602,1.95L12.602,1.95z M13.557,2.235\n              c0.205,0.067,0.409,0.138,0.611,0.214C13.966,2.373,13.762,2.302,13.557,2.235L13.557,2.235z"}),r.createElement("path",{d:"M7.299,13.415c-0.04,0.005-0.08,0.011-0.12,0.017C7.218,13.425,7.259,13.42,7.299,13.415L7.299,13.415z M7.179,13.431\n              c-0.125,0.019-0.25,0.042-0.373,0.069C6.929,13.474,7.053,13.45,7.179,13.431L7.179,13.431z"}),r.createElement("path",{d:"M9.937,13.713c0.197,0.073,0.391,0.154,0.581,0.249C10.329,13.868,10.134,13.786,9.937,13.713L9.937,13.713z"}),r.createElement("path",{d:"M6.063,13.713c-0.197,0.072-0.391,0.154-0.581,0.249C5.672,13.868,5.866,13.786,6.063,13.713L6.063,13.713z"}),r.createElement("path",{d:"M6.673,13.529c-0.079,0.019-0.158,0.041-0.236,0.064C6.516,13.57,6.594,13.548,6.673,13.529L6.673,13.529z M6.438,13.593\n              c-0.082,0.024-0.163,0.05-0.244,0.078C6.275,13.644,6.356,13.617,6.438,13.593L6.438,13.593z"}),r.createElement("path",{d:"M9.327,13.529c0.079,0.019,0.158,0.041,0.236,0.064C9.484,13.57,9.406,13.548,9.327,13.529L9.327,13.529z M9.562,13.593\n              c0.082,0.024,0.163,0.051,0.244,0.078C9.725,13.643,9.644,13.617,9.562,13.593L9.562,13.593z"}),r.createElement("path",{d:"M8.701,13.415c0.04,0.005,0.08,0.011,0.12,0.017C8.781,13.425,8.741,13.42,8.701,13.415L8.701,13.415z M8.821,13.431\n              c0.125,0.019,0.249,0.043,0.373,0.069C9.071,13.474,8.947,13.45,8.821,13.431L8.821,13.431z"}),r.createElement("path",{d:"M10.748,1.556c0.006,0.001,0.012,0.002,0.018,0.003C10.76,1.557,10.754,1.556,10.748,1.556L10.748,1.556z"}),r.createElement("path",{d:"M9.806,13.671c0.023,0.008,0.047,0.015,0.07,0.022C9.853,13.686,9.83,13.679,9.806,13.671L9.806,13.671z M9.877,13.693\n              c0.02,0.006,0.041,0.013,0.061,0.02C9.917,13.706,9.897,13.7,9.877,13.693L9.877,13.693z"}),r.createElement("path",{d:"M14.169,2.448c0.026,0.01,0.053,0.02,0.079,0.031C14.221,2.469,14.195,2.458,14.169,2.448L14.169,2.448z M14.248,2.479\n              c0.035,0.014,0.07,0.028,0.106,0.042C14.318,2.507,14.283,2.493,14.248,2.479L14.248,2.479z"}),r.createElement("path",{d:"M8.571,13.401c0.044,0.004,0.087,0.008,0.131,0.014C8.658,13.409,8.614,13.405,8.571,13.401L8.571,13.401z"}),r.createElement("path",{d:"M9.195,13.501c0.023,0.005,0.046,0.01,0.069,0.014C9.241,13.51,9.218,13.506,9.195,13.501L9.195,13.501z M9.264,13.515\n              c0.021,0.004,0.042,0.009,0.063,0.014C9.306,13.524,9.285,13.519,9.264,13.515L9.264,13.515z"}),r.createElement("path",{d:"M12.434,1.906c0.034,0.009,0.068,0.018,0.102,0.027C12.502,1.924,12.468,1.915,12.434,1.906L12.434,1.906z M12.536,1.933\n              c0.022,0.006,0.044,0.012,0.065,0.018C12.58,1.944,12.558,1.939,12.536,1.933L12.536,1.933z"}),r.createElement("path",{d:"M9.921,2.453c0.229,0.026,0.459,0.057,0.69,0.093c0.504,0.079,1.033,0.189,1.572,0.328l0.159,0.042\n              c0.506,0.135,1.003,0.293,1.477,0.469l0.081,0.032l0.094,0.037c0.191,0.073,0.374,0.147,0.55,0.22l-1.319,2.639\n              c-1.099-0.449-2.26-0.751-3.469-0.901L9.921,2.453 M8.979,1.369L8.704,6.322c1.714,0.095,3.414,0.514,4.985,1.3l2.212-4.425\n              c-0.507-0.253-1.025-0.475-1.548-0.676c-0.062-0.024-0.123-0.05-0.185-0.073c-0.516-0.191-1.039-0.357-1.567-0.498\n              c-0.056-0.015-0.112-0.03-0.167-0.044c-0.551-0.142-1.108-0.26-1.668-0.348c-0.006-0.001-0.012-0.002-0.018-0.003\n              C10.162,1.464,9.571,1.402,8.979,1.369L8.979,1.369z"}),r.createElement("path",{d:"M9.527,9.537c0.639,0.099,1.256,0.258,1.848,0.477l-1.34,2.679c-0.156-0.051-0.313-0.097-0.473-0.136l-0.153-0.033\n              c-0.016-0.003-0.032-0.007-0.047-0.01L9.527,9.537 M8.587,8.435l-0.274,4.938c0.087,0.005,0.172,0.019,0.258,0.028\n              c0.044,0.004,0.087,0.008,0.131,0.014c0.166,0.021,0.33,0.05,0.494,0.086c0.044,0.01,0.088,0.017,0.132,0.028\n              c0.162,0.04,0.321,0.088,0.48,0.142c0.044,0.015,0.088,0.026,0.131,0.042c0.197,0.073,0.391,0.154,0.581,0.249l2.222-4.445\n              C11.432,8.863,10.015,8.514,8.587,8.435L8.587,8.435z"}),r.createElement("path",{d:"M6.805,13.501c-0.023,0.005-0.046,0.01-0.069,0.014C6.759,13.51,6.782,13.506,6.805,13.501L6.805,13.501z M6.736,13.515\n              c-0.021,0.004-0.042,0.009-0.063,0.014C6.694,13.524,6.715,13.519,6.736,13.515L6.736,13.515z"}),r.createElement("path",{d:"M7.429,13.401c-0.044,0.004-0.087,0.008-0.131,0.014C7.342,13.409,7.386,13.405,7.429,13.401L7.429,13.401z"}),r.createElement("path",{d:"M6.194,13.671c-0.023,0.008-0.047,0.015-0.07,0.022C6.147,13.686,6.17,13.679,6.194,13.671L6.194,13.671z M6.123,13.693\n              c-0.02,0.006-0.041,0.013-0.061,0.02C6.083,13.706,6.103,13.7,6.123,13.693L6.123,13.693z"}),r.createElement("path",{d:"M5.252,1.556C5.246,1.556,5.24,1.557,5.234,1.558C5.24,1.557,5.246,1.556,5.252,1.556L5.252,1.556z"}),r.createElement("path",{d:"M3.566,1.906C3.532,1.915,3.498,1.924,3.464,1.933C3.498,1.924,3.532,1.915,3.566,1.906L3.566,1.906z M3.464,1.933\n              C3.442,1.939,3.42,1.944,3.398,1.95C3.42,1.944,3.442,1.939,3.464,1.933L3.464,1.933z"}),r.createElement("path",{d:"M1.831,2.448c-0.026,0.01-0.053,0.02-0.079,0.031C1.779,2.469,1.805,2.458,1.831,2.448L1.831,2.448z M1.752,2.479\n              c-0.035,0.014-0.07,0.028-0.106,0.042C1.682,2.507,1.717,2.493,1.752,2.479L1.752,2.479z"}),r.createElement("path",{d:"M6.079,2.453l0.164,2.96c-1.209,0.151-2.37,0.452-3.469,0.901L1.456,3.675c0.176-0.074,0.359-0.147,0.55-0.221l0.093-0.037\n              l0.08-0.031c0.475-0.176,0.972-0.334,1.479-0.47l0.157-0.042c0.541-0.139,1.07-0.249,1.591-0.331\n              C5.629,2.509,5.854,2.478,6.079,2.453 M7.021,1.369C6.429,1.402,5.838,1.464,5.252,1.556C5.246,1.556,5.24,1.557,5.234,1.558\n              c-0.56,0.088-1.117,0.206-1.668,0.348C3.51,1.92,3.454,1.935,3.398,1.95C2.87,2.092,2.347,2.257,1.831,2.448\n              C1.769,2.471,1.708,2.497,1.647,2.521C1.123,2.722,0.605,2.943,0.098,3.197l2.212,4.425c1.571-0.786,3.271-1.205,4.985-1.3\n              L7.021,1.369L7.021,1.369z"}),r.createElement("path",{d:"M6.473,9.537l0.165,2.977c-0.027,0.006-0.054,0.011-0.082,0.018l-0.12,0.026c-0.154,0.038-0.306,0.082-0.471,0.135\n              l-1.339-2.679C5.217,9.795,5.834,9.636,6.473,9.537 M7.413,8.435C5.985,8.514,4.568,8.863,3.259,9.518l2.222,4.445\n              c0.19-0.095,0.385-0.177,0.581-0.249c0.043-0.016,0.088-0.028,0.131-0.042c0.158-0.054,0.318-0.103,0.48-0.142\n              c0.044-0.011,0.088-0.018,0.132-0.028c0.163-0.036,0.328-0.065,0.494-0.086c0.044-0.005,0.087-0.01,0.131-0.014\n              c0.086-0.009,0.172-0.023,0.258-0.028L7.413,8.435L7.413,8.435z"}))),FlipVertical:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M1664 0L960 704 256 0h1408zM256 1920l704-704 704 704H256zm309-128h790l-395-395-395 395zm75-768H512V896h128v128zm-256 0H256V896h128v128zm512 0H768V896h128v128zm256 0h-128V896h128v128zm256 0h-128V896h128v128zm128-128h128v128h-128V896z"})),FlipHorizontal:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M0 1664V256l704 704L0 1664zm1216-704l704-704v1408l-704-704zm576 395V565l-395 395 395 395zM896 640V512h128v128H896zm0-256V256h128v128H896zm0 512V768h128v128H896zm0 256v-128h128v128H896zm0 256v-128h128v128H896zm0 256v-128h128v128H896z"})),ArrowRight12:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M1084 110l829 829-829 828-120-121 622-622H0V853h1586L964 231l120-121z"})),ArrowUp12:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M1767 964l-121 120-622-622v1586H853V462l-622 622-121-120 829-829 828 829z"})),ArrowDown12:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M1646 964l121 120-828 829-829-829 121-120 622 622V0h171v1586l622-622z"})),ArrowLeft12:r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:"16",height:"16",style:{fill:"#0078d4",strokeWidth:.1}},r.createElement("path",{d:"M2048 853v171H462l622 622-120 121-829-828 829-829 120 121-622 622h1586z"})),"general/replace":r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"16",height:"16"},r.createElement("title",null,"icons"),r.createElement("path",{d:"M9.11449,15.75411v4.99441a2.86179,2.86179,0,0,0,2.8534,2.85339h3.04864",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("line",{x1:"9.11449",y1:"15.75411",x2:"11.79822",y2:"18.43784",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("line",{x1:"9.11449",y1:"15.75411",x2:"6.43076",y2:"18.43784",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("rect",{x:"4.91958",y:"4.20318",width:"8.38982",height:"8.38982",transform:"translate(17.51258 -0.7164) rotate(90)",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px"}}),r.createElement("path",{d:"M22.88551,16.24589V11.25148a2.86179,2.86179,0,0,0-2.8534-2.85339H16.98347",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("line",{x1:"22.88551",y1:"16.24589",x2:"20.20178",y2:"13.56216",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("line",{x1:"22.88551",y1:"16.24589",x2:"25.56924",y2:"13.56216",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.20px"}}),r.createElement("polyline",{points:"19.878 19.407 18.691 19.407 18.691 20.595",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px"}}),r.createElement("line",{x1:"18.69061",y1:"22.85014",x2:"18.69061",y2:"25.48134",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px",strokeDasharray:"1.5035455226898193,2.2553179264068604"}}),r.createElement("polyline",{points:"18.691 26.609 18.691 27.797 19.878 27.797",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px"}}),r.createElement("line",{x1:"22.13373",y1:"27.79683",x2:"24.76495",y2:"27.79683",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px",strokeDasharray:"1.5035455226898193,2.2553179264068604"}}),r.createElement("polyline",{points:"25.893 27.797 27.08 27.797 27.08 26.609",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px"}}),r.createElement("line",{x1:"27.08044",y1:"24.35368",x2:"27.08044",y2:"21.72249",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px",strokeDasharray:"1.5035455226898193,2.2553179264068604"}}),r.createElement("polyline",{points:"27.08 20.595 27.08 19.407 25.893 19.407",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px"}}),r.createElement("line",{x1:"23.63727",y1:"19.407",x2:"21.0061",y2:"19.407",style:{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2000000000000002px",strokeDasharray:"1.5035455226898193,2.2553179264068604"}}))}};o.registerIcons(n,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerIconAliases=void 0;var r=n(287);t.registerIconAliases=function(){r.registerIconAlias("trash","delete"),r.registerIconAlias("onedrive","onedrivelogo"),r.registerIconAlias("alertsolid12","eventdatemissed12"),r.registerIconAlias("sixpointstar","6pointstar"),r.registerIconAlias("twelvepointstar","12pointstar"),r.registerIconAlias("toggleon","toggleleft"),r.registerIconAlias("toggleoff","toggleright"),r.registerIconAlias("edgelogo","edgeoldlogo"),r.registerIconAlias("powerappscds","commondataservicecds"),r.registerIconAlias("d365talenthrcore","d365corehr"),r.registerIconAlias("crmcustomerinsightsapp","insights"),r.registerIconAlias("microsoftflowlogo","powerautomatelogo")},t.default=t.registerIconAliases},function(e,t,n){"use strict";n.r(t),n.d(t,"forceCenter",(function(){return r})),n.d(t,"forceCollide",(function(){return f})),n.d(t,"forceLink",(function(){return C})),n.d(t,"forceManyBody",(function(){return Z})),n.d(t,"forceRadial",(function(){return J})),n.d(t,"forceSimulation",(function(){return K})),n.d(t,"forceX",(function(){return q})),n.d(t,"forceY",(function(){return X}));var r=function(e,t){var n;function r(){var r,o,i=n.length,a=0,s=0;for(r=0;r<i;++r)a+=(o=n[r]).x,s+=o.y;for(a=a/i-e,s=s/i-t,r=0;r<i;++r)(o=n[r]).x-=a,o.y-=s}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},o=function(e){return function(){return e}},i=function(){return 1e-6*(Math.random()-.5)};function a(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i,a,s,l,c,u,A,d,g=e._root,p={data:r},h=e._x0,f=e._y0,m=e._x1,y=e._y1;if(!g)return e._root=p,e;for(;g.length;)if((c=t>=(i=(h+m)/2))?h=i:m=i,(u=n>=(a=(f+y)/2))?f=a:y=a,o=g,!(g=g[A=u<<1|c]))return o[A]=p,e;if(s=+e._x.call(null,g.data),l=+e._y.call(null,g.data),t===s&&n===l)return p.next=g,o?o[A]=p:e._root=p,e;do{o=o?o[A]=new Array(4):e._root=new Array(4),(c=t>=(i=(h+m)/2))?h=i:m=i,(u=n>=(a=(f+y)/2))?f=a:y=a}while((A=u<<1|c)==(d=(l>=a)<<1|s>=i));return o[d]=g,o[A]=p,e}var s=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function l(e){return e[0]}function c(e){return e[1]}function u(e,t,n){var r=new A(null==t?l:t,null==n?c:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function A(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function d(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var g=u.prototype=A.prototype;function p(e){return e.x+e.vx}function h(e){return e.y+e.vy}g.copy=function(){var e,t,n=new A(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=d(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=d(t));return n},g.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return a(this.cover(t,n),t,n,e)},g.addAll=function(e){var t,n,r,o,i=e.length,s=new Array(i),l=new Array(i),c=1/0,u=1/0,A=-1/0,d=-1/0;for(n=0;n<i;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=r,l[n]=o,r<c&&(c=r),r>A&&(A=r),o<u&&(u=o),o>d&&(d=o));if(c>A||u>d)return this;for(this.cover(c,u).cover(A,d),n=0;n<i;++n)a(this,s[n],l[n],e[n]);return this},g.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var a,s,l=o-n,c=this._root;n>e||e>=o||r>t||t>=i;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:o=n+l,i=r+l;break;case 1:n=o-l,i=r+l;break;case 2:o=n+l,r=i-l;break;case 3:n=o-l,r=i-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},g.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},g.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},g.find=function(e,t,n){var r,o,i,a,l,c,u,A=this._x0,d=this._y0,g=this._x1,p=this._y1,h=[],f=this._root;for(f&&h.push(new s(f,A,d,g,p)),null==n?n=1/0:(A=e-n,d=t-n,g=e+n,p=t+n,n*=n);c=h.pop();)if(!(!(f=c.node)||(o=c.x0)>g||(i=c.y0)>p||(a=c.x1)<A||(l=c.y1)<d))if(f.length){var m=(o+a)/2,y=(i+l)/2;h.push(new s(f[3],m,y,a,l),new s(f[2],o,y,m,l),new s(f[1],m,i,a,y),new s(f[0],o,i,m,y)),(u=(t>=y)<<1|e>=m)&&(c=h[h.length-1],h[h.length-1]=h[h.length-1-u],h[h.length-1-u]=c)}else{var I=e-+this._x.call(null,f.data),C=t-+this._y.call(null,f.data),E=I*I+C*C;if(E<n){var b=Math.sqrt(n=E);A=e-b,d=t-b,g=e+b,p=t+b,r=f.data}}return r},g.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,o,i,a,s,l,c,u,A,d,g=this._root,p=this._x0,h=this._y0,f=this._x1,m=this._y1;if(!g)return this;if(g.length)for(;;){if((c=i>=(s=(p+f)/2))?p=s:f=s,(u=a>=(l=(h+m)/2))?h=l:m=l,t=g,!(g=g[A=u<<1|c]))return this;if(!g.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(n=t,d=A)}for(;g.data!==e;)if(r=g,!(g=g.next))return this;return(o=g.next)&&delete g.next,r?(o?r.next=o:delete r.next,this):t?(o?t[A]=o:delete t[A],(g=t[0]||t[1]||t[2]||t[3])&&g===(t[3]||t[2]||t[1]||t[0])&&!g.length&&(n?n[d]=g:this._root=g),this):(this._root=o,this)},g.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},g.root=function(){return this._root},g.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},g.visit=function(e){var t,n,r,o,i,a,l=[],c=this._root;for(c&&l.push(new s(c,this._x0,this._y0,this._x1,this._y1));t=l.pop();)if(!e(c=t.node,r=t.x0,o=t.y0,i=t.x1,a=t.y1)&&c.length){var u=(r+i)/2,A=(o+a)/2;(n=c[3])&&l.push(new s(n,u,A,i,a)),(n=c[2])&&l.push(new s(n,r,A,u,a)),(n=c[1])&&l.push(new s(n,u,o,i,A)),(n=c[0])&&l.push(new s(n,r,o,u,A))}return this},g.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new s(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var i,a=t.x0,l=t.y0,c=t.x1,u=t.y1,A=(a+c)/2,d=(l+u)/2;(i=o[0])&&n.push(new s(i,a,l,A,d)),(i=o[1])&&n.push(new s(i,A,l,c,d)),(i=o[2])&&n.push(new s(i,a,d,A,u)),(i=o[3])&&n.push(new s(i,A,d,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},g.x=function(e){return arguments.length?(this._x=e,this):this._x},g.y=function(e){return arguments.length?(this._y=e,this):this._y};var f=function(e){var t,n,r=1,a=1;function s(){for(var e,o,s,c,A,d,g,f=t.length,m=0;m<a;++m)for(o=u(t,p,h).visitAfter(l),e=0;e<f;++e)s=t[e],d=n[s.index],g=d*d,c=s.x+s.vx,A=s.y+s.vy,o.visit(y);function y(e,t,n,o,a){var l=e.data,u=e.r,p=d+u;if(!l)return t>c+p||o<c-p||n>A+p||a<A-p;if(l.index>s.index){var h=c-l.x-l.vx,f=A-l.y-l.vy,m=h*h+f*f;m<p*p&&(0===h&&(m+=(h=i())*h),0===f&&(m+=(f=i())*f),m=(p-(m=Math.sqrt(m)))/m*r,s.vx+=(h*=m)*(p=(u*=u)/(g+u)),s.vy+=(f*=m)*p,l.vx-=h*(p=1-p),l.vy-=f*p)}}}function l(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r<i;++r)o=t[r],n[o.index]=+e(o,r,t)}}return"function"!=typeof e&&(e=o(null==e?1:+e)),s.initialize=function(e){t=e,c()},s.iterations=function(e){return arguments.length?(a=+e,s):a},s.strength=function(e){return arguments.length?(r=+e,s):r},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:o(+t),c(),s):e},s},m=n(79);function y(e){return e.index}function I(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var C=function(e){var t,n,r,a,s,l=y,c=function(e){return 1/Math.min(a[e.source.index],a[e.target.index])},u=o(30),A=1;function d(r){for(var o=0,a=e.length;o<A;++o)for(var l,c,u,d,g,p,h,f=0;f<a;++f)c=(l=e[f]).source,d=(u=l.target).x+u.vx-c.x-c.vx||i(),g=u.y+u.vy-c.y-c.vy||i(),d*=p=((p=Math.sqrt(d*d+g*g))-n[f])/p*r*t[f],g*=p,u.vx-=d*(h=s[f]),u.vy-=g*h,c.vx+=d*(h=1-h),c.vy+=g*h}function g(){if(r){var o,i,c=r.length,u=e.length,A=Object(m.a)(r,l);for(o=0,a=new Array(c);o<u;++o)(i=e[o]).index=o,"object"!=typeof i.source&&(i.source=I(A,i.source)),"object"!=typeof i.target&&(i.target=I(A,i.target)),a[i.source.index]=(a[i.source.index]||0)+1,a[i.target.index]=(a[i.target.index]||0)+1;for(o=0,s=new Array(u);o<u;++o)i=e[o],s[o]=a[i.source.index]/(a[i.source.index]+a[i.target.index]);t=new Array(u),p(),n=new Array(u),h()}}function p(){if(r)for(var n=0,o=e.length;n<o;++n)t[n]=+c(e[n],n,e)}function h(){if(r)for(var t=0,o=e.length;t<o;++t)n[t]=+u(e[t],t,e)}return null==e&&(e=[]),d.initialize=function(e){r=e,g()},d.links=function(t){return arguments.length?(e=t,g(),d):e},d.id=function(e){return arguments.length?(l=e,d):l},d.iterations=function(e){return arguments.length?(A=+e,d):A},d.strength=function(e){return arguments.length?(c="function"==typeof e?e:o(+e),p(),d):c},d.distance=function(e){return arguments.length?(u="function"==typeof e?e:o(+e),h(),d):u},d},E={value:function(){}};function b(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new v(r)}function v(e){this._=e}function B(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function M(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function D(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=E,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}v.prototype=b.prototype={constructor:v,on:function(e,t){var n,r=this._,o=B(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<a;)if(n=(e=o[i]).type)r[n]=D(r[n],e.name,t);else if(null==t)for(n in r)r[n]=D(r[n],e.name,null);return this}for(;++i<a;)if((n=(e=o[i]).type)&&(n=M(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new v(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};var x,w,Q=b,S=0,N=0,k=0,T=0,j=0,L=0,R="object"==typeof performance&&performance.now?performance:Date,O="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _(){return j||(O(F),j=R.now()+L)}function F(){j=0}function z(){this._call=this._time=this._next=null}function P(e,t,n){var r=new z;return r.restart(e,t,n),r}function U(){j=(T=R.now())+L,S=N=0;try{!function(){_(),++S;for(var e,t=x;t;)(e=j-t._time)>=0&&t._call.call(null,e),t=t._next;--S}()}finally{S=0,function(){var e,t,n=x,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:x=t);w=e,H(r)}(),j=0}}function G(){var e=R.now(),t=e-T;t>1e3&&(L-=t,T=e)}function H(e){S||(N&&(N=clearTimeout(N)),e-j>24?(e<1/0&&(N=setTimeout(U,e-R.now()-L)),k&&(k=clearInterval(k))):(k||(T=R.now(),k=setInterval(G,1e3)),S=1,O(U)))}function Y(e){return e.x}function V(e){return e.y}z.prototype=P.prototype={constructor:z,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?_():+n)+(null==t?0:+t),this._next||w===this||(w?w._next=this:x=this,w=this),this._call=e,this._time=n,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}};var W=Math.PI*(3-Math.sqrt(5)),K=function(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,a=.6,s=Object(m.a)(),l=P(u),c=Q("tick","end");function u(){A(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function A(r){var l,c,u=e.length;void 0===r&&(r=1);for(var A=0;A<r;++A)for(n+=(i-n)*o,s.each((function(e){e(n)})),l=0;l<u;++l)null==(c=e[l]).fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return t}function d(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var o=10*Math.sqrt(n),i=n*W;t.x=o*Math.cos(i),t.y=o*Math.sin(i)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function g(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),d(),t={tick:A,restart:function(){return l.restart(u),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,d(),s.each(g),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(o=+e,t):+o},alphaTarget:function(e){return arguments.length?(i=+e,t):i},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?s.remove(e):s.set(e,g(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)(a=(o=t-(s=e[c]).x)*o+(i=n-s.y)*i)<r&&(l=s,r=a);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}},Z=function(){var e,t,n,r,a=o(-30),s=1,l=1/0,c=.81;function A(r){var o,i=e.length,a=u(e,Y,V).visitAfter(g);for(n=r,o=0;o<i;++o)t=e[o],a.visit(p)}function d(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)n=e[t],r[n.index]=+a(n,t,e)}}function g(e){var t,n,o,i,a,s=0,l=0;if(e.length){for(o=i=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,o+=n*t.x,i+=n*t.y);e.x=o/l,e.y=i/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=r[t.data.index]}while(t=t.next)}e.value=s}function p(e,o,a,u){if(!e.value)return!0;var A=e.x-t.x,d=e.y-t.y,g=u-o,p=A*A+d*d;if(g*g/c<p)return p<l&&(0===A&&(p+=(A=i())*A),0===d&&(p+=(d=i())*d),p<s&&(p=Math.sqrt(s*p)),t.vx+=A*e.value*n/p,t.vy+=d*e.value*n/p),!0;if(!(e.length||p>=l)){(e.data!==t||e.next)&&(0===A&&(p+=(A=i())*A),0===d&&(p+=(d=i())*d),p<s&&(p=Math.sqrt(s*p)));do{e.data!==t&&(g=r[e.data.index]*n/p,t.vx+=A*g,t.vy+=d*g)}while(e=e.next)}}return A.initialize=function(t){e=t,d()},A.strength=function(e){return arguments.length?(a="function"==typeof e?e:o(+e),d(),A):a},A.distanceMin=function(e){return arguments.length?(s=e*e,A):Math.sqrt(s)},A.distanceMax=function(e){return arguments.length?(l=e*e,A):Math.sqrt(l)},A.theta=function(e){return arguments.length?(c=e*e,A):Math.sqrt(c)},A},J=function(e,t,n){var r,i,a,s=o(.1);function l(e){for(var o=0,s=r.length;o<s;++o){var l=r[o],c=l.x-t||1e-6,u=l.y-n||1e-6,A=Math.sqrt(c*c+u*u),d=(a[o]-A)*i[o]*e/A;l.vx+=c*d,l.vy+=u*d}}function c(){if(r){var t,n=r.length;for(i=new Array(n),a=new Array(n),t=0;t<n;++t)a[t]=+e(r[t],t,r),i[t]=isNaN(a[t])?0:+s(r[t],t,r)}}return"function"!=typeof e&&(e=o(+e)),null==t&&(t=0),null==n&&(n=0),l.initialize=function(e){r=e,c()},l.strength=function(e){return arguments.length?(s="function"==typeof e?e:o(+e),c(),l):s},l.radius=function(t){return arguments.length?(e="function"==typeof t?t:o(+t),c(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l},q=function(e){var t,n,r,i=o(.1);function a(e){for(var o,i=0,a=t.length;i<a;++i)(o=t[i]).vx+=(r[i]-o.x)*n[i]*e}function s(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=o(null==e?0:+e)),a.initialize=function(e){t=e,s()},a.strength=function(e){return arguments.length?(i="function"==typeof e?e:o(+e),s(),a):i},a.x=function(t){return arguments.length?(e="function"==typeof t?t:o(+t),s(),a):e},a},X=function(e){var t,n,r,i=o(.1);function a(e){for(var o,i=0,a=t.length;i<a;++i)(o=t[i]).vy+=(r[i]-o.y)*n[i]*e}function s(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=o(null==e?0:+e)),a.initialize=function(e){t=e,s()},a.strength=function(e){return arguments.length?(i="function"==typeof e?e:o(+e),s(),a):i},a.y=function(t){return arguments.length?(e="function"==typeof t?t:o(+t),s(),a):e},a}},function(e,t,n){"use strict";n.r(t),n.d(t,"dsvFormat",(function(){return c})),n.d(t,"csvParse",(function(){return A})),n.d(t,"csvParseRows",(function(){return d})),n.d(t,"csvFormat",(function(){return g})),n.d(t,"csvFormatBody",(function(){return p})),n.d(t,"csvFormatRows",(function(){return h})),n.d(t,"csvFormatRow",(function(){return f})),n.d(t,"csvFormatValue",(function(){return m})),n.d(t,"tsvParse",(function(){return I})),n.d(t,"tsvParseRows",(function(){return C})),n.d(t,"tsvFormat",(function(){return E})),n.d(t,"tsvFormatBody",(function(){return b})),n.d(t,"tsvFormatRows",(function(){return v})),n.d(t,"tsvFormatRow",(function(){return B})),n.d(t,"tsvFormatValue",(function(){return M})),n.d(t,"autoType",(function(){return D}));var r={},o={};function i(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function a(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function s(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function l(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),o=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+s(-t,6):t>9999?"+"+s(t,6):s(t,4))+"-"+s(e.getUTCMonth()+1,2)+"-"+s(e.getUTCDate(),2)+(i?"T"+s(n,2)+":"+s(r,2)+":"+s(o,2)+"."+s(i,3)+"Z":o?"T"+s(n,2)+":"+s(r,2)+":"+s(o,2)+"Z":r||n?"T"+s(n,2)+":"+s(r,2)+"Z":"")}var c=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function s(e,t){var i,a=[],s=e.length,l=0,c=0,u=s<=0,A=!1;function d(){if(u)return o;if(A)return A=!1,r;var t,i,a=l;if(34===e.charCodeAt(a)){for(;l++<s&&34!==e.charCodeAt(l)||34===e.charCodeAt(++l););return(t=l)>=s?u=!0:10===(i=e.charCodeAt(l++))?A=!0:13===i&&(A=!0,10===e.charCodeAt(l)&&++l),e.slice(a+1,t-1).replace(/""/g,'"')}for(;l<s;){if(10===(i=e.charCodeAt(t=l++)))A=!0;else if(13===i)A=!0,10===e.charCodeAt(l)&&++l;else if(i!==n)continue;return e.slice(a,t)}return u=!0,e.slice(a,s)}for(10===e.charCodeAt(s-1)&&--s,13===e.charCodeAt(s-1)&&--s;(i=d())!==o;){for(var g=[];i!==r&&i!==o;)g.push(i),i=d();t&&null==(g=t(g,c++))||a.push(g)}return a}function c(t,n){return t.map((function(t){return n.map((function(e){return A(t[e])})).join(e)}))}function u(t){return t.map(A).join(e)}function A(e){return null==e?"":e instanceof Date?l(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,r,o=s(e,(function(e,o){if(n)return n(e,o-1);r=e,n=t?function(e,t){var n=i(e);return function(r,o){return t(n(r),o,e)}}(e,t):i(e)}));return o.columns=r||[],o},parseRows:s,format:function(t,n){return null==n&&(n=a(t)),[n.map(A).join(e)].concat(c(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=a(e)),c(e,t).join("\n")},formatRows:function(e){return e.map(u).join("\n")},formatRow:u,formatValue:A}},u=c(","),A=u.parse,d=u.parseRows,g=u.format,p=u.formatBody,h=u.formatRows,f=u.formatRow,m=u.formatValue,y=c("\t"),I=y.parse,C=y.parseRows,E=y.format,b=y.formatBody,v=y.formatRows,B=y.formatRow,M=y.formatValue;function D(e){for(var t in e){var n,r,o=e[t].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(n=+o)){if(!(r=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;x&&r[4]&&!r[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=n;else o=null;e[t]=o}return e}var x=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var i=o[r];"function"==typeof i?i(t):i&&(i.current=t)}}),Object(r.e)(e));return n}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(153),o=n(189);function i(e,t){var n=Object(r.a)(e,(function(e){return t===e||e.hasAttribute(o.a)}));return null!==n&&n.hasAttribute(o.a)}}]);